@stigg/typescript 0.1.0-beta.21 → 0.1.0-beta.23
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 +16 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +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 +0 -59
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +0 -59
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +0 -59
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +0 -59
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +0 -31
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +0 -31
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +0 -31
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +0 -31
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +0 -36
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +0 -36
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +0 -36
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +0 -36
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +0 -25
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +0 -25
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +0 -25
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +0 -25
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +0 -49
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +0 -49
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +0 -49
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +0 -49
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +0 -28
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +0 -28
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +0 -28
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +0 -28
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +0 -77
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +0 -77
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +0 -77
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +0 -77
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +0 -47
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +0 -47
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +0 -47
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +0 -47
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +0 -16
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +0 -16
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +0 -16
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +0 -16
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +0 -51
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +0 -51
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +0 -51
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +0 -51
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/events/data-export/data-export.d.mts +29 -21
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -1
- package/resources/v1/events/data-export/data-export.d.ts +29 -21
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -1
- package/resources/v1/events/data-export/data-export.js +27 -18
- package/resources/v1/events/data-export/data-export.js.map +1 -1
- package/resources/v1/events/data-export/data-export.mjs +27 -18
- package/resources/v1/events/data-export/data-export.mjs.map +1 -1
- package/resources/v1/events/data-export/destinations.d.mts +29 -22
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -1
- package/resources/v1/events/data-export/destinations.d.ts +29 -22
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -1
- package/resources/v1/events/data-export/destinations.js +26 -21
- package/resources/v1/events/data-export/destinations.js.map +1 -1
- package/resources/v1/events/data-export/destinations.mjs +26 -21
- package/resources/v1/events/data-export/destinations.mjs.map +1 -1
- package/resources/v1/events/data-export/index.d.mts +1 -1
- package/resources/v1/events/data-export/index.d.mts.map +1 -1
- package/resources/v1/events/data-export/index.d.ts +1 -1
- package/resources/v1/events/data-export/index.d.ts.map +1 -1
- package/resources/v1/events/data-export/index.js.map +1 -1
- package/resources/v1/events/data-export/index.mjs.map +1 -1
- package/resources/v1/events/events.d.mts +0 -17
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +0 -17
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +0 -17
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +0 -17
- package/resources/v1/events/events.mjs.map +1 -1
- package/resources/v1/events/index.d.mts +0 -1
- package/resources/v1/events/index.d.mts.map +1 -1
- package/resources/v1/events/index.d.ts +0 -1
- package/resources/v1/events/index.d.ts.map +1 -1
- package/resources/v1/events/index.js +3 -5
- package/resources/v1/events/index.js.map +1 -1
- package/resources/v1/events/index.mjs +0 -1
- package/resources/v1/events/index.mjs.map +1 -1
- package/resources/v1/features.d.mts +0 -43
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +0 -43
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +0 -43
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +0 -43
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +0 -31
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +0 -31
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +0 -31
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +0 -31
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +0 -69
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +0 -69
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +0 -69
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +0 -69
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +0 -43
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +0 -43
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +0 -43
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +0 -43
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +0 -16
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +0 -16
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +0 -16
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +0 -16
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +0 -6
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +0 -6
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +0 -6
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +0 -6
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +0 -81
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +0 -81
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +0 -81
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +0 -81
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +0 -13
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +0 -13
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +0 -13
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +0 -13
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/usage.d.mts +0 -24
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +0 -24
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +0 -24
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +0 -24
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/{v1/events/beta → v1-beta}/customers/assignments.d.mts +82 -40
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/assignments.d.ts +82 -40
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/assignments.js +23 -24
- package/resources/v1-beta/customers/assignments.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/assignments.mjs +23 -24
- package/resources/v1-beta/customers/assignments.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/customers.d.mts +1 -1
- package/resources/v1-beta/customers/customers.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/customers.d.ts +1 -1
- package/resources/v1-beta/customers/customers.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/customers.js +2 -2
- package/resources/v1-beta/customers/customers.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/customers.mjs +1 -1
- package/resources/v1-beta/customers/customers.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entities.d.mts +28 -37
- package/resources/v1-beta/customers/entities.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entities.d.ts +28 -37
- package/resources/v1-beta/customers/entities.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entities.js +28 -37
- package/resources/v1-beta/customers/entities.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entities.mjs +28 -37
- package/resources/v1-beta/customers/entities.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.mts +16 -6
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.ts +16 -6
- package/resources/v1-beta/customers/entitlements.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.js +4 -6
- package/resources/v1-beta/customers/entitlements.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.mjs +4 -6
- package/resources/v1-beta/customers/entitlements.mjs.map +1 -0
- package/resources/v1-beta/customers/index.d.mts.map +1 -0
- package/resources/v1-beta/customers/index.d.ts.map +1 -0
- package/resources/v1-beta/customers/index.js.map +1 -0
- package/resources/v1-beta/customers/index.mjs.map +1 -0
- package/resources/v1-beta/customers.d.mts.map +1 -0
- package/resources/v1-beta/customers.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers.js +1 -1
- package/resources/v1-beta/customers.js.map +1 -0
- package/resources/v1-beta/customers.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/entity-types.d.mts +19 -20
- package/resources/v1-beta/entity-types.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/entity-types.d.ts +19 -20
- package/resources/v1-beta/entity-types.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/entity-types.js +18 -19
- package/resources/v1-beta/entity-types.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/entity-types.mjs +18 -19
- package/resources/v1-beta/entity-types.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/index.d.mts +1 -1
- package/resources/v1-beta/index.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/index.d.ts +1 -1
- package/resources/v1-beta/index.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/index.js +3 -3
- package/resources/v1-beta/index.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/index.mjs +1 -1
- package/resources/v1-beta/index.mjs.map +1 -0
- package/resources/{v1/events/beta/beta.d.mts → v1-beta/v1-beta.d.mts} +4 -4
- package/resources/v1-beta/v1-beta.d.mts.map +1 -0
- package/resources/{v1/events/beta/beta.d.ts → v1-beta/v1-beta.d.ts} +4 -4
- package/resources/v1-beta/v1-beta.d.ts.map +1 -0
- package/resources/{v1/events/beta/beta.js → v1-beta/v1-beta.js} +8 -8
- package/resources/v1-beta/v1-beta.js.map +1 -0
- package/resources/{v1/events/beta/beta.mjs → v1-beta/v1-beta.mjs} +5 -5
- 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/events/beta.js → v1-beta.js} +3 -3
- package/resources/v1-beta.js.map +1 -0
- package/resources/{v1/events/beta.mjs → v1-beta.mjs} +2 -2
- package/resources/v1-beta.mjs.map +1 -0
- package/src/client.ts +5 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/v1/addons/addons.ts +0 -59
- package/src/resources/v1/addons/entitlements.ts +0 -31
- package/src/resources/v1/coupons.ts +0 -36
- package/src/resources/v1/credits/credits.ts +0 -25
- package/src/resources/v1/credits/custom-currencies.ts +0 -49
- package/src/resources/v1/credits/grants.ts +0 -28
- package/src/resources/v1/customers/customers.ts +0 -77
- package/src/resources/v1/customers/integrations.ts +0 -47
- package/src/resources/v1/customers/payment-method.ts +0 -16
- package/src/resources/v1/customers/promotional-entitlements.ts +0 -51
- package/src/resources/v1/events/data-export/data-export.ts +58 -21
- package/src/resources/v1/events/data-export/destinations.ts +61 -23
- package/src/resources/v1/events/data-export/index.ts +1 -0
- package/src/resources/v1/events/events.ts +0 -19
- package/src/resources/v1/events/index.ts +0 -1
- package/src/resources/v1/features.ts +0 -43
- package/src/resources/v1/plans/entitlements.ts +0 -31
- package/src/resources/v1/plans/plans.ts +0 -69
- package/src/resources/v1/products.ts +0 -43
- package/src/resources/v1/subscriptions/future-update.ts +0 -16
- package/src/resources/v1/subscriptions/invoice.ts +0 -6
- package/src/resources/v1/subscriptions/subscriptions.ts +0 -81
- package/src/resources/v1/subscriptions/usage.ts +0 -13
- package/src/resources/v1/usage.ts +0 -24
- package/src/resources/{v1/events/beta → v1-beta}/customers/assignments.ts +96 -45
- package/src/resources/{v1/events/beta → v1-beta}/customers/customers.ts +1 -1
- package/src/resources/{v1/events/beta → v1-beta}/customers/entities.ts +30 -39
- package/src/resources/{v1/events/beta → v1-beta}/customers/entitlements.ts +20 -8
- package/src/resources/{v1/events/beta → v1-beta}/entity-types.ts +20 -21
- package/src/resources/{v1/events/beta → v1-beta}/index.ts +1 -1
- package/src/resources/{v1/events/beta/beta.ts → v1-beta/v1-beta.ts} +5 -5
- package/src/resources/{v1/events/beta.ts → v1-beta.ts} +1 -1
- 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/events/beta/beta.d.mts.map +0 -1
- package/resources/v1/events/beta/beta.d.ts.map +0 -1
- package/resources/v1/events/beta/beta.js.map +0 -1
- package/resources/v1/events/beta/beta.mjs.map +0 -1
- package/resources/v1/events/beta/customers/assignments.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/assignments.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/assignments.js.map +0 -1
- package/resources/v1/events/beta/customers/assignments.mjs.map +0 -1
- package/resources/v1/events/beta/customers/customers.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/customers.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/customers.js.map +0 -1
- package/resources/v1/events/beta/customers/customers.mjs.map +0 -1
- package/resources/v1/events/beta/customers/entities.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/entities.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/entities.js.map +0 -1
- package/resources/v1/events/beta/customers/entities.mjs.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.js.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.mjs.map +0 -1
- package/resources/v1/events/beta/customers/index.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/index.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/index.js.map +0 -1
- package/resources/v1/events/beta/customers/index.mjs.map +0 -1
- package/resources/v1/events/beta/customers.d.mts.map +0 -1
- package/resources/v1/events/beta/customers.d.ts.map +0 -1
- package/resources/v1/events/beta/customers.js.map +0 -1
- package/resources/v1/events/beta/customers.mjs.map +0 -1
- package/resources/v1/events/beta/entity-types.d.mts.map +0 -1
- package/resources/v1/events/beta/entity-types.d.ts.map +0 -1
- package/resources/v1/events/beta/entity-types.js.map +0 -1
- package/resources/v1/events/beta/entity-types.mjs.map +0 -1
- package/resources/v1/events/beta/index.d.mts.map +0 -1
- package/resources/v1/events/beta/index.d.ts.map +0 -1
- package/resources/v1/events/beta/index.js.map +0 -1
- package/resources/v1/events/beta/index.mjs.map +0 -1
- package/resources/v1/events/beta.d.mts +0 -2
- package/resources/v1/events/beta.d.mts.map +0 -1
- package/resources/v1/events/beta.d.ts +0 -2
- package/resources/v1/events/beta.d.ts.map +0 -1
- package/resources/v1/events/beta.js.map +0 -1
- package/resources/v1/events/beta.mjs.map +0 -1
- /package/resources/{v1/events/beta → v1-beta}/customers/index.d.mts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers/index.d.ts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers/index.js +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers/index.mjs +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers.d.mts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers.d.ts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers.mjs +0 -0
- /package/src/resources/{v1/events/beta → v1-beta}/customers/index.ts +0 -0
- /package/src/resources/{v1/events/beta → v1-beta}/customers.ts +0 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../../../internal/headers';
|
|
5
6
|
import { RequestOptions } from '../../../../internal/request-options';
|
|
6
7
|
import { path } from '../../../../internal/utils/path';
|
|
7
8
|
|
|
@@ -10,33 +11,41 @@ export class Destinations extends APIResource {
|
|
|
10
11
|
* Register a destination on the environment's DATA_EXPORT integration.
|
|
11
12
|
* Lazy-creates the integration row + provider recipient on first call. Idempotent
|
|
12
13
|
* on destinationId.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const destination =
|
|
17
|
-
* await client.v1.events.dataExport.destinations.create({
|
|
18
|
-
* destinationId: 'x',
|
|
19
|
-
* destinationType: 'x',
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
14
|
*/
|
|
23
|
-
create(
|
|
24
|
-
|
|
15
|
+
create(params: DestinationCreateParams, options?: RequestOptions): APIPromise<DestinationCreateResponse> {
|
|
16
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
17
|
+
return this._client.post('/api/v1/data-export/destinations', {
|
|
18
|
+
body,
|
|
19
|
+
...options,
|
|
20
|
+
headers: buildHeaders([
|
|
21
|
+
{
|
|
22
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
23
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
24
|
+
},
|
|
25
|
+
options?.headers,
|
|
26
|
+
]),
|
|
27
|
+
});
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
/**
|
|
28
31
|
* Remove a destination from the DATA_EXPORT integration metadata. Idempotent.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const destination =
|
|
33
|
-
* await client.v1.events.dataExport.destinations.delete(
|
|
34
|
-
* 'x',
|
|
35
|
-
* );
|
|
36
|
-
* ```
|
|
37
32
|
*/
|
|
38
|
-
delete(
|
|
39
|
-
|
|
33
|
+
delete(
|
|
34
|
+
destinationID: string,
|
|
35
|
+
params: DestinationDeleteParams | null | undefined = {},
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<DestinationDeleteResponse> {
|
|
38
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
39
|
+
return this._client.delete(path`/api/v1/data-export/destinations/${destinationID}`, {
|
|
40
|
+
...options,
|
|
41
|
+
headers: buildHeaders([
|
|
42
|
+
{
|
|
43
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
44
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
45
|
+
},
|
|
46
|
+
options?.headers,
|
|
47
|
+
]),
|
|
48
|
+
});
|
|
40
49
|
}
|
|
41
50
|
}
|
|
42
51
|
|
|
@@ -224,14 +233,42 @@ export namespace DestinationDeleteResponse {
|
|
|
224
233
|
|
|
225
234
|
export interface DestinationCreateParams {
|
|
226
235
|
/**
|
|
227
|
-
* The provider destination ID returned by the embedded SDK on connect
|
|
236
|
+
* Body param: The provider destination ID returned by the embedded SDK on connect
|
|
228
237
|
*/
|
|
229
238
|
destinationId: string;
|
|
230
239
|
|
|
231
240
|
/**
|
|
232
|
-
* The destination type (e.g. snowflake, bigquery)
|
|
241
|
+
* Body param: The destination type (e.g. snowflake, bigquery)
|
|
233
242
|
*/
|
|
234
243
|
destinationType: string;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
247
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
248
|
+
*/
|
|
249
|
+
'X-ACCOUNT-ID'?: string;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
253
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
254
|
+
* intrinsic to the key).
|
|
255
|
+
*/
|
|
256
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export interface DestinationDeleteParams {
|
|
260
|
+
/**
|
|
261
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
262
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
263
|
+
*/
|
|
264
|
+
'X-ACCOUNT-ID'?: string;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
268
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
269
|
+
* key).
|
|
270
|
+
*/
|
|
271
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
235
272
|
}
|
|
236
273
|
|
|
237
274
|
export declare namespace Destinations {
|
|
@@ -239,5 +276,6 @@ export declare namespace Destinations {
|
|
|
239
276
|
type DestinationCreateResponse as DestinationCreateResponse,
|
|
240
277
|
type DestinationDeleteResponse as DestinationDeleteResponse,
|
|
241
278
|
type DestinationCreateParams as DestinationCreateParams,
|
|
279
|
+
type DestinationDeleteParams as DestinationDeleteParams,
|
|
242
280
|
};
|
|
243
281
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as BetaAPI from './beta/beta';
|
|
5
|
-
import { Beta } from './beta/beta';
|
|
6
4
|
import * as DataExportAPI from './data-export/data-export';
|
|
7
5
|
import {
|
|
8
6
|
DataExport,
|
|
@@ -19,25 +17,11 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
19
17
|
* Operations related to usage & metering
|
|
20
18
|
*/
|
|
21
19
|
export class Events extends APIResource {
|
|
22
|
-
beta: BetaAPI.Beta = new BetaAPI.Beta(this._client);
|
|
23
20
|
dataExport: DataExportAPI.DataExport = new DataExportAPI.DataExport(this._client);
|
|
24
21
|
|
|
25
22
|
/**
|
|
26
23
|
* Reports raw usage events for event-based metering. Events are ingested
|
|
27
24
|
* asynchronously and aggregated into usage totals.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* const response = await client.v1.events.report({
|
|
32
|
-
* events: [
|
|
33
|
-
* {
|
|
34
|
-
* customerId: 'customerId',
|
|
35
|
-
* eventName: 'x',
|
|
36
|
-
* idempotencyKey: 'x',
|
|
37
|
-
* },
|
|
38
|
-
* ],
|
|
39
|
-
* });
|
|
40
|
-
* ```
|
|
41
25
|
*/
|
|
42
26
|
report(params: EventReportParams, options?: RequestOptions): APIPromise<EventReportResponse> {
|
|
43
27
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -123,14 +107,11 @@ export namespace EventReportParams {
|
|
|
123
107
|
}
|
|
124
108
|
}
|
|
125
109
|
|
|
126
|
-
Events.Beta = Beta;
|
|
127
110
|
Events.DataExport = DataExport;
|
|
128
111
|
|
|
129
112
|
export declare namespace Events {
|
|
130
113
|
export { type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams };
|
|
131
114
|
|
|
132
|
-
export { Beta as Beta };
|
|
133
|
-
|
|
134
115
|
export {
|
|
135
116
|
DataExport as DataExport,
|
|
136
117
|
type DataExportMintScopedTokenResponse as DataExportMintScopedTokenResponse,
|
|
@@ -13,13 +13,6 @@ import { path } from '../../internal/utils/path';
|
|
|
13
13
|
export class Features extends APIResource {
|
|
14
14
|
/**
|
|
15
15
|
* Archives a feature, preventing it from being used in new entitlements.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* const feature = await client.v1.features.archiveFeature(
|
|
20
|
-
* 'x',
|
|
21
|
-
* );
|
|
22
|
-
* ```
|
|
23
16
|
*/
|
|
24
17
|
archiveFeature(
|
|
25
18
|
id: string,
|
|
@@ -41,15 +34,6 @@ export class Features extends APIResource {
|
|
|
41
34
|
|
|
42
35
|
/**
|
|
43
36
|
* Creates a new feature with the specified type, metering, and configuration.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```ts
|
|
47
|
-
* const feature = await client.v1.features.createFeature({
|
|
48
|
-
* id: 'id',
|
|
49
|
-
* displayName: 'displayName',
|
|
50
|
-
* featureType: 'BOOLEAN',
|
|
51
|
-
* });
|
|
52
|
-
* ```
|
|
53
37
|
*/
|
|
54
38
|
createFeature(params: FeatureCreateFeatureParams, options?: RequestOptions): APIPromise<Feature> {
|
|
55
39
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -68,14 +52,6 @@ export class Features extends APIResource {
|
|
|
68
52
|
|
|
69
53
|
/**
|
|
70
54
|
* Retrieves a paginated list of features in the environment.
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```ts
|
|
74
|
-
* // Automatically fetches more pages as needed.
|
|
75
|
-
* for await (const featureListFeaturesResponse of client.v1.features.listFeatures()) {
|
|
76
|
-
* // ...
|
|
77
|
-
* }
|
|
78
|
-
* ```
|
|
79
55
|
*/
|
|
80
56
|
listFeatures(
|
|
81
57
|
params: FeatureListFeaturesParams | null | undefined = {},
|
|
@@ -97,13 +73,6 @@ export class Features extends APIResource {
|
|
|
97
73
|
|
|
98
74
|
/**
|
|
99
75
|
* Retrieves a feature by its unique identifier.
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* ```ts
|
|
103
|
-
* const feature = await client.v1.features.retrieveFeature(
|
|
104
|
-
* 'x',
|
|
105
|
-
* );
|
|
106
|
-
* ```
|
|
107
76
|
*/
|
|
108
77
|
retrieveFeature(
|
|
109
78
|
id: string,
|
|
@@ -125,13 +94,6 @@ export class Features extends APIResource {
|
|
|
125
94
|
|
|
126
95
|
/**
|
|
127
96
|
* Restores an archived feature, allowing it to be used in entitlements again.
|
|
128
|
-
*
|
|
129
|
-
* @example
|
|
130
|
-
* ```ts
|
|
131
|
-
* const feature = await client.v1.features.unarchiveFeature(
|
|
132
|
-
* 'x',
|
|
133
|
-
* );
|
|
134
|
-
* ```
|
|
135
97
|
*/
|
|
136
98
|
unarchiveFeature(
|
|
137
99
|
id: string,
|
|
@@ -154,11 +116,6 @@ export class Features extends APIResource {
|
|
|
154
116
|
/**
|
|
155
117
|
* Updates an existing feature's properties such as display name, description, and
|
|
156
118
|
* configuration.
|
|
157
|
-
*
|
|
158
|
-
* @example
|
|
159
|
-
* ```ts
|
|
160
|
-
* const feature = await client.v1.features.updateFeature('x');
|
|
161
|
-
* ```
|
|
162
119
|
*/
|
|
163
120
|
updateFeature(
|
|
164
121
|
id: string,
|
|
@@ -9,14 +9,6 @@ import { path } from '../../../internal/utils/path';
|
|
|
9
9
|
export class Entitlements extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* Creates one or more entitlements (feature or credit) on a draft plan.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const entitlement =
|
|
16
|
-
* await client.v1.plans.entitlements.create('planId', {
|
|
17
|
-
* entitlements: [{ id: 'id', type: 'FEATURE' }],
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
20
12
|
*/
|
|
21
13
|
create(
|
|
22
14
|
planID: string,
|
|
@@ -39,15 +31,6 @@ export class Entitlements extends APIResource {
|
|
|
39
31
|
|
|
40
32
|
/**
|
|
41
33
|
* Updates an existing entitlement on a draft plan.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* const planEntitlement =
|
|
46
|
-
* await client.v1.plans.entitlements.update('id', {
|
|
47
|
-
* planId: 'planId',
|
|
48
|
-
* type: 'FEATURE',
|
|
49
|
-
* });
|
|
50
|
-
* ```
|
|
51
34
|
*/
|
|
52
35
|
update(id: string, params: EntitlementUpdateParams, options?: RequestOptions): APIPromise<PlanEntitlement> {
|
|
53
36
|
const { planId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -66,12 +49,6 @@ export class Entitlements extends APIResource {
|
|
|
66
49
|
|
|
67
50
|
/**
|
|
68
51
|
* Retrieves a list of entitlements for a plan.
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```ts
|
|
72
|
-
* const entitlements =
|
|
73
|
-
* await client.v1.plans.entitlements.list('planId');
|
|
74
|
-
* ```
|
|
75
52
|
*/
|
|
76
53
|
list(
|
|
77
54
|
planID: string,
|
|
@@ -93,14 +70,6 @@ export class Entitlements extends APIResource {
|
|
|
93
70
|
|
|
94
71
|
/**
|
|
95
72
|
* Deletes an entitlement from a draft plan.
|
|
96
|
-
*
|
|
97
|
-
* @example
|
|
98
|
-
* ```ts
|
|
99
|
-
* const planEntitlement =
|
|
100
|
-
* await client.v1.plans.entitlements.delete('id', {
|
|
101
|
-
* planId: 'planId',
|
|
102
|
-
* });
|
|
103
|
-
* ```
|
|
104
73
|
*/
|
|
105
74
|
delete(id: string, params: EntitlementDeleteParams, options?: RequestOptions): APIPromise<PlanEntitlement> {
|
|
106
75
|
const { planId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params;
|
|
@@ -26,15 +26,6 @@ export class Plans extends APIResource {
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Creates a new plan in draft status.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const plan = await client.v1.plans.create({
|
|
33
|
-
* id: 'id',
|
|
34
|
-
* displayName: 'displayName',
|
|
35
|
-
* productId: 'productId',
|
|
36
|
-
* });
|
|
37
|
-
* ```
|
|
38
29
|
*/
|
|
39
30
|
create(params: PlanCreateParams, options?: RequestOptions): APIPromise<Plan> {
|
|
40
31
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -54,11 +45,6 @@ export class Plans extends APIResource {
|
|
|
54
45
|
/**
|
|
55
46
|
* Retrieves a plan by its unique identifier, including entitlements and pricing
|
|
56
47
|
* details.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* const plan = await client.v1.plans.retrieve('x');
|
|
61
|
-
* ```
|
|
62
48
|
*/
|
|
63
49
|
retrieve(
|
|
64
50
|
id: string,
|
|
@@ -81,11 +67,6 @@ export class Plans extends APIResource {
|
|
|
81
67
|
/**
|
|
82
68
|
* Updates an existing plan's properties such as display name, description, and
|
|
83
69
|
* metadata.
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* ```ts
|
|
87
|
-
* const plan = await client.v1.plans.update('x');
|
|
88
|
-
* ```
|
|
89
70
|
*/
|
|
90
71
|
update(id: string, params: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan> {
|
|
91
72
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -104,14 +85,6 @@ export class Plans extends APIResource {
|
|
|
104
85
|
|
|
105
86
|
/**
|
|
106
87
|
* Retrieves a paginated list of plans in the environment.
|
|
107
|
-
*
|
|
108
|
-
* @example
|
|
109
|
-
* ```ts
|
|
110
|
-
* // Automatically fetches more pages as needed.
|
|
111
|
-
* for await (const planListResponse of client.v1.plans.list()) {
|
|
112
|
-
* // ...
|
|
113
|
-
* }
|
|
114
|
-
* ```
|
|
115
88
|
*/
|
|
116
89
|
list(
|
|
117
90
|
params: PlanListParams | null | undefined = {},
|
|
@@ -133,11 +106,6 @@ export class Plans extends APIResource {
|
|
|
133
106
|
|
|
134
107
|
/**
|
|
135
108
|
* Archives a plan, preventing it from being used in new subscriptions.
|
|
136
|
-
*
|
|
137
|
-
* @example
|
|
138
|
-
* ```ts
|
|
139
|
-
* const plan = await client.v1.plans.archive('x');
|
|
140
|
-
* ```
|
|
141
109
|
*/
|
|
142
110
|
archive(
|
|
143
111
|
id: string,
|
|
@@ -159,11 +127,6 @@ export class Plans extends APIResource {
|
|
|
159
127
|
|
|
160
128
|
/**
|
|
161
129
|
* Creates a draft version of an existing plan for modification before publishing.
|
|
162
|
-
*
|
|
163
|
-
* @example
|
|
164
|
-
* ```ts
|
|
165
|
-
* const plan = await client.v1.plans.createDraft('x');
|
|
166
|
-
* ```
|
|
167
130
|
*/
|
|
168
131
|
createDraft(
|
|
169
132
|
id: string,
|
|
@@ -185,16 +148,6 @@ export class Plans extends APIResource {
|
|
|
185
148
|
|
|
186
149
|
/**
|
|
187
150
|
* Retrieves the list of charges configured on a plan.
|
|
188
|
-
*
|
|
189
|
-
* @example
|
|
190
|
-
* ```ts
|
|
191
|
-
* // Automatically fetches more pages as needed.
|
|
192
|
-
* for await (const planListChargesResponse of client.v1.plans.listCharges(
|
|
193
|
-
* 'x',
|
|
194
|
-
* )) {
|
|
195
|
-
* // ...
|
|
196
|
-
* }
|
|
197
|
-
* ```
|
|
198
151
|
*/
|
|
199
152
|
listCharges(
|
|
200
153
|
id: string,
|
|
@@ -221,16 +174,6 @@ export class Plans extends APIResource {
|
|
|
221
174
|
|
|
222
175
|
/**
|
|
223
176
|
* Retrieves the list of overage charges configured on a plan.
|
|
224
|
-
*
|
|
225
|
-
* @example
|
|
226
|
-
* ```ts
|
|
227
|
-
* // Automatically fetches more pages as needed.
|
|
228
|
-
* for await (const planListOverageChargesResponse of client.v1.plans.listOverageCharges(
|
|
229
|
-
* 'x',
|
|
230
|
-
* )) {
|
|
231
|
-
* // ...
|
|
232
|
-
* }
|
|
233
|
-
* ```
|
|
234
177
|
*/
|
|
235
178
|
listOverageCharges(
|
|
236
179
|
id: string,
|
|
@@ -257,13 +200,6 @@ export class Plans extends APIResource {
|
|
|
257
200
|
|
|
258
201
|
/**
|
|
259
202
|
* Publishes a draft plan, making it available for use in subscriptions.
|
|
260
|
-
*
|
|
261
|
-
* @example
|
|
262
|
-
* ```ts
|
|
263
|
-
* const response = await client.v1.plans.publish('x', {
|
|
264
|
-
* migrationType: 'NEW_CUSTOMERS',
|
|
265
|
-
* });
|
|
266
|
-
* ```
|
|
267
203
|
*/
|
|
268
204
|
publish(id: string, params: PlanPublishParams, options?: RequestOptions): APIPromise<PlanPublishResponse> {
|
|
269
205
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -282,11 +218,6 @@ export class Plans extends APIResource {
|
|
|
282
218
|
|
|
283
219
|
/**
|
|
284
220
|
* Removes a draft version of a plan.
|
|
285
|
-
*
|
|
286
|
-
* @example
|
|
287
|
-
* ```ts
|
|
288
|
-
* const response = await client.v1.plans.removeDraft('x');
|
|
289
|
-
* ```
|
|
290
221
|
*/
|
|
291
222
|
removeDraft(
|
|
292
223
|
id: string,
|
|
@@ -14,13 +14,6 @@ export class Products extends APIResource {
|
|
|
14
14
|
/**
|
|
15
15
|
* Archives a product, preventing new subscriptions. All plans and addons are
|
|
16
16
|
* archived.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const product = await client.v1.products.archiveProduct(
|
|
21
|
-
* 'x',
|
|
22
|
-
* );
|
|
23
|
-
* ```
|
|
24
17
|
*/
|
|
25
18
|
archiveProduct(
|
|
26
19
|
id: string,
|
|
@@ -42,14 +35,6 @@ export class Products extends APIResource {
|
|
|
42
35
|
|
|
43
36
|
/**
|
|
44
37
|
* Creates a new product.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* const product = await client.v1.products.createProduct({
|
|
49
|
-
* id: 'id',
|
|
50
|
-
* displayName: 'displayName',
|
|
51
|
-
* });
|
|
52
|
-
* ```
|
|
53
38
|
*/
|
|
54
39
|
createProduct(params: ProductCreateProductParams, options?: RequestOptions): APIPromise<Product> {
|
|
55
40
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -68,14 +53,6 @@ export class Products extends APIResource {
|
|
|
68
53
|
|
|
69
54
|
/**
|
|
70
55
|
* Duplicates an existing product, including its plans, addons, and configuration.
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```ts
|
|
74
|
-
* const product = await client.v1.products.duplicateProduct(
|
|
75
|
-
* 'x',
|
|
76
|
-
* { targetId: 'targetId' },
|
|
77
|
-
* );
|
|
78
|
-
* ```
|
|
79
56
|
*/
|
|
80
57
|
duplicateProduct(
|
|
81
58
|
id: string,
|
|
@@ -98,14 +75,6 @@ export class Products extends APIResource {
|
|
|
98
75
|
|
|
99
76
|
/**
|
|
100
77
|
* Retrieves a paginated list of products in the environment.
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
* ```ts
|
|
104
|
-
* // Automatically fetches more pages as needed.
|
|
105
|
-
* for await (const productListProductsResponse of client.v1.products.listProducts()) {
|
|
106
|
-
* // ...
|
|
107
|
-
* }
|
|
108
|
-
* ```
|
|
109
78
|
*/
|
|
110
79
|
listProducts(
|
|
111
80
|
params: ProductListProductsParams | null | undefined = {},
|
|
@@ -127,13 +96,6 @@ export class Products extends APIResource {
|
|
|
127
96
|
|
|
128
97
|
/**
|
|
129
98
|
* Restores an archived product, allowing new subscriptions to be created.
|
|
130
|
-
*
|
|
131
|
-
* @example
|
|
132
|
-
* ```ts
|
|
133
|
-
* const product = await client.v1.products.unarchiveProduct(
|
|
134
|
-
* 'x',
|
|
135
|
-
* );
|
|
136
|
-
* ```
|
|
137
99
|
*/
|
|
138
100
|
unarchiveProduct(
|
|
139
101
|
id: string,
|
|
@@ -156,11 +118,6 @@ export class Products extends APIResource {
|
|
|
156
118
|
/**
|
|
157
119
|
* Updates an existing product's properties such as display name, description, and
|
|
158
120
|
* metadata.
|
|
159
|
-
*
|
|
160
|
-
* @example
|
|
161
|
-
* ```ts
|
|
162
|
-
* const product = await client.v1.products.updateProduct('x');
|
|
163
|
-
* ```
|
|
164
121
|
*/
|
|
165
122
|
updateProduct(
|
|
166
123
|
id: string,
|
|
@@ -12,14 +12,6 @@ import { path } from '../../../internal/utils/path';
|
|
|
12
12
|
export class FutureUpdate extends APIResource {
|
|
13
13
|
/**
|
|
14
14
|
* Cancels a subscription update that is pending payment completion.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* const cancelSubscription =
|
|
19
|
-
* await client.v1.subscriptions.futureUpdate.cancelPendingPayment(
|
|
20
|
-
* 'x',
|
|
21
|
-
* );
|
|
22
|
-
* ```
|
|
23
15
|
*/
|
|
24
16
|
cancelPendingPayment(
|
|
25
17
|
id: string,
|
|
@@ -42,14 +34,6 @@ export class FutureUpdate extends APIResource {
|
|
|
42
34
|
/**
|
|
43
35
|
* Cancels a scheduled subscription update, such as a future downgrade or plan
|
|
44
36
|
* change.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* const cancelSubscription =
|
|
49
|
-
* await client.v1.subscriptions.futureUpdate.cancelSchedule(
|
|
50
|
-
* 'x',
|
|
51
|
-
* );
|
|
52
|
-
* ```
|
|
53
37
|
*/
|
|
54
38
|
cancelSchedule(
|
|
55
39
|
id: string,
|
|
@@ -13,12 +13,6 @@ export class Invoice extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* Marks the latest invoice of a subscription as paid in the billing provider. The
|
|
15
15
|
* invoice must exist and have an OPEN status.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* const response =
|
|
20
|
-
* await client.v1.subscriptions.invoice.markAsPaid('x');
|
|
21
|
-
* ```
|
|
22
16
|
*/
|
|
23
17
|
markAsPaid(
|
|
24
18
|
id: string,
|