@stigg/typescript 0.1.0-beta.10 → 0.1.0-beta.13
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 +24 -0
- package/client.d.mts +0 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +0 -3
- package/client.d.ts.map +1 -1
- package/client.js +0 -3
- package/client.js.map +1 -1
- package/client.mjs +0 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +0 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +0 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/v1/addons/addons.d.mts +226 -193
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +226 -193
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +60 -4
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +60 -4
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +31 -0
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +31 -0
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +31 -0
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +31 -0
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/addons/index.d.mts +1 -1
- package/resources/v1/addons/index.d.mts.map +1 -1
- package/resources/v1/addons/index.d.ts +1 -1
- package/resources/v1/addons/index.d.ts.map +1 -1
- package/resources/v1/coupons.d.mts +36 -0
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +36 -0
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +36 -0
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +36 -0
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +25 -0
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +25 -0
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +25 -0
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +25 -0
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +49 -0
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +49 -0
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +49 -0
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +49 -0
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +28 -0
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +28 -0
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +28 -0
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +28 -0
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +82 -5
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +82 -5
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +77 -0
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +77 -0
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +50 -3
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +50 -3
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +47 -0
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +47 -0
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +17 -1
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +17 -1
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +16 -0
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +16 -0
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +51 -0
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +51 -0
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +51 -0
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +51 -0
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/{v1-beta/v1-beta.d.mts → v1/events/beta/beta.d.mts} +4 -4
- package/resources/v1/events/beta/beta.d.mts.map +1 -0
- package/resources/{v1-beta/v1-beta.d.ts → v1/events/beta/beta.d.ts} +4 -4
- package/resources/v1/events/beta/beta.d.ts.map +1 -0
- package/resources/{v1-beta/v1-beta.js → v1/events/beta/beta.js} +8 -8
- package/resources/v1/events/beta/beta.js.map +1 -0
- package/resources/{v1-beta/v1-beta.mjs → v1/events/beta/beta.mjs} +5 -5
- package/resources/v1/events/beta/beta.mjs.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/assignments.d.mts +24 -21
- package/resources/v1/events/beta/customers/assignments.d.mts.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/assignments.d.ts +24 -21
- package/resources/v1/events/beta/customers/assignments.d.ts.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/assignments.js +23 -20
- package/resources/v1/events/beta/customers/assignments.js.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/assignments.mjs +23 -20
- package/resources/v1/events/beta/customers/assignments.mjs.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/customers.d.mts +3 -3
- package/resources/v1/events/beta/customers/customers.d.mts.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/customers.d.ts +3 -3
- package/resources/v1/events/beta/customers/customers.d.ts.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/customers.js +2 -2
- package/resources/v1/events/beta/customers/customers.js.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/customers.mjs +1 -1
- package/resources/v1/events/beta/customers/customers.mjs.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/entities.d.mts +82 -62
- package/resources/v1/events/beta/customers/entities.d.mts.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/entities.d.ts +82 -62
- package/resources/v1/events/beta/customers/entities.d.ts.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/entities.js +38 -29
- package/resources/v1/events/beta/customers/entities.js.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/entities.mjs +38 -29
- package/resources/v1/events/beta/customers/entities.mjs.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/entitlements.d.mts +6 -4
- package/resources/v1/events/beta/customers/entitlements.d.mts.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/entitlements.d.ts +6 -4
- package/resources/v1/events/beta/customers/entitlements.d.ts.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/entitlements.js +5 -3
- package/resources/v1/events/beta/customers/entitlements.js.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers/entitlements.mjs +5 -3
- package/resources/v1/events/beta/customers/entitlements.mjs.map +1 -0
- package/resources/v1/events/beta/customers/index.d.mts +5 -0
- package/resources/v1/events/beta/customers/index.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/index.d.ts +5 -0
- package/resources/v1/events/beta/customers/index.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/index.js.map +1 -0
- package/resources/v1/events/beta/customers/index.mjs.map +1 -0
- package/resources/v1/events/beta/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers.d.ts.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/customers.js +1 -1
- package/resources/v1/events/beta/customers.js.map +1 -0
- package/resources/v1/events/beta/customers.mjs.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/entity-types.d.mts +20 -19
- package/resources/v1/events/beta/entity-types.d.mts.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/entity-types.d.ts +20 -19
- package/resources/v1/events/beta/entity-types.d.ts.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/entity-types.js +18 -17
- package/resources/v1/events/beta/entity-types.js.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/entity-types.mjs +18 -17
- package/resources/v1/events/beta/entity-types.mjs.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/index.d.mts +1 -1
- package/resources/v1/events/beta/index.d.mts.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/index.d.ts +1 -1
- package/resources/v1/events/beta/index.d.ts.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/index.js +3 -3
- package/resources/v1/events/beta/index.js.map +1 -0
- package/resources/{v1-beta → v1/events/beta}/index.mjs +1 -1
- 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-beta.js → v1/events/beta.js} +3 -3
- package/resources/v1/events/beta.js.map +1 -0
- package/resources/{v1-beta.mjs → v1/events/beta.mjs} +2 -2
- package/resources/v1/events/beta.mjs.map +1 -0
- package/resources/v1/events/events.d.mts +83 -0
- package/resources/v1/events/events.d.mts.map +1 -0
- package/resources/v1/events/events.d.ts +83 -0
- package/resources/v1/events/events.d.ts.map +1 -0
- package/resources/v1/events/events.js +40 -0
- package/resources/v1/events/events.js.map +1 -0
- package/resources/v1/events/events.mjs +35 -0
- package/resources/v1/events/events.mjs.map +1 -0
- package/resources/v1/events/index.d.mts +3 -0
- package/resources/v1/events/index.d.mts.map +1 -0
- package/resources/v1/events/index.d.ts +3 -0
- package/resources/v1/events/index.d.ts.map +1 -0
- package/resources/v1/events/index.js +9 -0
- package/resources/v1/events/index.js.map +1 -0
- package/resources/v1/events/index.mjs +4 -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 +43 -0
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +43 -0
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +43 -0
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +43 -0
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +3 -3
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -3
- 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 +31 -0
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +31 -0
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +31 -0
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +31 -0
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/index.d.mts +1 -1
- package/resources/v1/plans/index.d.mts.map +1 -1
- package/resources/v1/plans/index.d.ts +1 -1
- 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 +402 -6
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +402 -6
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +69 -0
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +69 -0
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +43 -0
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +43 -0
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +43 -0
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +43 -0
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +16 -0
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +16 -0
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +16 -0
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +16 -0
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +6 -0
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +6 -0
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +6 -0
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +6 -0
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +81 -0
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +81 -0
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +81 -0
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +81 -0
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +13 -0
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +13 -0
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +13 -0
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +13 -0
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/usage.d.mts +24 -0
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +24 -0
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +24 -0
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +24 -0
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +6 -6
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +6 -6
- 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/src/client.ts +0 -5
- package/src/resources/index.ts +0 -1
- package/src/resources/v1/addons/addons.ts +517 -487
- package/src/resources/v1/addons/entitlements.ts +31 -0
- package/src/resources/v1/addons/index.ts +2 -2
- package/src/resources/v1/coupons.ts +36 -0
- package/src/resources/v1/credits/credits.ts +25 -0
- package/src/resources/v1/credits/custom-currencies.ts +49 -0
- package/src/resources/v1/credits/grants.ts +28 -0
- package/src/resources/v1/customers/customers.ts +92 -5
- package/src/resources/v1/customers/integrations.ts +55 -2
- package/src/resources/v1/customers/payment-method.ts +19 -1
- package/src/resources/v1/customers/promotional-entitlements.ts +51 -0
- package/src/resources/{v1-beta/v1-beta.ts → v1/events/beta/beta.ts} +5 -5
- package/src/resources/{v1-beta → v1/events/beta}/customers/assignments.ts +25 -22
- package/src/resources/{v1-beta → v1/events/beta}/customers/customers.ts +5 -5
- package/src/resources/{v1-beta → v1/events/beta}/customers/entities.ts +88 -67
- package/src/resources/{v1-beta → v1/events/beta}/customers/entitlements.ts +7 -5
- package/src/resources/{v1-beta → v1/events/beta}/customers/index.ts +2 -2
- package/src/resources/{v1-beta → v1/events/beta}/entity-types.ts +20 -19
- package/src/resources/{v1-beta → v1/events/beta}/index.ts +1 -1
- package/src/resources/{v1-beta.ts → v1/events/beta.ts} +1 -1
- package/src/resources/v1/events/events.ts +98 -0
- package/src/resources/v1/events/index.ts +4 -0
- package/src/resources/v1/events.ts +1 -75
- package/src/resources/v1/features.ts +43 -0
- package/src/resources/v1/index.ts +7 -3
- package/src/resources/v1/plans/entitlements.ts +31 -0
- package/src/resources/v1/plans/index.ts +4 -0
- package/src/resources/v1/plans/plans.ts +1169 -8
- package/src/resources/v1/products.ts +43 -0
- package/src/resources/v1/subscriptions/future-update.ts +16 -0
- package/src/resources/v1/subscriptions/invoice.ts +6 -0
- package/src/resources/v1/subscriptions/subscriptions.ts +81 -0
- package/src/resources/v1/subscriptions/usage.ts +13 -0
- package/src/resources/v1/usage.ts +24 -0
- package/src/resources/v1/v1.ts +14 -6
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/v1-beta/customers/assignments.d.mts.map +0 -1
- package/resources/v1-beta/customers/assignments.d.ts.map +0 -1
- package/resources/v1-beta/customers/assignments.js.map +0 -1
- package/resources/v1-beta/customers/assignments.mjs.map +0 -1
- package/resources/v1-beta/customers/customers.d.mts.map +0 -1
- package/resources/v1-beta/customers/customers.d.ts.map +0 -1
- package/resources/v1-beta/customers/customers.js.map +0 -1
- package/resources/v1-beta/customers/customers.mjs.map +0 -1
- package/resources/v1-beta/customers/entities.d.mts.map +0 -1
- package/resources/v1-beta/customers/entities.d.ts.map +0 -1
- package/resources/v1-beta/customers/entities.js.map +0 -1
- package/resources/v1-beta/customers/entities.mjs.map +0 -1
- package/resources/v1-beta/customers/entitlements.d.mts.map +0 -1
- package/resources/v1-beta/customers/entitlements.d.ts.map +0 -1
- package/resources/v1-beta/customers/entitlements.js.map +0 -1
- package/resources/v1-beta/customers/entitlements.mjs.map +0 -1
- package/resources/v1-beta/customers/index.d.mts +0 -5
- package/resources/v1-beta/customers/index.d.mts.map +0 -1
- package/resources/v1-beta/customers/index.d.ts +0 -5
- package/resources/v1-beta/customers/index.d.ts.map +0 -1
- package/resources/v1-beta/customers/index.js.map +0 -1
- package/resources/v1-beta/customers/index.mjs.map +0 -1
- package/resources/v1-beta/customers.d.mts.map +0 -1
- package/resources/v1-beta/customers.d.ts.map +0 -1
- package/resources/v1-beta/customers.js.map +0 -1
- package/resources/v1-beta/customers.mjs.map +0 -1
- package/resources/v1-beta/entity-types.d.mts.map +0 -1
- package/resources/v1-beta/entity-types.d.ts.map +0 -1
- package/resources/v1-beta/entity-types.js.map +0 -1
- package/resources/v1-beta/entity-types.mjs.map +0 -1
- package/resources/v1-beta/index.d.mts.map +0 -1
- package/resources/v1-beta/index.d.ts.map +0 -1
- package/resources/v1-beta/index.js.map +0 -1
- package/resources/v1-beta/index.mjs.map +0 -1
- package/resources/v1-beta/v1-beta.d.mts.map +0 -1
- package/resources/v1-beta/v1-beta.d.ts.map +0 -1
- package/resources/v1-beta/v1-beta.js.map +0 -1
- package/resources/v1-beta/v1-beta.mjs.map +0 -1
- package/resources/v1-beta.d.mts +0 -2
- package/resources/v1-beta.d.mts.map +0 -1
- package/resources/v1-beta.d.ts +0 -2
- package/resources/v1-beta.d.ts.map +0 -1
- package/resources/v1-beta.js.map +0 -1
- package/resources/v1-beta.mjs.map +0 -1
- /package/resources/{v1-beta → v1/events/beta}/customers/index.js +0 -0
- /package/resources/{v1-beta → v1/events/beta}/customers/index.mjs +0 -0
- /package/resources/{v1-beta → v1/events/beta}/customers.d.mts +0 -0
- /package/resources/{v1-beta → v1/events/beta}/customers.d.ts +0 -0
- /package/resources/{v1-beta → v1/events/beta}/customers.mjs +0 -0
- /package/src/resources/{v1-beta → v1/events/beta}/customers.ts +0 -0
|
@@ -24,6 +24,15 @@ export class Addons extends APIResource {
|
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Creates a new addon in draft status, associated with a specific product.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const addon = await client.v1.addons.create({
|
|
31
|
+
* id: 'id',
|
|
32
|
+
* displayName: 'displayName',
|
|
33
|
+
* productId: 'productId',
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
27
36
|
*/
|
|
28
37
|
create(body: AddonCreateParams, options?: RequestOptions): APIPromise<Addon> {
|
|
29
38
|
return this._client.post('/api/v1/addons', { body, ...options });
|
|
@@ -32,6 +41,11 @@ export class Addons extends APIResource {
|
|
|
32
41
|
/**
|
|
33
42
|
* Retrieves an addon by its unique identifier, including entitlements and pricing
|
|
34
43
|
* details.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const addon = await client.v1.addons.retrieve('x');
|
|
48
|
+
* ```
|
|
35
49
|
*/
|
|
36
50
|
retrieve(id: string, options?: RequestOptions): APIPromise<Addon> {
|
|
37
51
|
return this._client.get(path`/api/v1/addons/${id}`, options);
|
|
@@ -40,6 +54,11 @@ export class Addons extends APIResource {
|
|
|
40
54
|
/**
|
|
41
55
|
* Updates an existing addon's properties such as display name, description, and
|
|
42
56
|
* metadata.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const addon = await client.v1.addons.update('x');
|
|
61
|
+
* ```
|
|
43
62
|
*/
|
|
44
63
|
update(id: string, body: AddonUpdateParams, options?: RequestOptions): APIPromise<Addon> {
|
|
45
64
|
return this._client.patch(path`/api/v1/addons/${id}`, { body, ...options });
|
|
@@ -47,6 +66,14 @@ export class Addons extends APIResource {
|
|
|
47
66
|
|
|
48
67
|
/**
|
|
49
68
|
* Retrieves a paginated list of addons in the environment.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* // Automatically fetches more pages as needed.
|
|
73
|
+
* for await (const addonListResponse of client.v1.addons.list()) {
|
|
74
|
+
* // ...
|
|
75
|
+
* }
|
|
76
|
+
* ```
|
|
50
77
|
*/
|
|
51
78
|
list(
|
|
52
79
|
query: AddonListParams | null | undefined = {},
|
|
@@ -60,6 +87,11 @@ export class Addons extends APIResource {
|
|
|
60
87
|
|
|
61
88
|
/**
|
|
62
89
|
* Archives an addon, preventing it from being used in new subscriptions.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* const addon = await client.v1.addons.archive('x');
|
|
94
|
+
* ```
|
|
63
95
|
*/
|
|
64
96
|
archive(id: string, options?: RequestOptions): APIPromise<Addon> {
|
|
65
97
|
return this._client.post(path`/api/v1/addons/${id}/archive`, options);
|
|
@@ -67,6 +99,11 @@ export class Addons extends APIResource {
|
|
|
67
99
|
|
|
68
100
|
/**
|
|
69
101
|
* Creates a draft version of an existing addon for modification before publishing.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```ts
|
|
105
|
+
* const addon = await client.v1.addons.createDraft('x');
|
|
106
|
+
* ```
|
|
70
107
|
*/
|
|
71
108
|
createDraft(id: string, options?: RequestOptions): APIPromise<Addon> {
|
|
72
109
|
return this._client.post(path`/api/v1/addons/${id}/draft`, options);
|
|
@@ -74,20 +111,38 @@ export class Addons extends APIResource {
|
|
|
74
111
|
|
|
75
112
|
/**
|
|
76
113
|
* Retrieves the list of charges configured on an addon.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```ts
|
|
117
|
+
* // Automatically fetches more pages as needed.
|
|
118
|
+
* for await (const addonListChargesResponse of client.v1.addons.listCharges(
|
|
119
|
+
* 'x',
|
|
120
|
+
* )) {
|
|
121
|
+
* // ...
|
|
122
|
+
* }
|
|
123
|
+
* ```
|
|
77
124
|
*/
|
|
78
125
|
listCharges(
|
|
79
126
|
id: string,
|
|
80
127
|
query: AddonListChargesParams | null | undefined = {},
|
|
81
128
|
options?: RequestOptions,
|
|
82
|
-
): PagePromise<
|
|
83
|
-
return this._client.getAPIList(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
129
|
+
): PagePromise<AddonListChargesResponsesMyCursorIDPage, AddonListChargesResponse> {
|
|
130
|
+
return this._client.getAPIList(
|
|
131
|
+
path`/api/v1/addons/${id}/charges`,
|
|
132
|
+
MyCursorIDPage<AddonListChargesResponse>,
|
|
133
|
+
{ query, ...options },
|
|
134
|
+
);
|
|
87
135
|
}
|
|
88
136
|
|
|
89
137
|
/**
|
|
90
138
|
* Publishes a draft addon, making it available for use in subscriptions.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```ts
|
|
142
|
+
* const response = await client.v1.addons.publish('x', {
|
|
143
|
+
* migrationType: 'NEW_CUSTOMERS',
|
|
144
|
+
* });
|
|
145
|
+
* ```
|
|
91
146
|
*/
|
|
92
147
|
publish(id: string, body: AddonPublishParams, options?: RequestOptions): APIPromise<AddonPublishResponse> {
|
|
93
148
|
return this._client.post(path`/api/v1/addons/${id}/publish`, { body, ...options });
|
|
@@ -95,6 +150,11 @@ export class Addons extends APIResource {
|
|
|
95
150
|
|
|
96
151
|
/**
|
|
97
152
|
* Removes a draft version of an addon.
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* ```ts
|
|
156
|
+
* const response = await client.v1.addons.removeDraft('x');
|
|
157
|
+
* ```
|
|
98
158
|
*/
|
|
99
159
|
removeDraft(id: string, options?: RequestOptions): APIPromise<AddonRemoveDraftResponse> {
|
|
100
160
|
return this._client.delete(path`/api/v1/addons/${id}/draft`, options);
|
|
@@ -103,7 +163,7 @@ export class Addons extends APIResource {
|
|
|
103
163
|
|
|
104
164
|
export type AddonListResponsesMyCursorIDPage = MyCursorIDPage<AddonListResponse>;
|
|
105
165
|
|
|
106
|
-
export type
|
|
166
|
+
export type AddonListChargesResponsesMyCursorIDPage = MyCursorIDPage<AddonListChargesResponse>;
|
|
107
167
|
|
|
108
168
|
/**
|
|
109
169
|
* Response object
|
|
@@ -212,150 +272,383 @@ export namespace Addon {
|
|
|
212
272
|
}
|
|
213
273
|
|
|
214
274
|
/**
|
|
215
|
-
*
|
|
275
|
+
* Addon configuration object
|
|
216
276
|
*/
|
|
217
|
-
export interface
|
|
218
|
-
|
|
277
|
+
export interface AddonListResponse {
|
|
278
|
+
/**
|
|
279
|
+
* The unique identifier for the entity
|
|
280
|
+
*/
|
|
281
|
+
id: string;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* The unique identifier for the entity in the billing provider
|
|
285
|
+
*/
|
|
286
|
+
billingId: string | null;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Timestamp of when the record was created
|
|
290
|
+
*/
|
|
291
|
+
createdAt: string;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* List of addons the addon is dependant on
|
|
295
|
+
*/
|
|
296
|
+
dependencies: Array<string> | null;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* The description of the package
|
|
300
|
+
*/
|
|
301
|
+
description: string | null;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* The display name of the package
|
|
305
|
+
*/
|
|
306
|
+
displayName: string;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* List of entitlements of the package
|
|
310
|
+
*/
|
|
311
|
+
entitlements: Array<AddonListResponse.Entitlement>;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Indicates if the package is the latest version
|
|
315
|
+
*/
|
|
316
|
+
isLatest: boolean | null;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* The maximum quantity of this addon that can be added to a subscription
|
|
320
|
+
*/
|
|
321
|
+
maxQuantity: number | null;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Metadata associated with the entity
|
|
325
|
+
*/
|
|
326
|
+
metadata: { [key: string]: string };
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* The pricing type of the package
|
|
330
|
+
*/
|
|
331
|
+
pricingType: 'FREE' | 'PAID' | 'CUSTOM' | null;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* The product id of the package
|
|
335
|
+
*/
|
|
336
|
+
productId: string;
|
|
219
337
|
|
|
220
338
|
/**
|
|
221
|
-
*
|
|
339
|
+
* The status of the package
|
|
340
|
+
*/
|
|
341
|
+
status: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Timestamp of when the record was last updated
|
|
345
|
+
*/
|
|
346
|
+
updatedAt: string;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* The version number of the package
|
|
222
350
|
*/
|
|
223
|
-
|
|
351
|
+
versionNumber: number;
|
|
224
352
|
}
|
|
225
353
|
|
|
226
|
-
export namespace
|
|
354
|
+
export namespace AddonListResponse {
|
|
227
355
|
/**
|
|
228
|
-
*
|
|
229
|
-
* billingModel, billingCadence, billingCountryCode) combination. Plans and addons
|
|
230
|
-
* own many of these — one per currency / billing period / feature.
|
|
356
|
+
* Entitlement reference with type and identifier
|
|
231
357
|
*/
|
|
232
|
-
export interface
|
|
358
|
+
export interface Entitlement {
|
|
233
359
|
/**
|
|
234
|
-
*
|
|
360
|
+
* The unique identifier for the entity
|
|
235
361
|
*/
|
|
236
362
|
id: string;
|
|
237
363
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
billingCadence: 'RECURRING' | 'ONE_OFF';
|
|
364
|
+
type: 'FEATURE' | 'CREDIT';
|
|
365
|
+
}
|
|
366
|
+
}
|
|
242
367
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
368
|
+
/**
|
|
369
|
+
* A single pricing row on a plan or addon. Each charge encodes one (billingPeriod,
|
|
370
|
+
* billingModel, billingCadence, billingCountryCode) combination. Plans and addons
|
|
371
|
+
* own many of these — one per currency / billing period / feature.
|
|
372
|
+
*/
|
|
373
|
+
export interface AddonListChargesResponse {
|
|
374
|
+
/**
|
|
375
|
+
* Unique identifier of the charge
|
|
376
|
+
*/
|
|
377
|
+
id: string;
|
|
247
378
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
379
|
+
/**
|
|
380
|
+
* The billing cadence (RECURRING or ONE_OFF)
|
|
381
|
+
*/
|
|
382
|
+
billingCadence: 'RECURRING' | 'ONE_OFF';
|
|
252
383
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
384
|
+
/**
|
|
385
|
+
* The billing model (FLAT_FEE, PER_UNIT, USAGE_BASED, CREDIT_BASED, MINIMUM_SPEND)
|
|
386
|
+
*/
|
|
387
|
+
billingModel: 'FLAT_FEE' | 'MINIMUM_SPEND' | 'PER_UNIT' | 'USAGE_BASED' | 'CREDIT_BASED';
|
|
257
388
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
389
|
+
/**
|
|
390
|
+
* The billing period (MONTHLY or ANNUALLY)
|
|
391
|
+
*/
|
|
392
|
+
billingPeriod: 'MONTHLY' | 'ANNUALLY';
|
|
262
393
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
394
|
+
/**
|
|
395
|
+
* Timestamp when the charge was created
|
|
396
|
+
*/
|
|
397
|
+
createdAt: string;
|
|
267
398
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
399
|
+
/**
|
|
400
|
+
* ISO country code for localized pricing, if any
|
|
401
|
+
*/
|
|
402
|
+
billingCountryCode?: string | null;
|
|
272
403
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
404
|
+
/**
|
|
405
|
+
* Identifier in the external billing integration (e.g. Stripe price id), if any
|
|
406
|
+
*/
|
|
407
|
+
billingId?: string | null;
|
|
277
408
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
409
|
+
/**
|
|
410
|
+
* Block size for usage-based pricing
|
|
411
|
+
*/
|
|
412
|
+
blockSize?: number | null;
|
|
282
413
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
414
|
+
/**
|
|
415
|
+
* When credits are granted (for credit-based pricing)
|
|
416
|
+
*/
|
|
417
|
+
creditGrantCadence?: 'BEGINNING_OF_BILLING_PERIOD' | 'MONTHLY' | null;
|
|
287
418
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
419
|
+
/**
|
|
420
|
+
* Credit rate configuration for credit-based pricing
|
|
421
|
+
*/
|
|
422
|
+
creditRate?: AddonListChargesResponse.CreditRate | null;
|
|
292
423
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
424
|
+
/**
|
|
425
|
+
* Identifier in the linked CRM, if any
|
|
426
|
+
*/
|
|
427
|
+
crmId?: string | null;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Deep link to the charge in the linked CRM, if any
|
|
431
|
+
*/
|
|
432
|
+
crmLinkUrl?: string | null;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* The feature this charge meters, if metered
|
|
436
|
+
*/
|
|
437
|
+
featureId?: string | null;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Maximum unit quantity that can be purchased
|
|
441
|
+
*/
|
|
442
|
+
maxUnitQuantity?: number | null;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Minimum unit quantity that can be purchased
|
|
446
|
+
*/
|
|
447
|
+
minUnitQuantity?: number | null;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* The flat price amount and currency, when applicable
|
|
451
|
+
*/
|
|
452
|
+
price?: AddonListChargesResponse.Price | null;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Tiered pricing rows when the charge is tiered
|
|
456
|
+
*/
|
|
457
|
+
tiers?: Array<AddonListChargesResponse.Tier> | null;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Tiered pricing mode (VOLUME or GRADUATED) when the charge is tiered
|
|
461
|
+
*/
|
|
462
|
+
tiersMode?: 'VOLUME' | 'GRADUATED' | null;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Custom currency identifier for top-up pricing, if any
|
|
466
|
+
*/
|
|
467
|
+
topUpCustomCurrencyId?: string | null;
|
|
297
468
|
|
|
469
|
+
/**
|
|
470
|
+
* True if this charge is referenced by at least one subscription
|
|
471
|
+
*/
|
|
472
|
+
usedInSubscriptions?: boolean | null;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
export namespace AddonListChargesResponse {
|
|
476
|
+
/**
|
|
477
|
+
* Credit rate configuration for credit-based pricing
|
|
478
|
+
*/
|
|
479
|
+
export interface CreditRate {
|
|
298
480
|
/**
|
|
299
|
-
*
|
|
481
|
+
* Credit rate amount
|
|
300
482
|
*/
|
|
301
|
-
|
|
483
|
+
amount: number;
|
|
302
484
|
|
|
303
485
|
/**
|
|
304
|
-
*
|
|
486
|
+
* Custom currency identifier
|
|
305
487
|
*/
|
|
306
|
-
|
|
488
|
+
currencyId: string;
|
|
307
489
|
|
|
308
490
|
/**
|
|
309
|
-
*
|
|
491
|
+
* Optional cost formula expression
|
|
310
492
|
*/
|
|
311
|
-
|
|
493
|
+
costFormula?: string | null;
|
|
494
|
+
}
|
|
312
495
|
|
|
496
|
+
/**
|
|
497
|
+
* The flat price amount and currency, when applicable
|
|
498
|
+
*/
|
|
499
|
+
export interface Price {
|
|
313
500
|
/**
|
|
314
|
-
*
|
|
501
|
+
* The price amount
|
|
315
502
|
*/
|
|
316
|
-
|
|
503
|
+
amount: number;
|
|
317
504
|
|
|
318
505
|
/**
|
|
319
|
-
*
|
|
506
|
+
* ISO 4217 currency code
|
|
320
507
|
*/
|
|
321
|
-
|
|
508
|
+
currency:
|
|
509
|
+
| 'usd'
|
|
510
|
+
| 'aed'
|
|
511
|
+
| 'all'
|
|
512
|
+
| 'amd'
|
|
513
|
+
| 'ang'
|
|
514
|
+
| 'aud'
|
|
515
|
+
| 'awg'
|
|
516
|
+
| 'azn'
|
|
517
|
+
| 'bam'
|
|
518
|
+
| 'bbd'
|
|
519
|
+
| 'bdt'
|
|
520
|
+
| 'bgn'
|
|
521
|
+
| 'bif'
|
|
522
|
+
| 'bmd'
|
|
523
|
+
| 'bnd'
|
|
524
|
+
| 'bsd'
|
|
525
|
+
| 'bwp'
|
|
526
|
+
| 'byn'
|
|
527
|
+
| 'bzd'
|
|
528
|
+
| 'brl'
|
|
529
|
+
| 'cad'
|
|
530
|
+
| 'cdf'
|
|
531
|
+
| 'chf'
|
|
532
|
+
| 'cny'
|
|
533
|
+
| 'czk'
|
|
534
|
+
| 'dkk'
|
|
535
|
+
| 'dop'
|
|
536
|
+
| 'dzd'
|
|
537
|
+
| 'egp'
|
|
538
|
+
| 'etb'
|
|
539
|
+
| 'eur'
|
|
540
|
+
| 'fjd'
|
|
541
|
+
| 'gbp'
|
|
542
|
+
| 'gel'
|
|
543
|
+
| 'gip'
|
|
544
|
+
| 'gmd'
|
|
545
|
+
| 'gyd'
|
|
546
|
+
| 'hkd'
|
|
547
|
+
| 'hrk'
|
|
548
|
+
| 'htg'
|
|
549
|
+
| 'idr'
|
|
550
|
+
| 'ils'
|
|
551
|
+
| 'inr'
|
|
552
|
+
| 'isk'
|
|
553
|
+
| 'jmd'
|
|
554
|
+
| 'jpy'
|
|
555
|
+
| 'kes'
|
|
556
|
+
| 'kgs'
|
|
557
|
+
| 'khr'
|
|
558
|
+
| 'kmf'
|
|
559
|
+
| 'krw'
|
|
560
|
+
| 'kyd'
|
|
561
|
+
| 'kzt'
|
|
562
|
+
| 'lbp'
|
|
563
|
+
| 'lkr'
|
|
564
|
+
| 'lrd'
|
|
565
|
+
| 'lsl'
|
|
566
|
+
| 'mad'
|
|
567
|
+
| 'mdl'
|
|
568
|
+
| 'mga'
|
|
569
|
+
| 'mkd'
|
|
570
|
+
| 'mmk'
|
|
571
|
+
| 'mnt'
|
|
572
|
+
| 'mop'
|
|
573
|
+
| 'mro'
|
|
574
|
+
| 'mvr'
|
|
575
|
+
| 'mwk'
|
|
576
|
+
| 'mxn'
|
|
577
|
+
| 'myr'
|
|
578
|
+
| 'mzn'
|
|
579
|
+
| 'nad'
|
|
580
|
+
| 'ngn'
|
|
581
|
+
| 'nok'
|
|
582
|
+
| 'npr'
|
|
583
|
+
| 'nzd'
|
|
584
|
+
| 'pgk'
|
|
585
|
+
| 'php'
|
|
586
|
+
| 'pkr'
|
|
587
|
+
| 'pln'
|
|
588
|
+
| 'qar'
|
|
589
|
+
| 'ron'
|
|
590
|
+
| 'rsd'
|
|
591
|
+
| 'rub'
|
|
592
|
+
| 'rwf'
|
|
593
|
+
| 'sar'
|
|
594
|
+
| 'sbd'
|
|
595
|
+
| 'scr'
|
|
596
|
+
| 'sek'
|
|
597
|
+
| 'sgd'
|
|
598
|
+
| 'sle'
|
|
599
|
+
| 'sll'
|
|
600
|
+
| 'sos'
|
|
601
|
+
| 'szl'
|
|
602
|
+
| 'thb'
|
|
603
|
+
| 'tjs'
|
|
604
|
+
| 'top'
|
|
605
|
+
| 'try'
|
|
606
|
+
| 'ttd'
|
|
607
|
+
| 'tzs'
|
|
608
|
+
| 'uah'
|
|
609
|
+
| 'uzs'
|
|
610
|
+
| 'vnd'
|
|
611
|
+
| 'vuv'
|
|
612
|
+
| 'wst'
|
|
613
|
+
| 'xaf'
|
|
614
|
+
| 'xcd'
|
|
615
|
+
| 'yer'
|
|
616
|
+
| 'zar'
|
|
617
|
+
| 'zmw'
|
|
618
|
+
| 'clp'
|
|
619
|
+
| 'djf'
|
|
620
|
+
| 'gnf'
|
|
621
|
+
| 'ugx'
|
|
622
|
+
| 'pyg'
|
|
623
|
+
| 'xof'
|
|
624
|
+
| 'xpf';
|
|
625
|
+
}
|
|
322
626
|
|
|
627
|
+
/**
|
|
628
|
+
* A single tier within a tiered charge
|
|
629
|
+
*/
|
|
630
|
+
export interface Tier {
|
|
323
631
|
/**
|
|
324
|
-
*
|
|
632
|
+
* Flat price for this tier
|
|
325
633
|
*/
|
|
326
|
-
|
|
634
|
+
flatPrice?: Tier.FlatPrice | null;
|
|
327
635
|
|
|
328
636
|
/**
|
|
329
|
-
*
|
|
637
|
+
* Per-unit price in this tier
|
|
330
638
|
*/
|
|
331
|
-
|
|
332
|
-
}
|
|
639
|
+
unitPrice?: Tier.UnitPrice | null;
|
|
333
640
|
|
|
334
|
-
export namespace Data {
|
|
335
641
|
/**
|
|
336
|
-
*
|
|
642
|
+
* Upper bound of this tier (null for unlimited)
|
|
337
643
|
*/
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
* Credit rate amount
|
|
341
|
-
*/
|
|
342
|
-
amount: number;
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* Custom currency identifier
|
|
346
|
-
*/
|
|
347
|
-
currencyId: string;
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* Optional cost formula expression
|
|
351
|
-
*/
|
|
352
|
-
costFormula?: string | null;
|
|
353
|
-
}
|
|
644
|
+
upTo?: number | null;
|
|
645
|
+
}
|
|
354
646
|
|
|
647
|
+
export namespace Tier {
|
|
355
648
|
/**
|
|
356
|
-
*
|
|
649
|
+
* Flat price for this tier
|
|
357
650
|
*/
|
|
358
|
-
export interface
|
|
651
|
+
export interface FlatPrice {
|
|
359
652
|
/**
|
|
360
653
|
* The price amount
|
|
361
654
|
*/
|
|
@@ -484,399 +777,136 @@ export namespace ChargeList {
|
|
|
484
777
|
}
|
|
485
778
|
|
|
486
779
|
/**
|
|
487
|
-
*
|
|
780
|
+
* Per-unit price in this tier
|
|
488
781
|
*/
|
|
489
|
-
export interface
|
|
490
|
-
/**
|
|
491
|
-
* Flat price for this tier
|
|
492
|
-
*/
|
|
493
|
-
flatPrice?: Tier.FlatPrice | null;
|
|
494
|
-
|
|
782
|
+
export interface UnitPrice {
|
|
495
783
|
/**
|
|
496
|
-
*
|
|
497
|
-
*/
|
|
498
|
-
unitPrice?: Tier.UnitPrice | null;
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* Upper bound of this tier (null for unlimited)
|
|
784
|
+
* The price amount
|
|
502
785
|
*/
|
|
503
|
-
|
|
504
|
-
}
|
|
786
|
+
amount: number;
|
|
505
787
|
|
|
506
|
-
export namespace Tier {
|
|
507
788
|
/**
|
|
508
|
-
*
|
|
789
|
+
* ISO 4217 currency code
|
|
509
790
|
*/
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
| 'zar'
|
|
628
|
-
| 'zmw'
|
|
629
|
-
| 'clp'
|
|
630
|
-
| 'djf'
|
|
631
|
-
| 'gnf'
|
|
632
|
-
| 'ugx'
|
|
633
|
-
| 'pyg'
|
|
634
|
-
| 'xof'
|
|
635
|
-
| 'xpf';
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* Per-unit price in this tier
|
|
640
|
-
*/
|
|
641
|
-
export interface UnitPrice {
|
|
642
|
-
/**
|
|
643
|
-
* The price amount
|
|
644
|
-
*/
|
|
645
|
-
amount: number;
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
* ISO 4217 currency code
|
|
649
|
-
*/
|
|
650
|
-
currency:
|
|
651
|
-
| 'usd'
|
|
652
|
-
| 'aed'
|
|
653
|
-
| 'all'
|
|
654
|
-
| 'amd'
|
|
655
|
-
| 'ang'
|
|
656
|
-
| 'aud'
|
|
657
|
-
| 'awg'
|
|
658
|
-
| 'azn'
|
|
659
|
-
| 'bam'
|
|
660
|
-
| 'bbd'
|
|
661
|
-
| 'bdt'
|
|
662
|
-
| 'bgn'
|
|
663
|
-
| 'bif'
|
|
664
|
-
| 'bmd'
|
|
665
|
-
| 'bnd'
|
|
666
|
-
| 'bsd'
|
|
667
|
-
| 'bwp'
|
|
668
|
-
| 'byn'
|
|
669
|
-
| 'bzd'
|
|
670
|
-
| 'brl'
|
|
671
|
-
| 'cad'
|
|
672
|
-
| 'cdf'
|
|
673
|
-
| 'chf'
|
|
674
|
-
| 'cny'
|
|
675
|
-
| 'czk'
|
|
676
|
-
| 'dkk'
|
|
677
|
-
| 'dop'
|
|
678
|
-
| 'dzd'
|
|
679
|
-
| 'egp'
|
|
680
|
-
| 'etb'
|
|
681
|
-
| 'eur'
|
|
682
|
-
| 'fjd'
|
|
683
|
-
| 'gbp'
|
|
684
|
-
| 'gel'
|
|
685
|
-
| 'gip'
|
|
686
|
-
| 'gmd'
|
|
687
|
-
| 'gyd'
|
|
688
|
-
| 'hkd'
|
|
689
|
-
| 'hrk'
|
|
690
|
-
| 'htg'
|
|
691
|
-
| 'idr'
|
|
692
|
-
| 'ils'
|
|
693
|
-
| 'inr'
|
|
694
|
-
| 'isk'
|
|
695
|
-
| 'jmd'
|
|
696
|
-
| 'jpy'
|
|
697
|
-
| 'kes'
|
|
698
|
-
| 'kgs'
|
|
699
|
-
| 'khr'
|
|
700
|
-
| 'kmf'
|
|
701
|
-
| 'krw'
|
|
702
|
-
| 'kyd'
|
|
703
|
-
| 'kzt'
|
|
704
|
-
| 'lbp'
|
|
705
|
-
| 'lkr'
|
|
706
|
-
| 'lrd'
|
|
707
|
-
| 'lsl'
|
|
708
|
-
| 'mad'
|
|
709
|
-
| 'mdl'
|
|
710
|
-
| 'mga'
|
|
711
|
-
| 'mkd'
|
|
712
|
-
| 'mmk'
|
|
713
|
-
| 'mnt'
|
|
714
|
-
| 'mop'
|
|
715
|
-
| 'mro'
|
|
716
|
-
| 'mvr'
|
|
717
|
-
| 'mwk'
|
|
718
|
-
| 'mxn'
|
|
719
|
-
| 'myr'
|
|
720
|
-
| 'mzn'
|
|
721
|
-
| 'nad'
|
|
722
|
-
| 'ngn'
|
|
723
|
-
| 'nok'
|
|
724
|
-
| 'npr'
|
|
725
|
-
| 'nzd'
|
|
726
|
-
| 'pgk'
|
|
727
|
-
| 'php'
|
|
728
|
-
| 'pkr'
|
|
729
|
-
| 'pln'
|
|
730
|
-
| 'qar'
|
|
731
|
-
| 'ron'
|
|
732
|
-
| 'rsd'
|
|
733
|
-
| 'rub'
|
|
734
|
-
| 'rwf'
|
|
735
|
-
| 'sar'
|
|
736
|
-
| 'sbd'
|
|
737
|
-
| 'scr'
|
|
738
|
-
| 'sek'
|
|
739
|
-
| 'sgd'
|
|
740
|
-
| 'sle'
|
|
741
|
-
| 'sll'
|
|
742
|
-
| 'sos'
|
|
743
|
-
| 'szl'
|
|
744
|
-
| 'thb'
|
|
745
|
-
| 'tjs'
|
|
746
|
-
| 'top'
|
|
747
|
-
| 'try'
|
|
748
|
-
| 'ttd'
|
|
749
|
-
| 'tzs'
|
|
750
|
-
| 'uah'
|
|
751
|
-
| 'uzs'
|
|
752
|
-
| 'vnd'
|
|
753
|
-
| 'vuv'
|
|
754
|
-
| 'wst'
|
|
755
|
-
| 'xaf'
|
|
756
|
-
| 'xcd'
|
|
757
|
-
| 'yer'
|
|
758
|
-
| 'zar'
|
|
759
|
-
| 'zmw'
|
|
760
|
-
| 'clp'
|
|
761
|
-
| 'djf'
|
|
762
|
-
| 'gnf'
|
|
763
|
-
| 'ugx'
|
|
764
|
-
| 'pyg'
|
|
765
|
-
| 'xof'
|
|
766
|
-
| 'xpf';
|
|
767
|
-
}
|
|
791
|
+
currency:
|
|
792
|
+
| 'usd'
|
|
793
|
+
| 'aed'
|
|
794
|
+
| 'all'
|
|
795
|
+
| 'amd'
|
|
796
|
+
| 'ang'
|
|
797
|
+
| 'aud'
|
|
798
|
+
| 'awg'
|
|
799
|
+
| 'azn'
|
|
800
|
+
| 'bam'
|
|
801
|
+
| 'bbd'
|
|
802
|
+
| 'bdt'
|
|
803
|
+
| 'bgn'
|
|
804
|
+
| 'bif'
|
|
805
|
+
| 'bmd'
|
|
806
|
+
| 'bnd'
|
|
807
|
+
| 'bsd'
|
|
808
|
+
| 'bwp'
|
|
809
|
+
| 'byn'
|
|
810
|
+
| 'bzd'
|
|
811
|
+
| 'brl'
|
|
812
|
+
| 'cad'
|
|
813
|
+
| 'cdf'
|
|
814
|
+
| 'chf'
|
|
815
|
+
| 'cny'
|
|
816
|
+
| 'czk'
|
|
817
|
+
| 'dkk'
|
|
818
|
+
| 'dop'
|
|
819
|
+
| 'dzd'
|
|
820
|
+
| 'egp'
|
|
821
|
+
| 'etb'
|
|
822
|
+
| 'eur'
|
|
823
|
+
| 'fjd'
|
|
824
|
+
| 'gbp'
|
|
825
|
+
| 'gel'
|
|
826
|
+
| 'gip'
|
|
827
|
+
| 'gmd'
|
|
828
|
+
| 'gyd'
|
|
829
|
+
| 'hkd'
|
|
830
|
+
| 'hrk'
|
|
831
|
+
| 'htg'
|
|
832
|
+
| 'idr'
|
|
833
|
+
| 'ils'
|
|
834
|
+
| 'inr'
|
|
835
|
+
| 'isk'
|
|
836
|
+
| 'jmd'
|
|
837
|
+
| 'jpy'
|
|
838
|
+
| 'kes'
|
|
839
|
+
| 'kgs'
|
|
840
|
+
| 'khr'
|
|
841
|
+
| 'kmf'
|
|
842
|
+
| 'krw'
|
|
843
|
+
| 'kyd'
|
|
844
|
+
| 'kzt'
|
|
845
|
+
| 'lbp'
|
|
846
|
+
| 'lkr'
|
|
847
|
+
| 'lrd'
|
|
848
|
+
| 'lsl'
|
|
849
|
+
| 'mad'
|
|
850
|
+
| 'mdl'
|
|
851
|
+
| 'mga'
|
|
852
|
+
| 'mkd'
|
|
853
|
+
| 'mmk'
|
|
854
|
+
| 'mnt'
|
|
855
|
+
| 'mop'
|
|
856
|
+
| 'mro'
|
|
857
|
+
| 'mvr'
|
|
858
|
+
| 'mwk'
|
|
859
|
+
| 'mxn'
|
|
860
|
+
| 'myr'
|
|
861
|
+
| 'mzn'
|
|
862
|
+
| 'nad'
|
|
863
|
+
| 'ngn'
|
|
864
|
+
| 'nok'
|
|
865
|
+
| 'npr'
|
|
866
|
+
| 'nzd'
|
|
867
|
+
| 'pgk'
|
|
868
|
+
| 'php'
|
|
869
|
+
| 'pkr'
|
|
870
|
+
| 'pln'
|
|
871
|
+
| 'qar'
|
|
872
|
+
| 'ron'
|
|
873
|
+
| 'rsd'
|
|
874
|
+
| 'rub'
|
|
875
|
+
| 'rwf'
|
|
876
|
+
| 'sar'
|
|
877
|
+
| 'sbd'
|
|
878
|
+
| 'scr'
|
|
879
|
+
| 'sek'
|
|
880
|
+
| 'sgd'
|
|
881
|
+
| 'sle'
|
|
882
|
+
| 'sll'
|
|
883
|
+
| 'sos'
|
|
884
|
+
| 'szl'
|
|
885
|
+
| 'thb'
|
|
886
|
+
| 'tjs'
|
|
887
|
+
| 'top'
|
|
888
|
+
| 'try'
|
|
889
|
+
| 'ttd'
|
|
890
|
+
| 'tzs'
|
|
891
|
+
| 'uah'
|
|
892
|
+
| 'uzs'
|
|
893
|
+
| 'vnd'
|
|
894
|
+
| 'vuv'
|
|
895
|
+
| 'wst'
|
|
896
|
+
| 'xaf'
|
|
897
|
+
| 'xcd'
|
|
898
|
+
| 'yer'
|
|
899
|
+
| 'zar'
|
|
900
|
+
| 'zmw'
|
|
901
|
+
| 'clp'
|
|
902
|
+
| 'djf'
|
|
903
|
+
| 'gnf'
|
|
904
|
+
| 'ugx'
|
|
905
|
+
| 'pyg'
|
|
906
|
+
| 'xof'
|
|
907
|
+
| 'xpf';
|
|
768
908
|
}
|
|
769
909
|
}
|
|
770
|
-
|
|
771
|
-
/**
|
|
772
|
-
* Pagination metadata including cursors for navigating through results
|
|
773
|
-
*/
|
|
774
|
-
export interface Pagination {
|
|
775
|
-
/**
|
|
776
|
-
* Cursor for fetching the next page of results, or null if no additional pages
|
|
777
|
-
* exist
|
|
778
|
-
*/
|
|
779
|
-
next: string | null;
|
|
780
|
-
|
|
781
|
-
/**
|
|
782
|
-
* Cursor for fetching the previous page of results, or null if at the beginning
|
|
783
|
-
*/
|
|
784
|
-
prev: string | null;
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
/**
|
|
789
|
-
* Addon configuration object
|
|
790
|
-
*/
|
|
791
|
-
export interface AddonListResponse {
|
|
792
|
-
/**
|
|
793
|
-
* The unique identifier for the entity
|
|
794
|
-
*/
|
|
795
|
-
id: string;
|
|
796
|
-
|
|
797
|
-
/**
|
|
798
|
-
* The unique identifier for the entity in the billing provider
|
|
799
|
-
*/
|
|
800
|
-
billingId: string | null;
|
|
801
|
-
|
|
802
|
-
/**
|
|
803
|
-
* Timestamp of when the record was created
|
|
804
|
-
*/
|
|
805
|
-
createdAt: string;
|
|
806
|
-
|
|
807
|
-
/**
|
|
808
|
-
* List of addons the addon is dependant on
|
|
809
|
-
*/
|
|
810
|
-
dependencies: Array<string> | null;
|
|
811
|
-
|
|
812
|
-
/**
|
|
813
|
-
* The description of the package
|
|
814
|
-
*/
|
|
815
|
-
description: string | null;
|
|
816
|
-
|
|
817
|
-
/**
|
|
818
|
-
* The display name of the package
|
|
819
|
-
*/
|
|
820
|
-
displayName: string;
|
|
821
|
-
|
|
822
|
-
/**
|
|
823
|
-
* List of entitlements of the package
|
|
824
|
-
*/
|
|
825
|
-
entitlements: Array<AddonListResponse.Entitlement>;
|
|
826
|
-
|
|
827
|
-
/**
|
|
828
|
-
* Indicates if the package is the latest version
|
|
829
|
-
*/
|
|
830
|
-
isLatest: boolean | null;
|
|
831
|
-
|
|
832
|
-
/**
|
|
833
|
-
* The maximum quantity of this addon that can be added to a subscription
|
|
834
|
-
*/
|
|
835
|
-
maxQuantity: number | null;
|
|
836
|
-
|
|
837
|
-
/**
|
|
838
|
-
* Metadata associated with the entity
|
|
839
|
-
*/
|
|
840
|
-
metadata: { [key: string]: string };
|
|
841
|
-
|
|
842
|
-
/**
|
|
843
|
-
* The pricing type of the package
|
|
844
|
-
*/
|
|
845
|
-
pricingType: 'FREE' | 'PAID' | 'CUSTOM' | null;
|
|
846
|
-
|
|
847
|
-
/**
|
|
848
|
-
* The product id of the package
|
|
849
|
-
*/
|
|
850
|
-
productId: string;
|
|
851
|
-
|
|
852
|
-
/**
|
|
853
|
-
* The status of the package
|
|
854
|
-
*/
|
|
855
|
-
status: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
|
|
856
|
-
|
|
857
|
-
/**
|
|
858
|
-
* Timestamp of when the record was last updated
|
|
859
|
-
*/
|
|
860
|
-
updatedAt: string;
|
|
861
|
-
|
|
862
|
-
/**
|
|
863
|
-
* The version number of the package
|
|
864
|
-
*/
|
|
865
|
-
versionNumber: number;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
export namespace AddonListResponse {
|
|
869
|
-
/**
|
|
870
|
-
* Entitlement reference with type and identifier
|
|
871
|
-
*/
|
|
872
|
-
export interface Entitlement {
|
|
873
|
-
/**
|
|
874
|
-
* The unique identifier for the entity
|
|
875
|
-
*/
|
|
876
|
-
id: string;
|
|
877
|
-
|
|
878
|
-
type: 'FEATURE' | 'CREDIT';
|
|
879
|
-
}
|
|
880
910
|
}
|
|
881
911
|
|
|
882
912
|
/**
|
|
@@ -2426,12 +2456,12 @@ Addons.Entitlements = Entitlements;
|
|
|
2426
2456
|
export declare namespace Addons {
|
|
2427
2457
|
export {
|
|
2428
2458
|
type Addon as Addon,
|
|
2429
|
-
type ChargeList as ChargeList,
|
|
2430
2459
|
type AddonListResponse as AddonListResponse,
|
|
2460
|
+
type AddonListChargesResponse as AddonListChargesResponse,
|
|
2431
2461
|
type AddonPublishResponse as AddonPublishResponse,
|
|
2432
2462
|
type AddonRemoveDraftResponse as AddonRemoveDraftResponse,
|
|
2433
2463
|
type AddonListResponsesMyCursorIDPage as AddonListResponsesMyCursorIDPage,
|
|
2434
|
-
type
|
|
2464
|
+
type AddonListChargesResponsesMyCursorIDPage as AddonListChargesResponsesMyCursorIDPage,
|
|
2435
2465
|
type AddonCreateParams as AddonCreateParams,
|
|
2436
2466
|
type AddonUpdateParams as AddonUpdateParams,
|
|
2437
2467
|
type AddonListParams as AddonListParams,
|