@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
|
@@ -13,15 +13,6 @@ import { path } from '../../../internal/utils/path';
|
|
|
13
13
|
export class CustomCurrencies extends APIResource {
|
|
14
14
|
/**
|
|
15
15
|
* Creates a new custom currency in the environment.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* const customCurrencyResponse =
|
|
20
|
-
* await client.v1.credits.customCurrencies.create({
|
|
21
|
-
* id: 'id',
|
|
22
|
-
* displayName: 'displayName',
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
16
|
*/
|
|
26
17
|
create(params: CustomCurrencyCreateParams, options?: RequestOptions): APIPromise<CustomCurrencyResponse> {
|
|
27
18
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -40,14 +31,6 @@ export class CustomCurrencies extends APIResource {
|
|
|
40
31
|
|
|
41
32
|
/**
|
|
42
33
|
* Updates an existing custom currency. Only the supplied fields are modified.
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```ts
|
|
46
|
-
* const customCurrencyResponse =
|
|
47
|
-
* await client.v1.credits.customCurrencies.update(
|
|
48
|
-
* 'currencyId',
|
|
49
|
-
* );
|
|
50
|
-
* ```
|
|
51
34
|
*/
|
|
52
35
|
update(
|
|
53
36
|
currencyID: string,
|
|
@@ -72,14 +55,6 @@ export class CustomCurrencies extends APIResource {
|
|
|
72
55
|
* Retrieves a paginated list of custom currencies in the environment. Archived
|
|
73
56
|
* currencies are excluded by default; pass `status=ARCHIVED` (or
|
|
74
57
|
* `status=ACTIVE,ARCHIVED`) to include them.
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* ```ts
|
|
78
|
-
* // Automatically fetches more pages as needed.
|
|
79
|
-
* for await (const customCurrencyListResponse of client.v1.credits.customCurrencies.list()) {
|
|
80
|
-
* // ...
|
|
81
|
-
* }
|
|
82
|
-
* ```
|
|
83
58
|
*/
|
|
84
59
|
list(
|
|
85
60
|
params: CustomCurrencyListParams | null | undefined = {},
|
|
@@ -107,14 +82,6 @@ export class CustomCurrencies extends APIResource {
|
|
|
107
82
|
* Archives a custom currency. Fails if the currency is still associated with any
|
|
108
83
|
* active plan or addon — use the associated-entities endpoint first to inspect
|
|
109
84
|
* dependencies.
|
|
110
|
-
*
|
|
111
|
-
* @example
|
|
112
|
-
* ```ts
|
|
113
|
-
* const customCurrencyResponse =
|
|
114
|
-
* await client.v1.credits.customCurrencies.archive(
|
|
115
|
-
* 'currencyId',
|
|
116
|
-
* );
|
|
117
|
-
* ```
|
|
118
85
|
*/
|
|
119
86
|
archive(
|
|
120
87
|
currencyID: string,
|
|
@@ -137,14 +104,6 @@ export class CustomCurrencies extends APIResource {
|
|
|
137
104
|
/**
|
|
138
105
|
* Lists the active plans and addons that reference a custom currency. Useful
|
|
139
106
|
* before archiving to inspect dependencies.
|
|
140
|
-
*
|
|
141
|
-
* @example
|
|
142
|
-
* ```ts
|
|
143
|
-
* const response =
|
|
144
|
-
* await client.v1.credits.customCurrencies.listAssociatedEntities(
|
|
145
|
-
* 'currencyId',
|
|
146
|
-
* );
|
|
147
|
-
* ```
|
|
148
107
|
*/
|
|
149
108
|
listAssociatedEntities(
|
|
150
109
|
currencyID: string,
|
|
@@ -167,14 +126,6 @@ export class CustomCurrencies extends APIResource {
|
|
|
167
126
|
/**
|
|
168
127
|
* Restores a previously archived custom currency. Fails if another active currency
|
|
169
128
|
* with the same ID already exists.
|
|
170
|
-
*
|
|
171
|
-
* @example
|
|
172
|
-
* ```ts
|
|
173
|
-
* const customCurrencyResponse =
|
|
174
|
-
* await client.v1.credits.customCurrencies.unarchive(
|
|
175
|
-
* 'currencyId',
|
|
176
|
-
* );
|
|
177
|
-
* ```
|
|
178
129
|
*/
|
|
179
130
|
unarchive(
|
|
180
131
|
currencyID: string,
|
|
@@ -14,18 +14,6 @@ export class Grants extends APIResource {
|
|
|
14
14
|
/**
|
|
15
15
|
* Creates a new credit grant for a customer with specified amount, type, and
|
|
16
16
|
* optional billing configuration.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const creditGrantResponse =
|
|
21
|
-
* await client.v1.credits.grants.create({
|
|
22
|
-
* amount: 0,
|
|
23
|
-
* currencyId: 'currencyId',
|
|
24
|
-
* customerId: 'customerId',
|
|
25
|
-
* displayName: 'displayName',
|
|
26
|
-
* grantType: 'PAID',
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
29
17
|
*/
|
|
30
18
|
create(params: GrantCreateParams, options?: RequestOptions): APIPromise<CreditGrantResponse> {
|
|
31
19
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -44,16 +32,6 @@ export class Grants extends APIResource {
|
|
|
44
32
|
|
|
45
33
|
/**
|
|
46
34
|
* Retrieves a paginated list of credit grants for a customer.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* // Automatically fetches more pages as needed.
|
|
51
|
-
* for await (const grantListResponse of client.v1.credits.grants.list(
|
|
52
|
-
* { customerId: 'customerId' },
|
|
53
|
-
* )) {
|
|
54
|
-
* // ...
|
|
55
|
-
* }
|
|
56
|
-
* ```
|
|
57
35
|
*/
|
|
58
36
|
list(
|
|
59
37
|
params: GrantListParams,
|
|
@@ -76,12 +54,6 @@ export class Grants extends APIResource {
|
|
|
76
54
|
/**
|
|
77
55
|
* Voids an existing credit grant, preventing further consumption of the remaining
|
|
78
56
|
* credits.
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* ```ts
|
|
82
|
-
* const creditGrantResponse =
|
|
83
|
-
* await client.v1.credits.grants.void('x');
|
|
84
|
-
* ```
|
|
85
57
|
*/
|
|
86
58
|
void(
|
|
87
59
|
id: string,
|
|
@@ -40,13 +40,6 @@ export class Customers extends APIResource {
|
|
|
40
40
|
/**
|
|
41
41
|
* Retrieves a customer by their unique identifier, including billing information
|
|
42
42
|
* and subscription status.
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```ts
|
|
46
|
-
* const customerResponse = await client.v1.customers.retrieve(
|
|
47
|
-
* 'x',
|
|
48
|
-
* );
|
|
49
|
-
* ```
|
|
50
43
|
*/
|
|
51
44
|
retrieve(
|
|
52
45
|
id: string,
|
|
@@ -69,13 +62,6 @@ export class Customers extends APIResource {
|
|
|
69
62
|
/**
|
|
70
63
|
* Updates an existing customer's properties such as name, email, and billing
|
|
71
64
|
* information.
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* ```ts
|
|
75
|
-
* const customerResponse = await client.v1.customers.update(
|
|
76
|
-
* 'x',
|
|
77
|
-
* );
|
|
78
|
-
* ```
|
|
79
65
|
*/
|
|
80
66
|
update(id: string, params: CustomerUpdateParams, options?: RequestOptions): APIPromise<CustomerResponse> {
|
|
81
67
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -94,14 +80,6 @@ export class Customers extends APIResource {
|
|
|
94
80
|
|
|
95
81
|
/**
|
|
96
82
|
* Retrieves a paginated list of customers in the environment.
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* ```ts
|
|
100
|
-
* // Automatically fetches more pages as needed.
|
|
101
|
-
* for await (const customerListResponse of client.v1.customers.list()) {
|
|
102
|
-
* // ...
|
|
103
|
-
* }
|
|
104
|
-
* ```
|
|
105
83
|
*/
|
|
106
84
|
list(
|
|
107
85
|
params: CustomerListParams | null | undefined = {},
|
|
@@ -124,13 +102,6 @@ export class Customers extends APIResource {
|
|
|
124
102
|
/**
|
|
125
103
|
* Archives a customer, preventing new subscriptions. Optionally cancels existing
|
|
126
104
|
* subscriptions.
|
|
127
|
-
*
|
|
128
|
-
* @example
|
|
129
|
-
* ```ts
|
|
130
|
-
* const customerResponse = await client.v1.customers.archive(
|
|
131
|
-
* 'x',
|
|
132
|
-
* );
|
|
133
|
-
* ```
|
|
134
105
|
*/
|
|
135
106
|
archive(
|
|
136
107
|
id: string,
|
|
@@ -159,13 +130,6 @@ export class Customers extends APIResource {
|
|
|
159
130
|
* mechanisms, and low-latency guarantees. It is not recommended for hot-path
|
|
160
131
|
* entitlement checks. For production use, consider using the Stigg Node Server SDK
|
|
161
132
|
* with caching or the Sidecar for low-latency cached responses.
|
|
162
|
-
*
|
|
163
|
-
* @example
|
|
164
|
-
* ```ts
|
|
165
|
-
* const response = await client.v1.customers.checkEntitlement(
|
|
166
|
-
* 'x',
|
|
167
|
-
* );
|
|
168
|
-
* ```
|
|
169
133
|
*/
|
|
170
134
|
checkEntitlement(
|
|
171
135
|
id: string,
|
|
@@ -189,19 +153,6 @@ export class Customers extends APIResource {
|
|
|
189
153
|
/**
|
|
190
154
|
* Imports multiple customers in bulk. Used for migrating customer data from
|
|
191
155
|
* external systems.
|
|
192
|
-
*
|
|
193
|
-
* @example
|
|
194
|
-
* ```ts
|
|
195
|
-
* const response = await client.v1.customers.import({
|
|
196
|
-
* customers: [
|
|
197
|
-
* {
|
|
198
|
-
* id: 'id',
|
|
199
|
-
* email: 'dev@stainless.com',
|
|
200
|
-
* name: 'name',
|
|
201
|
-
* },
|
|
202
|
-
* ],
|
|
203
|
-
* });
|
|
204
|
-
* ```
|
|
205
156
|
*/
|
|
206
157
|
import(params: CustomerImportParams, options?: RequestOptions): APIPromise<CustomerImportResponse> {
|
|
207
158
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -220,16 +171,6 @@ export class Customers extends APIResource {
|
|
|
220
171
|
|
|
221
172
|
/**
|
|
222
173
|
* Retrieves a paginated list of resources within the same customer.
|
|
223
|
-
*
|
|
224
|
-
* @example
|
|
225
|
-
* ```ts
|
|
226
|
-
* // Automatically fetches more pages as needed.
|
|
227
|
-
* for await (const customerListResourcesResponse of client.v1.customers.listResources(
|
|
228
|
-
* 'x',
|
|
229
|
-
* )) {
|
|
230
|
-
* // ...
|
|
231
|
-
* }
|
|
232
|
-
* ```
|
|
233
174
|
*/
|
|
234
175
|
listResources(
|
|
235
176
|
id: string,
|
|
@@ -257,12 +198,6 @@ export class Customers extends APIResource {
|
|
|
257
198
|
/**
|
|
258
199
|
* Creates a new customer and optionally provisions an initial subscription in a
|
|
259
200
|
* single operation.
|
|
260
|
-
*
|
|
261
|
-
* @example
|
|
262
|
-
* ```ts
|
|
263
|
-
* const customerResponse =
|
|
264
|
-
* await client.v1.customers.provision({ id: 'id' });
|
|
265
|
-
* ```
|
|
266
201
|
*/
|
|
267
202
|
provision(params: CustomerProvisionParams, options?: RequestOptions): APIPromise<CustomerResponse> {
|
|
268
203
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -287,12 +222,6 @@ export class Customers extends APIResource {
|
|
|
287
222
|
* mechanisms, and low-latency guarantees. It is not recommended for hot-path
|
|
288
223
|
* entitlement checks. For production use, consider using the Stigg Node Server SDK
|
|
289
224
|
* with caching or the Sidecar for low-latency cached responses.
|
|
290
|
-
*
|
|
291
|
-
* @example
|
|
292
|
-
* ```ts
|
|
293
|
-
* const response =
|
|
294
|
-
* await client.v1.customers.retrieveEntitlements('x');
|
|
295
|
-
* ```
|
|
296
225
|
*/
|
|
297
226
|
retrieveEntitlements(
|
|
298
227
|
id: string,
|
|
@@ -315,12 +244,6 @@ export class Customers extends APIResource {
|
|
|
315
244
|
|
|
316
245
|
/**
|
|
317
246
|
* Restores an archived customer, allowing them to create new subscriptions again.
|
|
318
|
-
*
|
|
319
|
-
* @example
|
|
320
|
-
* ```ts
|
|
321
|
-
* const customerResponse =
|
|
322
|
-
* await client.v1.customers.unarchive('x');
|
|
323
|
-
* ```
|
|
324
247
|
*/
|
|
325
248
|
unarchive(
|
|
326
249
|
id: string,
|
|
@@ -11,15 +11,6 @@ import { path } from '../../../internal/utils/path';
|
|
|
11
11
|
export class Integrations extends APIResource {
|
|
12
12
|
/**
|
|
13
13
|
* Retrieves a specific integration for a customer by integration ID.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* const customerIntegrationResponse =
|
|
18
|
-
* await client.v1.customers.integrations.retrieve(
|
|
19
|
-
* 'integrationId',
|
|
20
|
-
* { id: 'id' },
|
|
21
|
-
* );
|
|
22
|
-
* ```
|
|
23
14
|
*/
|
|
24
15
|
retrieve(
|
|
25
16
|
integrationID: string,
|
|
@@ -42,15 +33,6 @@ export class Integrations extends APIResource {
|
|
|
42
33
|
/**
|
|
43
34
|
* Updates a customer's integration link, such as changing the synced external
|
|
44
35
|
* entity ID.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* const customerIntegrationResponse =
|
|
49
|
-
* await client.v1.customers.integrations.update(
|
|
50
|
-
* 'integrationId',
|
|
51
|
-
* { id: 'id', syncedEntityId: 'syncedEntityId' },
|
|
52
|
-
* );
|
|
53
|
-
* ```
|
|
54
36
|
*/
|
|
55
37
|
update(
|
|
56
38
|
integrationID: string,
|
|
@@ -74,16 +56,6 @@ export class Integrations extends APIResource {
|
|
|
74
56
|
/**
|
|
75
57
|
* Retrieves a paginated list of a customer's external integrations (billing, CRM,
|
|
76
58
|
* etc.).
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* ```ts
|
|
80
|
-
* // Automatically fetches more pages as needed.
|
|
81
|
-
* for await (const integrationListResponse of client.v1.customers.integrations.list(
|
|
82
|
-
* 'x',
|
|
83
|
-
* )) {
|
|
84
|
-
* // ...
|
|
85
|
-
* }
|
|
86
|
-
* ```
|
|
87
59
|
*/
|
|
88
60
|
list(
|
|
89
61
|
id: string,
|
|
@@ -111,16 +83,6 @@ export class Integrations extends APIResource {
|
|
|
111
83
|
/**
|
|
112
84
|
* Links a customer to an external integration by specifying the vendor and
|
|
113
85
|
* external entity ID.
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* ```ts
|
|
117
|
-
* const customerIntegrationResponse =
|
|
118
|
-
* await client.v1.customers.integrations.link('x', {
|
|
119
|
-
* id: 'id',
|
|
120
|
-
* syncedEntityId: 'syncedEntityId',
|
|
121
|
-
* vendorIdentifier: 'AUTH0',
|
|
122
|
-
* });
|
|
123
|
-
* ```
|
|
124
86
|
*/
|
|
125
87
|
link(
|
|
126
88
|
id: string,
|
|
@@ -143,15 +105,6 @@ export class Integrations extends APIResource {
|
|
|
143
105
|
|
|
144
106
|
/**
|
|
145
107
|
* Removes the link between a customer and an external integration.
|
|
146
|
-
*
|
|
147
|
-
* @example
|
|
148
|
-
* ```ts
|
|
149
|
-
* const customerIntegrationResponse =
|
|
150
|
-
* await client.v1.customers.integrations.unlink(
|
|
151
|
-
* 'integrationId',
|
|
152
|
-
* { id: 'id' },
|
|
153
|
-
* );
|
|
154
|
-
* ```
|
|
155
108
|
*/
|
|
156
109
|
unlink(
|
|
157
110
|
integrationID: string,
|
|
@@ -14,16 +14,6 @@ export class PaymentMethod extends APIResource {
|
|
|
14
14
|
/**
|
|
15
15
|
* Attaches a payment method to a customer for billing. Required for paid
|
|
16
16
|
* subscriptions when integrated with a billing provider.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const customerResponse =
|
|
21
|
-
* await client.v1.customers.paymentMethod.attach('x', {
|
|
22
|
-
* integrationId: 'integrationId',
|
|
23
|
-
* paymentMethodId: 'paymentMethodId',
|
|
24
|
-
* vendorIdentifier: 'AUTH0',
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
17
|
*/
|
|
28
18
|
attach(
|
|
29
19
|
id: string,
|
|
@@ -47,12 +37,6 @@ export class PaymentMethod extends APIResource {
|
|
|
47
37
|
/**
|
|
48
38
|
* Removes the payment method from a customer. Ensure active paid subscriptions
|
|
49
39
|
* have an alternative payment method.
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* ```ts
|
|
53
|
-
* const customerResponse =
|
|
54
|
-
* await client.v1.customers.paymentMethod.detach('x');
|
|
55
|
-
* ```
|
|
56
40
|
*/
|
|
57
41
|
detach(
|
|
58
42
|
id: string,
|
|
@@ -14,38 +14,6 @@ export class PromotionalEntitlements extends APIResource {
|
|
|
14
14
|
/**
|
|
15
15
|
* Grants promotional entitlements to a customer, providing feature access outside
|
|
16
16
|
* their subscription. Entitlements can be time-limited or permanent.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const promotionalEntitlement =
|
|
21
|
-
* await client.v1.customers.promotionalEntitlements.create(
|
|
22
|
-
* 'x',
|
|
23
|
-
* {
|
|
24
|
-
* promotionalEntitlements: [
|
|
25
|
-
* {
|
|
26
|
-
* customEndDate: '2019-12-27T18:11:19.117Z',
|
|
27
|
-
* enumValues: ['string'],
|
|
28
|
-
* featureId: 'featureId',
|
|
29
|
-
* hasSoftLimit: true,
|
|
30
|
-
* hasUnlimitedUsage: true,
|
|
31
|
-
* isVisible: true,
|
|
32
|
-
* monthlyResetPeriodConfiguration: {
|
|
33
|
-
* accordingTo: 'SubscriptionStart',
|
|
34
|
-
* },
|
|
35
|
-
* period: '1 week',
|
|
36
|
-
* resetPeriod: 'YEAR',
|
|
37
|
-
* usageLimit: -9007199254740991,
|
|
38
|
-
* weeklyResetPeriodConfiguration: {
|
|
39
|
-
* accordingTo: 'SubscriptionStart',
|
|
40
|
-
* },
|
|
41
|
-
* yearlyResetPeriodConfiguration: {
|
|
42
|
-
* accordingTo: 'SubscriptionStart',
|
|
43
|
-
* },
|
|
44
|
-
* },
|
|
45
|
-
* ],
|
|
46
|
-
* },
|
|
47
|
-
* );
|
|
48
|
-
* ```
|
|
49
17
|
*/
|
|
50
18
|
create(
|
|
51
19
|
id: string,
|
|
@@ -68,16 +36,6 @@ export class PromotionalEntitlements extends APIResource {
|
|
|
68
36
|
|
|
69
37
|
/**
|
|
70
38
|
* Retrieves a paginated list of a customer's promotional entitlements.
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```ts
|
|
74
|
-
* // Automatically fetches more pages as needed.
|
|
75
|
-
* for await (const promotionalEntitlementListResponse of client.v1.customers.promotionalEntitlements.list(
|
|
76
|
-
* 'x',
|
|
77
|
-
* )) {
|
|
78
|
-
* // ...
|
|
79
|
-
* }
|
|
80
|
-
* ```
|
|
81
39
|
*/
|
|
82
40
|
list(
|
|
83
41
|
id: string,
|
|
@@ -105,15 +63,6 @@ export class PromotionalEntitlements extends APIResource {
|
|
|
105
63
|
/**
|
|
106
64
|
* Revokes a previously granted promotional entitlement from a customer for a
|
|
107
65
|
* specific feature.
|
|
108
|
-
*
|
|
109
|
-
* @example
|
|
110
|
-
* ```ts
|
|
111
|
-
* const response =
|
|
112
|
-
* await client.v1.customers.promotionalEntitlements.revoke(
|
|
113
|
-
* 'featureId',
|
|
114
|
-
* { id: 'id' },
|
|
115
|
-
* );
|
|
116
|
-
* ```
|
|
117
66
|
*/
|
|
118
67
|
revoke(
|
|
119
68
|
featureID: string,
|
|
@@ -5,10 +5,12 @@ import * as DestinationsAPI from './destinations';
|
|
|
5
5
|
import {
|
|
6
6
|
DestinationCreateParams,
|
|
7
7
|
DestinationCreateResponse,
|
|
8
|
+
DestinationDeleteParams,
|
|
8
9
|
DestinationDeleteResponse,
|
|
9
10
|
Destinations,
|
|
10
11
|
} from './destinations';
|
|
11
12
|
import { APIPromise } from '../../../../core/api-promise';
|
|
13
|
+
import { buildHeaders } from '../../../../internal/headers';
|
|
12
14
|
import { RequestOptions } from '../../../../internal/request-options';
|
|
13
15
|
|
|
14
16
|
export class DataExport extends APIResource {
|
|
@@ -17,37 +19,45 @@ export class DataExport extends APIResource {
|
|
|
17
19
|
/**
|
|
18
20
|
* Mint a scoped JWT for the FE embedded SDK. Lazy-creates the DATA_EXPORT
|
|
19
21
|
* integration if needed.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* const response =
|
|
24
|
-
* await client.v1.events.dataExport.mintScopedToken({
|
|
25
|
-
* applicationOrigin: 'x',
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
22
|
*/
|
|
29
23
|
mintScopedToken(
|
|
30
|
-
|
|
24
|
+
params: DataExportMintScopedTokenParams,
|
|
31
25
|
options?: RequestOptions,
|
|
32
26
|
): APIPromise<DataExportMintScopedTokenResponse> {
|
|
33
|
-
|
|
27
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
28
|
+
return this._client.post('/api/v1/data-export/scoped-token', {
|
|
29
|
+
body,
|
|
30
|
+
...options,
|
|
31
|
+
headers: buildHeaders([
|
|
32
|
+
{
|
|
33
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
34
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
35
|
+
},
|
|
36
|
+
options?.headers,
|
|
37
|
+
]),
|
|
38
|
+
});
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
/**
|
|
37
42
|
* Trigger a sync for one destination or all destinations under the provider
|
|
38
43
|
* entity.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* const response =
|
|
43
|
-
* await client.v1.events.dataExport.triggerSync();
|
|
44
|
-
* ```
|
|
45
44
|
*/
|
|
46
45
|
triggerSync(
|
|
47
|
-
|
|
46
|
+
params: DataExportTriggerSyncParams,
|
|
48
47
|
options?: RequestOptions,
|
|
49
48
|
): APIPromise<DataExportTriggerSyncResponse> {
|
|
50
|
-
|
|
49
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
50
|
+
return this._client.post('/api/v1/data-export/sync', {
|
|
51
|
+
body,
|
|
52
|
+
...options,
|
|
53
|
+
headers: buildHeaders([
|
|
54
|
+
{
|
|
55
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
56
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
57
|
+
},
|
|
58
|
+
options?.headers,
|
|
59
|
+
]),
|
|
60
|
+
});
|
|
51
61
|
}
|
|
52
62
|
}
|
|
53
63
|
|
|
@@ -134,21 +144,47 @@ export namespace DataExportTriggerSyncResponse {
|
|
|
134
144
|
|
|
135
145
|
export interface DataExportMintScopedTokenParams {
|
|
136
146
|
/**
|
|
137
|
-
* FE origin the resulting JWT is bound to (provider-side anti-fraud)
|
|
147
|
+
* Body param: FE origin the resulting JWT is bound to (provider-side anti-fraud)
|
|
138
148
|
*/
|
|
139
149
|
applicationOrigin: string;
|
|
140
150
|
|
|
141
151
|
/**
|
|
142
|
-
* Pin the token to a specific warehouse connect flow
|
|
152
|
+
* Body param: Pin the token to a specific warehouse connect flow
|
|
143
153
|
*/
|
|
144
154
|
destinationType?: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
158
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
159
|
+
*/
|
|
160
|
+
'X-ACCOUNT-ID'?: string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
164
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
165
|
+
* intrinsic to the key).
|
|
166
|
+
*/
|
|
167
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
145
168
|
}
|
|
146
169
|
|
|
147
170
|
export interface DataExportTriggerSyncParams {
|
|
148
171
|
/**
|
|
149
|
-
* Provider destination ID to sync. Omit to sync all destinations.
|
|
172
|
+
* Body param: Provider destination ID to sync. Omit to sync all destinations.
|
|
150
173
|
*/
|
|
151
174
|
destinationId?: string;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
178
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
179
|
+
*/
|
|
180
|
+
'X-ACCOUNT-ID'?: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
184
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
185
|
+
* intrinsic to the key).
|
|
186
|
+
*/
|
|
187
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
152
188
|
}
|
|
153
189
|
|
|
154
190
|
DataExport.Destinations = Destinations;
|
|
@@ -166,5 +202,6 @@ export declare namespace DataExport {
|
|
|
166
202
|
type DestinationCreateResponse as DestinationCreateResponse,
|
|
167
203
|
type DestinationDeleteResponse as DestinationDeleteResponse,
|
|
168
204
|
type DestinationCreateParams as DestinationCreateParams,
|
|
205
|
+
type DestinationDeleteParams as DestinationDeleteParams,
|
|
169
206
|
};
|
|
170
207
|
}
|