@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
|
@@ -12,15 +12,6 @@ const path_1 = require("../../../internal/utils/path.js");
|
|
|
12
12
|
class CustomCurrencies extends resource_1.APIResource {
|
|
13
13
|
/**
|
|
14
14
|
* Creates a new custom currency in the environment.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* const customCurrencyResponse =
|
|
19
|
-
* await client.v1.credits.customCurrencies.create({
|
|
20
|
-
* id: 'id',
|
|
21
|
-
* displayName: 'displayName',
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
15
|
*/
|
|
25
16
|
create(params, options) {
|
|
26
17
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -38,14 +29,6 @@ class CustomCurrencies extends resource_1.APIResource {
|
|
|
38
29
|
}
|
|
39
30
|
/**
|
|
40
31
|
* Updates an existing custom currency. Only the supplied fields are modified.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* const customCurrencyResponse =
|
|
45
|
-
* await client.v1.credits.customCurrencies.update(
|
|
46
|
-
* 'currencyId',
|
|
47
|
-
* );
|
|
48
|
-
* ```
|
|
49
32
|
*/
|
|
50
33
|
update(currencyID, params, options) {
|
|
51
34
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -65,14 +48,6 @@ class CustomCurrencies extends resource_1.APIResource {
|
|
|
65
48
|
* Retrieves a paginated list of custom currencies in the environment. Archived
|
|
66
49
|
* currencies are excluded by default; pass `status=ARCHIVED` (or
|
|
67
50
|
* `status=ACTIVE,ARCHIVED`) to include them.
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* ```ts
|
|
71
|
-
* // Automatically fetches more pages as needed.
|
|
72
|
-
* for await (const customCurrencyListResponse of client.v1.credits.customCurrencies.list()) {
|
|
73
|
-
* // ...
|
|
74
|
-
* }
|
|
75
|
-
* ```
|
|
76
51
|
*/
|
|
77
52
|
list(params = {}, options) {
|
|
78
53
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
@@ -92,14 +67,6 @@ class CustomCurrencies extends resource_1.APIResource {
|
|
|
92
67
|
* Archives a custom currency. Fails if the currency is still associated with any
|
|
93
68
|
* active plan or addon — use the associated-entities endpoint first to inspect
|
|
94
69
|
* dependencies.
|
|
95
|
-
*
|
|
96
|
-
* @example
|
|
97
|
-
* ```ts
|
|
98
|
-
* const customCurrencyResponse =
|
|
99
|
-
* await client.v1.credits.customCurrencies.archive(
|
|
100
|
-
* 'currencyId',
|
|
101
|
-
* );
|
|
102
|
-
* ```
|
|
103
70
|
*/
|
|
104
71
|
archive(currencyID, params = {}, options) {
|
|
105
72
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -117,14 +84,6 @@ class CustomCurrencies extends resource_1.APIResource {
|
|
|
117
84
|
/**
|
|
118
85
|
* Lists the active plans and addons that reference a custom currency. Useful
|
|
119
86
|
* before archiving to inspect dependencies.
|
|
120
|
-
*
|
|
121
|
-
* @example
|
|
122
|
-
* ```ts
|
|
123
|
-
* const response =
|
|
124
|
-
* await client.v1.credits.customCurrencies.listAssociatedEntities(
|
|
125
|
-
* 'currencyId',
|
|
126
|
-
* );
|
|
127
|
-
* ```
|
|
128
87
|
*/
|
|
129
88
|
listAssociatedEntities(currencyID, params = {}, options) {
|
|
130
89
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -142,14 +101,6 @@ class CustomCurrencies extends resource_1.APIResource {
|
|
|
142
101
|
/**
|
|
143
102
|
* Restores a previously archived custom currency. Fails if another active currency
|
|
144
103
|
* with the same ID already exists.
|
|
145
|
-
*
|
|
146
|
-
* @example
|
|
147
|
-
* ```ts
|
|
148
|
-
* const customCurrencyResponse =
|
|
149
|
-
* await client.v1.credits.customCurrencies.unarchive(
|
|
150
|
-
* 'currencyId',
|
|
151
|
-
* );
|
|
152
|
-
* ```
|
|
153
104
|
*/
|
|
154
105
|
unarchive(currencyID, params = {}, options) {
|
|
155
106
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-currencies.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,4DAAkG;AAClG,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"custom-currencies.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,4DAAkG;AAClG,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;OAEG;IACH,MAAM,CAAC,MAAkC,EAAE,OAAwB;QACjE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE;YAC5D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EA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,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,SAAS,CACP,UAAkB,EAClB,SAA2D,EAAE,EAC7D,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACxF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qCAAqC,UAAU,YAAY,EAAE;YACxF,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAtID,4CAsIC"}
|
|
@@ -9,15 +9,6 @@ import { path } from "../../../internal/utils/path.mjs";
|
|
|
9
9
|
export class CustomCurrencies extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* Creates a new custom currency in the environment.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const customCurrencyResponse =
|
|
16
|
-
* await client.v1.credits.customCurrencies.create({
|
|
17
|
-
* id: 'id',
|
|
18
|
-
* displayName: 'displayName',
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
12
|
*/
|
|
22
13
|
create(params, options) {
|
|
23
14
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -35,14 +26,6 @@ export class CustomCurrencies extends APIResource {
|
|
|
35
26
|
}
|
|
36
27
|
/**
|
|
37
28
|
* Updates an existing custom currency. Only the supplied fields are modified.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* const customCurrencyResponse =
|
|
42
|
-
* await client.v1.credits.customCurrencies.update(
|
|
43
|
-
* 'currencyId',
|
|
44
|
-
* );
|
|
45
|
-
* ```
|
|
46
29
|
*/
|
|
47
30
|
update(currencyID, params, options) {
|
|
48
31
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -62,14 +45,6 @@ export class CustomCurrencies extends APIResource {
|
|
|
62
45
|
* Retrieves a paginated list of custom currencies in the environment. Archived
|
|
63
46
|
* currencies are excluded by default; pass `status=ARCHIVED` (or
|
|
64
47
|
* `status=ACTIVE,ARCHIVED`) to include them.
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* ```ts
|
|
68
|
-
* // Automatically fetches more pages as needed.
|
|
69
|
-
* for await (const customCurrencyListResponse of client.v1.credits.customCurrencies.list()) {
|
|
70
|
-
* // ...
|
|
71
|
-
* }
|
|
72
|
-
* ```
|
|
73
48
|
*/
|
|
74
49
|
list(params = {}, options) {
|
|
75
50
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
@@ -89,14 +64,6 @@ export class CustomCurrencies extends APIResource {
|
|
|
89
64
|
* Archives a custom currency. Fails if the currency is still associated with any
|
|
90
65
|
* active plan or addon — use the associated-entities endpoint first to inspect
|
|
91
66
|
* dependencies.
|
|
92
|
-
*
|
|
93
|
-
* @example
|
|
94
|
-
* ```ts
|
|
95
|
-
* const customCurrencyResponse =
|
|
96
|
-
* await client.v1.credits.customCurrencies.archive(
|
|
97
|
-
* 'currencyId',
|
|
98
|
-
* );
|
|
99
|
-
* ```
|
|
100
67
|
*/
|
|
101
68
|
archive(currencyID, params = {}, options) {
|
|
102
69
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -114,14 +81,6 @@ export class CustomCurrencies extends APIResource {
|
|
|
114
81
|
/**
|
|
115
82
|
* Lists the active plans and addons that reference a custom currency. Useful
|
|
116
83
|
* before archiving to inspect dependencies.
|
|
117
|
-
*
|
|
118
|
-
* @example
|
|
119
|
-
* ```ts
|
|
120
|
-
* const response =
|
|
121
|
-
* await client.v1.credits.customCurrencies.listAssociatedEntities(
|
|
122
|
-
* 'currencyId',
|
|
123
|
-
* );
|
|
124
|
-
* ```
|
|
125
84
|
*/
|
|
126
85
|
listAssociatedEntities(currencyID, params = {}, options) {
|
|
127
86
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -139,14 +98,6 @@ export class CustomCurrencies extends APIResource {
|
|
|
139
98
|
/**
|
|
140
99
|
* Restores a previously archived custom currency. Fails if another active currency
|
|
141
100
|
* with the same ID already exists.
|
|
142
|
-
*
|
|
143
|
-
* @example
|
|
144
|
-
* ```ts
|
|
145
|
-
* const customCurrencyResponse =
|
|
146
|
-
* await client.v1.credits.customCurrencies.unarchive(
|
|
147
|
-
* 'currencyId',
|
|
148
|
-
* );
|
|
149
|
-
* ```
|
|
150
101
|
*/
|
|
151
102
|
unarchive(currencyID, params = {}, options) {
|
|
152
103
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-currencies.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,EAAE,cA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GAAG,MAAM,IAAI,EAAE,CAAC;QACxF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qCAAqC,UAAU,YAAY,EAAE;YACxF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -9,43 +9,15 @@ export declare class Grants extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Creates a new credit grant for a customer with specified amount, type, and
|
|
11
11
|
* optional billing configuration.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const creditGrantResponse =
|
|
16
|
-
* await client.v1.credits.grants.create({
|
|
17
|
-
* amount: 0,
|
|
18
|
-
* currencyId: 'currencyId',
|
|
19
|
-
* customerId: 'customerId',
|
|
20
|
-
* displayName: 'displayName',
|
|
21
|
-
* grantType: 'PAID',
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
12
|
*/
|
|
25
13
|
create(params: GrantCreateParams, options?: RequestOptions): APIPromise<CreditGrantResponse>;
|
|
26
14
|
/**
|
|
27
15
|
* Retrieves a paginated list of credit grants for a customer.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* // Automatically fetches more pages as needed.
|
|
32
|
-
* for await (const grantListResponse of client.v1.credits.grants.list(
|
|
33
|
-
* { customerId: 'customerId' },
|
|
34
|
-
* )) {
|
|
35
|
-
* // ...
|
|
36
|
-
* }
|
|
37
|
-
* ```
|
|
38
16
|
*/
|
|
39
17
|
list(params: GrantListParams, options?: RequestOptions): PagePromise<GrantListResponsesMyCursorIDPage, GrantListResponse>;
|
|
40
18
|
/**
|
|
41
19
|
* Voids an existing credit grant, preventing further consumption of the remaining
|
|
42
20
|
* credits.
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```ts
|
|
46
|
-
* const creditGrantResponse =
|
|
47
|
-
* await client.v1.credits.grants.void('x');
|
|
48
|
-
* ```
|
|
49
21
|
*/
|
|
50
22
|
void(id: string, params?: GrantVoidParams | null | undefined, options?: RequestOptions): APIPromise<CreditGrantResponse>;
|
|
51
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grants.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,qCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"grants.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,qCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAe5F;;OAEG;IACH,IAAI,CACF,MAAM,EAAE,eAAe,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,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -9,43 +9,15 @@ export declare class Grants extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Creates a new credit grant for a customer with specified amount, type, and
|
|
11
11
|
* optional billing configuration.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const creditGrantResponse =
|
|
16
|
-
* await client.v1.credits.grants.create({
|
|
17
|
-
* amount: 0,
|
|
18
|
-
* currencyId: 'currencyId',
|
|
19
|
-
* customerId: 'customerId',
|
|
20
|
-
* displayName: 'displayName',
|
|
21
|
-
* grantType: 'PAID',
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
12
|
*/
|
|
25
13
|
create(params: GrantCreateParams, options?: RequestOptions): APIPromise<CreditGrantResponse>;
|
|
26
14
|
/**
|
|
27
15
|
* Retrieves a paginated list of credit grants for a customer.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* // Automatically fetches more pages as needed.
|
|
32
|
-
* for await (const grantListResponse of client.v1.credits.grants.list(
|
|
33
|
-
* { customerId: 'customerId' },
|
|
34
|
-
* )) {
|
|
35
|
-
* // ...
|
|
36
|
-
* }
|
|
37
|
-
* ```
|
|
38
16
|
*/
|
|
39
17
|
list(params: GrantListParams, options?: RequestOptions): PagePromise<GrantListResponsesMyCursorIDPage, GrantListResponse>;
|
|
40
18
|
/**
|
|
41
19
|
* Voids an existing credit grant, preventing further consumption of the remaining
|
|
42
20
|
* credits.
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```ts
|
|
46
|
-
* const creditGrantResponse =
|
|
47
|
-
* await client.v1.credits.grants.void('x');
|
|
48
|
-
* ```
|
|
49
21
|
*/
|
|
50
22
|
void(id: string, params?: GrantVoidParams | null | undefined, options?: RequestOptions): APIPromise<CreditGrantResponse>;
|
|
51
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grants.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,oCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"grants.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,oCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAe5F;;OAEG;IACH,IAAI,CACF,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gCAAgC,EAAE,iBAAiB,CAAC;IAenE;;;OAGG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,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,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -13,18 +13,6 @@ class Grants extends resource_1.APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* Creates a new credit grant for a customer with specified amount, type, and
|
|
15
15
|
* optional billing configuration.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* const creditGrantResponse =
|
|
20
|
-
* await client.v1.credits.grants.create({
|
|
21
|
-
* amount: 0,
|
|
22
|
-
* currencyId: 'currencyId',
|
|
23
|
-
* customerId: 'customerId',
|
|
24
|
-
* displayName: 'displayName',
|
|
25
|
-
* grantType: 'PAID',
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
16
|
*/
|
|
29
17
|
create(params, options) {
|
|
30
18
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -42,16 +30,6 @@ class Grants extends resource_1.APIResource {
|
|
|
42
30
|
}
|
|
43
31
|
/**
|
|
44
32
|
* Retrieves a paginated list of credit grants for a customer.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* // Automatically fetches more pages as needed.
|
|
49
|
-
* for await (const grantListResponse of client.v1.credits.grants.list(
|
|
50
|
-
* { customerId: 'customerId' },
|
|
51
|
-
* )) {
|
|
52
|
-
* // ...
|
|
53
|
-
* }
|
|
54
|
-
* ```
|
|
55
33
|
*/
|
|
56
34
|
list(params, options) {
|
|
57
35
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params;
|
|
@@ -70,12 +48,6 @@ class Grants extends resource_1.APIResource {
|
|
|
70
48
|
/**
|
|
71
49
|
* Voids an existing credit grant, preventing further consumption of the remaining
|
|
72
50
|
* credits.
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* ```ts
|
|
76
|
-
* const creditGrantResponse =
|
|
77
|
-
* await client.v1.credits.grants.void('x');
|
|
78
|
-
* ```
|
|
79
51
|
*/
|
|
80
52
|
void(id, params = {}, options) {
|
|
81
53
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grants.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,4DAAkG;AAClG,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC
|
|
1
|
+
{"version":3,"file":"grants.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,4DAAkG;AAClG,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,MAAyB,EAAE,OAAwB;QACxD,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE;YACjD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CACF,MAAuB,EACvB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@ -10,18 +10,6 @@ export class Grants extends APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* Creates a new credit grant for a customer with specified amount, type, and
|
|
12
12
|
* optional billing configuration.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const creditGrantResponse =
|
|
17
|
-
* await client.v1.credits.grants.create({
|
|
18
|
-
* amount: 0,
|
|
19
|
-
* currencyId: 'currencyId',
|
|
20
|
-
* customerId: 'customerId',
|
|
21
|
-
* displayName: 'displayName',
|
|
22
|
-
* grantType: 'PAID',
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
13
|
*/
|
|
26
14
|
create(params, options) {
|
|
27
15
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -39,16 +27,6 @@ export class Grants extends APIResource {
|
|
|
39
27
|
}
|
|
40
28
|
/**
|
|
41
29
|
* Retrieves a paginated list of credit grants for a customer.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* // Automatically fetches more pages as needed.
|
|
46
|
-
* for await (const grantListResponse of client.v1.credits.grants.list(
|
|
47
|
-
* { customerId: 'customerId' },
|
|
48
|
-
* )) {
|
|
49
|
-
* // ...
|
|
50
|
-
* }
|
|
51
|
-
* ```
|
|
52
30
|
*/
|
|
53
31
|
list(params, options) {
|
|
54
32
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params;
|
|
@@ -67,12 +45,6 @@ export class Grants extends APIResource {
|
|
|
67
45
|
/**
|
|
68
46
|
* Voids an existing credit grant, preventing further consumption of the remaining
|
|
69
47
|
* credits.
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* ```ts
|
|
73
|
-
* const creditGrantResponse =
|
|
74
|
-
* await client.v1.credits.grants.void('x');
|
|
75
|
-
* ```
|
|
76
48
|
*/
|
|
77
49
|
void(id, params = {}, options) {
|
|
78
50
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grants.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,EAAE,cAAc,EAA0C,qCAAiC;AAClG,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"grants.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,EAAE,cAAc,EAA0C,qCAAiC;AAClG,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,MAAyB,EAAE,OAAwB;QACxD,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE;YACjD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CA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AAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -15,49 +15,20 @@ export declare class Customers extends APIResource {
|
|
|
15
15
|
/**
|
|
16
16
|
* Retrieves a customer by their unique identifier, including billing information
|
|
17
17
|
* and subscription status.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const customerResponse = await client.v1.customers.retrieve(
|
|
22
|
-
* 'x',
|
|
23
|
-
* );
|
|
24
|
-
* ```
|
|
25
18
|
*/
|
|
26
19
|
retrieve(id: string, params?: CustomerRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
27
20
|
/**
|
|
28
21
|
* Updates an existing customer's properties such as name, email, and billing
|
|
29
22
|
* information.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* const customerResponse = await client.v1.customers.update(
|
|
34
|
-
* 'x',
|
|
35
|
-
* );
|
|
36
|
-
* ```
|
|
37
23
|
*/
|
|
38
24
|
update(id: string, params: CustomerUpdateParams, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
39
25
|
/**
|
|
40
26
|
* Retrieves a paginated list of customers in the environment.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* // Automatically fetches more pages as needed.
|
|
45
|
-
* for await (const customerListResponse of client.v1.customers.list()) {
|
|
46
|
-
* // ...
|
|
47
|
-
* }
|
|
48
|
-
* ```
|
|
49
27
|
*/
|
|
50
28
|
list(params?: CustomerListParams | null | undefined, options?: RequestOptions): PagePromise<CustomerListResponsesMyCursorIDPage, CustomerListResponse>;
|
|
51
29
|
/**
|
|
52
30
|
* Archives a customer, preventing new subscriptions. Optionally cancels existing
|
|
53
31
|
* subscriptions.
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* const customerResponse = await client.v1.customers.archive(
|
|
58
|
-
* 'x',
|
|
59
|
-
* );
|
|
60
|
-
* ```
|
|
61
32
|
*/
|
|
62
33
|
archive(id: string, params?: CustomerArchiveParams | null | undefined, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
63
34
|
/**
|
|
@@ -69,56 +40,20 @@ export declare class Customers extends APIResource {
|
|
|
69
40
|
* mechanisms, and low-latency guarantees. It is not recommended for hot-path
|
|
70
41
|
* entitlement checks. For production use, consider using the Stigg Node Server SDK
|
|
71
42
|
* with caching or the Sidecar for low-latency cached responses.
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* ```ts
|
|
75
|
-
* const response = await client.v1.customers.checkEntitlement(
|
|
76
|
-
* 'x',
|
|
77
|
-
* );
|
|
78
|
-
* ```
|
|
79
43
|
*/
|
|
80
44
|
checkEntitlement(id: string, params?: CustomerCheckEntitlementParams | null | undefined, options?: RequestOptions): APIPromise<CustomerCheckEntitlementResponse>;
|
|
81
45
|
/**
|
|
82
46
|
* Imports multiple customers in bulk. Used for migrating customer data from
|
|
83
47
|
* external systems.
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* ```ts
|
|
87
|
-
* const response = await client.v1.customers.import({
|
|
88
|
-
* customers: [
|
|
89
|
-
* {
|
|
90
|
-
* id: 'id',
|
|
91
|
-
* email: 'dev@stainless.com',
|
|
92
|
-
* name: 'name',
|
|
93
|
-
* },
|
|
94
|
-
* ],
|
|
95
|
-
* });
|
|
96
|
-
* ```
|
|
97
48
|
*/
|
|
98
49
|
import(params: CustomerImportParams, options?: RequestOptions): APIPromise<CustomerImportResponse>;
|
|
99
50
|
/**
|
|
100
51
|
* Retrieves a paginated list of resources within the same customer.
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
* ```ts
|
|
104
|
-
* // Automatically fetches more pages as needed.
|
|
105
|
-
* for await (const customerListResourcesResponse of client.v1.customers.listResources(
|
|
106
|
-
* 'x',
|
|
107
|
-
* )) {
|
|
108
|
-
* // ...
|
|
109
|
-
* }
|
|
110
|
-
* ```
|
|
111
52
|
*/
|
|
112
53
|
listResources(id: string, params?: CustomerListResourcesParams | null | undefined, options?: RequestOptions): PagePromise<CustomerListResourcesResponsesMyCursorIDPage, CustomerListResourcesResponse>;
|
|
113
54
|
/**
|
|
114
55
|
* Creates a new customer and optionally provisions an initial subscription in a
|
|
115
56
|
* single operation.
|
|
116
|
-
*
|
|
117
|
-
* @example
|
|
118
|
-
* ```ts
|
|
119
|
-
* const customerResponse =
|
|
120
|
-
* await client.v1.customers.provision({ id: 'id' });
|
|
121
|
-
* ```
|
|
122
57
|
*/
|
|
123
58
|
provision(params: CustomerProvisionParams, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
124
59
|
/**
|
|
@@ -129,22 +64,10 @@ export declare class Customers extends APIResource {
|
|
|
129
64
|
* mechanisms, and low-latency guarantees. It is not recommended for hot-path
|
|
130
65
|
* entitlement checks. For production use, consider using the Stigg Node Server SDK
|
|
131
66
|
* with caching or the Sidecar for low-latency cached responses.
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* ```ts
|
|
135
|
-
* const response =
|
|
136
|
-
* await client.v1.customers.retrieveEntitlements('x');
|
|
137
|
-
* ```
|
|
138
67
|
*/
|
|
139
68
|
retrieveEntitlements(id: string, params?: CustomerRetrieveEntitlementsParams | null | undefined, options?: RequestOptions): APIPromise<CustomerRetrieveEntitlementsResponse>;
|
|
140
69
|
/**
|
|
141
70
|
* Restores an archived customer, allowing them to create new subscriptions again.
|
|
142
|
-
*
|
|
143
|
-
* @example
|
|
144
|
-
* ```ts
|
|
145
|
-
* const customerResponse =
|
|
146
|
-
* await client.v1.customers.unarchive('x');
|
|
147
|
-
* ```
|
|
148
71
|
*/
|
|
149
72
|
unarchive(id: string, params?: CustomerUnarchiveParams | null | undefined, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
150
73
|
}
|