@stigg/typescript 0.1.0-beta.2 → 0.1.0-beta.20
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 +162 -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 +231 -1
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +231 -1
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +65 -0
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +65 -0
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +31 -0
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +31 -0
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +31 -0
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +31 -0
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/addons/index.d.mts +1 -1
- package/resources/v1/addons/index.d.mts.map +1 -1
- package/resources/v1/addons/index.d.ts +1 -1
- 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 +36 -0
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +36 -0
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +36 -0
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +36 -0
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +163 -11
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +163 -11
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +32 -4
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +32 -4
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +59 -10
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +59 -10
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +49 -0
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +49 -0
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +28 -0
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +28 -0
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +28 -0
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +28 -0
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +2 -3
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +2 -3
- 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 +82 -5
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +82 -5
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +77 -0
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +77 -0
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +50 -3
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +50 -3
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +47 -0
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +47 -0
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +17 -1
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +17 -1
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +16 -0
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +16 -0
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +51 -0
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +51 -0
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +51 -0
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +51 -0
- 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 +178 -0
- package/resources/v1/events/beta/customers/assignments.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/assignments.d.ts +178 -0
- package/resources/v1/events/beta/customers/assignments.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/assignments.js +62 -0
- package/resources/v1/events/beta/customers/assignments.js.map +1 -0
- package/resources/v1/events/beta/customers/assignments.mjs +58 -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 +304 -0
- package/resources/v1/events/beta/customers/entities.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/entities.d.ts +304 -0
- package/resources/v1/events/beta/customers/entities.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/entities.js +105 -0
- package/resources/v1/events/beta/customers/entities.js.map +1 -0
- package/resources/v1/events/beta/customers/entities.mjs +101 -0
- package/resources/v1/events/beta/customers/entities.mjs.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.d.mts +238 -0
- package/resources/v1/events/beta/customers/entitlements.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.d.ts +238 -0
- package/resources/v1/events/beta/customers/entitlements.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.js +26 -0
- package/resources/v1/events/beta/customers/entitlements.js.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.mjs +22 -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 +144 -0
- package/resources/v1/events/beta/entity-types.d.mts.map +1 -0
- package/resources/v1/events/beta/entity-types.d.ts +144 -0
- package/resources/v1/events/beta/entity-types.d.ts.map +1 -0
- package/resources/v1/events/beta/entity-types.js +56 -0
- package/resources/v1/events/beta/entity-types.js.map +1 -0
- package/resources/v1/events/beta/entity-types.mjs +52 -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 +87 -0
- package/resources/v1/events/events.d.mts.map +1 -0
- package/resources/v1/events/events.d.ts +87 -0
- package/resources/v1/events/events.d.ts.map +1 -0
- package/resources/v1/events/events.js +44 -0
- package/resources/v1/events/events.js.map +1 -0
- package/resources/v1/events/events.mjs +39 -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 +43 -0
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +43 -0
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +43 -0
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +43 -0
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +4 -4
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +4 -4
- 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 +31 -0
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +31 -0
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +31 -0
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +31 -0
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/index.d.mts +1 -1
- package/resources/v1/plans/index.d.mts.map +1 -1
- package/resources/v1/plans/index.d.ts +1 -1
- 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 +412 -1
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +412 -1
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +81 -0
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +81 -0
- 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 +43 -0
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +43 -0
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +43 -0
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +43 -0
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +16 -0
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +16 -0
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +16 -0
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +16 -0
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +6 -0
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +6 -0
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +6 -0
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +6 -0
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +101 -9
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +101 -9
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +81 -0
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +81 -0
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +13 -0
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +13 -0
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +13 -0
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +13 -0
- 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 +24 -0
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +24 -0
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +24 -0
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +24 -0
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +8 -8
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +8 -8
- 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 +625 -0
- package/src/resources/v1/addons/entitlements.ts +31 -0
- package/src/resources/v1/addons/index.ts +3 -0
- package/src/resources/v1/coupons.ts +36 -0
- package/src/resources/v1/credits/credits.ts +194 -20
- package/src/resources/v1/credits/custom-currencies.ts +60 -11
- package/src/resources/v1/credits/grants.ts +28 -0
- package/src/resources/v1/credits/index.ts +3 -6
- package/src/resources/v1/customers/customers.ts +92 -5
- package/src/resources/v1/customers/integrations.ts +55 -2
- package/src/resources/v1/customers/payment-method.ts +19 -1
- package/src/resources/v1/customers/promotional-entitlements.ts +51 -0
- package/src/resources/v1/events/beta/beta.ts +35 -0
- package/src/resources/v1/events/beta/customers/assignments.ts +228 -0
- package/src/resources/v1/events/beta/customers/customers.ts +71 -0
- package/src/resources/v1/events/beta/customers/entities.ts +381 -0
- package/src/resources/v1/events/beta/customers/entitlements.ts +327 -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 +180 -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 +116 -0
- package/src/resources/v1/events/index.ts +11 -0
- package/src/resources/v1/events.ts +1 -75
- package/src/resources/v1/features.ts +43 -0
- package/src/resources/v1/index.ts +12 -1
- package/src/resources/v1/plans/entitlements.ts +31 -0
- package/src/resources/v1/plans/index.ts +6 -0
- package/src/resources/v1/plans/plans.ts +1201 -0
- package/src/resources/v1/products.ts +43 -0
- package/src/resources/v1/subscriptions/future-update.ts +16 -0
- package/src/resources/v1/subscriptions/invoice.ts +6 -0
- package/src/resources/v1/subscriptions/subscriptions.ts +103 -9
- package/src/resources/v1/subscriptions/usage.ts +13 -0
- package/src/resources/v1/usage.ts +24 -0
- package/src/resources/v1/v1.ts +24 -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
package/resources/v1/events.mjs
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Operations related to usage & metering
|
|
5
|
-
*/
|
|
6
|
-
export class Events extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Reports raw usage events for event-based metering. Events are ingested
|
|
9
|
-
* asynchronously and aggregated into usage totals.
|
|
10
|
-
*/
|
|
11
|
-
report(body, options) {
|
|
12
|
-
return this._client.post('/api/v1/events', { body, ...options });
|
|
13
|
-
}
|
|
14
|
-
}
|
|
2
|
+
export * from "./events/index.mjs";
|
|
15
3
|
//# sourceMappingURL=events.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.mjs","sourceRoot":"","sources":["../../src/resources/v1/events.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"events.mjs","sourceRoot":"","sources":["../../src/resources/v1/events.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,mCAA+B"}
|
|
@@ -8,27 +8,70 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
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
19
|
archiveFeature(id: string, options?: RequestOptions): APIPromise<Feature>;
|
|
13
20
|
/**
|
|
14
21
|
* Creates a new feature with the specified type, metering, and configuration.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const feature = await client.v1.features.createFeature({
|
|
26
|
+
* id: 'id',
|
|
27
|
+
* displayName: 'displayName',
|
|
28
|
+
* featureType: 'BOOLEAN',
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
15
31
|
*/
|
|
16
32
|
createFeature(body: 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
44
|
listFeatures(query?: 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
55
|
retrieveFeature(id: string, 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
66
|
unarchiveFeature(id: string, 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
76
|
updateFeature(id: string, body: FeatureUpdateFeatureParams, options?: RequestOptions): APIPromise<Feature>;
|
|
34
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.d.mts","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"features.d.mts","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,kCAA8B;AAC/F,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;OASG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIzE;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI9F;;;;;;;;;;OAUG;IACH,YAAY,CACV,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC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AuB,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,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -8,27 +8,70 @@ 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
19
|
archiveFeature(id: string, options?: RequestOptions): APIPromise<Feature>;
|
|
13
20
|
/**
|
|
14
21
|
* Creates a new feature with the specified type, metering, and configuration.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const feature = await client.v1.features.createFeature({
|
|
26
|
+
* id: 'id',
|
|
27
|
+
* displayName: 'displayName',
|
|
28
|
+
* featureType: 'BOOLEAN',
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
15
31
|
*/
|
|
16
32
|
createFeature(body: 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
44
|
listFeatures(query?: 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
55
|
retrieveFeature(id: string, 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
66
|
unarchiveFeature(id: string, 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
76
|
updateFeature(id: string, body: FeatureUpdateFeatureParams, options?: RequestOptions): APIPromise<Feature>;
|
|
34
77
|
}
|
|
@@ -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,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,iCAA8B;AAC/F,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;OASG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIzE;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI9F;;;;;;;;;;OAUG;IACH,YAAY,CACV,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0CAA0C,EAAE,2BAA2B,CAAC;IAOvF;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI1E;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI3E;;;;;;;;OAQG;IACH,aAAa,CAAC,EA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AM,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,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
package/resources/v1/features.js
CHANGED
|
@@ -11,18 +11,42 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
11
11
|
class Features extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
13
13
|
* Archives a feature, preventing it from being used in new entitlements.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const feature = await client.v1.features.archiveFeature(
|
|
18
|
+
* 'x',
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
14
21
|
*/
|
|
15
22
|
archiveFeature(id, options) {
|
|
16
23
|
return this._client.post((0, path_1.path) `/api/v1/features/${id}/archive`, options);
|
|
17
24
|
}
|
|
18
25
|
/**
|
|
19
26
|
* Creates a new feature with the specified type, metering, and configuration.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const feature = await client.v1.features.createFeature({
|
|
31
|
+
* id: 'id',
|
|
32
|
+
* displayName: 'displayName',
|
|
33
|
+
* featureType: 'BOOLEAN',
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
20
36
|
*/
|
|
21
37
|
createFeature(body, options) {
|
|
22
38
|
return this._client.post('/api/v1/features', { body, ...options });
|
|
23
39
|
}
|
|
24
40
|
/**
|
|
25
41
|
* Retrieves a paginated list of features in the environment.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* // Automatically fetches more pages as needed.
|
|
46
|
+
* for await (const featureListFeaturesResponse of client.v1.features.listFeatures()) {
|
|
47
|
+
* // ...
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
26
50
|
*/
|
|
27
51
|
listFeatures(query = {}, options) {
|
|
28
52
|
return this._client.getAPIList('/api/v1/features', (pagination_1.MyCursorIDPage), {
|
|
@@ -32,12 +56,26 @@ class Features extends resource_1.APIResource {
|
|
|
32
56
|
}
|
|
33
57
|
/**
|
|
34
58
|
* Retrieves a feature by its unique identifier.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const feature = await client.v1.features.retrieveFeature(
|
|
63
|
+
* 'x',
|
|
64
|
+
* );
|
|
65
|
+
* ```
|
|
35
66
|
*/
|
|
36
67
|
retrieveFeature(id, options) {
|
|
37
68
|
return this._client.get((0, path_1.path) `/api/v1/features/${id}`, options);
|
|
38
69
|
}
|
|
39
70
|
/**
|
|
40
71
|
* Restores an archived feature, allowing it to be used in entitlements again.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const feature = await client.v1.features.unarchiveFeature(
|
|
76
|
+
* 'x',
|
|
77
|
+
* );
|
|
78
|
+
* ```
|
|
41
79
|
*/
|
|
42
80
|
unarchiveFeature(id, options) {
|
|
43
81
|
return this._client.post((0, path_1.path) `/api/v1/features/${id}/unarchive`, options);
|
|
@@ -45,6 +83,11 @@ class Features extends resource_1.APIResource {
|
|
|
45
83
|
/**
|
|
46
84
|
* Updates an existing feature's properties such as display name, description, and
|
|
47
85
|
* configuration.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```ts
|
|
89
|
+
* const feature = await client.v1.features.updateFeature('x');
|
|
90
|
+
* ```
|
|
48
91
|
*/
|
|
49
92
|
updateFeature(id, body, options) {
|
|
50
93
|
return this._client.patch((0, path_1.path) `/api/v1/features/${id}`, { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA+F;AAE/F,uDAAiD;AAEjD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC
|
|
1
|
+
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA+F;AAE/F,uDAAiD;AAEjD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;OASG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,IAAgC,EAAE,OAAwB;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;OAUG;IACH,YAAY,CACV,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,2BAA2C,CAAA,EAAE;YAC9F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAU,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAU,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAU,EAAE,IAAgC,EAAE,OAAwB;QAClF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AA5FD,4BA4FC"}
|
|
@@ -8,18 +8,42 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
8
8
|
export 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
19
|
archiveFeature(id, options) {
|
|
13
20
|
return this._client.post(path `/api/v1/features/${id}/archive`, options);
|
|
14
21
|
}
|
|
15
22
|
/**
|
|
16
23
|
* Creates a new feature with the specified type, metering, and configuration.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const feature = await client.v1.features.createFeature({
|
|
28
|
+
* id: 'id',
|
|
29
|
+
* displayName: 'displayName',
|
|
30
|
+
* featureType: 'BOOLEAN',
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
17
33
|
*/
|
|
18
34
|
createFeature(body, options) {
|
|
19
35
|
return this._client.post('/api/v1/features', { body, ...options });
|
|
20
36
|
}
|
|
21
37
|
/**
|
|
22
38
|
* Retrieves a paginated list of features in the environment.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* // Automatically fetches more pages as needed.
|
|
43
|
+
* for await (const featureListFeaturesResponse of client.v1.features.listFeatures()) {
|
|
44
|
+
* // ...
|
|
45
|
+
* }
|
|
46
|
+
* ```
|
|
23
47
|
*/
|
|
24
48
|
listFeatures(query = {}, options) {
|
|
25
49
|
return this._client.getAPIList('/api/v1/features', (MyCursorIDPage), {
|
|
@@ -29,12 +53,26 @@ export class Features extends APIResource {
|
|
|
29
53
|
}
|
|
30
54
|
/**
|
|
31
55
|
* Retrieves a feature by its unique identifier.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const feature = await client.v1.features.retrieveFeature(
|
|
60
|
+
* 'x',
|
|
61
|
+
* );
|
|
62
|
+
* ```
|
|
32
63
|
*/
|
|
33
64
|
retrieveFeature(id, options) {
|
|
34
65
|
return this._client.get(path `/api/v1/features/${id}`, options);
|
|
35
66
|
}
|
|
36
67
|
/**
|
|
37
68
|
* Restores an archived feature, allowing it to be used in entitlements again.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const feature = await client.v1.features.unarchiveFeature(
|
|
73
|
+
* 'x',
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
38
76
|
*/
|
|
39
77
|
unarchiveFeature(id, options) {
|
|
40
78
|
return this._client.post(path `/api/v1/features/${id}/unarchive`, options);
|
|
@@ -42,6 +80,11 @@ export class Features extends APIResource {
|
|
|
42
80
|
/**
|
|
43
81
|
* Updates an existing feature's properties such as display name, description, and
|
|
44
82
|
* configuration.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* const feature = await client.v1.features.updateFeature('x');
|
|
87
|
+
* ```
|
|
45
88
|
*/
|
|
46
89
|
updateFeature(id, body, options) {
|
|
47
90
|
return this._client.patch(path `/api/v1/features/${id}`, { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.mjs","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"features.mjs","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,cAAc,EAA0C,kCAA8B;AAE/F,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;OASG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,IAAgC,EAAE,OAAwB;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;OAUG;IACH,YAAY,CACV,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,cAA2C,CAAA,EAAE;YAC9F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAU,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAU,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAU,EAAE,IAAgC,EAAE,OAAwB;QAClF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF"}
|
package/resources/v1/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { Addons, type Addon, type AddonListResponse, type AddonPublishResponse, type AddonRemoveDraftResponse, type AddonCreateParams, type AddonUpdateParams, type AddonListParams, type AddonPublishParams, type AddonListResponsesMyCursorIDPage, } from "./addons/index.mjs";
|
|
1
|
+
export { Addons, type Addon, type AddonListResponse, type AddonListChargesResponse, type AddonPublishResponse, type AddonRemoveDraftResponse, type AddonCreateParams, type AddonUpdateParams, type AddonListParams, type AddonListChargesParams, type AddonPublishParams, type AddonListResponsesMyCursorIDPage, type AddonListChargesResponsesMyCursorIDPage, } from "./addons/index.mjs";
|
|
2
2
|
export { Coupons, type Coupon, type CouponListResponse, type CouponCreateParams, type CouponListParams, type CouponUpdateCouponParams, type CouponListResponsesMyCursorIDPage, } from "./coupons.mjs";
|
|
3
|
-
export { Credits, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits/index.mjs";
|
|
3
|
+
export { Credits, type CreditGetAutoRechargeResponse, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetAutoRechargeParams, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits/index.mjs";
|
|
4
4
|
export { Customers, type CustomerIntegrationResponse, type CustomerResponse, type CustomerListResponse, type CustomerCheckEntitlementResponse, type CustomerImportResponse, type CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse, type CustomerUpdateParams, type CustomerListParams, type CustomerCheckEntitlementParams, type CustomerImportParams, type CustomerListResourcesParams, type CustomerProvisionParams, type CustomerRetrieveEntitlementsParams, type CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage, } from "./customers/index.mjs";
|
|
5
|
-
export { Events, type EventReportResponse, type EventReportParams } from "./events.mjs";
|
|
5
|
+
export { Events, type EventReportResponse, type EventReportParams } from "./events/index.mjs";
|
|
6
6
|
export { Features, type Feature, type FeatureListFeaturesResponse, type FeatureCreateFeatureParams, type FeatureListFeaturesParams, type FeatureUpdateFeatureParams, type FeatureListFeaturesResponsesMyCursorIDPage, } from "./features.mjs";
|
|
7
|
-
export { Plans, type Plan, type PlanListResponse, type PlanPublishResponse, type PlanRemoveDraftResponse, type PlanCreateParams, type PlanUpdateParams, type PlanListParams, type PlanPublishParams, type PlanListResponsesMyCursorIDPage, } from "./plans/index.mjs";
|
|
7
|
+
export { Plans, type Plan, type PlanListResponse, type PlanListChargesResponse, type PlanListOverageChargesResponse, type PlanPublishResponse, type PlanRemoveDraftResponse, type PlanCreateParams, type PlanUpdateParams, type PlanListParams, type PlanListChargesParams, type PlanListOverageChargesParams, type PlanPublishParams, type PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage, } from "./plans/index.mjs";
|
|
8
8
|
export { Products, type Product, type ProductListProductsResponse, type ProductCreateProductParams, type ProductDuplicateProductParams, type ProductListProductsParams, type ProductUpdateProductParams, type ProductListProductsResponsesMyCursorIDPage, } from "./products.mjs";
|
|
9
9
|
export { Subscriptions, type Subscription, type SubscriptionListResponse, type SubscriptionImportResponse, type SubscriptionPreviewResponse, type SubscriptionProvisionResponse, type SubscriptionUpdateParams, type SubscriptionListParams, type SubscriptionCancelParams, type SubscriptionDelegateParams, type SubscriptionImportParams, type SubscriptionMigrateParams, type SubscriptionPreviewParams, type SubscriptionProvisionParams, type SubscriptionTransferParams, type SubscriptionListResponsesMyCursorIDPage, } from "./subscriptions/index.mjs";
|
|
10
10
|
export { Usage, type UsageHistoryResponse, type UsageReportResponse, type UsageHistoryParams, type UsageReportParams, } from "./usage.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,uCAAuC,GAC7C,2BAAuB;AACxB,OAAO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,GACvC,sBAAkB;AACnB,OAAO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C,4BAAwB;AACzB,OAAO,EACL,SAAS,EACT,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,EACzC,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACxC,KAAK,4CAA4C,GAClD,8BAA0B;AAC3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B;AACjB,OAAO,EAAE,EAAE,EAAE,iBAAa"}
|
package/resources/v1/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { Addons, type Addon, type AddonListResponse, type AddonPublishResponse, type AddonRemoveDraftResponse, type AddonCreateParams, type AddonUpdateParams, type AddonListParams, type AddonPublishParams, type AddonListResponsesMyCursorIDPage, } from "./addons/index.js";
|
|
1
|
+
export { Addons, type Addon, type AddonListResponse, type AddonListChargesResponse, type AddonPublishResponse, type AddonRemoveDraftResponse, type AddonCreateParams, type AddonUpdateParams, type AddonListParams, type AddonListChargesParams, type AddonPublishParams, type AddonListResponsesMyCursorIDPage, type AddonListChargesResponsesMyCursorIDPage, } from "./addons/index.js";
|
|
2
2
|
export { Coupons, type Coupon, type CouponListResponse, type CouponCreateParams, type CouponListParams, type CouponUpdateCouponParams, type CouponListResponsesMyCursorIDPage, } from "./coupons.js";
|
|
3
|
-
export { Credits, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits/index.js";
|
|
3
|
+
export { Credits, type CreditGetAutoRechargeResponse, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetAutoRechargeParams, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits/index.js";
|
|
4
4
|
export { Customers, type CustomerIntegrationResponse, type CustomerResponse, type CustomerListResponse, type CustomerCheckEntitlementResponse, type CustomerImportResponse, type CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse, type CustomerUpdateParams, type CustomerListParams, type CustomerCheckEntitlementParams, type CustomerImportParams, type CustomerListResourcesParams, type CustomerProvisionParams, type CustomerRetrieveEntitlementsParams, type CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage, } from "./customers/index.js";
|
|
5
|
-
export { Events, type EventReportResponse, type EventReportParams } from "./events.js";
|
|
5
|
+
export { Events, type EventReportResponse, type EventReportParams } from "./events/index.js";
|
|
6
6
|
export { Features, type Feature, type FeatureListFeaturesResponse, type FeatureCreateFeatureParams, type FeatureListFeaturesParams, type FeatureUpdateFeatureParams, type FeatureListFeaturesResponsesMyCursorIDPage, } from "./features.js";
|
|
7
|
-
export { Plans, type Plan, type PlanListResponse, type PlanPublishResponse, type PlanRemoveDraftResponse, type PlanCreateParams, type PlanUpdateParams, type PlanListParams, type PlanPublishParams, type PlanListResponsesMyCursorIDPage, } from "./plans/index.js";
|
|
7
|
+
export { Plans, type Plan, type PlanListResponse, type PlanListChargesResponse, type PlanListOverageChargesResponse, type PlanPublishResponse, type PlanRemoveDraftResponse, type PlanCreateParams, type PlanUpdateParams, type PlanListParams, type PlanListChargesParams, type PlanListOverageChargesParams, type PlanPublishParams, type PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage, } from "./plans/index.js";
|
|
8
8
|
export { Products, type Product, type ProductListProductsResponse, type ProductCreateProductParams, type ProductDuplicateProductParams, type ProductListProductsParams, type ProductUpdateProductParams, type ProductListProductsResponsesMyCursorIDPage, } from "./products.js";
|
|
9
9
|
export { Subscriptions, type Subscription, type SubscriptionListResponse, type SubscriptionImportResponse, type SubscriptionPreviewResponse, type SubscriptionProvisionResponse, type SubscriptionUpdateParams, type SubscriptionListParams, type SubscriptionCancelParams, type SubscriptionDelegateParams, type SubscriptionImportParams, type SubscriptionMigrateParams, type SubscriptionPreviewParams, type SubscriptionProvisionParams, type SubscriptionTransferParams, type SubscriptionListResponsesMyCursorIDPage, } from "./subscriptions/index.js";
|
|
10
10
|
export { Usage, type UsageHistoryResponse, type UsageReportResponse, type UsageHistoryParams, type UsageReportParams, } from "./usage.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","s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C/B,KAAK,0CAA0C,GAChD,sBAAmB;AACpB,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,+BAA+B,EACpC,KAAK,sCAAsC,EAC3C,KAAK,6CAA6C,GACnD,yBAAsB;AACvB,OAAO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,0CAA0C,GAChD,sBAAmB;AACpB,OAAO,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,GAC7C,iCAA8B;AAC/B,OAAO,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB,mBAAgB;AACjB,OAAO,EAAE,EAAE,EAAE,gBAAa"}
|
package/resources/v1/index.js
CHANGED
|
@@ -10,16 +10,16 @@ var index_2 = require("./credits/index.js");
|
|
|
10
10
|
Object.defineProperty(exports, "Credits", { enumerable: true, get: function () { return index_2.Credits; } });
|
|
11
11
|
var index_3 = require("./customers/index.js");
|
|
12
12
|
Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return index_3.Customers; } });
|
|
13
|
-
var
|
|
14
|
-
Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return
|
|
13
|
+
var index_4 = require("./events/index.js");
|
|
14
|
+
Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return index_4.Events; } });
|
|
15
15
|
var features_1 = require("./features.js");
|
|
16
16
|
Object.defineProperty(exports, "Features", { enumerable: true, get: function () { return features_1.Features; } });
|
|
17
|
-
var
|
|
18
|
-
Object.defineProperty(exports, "Plans", { enumerable: true, get: function () { return
|
|
17
|
+
var index_5 = require("./plans/index.js");
|
|
18
|
+
Object.defineProperty(exports, "Plans", { enumerable: true, get: function () { return index_5.Plans; } });
|
|
19
19
|
var products_1 = require("./products.js");
|
|
20
20
|
Object.defineProperty(exports, "Products", { enumerable: true, get: function () { return products_1.Products; } });
|
|
21
|
-
var
|
|
22
|
-
Object.defineProperty(exports, "Subscriptions", { enumerable: true, get: function () { return
|
|
21
|
+
var index_6 = require("./subscriptions/index.js");
|
|
22
|
+
Object.defineProperty(exports, "Subscriptions", { enumerable: true, get: function () { return index_6.Subscriptions; } });
|
|
23
23
|
var usage_1 = require("./usage.js");
|
|
24
24
|
Object.defineProperty(exports, "Usage", { enumerable: true, get: function () { return usage_1.Usage; } });
|
|
25
25
|
var v1_1 = require("./v1.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2CAcwB;AAbtB,+FAAA,MAAM,OAAA;AAcR,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,4CASyB;AARvB,gGAAA,OAAO,OAAA;AAST,8CAkB2B;AAjBzB,kGAAA,SAAS,OAAA;AAkBX,2CAA0F;AAAjF,+FAAA,MAAM,OAAA;AACf,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,0CAiBuB;AAhBrB,8FAAA,KAAK,OAAA;AAiBP,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,kDAiB+B;AAhB7B,sGAAA,aAAa,OAAA;AAiBf,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
package/resources/v1/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ export { Addons, } from "./addons/index.mjs";
|
|
|
3
3
|
export { Coupons, } from "./coupons.mjs";
|
|
4
4
|
export { Credits, } from "./credits/index.mjs";
|
|
5
5
|
export { Customers, } from "./customers/index.mjs";
|
|
6
|
-
export { Events } from "./events.mjs";
|
|
6
|
+
export { Events } from "./events/index.mjs";
|
|
7
7
|
export { Features, } from "./features.mjs";
|
|
8
8
|
export { Plans, } from "./plans/index.mjs";
|
|
9
9
|
export { Products, } from "./products.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,MAAM,GAaP,2BAAuB;AACxB,OAAO,EACL,OAAO,GAOR,sBAAkB;AACnB,OAAO,EACL,OAAO,GAQR,4BAAwB;AACzB,OAAO,EACL,SAAS,GAiBV,8BAA0B;AAC3B,OAAO,EAAE,MAAM,EAAoD,2BAAuB;AAC1F,OAAO,EACL,QAAQ,GAOT,uBAAmB;AACpB,OAAO,EACL,KAAK,GAgBN,0BAAsB;AACvB,OAAO,EACL,QAAQ,GAQT,uBAAmB;AACpB,OAAO,EACL,aAAa,GAgBd,kCAA8B;AAC/B,OAAO,EACL,KAAK,GAKN,oBAAgB;AACjB,OAAO,EAAE,EAAE,EAAE,iBAAa"}
|
|
@@ -4,18 +4,49 @@ import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
|
4
4
|
export declare class Entitlements extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Creates one or more entitlements (feature or credit) on a draft plan.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const entitlement =
|
|
11
|
+
* await client.v1.plans.entitlements.create('planId', {
|
|
12
|
+
* entitlements: [{ id: 'id', type: 'FEATURE' }],
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
7
15
|
*/
|
|
8
16
|
create(planID: string, body: EntitlementCreateParams, options?: RequestOptions): APIPromise<EntitlementCreateResponse>;
|
|
9
17
|
/**
|
|
10
18
|
* Updates an existing entitlement on a draft plan.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const planEntitlement =
|
|
23
|
+
* await client.v1.plans.entitlements.update('id', {
|
|
24
|
+
* planId: 'planId',
|
|
25
|
+
* type: 'FEATURE',
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
11
28
|
*/
|
|
12
29
|
update(id: string, params: EntitlementUpdateParams, options?: RequestOptions): APIPromise<PlanEntitlement>;
|
|
13
30
|
/**
|
|
14
31
|
* Retrieves a list of entitlements for a plan.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const entitlements =
|
|
36
|
+
* await client.v1.plans.entitlements.list('planId');
|
|
37
|
+
* ```
|
|
15
38
|
*/
|
|
16
39
|
list(planID: string, options?: RequestOptions): APIPromise<EntitlementListResponse>;
|
|
17
40
|
/**
|
|
18
41
|
* Deletes an entitlement from a draft plan.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const planEntitlement =
|
|
46
|
+
* await client.v1.plans.entitlements.delete('id', {
|
|
47
|
+
* planId: 'planId',
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
19
50
|
*/
|
|
20
51
|
delete(id: string, params: EntitlementDeleteParams, options?: RequestOptions): APIPromise<PlanEntitlement>;
|
|
21
52
|
}
|