@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.mjs","sourceRoot":"","sources":["../../../src/resources/v1/addons/entitlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"entitlements.mjs","sourceRoot":"","sources":["../../../src/resources/v1/addons/entitlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,OAAe,EACf,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE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ListResponse, type AddonPublishResponse, type AddonRemoveDraftResponse, type AddonCreateParams, type AddonUpdateParams, type AddonListParams, type AddonPublishParams, type AddonListResponsesMyCursorIDPage, } from "./addons.mjs";
|
|
2
|
-
export { Entitlements, type AddonPackageEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementDeleteParams, } from "./entitlements.mjs";
|
|
1
|
+
export { Addons, type Addon, type AddonListResponse, type AddonListChargesResponse, type AddonPublishResponse, type AddonRemoveDraftResponse, type AddonCreateParams, type AddonRetrieveParams, type AddonUpdateParams, type AddonListParams, type AddonArchiveParams, type AddonCreateDraftParams, type AddonListChargesParams, type AddonPublishParams, type AddonRemoveDraftParams, type AddonListResponsesMyCursorIDPage, type AddonListChargesResponsesMyCursorIDPage, } from "./addons.mjs";
|
|
2
|
+
export { Entitlements, type AddonPackageEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementListParams, type EntitlementDeleteParams, } from "./entitlements.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,uCAAuC,GAC7C,qBAAiB;AAClB,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,2BAAuB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Addons, type Addon, type AddonListResponse, type AddonPublishResponse, type AddonRemoveDraftResponse, type AddonCreateParams, type AddonUpdateParams, type AddonListParams, type AddonPublishParams, type AddonListResponsesMyCursorIDPage, } from "./addons.js";
|
|
2
|
-
export { Entitlements, type AddonPackageEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementDeleteParams, } from "./entitlements.js";
|
|
1
|
+
export { Addons, type Addon, type AddonListResponse, type AddonListChargesResponse, type AddonPublishResponse, type AddonRemoveDraftResponse, type AddonCreateParams, type AddonRetrieveParams, type AddonUpdateParams, type AddonListParams, type AddonArchiveParams, type AddonCreateDraftParams, type AddonListChargesParams, type AddonPublishParams, type AddonRemoveDraftParams, type AddonListResponsesMyCursorIDPage, type AddonListChargesResponsesMyCursorIDPage, } from "./addons.js";
|
|
2
|
+
export { Entitlements, type AddonPackageEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementListParams, type EntitlementDeleteParams, } from "./entitlements.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,uCAAuC,GAC7C,oBAAiB;AAClB,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,0BAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAkBkB;AAjBhB,gGAAA,MAAM,OAAA;AAkBR,kDASwB;AARtB,4GAAA,YAAY,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,MAAM,GAiBP,qBAAiB;AAClB,OAAO,EACL,YAAY,GAQb,2BAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addons.d.mts","sourceRoot":"","sources":["../../src/resources/v1/addons.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"addons.d.mts","sourceRoot":"","sources":["../../src/resources/v1/addons.ts"],"names":[],"mappings":"AAEA,mCAA+B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addons.d.ts","sourceRoot":"","sources":["../../src/resources/v1/addons.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"addons.d.ts","sourceRoot":"","sources":["../../src/resources/v1/addons.ts"],"names":[],"mappings":"AAEA,kCAA+B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addons.mjs","sourceRoot":"","sources":["../../src/resources/v1/addons.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
1
|
+
{"version":3,"file":"addons.mjs","sourceRoot":"","sources":["../../src/resources/v1/addons.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,mCAA+B"}
|
|
@@ -9,24 +9,60 @@ export declare class Coupons extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Creates a new discount coupon with percentage or fixed amount off, applicable to
|
|
11
11
|
* customer subscriptions.
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const coupon = await client.v1.coupons.create({
|
|
16
|
+
* id: 'id',
|
|
17
|
+
* amountsOff: [{ amount: 0, currency: 'usd' }],
|
|
18
|
+
* description: 'description',
|
|
19
|
+
* durationInMonths: 1,
|
|
20
|
+
* metadata: { foo: 'string' },
|
|
21
|
+
* name: 'name',
|
|
22
|
+
* percentOff: 1,
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
create(params: CouponCreateParams, options?: RequestOptions): APIPromise<Coupon>;
|
|
14
27
|
/**
|
|
15
28
|
* Retrieves a coupon by its unique identifier.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const coupon = await client.v1.coupons.retrieve('x');
|
|
33
|
+
* ```
|
|
16
34
|
*/
|
|
17
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<Coupon>;
|
|
35
|
+
retrieve(id: string, params?: CouponRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Coupon>;
|
|
18
36
|
/**
|
|
19
37
|
* Retrieves a paginated list of coupons in the environment.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* // Automatically fetches more pages as needed.
|
|
42
|
+
* for await (const couponListResponse of client.v1.coupons.list()) {
|
|
43
|
+
* // ...
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
20
46
|
*/
|
|
21
|
-
list(
|
|
47
|
+
list(params?: CouponListParams | null | undefined, options?: RequestOptions): PagePromise<CouponListResponsesMyCursorIDPage, CouponListResponse>;
|
|
22
48
|
/**
|
|
23
49
|
* Archives a coupon, preventing it from being applied to new subscriptions.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const coupon = await client.v1.coupons.archiveCoupon('x');
|
|
54
|
+
* ```
|
|
24
55
|
*/
|
|
25
|
-
archiveCoupon(id: string, options?: RequestOptions): APIPromise<Coupon>;
|
|
56
|
+
archiveCoupon(id: string, params?: CouponArchiveCouponParams | null | undefined, options?: RequestOptions): APIPromise<Coupon>;
|
|
26
57
|
/**
|
|
27
58
|
* Updates an existing coupon's properties such as name, description, and metadata.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const coupon = await client.v1.coupons.updateCoupon('x');
|
|
63
|
+
* ```
|
|
28
64
|
*/
|
|
29
|
-
updateCoupon(id: string,
|
|
65
|
+
updateCoupon(id: string, params: CouponUpdateCouponParams, options?: RequestOptions): APIPromise<Coupon>;
|
|
30
66
|
}
|
|
31
67
|
export type CouponListResponsesMyCursorIDPage = MyCursorIDPage<CouponListResponse>;
|
|
32
68
|
/**
|
|
@@ -198,35 +234,46 @@ export declare namespace CouponListResponse {
|
|
|
198
234
|
}
|
|
199
235
|
export interface CouponCreateParams {
|
|
200
236
|
/**
|
|
201
|
-
* The unique identifier for the entity
|
|
237
|
+
* Body param: The unique identifier for the entity
|
|
202
238
|
*/
|
|
203
239
|
id: string;
|
|
204
240
|
/**
|
|
205
|
-
* Fixed amount discounts in different currencies
|
|
241
|
+
* Body param: Fixed amount discounts in different currencies
|
|
206
242
|
*/
|
|
207
243
|
amountsOff: Array<CouponCreateParams.AmountsOff> | null;
|
|
208
244
|
/**
|
|
209
|
-
* Description of the coupon
|
|
245
|
+
* Body param: Description of the coupon
|
|
210
246
|
*/
|
|
211
247
|
description: string | null;
|
|
212
248
|
/**
|
|
213
|
-
* Duration of the coupon validity in months
|
|
249
|
+
* Body param: Duration of the coupon validity in months
|
|
214
250
|
*/
|
|
215
251
|
durationInMonths: number | null;
|
|
216
252
|
/**
|
|
217
|
-
* Metadata associated with the entity
|
|
253
|
+
* Body param: Metadata associated with the entity
|
|
218
254
|
*/
|
|
219
255
|
metadata: {
|
|
220
256
|
[key: string]: string;
|
|
221
257
|
} | null;
|
|
222
258
|
/**
|
|
223
|
-
* Name of the coupon
|
|
259
|
+
* Body param: Name of the coupon
|
|
224
260
|
*/
|
|
225
261
|
name: string;
|
|
226
262
|
/**
|
|
227
|
-
* Percentage discount off the original price
|
|
263
|
+
* Body param: Percentage discount off the original price
|
|
228
264
|
*/
|
|
229
265
|
percentOff: number | null;
|
|
266
|
+
/**
|
|
267
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
268
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
269
|
+
*/
|
|
270
|
+
'X-ACCOUNT-ID'?: string;
|
|
271
|
+
/**
|
|
272
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
273
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
274
|
+
* intrinsic to the key).
|
|
275
|
+
*/
|
|
276
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
230
277
|
}
|
|
231
278
|
export declare namespace CouponCreateParams {
|
|
232
279
|
/**
|
|
@@ -243,23 +290,48 @@ export declare namespace CouponCreateParams {
|
|
|
243
290
|
currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
|
|
244
291
|
}
|
|
245
292
|
}
|
|
293
|
+
export interface CouponRetrieveParams {
|
|
294
|
+
/**
|
|
295
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
296
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
297
|
+
*/
|
|
298
|
+
'X-ACCOUNT-ID'?: string;
|
|
299
|
+
/**
|
|
300
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
301
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
302
|
+
* key).
|
|
303
|
+
*/
|
|
304
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
305
|
+
}
|
|
246
306
|
export interface CouponListParams extends MyCursorIDPageParams {
|
|
247
307
|
/**
|
|
248
|
-
* Filter by entity ID
|
|
308
|
+
* Query param: Filter by entity ID
|
|
249
309
|
*/
|
|
250
310
|
id?: string;
|
|
251
311
|
/**
|
|
252
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
312
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
253
313
|
*/
|
|
254
314
|
createdAt?: CouponListParams.CreatedAt;
|
|
255
315
|
/**
|
|
256
|
-
* Filter by coupon status. Supports comma-separated values for
|
|
316
|
+
* Query param: Filter by coupon status. Supports comma-separated values for
|
|
317
|
+
* multiple statuses
|
|
257
318
|
*/
|
|
258
319
|
status?: Array<'ACTIVE' | 'ARCHIVED'>;
|
|
259
320
|
/**
|
|
260
|
-
* Filter by coupon type (FIXED or PERCENTAGE)
|
|
321
|
+
* Query param: Filter by coupon type (FIXED or PERCENTAGE)
|
|
261
322
|
*/
|
|
262
323
|
type?: 'FIXED' | 'PERCENTAGE';
|
|
324
|
+
/**
|
|
325
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
326
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
327
|
+
*/
|
|
328
|
+
'X-ACCOUNT-ID'?: string;
|
|
329
|
+
/**
|
|
330
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
331
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
332
|
+
* intrinsic to the key).
|
|
333
|
+
*/
|
|
334
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
263
335
|
}
|
|
264
336
|
export declare namespace CouponListParams {
|
|
265
337
|
/**
|
|
@@ -284,23 +356,47 @@ export declare namespace CouponListParams {
|
|
|
284
356
|
lte?: string;
|
|
285
357
|
}
|
|
286
358
|
}
|
|
359
|
+
export interface CouponArchiveCouponParams {
|
|
360
|
+
/**
|
|
361
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
362
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
363
|
+
*/
|
|
364
|
+
'X-ACCOUNT-ID'?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
367
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
368
|
+
* key).
|
|
369
|
+
*/
|
|
370
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
371
|
+
}
|
|
287
372
|
export interface CouponUpdateCouponParams {
|
|
288
373
|
/**
|
|
289
|
-
* Description of the coupon
|
|
374
|
+
* Body param: Description of the coupon
|
|
290
375
|
*/
|
|
291
376
|
description?: string | null;
|
|
292
377
|
/**
|
|
293
|
-
* Metadata associated with the entity
|
|
378
|
+
* Body param: Metadata associated with the entity
|
|
294
379
|
*/
|
|
295
380
|
metadata?: {
|
|
296
381
|
[key: string]: string;
|
|
297
382
|
} | null;
|
|
298
383
|
/**
|
|
299
|
-
* Name of the coupon
|
|
384
|
+
* Body param: Name of the coupon
|
|
300
385
|
*/
|
|
301
386
|
name?: string;
|
|
387
|
+
/**
|
|
388
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
389
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
390
|
+
*/
|
|
391
|
+
'X-ACCOUNT-ID'?: string;
|
|
392
|
+
/**
|
|
393
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
394
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
395
|
+
* intrinsic to the key).
|
|
396
|
+
*/
|
|
397
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
302
398
|
}
|
|
303
399
|
export declare namespace Coupons {
|
|
304
|
-
export { type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponListParams as CouponListParams, type CouponUpdateCouponParams as CouponUpdateCouponParams, };
|
|
400
|
+
export { type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponRetrieveParams as CouponRetrieveParams, type CouponListParams as CouponListParams, type CouponArchiveCouponParams as CouponArchiveCouponParams, type CouponUpdateCouponParams as CouponUpdateCouponParams, };
|
|
305
401
|
}
|
|
306
402
|
//# sourceMappingURL=coupons.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupons.d.mts","sourceRoot":"","sources":["../../src/resources/v1/coupons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coupons.d.mts","sourceRoot":"","sources":["../../src/resources/v1/coupons.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;AAGhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAehF;;;;;;;OAOG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;IAcrB;;;;;;;;;;OAUG;IACH,IAAI,CACF,MAAM,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAChD,OA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AC;CACnB;AAED,yBAAiB,kBAAkB,CAAC;IAClC;;OAEG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,QAAQ,EACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,G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,IAAI,gBAAgB,EACzC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -9,24 +9,60 @@ export declare class Coupons extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Creates a new discount coupon with percentage or fixed amount off, applicable to
|
|
11
11
|
* customer subscriptions.
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const coupon = await client.v1.coupons.create({
|
|
16
|
+
* id: 'id',
|
|
17
|
+
* amountsOff: [{ amount: 0, currency: 'usd' }],
|
|
18
|
+
* description: 'description',
|
|
19
|
+
* durationInMonths: 1,
|
|
20
|
+
* metadata: { foo: 'string' },
|
|
21
|
+
* name: 'name',
|
|
22
|
+
* percentOff: 1,
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
create(params: CouponCreateParams, options?: RequestOptions): APIPromise<Coupon>;
|
|
14
27
|
/**
|
|
15
28
|
* Retrieves a coupon by its unique identifier.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const coupon = await client.v1.coupons.retrieve('x');
|
|
33
|
+
* ```
|
|
16
34
|
*/
|
|
17
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<Coupon>;
|
|
35
|
+
retrieve(id: string, params?: CouponRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Coupon>;
|
|
18
36
|
/**
|
|
19
37
|
* Retrieves a paginated list of coupons in the environment.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* // Automatically fetches more pages as needed.
|
|
42
|
+
* for await (const couponListResponse of client.v1.coupons.list()) {
|
|
43
|
+
* // ...
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
20
46
|
*/
|
|
21
|
-
list(
|
|
47
|
+
list(params?: CouponListParams | null | undefined, options?: RequestOptions): PagePromise<CouponListResponsesMyCursorIDPage, CouponListResponse>;
|
|
22
48
|
/**
|
|
23
49
|
* Archives a coupon, preventing it from being applied to new subscriptions.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const coupon = await client.v1.coupons.archiveCoupon('x');
|
|
54
|
+
* ```
|
|
24
55
|
*/
|
|
25
|
-
archiveCoupon(id: string, options?: RequestOptions): APIPromise<Coupon>;
|
|
56
|
+
archiveCoupon(id: string, params?: CouponArchiveCouponParams | null | undefined, options?: RequestOptions): APIPromise<Coupon>;
|
|
26
57
|
/**
|
|
27
58
|
* Updates an existing coupon's properties such as name, description, and metadata.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const coupon = await client.v1.coupons.updateCoupon('x');
|
|
63
|
+
* ```
|
|
28
64
|
*/
|
|
29
|
-
updateCoupon(id: string,
|
|
65
|
+
updateCoupon(id: string, params: CouponUpdateCouponParams, options?: RequestOptions): APIPromise<Coupon>;
|
|
30
66
|
}
|
|
31
67
|
export type CouponListResponsesMyCursorIDPage = MyCursorIDPage<CouponListResponse>;
|
|
32
68
|
/**
|
|
@@ -198,35 +234,46 @@ export declare namespace CouponListResponse {
|
|
|
198
234
|
}
|
|
199
235
|
export interface CouponCreateParams {
|
|
200
236
|
/**
|
|
201
|
-
* The unique identifier for the entity
|
|
237
|
+
* Body param: The unique identifier for the entity
|
|
202
238
|
*/
|
|
203
239
|
id: string;
|
|
204
240
|
/**
|
|
205
|
-
* Fixed amount discounts in different currencies
|
|
241
|
+
* Body param: Fixed amount discounts in different currencies
|
|
206
242
|
*/
|
|
207
243
|
amountsOff: Array<CouponCreateParams.AmountsOff> | null;
|
|
208
244
|
/**
|
|
209
|
-
* Description of the coupon
|
|
245
|
+
* Body param: Description of the coupon
|
|
210
246
|
*/
|
|
211
247
|
description: string | null;
|
|
212
248
|
/**
|
|
213
|
-
* Duration of the coupon validity in months
|
|
249
|
+
* Body param: Duration of the coupon validity in months
|
|
214
250
|
*/
|
|
215
251
|
durationInMonths: number | null;
|
|
216
252
|
/**
|
|
217
|
-
* Metadata associated with the entity
|
|
253
|
+
* Body param: Metadata associated with the entity
|
|
218
254
|
*/
|
|
219
255
|
metadata: {
|
|
220
256
|
[key: string]: string;
|
|
221
257
|
} | null;
|
|
222
258
|
/**
|
|
223
|
-
* Name of the coupon
|
|
259
|
+
* Body param: Name of the coupon
|
|
224
260
|
*/
|
|
225
261
|
name: string;
|
|
226
262
|
/**
|
|
227
|
-
* Percentage discount off the original price
|
|
263
|
+
* Body param: Percentage discount off the original price
|
|
228
264
|
*/
|
|
229
265
|
percentOff: number | null;
|
|
266
|
+
/**
|
|
267
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
268
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
269
|
+
*/
|
|
270
|
+
'X-ACCOUNT-ID'?: string;
|
|
271
|
+
/**
|
|
272
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
273
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
274
|
+
* intrinsic to the key).
|
|
275
|
+
*/
|
|
276
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
230
277
|
}
|
|
231
278
|
export declare namespace CouponCreateParams {
|
|
232
279
|
/**
|
|
@@ -243,23 +290,48 @@ export declare namespace CouponCreateParams {
|
|
|
243
290
|
currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
|
|
244
291
|
}
|
|
245
292
|
}
|
|
293
|
+
export interface CouponRetrieveParams {
|
|
294
|
+
/**
|
|
295
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
296
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
297
|
+
*/
|
|
298
|
+
'X-ACCOUNT-ID'?: string;
|
|
299
|
+
/**
|
|
300
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
301
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
302
|
+
* key).
|
|
303
|
+
*/
|
|
304
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
305
|
+
}
|
|
246
306
|
export interface CouponListParams extends MyCursorIDPageParams {
|
|
247
307
|
/**
|
|
248
|
-
* Filter by entity ID
|
|
308
|
+
* Query param: Filter by entity ID
|
|
249
309
|
*/
|
|
250
310
|
id?: string;
|
|
251
311
|
/**
|
|
252
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
312
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
253
313
|
*/
|
|
254
314
|
createdAt?: CouponListParams.CreatedAt;
|
|
255
315
|
/**
|
|
256
|
-
* Filter by coupon status. Supports comma-separated values for
|
|
316
|
+
* Query param: Filter by coupon status. Supports comma-separated values for
|
|
317
|
+
* multiple statuses
|
|
257
318
|
*/
|
|
258
319
|
status?: Array<'ACTIVE' | 'ARCHIVED'>;
|
|
259
320
|
/**
|
|
260
|
-
* Filter by coupon type (FIXED or PERCENTAGE)
|
|
321
|
+
* Query param: Filter by coupon type (FIXED or PERCENTAGE)
|
|
261
322
|
*/
|
|
262
323
|
type?: 'FIXED' | 'PERCENTAGE';
|
|
324
|
+
/**
|
|
325
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
326
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
327
|
+
*/
|
|
328
|
+
'X-ACCOUNT-ID'?: string;
|
|
329
|
+
/**
|
|
330
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
331
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
332
|
+
* intrinsic to the key).
|
|
333
|
+
*/
|
|
334
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
263
335
|
}
|
|
264
336
|
export declare namespace CouponListParams {
|
|
265
337
|
/**
|
|
@@ -284,23 +356,47 @@ export declare namespace CouponListParams {
|
|
|
284
356
|
lte?: string;
|
|
285
357
|
}
|
|
286
358
|
}
|
|
359
|
+
export interface CouponArchiveCouponParams {
|
|
360
|
+
/**
|
|
361
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
362
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
363
|
+
*/
|
|
364
|
+
'X-ACCOUNT-ID'?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
367
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
368
|
+
* key).
|
|
369
|
+
*/
|
|
370
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
371
|
+
}
|
|
287
372
|
export interface CouponUpdateCouponParams {
|
|
288
373
|
/**
|
|
289
|
-
* Description of the coupon
|
|
374
|
+
* Body param: Description of the coupon
|
|
290
375
|
*/
|
|
291
376
|
description?: string | null;
|
|
292
377
|
/**
|
|
293
|
-
* Metadata associated with the entity
|
|
378
|
+
* Body param: Metadata associated with the entity
|
|
294
379
|
*/
|
|
295
380
|
metadata?: {
|
|
296
381
|
[key: string]: string;
|
|
297
382
|
} | null;
|
|
298
383
|
/**
|
|
299
|
-
* Name of the coupon
|
|
384
|
+
* Body param: Name of the coupon
|
|
300
385
|
*/
|
|
301
386
|
name?: string;
|
|
387
|
+
/**
|
|
388
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
389
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
390
|
+
*/
|
|
391
|
+
'X-ACCOUNT-ID'?: string;
|
|
392
|
+
/**
|
|
393
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
394
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
395
|
+
* intrinsic to the key).
|
|
396
|
+
*/
|
|
397
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
302
398
|
}
|
|
303
399
|
export declare namespace Coupons {
|
|
304
|
-
export { type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponListParams as CouponListParams, type CouponUpdateCouponParams as CouponUpdateCouponParams, };
|
|
400
|
+
export { type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponRetrieveParams as CouponRetrieveParams, type CouponListParams as CouponListParams, type CouponArchiveCouponParams as CouponArchiveCouponParams, type CouponUpdateCouponParams as CouponUpdateCouponParams, };
|
|
305
401
|
}
|
|
306
402
|
//# sourceMappingURL=coupons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupons.d.ts","sourceRoot":"","sources":["../../src/resources/v1/coupons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coupons.d.ts","sourceRoot":"","sources":["../../src/resources/v1/coupons.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,iCAA8B;AAE/F,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAehF;;;;;;;OAOG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;IAcrB;;;;;;;;;;OAUG;IACH,IAAI,CACF,MAAM,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iCAAiC,EAAE,kBAAkB,CAAC;IAerE;;;;;;;OAOG;IACH,aAAa,CACX,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;IAcrB;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAczG;AAED,MAAM,M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L,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;SACX;KACF;CACF;AAED;;GAEG;AACH,MAAM,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