@stigg/typescript 0.1.0-beta.2 → 0.1.0-beta.21
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 +170 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/v1/addons/addons.d.mts +372 -32
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +372 -32
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +173 -15
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +173 -15
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +93 -5
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +93 -5
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +80 -8
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +80 -8
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/addons/index.d.mts +2 -2
- package/resources/v1/addons/index.d.mts.map +1 -1
- package/resources/v1/addons/index.d.ts +2 -2
- package/resources/v1/addons/index.d.ts.map +1 -1
- package/resources/v1/addons/index.js.map +1 -1
- package/resources/v1/addons/index.mjs.map +1 -1
- package/resources/v1/addons.d.mts.map +1 -1
- package/resources/v1/addons.d.ts.map +1 -1
- package/resources/v1/addons.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +117 -21
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +117 -21
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +96 -9
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +96 -9
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +212 -27
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +212 -27
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +66 -7
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +66 -7
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +150 -28
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +150 -28
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +125 -12
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +125 -12
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +91 -26
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +91 -26
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +63 -5
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +63 -5
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +3 -4
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +3 -4
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js +1 -3
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs +0 -1
- package/resources/v1/credits/index.mjs.map +1 -1
- package/resources/v1/credits.d.mts.map +1 -1
- package/resources/v1/credits.d.ts.map +1 -1
- package/resources/v1/credits.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +249 -55
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +249 -55
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +201 -19
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +201 -19
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -2
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -2
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +116 -14
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +116 -14
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +104 -9
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +104 -9
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +48 -8
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +48 -8
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +42 -4
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +42 -4
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +93 -9
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +93 -9
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +89 -6
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +89 -6
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/customers.d.mts.map +1 -1
- package/resources/v1/customers.d.ts.map +1 -1
- package/resources/v1/customers.mjs.map +1 -1
- package/resources/v1/events/beta/beta.d.mts +14 -0
- package/resources/v1/events/beta/beta.d.mts.map +1 -0
- package/resources/v1/events/beta/beta.d.ts +14 -0
- package/resources/v1/events/beta/beta.d.ts.map +1 -0
- package/resources/v1/events/beta/beta.js +21 -0
- package/resources/v1/events/beta/beta.js.map +1 -0
- package/resources/v1/events/beta/beta.mjs +16 -0
- package/resources/v1/events/beta/beta.mjs.map +1 -0
- package/resources/v1/events/beta/customers/assignments.d.mts +200 -0
- package/resources/v1/events/beta/customers/assignments.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/assignments.d.ts +200 -0
- package/resources/v1/events/beta/customers/assignments.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/assignments.js +85 -0
- package/resources/v1/events/beta/customers/assignments.js.map +1 -0
- package/resources/v1/events/beta/customers/assignments.mjs +81 -0
- package/resources/v1/events/beta/customers/assignments.mjs.map +1 -0
- package/resources/v1/events/beta/customers/customers.d.mts +18 -0
- package/resources/v1/events/beta/customers/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/customers.d.ts +18 -0
- package/resources/v1/events/beta/customers/customers.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/customers.js +25 -0
- package/resources/v1/events/beta/customers/customers.js.map +1 -0
- package/resources/v1/events/beta/customers/customers.mjs +20 -0
- package/resources/v1/events/beta/customers/customers.mjs.map +1 -0
- package/resources/v1/events/beta/customers/entities.d.mts +360 -0
- package/resources/v1/events/beta/customers/entities.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/entities.d.ts +360 -0
- package/resources/v1/events/beta/customers/entities.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/entities.js +159 -0
- package/resources/v1/events/beta/customers/entities.js.map +1 -0
- package/resources/v1/events/beta/customers/entities.mjs +155 -0
- package/resources/v1/events/beta/customers/entities.mjs.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.d.mts +251 -0
- package/resources/v1/events/beta/customers/entitlements.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.d.ts +251 -0
- package/resources/v1/events/beta/customers/entitlements.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.js +38 -0
- package/resources/v1/events/beta/customers/entitlements.js.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.mjs +34 -0
- package/resources/v1/events/beta/customers/entitlements.mjs.map +1 -0
- package/resources/v1/events/beta/customers/index.d.mts +5 -0
- package/resources/v1/events/beta/customers/index.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/index.d.ts +5 -0
- package/resources/v1/events/beta/customers/index.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/index.js +13 -0
- package/resources/v1/events/beta/customers/index.js.map +1 -0
- package/resources/v1/events/beta/customers/index.mjs +6 -0
- package/resources/v1/events/beta/customers/index.mjs.map +1 -0
- package/resources/v1/events/beta/customers.d.mts +2 -0
- package/resources/v1/events/beta/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers.d.ts +2 -0
- package/resources/v1/events/beta/customers.d.ts.map +1 -0
- package/resources/v1/events/beta/customers.js +6 -0
- package/resources/v1/events/beta/customers.js.map +1 -0
- package/resources/v1/events/beta/customers.mjs +3 -0
- package/resources/v1/events/beta/customers.mjs.map +1 -0
- package/resources/v1/events/beta/entity-types.d.mts +166 -0
- package/resources/v1/events/beta/entity-types.d.mts.map +1 -0
- package/resources/v1/events/beta/entity-types.d.ts +166 -0
- package/resources/v1/events/beta/entity-types.d.ts.map +1 -0
- package/resources/v1/events/beta/entity-types.js +76 -0
- package/resources/v1/events/beta/entity-types.js.map +1 -0
- package/resources/v1/events/beta/entity-types.mjs +72 -0
- package/resources/v1/events/beta/entity-types.mjs.map +1 -0
- package/resources/v1/events/beta/index.d.mts +4 -0
- package/resources/v1/events/beta/index.d.mts.map +1 -0
- package/resources/v1/events/beta/index.d.ts +4 -0
- package/resources/v1/events/beta/index.d.ts.map +1 -0
- package/resources/v1/events/beta/index.js +11 -0
- package/resources/v1/events/beta/index.js.map +1 -0
- package/resources/v1/events/beta/index.mjs +5 -0
- package/resources/v1/events/beta/index.mjs.map +1 -0
- package/resources/v1/events/beta.d.mts +2 -0
- package/resources/v1/events/beta.d.mts.map +1 -0
- package/resources/v1/events/beta.d.ts +2 -0
- package/resources/v1/events/beta.d.ts.map +1 -0
- package/resources/v1/events/beta.js +6 -0
- package/resources/v1/events/beta.js.map +1 -0
- package/resources/v1/events/beta.mjs +3 -0
- package/resources/v1/events/beta.mjs.map +1 -0
- package/resources/v1/events/data-export/data-export.d.mts +126 -0
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export/data-export.d.ts +126 -0
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export/data-export.js +45 -0
- package/resources/v1/events/data-export/data-export.js.map +1 -0
- package/resources/v1/events/data-export/data-export.mjs +40 -0
- package/resources/v1/events/data-export/data-export.mjs.map +1 -0
- package/resources/v1/events/data-export/destinations.d.mts +202 -0
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
- package/resources/v1/events/data-export/destinations.d.ts +202 -0
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
- package/resources/v1/events/data-export/destinations.js +41 -0
- package/resources/v1/events/data-export/destinations.js.map +1 -0
- package/resources/v1/events/data-export/destinations.mjs +37 -0
- package/resources/v1/events/data-export/destinations.mjs.map +1 -0
- package/resources/v1/events/data-export/index.d.mts +3 -0
- package/resources/v1/events/data-export/index.d.mts.map +1 -0
- package/resources/v1/events/data-export/index.d.ts +3 -0
- package/resources/v1/events/data-export/index.d.ts.map +1 -0
- package/resources/v1/events/data-export/index.js +9 -0
- package/resources/v1/events/data-export/index.js.map +1 -0
- package/resources/v1/events/data-export/index.mjs +4 -0
- package/resources/v1/events/data-export/index.mjs.map +1 -0
- package/resources/v1/events/data-export.d.mts +2 -0
- package/resources/v1/events/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export.d.ts +2 -0
- package/resources/v1/events/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export.js +6 -0
- package/resources/v1/events/data-export.js.map +1 -0
- package/resources/v1/events/data-export.mjs +3 -0
- package/resources/v1/events/data-export.mjs.map +1 -0
- package/resources/v1/events/events.d.mts +98 -0
- package/resources/v1/events/events.d.mts.map +1 -0
- package/resources/v1/events/events.d.ts +98 -0
- package/resources/v1/events/events.d.ts.map +1 -0
- package/resources/v1/events/events.js +56 -0
- package/resources/v1/events/events.js.map +1 -0
- package/resources/v1/events/events.mjs +51 -0
- package/resources/v1/events/events.mjs.map +1 -0
- package/resources/v1/events/index.d.mts +4 -0
- package/resources/v1/events/index.d.mts.map +1 -0
- package/resources/v1/events/index.d.ts +4 -0
- package/resources/v1/events/index.d.ts.map +1 -0
- package/resources/v1/events/index.js +11 -0
- package/resources/v1/events/index.js.map +1 -0
- package/resources/v1/events/index.mjs +5 -0
- package/resources/v1/events/index.mjs.map +1 -0
- package/resources/v1/events.d.mts +1 -65
- package/resources/v1/events.d.mts.map +1 -1
- package/resources/v1/events.d.ts +1 -65
- package/resources/v1/events.d.ts.map +1 -1
- package/resources/v1/events.js +2 -15
- package/resources/v1/events.js.map +1 -1
- package/resources/v1/events.mjs +1 -13
- package/resources/v1/events.mjs.map +1 -1
- package/resources/v1/features.d.mts +152 -31
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +152 -31
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +115 -11
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +115 -11
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +9 -9
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +9 -9
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +6 -6
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +93 -5
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +93 -5
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +80 -8
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +80 -8
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/index.d.mts +2 -2
- package/resources/v1/plans/index.d.mts.map +1 -1
- package/resources/v1/plans/index.d.ts +2 -2
- package/resources/v1/plans/index.d.ts.map +1 -1
- package/resources/v1/plans/index.js.map +1 -1
- package/resources/v1/plans/index.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +565 -32
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +565 -32
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +204 -16
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +204 -16
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/plans.d.mts.map +1 -1
- package/resources/v1/plans.d.ts.map +1 -1
- package/resources/v1/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +140 -23
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +140 -23
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +116 -11
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +116 -11
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +45 -3
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +45 -3
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +41 -4
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +41 -4
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +4 -4
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +4 -4
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +1 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +21 -2
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +21 -2
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +19 -2
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +19 -2
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +341 -85
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +341 -85
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +207 -19
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +209 -21
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +42 -4
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +42 -4
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +39 -4
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +39 -4
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions.mjs.map +1 -1
- package/resources/v1/usage.d.mts +48 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +48 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +50 -4
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +50 -4
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +18 -18
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +18 -18
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +2 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +2 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1.d.mts.map +1 -1
- package/resources/v1.d.ts.map +1 -1
- package/resources/v1.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/resources/v1/addons/addons.ts +908 -36
- package/src/resources/v1/addons/entitlements.ts +154 -10
- package/src/resources/v1/addons/index.ts +8 -0
- package/src/resources/v1/coupons.ts +194 -27
- package/src/resources/v1/credits/credits.ts +287 -35
- package/src/resources/v1/credits/custom-currencies.ts +245 -38
- package/src/resources/v1/credits/grants.ts +132 -26
- package/src/resources/v1/credits/index.ts +7 -6
- package/src/resources/v1/customers/customers.ts +415 -67
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +184 -18
- package/src/resources/v1/customers/payment-method.ts +85 -10
- package/src/resources/v1/customers/promotional-entitlements.ts +133 -11
- package/src/resources/v1/events/beta/beta.ts +35 -0
- package/src/resources/v1/events/beta/customers/assignments.ts +277 -0
- package/src/resources/v1/events/beta/customers/customers.ts +71 -0
- package/src/resources/v1/events/beta/customers/entities.ts +501 -0
- package/src/resources/v1/events/beta/customers/entitlements.ts +354 -0
- package/src/resources/v1/events/beta/customers/index.ts +26 -0
- package/src/resources/v1/events/beta/customers.ts +3 -0
- package/src/resources/v1/events/beta/entity-types.ts +226 -0
- package/src/resources/v1/events/beta/index.ts +12 -0
- package/src/resources/v1/events/beta.ts +3 -0
- package/src/resources/v1/events/data-export/data-export.ts +170 -0
- package/src/resources/v1/events/data-export/destinations.ts +243 -0
- package/src/resources/v1/events/data-export/index.ts +15 -0
- package/src/resources/v1/events/data-export.ts +3 -0
- package/src/resources/v1/events/events.ts +141 -0
- package/src/resources/v1/events/index.ts +11 -0
- package/src/resources/v1/events.ts +1 -75
- package/src/resources/v1/features.ts +252 -39
- package/src/resources/v1/index.ts +31 -1
- package/src/resources/v1/plans/entitlements.ts +154 -10
- package/src/resources/v1/plans/index.ts +11 -0
- package/src/resources/v1/plans/plans.ts +1509 -37
- package/src/resources/v1/products.ts +235 -30
- package/src/resources/v1/subscriptions/future-update.ts +84 -5
- package/src/resources/v1/subscriptions/index.ts +9 -2
- package/src/resources/v1/subscriptions/invoice.ts +42 -3
- package/src/resources/v1/subscriptions/subscriptions.ts +509 -90
- package/src/resources/v1/subscriptions/usage.ts +74 -5
- package/src/resources/v1/usage.ts +77 -5
- package/src/resources/v1/v1.ts +62 -2
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/v1/credits/auto-recharge.d.mts +0 -84
- package/resources/v1/credits/auto-recharge.d.mts.map +0 -1
- package/resources/v1/credits/auto-recharge.d.ts +0 -84
- package/resources/v1/credits/auto-recharge.d.ts.map +0 -1
- package/resources/v1/credits/auto-recharge.js +0 -16
- package/resources/v1/credits/auto-recharge.js.map +0 -1
- package/resources/v1/credits/auto-recharge.mjs +0 -12
- package/resources/v1/credits/auto-recharge.mjs.map +0 -1
- package/src/resources/v1/credits/auto-recharge.ts +0 -109
|
@@ -8,29 +8,72 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
8
8
|
export declare class Features extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Archives a feature, preventing it from being used in new entitlements.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const feature = await client.v1.features.archiveFeature(
|
|
15
|
+
* 'x',
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
11
18
|
*/
|
|
12
|
-
archiveFeature(id: string, options?: RequestOptions): APIPromise<Feature>;
|
|
19
|
+
archiveFeature(id: string, params?: FeatureArchiveFeatureParams | null | undefined, options?: RequestOptions): APIPromise<Feature>;
|
|
13
20
|
/**
|
|
14
21
|
* Creates a new feature with the specified type, metering, and configuration.
|
|
15
|
-
|
|
16
|
-
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const feature = await client.v1.features.createFeature({
|
|
26
|
+
* id: 'id',
|
|
27
|
+
* displayName: 'displayName',
|
|
28
|
+
* featureType: 'BOOLEAN',
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
createFeature(params: FeatureCreateFeatureParams, options?: RequestOptions): APIPromise<Feature>;
|
|
17
33
|
/**
|
|
18
34
|
* Retrieves a paginated list of features in the environment.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* // Automatically fetches more pages as needed.
|
|
39
|
+
* for await (const featureListFeaturesResponse of client.v1.features.listFeatures()) {
|
|
40
|
+
* // ...
|
|
41
|
+
* }
|
|
42
|
+
* ```
|
|
19
43
|
*/
|
|
20
|
-
listFeatures(
|
|
44
|
+
listFeatures(params?: FeatureListFeaturesParams | null | undefined, options?: RequestOptions): PagePromise<FeatureListFeaturesResponsesMyCursorIDPage, FeatureListFeaturesResponse>;
|
|
21
45
|
/**
|
|
22
46
|
* Retrieves a feature by its unique identifier.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const feature = await client.v1.features.retrieveFeature(
|
|
51
|
+
* 'x',
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
23
54
|
*/
|
|
24
|
-
retrieveFeature(id: string, options?: RequestOptions): APIPromise<Feature>;
|
|
55
|
+
retrieveFeature(id: string, params?: FeatureRetrieveFeatureParams | null | undefined, options?: RequestOptions): APIPromise<Feature>;
|
|
25
56
|
/**
|
|
26
57
|
* Restores an archived feature, allowing it to be used in entitlements again.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const feature = await client.v1.features.unarchiveFeature(
|
|
62
|
+
* 'x',
|
|
63
|
+
* );
|
|
64
|
+
* ```
|
|
27
65
|
*/
|
|
28
|
-
unarchiveFeature(id: string, options?: RequestOptions): APIPromise<Feature>;
|
|
66
|
+
unarchiveFeature(id: string, params?: FeatureUnarchiveFeatureParams | null | undefined, options?: RequestOptions): APIPromise<Feature>;
|
|
29
67
|
/**
|
|
30
68
|
* Updates an existing feature's properties such as display name, description, and
|
|
31
69
|
* configuration.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const feature = await client.v1.features.updateFeature('x');
|
|
74
|
+
* ```
|
|
32
75
|
*/
|
|
33
|
-
updateFeature(id: string,
|
|
76
|
+
updateFeature(id: string, params: FeatureUpdateFeatureParams, options?: RequestOptions): APIPromise<Feature>;
|
|
34
77
|
}
|
|
35
78
|
export type FeatureListFeaturesResponsesMyCursorIDPage = MyCursorIDPage<FeatureListFeaturesResponse>;
|
|
36
79
|
/**
|
|
@@ -228,53 +271,77 @@ export declare namespace FeatureListFeaturesResponse {
|
|
|
228
271
|
round: 'UP' | 'DOWN';
|
|
229
272
|
}
|
|
230
273
|
}
|
|
274
|
+
export interface FeatureArchiveFeatureParams {
|
|
275
|
+
/**
|
|
276
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
277
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
278
|
+
*/
|
|
279
|
+
'X-ACCOUNT-ID'?: string;
|
|
280
|
+
/**
|
|
281
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
282
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
283
|
+
* key).
|
|
284
|
+
*/
|
|
285
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
286
|
+
}
|
|
231
287
|
export interface FeatureCreateFeatureParams {
|
|
232
288
|
/**
|
|
233
|
-
* The unique identifier for the feature
|
|
289
|
+
* Body param: The unique identifier for the feature
|
|
234
290
|
*/
|
|
235
291
|
id: string;
|
|
236
292
|
/**
|
|
237
|
-
* The display name for the feature
|
|
293
|
+
* Body param: The display name for the feature
|
|
238
294
|
*/
|
|
239
295
|
displayName: string;
|
|
240
296
|
/**
|
|
241
|
-
* The type of the feature
|
|
297
|
+
* Body param: The type of the feature
|
|
242
298
|
*/
|
|
243
299
|
featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
|
|
244
300
|
/**
|
|
245
|
-
* The description for the feature
|
|
301
|
+
* Body param: The description for the feature
|
|
246
302
|
*/
|
|
247
303
|
description?: string;
|
|
248
304
|
/**
|
|
249
|
-
* The configuration data for the feature
|
|
305
|
+
* Body param: The configuration data for the feature
|
|
250
306
|
*/
|
|
251
307
|
enumConfiguration?: Array<FeatureCreateFeatureParams.EnumConfiguration>;
|
|
252
308
|
/**
|
|
253
|
-
* The status of the feature
|
|
309
|
+
* Body param: The status of the feature
|
|
254
310
|
*/
|
|
255
311
|
featureStatus?: 'NEW' | 'SUSPENDED' | 'ACTIVE';
|
|
256
312
|
/**
|
|
257
|
-
* The units for the feature
|
|
313
|
+
* Body param: The units for the feature
|
|
258
314
|
*/
|
|
259
315
|
featureUnits?: string;
|
|
260
316
|
/**
|
|
261
|
-
* The plural units for the feature
|
|
317
|
+
* Body param: The plural units for the feature
|
|
262
318
|
*/
|
|
263
319
|
featureUnitsPlural?: string;
|
|
264
320
|
/**
|
|
265
|
-
* The additional metadata for the feature
|
|
321
|
+
* Body param: The additional metadata for the feature
|
|
266
322
|
*/
|
|
267
323
|
metadata?: {
|
|
268
324
|
[key: string]: string;
|
|
269
325
|
};
|
|
270
326
|
/**
|
|
271
|
-
* The meter type for the feature
|
|
327
|
+
* Body param: The meter type for the feature
|
|
272
328
|
*/
|
|
273
329
|
meterType?: 'None' | 'FLUCTUATING' | 'INCREMENTAL';
|
|
274
330
|
/**
|
|
275
|
-
* Unit transformation to be applied to the reported usage
|
|
331
|
+
* Body param: Unit transformation to be applied to the reported usage
|
|
276
332
|
*/
|
|
277
333
|
unitTransformation?: FeatureCreateFeatureParams.UnitTransformation | null;
|
|
334
|
+
/**
|
|
335
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
336
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
337
|
+
*/
|
|
338
|
+
'X-ACCOUNT-ID'?: string;
|
|
339
|
+
/**
|
|
340
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
341
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
342
|
+
* intrinsic to the key).
|
|
343
|
+
*/
|
|
344
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
278
345
|
}
|
|
279
346
|
export declare namespace FeatureCreateFeatureParams {
|
|
280
347
|
interface EnumConfiguration {
|
|
@@ -311,25 +378,39 @@ export declare namespace FeatureCreateFeatureParams {
|
|
|
311
378
|
}
|
|
312
379
|
export interface FeatureListFeaturesParams extends MyCursorIDPageParams {
|
|
313
380
|
/**
|
|
314
|
-
* Filter by entity ID
|
|
381
|
+
* Query param: Filter by entity ID
|
|
315
382
|
*/
|
|
316
383
|
id?: string;
|
|
317
384
|
/**
|
|
318
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
385
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
319
386
|
*/
|
|
320
387
|
createdAt?: FeatureListFeaturesParams.CreatedAt;
|
|
321
388
|
/**
|
|
322
|
-
* Filter by feature type. Supports comma-separated values for
|
|
389
|
+
* Query param: Filter by feature type. Supports comma-separated values for
|
|
390
|
+
* multiple types
|
|
323
391
|
*/
|
|
324
392
|
featureType?: Array<'BOOLEAN' | 'NUMBER' | 'ENUM'>;
|
|
325
393
|
/**
|
|
326
|
-
* Filter by meter type. Supports comma-separated values for multiple
|
|
394
|
+
* Query param: Filter by meter type. Supports comma-separated values for multiple
|
|
395
|
+
* types
|
|
327
396
|
*/
|
|
328
397
|
meterType?: Array<'None' | 'FLUCTUATING' | 'INCREMENTAL'>;
|
|
329
398
|
/**
|
|
330
|
-
* Filter by feature status. Supports comma-separated values for
|
|
399
|
+
* Query param: Filter by feature status. Supports comma-separated values for
|
|
400
|
+
* multiple statuses
|
|
331
401
|
*/
|
|
332
402
|
status?: Array<'NEW' | 'SUSPENDED' | 'ACTIVE'>;
|
|
403
|
+
/**
|
|
404
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
405
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
406
|
+
*/
|
|
407
|
+
'X-ACCOUNT-ID'?: string;
|
|
408
|
+
/**
|
|
409
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
410
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
411
|
+
* intrinsic to the key).
|
|
412
|
+
*/
|
|
413
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
333
414
|
}
|
|
334
415
|
export declare namespace FeatureListFeaturesParams {
|
|
335
416
|
/**
|
|
@@ -354,38 +435,78 @@ export declare namespace FeatureListFeaturesParams {
|
|
|
354
435
|
lte?: string;
|
|
355
436
|
}
|
|
356
437
|
}
|
|
438
|
+
export interface FeatureRetrieveFeatureParams {
|
|
439
|
+
/**
|
|
440
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
441
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
442
|
+
*/
|
|
443
|
+
'X-ACCOUNT-ID'?: string;
|
|
444
|
+
/**
|
|
445
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
446
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
447
|
+
* key).
|
|
448
|
+
*/
|
|
449
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
450
|
+
}
|
|
451
|
+
export interface FeatureUnarchiveFeatureParams {
|
|
452
|
+
/**
|
|
453
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
454
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
455
|
+
*/
|
|
456
|
+
'X-ACCOUNT-ID'?: string;
|
|
457
|
+
/**
|
|
458
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
459
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
460
|
+
* key).
|
|
461
|
+
*/
|
|
462
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
463
|
+
}
|
|
357
464
|
export interface FeatureUpdateFeatureParams {
|
|
358
465
|
/**
|
|
359
|
-
* The description for the feature
|
|
466
|
+
* Body param: The description for the feature
|
|
360
467
|
*/
|
|
361
468
|
description?: string;
|
|
362
469
|
/**
|
|
363
|
-
* The display name for the feature
|
|
470
|
+
* Body param: The display name for the feature
|
|
364
471
|
*/
|
|
365
472
|
displayName?: string;
|
|
366
473
|
/**
|
|
367
|
-
* The configuration data for the feature
|
|
474
|
+
* Body param: The configuration data for the feature
|
|
368
475
|
*/
|
|
369
476
|
enumConfiguration?: Array<FeatureUpdateFeatureParams.EnumConfiguration>;
|
|
370
477
|
/**
|
|
371
|
-
* The units for the feature
|
|
478
|
+
* Body param: The units for the feature
|
|
372
479
|
*/
|
|
373
480
|
featureUnits?: string;
|
|
374
481
|
/**
|
|
375
|
-
* The plural units for the feature
|
|
482
|
+
* Body param: The plural units for the feature
|
|
376
483
|
*/
|
|
377
484
|
featureUnitsPlural?: string;
|
|
378
485
|
/**
|
|
379
|
-
* The additional metadata for the feature
|
|
486
|
+
* Body param: The additional metadata for the feature
|
|
380
487
|
*/
|
|
381
488
|
metadata?: {
|
|
382
489
|
[key: string]: string;
|
|
383
490
|
};
|
|
491
|
+
/**
|
|
492
|
+
* Body param
|
|
493
|
+
*/
|
|
384
494
|
meter?: FeatureUpdateFeatureParams.Meter;
|
|
385
495
|
/**
|
|
386
|
-
* Unit transformation to be applied to the reported usage
|
|
496
|
+
* Body param: Unit transformation to be applied to the reported usage
|
|
387
497
|
*/
|
|
388
498
|
unitTransformation?: FeatureUpdateFeatureParams.UnitTransformation | null;
|
|
499
|
+
/**
|
|
500
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
501
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
502
|
+
*/
|
|
503
|
+
'X-ACCOUNT-ID'?: string;
|
|
504
|
+
/**
|
|
505
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
506
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
507
|
+
* intrinsic to the key).
|
|
508
|
+
*/
|
|
509
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
389
510
|
}
|
|
390
511
|
export declare namespace FeatureUpdateFeatureParams {
|
|
391
512
|
interface EnumConfiguration {
|
|
@@ -451,6 +572,6 @@ export declare namespace FeatureUpdateFeatureParams {
|
|
|
451
572
|
}
|
|
452
573
|
}
|
|
453
574
|
export declare namespace Features {
|
|
454
|
-
export { type Feature as Feature, type FeatureListFeaturesResponse as FeatureListFeaturesResponse, type FeatureListFeaturesResponsesMyCursorIDPage as FeatureListFeaturesResponsesMyCursorIDPage, type FeatureCreateFeatureParams as FeatureCreateFeatureParams, type FeatureListFeaturesParams as FeatureListFeaturesParams, type FeatureUpdateFeatureParams as FeatureUpdateFeatureParams, };
|
|
575
|
+
export { type Feature as Feature, type FeatureListFeaturesResponse as FeatureListFeaturesResponse, type FeatureListFeaturesResponsesMyCursorIDPage as FeatureListFeaturesResponsesMyCursorIDPage, type FeatureArchiveFeatureParams as FeatureArchiveFeatureParams, type FeatureCreateFeatureParams as FeatureCreateFeatureParams, type FeatureListFeaturesParams as FeatureListFeaturesParams, type FeatureRetrieveFeatureParams as FeatureRetrieveFeatureParams, type FeatureUnarchiveFeatureParams as FeatureUnarchiveFeatureParams, type FeatureUpdateFeatureParams as FeatureUpdateFeatureParams, };
|
|
455
576
|
}
|
|
456
577
|
//# sourceMappingURL=features.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAA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AC,MAAM,CAAC,SAAS,CAAC,CAAC;SACrC;QAED,UAAiB,MAAM,CAAC;YACtB,UAAiB,SAAS;gBACxB;;mBAEG;gBACH,KAAK,EAAE,MAAM,CAAC;gBAEd,SAAS,EACL,QAAQ,GACR,YAAY,GACZ,cAAc,GACd,uBAAuB,GACvB,WAAW,GACX,oBAAoB,GACpB,SAAS,GACT,aAAa,GACb,UAAU,GACV,aAAa,GACb,WAAW,GACX,IAAI,CAAC;gBAET;;mBAEG;gBACH,KAAK,CAAC,EAAE,MAAM,CAAC;gBAEf,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;aACxB;SACF;KACF;IAED;;OAEG;IACH,UAAiB,kBAAkB;QACjC;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAE5B;;WAEG;QACH,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
package/resources/v1/features.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Features = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
8
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
9
|
/**
|
|
9
10
|
* Operations related to features
|
|
@@ -11,43 +12,146 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
11
12
|
class Features extends resource_1.APIResource {
|
|
12
13
|
/**
|
|
13
14
|
* Archives a feature, preventing it from being used in new entitlements.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const feature = await client.v1.features.archiveFeature(
|
|
19
|
+
* 'x',
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
14
22
|
*/
|
|
15
|
-
archiveFeature(id, options) {
|
|
16
|
-
|
|
23
|
+
archiveFeature(id, params = {}, options) {
|
|
24
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
25
|
+
return this._client.post((0, path_1.path) `/api/v1/features/${id}/archive`, {
|
|
26
|
+
...options,
|
|
27
|
+
headers: (0, headers_1.buildHeaders)([
|
|
28
|
+
{
|
|
29
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
30
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
31
|
+
},
|
|
32
|
+
options?.headers,
|
|
33
|
+
]),
|
|
34
|
+
});
|
|
17
35
|
}
|
|
18
36
|
/**
|
|
19
37
|
* Creates a new feature with the specified type, metering, and configuration.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const feature = await client.v1.features.createFeature({
|
|
42
|
+
* id: 'id',
|
|
43
|
+
* displayName: 'displayName',
|
|
44
|
+
* featureType: 'BOOLEAN',
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
20
47
|
*/
|
|
21
|
-
createFeature(
|
|
22
|
-
|
|
48
|
+
createFeature(params, options) {
|
|
49
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
50
|
+
return this._client.post('/api/v1/features', {
|
|
51
|
+
body,
|
|
52
|
+
...options,
|
|
53
|
+
headers: (0, headers_1.buildHeaders)([
|
|
54
|
+
{
|
|
55
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
56
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
57
|
+
},
|
|
58
|
+
options?.headers,
|
|
59
|
+
]),
|
|
60
|
+
});
|
|
23
61
|
}
|
|
24
62
|
/**
|
|
25
63
|
* Retrieves a paginated list of features in the environment.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* // Automatically fetches more pages as needed.
|
|
68
|
+
* for await (const featureListFeaturesResponse of client.v1.features.listFeatures()) {
|
|
69
|
+
* // ...
|
|
70
|
+
* }
|
|
71
|
+
* ```
|
|
26
72
|
*/
|
|
27
|
-
listFeatures(
|
|
73
|
+
listFeatures(params = {}, options) {
|
|
74
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
28
75
|
return this._client.getAPIList('/api/v1/features', (pagination_1.MyCursorIDPage), {
|
|
29
76
|
query,
|
|
30
77
|
...options,
|
|
78
|
+
headers: (0, headers_1.buildHeaders)([
|
|
79
|
+
{
|
|
80
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
81
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
82
|
+
},
|
|
83
|
+
options?.headers,
|
|
84
|
+
]),
|
|
31
85
|
});
|
|
32
86
|
}
|
|
33
87
|
/**
|
|
34
88
|
* Retrieves a feature by its unique identifier.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```ts
|
|
92
|
+
* const feature = await client.v1.features.retrieveFeature(
|
|
93
|
+
* 'x',
|
|
94
|
+
* );
|
|
95
|
+
* ```
|
|
35
96
|
*/
|
|
36
|
-
retrieveFeature(id, options) {
|
|
37
|
-
|
|
97
|
+
retrieveFeature(id, params = {}, options) {
|
|
98
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
99
|
+
return this._client.get((0, path_1.path) `/api/v1/features/${id}`, {
|
|
100
|
+
...options,
|
|
101
|
+
headers: (0, headers_1.buildHeaders)([
|
|
102
|
+
{
|
|
103
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
104
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
105
|
+
},
|
|
106
|
+
options?.headers,
|
|
107
|
+
]),
|
|
108
|
+
});
|
|
38
109
|
}
|
|
39
110
|
/**
|
|
40
111
|
* Restores an archived feature, allowing it to be used in entitlements again.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```ts
|
|
115
|
+
* const feature = await client.v1.features.unarchiveFeature(
|
|
116
|
+
* 'x',
|
|
117
|
+
* );
|
|
118
|
+
* ```
|
|
41
119
|
*/
|
|
42
|
-
unarchiveFeature(id, options) {
|
|
43
|
-
|
|
120
|
+
unarchiveFeature(id, params = {}, options) {
|
|
121
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
122
|
+
return this._client.post((0, path_1.path) `/api/v1/features/${id}/unarchive`, {
|
|
123
|
+
...options,
|
|
124
|
+
headers: (0, headers_1.buildHeaders)([
|
|
125
|
+
{
|
|
126
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
127
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
128
|
+
},
|
|
129
|
+
options?.headers,
|
|
130
|
+
]),
|
|
131
|
+
});
|
|
44
132
|
}
|
|
45
133
|
/**
|
|
46
134
|
* Updates an existing feature's properties such as display name, description, and
|
|
47
135
|
* configuration.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```ts
|
|
139
|
+
* const feature = await client.v1.features.updateFeature('x');
|
|
140
|
+
* ```
|
|
48
141
|
*/
|
|
49
|
-
updateFeature(id,
|
|
50
|
-
|
|
142
|
+
updateFeature(id, params, options) {
|
|
143
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
144
|
+
return this._client.patch((0, path_1.path) `/api/v1/features/${id}`, {
|
|
145
|
+
body,
|
|
146
|
+
...options,
|
|
147
|
+
headers: (0, headers_1.buildHeaders)([
|
|
148
|
+
{
|
|
149
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
150
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
151
|
+
},
|
|
152
|
+
options?.headers,
|
|
153
|
+
]),
|
|
154
|
+
});
|
|
51
155
|
}
|
|
52
156
|
}
|
|
53
157
|
exports.Features = Features;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA+F;
|
|
1
|
+
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA+F;AAC/F,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;OASG;IACH,cAAc,CACZ,EAAU,EACV,SAAyD,EAAE,EAC3D,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,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