@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-types.js","sourceRoot":"","sources":["../../src/resources/v1-beta/entity-types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA+F;AAC/F,uDAAsD;AAGtD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,SAAkD,EAAE,EACpD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAClG,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,2BAA2B,EAAE,CAAA,2BAAsC,CAAA,EAAE;YAClG,KAAK;YACL,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;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,MAA8B,EAAE,OAAwB;QAC7D,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE;YACnD,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;CACF;AArED,kCAqEC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
3
|
-
import { MyCursorIDPage } from "
|
|
4
|
-
import { buildHeaders } from "
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { MyCursorIDPage } from "../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
5
5
|
export class EntityTypes extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* Returns a cursor-paginated list of entity types defined in the environment.
|
|
@@ -11,7 +11,7 @@ export class EntityTypes extends APIResource {
|
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
13
|
* // Automatically fetches more pages as needed.
|
|
14
|
-
* for await (const entityTypeListResponse of client.
|
|
14
|
+
* for await (const entityTypeListResponse of client.v1Beta.entityTypes.list()) {
|
|
15
15
|
* // ...
|
|
16
16
|
* }
|
|
17
17
|
* ```
|
|
@@ -37,21 +37,20 @@ export class EntityTypes extends APIResource {
|
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
39
|
* ```ts
|
|
40
|
-
* const response =
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* });
|
|
40
|
+
* const response = await client.v1Beta.entityTypes.upsert({
|
|
41
|
+
* types: [
|
|
42
|
+
* {
|
|
43
|
+
* id: 'org',
|
|
44
|
+
* displayName: 'Organization',
|
|
45
|
+
* attributionKeys: ['organizationId'],
|
|
46
|
+
* },
|
|
47
|
+
* {
|
|
48
|
+
* id: 'team',
|
|
49
|
+
* displayName: 'Team',
|
|
50
|
+
* attributionKeys: ['teamId'],
|
|
51
|
+
* },
|
|
52
|
+
* ],
|
|
53
|
+
* });
|
|
55
54
|
* ```
|
|
56
55
|
*/
|
|
57
56
|
upsert(params, options) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-types.mjs","sourceRoot":"","sources":["../../src/resources/v1-beta/entity-types.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,cAAc,EAA0C,kCAA8B;AAC/F,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAGtD,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,SAAkD,EAAE,EACpD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAClG,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,2BAA2B,EAAE,CAAA,cAAsC,CAAA,EAAE;YAClG,KAAK;YACL,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;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,MAA8B,EAAE,OAAwB;QAC7D,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE;YACnD,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,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Beta } from "./beta.mjs";
|
|
2
1
|
export { Customers } from "./customers/index.mjs";
|
|
3
2
|
export { EntityTypes, type EntityTypeListResponse, type EntityTypeUpsertResponse, type EntityTypeListParams, type EntityTypeUpsertParams, type EntityTypeListResponsesMyCursorIDPage, } from "./entity-types.mjs";
|
|
3
|
+
export { V1Beta } from "./v1-beta.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -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
|
@@ -26,15 +26,6 @@ export class Addons extends APIResource {
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Creates a new addon in draft status, associated with a specific product.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const addon = await client.v1.addons.create({
|
|
33
|
-
* id: 'id',
|
|
34
|
-
* displayName: 'displayName',
|
|
35
|
-
* productId: 'productId',
|
|
36
|
-
* });
|
|
37
|
-
* ```
|
|
38
29
|
*/
|
|
39
30
|
create(params: AddonCreateParams, options?: RequestOptions): APIPromise<Addon> {
|
|
40
31
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -54,11 +45,6 @@ export class Addons extends APIResource {
|
|
|
54
45
|
/**
|
|
55
46
|
* Retrieves an addon by its unique identifier, including entitlements and pricing
|
|
56
47
|
* details.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* const addon = await client.v1.addons.retrieve('x');
|
|
61
|
-
* ```
|
|
62
48
|
*/
|
|
63
49
|
retrieve(
|
|
64
50
|
id: string,
|
|
@@ -81,11 +67,6 @@ export class Addons extends APIResource {
|
|
|
81
67
|
/**
|
|
82
68
|
* Updates an existing addon's properties such as display name, description, and
|
|
83
69
|
* metadata.
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* ```ts
|
|
87
|
-
* const addon = await client.v1.addons.update('x');
|
|
88
|
-
* ```
|
|
89
70
|
*/
|
|
90
71
|
update(id: string, params: AddonUpdateParams, options?: RequestOptions): APIPromise<Addon> {
|
|
91
72
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -104,14 +85,6 @@ export class Addons extends APIResource {
|
|
|
104
85
|
|
|
105
86
|
/**
|
|
106
87
|
* Retrieves a paginated list of addons in the environment.
|
|
107
|
-
*
|
|
108
|
-
* @example
|
|
109
|
-
* ```ts
|
|
110
|
-
* // Automatically fetches more pages as needed.
|
|
111
|
-
* for await (const addonListResponse of client.v1.addons.list()) {
|
|
112
|
-
* // ...
|
|
113
|
-
* }
|
|
114
|
-
* ```
|
|
115
88
|
*/
|
|
116
89
|
list(
|
|
117
90
|
params: AddonListParams | null | undefined = {},
|
|
@@ -133,11 +106,6 @@ export class Addons extends APIResource {
|
|
|
133
106
|
|
|
134
107
|
/**
|
|
135
108
|
* Archives an addon, preventing it from being used in new subscriptions.
|
|
136
|
-
*
|
|
137
|
-
* @example
|
|
138
|
-
* ```ts
|
|
139
|
-
* const addon = await client.v1.addons.archive('x');
|
|
140
|
-
* ```
|
|
141
109
|
*/
|
|
142
110
|
archive(
|
|
143
111
|
id: string,
|
|
@@ -159,11 +127,6 @@ export class Addons extends APIResource {
|
|
|
159
127
|
|
|
160
128
|
/**
|
|
161
129
|
* Creates a draft version of an existing addon for modification before publishing.
|
|
162
|
-
*
|
|
163
|
-
* @example
|
|
164
|
-
* ```ts
|
|
165
|
-
* const addon = await client.v1.addons.createDraft('x');
|
|
166
|
-
* ```
|
|
167
130
|
*/
|
|
168
131
|
createDraft(
|
|
169
132
|
id: string,
|
|
@@ -185,16 +148,6 @@ export class Addons extends APIResource {
|
|
|
185
148
|
|
|
186
149
|
/**
|
|
187
150
|
* Retrieves the list of charges configured on an addon.
|
|
188
|
-
*
|
|
189
|
-
* @example
|
|
190
|
-
* ```ts
|
|
191
|
-
* // Automatically fetches more pages as needed.
|
|
192
|
-
* for await (const addonListChargesResponse of client.v1.addons.listCharges(
|
|
193
|
-
* 'x',
|
|
194
|
-
* )) {
|
|
195
|
-
* // ...
|
|
196
|
-
* }
|
|
197
|
-
* ```
|
|
198
151
|
*/
|
|
199
152
|
listCharges(
|
|
200
153
|
id: string,
|
|
@@ -221,13 +174,6 @@ export class Addons extends APIResource {
|
|
|
221
174
|
|
|
222
175
|
/**
|
|
223
176
|
* Publishes a draft addon, making it available for use in subscriptions.
|
|
224
|
-
*
|
|
225
|
-
* @example
|
|
226
|
-
* ```ts
|
|
227
|
-
* const response = await client.v1.addons.publish('x', {
|
|
228
|
-
* migrationType: 'NEW_CUSTOMERS',
|
|
229
|
-
* });
|
|
230
|
-
* ```
|
|
231
177
|
*/
|
|
232
178
|
publish(
|
|
233
179
|
id: string,
|
|
@@ -250,11 +196,6 @@ export class Addons extends APIResource {
|
|
|
250
196
|
|
|
251
197
|
/**
|
|
252
198
|
* Removes a draft version of an addon.
|
|
253
|
-
*
|
|
254
|
-
* @example
|
|
255
|
-
* ```ts
|
|
256
|
-
* const response = await client.v1.addons.removeDraft('x');
|
|
257
|
-
* ```
|
|
258
199
|
*/
|
|
259
200
|
removeDraft(
|
|
260
201
|
id: string,
|
|
@@ -9,14 +9,6 @@ import { path } from '../../../internal/utils/path';
|
|
|
9
9
|
export class Entitlements extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* Creates one or more entitlements (feature or credit) on a draft addon.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const entitlement =
|
|
16
|
-
* await client.v1.addons.entitlements.create('addonId', {
|
|
17
|
-
* entitlements: [{ id: 'id', type: 'FEATURE' }],
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
20
12
|
*/
|
|
21
13
|
create(
|
|
22
14
|
addonID: string,
|
|
@@ -39,15 +31,6 @@ export class Entitlements extends APIResource {
|
|
|
39
31
|
|
|
40
32
|
/**
|
|
41
33
|
* Updates an existing entitlement on a draft addon.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* const addonPackageEntitlement =
|
|
46
|
-
* await client.v1.addons.entitlements.update('id', {
|
|
47
|
-
* addonId: 'addonId',
|
|
48
|
-
* type: 'FEATURE',
|
|
49
|
-
* });
|
|
50
|
-
* ```
|
|
51
34
|
*/
|
|
52
35
|
update(
|
|
53
36
|
id: string,
|
|
@@ -70,12 +53,6 @@ export class Entitlements extends APIResource {
|
|
|
70
53
|
|
|
71
54
|
/**
|
|
72
55
|
* Retrieves a list of entitlements for an addon.
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* ```ts
|
|
76
|
-
* const entitlements =
|
|
77
|
-
* await client.v1.addons.entitlements.list('addonId');
|
|
78
|
-
* ```
|
|
79
56
|
*/
|
|
80
57
|
list(
|
|
81
58
|
addonID: string,
|
|
@@ -97,14 +74,6 @@ export class Entitlements extends APIResource {
|
|
|
97
74
|
|
|
98
75
|
/**
|
|
99
76
|
* Deletes an entitlement from a draft addon.
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* ```ts
|
|
103
|
-
* const addonPackageEntitlement =
|
|
104
|
-
* await client.v1.addons.entitlements.delete('id', {
|
|
105
|
-
* addonId: 'addonId',
|
|
106
|
-
* });
|
|
107
|
-
* ```
|
|
108
77
|
*/
|
|
109
78
|
delete(
|
|
110
79
|
id: string,
|
|
@@ -14,19 +14,6 @@ export class Coupons extends APIResource {
|
|
|
14
14
|
/**
|
|
15
15
|
* Creates a new discount coupon with percentage or fixed amount off, applicable to
|
|
16
16
|
* customer subscriptions.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const coupon = await client.v1.coupons.create({
|
|
21
|
-
* id: 'id',
|
|
22
|
-
* amountsOff: [{ amount: 0, currency: 'usd' }],
|
|
23
|
-
* description: 'description',
|
|
24
|
-
* durationInMonths: 1,
|
|
25
|
-
* metadata: { foo: 'string' },
|
|
26
|
-
* name: 'name',
|
|
27
|
-
* percentOff: 1,
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
17
|
*/
|
|
31
18
|
create(params: CouponCreateParams, options?: RequestOptions): APIPromise<Coupon> {
|
|
32
19
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -45,11 +32,6 @@ export class Coupons extends APIResource {
|
|
|
45
32
|
|
|
46
33
|
/**
|
|
47
34
|
* Retrieves a coupon by its unique identifier.
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```ts
|
|
51
|
-
* const coupon = await client.v1.coupons.retrieve('x');
|
|
52
|
-
* ```
|
|
53
35
|
*/
|
|
54
36
|
retrieve(
|
|
55
37
|
id: string,
|
|
@@ -71,14 +53,6 @@ export class Coupons extends APIResource {
|
|
|
71
53
|
|
|
72
54
|
/**
|
|
73
55
|
* Retrieves a paginated list of coupons in the environment.
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```ts
|
|
77
|
-
* // Automatically fetches more pages as needed.
|
|
78
|
-
* for await (const couponListResponse of client.v1.coupons.list()) {
|
|
79
|
-
* // ...
|
|
80
|
-
* }
|
|
81
|
-
* ```
|
|
82
56
|
*/
|
|
83
57
|
list(
|
|
84
58
|
params: CouponListParams | null | undefined = {},
|
|
@@ -100,11 +74,6 @@ export class Coupons extends APIResource {
|
|
|
100
74
|
|
|
101
75
|
/**
|
|
102
76
|
* Archives a coupon, preventing it from being applied to new subscriptions.
|
|
103
|
-
*
|
|
104
|
-
* @example
|
|
105
|
-
* ```ts
|
|
106
|
-
* const coupon = await client.v1.coupons.archiveCoupon('x');
|
|
107
|
-
* ```
|
|
108
77
|
*/
|
|
109
78
|
archiveCoupon(
|
|
110
79
|
id: string,
|
|
@@ -126,11 +95,6 @@ export class Coupons extends APIResource {
|
|
|
126
95
|
|
|
127
96
|
/**
|
|
128
97
|
* Updates an existing coupon's properties such as name, description, and metadata.
|
|
129
|
-
*
|
|
130
|
-
* @example
|
|
131
|
-
* ```ts
|
|
132
|
-
* const coupon = await client.v1.coupons.updateCoupon('x');
|
|
133
|
-
* ```
|
|
134
98
|
*/
|
|
135
99
|
updateCoupon(id: string, params: CouponUpdateCouponParams, options?: RequestOptions): APIPromise<Coupon> {
|
|
136
100
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -39,14 +39,6 @@ export class Credits extends APIResource {
|
|
|
39
39
|
/**
|
|
40
40
|
* Retrieves the automatic recharge configuration for a customer and currency.
|
|
41
41
|
* Returns default settings if no configuration exists.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* const response = await client.v1.credits.getAutoRecharge({
|
|
46
|
-
* currencyId: 'currencyId',
|
|
47
|
-
* customerId: 'customerId',
|
|
48
|
-
* });
|
|
49
|
-
* ```
|
|
50
42
|
*/
|
|
51
43
|
getAutoRecharge(
|
|
52
44
|
params: CreditGetAutoRechargeParams,
|
|
@@ -69,13 +61,6 @@ export class Credits extends APIResource {
|
|
|
69
61
|
/**
|
|
70
62
|
* Retrieves credit usage time-series data for a customer, grouped by feature, over
|
|
71
63
|
* a specified time range.
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* ```ts
|
|
75
|
-
* const response = await client.v1.credits.getUsage({
|
|
76
|
-
* customerId: 'customerId',
|
|
77
|
-
* });
|
|
78
|
-
* ```
|
|
79
64
|
*/
|
|
80
65
|
getUsage(params: CreditGetUsageParams, options?: RequestOptions): APIPromise<CreditGetUsageResponse> {
|
|
81
66
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params;
|
|
@@ -94,16 +79,6 @@ export class Credits extends APIResource {
|
|
|
94
79
|
|
|
95
80
|
/**
|
|
96
81
|
* Retrieves a paginated list of credit ledger events for a customer.
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* ```ts
|
|
100
|
-
* // Automatically fetches more pages as needed.
|
|
101
|
-
* for await (const creditListLedgerResponse of client.v1.credits.listLedger(
|
|
102
|
-
* { customerId: 'customerId' },
|
|
103
|
-
* )) {
|
|
104
|
-
* // ...
|
|
105
|
-
* }
|
|
106
|
-
* ```
|
|
107
82
|
*/
|
|
108
83
|
listLedger(
|
|
109
84
|
params: CreditListLedgerParams,
|