@stigg/typescript 0.1.0-beta.15 → 0.1.0-beta.16
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 +8 -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.d.mts +65 -1
- package/resources/v1/events.d.mts.map +1 -1
- package/resources/v1/events.d.ts +65 -1
- package/resources/v1/events.d.ts.map +1 -1
- package/resources/v1/events.js +15 -2
- package/resources/v1/events.js.map +1 -1
- package/resources/v1/events.mjs +13 -1
- package/resources/v1/events.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/index.d.mts +1 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +6 -6
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +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/v1.d.mts +2 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +2 -2
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +2 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +2 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/{v1/events/beta → v1-beta}/customers/assignments.d.mts +21 -24
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/assignments.d.ts +21 -24
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/assignments.js +20 -23
- package/resources/v1-beta/customers/assignments.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/assignments.mjs +20 -23
- 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 +27 -36
- package/resources/v1-beta/customers/entities.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entities.mjs +27 -36
- package/resources/v1-beta/customers/entities.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.mts +4 -6
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.ts +4 -6
- package/resources/v1-beta/customers/entitlements.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.js +3 -5
- package/resources/v1-beta/customers/entitlements.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.mjs +3 -5
- 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 +17 -18
- package/resources/v1-beta/entity-types.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/entity-types.mjs +17 -18
- 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.ts +75 -1
- package/src/resources/v1/features.ts +0 -43
- package/src/resources/v1/index.ts +1 -1
- 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/v1.ts +2 -2
- package/src/resources/{v1/events/beta → v1-beta}/customers/assignments.ts +22 -25
- package/src/resources/{v1/events/beta → v1-beta}/customers/customers.ts +1 -1
- package/src/resources/{v1/events/beta → v1-beta}/customers/entities.ts +29 -38
- package/src/resources/{v1/events/beta → v1-beta}/customers/entitlements.ts +5 -7
- package/src/resources/{v1/events/beta → v1-beta}/entity-types.ts +19 -20
- 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/events.d.mts +0 -83
- package/resources/v1/events/events.d.mts.map +0 -1
- package/resources/v1/events/events.d.ts +0 -83
- package/resources/v1/events/events.d.ts.map +0 -1
- package/resources/v1/events/events.js +0 -40
- package/resources/v1/events/events.js.map +0 -1
- package/resources/v1/events/events.mjs +0 -35
- package/resources/v1/events/events.mjs.map +0 -1
- package/resources/v1/events/index.d.mts +0 -3
- package/resources/v1/events/index.d.mts.map +0 -1
- package/resources/v1/events/index.d.ts +0 -3
- package/resources/v1/events/index.d.ts.map +0 -1
- package/resources/v1/events/index.js +0 -9
- package/resources/v1/events/index.js.map +0 -1
- package/resources/v1/events/index.mjs +0 -4
- package/resources/v1/events/index.mjs.map +0 -1
- package/src/resources/v1/events/events.ts +0 -98
- package/src/resources/v1/events/index.ts +0 -4
- /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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1-beta/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,8BAA0B;AAC9C,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qCAAqC,GAC3C,2BAAuB;AACxB,OAAO,EAAE,MAAM,EAAE,sBAAkB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Beta } from "./beta.js";
|
|
2
1
|
export { Customers } from "./customers/index.js";
|
|
3
2
|
export { EntityTypes, type EntityTypeListResponse, type EntityTypeUpsertResponse, type EntityTypeListParams, type EntityTypeUpsertParams, type EntityTypeListResponsesMyCursorIDPage, } from "./entity-types.js";
|
|
3
|
+
export { V1Beta } from "./v1-beta.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1-beta/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,6BAA0B;AAC9C,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qCAAqC,GAC3C,0BAAuB;AACxB,OAAO,EAAE,MAAM,EAAE,qBAAkB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
var beta_1 = require("./beta.js");
|
|
6
|
-
Object.defineProperty(exports, "Beta", { enumerable: true, get: function () { return beta_1.Beta; } });
|
|
4
|
+
exports.V1Beta = exports.EntityTypes = exports.Customers = void 0;
|
|
7
5
|
var index_1 = require("./customers/index.js");
|
|
8
6
|
Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return index_1.Customers; } });
|
|
9
7
|
var entity_types_1 = require("./entity-types.js");
|
|
10
8
|
Object.defineProperty(exports, "EntityTypes", { enumerable: true, get: function () { return entity_types_1.EntityTypes; } });
|
|
9
|
+
var v1_beta_1 = require("./v1-beta.js");
|
|
10
|
+
Object.defineProperty(exports, "V1Beta", { enumerable: true, get: function () { return v1_beta_1.V1Beta; } });
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1-beta/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAA8C;AAArC,kGAAA,SAAS,OAAA;AAClB,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,wCAAmC;AAA1B,iGAAA,MAAM,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export { Beta } from "./beta.mjs";
|
|
3
2
|
export { Customers } from "./customers/index.mjs";
|
|
4
3
|
export { EntityTypes, } from "./entity-types.mjs";
|
|
4
|
+
export { V1Beta } from "./v1-beta.mjs";
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1-beta/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,SAAS,EAAE,8BAA0B;AAC9C,OAAO,EACL,WAAW,GAMZ,2BAAuB;AACxB,OAAO,EAAE,MAAM,EAAE,sBAAkB"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as EntityTypesAPI from "./entity-types.mjs";
|
|
3
3
|
import { EntityTypeListParams, EntityTypeListResponse, EntityTypeListResponsesMyCursorIDPage, EntityTypeUpsertParams, EntityTypeUpsertResponse, EntityTypes } from "./entity-types.mjs";
|
|
4
4
|
import * as CustomersAPI from "./customers/customers.mjs";
|
|
5
5
|
import { Customers } from "./customers/customers.mjs";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class V1Beta extends APIResource {
|
|
7
7
|
customers: CustomersAPI.Customers;
|
|
8
8
|
entityTypes: EntityTypesAPI.EntityTypes;
|
|
9
9
|
}
|
|
10
|
-
export declare namespace
|
|
10
|
+
export declare namespace V1Beta {
|
|
11
11
|
export { Customers as Customers };
|
|
12
12
|
export { EntityTypes as EntityTypes, type EntityTypeListResponse as EntityTypeListResponse, type EntityTypeUpsertResponse as EntityTypeUpsertResponse, type EntityTypeListResponsesMyCursorIDPage as EntityTypeListResponsesMyCursorIDPage, type EntityTypeListParams as EntityTypeListParams, type EntityTypeUpsertParams as EntityTypeUpsertParams, };
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=beta.d.mts.map
|
|
14
|
+
//# sourceMappingURL=v1-beta.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1-beta.d.mts","sourceRoot":"","sources":["../../src/resources/v1-beta/v1-beta.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,cAAc,2BAAuB;AACjD,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qCAAqC,EACrC,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACZ,2BAAuB;AACxB,OAAO,KAAK,YAAY,kCAA8B;AACtD,OAAO,EAAE,SAAS,EAAE,kCAA8B;AAElD,qBAAa,MAAO,SAAQ,WAAW;IACrC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;CACxF;AAKD,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,CAAC;IAElC,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as EntityTypesAPI from "./entity-types.js";
|
|
3
3
|
import { EntityTypeListParams, EntityTypeListResponse, EntityTypeListResponsesMyCursorIDPage, EntityTypeUpsertParams, EntityTypeUpsertResponse, EntityTypes } from "./entity-types.js";
|
|
4
4
|
import * as CustomersAPI from "./customers/customers.js";
|
|
5
5
|
import { Customers } from "./customers/customers.js";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class V1Beta extends APIResource {
|
|
7
7
|
customers: CustomersAPI.Customers;
|
|
8
8
|
entityTypes: EntityTypesAPI.EntityTypes;
|
|
9
9
|
}
|
|
10
|
-
export declare namespace
|
|
10
|
+
export declare namespace V1Beta {
|
|
11
11
|
export { Customers as Customers };
|
|
12
12
|
export { EntityTypes as EntityTypes, type EntityTypeListResponse as EntityTypeListResponse, type EntityTypeUpsertResponse as EntityTypeUpsertResponse, type EntityTypeListResponsesMyCursorIDPage as EntityTypeListResponsesMyCursorIDPage, type EntityTypeListParams as EntityTypeListParams, type EntityTypeUpsertParams as EntityTypeUpsertParams, };
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=beta.d.ts.map
|
|
14
|
+
//# sourceMappingURL=v1-beta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1-beta.d.ts","sourceRoot":"","sources":["../../src/resources/v1-beta/v1-beta.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,cAAc,0BAAuB;AACjD,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qCAAqC,EACrC,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACZ,0BAAuB;AACxB,OAAO,KAAK,YAAY,iCAA8B;AACtD,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAElD,qBAAa,MAAO,SAAQ,WAAW;IACrC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;CACxF;AAKD,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,CAAC;IAElC,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
const tslib_1 = require("
|
|
6
|
-
const resource_1 = require("
|
|
4
|
+
exports.V1Beta = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
7
|
const EntityTypesAPI = tslib_1.__importStar(require("./entity-types.js"));
|
|
8
8
|
const entity_types_1 = require("./entity-types.js");
|
|
9
9
|
const CustomersAPI = tslib_1.__importStar(require("./customers/customers.js"));
|
|
10
10
|
const customers_1 = require("./customers/customers.js");
|
|
11
|
-
class
|
|
11
|
+
class V1Beta extends resource_1.APIResource {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
14
14
|
this.customers = new CustomersAPI.Customers(this._client);
|
|
15
15
|
this.entityTypes = new EntityTypesAPI.EntityTypes(this._client);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
exports.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=beta.js.map
|
|
18
|
+
exports.V1Beta = V1Beta;
|
|
19
|
+
V1Beta.Customers = customers_1.Customers;
|
|
20
|
+
V1Beta.EntityTypes = entity_types_1.EntityTypes;
|
|
21
|
+
//# sourceMappingURL=v1-beta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1-beta.js","sourceRoot":"","sources":["../../src/resources/v1-beta/v1-beta.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,0EAAiD;AACjD,oDAOwB;AACxB,+EAAsD;AACtD,wDAAkD;AAElD,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAHD,wBAGC;AAED,MAAM,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC7B,MAAM,CAAC,WAAW,GAAG,0BAAW,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as EntityTypesAPI from "./entity-types.mjs";
|
|
4
4
|
import { EntityTypes, } from "./entity-types.mjs";
|
|
5
5
|
import * as CustomersAPI from "./customers/customers.mjs";
|
|
6
6
|
import { Customers } from "./customers/customers.mjs";
|
|
7
|
-
export class
|
|
7
|
+
export class V1Beta extends APIResource {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
10
10
|
this.customers = new CustomersAPI.Customers(this._client);
|
|
11
11
|
this.entityTypes = new EntityTypesAPI.EntityTypes(this._client);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
//# sourceMappingURL=beta.mjs.map
|
|
14
|
+
V1Beta.Customers = Customers;
|
|
15
|
+
V1Beta.EntityTypes = EntityTypes;
|
|
16
|
+
//# sourceMappingURL=v1-beta.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1-beta.mjs","sourceRoot":"","sources":["../../src/resources/v1-beta/v1-beta.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,cAAc,2BAAuB;AACjD,OAAO,EAML,WAAW,GACZ,2BAAuB;AACxB,OAAO,KAAK,YAAY,kCAA8B;AACtD,OAAO,EAAE,SAAS,EAAE,kCAA8B;AAElD,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAED,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC;AAC7B,MAAM,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1-beta.d.mts","sourceRoot":"","sources":["../src/resources/v1-beta.ts"],"names":[],"mappings":"AAEA,oCAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1-beta.d.ts","sourceRoot":"","sources":["../src/resources/v1-beta.ts"],"names":[],"mappings":"AAEA,mCAAgC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const tslib_1 = require("
|
|
5
|
-
tslib_1.__exportStar(require("./beta/index.js"), exports);
|
|
6
|
-
//# sourceMappingURL=beta.js.map
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./v1-beta/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=v1-beta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1-beta.js","sourceRoot":"","sources":["../src/resources/v1-beta.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export * from "./beta/index.mjs";
|
|
3
|
-
//# sourceMappingURL=beta.mjs.map
|
|
2
|
+
export * from "./v1-beta/index.mjs";
|
|
3
|
+
//# sourceMappingURL=v1-beta.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1-beta.mjs","sourceRoot":"","sources":["../src/resources/v1-beta.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,oCAAgC"}
|
package/src/client.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { AbstractPage, type MyCursorIDPageParams, MyCursorIDPageResponse } from
|
|
|
19
19
|
import * as Uploads from './core/uploads';
|
|
20
20
|
import * as API from './resources/index';
|
|
21
21
|
import { APIPromise } from './core/api-promise';
|
|
22
|
+
import { V1Beta } from './resources/v1-beta/v1-beta';
|
|
22
23
|
import { V1 } from './resources/v1/v1';
|
|
23
24
|
import { type Fetch } from './internal/builtin-types';
|
|
24
25
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
@@ -754,9 +755,11 @@ export class Stigg {
|
|
|
754
755
|
static toFile = Uploads.toFile;
|
|
755
756
|
|
|
756
757
|
v1: API.V1 = new API.V1(this);
|
|
758
|
+
v1Beta: API.V1Beta = new API.V1Beta(this);
|
|
757
759
|
}
|
|
758
760
|
|
|
759
761
|
Stigg.V1 = V1;
|
|
762
|
+
Stigg.V1Beta = V1Beta;
|
|
760
763
|
|
|
761
764
|
export declare namespace Stigg {
|
|
762
765
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -768,4 +771,6 @@ export declare namespace Stigg {
|
|
|
768
771
|
};
|
|
769
772
|
|
|
770
773
|
export { V1 as V1 };
|
|
774
|
+
|
|
775
|
+
export { V1Beta as V1Beta };
|
|
771
776
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -24,15 +24,6 @@ export class Addons extends APIResource {
|
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Creates a new addon in draft status, associated with a specific product.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const addon = await client.v1.addons.create({
|
|
31
|
-
* id: 'id',
|
|
32
|
-
* displayName: 'displayName',
|
|
33
|
-
* productId: 'productId',
|
|
34
|
-
* });
|
|
35
|
-
* ```
|
|
36
27
|
*/
|
|
37
28
|
create(body: AddonCreateParams, options?: RequestOptions): APIPromise<Addon> {
|
|
38
29
|
return this._client.post('/api/v1/addons', { body, ...options });
|
|
@@ -41,11 +32,6 @@ export class Addons extends APIResource {
|
|
|
41
32
|
/**
|
|
42
33
|
* Retrieves an addon by its unique identifier, including entitlements and pricing
|
|
43
34
|
* details.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```ts
|
|
47
|
-
* const addon = await client.v1.addons.retrieve('x');
|
|
48
|
-
* ```
|
|
49
35
|
*/
|
|
50
36
|
retrieve(id: string, options?: RequestOptions): APIPromise<Addon> {
|
|
51
37
|
return this._client.get(path`/api/v1/addons/${id}`, options);
|
|
@@ -54,11 +40,6 @@ export class Addons extends APIResource {
|
|
|
54
40
|
/**
|
|
55
41
|
* Updates an existing addon's properties such as display name, description, and
|
|
56
42
|
* metadata.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* const addon = await client.v1.addons.update('x');
|
|
61
|
-
* ```
|
|
62
43
|
*/
|
|
63
44
|
update(id: string, body: AddonUpdateParams, options?: RequestOptions): APIPromise<Addon> {
|
|
64
45
|
return this._client.patch(path`/api/v1/addons/${id}`, { body, ...options });
|
|
@@ -66,14 +47,6 @@ export class Addons extends APIResource {
|
|
|
66
47
|
|
|
67
48
|
/**
|
|
68
49
|
* Retrieves a paginated list of addons in the environment.
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```ts
|
|
72
|
-
* // Automatically fetches more pages as needed.
|
|
73
|
-
* for await (const addonListResponse of client.v1.addons.list()) {
|
|
74
|
-
* // ...
|
|
75
|
-
* }
|
|
76
|
-
* ```
|
|
77
50
|
*/
|
|
78
51
|
list(
|
|
79
52
|
query: AddonListParams | null | undefined = {},
|
|
@@ -87,11 +60,6 @@ export class Addons extends APIResource {
|
|
|
87
60
|
|
|
88
61
|
/**
|
|
89
62
|
* Archives an addon, preventing it from being used in new subscriptions.
|
|
90
|
-
*
|
|
91
|
-
* @example
|
|
92
|
-
* ```ts
|
|
93
|
-
* const addon = await client.v1.addons.archive('x');
|
|
94
|
-
* ```
|
|
95
63
|
*/
|
|
96
64
|
archive(id: string, options?: RequestOptions): APIPromise<Addon> {
|
|
97
65
|
return this._client.post(path`/api/v1/addons/${id}/archive`, options);
|
|
@@ -99,11 +67,6 @@ export class Addons extends APIResource {
|
|
|
99
67
|
|
|
100
68
|
/**
|
|
101
69
|
* Creates a draft version of an existing addon for modification before publishing.
|
|
102
|
-
*
|
|
103
|
-
* @example
|
|
104
|
-
* ```ts
|
|
105
|
-
* const addon = await client.v1.addons.createDraft('x');
|
|
106
|
-
* ```
|
|
107
70
|
*/
|
|
108
71
|
createDraft(id: string, options?: RequestOptions): APIPromise<Addon> {
|
|
109
72
|
return this._client.post(path`/api/v1/addons/${id}/draft`, options);
|
|
@@ -111,16 +74,6 @@ export class Addons extends APIResource {
|
|
|
111
74
|
|
|
112
75
|
/**
|
|
113
76
|
* Retrieves the list of charges configured on an addon.
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* ```ts
|
|
117
|
-
* // Automatically fetches more pages as needed.
|
|
118
|
-
* for await (const addonListChargesResponse of client.v1.addons.listCharges(
|
|
119
|
-
* 'x',
|
|
120
|
-
* )) {
|
|
121
|
-
* // ...
|
|
122
|
-
* }
|
|
123
|
-
* ```
|
|
124
77
|
*/
|
|
125
78
|
listCharges(
|
|
126
79
|
id: string,
|
|
@@ -136,13 +89,6 @@ export class Addons extends APIResource {
|
|
|
136
89
|
|
|
137
90
|
/**
|
|
138
91
|
* Publishes a draft addon, making it available for use in subscriptions.
|
|
139
|
-
*
|
|
140
|
-
* @example
|
|
141
|
-
* ```ts
|
|
142
|
-
* const response = await client.v1.addons.publish('x', {
|
|
143
|
-
* migrationType: 'NEW_CUSTOMERS',
|
|
144
|
-
* });
|
|
145
|
-
* ```
|
|
146
92
|
*/
|
|
147
93
|
publish(id: string, body: AddonPublishParams, options?: RequestOptions): APIPromise<AddonPublishResponse> {
|
|
148
94
|
return this._client.post(path`/api/v1/addons/${id}/publish`, { body, ...options });
|
|
@@ -150,11 +96,6 @@ export class Addons extends APIResource {
|
|
|
150
96
|
|
|
151
97
|
/**
|
|
152
98
|
* Removes a draft version of an addon.
|
|
153
|
-
*
|
|
154
|
-
* @example
|
|
155
|
-
* ```ts
|
|
156
|
-
* const response = await client.v1.addons.removeDraft('x');
|
|
157
|
-
* ```
|
|
158
99
|
*/
|
|
159
100
|
removeDraft(id: string, options?: RequestOptions): APIPromise<AddonRemoveDraftResponse> {
|
|
160
101
|
return this._client.delete(path`/api/v1/addons/${id}/draft`, options);
|
|
@@ -8,14 +8,6 @@ import { path } from '../../../internal/utils/path';
|
|
|
8
8
|
export class Entitlements extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Creates one or more entitlements (feature or credit) on a draft addon.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const entitlement =
|
|
15
|
-
* await client.v1.addons.entitlements.create('addonId', {
|
|
16
|
-
* entitlements: [{ id: 'id', type: 'FEATURE' }],
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
11
|
*/
|
|
20
12
|
create(
|
|
21
13
|
addonID: string,
|
|
@@ -27,15 +19,6 @@ export class Entitlements extends APIResource {
|
|
|
27
19
|
|
|
28
20
|
/**
|
|
29
21
|
* Updates an existing entitlement on a draft addon.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* const addonPackageEntitlement =
|
|
34
|
-
* await client.v1.addons.entitlements.update('id', {
|
|
35
|
-
* addonId: 'addonId',
|
|
36
|
-
* type: 'FEATURE',
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
22
|
*/
|
|
40
23
|
update(
|
|
41
24
|
id: string,
|
|
@@ -48,12 +31,6 @@ export class Entitlements extends APIResource {
|
|
|
48
31
|
|
|
49
32
|
/**
|
|
50
33
|
* Retrieves a list of entitlements for an addon.
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```ts
|
|
54
|
-
* const entitlements =
|
|
55
|
-
* await client.v1.addons.entitlements.list('addonId');
|
|
56
|
-
* ```
|
|
57
34
|
*/
|
|
58
35
|
list(addonID: string, options?: RequestOptions): APIPromise<EntitlementListResponse> {
|
|
59
36
|
return this._client.get(path`/api/v1/addons/${addonID}/entitlements`, options);
|
|
@@ -61,14 +38,6 @@ export class Entitlements extends APIResource {
|
|
|
61
38
|
|
|
62
39
|
/**
|
|
63
40
|
* Deletes an entitlement from a draft addon.
|
|
64
|
-
*
|
|
65
|
-
* @example
|
|
66
|
-
* ```ts
|
|
67
|
-
* const addonPackageEntitlement =
|
|
68
|
-
* await client.v1.addons.entitlements.delete('id', {
|
|
69
|
-
* addonId: 'addonId',
|
|
70
|
-
* });
|
|
71
|
-
* ```
|
|
72
41
|
*/
|
|
73
42
|
delete(
|
|
74
43
|
id: string,
|
|
@@ -13,19 +13,6 @@ export class Coupons extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* Creates a new discount coupon with percentage or fixed amount off, applicable to
|
|
15
15
|
* customer subscriptions.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* const coupon = await client.v1.coupons.create({
|
|
20
|
-
* id: 'id',
|
|
21
|
-
* amountsOff: [{ amount: 0, currency: 'usd' }],
|
|
22
|
-
* description: 'description',
|
|
23
|
-
* durationInMonths: 1,
|
|
24
|
-
* metadata: { foo: 'string' },
|
|
25
|
-
* name: 'name',
|
|
26
|
-
* percentOff: 1,
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
29
16
|
*/
|
|
30
17
|
create(body: CouponCreateParams, options?: RequestOptions): APIPromise<Coupon> {
|
|
31
18
|
return this._client.post('/api/v1/coupons', { body, ...options });
|
|
@@ -33,11 +20,6 @@ export class Coupons extends APIResource {
|
|
|
33
20
|
|
|
34
21
|
/**
|
|
35
22
|
* Retrieves a coupon by its unique identifier.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* const coupon = await client.v1.coupons.retrieve('x');
|
|
40
|
-
* ```
|
|
41
23
|
*/
|
|
42
24
|
retrieve(id: string, options?: RequestOptions): APIPromise<Coupon> {
|
|
43
25
|
return this._client.get(path`/api/v1/coupons/${id}`, options);
|
|
@@ -45,14 +27,6 @@ export class Coupons extends APIResource {
|
|
|
45
27
|
|
|
46
28
|
/**
|
|
47
29
|
* Retrieves a paginated list of coupons in the environment.
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```ts
|
|
51
|
-
* // Automatically fetches more pages as needed.
|
|
52
|
-
* for await (const couponListResponse of client.v1.coupons.list()) {
|
|
53
|
-
* // ...
|
|
54
|
-
* }
|
|
55
|
-
* ```
|
|
56
30
|
*/
|
|
57
31
|
list(
|
|
58
32
|
query: CouponListParams | null | undefined = {},
|
|
@@ -66,11 +40,6 @@ export class Coupons extends APIResource {
|
|
|
66
40
|
|
|
67
41
|
/**
|
|
68
42
|
* Archives a coupon, preventing it from being applied to new subscriptions.
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```ts
|
|
72
|
-
* const coupon = await client.v1.coupons.archiveCoupon('x');
|
|
73
|
-
* ```
|
|
74
43
|
*/
|
|
75
44
|
archiveCoupon(id: string, options?: RequestOptions): APIPromise<Coupon> {
|
|
76
45
|
return this._client.post(path`/api/v1/coupons/${id}/archive`, options);
|
|
@@ -78,11 +47,6 @@ export class Coupons extends APIResource {
|
|
|
78
47
|
|
|
79
48
|
/**
|
|
80
49
|
* Updates an existing coupon's properties such as name, description, and metadata.
|
|
81
|
-
*
|
|
82
|
-
* @example
|
|
83
|
-
* ```ts
|
|
84
|
-
* const coupon = await client.v1.coupons.updateCoupon('x');
|
|
85
|
-
* ```
|
|
86
50
|
*/
|
|
87
51
|
updateCoupon(id: string, body: CouponUpdateCouponParams, options?: RequestOptions): APIPromise<Coupon> {
|
|
88
52
|
return this._client.patch(path`/api/v1/coupons/${id}`, { body, ...options });
|
|
@@ -34,14 +34,6 @@ export class Credits extends APIResource {
|
|
|
34
34
|
/**
|
|
35
35
|
* Retrieves the automatic recharge configuration for a customer and currency.
|
|
36
36
|
* Returns default settings if no configuration exists.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```ts
|
|
40
|
-
* const response = await client.v1.credits.getAutoRecharge({
|
|
41
|
-
* currencyId: 'currencyId',
|
|
42
|
-
* customerId: 'customerId',
|
|
43
|
-
* });
|
|
44
|
-
* ```
|
|
45
37
|
*/
|
|
46
38
|
getAutoRecharge(
|
|
47
39
|
query: CreditGetAutoRechargeParams,
|
|
@@ -53,13 +45,6 @@ export class Credits extends APIResource {
|
|
|
53
45
|
/**
|
|
54
46
|
* Retrieves credit usage time-series data for a customer, grouped by feature, over
|
|
55
47
|
* a specified time range.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* const response = await client.v1.credits.getUsage({
|
|
60
|
-
* customerId: 'customerId',
|
|
61
|
-
* });
|
|
62
|
-
* ```
|
|
63
48
|
*/
|
|
64
49
|
getUsage(query: CreditGetUsageParams, options?: RequestOptions): APIPromise<CreditGetUsageResponse> {
|
|
65
50
|
return this._client.get('/api/v1/credits/usage', { query, ...options });
|
|
@@ -67,16 +52,6 @@ export class Credits extends APIResource {
|
|
|
67
52
|
|
|
68
53
|
/**
|
|
69
54
|
* Retrieves a paginated list of credit ledger events for a customer.
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* ```ts
|
|
73
|
-
* // Automatically fetches more pages as needed.
|
|
74
|
-
* for await (const creditListLedgerResponse of client.v1.credits.listLedger(
|
|
75
|
-
* { customerId: 'customerId' },
|
|
76
|
-
* )) {
|
|
77
|
-
* // ...
|
|
78
|
-
* }
|
|
79
|
-
* ```
|
|
80
55
|
*/
|
|
81
56
|
listLedger(
|
|
82
57
|
query: CreditListLedgerParams,
|
|
@@ -12,15 +12,6 @@ import { path } from '../../../internal/utils/path';
|
|
|
12
12
|
export class CustomCurrencies extends 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(body: CustomCurrencyCreateParams, options?: RequestOptions): APIPromise<CustomCurrencyResponse> {
|
|
26
17
|
return this._client.post('/api/v1/credits/custom-currencies', { body, ...options });
|
|
@@ -28,14 +19,6 @@ export class CustomCurrencies extends APIResource {
|
|
|
28
19
|
|
|
29
20
|
/**
|
|
30
21
|
* Updates an existing custom currency. Only the supplied fields are modified.
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* const customCurrencyResponse =
|
|
35
|
-
* await client.v1.credits.customCurrencies.update(
|
|
36
|
-
* 'currencyId',
|
|
37
|
-
* );
|
|
38
|
-
* ```
|
|
39
22
|
*/
|
|
40
23
|
update(
|
|
41
24
|
currencyID: string,
|
|
@@ -49,14 +32,6 @@ export class CustomCurrencies extends APIResource {
|
|
|
49
32
|
* Retrieves a paginated list of custom currencies in the environment. Archived
|
|
50
33
|
* currencies are excluded by default; pass `status=ARCHIVED` (or
|
|
51
34
|
* `status=ACTIVE,ARCHIVED`) to include them.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```ts
|
|
55
|
-
* // Automatically fetches more pages as needed.
|
|
56
|
-
* for await (const customCurrencyListResponse of client.v1.credits.customCurrencies.list()) {
|
|
57
|
-
* // ...
|
|
58
|
-
* }
|
|
59
|
-
* ```
|
|
60
35
|
*/
|
|
61
36
|
list(
|
|
62
37
|
query: CustomCurrencyListParams | null | undefined = {},
|
|
@@ -73,14 +48,6 @@ export class CustomCurrencies extends APIResource {
|
|
|
73
48
|
* Archives a custom currency. Fails if the currency is still associated with any
|
|
74
49
|
* active plan or addon — use the associated-entities endpoint first to inspect
|
|
75
50
|
* dependencies.
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* ```ts
|
|
79
|
-
* const customCurrencyResponse =
|
|
80
|
-
* await client.v1.credits.customCurrencies.archive(
|
|
81
|
-
* 'currencyId',
|
|
82
|
-
* );
|
|
83
|
-
* ```
|
|
84
51
|
*/
|
|
85
52
|
archive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyResponse> {
|
|
86
53
|
return this._client.post(path`/api/v1/credits/custom-currencies/${currencyID}/archive`, options);
|
|
@@ -89,14 +56,6 @@ export class CustomCurrencies extends APIResource {
|
|
|
89
56
|
/**
|
|
90
57
|
* Lists the active plans and addons that reference a custom currency. Useful
|
|
91
58
|
* before archiving to inspect dependencies.
|
|
92
|
-
*
|
|
93
|
-
* @example
|
|
94
|
-
* ```ts
|
|
95
|
-
* const response =
|
|
96
|
-
* await client.v1.credits.customCurrencies.listAssociatedEntities(
|
|
97
|
-
* 'currencyId',
|
|
98
|
-
* );
|
|
99
|
-
* ```
|
|
100
59
|
*/
|
|
101
60
|
listAssociatedEntities(
|
|
102
61
|
currencyID: string,
|
|
@@ -111,14 +70,6 @@ export class CustomCurrencies extends APIResource {
|
|
|
111
70
|
/**
|
|
112
71
|
* Restores a previously archived custom currency. Fails if another active currency
|
|
113
72
|
* with the same ID already exists.
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* ```ts
|
|
117
|
-
* const customCurrencyResponse =
|
|
118
|
-
* await client.v1.credits.customCurrencies.unarchive(
|
|
119
|
-
* 'currencyId',
|
|
120
|
-
* );
|
|
121
|
-
* ```
|
|
122
73
|
*/
|
|
123
74
|
unarchive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyResponse> {
|
|
124
75
|
return this._client.post(path`/api/v1/credits/custom-currencies/${currencyID}/unarchive`, options);
|
|
@@ -13,18 +13,6 @@ export class Grants extends 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(body: GrantCreateParams, options?: RequestOptions): APIPromise<CreditGrantResponse> {
|
|
30
18
|
return this._client.post('/api/v1/credits/grants', { body, ...options });
|
|
@@ -32,16 +20,6 @@ export class Grants extends APIResource {
|
|
|
32
20
|
|
|
33
21
|
/**
|
|
34
22
|
* Retrieves a paginated list of credit grants for a customer.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* // Automatically fetches more pages as needed.
|
|
39
|
-
* for await (const grantListResponse of client.v1.credits.grants.list(
|
|
40
|
-
* { customerId: 'customerId' },
|
|
41
|
-
* )) {
|
|
42
|
-
* // ...
|
|
43
|
-
* }
|
|
44
|
-
* ```
|
|
45
23
|
*/
|
|
46
24
|
list(
|
|
47
25
|
query: GrantListParams,
|
|
@@ -56,12 +34,6 @@ export class Grants extends APIResource {
|
|
|
56
34
|
/**
|
|
57
35
|
* Voids an existing credit grant, preventing further consumption of the remaining
|
|
58
36
|
* credits.
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* const creditGrantResponse =
|
|
63
|
-
* await client.v1.credits.grants.void('x');
|
|
64
|
-
* ```
|
|
65
37
|
*/
|
|
66
38
|
void(id: string, options?: RequestOptions): APIPromise<CreditGrantResponse> {
|
|
67
39
|
return this._client.post(path`/api/v1/credits/grants/${id}/void`, options);
|