diff --git a/src/clients/aplus-content-api-client.ts b/src/clients/aplus-content-api-client.ts new file mode 100644 index 00000000..217c540e --- /dev/null +++ b/src/clients/aplus-content-api-client.ts @@ -0,0 +1,19 @@ +import { AplusContentApi } from '../api-models/aplus-content-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class AplusContentApiClient extends AplusContentApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/authorization-api-client.ts b/src/clients/authorization-api-client.ts new file mode 100644 index 00000000..ab09861a --- /dev/null +++ b/src/clients/authorization-api-client.ts @@ -0,0 +1,19 @@ +import { AuthorizationApi } from '../api-models/authorization-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class AuthorizationApiClient extends AuthorizationApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/catalog-api-client.ts b/src/clients/catalog-api-client.ts new file mode 100644 index 00000000..12adfaba --- /dev/null +++ b/src/clients/catalog-api-client.ts @@ -0,0 +1,19 @@ +import { CatalogApi } from '../api-models/catalog-items-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class CatalogApiClient extends CatalogApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/default-api-client.ts b/src/clients/default-api-client.ts new file mode 100644 index 00000000..2da68a82 --- /dev/null +++ b/src/clients/default-api-client.ts @@ -0,0 +1,19 @@ +import { DefaultApi } from '../api-models/finances-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class DefaultApiClient extends DefaultApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/fba-inbound-api-client.ts b/src/clients/fba-inbound-api-client.ts new file mode 100644 index 00000000..124165e6 --- /dev/null +++ b/src/clients/fba-inbound-api-client.ts @@ -0,0 +1,19 @@ +import { FbaInboundApi } from '../api-models/fba-inbound-eligibility-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class FbaInboundApiClient extends FbaInboundApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/fba-inventory-api-client.ts b/src/clients/fba-inventory-api-client.ts new file mode 100644 index 00000000..28fc65e1 --- /dev/null +++ b/src/clients/fba-inventory-api-client.ts @@ -0,0 +1,19 @@ +import { FbaInventoryApi } from '../api-models/fba-inventory-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class FbaInventoryApiClient extends FbaInventoryApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/feeds-api-client.ts b/src/clients/feeds-api-client.ts new file mode 100644 index 00000000..02e20777 --- /dev/null +++ b/src/clients/feeds-api-client.ts @@ -0,0 +1,19 @@ +import { FeedsApi } from '../api-models/feeds-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class FeedsApiClient extends FeedsApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/fees-api-client.ts b/src/clients/fees-api-client.ts new file mode 100644 index 00000000..252c2f86 --- /dev/null +++ b/src/clients/fees-api-client.ts @@ -0,0 +1,19 @@ +import { FeesApi } from '../api-models/product-fees-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class FeesApiClient extends FeesApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/fulfillment-fba-inbound-api-client.ts b/src/clients/fulfillment-fba-inbound-api-client.ts new file mode 100644 index 00000000..c7938eb4 --- /dev/null +++ b/src/clients/fulfillment-fba-inbound-api-client.ts @@ -0,0 +1,20 @@ +import { FbaInboundApi } from '../api-models/fulfillment-inbound-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +// TODO: duplicated API model with fba inbound +export class FulfillmentFbaInboundApiClient extends FbaInboundApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/fulfillment-fba-outbound-api-client.ts b/src/clients/fulfillment-fba-outbound-api-client.ts new file mode 100644 index 00000000..88b0aa02 --- /dev/null +++ b/src/clients/fulfillment-fba-outbound-api-client.ts @@ -0,0 +1,20 @@ +import { FbaOutboundApi } from '../api-models/fulfillment-outbound-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +// TODO: duplicated API model with fba outbound +export class FulfillmentFbaOutboundApiClient extends FbaOutboundApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/index.ts b/src/clients/index.ts index b72dc639..d4bb112e 100644 --- a/src/clients/index.ts +++ b/src/clients/index.ts @@ -1 +1,23 @@ +export * from './aplus-content-api-client' +export * from './authorization-api-client' +export * from './catalog-api-client' +export * from './fba-inbound-api-client' +export * from './fba-inventory-api-client' +export * from './small-and-light-api-client' +export * from './feeds-api-client' +export * from './default-api-client' +export * from './fulfillment-fba-inbound-api-client' +export * from './fulfillment-fba-outbound-api-client' +export * from './merchant-fulfillment-api-client' +export * from './messaging-api-client' +export * from './notifications-api-client' +export * from './orders-api-client' +export * from './fees-api-client' +export * from './product-pricing-api-client' +export * from './reports-api-client' +export * from './sales-api-client' +export * from './sellers-api-client' +export * from './service-api-client' +export * from './shipping-api-client' +export * from './solicitations-api-client' export * from './uploads-api-client' diff --git a/src/clients/merchant-fulfillment-api-client.ts b/src/clients/merchant-fulfillment-api-client.ts new file mode 100644 index 00000000..460f2786 --- /dev/null +++ b/src/clients/merchant-fulfillment-api-client.ts @@ -0,0 +1,19 @@ +import { MerchantFulfillmentApi } from '../api-models/merchant-fulfillment-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class MerchantFulfillmentApiClient extends MerchantFulfillmentApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/messaging-api-client.ts b/src/clients/messaging-api-client.ts new file mode 100644 index 00000000..3cb59874 --- /dev/null +++ b/src/clients/messaging-api-client.ts @@ -0,0 +1,19 @@ +import { MessagingApi } from '../api-models/messaging-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class MessagingApiClient extends MessagingApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/notifications-api-client.ts b/src/clients/notifications-api-client.ts new file mode 100644 index 00000000..db93d622 --- /dev/null +++ b/src/clients/notifications-api-client.ts @@ -0,0 +1,19 @@ +import { NotificationsApi } from '../api-models/notifications-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class NotificationsApiClient extends NotificationsApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/orders-api-client.ts b/src/clients/orders-api-client.ts new file mode 100644 index 00000000..b91c3bfd --- /dev/null +++ b/src/clients/orders-api-client.ts @@ -0,0 +1,20 @@ +import { OrdersV0Api } from '../api-models/orders-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +// TODO: remove V0 in client name when generate automatically +export class OrdersApiClient extends OrdersV0Api { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/product-pricing-api-client.ts b/src/clients/product-pricing-api-client.ts new file mode 100644 index 00000000..a452b01e --- /dev/null +++ b/src/clients/product-pricing-api-client.ts @@ -0,0 +1,19 @@ +import { ProductPricingApi } from '../api-models/product-pricing-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class ProductPricingApiClient extends ProductPricingApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/reports-api-client.ts b/src/clients/reports-api-client.ts new file mode 100644 index 00000000..1430e1de --- /dev/null +++ b/src/clients/reports-api-client.ts @@ -0,0 +1,19 @@ +import { ReportsApi } from '../api-models/reports-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class ReportsApiClient extends ReportsApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/sales-api-client.ts b/src/clients/sales-api-client.ts new file mode 100644 index 00000000..78ecd0da --- /dev/null +++ b/src/clients/sales-api-client.ts @@ -0,0 +1,19 @@ +import { SalesApi } from '../api-models/sales-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class SalesApiClient extends SalesApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/sellers-api-client.ts b/src/clients/sellers-api-client.ts new file mode 100644 index 00000000..82a2998c --- /dev/null +++ b/src/clients/sellers-api-client.ts @@ -0,0 +1,19 @@ +import { SellersApi } from '../api-models/sellers-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class SellersApiClient extends SellersApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/service-api-client.ts b/src/clients/service-api-client.ts new file mode 100644 index 00000000..2be7b2ff --- /dev/null +++ b/src/clients/service-api-client.ts @@ -0,0 +1,19 @@ +import { ServiceApi } from '../api-models/services-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class ServiceApiClient extends ServiceApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/shipping-api-client.ts b/src/clients/shipping-api-client.ts new file mode 100644 index 00000000..86d4e96f --- /dev/null +++ b/src/clients/shipping-api-client.ts @@ -0,0 +1,19 @@ +import { ShippingApi } from '../api-models/shipping-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class ShippingApiClient extends ShippingApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/small-and-light-api-client.ts b/src/clients/small-and-light-api-client.ts new file mode 100644 index 00000000..251ae5fe --- /dev/null +++ b/src/clients/small-and-light-api-client.ts @@ -0,0 +1,19 @@ +import { SmallAndLightApi } from '../api-models/fba-small-and-light-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class SmallAndLightApiClient extends SmallAndLightApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +} diff --git a/src/clients/solicitations-api-client.ts b/src/clients/solicitations-api-client.ts new file mode 100644 index 00000000..6ff6942f --- /dev/null +++ b/src/clients/solicitations-api-client.ts @@ -0,0 +1,19 @@ +import { SolicitationsApi } from '../api-models/solicitations-api-model' +import { ApiClientHelpers } from '../helpers' +import { APIConfigurationParameters } from '../types/api-configuration-parameters' + +export class SolicitationsApiClient extends SolicitationsApi { + constructor(parameters?: APIConfigurationParameters) { + const axios = ApiClientHelpers.assertAxiosInstance(parameters) + const basePath = ApiClientHelpers.getDefaultBasePath() + + super( + { + isJsonMime: ApiClientHelpers.isJsonMime, + ...parameters, + }, + basePath, + axios, + ) + } +}