@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
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
5
6
|
import { RequestOptions } from '../../../internal/request-options';
|
|
6
7
|
import { path } from '../../../internal/utils/path';
|
|
7
8
|
|
|
@@ -12,21 +13,59 @@ export class Usage extends APIResource {
|
|
|
12
13
|
/**
|
|
13
14
|
* Immediately charges usage for a subscription via the billing integration.
|
|
14
15
|
* Calculates usage since the last charge and creates an invoice.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const response =
|
|
20
|
+
* await client.v1.subscriptions.usage.chargeUsage('x');
|
|
21
|
+
* ```
|
|
15
22
|
*/
|
|
16
23
|
chargeUsage(
|
|
17
24
|
id: string,
|
|
18
|
-
|
|
25
|
+
params: UsageChargeUsageParams,
|
|
19
26
|
options?: RequestOptions,
|
|
20
27
|
): APIPromise<UsageChargeUsageResponse> {
|
|
21
|
-
|
|
28
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
29
|
+
return this._client.post(path`/api/v1/subscriptions/${id}/usage/charge`, {
|
|
30
|
+
body,
|
|
31
|
+
...options,
|
|
32
|
+
headers: buildHeaders([
|
|
33
|
+
{
|
|
34
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
35
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
36
|
+
},
|
|
37
|
+
options?.headers,
|
|
38
|
+
]),
|
|
39
|
+
});
|
|
22
40
|
}
|
|
23
41
|
|
|
24
42
|
/**
|
|
25
43
|
* Triggers a usage sync for a subscription, reporting current usage to the billing
|
|
26
44
|
* provider.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const response = await client.v1.subscriptions.usage.sync(
|
|
49
|
+
* 'x',
|
|
50
|
+
* );
|
|
51
|
+
* ```
|
|
27
52
|
*/
|
|
28
|
-
sync(
|
|
29
|
-
|
|
53
|
+
sync(
|
|
54
|
+
id: string,
|
|
55
|
+
params: UsageSyncParams | null | undefined = {},
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): APIPromise<UsageSyncResponse> {
|
|
58
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
59
|
+
return this._client.post(path`/api/v1/subscriptions/${id}/usage/sync`, {
|
|
60
|
+
...options,
|
|
61
|
+
headers: buildHeaders([
|
|
62
|
+
{
|
|
63
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
64
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
65
|
+
},
|
|
66
|
+
options?.headers,
|
|
67
|
+
]),
|
|
68
|
+
});
|
|
30
69
|
}
|
|
31
70
|
}
|
|
32
71
|
|
|
@@ -115,9 +154,38 @@ export namespace UsageSyncResponse {
|
|
|
115
154
|
|
|
116
155
|
export interface UsageChargeUsageParams {
|
|
117
156
|
/**
|
|
118
|
-
* Cutoff date for usage calculation. If not provided, the current time
|
|
157
|
+
* Body param: Cutoff date for usage calculation. If not provided, the current time
|
|
158
|
+
* is used.
|
|
119
159
|
*/
|
|
120
160
|
untilDate?: string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
164
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
165
|
+
*/
|
|
166
|
+
'X-ACCOUNT-ID'?: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
170
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
171
|
+
* intrinsic to the key).
|
|
172
|
+
*/
|
|
173
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export interface UsageSyncParams {
|
|
177
|
+
/**
|
|
178
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
179
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
180
|
+
*/
|
|
181
|
+
'X-ACCOUNT-ID'?: string;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
185
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
186
|
+
* key).
|
|
187
|
+
*/
|
|
188
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
121
189
|
}
|
|
122
190
|
|
|
123
191
|
export declare namespace Usage {
|
|
@@ -125,5 +193,6 @@ export declare namespace Usage {
|
|
|
125
193
|
type UsageChargeUsageResponse as UsageChargeUsageResponse,
|
|
126
194
|
type UsageSyncResponse as UsageSyncResponse,
|
|
127
195
|
type UsageChargeUsageParams as UsageChargeUsageParams,
|
|
196
|
+
type UsageSyncParams as UsageSyncParams,
|
|
128
197
|
};
|
|
129
198
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../internal/headers';
|
|
5
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
7
|
import { path } from '../../internal/utils/path';
|
|
7
8
|
|
|
@@ -11,22 +12,67 @@ import { path } from '../../internal/utils/path';
|
|
|
11
12
|
export class Usage extends APIResource {
|
|
12
13
|
/**
|
|
13
14
|
* Retrieves historical usage data for a customer's metered feature over time.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const response = await client.v1.usage.history(
|
|
19
|
+
* 'featureId',
|
|
20
|
+
* {
|
|
21
|
+
* customerId: 'customerId',
|
|
22
|
+
* startDate: '2019-12-27T18:11:19.117Z',
|
|
23
|
+
* },
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
14
26
|
*/
|
|
15
27
|
history(
|
|
16
28
|
featureID: string,
|
|
17
29
|
params: UsageHistoryParams,
|
|
18
30
|
options?: RequestOptions,
|
|
19
31
|
): APIPromise<UsageHistoryResponse> {
|
|
20
|
-
const { customerId, ...query } = params;
|
|
21
|
-
return this._client.get(path`/api/v1/usage/${customerId}/history/${featureID}`, {
|
|
32
|
+
const { customerId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params;
|
|
33
|
+
return this._client.get(path`/api/v1/usage/${customerId}/history/${featureID}`, {
|
|
34
|
+
query,
|
|
35
|
+
...options,
|
|
36
|
+
headers: buildHeaders([
|
|
37
|
+
{
|
|
38
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
39
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
40
|
+
},
|
|
41
|
+
options?.headers,
|
|
42
|
+
]),
|
|
43
|
+
});
|
|
22
44
|
}
|
|
23
45
|
|
|
24
46
|
/**
|
|
25
47
|
* Reports usage measurements for metered features. The reported usage is used to
|
|
26
48
|
* track, limit, and bill customer consumption.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const response = await client.v1.usage.report({
|
|
53
|
+
* usages: [
|
|
54
|
+
* {
|
|
55
|
+
* customerId: 'customerId',
|
|
56
|
+
* featureId: 'featureId',
|
|
57
|
+
* value: -9007199254740991,
|
|
58
|
+
* },
|
|
59
|
+
* ],
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
27
62
|
*/
|
|
28
|
-
report(
|
|
29
|
-
|
|
63
|
+
report(params: UsageReportParams, options?: RequestOptions): APIPromise<UsageReportResponse> {
|
|
64
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
65
|
+
return this._client.post('/api/v1/usage', {
|
|
66
|
+
body,
|
|
67
|
+
...options,
|
|
68
|
+
headers: buildHeaders([
|
|
69
|
+
{
|
|
70
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
71
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
72
|
+
},
|
|
73
|
+
options?.headers,
|
|
74
|
+
]),
|
|
75
|
+
});
|
|
30
76
|
}
|
|
31
77
|
}
|
|
32
78
|
|
|
@@ -226,13 +272,39 @@ export interface UsageHistoryParams {
|
|
|
226
272
|
* Query param: Resource id
|
|
227
273
|
*/
|
|
228
274
|
resourceId?: string | null;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
278
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
279
|
+
*/
|
|
280
|
+
'X-ACCOUNT-ID'?: string;
|
|
281
|
+
|
|
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;
|
|
229
288
|
}
|
|
230
289
|
|
|
231
290
|
export interface UsageReportParams {
|
|
232
291
|
/**
|
|
233
|
-
* A list of usage reports to be submitted in bulk
|
|
292
|
+
* Body param: A list of usage reports to be submitted in bulk
|
|
234
293
|
*/
|
|
235
294
|
usages: Array<UsageReportParams.Usage>;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
298
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
299
|
+
*/
|
|
300
|
+
'X-ACCOUNT-ID'?: string;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
304
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
305
|
+
* intrinsic to the key).
|
|
306
|
+
*/
|
|
307
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
236
308
|
}
|
|
237
309
|
|
|
238
310
|
export namespace UsageReportParams {
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -4,33 +4,38 @@ import { APIResource } from '../../core/resource';
|
|
|
4
4
|
import * as CouponsAPI from './coupons';
|
|
5
5
|
import {
|
|
6
6
|
Coupon,
|
|
7
|
+
CouponArchiveCouponParams,
|
|
7
8
|
CouponCreateParams,
|
|
8
9
|
CouponListParams,
|
|
9
10
|
CouponListResponse,
|
|
10
11
|
CouponListResponsesMyCursorIDPage,
|
|
12
|
+
CouponRetrieveParams,
|
|
11
13
|
CouponUpdateCouponParams,
|
|
12
14
|
Coupons,
|
|
13
15
|
} from './coupons';
|
|
14
|
-
import * as EventsAPI from './events';
|
|
15
|
-
import { EventReportParams, EventReportResponse, Events } from './events';
|
|
16
16
|
import * as FeaturesAPI from './features';
|
|
17
17
|
import {
|
|
18
18
|
Feature,
|
|
19
|
+
FeatureArchiveFeatureParams,
|
|
19
20
|
FeatureCreateFeatureParams,
|
|
20
21
|
FeatureListFeaturesParams,
|
|
21
22
|
FeatureListFeaturesResponse,
|
|
22
23
|
FeatureListFeaturesResponsesMyCursorIDPage,
|
|
24
|
+
FeatureRetrieveFeatureParams,
|
|
25
|
+
FeatureUnarchiveFeatureParams,
|
|
23
26
|
FeatureUpdateFeatureParams,
|
|
24
27
|
Features,
|
|
25
28
|
} from './features';
|
|
26
29
|
import * as ProductsAPI from './products';
|
|
27
30
|
import {
|
|
28
31
|
Product,
|
|
32
|
+
ProductArchiveProductParams,
|
|
29
33
|
ProductCreateProductParams,
|
|
30
34
|
ProductDuplicateProductParams,
|
|
31
35
|
ProductListProductsParams,
|
|
32
36
|
ProductListProductsResponse,
|
|
33
37
|
ProductListProductsResponsesMyCursorIDPage,
|
|
38
|
+
ProductUnarchiveProductParams,
|
|
34
39
|
ProductUpdateProductParams,
|
|
35
40
|
Products,
|
|
36
41
|
} from './products';
|
|
@@ -45,18 +50,27 @@ import {
|
|
|
45
50
|
import * as AddonsAPI from './addons/addons';
|
|
46
51
|
import {
|
|
47
52
|
Addon,
|
|
53
|
+
AddonArchiveParams,
|
|
54
|
+
AddonCreateDraftParams,
|
|
48
55
|
AddonCreateParams,
|
|
56
|
+
AddonListChargesParams,
|
|
57
|
+
AddonListChargesResponse,
|
|
58
|
+
AddonListChargesResponsesMyCursorIDPage,
|
|
49
59
|
AddonListParams,
|
|
50
60
|
AddonListResponse,
|
|
51
61
|
AddonListResponsesMyCursorIDPage,
|
|
52
62
|
AddonPublishParams,
|
|
53
63
|
AddonPublishResponse,
|
|
64
|
+
AddonRemoveDraftParams,
|
|
54
65
|
AddonRemoveDraftResponse,
|
|
66
|
+
AddonRetrieveParams,
|
|
55
67
|
AddonUpdateParams,
|
|
56
68
|
Addons,
|
|
57
69
|
} from './addons/addons';
|
|
58
70
|
import * as CreditsAPI from './credits/credits';
|
|
59
71
|
import {
|
|
72
|
+
CreditGetAutoRechargeParams,
|
|
73
|
+
CreditGetAutoRechargeResponse,
|
|
60
74
|
CreditGetUsageParams,
|
|
61
75
|
CreditGetUsageResponse,
|
|
62
76
|
CreditListLedgerParams,
|
|
@@ -66,6 +80,7 @@ import {
|
|
|
66
80
|
} from './credits/credits';
|
|
67
81
|
import * as CustomersAPI from './customers/customers';
|
|
68
82
|
import {
|
|
83
|
+
CustomerArchiveParams,
|
|
69
84
|
CustomerCheckEntitlementParams,
|
|
70
85
|
CustomerCheckEntitlementResponse,
|
|
71
86
|
CustomerImportParams,
|
|
@@ -81,19 +96,33 @@ import {
|
|
|
81
96
|
CustomerResponse,
|
|
82
97
|
CustomerRetrieveEntitlementsParams,
|
|
83
98
|
CustomerRetrieveEntitlementsResponse,
|
|
99
|
+
CustomerRetrieveParams,
|
|
100
|
+
CustomerUnarchiveParams,
|
|
84
101
|
CustomerUpdateParams,
|
|
85
102
|
Customers,
|
|
86
103
|
} from './customers/customers';
|
|
104
|
+
import * as EventsAPI from './events/events';
|
|
105
|
+
import { EventReportParams, EventReportResponse, Events } from './events/events';
|
|
87
106
|
import * as PlansAPI from './plans/plans';
|
|
88
107
|
import {
|
|
89
108
|
Plan,
|
|
109
|
+
PlanArchiveParams,
|
|
110
|
+
PlanCreateDraftParams,
|
|
90
111
|
PlanCreateParams,
|
|
112
|
+
PlanListChargesParams,
|
|
113
|
+
PlanListChargesResponse,
|
|
114
|
+
PlanListChargesResponsesMyCursorIDPage,
|
|
115
|
+
PlanListOverageChargesParams,
|
|
116
|
+
PlanListOverageChargesResponse,
|
|
117
|
+
PlanListOverageChargesResponsesMyCursorIDPage,
|
|
91
118
|
PlanListParams,
|
|
92
119
|
PlanListResponse,
|
|
93
120
|
PlanListResponsesMyCursorIDPage,
|
|
94
121
|
PlanPublishParams,
|
|
95
122
|
PlanPublishResponse,
|
|
123
|
+
PlanRemoveDraftParams,
|
|
96
124
|
PlanRemoveDraftResponse,
|
|
125
|
+
PlanRetrieveParams,
|
|
97
126
|
PlanUpdateParams,
|
|
98
127
|
Plans,
|
|
99
128
|
} from './plans/plans';
|
|
@@ -112,6 +141,7 @@ import {
|
|
|
112
141
|
SubscriptionPreviewResponse,
|
|
113
142
|
SubscriptionProvisionParams,
|
|
114
143
|
SubscriptionProvisionResponse,
|
|
144
|
+
SubscriptionRetrieveParams,
|
|
115
145
|
SubscriptionTransferParams,
|
|
116
146
|
SubscriptionUpdateParams,
|
|
117
147
|
Subscriptions,
|
|
@@ -153,13 +183,16 @@ export declare namespace V1 {
|
|
|
153
183
|
type CustomerRetrieveEntitlementsResponse as CustomerRetrieveEntitlementsResponse,
|
|
154
184
|
type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage,
|
|
155
185
|
type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage,
|
|
186
|
+
type CustomerRetrieveParams as CustomerRetrieveParams,
|
|
156
187
|
type CustomerUpdateParams as CustomerUpdateParams,
|
|
157
188
|
type CustomerListParams as CustomerListParams,
|
|
189
|
+
type CustomerArchiveParams as CustomerArchiveParams,
|
|
158
190
|
type CustomerCheckEntitlementParams as CustomerCheckEntitlementParams,
|
|
159
191
|
type CustomerImportParams as CustomerImportParams,
|
|
160
192
|
type CustomerListResourcesParams as CustomerListResourcesParams,
|
|
161
193
|
type CustomerProvisionParams as CustomerProvisionParams,
|
|
162
194
|
type CustomerRetrieveEntitlementsParams as CustomerRetrieveEntitlementsParams,
|
|
195
|
+
type CustomerUnarchiveParams as CustomerUnarchiveParams,
|
|
163
196
|
};
|
|
164
197
|
|
|
165
198
|
export {
|
|
@@ -170,6 +203,7 @@ export declare namespace V1 {
|
|
|
170
203
|
type SubscriptionPreviewResponse as SubscriptionPreviewResponse,
|
|
171
204
|
type SubscriptionProvisionResponse as SubscriptionProvisionResponse,
|
|
172
205
|
type SubscriptionListResponsesMyCursorIDPage as SubscriptionListResponsesMyCursorIDPage,
|
|
206
|
+
type SubscriptionRetrieveParams as SubscriptionRetrieveParams,
|
|
173
207
|
type SubscriptionUpdateParams as SubscriptionUpdateParams,
|
|
174
208
|
type SubscriptionListParams as SubscriptionListParams,
|
|
175
209
|
type SubscriptionCancelParams as SubscriptionCancelParams,
|
|
@@ -187,7 +221,9 @@ export declare namespace V1 {
|
|
|
187
221
|
type CouponListResponse as CouponListResponse,
|
|
188
222
|
type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage,
|
|
189
223
|
type CouponCreateParams as CouponCreateParams,
|
|
224
|
+
type CouponRetrieveParams as CouponRetrieveParams,
|
|
190
225
|
type CouponListParams as CouponListParams,
|
|
226
|
+
type CouponArchiveCouponParams as CouponArchiveCouponParams,
|
|
191
227
|
type CouponUpdateCouponParams as CouponUpdateCouponParams,
|
|
192
228
|
};
|
|
193
229
|
|
|
@@ -199,9 +235,11 @@ export declare namespace V1 {
|
|
|
199
235
|
|
|
200
236
|
export {
|
|
201
237
|
Credits as Credits,
|
|
238
|
+
type CreditGetAutoRechargeResponse as CreditGetAutoRechargeResponse,
|
|
202
239
|
type CreditGetUsageResponse as CreditGetUsageResponse,
|
|
203
240
|
type CreditListLedgerResponse as CreditListLedgerResponse,
|
|
204
241
|
type CreditListLedgerResponsesMyCursorIDPage as CreditListLedgerResponsesMyCursorIDPage,
|
|
242
|
+
type CreditGetAutoRechargeParams as CreditGetAutoRechargeParams,
|
|
205
243
|
type CreditGetUsageParams as CreditGetUsageParams,
|
|
206
244
|
type CreditListLedgerParams as CreditListLedgerParams,
|
|
207
245
|
};
|
|
@@ -211,8 +249,11 @@ export declare namespace V1 {
|
|
|
211
249
|
type Feature as Feature,
|
|
212
250
|
type FeatureListFeaturesResponse as FeatureListFeaturesResponse,
|
|
213
251
|
type FeatureListFeaturesResponsesMyCursorIDPage as FeatureListFeaturesResponsesMyCursorIDPage,
|
|
252
|
+
type FeatureArchiveFeatureParams as FeatureArchiveFeatureParams,
|
|
214
253
|
type FeatureCreateFeatureParams as FeatureCreateFeatureParams,
|
|
215
254
|
type FeatureListFeaturesParams as FeatureListFeaturesParams,
|
|
255
|
+
type FeatureRetrieveFeatureParams as FeatureRetrieveFeatureParams,
|
|
256
|
+
type FeatureUnarchiveFeatureParams as FeatureUnarchiveFeatureParams,
|
|
216
257
|
type FeatureUpdateFeatureParams as FeatureUpdateFeatureParams,
|
|
217
258
|
};
|
|
218
259
|
|
|
@@ -220,26 +261,43 @@ export declare namespace V1 {
|
|
|
220
261
|
Addons as Addons,
|
|
221
262
|
type Addon as Addon,
|
|
222
263
|
type AddonListResponse as AddonListResponse,
|
|
264
|
+
type AddonListChargesResponse as AddonListChargesResponse,
|
|
223
265
|
type AddonPublishResponse as AddonPublishResponse,
|
|
224
266
|
type AddonRemoveDraftResponse as AddonRemoveDraftResponse,
|
|
225
267
|
type AddonListResponsesMyCursorIDPage as AddonListResponsesMyCursorIDPage,
|
|
268
|
+
type AddonListChargesResponsesMyCursorIDPage as AddonListChargesResponsesMyCursorIDPage,
|
|
226
269
|
type AddonCreateParams as AddonCreateParams,
|
|
270
|
+
type AddonRetrieveParams as AddonRetrieveParams,
|
|
227
271
|
type AddonUpdateParams as AddonUpdateParams,
|
|
228
272
|
type AddonListParams as AddonListParams,
|
|
273
|
+
type AddonArchiveParams as AddonArchiveParams,
|
|
274
|
+
type AddonCreateDraftParams as AddonCreateDraftParams,
|
|
275
|
+
type AddonListChargesParams as AddonListChargesParams,
|
|
229
276
|
type AddonPublishParams as AddonPublishParams,
|
|
277
|
+
type AddonRemoveDraftParams as AddonRemoveDraftParams,
|
|
230
278
|
};
|
|
231
279
|
|
|
232
280
|
export {
|
|
233
281
|
Plans as Plans,
|
|
234
282
|
type Plan as Plan,
|
|
235
283
|
type PlanListResponse as PlanListResponse,
|
|
284
|
+
type PlanListChargesResponse as PlanListChargesResponse,
|
|
285
|
+
type PlanListOverageChargesResponse as PlanListOverageChargesResponse,
|
|
236
286
|
type PlanPublishResponse as PlanPublishResponse,
|
|
237
287
|
type PlanRemoveDraftResponse as PlanRemoveDraftResponse,
|
|
238
288
|
type PlanListResponsesMyCursorIDPage as PlanListResponsesMyCursorIDPage,
|
|
289
|
+
type PlanListChargesResponsesMyCursorIDPage as PlanListChargesResponsesMyCursorIDPage,
|
|
290
|
+
type PlanListOverageChargesResponsesMyCursorIDPage as PlanListOverageChargesResponsesMyCursorIDPage,
|
|
239
291
|
type PlanCreateParams as PlanCreateParams,
|
|
292
|
+
type PlanRetrieveParams as PlanRetrieveParams,
|
|
240
293
|
type PlanUpdateParams as PlanUpdateParams,
|
|
241
294
|
type PlanListParams as PlanListParams,
|
|
295
|
+
type PlanArchiveParams as PlanArchiveParams,
|
|
296
|
+
type PlanCreateDraftParams as PlanCreateDraftParams,
|
|
297
|
+
type PlanListChargesParams as PlanListChargesParams,
|
|
298
|
+
type PlanListOverageChargesParams as PlanListOverageChargesParams,
|
|
242
299
|
type PlanPublishParams as PlanPublishParams,
|
|
300
|
+
type PlanRemoveDraftParams as PlanRemoveDraftParams,
|
|
243
301
|
};
|
|
244
302
|
|
|
245
303
|
export {
|
|
@@ -255,9 +313,11 @@ export declare namespace V1 {
|
|
|
255
313
|
type Product as Product,
|
|
256
314
|
type ProductListProductsResponse as ProductListProductsResponse,
|
|
257
315
|
type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage,
|
|
316
|
+
type ProductArchiveProductParams as ProductArchiveProductParams,
|
|
258
317
|
type ProductCreateProductParams as ProductCreateProductParams,
|
|
259
318
|
type ProductDuplicateProductParams as ProductDuplicateProductParams,
|
|
260
319
|
type ProductListProductsParams as ProductListProductsParams,
|
|
320
|
+
type ProductUnarchiveProductParams as ProductUnarchiveProductParams,
|
|
261
321
|
type ProductUpdateProductParams as ProductUpdateProductParams,
|
|
262
322
|
};
|
|
263
323
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-beta.
|
|
1
|
+
export const VERSION = '0.1.0-beta.21'; // x-release-please-version
|
package/uploads.d.mts
CHANGED
package/uploads.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
|
package/uploads.d.ts
CHANGED
package/uploads.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,kCAA+B"}
|
package/uploads.mjs
CHANGED
package/uploads.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-beta.
|
|
1
|
+
export declare const VERSION = "0.1.0-beta.21";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-beta.
|
|
1
|
+
export declare const VERSION = "0.1.0-beta.21";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-beta.
|
|
4
|
+
exports.VERSION = '0.1.0-beta.21'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,eAAe,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-beta.
|
|
1
|
+
export const VERSION = '0.1.0-beta.21'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,CAAC,2BAA2B"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
-
export declare class AutoRecharge extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Retrieves the automatic recharge configuration for a customer and currency.
|
|
7
|
-
* Returns default settings if no configuration exists.
|
|
8
|
-
*/
|
|
9
|
-
getAutoRecharge(query: AutoRechargeGetAutoRechargeParams, options?: RequestOptions): APIPromise<AutoRechargeGetAutoRechargeResponse>;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Response object
|
|
13
|
-
*/
|
|
14
|
-
export interface AutoRechargeGetAutoRechargeResponse {
|
|
15
|
-
/**
|
|
16
|
-
* Automatic recharge configuration for a customer and currency
|
|
17
|
-
*/
|
|
18
|
-
data: AutoRechargeGetAutoRechargeResponse.Data;
|
|
19
|
-
}
|
|
20
|
-
export declare namespace AutoRechargeGetAutoRechargeResponse {
|
|
21
|
-
/**
|
|
22
|
-
* Automatic recharge configuration for a customer and currency
|
|
23
|
-
*/
|
|
24
|
-
interface Data {
|
|
25
|
-
/**
|
|
26
|
-
* The unique configuration ID
|
|
27
|
-
*/
|
|
28
|
-
id: string | null;
|
|
29
|
-
/**
|
|
30
|
-
* Timestamp of when the record was created
|
|
31
|
-
*/
|
|
32
|
-
createdAt: string | null;
|
|
33
|
-
/**
|
|
34
|
-
* The currency ID for this configuration
|
|
35
|
-
*/
|
|
36
|
-
currencyId: string;
|
|
37
|
-
/**
|
|
38
|
-
* The customer ID this configuration belongs to
|
|
39
|
-
*/
|
|
40
|
-
customerId: string;
|
|
41
|
-
/**
|
|
42
|
-
* Expiration period for auto-recharge grants (1_MONTH or 1_YEAR)
|
|
43
|
-
*/
|
|
44
|
-
grantExpirationPeriod: '1_MONTH' | '1_YEAR';
|
|
45
|
-
/**
|
|
46
|
-
* Whether automatic recharge is enabled
|
|
47
|
-
*/
|
|
48
|
-
isEnabled: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Maximum monthly spend limit for automatic recharges
|
|
51
|
-
*/
|
|
52
|
-
maxSpendLimit: number | null;
|
|
53
|
-
/**
|
|
54
|
-
* The target credit balance to recharge to
|
|
55
|
-
*/
|
|
56
|
-
targetBalance: number;
|
|
57
|
-
/**
|
|
58
|
-
* The threshold type (CREDIT_AMOUNT or DOLLAR_AMOUNT)
|
|
59
|
-
*/
|
|
60
|
-
thresholdType: 'CREDIT_AMOUNT' | 'DOLLAR_AMOUNT';
|
|
61
|
-
/**
|
|
62
|
-
* The threshold value that triggers a recharge
|
|
63
|
-
*/
|
|
64
|
-
thresholdValue: number;
|
|
65
|
-
/**
|
|
66
|
-
* Timestamp of when the record was last updated
|
|
67
|
-
*/
|
|
68
|
-
updatedAt: string | null;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
export interface AutoRechargeGetAutoRechargeParams {
|
|
72
|
-
/**
|
|
73
|
-
* Filter by currency ID (required)
|
|
74
|
-
*/
|
|
75
|
-
currencyId: string;
|
|
76
|
-
/**
|
|
77
|
-
* Filter by customer ID (required)
|
|
78
|
-
*/
|
|
79
|
-
customerId: string;
|
|
80
|
-
}
|
|
81
|
-
export declare namespace AutoRecharge {
|
|
82
|
-
export { type AutoRechargeGetAutoRechargeResponse as AutoRechargeGetAutoRechargeResponse, type AutoRechargeGetAutoRechargeParams as AutoRechargeGetAutoRechargeParams, };
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=auto-recharge.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auto-recharge.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/auto-recharge.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,eAAe,CACb,KAAK,EAAE,iCAAiC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;CAGnD;AAED;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,IAAI,EAAE,mCAAmC,CAAC,IAAI,CAAC;CAChD;AAED,yBAAiB,mCAAmC,CAAC;IACnD;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,qBAAqB,EAAE,SAAS,GAAG,QAAQ,CAAC;QAE5C;;WAEG;QACH,SAAS,EAAE,OAAO,CAAC;QAEnB;;WAEG;QACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAE7B;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,aAAa,EAAE,eAAe,GAAG,eAAe,CAAC;QAEjD;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B;CACF;AAED,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|