@stigg/typescript 0.1.0-beta.2 → 0.1.0-beta.21
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/CHANGELOG.md +170 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/v1/addons/addons.d.mts +372 -32
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +372 -32
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +173 -15
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +173 -15
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +93 -5
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +93 -5
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +80 -8
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +80 -8
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/addons/index.d.mts +2 -2
- package/resources/v1/addons/index.d.mts.map +1 -1
- package/resources/v1/addons/index.d.ts +2 -2
- package/resources/v1/addons/index.d.ts.map +1 -1
- package/resources/v1/addons/index.js.map +1 -1
- package/resources/v1/addons/index.mjs.map +1 -1
- package/resources/v1/addons.d.mts.map +1 -1
- package/resources/v1/addons.d.ts.map +1 -1
- package/resources/v1/addons.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +117 -21
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +117 -21
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +96 -9
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +96 -9
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +212 -27
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +212 -27
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +66 -7
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +66 -7
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +150 -28
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +150 -28
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +125 -12
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +125 -12
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +91 -26
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +91 -26
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +63 -5
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +63 -5
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +3 -4
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +3 -4
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js +1 -3
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs +0 -1
- package/resources/v1/credits/index.mjs.map +1 -1
- package/resources/v1/credits.d.mts.map +1 -1
- package/resources/v1/credits.d.ts.map +1 -1
- package/resources/v1/credits.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +249 -55
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +249 -55
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +201 -19
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +201 -19
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -2
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -2
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +116 -14
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +116 -14
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +104 -9
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +104 -9
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +48 -8
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +48 -8
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +42 -4
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +42 -4
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +93 -9
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +93 -9
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +89 -6
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +89 -6
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/customers.d.mts.map +1 -1
- package/resources/v1/customers.d.ts.map +1 -1
- package/resources/v1/customers.mjs.map +1 -1
- package/resources/v1/events/beta/beta.d.mts +14 -0
- package/resources/v1/events/beta/beta.d.mts.map +1 -0
- package/resources/v1/events/beta/beta.d.ts +14 -0
- package/resources/v1/events/beta/beta.d.ts.map +1 -0
- package/resources/v1/events/beta/beta.js +21 -0
- package/resources/v1/events/beta/beta.js.map +1 -0
- package/resources/v1/events/beta/beta.mjs +16 -0
- package/resources/v1/events/beta/beta.mjs.map +1 -0
- package/resources/v1/events/beta/customers/assignments.d.mts +200 -0
- package/resources/v1/events/beta/customers/assignments.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/assignments.d.ts +200 -0
- package/resources/v1/events/beta/customers/assignments.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/assignments.js +85 -0
- package/resources/v1/events/beta/customers/assignments.js.map +1 -0
- package/resources/v1/events/beta/customers/assignments.mjs +81 -0
- package/resources/v1/events/beta/customers/assignments.mjs.map +1 -0
- package/resources/v1/events/beta/customers/customers.d.mts +18 -0
- package/resources/v1/events/beta/customers/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/customers.d.ts +18 -0
- package/resources/v1/events/beta/customers/customers.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/customers.js +25 -0
- package/resources/v1/events/beta/customers/customers.js.map +1 -0
- package/resources/v1/events/beta/customers/customers.mjs +20 -0
- package/resources/v1/events/beta/customers/customers.mjs.map +1 -0
- package/resources/v1/events/beta/customers/entities.d.mts +360 -0
- package/resources/v1/events/beta/customers/entities.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/entities.d.ts +360 -0
- package/resources/v1/events/beta/customers/entities.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/entities.js +159 -0
- package/resources/v1/events/beta/customers/entities.js.map +1 -0
- package/resources/v1/events/beta/customers/entities.mjs +155 -0
- package/resources/v1/events/beta/customers/entities.mjs.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.d.mts +251 -0
- package/resources/v1/events/beta/customers/entitlements.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.d.ts +251 -0
- package/resources/v1/events/beta/customers/entitlements.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.js +38 -0
- package/resources/v1/events/beta/customers/entitlements.js.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.mjs +34 -0
- package/resources/v1/events/beta/customers/entitlements.mjs.map +1 -0
- package/resources/v1/events/beta/customers/index.d.mts +5 -0
- package/resources/v1/events/beta/customers/index.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/index.d.ts +5 -0
- package/resources/v1/events/beta/customers/index.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/index.js +13 -0
- package/resources/v1/events/beta/customers/index.js.map +1 -0
- package/resources/v1/events/beta/customers/index.mjs +6 -0
- package/resources/v1/events/beta/customers/index.mjs.map +1 -0
- package/resources/v1/events/beta/customers.d.mts +2 -0
- package/resources/v1/events/beta/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers.d.ts +2 -0
- package/resources/v1/events/beta/customers.d.ts.map +1 -0
- package/resources/v1/events/beta/customers.js +6 -0
- package/resources/v1/events/beta/customers.js.map +1 -0
- package/resources/v1/events/beta/customers.mjs +3 -0
- package/resources/v1/events/beta/customers.mjs.map +1 -0
- package/resources/v1/events/beta/entity-types.d.mts +166 -0
- package/resources/v1/events/beta/entity-types.d.mts.map +1 -0
- package/resources/v1/events/beta/entity-types.d.ts +166 -0
- package/resources/v1/events/beta/entity-types.d.ts.map +1 -0
- package/resources/v1/events/beta/entity-types.js +76 -0
- package/resources/v1/events/beta/entity-types.js.map +1 -0
- package/resources/v1/events/beta/entity-types.mjs +72 -0
- package/resources/v1/events/beta/entity-types.mjs.map +1 -0
- package/resources/v1/events/beta/index.d.mts +4 -0
- package/resources/v1/events/beta/index.d.mts.map +1 -0
- package/resources/v1/events/beta/index.d.ts +4 -0
- package/resources/v1/events/beta/index.d.ts.map +1 -0
- package/resources/v1/events/beta/index.js +11 -0
- package/resources/v1/events/beta/index.js.map +1 -0
- package/resources/v1/events/beta/index.mjs +5 -0
- package/resources/v1/events/beta/index.mjs.map +1 -0
- package/resources/v1/events/beta.d.mts +2 -0
- package/resources/v1/events/beta.d.mts.map +1 -0
- package/resources/v1/events/beta.d.ts +2 -0
- package/resources/v1/events/beta.d.ts.map +1 -0
- package/resources/v1/events/beta.js +6 -0
- package/resources/v1/events/beta.js.map +1 -0
- package/resources/v1/events/beta.mjs +3 -0
- package/resources/v1/events/beta.mjs.map +1 -0
- package/resources/v1/events/data-export/data-export.d.mts +126 -0
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export/data-export.d.ts +126 -0
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export/data-export.js +45 -0
- package/resources/v1/events/data-export/data-export.js.map +1 -0
- package/resources/v1/events/data-export/data-export.mjs +40 -0
- package/resources/v1/events/data-export/data-export.mjs.map +1 -0
- package/resources/v1/events/data-export/destinations.d.mts +202 -0
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
- package/resources/v1/events/data-export/destinations.d.ts +202 -0
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
- package/resources/v1/events/data-export/destinations.js +41 -0
- package/resources/v1/events/data-export/destinations.js.map +1 -0
- package/resources/v1/events/data-export/destinations.mjs +37 -0
- package/resources/v1/events/data-export/destinations.mjs.map +1 -0
- package/resources/v1/events/data-export/index.d.mts +3 -0
- package/resources/v1/events/data-export/index.d.mts.map +1 -0
- package/resources/v1/events/data-export/index.d.ts +3 -0
- package/resources/v1/events/data-export/index.d.ts.map +1 -0
- package/resources/v1/events/data-export/index.js +9 -0
- package/resources/v1/events/data-export/index.js.map +1 -0
- package/resources/v1/events/data-export/index.mjs +4 -0
- package/resources/v1/events/data-export/index.mjs.map +1 -0
- package/resources/v1/events/data-export.d.mts +2 -0
- package/resources/v1/events/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export.d.ts +2 -0
- package/resources/v1/events/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export.js +6 -0
- package/resources/v1/events/data-export.js.map +1 -0
- package/resources/v1/events/data-export.mjs +3 -0
- package/resources/v1/events/data-export.mjs.map +1 -0
- package/resources/v1/events/events.d.mts +98 -0
- package/resources/v1/events/events.d.mts.map +1 -0
- package/resources/v1/events/events.d.ts +98 -0
- package/resources/v1/events/events.d.ts.map +1 -0
- package/resources/v1/events/events.js +56 -0
- package/resources/v1/events/events.js.map +1 -0
- package/resources/v1/events/events.mjs +51 -0
- package/resources/v1/events/events.mjs.map +1 -0
- package/resources/v1/events/index.d.mts +4 -0
- package/resources/v1/events/index.d.mts.map +1 -0
- package/resources/v1/events/index.d.ts +4 -0
- package/resources/v1/events/index.d.ts.map +1 -0
- package/resources/v1/events/index.js +11 -0
- package/resources/v1/events/index.js.map +1 -0
- package/resources/v1/events/index.mjs +5 -0
- package/resources/v1/events/index.mjs.map +1 -0
- package/resources/v1/events.d.mts +1 -65
- package/resources/v1/events.d.mts.map +1 -1
- package/resources/v1/events.d.ts +1 -65
- package/resources/v1/events.d.ts.map +1 -1
- package/resources/v1/events.js +2 -15
- package/resources/v1/events.js.map +1 -1
- package/resources/v1/events.mjs +1 -13
- package/resources/v1/events.mjs.map +1 -1
- package/resources/v1/features.d.mts +152 -31
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +152 -31
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +115 -11
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +115 -11
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +9 -9
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +9 -9
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +6 -6
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +93 -5
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +93 -5
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +80 -8
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +80 -8
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/index.d.mts +2 -2
- package/resources/v1/plans/index.d.mts.map +1 -1
- package/resources/v1/plans/index.d.ts +2 -2
- package/resources/v1/plans/index.d.ts.map +1 -1
- package/resources/v1/plans/index.js.map +1 -1
- package/resources/v1/plans/index.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +565 -32
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +565 -32
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +204 -16
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +204 -16
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/plans.d.mts.map +1 -1
- package/resources/v1/plans.d.ts.map +1 -1
- package/resources/v1/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +140 -23
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +140 -23
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +116 -11
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +116 -11
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +45 -3
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +45 -3
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +41 -4
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +41 -4
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +4 -4
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +4 -4
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +1 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +21 -2
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +21 -2
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +19 -2
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +19 -2
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +341 -85
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +341 -85
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +207 -19
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +209 -21
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +42 -4
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +42 -4
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +39 -4
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +39 -4
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions.mjs.map +1 -1
- package/resources/v1/usage.d.mts +48 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +48 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +50 -4
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +50 -4
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +18 -18
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +18 -18
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +2 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +2 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1.d.mts.map +1 -1
- package/resources/v1.d.ts.map +1 -1
- package/resources/v1.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/resources/v1/addons/addons.ts +908 -36
- package/src/resources/v1/addons/entitlements.ts +154 -10
- package/src/resources/v1/addons/index.ts +8 -0
- package/src/resources/v1/coupons.ts +194 -27
- package/src/resources/v1/credits/credits.ts +287 -35
- package/src/resources/v1/credits/custom-currencies.ts +245 -38
- package/src/resources/v1/credits/grants.ts +132 -26
- package/src/resources/v1/credits/index.ts +7 -6
- package/src/resources/v1/customers/customers.ts +415 -67
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +184 -18
- package/src/resources/v1/customers/payment-method.ts +85 -10
- package/src/resources/v1/customers/promotional-entitlements.ts +133 -11
- package/src/resources/v1/events/beta/beta.ts +35 -0
- package/src/resources/v1/events/beta/customers/assignments.ts +277 -0
- package/src/resources/v1/events/beta/customers/customers.ts +71 -0
- package/src/resources/v1/events/beta/customers/entities.ts +501 -0
- package/src/resources/v1/events/beta/customers/entitlements.ts +354 -0
- package/src/resources/v1/events/beta/customers/index.ts +26 -0
- package/src/resources/v1/events/beta/customers.ts +3 -0
- package/src/resources/v1/events/beta/entity-types.ts +226 -0
- package/src/resources/v1/events/beta/index.ts +12 -0
- package/src/resources/v1/events/beta.ts +3 -0
- package/src/resources/v1/events/data-export/data-export.ts +170 -0
- package/src/resources/v1/events/data-export/destinations.ts +243 -0
- package/src/resources/v1/events/data-export/index.ts +15 -0
- package/src/resources/v1/events/data-export.ts +3 -0
- package/src/resources/v1/events/events.ts +141 -0
- package/src/resources/v1/events/index.ts +11 -0
- package/src/resources/v1/events.ts +1 -75
- package/src/resources/v1/features.ts +252 -39
- package/src/resources/v1/index.ts +31 -1
- package/src/resources/v1/plans/entitlements.ts +154 -10
- package/src/resources/v1/plans/index.ts +11 -0
- package/src/resources/v1/plans/plans.ts +1509 -37
- package/src/resources/v1/products.ts +235 -30
- package/src/resources/v1/subscriptions/future-update.ts +84 -5
- package/src/resources/v1/subscriptions/index.ts +9 -2
- package/src/resources/v1/subscriptions/invoice.ts +42 -3
- package/src/resources/v1/subscriptions/subscriptions.ts +509 -90
- package/src/resources/v1/subscriptions/usage.ts +74 -5
- package/src/resources/v1/usage.ts +77 -5
- package/src/resources/v1/v1.ts +62 -2
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/v1/credits/auto-recharge.d.mts +0 -84
- package/resources/v1/credits/auto-recharge.d.mts.map +0 -1
- package/resources/v1/credits/auto-recharge.d.ts +0 -84
- package/resources/v1/credits/auto-recharge.d.ts.map +0 -1
- package/resources/v1/credits/auto-recharge.js +0 -16
- package/resources/v1/credits/auto-recharge.js.map +0 -1
- package/resources/v1/credits/auto-recharge.mjs +0 -12
- package/resources/v1/credits/auto-recharge.mjs.map +0 -1
- package/src/resources/v1/credits/auto-recharge.ts +0 -109
|
@@ -3,6 +3,7 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
3
3
|
import * as EntitlementsAPI from "./entitlements.mjs";
|
|
4
4
|
import { Entitlements, } from "./entitlements.mjs";
|
|
5
5
|
import { MyCursorIDPage } from "../../../core/pagination.mjs";
|
|
6
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
6
7
|
import { path } from "../../../internal/utils/path.mjs";
|
|
7
8
|
/**
|
|
8
9
|
* Operations related to plans
|
|
@@ -14,53 +15,240 @@ export class Plans extends APIResource {
|
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* Creates a new plan in draft status.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const plan = await client.v1.plans.create({
|
|
22
|
+
* id: 'id',
|
|
23
|
+
* displayName: 'displayName',
|
|
24
|
+
* productId: 'productId',
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
17
27
|
*/
|
|
18
|
-
create(
|
|
19
|
-
|
|
28
|
+
create(params, options) {
|
|
29
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
30
|
+
return this._client.post('/api/v1/plans', {
|
|
31
|
+
body,
|
|
32
|
+
...options,
|
|
33
|
+
headers: buildHeaders([
|
|
34
|
+
{
|
|
35
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
36
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
37
|
+
},
|
|
38
|
+
options?.headers,
|
|
39
|
+
]),
|
|
40
|
+
});
|
|
20
41
|
}
|
|
21
42
|
/**
|
|
22
43
|
* Retrieves a plan by its unique identifier, including entitlements and pricing
|
|
23
44
|
* details.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const plan = await client.v1.plans.retrieve('x');
|
|
49
|
+
* ```
|
|
24
50
|
*/
|
|
25
|
-
retrieve(id, options) {
|
|
26
|
-
|
|
51
|
+
retrieve(id, params = {}, options) {
|
|
52
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
53
|
+
return this._client.get(path `/api/v1/plans/${id}`, {
|
|
54
|
+
...options,
|
|
55
|
+
headers: buildHeaders([
|
|
56
|
+
{
|
|
57
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
58
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
59
|
+
},
|
|
60
|
+
options?.headers,
|
|
61
|
+
]),
|
|
62
|
+
});
|
|
27
63
|
}
|
|
28
64
|
/**
|
|
29
65
|
* Updates an existing plan's properties such as display name, description, and
|
|
30
66
|
* metadata.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const plan = await client.v1.plans.update('x');
|
|
71
|
+
* ```
|
|
31
72
|
*/
|
|
32
|
-
update(id,
|
|
33
|
-
|
|
73
|
+
update(id, params, options) {
|
|
74
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
75
|
+
return this._client.patch(path `/api/v1/plans/${id}`, {
|
|
76
|
+
body,
|
|
77
|
+
...options,
|
|
78
|
+
headers: buildHeaders([
|
|
79
|
+
{
|
|
80
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
81
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
82
|
+
},
|
|
83
|
+
options?.headers,
|
|
84
|
+
]),
|
|
85
|
+
});
|
|
34
86
|
}
|
|
35
87
|
/**
|
|
36
88
|
* Retrieves a paginated list of plans in the environment.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```ts
|
|
92
|
+
* // Automatically fetches more pages as needed.
|
|
93
|
+
* for await (const planListResponse of client.v1.plans.list()) {
|
|
94
|
+
* // ...
|
|
95
|
+
* }
|
|
96
|
+
* ```
|
|
37
97
|
*/
|
|
38
|
-
list(
|
|
39
|
-
|
|
98
|
+
list(params = {}, options) {
|
|
99
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
100
|
+
return this._client.getAPIList('/api/v1/plans', (MyCursorIDPage), {
|
|
101
|
+
query,
|
|
102
|
+
...options,
|
|
103
|
+
headers: buildHeaders([
|
|
104
|
+
{
|
|
105
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
106
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
107
|
+
},
|
|
108
|
+
options?.headers,
|
|
109
|
+
]),
|
|
110
|
+
});
|
|
40
111
|
}
|
|
41
112
|
/**
|
|
42
113
|
* Archives a plan, preventing it from being used in new subscriptions.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```ts
|
|
117
|
+
* const plan = await client.v1.plans.archive('x');
|
|
118
|
+
* ```
|
|
43
119
|
*/
|
|
44
|
-
archive(id, options) {
|
|
45
|
-
|
|
120
|
+
archive(id, params = {}, options) {
|
|
121
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
122
|
+
return this._client.post(path `/api/v1/plans/${id}/archive`, {
|
|
123
|
+
...options,
|
|
124
|
+
headers: buildHeaders([
|
|
125
|
+
{
|
|
126
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
127
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
128
|
+
},
|
|
129
|
+
options?.headers,
|
|
130
|
+
]),
|
|
131
|
+
});
|
|
46
132
|
}
|
|
47
133
|
/**
|
|
48
134
|
* Creates a draft version of an existing plan for modification before publishing.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```ts
|
|
138
|
+
* const plan = await client.v1.plans.createDraft('x');
|
|
139
|
+
* ```
|
|
49
140
|
*/
|
|
50
|
-
createDraft(id, options) {
|
|
51
|
-
|
|
141
|
+
createDraft(id, params = {}, options) {
|
|
142
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
143
|
+
return this._client.post(path `/api/v1/plans/${id}/draft`, {
|
|
144
|
+
...options,
|
|
145
|
+
headers: buildHeaders([
|
|
146
|
+
{
|
|
147
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
148
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
149
|
+
},
|
|
150
|
+
options?.headers,
|
|
151
|
+
]),
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Retrieves the list of charges configured on a plan.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* ```ts
|
|
159
|
+
* // Automatically fetches more pages as needed.
|
|
160
|
+
* for await (const planListChargesResponse of client.v1.plans.listCharges(
|
|
161
|
+
* 'x',
|
|
162
|
+
* )) {
|
|
163
|
+
* // ...
|
|
164
|
+
* }
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
listCharges(id, params = {}, options) {
|
|
168
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
169
|
+
return this._client.getAPIList(path `/api/v1/plans/${id}/charges`, (MyCursorIDPage), {
|
|
170
|
+
query,
|
|
171
|
+
...options,
|
|
172
|
+
headers: buildHeaders([
|
|
173
|
+
{
|
|
174
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
175
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
176
|
+
},
|
|
177
|
+
options?.headers,
|
|
178
|
+
]),
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Retrieves the list of overage charges configured on a plan.
|
|
183
|
+
*
|
|
184
|
+
* @example
|
|
185
|
+
* ```ts
|
|
186
|
+
* // Automatically fetches more pages as needed.
|
|
187
|
+
* for await (const planListOverageChargesResponse of client.v1.plans.listOverageCharges(
|
|
188
|
+
* 'x',
|
|
189
|
+
* )) {
|
|
190
|
+
* // ...
|
|
191
|
+
* }
|
|
192
|
+
* ```
|
|
193
|
+
*/
|
|
194
|
+
listOverageCharges(id, params = {}, options) {
|
|
195
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
196
|
+
return this._client.getAPIList(path `/api/v1/plans/${id}/overage-charges`, (MyCursorIDPage), {
|
|
197
|
+
query,
|
|
198
|
+
...options,
|
|
199
|
+
headers: buildHeaders([
|
|
200
|
+
{
|
|
201
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
202
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
203
|
+
},
|
|
204
|
+
options?.headers,
|
|
205
|
+
]),
|
|
206
|
+
});
|
|
52
207
|
}
|
|
53
208
|
/**
|
|
54
209
|
* Publishes a draft plan, making it available for use in subscriptions.
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* ```ts
|
|
213
|
+
* const response = await client.v1.plans.publish('x', {
|
|
214
|
+
* migrationType: 'NEW_CUSTOMERS',
|
|
215
|
+
* });
|
|
216
|
+
* ```
|
|
55
217
|
*/
|
|
56
|
-
publish(id,
|
|
57
|
-
|
|
218
|
+
publish(id, params, options) {
|
|
219
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
220
|
+
return this._client.post(path `/api/v1/plans/${id}/publish`, {
|
|
221
|
+
body,
|
|
222
|
+
...options,
|
|
223
|
+
headers: buildHeaders([
|
|
224
|
+
{
|
|
225
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
226
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
227
|
+
},
|
|
228
|
+
options?.headers,
|
|
229
|
+
]),
|
|
230
|
+
});
|
|
58
231
|
}
|
|
59
232
|
/**
|
|
60
233
|
* Removes a draft version of a plan.
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* ```ts
|
|
237
|
+
* const response = await client.v1.plans.removeDraft('x');
|
|
238
|
+
* ```
|
|
61
239
|
*/
|
|
62
|
-
removeDraft(id, options) {
|
|
63
|
-
|
|
240
|
+
removeDraft(id, params = {}, options) {
|
|
241
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
242
|
+
return this._client.delete(path `/api/v1/plans/${id}/draft`, {
|
|
243
|
+
...options,
|
|
244
|
+
headers: buildHeaders([
|
|
245
|
+
{
|
|
246
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
247
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
248
|
+
},
|
|
249
|
+
options?.headers,
|
|
250
|
+
]),
|
|
251
|
+
});
|
|
64
252
|
}
|
|
65
253
|
}
|
|
66
254
|
Plans.Entitlements = Entitlements;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.mjs","sourceRoot":"","sources":["../../../src/resources/v1/plans/plans.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"plans.mjs","sourceRoot":"","sources":["../../../src/resources/v1/plans/plans.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAOL,YAAY,GAEb,2BAAuB;AAExB,OAAO,EAAE,cAAc,EAA0C,qCAAiC;AAClG,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2R9F,CAAC;IAzRC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAwB,EAAE,OAAwB;QACvD,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EA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H,CAAC,CAAC;IACL,CAAC;CACF;AAslGD,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.d.mts","sourceRoot":"","sources":["../../src/resources/v1/plans.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"plans.d.mts","sourceRoot":"","sources":["../../src/resources/v1/plans.ts"],"names":[],"mappings":"AAEA,kCAA8B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.d.ts","sourceRoot":"","sources":["../../src/resources/v1/plans.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"plans.d.ts","sourceRoot":"","sources":["../../src/resources/v1/plans.ts"],"names":[],"mappings":"AAEA,iCAA8B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.mjs","sourceRoot":"","sources":["../../src/resources/v1/plans.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
1
|
+
{"version":3,"file":"plans.mjs","sourceRoot":"","sources":["../../src/resources/v1/plans.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,kCAA8B"}
|
|
@@ -9,29 +9,72 @@ export declare class Products extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Archives a product, preventing new subscriptions. All plans and addons are
|
|
11
11
|
* archived.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const product = await client.v1.products.archiveProduct(
|
|
16
|
+
* 'x',
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
12
19
|
*/
|
|
13
|
-
archiveProduct(id: string, options?: RequestOptions): APIPromise<Product>;
|
|
20
|
+
archiveProduct(id: string, params?: ProductArchiveProductParams | null | undefined, options?: RequestOptions): APIPromise<Product>;
|
|
14
21
|
/**
|
|
15
22
|
* Creates a new product.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const product = await client.v1.products.createProduct({
|
|
27
|
+
* id: 'id',
|
|
28
|
+
* displayName: 'displayName',
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
16
31
|
*/
|
|
17
|
-
createProduct(
|
|
32
|
+
createProduct(params: ProductCreateProductParams, options?: RequestOptions): APIPromise<Product>;
|
|
18
33
|
/**
|
|
19
34
|
* Duplicates an existing product, including its plans, addons, and configuration.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const product = await client.v1.products.duplicateProduct(
|
|
39
|
+
* 'x',
|
|
40
|
+
* { targetId: 'targetId' },
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
20
43
|
*/
|
|
21
|
-
duplicateProduct(id: string,
|
|
44
|
+
duplicateProduct(id: string, params: ProductDuplicateProductParams, options?: RequestOptions): APIPromise<Product>;
|
|
22
45
|
/**
|
|
23
46
|
* Retrieves a paginated list of products in the environment.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* // Automatically fetches more pages as needed.
|
|
51
|
+
* for await (const productListProductsResponse of client.v1.products.listProducts()) {
|
|
52
|
+
* // ...
|
|
53
|
+
* }
|
|
54
|
+
* ```
|
|
24
55
|
*/
|
|
25
|
-
listProducts(
|
|
56
|
+
listProducts(params?: ProductListProductsParams | null | undefined, options?: RequestOptions): PagePromise<ProductListProductsResponsesMyCursorIDPage, ProductListProductsResponse>;
|
|
26
57
|
/**
|
|
27
58
|
* Restores an archived product, allowing new subscriptions to be created.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const product = await client.v1.products.unarchiveProduct(
|
|
63
|
+
* 'x',
|
|
64
|
+
* );
|
|
65
|
+
* ```
|
|
28
66
|
*/
|
|
29
|
-
unarchiveProduct(id: string, options?: RequestOptions): APIPromise<Product>;
|
|
67
|
+
unarchiveProduct(id: string, params?: ProductUnarchiveProductParams | null | undefined, options?: RequestOptions): APIPromise<Product>;
|
|
30
68
|
/**
|
|
31
69
|
* Updates an existing product's properties such as display name, description, and
|
|
32
70
|
* metadata.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const product = await client.v1.products.updateProduct('x');
|
|
75
|
+
* ```
|
|
33
76
|
*/
|
|
34
|
-
updateProduct(id: string,
|
|
77
|
+
updateProduct(id: string, params: ProductUpdateProductParams, options?: RequestOptions): APIPromise<Product>;
|
|
35
78
|
}
|
|
36
79
|
export type ProductListProductsResponsesMyCursorIDPage = MyCursorIDPage<ProductListProductsResponse>;
|
|
37
80
|
/**
|
|
@@ -195,57 +238,104 @@ export declare namespace ProductListProductsResponse {
|
|
|
195
238
|
subscriptionStartPlanId?: string | null;
|
|
196
239
|
}
|
|
197
240
|
}
|
|
241
|
+
export interface ProductArchiveProductParams {
|
|
242
|
+
/**
|
|
243
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
244
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
245
|
+
*/
|
|
246
|
+
'X-ACCOUNT-ID'?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
249
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
250
|
+
* key).
|
|
251
|
+
*/
|
|
252
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
253
|
+
}
|
|
198
254
|
export interface ProductCreateProductParams {
|
|
199
255
|
/**
|
|
200
|
-
* The unique identifier for the entity
|
|
256
|
+
* Body param: The unique identifier for the entity
|
|
201
257
|
*/
|
|
202
258
|
id: string;
|
|
203
259
|
/**
|
|
204
|
-
* Display name of the product
|
|
260
|
+
* Body param: Display name of the product
|
|
205
261
|
*/
|
|
206
262
|
displayName: string;
|
|
207
263
|
/**
|
|
208
|
-
* Description of the product
|
|
264
|
+
* Body param: Description of the product
|
|
209
265
|
*/
|
|
210
266
|
description?: string | null;
|
|
211
267
|
/**
|
|
212
|
-
* Additional metadata for the product
|
|
268
|
+
* Body param: Additional metadata for the product
|
|
213
269
|
*/
|
|
214
270
|
metadata?: {
|
|
215
271
|
[key: string]: string;
|
|
216
272
|
} | null;
|
|
217
273
|
/**
|
|
218
|
-
* Indicates if multiple subscriptions to this product are allowed
|
|
274
|
+
* Body param: Indicates if multiple subscriptions to this product are allowed
|
|
219
275
|
*/
|
|
220
276
|
multipleSubscriptions?: boolean;
|
|
277
|
+
/**
|
|
278
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
279
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
280
|
+
*/
|
|
281
|
+
'X-ACCOUNT-ID'?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
284
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
285
|
+
* intrinsic to the key).
|
|
286
|
+
*/
|
|
287
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
221
288
|
}
|
|
222
289
|
export interface ProductDuplicateProductParams {
|
|
223
290
|
/**
|
|
224
|
-
* The unique identifier for the entity
|
|
291
|
+
* Body param: The unique identifier for the entity
|
|
225
292
|
*/
|
|
226
293
|
targetId: string;
|
|
227
294
|
/**
|
|
228
|
-
* Description of the product
|
|
295
|
+
* Body param: Description of the product
|
|
229
296
|
*/
|
|
230
297
|
description?: string | null;
|
|
231
298
|
/**
|
|
232
|
-
* Display name of the product
|
|
299
|
+
* Body param: Display name of the product
|
|
233
300
|
*/
|
|
234
301
|
displayName?: string;
|
|
302
|
+
/**
|
|
303
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
304
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
305
|
+
*/
|
|
306
|
+
'X-ACCOUNT-ID'?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
309
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
310
|
+
* intrinsic to the key).
|
|
311
|
+
*/
|
|
312
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
235
313
|
}
|
|
236
314
|
export interface ProductListProductsParams extends MyCursorIDPageParams {
|
|
237
315
|
/**
|
|
238
|
-
* Filter by entity ID
|
|
316
|
+
* Query param: Filter by entity ID
|
|
239
317
|
*/
|
|
240
318
|
id?: string;
|
|
241
319
|
/**
|
|
242
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
320
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
243
321
|
*/
|
|
244
322
|
createdAt?: ProductListProductsParams.CreatedAt;
|
|
245
323
|
/**
|
|
246
|
-
* Filter by product status. Supports comma-separated values for
|
|
324
|
+
* Query param: Filter by product status. Supports comma-separated values for
|
|
325
|
+
* multiple statuses
|
|
247
326
|
*/
|
|
248
327
|
status?: Array<'PUBLISHED' | 'ARCHIVED'>;
|
|
328
|
+
/**
|
|
329
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
330
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
331
|
+
*/
|
|
332
|
+
'X-ACCOUNT-ID'?: string;
|
|
333
|
+
/**
|
|
334
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
335
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
336
|
+
* intrinsic to the key).
|
|
337
|
+
*/
|
|
338
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
249
339
|
}
|
|
250
340
|
export declare namespace ProductListProductsParams {
|
|
251
341
|
/**
|
|
@@ -270,30 +360,57 @@ export declare namespace ProductListProductsParams {
|
|
|
270
360
|
lte?: string;
|
|
271
361
|
}
|
|
272
362
|
}
|
|
363
|
+
export interface ProductUnarchiveProductParams {
|
|
364
|
+
/**
|
|
365
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
366
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
367
|
+
*/
|
|
368
|
+
'X-ACCOUNT-ID'?: string;
|
|
369
|
+
/**
|
|
370
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
371
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
372
|
+
* key).
|
|
373
|
+
*/
|
|
374
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
375
|
+
}
|
|
273
376
|
export interface ProductUpdateProductParams {
|
|
274
377
|
/**
|
|
275
|
-
* Description of the product
|
|
378
|
+
* Body param: Description of the product
|
|
276
379
|
*/
|
|
277
380
|
description?: string | null;
|
|
278
381
|
/**
|
|
279
|
-
* Display name of the product
|
|
382
|
+
* Body param: Display name of the product
|
|
280
383
|
*/
|
|
281
384
|
displayName?: string;
|
|
282
385
|
/**
|
|
283
|
-
* Additional metadata for the product
|
|
386
|
+
* Body param: Additional metadata for the product
|
|
284
387
|
*/
|
|
285
388
|
metadata?: {
|
|
286
389
|
[key: string]: string;
|
|
287
390
|
} | null;
|
|
288
391
|
/**
|
|
289
|
-
* Indicates if multiple subscriptions to this product are allowed
|
|
392
|
+
* Body param: Indicates if multiple subscriptions to this product are allowed
|
|
290
393
|
*/
|
|
291
394
|
multipleSubscriptions?: boolean;
|
|
395
|
+
/**
|
|
396
|
+
* Body param
|
|
397
|
+
*/
|
|
292
398
|
productSettings?: ProductUpdateProductParams.ProductSettings;
|
|
293
399
|
/**
|
|
294
|
-
* Rule defining when usage resets upon subscription update.
|
|
400
|
+
* Body param: Rule defining when usage resets upon subscription update.
|
|
295
401
|
*/
|
|
296
402
|
usageResetCutoffRule?: ProductUpdateProductParams.UsageResetCutoffRule;
|
|
403
|
+
/**
|
|
404
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
405
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
406
|
+
*/
|
|
407
|
+
'X-ACCOUNT-ID'?: string;
|
|
408
|
+
/**
|
|
409
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
410
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
411
|
+
* intrinsic to the key).
|
|
412
|
+
*/
|
|
413
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
297
414
|
}
|
|
298
415
|
export declare namespace ProductUpdateProductParams {
|
|
299
416
|
interface ProductSettings {
|
|
@@ -334,6 +451,6 @@ export declare namespace ProductUpdateProductParams {
|
|
|
334
451
|
}
|
|
335
452
|
}
|
|
336
453
|
export declare namespace Products {
|
|
337
|
-
export { type Product as Product, type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductCreateProductParams as ProductCreateProductParams, type ProductDuplicateProductParams as ProductDuplicateProductParams, type ProductListProductsParams as ProductListProductsParams, type ProductUpdateProductParams as ProductUpdateProductParams, };
|
|
454
|
+
export { type Product as Product, type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductArchiveProductParams as ProductArchiveProductParams, type ProductCreateProductParams as ProductCreateProductParams, type ProductDuplicateProductParams as ProductDuplicateProductParams, type ProductListProductsParams as ProductListProductsParams, type ProductUnarchiveProductParams as ProductUnarchiveProductParams, type ProductUpdateProductParams as ProductUpdateProductParams, };
|
|
338
455
|
}
|
|
339
456
|
//# sourceMappingURL=products.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.mts","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"products.d.mts","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,kCAA8B;AAE/F,OAAO,EAAE,cAAc,EAAE,2CAAuC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