├── .cz.json ├── .env.example ├── .eslintignore ├── .eslintrc.js ├── .gitattributes ├── .github └── workflows │ ├── codecov.yml │ ├── danger.yml │ ├── generate-models.yml │ ├── release.yml │ └── test.yml ├── .gitignore ├── .huskyrc.js ├── .markdownlint.json ├── .npmrc ├── .nvmrc ├── .vscode ├── launch.json └── settings.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── commitlint.config.js ├── dangerfile.ts ├── docs └── assets │ └── header.png ├── jest.config.js ├── lint-staged.config.js ├── openapitools.json ├── package-lock.json ├── package.json ├── release.config.js ├── renovate.json ├── src ├── api-clients │ ├── amazon-warehousing-and-distribution-client.ts │ ├── aplus-content-api-client.ts │ ├── application-integrations-api-client.ts │ ├── application-management-api-client.ts │ ├── authorization-api-client.ts │ ├── catalog-items-api-client-v20201201.ts │ ├── catalog-items-api-client-v20220401.ts │ ├── catalog-items-api-client.ts │ ├── data-kiosk-api-client.ts │ ├── easy-ship-client.ts │ ├── fba-inbound-eligibility-api-client.ts │ ├── fba-inventory-api-client.ts │ ├── fba-small-and-light-api-client.ts │ ├── feeds-api-client-v20210630.ts │ ├── feeds-api-client.ts │ ├── finances-api-client-v20240601.ts │ ├── finances-api-client-v20240619.ts │ ├── finances-api-client.ts │ ├── fulfillment-inbound-api-client-v20240320.ts │ ├── fulfillment-inbound-api-client.ts │ ├── fulfillment-outbound-api-client.ts │ ├── index.ts │ ├── invoices-api-client.ts │ ├── listings-items-api-client-v20210801.ts │ ├── listings-items-api-client.ts │ ├── listings-restrictions-api-client.ts │ ├── merchant-fulfillment-api-client.ts │ ├── messaging-api-client.ts │ ├── notifications-api-client.ts │ ├── orders-api-client.ts │ ├── product-fees-api-client.ts │ ├── product-pricing-api-client-v20220501.ts │ ├── product-pricing-api-client.ts │ ├── product-type-definitions-api-client.ts │ ├── replenishment-api-client.ts │ ├── reports-api-client-v20210630.ts │ ├── reports-api-client.ts │ ├── sales-api-client.ts │ ├── sellers-api-client.ts │ ├── services-api-client.ts │ ├── shipment-invoicing-api-client.ts │ ├── shipping-api-client-v2.ts │ ├── shipping-api-client.ts │ ├── solicitations-api-client.ts │ ├── supply-sources-api-client.ts │ ├── tokens-api-client.ts │ ├── uploads-api-client.ts │ ├── vendor-direct-fulfillment-inventory-api-client.ts │ ├── vendor-direct-fulfillment-orders-api-client-v20211228.ts │ ├── vendor-direct-fulfillment-orders-api-client.ts │ ├── vendor-direct-fulfillment-payments-api-client.ts │ ├── vendor-direct-fulfillment-sandbox-test-data-api-client.ts │ ├── vendor-direct-fulfillment-shipping-api-client-v20211228.ts │ ├── vendor-direct-fulfillment-shipping-api-client.ts │ ├── vendor-direct-fulfillment-transactions-api-client-v20211228.ts │ ├── vendor-direct-fulfillment-transactions-api-client.ts │ ├── vendor-invoices-api-client.ts │ ├── vendor-orders-api-client.ts │ ├── vendor-shipments-api-client.ts │ └── vendor-transaction-status-api-client.ts ├── api-models │ ├── amazon-warehousing-and-distribution-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── aplus-content-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── application-integrations-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── application-management-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── authorization-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── catalog-items-api-model-v20201201 │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── catalog-items-api-model-v20220401 │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── catalog-items-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── data-kiosk-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── easy-ship-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── fba-inbound-eligibility-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── fba-inventory-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── fba-small-and-light-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── feeds-api-model-v20210630 │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── feeds-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── finances-api-model-v20240601 │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── finances-api-model-v20240619 │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── finances-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── fulfillment-inbound-api-model-v20240320 │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── fulfillment-inbound-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── fulfillment-outbound-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── index.ts │ ├── invoices-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── listings-items-api-model-v20210801 │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── listings-items-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── listings-restrictions-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── merchant-fulfillment-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── messaging-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── notifications-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── orders-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── product-fees-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── product-pricing-api-model-v20220501 │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── product-pricing-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── product-type-definitions-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── replenishment-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── reports-api-model-v20210630 │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── reports-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── sales-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── sellers-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── services-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── shipment-invoicing-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── shipping-api-model-v2 │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── shipping-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── solicitations-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── supply-sources-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── tokens-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── uploads-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── vendor-direct-fulfillment-inventory-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── vendor-direct-fulfillment-orders-api-model-v20211228 │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── vendor-direct-fulfillment-orders-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── vendor-direct-fulfillment-payments-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── vendor-direct-fulfillment-sandbox-test-data-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── vendor-direct-fulfillment-shipping-api-model-v20211228 │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── vendor-direct-fulfillment-shipping-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── vendor-direct-fulfillment-transactions-api-model-v20211228 │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── vendor-direct-fulfillment-transactions-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── vendor-invoices-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── vendor-orders-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ ├── vendor-shipments-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts │ └── vendor-transaction-status-api-model │ │ ├── api.ts │ │ ├── base.ts │ │ ├── common.ts │ │ ├── configuration.ts │ │ └── index.ts ├── constants.ts ├── helpers │ ├── api-client-helpers.ts │ ├── api-error-factory.ts │ ├── apply-mixins.ts │ └── index.ts ├── index.ts └── types │ ├── api-clients │ ├── amazon-selling-partner-api-base-path.ts │ ├── amazon-selling-partner-api-credentials.ts │ ├── api-configuration-parameters.ts │ └── index.ts │ ├── errors │ ├── index.ts │ ├── selling-partner-api-errors.ts │ ├── selling-partner-mismatch-region-error.ts │ └── selling-partner-not-found-region-error.ts │ └── index.ts ├── test ├── authentication.ts ├── environment.ts ├── integration │ ├── sellers-api-client.test.ts │ └── vendor-direct-fulfillment-shipping-api-client.test.ts └── types │ └── errors │ └── errors.test.ts ├── tsconfig.build.json ├── tsconfig.json ├── typedoc.json └── utils ├── bump-version.ts ├── generate.ts └── generator ├── api-client-generator.ts ├── api-client-template.ts ├── api-model-generator.ts ├── api-model.ts ├── constants.ts ├── enum-mapping.ts └── parser.ts /.cz.json: -------------------------------------------------------------------------------- 1 | { 2 | "path": "./node_modules/@scaleleap/utils/commitizen" 3 | } 4 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | # get from AWS 2 | AWS_ACCESS_KEY_ID=AKIA... 3 | AWS_SECRET_ACCESS_KEY=... 4 | # need to be created 5 | ROLE_ARN= 6 | 7 | # get from Seller Central / Developer Central account 8 | CLIENT_ID= 9 | CLIENT_SECRET= 10 | # self authorize 11 | REFRESH_TOKEN= 12 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | /src/api-models/*/* 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | 3 | *.json linguist-language=JSON-with-Comments -------------------------------------------------------------------------------- /.github/workflows/codecov.yml: -------------------------------------------------------------------------------- 1 | name: Codecov 2 | 3 | on: 4 | - push 5 | 6 | jobs: 7 | release: 8 | name: Upload coverage to Codecov 9 | runs-on: ubuntu-latest 10 | steps: 11 | - name: Checkout 12 | uses: actions/checkout@v4 13 | 14 | - name: Install 15 | uses: bahmutov/npm-install@v1 16 | 17 | - name: Test 18 | run: npm test -- --coverage 19 | 20 | - name: Test integration 21 | run: npm run test:integration -- --coverage 22 | env: 23 | AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} 24 | AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} 25 | CLIENT_ID: ${{ secrets.CLIENT_ID }} 26 | CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} 27 | REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} 28 | ROLE_ARN: ${{ secrets.ROLE_ARN }} 29 | 30 | - name: Upload coverage to Codecov 31 | uses: codecov/codecov-action@v4 32 | with: 33 | token: ${{ secrets.CODECOV_TOKEN }} 34 | -------------------------------------------------------------------------------- /.github/workflows/danger.yml: -------------------------------------------------------------------------------- 1 | name: Danger 2 | 3 | on: 4 | pull_request: 5 | types: 6 | - opened 7 | - synchronize 8 | - reopened 9 | 10 | jobs: 11 | danger: 12 | name: Danger 13 | 14 | runs-on: ubuntu-latest 15 | 16 | steps: 17 | - name: Checkout 18 | uses: actions/checkout@v4 19 | 20 | - name: Install 21 | uses: bahmutov/npm-install@v1 22 | 23 | - name: Danger 24 | uses: danger/danger-js@11.3.1 25 | env: 26 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 27 | -------------------------------------------------------------------------------- /.github/workflows/generate-models.yml: -------------------------------------------------------------------------------- 1 | name: Generate API models 2 | 3 | on: 4 | schedule: 5 | - cron: '0 1 * * *' 6 | workflow_dispatch: 7 | 8 | jobs: 9 | generate: 10 | name: Generate 11 | 12 | runs-on: ubuntu-latest 13 | 14 | steps: 15 | - name: Checkout 16 | uses: actions/checkout@v4 17 | 18 | - name: Checkout model repository 19 | uses: actions/checkout@v4 20 | with: 21 | repository: amzn/selling-partner-api-models 22 | path: tmp/selling-partner-api-models 23 | 24 | - name: Setup Node 25 | uses: actions/setup-node@v4 26 | with: 27 | node-version: 18 28 | 29 | - name: Setup Java 30 | uses: actions/setup-java@v4 31 | with: 32 | distribution: adopt 33 | java-version: 11 34 | 35 | - name: Install 36 | uses: bahmutov/npm-install@v1 37 | 38 | - name: Generate API models 39 | id: generate 40 | run: npm run generate-models tmp/selling-partner-api-models/models 41 | 42 | - name: Lint 43 | run: npm run lint:fix 44 | 45 | - name: Test 46 | run: npm t 47 | 48 | - name: Test integration 49 | run: npm run test:integration 50 | env: 51 | AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} 52 | AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} 53 | CLIENT_ID: ${{ secrets.CLIENT_ID }} 54 | CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} 55 | REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} 56 | ROLE_ARN: ${{ secrets.ROLE_ARN }} 57 | 58 | - name: Build 59 | run: npm run build 60 | 61 | - name: Create Pull Request 62 | id: cpr 63 | uses: peter-evans/create-pull-request@v7 64 | with: 65 | token: ${{ secrets.GITHUB_TOKEN }} 66 | commit-message: 'chore: update api models' 67 | title: 'scale-bot: Update API models' 68 | body: ${{steps.generate.outputs.pr-body}} 69 | committer: Scale Bot 70 | branch: chore/update-api-models 71 | delete-branch: true 72 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | env: 4 | CI: "true" 5 | 6 | on: 7 | push: 8 | branches: 9 | # https://semantic-release.gitbook.io/semantic-release/usage/configuration#branches 10 | - master 11 | - next 12 | - next-major 13 | - beta 14 | - alpha 15 | # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#patterns-to-match-branches-and-tags 16 | - '[0-9]+.x' # N.x 17 | - '[0-9]+.x.x' # N.x.x 18 | - '[0-9]+.[0-9]+.x' # N.N.x 19 | 20 | jobs: 21 | npm-publish: 22 | name: npm publish 23 | 24 | runs-on: ubuntu-latest 25 | 26 | steps: 27 | - name: Checkout 28 | uses: actions/checkout@v4 29 | 30 | - name: Setup Node 31 | uses: actions/setup-node@v4 32 | with: 33 | node-version: 16 34 | 35 | - name: Install 36 | uses: bahmutov/npm-install@v1 37 | 38 | - name: Build 39 | run: npm run build 40 | 41 | ## Uncomment below for releases to work 42 | ## Also need to define NPM_TOKEN env variable 43 | 44 | - name: Semantic Release 45 | if: success() 46 | env: 47 | GIT_AUTHOR_NAME: Scale Bot 48 | GIT_AUTHOR_EMAIL: scale-bot@scaleleap.com 49 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 50 | NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 51 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} 52 | SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} 53 | run: npm run semantic-release 54 | 55 | - name: Docs 56 | run: npm run docs 57 | 58 | - name: Deploy docs to Netlify 59 | uses: nwtgck/actions-netlify@v3.0.0 60 | with: 61 | publish-dir: ./docs/typedoc 62 | production-branch: master 63 | production-deploy: true 64 | github-token: ${{ secrets.GITHUB_TOKEN }} 65 | deploy-message: Deploy from GitHub Actions 66 | enable-pull-request-comment: false 67 | enable-commit-comment: false 68 | env: 69 | NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} 70 | NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} 71 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: Test 2 | 3 | env: 4 | CI: "true" 5 | 6 | on: 7 | pull_request: 8 | types: 9 | - opened 10 | - synchronize 11 | - reopened 12 | 13 | jobs: 14 | test: 15 | name: Node ${{ matrix.node }} on ${{ matrix.os }} 16 | 17 | runs-on: ${{ matrix.os }} 18 | 19 | strategy: 20 | matrix: 21 | node: 22 | - 16 23 | - 18 24 | os: 25 | - ubuntu-latest 26 | - macOS-latest 27 | - windows-latest 28 | 29 | steps: 30 | - name: Checkout 31 | uses: actions/checkout@v4 32 | 33 | - name: Setup Node 34 | uses: actions/setup-node@v4 35 | with: 36 | node-version: ${{ matrix.node }} 37 | 38 | - name: Install 39 | uses: bahmutov/npm-install@v1 40 | 41 | - name: Lint 42 | run: npm run lint 43 | 44 | - name: Test 45 | run: npm t 46 | 47 | - name: Build 48 | run: npm run build 49 | 50 | ## runs integration tests separately on just one type of OS, to avoid getting throttled by the API 51 | integration_tests: 52 | name: Integration 53 | runs-on: ubuntu-latest 54 | steps: 55 | - name: Checkout 56 | uses: actions/checkout@v4 57 | 58 | - name: Install 59 | uses: bahmutov/npm-install@v1 60 | 61 | - name: Test integration 62 | run: npm run test:integration 63 | env: 64 | AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} 65 | AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} 66 | CLIENT_ID: ${{ secrets.CLIENT_ID }} 67 | CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} 68 | REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} 69 | ROLE_ARN: ${{ secrets.ROLE_ARN }} 70 | -------------------------------------------------------------------------------- /.huskyrc.js: -------------------------------------------------------------------------------- 1 | module.exports = require('@scaleleap/utils/husky')(__dirname) 2 | -------------------------------------------------------------------------------- /.markdownlint.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/markdownlint/schema/markdownlint-config-schema.json", 3 | "extends": "./node_modules/@scaleleap/utils/markdownlint/markdownlint.json", 4 | "MD013": { 5 | "line_length": 240 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | save=true 2 | save-exact=true 3 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 16.20.2 2 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | // Debugging Reference: https://code.visualstudio.com/docs/editor/debugging 2 | // Variables Reference: https://code.visualstudio.com/docs/editor/variables-reference 3 | { 4 | "version": "0.2.0", 5 | "configurations": [ 6 | { 7 | "name": "Debug Test", 8 | "type": "node", 9 | "request": "launch", 10 | "args": [ 11 | "--runInBand", 12 | "--no-cache" 13 | ], 14 | "env": { 15 | "CI": "true" 16 | }, 17 | "cwd": "${workspaceFolder}", 18 | "console": "integratedTerminal", 19 | "internalConsoleOptions": "neverOpen", 20 | "disableOptimisticBPs": true, 21 | "program": "${workspaceFolder}/node_modules/.bin/jest", 22 | "skipFiles": [ 23 | // black boxes vendor code from the debugger 24 | "${workspaceRoot}/node_modules/**/*.js", 25 | "${workspaceRoot}/lib/**/*.js", 26 | "async_hooks.js", 27 | "inspector_async_hook.js", 28 | // https://github.com/nodejs/node/issues/15464#issuecomment-332724821 29 | "/**", 30 | ] 31 | }, 32 | { 33 | "type": "node", 34 | "request": "launch", 35 | "name": "Debug Program", 36 | "console": "integratedTerminal", 37 | "runtimeArgs": [ 38 | "-r", 39 | "ts-node/register" 40 | ], 41 | "args": [ 42 | "${workspaceFolder}/src" 43 | ], 44 | "skipFiles": [ 45 | // black boxes vendor code from the debugger 46 | "${workspaceRoot}/node_modules/**/*.js", 47 | "${workspaceRoot}/lib/**/*.js", 48 | "async_hooks.js", 49 | "inspector_async_hook.js", 50 | // https://github.com/nodejs/node/issues/15464#issuecomment-332724821 51 | "/**", 52 | ] 53 | } 54 | ] 55 | } -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.exclude": { 3 | ".cz.json": true, 4 | ".eslintcache": true, 5 | ".eslintrc.js": true, 6 | ".gitattributes": true, 7 | ".github": true, 8 | ".gitignore": true, 9 | ".huskyrc.js": true, 10 | ".markdownlint.json": true, 11 | ".npmrc": true, 12 | ".nvmrc": true, 13 | ".prettierrc.js": true, 14 | ".vscode": true, 15 | "commitlint.config.js": true, 16 | "jest.config.js": true, 17 | "lib": true, 18 | "LICENSE": true, 19 | "lint-staged.config.js": true, 20 | "node_modules": true, 21 | "package-lock.json": true, 22 | "release.config.js": true, 23 | "renovate.json": true, 24 | "tsconfig.build.json": true, 25 | "tsconfig.json": true 26 | }, 27 | "search.exclude": { 28 | "lib/**": true, 29 | "node_modules/**": true, 30 | ".eslintcache": true, 31 | }, 32 | "files.watcherExclude": { 33 | "lib/**": true, 34 | "node_modules/**": true, 35 | ".eslintcache": true, 36 | }, 37 | "typescript.tsdk": "node_modules/typescript/lib", 38 | "typescript.suggest.autoImports": true, 39 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Scale Leap 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = require('@scaleleap/utils/commitlint') 2 | -------------------------------------------------------------------------------- /dangerfile.ts: -------------------------------------------------------------------------------- 1 | import { danger, warn } from 'danger' 2 | 3 | const packageChanged = danger.git.modified_files.includes('package.json') 4 | const lockfileChanged = danger.git.modified_files.includes('package-lock.json') 5 | 6 | if (packageChanged && !lockfileChanged) { 7 | const message = 'Changes were made to `package.json`, but not to `package-lock.json`.' 8 | warn(message) 9 | } 10 | -------------------------------------------------------------------------------- /docs/assets/header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScaleLeap/selling-partner-api-sdk/1a7b092d6f3fefa3e30052b3c4c9a0c8e8fddc06/docs/assets/header.png -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'setup-polly-jest/jest-environment-node', 4 | coveragePathIgnorePatterns: ['/src/api-models/'], 5 | setupFilesAfterEnv: ['@scaleleap/jest-polly'], 6 | } 7 | -------------------------------------------------------------------------------- /lint-staged.config.js: -------------------------------------------------------------------------------- 1 | module.exports = require('@scaleleap/utils/lint-staged') 2 | -------------------------------------------------------------------------------- /openapitools.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json", 3 | "spaces": 2, 4 | "generator-cli": { 5 | "version": "5.0.1" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /release.config.js: -------------------------------------------------------------------------------- 1 | module.exports = require('@scaleleap/semantic-release-config') 2 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": [ 4 | "@scaleleap" 5 | ] 6 | } -------------------------------------------------------------------------------- /src/api-clients/amazon-warehousing-and-distribution-client.ts: -------------------------------------------------------------------------------- 1 | import { AwdApi, Configuration } from '../api-models/amazon-warehousing-and-distribution-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class AmazonWarehousingAndDistributionClient extends AwdApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/aplus-content-api-client.ts: -------------------------------------------------------------------------------- 1 | import { AplusContentApi, Configuration } from '../api-models/aplus-content-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class AplusContentApiClient extends AplusContentApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/application-integrations-api-client.ts: -------------------------------------------------------------------------------- 1 | import { AppIntegrationsApi, Configuration } from '../api-models/application-integrations-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ApplicationIntegrationsApiClient extends AppIntegrationsApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/application-management-api-client.ts: -------------------------------------------------------------------------------- 1 | import { ApplicationsApi, Configuration } from '../api-models/application-management-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ApplicationManagementApiClient extends ApplicationsApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/authorization-api-client.ts: -------------------------------------------------------------------------------- 1 | import { AuthorizationApi, Configuration } from '../api-models/authorization-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class AuthorizationApiClient extends AuthorizationApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/catalog-items-api-client-v20201201.ts: -------------------------------------------------------------------------------- 1 | import { CatalogApi, Configuration } from '../api-models/catalog-items-api-model-v20201201' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class CatalogItemsApiClientV20201201 extends CatalogApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/catalog-items-api-client-v20220401.ts: -------------------------------------------------------------------------------- 1 | import { CatalogItemsApi, Configuration } from '../api-models/catalog-items-api-model-v20220401' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class CatalogItemsApiClientV20220401 extends CatalogItemsApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/catalog-items-api-client.ts: -------------------------------------------------------------------------------- 1 | import { CatalogApi, Configuration } from '../api-models/catalog-items-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class CatalogItemsApiClient extends CatalogApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/data-kiosk-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, QueriesApi } from '../api-models/data-kiosk-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class DataKioskApiClient extends QueriesApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/easy-ship-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, EasyShipApi } from '../api-models/easy-ship-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class EasyShipClient extends EasyShipApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/fba-inbound-eligibility-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, FbaInboundApi } from '../api-models/fba-inbound-eligibility-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class FbaInboundEligibilityApiClient extends FbaInboundApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/fba-inventory-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, FbaInventoryApi } from '../api-models/fba-inventory-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class FbaInventoryApiClient extends FbaInventoryApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/fba-small-and-light-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, SmallAndLightApi } from '../api-models/fba-small-and-light-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class FbaSmallAndLightApiClient extends SmallAndLightApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/feeds-api-client-v20210630.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, FeedsApi } from '../api-models/feeds-api-model-v20210630' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class FeedsApiClientV20210630 extends FeedsApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/feeds-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, FeedsApi } from '../api-models/feeds-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class FeedsApiClient extends FeedsApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/finances-api-client-v20240601.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, DefaultApi } from '../api-models/finances-api-model-v20240601' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class FinancesApiClientV20240601 extends DefaultApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/finances-api-client-v20240619.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, DefaultApi } from '../api-models/finances-api-model-v20240619' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class FinancesApiClientV20240619 extends DefaultApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/finances-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, DefaultApi } from '../api-models/finances-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class FinancesApiClient extends DefaultApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/fulfillment-inbound-api-client-v20240320.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Configuration, 3 | FulfillmentInboundApi, 4 | } from '../api-models/fulfillment-inbound-api-model-v20240320' 5 | import { ApiClientHelpers } from '../helpers' 6 | import { DEFAULT_API_BASE_PATH } from '../types' 7 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 8 | 9 | export class FulfillmentInboundApiClientV20240320 extends FulfillmentInboundApi { 10 | constructor(parameters: APIConfigurationParameters) { 11 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 12 | 13 | const configuration = new Configuration(parameters) 14 | 15 | super(configuration, DEFAULT_API_BASE_PATH, axios) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/api-clients/fulfillment-inbound-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, FbaInboundApi } from '../api-models/fulfillment-inbound-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class FulfillmentInboundApiClient extends FbaInboundApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/fulfillment-outbound-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, FbaOutboundApi } from '../api-models/fulfillment-outbound-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class FulfillmentOutboundApiClient extends FbaOutboundApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/invoices-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, InvoicesApi } from '../api-models/invoices-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class InvoicesApiClient extends InvoicesApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/listings-items-api-client-v20210801.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, ListingsApi } from '../api-models/listings-items-api-model-v20210801' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ListingsItemsApiClientV20210801 extends ListingsApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/listings-items-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, ListingsApi } from '../api-models/listings-items-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ListingsItemsApiClient extends ListingsApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/listings-restrictions-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, ListingsApi } from '../api-models/listings-restrictions-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ListingsRestrictionsApiClient extends ListingsApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/merchant-fulfillment-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, MerchantFulfillmentApi } from '../api-models/merchant-fulfillment-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class MerchantFulfillmentApiClient extends MerchantFulfillmentApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/messaging-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, MessagingApi } from '../api-models/messaging-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class MessagingApiClient extends MessagingApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/notifications-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, NotificationsApi } from '../api-models/notifications-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class NotificationsApiClient extends NotificationsApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/orders-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, OrdersApi } from '../api-models/orders-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class OrdersApiClient extends OrdersApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/product-fees-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, FeesApi } from '../api-models/product-fees-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ProductFeesApiClient extends FeesApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/product-pricing-api-client-v20220501.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, ProductPricingApi } from '../api-models/product-pricing-api-model-v20220501' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ProductPricingApiClientV20220501 extends ProductPricingApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/product-pricing-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, ProductPricingApi } from '../api-models/product-pricing-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ProductPricingApiClient extends ProductPricingApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/product-type-definitions-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, DefinitionsApi } from '../api-models/product-type-definitions-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ProductTypeDefinitionsApiClient extends DefinitionsApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/replenishment-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, OffersApi, SellingpartnersApi } from '../api-models/replenishment-api-model' 2 | import { ApiClientHelpers, applyMixins } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ReplenishmentApiClient extends OffersApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | 16 | export interface ReplenishmentApiClient extends OffersApi, SellingpartnersApi {} 17 | applyMixins(ReplenishmentApiClient, [OffersApi, SellingpartnersApi]) 18 | -------------------------------------------------------------------------------- /src/api-clients/reports-api-client-v20210630.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, ReportsApi } from '../api-models/reports-api-model-v20210630' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ReportsApiClientV20210630 extends ReportsApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/reports-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, ReportsApi } from '../api-models/reports-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ReportsApiClient extends ReportsApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/sales-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, SalesApi } from '../api-models/sales-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class SalesApiClient extends SalesApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/sellers-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, SellersApi } from '../api-models/sellers-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class SellersApiClient extends SellersApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/services-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, ServiceApi } from '../api-models/services-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ServicesApiClient extends ServiceApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/shipment-invoicing-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, ShipmentInvoiceApi } from '../api-models/shipment-invoicing-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ShipmentInvoicingApiClient extends ShipmentInvoiceApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/shipping-api-client-v2.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, ShippingApi } from '../api-models/shipping-api-model-v2' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ShippingApiClientV2 extends ShippingApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/shipping-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, ShippingApi } from '../api-models/shipping-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class ShippingApiClient extends ShippingApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/solicitations-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, SolicitationsApi } from '../api-models/solicitations-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class SolicitationsApiClient extends SolicitationsApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/supply-sources-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, SupplySourcesApi } from '../api-models/supply-sources-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class SupplySourcesApiClient extends SupplySourcesApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/tokens-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, TokensApi } from '../api-models/tokens-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class TokensApiClient extends TokensApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/uploads-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, UploadsApi } from '../api-models/uploads-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class UploadsApiClient extends UploadsApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/vendor-direct-fulfillment-inventory-api-client.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Configuration, 3 | UpdateInventoryApi, 4 | } from '../api-models/vendor-direct-fulfillment-inventory-api-model' 5 | import { ApiClientHelpers } from '../helpers' 6 | import { DEFAULT_API_BASE_PATH } from '../types' 7 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 8 | 9 | export class VendorDirectFulfillmentInventoryApiClient extends UpdateInventoryApi { 10 | constructor(parameters: APIConfigurationParameters) { 11 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 12 | 13 | const configuration = new Configuration(parameters) 14 | 15 | super(configuration, DEFAULT_API_BASE_PATH, axios) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/api-clients/vendor-direct-fulfillment-orders-api-client-v20211228.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Configuration, 3 | VendorOrdersApi, 4 | } from '../api-models/vendor-direct-fulfillment-orders-api-model-v20211228' 5 | import { ApiClientHelpers } from '../helpers' 6 | import { DEFAULT_API_BASE_PATH } from '../types' 7 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 8 | 9 | export class VendorDirectFulfillmentOrdersApiClientV20211228 extends VendorOrdersApi { 10 | constructor(parameters: APIConfigurationParameters) { 11 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 12 | 13 | const configuration = new Configuration(parameters) 14 | 15 | super(configuration, DEFAULT_API_BASE_PATH, axios) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/api-clients/vendor-direct-fulfillment-orders-api-client.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Configuration, 3 | VendorOrdersApi, 4 | } from '../api-models/vendor-direct-fulfillment-orders-api-model' 5 | import { ApiClientHelpers } from '../helpers' 6 | import { DEFAULT_API_BASE_PATH } from '../types' 7 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 8 | 9 | export class VendorDirectFulfillmentOrdersApiClient extends VendorOrdersApi { 10 | constructor(parameters: APIConfigurationParameters) { 11 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 12 | 13 | const configuration = new Configuration(parameters) 14 | 15 | super(configuration, DEFAULT_API_BASE_PATH, axios) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/api-clients/vendor-direct-fulfillment-payments-api-client.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Configuration, 3 | VendorInvoiceApi, 4 | } from '../api-models/vendor-direct-fulfillment-payments-api-model' 5 | import { ApiClientHelpers } from '../helpers' 6 | import { DEFAULT_API_BASE_PATH } from '../types' 7 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 8 | 9 | export class VendorDirectFulfillmentPaymentsApiClient extends VendorInvoiceApi { 10 | constructor(parameters: APIConfigurationParameters) { 11 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 12 | 13 | const configuration = new Configuration(parameters) 14 | 15 | super(configuration, DEFAULT_API_BASE_PATH, axios) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/api-clients/vendor-direct-fulfillment-sandbox-test-data-api-client.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Configuration, 3 | VendorDFSandboxApi, 4 | VendorDFSandboxtransactionstatusApi, 5 | } from '../api-models/vendor-direct-fulfillment-sandbox-test-data-api-model' 6 | import { ApiClientHelpers, applyMixins } from '../helpers' 7 | import { DEFAULT_API_BASE_PATH } from '../types' 8 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 9 | 10 | export class VendorDirectFulfillmentSandboxTestDataApiClient extends VendorDFSandboxApi { 11 | constructor(parameters: APIConfigurationParameters) { 12 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 13 | 14 | const configuration = new Configuration(parameters) 15 | 16 | super(configuration, DEFAULT_API_BASE_PATH, axios) 17 | } 18 | } 19 | 20 | export interface VendorDirectFulfillmentSandboxTestDataApiClient 21 | extends VendorDFSandboxApi, 22 | VendorDFSandboxtransactionstatusApi {} 23 | applyMixins(VendorDirectFulfillmentSandboxTestDataApiClient, [ 24 | VendorDFSandboxApi, 25 | VendorDFSandboxtransactionstatusApi, 26 | ]) 27 | -------------------------------------------------------------------------------- /src/api-clients/vendor-direct-fulfillment-shipping-api-client-v20211228.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Configuration, 3 | CreateContainerLabelApi, 4 | CustomerInvoicesApi, 5 | VendorShippingApi, 6 | VendorShippingLabelsApi, 7 | } from '../api-models/vendor-direct-fulfillment-shipping-api-model-v20211228' 8 | import { ApiClientHelpers, applyMixins } from '../helpers' 9 | import { DEFAULT_API_BASE_PATH } from '../types' 10 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 11 | 12 | export class VendorDirectFulfillmentShippingApiClientV20211228 extends CreateContainerLabelApi { 13 | constructor(parameters: APIConfigurationParameters) { 14 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 15 | 16 | const configuration = new Configuration(parameters) 17 | 18 | super(configuration, DEFAULT_API_BASE_PATH, axios) 19 | } 20 | } 21 | 22 | export interface VendorDirectFulfillmentShippingApiClientV20211228 23 | extends CreateContainerLabelApi, 24 | CustomerInvoicesApi, 25 | VendorShippingApi, 26 | VendorShippingLabelsApi {} 27 | applyMixins(VendorDirectFulfillmentShippingApiClientV20211228, [ 28 | CreateContainerLabelApi, 29 | CustomerInvoicesApi, 30 | VendorShippingApi, 31 | VendorShippingLabelsApi, 32 | ]) 33 | -------------------------------------------------------------------------------- /src/api-clients/vendor-direct-fulfillment-shipping-api-client.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Configuration, 3 | CustomerInvoicesApi, 4 | VendorShippingApi, 5 | VendorShippingLabelsApi, 6 | } from '../api-models/vendor-direct-fulfillment-shipping-api-model' 7 | import { ApiClientHelpers, applyMixins } from '../helpers' 8 | import { DEFAULT_API_BASE_PATH } from '../types' 9 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 10 | 11 | export class VendorDirectFulfillmentShippingApiClient extends CustomerInvoicesApi { 12 | constructor(parameters: APIConfigurationParameters) { 13 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 14 | 15 | const configuration = new Configuration(parameters) 16 | 17 | super(configuration, DEFAULT_API_BASE_PATH, axios) 18 | } 19 | } 20 | 21 | export interface VendorDirectFulfillmentShippingApiClient 22 | extends CustomerInvoicesApi, 23 | VendorShippingApi, 24 | VendorShippingLabelsApi {} 25 | applyMixins(VendorDirectFulfillmentShippingApiClient, [ 26 | CustomerInvoicesApi, 27 | VendorShippingApi, 28 | VendorShippingLabelsApi, 29 | ]) 30 | -------------------------------------------------------------------------------- /src/api-clients/vendor-direct-fulfillment-transactions-api-client-v20211228.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Configuration, 3 | VendorTransactionApi, 4 | } from '../api-models/vendor-direct-fulfillment-transactions-api-model-v20211228' 5 | import { ApiClientHelpers } from '../helpers' 6 | import { DEFAULT_API_BASE_PATH } from '../types' 7 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 8 | 9 | export class VendorDirectFulfillmentTransactionsApiClientV20211228 extends VendorTransactionApi { 10 | constructor(parameters: APIConfigurationParameters) { 11 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 12 | 13 | const configuration = new Configuration(parameters) 14 | 15 | super(configuration, DEFAULT_API_BASE_PATH, axios) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/api-clients/vendor-direct-fulfillment-transactions-api-client.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Configuration, 3 | VendorTransactionApi, 4 | } from '../api-models/vendor-direct-fulfillment-transactions-api-model' 5 | import { ApiClientHelpers } from '../helpers' 6 | import { DEFAULT_API_BASE_PATH } from '../types' 7 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 8 | 9 | export class VendorDirectFulfillmentTransactionsApiClient extends VendorTransactionApi { 10 | constructor(parameters: APIConfigurationParameters) { 11 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 12 | 13 | const configuration = new Configuration(parameters) 14 | 15 | super(configuration, DEFAULT_API_BASE_PATH, axios) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/api-clients/vendor-invoices-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, VendorInvoicesApi } from '../api-models/vendor-invoices-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class VendorInvoicesApiClient extends VendorInvoicesApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/vendor-orders-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, VendorOrdersApi } from '../api-models/vendor-orders-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class VendorOrdersApiClient extends VendorOrdersApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/vendor-shipments-api-client.ts: -------------------------------------------------------------------------------- 1 | import { Configuration, VendorShippingApi } from '../api-models/vendor-shipments-api-model' 2 | import { ApiClientHelpers } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class VendorShipmentsApiClient extends VendorShippingApi { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api-clients/vendor-transaction-status-api-client.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Configuration, 3 | VendorTransactionApi, 4 | } from '../api-models/vendor-transaction-status-api-model' 5 | import { ApiClientHelpers } from '../helpers' 6 | import { DEFAULT_API_BASE_PATH } from '../types' 7 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 8 | 9 | export class VendorTransactionStatusApiClient extends VendorTransactionApi { 10 | constructor(parameters: APIConfigurationParameters) { 11 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 12 | 13 | const configuration = new Configuration(parameters) 14 | 15 | super(configuration, DEFAULT_API_BASE_PATH, axios) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/api-models/amazon-warehousing-and-distribution-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * The Selling Partner API for Amazon Warehousing and Distribution 5 | * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory. 6 | * 7 | * The version of the OpenAPI document: 2024-05-09 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/amazon-warehousing-and-distribution-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * The Selling Partner API for Amazon Warehousing and Distribution 5 | * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory. 6 | * 7 | * The version of the OpenAPI document: 2024-05-09 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/aplus-content-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for A+ Content Management 5 | * With the A+ Content API, you can build applications that help selling partners add rich marketing content to their Amazon product detail pages. A+ content helps selling partners share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners assemble content by choosing from content modules and adding images and text. 6 | * 7 | * The version of the OpenAPI document: 2020-11-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/aplus-content-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for A+ Content Management 5 | * With the A+ Content API, you can build applications that help selling partners add rich marketing content to their Amazon product detail pages. A+ content helps selling partners share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners assemble content by choosing from content modules and adding images and text. 6 | * 7 | * The version of the OpenAPI document: 2020-11-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/application-integrations-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * The Selling Partner API for third party application integrations. 5 | * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central. 6 | * 7 | * The version of the OpenAPI document: 2024-04-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/application-integrations-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * The Selling Partner API for third party application integrations. 5 | * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central. 6 | * 7 | * The version of the OpenAPI document: 2024-04-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/application-management-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Application Management 5 | * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications. 6 | * 7 | * The version of the OpenAPI document: 2023-11-30 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/application-management-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Application Management 5 | * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications. 6 | * 7 | * The version of the OpenAPI document: 2023-11-30 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/authorization-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Authorization 5 | * The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/authorization-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Authorization 5 | * The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/catalog-items-api-model-v20201201/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Catalog Items 5 | * The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog. For more information, see the [Catalog Items API Use Case Guide](doc:catalog-items-api-v2020-12-01-use-case-guide). 6 | * 7 | * The version of the OpenAPI document: 2020-12-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/catalog-items-api-model-v20201201/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Catalog Items 5 | * The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog. For more information, see the [Catalog Items API Use Case Guide](doc:catalog-items-api-v2020-12-01-use-case-guide). 6 | * 7 | * The version of the OpenAPI document: 2020-12-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/catalog-items-api-model-v20220401/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Catalog Items v2022-04-01 5 | * The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog. For more information, refer to the [Catalog Items API Use Case Guide](doc:catalog-items-api-v2022-04-01-use-case-guide). 6 | * 7 | * The version of the OpenAPI document: 2022-04-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/catalog-items-api-model-v20220401/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Catalog Items v2022-04-01 5 | * The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog. For more information, refer to the [Catalog Items API Use Case Guide](doc:catalog-items-api-v2022-04-01-use-case-guide). 6 | * 7 | * The version of the OpenAPI document: 2022-04-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/catalog-items-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Catalog Items 5 | * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. 6 | * 7 | * The version of the OpenAPI document: v0 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/catalog-items-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Catalog Items 5 | * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. 6 | * 7 | * The version of the OpenAPI document: v0 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/data-kiosk-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Data Kiosk 5 | * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses. 6 | * 7 | * The version of the OpenAPI document: 2023-11-15 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/data-kiosk-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Data Kiosk 5 | * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses. 6 | * 7 | * The version of the OpenAPI document: 2023-11-15 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/easy-ship-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Easy Ship 5 | * The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. 6 | * 7 | * The version of the OpenAPI document: 2022-03-23 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/fba-inbound-eligibility-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for FBA Inbound Eligibilty 5 | * With the FBA Inbound Eligibility API, you can build applications that let sellers get eligibility previews for items before shipping them to Amazon\'s fulfillment centers. With this API you can find out if an item is eligible for inbound shipment to Amazon\'s fulfillment centers in a specific marketplace. You can also find out if an item is eligible for using the manufacturer barcode for FBA inventory tracking. Sellers can use this information to inform their decisions about which items to ship Amazon\'s fulfillment centers. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/fba-inventory-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for FBA Inventory 5 | * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/fba-inventory-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for FBA Inventory 5 | * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/fba-small-and-light-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for FBA Small And Light 5 | * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/feeds-api-model-v20210630/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Feeds v2021-06-30 5 | * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. 6 | * 7 | * The version of the OpenAPI document: 2021-06-30 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/feeds-api-model-v20210630/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Feeds v2021-06-30 5 | * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. 6 | * 7 | * The version of the OpenAPI document: 2021-06-30 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/feeds-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Feeds 5 | * Effective **June 27, 2024**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. 6 | * 7 | * The version of the OpenAPI document: 2020-09-04 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/feeds-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Feeds 5 | * Effective **June 27, 2024**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. 6 | * 7 | * The version of the OpenAPI document: 2020-09-04 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/finances-api-model-v20240601/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * The Selling Partner API for Transfers. 5 | * The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE. 6 | * 7 | * The version of the OpenAPI document: 2024-06-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/finances-api-model-v20240601/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * The Selling Partner API for Transfers. 5 | * The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE. 6 | * 7 | * The version of the OpenAPI document: 2024-06-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/finances-api-model-v20240619/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * The Selling Partner API for Finances 5 | * The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes. 6 | * 7 | * The version of the OpenAPI document: 2024-06-19 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/finances-api-model-v20240619/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * The Selling Partner API for Finances 5 | * The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes. 6 | * 7 | * The version of the OpenAPI document: 2024-06-19 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/finances-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Finances 5 | * The Selling Partner API for Finances helps you obtain financial information relevant to a seller\'s business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. 6 | * 7 | * The version of the OpenAPI document: v0 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/finances-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Finances 5 | * The Selling Partner API for Finances helps you obtain financial information relevant to a seller\'s business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. 6 | * 7 | * The version of the OpenAPI document: v0 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/fulfillment-inbound-api-model-v20240320/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Fulfillment Inbound v2024-03-20 5 | * The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon\'s fulfillment network. The API has interoperability with the Send-to-Amazon user interface. 6 | * 7 | * The version of the OpenAPI document: 2024-03-20 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/fulfillment-inbound-api-model-v20240320/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Fulfillment Inbound v2024-03-20 5 | * The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon\'s fulfillment network. The API has interoperability with the Send-to-Amazon user interface. 6 | * 7 | * The version of the OpenAPI document: 2024-03-20 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/fulfillment-inbound-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Fulfillment Inbound 5 | * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon\'s fulfillment network. 6 | * 7 | * The version of the OpenAPI document: v0 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/fulfillment-inbound-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Fulfillment Inbound 5 | * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon\'s fulfillment network. 6 | * 7 | * The version of the OpenAPI document: v0 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/fulfillment-outbound-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner APIs for Fulfillment Outbound 5 | * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon\'s fulfillment network. You can get information on both potential and existing fulfillment orders. 6 | * 7 | * The version of the OpenAPI document: 2020-07-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/fulfillment-outbound-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner APIs for Fulfillment Outbound 5 | * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon\'s fulfillment network. You can get information on both potential and existing fulfillment orders. 6 | * 7 | * The version of the OpenAPI document: 2020-07-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/invoices-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * The Selling Partner API for Invoices. 5 | * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes. 6 | * 7 | * The version of the OpenAPI document: 2024-06-19 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/invoices-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * The Selling Partner API for Invoices. 5 | * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes. 6 | * 7 | * The version of the OpenAPI document: 2024-06-19 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/listings-items-api-model-v20210801/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Listings Items 5 | * The Selling Partner API for Listings Items (Listings Items API) provides programmatic access to selling partner listings on Amazon. Use this API in collaboration with the Selling Partner API for Product Type Definitions, which you use to retrieve the information about Amazon product types needed to use the Listings Items API. For more information, see the [Listings Items API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/listings-items-api-v2021-08-01-use-case-guide). 6 | * 7 | * The version of the OpenAPI document: 2021-08-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/listings-items-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Listings Items 5 | * The Selling Partner API for Listings Items (Listings Items API) provides programmatic access to selling partner listings on Amazon. Use this API in collaboration with the Selling Partner API for Product Type Definitions, which you use to retrieve the information about Amazon product types needed to use the Listings Items API. For more information, see the [Listing Items API Use Case Guide](doc:listings-items-api-v2020-09-01-use-case-guide). 6 | * 7 | * The version of the OpenAPI document: 2020-09-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/listings-restrictions-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Listings Restrictions 5 | * The Selling Partner API for Listings Restrictions provides programmatic access to restrictions on Amazon catalog listings. For more information, see the [Listings Restrictions API Use Case Guide](doc:listings-restrictions-api-v2021-08-01-use-case-guide). 6 | * 7 | * The version of the OpenAPI document: 2021-08-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/listings-restrictions-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Listings Restrictions 5 | * The Selling Partner API for Listings Restrictions provides programmatic access to restrictions on Amazon catalog listings. For more information, see the [Listings Restrictions API Use Case Guide](doc:listings-restrictions-api-v2021-08-01-use-case-guide). 6 | * 7 | * The version of the OpenAPI document: 2021-08-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/merchant-fulfillment-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Merchant Fulfillment 5 | * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\'s Buy Shipping Services. 6 | * 7 | * The version of the OpenAPI document: v0 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/merchant-fulfillment-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Merchant Fulfillment 5 | * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon\'s Buy Shipping Services. 6 | * 7 | * The version of the OpenAPI document: v0 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/messaging-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Messaging 5 | * With the Messaging API you can build applications that send messages to buyers. You can get a list of message types that are available for an order that you specify, then call an operation that sends a message to the buyer for that order. The Messaging API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/notifications-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Notifications 5 | * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, refer to the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/orders-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Orders v0 5 | * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response). 6 | * 7 | * The version of the OpenAPI document: v0 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/product-fees-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Product Fees 5 | * The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing. 6 | * 7 | * The version of the OpenAPI document: v0 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/product-fees-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Product Fees 5 | * The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing. 6 | * 7 | * The version of the OpenAPI document: v0 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/product-pricing-api-model-v20220501/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Pricing 5 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the [Product Pricing v2022-05-01 Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide). 6 | * 7 | * The version of the OpenAPI document: 2022-05-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/product-pricing-api-model-v20220501/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Pricing 5 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the [Product Pricing v2022-05-01 Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide). 6 | * 7 | * The version of the OpenAPI document: 2022-05-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/product-pricing-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Pricing 5 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 6 | * 7 | * The version of the OpenAPI document: v0 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/product-pricing-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Pricing 5 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 6 | * 7 | * The version of the OpenAPI document: v0 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/product-type-definitions-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Product Type Definitions 5 | * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](doc:product-type-api-use-case-guide). 6 | * 7 | * The version of the OpenAPI document: 2020-09-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/replenishment-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Replenishment 5 | * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery of any replenishable item at a frequency chosen by the customer. The Replenishment API is available worldwide wherever Amazon Subscribe & Save is available or is supported. The API is available to vendors and FBA selling partners. 6 | * 7 | * The version of the OpenAPI document: 2022-11-07 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/reports-api-model-v20210630/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Report v2021-06-30 5 | * The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses. 6 | * 7 | * The version of the OpenAPI document: 2021-06-30 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/reports-api-model-v20210630/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Report v2021-06-30 5 | * The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses. 6 | * 7 | * The version of the OpenAPI document: 2021-06-30 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/reports-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Reports 5 | * Effective **June 27, 2024**, the Selling Partner API for Reports v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Reports API must migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. 6 | * 7 | * The version of the OpenAPI document: 2020-09-04 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/reports-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Reports 5 | * Effective **June 27, 2024**, the Selling Partner API for Reports v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Reports API must migrate to [Reports v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) to avoid service disruption. 6 | * 7 | * The version of the OpenAPI document: 2020-09-04 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/sales-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Sales 5 | * The Selling Partner API for Sales provides APIs related to sales performance. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/sales-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Sales 5 | * The Selling Partner API for Sales provides APIs related to sales performance. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/sellers-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * The Selling Partner API for Sellers 5 | * The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/services-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Services 5 | * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/services-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Services 5 | * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/shipment-invoicing-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Shipment Invoicing 5 | * The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders. 6 | * 7 | * The version of the OpenAPI document: v0 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "http://localhost".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/shipment-invoicing-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Shipment Invoicing 5 | * The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders. 6 | * 7 | * The version of the OpenAPI document: v0 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/shipping-api-model-v2/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Amazon Shipping API 5 | * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. 6 | * 7 | * The version of the OpenAPI document: v2 8 | * Contact: swa-api-core@amazon.com 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-eu.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/shipping-api-model-v2/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Amazon Shipping API 5 | * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. 6 | * 7 | * The version of the OpenAPI document: v2 8 | * Contact: swa-api-core@amazon.com 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/shipping-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Shipping 5 | * Provides programmatic access to Amazon Shipping APIs. **Note:** If you are new to the Amazon Shipping API, refer to the latest version of Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/shipping-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Shipping 5 | * Provides programmatic access to Amazon Shipping APIs. **Note:** If you are new to the Amazon Shipping API, refer to the latest version of Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/solicitations-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Solicitations 5 | * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient\'s Message Center. The Solicitations API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/supply-sources-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Supply Sources 5 | * Manage configurations and capabilities of seller supply sources. 6 | * 7 | * The version of the OpenAPI document: 2020-07-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/supply-sources-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Supply Sources 5 | * Manage configurations and capabilities of seller supply sources. 6 | * 7 | * The version of the OpenAPI document: 2020-07-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/tokens-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Tokens 5 | * The Selling Partner API for Tokens provides a secure way to access a customer\'s PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified. For more information, see the [Tokens API Use Case Guide](doc:tokens-api-use-case-guide). 6 | * 7 | * The version of the OpenAPI document: 2021-03-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/uploads-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Uploads 5 | * The Uploads API lets you upload files that you can programmatically access using other Selling Partner APIs, such as the A+ Content API and the Messaging API. 6 | * 7 | * The version of the OpenAPI document: 2020-11-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/uploads-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Uploads 5 | * The Uploads API lets you upload files that you can programmatically access using other Selling Partner APIs, such as the A+ Content API and the Messaging API. 6 | * 7 | * The version of the OpenAPI document: 2020-11-01 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-inventory-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Inventory Updates 5 | * The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor\'s inventory updates. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-inventory-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Inventory Updates 5 | * The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor\'s inventory updates. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-orders-api-model-v20211228/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Orders 5 | * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data. 6 | * 7 | * The version of the OpenAPI document: 2021-12-28 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-orders-api-model-v20211228/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Orders 5 | * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data. 6 | * 7 | * The version of the OpenAPI document: 2021-12-28 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-orders-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Orders 5 | * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-orders-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Orders 5 | * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-payments-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Payments 5 | * The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-payments-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Payments 5 | * The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-sandbox-test-data-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Vendor Direct Fulfillment Sandbox Test Data 5 | * The Selling Partner API for Vendor Direct Fulfillment Sandbox Test Data provides programmatic access to vendor direct fulfillment sandbox test data. 6 | * 7 | * The version of the OpenAPI document: 2021-10-28 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sandbox.sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-sandbox-test-data-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Vendor Direct Fulfillment Sandbox Test Data 5 | * The Selling Partner API for Vendor Direct Fulfillment Sandbox Test Data provides programmatic access to vendor direct fulfillment sandbox test data. 6 | * 7 | * The version of the OpenAPI document: 2021-10-28 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-shipping-api-model-v20211228/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Shipping 5 | * Use the Selling Partner API for Direct Fulfillment Shipping to access a direct fulfillment vendor\'s shipping data. 6 | * 7 | * The version of the OpenAPI document: 2021-12-28 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-shipping-api-model-v20211228/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Shipping 5 | * Use the Selling Partner API for Direct Fulfillment Shipping to access a direct fulfillment vendor\'s shipping data. 6 | * 7 | * The version of the OpenAPI document: 2021-12-28 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-shipping-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Shipping 5 | * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-shipping-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Shipping 5 | * The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-transactions-api-model-v20211228/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Transaction Status 5 | * The Selling Partner API for Direct Fulfillment Transaction Status provides programmatic access to a direct fulfillment vendor\'s transaction status. 6 | * 7 | * The version of the OpenAPI document: 2021-12-28 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-transactions-api-model-v20211228/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Transaction Status 5 | * The Selling Partner API for Direct Fulfillment Transaction Status provides programmatic access to a direct fulfillment vendor\'s transaction status. 6 | * 7 | * The version of the OpenAPI document: 2021-12-28 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-transactions-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Transaction Status 5 | * The Selling Partner API for Direct Fulfillment Transaction Status provides programmatic access to a direct fulfillment vendor\'s transaction status. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/vendor-direct-fulfillment-transactions-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Direct Fulfillment Transaction Status 5 | * The Selling Partner API for Direct Fulfillment Transaction Status provides programmatic access to a direct fulfillment vendor\'s transaction status. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/vendor-invoices-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Vendor Invoices v1 5 | * The Selling Partner API for Retail Procurement Payments provides programmatic access to vendors payments data. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/vendor-invoices-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Vendor Invoices v1 5 | * The Selling Partner API for Retail Procurement Payments provides programmatic access to vendors payments data. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/vendor-orders-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Retail Procurement Orders 5 | * The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/vendor-orders-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Retail Procurement Orders 5 | * The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/vendor-shipments-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Retail Procurement Shipments 5 | * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/vendor-shipments-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Retail Procurement Shipments 5 | * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/api-models/vendor-transaction-status-api-model/base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Retail Procurement Transaction Status 5 | * The Selling Partner API for Retail Procurement Transaction Status provides programmatic access to status information on specific asynchronous POST transactions for vendors. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | import { Configuration } from "./configuration"; 17 | // Some imports not used depending on template conditions 18 | // @ts-ignore 19 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 20 | 21 | export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); 22 | 23 | /** 24 | * 25 | * @export 26 | */ 27 | export const COLLECTION_FORMATS = { 28 | csv: ",", 29 | ssv: " ", 30 | tsv: "\t", 31 | pipes: "|", 32 | }; 33 | 34 | /** 35 | * 36 | * @export 37 | * @interface RequestArgs 38 | */ 39 | export interface RequestArgs { 40 | url: string; 41 | options: any; 42 | } 43 | 44 | /** 45 | * 46 | * @export 47 | * @class BaseAPI 48 | */ 49 | export class BaseAPI { 50 | protected configuration: Configuration | undefined; 51 | 52 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 53 | if (configuration) { 54 | this.configuration = configuration; 55 | this.basePath = configuration.basePath || this.basePath; 56 | } 57 | } 58 | }; 59 | 60 | /** 61 | * 62 | * @export 63 | * @class RequiredError 64 | * @extends {Error} 65 | */ 66 | export class RequiredError extends Error { 67 | name: "RequiredError" = "RequiredError"; 68 | constructor(public field: string, msg?: string) { 69 | super(msg); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/api-models/vendor-transaction-status-api-model/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Selling Partner API for Retail Procurement Transaction Status 5 | * The Selling Partner API for Retail Procurement Transaction Status provides programmatic access to status information on specific asynchronous POST transactions for vendors. 6 | * 7 | * The version of the OpenAPI document: v1 8 | * 9 | * 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * https://openapi-generator.tech 12 | * Do not edit the class manually. 13 | */ 14 | 15 | 16 | export * from "./api"; 17 | export * from "./configuration"; 18 | 19 | -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The version value is automatically replaced during builds. 3 | */ 4 | export const USER_AGENT = '@scaleleap/selling-partner-api-sdk/0.0.0' 5 | -------------------------------------------------------------------------------- /src/helpers/apply-mixins.ts: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types 2 | export function applyMixins(derivedCtor: any, baseCtors: any[]): void { 3 | for (const baseCtor of baseCtors) { 4 | for (const name of Object.getOwnPropertyNames(baseCtor.prototype)) { 5 | const baseCtorName = Object.getOwnPropertyDescriptor(baseCtor.prototype, name) 6 | if (baseCtorName) { 7 | Object.defineProperty(derivedCtor.prototype, name, baseCtorName) 8 | } 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/helpers/index.ts: -------------------------------------------------------------------------------- 1 | export * from './api-client-helpers' 2 | export * from './api-error-factory' 3 | export * from './apply-mixins' 4 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './api-clients' 2 | export * from './types' 3 | export * from './api-models' 4 | -------------------------------------------------------------------------------- /src/types/api-clients/amazon-selling-partner-api-base-path.ts: -------------------------------------------------------------------------------- 1 | export const DEFAULT_API_BASE_PATH = 'https://sellingpartnerapi-na.amazon.com' 2 | -------------------------------------------------------------------------------- /src/types/api-clients/amazon-selling-partner-api-credentials.ts: -------------------------------------------------------------------------------- 1 | export interface AmazonSellingPartnerAPICredentials { 2 | accessKeyId: string 3 | secretAccessKey: string 4 | sessionToken?: string 5 | } 6 | -------------------------------------------------------------------------------- /src/types/api-clients/api-configuration-parameters.ts: -------------------------------------------------------------------------------- 1 | import { AxiosInstance, AxiosRequestConfig } from 'axios' 2 | 3 | import { AmazonSellingPartnerAPICredentials } from './amazon-selling-partner-api-credentials' 4 | 5 | export interface APIConfigurationParameters { 6 | /** 7 | * Axios Instance 8 | * 9 | * @type {AxiosInstance} 10 | * @memberof APIConfigurationParameters 11 | */ 12 | axios?: AxiosInstance 13 | 14 | /** 15 | * parameter for oauth2 security 16 | * 17 | * @memberof APIConfigurationParameters 18 | */ 19 | accessToken?: string 20 | 21 | /** 22 | * override base path 23 | * 24 | * @type {string} 25 | * @memberof APIConfigurationParameters 26 | */ 27 | basePath?: string 28 | 29 | /** 30 | * base options for axios calls 31 | * 32 | * @type {AxiosRequestConfig} 33 | * @memberof APIConfigurationParameters 34 | */ 35 | baseOptions?: AxiosRequestConfig 36 | 37 | /** 38 | * Selling partner API credentials 39 | * 40 | * @deprecated Amazon no longer requires the requests to be signed with AWS4 41 | * @type {AmazonSellingPartnerAPICredentials} 42 | * @memberof APIConfigurationParameters 43 | */ 44 | credentials?: AmazonSellingPartnerAPICredentials 45 | 46 | /** 47 | * Selling partner API region 48 | * 49 | * @type {string} 50 | * @memberof APIConfigurationParameters 51 | */ 52 | region?: string 53 | 54 | /** 55 | * ARN of the IAM Role to be assumed to get the credentials from. 56 | * 57 | * @deprecated Amazon no longer requires the requests to be signed with AWS4 58 | * @type {string} 59 | * @memberof APIConfigurationParameters 60 | */ 61 | roleArn?: string 62 | } 63 | -------------------------------------------------------------------------------- /src/types/api-clients/index.ts: -------------------------------------------------------------------------------- 1 | export * from './amazon-selling-partner-api-base-path' 2 | export * from './amazon-selling-partner-api-credentials' 3 | export * from './api-configuration-parameters' 4 | -------------------------------------------------------------------------------- /src/types/errors/index.ts: -------------------------------------------------------------------------------- 1 | export * from './selling-partner-api-errors' 2 | export * from './selling-partner-mismatch-region-error' 3 | export * from './selling-partner-not-found-region-error' 4 | -------------------------------------------------------------------------------- /src/types/errors/selling-partner-mismatch-region-error.ts: -------------------------------------------------------------------------------- 1 | import { ExtendableError } from 'ts-error' 2 | 3 | export class SellingPartnerMismatchRegionError extends ExtendableError { 4 | public constructor( 5 | public defaultRegion: string, 6 | public region: string, 7 | ) { 8 | super(`There is a mismatch between region parameter and region in default base path! 9 | Default Region: ${defaultRegion} 10 | Region: ${region} 11 | `) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/types/errors/selling-partner-not-found-region-error.ts: -------------------------------------------------------------------------------- 1 | import { ExtendableError } from 'ts-error' 2 | 3 | export class SellingPartnerNotFoundRegionError extends ExtendableError { 4 | public constructor(public basePath: string) { 5 | super(`Region cannot be found in ${basePath}, needs to be added!`) 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from './api-clients' 2 | export * from './errors' 3 | -------------------------------------------------------------------------------- /test/authentication.ts: -------------------------------------------------------------------------------- 1 | import axios from 'axios' 2 | 3 | import { APIConfigurationParameters } from '../src' 4 | import * as environment from './environment' 5 | 6 | export interface TokenResponse { 7 | /* eslint-disable camelcase */ 8 | access_token: string 9 | expires_in: number 10 | refresh_token: string 11 | /* eslint-enable camelcase */ 12 | } 13 | 14 | export async function getTokens(): Promise { 15 | const { data: tokens } = await axios.post('https://api.amazon.com/auth/o2/token', { 16 | grant_type: 'refresh_token', 17 | client_id: environment.CLIENT_ID, 18 | client_secret: environment.CLIENT_SECRET, 19 | refresh_token: environment.REFRESH_TOKEN, 20 | }) 21 | 22 | return tokens 23 | } 24 | 25 | export async function generateAPIConfigurations( 26 | region: string, 27 | basePath: string, 28 | tokens: TokenResponse, 29 | ): Promise { 30 | return { 31 | basePath, 32 | region, 33 | accessToken: tokens.access_token, 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /test/environment.ts: -------------------------------------------------------------------------------- 1 | import env from 'env-var' 2 | 3 | /** 4 | * Reads environment variables. 5 | * 6 | * Set either via CLI or in the `.env` file. 7 | * 8 | * @example 9 | * 10 | * `CLIENT_ID=xyz npm start` 11 | */ 12 | 13 | export const AWS_ACCESS_KEY_ID = env.get('AWS_ACCESS_KEY_ID').required().asString() 14 | 15 | export const AWS_SECRET_ACCESS_KEY = env.get('AWS_SECRET_ACCESS_KEY').required().asString() 16 | 17 | export const CLIENT_ID = env.get('CLIENT_ID').required().asString() 18 | 19 | export const CLIENT_SECRET = env.get('CLIENT_SECRET').required().asString() 20 | 21 | export const REFRESH_TOKEN = env.get('REFRESH_TOKEN').required().asString() 22 | 23 | export const ROLE_ARN = env.get('ROLE_ARN').required().asString() 24 | -------------------------------------------------------------------------------- /test/integration/sellers-api-client.test.ts: -------------------------------------------------------------------------------- 1 | import { 2 | APIConfigurationParameters, 3 | ReportsApiClientV20210630 as ReportsApiClient, 4 | } from '../../src' 5 | import { SellersApiClient } from '../../src/api-clients/sellers-api-client' 6 | import { generateAPIConfigurations, getTokens, TokenResponse } from '../authentication' 7 | 8 | const regions: [string, string][] = [ 9 | ['us-east-1', 'https://sellingpartnerapi-na.amazon.com'], 10 | // ['eu-west-1', 'https://sandbox.sellingpartnerapi-eu.amazon.com'], 11 | // ['us-west-2', ''], 12 | ] 13 | 14 | jest.setTimeout(24 * 1000) 15 | 16 | describe(`${SellersApiClient.name}`, () => { 17 | describe.each(regions)('for region %s', (region, basePath) => { 18 | let tokens: TokenResponse 19 | let apiConfigurationParameters: APIConfigurationParameters 20 | 21 | beforeAll(async () => { 22 | tokens = await getTokens() 23 | apiConfigurationParameters = await generateAPIConfigurations(region, basePath, tokens) 24 | }) 25 | 26 | it('should return the list of marketplaces', async () => { 27 | expect.assertions(1) 28 | 29 | const client = new SellersApiClient(apiConfigurationParameters) 30 | 31 | const { data: marketplaceParticipations } = await client.getMarketplaceParticipations() 32 | 33 | expect(marketplaceParticipations.payload).toBeInstanceOf(Array) 34 | }) 35 | 36 | it('should return an array of reports', async () => { 37 | expect.assertions(1) 38 | 39 | const client = new ReportsApiClient(apiConfigurationParameters) 40 | 41 | const { data: reports } = await client.getReports({ 42 | reportTypes: ['GET_MERCHANT_LISTINGS_ALL_DATA'], 43 | }) 44 | 45 | expect(reports.reports).toBeInstanceOf(Array) 46 | }) 47 | }) 48 | }) 49 | -------------------------------------------------------------------------------- /test/integration/vendor-direct-fulfillment-shipping-api-client.test.ts: -------------------------------------------------------------------------------- 1 | import { APIConfigurationParameters, VendorDirectFulfillmentShippingApiClient } from '../../src' 2 | import { generateAPIConfigurations, getTokens, TokenResponse } from '../authentication' 3 | 4 | const regions: [string, string][] = [ 5 | ['us-east-1', 'https://sandbox.sellingpartnerapi-na.amazon.com'], 6 | ] 7 | 8 | jest.setTimeout(24 * 1000) 9 | 10 | // TODO: need to check again when grant access to resource 11 | // eslint-disable-next-line jest/no-disabled-tests 12 | describe.skip(`${VendorDirectFulfillmentShippingApiClient.name}`, () => { 13 | describe.each(regions)('for region %s', (region, basePath) => { 14 | let tokens: TokenResponse 15 | let apiConfigurationParameters: APIConfigurationParameters 16 | 17 | beforeAll(async () => { 18 | tokens = await getTokens() 19 | apiConfigurationParameters = await generateAPIConfigurations(region, basePath, tokens) 20 | }) 21 | 22 | it('should return the list of object', async () => { 23 | expect.assertions(1) 24 | 25 | const client = new VendorDirectFulfillmentShippingApiClient(apiConfigurationParameters) 26 | 27 | const parameters = { 28 | createdBefore: '2020-02-20T00:00:00-08:00', 29 | createdAfter: '2020-02-15T14:00:00-08:00', 30 | limit: 2, 31 | } 32 | 33 | const { data: labels } = await client.getShippingLabels(parameters) 34 | 35 | expect(labels.payload).toBeInstanceOf(Array) 36 | }) 37 | }) 38 | }) 39 | -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "outDir": "lib" 5 | }, 6 | "exclude": [ 7 | "src/**/*.test.ts", 8 | "**/__test__/**", 9 | "test", 10 | "dangerfile.ts" 11 | ] 12 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "tsconfigs/nodejs-module", 3 | "compilerOptions": { 4 | "lib": [ 5 | "ES2019", 6 | "DOM" 7 | ], 8 | "noImplicitAny": false, 9 | "target": "ES2019" 10 | }, 11 | "include": [ 12 | "src/**/*.ts", 13 | "test/**/*.ts" 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "entryPoints": [ 3 | "./src/index.ts" 4 | ], 5 | "exclude": [ 6 | "**/*.test.ts" 7 | ], 8 | "out": "docs/typedoc", 9 | "excludePrivate": true, 10 | "excludeProtected": true, 11 | "theme": "default", 12 | "hideGenerator": true 13 | } 14 | -------------------------------------------------------------------------------- /utils/bump-version.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Syncs package.json version with constants file for release. 3 | * 4 | * Triggered inside `postversion` hook in package.json. 5 | * 6 | * See: https://semantic-release.gitbook.io/semantic-release/support/faq#how-can-i-use-a-npm-build-script-that-requires-the-package-jsons-version 7 | */ 8 | 9 | import { readFileSync, writeFileSync } from 'fs' 10 | import path from 'path' 11 | 12 | import { name, version } from '../package.json' 13 | import { USER_AGENT } from '../src/constants' 14 | 15 | const CONSTANTS_FILE = path.join(__dirname, '../lib/constants.js') 16 | 17 | const constants = readFileSync(CONSTANTS_FILE, { encoding: 'utf8' }) 18 | const replaced = constants.replace(USER_AGENT, `${name}/${version}`) 19 | 20 | writeFileSync(CONSTANTS_FILE, replaced, { encoding: 'utf8' }) 21 | -------------------------------------------------------------------------------- /utils/generator/api-client-template.ts: -------------------------------------------------------------------------------- 1 | export const apiClientTemplate = `import { <%= importApiModelClassName %>, Configuration } from '../api-models/<%= dirname %>' 2 | import { <%= importHelpers %> } from '../helpers' 3 | import { DEFAULT_API_BASE_PATH } from '../types' 4 | import { APIConfigurationParameters } from '../types/api-clients/api-configuration-parameters' 5 | 6 | export class <%= apiClientClassName %> extends <%= apiModelClassName %> { 7 | constructor(parameters: APIConfigurationParameters) { 8 | const axios = ApiClientHelpers.getAxiosInstance(parameters) 9 | 10 | const configuration = new Configuration(parameters) 11 | 12 | super(configuration, DEFAULT_API_BASE_PATH, axios) 13 | } 14 | } 15 | <%= extendable %> 16 | ` 17 | -------------------------------------------------------------------------------- /utils/generator/api-model.ts: -------------------------------------------------------------------------------- 1 | export interface APIModel { 2 | modelPath: string 3 | dirname: string 4 | outputPath: string 5 | } 6 | -------------------------------------------------------------------------------- /utils/generator/constants.ts: -------------------------------------------------------------------------------- 1 | export const TS_CONFIG_FILE_PATH = 'tsconfig.build.json' 2 | export const API_MODEL_FILE_NAME = 'api.ts' 3 | export const TS_LIB_FOLDER_PATH = 'node_modules/typescript/lib' 4 | -------------------------------------------------------------------------------- /utils/generator/parser.ts: -------------------------------------------------------------------------------- 1 | import SwaggerParser from '@apidevtools/swagger-parser' 2 | import { OpenAPI } from 'openapi-types' 3 | 4 | export class Parser { 5 | private api: Promise 6 | 7 | constructor(api: string | OpenAPI.Document) { 8 | this.api = SwaggerParser.parse(api) 9 | } 10 | 11 | get version(): Promise { 12 | return this.api.then((document) => document.info.version) 13 | } 14 | } 15 | --------------------------------------------------------------------------------