@metronome/sdk 0.3.0 → 2.0.0
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 +113 -28
- package/README.md +123 -51
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/bin/cli +46 -0
- package/bin/migration-config.json +6 -0
- package/client.d.mts +232 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +232 -0
- package/client.d.ts.map +1 -0
- package/client.js +464 -0
- package/client.js.map +1 -0
- package/client.mjs +460 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +137 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +137 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +158 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +150 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +1 -46
- package/error.d.ts.map +1 -1
- package/error.js +3 -110
- package/error.js.map +1 -1
- package/error.mjs +1 -96
- package/error.mjs.map +1 -1
- package/index.d.mts +7 -144
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -143
- package/index.d.ts.map +1 -1
- package/index.js +14 -120
- package/index.js.map +1 -1
- package/index.mjs +6 -93
- package/index.mjs.map +1 -1
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +26 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +26 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +120 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +112 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +1 -0
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js +4 -2
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs +2 -1
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +16 -19
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +17 -19
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +1 -0
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +22 -21
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +12 -12
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +113 -64
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +1 -36
- package/pagination.d.ts.map +1 -1
- package/pagination.js +3 -40
- package/pagination.js.map +1 -1
- package/pagination.mjs +1 -38
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +1 -5
- package/resource.d.ts.map +1 -1
- package/resource.js +3 -8
- package/resource.js.map +1 -1
- package/resource.mjs +1 -6
- package/resource.mjs.map +1 -1
- package/resources/index.d.mts +5 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +2 -15
- package/resources/index.js.map +1 -1
- package/resources/shared.d.mts +2363 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +1470 -465
- package/resources/shared.d.ts.map +1 -1
- package/resources/v1/alerts.d.mts +207 -0
- package/resources/v1/alerts.d.mts.map +1 -0
- package/resources/v1/alerts.d.ts +107 -32
- package/resources/v1/alerts.d.ts.map +1 -1
- package/resources/v1/alerts.js +74 -3
- package/resources/v1/alerts.js.map +1 -1
- package/resources/v1/alerts.mjs +74 -3
- package/resources/v1/alerts.mjs.map +1 -1
- package/resources/v1/audit-logs.d.mts +108 -0
- package/resources/v1/audit-logs.d.mts.map +1 -0
- package/resources/v1/audit-logs.d.ts +45 -12
- package/resources/v1/audit-logs.d.ts.map +1 -1
- package/resources/v1/audit-logs.js +53 -12
- package/resources/v1/audit-logs.js.map +1 -1
- package/resources/v1/audit-logs.mjs +52 -10
- package/resources/v1/audit-logs.mjs.map +1 -1
- package/resources/v1/billable-metrics.d.mts +293 -0
- package/resources/v1/billable-metrics.d.mts.map +1 -0
- package/resources/v1/billable-metrics.d.ts +70 -15
- package/resources/v1/billable-metrics.d.ts.map +1 -1
- package/resources/v1/billable-metrics.js +70 -16
- package/resources/v1/billable-metrics.js.map +1 -1
- package/resources/v1/billable-metrics.mjs +69 -14
- package/resources/v1/billable-metrics.mjs.map +1 -1
- package/resources/v1/contracts/contracts.d.mts +3006 -0
- package/resources/v1/contracts/contracts.d.mts.map +1 -0
- package/resources/v1/contracts/contracts.d.ts +428 -1299
- package/resources/v1/contracts/contracts.d.ts.map +1 -1
- package/resources/v1/contracts/contracts.js +269 -50
- package/resources/v1/contracts/contracts.js.map +1 -1
- package/resources/v1/contracts/contracts.mjs +267 -26
- package/resources/v1/contracts/contracts.mjs.map +1 -1
- package/resources/v1/contracts/index.d.mts +5 -0
- package/resources/v1/contracts/index.d.mts.map +1 -0
- package/resources/v1/contracts/index.d.ts +3 -3
- package/resources/v1/contracts/index.d.ts.map +1 -1
- package/resources/v1/contracts/index.js +1 -3
- package/resources/v1/contracts/index.js.map +1 -1
- package/resources/v1/contracts/index.mjs +2 -2
- package/resources/v1/contracts/index.mjs.map +1 -1
- package/resources/v1/contracts/named-schedules.d.mts +82 -0
- package/resources/v1/contracts/named-schedules.d.mts.map +1 -0
- package/resources/v1/contracts/named-schedules.d.ts +5 -4
- package/resources/v1/contracts/named-schedules.d.ts.map +1 -1
- package/resources/v1/contracts/named-schedules.js +3 -2
- package/resources/v1/contracts/named-schedules.js.map +1 -1
- package/resources/v1/contracts/named-schedules.mjs +3 -2
- package/resources/v1/contracts/named-schedules.mjs.map +1 -1
- package/resources/v1/contracts/products.d.mts +502 -0
- package/resources/v1/contracts/products.d.mts.map +1 -0
- package/resources/v1/contracts/products.d.ts +44 -17
- package/resources/v1/contracts/products.d.ts.map +1 -1
- package/resources/v1/contracts/products.js +41 -17
- package/resources/v1/contracts/products.js.map +1 -1
- package/resources/v1/contracts/products.mjs +40 -15
- package/resources/v1/contracts/products.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/index.d.mts +5 -0
- package/resources/v1/contracts/rate-cards/index.d.mts.map +1 -0
- package/resources/v1/contracts/rate-cards/index.d.ts +2 -2
- package/resources/v1/contracts/rate-cards/index.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/index.js +1 -3
- package/resources/v1/contracts/rate-cards/index.js.map +1 -1
- package/resources/v1/contracts/rate-cards/index.mjs +2 -2
- package/resources/v1/contracts/rate-cards/index.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/named-schedules.d.mts +94 -0
- package/resources/v1/contracts/rate-cards/named-schedules.d.mts.map +1 -0
- package/resources/v1/contracts/rate-cards/named-schedules.d.ts +5 -4
- package/resources/v1/contracts/rate-cards/named-schedules.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/named-schedules.js +3 -2
- package/resources/v1/contracts/rate-cards/named-schedules.js.map +1 -1
- package/resources/v1/contracts/rate-cards/named-schedules.mjs +3 -2
- package/resources/v1/contracts/rate-cards/named-schedules.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/product-orders.d.mts +85 -0
- package/resources/v1/contracts/rate-cards/product-orders.d.mts.map +1 -0
- package/resources/v1/contracts/rate-cards/product-orders.d.ts +12 -6
- package/resources/v1/contracts/rate-cards/product-orders.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/product-orders.js +8 -3
- package/resources/v1/contracts/rate-cards/product-orders.js.map +1 -1
- package/resources/v1/contracts/rate-cards/product-orders.mjs +8 -3
- package/resources/v1/contracts/rate-cards/product-orders.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/rate-cards.d.mts +452 -0
- package/resources/v1/contracts/rate-cards/rate-cards.d.mts.map +1 -0
- package/resources/v1/contracts/rate-cards/rate-cards.d.ts +134 -41
- package/resources/v1/contracts/rate-cards/rate-cards.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/rate-cards.js +127 -47
- package/resources/v1/contracts/rate-cards/rate-cards.js.map +1 -1
- package/resources/v1/contracts/rate-cards/rate-cards.mjs +123 -20
- package/resources/v1/contracts/rate-cards/rate-cards.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.d.mts +382 -0
- package/resources/v1/contracts/rate-cards/rates.d.mts.map +1 -0
- package/resources/v1/contracts/rate-cards/rates.d.ts +25 -82
- package/resources/v1/contracts/rate-cards/rates.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.js +13 -9
- package/resources/v1/contracts/rate-cards/rates.js.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.mjs +12 -7
- package/resources/v1/contracts/rate-cards/rates.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards.d.mts +2 -0
- package/resources/v1/contracts/rate-cards.d.mts.map +1 -0
- package/resources/v1/contracts/rate-cards.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards.js +2 -15
- package/resources/v1/contracts/rate-cards.js.map +1 -1
- package/resources/v1/contracts.d.mts +2 -0
- package/resources/v1/contracts.d.mts.map +1 -0
- package/resources/v1/contracts.d.ts.map +1 -1
- package/resources/v1/contracts.js +2 -15
- package/resources/v1/contracts.js.map +1 -1
- package/resources/v1/credit-grants.d.mts +505 -0
- package/resources/v1/credit-grants.d.mts.map +1 -0
- package/resources/v1/credit-grants.d.ts +73 -74
- package/resources/v1/credit-grants.d.ts.map +1 -1
- package/resources/v1/credit-grants.js +52 -18
- package/resources/v1/credit-grants.js.map +1 -1
- package/resources/v1/credit-grants.mjs +51 -16
- package/resources/v1/credit-grants.mjs.map +1 -1
- package/resources/v1/custom-fields.d.mts +151 -0
- package/resources/v1/custom-fields.d.mts.map +1 -0
- package/resources/v1/custom-fields.d.ts +69 -38
- package/resources/v1/custom-fields.d.ts.map +1 -1
- package/resources/v1/custom-fields.js +66 -22
- package/resources/v1/custom-fields.js.map +1 -1
- package/resources/v1/custom-fields.mjs +66 -22
- package/resources/v1/custom-fields.mjs.map +1 -1
- package/resources/v1/customers/alerts.d.mts +309 -0
- package/resources/v1/customers/alerts.d.mts.map +1 -0
- package/resources/v1/customers/alerts.d.ts +176 -50
- package/resources/v1/customers/alerts.d.ts.map +1 -1
- package/resources/v1/customers/alerts.js +131 -10
- package/resources/v1/customers/alerts.js.map +1 -1
- package/resources/v1/customers/alerts.mjs +131 -10
- package/resources/v1/customers/alerts.mjs.map +1 -1
- package/resources/v1/customers/billing-config.d.mts +125 -0
- package/resources/v1/customers/billing-config.d.mts.map +1 -0
- package/resources/v1/customers/billing-config.d.ts +8 -7
- package/resources/v1/customers/billing-config.d.ts.map +1 -1
- package/resources/v1/customers/billing-config.js +8 -6
- package/resources/v1/customers/billing-config.js.map +1 -1
- package/resources/v1/customers/billing-config.mjs +8 -6
- package/resources/v1/customers/billing-config.mjs.map +1 -1
- package/resources/v1/customers/commits.d.mts +456 -0
- package/resources/v1/customers/commits.d.mts.map +1 -0
- package/resources/v1/customers/commits.d.ts +139 -47
- package/resources/v1/customers/commits.d.ts.map +1 -1
- package/resources/v1/customers/commits.js +131 -12
- package/resources/v1/customers/commits.js.map +1 -1
- package/resources/v1/customers/commits.mjs +131 -12
- package/resources/v1/customers/commits.mjs.map +1 -1
- package/resources/v1/customers/credits.d.mts +310 -0
- package/resources/v1/customers/credits.d.mts.map +1 -0
- package/resources/v1/customers/credits.d.ts +124 -46
- package/resources/v1/customers/credits.d.ts.map +1 -1
- package/resources/v1/customers/credits.js +116 -11
- package/resources/v1/customers/credits.js.map +1 -1
- package/resources/v1/customers/credits.mjs +116 -11
- package/resources/v1/customers/credits.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +819 -0
- package/resources/v1/customers/customers.d.mts.map +1 -0
- package/resources/v1/customers/customers.d.ts +319 -55
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +220 -76
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +213 -44
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +9 -0
- package/resources/v1/customers/index.d.mts.map +1 -0
- package/resources/v1/customers/index.d.ts +6 -6
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js +1 -8
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +3 -3
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/invoices.d.mts +825 -0
- package/resources/v1/customers/invoices.d.mts.map +1 -0
- package/resources/v1/customers/invoices.d.ts +309 -25
- package/resources/v1/customers/invoices.d.ts.map +1 -1
- package/resources/v1/customers/invoices.js +180 -22
- package/resources/v1/customers/invoices.js.map +1 -1
- package/resources/v1/customers/invoices.mjs +179 -19
- package/resources/v1/customers/invoices.mjs.map +1 -1
- package/resources/v1/customers/named-schedules.d.mts +82 -0
- package/resources/v1/customers/named-schedules.d.mts.map +1 -0
- package/resources/v1/customers/named-schedules.d.ts +5 -4
- package/resources/v1/customers/named-schedules.d.ts.map +1 -1
- package/resources/v1/customers/named-schedules.js +3 -2
- package/resources/v1/customers/named-schedules.js.map +1 -1
- package/resources/v1/customers/named-schedules.mjs +3 -2
- package/resources/v1/customers/named-schedules.mjs.map +1 -1
- package/resources/v1/customers/plans.d.mts +281 -0
- package/resources/v1/customers/plans.d.mts.map +1 -0
- package/resources/v1/customers/plans.d.ts +14 -12
- package/resources/v1/customers/plans.d.ts.map +1 -1
- package/resources/v1/customers/plans.js +8 -15
- package/resources/v1/customers/plans.js.map +1 -1
- package/resources/v1/customers/plans.mjs +7 -12
- package/resources/v1/customers/plans.mjs.map +1 -1
- package/resources/v1/customers.d.mts +2 -0
- package/resources/v1/customers.d.mts.map +1 -0
- package/resources/v1/customers.d.ts.map +1 -1
- package/resources/v1/customers.js +2 -15
- package/resources/v1/customers.js.map +1 -1
- package/resources/v1/dashboards.d.mts +133 -0
- package/resources/v1/dashboards.d.mts.map +1 -0
- package/resources/v1/dashboards.d.ts +33 -6
- package/resources/v1/dashboards.d.ts.map +1 -1
- package/resources/v1/dashboards.js +30 -4
- package/resources/v1/dashboards.js.map +1 -1
- package/resources/v1/dashboards.mjs +30 -4
- package/resources/v1/dashboards.mjs.map +1 -1
- package/resources/v1/index.d.mts +16 -0
- package/resources/v1/index.d.mts.map +1 -0
- package/resources/v1/index.d.ts +10 -9
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +3 -12
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +8 -7
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/invoices.d.mts +83 -0
- package/resources/v1/invoices.d.mts.map +1 -0
- package/resources/v1/invoices.d.ts +28 -6
- package/resources/v1/invoices.d.ts.map +1 -1
- package/resources/v1/invoices.js +24 -3
- package/resources/v1/invoices.js.map +1 -1
- package/resources/v1/invoices.mjs +24 -3
- package/resources/v1/invoices.mjs.map +1 -1
- package/resources/v1/payments.d.mts +116 -0
- package/resources/v1/payments.d.mts.map +1 -0
- package/resources/v1/payments.d.ts +116 -0
- package/resources/v1/payments.d.ts.map +1 -0
- package/resources/v1/payments.js +71 -0
- package/resources/v1/payments.js.map +1 -0
- package/resources/v1/payments.mjs +67 -0
- package/resources/v1/payments.mjs.map +1 -0
- package/resources/v1/plans.d.mts +240 -0
- package/resources/v1/plans.d.mts.map +1 -0
- package/resources/v1/plans.d.ts +24 -15
- package/resources/v1/plans.d.ts.map +1 -1
- package/resources/v1/plans.js +19 -26
- package/resources/v1/plans.js.map +1 -1
- package/resources/v1/plans.mjs +18 -22
- package/resources/v1/plans.mjs.map +1 -1
- package/resources/v1/pricing-units.d.mts +34 -0
- package/resources/v1/pricing-units.d.mts.map +1 -0
- package/resources/v1/pricing-units.d.ts +12 -9
- package/resources/v1/pricing-units.d.ts.map +1 -1
- package/resources/v1/pricing-units.js +20 -12
- package/resources/v1/pricing-units.js.map +1 -1
- package/resources/v1/pricing-units.mjs +19 -10
- package/resources/v1/pricing-units.mjs.map +1 -1
- package/resources/v1/services.d.mts +33 -0
- package/resources/v1/services.d.mts.map +1 -0
- package/resources/v1/services.d.ts +10 -7
- package/resources/v1/services.d.ts.map +1 -1
- package/resources/v1/services.js +7 -5
- package/resources/v1/services.js.map +1 -1
- package/resources/v1/services.mjs +7 -5
- package/resources/v1/services.mjs.map +1 -1
- package/resources/v1/usage.d.mts +490 -0
- package/resources/v1/usage.d.mts.map +1 -0
- package/resources/v1/usage.d.ts +223 -58
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +214 -26
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +213 -24
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +62 -0
- package/resources/v1/v1.d.mts.map +1 -0
- package/resources/v1/v1.d.ts +19 -15
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +19 -48
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +12 -19
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1.d.mts +2 -0
- package/resources/v1.d.mts.map +1 -0
- package/resources/v1.d.ts.map +1 -1
- package/resources/v1.js +2 -15
- package/resources/v1.js.map +1 -1
- package/resources/v2/contracts.d.mts +2900 -0
- package/resources/v2/contracts.d.mts.map +1 -0
- package/resources/v2/contracts.d.ts +399 -3830
- package/resources/v2/contracts.d.ts.map +1 -1
- package/resources/v2/contracts.js +102 -12
- package/resources/v2/contracts.js.map +1 -1
- package/resources/v2/contracts.mjs +102 -12
- package/resources/v2/contracts.mjs.map +1 -1
- package/resources/v2/index.d.mts +3 -0
- package/resources/v2/index.d.mts.map +1 -0
- package/resources/v2/index.d.ts.map +1 -1
- package/resources/v2/v2.d.mts +10 -0
- package/resources/v2/v2.d.mts.map +1 -0
- package/resources/v2/v2.d.ts +1 -1
- package/resources/v2/v2.d.ts.map +1 -1
- package/resources/v2/v2.js +3 -25
- package/resources/v2/v2.js.map +1 -1
- package/resources/v2/v2.mjs +1 -1
- package/resources/v2.d.mts +2 -0
- package/resources/v2.d.mts.map +1 -0
- package/resources/v2.d.ts.map +1 -1
- package/resources/v2.js +2 -15
- package/resources/v2.js.map +1 -1
- package/resources/webhooks.d.mts +22 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +1 -1
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +3 -3
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/api-promise.ts +2 -0
- package/src/client.ts +809 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +319 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -130
- package/src/index.ts +6 -221
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +144 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/qs/formats.ts +3 -2
- package/src/internal/qs/index.ts +3 -3
- package/src/internal/qs/stringify.ts +18 -21
- package/src/internal/qs/utils.ts +16 -16
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/pagination.ts +2 -82
- package/src/resource.ts +2 -11
- package/src/resources/index.ts +4 -4
- package/src/resources/shared.ts +1921 -506
- package/src/resources/v1/alerts.ts +108 -33
- package/src/resources/v1/audit-logs.ts +48 -26
- package/src/resources/v1/billable-metrics.ts +79 -34
- package/src/resources/v1/contracts/contracts.ts +490 -1632
- package/src/resources/v1/contracts/index.ts +7 -6
- package/src/resources/v1/contracts/named-schedules.ts +8 -6
- package/src/resources/v1/contracts/products.ts +50 -38
- package/src/resources/v1/contracts/rate-cards/index.ts +6 -6
- package/src/resources/v1/contracts/rate-cards/named-schedules.ts +8 -6
- package/src/resources/v1/contracts/rate-cards/product-orders.ts +13 -10
- package/src/resources/v1/contracts/rate-cards/rate-cards.ts +145 -72
- package/src/resources/v1/contracts/rate-cards/rates.ts +28 -98
- package/src/resources/v1/contracts/rate-cards.ts +1 -1
- package/src/resources/v1/contracts.ts +1 -1
- package/src/resources/v1/credit-grants.ts +100 -112
- package/src/resources/v1/custom-fields.ts +106 -74
- package/src/resources/v1/customers/alerts.ts +195 -55
- package/src/resources/v1/customers/billing-config.ts +27 -13
- package/src/resources/v1/customers/commits.ts +146 -54
- package/src/resources/v1/customers/credits.ts +131 -53
- package/src/resources/v1/customers/customers.ts +407 -115
- package/src/resources/v1/customers/index.ts +20 -18
- package/src/resources/v1/customers/invoices.ts +343 -42
- package/src/resources/v1/customers/named-schedules.ts +8 -6
- package/src/resources/v1/customers/plans.ts +24 -22
- package/src/resources/v1/customers.ts +1 -1
- package/src/resources/v1/dashboards.ts +34 -7
- package/src/resources/v1/index.ts +43 -25
- package/src/resources/v1/invoices.ts +28 -9
- package/src/resources/v1/payments.ts +170 -0
- package/src/resources/v1/plans.ts +42 -43
- package/src/resources/v1/pricing-units.ts +15 -23
- package/src/resources/v1/services.ts +10 -7
- package/src/resources/v1/usage.ts +247 -73
- package/src/resources/v1/v1.ts +78 -49
- package/src/resources/v1.ts +1 -1
- package/src/resources/v2/contracts.ts +469 -4930
- package/src/resources/v2/index.ts +2 -2
- package/src/resources/v2/v2.ts +3 -3
- package/src/resources/v2.ts +1 -1
- package/src/resources/webhooks.ts +2 -2
- package/src/resources.ts +1 -1
- package/src/tsconfig.json +2 -2
- package/src/uploads.ts +2 -255
- package/src/version.ts +1 -1
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +1 -74
- package/uploads.d.ts.map +1 -1
- package/uploads.js +3 -168
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -157
- package/uploads.mjs.map +1 -1
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/_shims/MultipartBody.d.ts +0 -9
- package/_shims/MultipartBody.d.ts.map +0 -1
- package/_shims/MultipartBody.js +0 -16
- package/_shims/MultipartBody.js.map +0 -1
- package/_shims/MultipartBody.mjs +0 -12
- package/_shims/MultipartBody.mjs.map +0 -1
- package/_shims/README.md +0 -46
- package/_shims/auto/runtime-bun.d.ts +0 -5
- package/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/_shims/auto/runtime-bun.js +0 -21
- package/_shims/auto/runtime-bun.js.map +0 -1
- package/_shims/auto/runtime-bun.mjs +0 -2
- package/_shims/auto/runtime-bun.mjs.map +0 -1
- package/_shims/auto/runtime-node.d.ts +0 -5
- package/_shims/auto/runtime-node.d.ts.map +0 -1
- package/_shims/auto/runtime-node.js +0 -21
- package/_shims/auto/runtime-node.js.map +0 -1
- package/_shims/auto/runtime-node.mjs +0 -2
- package/_shims/auto/runtime-node.mjs.map +0 -1
- package/_shims/auto/runtime.d.ts +0 -5
- package/_shims/auto/runtime.d.ts.map +0 -1
- package/_shims/auto/runtime.js +0 -21
- package/_shims/auto/runtime.js.map +0 -1
- package/_shims/auto/runtime.mjs +0 -2
- package/_shims/auto/runtime.mjs.map +0 -1
- package/_shims/auto/types-node.d.ts +0 -5
- package/_shims/auto/types-node.d.ts.map +0 -1
- package/_shims/auto/types-node.js +0 -21
- package/_shims/auto/types-node.js.map +0 -1
- package/_shims/auto/types-node.mjs +0 -2
- package/_shims/auto/types-node.mjs.map +0 -1
- package/_shims/auto/types.d.ts +0 -101
- package/_shims/auto/types.js +0 -3
- package/_shims/auto/types.mjs +0 -3
- package/_shims/bun-runtime.d.ts +0 -6
- package/_shims/bun-runtime.d.ts.map +0 -1
- package/_shims/bun-runtime.js +0 -14
- package/_shims/bun-runtime.js.map +0 -1
- package/_shims/bun-runtime.mjs +0 -10
- package/_shims/bun-runtime.mjs.map +0 -1
- package/_shims/index.d.ts +0 -83
- package/_shims/index.js +0 -17
- package/_shims/index.mjs +0 -11
- package/_shims/manual-types.d.ts +0 -12
- package/_shims/manual-types.js +0 -3
- package/_shims/manual-types.mjs +0 -3
- package/_shims/node-runtime.d.ts +0 -3
- package/_shims/node-runtime.d.ts.map +0 -1
- package/_shims/node-runtime.js +0 -89
- package/_shims/node-runtime.js.map +0 -1
- package/_shims/node-runtime.mjs +0 -56
- package/_shims/node-runtime.mjs.map +0 -1
- package/_shims/node-types.d.ts +0 -42
- package/_shims/node-types.js +0 -3
- package/_shims/node-types.mjs +0 -3
- package/_shims/registry.d.ts +0 -37
- package/_shims/registry.d.ts.map +0 -1
- package/_shims/registry.js +0 -41
- package/_shims/registry.js.map +0 -1
- package/_shims/registry.mjs +0 -37
- package/_shims/registry.mjs.map +0 -1
- package/_shims/web-runtime.d.ts +0 -5
- package/_shims/web-runtime.d.ts.map +0 -1
- package/_shims/web-runtime.js +0 -78
- package/_shims/web-runtime.js.map +0 -1
- package/_shims/web-runtime.mjs +0 -71
- package/_shims/web-runtime.mjs.map +0 -1
- package/_shims/web-types.d.ts +0 -83
- package/_shims/web-types.js +0 -3
- package/_shims/web-types.mjs +0 -3
- package/core.d.ts +0 -255
- package/core.d.ts.map +0 -1
- package/core.js +0 -924
- package/core.js.map +0 -1
- package/core.mjs +0 -892
- package/core.mjs.map +0 -1
- package/shims/node.d.ts +0 -30
- package/shims/node.d.ts.map +0 -1
- package/shims/node.js +0 -31
- package/shims/node.js.map +0 -1
- package/shims/node.mjs +0 -5
- package/shims/node.mjs.map +0 -1
- package/shims/web.d.ts +0 -26
- package/shims/web.d.ts.map +0 -1
- package/shims/web.js +0 -31
- package/shims/web.js.map +0 -1
- package/shims/web.mjs +0 -5
- package/shims/web.mjs.map +0 -1
- package/src/_shims/MultipartBody.ts +0 -9
- package/src/_shims/README.md +0 -46
- package/src/_shims/auto/runtime-bun.ts +0 -4
- package/src/_shims/auto/runtime-node.ts +0 -4
- package/src/_shims/auto/runtime.ts +0 -4
- package/src/_shims/auto/types-node.ts +0 -4
- package/src/_shims/auto/types.d.ts +0 -101
- package/src/_shims/auto/types.js +0 -3
- package/src/_shims/auto/types.mjs +0 -3
- package/src/_shims/bun-runtime.ts +0 -14
- package/src/_shims/index.d.ts +0 -83
- package/src/_shims/index.js +0 -17
- package/src/_shims/index.mjs +0 -11
- package/src/_shims/manual-types.d.ts +0 -12
- package/src/_shims/manual-types.js +0 -3
- package/src/_shims/manual-types.mjs +0 -3
- package/src/_shims/node-runtime.ts +0 -81
- package/src/_shims/node-types.d.ts +0 -42
- package/src/_shims/node-types.js +0 -3
- package/src/_shims/node-types.mjs +0 -3
- package/src/_shims/registry.ts +0 -67
- package/src/_shims/web-runtime.ts +0 -103
- package/src/_shims/web-types.d.ts +0 -83
- package/src/_shims/web-types.js +0 -3
- package/src/_shims/web-types.mjs +0 -3
- package/src/core.ts +0 -1236
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
|
@@ -0,0 +1,505 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as CreditGrantsAPI from "./credit-grants.mjs";
|
|
3
|
+
import * as Shared from "../shared.mjs";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
+
import { CursorPage, type CursorPageParams, CursorPageWithoutLimit, type CursorPageWithoutLimitParams, PagePromise } from "../../core/pagination.mjs";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
|
+
export declare class CreditGrants extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create a new credit grant
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const creditGrant = await client.v1.creditGrants.create({
|
|
14
|
+
* customer_id: '9b85c1c1-5238-4f2a-a409-61412905e1e1',
|
|
15
|
+
* expires_at: '2022-04-01T00:00:00Z',
|
|
16
|
+
* grant_amount: {
|
|
17
|
+
* amount: 1000,
|
|
18
|
+
* credit_type_id: '5ae401dc-a648-4b49-9ac3-391bb5bc4d7b',
|
|
19
|
+
* },
|
|
20
|
+
* name: 'Acme Corp Promotional Credit Grant',
|
|
21
|
+
* paid_amount: {
|
|
22
|
+
* amount: 5000,
|
|
23
|
+
* credit_type_id: '2714e483-4ff1-48e4-9e25-ac732e8f24f2',
|
|
24
|
+
* },
|
|
25
|
+
* priority: 0.5,
|
|
26
|
+
* credit_grant_type: 'trial',
|
|
27
|
+
* effective_at: '2022-02-01T00:00:00Z',
|
|
28
|
+
* reason: 'Incentivize new customer',
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
create(body: CreditGrantCreateParams, options?: RequestOptions): APIPromise<CreditGrantCreateResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* List credit grants. This list does not included voided grants.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* // Automatically fetches more pages as needed.
|
|
39
|
+
* for await (const creditGrantListResponse of client.v1.creditGrants.list(
|
|
40
|
+
* {
|
|
41
|
+
* credit_type_ids: [
|
|
42
|
+
* '2714e483-4ff1-48e4-9e25-ac732e8f24f2',
|
|
43
|
+
* ],
|
|
44
|
+
* customer_ids: [
|
|
45
|
+
* 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
|
|
46
|
+
* '0e5b8609-d901-4992-b394-c3c2e3f37b1c',
|
|
47
|
+
* ],
|
|
48
|
+
* effective_before: '2022-02-01T00:00:00Z',
|
|
49
|
+
* not_expiring_before: '2022-02-01T00:00:00Z',
|
|
50
|
+
* },
|
|
51
|
+
* )) {
|
|
52
|
+
* // ...
|
|
53
|
+
* }
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
list(params?: CreditGrantListParams | null | undefined, options?: RequestOptions): PagePromise<CreditGrantListResponsesCursorPage, CreditGrantListResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* Edit an existing credit grant
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const response = await client.v1.creditGrants.edit({
|
|
63
|
+
* id: '9b85c1c1-5238-4f2a-a409-61412905e1e1',
|
|
64
|
+
* expires_at: '2022-04-01T00:00:00Z',
|
|
65
|
+
* name: 'Acme Corp Promotional Credit Grant',
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
edit(body: CreditGrantEditParams, options?: RequestOptions): APIPromise<CreditGrantEditResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Fetches a list of credit ledger entries. Returns lists of ledgers per customer.
|
|
72
|
+
* Ledger entries are returned in chronological order. Ledger entries associated
|
|
73
|
+
* with voided credit grants are not included.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* // Automatically fetches more pages as needed.
|
|
78
|
+
* for await (const creditGrantListEntriesResponse of client.v1.creditGrants.listEntries(
|
|
79
|
+
* {
|
|
80
|
+
* credit_type_ids: [
|
|
81
|
+
* '2714e483-4ff1-48e4-9e25-ac732e8f24f2',
|
|
82
|
+
* ],
|
|
83
|
+
* customer_ids: ['6a37bb88-8538-48c5-b37b-a41c836328bd'],
|
|
84
|
+
* ending_before: '2021-02-01T00:00:00Z',
|
|
85
|
+
* starting_on: '2021-01-01T00:00:00Z',
|
|
86
|
+
* },
|
|
87
|
+
* )) {
|
|
88
|
+
* // ...
|
|
89
|
+
* }
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
listEntries(params?: CreditGrantListEntriesParams | null | undefined, options?: RequestOptions): PagePromise<CreditGrantListEntriesResponsesCursorPageWithoutLimit, CreditGrantListEntriesResponse>;
|
|
93
|
+
/**
|
|
94
|
+
* Void a credit grant
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```ts
|
|
98
|
+
* const response = await client.v1.creditGrants.void({
|
|
99
|
+
* id: '9b85c1c1-5238-4f2a-a409-61412905e1e1',
|
|
100
|
+
* });
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
void(body: CreditGrantVoidParams, options?: RequestOptions): APIPromise<CreditGrantVoidResponse>;
|
|
104
|
+
}
|
|
105
|
+
export type CreditGrantListResponsesCursorPage = CursorPage<CreditGrantListResponse>;
|
|
106
|
+
export type CreditGrantListEntriesResponsesCursorPageWithoutLimit = CursorPageWithoutLimit<CreditGrantListEntriesResponse>;
|
|
107
|
+
export interface CreditLedgerEntry {
|
|
108
|
+
/**
|
|
109
|
+
* an amount representing the change to the customer's credit balance
|
|
110
|
+
*/
|
|
111
|
+
amount: number;
|
|
112
|
+
created_by: string;
|
|
113
|
+
/**
|
|
114
|
+
* the credit grant this entry is related to
|
|
115
|
+
*/
|
|
116
|
+
credit_grant_id: string;
|
|
117
|
+
effective_at: string;
|
|
118
|
+
reason: string;
|
|
119
|
+
/**
|
|
120
|
+
* the running balance for this credit type at the time of the ledger entry,
|
|
121
|
+
* including all preceding charges
|
|
122
|
+
*/
|
|
123
|
+
running_balance: number;
|
|
124
|
+
/**
|
|
125
|
+
* if this entry is a deduction, the Metronome ID of the invoice where the credit
|
|
126
|
+
* deduction was consumed; if this entry is a grant, the Metronome ID of the
|
|
127
|
+
* invoice where the grant's paid_amount was charged
|
|
128
|
+
*/
|
|
129
|
+
invoice_id?: string | null;
|
|
130
|
+
}
|
|
131
|
+
export interface RolloverAmountMaxAmount {
|
|
132
|
+
/**
|
|
133
|
+
* Rollover up to a fixed amount of the original credit grant amount.
|
|
134
|
+
*/
|
|
135
|
+
type: 'MAX_AMOUNT';
|
|
136
|
+
/**
|
|
137
|
+
* The maximum amount to rollover.
|
|
138
|
+
*/
|
|
139
|
+
value: number;
|
|
140
|
+
}
|
|
141
|
+
export interface RolloverAmountMaxPercentage {
|
|
142
|
+
/**
|
|
143
|
+
* Rollover up to a percentage of the original credit grant amount.
|
|
144
|
+
*/
|
|
145
|
+
type: 'MAX_PERCENTAGE';
|
|
146
|
+
/**
|
|
147
|
+
* The maximum percentage (0-1) of the original credit grant to rollover.
|
|
148
|
+
*/
|
|
149
|
+
value: number;
|
|
150
|
+
}
|
|
151
|
+
export interface CreditGrantCreateResponse {
|
|
152
|
+
data: Shared.ID;
|
|
153
|
+
}
|
|
154
|
+
export interface CreditGrantListResponse {
|
|
155
|
+
/**
|
|
156
|
+
* the Metronome ID of the credit grant
|
|
157
|
+
*/
|
|
158
|
+
id: string;
|
|
159
|
+
/**
|
|
160
|
+
* The effective balance of the grant as of the end of the customer's current
|
|
161
|
+
* billing period. Expiration deductions will be included only if the grant expires
|
|
162
|
+
* before the end of the current billing period.
|
|
163
|
+
*/
|
|
164
|
+
balance: CreditGrantListResponse.Balance;
|
|
165
|
+
/**
|
|
166
|
+
* Custom fields to be added eg. { "key1": "value1", "key2": "value2" }
|
|
167
|
+
*/
|
|
168
|
+
custom_fields: {
|
|
169
|
+
[key: string]: string;
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* the Metronome ID of the customer
|
|
173
|
+
*/
|
|
174
|
+
customer_id: string;
|
|
175
|
+
deductions: Array<CreditLedgerEntry>;
|
|
176
|
+
effective_at: string;
|
|
177
|
+
expires_at: string;
|
|
178
|
+
/**
|
|
179
|
+
* the amount of credits initially granted
|
|
180
|
+
*/
|
|
181
|
+
grant_amount: CreditGrantListResponse.GrantAmount;
|
|
182
|
+
name: string;
|
|
183
|
+
/**
|
|
184
|
+
* the amount paid for this credit grant
|
|
185
|
+
*/
|
|
186
|
+
paid_amount: CreditGrantListResponse.PaidAmount;
|
|
187
|
+
pending_deductions: Array<CreditLedgerEntry>;
|
|
188
|
+
priority: number;
|
|
189
|
+
credit_grant_type?: string | null;
|
|
190
|
+
/**
|
|
191
|
+
* the Metronome ID of the invoice with the purchase charge for this credit grant,
|
|
192
|
+
* if applicable
|
|
193
|
+
*/
|
|
194
|
+
invoice_id?: string | null;
|
|
195
|
+
/**
|
|
196
|
+
* The products which these credits will be applied to. (If unspecified, the
|
|
197
|
+
* credits will be applied to charges for all products.)
|
|
198
|
+
*/
|
|
199
|
+
products?: Array<CreditGrantListResponse.Product>;
|
|
200
|
+
reason?: string | null;
|
|
201
|
+
/**
|
|
202
|
+
* Prevents the creation of duplicates. If a request to create a record is made
|
|
203
|
+
* with a previously used uniqueness key, a new record will not be created and the
|
|
204
|
+
* request will fail with a 409 error.
|
|
205
|
+
*/
|
|
206
|
+
uniqueness_key?: string | null;
|
|
207
|
+
}
|
|
208
|
+
export declare namespace CreditGrantListResponse {
|
|
209
|
+
/**
|
|
210
|
+
* The effective balance of the grant as of the end of the customer's current
|
|
211
|
+
* billing period. Expiration deductions will be included only if the grant expires
|
|
212
|
+
* before the end of the current billing period.
|
|
213
|
+
*/
|
|
214
|
+
interface Balance {
|
|
215
|
+
/**
|
|
216
|
+
* The end_date of the customer's current billing period.
|
|
217
|
+
*/
|
|
218
|
+
effective_at: string;
|
|
219
|
+
/**
|
|
220
|
+
* The grant's current balance including all posted deductions. If the grant has
|
|
221
|
+
* expired, this amount will be 0.
|
|
222
|
+
*/
|
|
223
|
+
excluding_pending: number;
|
|
224
|
+
/**
|
|
225
|
+
* The grant's current balance including all posted and pending deductions. If the
|
|
226
|
+
* grant expires before the end of the customer's current billing period, this
|
|
227
|
+
* amount will be 0.
|
|
228
|
+
*/
|
|
229
|
+
including_pending: number;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* the amount of credits initially granted
|
|
233
|
+
*/
|
|
234
|
+
interface GrantAmount {
|
|
235
|
+
amount: number;
|
|
236
|
+
/**
|
|
237
|
+
* the credit type for the amount granted
|
|
238
|
+
*/
|
|
239
|
+
credit_type: Shared.CreditTypeData;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* the amount paid for this credit grant
|
|
243
|
+
*/
|
|
244
|
+
interface PaidAmount {
|
|
245
|
+
amount: number;
|
|
246
|
+
/**
|
|
247
|
+
* the credit type for the amount paid
|
|
248
|
+
*/
|
|
249
|
+
credit_type: Shared.CreditTypeData;
|
|
250
|
+
}
|
|
251
|
+
interface Product {
|
|
252
|
+
id: string;
|
|
253
|
+
name: string;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
export interface CreditGrantEditResponse {
|
|
257
|
+
data: Shared.ID;
|
|
258
|
+
}
|
|
259
|
+
export interface CreditGrantListEntriesResponse {
|
|
260
|
+
customer_id: string;
|
|
261
|
+
ledgers: Array<CreditGrantListEntriesResponse.Ledger>;
|
|
262
|
+
}
|
|
263
|
+
export declare namespace CreditGrantListEntriesResponse {
|
|
264
|
+
interface Ledger {
|
|
265
|
+
credit_type: Shared.CreditTypeData;
|
|
266
|
+
/**
|
|
267
|
+
* the effective balances at the end of the specified time window
|
|
268
|
+
*/
|
|
269
|
+
ending_balance: Ledger.EndingBalance;
|
|
270
|
+
entries: Array<CreditGrantsAPI.CreditLedgerEntry>;
|
|
271
|
+
pending_entries: Array<CreditGrantsAPI.CreditLedgerEntry>;
|
|
272
|
+
starting_balance: Ledger.StartingBalance;
|
|
273
|
+
}
|
|
274
|
+
namespace Ledger {
|
|
275
|
+
/**
|
|
276
|
+
* the effective balances at the end of the specified time window
|
|
277
|
+
*/
|
|
278
|
+
interface EndingBalance {
|
|
279
|
+
/**
|
|
280
|
+
* the ending_before request parameter (if supplied) or the current billing
|
|
281
|
+
* period's end date
|
|
282
|
+
*/
|
|
283
|
+
effective_at: string;
|
|
284
|
+
/**
|
|
285
|
+
* the ending balance, including the balance of all grants that have not expired
|
|
286
|
+
* before the effective_at date and deductions that happened before the
|
|
287
|
+
* effective_at date
|
|
288
|
+
*/
|
|
289
|
+
excluding_pending: number;
|
|
290
|
+
/**
|
|
291
|
+
* the excluding_pending balance plus any pending invoice deductions and
|
|
292
|
+
* expirations that will happen by the effective_at date
|
|
293
|
+
*/
|
|
294
|
+
including_pending: number;
|
|
295
|
+
}
|
|
296
|
+
interface StartingBalance {
|
|
297
|
+
/**
|
|
298
|
+
* the starting_on request parameter (if supplied) or the first credit grant's
|
|
299
|
+
* effective_at date
|
|
300
|
+
*/
|
|
301
|
+
effective_at: string;
|
|
302
|
+
/**
|
|
303
|
+
* the starting balance, including all posted grants, deductions, and expirations
|
|
304
|
+
* that happened at or before the effective_at timestamp
|
|
305
|
+
*/
|
|
306
|
+
excluding_pending: number;
|
|
307
|
+
/**
|
|
308
|
+
* the excluding_pending balance plus any pending activity that has not been posted
|
|
309
|
+
* at the time of the query
|
|
310
|
+
*/
|
|
311
|
+
including_pending: number;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
export interface CreditGrantVoidResponse {
|
|
316
|
+
data: Shared.ID;
|
|
317
|
+
}
|
|
318
|
+
export interface CreditGrantCreateParams {
|
|
319
|
+
/**
|
|
320
|
+
* the Metronome ID of the customer
|
|
321
|
+
*/
|
|
322
|
+
customer_id: string;
|
|
323
|
+
/**
|
|
324
|
+
* The credit grant will only apply to usage or charges dated before this timestamp
|
|
325
|
+
*/
|
|
326
|
+
expires_at: string;
|
|
327
|
+
/**
|
|
328
|
+
* the amount of credits granted
|
|
329
|
+
*/
|
|
330
|
+
grant_amount: CreditGrantCreateParams.GrantAmount;
|
|
331
|
+
/**
|
|
332
|
+
* the name of the credit grant as it will appear on invoices
|
|
333
|
+
*/
|
|
334
|
+
name: string;
|
|
335
|
+
/**
|
|
336
|
+
* the amount paid for this credit grant
|
|
337
|
+
*/
|
|
338
|
+
paid_amount: CreditGrantCreateParams.PaidAmount;
|
|
339
|
+
priority: number;
|
|
340
|
+
credit_grant_type?: string;
|
|
341
|
+
/**
|
|
342
|
+
* Custom fields to attach to the credit grant.
|
|
343
|
+
*/
|
|
344
|
+
custom_fields?: {
|
|
345
|
+
[key: string]: string;
|
|
346
|
+
};
|
|
347
|
+
/**
|
|
348
|
+
* The credit grant will only apply to usage or charges dated on or after this
|
|
349
|
+
* timestamp
|
|
350
|
+
*/
|
|
351
|
+
effective_at?: string;
|
|
352
|
+
/**
|
|
353
|
+
* The date to issue an invoice for the paid_amount.
|
|
354
|
+
*/
|
|
355
|
+
invoice_date?: string;
|
|
356
|
+
/**
|
|
357
|
+
* The product(s) which these credits will be applied to. (If unspecified, the
|
|
358
|
+
* credits will be applied to charges for all products.). The array ordering
|
|
359
|
+
* specified here will be used to determine the order in which credits will be
|
|
360
|
+
* applied to invoice line items
|
|
361
|
+
*/
|
|
362
|
+
product_ids?: Array<string>;
|
|
363
|
+
reason?: string;
|
|
364
|
+
/**
|
|
365
|
+
* Configure a rollover for this credit grant so if it expires it rolls over a
|
|
366
|
+
* configured amount to a new credit grant. This feature is currently opt-in only.
|
|
367
|
+
* Contact Metronome to be added to the beta.
|
|
368
|
+
*/
|
|
369
|
+
rollover_settings?: CreditGrantCreateParams.RolloverSettings;
|
|
370
|
+
/**
|
|
371
|
+
* Prevents the creation of duplicates. If a request to create a record is made
|
|
372
|
+
* with a previously used uniqueness key, a new record will not be created and the
|
|
373
|
+
* request will fail with a 409 error.
|
|
374
|
+
*/
|
|
375
|
+
uniqueness_key?: string;
|
|
376
|
+
}
|
|
377
|
+
export declare namespace CreditGrantCreateParams {
|
|
378
|
+
/**
|
|
379
|
+
* the amount of credits granted
|
|
380
|
+
*/
|
|
381
|
+
interface GrantAmount {
|
|
382
|
+
amount: number;
|
|
383
|
+
/**
|
|
384
|
+
* the ID of the pricing unit to be used. Defaults to USD (cents) if not passed.
|
|
385
|
+
*/
|
|
386
|
+
credit_type_id: string;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* the amount paid for this credit grant
|
|
390
|
+
*/
|
|
391
|
+
interface PaidAmount {
|
|
392
|
+
amount: number;
|
|
393
|
+
/**
|
|
394
|
+
* the ID of the pricing unit to be used. Defaults to USD (cents) if not passed.
|
|
395
|
+
*/
|
|
396
|
+
credit_type_id: string;
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Configure a rollover for this credit grant so if it expires it rolls over a
|
|
400
|
+
* configured amount to a new credit grant. This feature is currently opt-in only.
|
|
401
|
+
* Contact Metronome to be added to the beta.
|
|
402
|
+
*/
|
|
403
|
+
interface RolloverSettings {
|
|
404
|
+
/**
|
|
405
|
+
* The date to expire the rollover credits.
|
|
406
|
+
*/
|
|
407
|
+
expires_at: string;
|
|
408
|
+
/**
|
|
409
|
+
* The priority to give the rollover credit grant that gets created when a rollover
|
|
410
|
+
* happens.
|
|
411
|
+
*/
|
|
412
|
+
priority: number;
|
|
413
|
+
/**
|
|
414
|
+
* Specify how much to rollover to the rollover credit grant
|
|
415
|
+
*/
|
|
416
|
+
rollover_amount: CreditGrantsAPI.RolloverAmountMaxPercentage | CreditGrantsAPI.RolloverAmountMaxAmount;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
export interface CreditGrantListParams extends CursorPageParams {
|
|
420
|
+
/**
|
|
421
|
+
* Body param: An array of credit grant IDs. If this is specified, neither
|
|
422
|
+
* credit_type_ids nor customer_ids may be specified.
|
|
423
|
+
*/
|
|
424
|
+
credit_grant_ids?: Array<string>;
|
|
425
|
+
/**
|
|
426
|
+
* Body param: An array of credit type IDs. This must not be specified if
|
|
427
|
+
* credit_grant_ids is specified.
|
|
428
|
+
*/
|
|
429
|
+
credit_type_ids?: Array<string>;
|
|
430
|
+
/**
|
|
431
|
+
* Body param: An array of Metronome customer IDs. This must not be specified if
|
|
432
|
+
* credit_grant_ids is specified.
|
|
433
|
+
*/
|
|
434
|
+
customer_ids?: Array<string>;
|
|
435
|
+
/**
|
|
436
|
+
* Body param: Only return credit grants that are effective before this timestamp
|
|
437
|
+
* (exclusive).
|
|
438
|
+
*/
|
|
439
|
+
effective_before?: string;
|
|
440
|
+
/**
|
|
441
|
+
* Body param: Only return credit grants that expire at or after this timestamp.
|
|
442
|
+
*/
|
|
443
|
+
not_expiring_before?: string;
|
|
444
|
+
}
|
|
445
|
+
export interface CreditGrantEditParams {
|
|
446
|
+
/**
|
|
447
|
+
* the ID of the credit grant
|
|
448
|
+
*/
|
|
449
|
+
id: string;
|
|
450
|
+
/**
|
|
451
|
+
* the updated credit grant type
|
|
452
|
+
*/
|
|
453
|
+
credit_grant_type?: string;
|
|
454
|
+
/**
|
|
455
|
+
* the updated expiration date for the credit grant
|
|
456
|
+
*/
|
|
457
|
+
expires_at?: string;
|
|
458
|
+
/**
|
|
459
|
+
* the updated name for the credit grant
|
|
460
|
+
*/
|
|
461
|
+
name?: string;
|
|
462
|
+
}
|
|
463
|
+
export interface CreditGrantListEntriesParams extends CursorPageWithoutLimitParams {
|
|
464
|
+
/**
|
|
465
|
+
* Query param: Ledgers sort order by date, asc or desc. Defaults to asc.
|
|
466
|
+
*/
|
|
467
|
+
sort?: 'asc' | 'desc';
|
|
468
|
+
/**
|
|
469
|
+
* Body param: A list of Metronome credit type IDs to fetch ledger entries for. If
|
|
470
|
+
* absent, ledger entries for all credit types will be returned.
|
|
471
|
+
*/
|
|
472
|
+
credit_type_ids?: Array<string>;
|
|
473
|
+
/**
|
|
474
|
+
* Body param: A list of Metronome customer IDs to fetch ledger entries for. If
|
|
475
|
+
* absent, ledger entries for all customers will be returned.
|
|
476
|
+
*/
|
|
477
|
+
customer_ids?: Array<string>;
|
|
478
|
+
/**
|
|
479
|
+
* Body param: If supplied, ledger entries will only be returned with an
|
|
480
|
+
* effective_at before this time. This timestamp must not be in the future. If no
|
|
481
|
+
* timestamp is supplied, all entries up to the start of the customer's next
|
|
482
|
+
* billing period will be returned.
|
|
483
|
+
*/
|
|
484
|
+
ending_before?: string;
|
|
485
|
+
/**
|
|
486
|
+
* Body param: If supplied, only ledger entries effective at or after this time
|
|
487
|
+
* will be returned.
|
|
488
|
+
*/
|
|
489
|
+
starting_on?: string;
|
|
490
|
+
}
|
|
491
|
+
export interface CreditGrantVoidParams {
|
|
492
|
+
id: string;
|
|
493
|
+
/**
|
|
494
|
+
* If true, resets the uniqueness key on this grant so it can be re-used
|
|
495
|
+
*/
|
|
496
|
+
release_uniqueness_key?: boolean;
|
|
497
|
+
/**
|
|
498
|
+
* If true, void the purchase invoice associated with the grant
|
|
499
|
+
*/
|
|
500
|
+
void_credit_purchase_invoice?: boolean;
|
|
501
|
+
}
|
|
502
|
+
export declare namespace CreditGrants {
|
|
503
|
+
export { type CreditLedgerEntry as CreditLedgerEntry, type RolloverAmountMaxAmount as RolloverAmountMaxAmount, type RolloverAmountMaxPercentage as RolloverAmountMaxPercentage, type CreditGrantCreateResponse as CreditGrantCreateResponse, type CreditGrantListResponse as CreditGrantListResponse, type CreditGrantEditResponse as CreditGrantEditResponse, type CreditGrantListEntriesResponse as CreditGrantListEntriesResponse, type CreditGrantVoidResponse as CreditGrantVoidResponse, type CreditGrantListResponsesCursorPage as CreditGrantListResponsesCursorPage, type CreditGrantListEntriesResponsesCursorPageWithoutLimit as CreditGrantListEntriesResponsesCursorPageWithoutLimit, type CreditGrantCreateParams as CreditGrantCreateParams, type CreditGrantListParams as CreditGrantListParams, type CreditGrantEditParams as CreditGrantEditParams, type CreditGrantListEntriesParams as CreditGrantListEntriesParams, type CreditGrantVoidParams as CreditGrantVoidParams, };
|
|
504
|
+
}
|
|
505
|
+
//# sourceMappingURL=credit-grants.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credit-grants.d.mts","sourceRoot":"","sources":["../../src/resources/v1/credit-grants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,KAAK,MAAM;OACX,EAAE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