@pollination-solutions/pollination-sdk 0.24.0 → 0.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.apigentools-info +3 -3
- package/.openapi-generator/FILES +11 -33
- package/README.md +1 -1
- package/api/accounts-api.ts +1 -1
- package/api/apitokens-api.ts +1 -1
- package/api/artifacts-api.ts +1 -1
- package/api/jobs-api.ts +1 -1
- package/api/licenses-api.ts +1 -1
- package/api/orgs-api.ts +1 -1
- package/api/plugins-api.ts +1 -1
- package/api/projects-api.ts +1 -1
- package/api/recipes-api.ts +1 -1
- package/api/registries-api.ts +1 -1
- package/api/runs-api.ts +1 -1
- package/api/subscription-plans-api.ts +151 -0
- package/api/subscriptions-api.ts +514 -48
- package/api/teams-api.ts +1 -1
- package/api/user-api.ts +1 -1
- package/api/users-api.ts +1 -1
- package/api.ts +2 -2
- package/base.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/accounts-api.d.ts +5 -5
- package/dist/api/accounts-api.js +1 -1
- package/dist/api/apitokens-api.d.ts +5 -5
- package/dist/api/apitokens-api.js +1 -1
- package/dist/api/artifacts-api.d.ts +5 -5
- package/dist/api/artifacts-api.js +1 -1
- package/dist/api/jobs-api.d.ts +8 -8
- package/dist/api/jobs-api.js +1 -1
- package/dist/api/licenses-api.d.ts +9 -9
- package/dist/api/licenses-api.js +1 -1
- package/dist/api/orgs-api.d.ts +9 -9
- package/dist/api/orgs-api.js +1 -1
- package/dist/api/plugins-api.d.ts +12 -12
- package/dist/api/plugins-api.js +1 -1
- package/dist/api/projects-api.d.ts +13 -13
- package/dist/api/projects-api.js +1 -1
- package/dist/api/recipes-api.d.ts +12 -12
- package/dist/api/recipes-api.js +1 -1
- package/dist/api/registries-api.d.ts +6 -6
- package/dist/api/registries-api.js +1 -1
- package/dist/api/runs-api.d.ts +10 -10
- package/dist/api/runs-api.js +1 -1
- package/dist/api/subscription-plans-api.d.ts +88 -0
- package/dist/api/subscription-plans-api.js +138 -0
- package/dist/api/subscriptions-api.d.ts +230 -32
- package/dist/api/subscriptions-api.js +407 -37
- package/dist/api/teams-api.d.ts +9 -9
- package/dist/api/teams-api.js +1 -1
- package/dist/api/user-api.d.ts +5 -5
- package/dist/api/user-api.js +1 -1
- package/dist/api/users-api.d.ts +4 -4
- package/dist/api/users-api.js +1 -1
- package/dist/api.d.ts +2 -2
- package/dist/api.js +2 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/accessor.d.ts +1 -1
- package/dist/models/accessor.js +1 -1
- package/dist/models/account-public.d.ts +1 -1
- package/dist/models/account-public.js +1 -1
- package/dist/models/account-type.d.ts +1 -1
- package/dist/models/account-type.js +1 -1
- package/dist/models/activation-list.d.ts +1 -1
- package/dist/models/activation-list.js +1 -1
- package/dist/models/activation.d.ts +1 -1
- package/dist/models/activation.js +1 -1
- package/dist/models/apitoken-create.d.ts +1 -1
- package/dist/models/apitoken-create.js +1 -1
- package/dist/models/apitoken-list.d.ts +1 -1
- package/dist/models/apitoken-list.js +1 -1
- package/dist/models/apitoken-private.d.ts +1 -1
- package/dist/models/apitoken-private.js +1 -1
- package/dist/models/apitoken.d.ts +1 -1
- package/dist/models/apitoken.js +1 -1
- package/dist/models/baked-recipe.d.ts +1 -1
- package/dist/models/baked-recipe.js +1 -1
- package/dist/models/billing-info.d.ts +81 -0
- package/dist/models/{card-public.js → billing-info.js} +1 -1
- package/dist/models/billing-option.d.ts +50 -0
- package/dist/models/{discount-amount.js → billing-option.js} +1 -1
- package/dist/models/body-post-plugin-owner-plugins-post.d.ts +1 -1
- package/dist/models/body-post-plugin-owner-plugins-post.js +1 -1
- package/dist/models/body-post-recipe-owner-recipes-post.d.ts +1 -1
- package/dist/models/body-post-recipe-owner-recipes-post.js +1 -1
- package/dist/models/{invoice-status.d.ts → card-type.d.ts} +10 -7
- package/dist/models/card-type.js +32 -0
- package/dist/models/cloud-job-list.d.ts +1 -1
- package/dist/models/cloud-job-list.js +1 -1
- package/dist/models/cloud-job.d.ts +1 -1
- package/dist/models/cloud-job.js +1 -1
- package/dist/models/created-content.d.ts +1 -1
- package/dist/models/created-content.js +1 -1
- package/dist/models/dag.d.ts +1 -1
- package/dist/models/dag.js +1 -1
- package/dist/models/dagarray-input-alias.d.ts +1 -1
- package/dist/models/dagarray-input-alias.js +1 -1
- package/dist/models/dagarray-input.d.ts +1 -1
- package/dist/models/dagarray-input.js +1 -1
- package/dist/models/dagarray-output-alias.d.ts +1 -1
- package/dist/models/dagarray-output-alias.js +1 -1
- package/dist/models/dagarray-output.d.ts +1 -1
- package/dist/models/dagarray-output.js +1 -1
- package/dist/models/dagboolean-input-alias.d.ts +1 -1
- package/dist/models/dagboolean-input-alias.js +1 -1
- package/dist/models/dagboolean-input.d.ts +1 -1
- package/dist/models/dagboolean-input.js +1 -1
- package/dist/models/dagboolean-output-alias.d.ts +1 -1
- package/dist/models/dagboolean-output-alias.js +1 -1
- package/dist/models/dagboolean-output.d.ts +1 -1
- package/dist/models/dagboolean-output.js +1 -1
- package/dist/models/dagfile-input-alias.d.ts +1 -1
- package/dist/models/dagfile-input-alias.js +1 -1
- package/dist/models/dagfile-input.d.ts +1 -1
- package/dist/models/dagfile-input.js +1 -1
- package/dist/models/dagfile-output-alias.d.ts +1 -1
- package/dist/models/dagfile-output-alias.js +1 -1
- package/dist/models/dagfile-output.d.ts +1 -1
- package/dist/models/dagfile-output.js +1 -1
- package/dist/models/dagfolder-input-alias.d.ts +1 -1
- package/dist/models/dagfolder-input-alias.js +1 -1
- package/dist/models/dagfolder-input.d.ts +1 -1
- package/dist/models/dagfolder-input.js +1 -1
- package/dist/models/dagfolder-output-alias.d.ts +1 -1
- package/dist/models/dagfolder-output-alias.js +1 -1
- package/dist/models/dagfolder-output.d.ts +1 -1
- package/dist/models/dagfolder-output.js +1 -1
- package/dist/models/daggeneric-input-alias.d.ts +1 -1
- package/dist/models/daggeneric-input-alias.js +1 -1
- package/dist/models/daggeneric-input.d.ts +1 -1
- package/dist/models/daggeneric-input.js +1 -1
- package/dist/models/daggeneric-output-alias.d.ts +1 -1
- package/dist/models/daggeneric-output-alias.js +1 -1
- package/dist/models/daggeneric-output.d.ts +1 -1
- package/dist/models/daggeneric-output.js +1 -1
- package/dist/models/daginteger-input-alias.d.ts +1 -1
- package/dist/models/daginteger-input-alias.js +1 -1
- package/dist/models/daginteger-input.d.ts +1 -1
- package/dist/models/daginteger-input.js +1 -1
- package/dist/models/daginteger-output-alias.d.ts +1 -1
- package/dist/models/daginteger-output-alias.js +1 -1
- package/dist/models/daginteger-output.d.ts +1 -1
- package/dist/models/daginteger-output.js +1 -1
- package/dist/models/dagjsonobject-input-alias.d.ts +1 -1
- package/dist/models/dagjsonobject-input-alias.js +1 -1
- package/dist/models/dagjsonobject-input.d.ts +1 -1
- package/dist/models/dagjsonobject-input.js +1 -1
- package/dist/models/dagjsonobject-output-alias.d.ts +1 -1
- package/dist/models/dagjsonobject-output-alias.js +1 -1
- package/dist/models/dagjsonobject-output.d.ts +1 -1
- package/dist/models/dagjsonobject-output.js +1 -1
- package/dist/models/daglinked-input-alias.d.ts +1 -1
- package/dist/models/daglinked-input-alias.js +1 -1
- package/dist/models/daglinked-output-alias.d.ts +1 -1
- package/dist/models/daglinked-output-alias.js +1 -1
- package/dist/models/dagnumber-input-alias.d.ts +1 -1
- package/dist/models/dagnumber-input-alias.js +1 -1
- package/dist/models/dagnumber-input.d.ts +1 -1
- package/dist/models/dagnumber-input.js +1 -1
- package/dist/models/dagnumber-output-alias.d.ts +1 -1
- package/dist/models/dagnumber-output-alias.js +1 -1
- package/dist/models/dagnumber-output.d.ts +1 -1
- package/dist/models/dagnumber-output.js +1 -1
- package/dist/models/dagpath-input-alias.d.ts +1 -1
- package/dist/models/dagpath-input-alias.js +1 -1
- package/dist/models/dagpath-input.d.ts +1 -1
- package/dist/models/dagpath-input.js +1 -1
- package/dist/models/dagpath-output-alias.d.ts +1 -1
- package/dist/models/dagpath-output-alias.js +1 -1
- package/dist/models/dagpath-output.d.ts +1 -1
- package/dist/models/dagpath-output.js +1 -1
- package/dist/models/dagstring-input-alias.d.ts +1 -1
- package/dist/models/dagstring-input-alias.js +1 -1
- package/dist/models/dagstring-input.d.ts +1 -1
- package/dist/models/dagstring-input.js +1 -1
- package/dist/models/dagstring-output-alias.d.ts +1 -1
- package/dist/models/dagstring-output-alias.js +1 -1
- package/dist/models/dagstring-output.d.ts +1 -1
- package/dist/models/dagstring-output.js +1 -1
- package/dist/models/dagtask-loop.d.ts +1 -1
- package/dist/models/dagtask-loop.js +1 -1
- package/dist/models/dagtask.d.ts +1 -1
- package/dist/models/dagtask.js +1 -1
- package/dist/models/daily-usage.d.ts +1 -1
- package/dist/models/daily-usage.js +1 -1
- package/dist/models/dependency-kind.d.ts +1 -1
- package/dist/models/dependency-kind.js +1 -1
- package/dist/models/dependency.d.ts +1 -1
- package/dist/models/dependency.js +1 -1
- package/dist/models/docker-config.d.ts +1 -1
- package/dist/models/docker-config.js +1 -1
- package/dist/models/file-meta.d.ts +1 -1
- package/dist/models/file-meta.js +1 -1
- package/dist/models/file-reference.d.ts +1 -1
- package/dist/models/file-reference.js +1 -1
- package/dist/models/folder-reference.d.ts +1 -1
- package/dist/models/folder-reference.js +1 -1
- package/dist/models/function-array-input.d.ts +1 -1
- package/dist/models/function-array-input.js +1 -1
- package/dist/models/function-array-output.d.ts +1 -1
- package/dist/models/function-array-output.js +1 -1
- package/dist/models/function-boolean-input.d.ts +1 -1
- package/dist/models/function-boolean-input.js +1 -1
- package/dist/models/function-boolean-output.d.ts +1 -1
- package/dist/models/function-boolean-output.js +1 -1
- package/dist/models/function-file-input.d.ts +1 -1
- package/dist/models/function-file-input.js +1 -1
- package/dist/models/function-file-output.d.ts +1 -1
- package/dist/models/function-file-output.js +1 -1
- package/dist/models/function-folder-input.d.ts +1 -1
- package/dist/models/function-folder-input.js +1 -1
- package/dist/models/function-folder-output.d.ts +1 -1
- package/dist/models/function-folder-output.js +1 -1
- package/dist/models/function-integer-input.d.ts +1 -1
- package/dist/models/function-integer-input.js +1 -1
- package/dist/models/function-integer-output.d.ts +1 -1
- package/dist/models/function-integer-output.js +1 -1
- package/dist/models/function-jsonobject-input.d.ts +1 -1
- package/dist/models/function-jsonobject-input.js +1 -1
- package/dist/models/function-jsonobject-output.d.ts +1 -1
- package/dist/models/function-jsonobject-output.js +1 -1
- package/dist/models/function-number-input.d.ts +1 -1
- package/dist/models/function-number-input.js +1 -1
- package/dist/models/function-number-output.d.ts +1 -1
- package/dist/models/function-number-output.js +1 -1
- package/dist/models/function-path-input.d.ts +1 -1
- package/dist/models/function-path-input.js +1 -1
- package/dist/models/function-path-output.d.ts +1 -1
- package/dist/models/function-path-output.js +1 -1
- package/dist/models/function-string-input.d.ts +1 -1
- package/dist/models/function-string-input.js +1 -1
- package/dist/models/function-string-output.d.ts +1 -1
- package/dist/models/function-string-output.js +1 -1
- package/dist/models/function.d.ts +1 -1
- package/dist/models/function.js +1 -1
- package/dist/models/http.d.ts +1 -1
- package/dist/models/http.js +1 -1
- package/dist/models/httpvalidation-error.d.ts +1 -1
- package/dist/models/httpvalidation-error.js +1 -1
- package/dist/models/index.d.ts +10 -32
- package/dist/models/index.js +10 -32
- package/dist/models/input-file-reference.d.ts +1 -1
- package/dist/models/input-file-reference.js +1 -1
- package/dist/models/input-folder-reference.d.ts +1 -1
- package/dist/models/input-folder-reference.js +1 -1
- package/dist/models/input-path-reference.d.ts +1 -1
- package/dist/models/input-path-reference.js +1 -1
- package/dist/models/input-reference.d.ts +1 -1
- package/dist/models/input-reference.js +1 -1
- package/dist/models/ioalias-handler.d.ts +1 -1
- package/dist/models/ioalias-handler.js +1 -1
- package/dist/models/item-reference.d.ts +1 -1
- package/dist/models/item-reference.js +1 -1
- package/dist/models/item-type.d.ts +1 -1
- package/dist/models/item-type.js +1 -1
- package/dist/models/job-argument.d.ts +1 -1
- package/dist/models/job-argument.js +1 -1
- package/dist/models/job-path-argument.d.ts +1 -1
- package/dist/models/job-path-argument.js +1 -1
- package/dist/models/job-status-enum.d.ts +1 -1
- package/dist/models/job-status-enum.js +1 -1
- package/dist/models/job-status.d.ts +1 -1
- package/dist/models/job-status.js +1 -1
- package/dist/models/job.d.ts +1 -1
- package/dist/models/job.js +1 -1
- package/dist/models/key-request.d.ts +1 -1
- package/dist/models/key-request.js +1 -1
- package/dist/models/license-pool-access-policy-list.d.ts +1 -1
- package/dist/models/license-pool-access-policy-list.js +1 -1
- package/dist/models/license-pool-access-policy.d.ts +1 -1
- package/dist/models/license-pool-access-policy.js +1 -1
- package/dist/models/license-pool-list.d.ts +1 -1
- package/dist/models/license-pool-list.js +1 -1
- package/dist/models/license-pool-policy-subject-list.d.ts +1 -1
- package/dist/models/license-pool-policy-subject-list.js +1 -1
- package/dist/models/license-pool-policy-subject.d.ts +1 -1
- package/dist/models/license-pool-policy-subject.js +1 -1
- package/dist/models/license-pool-public.d.ts +1 -1
- package/dist/models/license-pool-public.js +1 -1
- package/dist/models/license-pool-update.d.ts +1 -1
- package/dist/models/license-pool-update.js +1 -1
- package/dist/models/license-public.d.ts +1 -1
- package/dist/models/license-public.js +1 -1
- package/dist/models/license-type.d.ts +1 -1
- package/dist/models/license-type.js +1 -1
- package/dist/models/license.d.ts +1 -1
- package/dist/models/license.js +1 -1
- package/dist/models/local-config.d.ts +1 -1
- package/dist/models/local-config.js +1 -1
- package/dist/models/location.d.ts +1 -1
- package/dist/models/location.js +1 -1
- package/dist/models/maintainer.d.ts +1 -1
- package/dist/models/maintainer.js +1 -1
- package/dist/models/meta-data.d.ts +1 -1
- package/dist/models/meta-data.js +1 -1
- package/dist/models/metadata.d.ts +1 -1
- package/dist/models/metadata.js +1 -1
- package/dist/models/new-plugin-package.d.ts +1 -1
- package/dist/models/new-plugin-package.js +1 -1
- package/dist/models/new-recipe-package.d.ts +1 -1
- package/dist/models/new-recipe-package.js +1 -1
- package/dist/models/organization-create.d.ts +1 -1
- package/dist/models/organization-create.js +1 -1
- package/dist/models/organization-list.d.ts +1 -1
- package/dist/models/organization-list.js +1 -1
- package/dist/models/organization-member-list.d.ts +1 -1
- package/dist/models/organization-member-list.js +1 -1
- package/dist/models/organization-member.d.ts +1 -1
- package/dist/models/organization-member.js +1 -1
- package/dist/models/organization-role-enum.d.ts +1 -1
- package/dist/models/organization-role-enum.js +1 -1
- package/dist/models/organization-update.d.ts +1 -1
- package/dist/models/organization-update.js +1 -1
- package/dist/models/organization.d.ts +1 -1
- package/dist/models/organization.js +1 -1
- package/dist/models/package-sort-key.d.ts +1 -1
- package/dist/models/package-sort-key.js +1 -1
- package/dist/models/package-version.d.ts +1 -1
- package/dist/models/package-version.js +1 -1
- package/dist/models/{coupon-duration.d.ts → paused-reason.d.ts} +4 -5
- package/dist/models/{coupon-duration.js → paused-reason.js} +7 -8
- package/dist/models/{payment-create.d.ts → pay-link.d.ts} +6 -6
- package/dist/models/{delete-subscription-item.js → pay-link.js} +1 -1
- package/dist/models/{price-type.d.ts → payment-method-enum.d.ts} +3 -4
- package/dist/models/{price-type.js → payment-method-enum.js} +6 -7
- package/dist/models/payment-method.d.ts +44 -0
- package/dist/models/{coupon.js → payment-method.js} +1 -1
- package/dist/models/{coupon.d.ts → payment.d.ts} +24 -25
- package/dist/models/payment.js +15 -0
- package/dist/models/permission.d.ts +1 -1
- package/dist/models/permission.js +1 -1
- package/dist/models/plan-type.d.ts +21 -0
- package/dist/models/{invoice-status.js → plan-type.js} +8 -10
- package/dist/models/plugin-config.d.ts +1 -1
- package/dist/models/plugin-config.js +1 -1
- package/dist/models/plugin-package-list.d.ts +1 -1
- package/dist/models/plugin-package-list.js +1 -1
- package/dist/models/plugin-package.d.ts +1 -1
- package/dist/models/plugin-package.js +1 -1
- package/dist/models/plugin.d.ts +1 -1
- package/dist/models/plugin.js +1 -1
- package/dist/models/policy-subject.d.ts +1 -1
- package/dist/models/policy-subject.js +1 -1
- package/dist/models/project-access-policy-list.d.ts +1 -1
- package/dist/models/project-access-policy-list.js +1 -1
- package/dist/models/project-access-policy.d.ts +1 -1
- package/dist/models/project-access-policy.js +1 -1
- package/dist/models/project-create.d.ts +1 -1
- package/dist/models/project-create.js +1 -1
- package/dist/models/project-folder.d.ts +1 -1
- package/dist/models/project-folder.js +1 -1
- package/dist/models/project-list.d.ts +1 -1
- package/dist/models/project-list.js +1 -1
- package/dist/models/project-policy-subject.d.ts +1 -1
- package/dist/models/project-policy-subject.js +1 -1
- package/dist/models/project-recipe-filter-list.d.ts +1 -1
- package/dist/models/project-recipe-filter-list.js +1 -1
- package/dist/models/project-recipe-filter.d.ts +1 -1
- package/dist/models/project-recipe-filter.js +1 -1
- package/dist/models/project-sort-key.d.ts +1 -1
- package/dist/models/project-sort-key.js +1 -1
- package/dist/models/project-update.d.ts +1 -1
- package/dist/models/project-update.js +1 -1
- package/dist/models/project.d.ts +1 -1
- package/dist/models/project.js +1 -1
- package/dist/models/public-account-list.d.ts +1 -1
- package/dist/models/public-account-list.js +1 -1
- package/dist/models/quota-list.d.ts +1 -1
- package/dist/models/quota-list.js +1 -1
- package/dist/models/quota-plan.d.ts +11 -4
- package/dist/models/quota-plan.js +1 -1
- package/dist/models/quota-type.d.ts +1 -1
- package/dist/models/quota-type.js +1 -1
- package/dist/models/quota.d.ts +1 -1
- package/dist/models/quota.js +1 -1
- package/dist/models/recipe-interface-list.d.ts +1 -1
- package/dist/models/recipe-interface-list.js +1 -1
- package/dist/models/recipe-interface.d.ts +1 -1
- package/dist/models/recipe-interface.js +1 -1
- package/dist/models/recipe-package-list.d.ts +1 -1
- package/dist/models/recipe-package-list.js +1 -1
- package/dist/models/recipe-package.d.ts +1 -1
- package/dist/models/recipe-package.js +1 -1
- package/dist/models/recipe.d.ts +1 -1
- package/dist/models/recipe.js +1 -1
- package/dist/models/repository-access-policy-list.d.ts +1 -1
- package/dist/models/repository-access-policy-list.js +1 -1
- package/dist/models/repository-access-policy.d.ts +1 -1
- package/dist/models/repository-access-policy.js +1 -1
- package/dist/models/repository-create.d.ts +1 -1
- package/dist/models/repository-create.js +1 -1
- package/dist/models/repository-index.d.ts +1 -1
- package/dist/models/repository-index.js +1 -1
- package/dist/models/repository-list.d.ts +1 -1
- package/dist/models/repository-list.js +1 -1
- package/dist/models/repository-metadata.d.ts +1 -1
- package/dist/models/repository-metadata.js +1 -1
- package/dist/models/repository-policy-subject.d.ts +1 -1
- package/dist/models/repository-policy-subject.js +1 -1
- package/dist/models/repository-sort-key.d.ts +1 -1
- package/dist/models/repository-sort-key.js +1 -1
- package/dist/models/repository-update.d.ts +1 -1
- package/dist/models/repository-update.js +1 -1
- package/dist/models/repository-user-permissions.d.ts +1 -1
- package/dist/models/repository-user-permissions.js +1 -1
- package/dist/models/repository.d.ts +1 -1
- package/dist/models/repository.js +1 -1
- package/dist/models/resources-duration.d.ts +1 -1
- package/dist/models/resources-duration.js +1 -1
- package/dist/models/role-enum.d.ts +1 -1
- package/dist/models/role-enum.js +1 -1
- package/dist/models/run-list.d.ts +1 -1
- package/dist/models/run-list.js +1 -1
- package/dist/models/run-meta.d.ts +1 -1
- package/dist/models/run-meta.js +1 -1
- package/dist/models/run-progress.d.ts +1 -1
- package/dist/models/run-progress.js +1 -1
- package/dist/models/run-result-list.d.ts +1 -1
- package/dist/models/run-result-list.js +1 -1
- package/dist/models/run-status-enum.d.ts +1 -1
- package/dist/models/run-status-enum.js +1 -1
- package/dist/models/run-status.d.ts +1 -1
- package/dist/models/run-status.js +1 -1
- package/dist/models/run.d.ts +1 -1
- package/dist/models/run.js +1 -1
- package/dist/models/s3-upload-request.d.ts +1 -1
- package/dist/models/s3-upload-request.js +1 -1
- package/dist/models/s3.d.ts +1 -1
- package/dist/models/s3.js +1 -1
- package/dist/models/sort-enum.d.ts +1 -1
- package/dist/models/sort-enum.js +1 -1
- package/dist/models/status-type.d.ts +1 -1
- package/dist/models/status-type.js +1 -1
- package/dist/models/step-array-input.d.ts +1 -1
- package/dist/models/step-array-input.js +1 -1
- package/dist/models/step-array-output.d.ts +1 -1
- package/dist/models/step-array-output.js +1 -1
- package/dist/models/step-boolean-input.d.ts +1 -1
- package/dist/models/step-boolean-input.js +1 -1
- package/dist/models/step-boolean-output.d.ts +1 -1
- package/dist/models/step-boolean-output.js +1 -1
- package/dist/models/step-file-input.d.ts +1 -1
- package/dist/models/step-file-input.js +1 -1
- package/dist/models/step-file-output.d.ts +1 -1
- package/dist/models/step-file-output.js +1 -1
- package/dist/models/step-folder-input.d.ts +1 -1
- package/dist/models/step-folder-input.js +1 -1
- package/dist/models/step-folder-output.d.ts +1 -1
- package/dist/models/step-folder-output.js +1 -1
- package/dist/models/step-integer-input.d.ts +1 -1
- package/dist/models/step-integer-input.js +1 -1
- package/dist/models/step-integer-output.d.ts +1 -1
- package/dist/models/step-integer-output.js +1 -1
- package/dist/models/step-jsonobject-input.d.ts +1 -1
- package/dist/models/step-jsonobject-input.js +1 -1
- package/dist/models/step-jsonobject-output.d.ts +1 -1
- package/dist/models/step-jsonobject-output.js +1 -1
- package/dist/models/step-list.d.ts +1 -1
- package/dist/models/step-list.js +1 -1
- package/dist/models/step-number-input.d.ts +1 -1
- package/dist/models/step-number-input.js +1 -1
- package/dist/models/step-number-output.d.ts +1 -1
- package/dist/models/step-number-output.js +1 -1
- package/dist/models/step-path-input.d.ts +1 -1
- package/dist/models/step-path-input.js +1 -1
- package/dist/models/step-path-output.d.ts +1 -1
- package/dist/models/step-path-output.js +1 -1
- package/dist/models/step-status-enum.d.ts +1 -1
- package/dist/models/step-status-enum.js +1 -1
- package/dist/models/step-status.d.ts +1 -1
- package/dist/models/step-status.js +1 -1
- package/dist/models/step-string-input.d.ts +1 -1
- package/dist/models/step-string-input.js +1 -1
- package/dist/models/step-string-output.d.ts +1 -1
- package/dist/models/step-string-output.js +1 -1
- package/dist/models/subject-type.d.ts +1 -1
- package/dist/models/subject-type.js +1 -1
- package/dist/models/subscription-create.d.ts +16 -5
- package/dist/models/subscription-create.js +1 -1
- package/dist/models/{price-recurrence.d.ts → subscription-payment.d.ts} +11 -11
- package/dist/models/subscription-payment.js +15 -0
- package/dist/models/subscription-plan.d.ts +16 -2
- package/dist/models/subscription-plan.js +1 -1
- package/dist/models/subscription-update.d.ts +4 -31
- package/dist/models/subscription-update.js +1 -1
- package/dist/models/subscription.d.ts +26 -37
- package/dist/models/subscription.js +1 -1
- package/dist/models/task-argument.d.ts +1 -1
- package/dist/models/task-argument.js +1 -1
- package/dist/models/task-file-reference.d.ts +1 -1
- package/dist/models/task-file-reference.js +1 -1
- package/dist/models/task-folder-reference.d.ts +1 -1
- package/dist/models/task-folder-reference.js +1 -1
- package/dist/models/task-path-argument.d.ts +1 -1
- package/dist/models/task-path-argument.js +1 -1
- package/dist/models/task-path-reference.d.ts +1 -1
- package/dist/models/task-path-reference.js +1 -1
- package/dist/models/task-path-return.d.ts +1 -1
- package/dist/models/task-path-return.js +1 -1
- package/dist/models/task-reference.d.ts +1 -1
- package/dist/models/task-reference.js +1 -1
- package/dist/models/task-return.d.ts +1 -1
- package/dist/models/task-return.js +1 -1
- package/dist/models/team-create.d.ts +1 -1
- package/dist/models/team-create.js +1 -1
- package/dist/models/team-list.d.ts +1 -1
- package/dist/models/team-list.js +1 -1
- package/dist/models/team-member-list.d.ts +1 -1
- package/dist/models/team-member-list.js +1 -1
- package/dist/models/team-member.d.ts +1 -1
- package/dist/models/team-member.js +1 -1
- package/dist/models/team-role-enum.d.ts +1 -1
- package/dist/models/team-role-enum.js +1 -1
- package/dist/models/team-update.d.ts +1 -1
- package/dist/models/team-update.js +1 -1
- package/dist/models/team.d.ts +1 -1
- package/dist/models/team.js +1 -1
- package/dist/models/template-function.d.ts +1 -1
- package/dist/models/template-function.js +1 -1
- package/dist/models/update-accepted.d.ts +1 -1
- package/dist/models/update-accepted.js +1 -1
- package/dist/models/usage.d.ts +1 -1
- package/dist/models/usage.js +1 -1
- package/dist/models/user-create.d.ts +1 -1
- package/dist/models/user-create.js +1 -1
- package/dist/models/user-permission.d.ts +1 -1
- package/dist/models/user-permission.js +1 -1
- package/dist/models/user-private.d.ts +1 -1
- package/dist/models/user-private.js +1 -1
- package/dist/models/user-public-list.d.ts +1 -1
- package/dist/models/user-public-list.js +1 -1
- package/dist/models/user-public.d.ts +1 -1
- package/dist/models/user-public.js +1 -1
- package/dist/models/user-update.d.ts +1 -1
- package/dist/models/user-update.js +1 -1
- package/dist/models/validation-error.d.ts +1 -1
- package/dist/models/validation-error.js +1 -1
- package/dist/models/value-file-reference.d.ts +1 -1
- package/dist/models/value-file-reference.js +1 -1
- package/dist/models/value-folder-reference.d.ts +1 -1
- package/dist/models/value-folder-reference.js +1 -1
- package/dist/models/value-list-reference.d.ts +1 -1
- package/dist/models/value-list-reference.js +1 -1
- package/dist/models/value-reference.d.ts +1 -1
- package/dist/models/value-reference.js +1 -1
- package/index.ts +1 -1
- package/models/accessor.ts +1 -1
- package/models/account-public.ts +1 -1
- package/models/account-type.ts +1 -1
- package/models/activation-list.ts +1 -1
- package/models/activation.ts +1 -1
- package/models/apitoken-create.ts +1 -1
- package/models/apitoken-list.ts +1 -1
- package/models/apitoken-private.ts +1 -1
- package/models/apitoken.ts +1 -1
- package/models/baked-recipe.ts +1 -1
- package/models/billing-info.ts +88 -0
- package/models/billing-option.ts +55 -0
- package/models/body-post-plugin-owner-plugins-post.ts +1 -1
- package/models/body-post-recipe-owner-recipes-post.ts +1 -1
- package/models/card-type.ts +34 -0
- package/models/cloud-job-list.ts +1 -1
- package/models/cloud-job.ts +1 -1
- package/models/created-content.ts +1 -1
- package/models/dag.ts +1 -1
- package/models/dagarray-input-alias.ts +1 -1
- package/models/dagarray-input.ts +1 -1
- package/models/dagarray-output-alias.ts +1 -1
- package/models/dagarray-output.ts +1 -1
- package/models/dagboolean-input-alias.ts +1 -1
- package/models/dagboolean-input.ts +1 -1
- package/models/dagboolean-output-alias.ts +1 -1
- package/models/dagboolean-output.ts +1 -1
- package/models/dagfile-input-alias.ts +1 -1
- package/models/dagfile-input.ts +1 -1
- package/models/dagfile-output-alias.ts +1 -1
- package/models/dagfile-output.ts +1 -1
- package/models/dagfolder-input-alias.ts +1 -1
- package/models/dagfolder-input.ts +1 -1
- package/models/dagfolder-output-alias.ts +1 -1
- package/models/dagfolder-output.ts +1 -1
- package/models/daggeneric-input-alias.ts +1 -1
- package/models/daggeneric-input.ts +1 -1
- package/models/daggeneric-output-alias.ts +1 -1
- package/models/daggeneric-output.ts +1 -1
- package/models/daginteger-input-alias.ts +1 -1
- package/models/daginteger-input.ts +1 -1
- package/models/daginteger-output-alias.ts +1 -1
- package/models/daginteger-output.ts +1 -1
- package/models/dagjsonobject-input-alias.ts +1 -1
- package/models/dagjsonobject-input.ts +1 -1
- package/models/dagjsonobject-output-alias.ts +1 -1
- package/models/dagjsonobject-output.ts +1 -1
- package/models/daglinked-input-alias.ts +1 -1
- package/models/daglinked-output-alias.ts +1 -1
- package/models/dagnumber-input-alias.ts +1 -1
- package/models/dagnumber-input.ts +1 -1
- package/models/dagnumber-output-alias.ts +1 -1
- package/models/dagnumber-output.ts +1 -1
- package/models/dagpath-input-alias.ts +1 -1
- package/models/dagpath-input.ts +1 -1
- package/models/dagpath-output-alias.ts +1 -1
- package/models/dagpath-output.ts +1 -1
- package/models/dagstring-input-alias.ts +1 -1
- package/models/dagstring-input.ts +1 -1
- package/models/dagstring-output-alias.ts +1 -1
- package/models/dagstring-output.ts +1 -1
- package/models/dagtask-loop.ts +1 -1
- package/models/dagtask.ts +1 -1
- package/models/daily-usage.ts +1 -1
- package/models/dependency-kind.ts +1 -1
- package/models/dependency.ts +1 -1
- package/models/docker-config.ts +1 -1
- package/models/file-meta.ts +1 -1
- package/models/file-reference.ts +1 -1
- package/models/folder-reference.ts +1 -1
- package/models/function-array-input.ts +1 -1
- package/models/function-array-output.ts +1 -1
- package/models/function-boolean-input.ts +1 -1
- package/models/function-boolean-output.ts +1 -1
- package/models/function-file-input.ts +1 -1
- package/models/function-file-output.ts +1 -1
- package/models/function-folder-input.ts +1 -1
- package/models/function-folder-output.ts +1 -1
- package/models/function-integer-input.ts +1 -1
- package/models/function-integer-output.ts +1 -1
- package/models/function-jsonobject-input.ts +1 -1
- package/models/function-jsonobject-output.ts +1 -1
- package/models/function-number-input.ts +1 -1
- package/models/function-number-output.ts +1 -1
- package/models/function-path-input.ts +1 -1
- package/models/function-path-output.ts +1 -1
- package/models/function-string-input.ts +1 -1
- package/models/function-string-output.ts +1 -1
- package/models/function.ts +1 -1
- package/models/http.ts +1 -1
- package/models/httpvalidation-error.ts +1 -1
- package/models/index.ts +10 -32
- package/models/input-file-reference.ts +1 -1
- package/models/input-folder-reference.ts +1 -1
- package/models/input-path-reference.ts +1 -1
- package/models/input-reference.ts +1 -1
- package/models/ioalias-handler.ts +1 -1
- package/models/item-reference.ts +1 -1
- package/models/item-type.ts +1 -1
- package/models/job-argument.ts +1 -1
- package/models/job-path-argument.ts +1 -1
- package/models/job-status-enum.ts +1 -1
- package/models/job-status.ts +1 -1
- package/models/job.ts +1 -1
- package/models/key-request.ts +1 -1
- package/models/license-pool-access-policy-list.ts +1 -1
- package/models/license-pool-access-policy.ts +1 -1
- package/models/license-pool-list.ts +1 -1
- package/models/license-pool-policy-subject-list.ts +1 -1
- package/models/license-pool-policy-subject.ts +1 -1
- package/models/license-pool-public.ts +1 -1
- package/models/license-pool-update.ts +1 -1
- package/models/license-public.ts +1 -1
- package/models/license-type.ts +1 -1
- package/models/license.ts +1 -1
- package/models/local-config.ts +1 -1
- package/models/location.ts +1 -1
- package/models/maintainer.ts +1 -1
- package/models/meta-data.ts +1 -1
- package/models/metadata.ts +1 -1
- package/models/new-plugin-package.ts +1 -1
- package/models/new-recipe-package.ts +1 -1
- package/models/organization-create.ts +1 -1
- package/models/organization-list.ts +1 -1
- package/models/organization-member-list.ts +1 -1
- package/models/organization-member.ts +1 -1
- package/models/organization-role-enum.ts +1 -1
- package/models/organization-update.ts +1 -1
- package/models/organization.ts +1 -1
- package/models/package-sort-key.ts +1 -1
- package/models/package-version.ts +1 -1
- package/models/{coupon-duration.ts → paused-reason.ts} +4 -5
- package/models/{payment-create.ts → pay-link.ts} +6 -6
- package/models/{price-type.ts → payment-method-enum.ts} +3 -4
- package/models/payment-method.ts +51 -0
- package/models/{coupon.ts → payment.ts} +24 -25
- package/models/permission.ts +1 -1
- package/models/{invoice-status.ts → plan-type.ts} +5 -7
- package/models/plugin-config.ts +1 -1
- package/models/plugin-package-list.ts +1 -1
- package/models/plugin-package.ts +1 -1
- package/models/plugin.ts +1 -1
- package/models/policy-subject.ts +1 -1
- package/models/project-access-policy-list.ts +1 -1
- package/models/project-access-policy.ts +1 -1
- package/models/project-create.ts +1 -1
- package/models/project-folder.ts +1 -1
- package/models/project-list.ts +1 -1
- package/models/project-policy-subject.ts +1 -1
- package/models/project-recipe-filter-list.ts +1 -1
- package/models/project-recipe-filter.ts +1 -1
- package/models/project-sort-key.ts +1 -1
- package/models/project-update.ts +1 -1
- package/models/project.ts +1 -1
- package/models/public-account-list.ts +1 -1
- package/models/quota-list.ts +1 -1
- package/models/quota-plan.ts +11 -4
- package/models/quota-type.ts +1 -1
- package/models/quota.ts +1 -1
- package/models/recipe-interface-list.ts +1 -1
- package/models/recipe-interface.ts +1 -1
- package/models/recipe-package-list.ts +1 -1
- package/models/recipe-package.ts +1 -1
- package/models/recipe.ts +1 -1
- package/models/repository-access-policy-list.ts +1 -1
- package/models/repository-access-policy.ts +1 -1
- package/models/repository-create.ts +1 -1
- package/models/repository-index.ts +1 -1
- package/models/repository-list.ts +1 -1
- package/models/repository-metadata.ts +1 -1
- package/models/repository-policy-subject.ts +1 -1
- package/models/repository-sort-key.ts +1 -1
- package/models/repository-update.ts +1 -1
- package/models/repository-user-permissions.ts +1 -1
- package/models/repository.ts +1 -1
- package/models/resources-duration.ts +1 -1
- package/models/role-enum.ts +1 -1
- package/models/run-list.ts +1 -1
- package/models/run-meta.ts +1 -1
- package/models/run-progress.ts +1 -1
- package/models/run-result-list.ts +1 -1
- package/models/run-status-enum.ts +1 -1
- package/models/run-status.ts +1 -1
- package/models/run.ts +1 -1
- package/models/s3-upload-request.ts +1 -1
- package/models/s3.ts +1 -1
- package/models/sort-enum.ts +1 -1
- package/models/status-type.ts +1 -1
- package/models/step-array-input.ts +1 -1
- package/models/step-array-output.ts +1 -1
- package/models/step-boolean-input.ts +1 -1
- package/models/step-boolean-output.ts +1 -1
- package/models/step-file-input.ts +1 -1
- package/models/step-file-output.ts +1 -1
- package/models/step-folder-input.ts +1 -1
- package/models/step-folder-output.ts +1 -1
- package/models/step-integer-input.ts +1 -1
- package/models/step-integer-output.ts +1 -1
- package/models/step-jsonobject-input.ts +1 -1
- package/models/step-jsonobject-output.ts +1 -1
- package/models/step-list.ts +1 -1
- package/models/step-number-input.ts +1 -1
- package/models/step-number-output.ts +1 -1
- package/models/step-path-input.ts +1 -1
- package/models/step-path-output.ts +1 -1
- package/models/step-status-enum.ts +1 -1
- package/models/step-status.ts +1 -1
- package/models/step-string-input.ts +1 -1
- package/models/step-string-output.ts +1 -1
- package/models/subject-type.ts +1 -1
- package/models/subscription-create.ts +16 -5
- package/models/{price-recurrence.ts → subscription-payment.ts} +11 -11
- package/models/subscription-plan.ts +16 -2
- package/models/subscription-update.ts +4 -31
- package/models/subscription.ts +26 -37
- package/models/task-argument.ts +1 -1
- package/models/task-file-reference.ts +1 -1
- package/models/task-folder-reference.ts +1 -1
- package/models/task-path-argument.ts +1 -1
- package/models/task-path-reference.ts +1 -1
- package/models/task-path-return.ts +1 -1
- package/models/task-reference.ts +1 -1
- package/models/task-return.ts +1 -1
- package/models/team-create.ts +1 -1
- package/models/team-list.ts +1 -1
- package/models/team-member-list.ts +1 -1
- package/models/team-member.ts +1 -1
- package/models/team-role-enum.ts +1 -1
- package/models/team-update.ts +1 -1
- package/models/team.ts +1 -1
- package/models/template-function.ts +1 -1
- package/models/update-accepted.ts +1 -1
- package/models/usage.ts +1 -1
- package/models/user-create.ts +1 -1
- package/models/user-permission.ts +1 -1
- package/models/user-private.ts +1 -1
- package/models/user-public-list.ts +1 -1
- package/models/user-public.ts +1 -1
- package/models/user-update.ts +1 -1
- package/models/validation-error.ts +1 -1
- package/models/value-file-reference.ts +1 -1
- package/models/value-folder-reference.ts +1 -1
- package/models/value-list-reference.ts +1 -1
- package/models/value-reference.ts +1 -1
- package/package.json +2 -2
- package/api/payments-api.ts +0 -1936
- package/dist/api/payments-api.d.ts +0 -855
- package/dist/api/payments-api.js +0 -1555
- package/dist/models/card-public.d.ts +0 -36
- package/dist/models/delete-subscription-item.d.ts +0 -49
- package/dist/models/discount-amount.d.ts +0 -30
- package/dist/models/discount.d.ts +0 -55
- package/dist/models/discount.js +0 -15
- package/dist/models/inventory.d.ts +0 -25
- package/dist/models/inventory.js +0 -15
- package/dist/models/invoice-list.d.ts +0 -31
- package/dist/models/invoice-list.js +0 -15
- package/dist/models/invoice-preview.d.ts +0 -126
- package/dist/models/invoice-preview.js +0 -15
- package/dist/models/invoice-status-transitions.d.ts +0 -42
- package/dist/models/invoice-status-transitions.js +0 -15
- package/dist/models/invoice.d.ts +0 -131
- package/dist/models/invoice.js +0 -15
- package/dist/models/line-item-list.d.ts +0 -31
- package/dist/models/line-item-list.js +0 -15
- package/dist/models/line-item.d.ts +0 -80
- package/dist/models/line-item.js +0 -15
- package/dist/models/new-subscription-item.d.ts +0 -31
- package/dist/models/new-subscription-item.js +0 -15
- package/dist/models/payment-create.js +0 -15
- package/dist/models/payment-intent.d.ts +0 -24
- package/dist/models/payment-intent.js +0 -15
- package/dist/models/payment-method-list.d.ts +0 -55
- package/dist/models/payment-method-list.js +0 -15
- package/dist/models/payment-setup.d.ts +0 -24
- package/dist/models/payment-setup.js +0 -15
- package/dist/models/period.d.ts +0 -30
- package/dist/models/period.js +0 -15
- package/dist/models/pollination-subscription.d.ts +0 -62
- package/dist/models/pollination-subscription.js +0 -15
- package/dist/models/price-recurrence.js +0 -15
- package/dist/models/price-tier.d.ts +0 -48
- package/dist/models/price-tier.js +0 -15
- package/dist/models/price.d.ts +0 -81
- package/dist/models/price.js +0 -15
- package/dist/models/product-family.d.ts +0 -55
- package/dist/models/product-family.js +0 -15
- package/dist/models/quota-extension.d.ts +0 -49
- package/dist/models/quota-extension.js +0 -15
- package/dist/models/status.d.ts +0 -24
- package/dist/models/status.js +0 -15
- package/dist/models/subscribe.d.ts +0 -25
- package/dist/models/subscribe.js +0 -15
- package/dist/models/subscription-item-list.d.ts +0 -32
- package/dist/models/subscription-item-list.js +0 -15
- package/dist/models/subscription-item.d.ts +0 -43
- package/dist/models/subscription-item.js +0 -15
- package/dist/models/update-invoice-preview.d.ts +0 -45
- package/dist/models/update-invoice-preview.js +0 -15
- package/models/card-public.ts +0 -43
- package/models/delete-subscription-item.ts +0 -56
- package/models/discount-amount.ts +0 -37
- package/models/discount.ts +0 -62
- package/models/inventory.ts +0 -32
- package/models/invoice-list.ts +0 -38
- package/models/invoice-preview.ts +0 -133
- package/models/invoice-status-transitions.ts +0 -49
- package/models/invoice.ts +0 -138
- package/models/line-item-list.ts +0 -38
- package/models/line-item.ts +0 -87
- package/models/new-subscription-item.ts +0 -38
- package/models/payment-intent.ts +0 -31
- package/models/payment-method-list.ts +0 -62
- package/models/payment-setup.ts +0 -31
- package/models/period.ts +0 -37
- package/models/pollination-subscription.ts +0 -69
- package/models/price-tier.ts +0 -55
- package/models/price.ts +0 -88
- package/models/product-family.ts +0 -62
- package/models/quota-extension.ts +0 -56
- package/models/status.ts +0 -31
- package/models/subscribe.ts +0 -32
- package/models/subscription-item-list.ts +0 -39
- package/models/subscription-item.ts +0 -50
- package/models/update-invoice-preview.ts +0 -52
package/api/subscriptions-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* pollination-server
|
|
5
5
|
* Pollination Server OpenAPI Definition
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.26.2
|
|
8
8
|
* Contact: info@pollination.cloud
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -21,27 +21,99 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { HTTPValidationError } from '../models';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import {
|
|
24
|
+
import { PayLink } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { Payment } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { Quota } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { Subscription } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { SubscriptionCreate } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { SubscriptionUpdate } from '../models';
|
|
25
35
|
/**
|
|
26
36
|
* SubscriptionsApi - axios parameter creator
|
|
27
37
|
* @export
|
|
28
38
|
*/
|
|
29
39
|
export const SubscriptionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30
40
|
return {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @summary Create Subscription
|
|
44
|
+
* @param {SubscriptionCreate} subscriptionCreate
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
createSubscription: async (subscriptionCreate: SubscriptionCreate, options: any = {}): Promise<RequestArgs> => {
|
|
49
|
+
// verify required parameter 'subscriptionCreate' is not null or undefined
|
|
50
|
+
if (subscriptionCreate === null || subscriptionCreate === undefined) {
|
|
51
|
+
throw new RequiredError('subscriptionCreate','Required parameter subscriptionCreate was null or undefined when calling createSubscription.');
|
|
52
|
+
}
|
|
53
|
+
const localVarPath = `/subscriptions/`;
|
|
54
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55
|
+
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
56
|
+
let baseOptions;
|
|
57
|
+
if (configuration) {
|
|
58
|
+
baseOptions = configuration.baseOptions;
|
|
59
|
+
}
|
|
60
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
61
|
+
const localVarHeaderParameter = {} as any;
|
|
62
|
+
const localVarQueryParameter = {} as any;
|
|
63
|
+
|
|
64
|
+
// authentication APIKeyAuth required
|
|
65
|
+
if (configuration && configuration.apiKey) {
|
|
66
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
67
|
+
? await configuration.apiKey("x-pollination-token")
|
|
68
|
+
: await configuration.apiKey;
|
|
69
|
+
localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// authentication JWTAuth required
|
|
73
|
+
// http bearer authentication required
|
|
74
|
+
if (configuration && configuration.accessToken) {
|
|
75
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
76
|
+
? await configuration.accessToken()
|
|
77
|
+
: await configuration.accessToken;
|
|
78
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
84
|
+
|
|
85
|
+
const query = new URLSearchParams(localVarUrlObj.search);
|
|
86
|
+
for (const key in localVarQueryParameter) {
|
|
87
|
+
query.set(key, localVarQueryParameter[key]);
|
|
88
|
+
}
|
|
89
|
+
for (const key in options.query) {
|
|
90
|
+
query.set(key, options.query[key]);
|
|
91
|
+
}
|
|
92
|
+
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
93
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
95
|
+
const needsSerialization = (typeof subscriptionCreate !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
96
|
+
localVarRequestOptions.data = needsSerialization ? JSON.stringify(subscriptionCreate !== undefined ? subscriptionCreate : {}) : (subscriptionCreate || "");
|
|
97
|
+
|
|
98
|
+
return {
|
|
99
|
+
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
100
|
+
options: localVarRequestOptions,
|
|
101
|
+
};
|
|
102
|
+
},
|
|
31
103
|
/**
|
|
32
104
|
*
|
|
33
105
|
* @summary Get Subscription
|
|
34
|
-
* @param {string}
|
|
106
|
+
* @param {string} subscriptionId
|
|
35
107
|
* @param {*} [options] Override http request option.
|
|
36
108
|
* @throws {RequiredError}
|
|
37
109
|
*/
|
|
38
|
-
|
|
39
|
-
// verify required parameter '
|
|
40
|
-
if (
|
|
41
|
-
throw new RequiredError('
|
|
110
|
+
getSubscription: async (subscriptionId: string, options: any = {}): Promise<RequestArgs> => {
|
|
111
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
112
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
113
|
+
throw new RequiredError('subscriptionId','Required parameter subscriptionId was null or undefined when calling getSubscription.');
|
|
42
114
|
}
|
|
43
|
-
const localVarPath = `/subscriptions/{
|
|
44
|
-
.replace(`{${"
|
|
115
|
+
const localVarPath = `/subscriptions/{subscription_id}`
|
|
116
|
+
.replace(`{${"subscription_id"}}`, encodeURIComponent(String(subscriptionId)));
|
|
45
117
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
118
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
47
119
|
let baseOptions;
|
|
@@ -89,18 +161,135 @@ export const SubscriptionsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
89
161
|
},
|
|
90
162
|
/**
|
|
91
163
|
*
|
|
92
|
-
* @summary
|
|
93
|
-
* @param {string}
|
|
164
|
+
* @summary List Subscriptions
|
|
165
|
+
* @param {string} [account]
|
|
94
166
|
* @param {*} [options] Override http request option.
|
|
95
167
|
* @throws {RequiredError}
|
|
96
168
|
*/
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
169
|
+
listPollinationSubscriptions: async (account?: string, options: any = {}): Promise<RequestArgs> => {
|
|
170
|
+
const localVarPath = `/subscriptions/`;
|
|
171
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
172
|
+
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
173
|
+
let baseOptions;
|
|
174
|
+
if (configuration) {
|
|
175
|
+
baseOptions = configuration.baseOptions;
|
|
101
176
|
}
|
|
102
|
-
const
|
|
103
|
-
|
|
177
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
178
|
+
const localVarHeaderParameter = {} as any;
|
|
179
|
+
const localVarQueryParameter = {} as any;
|
|
180
|
+
|
|
181
|
+
// authentication APIKeyAuth required
|
|
182
|
+
if (configuration && configuration.apiKey) {
|
|
183
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
184
|
+
? await configuration.apiKey("x-pollination-token")
|
|
185
|
+
: await configuration.apiKey;
|
|
186
|
+
localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// authentication JWTAuth required
|
|
190
|
+
// http bearer authentication required
|
|
191
|
+
if (configuration && configuration.accessToken) {
|
|
192
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
193
|
+
? await configuration.accessToken()
|
|
194
|
+
: await configuration.accessToken;
|
|
195
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if (account !== undefined) {
|
|
199
|
+
localVarQueryParameter['account'] = account;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
const query = new URLSearchParams(localVarUrlObj.search);
|
|
205
|
+
for (const key in localVarQueryParameter) {
|
|
206
|
+
query.set(key, localVarQueryParameter[key]);
|
|
207
|
+
}
|
|
208
|
+
for (const key in options.query) {
|
|
209
|
+
query.set(key, options.query[key]);
|
|
210
|
+
}
|
|
211
|
+
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
212
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
213
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
214
|
+
|
|
215
|
+
return {
|
|
216
|
+
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
217
|
+
options: localVarRequestOptions,
|
|
218
|
+
};
|
|
219
|
+
},
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @summary List Subscription Payments
|
|
223
|
+
* @param {string} subscriptionId
|
|
224
|
+
* @param {*} [options] Override http request option.
|
|
225
|
+
* @throws {RequiredError}
|
|
226
|
+
*/
|
|
227
|
+
listSubscriptionPayments: async (subscriptionId: string, options: any = {}): Promise<RequestArgs> => {
|
|
228
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
229
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
230
|
+
throw new RequiredError('subscriptionId','Required parameter subscriptionId was null or undefined when calling listSubscriptionPayments.');
|
|
231
|
+
}
|
|
232
|
+
const localVarPath = `/subscriptions/{subscription_id}/payments`
|
|
233
|
+
.replace(`{${"subscription_id"}}`, encodeURIComponent(String(subscriptionId)));
|
|
234
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
235
|
+
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
236
|
+
let baseOptions;
|
|
237
|
+
if (configuration) {
|
|
238
|
+
baseOptions = configuration.baseOptions;
|
|
239
|
+
}
|
|
240
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
241
|
+
const localVarHeaderParameter = {} as any;
|
|
242
|
+
const localVarQueryParameter = {} as any;
|
|
243
|
+
|
|
244
|
+
// authentication APIKeyAuth required
|
|
245
|
+
if (configuration && configuration.apiKey) {
|
|
246
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
247
|
+
? await configuration.apiKey("x-pollination-token")
|
|
248
|
+
: await configuration.apiKey;
|
|
249
|
+
localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// authentication JWTAuth required
|
|
253
|
+
// http bearer authentication required
|
|
254
|
+
if (configuration && configuration.accessToken) {
|
|
255
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
256
|
+
? await configuration.accessToken()
|
|
257
|
+
: await configuration.accessToken;
|
|
258
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
const query = new URLSearchParams(localVarUrlObj.search);
|
|
264
|
+
for (const key in localVarQueryParameter) {
|
|
265
|
+
query.set(key, localVarQueryParameter[key]);
|
|
266
|
+
}
|
|
267
|
+
for (const key in options.query) {
|
|
268
|
+
query.set(key, options.query[key]);
|
|
269
|
+
}
|
|
270
|
+
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
271
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
272
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
273
|
+
|
|
274
|
+
return {
|
|
275
|
+
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
276
|
+
options: localVarRequestOptions,
|
|
277
|
+
};
|
|
278
|
+
},
|
|
279
|
+
/**
|
|
280
|
+
*
|
|
281
|
+
* @summary List Subscription Quotas
|
|
282
|
+
* @param {string} subscriptionId
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
listSubscriptionQuotas: async (subscriptionId: string, options: any = {}): Promise<RequestArgs> => {
|
|
287
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
288
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
289
|
+
throw new RequiredError('subscriptionId','Required parameter subscriptionId was null or undefined when calling listSubscriptionQuotas.');
|
|
290
|
+
}
|
|
291
|
+
const localVarPath = `/subscriptions/{subscription_id}/quotas`
|
|
292
|
+
.replace(`{${"subscription_id"}}`, encodeURIComponent(String(subscriptionId)));
|
|
104
293
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
294
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
106
295
|
let baseOptions;
|
|
@@ -141,6 +330,74 @@ export const SubscriptionsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
141
330
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
142
331
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
143
332
|
|
|
333
|
+
return {
|
|
334
|
+
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
335
|
+
options: localVarRequestOptions,
|
|
336
|
+
};
|
|
337
|
+
},
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @summary Update Subscription
|
|
341
|
+
* @param {string} subscriptionId
|
|
342
|
+
* @param {SubscriptionUpdate} subscriptionUpdate
|
|
343
|
+
* @param {*} [options] Override http request option.
|
|
344
|
+
* @throws {RequiredError}
|
|
345
|
+
*/
|
|
346
|
+
updateSubscription: async (subscriptionId: string, subscriptionUpdate: SubscriptionUpdate, options: any = {}): Promise<RequestArgs> => {
|
|
347
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
348
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
349
|
+
throw new RequiredError('subscriptionId','Required parameter subscriptionId was null or undefined when calling updateSubscription.');
|
|
350
|
+
}
|
|
351
|
+
// verify required parameter 'subscriptionUpdate' is not null or undefined
|
|
352
|
+
if (subscriptionUpdate === null || subscriptionUpdate === undefined) {
|
|
353
|
+
throw new RequiredError('subscriptionUpdate','Required parameter subscriptionUpdate was null or undefined when calling updateSubscription.');
|
|
354
|
+
}
|
|
355
|
+
const localVarPath = `/subscriptions/{subscription_id}`
|
|
356
|
+
.replace(`{${"subscription_id"}}`, encodeURIComponent(String(subscriptionId)));
|
|
357
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
358
|
+
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
359
|
+
let baseOptions;
|
|
360
|
+
if (configuration) {
|
|
361
|
+
baseOptions = configuration.baseOptions;
|
|
362
|
+
}
|
|
363
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
364
|
+
const localVarHeaderParameter = {} as any;
|
|
365
|
+
const localVarQueryParameter = {} as any;
|
|
366
|
+
|
|
367
|
+
// authentication APIKeyAuth required
|
|
368
|
+
if (configuration && configuration.apiKey) {
|
|
369
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
370
|
+
? await configuration.apiKey("x-pollination-token")
|
|
371
|
+
: await configuration.apiKey;
|
|
372
|
+
localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
// authentication JWTAuth required
|
|
376
|
+
// http bearer authentication required
|
|
377
|
+
if (configuration && configuration.accessToken) {
|
|
378
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
379
|
+
? await configuration.accessToken()
|
|
380
|
+
: await configuration.accessToken;
|
|
381
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
387
|
+
|
|
388
|
+
const query = new URLSearchParams(localVarUrlObj.search);
|
|
389
|
+
for (const key in localVarQueryParameter) {
|
|
390
|
+
query.set(key, localVarQueryParameter[key]);
|
|
391
|
+
}
|
|
392
|
+
for (const key in options.query) {
|
|
393
|
+
query.set(key, options.query[key]);
|
|
394
|
+
}
|
|
395
|
+
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
396
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
397
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
398
|
+
const needsSerialization = (typeof subscriptionUpdate !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
399
|
+
localVarRequestOptions.data = needsSerialization ? JSON.stringify(subscriptionUpdate !== undefined ? subscriptionUpdate : {}) : (subscriptionUpdate || "");
|
|
400
|
+
|
|
144
401
|
return {
|
|
145
402
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
146
403
|
options: localVarRequestOptions,
|
|
@@ -155,15 +412,43 @@ export const SubscriptionsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
155
412
|
*/
|
|
156
413
|
export const SubscriptionsApiFp = function(configuration?: Configuration) {
|
|
157
414
|
return {
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* @summary Create Subscription
|
|
418
|
+
* @param {SubscriptionCreate} subscriptionCreate
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
*/
|
|
422
|
+
async createSubscription(subscriptionCreate: SubscriptionCreate, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayLink>> {
|
|
423
|
+
const localVarAxiosArgs = await SubscriptionsApiAxiosParamCreator(configuration).createSubscription(subscriptionCreate, options);
|
|
424
|
+
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
425
|
+
const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
426
|
+
return axios.request(axiosRequestArgs);
|
|
427
|
+
};
|
|
428
|
+
},
|
|
158
429
|
/**
|
|
159
430
|
*
|
|
160
431
|
* @summary Get Subscription
|
|
161
|
-
* @param {string}
|
|
432
|
+
* @param {string} subscriptionId
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
async getSubscription(subscriptionId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Subscription>> {
|
|
437
|
+
const localVarAxiosArgs = await SubscriptionsApiAxiosParamCreator(configuration).getSubscription(subscriptionId, options);
|
|
438
|
+
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
439
|
+
const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
440
|
+
return axios.request(axiosRequestArgs);
|
|
441
|
+
};
|
|
442
|
+
},
|
|
443
|
+
/**
|
|
444
|
+
*
|
|
445
|
+
* @summary List Subscriptions
|
|
446
|
+
* @param {string} [account]
|
|
162
447
|
* @param {*} [options] Override http request option.
|
|
163
448
|
* @throws {RequiredError}
|
|
164
449
|
*/
|
|
165
|
-
async
|
|
166
|
-
const localVarAxiosArgs = await SubscriptionsApiAxiosParamCreator(configuration).
|
|
450
|
+
async listPollinationSubscriptions(account?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Subscription>>> {
|
|
451
|
+
const localVarAxiosArgs = await SubscriptionsApiAxiosParamCreator(configuration).listPollinationSubscriptions(account, options);
|
|
167
452
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
168
453
|
const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
169
454
|
return axios.request(axiosRequestArgs);
|
|
@@ -171,13 +456,42 @@ export const SubscriptionsApiFp = function(configuration?: Configuration) {
|
|
|
171
456
|
},
|
|
172
457
|
/**
|
|
173
458
|
*
|
|
174
|
-
* @summary
|
|
175
|
-
* @param {string}
|
|
459
|
+
* @summary List Subscription Payments
|
|
460
|
+
* @param {string} subscriptionId
|
|
176
461
|
* @param {*} [options] Override http request option.
|
|
177
462
|
* @throws {RequiredError}
|
|
178
463
|
*/
|
|
179
|
-
async
|
|
180
|
-
const localVarAxiosArgs = await SubscriptionsApiAxiosParamCreator(configuration).
|
|
464
|
+
async listSubscriptionPayments(subscriptionId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Payment>>> {
|
|
465
|
+
const localVarAxiosArgs = await SubscriptionsApiAxiosParamCreator(configuration).listSubscriptionPayments(subscriptionId, options);
|
|
466
|
+
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
467
|
+
const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
468
|
+
return axios.request(axiosRequestArgs);
|
|
469
|
+
};
|
|
470
|
+
},
|
|
471
|
+
/**
|
|
472
|
+
*
|
|
473
|
+
* @summary List Subscription Quotas
|
|
474
|
+
* @param {string} subscriptionId
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
*/
|
|
478
|
+
async listSubscriptionQuotas(subscriptionId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Quota>>> {
|
|
479
|
+
const localVarAxiosArgs = await SubscriptionsApiAxiosParamCreator(configuration).listSubscriptionQuotas(subscriptionId, options);
|
|
480
|
+
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
481
|
+
const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
482
|
+
return axios.request(axiosRequestArgs);
|
|
483
|
+
};
|
|
484
|
+
},
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
* @summary Update Subscription
|
|
488
|
+
* @param {string} subscriptionId
|
|
489
|
+
* @param {SubscriptionUpdate} subscriptionUpdate
|
|
490
|
+
* @param {*} [options] Override http request option.
|
|
491
|
+
* @throws {RequiredError}
|
|
492
|
+
*/
|
|
493
|
+
async updateSubscription(subscriptionId: string, subscriptionUpdate: SubscriptionUpdate, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Subscription>> {
|
|
494
|
+
const localVarAxiosArgs = await SubscriptionsApiAxiosParamCreator(configuration).updateSubscription(subscriptionId, subscriptionUpdate, options);
|
|
181
495
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
182
496
|
const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
183
497
|
return axios.request(axiosRequestArgs);
|
|
@@ -192,55 +506,159 @@ export const SubscriptionsApiFp = function(configuration?: Configuration) {
|
|
|
192
506
|
*/
|
|
193
507
|
export const SubscriptionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
194
508
|
return {
|
|
509
|
+
/**
|
|
510
|
+
*
|
|
511
|
+
* @summary Create Subscription
|
|
512
|
+
* @param {SubscriptionCreate} subscriptionCreate
|
|
513
|
+
* @param {*} [options] Override http request option.
|
|
514
|
+
* @throws {RequiredError}
|
|
515
|
+
*/
|
|
516
|
+
createSubscription(subscriptionCreate: SubscriptionCreate, options?: any): AxiosPromise<PayLink> {
|
|
517
|
+
return SubscriptionsApiFp(configuration).createSubscription(subscriptionCreate, options).then((request) => request(axios, basePath));
|
|
518
|
+
},
|
|
195
519
|
/**
|
|
196
520
|
*
|
|
197
521
|
* @summary Get Subscription
|
|
198
|
-
* @param {string}
|
|
522
|
+
* @param {string} subscriptionId
|
|
199
523
|
* @param {*} [options] Override http request option.
|
|
200
524
|
* @throws {RequiredError}
|
|
201
525
|
*/
|
|
202
|
-
|
|
203
|
-
return SubscriptionsApiFp(configuration).
|
|
526
|
+
getSubscription(subscriptionId: string, options?: any): AxiosPromise<Subscription> {
|
|
527
|
+
return SubscriptionsApiFp(configuration).getSubscription(subscriptionId, options).then((request) => request(axios, basePath));
|
|
204
528
|
},
|
|
205
529
|
/**
|
|
206
530
|
*
|
|
207
|
-
* @summary
|
|
208
|
-
* @param {string}
|
|
531
|
+
* @summary List Subscriptions
|
|
532
|
+
* @param {string} [account]
|
|
209
533
|
* @param {*} [options] Override http request option.
|
|
210
534
|
* @throws {RequiredError}
|
|
211
535
|
*/
|
|
212
|
-
|
|
213
|
-
return SubscriptionsApiFp(configuration).
|
|
536
|
+
listPollinationSubscriptions(account?: string, options?: any): AxiosPromise<Array<Subscription>> {
|
|
537
|
+
return SubscriptionsApiFp(configuration).listPollinationSubscriptions(account, options).then((request) => request(axios, basePath));
|
|
538
|
+
},
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
* @summary List Subscription Payments
|
|
542
|
+
* @param {string} subscriptionId
|
|
543
|
+
* @param {*} [options] Override http request option.
|
|
544
|
+
* @throws {RequiredError}
|
|
545
|
+
*/
|
|
546
|
+
listSubscriptionPayments(subscriptionId: string, options?: any): AxiosPromise<Array<Payment>> {
|
|
547
|
+
return SubscriptionsApiFp(configuration).listSubscriptionPayments(subscriptionId, options).then((request) => request(axios, basePath));
|
|
548
|
+
},
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
* @summary List Subscription Quotas
|
|
552
|
+
* @param {string} subscriptionId
|
|
553
|
+
* @param {*} [options] Override http request option.
|
|
554
|
+
* @throws {RequiredError}
|
|
555
|
+
*/
|
|
556
|
+
listSubscriptionQuotas(subscriptionId: string, options?: any): AxiosPromise<Array<Quota>> {
|
|
557
|
+
return SubscriptionsApiFp(configuration).listSubscriptionQuotas(subscriptionId, options).then((request) => request(axios, basePath));
|
|
558
|
+
},
|
|
559
|
+
/**
|
|
560
|
+
*
|
|
561
|
+
* @summary Update Subscription
|
|
562
|
+
* @param {string} subscriptionId
|
|
563
|
+
* @param {SubscriptionUpdate} subscriptionUpdate
|
|
564
|
+
* @param {*} [options] Override http request option.
|
|
565
|
+
* @throws {RequiredError}
|
|
566
|
+
*/
|
|
567
|
+
updateSubscription(subscriptionId: string, subscriptionUpdate: SubscriptionUpdate, options?: any): AxiosPromise<Subscription> {
|
|
568
|
+
return SubscriptionsApiFp(configuration).updateSubscription(subscriptionId, subscriptionUpdate, options).then((request) => request(axios, basePath));
|
|
214
569
|
},
|
|
215
570
|
};
|
|
216
571
|
};
|
|
217
572
|
|
|
218
573
|
/**
|
|
219
|
-
* Request parameters for
|
|
574
|
+
* Request parameters for createSubscription operation in SubscriptionsApi.
|
|
575
|
+
* @export
|
|
576
|
+
* @interface SubscriptionsApiCreateSubscriptionRequest
|
|
577
|
+
*/
|
|
578
|
+
export interface SubscriptionsApiCreateSubscriptionRequest {
|
|
579
|
+
/**
|
|
580
|
+
*
|
|
581
|
+
* @type {SubscriptionCreate}
|
|
582
|
+
* @memberof SubscriptionsApiCreateSubscription
|
|
583
|
+
*/
|
|
584
|
+
readonly subscriptionCreate: SubscriptionCreate
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Request parameters for getSubscription operation in SubscriptionsApi.
|
|
589
|
+
* @export
|
|
590
|
+
* @interface SubscriptionsApiGetSubscriptionRequest
|
|
591
|
+
*/
|
|
592
|
+
export interface SubscriptionsApiGetSubscriptionRequest {
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @type {string}
|
|
596
|
+
* @memberof SubscriptionsApiGetSubscription
|
|
597
|
+
*/
|
|
598
|
+
readonly subscriptionId: string
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Request parameters for listPollinationSubscriptions operation in SubscriptionsApi.
|
|
603
|
+
* @export
|
|
604
|
+
* @interface SubscriptionsApiListPollinationSubscriptionsRequest
|
|
605
|
+
*/
|
|
606
|
+
export interface SubscriptionsApiListPollinationSubscriptionsRequest {
|
|
607
|
+
/**
|
|
608
|
+
*
|
|
609
|
+
* @type {string}
|
|
610
|
+
* @memberof SubscriptionsApiListPollinationSubscriptions
|
|
611
|
+
*/
|
|
612
|
+
readonly account?: string
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Request parameters for listSubscriptionPayments operation in SubscriptionsApi.
|
|
617
|
+
* @export
|
|
618
|
+
* @interface SubscriptionsApiListSubscriptionPaymentsRequest
|
|
619
|
+
*/
|
|
620
|
+
export interface SubscriptionsApiListSubscriptionPaymentsRequest {
|
|
621
|
+
/**
|
|
622
|
+
*
|
|
623
|
+
* @type {string}
|
|
624
|
+
* @memberof SubscriptionsApiListSubscriptionPayments
|
|
625
|
+
*/
|
|
626
|
+
readonly subscriptionId: string
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Request parameters for listSubscriptionQuotas operation in SubscriptionsApi.
|
|
220
631
|
* @export
|
|
221
|
-
* @interface
|
|
632
|
+
* @interface SubscriptionsApiListSubscriptionQuotasRequest
|
|
222
633
|
*/
|
|
223
|
-
export interface
|
|
634
|
+
export interface SubscriptionsApiListSubscriptionQuotasRequest {
|
|
224
635
|
/**
|
|
225
636
|
*
|
|
226
637
|
* @type {string}
|
|
227
|
-
* @memberof
|
|
638
|
+
* @memberof SubscriptionsApiListSubscriptionQuotas
|
|
228
639
|
*/
|
|
229
|
-
readonly
|
|
640
|
+
readonly subscriptionId: string
|
|
230
641
|
}
|
|
231
642
|
|
|
232
643
|
/**
|
|
233
|
-
* Request parameters for
|
|
644
|
+
* Request parameters for updateSubscription operation in SubscriptionsApi.
|
|
234
645
|
* @export
|
|
235
|
-
* @interface
|
|
646
|
+
* @interface SubscriptionsApiUpdateSubscriptionRequest
|
|
236
647
|
*/
|
|
237
|
-
export interface
|
|
648
|
+
export interface SubscriptionsApiUpdateSubscriptionRequest {
|
|
238
649
|
/**
|
|
239
650
|
*
|
|
240
651
|
* @type {string}
|
|
241
|
-
* @memberof
|
|
652
|
+
* @memberof SubscriptionsApiUpdateSubscription
|
|
653
|
+
*/
|
|
654
|
+
readonly subscriptionId: string
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
*
|
|
658
|
+
* @type {SubscriptionUpdate}
|
|
659
|
+
* @memberof SubscriptionsApiUpdateSubscription
|
|
242
660
|
*/
|
|
243
|
-
readonly
|
|
661
|
+
readonly subscriptionUpdate: SubscriptionUpdate
|
|
244
662
|
}
|
|
245
663
|
|
|
246
664
|
/**
|
|
@@ -250,27 +668,75 @@ export interface SubscriptionsApiGetUpcomingPollinationSubscriptionRequest {
|
|
|
250
668
|
* @extends {BaseAPI}
|
|
251
669
|
*/
|
|
252
670
|
export class SubscriptionsApi extends BaseAPI {
|
|
671
|
+
/**
|
|
672
|
+
*
|
|
673
|
+
* @summary Create Subscription
|
|
674
|
+
* @param {SubscriptionsApiCreateSubscriptionRequest} requestParameters Request parameters.
|
|
675
|
+
* @param {*} [options] Override http request option.
|
|
676
|
+
* @throws {RequiredError}
|
|
677
|
+
* @memberof SubscriptionsApi
|
|
678
|
+
*/
|
|
679
|
+
public createSubscription(requestParameters: SubscriptionsApiCreateSubscriptionRequest, options?: any) {
|
|
680
|
+
return SubscriptionsApiFp(this.configuration).createSubscription(requestParameters.subscriptionCreate, options).then((request) => request(this.axios, this.basePath));
|
|
681
|
+
}
|
|
682
|
+
|
|
253
683
|
/**
|
|
254
684
|
*
|
|
255
685
|
* @summary Get Subscription
|
|
256
|
-
* @param {
|
|
686
|
+
* @param {SubscriptionsApiGetSubscriptionRequest} requestParameters Request parameters.
|
|
687
|
+
* @param {*} [options] Override http request option.
|
|
688
|
+
* @throws {RequiredError}
|
|
689
|
+
* @memberof SubscriptionsApi
|
|
690
|
+
*/
|
|
691
|
+
public getSubscription(requestParameters: SubscriptionsApiGetSubscriptionRequest, options?: any) {
|
|
692
|
+
return SubscriptionsApiFp(this.configuration).getSubscription(requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
*
|
|
697
|
+
* @summary List Subscriptions
|
|
698
|
+
* @param {SubscriptionsApiListPollinationSubscriptionsRequest} requestParameters Request parameters.
|
|
699
|
+
* @param {*} [options] Override http request option.
|
|
700
|
+
* @throws {RequiredError}
|
|
701
|
+
* @memberof SubscriptionsApi
|
|
702
|
+
*/
|
|
703
|
+
public listPollinationSubscriptions(requestParameters: SubscriptionsApiListPollinationSubscriptionsRequest = {}, options?: any) {
|
|
704
|
+
return SubscriptionsApiFp(this.configuration).listPollinationSubscriptions(requestParameters.account, options).then((request) => request(this.axios, this.basePath));
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
*
|
|
709
|
+
* @summary List Subscription Payments
|
|
710
|
+
* @param {SubscriptionsApiListSubscriptionPaymentsRequest} requestParameters Request parameters.
|
|
711
|
+
* @param {*} [options] Override http request option.
|
|
712
|
+
* @throws {RequiredError}
|
|
713
|
+
* @memberof SubscriptionsApi
|
|
714
|
+
*/
|
|
715
|
+
public listSubscriptionPayments(requestParameters: SubscriptionsApiListSubscriptionPaymentsRequest, options?: any) {
|
|
716
|
+
return SubscriptionsApiFp(this.configuration).listSubscriptionPayments(requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
*
|
|
721
|
+
* @summary List Subscription Quotas
|
|
722
|
+
* @param {SubscriptionsApiListSubscriptionQuotasRequest} requestParameters Request parameters.
|
|
257
723
|
* @param {*} [options] Override http request option.
|
|
258
724
|
* @throws {RequiredError}
|
|
259
725
|
* @memberof SubscriptionsApi
|
|
260
726
|
*/
|
|
261
|
-
public
|
|
262
|
-
return SubscriptionsApiFp(this.configuration).
|
|
727
|
+
public listSubscriptionQuotas(requestParameters: SubscriptionsApiListSubscriptionQuotasRequest, options?: any) {
|
|
728
|
+
return SubscriptionsApiFp(this.configuration).listSubscriptionQuotas(requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
263
729
|
}
|
|
264
730
|
|
|
265
731
|
/**
|
|
266
732
|
*
|
|
267
|
-
* @summary
|
|
268
|
-
* @param {
|
|
733
|
+
* @summary Update Subscription
|
|
734
|
+
* @param {SubscriptionsApiUpdateSubscriptionRequest} requestParameters Request parameters.
|
|
269
735
|
* @param {*} [options] Override http request option.
|
|
270
736
|
* @throws {RequiredError}
|
|
271
737
|
* @memberof SubscriptionsApi
|
|
272
738
|
*/
|
|
273
|
-
public
|
|
274
|
-
return SubscriptionsApiFp(this.configuration).
|
|
739
|
+
public updateSubscription(requestParameters: SubscriptionsApiUpdateSubscriptionRequest, options?: any) {
|
|
740
|
+
return SubscriptionsApiFp(this.configuration).updateSubscription(requestParameters.subscriptionId, requestParameters.subscriptionUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
275
741
|
}
|
|
276
742
|
}
|