@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
|
@@ -13,6 +13,13 @@ export class Products extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* Archives a product, preventing new subscriptions. All plans and addons are
|
|
15
15
|
* archived.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const product = await client.v1.products.archiveProduct(
|
|
20
|
+
* 'x',
|
|
21
|
+
* );
|
|
22
|
+
* ```
|
|
16
23
|
*/
|
|
17
24
|
archiveProduct(id: string, options?: RequestOptions): APIPromise<Product> {
|
|
18
25
|
return this._client.post(path`/api/v1/products/${id}/archive`, options);
|
|
@@ -20,6 +27,14 @@ export class Products extends APIResource {
|
|
|
20
27
|
|
|
21
28
|
/**
|
|
22
29
|
* Creates a new product.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const product = await client.v1.products.createProduct({
|
|
34
|
+
* id: 'id',
|
|
35
|
+
* displayName: 'displayName',
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
23
38
|
*/
|
|
24
39
|
createProduct(body: ProductCreateProductParams, options?: RequestOptions): APIPromise<Product> {
|
|
25
40
|
return this._client.post('/api/v1/products', { body, ...options });
|
|
@@ -27,6 +42,14 @@ export class Products extends APIResource {
|
|
|
27
42
|
|
|
28
43
|
/**
|
|
29
44
|
* Duplicates an existing product, including its plans, addons, and configuration.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const product = await client.v1.products.duplicateProduct(
|
|
49
|
+
* 'x',
|
|
50
|
+
* { targetId: 'targetId' },
|
|
51
|
+
* );
|
|
52
|
+
* ```
|
|
30
53
|
*/
|
|
31
54
|
duplicateProduct(
|
|
32
55
|
id: string,
|
|
@@ -38,6 +61,14 @@ export class Products extends APIResource {
|
|
|
38
61
|
|
|
39
62
|
/**
|
|
40
63
|
* Retrieves a paginated list of products in the environment.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* // Automatically fetches more pages as needed.
|
|
68
|
+
* for await (const productListProductsResponse of client.v1.products.listProducts()) {
|
|
69
|
+
* // ...
|
|
70
|
+
* }
|
|
71
|
+
* ```
|
|
41
72
|
*/
|
|
42
73
|
listProducts(
|
|
43
74
|
query: ProductListProductsParams | null | undefined = {},
|
|
@@ -51,6 +82,13 @@ export class Products extends APIResource {
|
|
|
51
82
|
|
|
52
83
|
/**
|
|
53
84
|
* Restores an archived product, allowing new subscriptions to be created.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* const product = await client.v1.products.unarchiveProduct(
|
|
89
|
+
* 'x',
|
|
90
|
+
* );
|
|
91
|
+
* ```
|
|
54
92
|
*/
|
|
55
93
|
unarchiveProduct(id: string, options?: RequestOptions): APIPromise<Product> {
|
|
56
94
|
return this._client.post(path`/api/v1/products/${id}/unarchive`, options);
|
|
@@ -59,6 +97,11 @@ export class Products extends APIResource {
|
|
|
59
97
|
/**
|
|
60
98
|
* Updates an existing product's properties such as display name, description, and
|
|
61
99
|
* metadata.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```ts
|
|
103
|
+
* const product = await client.v1.products.updateProduct('x');
|
|
104
|
+
* ```
|
|
62
105
|
*/
|
|
63
106
|
updateProduct(id: string, body: ProductUpdateProductParams, options?: RequestOptions): APIPromise<Product> {
|
|
64
107
|
return this._client.patch(path`/api/v1/products/${id}`, { body, ...options });
|
|
@@ -11,6 +11,14 @@ import { path } from '../../../internal/utils/path';
|
|
|
11
11
|
export class FutureUpdate extends APIResource {
|
|
12
12
|
/**
|
|
13
13
|
* Cancels a subscription update that is pending payment completion.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const cancelSubscription =
|
|
18
|
+
* await client.v1.subscriptions.futureUpdate.cancelPendingPayment(
|
|
19
|
+
* 'x',
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
14
22
|
*/
|
|
15
23
|
cancelPendingPayment(id: string, options?: RequestOptions): APIPromise<CancelSubscription> {
|
|
16
24
|
return this._client.delete(path`/api/v1/subscriptions/${id}/future-update/pending-payment`, options);
|
|
@@ -19,6 +27,14 @@ export class FutureUpdate extends APIResource {
|
|
|
19
27
|
/**
|
|
20
28
|
* Cancels a scheduled subscription update, such as a future downgrade or plan
|
|
21
29
|
* change.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const cancelSubscription =
|
|
34
|
+
* await client.v1.subscriptions.futureUpdate.cancelSchedule(
|
|
35
|
+
* 'x',
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
22
38
|
*/
|
|
23
39
|
cancelSchedule(id: string, options?: RequestOptions): APIPromise<CancelSubscription> {
|
|
24
40
|
return this._client.delete(path`/api/v1/subscriptions/${id}/future-update/schedule`, options);
|
|
@@ -12,6 +12,12 @@ export class Invoice extends APIResource {
|
|
|
12
12
|
/**
|
|
13
13
|
* Marks the latest invoice of a subscription as paid in the billing provider. The
|
|
14
14
|
* invoice must exist and have an OPEN status.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const response =
|
|
19
|
+
* await client.v1.subscriptions.invoice.markAsPaid('x');
|
|
20
|
+
* ```
|
|
15
21
|
*/
|
|
16
22
|
markAsPaid(id: string, options?: RequestOptions): APIPromise<InvoiceMarkAsPaidResponse> {
|
|
17
23
|
return this._client.post(path`/api/v1/subscriptions/${id}/invoice/paid`, options);
|
|
@@ -20,6 +20,13 @@ export class Subscriptions extends APIResource {
|
|
|
20
20
|
/**
|
|
21
21
|
* Retrieves a subscription by its unique identifier, including plan details,
|
|
22
22
|
* billing period, status, and add-ons.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const subscription = await client.v1.subscriptions.retrieve(
|
|
27
|
+
* 'x',
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
23
30
|
*/
|
|
24
31
|
retrieve(id: string, options?: RequestOptions): APIPromise<Subscription> {
|
|
25
32
|
return this._client.get(path`/api/v1/subscriptions/${id}`, options);
|
|
@@ -28,6 +35,13 @@ export class Subscriptions extends APIResource {
|
|
|
28
35
|
/**
|
|
29
36
|
* Updates an active subscription's properties including billing period, add-ons,
|
|
30
37
|
* unit quantities, and discounts.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const subscription = await client.v1.subscriptions.update(
|
|
42
|
+
* 'x',
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
31
45
|
*/
|
|
32
46
|
update(id: string, body: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<Subscription> {
|
|
33
47
|
return this._client.patch(path`/api/v1/subscriptions/${id}`, { body, ...options });
|
|
@@ -36,6 +50,14 @@ export class Subscriptions extends APIResource {
|
|
|
36
50
|
/**
|
|
37
51
|
* Retrieves a paginated list of subscriptions, with optional filters for customer,
|
|
38
52
|
* status, and plan.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* // Automatically fetches more pages as needed.
|
|
57
|
+
* for await (const subscriptionListResponse of client.v1.subscriptions.list()) {
|
|
58
|
+
* // ...
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
39
61
|
*/
|
|
40
62
|
list(
|
|
41
63
|
query: SubscriptionListParams | null | undefined = {},
|
|
@@ -50,6 +72,13 @@ export class Subscriptions extends APIResource {
|
|
|
50
72
|
/**
|
|
51
73
|
* Cancels an active subscription, either immediately or at a specified time such
|
|
52
74
|
* as end of billing period.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const subscription = await client.v1.subscriptions.cancel(
|
|
79
|
+
* 'x',
|
|
80
|
+
* );
|
|
81
|
+
* ```
|
|
53
82
|
*/
|
|
54
83
|
cancel(id: string, body: SubscriptionCancelParams, options?: RequestOptions): APIPromise<Subscription> {
|
|
55
84
|
return this._client.post(path`/api/v1/subscriptions/${id}/cancel`, { body, ...options });
|
|
@@ -58,6 +87,14 @@ export class Subscriptions extends APIResource {
|
|
|
58
87
|
/**
|
|
59
88
|
* Delegates the payment responsibility of a subscription to a different customer.
|
|
60
89
|
* The delegated customer will be billed for this subscription.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* const subscription = await client.v1.subscriptions.delegate(
|
|
94
|
+
* 'x',
|
|
95
|
+
* { targetCustomerId: 'targetCustomerId' },
|
|
96
|
+
* );
|
|
97
|
+
* ```
|
|
61
98
|
*/
|
|
62
99
|
delegate(id: string, body: SubscriptionDelegateParams, options?: RequestOptions): APIPromise<Subscription> {
|
|
63
100
|
return this._client.post(path`/api/v1/subscriptions/${id}/delegate`, { body, ...options });
|
|
@@ -66,6 +103,19 @@ export class Subscriptions extends APIResource {
|
|
|
66
103
|
/**
|
|
67
104
|
* Imports multiple subscriptions in bulk. Used for migrating subscription data
|
|
68
105
|
* from external systems.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```ts
|
|
109
|
+
* const response = await client.v1.subscriptions.import({
|
|
110
|
+
* subscriptions: [
|
|
111
|
+
* {
|
|
112
|
+
* id: 'id',
|
|
113
|
+
* customerId: 'customerId',
|
|
114
|
+
* planId: 'planId',
|
|
115
|
+
* },
|
|
116
|
+
* ],
|
|
117
|
+
* });
|
|
118
|
+
* ```
|
|
69
119
|
*/
|
|
70
120
|
import(body: SubscriptionImportParams, options?: RequestOptions): APIPromise<SubscriptionImportResponse> {
|
|
71
121
|
return this._client.post('/api/v1/subscriptions/import', { body, ...options });
|
|
@@ -74,6 +124,13 @@ export class Subscriptions extends APIResource {
|
|
|
74
124
|
/**
|
|
75
125
|
* Migrates a subscription to the latest published version of its plan or add-ons.
|
|
76
126
|
* Handles prorated charges or credits automatically.
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* ```ts
|
|
130
|
+
* const subscription = await client.v1.subscriptions.migrate(
|
|
131
|
+
* 'x',
|
|
132
|
+
* );
|
|
133
|
+
* ```
|
|
77
134
|
*/
|
|
78
135
|
migrate(id: string, body: SubscriptionMigrateParams, options?: RequestOptions): APIPromise<Subscription> {
|
|
79
136
|
return this._client.post(path`/api/v1/subscriptions/${id}/migrate`, { body, ...options });
|
|
@@ -82,6 +139,14 @@ export class Subscriptions extends APIResource {
|
|
|
82
139
|
/**
|
|
83
140
|
* Previews the pricing impact of creating or updating a subscription without
|
|
84
141
|
* making changes. Returns estimated costs, taxes, and proration details.
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* ```ts
|
|
145
|
+
* const response = await client.v1.subscriptions.preview({
|
|
146
|
+
* customerId: 'customerId',
|
|
147
|
+
* planId: 'planId',
|
|
148
|
+
* });
|
|
149
|
+
* ```
|
|
85
150
|
*/
|
|
86
151
|
preview(
|
|
87
152
|
body: SubscriptionPreviewParams,
|
|
@@ -93,6 +158,14 @@ export class Subscriptions extends APIResource {
|
|
|
93
158
|
/**
|
|
94
159
|
* Creates a new subscription for an existing customer. When payment is required
|
|
95
160
|
* and no payment method exists, returns a checkout URL.
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* ```ts
|
|
164
|
+
* const response = await client.v1.subscriptions.provision({
|
|
165
|
+
* customerId: 'customerId',
|
|
166
|
+
* planId: 'planId',
|
|
167
|
+
* });
|
|
168
|
+
* ```
|
|
96
169
|
*/
|
|
97
170
|
provision(
|
|
98
171
|
body: SubscriptionProvisionParams,
|
|
@@ -104,6 +177,14 @@ export class Subscriptions extends APIResource {
|
|
|
104
177
|
/**
|
|
105
178
|
* Transfers a subscription to a different resource ID. Used for multi-resource
|
|
106
179
|
* products where subscriptions apply to specific entities like websites or apps.
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* ```ts
|
|
183
|
+
* const subscription = await client.v1.subscriptions.transfer(
|
|
184
|
+
* 'x',
|
|
185
|
+
* { destinationResourceId: 'destinationResourceId' },
|
|
186
|
+
* );
|
|
187
|
+
* ```
|
|
107
188
|
*/
|
|
108
189
|
transfer(id: string, body: SubscriptionTransferParams, options?: RequestOptions): APIPromise<Subscription> {
|
|
109
190
|
return this._client.post(path`/api/v1/subscriptions/${id}/transfer`, { body, ...options });
|
|
@@ -3901,6 +3982,11 @@ export interface SubscriptionUpdateParams {
|
|
|
3901
3982
|
|
|
3902
3983
|
budget?: SubscriptionUpdateParams.Budget | null;
|
|
3903
3984
|
|
|
3985
|
+
/**
|
|
3986
|
+
* Subscription cancellation date
|
|
3987
|
+
*/
|
|
3988
|
+
cancellationDate?: string | null;
|
|
3989
|
+
|
|
3904
3990
|
charges?: Array<SubscriptionUpdateParams.Charge>;
|
|
3905
3991
|
|
|
3906
3992
|
entitlements?: Array<SubscriptionUpdateParams.Feature | SubscriptionUpdateParams.Credit>;
|
|
@@ -4780,7 +4866,8 @@ export namespace SubscriptionImportParams {
|
|
|
4780
4866
|
}
|
|
4781
4867
|
|
|
4782
4868
|
/**
|
|
4783
|
-
*
|
|
4869
|
+
* A charge selection for a subscription (references a catalog charge with a
|
|
4870
|
+
* quantity).
|
|
4784
4871
|
*/
|
|
4785
4872
|
export interface Charge {
|
|
4786
4873
|
/**
|
|
@@ -4789,7 +4876,7 @@ export namespace SubscriptionImportParams {
|
|
|
4789
4876
|
id: string;
|
|
4790
4877
|
|
|
4791
4878
|
/**
|
|
4792
|
-
* Charge quantity
|
|
4879
|
+
* Charge quantity. Minimum is 0 (zero is allowed).
|
|
4793
4880
|
*/
|
|
4794
4881
|
quantity: number;
|
|
4795
4882
|
|
|
@@ -4885,7 +4972,7 @@ export interface SubscriptionPreviewParams {
|
|
|
4885
4972
|
trialOverrideConfiguration?: SubscriptionPreviewParams.TrialOverrideConfiguration;
|
|
4886
4973
|
|
|
4887
4974
|
/**
|
|
4888
|
-
* Unit quantity for per-unit pricing
|
|
4975
|
+
* Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
|
|
4889
4976
|
*/
|
|
4890
4977
|
unitQuantity?: number;
|
|
4891
4978
|
}
|
|
@@ -5118,7 +5205,7 @@ export namespace SubscriptionPreviewParams {
|
|
|
5118
5205
|
featureId: string;
|
|
5119
5206
|
|
|
5120
5207
|
/**
|
|
5121
|
-
* Quantity of feature units
|
|
5208
|
+
* Quantity of feature units. Minimum is 0 (zero is allowed).
|
|
5122
5209
|
*/
|
|
5123
5210
|
quantity: number;
|
|
5124
5211
|
}
|
|
@@ -5218,7 +5305,8 @@ export namespace SubscriptionPreviewParams {
|
|
|
5218
5305
|
}
|
|
5219
5306
|
|
|
5220
5307
|
/**
|
|
5221
|
-
*
|
|
5308
|
+
* A charge selection for a subscription (references a catalog charge with a
|
|
5309
|
+
* quantity).
|
|
5222
5310
|
*/
|
|
5223
5311
|
export interface Charge {
|
|
5224
5312
|
/**
|
|
@@ -5227,7 +5315,7 @@ export namespace SubscriptionPreviewParams {
|
|
|
5227
5315
|
id: string;
|
|
5228
5316
|
|
|
5229
5317
|
/**
|
|
5230
|
-
* Charge quantity
|
|
5318
|
+
* Charge quantity. Minimum is 0 (zero is allowed).
|
|
5231
5319
|
*/
|
|
5232
5320
|
quantity: number;
|
|
5233
5321
|
|
|
@@ -5310,6 +5398,11 @@ export interface SubscriptionProvisionParams {
|
|
|
5310
5398
|
|
|
5311
5399
|
budget?: SubscriptionProvisionParams.Budget | null;
|
|
5312
5400
|
|
|
5401
|
+
/**
|
|
5402
|
+
* Subscription cancellation date
|
|
5403
|
+
*/
|
|
5404
|
+
cancellationDate?: string;
|
|
5405
|
+
|
|
5313
5406
|
charges?: Array<SubscriptionProvisionParams.Charge>;
|
|
5314
5407
|
|
|
5315
5408
|
/**
|
|
@@ -5367,7 +5460,7 @@ export interface SubscriptionProvisionParams {
|
|
|
5367
5460
|
trialOverrideConfiguration?: SubscriptionProvisionParams.TrialOverrideConfiguration;
|
|
5368
5461
|
|
|
5369
5462
|
/**
|
|
5370
|
-
* Unit quantity
|
|
5463
|
+
* Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
|
|
5371
5464
|
*/
|
|
5372
5465
|
unitQuantity?: number;
|
|
5373
5466
|
}
|
|
@@ -5694,7 +5787,8 @@ export namespace SubscriptionProvisionParams {
|
|
|
5694
5787
|
}
|
|
5695
5788
|
|
|
5696
5789
|
/**
|
|
5697
|
-
*
|
|
5790
|
+
* A charge selection for a subscription (references a catalog charge with a
|
|
5791
|
+
* quantity).
|
|
5698
5792
|
*/
|
|
5699
5793
|
export interface Charge {
|
|
5700
5794
|
/**
|
|
@@ -5703,7 +5797,7 @@ export namespace SubscriptionProvisionParams {
|
|
|
5703
5797
|
id: string;
|
|
5704
5798
|
|
|
5705
5799
|
/**
|
|
5706
|
-
* Charge quantity
|
|
5800
|
+
* Charge quantity. Minimum is 0 (zero is allowed).
|
|
5707
5801
|
*/
|
|
5708
5802
|
quantity: number;
|
|
5709
5803
|
|
|
@@ -12,6 +12,12 @@ export class Usage extends APIResource {
|
|
|
12
12
|
/**
|
|
13
13
|
* Immediately charges usage for a subscription via the billing integration.
|
|
14
14
|
* Calculates usage since the last charge and creates an invoice.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const response =
|
|
19
|
+
* await client.v1.subscriptions.usage.chargeUsage('x');
|
|
20
|
+
* ```
|
|
15
21
|
*/
|
|
16
22
|
chargeUsage(
|
|
17
23
|
id: string,
|
|
@@ -24,6 +30,13 @@ export class Usage extends APIResource {
|
|
|
24
30
|
/**
|
|
25
31
|
* Triggers a usage sync for a subscription, reporting current usage to the billing
|
|
26
32
|
* provider.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const response = await client.v1.subscriptions.usage.sync(
|
|
37
|
+
* 'x',
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
27
40
|
*/
|
|
28
41
|
sync(id: string, options?: RequestOptions): APIPromise<UsageSyncResponse> {
|
|
29
42
|
return this._client.post(path`/api/v1/subscriptions/${id}/usage/sync`, options);
|
|
@@ -11,6 +11,17 @@ import { path } from '../../internal/utils/path';
|
|
|
11
11
|
export class Usage extends APIResource {
|
|
12
12
|
/**
|
|
13
13
|
* Retrieves historical usage data for a customer's metered feature over time.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const response = await client.v1.usage.history(
|
|
18
|
+
* 'featureId',
|
|
19
|
+
* {
|
|
20
|
+
* customerId: 'customerId',
|
|
21
|
+
* startDate: '2019-12-27T18:11:19.117Z',
|
|
22
|
+
* },
|
|
23
|
+
* );
|
|
24
|
+
* ```
|
|
14
25
|
*/
|
|
15
26
|
history(
|
|
16
27
|
featureID: string,
|
|
@@ -24,6 +35,19 @@ export class Usage extends APIResource {
|
|
|
24
35
|
/**
|
|
25
36
|
* Reports usage measurements for metered features. The reported usage is used to
|
|
26
37
|
* track, limit, and bill customer consumption.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const response = await client.v1.usage.report({
|
|
42
|
+
* usages: [
|
|
43
|
+
* {
|
|
44
|
+
* customerId: 'customerId',
|
|
45
|
+
* featureId: 'featureId',
|
|
46
|
+
* value: -9007199254740991,
|
|
47
|
+
* },
|
|
48
|
+
* ],
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
27
51
|
*/
|
|
28
52
|
report(body: UsageReportParams, options?: RequestOptions): APIPromise<UsageReportResponse> {
|
|
29
53
|
return this._client.post('/api/v1/usage', { body, ...options });
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -11,8 +11,6 @@ import {
|
|
|
11
11
|
CouponUpdateCouponParams,
|
|
12
12
|
Coupons,
|
|
13
13
|
} from './coupons';
|
|
14
|
-
import * as EventsAPI from './events';
|
|
15
|
-
import { EventReportParams, EventReportResponse, Events } from './events';
|
|
16
14
|
import * as FeaturesAPI from './features';
|
|
17
15
|
import {
|
|
18
16
|
Feature,
|
|
@@ -46,6 +44,9 @@ import * as AddonsAPI from './addons/addons';
|
|
|
46
44
|
import {
|
|
47
45
|
Addon,
|
|
48
46
|
AddonCreateParams,
|
|
47
|
+
AddonListChargesParams,
|
|
48
|
+
AddonListChargesResponse,
|
|
49
|
+
AddonListChargesResponsesMyCursorIDPage,
|
|
49
50
|
AddonListParams,
|
|
50
51
|
AddonListResponse,
|
|
51
52
|
AddonListResponsesMyCursorIDPage,
|
|
@@ -57,6 +58,8 @@ import {
|
|
|
57
58
|
} from './addons/addons';
|
|
58
59
|
import * as CreditsAPI from './credits/credits';
|
|
59
60
|
import {
|
|
61
|
+
CreditGetAutoRechargeParams,
|
|
62
|
+
CreditGetAutoRechargeResponse,
|
|
60
63
|
CreditGetUsageParams,
|
|
61
64
|
CreditGetUsageResponse,
|
|
62
65
|
CreditListLedgerParams,
|
|
@@ -84,10 +87,18 @@ import {
|
|
|
84
87
|
CustomerUpdateParams,
|
|
85
88
|
Customers,
|
|
86
89
|
} from './customers/customers';
|
|
90
|
+
import * as EventsAPI from './events/events';
|
|
91
|
+
import { EventReportParams, EventReportResponse, Events } from './events/events';
|
|
87
92
|
import * as PlansAPI from './plans/plans';
|
|
88
93
|
import {
|
|
89
94
|
Plan,
|
|
90
95
|
PlanCreateParams,
|
|
96
|
+
PlanListChargesParams,
|
|
97
|
+
PlanListChargesResponse,
|
|
98
|
+
PlanListChargesResponsesMyCursorIDPage,
|
|
99
|
+
PlanListOverageChargesParams,
|
|
100
|
+
PlanListOverageChargesResponse,
|
|
101
|
+
PlanListOverageChargesResponsesMyCursorIDPage,
|
|
91
102
|
PlanListParams,
|
|
92
103
|
PlanListResponse,
|
|
93
104
|
PlanListResponsesMyCursorIDPage,
|
|
@@ -199,9 +210,11 @@ export declare namespace V1 {
|
|
|
199
210
|
|
|
200
211
|
export {
|
|
201
212
|
Credits as Credits,
|
|
213
|
+
type CreditGetAutoRechargeResponse as CreditGetAutoRechargeResponse,
|
|
202
214
|
type CreditGetUsageResponse as CreditGetUsageResponse,
|
|
203
215
|
type CreditListLedgerResponse as CreditListLedgerResponse,
|
|
204
216
|
type CreditListLedgerResponsesMyCursorIDPage as CreditListLedgerResponsesMyCursorIDPage,
|
|
217
|
+
type CreditGetAutoRechargeParams as CreditGetAutoRechargeParams,
|
|
205
218
|
type CreditGetUsageParams as CreditGetUsageParams,
|
|
206
219
|
type CreditListLedgerParams as CreditListLedgerParams,
|
|
207
220
|
};
|
|
@@ -220,12 +233,15 @@ export declare namespace V1 {
|
|
|
220
233
|
Addons as Addons,
|
|
221
234
|
type Addon as Addon,
|
|
222
235
|
type AddonListResponse as AddonListResponse,
|
|
236
|
+
type AddonListChargesResponse as AddonListChargesResponse,
|
|
223
237
|
type AddonPublishResponse as AddonPublishResponse,
|
|
224
238
|
type AddonRemoveDraftResponse as AddonRemoveDraftResponse,
|
|
225
239
|
type AddonListResponsesMyCursorIDPage as AddonListResponsesMyCursorIDPage,
|
|
240
|
+
type AddonListChargesResponsesMyCursorIDPage as AddonListChargesResponsesMyCursorIDPage,
|
|
226
241
|
type AddonCreateParams as AddonCreateParams,
|
|
227
242
|
type AddonUpdateParams as AddonUpdateParams,
|
|
228
243
|
type AddonListParams as AddonListParams,
|
|
244
|
+
type AddonListChargesParams as AddonListChargesParams,
|
|
229
245
|
type AddonPublishParams as AddonPublishParams,
|
|
230
246
|
};
|
|
231
247
|
|
|
@@ -233,12 +249,18 @@ export declare namespace V1 {
|
|
|
233
249
|
Plans as Plans,
|
|
234
250
|
type Plan as Plan,
|
|
235
251
|
type PlanListResponse as PlanListResponse,
|
|
252
|
+
type PlanListChargesResponse as PlanListChargesResponse,
|
|
253
|
+
type PlanListOverageChargesResponse as PlanListOverageChargesResponse,
|
|
236
254
|
type PlanPublishResponse as PlanPublishResponse,
|
|
237
255
|
type PlanRemoveDraftResponse as PlanRemoveDraftResponse,
|
|
238
256
|
type PlanListResponsesMyCursorIDPage as PlanListResponsesMyCursorIDPage,
|
|
257
|
+
type PlanListChargesResponsesMyCursorIDPage as PlanListChargesResponsesMyCursorIDPage,
|
|
258
|
+
type PlanListOverageChargesResponsesMyCursorIDPage as PlanListOverageChargesResponsesMyCursorIDPage,
|
|
239
259
|
type PlanCreateParams as PlanCreateParams,
|
|
240
260
|
type PlanUpdateParams as PlanUpdateParams,
|
|
241
261
|
type PlanListParams as PlanListParams,
|
|
262
|
+
type PlanListChargesParams as PlanListChargesParams,
|
|
263
|
+
type PlanListOverageChargesParams as PlanListOverageChargesParams,
|
|
242
264
|
type PlanPublishParams as PlanPublishParams,
|
|
243
265
|
};
|
|
244
266
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-beta.
|
|
1
|
+
export const VERSION = '0.1.0-beta.20'; // x-release-please-version
|
package/uploads.d.mts
CHANGED
package/uploads.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
|
package/uploads.d.ts
CHANGED
package/uploads.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,kCAA+B"}
|
package/uploads.mjs
CHANGED
package/uploads.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-beta.
|
|
1
|
+
export declare const VERSION = "0.1.0-beta.20";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-beta.
|
|
1
|
+
export declare const VERSION = "0.1.0-beta.20";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-beta.
|
|
4
|
+
exports.VERSION = '0.1.0-beta.20'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,eAAe,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-beta.
|
|
1
|
+
export const VERSION = '0.1.0-beta.20'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,CAAC,2BAA2B"}
|