@stigg/typescript 0.1.0-beta.4 → 0.1.0-beta.41
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 +314 -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 +4 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -1
- package/client.d.ts.map +1 -1
- package/client.js +15 -4
- package/client.js.map +1 -1
- package/client.mjs +15 -4
- 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 +143 -33
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +143 -33
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +110 -17
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +110 -17
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +92 -5
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +92 -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/consumption.d.mts +199 -0
- package/resources/v1/credits/consumption.d.mts.map +1 -0
- package/resources/v1/credits/consumption.d.ts +199 -0
- package/resources/v1/credits/consumption.d.ts.map +1 -0
- package/resources/v1/credits/consumption.js +46 -0
- package/resources/v1/credits/consumption.js.map +1 -0
- package/resources/v1/credits/consumption.mjs +42 -0
- package/resources/v1/credits/consumption.mjs.map +1 -0
- package/resources/v1/credits/credits.d.mts +118 -25
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +118 -25
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +40 -5
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +40 -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 +3 -2
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +3 -2
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js +3 -1
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs +1 -0
- 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 +321 -0
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
- package/resources/v1/events/data-export/destinations.d.ts +321 -0
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
- package/resources/v1/events/data-export/destinations.js +65 -0
- package/resources/v1/events/data-export/destinations.js.map +1 -0
- package/resources/v1/events/data-export/destinations.mjs +61 -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 +92 -5
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +92 -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 +156 -34
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +156 -34
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +127 -20
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +127 -20
- 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 +252 -76
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +252 -76
- 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 +71 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +71 -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 +249 -0
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
- package/resources/v1-beta/customers/assignments.d.ts +249 -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 +17 -4
- package/src/resources/index.ts +1 -0
- package/src/resources/v1/addons/addons.ts +286 -39
- package/src/resources/v1/addons/entitlements.ts +158 -10
- package/src/resources/v1/addons/index.ts +5 -0
- package/src/resources/v1/coupons.ts +154 -23
- package/src/resources/v1/credits/consumption.ts +269 -0
- package/src/resources/v1/credits/credits.ts +185 -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 +11 -0
- package/src/resources/v1/customers/customers.ts +338 -62
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +140 -18
- package/src/resources/v1/customers/payment-method.ts +70 -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 +316 -0
- package/src/resources/v1/events/data-export/destinations.ts +434 -0
- package/src/resources/v1/events/data-export/index.ts +20 -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 +20 -1
- package/src/resources/v1/plans/entitlements.ts +158 -10
- package/src/resources/v1/plans/index.ts +5 -0
- package/src/resources/v1/plans/plans.ts +314 -43
- 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 +423 -83
- package/src/resources/v1/subscriptions/usage.ts +61 -5
- package/src/resources/v1/usage.ts +108 -5
- package/src/resources/v1/v1.ts +40 -2
- package/src/resources/v1-beta/customers/assignments.ts +336 -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
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
Integrations,
|
|
14
14
|
} from './integrations';
|
|
15
15
|
import * as PaymentMethodAPI from './payment-method';
|
|
16
|
-
import { PaymentMethod, PaymentMethodAttachParams } from './payment-method';
|
|
16
|
+
import { PaymentMethod, PaymentMethodAttachParams, PaymentMethodDetachParams } from './payment-method';
|
|
17
17
|
import * as PromotionalEntitlementsAPI from './promotional-entitlements';
|
|
18
18
|
import {
|
|
19
19
|
PromotionalEntitlementCreateParams,
|
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
} from './promotional-entitlements';
|
|
28
28
|
import { APIPromise } from '../../../core/api-promise';
|
|
29
29
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
|
|
30
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
30
31
|
import { RequestOptions } from '../../../internal/request-options';
|
|
31
32
|
import { path } from '../../../internal/utils/path';
|
|
32
33
|
|
|
@@ -40,28 +41,61 @@ export class Customers extends APIResource {
|
|
|
40
41
|
* Retrieves a customer by their unique identifier, including billing information
|
|
41
42
|
* and subscription status.
|
|
42
43
|
*/
|
|
43
|
-
retrieve(
|
|
44
|
-
|
|
44
|
+
retrieve(
|
|
45
|
+
id: string,
|
|
46
|
+
params: CustomerRetrieveParams | null | undefined = {},
|
|
47
|
+
options?: RequestOptions,
|
|
48
|
+
): APIPromise<CustomerResponse> {
|
|
49
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
50
|
+
return this._client.get(path`/api/v1/customers/${id}`, {
|
|
51
|
+
...options,
|
|
52
|
+
headers: buildHeaders([
|
|
53
|
+
{
|
|
54
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
55
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
56
|
+
},
|
|
57
|
+
options?.headers,
|
|
58
|
+
]),
|
|
59
|
+
});
|
|
45
60
|
}
|
|
46
61
|
|
|
47
62
|
/**
|
|
48
63
|
* Updates an existing customer's properties such as name, email, and billing
|
|
49
64
|
* information.
|
|
50
65
|
*/
|
|
51
|
-
update(id: string,
|
|
52
|
-
|
|
66
|
+
update(id: string, params: CustomerUpdateParams, options?: RequestOptions): APIPromise<CustomerResponse> {
|
|
67
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
68
|
+
return this._client.patch(path`/api/v1/customers/${id}`, {
|
|
69
|
+
body,
|
|
70
|
+
...options,
|
|
71
|
+
headers: buildHeaders([
|
|
72
|
+
{
|
|
73
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
74
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
75
|
+
},
|
|
76
|
+
options?.headers,
|
|
77
|
+
]),
|
|
78
|
+
});
|
|
53
79
|
}
|
|
54
80
|
|
|
55
81
|
/**
|
|
56
82
|
* Retrieves a paginated list of customers in the environment.
|
|
57
83
|
*/
|
|
58
84
|
list(
|
|
59
|
-
|
|
85
|
+
params: CustomerListParams | null | undefined = {},
|
|
60
86
|
options?: RequestOptions,
|
|
61
87
|
): PagePromise<CustomerListResponsesMyCursorIDPage, CustomerListResponse> {
|
|
88
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
62
89
|
return this._client.getAPIList('/api/v1/customers', MyCursorIDPage<CustomerListResponse>, {
|
|
63
90
|
query,
|
|
64
91
|
...options,
|
|
92
|
+
headers: buildHeaders([
|
|
93
|
+
{
|
|
94
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
95
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
96
|
+
},
|
|
97
|
+
options?.headers,
|
|
98
|
+
]),
|
|
65
99
|
});
|
|
66
100
|
}
|
|
67
101
|
|
|
@@ -69,8 +103,22 @@ export class Customers extends APIResource {
|
|
|
69
103
|
* Archives a customer, preventing new subscriptions. Optionally cancels existing
|
|
70
104
|
* subscriptions.
|
|
71
105
|
*/
|
|
72
|
-
archive(
|
|
73
|
-
|
|
106
|
+
archive(
|
|
107
|
+
id: string,
|
|
108
|
+
params: CustomerArchiveParams | null | undefined = {},
|
|
109
|
+
options?: RequestOptions,
|
|
110
|
+
): APIPromise<CustomerResponse> {
|
|
111
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
112
|
+
return this._client.post(path`/api/v1/customers/${id}/archive`, {
|
|
113
|
+
...options,
|
|
114
|
+
headers: buildHeaders([
|
|
115
|
+
{
|
|
116
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
117
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
118
|
+
},
|
|
119
|
+
options?.headers,
|
|
120
|
+
]),
|
|
121
|
+
});
|
|
74
122
|
}
|
|
75
123
|
|
|
76
124
|
/**
|
|
@@ -85,18 +133,40 @@ export class Customers extends APIResource {
|
|
|
85
133
|
*/
|
|
86
134
|
checkEntitlement(
|
|
87
135
|
id: string,
|
|
88
|
-
|
|
136
|
+
params: CustomerCheckEntitlementParams | null | undefined = {},
|
|
89
137
|
options?: RequestOptions,
|
|
90
138
|
): APIPromise<CustomerCheckEntitlementResponse> {
|
|
91
|
-
|
|
139
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
140
|
+
return this._client.get(path`/api/v1/customers/${id}/entitlements/check`, {
|
|
141
|
+
query,
|
|
142
|
+
...options,
|
|
143
|
+
headers: buildHeaders([
|
|
144
|
+
{
|
|
145
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
146
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
147
|
+
},
|
|
148
|
+
options?.headers,
|
|
149
|
+
]),
|
|
150
|
+
});
|
|
92
151
|
}
|
|
93
152
|
|
|
94
153
|
/**
|
|
95
154
|
* Imports multiple customers in bulk. Used for migrating customer data from
|
|
96
155
|
* external systems.
|
|
97
156
|
*/
|
|
98
|
-
import(
|
|
99
|
-
|
|
157
|
+
import(params: CustomerImportParams, options?: RequestOptions): APIPromise<CustomerImportResponse> {
|
|
158
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
159
|
+
return this._client.post('/api/v1/customers/import', {
|
|
160
|
+
body,
|
|
161
|
+
...options,
|
|
162
|
+
headers: buildHeaders([
|
|
163
|
+
{
|
|
164
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
165
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
166
|
+
},
|
|
167
|
+
options?.headers,
|
|
168
|
+
]),
|
|
169
|
+
});
|
|
100
170
|
}
|
|
101
171
|
|
|
102
172
|
/**
|
|
@@ -104,13 +174,24 @@ export class Customers extends APIResource {
|
|
|
104
174
|
*/
|
|
105
175
|
listResources(
|
|
106
176
|
id: string,
|
|
107
|
-
|
|
177
|
+
params: CustomerListResourcesParams | null | undefined = {},
|
|
108
178
|
options?: RequestOptions,
|
|
109
179
|
): PagePromise<CustomerListResourcesResponsesMyCursorIDPage, CustomerListResourcesResponse> {
|
|
180
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
110
181
|
return this._client.getAPIList(
|
|
111
182
|
path`/api/v1/customers/${id}/resources`,
|
|
112
183
|
MyCursorIDPage<CustomerListResourcesResponse>,
|
|
113
|
-
{
|
|
184
|
+
{
|
|
185
|
+
query,
|
|
186
|
+
...options,
|
|
187
|
+
headers: buildHeaders([
|
|
188
|
+
{
|
|
189
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
190
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
191
|
+
},
|
|
192
|
+
options?.headers,
|
|
193
|
+
]),
|
|
194
|
+
},
|
|
114
195
|
);
|
|
115
196
|
}
|
|
116
197
|
|
|
@@ -118,8 +199,19 @@ export class Customers extends APIResource {
|
|
|
118
199
|
* Creates a new customer and optionally provisions an initial subscription in a
|
|
119
200
|
* single operation.
|
|
120
201
|
*/
|
|
121
|
-
provision(
|
|
122
|
-
|
|
202
|
+
provision(params: CustomerProvisionParams, options?: RequestOptions): APIPromise<CustomerResponse> {
|
|
203
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
204
|
+
return this._client.post('/api/v1/customers', {
|
|
205
|
+
body,
|
|
206
|
+
...options,
|
|
207
|
+
headers: buildHeaders([
|
|
208
|
+
{
|
|
209
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
210
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
211
|
+
},
|
|
212
|
+
options?.headers,
|
|
213
|
+
]),
|
|
214
|
+
});
|
|
123
215
|
}
|
|
124
216
|
|
|
125
217
|
/**
|
|
@@ -133,17 +225,42 @@ export class Customers extends APIResource {
|
|
|
133
225
|
*/
|
|
134
226
|
retrieveEntitlements(
|
|
135
227
|
id: string,
|
|
136
|
-
|
|
228
|
+
params: CustomerRetrieveEntitlementsParams | null | undefined = {},
|
|
137
229
|
options?: RequestOptions,
|
|
138
230
|
): APIPromise<CustomerRetrieveEntitlementsResponse> {
|
|
139
|
-
|
|
231
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
232
|
+
return this._client.get(path`/api/v1/customers/${id}/entitlements`, {
|
|
233
|
+
query,
|
|
234
|
+
...options,
|
|
235
|
+
headers: buildHeaders([
|
|
236
|
+
{
|
|
237
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
238
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
239
|
+
},
|
|
240
|
+
options?.headers,
|
|
241
|
+
]),
|
|
242
|
+
});
|
|
140
243
|
}
|
|
141
244
|
|
|
142
245
|
/**
|
|
143
246
|
* Restores an archived customer, allowing them to create new subscriptions again.
|
|
144
247
|
*/
|
|
145
|
-
unarchive(
|
|
146
|
-
|
|
248
|
+
unarchive(
|
|
249
|
+
id: string,
|
|
250
|
+
params: CustomerUnarchiveParams | null | undefined = {},
|
|
251
|
+
options?: RequestOptions,
|
|
252
|
+
): APIPromise<CustomerResponse> {
|
|
253
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
254
|
+
return this._client.post(path`/api/v1/customers/${id}/unarchive`, {
|
|
255
|
+
...options,
|
|
256
|
+
headers: buildHeaders([
|
|
257
|
+
{
|
|
258
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
259
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
260
|
+
},
|
|
261
|
+
options?.headers,
|
|
262
|
+
]),
|
|
263
|
+
});
|
|
147
264
|
}
|
|
148
265
|
}
|
|
149
266
|
|
|
@@ -189,7 +306,10 @@ export namespace CustomerIntegrationResponse {
|
|
|
189
306
|
| 'SALESFORCE'
|
|
190
307
|
| 'BIG_QUERY'
|
|
191
308
|
| 'OPEN_FGA'
|
|
192
|
-
| 'APP_STORE'
|
|
309
|
+
| 'APP_STORE'
|
|
310
|
+
| 'RECEIVED'
|
|
311
|
+
| 'PREQUEL'
|
|
312
|
+
| 'AIRWALLEX';
|
|
193
313
|
|
|
194
314
|
/**
|
|
195
315
|
* Price billing sync revision data containing billing ID, link URL, and price
|
|
@@ -517,7 +637,10 @@ export namespace CustomerResponse {
|
|
|
517
637
|
| 'SALESFORCE'
|
|
518
638
|
| 'BIG_QUERY'
|
|
519
639
|
| 'OPEN_FGA'
|
|
520
|
-
| 'APP_STORE'
|
|
640
|
+
| 'APP_STORE'
|
|
641
|
+
| 'RECEIVED'
|
|
642
|
+
| 'PREQUEL'
|
|
643
|
+
| 'AIRWALLEX';
|
|
521
644
|
}
|
|
522
645
|
|
|
523
646
|
/**
|
|
@@ -1099,7 +1222,10 @@ export namespace CustomerListResponse {
|
|
|
1099
1222
|
| 'SALESFORCE'
|
|
1100
1223
|
| 'BIG_QUERY'
|
|
1101
1224
|
| 'OPEN_FGA'
|
|
1102
|
-
| 'APP_STORE'
|
|
1225
|
+
| 'APP_STORE'
|
|
1226
|
+
| 'RECEIVED'
|
|
1227
|
+
| 'PREQUEL'
|
|
1228
|
+
| 'AIRWALLEX';
|
|
1103
1229
|
}
|
|
1104
1230
|
|
|
1105
1231
|
/**
|
|
@@ -1853,9 +1979,24 @@ export namespace CustomerRetrieveEntitlementsResponse {
|
|
|
1853
1979
|
}
|
|
1854
1980
|
}
|
|
1855
1981
|
|
|
1982
|
+
export interface CustomerRetrieveParams {
|
|
1983
|
+
/**
|
|
1984
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
1985
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
1986
|
+
*/
|
|
1987
|
+
'X-ACCOUNT-ID'?: string;
|
|
1988
|
+
|
|
1989
|
+
/**
|
|
1990
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
1991
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
1992
|
+
* key).
|
|
1993
|
+
*/
|
|
1994
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1856
1997
|
export interface CustomerUpdateParams {
|
|
1857
1998
|
/**
|
|
1858
|
-
* The billing currency of the customer
|
|
1999
|
+
* Body param: The billing currency of the customer
|
|
1859
2000
|
*/
|
|
1860
2001
|
billingCurrency?:
|
|
1861
2002
|
| 'usd'
|
|
@@ -1977,49 +2118,62 @@ export interface CustomerUpdateParams {
|
|
|
1977
2118
|
| null;
|
|
1978
2119
|
|
|
1979
2120
|
/**
|
|
1980
|
-
* The unique identifier for the entity in the billing provider
|
|
2121
|
+
* Body param: The unique identifier for the entity in the billing provider
|
|
1981
2122
|
*/
|
|
1982
2123
|
billingId?: string | null;
|
|
1983
2124
|
|
|
1984
2125
|
/**
|
|
1985
|
-
* Customer level coupon
|
|
2126
|
+
* Body param: Customer level coupon
|
|
1986
2127
|
*/
|
|
1987
2128
|
couponId?: (string & {}) | '' | null;
|
|
1988
2129
|
|
|
1989
2130
|
/**
|
|
1990
|
-
* The email of the customer
|
|
2131
|
+
* Body param: The email of the customer
|
|
1991
2132
|
*/
|
|
1992
2133
|
email?: string | null;
|
|
1993
2134
|
|
|
1994
2135
|
/**
|
|
1995
|
-
* List of integrations
|
|
2136
|
+
* Body param: List of integrations
|
|
1996
2137
|
*/
|
|
1997
2138
|
integrations?: Array<CustomerUpdateParams.Integration>;
|
|
1998
2139
|
|
|
1999
2140
|
/**
|
|
2000
|
-
* Language to use for this customer
|
|
2141
|
+
* Body param: Language to use for this customer
|
|
2001
2142
|
*/
|
|
2002
2143
|
language?: string | null;
|
|
2003
2144
|
|
|
2004
2145
|
/**
|
|
2005
|
-
* Additional metadata
|
|
2146
|
+
* Body param: Additional metadata
|
|
2006
2147
|
*/
|
|
2007
2148
|
metadata?: { [key: string]: string };
|
|
2008
2149
|
|
|
2009
2150
|
/**
|
|
2010
|
-
* The name of the customer
|
|
2151
|
+
* Body param: The name of the customer
|
|
2011
2152
|
*/
|
|
2012
2153
|
name?: string | null;
|
|
2013
2154
|
|
|
2014
2155
|
/**
|
|
2015
|
-
* Vendor-specific billing passthrough fields.
|
|
2156
|
+
* Body param: Vendor-specific billing passthrough fields.
|
|
2016
2157
|
*/
|
|
2017
2158
|
passthrough?: CustomerUpdateParams.Passthrough;
|
|
2018
2159
|
|
|
2019
2160
|
/**
|
|
2020
|
-
* Timezone to use for this customer
|
|
2161
|
+
* Body param: Timezone to use for this customer
|
|
2021
2162
|
*/
|
|
2022
2163
|
timezone?: string | null;
|
|
2164
|
+
|
|
2165
|
+
/**
|
|
2166
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2167
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2168
|
+
*/
|
|
2169
|
+
'X-ACCOUNT-ID'?: string;
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2173
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2174
|
+
* intrinsic to the key).
|
|
2175
|
+
*/
|
|
2176
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2023
2177
|
}
|
|
2024
2178
|
|
|
2025
2179
|
export namespace CustomerUpdateParams {
|
|
@@ -2050,7 +2204,10 @@ export namespace CustomerUpdateParams {
|
|
|
2050
2204
|
| 'SALESFORCE'
|
|
2051
2205
|
| 'BIG_QUERY'
|
|
2052
2206
|
| 'OPEN_FGA'
|
|
2053
|
-
| 'APP_STORE'
|
|
2207
|
+
| 'APP_STORE'
|
|
2208
|
+
| 'RECEIVED'
|
|
2209
|
+
| 'PREQUEL'
|
|
2210
|
+
| 'AIRWALLEX';
|
|
2054
2211
|
}
|
|
2055
2212
|
|
|
2056
2213
|
/**
|
|
@@ -2378,19 +2535,32 @@ export namespace CustomerUpdateParams {
|
|
|
2378
2535
|
|
|
2379
2536
|
export interface CustomerListParams extends MyCursorIDPageParams {
|
|
2380
2537
|
/**
|
|
2381
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
2538
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
2382
2539
|
*/
|
|
2383
2540
|
createdAt?: CustomerListParams.CreatedAt;
|
|
2384
2541
|
|
|
2385
2542
|
/**
|
|
2386
|
-
* Filter by exact customer email address
|
|
2543
|
+
* Query param: Filter by exact customer email address
|
|
2387
2544
|
*/
|
|
2388
2545
|
email?: string;
|
|
2389
2546
|
|
|
2390
2547
|
/**
|
|
2391
|
-
* Filter by exact customer name
|
|
2548
|
+
* Query param: Filter by exact customer name
|
|
2392
2549
|
*/
|
|
2393
2550
|
name?: string;
|
|
2551
|
+
|
|
2552
|
+
/**
|
|
2553
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2554
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2555
|
+
*/
|
|
2556
|
+
'X-ACCOUNT-ID'?: string;
|
|
2557
|
+
|
|
2558
|
+
/**
|
|
2559
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2560
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2561
|
+
* intrinsic to the key).
|
|
2562
|
+
*/
|
|
2563
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2394
2564
|
}
|
|
2395
2565
|
|
|
2396
2566
|
export namespace CustomerListParams {
|
|
@@ -2420,45 +2590,87 @@ export namespace CustomerListParams {
|
|
|
2420
2590
|
}
|
|
2421
2591
|
}
|
|
2422
2592
|
|
|
2593
|
+
export interface CustomerArchiveParams {
|
|
2594
|
+
/**
|
|
2595
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
2596
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
2597
|
+
*/
|
|
2598
|
+
'X-ACCOUNT-ID'?: string;
|
|
2599
|
+
|
|
2600
|
+
/**
|
|
2601
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
2602
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
2603
|
+
* key).
|
|
2604
|
+
*/
|
|
2605
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2423
2608
|
export interface CustomerCheckEntitlementParams {
|
|
2424
2609
|
/**
|
|
2425
|
-
* Currency ID (refId) to check for credit entitlements. Mutually
|
|
2426
|
-
* `featureId`.
|
|
2610
|
+
* Query param: Currency ID (refId) to check for credit entitlements. Mutually
|
|
2611
|
+
* exclusive with `featureId`.
|
|
2427
2612
|
*/
|
|
2428
2613
|
currencyId?: string;
|
|
2429
2614
|
|
|
2430
2615
|
/**
|
|
2431
|
-
* Feature ID (refId) to check. Mutually exclusive with `currencyId`.
|
|
2616
|
+
* Query param: Feature ID (refId) to check. Mutually exclusive with `currencyId`.
|
|
2432
2617
|
*/
|
|
2433
2618
|
featureId?: string;
|
|
2434
2619
|
|
|
2435
2620
|
/**
|
|
2436
|
-
* Requested usage amount to evaluate against the entitlement limit
|
|
2437
|
-
* features only)
|
|
2621
|
+
* Query param: Requested usage amount to evaluate against the entitlement limit
|
|
2622
|
+
* (numeric features only)
|
|
2438
2623
|
*/
|
|
2439
2624
|
requestedUsage?: number;
|
|
2440
2625
|
|
|
2441
2626
|
/**
|
|
2442
|
-
* Requested values to evaluate against allowed values (enum features
|
|
2627
|
+
* Query param: Requested values to evaluate against allowed values (enum features
|
|
2628
|
+
* only)
|
|
2443
2629
|
*/
|
|
2444
2630
|
requestedValues?: Array<string>;
|
|
2445
2631
|
|
|
2446
2632
|
/**
|
|
2447
|
-
* Resource ID to scope the entitlement check to a specific resource
|
|
2633
|
+
* Query param: Resource ID to scope the entitlement check to a specific resource
|
|
2448
2634
|
*/
|
|
2449
2635
|
resourceId?: string;
|
|
2636
|
+
|
|
2637
|
+
/**
|
|
2638
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2639
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2640
|
+
*/
|
|
2641
|
+
'X-ACCOUNT-ID'?: string;
|
|
2642
|
+
|
|
2643
|
+
/**
|
|
2644
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2645
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2646
|
+
* intrinsic to the key).
|
|
2647
|
+
*/
|
|
2648
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2450
2649
|
}
|
|
2451
2650
|
|
|
2452
2651
|
export interface CustomerImportParams {
|
|
2453
2652
|
/**
|
|
2454
|
-
* List of customer objects to import
|
|
2653
|
+
* Body param: List of customer objects to import
|
|
2455
2654
|
*/
|
|
2456
2655
|
customers: Array<CustomerImportParams.Customer>;
|
|
2457
2656
|
|
|
2458
2657
|
/**
|
|
2459
|
-
* Integration details
|
|
2658
|
+
* Body param: Integration details
|
|
2460
2659
|
*/
|
|
2461
2660
|
integrationId?: string;
|
|
2661
|
+
|
|
2662
|
+
/**
|
|
2663
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2664
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2665
|
+
*/
|
|
2666
|
+
'X-ACCOUNT-ID'?: string;
|
|
2667
|
+
|
|
2668
|
+
/**
|
|
2669
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2670
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2671
|
+
* intrinsic to the key).
|
|
2672
|
+
*/
|
|
2673
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2462
2674
|
}
|
|
2463
2675
|
|
|
2464
2676
|
export namespace CustomerImportParams {
|
|
@@ -2505,16 +2717,29 @@ export namespace CustomerImportParams {
|
|
|
2505
2717
|
}
|
|
2506
2718
|
}
|
|
2507
2719
|
|
|
2508
|
-
export interface CustomerListResourcesParams extends MyCursorIDPageParams {
|
|
2720
|
+
export interface CustomerListResourcesParams extends MyCursorIDPageParams {
|
|
2721
|
+
/**
|
|
2722
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2723
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2724
|
+
*/
|
|
2725
|
+
'X-ACCOUNT-ID'?: string;
|
|
2726
|
+
|
|
2727
|
+
/**
|
|
2728
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2729
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2730
|
+
* intrinsic to the key).
|
|
2731
|
+
*/
|
|
2732
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2733
|
+
}
|
|
2509
2734
|
|
|
2510
2735
|
export interface CustomerProvisionParams {
|
|
2511
2736
|
/**
|
|
2512
|
-
* Customer slug
|
|
2737
|
+
* Body param: Customer slug
|
|
2513
2738
|
*/
|
|
2514
2739
|
id: string;
|
|
2515
2740
|
|
|
2516
2741
|
/**
|
|
2517
|
-
* The billing currency of the customer
|
|
2742
|
+
* Body param: The billing currency of the customer
|
|
2518
2743
|
*/
|
|
2519
2744
|
billingCurrency?:
|
|
2520
2745
|
| 'usd'
|
|
@@ -2636,54 +2861,67 @@ export interface CustomerProvisionParams {
|
|
|
2636
2861
|
| null;
|
|
2637
2862
|
|
|
2638
2863
|
/**
|
|
2639
|
-
* The unique identifier for the entity in the billing provider
|
|
2864
|
+
* Body param: The unique identifier for the entity in the billing provider
|
|
2640
2865
|
*/
|
|
2641
2866
|
billingId?: string | null;
|
|
2642
2867
|
|
|
2643
2868
|
/**
|
|
2644
|
-
* Customer level coupon
|
|
2869
|
+
* Body param: Customer level coupon
|
|
2645
2870
|
*/
|
|
2646
2871
|
couponId?: (string & {}) | '' | null;
|
|
2647
2872
|
|
|
2648
2873
|
/**
|
|
2649
|
-
* The default payment method details
|
|
2874
|
+
* Body param: The default payment method details
|
|
2650
2875
|
*/
|
|
2651
2876
|
defaultPaymentMethod?: CustomerProvisionParams.DefaultPaymentMethod | null;
|
|
2652
2877
|
|
|
2653
2878
|
/**
|
|
2654
|
-
* The email of the customer
|
|
2879
|
+
* Body param: The email of the customer
|
|
2655
2880
|
*/
|
|
2656
2881
|
email?: string | null;
|
|
2657
2882
|
|
|
2658
2883
|
/**
|
|
2659
|
-
* List of integrations
|
|
2884
|
+
* Body param: List of integrations
|
|
2660
2885
|
*/
|
|
2661
2886
|
integrations?: Array<CustomerProvisionParams.Integration>;
|
|
2662
2887
|
|
|
2663
2888
|
/**
|
|
2664
|
-
* Language to use for this customer
|
|
2889
|
+
* Body param: Language to use for this customer
|
|
2665
2890
|
*/
|
|
2666
2891
|
language?: string | null;
|
|
2667
2892
|
|
|
2668
2893
|
/**
|
|
2669
|
-
* Additional metadata
|
|
2894
|
+
* Body param: Additional metadata
|
|
2670
2895
|
*/
|
|
2671
2896
|
metadata?: { [key: string]: string };
|
|
2672
2897
|
|
|
2673
2898
|
/**
|
|
2674
|
-
* The name of the customer
|
|
2899
|
+
* Body param: The name of the customer
|
|
2675
2900
|
*/
|
|
2676
2901
|
name?: string | null;
|
|
2677
2902
|
|
|
2678
2903
|
/**
|
|
2679
|
-
* Vendor-specific billing passthrough fields.
|
|
2904
|
+
* Body param: Vendor-specific billing passthrough fields.
|
|
2680
2905
|
*/
|
|
2681
2906
|
passthrough?: CustomerProvisionParams.Passthrough;
|
|
2682
2907
|
|
|
2683
2908
|
/**
|
|
2684
|
-
* Timezone to use for this customer
|
|
2909
|
+
* Body param: Timezone to use for this customer
|
|
2685
2910
|
*/
|
|
2686
2911
|
timezone?: string | null;
|
|
2912
|
+
|
|
2913
|
+
/**
|
|
2914
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2915
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2916
|
+
*/
|
|
2917
|
+
'X-ACCOUNT-ID'?: string;
|
|
2918
|
+
|
|
2919
|
+
/**
|
|
2920
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2921
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2922
|
+
* intrinsic to the key).
|
|
2923
|
+
*/
|
|
2924
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2687
2925
|
}
|
|
2688
2926
|
|
|
2689
2927
|
export namespace CustomerProvisionParams {
|
|
@@ -2744,7 +2982,10 @@ export namespace CustomerProvisionParams {
|
|
|
2744
2982
|
| 'SALESFORCE'
|
|
2745
2983
|
| 'BIG_QUERY'
|
|
2746
2984
|
| 'OPEN_FGA'
|
|
2747
|
-
| 'APP_STORE'
|
|
2985
|
+
| 'APP_STORE'
|
|
2986
|
+
| 'RECEIVED'
|
|
2987
|
+
| 'PREQUEL'
|
|
2988
|
+
| 'AIRWALLEX';
|
|
2748
2989
|
}
|
|
2749
2990
|
|
|
2750
2991
|
/**
|
|
@@ -3072,9 +3313,37 @@ export namespace CustomerProvisionParams {
|
|
|
3072
3313
|
|
|
3073
3314
|
export interface CustomerRetrieveEntitlementsParams {
|
|
3074
3315
|
/**
|
|
3075
|
-
* Resource ID to scope entitlements to a specific resource
|
|
3316
|
+
* Query param: Resource ID to scope entitlements to a specific resource
|
|
3076
3317
|
*/
|
|
3077
3318
|
resourceId?: string;
|
|
3319
|
+
|
|
3320
|
+
/**
|
|
3321
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
3322
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
3323
|
+
*/
|
|
3324
|
+
'X-ACCOUNT-ID'?: string;
|
|
3325
|
+
|
|
3326
|
+
/**
|
|
3327
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
3328
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
3329
|
+
* intrinsic to the key).
|
|
3330
|
+
*/
|
|
3331
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3332
|
+
}
|
|
3333
|
+
|
|
3334
|
+
export interface CustomerUnarchiveParams {
|
|
3335
|
+
/**
|
|
3336
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
3337
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
3338
|
+
*/
|
|
3339
|
+
'X-ACCOUNT-ID'?: string;
|
|
3340
|
+
|
|
3341
|
+
/**
|
|
3342
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
3343
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
3344
|
+
* key).
|
|
3345
|
+
*/
|
|
3346
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3078
3347
|
}
|
|
3079
3348
|
|
|
3080
3349
|
Customers.PaymentMethod = PaymentMethod;
|
|
@@ -3092,16 +3361,23 @@ export declare namespace Customers {
|
|
|
3092
3361
|
type CustomerRetrieveEntitlementsResponse as CustomerRetrieveEntitlementsResponse,
|
|
3093
3362
|
type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage,
|
|
3094
3363
|
type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage,
|
|
3364
|
+
type CustomerRetrieveParams as CustomerRetrieveParams,
|
|
3095
3365
|
type CustomerUpdateParams as CustomerUpdateParams,
|
|
3096
3366
|
type CustomerListParams as CustomerListParams,
|
|
3367
|
+
type CustomerArchiveParams as CustomerArchiveParams,
|
|
3097
3368
|
type CustomerCheckEntitlementParams as CustomerCheckEntitlementParams,
|
|
3098
3369
|
type CustomerImportParams as CustomerImportParams,
|
|
3099
3370
|
type CustomerListResourcesParams as CustomerListResourcesParams,
|
|
3100
3371
|
type CustomerProvisionParams as CustomerProvisionParams,
|
|
3101
3372
|
type CustomerRetrieveEntitlementsParams as CustomerRetrieveEntitlementsParams,
|
|
3373
|
+
type CustomerUnarchiveParams as CustomerUnarchiveParams,
|
|
3102
3374
|
};
|
|
3103
3375
|
|
|
3104
|
-
export {
|
|
3376
|
+
export {
|
|
3377
|
+
PaymentMethod as PaymentMethod,
|
|
3378
|
+
type PaymentMethodAttachParams as PaymentMethodAttachParams,
|
|
3379
|
+
type PaymentMethodDetachParams as PaymentMethodDetachParams,
|
|
3380
|
+
};
|
|
3105
3381
|
|
|
3106
3382
|
export {
|
|
3107
3383
|
PromotionalEntitlements as PromotionalEntitlements,
|