Skip to content

Commit

Permalink
feat: support preview API versions (#149)
Browse files Browse the repository at this point in the history
Co-authored-by: nguyentoanit <nguyentoanit@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and nguyentoanit authored Jun 24, 2021
1 parent 9c5d448 commit 5aa37d9
Show file tree
Hide file tree
Showing 20 changed files with 4,066 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/api-clients/catalog-items-api-client-v20201201.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { CatalogApi, Configuration } from '../api-models/catalog-items-api-model-v20201201'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

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

const configuration = new Configuration(parameters)

super(configuration, DEFAULT_API_BASE_PATH, axios)
}
}
14 changes: 14 additions & 0 deletions src/api-clients/feeds-api-client-v20210630.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Configuration, FeedsApi } from '../api-models/feeds-api-model-v20210630'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

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

const configuration = new Configuration(parameters)

super(configuration, DEFAULT_API_BASE_PATH, axios)
}
}
3 changes: 3 additions & 0 deletions src/api-clients/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
export * from './aplus-content-api-client'
export * from './authorization-api-client'
export * from './catalog-items-api-client'
export * from './catalog-items-api-client-v20201201'
export * from './fba-inbound-eligibility-api-client'
export * from './fba-inventory-api-client'
export * from './fba-small-and-light-api-client'
export * from './feeds-api-client'
export * from './feeds-api-client-v20210630'
export * from './finances-api-client'
export * from './fulfillment-inbound-api-client'
export * from './fulfillment-outbound-api-client'
Expand All @@ -17,6 +19,7 @@ export * from './product-fees-api-client'
export * from './product-pricing-api-client'
export * from './product-type-definitions-api-client'
export * from './reports-api-client'
export * from './reports-api-client-v20210630'
export * from './sales-api-client'
export * from './sellers-api-client'
export * from './services-api-client'
Expand Down
14 changes: 14 additions & 0 deletions src/api-clients/reports-api-client-v20210630.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Configuration, ReportsApi } from '../api-models/reports-api-model-v20210630'
import { ApiClientHelpers } from '../helpers'
import { DEFAULT_API_BASE_PATH } from '../types'
import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters'

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

const configuration = new Configuration(parameters)

super(configuration, DEFAULT_API_BASE_PATH, axios)
}
}
Loading

0 comments on commit 5aa37d9

Please sign in to comment.