@stigg/typescript 0.1.0-beta.3 → 0.1.0-beta.30
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 +228 -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 +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +12 -1
- package/client.js.map +1 -1
- package/client.mjs +12 -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 +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/v1/addons/addons.d.mts +313 -32
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +313 -32
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +114 -15
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +114 -15
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +62 -5
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +62 -5
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +49 -8
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +49 -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 +80 -20
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +80 -20
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +60 -9
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +60 -9
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +114 -25
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +114 -25
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +36 -5
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +36 -5
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +96 -23
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +96 -23
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +76 -12
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +76 -12
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +60 -23
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +60 -23
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +35 -5
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +35 -5
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +2 -2
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +2 -2
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js.map +1 -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 +170 -53
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +170 -53
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +124 -19
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +124 -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 +67 -12
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +67 -12
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +57 -9
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +57 -9
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +32 -8
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +32 -8
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +26 -4
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +26 -4
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +38 -6
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +38 -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 +10 -0
- package/resources/v1/events/beta/beta.d.mts.map +1 -0
- package/resources/v1/events/beta/beta.d.ts +10 -0
- package/resources/v1/events/beta/beta.d.ts.map +1 -0
- package/resources/v1/events/beta/beta.js +17 -0
- package/resources/v1/events/beta/beta.js.map +1 -0
- package/resources/v1/events/beta/beta.mjs +12 -0
- package/resources/v1/events/beta/beta.mjs.map +1 -0
- package/resources/v1/events/beta/customers.d.mts +160 -0
- package/resources/v1/events/beta/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers.d.ts +160 -0
- package/resources/v1/events/beta/customers.d.ts.map +1 -0
- package/resources/v1/events/beta/customers.js +32 -0
- package/resources/v1/events/beta/customers.js.map +1 -0
- package/resources/v1/events/beta/customers.mjs +28 -0
- package/resources/v1/events/beta/customers.mjs.map +1 -0
- package/resources/v1/events/beta/index.d.mts +3 -0
- package/resources/v1/events/beta/index.d.mts.map +1 -0
- package/resources/v1/events/beta/index.d.ts +3 -0
- package/resources/v1/events/beta/index.d.ts.map +1 -0
- package/resources/v1/events/beta/index.js +9 -0
- package/resources/v1/events/beta/index.js.map +1 -0
- package/resources/v1/events/beta/index.mjs +4 -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 +211 -0
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export/data-export.d.ts +211 -0
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export/data-export.js +71 -0
- package/resources/v1/events/data-export/data-export.js.map +1 -0
- package/resources/v1/events/data-export/data-export.mjs +66 -0
- package/resources/v1/events/data-export/data-export.mjs.map +1 -0
- package/resources/v1/events/data-export/destinations.d.mts +215 -0
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
- package/resources/v1/events/data-export/destinations.d.ts +215 -0
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
- package/resources/v1/events/data-export/destinations.js +46 -0
- package/resources/v1/events/data-export/destinations.js.map +1 -0
- package/resources/v1/events/data-export/destinations.mjs +42 -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 +85 -0
- package/resources/v1/events/events.d.mts.map +1 -0
- package/resources/v1/events/events.d.ts +85 -0
- package/resources/v1/events/events.d.ts.map +1 -0
- package/resources/v1/events/events.js +43 -0
- package/resources/v1/events/events.js.map +1 -0
- package/resources/v1/events/events.mjs +38 -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 +108 -30
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +108 -30
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +72 -11
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +72 -11
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +8 -8
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +8 -8
- 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 +62 -5
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +62 -5
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +49 -8
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +49 -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 +496 -32
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +496 -32
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +135 -16
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +135 -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 +97 -23
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +97 -23
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +73 -11
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +73 -11
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +29 -3
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +29 -3
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +25 -4
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +25 -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 +15 -2
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +15 -2
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +13 -2
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +13 -2
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +258 -79
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +258 -79
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +126 -19
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +128 -21
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +29 -4
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +29 -4
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +26 -4
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +26 -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 +52 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +52 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +26 -4
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +26 -4
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +16 -16
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +16 -16
- 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-beta/customers/assignments.d.mts +245 -0
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
- package/resources/v1-beta/customers/assignments.d.ts +245 -0
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -0
- package/resources/v1-beta/customers/assignments.js +84 -0
- package/resources/v1-beta/customers/assignments.js.map +1 -0
- package/resources/v1-beta/customers/assignments.mjs +80 -0
- package/resources/v1-beta/customers/assignments.mjs.map +1 -0
- package/resources/v1-beta/customers/customers.d.mts +18 -0
- package/resources/v1-beta/customers/customers.d.mts.map +1 -0
- package/resources/v1-beta/customers/customers.d.ts +18 -0
- package/resources/v1-beta/customers/customers.d.ts.map +1 -0
- package/resources/v1-beta/customers/customers.js +25 -0
- package/resources/v1-beta/customers/customers.js.map +1 -0
- package/resources/v1-beta/customers/customers.mjs +20 -0
- package/resources/v1-beta/customers/customers.mjs.map +1 -0
- package/resources/v1-beta/customers/entities.d.mts +351 -0
- package/resources/v1-beta/customers/entities.d.mts.map +1 -0
- package/resources/v1-beta/customers/entities.d.ts +351 -0
- package/resources/v1-beta/customers/entities.d.ts.map +1 -0
- package/resources/v1-beta/customers/entities.js +150 -0
- package/resources/v1-beta/customers/entities.js.map +1 -0
- package/resources/v1-beta/customers/entities.mjs +146 -0
- package/resources/v1-beta/customers/entities.mjs.map +1 -0
- package/resources/v1-beta/customers/entitlements.d.mts +261 -0
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
- package/resources/v1-beta/customers/entitlements.d.ts +261 -0
- package/resources/v1-beta/customers/entitlements.d.ts.map +1 -0
- package/resources/v1-beta/customers/entitlements.js +36 -0
- package/resources/v1-beta/customers/entitlements.js.map +1 -0
- package/resources/v1-beta/customers/entitlements.mjs +32 -0
- package/resources/v1-beta/customers/entitlements.mjs.map +1 -0
- package/resources/v1-beta/customers/index.d.mts +5 -0
- package/resources/v1-beta/customers/index.d.mts.map +1 -0
- package/resources/v1-beta/customers/index.d.ts +5 -0
- package/resources/v1-beta/customers/index.d.ts.map +1 -0
- package/resources/v1-beta/customers/index.js +13 -0
- package/resources/v1-beta/customers/index.js.map +1 -0
- package/resources/v1-beta/customers/index.mjs +6 -0
- package/resources/v1-beta/customers/index.mjs.map +1 -0
- package/resources/v1-beta/customers.d.mts +2 -0
- package/resources/v1-beta/customers.d.mts.map +1 -0
- package/resources/v1-beta/customers.d.ts +2 -0
- package/resources/v1-beta/customers.d.ts.map +1 -0
- package/resources/v1-beta/customers.js +6 -0
- package/resources/v1-beta/customers.js.map +1 -0
- package/resources/v1-beta/customers.mjs +3 -0
- package/resources/v1-beta/customers.mjs.map +1 -0
- package/resources/v1-beta/entity-types.d.mts +165 -0
- package/resources/v1-beta/entity-types.d.mts.map +1 -0
- package/resources/v1-beta/entity-types.d.ts +165 -0
- package/resources/v1-beta/entity-types.d.ts.map +1 -0
- package/resources/v1-beta/entity-types.js +75 -0
- package/resources/v1-beta/entity-types.js.map +1 -0
- package/resources/v1-beta/entity-types.mjs +71 -0
- package/resources/v1-beta/entity-types.mjs.map +1 -0
- package/resources/v1-beta/index.d.mts +4 -0
- package/resources/v1-beta/index.d.mts.map +1 -0
- package/resources/v1-beta/index.d.ts +4 -0
- package/resources/v1-beta/index.d.ts.map +1 -0
- package/resources/v1-beta/index.js +11 -0
- package/resources/v1-beta/index.js.map +1 -0
- package/resources/v1-beta/index.mjs +5 -0
- package/resources/v1-beta/index.mjs.map +1 -0
- package/resources/v1-beta/v1-beta.d.mts +14 -0
- package/resources/v1-beta/v1-beta.d.mts.map +1 -0
- package/resources/v1-beta/v1-beta.d.ts +14 -0
- package/resources/v1-beta/v1-beta.d.ts.map +1 -0
- package/resources/v1-beta/v1-beta.js +21 -0
- package/resources/v1-beta/v1-beta.js.map +1 -0
- package/resources/v1-beta/v1-beta.mjs +16 -0
- package/resources/v1-beta/v1-beta.mjs.map +1 -0
- package/resources/v1-beta.d.mts +2 -0
- package/resources/v1-beta.d.mts.map +1 -0
- package/resources/v1-beta.d.ts +2 -0
- package/resources/v1-beta.d.ts.map +1 -0
- package/resources/v1-beta.js +6 -0
- package/resources/v1-beta.js.map +1 -0
- package/resources/v1-beta.mjs +3 -0
- package/resources/v1-beta.mjs.map +1 -0
- 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/client.ts +14 -1
- package/src/resources/index.ts +1 -0
- package/src/resources/v1/addons/addons.ts +849 -36
- package/src/resources/v1/addons/entitlements.ts +123 -10
- package/src/resources/v1/addons/index.ts +8 -0
- package/src/resources/v1/coupons.ts +154 -23
- package/src/resources/v1/credits/credits.ts +167 -23
- package/src/resources/v1/credits/custom-currencies.ts +188 -30
- package/src/resources/v1/credits/grants.ts +102 -24
- package/src/resources/v1/credits/index.ts +4 -0
- package/src/resources/v1/customers/customers.ts +333 -62
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +137 -18
- package/src/resources/v1/customers/payment-method.ts +69 -10
- package/src/resources/v1/customers/promotional-entitlements.ts +82 -11
- package/src/resources/v1/events/beta/beta.ts +19 -0
- package/src/resources/v1/events/beta/customers.ts +212 -0
- package/src/resources/v1/events/beta/index.ts +8 -0
- package/src/resources/v1/events/beta.ts +3 -0
- package/src/resources/v1/events/data-export/data-export.ts +312 -0
- package/src/resources/v1/events/data-export/destinations.ts +290 -0
- package/src/resources/v1/events/data-export/index.ts +18 -0
- package/src/resources/v1/events/data-export.ts +3 -0
- package/src/resources/v1/events/events.ts +132 -0
- package/src/resources/v1/events/index.ts +13 -0
- package/src/resources/v1/events.ts +1 -75
- package/src/resources/v1/features.ts +204 -34
- package/src/resources/v1/index.ts +29 -1
- package/src/resources/v1/plans/entitlements.ts +123 -10
- package/src/resources/v1/plans/index.ts +11 -0
- package/src/resources/v1/plans/plans.ts +1440 -37
- package/src/resources/v1/products.ts +189 -27
- package/src/resources/v1/subscriptions/future-update.ts +68 -5
- package/src/resources/v1/subscriptions/index.ts +9 -2
- package/src/resources/v1/subscriptions/invoice.ts +36 -3
- package/src/resources/v1/subscriptions/subscriptions.ts +429 -86
- package/src/resources/v1/subscriptions/usage.ts +61 -5
- package/src/resources/v1/usage.ts +86 -5
- package/src/resources/v1/v1.ts +58 -2
- package/src/resources/v1-beta/customers/assignments.ts +331 -0
- package/src/resources/v1-beta/customers/customers.ts +71 -0
- package/src/resources/v1-beta/customers/entities.ts +492 -0
- package/src/resources/v1-beta/customers/entitlements.ts +366 -0
- package/src/resources/v1-beta/customers/index.ts +26 -0
- package/src/resources/v1-beta/customers.ts +3 -0
- package/src/resources/v1-beta/entity-types.ts +225 -0
- package/src/resources/v1-beta/index.ts +12 -0
- package/src/resources/v1-beta/v1-beta.ts +35 -0
- package/src/resources/v1-beta.ts +3 -0
- 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
|
@@ -5,7 +5,7 @@ export declare class Entitlements extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* Creates one or more entitlements (feature or credit) on a draft addon.
|
|
7
7
|
*/
|
|
8
|
-
create(addonID: string,
|
|
8
|
+
create(addonID: string, params: EntitlementCreateParams, options?: RequestOptions): APIPromise<EntitlementCreateResponse>;
|
|
9
9
|
/**
|
|
10
10
|
* Updates an existing entitlement on a draft addon.
|
|
11
11
|
*/
|
|
@@ -13,7 +13,7 @@ export declare class Entitlements extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* Retrieves a list of entitlements for an addon.
|
|
15
15
|
*/
|
|
16
|
-
list(addonID: string, options?: RequestOptions): APIPromise<EntitlementListResponse>;
|
|
16
|
+
list(addonID: string, params?: EntitlementListParams | null | undefined, options?: RequestOptions): APIPromise<EntitlementListResponse>;
|
|
17
17
|
/**
|
|
18
18
|
* Deletes an entitlement from a draft addon.
|
|
19
19
|
*/
|
|
@@ -561,9 +561,20 @@ export declare namespace EntitlementListResponse {
|
|
|
561
561
|
}
|
|
562
562
|
export interface EntitlementCreateParams {
|
|
563
563
|
/**
|
|
564
|
-
* Entitlements to create
|
|
564
|
+
* Body param: Entitlements to create
|
|
565
565
|
*/
|
|
566
566
|
entitlements: Array<EntitlementCreateParams.Feature | EntitlementCreateParams.Credit>;
|
|
567
|
+
/**
|
|
568
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
569
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
570
|
+
*/
|
|
571
|
+
'X-ACCOUNT-ID'?: string;
|
|
572
|
+
/**
|
|
573
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
574
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
575
|
+
* intrinsic to the key).
|
|
576
|
+
*/
|
|
577
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
567
578
|
}
|
|
568
579
|
export declare namespace EntitlementCreateParams {
|
|
569
580
|
/**
|
|
@@ -794,6 +805,17 @@ export declare namespace EntitlementUpdateParams {
|
|
|
794
805
|
* Body param: Configuration for yearly reset period
|
|
795
806
|
*/
|
|
796
807
|
yearlyResetPeriodConfiguration?: UpdateFeatureEntitlementRequest.YearlyResetPeriodConfiguration | null;
|
|
808
|
+
/**
|
|
809
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
810
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
811
|
+
*/
|
|
812
|
+
'X-ACCOUNT-ID'?: string;
|
|
813
|
+
/**
|
|
814
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
815
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
816
|
+
* intrinsic to the key).
|
|
817
|
+
*/
|
|
818
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
797
819
|
}
|
|
798
820
|
namespace UpdateFeatureEntitlementRequest {
|
|
799
821
|
/**
|
|
@@ -874,15 +896,50 @@ export declare namespace EntitlementUpdateParams {
|
|
|
874
896
|
* Body param: Display order of the entitlement
|
|
875
897
|
*/
|
|
876
898
|
order?: number;
|
|
899
|
+
/**
|
|
900
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
901
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
902
|
+
*/
|
|
903
|
+
'X-ACCOUNT-ID'?: string;
|
|
904
|
+
/**
|
|
905
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
906
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
907
|
+
* intrinsic to the key).
|
|
908
|
+
*/
|
|
909
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
877
910
|
}
|
|
878
911
|
}
|
|
912
|
+
export interface EntitlementListParams {
|
|
913
|
+
/**
|
|
914
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
915
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
916
|
+
*/
|
|
917
|
+
'X-ACCOUNT-ID'?: string;
|
|
918
|
+
/**
|
|
919
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
920
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
921
|
+
* key).
|
|
922
|
+
*/
|
|
923
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
924
|
+
}
|
|
879
925
|
export interface EntitlementDeleteParams {
|
|
880
926
|
/**
|
|
881
|
-
* The addon ID
|
|
927
|
+
* Path param: The addon ID
|
|
882
928
|
*/
|
|
883
929
|
addonId: string;
|
|
930
|
+
/**
|
|
931
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
932
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
933
|
+
*/
|
|
934
|
+
'X-ACCOUNT-ID'?: string;
|
|
935
|
+
/**
|
|
936
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
937
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
938
|
+
* intrinsic to the key).
|
|
939
|
+
*/
|
|
940
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
884
941
|
}
|
|
885
942
|
export declare namespace Entitlements {
|
|
886
|
-
export { type AddonPackageEntitlement as AddonPackageEntitlement, type EntitlementCreateResponse as EntitlementCreateResponse, type EntitlementListResponse as EntitlementListResponse, type EntitlementCreateParams as EntitlementCreateParams, type EntitlementUpdateParams as EntitlementUpdateParams, type EntitlementDeleteParams as EntitlementDeleteParams, };
|
|
943
|
+
export { type AddonPackageEntitlement as AddonPackageEntitlement, type EntitlementCreateResponse as EntitlementCreateResponse, type EntitlementListResponse as EntitlementListResponse, type EntitlementCreateParams as EntitlementCreateParams, type EntitlementUpdateParams as EntitlementUpdateParams, type EntitlementListParams as EntitlementListParams, type EntitlementDeleteParams as EntitlementDeleteParams, };
|
|
887
944
|
}
|
|
888
945
|
//# sourceMappingURL=entitlements.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/addons/entitlements.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAKtC;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIpF;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;CAIvC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,uBAAuB,CAAC,OAAO,GAAG,uBAAuB,CAAC,MAAM,CAAC;CACxE;AAED,yBAAiB,uBAAuB,CAAC;IACvC;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,QAAQ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BAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -3,33 +3,74 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Entitlements = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
6
7
|
const path_1 = require("../../../internal/utils/path.js");
|
|
7
8
|
class Entitlements extends resource_1.APIResource {
|
|
8
9
|
/**
|
|
9
10
|
* Creates one or more entitlements (feature or credit) on a draft addon.
|
|
10
11
|
*/
|
|
11
|
-
create(addonID,
|
|
12
|
-
|
|
12
|
+
create(addonID, params, options) {
|
|
13
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
14
|
+
return this._client.post((0, path_1.path) `/api/v1/addons/${addonID}/entitlements`, {
|
|
15
|
+
body,
|
|
16
|
+
...options,
|
|
17
|
+
headers: (0, headers_1.buildHeaders)([
|
|
18
|
+
{
|
|
19
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
20
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
21
|
+
},
|
|
22
|
+
options?.headers,
|
|
23
|
+
]),
|
|
24
|
+
});
|
|
13
25
|
}
|
|
14
26
|
/**
|
|
15
27
|
* Updates an existing entitlement on a draft addon.
|
|
16
28
|
*/
|
|
17
29
|
update(id, params, options) {
|
|
18
|
-
const { addonId, ...body } = params;
|
|
19
|
-
return this._client.patch((0, path_1.path) `/api/v1/addons/${addonId}/entitlements/${id}`, {
|
|
30
|
+
const { addonId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
31
|
+
return this._client.patch((0, path_1.path) `/api/v1/addons/${addonId}/entitlements/${id}`, {
|
|
32
|
+
body,
|
|
33
|
+
...options,
|
|
34
|
+
headers: (0, headers_1.buildHeaders)([
|
|
35
|
+
{
|
|
36
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
37
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
38
|
+
},
|
|
39
|
+
options?.headers,
|
|
40
|
+
]),
|
|
41
|
+
});
|
|
20
42
|
}
|
|
21
43
|
/**
|
|
22
44
|
* Retrieves a list of entitlements for an addon.
|
|
23
45
|
*/
|
|
24
|
-
list(addonID, options) {
|
|
25
|
-
|
|
46
|
+
list(addonID, params = {}, options) {
|
|
47
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
48
|
+
return this._client.get((0, path_1.path) `/api/v1/addons/${addonID}/entitlements`, {
|
|
49
|
+
...options,
|
|
50
|
+
headers: (0, headers_1.buildHeaders)([
|
|
51
|
+
{
|
|
52
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
53
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
54
|
+
},
|
|
55
|
+
options?.headers,
|
|
56
|
+
]),
|
|
57
|
+
});
|
|
26
58
|
}
|
|
27
59
|
/**
|
|
28
60
|
* Deletes an entitlement from a draft addon.
|
|
29
61
|
*/
|
|
30
62
|
delete(id, params, options) {
|
|
31
|
-
const { addonId } = params;
|
|
32
|
-
return this._client.delete((0, path_1.path) `/api/v1/addons/${addonId}/entitlements/${id}`,
|
|
63
|
+
const { addonId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params;
|
|
64
|
+
return this._client.delete((0, path_1.path) `/api/v1/addons/${addonId}/entitlements/${id}`, {
|
|
65
|
+
...options,
|
|
66
|
+
headers: (0, headers_1.buildHeaders)([
|
|
67
|
+
{
|
|
68
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
69
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
70
|
+
},
|
|
71
|
+
options?.headers,
|
|
72
|
+
]),
|
|
73
|
+
});
|
|
33
74
|
}
|
|
34
75
|
}
|
|
35
76
|
exports.Entitlements = Entitlements;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../../src/resources/v1/addons/entitlements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../../src/resources/v1/addons/entitlements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,OAAO,eAAe,EAAE;YACrE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,C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,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,OAAO,iBAAiB,EAAE,EAAE,EAAE;YAC7E,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAtFD,oCAsFC"}
|
|
@@ -1,32 +1,73 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
3
4
|
import { path } from "../../../internal/utils/path.mjs";
|
|
4
5
|
export class Entitlements extends APIResource {
|
|
5
6
|
/**
|
|
6
7
|
* Creates one or more entitlements (feature or credit) on a draft addon.
|
|
7
8
|
*/
|
|
8
|
-
create(addonID,
|
|
9
|
-
|
|
9
|
+
create(addonID, params, options) {
|
|
10
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
11
|
+
return this._client.post(path `/api/v1/addons/${addonID}/entitlements`, {
|
|
12
|
+
body,
|
|
13
|
+
...options,
|
|
14
|
+
headers: buildHeaders([
|
|
15
|
+
{
|
|
16
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
17
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
18
|
+
},
|
|
19
|
+
options?.headers,
|
|
20
|
+
]),
|
|
21
|
+
});
|
|
10
22
|
}
|
|
11
23
|
/**
|
|
12
24
|
* Updates an existing entitlement on a draft addon.
|
|
13
25
|
*/
|
|
14
26
|
update(id, params, options) {
|
|
15
|
-
const { addonId, ...body } = params;
|
|
16
|
-
return this._client.patch(path `/api/v1/addons/${addonId}/entitlements/${id}`, {
|
|
27
|
+
const { addonId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
28
|
+
return this._client.patch(path `/api/v1/addons/${addonId}/entitlements/${id}`, {
|
|
29
|
+
body,
|
|
30
|
+
...options,
|
|
31
|
+
headers: buildHeaders([
|
|
32
|
+
{
|
|
33
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
34
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
35
|
+
},
|
|
36
|
+
options?.headers,
|
|
37
|
+
]),
|
|
38
|
+
});
|
|
17
39
|
}
|
|
18
40
|
/**
|
|
19
41
|
* Retrieves a list of entitlements for an addon.
|
|
20
42
|
*/
|
|
21
|
-
list(addonID, options) {
|
|
22
|
-
|
|
43
|
+
list(addonID, params = {}, options) {
|
|
44
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
45
|
+
return this._client.get(path `/api/v1/addons/${addonID}/entitlements`, {
|
|
46
|
+
...options,
|
|
47
|
+
headers: buildHeaders([
|
|
48
|
+
{
|
|
49
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
50
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
51
|
+
},
|
|
52
|
+
options?.headers,
|
|
53
|
+
]),
|
|
54
|
+
});
|
|
23
55
|
}
|
|
24
56
|
/**
|
|
25
57
|
* Deletes an entitlement from a draft addon.
|
|
26
58
|
*/
|
|
27
59
|
delete(id, params, options) {
|
|
28
|
-
const { addonId } = params;
|
|
29
|
-
return this._client.delete(path `/api/v1/addons/${addonId}/entitlements/${id}`,
|
|
60
|
+
const { addonId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params;
|
|
61
|
+
return this._client.delete(path `/api/v1/addons/${addonId}/entitlements/${id}`, {
|
|
62
|
+
...options,
|
|
63
|
+
headers: buildHeaders([
|
|
64
|
+
{
|
|
65
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
66
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
67
|
+
},
|
|
68
|
+
options?.headers,
|
|
69
|
+
]),
|
|
70
|
+
});
|
|
30
71
|
}
|
|
31
72
|
}
|
|
32
73
|
//# sourceMappingURL=entitlements.mjs.map
|
|
@@ -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,O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c,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -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.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"}
|
|
@@ -10,23 +10,23 @@ export declare class Coupons extends APIResource {
|
|
|
10
10
|
* Creates a new discount coupon with percentage or fixed amount off, applicable to
|
|
11
11
|
* customer subscriptions.
|
|
12
12
|
*/
|
|
13
|
-
create(
|
|
13
|
+
create(params: CouponCreateParams, options?: RequestOptions): APIPromise<Coupon>;
|
|
14
14
|
/**
|
|
15
15
|
* Retrieves a coupon by its unique identifier.
|
|
16
16
|
*/
|
|
17
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<Coupon>;
|
|
17
|
+
retrieve(id: string, params?: CouponRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Coupon>;
|
|
18
18
|
/**
|
|
19
19
|
* Retrieves a paginated list of coupons in the environment.
|
|
20
20
|
*/
|
|
21
|
-
list(
|
|
21
|
+
list(params?: CouponListParams | null | undefined, options?: RequestOptions): PagePromise<CouponListResponsesMyCursorIDPage, CouponListResponse>;
|
|
22
22
|
/**
|
|
23
23
|
* Archives a coupon, preventing it from being applied to new subscriptions.
|
|
24
24
|
*/
|
|
25
|
-
archiveCoupon(id: string, options?: RequestOptions): APIPromise<Coupon>;
|
|
25
|
+
archiveCoupon(id: string, params?: CouponArchiveCouponParams | null | undefined, options?: RequestOptions): APIPromise<Coupon>;
|
|
26
26
|
/**
|
|
27
27
|
* Updates an existing coupon's properties such as name, description, and metadata.
|
|
28
28
|
*/
|
|
29
|
-
updateCoupon(id: string,
|
|
29
|
+
updateCoupon(id: string, params: CouponUpdateCouponParams, options?: RequestOptions): APIPromise<Coupon>;
|
|
30
30
|
}
|
|
31
31
|
export type CouponListResponsesMyCursorIDPage = MyCursorIDPage<CouponListResponse>;
|
|
32
32
|
/**
|
|
@@ -198,35 +198,46 @@ export declare namespace CouponListResponse {
|
|
|
198
198
|
}
|
|
199
199
|
export interface CouponCreateParams {
|
|
200
200
|
/**
|
|
201
|
-
* The unique identifier for the entity
|
|
201
|
+
* Body param: The unique identifier for the entity
|
|
202
202
|
*/
|
|
203
203
|
id: string;
|
|
204
204
|
/**
|
|
205
|
-
* Fixed amount discounts in different currencies
|
|
205
|
+
* Body param: Fixed amount discounts in different currencies
|
|
206
206
|
*/
|
|
207
207
|
amountsOff: Array<CouponCreateParams.AmountsOff> | null;
|
|
208
208
|
/**
|
|
209
|
-
* Description of the coupon
|
|
209
|
+
* Body param: Description of the coupon
|
|
210
210
|
*/
|
|
211
211
|
description: string | null;
|
|
212
212
|
/**
|
|
213
|
-
* Duration of the coupon validity in months
|
|
213
|
+
* Body param: Duration of the coupon validity in months
|
|
214
214
|
*/
|
|
215
215
|
durationInMonths: number | null;
|
|
216
216
|
/**
|
|
217
|
-
* Metadata associated with the entity
|
|
217
|
+
* Body param: Metadata associated with the entity
|
|
218
218
|
*/
|
|
219
219
|
metadata: {
|
|
220
220
|
[key: string]: string;
|
|
221
221
|
} | null;
|
|
222
222
|
/**
|
|
223
|
-
* Name of the coupon
|
|
223
|
+
* Body param: Name of the coupon
|
|
224
224
|
*/
|
|
225
225
|
name: string;
|
|
226
226
|
/**
|
|
227
|
-
* Percentage discount off the original price
|
|
227
|
+
* Body param: Percentage discount off the original price
|
|
228
228
|
*/
|
|
229
229
|
percentOff: number | null;
|
|
230
|
+
/**
|
|
231
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
232
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
233
|
+
*/
|
|
234
|
+
'X-ACCOUNT-ID'?: string;
|
|
235
|
+
/**
|
|
236
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
237
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
238
|
+
* intrinsic to the key).
|
|
239
|
+
*/
|
|
240
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
230
241
|
}
|
|
231
242
|
export declare namespace CouponCreateParams {
|
|
232
243
|
/**
|
|
@@ -243,23 +254,48 @@ export declare namespace CouponCreateParams {
|
|
|
243
254
|
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
255
|
}
|
|
245
256
|
}
|
|
257
|
+
export interface CouponRetrieveParams {
|
|
258
|
+
/**
|
|
259
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
260
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
261
|
+
*/
|
|
262
|
+
'X-ACCOUNT-ID'?: string;
|
|
263
|
+
/**
|
|
264
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
265
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
266
|
+
* key).
|
|
267
|
+
*/
|
|
268
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
269
|
+
}
|
|
246
270
|
export interface CouponListParams extends MyCursorIDPageParams {
|
|
247
271
|
/**
|
|
248
|
-
* Filter by entity ID
|
|
272
|
+
* Query param: Filter by entity ID
|
|
249
273
|
*/
|
|
250
274
|
id?: string;
|
|
251
275
|
/**
|
|
252
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
276
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
253
277
|
*/
|
|
254
278
|
createdAt?: CouponListParams.CreatedAt;
|
|
255
279
|
/**
|
|
256
|
-
* Filter by coupon status. Supports comma-separated values for
|
|
280
|
+
* Query param: Filter by coupon status. Supports comma-separated values for
|
|
281
|
+
* multiple statuses
|
|
257
282
|
*/
|
|
258
283
|
status?: Array<'ACTIVE' | 'ARCHIVED'>;
|
|
259
284
|
/**
|
|
260
|
-
* Filter by coupon type (FIXED or PERCENTAGE)
|
|
285
|
+
* Query param: Filter by coupon type (FIXED or PERCENTAGE)
|
|
261
286
|
*/
|
|
262
287
|
type?: 'FIXED' | 'PERCENTAGE';
|
|
288
|
+
/**
|
|
289
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
290
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
291
|
+
*/
|
|
292
|
+
'X-ACCOUNT-ID'?: string;
|
|
293
|
+
/**
|
|
294
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
295
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
296
|
+
* intrinsic to the key).
|
|
297
|
+
*/
|
|
298
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
263
299
|
}
|
|
264
300
|
export declare namespace CouponListParams {
|
|
265
301
|
/**
|
|
@@ -284,23 +320,47 @@ export declare namespace CouponListParams {
|
|
|
284
320
|
lte?: string;
|
|
285
321
|
}
|
|
286
322
|
}
|
|
323
|
+
export interface CouponArchiveCouponParams {
|
|
324
|
+
/**
|
|
325
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
326
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
327
|
+
*/
|
|
328
|
+
'X-ACCOUNT-ID'?: string;
|
|
329
|
+
/**
|
|
330
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
331
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
332
|
+
* key).
|
|
333
|
+
*/
|
|
334
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
335
|
+
}
|
|
287
336
|
export interface CouponUpdateCouponParams {
|
|
288
337
|
/**
|
|
289
|
-
* Description of the coupon
|
|
338
|
+
* Body param: Description of the coupon
|
|
290
339
|
*/
|
|
291
340
|
description?: string | null;
|
|
292
341
|
/**
|
|
293
|
-
* Metadata associated with the entity
|
|
342
|
+
* Body param: Metadata associated with the entity
|
|
294
343
|
*/
|
|
295
344
|
metadata?: {
|
|
296
345
|
[key: string]: string;
|
|
297
346
|
} | null;
|
|
298
347
|
/**
|
|
299
|
-
* Name of the coupon
|
|
348
|
+
* Body param: Name of the coupon
|
|
300
349
|
*/
|
|
301
350
|
name?: string;
|
|
351
|
+
/**
|
|
352
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
353
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
354
|
+
*/
|
|
355
|
+
'X-ACCOUNT-ID'?: string;
|
|
356
|
+
/**
|
|
357
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
358
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
359
|
+
* intrinsic to the key).
|
|
360
|
+
*/
|
|
361
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
302
362
|
}
|
|
303
363
|
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, };
|
|
364
|
+
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
365
|
}
|
|
306
366
|
//# sourceMappingURL=coupons.d.mts.map
|