Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: updates API models #1146

Merged
merged 3 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/api-clients/catalog-items-api-client-v20220401.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { CatalogApi, Configuration } from '../api-models/catalog-items-api-model-v20220401'
import { CatalogItemsApi, Configuration } from '../api-models/catalog-items-api-model-v20220401'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

export class CatalogItemsApiClientV20220401 extends CatalogApi {
export class CatalogItemsApiClientV20220401 extends CatalogItemsApi {
constructor(parameters: APIConfigurationParameters) {
const axios = ApiClientHelpers.getAxiosInstance(parameters)

Expand Down
14 changes: 14 additions & 0 deletions src/api-clients/finances-api-client-v20240601.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Configuration, DefaultApi } from '../api-models/finances-api-model-v20240601'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

export class FinancesApiClientV20240601 extends DefaultApi {
constructor(parameters: APIConfigurationParameters) {
const axios = ApiClientHelpers.getAxiosInstance(parameters)

const configuration = new Configuration(parameters)

super(configuration, DEFAULT_API_BASE_PATH, axios)
}
}
7 changes: 5 additions & 2 deletions src/api-clients/fulfillment-inbound-api-client-v20240320.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { Configuration, FbaInboundApi } from '../api-models/fulfillment-inbound-api-model-v20240320'
import {
Configuration,
FulfillmentInboundApi,
} from '../api-models/fulfillment-inbound-api-model-v20240320'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

export class FulfillmentInboundApiClientV20240320 extends FbaInboundApi {
export class FulfillmentInboundApiClientV20240320 extends FulfillmentInboundApi {
constructor(parameters: APIConfigurationParameters) {
const axios = ApiClientHelpers.getAxiosInstance(parameters)

Expand Down
1 change: 1 addition & 0 deletions src/api-clients/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export * from './feeds-api-client'
export * from './feeds-api-client-v20210630'
export * from './finances-api-client'
export * from './finances-api-client-v20240619'
export * from './finances-api-client-v20240601'
export * from './fulfillment-inbound-api-client'
export * from './fulfillment-inbound-api-client-v20240320'
export * from './fulfillment-outbound-api-client'
Expand Down
9 changes: 3 additions & 6 deletions src/api-clients/orders-api-client.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Configuration, OrdersV0Api, ShipmentApi } from '../api-models/orders-api-model'
import { ApiClientHelpers, applyMixins } from '../helpers'
import { Configuration, OrdersApi } from '../api-models/orders-api-model'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

export class OrdersApiClient extends OrdersV0Api {
export class OrdersApiClient extends OrdersApi {
constructor(parameters: APIConfigurationParameters) {
const axios = ApiClientHelpers.getAxiosInstance(parameters)

Expand All @@ -12,6 +12,3 @@ export class OrdersApiClient extends OrdersV0Api {
super(configuration, DEFAULT_API_BASE_PATH, axios)
}
}

export interface OrdersApiClient extends OrdersV0Api, ShipmentApi {}
applyMixins(OrdersApiClient, [OrdersV0Api, ShipmentApi])
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
Configuration,
CreateContainerLabelApi,
CustomerInvoicesApi,
VendorShippingApi,
VendorShippingLabelsApi,
Expand All @@ -8,7 +9,7 @@ import { ApiClientHelpers, applyMixins } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

export class VendorDirectFulfillmentShippingApiClientV20211228 extends CustomerInvoicesApi {
export class VendorDirectFulfillmentShippingApiClientV20211228 extends CreateContainerLabelApi {
constructor(parameters: APIConfigurationParameters) {
const axios = ApiClientHelpers.getAxiosInstance(parameters)

Expand All @@ -19,10 +20,12 @@ export class VendorDirectFulfillmentShippingApiClientV20211228 extends CustomerI
}

export interface VendorDirectFulfillmentShippingApiClientV20211228
extends CustomerInvoicesApi,
extends CreateContainerLabelApi,
CustomerInvoicesApi,
VendorShippingApi,
VendorShippingLabelsApi {}
applyMixins(VendorDirectFulfillmentShippingApiClientV20211228, [
CreateContainerLabelApi,
CustomerInvoicesApi,
VendorShippingApi,
VendorShippingLabelsApi,
Expand Down
4 changes: 2 additions & 2 deletions src/api-clients/vendor-invoices-api-client.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Configuration, VendorPaymentsApi } from '../api-models/vendor-invoices-api-model'
import { Configuration, VendorInvoicesApi } from '../api-models/vendor-invoices-api-model'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

export class VendorInvoicesApiClient extends VendorPaymentsApi {
export class VendorInvoicesApiClient extends VendorInvoicesApi {
constructor(parameters: APIConfigurationParameters) {
const axios = ApiClientHelpers.getAxiosInstance(parameters)

Expand Down
Loading
Loading