@metronome/sdk 0.1.0-beta.8 → 0.1.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 +227 -0
- package/README.md +37 -52
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +25 -15
- package/core.js.map +1 -1
- package/core.mjs +26 -16
- package/core.mjs.map +1 -1
- package/index.d.mts +10 -42
- package/index.d.ts +10 -42
- package/index.d.ts.map +1 -1
- package/index.js +14 -55
- package/index.js.map +1 -1
- package/index.mjs +14 -55
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.js +3 -0
- package/pagination.js.map +1 -1
- package/pagination.mjs +3 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/index.d.ts +2 -13
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -38
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -13
- package/resources/index.mjs.map +1 -1
- package/resources/shared.d.ts +512 -24
- package/resources/shared.d.ts.map +1 -1
- package/resources/{alerts.d.ts → v1/alerts.d.ts} +29 -5
- package/resources/v1/alerts.d.ts.map +1 -0
- package/resources/v1/alerts.js +40 -0
- package/resources/v1/alerts.js.map +1 -0
- package/resources/v1/alerts.mjs +36 -0
- package/resources/v1/alerts.mjs.map +1 -0
- package/resources/{audit-logs.d.ts → v1/audit-logs.d.ts} +11 -3
- package/resources/v1/audit-logs.d.ts.map +1 -0
- package/resources/{audit-logs.js → v1/audit-logs.js} +4 -4
- package/resources/v1/audit-logs.js.map +1 -0
- package/resources/{audit-logs.mjs → v1/audit-logs.mjs} +4 -4
- package/resources/v1/audit-logs.mjs.map +1 -0
- package/resources/{billable-metrics.d.ts → v1/billable-metrics.d.ts} +62 -7
- package/resources/v1/billable-metrics.d.ts.map +1 -0
- package/resources/v1/billable-metrics.js +84 -0
- package/resources/v1/billable-metrics.js.map +1 -0
- package/resources/v1/billable-metrics.mjs +79 -0
- package/resources/v1/billable-metrics.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/contracts.d.ts +1618 -62
- package/resources/v1/contracts/contracts.d.ts.map +1 -0
- package/resources/v1/contracts/contracts.js +312 -0
- package/resources/v1/contracts/contracts.js.map +1 -0
- package/resources/v1/contracts/contracts.mjs +285 -0
- package/resources/v1/contracts/contracts.mjs.map +1 -0
- package/resources/v1/contracts/index.d.ts +5 -0
- package/resources/v1/contracts/index.d.ts.map +1 -0
- package/resources/v1/contracts/index.js.map +1 -0
- package/resources/v1/contracts/index.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/named-schedules.d.ts +23 -2
- package/resources/v1/contracts/named-schedules.d.ts.map +1 -0
- package/resources/v1/contracts/named-schedules.js +48 -0
- package/resources/v1/contracts/named-schedules.js.map +1 -0
- package/resources/v1/contracts/named-schedules.mjs +44 -0
- package/resources/v1/contracts/named-schedules.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/products.d.ts +55 -7
- package/resources/v1/contracts/products.d.ts.map +1 -0
- package/resources/v1/contracts/products.js +84 -0
- package/resources/v1/contracts/products.js.map +1 -0
- package/resources/v1/contracts/products.mjs +79 -0
- package/resources/v1/contracts/products.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/rate-cards/index.d.ts +1 -1
- package/resources/v1/contracts/rate-cards/index.d.ts.map +1 -0
- package/resources/v1/contracts/rate-cards/index.js.map +1 -0
- package/resources/v1/contracts/rate-cards/index.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/rate-cards/named-schedules.d.ts +27 -2
- package/resources/v1/contracts/rate-cards/named-schedules.d.ts.map +1 -0
- package/resources/v1/contracts/rate-cards/named-schedules.js +52 -0
- package/resources/v1/contracts/rate-cards/named-schedules.js.map +1 -0
- package/resources/v1/contracts/rate-cards/named-schedules.mjs +48 -0
- package/resources/v1/contracts/rate-cards/named-schedules.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/rate-cards/product-orders.d.ts +33 -3
- package/resources/v1/contracts/rate-cards/product-orders.d.ts.map +1 -0
- package/resources/v1/contracts/rate-cards/product-orders.js +54 -0
- package/resources/v1/contracts/rate-cards/product-orders.js.map +1 -0
- package/resources/v1/contracts/rate-cards/product-orders.mjs +50 -0
- package/resources/v1/contracts/rate-cards/product-orders.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/rate-cards/rate-cards.d.ts +118 -14
- package/resources/v1/contracts/rate-cards/rate-cards.d.ts.map +1 -0
- package/resources/{contracts → v1/contracts}/rate-cards/rate-cards.js +83 -12
- package/resources/v1/contracts/rate-cards/rate-cards.js.map +1 -0
- package/resources/v1/contracts/rate-cards/rate-cards.mjs +140 -0
- package/resources/v1/contracts/rate-cards/rate-cards.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/rate-cards/rates.d.ts +118 -14
- package/resources/v1/contracts/rate-cards/rates.d.ts.map +1 -0
- package/resources/v1/contracts/rate-cards/rates.js +106 -0
- package/resources/v1/contracts/rate-cards/rates.js.map +1 -0
- package/resources/v1/contracts/rate-cards/rates.mjs +101 -0
- package/resources/v1/contracts/rate-cards/rates.mjs.map +1 -0
- package/resources/v1/contracts/rate-cards.d.ts +2 -0
- package/resources/v1/contracts/rate-cards.d.ts.map +1 -0
- package/resources/v1/contracts/rate-cards.js +19 -0
- package/resources/v1/contracts/rate-cards.js.map +1 -0
- package/resources/v1/contracts/rate-cards.mjs +3 -0
- package/resources/v1/contracts/rate-cards.mjs.map +1 -0
- package/resources/v1/contracts.d.ts +2 -0
- package/resources/v1/contracts.d.ts.map +1 -0
- package/resources/v1/contracts.js +19 -0
- package/resources/v1/contracts.js.map +1 -0
- package/resources/v1/contracts.mjs +3 -0
- package/resources/v1/contracts.mjs.map +1 -0
- package/resources/{credit-grants.d.ts → v1/credit-grants.d.ts} +81 -6
- package/resources/v1/credit-grants.d.ts.map +1 -0
- package/resources/v1/credit-grants.js +89 -0
- package/resources/v1/credit-grants.js.map +1 -0
- package/resources/v1/credit-grants.mjs +84 -0
- package/resources/v1/credit-grants.mjs.map +1 -0
- package/resources/{custom-fields.d.ts → v1/custom-fields.d.ts} +53 -9
- package/resources/v1/custom-fields.d.ts.map +1 -0
- package/resources/{custom-fields.js → v1/custom-fields.js} +42 -7
- package/resources/v1/custom-fields.js.map +1 -0
- package/resources/{custom-fields.mjs → v1/custom-fields.mjs} +42 -7
- package/resources/v1/custom-fields.mjs.map +1 -0
- package/resources/{customers → v1/customers}/alerts.d.ts +31 -3
- package/resources/v1/customers/alerts.d.ts.map +1 -0
- package/resources/v1/customers/alerts.js +56 -0
- package/resources/v1/customers/alerts.js.map +1 -0
- package/resources/v1/customers/alerts.mjs +52 -0
- package/resources/v1/customers/alerts.mjs.map +1 -0
- package/resources/{customers → v1/customers}/billing-config.d.ts +33 -2
- package/resources/v1/customers/billing-config.d.ts.map +1 -0
- package/resources/v1/customers/billing-config.js +65 -0
- package/resources/v1/customers/billing-config.js.map +1 -0
- package/resources/v1/customers/billing-config.mjs +61 -0
- package/resources/v1/customers/billing-config.mjs.map +1 -0
- package/resources/{customers → v1/customers}/commits.d.ts +97 -10
- package/resources/v1/customers/commits.d.ts.map +1 -0
- package/resources/v1/customers/commits.js +82 -0
- package/resources/v1/customers/commits.js.map +1 -0
- package/resources/v1/customers/commits.mjs +78 -0
- package/resources/v1/customers/commits.mjs.map +1 -0
- package/resources/{customers → v1/customers}/credits.d.ts +76 -6
- package/resources/v1/customers/credits.d.ts.map +1 -0
- package/resources/v1/customers/credits.js +67 -0
- package/resources/v1/customers/credits.js.map +1 -0
- package/resources/v1/customers/credits.mjs +63 -0
- package/resources/v1/customers/credits.mjs.map +1 -0
- package/resources/{customers → v1/customers}/customers.d.ts +197 -14
- package/resources/v1/customers/customers.d.ts.map +1 -0
- package/resources/{customers → v1/customers}/customers.js +118 -16
- package/resources/v1/customers/customers.js.map +1 -0
- package/resources/v1/customers/customers.mjs +228 -0
- package/resources/v1/customers/customers.mjs.map +1 -0
- package/resources/{customers → v1/customers}/index.d.ts +1 -1
- package/resources/v1/customers/index.d.ts.map +1 -0
- package/resources/v1/customers/index.js.map +1 -0
- package/resources/v1/customers/index.mjs.map +1 -0
- package/resources/{customers → v1/customers}/invoices.d.ts +152 -57
- package/resources/v1/customers/invoices.d.ts.map +1 -0
- package/resources/v1/customers/invoices.js +103 -0
- package/resources/v1/customers/invoices.js.map +1 -0
- package/resources/v1/customers/invoices.mjs +97 -0
- package/resources/v1/customers/invoices.mjs.map +1 -0
- package/resources/{customers → v1/customers}/named-schedules.d.ts +23 -2
- package/resources/v1/customers/named-schedules.d.ts.map +1 -0
- package/resources/v1/customers/named-schedules.js +48 -0
- package/resources/v1/customers/named-schedules.js.map +1 -0
- package/resources/v1/customers/named-schedules.mjs +44 -0
- package/resources/v1/customers/named-schedules.mjs.map +1 -0
- package/resources/{customers → v1/customers}/plans.d.ts +50 -5
- package/resources/v1/customers/plans.d.ts.map +1 -0
- package/resources/v1/customers/plans.js +99 -0
- package/resources/v1/customers/plans.js.map +1 -0
- package/resources/v1/customers/plans.mjs +93 -0
- package/resources/v1/customers/plans.mjs.map +1 -0
- package/resources/v1/customers.d.ts +2 -0
- package/resources/v1/customers.d.ts.map +1 -0
- package/resources/v1/customers.js +19 -0
- package/resources/v1/customers.js.map +1 -0
- package/resources/v1/customers.mjs +3 -0
- package/resources/v1/customers.mjs.map +1 -0
- package/resources/{dashboards.d.ts → v1/dashboards.d.ts} +32 -4
- package/resources/v1/dashboards.d.ts.map +1 -0
- package/resources/v1/dashboards.js +43 -0
- package/resources/v1/dashboards.js.map +1 -0
- package/resources/v1/dashboards.mjs +39 -0
- package/resources/v1/dashboards.mjs.map +1 -0
- package/resources/v1/index.d.ts +15 -0
- package/resources/v1/index.d.ts.map +1 -0
- package/resources/v1/index.js +44 -0
- package/resources/v1/index.js.map +1 -0
- package/resources/v1/index.mjs +16 -0
- package/resources/v1/index.mjs.map +1 -0
- package/resources/{invoices.d.ts → v1/invoices.d.ts} +16 -2
- package/resources/v1/invoices.d.ts.map +1 -0
- package/resources/v1/invoices.js +35 -0
- package/resources/v1/invoices.js.map +1 -0
- package/resources/v1/invoices.mjs +31 -0
- package/resources/v1/invoices.mjs.map +1 -0
- package/resources/{plans.d.ts → v1/plans.d.ts} +51 -8
- package/resources/v1/plans.d.ts.map +1 -0
- package/resources/{plans.js → v1/plans.js} +34 -7
- package/resources/v1/plans.js.map +1 -0
- package/resources/v1/plans.mjs +74 -0
- package/resources/v1/plans.mjs.map +1 -0
- package/resources/{pricing-units.d.ts → v1/pricing-units.d.ts} +11 -3
- package/resources/v1/pricing-units.d.ts.map +1 -0
- package/resources/{pricing-units.js → v1/pricing-units.js} +4 -4
- package/resources/v1/pricing-units.js.map +1 -0
- package/resources/{pricing-units.mjs → v1/pricing-units.mjs} +4 -4
- package/resources/v1/pricing-units.mjs.map +1 -0
- package/resources/{services.d.ts → v1/services.d.ts} +7 -2
- package/resources/v1/services.d.ts.map +1 -0
- package/resources/{services.js → v1/services.js} +7 -2
- package/resources/v1/services.js.map +1 -0
- package/resources/{services.mjs → v1/services.mjs} +7 -2
- package/resources/v1/services.mjs.map +1 -0
- package/resources/v1/usage.d.ts +325 -0
- package/resources/v1/usage.d.ts.map +1 -0
- package/resources/v1/usage.js +92 -0
- package/resources/v1/usage.js.map +1 -0
- package/resources/v1/usage.mjs +87 -0
- package/resources/v1/usage.mjs.map +1 -0
- package/resources/v1/v1.d.ts +58 -0
- package/resources/v1/v1.d.ts.map +1 -0
- package/resources/v1/v1.js +98 -0
- package/resources/v1/v1.js.map +1 -0
- package/resources/v1/v1.mjs +71 -0
- package/resources/v1/v1.mjs.map +1 -0
- package/resources/v1.d.ts +2 -0
- package/resources/v1.d.ts.map +1 -0
- package/resources/v1.js +19 -0
- package/resources/v1.js.map +1 -0
- package/resources/v1.mjs +3 -0
- package/resources/v1.mjs.map +1 -0
- package/resources/v2/contracts.d.ts +5955 -0
- package/resources/v2/contracts.d.ts.map +1 -0
- package/resources/v2/contracts.js +136 -0
- package/resources/v2/contracts.js.map +1 -0
- package/resources/v2/contracts.mjs +132 -0
- package/resources/v2/contracts.mjs.map +1 -0
- package/resources/v2/index.d.ts +3 -0
- package/resources/v2/index.d.ts.map +1 -0
- package/resources/v2/index.js +9 -0
- package/resources/v2/index.js.map +1 -0
- package/resources/v2/index.mjs +4 -0
- package/resources/v2/index.mjs.map +1 -0
- package/resources/v2/v2.d.ts +10 -0
- package/resources/v2/v2.d.ts.map +1 -0
- package/resources/v2/v2.js +39 -0
- package/resources/v2/v2.js.map +1 -0
- package/resources/v2/v2.mjs +12 -0
- package/resources/v2/v2.mjs.map +1 -0
- package/resources/v2.d.ts +2 -0
- package/resources/v2.d.ts.map +1 -0
- package/resources/v2.js +19 -0
- package/resources/v2.js.map +1 -0
- package/resources/v2.mjs +3 -0
- package/resources/v2.mjs.map +1 -0
- package/resources/webhooks.js +5 -5
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +5 -5
- package/resources/webhooks.mjs.map +1 -1
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/_shims/auto/runtime-bun.ts +1 -1
- package/src/_shims/auto/runtime-node.ts +1 -1
- package/src/_shims/auto/runtime.ts +1 -1
- package/src/_shims/auto/types-node.ts +1 -1
- package/src/_shims/bun-runtime.ts +2 -2
- package/src/_shims/index.d.ts +5 -3
- package/src/_shims/index.js +5 -1
- package/src/_shims/index.mjs +6 -2
- package/src/_shims/node-runtime.ts +3 -3
- package/src/_shims/registry.ts +1 -1
- package/src/_shims/web-runtime.ts +3 -3
- package/src/core.ts +49 -21
- package/src/error.ts +1 -1
- package/src/index.ts +31 -349
- package/src/internal/qs/formats.ts +1 -1
- package/src/internal/qs/index.ts +3 -3
- package/src/internal/qs/stringify.ts +3 -3
- package/src/internal/qs/utils.ts +2 -2
- package/src/pagination.ts +5 -1
- package/src/resource.ts +2 -2
- package/src/resources/index.ts +4 -144
- package/src/resources/shared.ts +587 -26
- package/src/resources/{alerts.ts → v1/alerts.ts} +31 -7
- package/src/resources/{audit-logs.ts → v1/audit-logs.ts} +13 -5
- package/src/resources/{billable-metrics.ts → v1/billable-metrics.ts} +61 -12
- package/src/resources/{contracts → v1/contracts}/contracts.ts +1848 -83
- package/src/resources/{contracts → v1/contracts}/index.ts +8 -4
- package/src/resources/{contracts → v1/contracts}/named-schedules.ts +25 -4
- package/src/resources/{contracts → v1/contracts}/products.ts +58 -14
- package/src/resources/{contracts → v1/contracts}/rate-cards/index.ts +6 -4
- package/src/resources/{contracts → v1/contracts}/rate-cards/named-schedules.ts +29 -4
- package/src/resources/{contracts → v1/contracts}/rate-cards/product-orders.ts +38 -5
- package/src/resources/{contracts → v1/contracts}/rate-cards/rate-cards.ts +137 -25
- package/src/resources/{contracts → v1/contracts}/rate-cards/rates.ts +105 -17
- package/src/resources/v1/contracts/rate-cards.ts +3 -0
- package/src/resources/v1/contracts.ts +3 -0
- package/src/resources/{credit-grants.ts → v1/credit-grants.ts} +86 -14
- package/src/resources/{custom-fields.ts → v1/custom-fields.ts} +62 -14
- package/src/resources/{customers → v1/customers}/alerts.ts +35 -6
- package/src/resources/{customers → v1/customers}/billing-config.ts +37 -5
- package/src/resources/{customers → v1/customers}/commits.ts +100 -13
- package/src/resources/{customers → v1/customers}/credits.ts +79 -9
- package/src/resources/{customers → v1/customers}/customers.ts +229 -40
- package/src/resources/{customers → v1/customers}/index.ts +10 -8
- package/src/resources/{customers → v1/customers}/invoices.ts +131 -62
- package/src/resources/{customers → v1/customers}/named-schedules.ts +25 -4
- package/src/resources/{customers → v1/customers}/plans.ts +55 -9
- package/src/resources/v1/customers.ts +3 -0
- package/src/resources/{dashboards.ts → v1/dashboards.ts} +31 -5
- package/src/resources/v1/index.ts +151 -0
- package/src/resources/{invoices.ts → v1/invoices.ts} +18 -4
- package/src/resources/{plans.ts → v1/plans.ts} +49 -14
- package/src/resources/{pricing-units.ts → v1/pricing-units.ts} +13 -5
- package/src/resources/{services.ts → v1/services.ts} +8 -3
- package/src/resources/v1/usage.ts +429 -0
- package/src/resources/v1/v1.ts +364 -0
- package/src/resources/v1.ts +3 -0
- package/src/resources/v2/contracts.ts +7677 -0
- package/src/resources/v2/index.ts +18 -0
- package/src/resources/v2/v2.ts +43 -0
- package/src/resources/v2.ts +3 -0
- package/src/resources/webhooks.ts +7 -7
- package/src/resources.ts +1 -0
- package/src/shims/node.ts +3 -3
- package/src/shims/web.ts +3 -3
- package/src/uploads.ts +4 -4
- package/src/version.ts +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/alerts.d.ts.map +0 -1
- package/resources/alerts.js +0 -21
- package/resources/alerts.js.map +0 -1
- package/resources/alerts.mjs +0 -17
- package/resources/alerts.mjs.map +0 -1
- package/resources/audit-logs.d.ts.map +0 -1
- package/resources/audit-logs.js.map +0 -1
- package/resources/audit-logs.mjs.map +0 -1
- package/resources/billable-metrics.d.ts.map +0 -1
- package/resources/billable-metrics.js +0 -43
- package/resources/billable-metrics.js.map +0 -1
- package/resources/billable-metrics.mjs +0 -38
- package/resources/billable-metrics.mjs.map +0 -1
- package/resources/contracts/contracts.d.ts.map +0 -1
- package/resources/contracts/contracts.js +0 -135
- package/resources/contracts/contracts.js.map +0 -1
- package/resources/contracts/contracts.mjs +0 -108
- package/resources/contracts/contracts.mjs.map +0 -1
- package/resources/contracts/index.d.ts +0 -5
- package/resources/contracts/index.d.ts.map +0 -1
- package/resources/contracts/index.js.map +0 -1
- package/resources/contracts/index.mjs.map +0 -1
- package/resources/contracts/named-schedules.d.ts.map +0 -1
- package/resources/contracts/named-schedules.js +0 -27
- package/resources/contracts/named-schedules.js.map +0 -1
- package/resources/contracts/named-schedules.mjs +0 -23
- package/resources/contracts/named-schedules.mjs.map +0 -1
- package/resources/contracts/products.d.ts.map +0 -1
- package/resources/contracts/products.js +0 -51
- package/resources/contracts/products.js.map +0 -1
- package/resources/contracts/products.mjs +0 -46
- package/resources/contracts/products.mjs.map +0 -1
- package/resources/contracts/rate-cards/index.d.ts.map +0 -1
- package/resources/contracts/rate-cards/index.js.map +0 -1
- package/resources/contracts/rate-cards/index.mjs.map +0 -1
- package/resources/contracts/rate-cards/named-schedules.d.ts.map +0 -1
- package/resources/contracts/rate-cards/named-schedules.js +0 -27
- package/resources/contracts/rate-cards/named-schedules.js.map +0 -1
- package/resources/contracts/rate-cards/named-schedules.mjs +0 -23
- package/resources/contracts/rate-cards/named-schedules.mjs.map +0 -1
- package/resources/contracts/rate-cards/product-orders.d.ts.map +0 -1
- package/resources/contracts/rate-cards/product-orders.js +0 -21
- package/resources/contracts/rate-cards/product-orders.js.map +0 -1
- package/resources/contracts/rate-cards/product-orders.mjs +0 -17
- package/resources/contracts/rate-cards/product-orders.mjs.map +0 -1
- package/resources/contracts/rate-cards/rate-cards.d.ts.map +0 -1
- package/resources/contracts/rate-cards/rate-cards.js.map +0 -1
- package/resources/contracts/rate-cards/rate-cards.mjs +0 -69
- package/resources/contracts/rate-cards/rate-cards.mjs.map +0 -1
- package/resources/contracts/rate-cards/rates.d.ts.map +0 -1
- package/resources/contracts/rate-cards/rates.js +0 -38
- package/resources/contracts/rate-cards/rates.js.map +0 -1
- package/resources/contracts/rate-cards/rates.mjs +0 -33
- package/resources/contracts/rate-cards/rates.mjs.map +0 -1
- package/resources/credit-grants.d.ts.map +0 -1
- package/resources/credit-grants.js +0 -52
- package/resources/credit-grants.js.map +0 -1
- package/resources/credit-grants.mjs +0 -47
- package/resources/credit-grants.mjs.map +0 -1
- package/resources/custom-fields.d.ts.map +0 -1
- package/resources/custom-fields.js.map +0 -1
- package/resources/custom-fields.mjs.map +0 -1
- package/resources/customers/alerts.d.ts.map +0 -1
- package/resources/customers/alerts.js +0 -33
- package/resources/customers/alerts.js.map +0 -1
- package/resources/customers/alerts.mjs +0 -29
- package/resources/customers/alerts.mjs.map +0 -1
- package/resources/customers/billing-config.d.ts.map +0 -1
- package/resources/customers/billing-config.js +0 -38
- package/resources/customers/billing-config.js.map +0 -1
- package/resources/customers/billing-config.mjs +0 -34
- package/resources/customers/billing-config.mjs.map +0 -1
- package/resources/customers/commits.d.ts.map +0 -1
- package/resources/customers/commits.js +0 -27
- package/resources/customers/commits.js.map +0 -1
- package/resources/customers/commits.mjs +0 -23
- package/resources/customers/commits.mjs.map +0 -1
- package/resources/customers/credits.d.ts.map +0 -1
- package/resources/customers/credits.js +0 -27
- package/resources/customers/credits.js.map +0 -1
- package/resources/customers/credits.mjs +0 -23
- package/resources/customers/credits.mjs.map +0 -1
- package/resources/customers/customers.d.ts.map +0 -1
- package/resources/customers/customers.js.map +0 -1
- package/resources/customers/customers.mjs +0 -126
- package/resources/customers/customers.mjs.map +0 -1
- package/resources/customers/index.d.ts.map +0 -1
- package/resources/customers/index.js.map +0 -1
- package/resources/customers/index.mjs.map +0 -1
- package/resources/customers/invoices.d.ts.map +0 -1
- package/resources/customers/invoices.js +0 -51
- package/resources/customers/invoices.js.map +0 -1
- package/resources/customers/invoices.mjs +0 -45
- package/resources/customers/invoices.mjs.map +0 -1
- package/resources/customers/named-schedules.d.ts.map +0 -1
- package/resources/customers/named-schedules.js +0 -27
- package/resources/customers/named-schedules.js.map +0 -1
- package/resources/customers/named-schedules.mjs +0 -23
- package/resources/customers/named-schedules.mjs.map +0 -1
- package/resources/customers/plans.d.ts.map +0 -1
- package/resources/customers/plans.js +0 -53
- package/resources/customers/plans.js.map +0 -1
- package/resources/customers/plans.mjs +0 -47
- package/resources/customers/plans.mjs.map +0 -1
- package/resources/dashboards.d.ts.map +0 -1
- package/resources/dashboards.js +0 -17
- package/resources/dashboards.js.map +0 -1
- package/resources/dashboards.mjs +0 -13
- package/resources/dashboards.mjs.map +0 -1
- package/resources/invoices.d.ts.map +0 -1
- package/resources/invoices.js +0 -21
- package/resources/invoices.js.map +0 -1
- package/resources/invoices.mjs +0 -17
- package/resources/invoices.mjs.map +0 -1
- package/resources/plans.d.ts.map +0 -1
- package/resources/plans.js.map +0 -1
- package/resources/plans.mjs +0 -47
- package/resources/plans.mjs.map +0 -1
- package/resources/pricing-units.d.ts.map +0 -1
- package/resources/pricing-units.js.map +0 -1
- package/resources/pricing-units.mjs.map +0 -1
- package/resources/services.d.ts.map +0 -1
- package/resources/services.js.map +0 -1
- package/resources/services.mjs.map +0 -1
- package/resources/usage.d.ts +0 -166
- package/resources/usage.d.ts.map +0 -1
- package/resources/usage.js +0 -49
- package/resources/usage.js.map +0 -1
- package/resources/usage.mjs +0 -44
- package/resources/usage.mjs.map +0 -1
- package/src/resources/usage.ts +0 -239
- /package/resources/{contracts → v1/contracts}/index.js +0 -0
- /package/resources/{contracts → v1/contracts}/index.mjs +0 -0
- /package/resources/{contracts → v1/contracts}/rate-cards/index.js +0 -0
- /package/resources/{contracts → v1/contracts}/rate-cards/index.mjs +0 -0
- /package/resources/{customers → v1/customers}/index.js +0 -0
- /package/resources/{customers → v1/customers}/index.mjs +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../../core.mjs";
|
|
4
|
+
import { CursorPage } from "../../pagination.mjs";
|
|
5
|
+
export class Usage extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Fetch aggregated usage data for multiple customers and billable-metrics, broken
|
|
8
|
+
* into intervals of the specified length.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const usages = await client.v1.usage.list({
|
|
13
|
+
* ending_before: '2021-01-03T00:00:00Z',
|
|
14
|
+
* starting_on: '2021-01-01T00:00:00Z',
|
|
15
|
+
* window_size: 'day',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(params, options) {
|
|
20
|
+
const { next_page, ...body } = params;
|
|
21
|
+
return this._client.post('/v1/usage', { query: { next_page }, body, ...options });
|
|
22
|
+
}
|
|
23
|
+
ingest(body, options) {
|
|
24
|
+
if (isRequestOptions(body)) {
|
|
25
|
+
return this.ingest(undefined, body);
|
|
26
|
+
}
|
|
27
|
+
return this._client.post('/v1/ingest', {
|
|
28
|
+
body,
|
|
29
|
+
...options,
|
|
30
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Fetch aggregated usage data for the specified customer, billable-metric, and
|
|
35
|
+
* optional group, broken into intervals of the specified length.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* // Automatically fetches more pages as needed.
|
|
40
|
+
* for await (const usageListWithGroupsResponse of client.v1.usage.listWithGroups(
|
|
41
|
+
* {
|
|
42
|
+
* billable_metric_id:
|
|
43
|
+
* '222796fd-d29c-429e-89b2-549fabda4ed6',
|
|
44
|
+
* customer_id: '04ca7e72-4229-4a6e-ab11-9f7376fccbcb',
|
|
45
|
+
* window_size: 'day',
|
|
46
|
+
* ending_before: '2021-01-03T00:00:00Z',
|
|
47
|
+
* group_by: {
|
|
48
|
+
* key: 'region',
|
|
49
|
+
* values: ['US-East', 'US-West', 'EU-Central'],
|
|
50
|
+
* },
|
|
51
|
+
* starting_on: '2021-01-01T00:00:00Z',
|
|
52
|
+
* },
|
|
53
|
+
* )) {
|
|
54
|
+
* // ...
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
listWithGroups(params, options) {
|
|
59
|
+
const { limit, next_page, ...body } = params;
|
|
60
|
+
return this._client.getAPIList('/v1/usage/groups', UsageListWithGroupsResponsesCursorPage, {
|
|
61
|
+
query: { limit, next_page },
|
|
62
|
+
body,
|
|
63
|
+
method: 'post',
|
|
64
|
+
...options,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* For a set of events, look up matched billable metrics and customers by
|
|
69
|
+
* transaction id. This endpoint looks at transactions that occurred in the last 34
|
|
70
|
+
* days, and is intended for sampling-based testing workflows. It is heavily rate
|
|
71
|
+
* limited.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const response = await client.v1.usage.search({
|
|
76
|
+
* transactionIds: ['2021-01-01T00:00:00Z_cluster42'],
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
search(body, options) {
|
|
81
|
+
return this._client.post('/v1/events/search', { body, ...options });
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
export class UsageListWithGroupsResponsesCursorPage extends CursorPage {
|
|
85
|
+
}
|
|
86
|
+
Usage.UsageListWithGroupsResponsesCursorPage = UsageListWithGroupsResponsesCursorPage;
|
|
87
|
+
//# sourceMappingURL=usage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/v1/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,EAAE,UAAU,EAAyB;AAE5C,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,MAAuB,EAAE,OAA6B;QACzD,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAuBD,MAAM,CACJ,IAA8C,EAC9C,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;SACrC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE;YACrC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,cAAc,CACZ,MAAiC,EACjC,OAA6B;QAE7B,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,sCAAsC,EAAE;YACzF,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;YAC3B,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AAED,MAAM,OAAO,sCAAuC,SAAQ,UAAuC;CAAG;AAyStG,KAAK,CAAC,sCAAsC,GAAG,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as AlertsAPI from "./alerts.js";
|
|
3
|
+
import { AlertArchiveParams, AlertArchiveResponse, AlertCreateParams, AlertCreateResponse, Alerts } from "./alerts.js";
|
|
4
|
+
import * as AuditLogsAPI from "./audit-logs.js";
|
|
5
|
+
import { AuditLogListParams, AuditLogListResponse, AuditLogListResponsesCursorPage, AuditLogs } from "./audit-logs.js";
|
|
6
|
+
import * as BillableMetricsAPI from "./billable-metrics.js";
|
|
7
|
+
import { BillableMetricArchiveParams, BillableMetricArchiveResponse, BillableMetricCreateParams, BillableMetricCreateResponse, BillableMetricListParams, BillableMetricListResponse, BillableMetricListResponsesCursorPage, BillableMetricRetrieveParams, BillableMetricRetrieveResponse, BillableMetrics } from "./billable-metrics.js";
|
|
8
|
+
import * as CreditGrantsAPI from "./credit-grants.js";
|
|
9
|
+
import { CreditGrantCreateParams, CreditGrantCreateResponse, CreditGrantEditParams, CreditGrantEditResponse, CreditGrantListEntriesParams, CreditGrantListEntriesResponse, CreditGrantListParams, CreditGrantListResponse, CreditGrantListResponsesCursorPage, CreditGrantVoidParams, CreditGrantVoidResponse, CreditGrants, CreditLedgerEntry, RolloverAmountMaxAmount, RolloverAmountMaxPercentage } from "./credit-grants.js";
|
|
10
|
+
import * as CustomFieldsAPI from "./custom-fields.js";
|
|
11
|
+
import { CustomFieldAddKeyParams, CustomFieldDeleteValuesParams, CustomFieldListKeysParams, CustomFieldListKeysResponse, CustomFieldRemoveKeyParams, CustomFieldSetValuesParams, CustomFields } from "./custom-fields.js";
|
|
12
|
+
import * as DashboardsAPI from "./dashboards.js";
|
|
13
|
+
import { DashboardGetEmbeddableURLParams, DashboardGetEmbeddableURLResponse, Dashboards } from "./dashboards.js";
|
|
14
|
+
import * as InvoicesAPI from "./invoices.js";
|
|
15
|
+
import { InvoiceRegenerateParams, InvoiceRegenerateResponse, InvoiceVoidParams, InvoiceVoidResponse, Invoices } from "./invoices.js";
|
|
16
|
+
import * as PlansAPI from "./plans.js";
|
|
17
|
+
import { PlanDetail, PlanGetDetailsParams, PlanGetDetailsResponse, PlanListChargesParams, PlanListChargesResponse, PlanListChargesResponsesCursorPage, PlanListCustomersParams, PlanListCustomersResponse, PlanListCustomersResponsesCursorPage, PlanListParams, PlanListResponse, PlanListResponsesCursorPage, Plans } from "./plans.js";
|
|
18
|
+
import * as PricingUnitsAPI from "./pricing-units.js";
|
|
19
|
+
import { PricingUnitListParams, PricingUnitListResponse, PricingUnitListResponsesCursorPage, PricingUnits } from "./pricing-units.js";
|
|
20
|
+
import * as ServicesAPI from "./services.js";
|
|
21
|
+
import { ServiceListResponse, Services } from "./services.js";
|
|
22
|
+
import * as UsageAPI from "./usage.js";
|
|
23
|
+
import { Usage, UsageIngestParams, UsageListParams, UsageListResponse, UsageListWithGroupsParams, UsageListWithGroupsResponse, UsageListWithGroupsResponsesCursorPage, UsageSearchParams, UsageSearchResponse } from "./usage.js";
|
|
24
|
+
import * as ContractsAPI from "./contracts/contracts.js";
|
|
25
|
+
import { ContractAddManualBalanceEntryParams, ContractAmendParams, ContractAmendResponse, ContractArchiveParams, ContractArchiveResponse, ContractCreateHistoricalInvoicesParams, ContractCreateHistoricalInvoicesResponse, ContractCreateParams, ContractCreateResponse, ContractListBalancesParams, ContractListBalancesResponse, ContractListParams, ContractListResponse, ContractRetrieveParams, ContractRetrieveRateScheduleParams, ContractRetrieveRateScheduleResponse, ContractRetrieveResponse, ContractRetrieveSubscriptionQuantityHistoryParams, ContractRetrieveSubscriptionQuantityHistoryResponse, ContractScheduleProServicesInvoiceParams, ContractScheduleProServicesInvoiceResponse, ContractSetUsageFilterParams, ContractUpdateEndDateParams, ContractUpdateEndDateResponse, Contracts } from "./contracts/contracts.js";
|
|
26
|
+
import * as CustomersAPI from "./customers/customers.js";
|
|
27
|
+
import { Customer, CustomerArchiveParams, CustomerArchiveResponse, CustomerCreateParams, CustomerCreateResponse, CustomerDetail, CustomerDetailsCursorPage, CustomerListBillableMetricsParams, CustomerListBillableMetricsResponse, CustomerListBillableMetricsResponsesCursorPage, CustomerListCostsParams, CustomerListCostsResponse, CustomerListCostsResponsesCursorPage, CustomerListParams, CustomerPreviewEventsParams, CustomerPreviewEventsResponse, CustomerRetrieveParams, CustomerRetrieveResponse, CustomerSetIngestAliasesParams, CustomerSetNameParams, CustomerSetNameResponse, CustomerUpdateConfigParams, Customers } from "./customers/customers.js";
|
|
28
|
+
export declare class V1 extends APIResource {
|
|
29
|
+
alerts: AlertsAPI.Alerts;
|
|
30
|
+
plans: PlansAPI.Plans;
|
|
31
|
+
creditGrants: CreditGrantsAPI.CreditGrants;
|
|
32
|
+
pricingUnits: PricingUnitsAPI.PricingUnits;
|
|
33
|
+
customers: CustomersAPI.Customers;
|
|
34
|
+
dashboards: DashboardsAPI.Dashboards;
|
|
35
|
+
usage: UsageAPI.Usage;
|
|
36
|
+
auditLogs: AuditLogsAPI.AuditLogs;
|
|
37
|
+
customFields: CustomFieldsAPI.CustomFields;
|
|
38
|
+
billableMetrics: BillableMetricsAPI.BillableMetrics;
|
|
39
|
+
services: ServicesAPI.Services;
|
|
40
|
+
invoices: InvoicesAPI.Invoices;
|
|
41
|
+
contracts: ContractsAPI.Contracts;
|
|
42
|
+
}
|
|
43
|
+
export declare namespace V1 {
|
|
44
|
+
export { Alerts as Alerts, type AlertCreateResponse as AlertCreateResponse, type AlertArchiveResponse as AlertArchiveResponse, type AlertCreateParams as AlertCreateParams, type AlertArchiveParams as AlertArchiveParams, };
|
|
45
|
+
export { Plans as Plans, type PlanDetail as PlanDetail, type PlanListResponse as PlanListResponse, type PlanGetDetailsResponse as PlanGetDetailsResponse, type PlanListChargesResponse as PlanListChargesResponse, type PlanListCustomersResponse as PlanListCustomersResponse, PlanListResponsesCursorPage as PlanListResponsesCursorPage, PlanListChargesResponsesCursorPage as PlanListChargesResponsesCursorPage, PlanListCustomersResponsesCursorPage as PlanListCustomersResponsesCursorPage, type PlanListParams as PlanListParams, type PlanGetDetailsParams as PlanGetDetailsParams, type PlanListChargesParams as PlanListChargesParams, type PlanListCustomersParams as PlanListCustomersParams, };
|
|
46
|
+
export { CreditGrants as CreditGrants, 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, CreditGrantListResponsesCursorPage as CreditGrantListResponsesCursorPage, type CreditGrantCreateParams as CreditGrantCreateParams, type CreditGrantListParams as CreditGrantListParams, type CreditGrantEditParams as CreditGrantEditParams, type CreditGrantListEntriesParams as CreditGrantListEntriesParams, type CreditGrantVoidParams as CreditGrantVoidParams, };
|
|
47
|
+
export { PricingUnits as PricingUnits, type PricingUnitListResponse as PricingUnitListResponse, PricingUnitListResponsesCursorPage as PricingUnitListResponsesCursorPage, type PricingUnitListParams as PricingUnitListParams, };
|
|
48
|
+
export { Customers as Customers, type Customer as Customer, type CustomerDetail as CustomerDetail, type CustomerCreateResponse as CustomerCreateResponse, type CustomerRetrieveResponse as CustomerRetrieveResponse, type CustomerArchiveResponse as CustomerArchiveResponse, type CustomerListBillableMetricsResponse as CustomerListBillableMetricsResponse, type CustomerListCostsResponse as CustomerListCostsResponse, type CustomerPreviewEventsResponse as CustomerPreviewEventsResponse, type CustomerSetNameResponse as CustomerSetNameResponse, CustomerDetailsCursorPage as CustomerDetailsCursorPage, CustomerListBillableMetricsResponsesCursorPage as CustomerListBillableMetricsResponsesCursorPage, CustomerListCostsResponsesCursorPage as CustomerListCostsResponsesCursorPage, type CustomerCreateParams as CustomerCreateParams, type CustomerRetrieveParams as CustomerRetrieveParams, type CustomerListParams as CustomerListParams, type CustomerArchiveParams as CustomerArchiveParams, type CustomerListBillableMetricsParams as CustomerListBillableMetricsParams, type CustomerListCostsParams as CustomerListCostsParams, type CustomerPreviewEventsParams as CustomerPreviewEventsParams, type CustomerSetIngestAliasesParams as CustomerSetIngestAliasesParams, type CustomerSetNameParams as CustomerSetNameParams, type CustomerUpdateConfigParams as CustomerUpdateConfigParams, };
|
|
49
|
+
export { Dashboards as Dashboards, type DashboardGetEmbeddableURLResponse as DashboardGetEmbeddableURLResponse, type DashboardGetEmbeddableURLParams as DashboardGetEmbeddableURLParams, };
|
|
50
|
+
export { Usage as Usage, type UsageListResponse as UsageListResponse, type UsageListWithGroupsResponse as UsageListWithGroupsResponse, type UsageSearchResponse as UsageSearchResponse, UsageListWithGroupsResponsesCursorPage as UsageListWithGroupsResponsesCursorPage, type UsageListParams as UsageListParams, type UsageIngestParams as UsageIngestParams, type UsageListWithGroupsParams as UsageListWithGroupsParams, type UsageSearchParams as UsageSearchParams, };
|
|
51
|
+
export { AuditLogs as AuditLogs, type AuditLogListResponse as AuditLogListResponse, AuditLogListResponsesCursorPage as AuditLogListResponsesCursorPage, type AuditLogListParams as AuditLogListParams, };
|
|
52
|
+
export { CustomFields as CustomFields, type CustomFieldListKeysResponse as CustomFieldListKeysResponse, type CustomFieldAddKeyParams as CustomFieldAddKeyParams, type CustomFieldDeleteValuesParams as CustomFieldDeleteValuesParams, type CustomFieldListKeysParams as CustomFieldListKeysParams, type CustomFieldRemoveKeyParams as CustomFieldRemoveKeyParams, type CustomFieldSetValuesParams as CustomFieldSetValuesParams, };
|
|
53
|
+
export { BillableMetrics as BillableMetrics, type BillableMetricCreateResponse as BillableMetricCreateResponse, type BillableMetricRetrieveResponse as BillableMetricRetrieveResponse, type BillableMetricListResponse as BillableMetricListResponse, type BillableMetricArchiveResponse as BillableMetricArchiveResponse, BillableMetricListResponsesCursorPage as BillableMetricListResponsesCursorPage, type BillableMetricCreateParams as BillableMetricCreateParams, type BillableMetricRetrieveParams as BillableMetricRetrieveParams, type BillableMetricListParams as BillableMetricListParams, type BillableMetricArchiveParams as BillableMetricArchiveParams, };
|
|
54
|
+
export { Services as Services, type ServiceListResponse as ServiceListResponse };
|
|
55
|
+
export { Invoices as Invoices, type InvoiceRegenerateResponse as InvoiceRegenerateResponse, type InvoiceVoidResponse as InvoiceVoidResponse, type InvoiceRegenerateParams as InvoiceRegenerateParams, type InvoiceVoidParams as InvoiceVoidParams, };
|
|
56
|
+
export { Contracts as Contracts, type ContractCreateResponse as ContractCreateResponse, type ContractRetrieveResponse as ContractRetrieveResponse, type ContractListResponse as ContractListResponse, type ContractAmendResponse as ContractAmendResponse, type ContractArchiveResponse as ContractArchiveResponse, type ContractCreateHistoricalInvoicesResponse as ContractCreateHistoricalInvoicesResponse, type ContractListBalancesResponse as ContractListBalancesResponse, type ContractRetrieveRateScheduleResponse as ContractRetrieveRateScheduleResponse, type ContractRetrieveSubscriptionQuantityHistoryResponse as ContractRetrieveSubscriptionQuantityHistoryResponse, type ContractScheduleProServicesInvoiceResponse as ContractScheduleProServicesInvoiceResponse, type ContractUpdateEndDateResponse as ContractUpdateEndDateResponse, type ContractCreateParams as ContractCreateParams, type ContractRetrieveParams as ContractRetrieveParams, type ContractListParams as ContractListParams, type ContractAddManualBalanceEntryParams as ContractAddManualBalanceEntryParams, type ContractAmendParams as ContractAmendParams, type ContractArchiveParams as ContractArchiveParams, type ContractCreateHistoricalInvoicesParams as ContractCreateHistoricalInvoicesParams, type ContractListBalancesParams as ContractListBalancesParams, type ContractRetrieveRateScheduleParams as ContractRetrieveRateScheduleParams, type ContractRetrieveSubscriptionQuantityHistoryParams as ContractRetrieveSubscriptionQuantityHistoryParams, type ContractScheduleProServicesInvoiceParams as ContractScheduleProServicesInvoiceParams, type ContractSetUsageFilterParams as ContractSetUsageFilterParams, type ContractUpdateEndDateParams as ContractUpdateEndDateParams, };
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=v1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EAC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BAA6B,EACnE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,iDAAiD,IAAI,iDAAiD,EAC3G,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.V1 = void 0;
|
|
28
|
+
const resource_1 = require("../../resource.js");
|
|
29
|
+
const AlertsAPI = __importStar(require("./alerts.js"));
|
|
30
|
+
const alerts_1 = require("./alerts.js");
|
|
31
|
+
const AuditLogsAPI = __importStar(require("./audit-logs.js"));
|
|
32
|
+
const audit_logs_1 = require("./audit-logs.js");
|
|
33
|
+
const BillableMetricsAPI = __importStar(require("./billable-metrics.js"));
|
|
34
|
+
const billable_metrics_1 = require("./billable-metrics.js");
|
|
35
|
+
const CreditGrantsAPI = __importStar(require("./credit-grants.js"));
|
|
36
|
+
const credit_grants_1 = require("./credit-grants.js");
|
|
37
|
+
const CustomFieldsAPI = __importStar(require("./custom-fields.js"));
|
|
38
|
+
const custom_fields_1 = require("./custom-fields.js");
|
|
39
|
+
const DashboardsAPI = __importStar(require("./dashboards.js"));
|
|
40
|
+
const dashboards_1 = require("./dashboards.js");
|
|
41
|
+
const InvoicesAPI = __importStar(require("./invoices.js"));
|
|
42
|
+
const invoices_1 = require("./invoices.js");
|
|
43
|
+
const PlansAPI = __importStar(require("./plans.js"));
|
|
44
|
+
const plans_1 = require("./plans.js");
|
|
45
|
+
const PricingUnitsAPI = __importStar(require("./pricing-units.js"));
|
|
46
|
+
const pricing_units_1 = require("./pricing-units.js");
|
|
47
|
+
const ServicesAPI = __importStar(require("./services.js"));
|
|
48
|
+
const services_1 = require("./services.js");
|
|
49
|
+
const UsageAPI = __importStar(require("./usage.js"));
|
|
50
|
+
const usage_1 = require("./usage.js");
|
|
51
|
+
const ContractsAPI = __importStar(require("./contracts/contracts.js"));
|
|
52
|
+
const contracts_1 = require("./contracts/contracts.js");
|
|
53
|
+
const CustomersAPI = __importStar(require("./customers/customers.js"));
|
|
54
|
+
const customers_1 = require("./customers/customers.js");
|
|
55
|
+
class V1 extends resource_1.APIResource {
|
|
56
|
+
constructor() {
|
|
57
|
+
super(...arguments);
|
|
58
|
+
this.alerts = new AlertsAPI.Alerts(this._client);
|
|
59
|
+
this.plans = new PlansAPI.Plans(this._client);
|
|
60
|
+
this.creditGrants = new CreditGrantsAPI.CreditGrants(this._client);
|
|
61
|
+
this.pricingUnits = new PricingUnitsAPI.PricingUnits(this._client);
|
|
62
|
+
this.customers = new CustomersAPI.Customers(this._client);
|
|
63
|
+
this.dashboards = new DashboardsAPI.Dashboards(this._client);
|
|
64
|
+
this.usage = new UsageAPI.Usage(this._client);
|
|
65
|
+
this.auditLogs = new AuditLogsAPI.AuditLogs(this._client);
|
|
66
|
+
this.customFields = new CustomFieldsAPI.CustomFields(this._client);
|
|
67
|
+
this.billableMetrics = new BillableMetricsAPI.BillableMetrics(this._client);
|
|
68
|
+
this.services = new ServicesAPI.Services(this._client);
|
|
69
|
+
this.invoices = new InvoicesAPI.Invoices(this._client);
|
|
70
|
+
this.contracts = new ContractsAPI.Contracts(this._client);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.V1 = V1;
|
|
74
|
+
V1.Alerts = alerts_1.Alerts;
|
|
75
|
+
V1.Plans = plans_1.Plans;
|
|
76
|
+
V1.PlanListResponsesCursorPage = plans_1.PlanListResponsesCursorPage;
|
|
77
|
+
V1.PlanListChargesResponsesCursorPage = plans_1.PlanListChargesResponsesCursorPage;
|
|
78
|
+
V1.PlanListCustomersResponsesCursorPage = plans_1.PlanListCustomersResponsesCursorPage;
|
|
79
|
+
V1.CreditGrants = credit_grants_1.CreditGrants;
|
|
80
|
+
V1.CreditGrantListResponsesCursorPage = credit_grants_1.CreditGrantListResponsesCursorPage;
|
|
81
|
+
V1.PricingUnits = pricing_units_1.PricingUnits;
|
|
82
|
+
V1.PricingUnitListResponsesCursorPage = pricing_units_1.PricingUnitListResponsesCursorPage;
|
|
83
|
+
V1.Customers = customers_1.Customers;
|
|
84
|
+
V1.CustomerDetailsCursorPage = customers_1.CustomerDetailsCursorPage;
|
|
85
|
+
V1.CustomerListBillableMetricsResponsesCursorPage = customers_1.CustomerListBillableMetricsResponsesCursorPage;
|
|
86
|
+
V1.CustomerListCostsResponsesCursorPage = customers_1.CustomerListCostsResponsesCursorPage;
|
|
87
|
+
V1.Dashboards = dashboards_1.Dashboards;
|
|
88
|
+
V1.Usage = usage_1.Usage;
|
|
89
|
+
V1.UsageListWithGroupsResponsesCursorPage = usage_1.UsageListWithGroupsResponsesCursorPage;
|
|
90
|
+
V1.AuditLogs = audit_logs_1.AuditLogs;
|
|
91
|
+
V1.AuditLogListResponsesCursorPage = audit_logs_1.AuditLogListResponsesCursorPage;
|
|
92
|
+
V1.CustomFields = custom_fields_1.CustomFields;
|
|
93
|
+
V1.BillableMetrics = billable_metrics_1.BillableMetrics;
|
|
94
|
+
V1.BillableMetricListResponsesCursorPage = billable_metrics_1.BillableMetricListResponsesCursorPage;
|
|
95
|
+
V1.Services = services_1.Services;
|
|
96
|
+
V1.Invoices = invoices_1.Invoices;
|
|
97
|
+
V1.Contracts = contracts_1.Contracts;
|
|
98
|
+
//# sourceMappingURL=v1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,uDAAsC;AACtC,wCAMkB;AAClB,8DAA6C;AAC7C,gDAKsB;AACtB,0EAAyD;AACzD,4DAW4B;AAC5B,oEAAmD;AACnD,sDAgByB;AACzB,oEAAmD;AACnD,sDAQyB;AACzB,+DAA8C;AAC9C,gDAA8G;AAC9G,2DAA0C;AAC1C,4CAMoB;AACpB,qDAAoC;AACpC,sCAciB;AACjB,oEAAmD;AACnD,sDAKyB;AACzB,2D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import * as AlertsAPI from "./alerts.mjs";
|
|
4
|
+
import { Alerts, } from "./alerts.mjs";
|
|
5
|
+
import * as AuditLogsAPI from "./audit-logs.mjs";
|
|
6
|
+
import { AuditLogListResponsesCursorPage, AuditLogs, } from "./audit-logs.mjs";
|
|
7
|
+
import * as BillableMetricsAPI from "./billable-metrics.mjs";
|
|
8
|
+
import { BillableMetricListResponsesCursorPage, BillableMetrics, } from "./billable-metrics.mjs";
|
|
9
|
+
import * as CreditGrantsAPI from "./credit-grants.mjs";
|
|
10
|
+
import { CreditGrantListResponsesCursorPage, CreditGrants, } from "./credit-grants.mjs";
|
|
11
|
+
import * as CustomFieldsAPI from "./custom-fields.mjs";
|
|
12
|
+
import { CustomFields, } from "./custom-fields.mjs";
|
|
13
|
+
import * as DashboardsAPI from "./dashboards.mjs";
|
|
14
|
+
import { Dashboards } from "./dashboards.mjs";
|
|
15
|
+
import * as InvoicesAPI from "./invoices.mjs";
|
|
16
|
+
import { Invoices, } from "./invoices.mjs";
|
|
17
|
+
import * as PlansAPI from "./plans.mjs";
|
|
18
|
+
import { PlanListChargesResponsesCursorPage, PlanListCustomersResponsesCursorPage, PlanListResponsesCursorPage, Plans, } from "./plans.mjs";
|
|
19
|
+
import * as PricingUnitsAPI from "./pricing-units.mjs";
|
|
20
|
+
import { PricingUnitListResponsesCursorPage, PricingUnits, } from "./pricing-units.mjs";
|
|
21
|
+
import * as ServicesAPI from "./services.mjs";
|
|
22
|
+
import { Services } from "./services.mjs";
|
|
23
|
+
import * as UsageAPI from "./usage.mjs";
|
|
24
|
+
import { Usage, UsageListWithGroupsResponsesCursorPage, } from "./usage.mjs";
|
|
25
|
+
import * as ContractsAPI from "./contracts/contracts.mjs";
|
|
26
|
+
import { Contracts, } from "./contracts/contracts.mjs";
|
|
27
|
+
import * as CustomersAPI from "./customers/customers.mjs";
|
|
28
|
+
import { CustomerDetailsCursorPage, CustomerListBillableMetricsResponsesCursorPage, CustomerListCostsResponsesCursorPage, Customers, } from "./customers/customers.mjs";
|
|
29
|
+
export class V1 extends APIResource {
|
|
30
|
+
constructor() {
|
|
31
|
+
super(...arguments);
|
|
32
|
+
this.alerts = new AlertsAPI.Alerts(this._client);
|
|
33
|
+
this.plans = new PlansAPI.Plans(this._client);
|
|
34
|
+
this.creditGrants = new CreditGrantsAPI.CreditGrants(this._client);
|
|
35
|
+
this.pricingUnits = new PricingUnitsAPI.PricingUnits(this._client);
|
|
36
|
+
this.customers = new CustomersAPI.Customers(this._client);
|
|
37
|
+
this.dashboards = new DashboardsAPI.Dashboards(this._client);
|
|
38
|
+
this.usage = new UsageAPI.Usage(this._client);
|
|
39
|
+
this.auditLogs = new AuditLogsAPI.AuditLogs(this._client);
|
|
40
|
+
this.customFields = new CustomFieldsAPI.CustomFields(this._client);
|
|
41
|
+
this.billableMetrics = new BillableMetricsAPI.BillableMetrics(this._client);
|
|
42
|
+
this.services = new ServicesAPI.Services(this._client);
|
|
43
|
+
this.invoices = new InvoicesAPI.Invoices(this._client);
|
|
44
|
+
this.contracts = new ContractsAPI.Contracts(this._client);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
V1.Alerts = Alerts;
|
|
48
|
+
V1.Plans = Plans;
|
|
49
|
+
V1.PlanListResponsesCursorPage = PlanListResponsesCursorPage;
|
|
50
|
+
V1.PlanListChargesResponsesCursorPage = PlanListChargesResponsesCursorPage;
|
|
51
|
+
V1.PlanListCustomersResponsesCursorPage = PlanListCustomersResponsesCursorPage;
|
|
52
|
+
V1.CreditGrants = CreditGrants;
|
|
53
|
+
V1.CreditGrantListResponsesCursorPage = CreditGrantListResponsesCursorPage;
|
|
54
|
+
V1.PricingUnits = PricingUnits;
|
|
55
|
+
V1.PricingUnitListResponsesCursorPage = PricingUnitListResponsesCursorPage;
|
|
56
|
+
V1.Customers = Customers;
|
|
57
|
+
V1.CustomerDetailsCursorPage = CustomerDetailsCursorPage;
|
|
58
|
+
V1.CustomerListBillableMetricsResponsesCursorPage = CustomerListBillableMetricsResponsesCursorPage;
|
|
59
|
+
V1.CustomerListCostsResponsesCursorPage = CustomerListCostsResponsesCursorPage;
|
|
60
|
+
V1.Dashboards = Dashboards;
|
|
61
|
+
V1.Usage = Usage;
|
|
62
|
+
V1.UsageListWithGroupsResponsesCursorPage = UsageListWithGroupsResponsesCursorPage;
|
|
63
|
+
V1.AuditLogs = AuditLogs;
|
|
64
|
+
V1.AuditLogListResponsesCursorPage = AuditLogListResponsesCursorPage;
|
|
65
|
+
V1.CustomFields = CustomFields;
|
|
66
|
+
V1.BillableMetrics = BillableMetrics;
|
|
67
|
+
V1.BillableMetricListResponsesCursorPage = BillableMetricListResponsesCursorPage;
|
|
68
|
+
V1.Services = Services;
|
|
69
|
+
V1.Invoices = Invoices;
|
|
70
|
+
V1.Contracts = Contracts;
|
|
71
|
+
//# sourceMappingURL=v1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAKL,MAAM,GACP;OACM,KAAK,YAAY;OACjB,EAGL,+BAA+B,EAC/B,SAAS,GACV;OACM,KAAK,kBAAkB;OACvB,EAOL,qCAAqC,EAGrC,eAAe,GAChB;OACM,KAAK,eAAe;OACpB,EASL,kCAAkC,EAGlC,YAAY,GAIb;OACM,KAAK,eAAe;OACpB,EAOL,YAAY,GACb;OACM,KAAK,aAAa;OAClB,EAAsE,UAAU,EAAE;OAClF,KAAK,WAAW;OAChB,EAKL,QAAQ,GACT;OACM,KAAK,QAAQ;OACb,EAML,kCAAkC,EAGlC,oCAAoC,EAGpC,2BAA2B,EAC3B,KAAK,GACN;OACM,KAAK,eAAe;OACpB,EAGL,kCAAkC,EAClC,YAAY,GACb;OACM,KAAK,WAAW;OAChB,EAAuB,QAAQ,EAAE;OACjC,KAAK,QAAQ;OACb,EACL,KAAK,EAML,sCAAsC,G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package/resources/v1.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(require("./v1/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=v1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../src/resources/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,gDAA2B"}
|
package/resources/v1.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../src/resources/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|