@tirdad/sdk 2.1.43 → 2.1.45
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/FUNCTIONS.md +3 -3
- package/esm/funcs/accounting-periods-query-accounting-period.d.ts +17 -0
- package/esm/funcs/accounting-periods-query-accounting-period.d.ts.map +1 -0
- package/esm/funcs/accounting-periods-query-accounting-period.js +83 -0
- package/esm/funcs/accounting-periods-query-accounting-period.js.map +1 -0
- package/esm/funcs/commitments-create-commitment.d.ts +17 -0
- package/esm/funcs/commitments-create-commitment.d.ts.map +1 -0
- package/esm/funcs/commitments-create-commitment.js +83 -0
- package/esm/funcs/commitments-create-commitment.js.map +1 -0
- package/esm/funcs/commitments-get-commitment.d.ts +17 -0
- package/esm/funcs/commitments-get-commitment.d.ts.map +1 -0
- package/esm/funcs/commitments-get-commitment.js +91 -0
- package/esm/funcs/commitments-get-commitment.js.map +1 -0
- package/esm/funcs/commitments-preview-commitment.d.ts +17 -0
- package/esm/funcs/commitments-preview-commitment.d.ts.map +1 -0
- package/esm/funcs/commitments-preview-commitment.js +83 -0
- package/esm/funcs/commitments-preview-commitment.js.map +1 -0
- package/esm/funcs/commitments-query-commitment.d.ts +17 -0
- package/esm/funcs/commitments-query-commitment.d.ts.map +1 -0
- package/esm/funcs/commitments-query-commitment.js +83 -0
- package/esm/funcs/commitments-query-commitment.js.map +1 -0
- package/esm/funcs/commitments-terminate-commitment.d.ts +17 -0
- package/esm/funcs/commitments-terminate-commitment.d.ts.map +1 -0
- package/esm/funcs/commitments-terminate-commitment.js +93 -0
- package/esm/funcs/commitments-terminate-commitment.js.map +1 -0
- package/esm/funcs/commitments-update-commitment.d.ts +17 -0
- package/esm/funcs/commitments-update-commitment.d.ts.map +1 -0
- package/esm/funcs/commitments-update-commitment.js +93 -0
- package/esm/funcs/commitments-update-commitment.js.map +1 -0
- package/esm/funcs/contracts-get-contract.d.ts +17 -0
- package/esm/funcs/contracts-get-contract.d.ts.map +1 -0
- package/esm/funcs/contracts-get-contract.js +91 -0
- package/esm/funcs/contracts-get-contract.js.map +1 -0
- package/esm/funcs/contracts-query-contract.d.ts +17 -0
- package/esm/funcs/contracts-query-contract.d.ts.map +1 -0
- package/esm/funcs/contracts-query-contract.js +83 -0
- package/esm/funcs/contracts-query-contract.js.map +1 -0
- package/esm/funcs/events-delete-events.d.ts +17 -0
- package/esm/funcs/events-delete-events.d.ts.map +1 -0
- package/esm/funcs/events-delete-events.js +86 -0
- package/esm/funcs/events-delete-events.js.map +1 -0
- package/esm/funcs/journal-entries-get-journal-entry.d.ts +17 -0
- package/esm/funcs/journal-entries-get-journal-entry.d.ts.map +1 -0
- package/esm/funcs/journal-entries-get-journal-entry.js +91 -0
- package/esm/funcs/journal-entries-get-journal-entry.js.map +1 -0
- package/esm/funcs/journal-entries-query-journal-entry.d.ts +17 -0
- package/esm/funcs/journal-entries-query-journal-entry.d.ts.map +1 -0
- package/esm/funcs/journal-entries-query-journal-entry.js +83 -0
- package/esm/funcs/journal-entries-query-journal-entry.js.map +1 -0
- package/esm/funcs/payments-list-payments.js +1 -0
- package/esm/funcs/payments-list-payments.js.map +1 -1
- package/esm/funcs/performance-obligations-get-performance-obligation.d.ts +17 -0
- package/esm/funcs/performance-obligations-get-performance-obligation.d.ts.map +1 -0
- package/esm/funcs/performance-obligations-get-performance-obligation.js +91 -0
- package/esm/funcs/performance-obligations-get-performance-obligation.js.map +1 -0
- package/esm/funcs/performance-obligations-query-performance-obligation.d.ts +17 -0
- package/esm/funcs/performance-obligations-query-performance-obligation.d.ts.map +1 -0
- package/esm/funcs/performance-obligations-query-performance-obligation.js +83 -0
- package/esm/funcs/performance-obligations-query-performance-obligation.js.map +1 -0
- package/esm/funcs/products-create-product.d.ts +17 -0
- package/esm/funcs/products-create-product.d.ts.map +1 -0
- package/esm/funcs/products-create-product.js +83 -0
- package/esm/funcs/products-create-product.js.map +1 -0
- package/esm/funcs/products-delete-product.d.ts +17 -0
- package/esm/funcs/products-delete-product.d.ts.map +1 -0
- package/esm/funcs/products-delete-product.js +91 -0
- package/esm/funcs/products-delete-product.js.map +1 -0
- package/esm/funcs/products-get-product.d.ts +17 -0
- package/esm/funcs/products-get-product.d.ts.map +1 -0
- package/esm/funcs/products-get-product.js +91 -0
- package/esm/funcs/products-get-product.js.map +1 -0
- package/esm/funcs/products-list-products.d.ts +17 -0
- package/esm/funcs/products-list-products.d.ts.map +1 -0
- package/esm/funcs/products-list-products.js +95 -0
- package/esm/funcs/products-list-products.js.map +1 -0
- package/esm/funcs/products-query-product.d.ts +17 -0
- package/esm/funcs/products-query-product.d.ts.map +1 -0
- package/esm/funcs/products-query-product.js +83 -0
- package/esm/funcs/products-query-product.js.map +1 -0
- package/esm/funcs/products-update-product.d.ts +17 -0
- package/esm/funcs/products-update-product.d.ts.map +1 -0
- package/esm/funcs/products-update-product.js +93 -0
- package/esm/funcs/products-update-product.js.map +1 -0
- package/esm/funcs/revenue-reports-get-revenue-rollforward.d.ts +17 -0
- package/esm/funcs/revenue-reports-get-revenue-rollforward.d.ts.map +1 -0
- package/esm/funcs/revenue-reports-get-revenue-rollforward.js +83 -0
- package/esm/funcs/revenue-reports-get-revenue-rollforward.js.map +1 -0
- package/esm/funcs/revenue-reports-get-revenue-waterfall.d.ts +17 -0
- package/esm/funcs/revenue-reports-get-revenue-waterfall.d.ts.map +1 -0
- package/esm/funcs/revenue-reports-get-revenue-waterfall.js +83 -0
- package/esm/funcs/revenue-reports-get-revenue-waterfall.js.map +1 -0
- package/esm/funcs/self-billing-get-self-billing-summary.d.ts +1 -1
- package/esm/funcs/self-billing-get-self-billing-summary.js +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-commitment-created.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-created.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-created.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-created.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-terminated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-terminated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-terminated.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-terminated.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-updated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-updated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-updated.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-updated.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/sdk/accounting-periods.d.ts +12 -0
- package/esm/sdk/accounting-periods.d.ts.map +1 -0
- package/esm/sdk/accounting-periods.js +18 -0
- package/esm/sdk/accounting-periods.js.map +1 -0
- package/esm/sdk/commitments.d.ts +47 -0
- package/esm/sdk/commitments.d.ts.map +1 -0
- package/esm/sdk/commitments.js +68 -0
- package/esm/sdk/commitments.js.map +1 -0
- package/esm/sdk/contracts.d.ts +19 -0
- package/esm/sdk/contracts.d.ts.map +1 -0
- package/esm/sdk/contracts.js +28 -0
- package/esm/sdk/contracts.js.map +1 -0
- package/esm/sdk/events.d.ts +7 -0
- package/esm/sdk/events.d.ts.map +1 -1
- package/esm/sdk/events.js +10 -0
- package/esm/sdk/events.js.map +1 -1
- package/esm/sdk/journal-entries.d.ts +19 -0
- package/esm/sdk/journal-entries.d.ts.map +1 -0
- package/esm/sdk/journal-entries.js +28 -0
- package/esm/sdk/journal-entries.js.map +1 -0
- package/esm/sdk/models/accounting-period-response.d.ts +18 -0
- package/esm/sdk/models/accounting-period-response.d.ts.map +1 -0
- package/esm/sdk/models/accounting-period-response.js +31 -0
- package/esm/sdk/models/accounting-period-response.js.map +1 -0
- package/esm/sdk/models/accounting-period-status.d.ts +12 -0
- package/esm/sdk/models/accounting-period-status.d.ts.map +1 -0
- package/esm/sdk/models/accounting-period-status.js +13 -0
- package/esm/sdk/models/accounting-period-status.js.map +1 -0
- package/esm/sdk/models/accountingperiod-filter.d.ts +44 -0
- package/esm/sdk/models/accountingperiod-filter.d.ts.map +1 -0
- package/esm/sdk/models/accountingperiod-filter.js +40 -0
- package/esm/sdk/models/accountingperiod-filter.js.map +1 -0
- package/esm/sdk/models/active-window.d.ts +20 -0
- package/esm/sdk/models/active-window.d.ts.map +1 -0
- package/esm/sdk/models/active-window.js +24 -0
- package/esm/sdk/models/active-window.js.map +1 -0
- package/esm/sdk/models/amortization-method.d.ts +11 -0
- package/esm/sdk/models/amortization-method.d.ts.map +1 -0
- package/esm/sdk/models/amortization-method.js +12 -0
- package/esm/sdk/models/amortization-method.js.map +1 -0
- package/esm/sdk/models/commitment-collection-method.d.ts +12 -0
- package/esm/sdk/models/commitment-collection-method.d.ts.map +1 -0
- package/esm/sdk/models/commitment-collection-method.js +13 -0
- package/esm/sdk/models/commitment-collection-method.js.map +1 -0
- package/esm/sdk/models/commitment-early-termination.d.ts +11 -0
- package/esm/sdk/models/commitment-early-termination.d.ts.map +1 -0
- package/esm/sdk/models/commitment-early-termination.js +12 -0
- package/esm/sdk/models/commitment-early-termination.js.map +1 -0
- package/esm/sdk/models/commitment-filter.d.ts +60 -0
- package/esm/sdk/models/commitment-filter.d.ts.map +1 -0
- package/esm/sdk/models/commitment-filter.js +51 -0
- package/esm/sdk/models/commitment-filter.js.map +1 -0
- package/esm/sdk/models/commitment-measurement.d.ts +12 -0
- package/esm/sdk/models/commitment-measurement.d.ts.map +1 -0
- package/esm/sdk/models/commitment-measurement.js +13 -0
- package/esm/sdk/models/commitment-measurement.js.map +1 -0
- package/esm/sdk/models/commitment-price-input.d.ts +24 -0
- package/esm/sdk/models/commitment-price-input.d.ts.map +1 -0
- package/esm/sdk/models/commitment-price-input.js +27 -0
- package/esm/sdk/models/commitment-price-input.js.map +1 -0
- package/esm/sdk/models/commitment-response.d.ts +56 -0
- package/esm/sdk/models/commitment-response.d.ts.map +1 -0
- package/esm/sdk/models/commitment-response.js +88 -0
- package/esm/sdk/models/commitment-response.js.map +1 -0
- package/esm/sdk/models/commitment-scope-input.d.ts +18 -0
- package/esm/sdk/models/commitment-scope-input.d.ts.map +1 -0
- package/esm/sdk/models/commitment-scope-input.js +20 -0
- package/esm/sdk/models/commitment-scope-input.js.map +1 -0
- package/esm/sdk/models/commitment-scope-type.d.ts +14 -0
- package/esm/sdk/models/commitment-scope-type.d.ts.map +1 -0
- package/esm/sdk/models/commitment-scope-type.js +15 -0
- package/esm/sdk/models/commitment-scope-type.js.map +1 -0
- package/esm/sdk/models/commitment-status.d.ts +13 -0
- package/esm/sdk/models/commitment-status.d.ts.map +1 -0
- package/esm/sdk/models/commitment-status.js +14 -0
- package/esm/sdk/models/commitment-status.js.map +1 -0
- package/esm/sdk/models/commitment-usage-breakdown.d.ts +33 -0
- package/esm/sdk/models/commitment-usage-breakdown.d.ts.map +1 -0
- package/esm/sdk/models/commitment-usage-breakdown.js +37 -0
- package/esm/sdk/models/commitment-usage-breakdown.js.map +1 -0
- package/esm/sdk/models/commitment-usage-value.d.ts +11 -0
- package/esm/sdk/models/commitment-usage-value.d.ts.map +1 -0
- package/esm/sdk/models/commitment-usage-value.js +15 -0
- package/esm/sdk/models/commitment-usage-value.js.map +1 -0
- package/esm/sdk/models/contract-association-response.d.ts +14 -0
- package/esm/sdk/models/contract-association-response.d.ts.map +1 -0
- package/esm/sdk/models/contract-association-response.js +25 -0
- package/esm/sdk/models/contract-association-response.js.map +1 -0
- package/esm/sdk/models/contract-filter.d.ts +50 -0
- package/esm/sdk/models/contract-filter.d.ts.map +1 -0
- package/esm/sdk/models/contract-filter.js +46 -0
- package/esm/sdk/models/contract-filter.js.map +1 -0
- package/esm/sdk/models/contract-response.d.ts +23 -0
- package/esm/sdk/models/contract-response.d.ts.map +1 -0
- package/esm/sdk/models/contract-response.js +38 -0
- package/esm/sdk/models/contract-response.js.map +1 -0
- package/esm/sdk/models/contract-status.d.ts +14 -0
- package/esm/sdk/models/contract-status.d.ts.map +1 -0
- package/esm/sdk/models/contract-status.js +15 -0
- package/esm/sdk/models/contract-status.js.map +1 -0
- package/esm/sdk/models/create-commitment-request.d.ts +64 -0
- package/esm/sdk/models/create-commitment-request.d.ts.map +1 -0
- package/esm/sdk/models/create-commitment-request.js +50 -0
- package/esm/sdk/models/create-commitment-request.js.map +1 -0
- package/esm/sdk/models/create-entitlement-request.d.ts +10 -4
- package/esm/sdk/models/create-entitlement-request.d.ts.map +1 -1
- package/esm/sdk/models/create-entitlement-request.js +2 -2
- package/esm/sdk/models/create-entitlement-request.js.map +1 -1
- package/esm/sdk/models/create-price-request.d.ts +2 -0
- package/esm/sdk/models/create-price-request.d.ts.map +1 -1
- package/esm/sdk/models/create-price-request.js +2 -0
- package/esm/sdk/models/create-price-request.js.map +1 -1
- package/esm/sdk/models/create-price-tier.d.ts +3 -0
- package/esm/sdk/models/create-price-tier.d.ts.map +1 -1
- package/esm/sdk/models/create-price-tier.js +3 -0
- package/esm/sdk/models/create-price-tier.js.map +1 -1
- package/esm/sdk/models/create-product-request.d.ts +16 -0
- package/esm/sdk/models/create-product-request.d.ts.map +1 -0
- package/esm/sdk/models/create-product-request.js +19 -0
- package/esm/sdk/models/create-product-request.js.map +1 -0
- package/esm/sdk/models/create-subscription-entitlement-grant-request.d.ts +30 -0
- package/esm/sdk/models/create-subscription-entitlement-grant-request.d.ts.map +1 -0
- package/esm/sdk/models/create-subscription-entitlement-grant-request.js +32 -0
- package/esm/sdk/models/create-subscription-entitlement-grant-request.js.map +1 -0
- package/esm/sdk/models/create-subscription-request.d.ts +15 -0
- package/esm/sdk/models/create-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/create-subscription-request.js +5 -0
- package/esm/sdk/models/create-subscription-request.js.map +1 -1
- package/esm/sdk/models/delete-events-op.d.ts +14 -0
- package/esm/sdk/models/delete-events-op.d.ts.map +1 -0
- package/esm/sdk/models/delete-events-op.js +21 -0
- package/esm/sdk/models/delete-events-op.js.map +1 -0
- package/esm/sdk/models/delete-events-request.d.ts +38 -0
- package/esm/sdk/models/delete-events-request.d.ts.map +1 -0
- package/esm/sdk/models/delete-events-request.js +27 -0
- package/esm/sdk/models/delete-events-request.js.map +1 -0
- package/esm/sdk/models/delete-events-response.d.ts +11 -0
- package/esm/sdk/models/delete-events-response.d.ts.map +1 -0
- package/esm/sdk/models/delete-events-response.js +21 -0
- package/esm/sdk/models/delete-events-response.js.map +1 -0
- package/esm/sdk/models/delete-product-op.d.ts +15 -0
- package/esm/sdk/models/delete-product-op.d.ts.map +1 -0
- package/esm/sdk/models/delete-product-op.js +12 -0
- package/esm/sdk/models/delete-product-op.js.map +1 -0
- package/esm/sdk/models/entitlement-filter.d.ts +9 -0
- package/esm/sdk/models/entitlement-filter.d.ts.map +1 -1
- package/esm/sdk/models/entitlement-filter.js +3 -0
- package/esm/sdk/models/entitlement-filter.js.map +1 -1
- package/esm/sdk/models/entitlement-grant-scope-entity-type.d.ts +13 -0
- package/esm/sdk/models/entitlement-grant-scope-entity-type.d.ts.map +1 -0
- package/esm/sdk/models/entitlement-grant-scope-entity-type.js +14 -0
- package/esm/sdk/models/entitlement-grant-scope-entity-type.js.map +1 -0
- package/esm/sdk/models/entitlement-response.d.ts +2 -0
- package/esm/sdk/models/entitlement-response.d.ts.map +1 -1
- package/esm/sdk/models/entitlement-response.js +3 -0
- package/esm/sdk/models/entitlement-response.js.map +1 -1
- package/esm/sdk/models/get-commitment-op.d.ts +15 -0
- package/esm/sdk/models/get-commitment-op.d.ts.map +1 -0
- package/esm/sdk/models/get-commitment-op.js +12 -0
- package/esm/sdk/models/get-commitment-op.js.map +1 -0
- package/esm/sdk/models/get-contract-op.d.ts +15 -0
- package/esm/sdk/models/get-contract-op.d.ts.map +1 -0
- package/esm/sdk/models/get-contract-op.js +12 -0
- package/esm/sdk/models/get-contract-op.js.map +1 -0
- package/esm/sdk/models/get-journal-entry-op.d.ts +15 -0
- package/esm/sdk/models/get-journal-entry-op.d.ts.map +1 -0
- package/esm/sdk/models/get-journal-entry-op.js +12 -0
- package/esm/sdk/models/get-journal-entry-op.js.map +1 -0
- package/esm/sdk/models/get-performance-obligation-op.d.ts +15 -0
- package/esm/sdk/models/get-performance-obligation-op.d.ts.map +1 -0
- package/esm/sdk/models/get-performance-obligation-op.js +12 -0
- package/esm/sdk/models/get-performance-obligation-op.js.map +1 -0
- package/esm/sdk/models/get-product-op.d.ts +15 -0
- package/esm/sdk/models/get-product-op.d.ts.map +1 -0
- package/esm/sdk/models/get-product-op.js +12 -0
- package/esm/sdk/models/get-product-op.js.map +1 -0
- package/esm/sdk/models/get-usage-by-subscription-response.d.ts +5 -0
- package/esm/sdk/models/get-usage-by-subscription-response.d.ts.map +1 -1
- package/esm/sdk/models/get-usage-by-subscription-response.js +2 -0
- package/esm/sdk/models/get-usage-by-subscription-response.js.map +1 -1
- package/esm/sdk/models/grouped-invoicing-child-request.d.ts +6 -0
- package/esm/sdk/models/grouped-invoicing-child-request.d.ts.map +1 -1
- package/esm/sdk/models/grouped-invoicing-child-request.js +3 -0
- package/esm/sdk/models/grouped-invoicing-child-request.js.map +1 -1
- package/esm/sdk/models/index.d.ts +76 -0
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +76 -0
- package/esm/sdk/models/index.js.map +1 -1
- package/esm/sdk/models/invoice-filter.d.ts +15 -0
- package/esm/sdk/models/invoice-filter.d.ts.map +1 -1
- package/esm/sdk/models/invoice-filter.js +6 -0
- package/esm/sdk/models/invoice-filter.js.map +1 -1
- package/esm/sdk/models/invoice-line-item-response.d.ts +4 -0
- package/esm/sdk/models/invoice-line-item-response.d.ts.map +1 -1
- package/esm/sdk/models/invoice-line-item-response.js +2 -0
- package/esm/sdk/models/invoice-line-item-response.js.map +1 -1
- package/esm/sdk/models/invoice-sync-settings.d.ts +2 -0
- package/esm/sdk/models/invoice-sync-settings.d.ts.map +1 -1
- package/esm/sdk/models/invoice-sync-settings.js +3 -0
- package/esm/sdk/models/invoice-sync-settings.js.map +1 -1
- package/esm/sdk/models/journal-direction.d.ts +10 -0
- package/esm/sdk/models/journal-direction.d.ts.map +1 -0
- package/esm/sdk/models/journal-direction.js +11 -0
- package/esm/sdk/models/journal-direction.js.map +1 -0
- package/esm/sdk/models/journal-entry-response.d.ts +24 -0
- package/esm/sdk/models/journal-entry-response.d.ts.map +1 -0
- package/esm/sdk/models/journal-entry-response.js +41 -0
- package/esm/sdk/models/journal-entry-response.js.map +1 -0
- package/esm/sdk/models/journal-event-type.d.ts +19 -0
- package/esm/sdk/models/journal-event-type.d.ts.map +1 -0
- package/esm/sdk/models/journal-event-type.js +20 -0
- package/esm/sdk/models/journal-event-type.js.map +1 -0
- package/esm/sdk/models/journal-filter.d.ts +60 -0
- package/esm/sdk/models/journal-filter.d.ts.map +1 -0
- package/esm/sdk/models/journal-filter.js +55 -0
- package/esm/sdk/models/journal-filter.js.map +1 -0
- package/esm/sdk/models/journal-line-response.d.ts +16 -0
- package/esm/sdk/models/journal-line-response.d.ts.map +1 -0
- package/esm/sdk/models/journal-line-response.js +25 -0
- package/esm/sdk/models/journal-line-response.js.map +1 -0
- package/esm/sdk/models/ledger-account-key.d.ts +18 -0
- package/esm/sdk/models/ledger-account-key.d.ts.map +1 -0
- package/esm/sdk/models/ledger-account-key.js +19 -0
- package/esm/sdk/models/ledger-account-key.js.map +1 -0
- package/esm/sdk/models/list-accounting-periods-response.d.ts +13 -0
- package/esm/sdk/models/list-accounting-periods-response.d.ts.map +1 -0
- package/esm/sdk/models/list-accounting-periods-response.js +17 -0
- package/esm/sdk/models/list-accounting-periods-response.js.map +1 -0
- package/esm/sdk/models/list-commitments-response.d.ts +13 -0
- package/esm/sdk/models/list-commitments-response.d.ts.map +1 -0
- package/esm/sdk/models/list-commitments-response.js +17 -0
- package/esm/sdk/models/list-commitments-response.js.map +1 -0
- package/esm/sdk/models/list-contracts-response.d.ts +13 -0
- package/esm/sdk/models/list-contracts-response.d.ts.map +1 -0
- package/esm/sdk/models/list-contracts-response.js +17 -0
- package/esm/sdk/models/list-contracts-response.js.map +1 -0
- package/esm/sdk/models/list-journal-entries-response.d.ts +13 -0
- package/esm/sdk/models/list-journal-entries-response.d.ts.map +1 -0
- package/esm/sdk/models/list-journal-entries-response.js +17 -0
- package/esm/sdk/models/list-journal-entries-response.js.map +1 -0
- package/esm/sdk/models/list-payments-op.d.ts +5 -0
- package/esm/sdk/models/list-payments-op.d.ts.map +1 -1
- package/esm/sdk/models/list-payments-op.js +2 -0
- package/esm/sdk/models/list-payments-op.js.map +1 -1
- package/esm/sdk/models/list-performance-obligations-response.d.ts +13 -0
- package/esm/sdk/models/list-performance-obligations-response.d.ts.map +1 -0
- package/esm/sdk/models/list-performance-obligations-response.js +17 -0
- package/esm/sdk/models/list-performance-obligations-response.js.map +1 -0
- package/esm/sdk/models/list-products-op.d.ts +44 -0
- package/esm/sdk/models/list-products-op.d.ts.map +1 -0
- package/esm/sdk/models/list-products-op.js +41 -0
- package/esm/sdk/models/list-products-op.js.map +1 -0
- package/esm/sdk/models/list-products-response.d.ts +13 -0
- package/esm/sdk/models/list-products-response.d.ts.map +1 -0
- package/esm/sdk/models/list-products-response.js +17 -0
- package/esm/sdk/models/list-products-response.js.map +1 -0
- package/esm/sdk/models/performance-obligation-association-response.d.ts +14 -0
- package/esm/sdk/models/performance-obligation-association-response.d.ts.map +1 -0
- package/esm/sdk/models/performance-obligation-association-response.js +25 -0
- package/esm/sdk/models/performance-obligation-association-response.js.map +1 -0
- package/esm/sdk/models/performance-obligation-response.d.ts +26 -0
- package/esm/sdk/models/performance-obligation-response.d.ts.map +1 -0
- package/esm/sdk/models/performance-obligation-response.js +42 -0
- package/esm/sdk/models/performance-obligation-response.js.map +1 -0
- package/esm/sdk/models/performance-obligation-status.d.ts +14 -0
- package/esm/sdk/models/performance-obligation-status.d.ts.map +1 -0
- package/esm/sdk/models/performance-obligation-status.js +15 -0
- package/esm/sdk/models/performance-obligation-status.js.map +1 -0
- package/esm/sdk/models/pob-filter.d.ts +51 -0
- package/esm/sdk/models/pob-filter.d.ts.map +1 -0
- package/esm/sdk/models/pob-filter.js +47 -0
- package/esm/sdk/models/pob-filter.js.map +1 -0
- package/esm/sdk/models/price-filter.d.ts +2 -0
- package/esm/sdk/models/price-filter.d.ts.map +1 -1
- package/esm/sdk/models/price-filter.js +2 -0
- package/esm/sdk/models/price-filter.js.map +1 -1
- package/esm/sdk/models/price-price-tier.d.ts +2 -0
- package/esm/sdk/models/price-price-tier.d.ts.map +1 -1
- package/esm/sdk/models/price-price-tier.js +3 -0
- package/esm/sdk/models/price-price-tier.js.map +1 -1
- package/esm/sdk/models/price-price.d.ts +1 -0
- package/esm/sdk/models/price-price.d.ts.map +1 -1
- package/esm/sdk/models/price-price.js +2 -0
- package/esm/sdk/models/price-price.js.map +1 -1
- package/esm/sdk/models/price-response.d.ts +1 -0
- package/esm/sdk/models/price-response.d.ts.map +1 -1
- package/esm/sdk/models/price-response.js +2 -0
- package/esm/sdk/models/price-response.js.map +1 -1
- package/esm/sdk/models/price-transform-quantity.d.ts +5 -0
- package/esm/sdk/models/price-transform-quantity.d.ts.map +1 -1
- package/esm/sdk/models/price-transform-quantity.js +15 -1
- package/esm/sdk/models/price-transform-quantity.js.map +1 -1
- package/esm/sdk/models/product-filter.d.ts +43 -0
- package/esm/sdk/models/product-filter.d.ts.map +1 -0
- package/esm/sdk/models/product-filter.js +39 -0
- package/esm/sdk/models/product-filter.js.map +1 -0
- package/esm/sdk/models/product-response.d.ts +17 -0
- package/esm/sdk/models/product-response.d.ts.map +1 -0
- package/esm/sdk/models/product-response.js +28 -0
- package/esm/sdk/models/product-response.js.map +1 -0
- package/esm/sdk/models/recognition-method.d.ts +13 -0
- package/esm/sdk/models/recognition-method.d.ts.map +1 -0
- package/esm/sdk/models/recognition-method.js +14 -0
- package/esm/sdk/models/recognition-method.js.map +1 -0
- package/esm/sdk/models/report-query-request.d.ts +2 -0
- package/esm/sdk/models/report-query-request.d.ts.map +1 -1
- package/esm/sdk/models/report-query-request.js +1 -0
- package/esm/sdk/models/report-query-request.js.map +1 -1
- package/esm/sdk/models/rev-rec-entity-type.d.ts +17 -0
- package/esm/sdk/models/rev-rec-entity-type.d.ts.map +1 -0
- package/esm/sdk/models/rev-rec-entity-type.js +18 -0
- package/esm/sdk/models/rev-rec-entity-type.js.map +1 -0
- package/esm/sdk/models/revenue-breakdown.d.ts +16 -0
- package/esm/sdk/models/revenue-breakdown.d.ts.map +1 -0
- package/esm/sdk/models/revenue-breakdown.js +17 -0
- package/esm/sdk/models/revenue-breakdown.js.map +1 -0
- package/esm/sdk/models/revenue-report-group-by.d.ts +11 -0
- package/esm/sdk/models/revenue-report-group-by.d.ts.map +1 -0
- package/esm/sdk/models/revenue-report-group-by.js +12 -0
- package/esm/sdk/models/revenue-report-group-by.js.map +1 -0
- package/esm/sdk/models/rollforward-request.d.ts +49 -0
- package/esm/sdk/models/rollforward-request.d.ts.map +1 -0
- package/esm/sdk/models/rollforward-request.js +35 -0
- package/esm/sdk/models/rollforward-request.js.map +1 -0
- package/esm/sdk/models/rollforward-response.d.ts +20 -0
- package/esm/sdk/models/rollforward-response.d.ts.map +1 -0
- package/esm/sdk/models/rollforward-response.js +18 -0
- package/esm/sdk/models/rollforward-response.js.map +1 -0
- package/esm/sdk/models/rollforward-row.d.ts +26 -0
- package/esm/sdk/models/rollforward-row.d.ts.map +1 -0
- package/esm/sdk/models/rollforward-row.js +29 -0
- package/esm/sdk/models/rollforward-row.js.map +1 -0
- package/esm/sdk/models/scheduled-task-entity-type.d.ts +1 -0
- package/esm/sdk/models/scheduled-task-entity-type.d.ts.map +1 -1
- package/esm/sdk/models/scheduled-task-entity-type.js +1 -0
- package/esm/sdk/models/scheduled-task-entity-type.js.map +1 -1
- package/esm/sdk/models/self-billing-charge-response.d.ts +45 -0
- package/esm/sdk/models/self-billing-charge-response.d.ts.map +1 -0
- package/esm/sdk/models/self-billing-charge-response.js +63 -0
- package/esm/sdk/models/self-billing-charge-response.js.map +1 -0
- package/esm/sdk/models/self-billing-plan-response.d.ts +14 -0
- package/esm/sdk/models/self-billing-plan-response.d.ts.map +1 -0
- package/esm/sdk/models/self-billing-plan-response.js +18 -0
- package/esm/sdk/models/self-billing-plan-response.js.map +1 -0
- package/esm/sdk/models/self-billing-summary-response.d.ts +2 -0
- package/esm/sdk/models/self-billing-summary-response.d.ts.map +1 -1
- package/esm/sdk/models/self-billing-summary-response.js +2 -0
- package/esm/sdk/models/self-billing-summary-response.js.map +1 -1
- package/esm/sdk/models/subscription-entitlement-grants-response.d.ts +13 -0
- package/esm/sdk/models/subscription-entitlement-grants-response.d.ts.map +1 -0
- package/esm/sdk/models/subscription-entitlement-grants-response.js +22 -0
- package/esm/sdk/models/subscription-entitlement-grants-response.js.map +1 -0
- package/esm/sdk/models/subscription-entitlements-response.d.ts +2 -0
- package/esm/sdk/models/subscription-entitlements-response.d.ts.map +1 -1
- package/esm/sdk/models/subscription-entitlements-response.js +3 -0
- package/esm/sdk/models/subscription-entitlements-response.js.map +1 -1
- package/esm/sdk/models/subscription-line-item-response.d.ts +5 -0
- package/esm/sdk/models/subscription-line-item-response.d.ts.map +1 -1
- package/esm/sdk/models/subscription-line-item-response.js +4 -0
- package/esm/sdk/models/subscription-line-item-response.js.map +1 -1
- package/esm/sdk/models/subscription-subscription-line-item.d.ts +5 -0
- package/esm/sdk/models/subscription-subscription-line-item.d.ts.map +1 -1
- package/esm/sdk/models/subscription-subscription-line-item.js +4 -0
- package/esm/sdk/models/subscription-subscription-line-item.js.map +1 -1
- package/esm/sdk/models/terminate-commitment-op.d.ts +21 -0
- package/esm/sdk/models/terminate-commitment-op.d.ts.map +1 -0
- package/esm/sdk/models/terminate-commitment-op.js +14 -0
- package/esm/sdk/models/terminate-commitment-op.js.map +1 -0
- package/esm/sdk/models/terminate-commitment-request.d.ts +14 -0
- package/esm/sdk/models/terminate-commitment-request.d.ts.map +1 -0
- package/esm/sdk/models/terminate-commitment-request.js +19 -0
- package/esm/sdk/models/terminate-commitment-request.js.map +1 -0
- package/esm/sdk/models/trigger-force-run-request.d.ts +5 -0
- package/esm/sdk/models/trigger-force-run-request.d.ts.map +1 -1
- package/esm/sdk/models/trigger-force-run-request.js +2 -0
- package/esm/sdk/models/trigger-force-run-request.js.map +1 -1
- package/esm/sdk/models/update-commitment-op.d.ts +21 -0
- package/esm/sdk/models/update-commitment-op.d.ts.map +1 -0
- package/esm/sdk/models/update-commitment-op.js +14 -0
- package/esm/sdk/models/update-commitment-op.js.map +1 -0
- package/esm/sdk/models/update-commitment-request.d.ts +22 -0
- package/esm/sdk/models/update-commitment-request.d.ts.map +1 -0
- package/esm/sdk/models/update-commitment-request.js +21 -0
- package/esm/sdk/models/update-commitment-request.js.map +1 -0
- package/esm/sdk/models/update-entitlement-request.d.ts +3 -0
- package/esm/sdk/models/update-entitlement-request.d.ts.map +1 -1
- package/esm/sdk/models/update-entitlement-request.js.map +1 -1
- package/esm/sdk/models/update-price-request.d.ts +5 -0
- package/esm/sdk/models/update-price-request.d.ts.map +1 -1
- package/esm/sdk/models/update-price-request.js +2 -0
- package/esm/sdk/models/update-price-request.js.map +1 -1
- package/esm/sdk/models/update-product-op.d.ts +21 -0
- package/esm/sdk/models/update-product-op.d.ts.map +1 -0
- package/esm/sdk/models/update-product-op.js +14 -0
- package/esm/sdk/models/update-product-op.js.map +1 -0
- package/esm/sdk/models/update-product-request.d.ts +14 -0
- package/esm/sdk/models/update-product-request.d.ts.map +1 -0
- package/esm/sdk/models/update-product-request.js +13 -0
- package/esm/sdk/models/update-product-request.js.map +1 -0
- package/esm/sdk/models/waterfall-cell.d.ts +23 -0
- package/esm/sdk/models/waterfall-cell.d.ts.map +1 -0
- package/esm/sdk/models/waterfall-cell.js +18 -0
- package/esm/sdk/models/waterfall-cell.js.map +1 -0
- package/esm/sdk/models/waterfall-request.d.ts +48 -0
- package/esm/sdk/models/waterfall-request.d.ts.map +1 -0
- package/esm/sdk/models/waterfall-request.js +34 -0
- package/esm/sdk/models/waterfall-request.js.map +1 -0
- package/esm/sdk/models/waterfall-response.d.ts +18 -0
- package/esm/sdk/models/waterfall-response.d.ts.map +1 -0
- package/esm/sdk/models/waterfall-response.js +19 -0
- package/esm/sdk/models/waterfall-response.js.map +1 -0
- package/esm/sdk/models/waterfall-row.d.ts +17 -0
- package/esm/sdk/models/waterfall-row.d.ts.map +1 -0
- package/esm/sdk/models/waterfall-row.js +25 -0
- package/esm/sdk/models/waterfall-row.js.map +1 -0
- package/esm/sdk/models/webhook-dto-commitment-webhook-payload.d.ts +13 -0
- package/esm/sdk/models/webhook-dto-commitment-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-commitment-webhook-payload.js +22 -0
- package/esm/sdk/models/webhook-dto-commitment-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-event-name.d.ts +3 -0
- package/esm/sdk/models/webhook-event-name.d.ts.map +1 -1
- package/esm/sdk/models/webhook-event-name.js +3 -0
- package/esm/sdk/models/webhook-event-name.js.map +1 -1
- package/esm/sdk/models/zoho-pay-pal-payment-method.d.ts +10 -0
- package/esm/sdk/models/zoho-pay-pal-payment-method.d.ts.map +1 -0
- package/esm/sdk/models/zoho-pay-pal-payment-method.js +11 -0
- package/esm/sdk/models/zoho-pay-pal-payment-method.js.map +1 -0
- package/esm/sdk/models/zoho-payment-gateway-settings.d.ts +14 -0
- package/esm/sdk/models/zoho-payment-gateway-settings.d.ts.map +1 -0
- package/esm/sdk/models/zoho-payment-gateway-settings.js +23 -0
- package/esm/sdk/models/zoho-payment-gateway-settings.js.map +1 -0
- package/esm/sdk/models/zoho-payment-gateway.d.ts +15 -0
- package/esm/sdk/models/zoho-payment-gateway.d.ts.map +1 -0
- package/esm/sdk/models/zoho-payment-gateway.js +16 -0
- package/esm/sdk/models/zoho-payment-gateway.js.map +1 -0
- package/esm/sdk/performance-obligations.d.ts +19 -0
- package/esm/sdk/performance-obligations.d.ts.map +1 -0
- package/esm/sdk/performance-obligations.js +28 -0
- package/esm/sdk/performance-obligations.js.map +1 -0
- package/esm/sdk/products.d.ts +47 -0
- package/esm/sdk/products.d.ts.map +1 -0
- package/esm/sdk/products.js +68 -0
- package/esm/sdk/products.js.map +1 -0
- package/esm/sdk/revenue-reports.d.ts +19 -0
- package/esm/sdk/revenue-reports.d.ts.map +1 -0
- package/esm/sdk/revenue-reports.js +28 -0
- package/esm/sdk/revenue-reports.js.map +1 -0
- package/esm/sdk/sdk.d.ts +21 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +35 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/self-billing.d.ts +1 -1
- package/esm/sdk/self-billing.js +1 -1
- package/esm/sdk/webhook-events.d.ts +21 -0
- package/esm/sdk/webhook-events.d.ts.map +1 -1
- package/esm/sdk/webhook-events.js +30 -0
- package/esm/sdk/webhook-events.js.map +1 -1
- package/examples/{activityListActivity.example.ts → accountingPeriodsQueryAccountingPeriod.example.ts} +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/accounting-periods-query-accounting-period.ts +172 -0
- package/src/funcs/commitments-create-commitment.ts +172 -0
- package/src/funcs/commitments-get-commitment.ts +181 -0
- package/src/funcs/commitments-preview-commitment.ts +172 -0
- package/src/funcs/commitments-query-commitment.ts +172 -0
- package/src/funcs/commitments-terminate-commitment.ts +187 -0
- package/src/funcs/commitments-update-commitment.ts +187 -0
- package/src/funcs/contracts-get-contract.ts +181 -0
- package/src/funcs/contracts-query-contract.ts +172 -0
- package/src/funcs/events-delete-events.ts +175 -0
- package/src/funcs/journal-entries-get-journal-entry.ts +181 -0
- package/src/funcs/journal-entries-query-journal-entry.ts +172 -0
- package/src/funcs/payments-list-payments.ts +1 -0
- package/src/funcs/performance-obligations-get-performance-obligation.ts +182 -0
- package/src/funcs/performance-obligations-query-performance-obligation.ts +172 -0
- package/src/funcs/products-create-product.ts +172 -0
- package/src/funcs/products-delete-product.ts +181 -0
- package/src/funcs/products-get-product.ts +181 -0
- package/src/funcs/products-list-products.ts +189 -0
- package/src/funcs/products-query-product.ts +172 -0
- package/src/funcs/products-update-product.ts +187 -0
- package/src/funcs/revenue-reports-get-revenue-rollforward.ts +172 -0
- package/src/funcs/revenue-reports-get-revenue-waterfall.ts +172 -0
- package/src/funcs/self-billing-get-self-billing-summary.ts +1 -1
- package/src/funcs/webhook-events-post-webhook-events-commitment-created.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-commitment-terminated.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-commitment-updated.ts +144 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/accounting-periods.ts +27 -0
- package/src/sdk/commitments.ts +121 -0
- package/src/sdk/contracts.ts +45 -0
- package/src/sdk/events.ts +18 -0
- package/src/sdk/journal-entries.ts +45 -0
- package/src/sdk/models/accounting-period-response.ts +60 -0
- package/src/sdk/models/accounting-period-status.ts +24 -0
- package/src/sdk/models/accountingperiod-filter.ts +100 -0
- package/src/sdk/models/active-window.ts +54 -0
- package/src/sdk/models/amortization-method.ts +20 -0
- package/src/sdk/models/commitment-collection-method.ts +26 -0
- package/src/sdk/models/commitment-early-termination.ts +22 -0
- package/src/sdk/models/commitment-filter.ts +127 -0
- package/src/sdk/models/commitment-measurement.ts +24 -0
- package/src/sdk/models/commitment-price-input.ts +64 -0
- package/src/sdk/models/commitment-response.ts +164 -0
- package/src/sdk/models/commitment-scope-input.ts +49 -0
- package/src/sdk/models/commitment-scope-type.ts +26 -0
- package/src/sdk/models/commitment-status.ts +25 -0
- package/src/sdk/models/commitment-usage-breakdown.ts +86 -0
- package/src/sdk/models/commitment-usage-value.ts +33 -0
- package/src/sdk/models/contract-association-response.ts +51 -0
- package/src/sdk/models/contract-filter.ts +106 -0
- package/src/sdk/models/contract-response.ts +76 -0
- package/src/sdk/models/contract-status.ts +26 -0
- package/src/sdk/models/create-commitment-request.ts +134 -0
- package/src/sdk/models/create-entitlement-request.ts +12 -6
- package/src/sdk/models/create-price-request.ts +4 -0
- package/src/sdk/models/create-price-tier.ts +9 -0
- package/src/sdk/models/create-product-request.ts +44 -0
- package/src/sdk/models/create-subscription-entitlement-grant-request.ts +85 -0
- package/src/sdk/models/create-subscription-request.ts +32 -0
- package/src/sdk/models/delete-events-op.ts +45 -0
- package/src/sdk/models/delete-events-request.ts +74 -0
- package/src/sdk/models/delete-events-response.ts +42 -0
- package/src/sdk/models/delete-product-op.ts +33 -0
- package/src/sdk/models/entitlement-filter.ts +16 -0
- package/src/sdk/models/entitlement-grant-scope-entity-type.ts +27 -0
- package/src/sdk/models/entitlement-response.ts +7 -0
- package/src/sdk/models/get-commitment-op.ts +33 -0
- package/src/sdk/models/get-contract-op.ts +33 -0
- package/src/sdk/models/get-journal-entry-op.ts +33 -0
- package/src/sdk/models/get-performance-obligation-op.ts +35 -0
- package/src/sdk/models/get-product-op.ts +33 -0
- package/src/sdk/models/get-usage-by-subscription-response.ts +11 -0
- package/src/sdk/models/grouped-invoicing-child-request.ts +18 -0
- package/src/sdk/models/index.ts +76 -0
- package/src/sdk/models/invoice-filter.ts +23 -0
- package/src/sdk/models/invoice-line-item-response.ts +6 -0
- package/src/sdk/models/invoice-sync-settings.ts +7 -0
- package/src/sdk/models/journal-direction.ts +19 -0
- package/src/sdk/models/journal-entry-response.ts +81 -0
- package/src/sdk/models/journal-event-type.ts +31 -0
- package/src/sdk/models/journal-filter.ts +129 -0
- package/src/sdk/models/journal-line-response.ts +55 -0
- package/src/sdk/models/ledger-account-key.ts +30 -0
- package/src/sdk/models/list-accounting-periods-response.ts +41 -0
- package/src/sdk/models/list-commitments-response.ts +41 -0
- package/src/sdk/models/list-contracts-response.ts +41 -0
- package/src/sdk/models/list-journal-entries-response.ts +41 -0
- package/src/sdk/models/list-payments-op.ts +7 -0
- package/src/sdk/models/list-performance-obligations-response.ts +42 -0
- package/src/sdk/models/list-products-op.ts +89 -0
- package/src/sdk/models/list-products-response.ts +41 -0
- package/src/sdk/models/performance-obligation-association-response.ts +55 -0
- package/src/sdk/models/performance-obligation-response.ts +87 -0
- package/src/sdk/models/performance-obligation-status.ts +28 -0
- package/src/sdk/models/pob-filter.ts +112 -0
- package/src/sdk/models/price-filter.ts +4 -0
- package/src/sdk/models/price-price-tier.ts +7 -0
- package/src/sdk/models/price-price.ts +3 -0
- package/src/sdk/models/price-response.ts +3 -0
- package/src/sdk/models/price-transform-quantity.ts +33 -1
- package/src/sdk/models/product-filter.ts +90 -0
- package/src/sdk/models/product-response.ts +54 -0
- package/src/sdk/models/recognition-method.ts +25 -0
- package/src/sdk/models/report-query-request.ts +3 -0
- package/src/sdk/models/rev-rec-entity-type.ts +29 -0
- package/src/sdk/models/revenue-breakdown.ts +40 -0
- package/src/sdk/models/revenue-report-group-by.ts +18 -0
- package/src/sdk/models/rollforward-request.ts +97 -0
- package/src/sdk/models/rollforward-response.ts +49 -0
- package/src/sdk/models/rollforward-row.ts +65 -0
- package/src/sdk/models/scheduled-task-entity-type.ts +1 -0
- package/src/sdk/models/self-billing-charge-response.ts +124 -0
- package/src/sdk/models/self-billing-plan-response.ts +41 -0
- package/src/sdk/models/self-billing-summary-response.ts +6 -0
- package/src/sdk/models/subscription-entitlement-grants-response.ts +47 -0
- package/src/sdk/models/subscription-entitlements-response.ts +11 -0
- package/src/sdk/models/subscription-line-item-response.ts +9 -0
- package/src/sdk/models/subscription-subscription-line-item.ts +9 -0
- package/src/sdk/models/terminate-commitment-op.ts +46 -0
- package/src/sdk/models/terminate-commitment-request.ts +44 -0
- package/src/sdk/models/trigger-force-run-request.ts +7 -0
- package/src/sdk/models/update-commitment-op.ts +46 -0
- package/src/sdk/models/update-commitment-request.ts +48 -0
- package/src/sdk/models/update-entitlement-request.ts +3 -0
- package/src/sdk/models/update-price-request.ts +7 -0
- package/src/sdk/models/update-product-op.ts +46 -0
- package/src/sdk/models/update-product-request.ts +33 -0
- package/src/sdk/models/waterfall-cell.ts +50 -0
- package/src/sdk/models/waterfall-request.ts +93 -0
- package/src/sdk/models/waterfall-response.ts +47 -0
- package/src/sdk/models/waterfall-row.ts +52 -0
- package/src/sdk/models/webhook-dto-commitment-webhook-payload.ts +50 -0
- package/src/sdk/models/webhook-event-name.ts +3 -0
- package/src/sdk/models/zoho-pay-pal-payment-method.ts +19 -0
- package/src/sdk/models/zoho-payment-gateway-settings.ts +53 -0
- package/src/sdk/models/zoho-payment-gateway.ts +24 -0
- package/src/sdk/performance-obligations.ts +45 -0
- package/src/sdk/products.ts +119 -0
- package/src/sdk/revenue-reports.ts +45 -0
- package/src/sdk/sdk.ts +44 -0
- package/src/sdk/self-billing.ts +1 -1
- package/src/sdk/webhook-events.ts +48 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const CommitmentCollectionMethod = {
|
|
10
|
+
PerPeriod: "per_period",
|
|
11
|
+
BillingTerms: "billing_terms",
|
|
12
|
+
} as const;
|
|
13
|
+
export type CommitmentCollectionMethod = OpenEnum<
|
|
14
|
+
typeof CommitmentCollectionMethod
|
|
15
|
+
>;
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const CommitmentCollectionMethod$inboundSchema: z.ZodMiniType<
|
|
19
|
+
CommitmentCollectionMethod,
|
|
20
|
+
unknown
|
|
21
|
+
> = openEnums.inboundSchema(CommitmentCollectionMethod);
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const CommitmentCollectionMethod$outboundSchema: z.ZodMiniType<
|
|
24
|
+
string,
|
|
25
|
+
CommitmentCollectionMethod
|
|
26
|
+
> = openEnums.outboundSchema(CommitmentCollectionMethod);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const CommitmentEarlyTermination = {
|
|
10
|
+
Forfeit: "forfeit",
|
|
11
|
+
CreditNote: "credit_note",
|
|
12
|
+
BillRemaining: "bill_remaining",
|
|
13
|
+
} as const;
|
|
14
|
+
export type CommitmentEarlyTermination = OpenEnum<
|
|
15
|
+
typeof CommitmentEarlyTermination
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const CommitmentEarlyTermination$inboundSchema: z.ZodMiniType<
|
|
20
|
+
CommitmentEarlyTermination,
|
|
21
|
+
unknown
|
|
22
|
+
> = openEnums.inboundSchema(CommitmentEarlyTermination);
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
CommitmentScopeType,
|
|
10
|
+
CommitmentScopeType$outboundSchema,
|
|
11
|
+
} from "./commitment-scope-type.js";
|
|
12
|
+
import {
|
|
13
|
+
CommitmentStatus,
|
|
14
|
+
CommitmentStatus$outboundSchema,
|
|
15
|
+
} from "./commitment-status.js";
|
|
16
|
+
import {
|
|
17
|
+
FilterCondition,
|
|
18
|
+
FilterCondition$Outbound,
|
|
19
|
+
FilterCondition$outboundSchema,
|
|
20
|
+
} from "./filter-condition.js";
|
|
21
|
+
import {
|
|
22
|
+
SortCondition,
|
|
23
|
+
SortCondition$Outbound,
|
|
24
|
+
SortCondition$outboundSchema,
|
|
25
|
+
} from "./sort-condition.js";
|
|
26
|
+
import { Status, Status$outboundSchema } from "./status.js";
|
|
27
|
+
|
|
28
|
+
export const CommitmentFilterOrder = {
|
|
29
|
+
Asc: "asc",
|
|
30
|
+
Desc: "desc",
|
|
31
|
+
} as const;
|
|
32
|
+
export type CommitmentFilterOrder = ClosedEnum<typeof CommitmentFilterOrder>;
|
|
33
|
+
|
|
34
|
+
export type CommitmentFilter = {
|
|
35
|
+
/**
|
|
36
|
+
* ActiveFrom/ActiveTo select commitments whose term overlaps [ActiveFrom, ActiveTo).
|
|
37
|
+
*/
|
|
38
|
+
activeFrom?: string | undefined;
|
|
39
|
+
activeTo?: string | undefined;
|
|
40
|
+
customerIds?: Array<string> | undefined;
|
|
41
|
+
endTime?: Date | undefined;
|
|
42
|
+
expand?: string | undefined;
|
|
43
|
+
filters?: Array<FilterCondition> | undefined;
|
|
44
|
+
ids?: Array<string> | undefined;
|
|
45
|
+
limit?: number | undefined;
|
|
46
|
+
offset?: number | undefined;
|
|
47
|
+
order?: CommitmentFilterOrder | undefined;
|
|
48
|
+
scopeEntityIds?: Array<string> | undefined;
|
|
49
|
+
scopeEntityType?: CommitmentScopeType | undefined;
|
|
50
|
+
sort?: Array<SortCondition> | undefined;
|
|
51
|
+
startTime?: Date | undefined;
|
|
52
|
+
status?: Status | undefined;
|
|
53
|
+
statuses?: Array<CommitmentStatus> | undefined;
|
|
54
|
+
subscriptionIds?: Array<string> | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const CommitmentFilterOrder$outboundSchema: z.ZodMiniEnum<
|
|
59
|
+
typeof CommitmentFilterOrder
|
|
60
|
+
> = z.enum(CommitmentFilterOrder);
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export type CommitmentFilter$Outbound = {
|
|
64
|
+
active_from?: string | undefined;
|
|
65
|
+
active_to?: string | undefined;
|
|
66
|
+
customer_ids?: Array<string> | undefined;
|
|
67
|
+
end_time?: string | undefined;
|
|
68
|
+
expand?: string | undefined;
|
|
69
|
+
filters?: Array<FilterCondition$Outbound> | undefined;
|
|
70
|
+
ids?: Array<string> | undefined;
|
|
71
|
+
limit?: number | undefined;
|
|
72
|
+
offset?: number | undefined;
|
|
73
|
+
order?: string | undefined;
|
|
74
|
+
scope_entity_ids?: Array<string> | undefined;
|
|
75
|
+
scope_entity_type?: string | undefined;
|
|
76
|
+
sort?: Array<SortCondition$Outbound> | undefined;
|
|
77
|
+
start_time?: string | undefined;
|
|
78
|
+
status?: string | undefined;
|
|
79
|
+
statuses?: Array<string> | undefined;
|
|
80
|
+
subscription_ids?: Array<string> | undefined;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/** @internal */
|
|
84
|
+
export const CommitmentFilter$outboundSchema: z.ZodMiniType<
|
|
85
|
+
CommitmentFilter$Outbound,
|
|
86
|
+
CommitmentFilter
|
|
87
|
+
> = z.pipe(
|
|
88
|
+
z.object({
|
|
89
|
+
activeFrom: z.optional(z.string()),
|
|
90
|
+
activeTo: z.optional(z.string()),
|
|
91
|
+
customerIds: z.optional(z.array(z.string())),
|
|
92
|
+
endTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
93
|
+
expand: z.optional(z.string()),
|
|
94
|
+
filters: z.optional(z.array(FilterCondition$outboundSchema)),
|
|
95
|
+
ids: z.optional(z.array(z.string())),
|
|
96
|
+
limit: z.optional(z.int()),
|
|
97
|
+
offset: z.optional(z.int()),
|
|
98
|
+
order: z.optional(CommitmentFilterOrder$outboundSchema),
|
|
99
|
+
scopeEntityIds: z.optional(z.array(z.string())),
|
|
100
|
+
scopeEntityType: z.optional(CommitmentScopeType$outboundSchema),
|
|
101
|
+
sort: z.optional(z.array(SortCondition$outboundSchema)),
|
|
102
|
+
startTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
103
|
+
status: z.optional(Status$outboundSchema),
|
|
104
|
+
statuses: z.optional(z.array(CommitmentStatus$outboundSchema)),
|
|
105
|
+
subscriptionIds: z.optional(z.array(z.string())),
|
|
106
|
+
}),
|
|
107
|
+
z.transform((v) => {
|
|
108
|
+
return remap$(v, {
|
|
109
|
+
activeFrom: "active_from",
|
|
110
|
+
activeTo: "active_to",
|
|
111
|
+
customerIds: "customer_ids",
|
|
112
|
+
endTime: "end_time",
|
|
113
|
+
scopeEntityIds: "scope_entity_ids",
|
|
114
|
+
scopeEntityType: "scope_entity_type",
|
|
115
|
+
startTime: "start_time",
|
|
116
|
+
subscriptionIds: "subscription_ids",
|
|
117
|
+
});
|
|
118
|
+
}),
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
export function commitmentFilterToJSON(
|
|
122
|
+
commitmentFilter: CommitmentFilter,
|
|
123
|
+
): string {
|
|
124
|
+
return JSON.stringify(
|
|
125
|
+
CommitmentFilter$outboundSchema.parse(commitmentFilter),
|
|
126
|
+
);
|
|
127
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const CommitmentMeasurement = {
|
|
10
|
+
BillingPeriod: "billing_period",
|
|
11
|
+
Window: "window",
|
|
12
|
+
} as const;
|
|
13
|
+
export type CommitmentMeasurement = OpenEnum<typeof CommitmentMeasurement>;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const CommitmentMeasurement$inboundSchema: z.ZodMiniType<
|
|
17
|
+
CommitmentMeasurement,
|
|
18
|
+
unknown
|
|
19
|
+
> = openEnums.inboundSchema(CommitmentMeasurement);
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const CommitmentMeasurement$outboundSchema: z.ZodMiniType<
|
|
22
|
+
string,
|
|
23
|
+
CommitmentMeasurement
|
|
24
|
+
> = openEnums.outboundSchema(CommitmentMeasurement);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { BillingModel, BillingModel$outboundSchema } from "./billing-model.js";
|
|
8
|
+
import { BillingTier, BillingTier$outboundSchema } from "./billing-tier.js";
|
|
9
|
+
import {
|
|
10
|
+
CreatePriceTier,
|
|
11
|
+
CreatePriceTier$Outbound,
|
|
12
|
+
CreatePriceTier$outboundSchema,
|
|
13
|
+
} from "./create-price-tier.js";
|
|
14
|
+
import {
|
|
15
|
+
PriceTransformQuantity,
|
|
16
|
+
PriceTransformQuantity$Outbound,
|
|
17
|
+
PriceTransformQuantity$outboundSchema,
|
|
18
|
+
} from "./price-transform-quantity.js";
|
|
19
|
+
|
|
20
|
+
export type CommitmentPriceInput = {
|
|
21
|
+
amount?: string | undefined;
|
|
22
|
+
billingModel?: BillingModel | undefined;
|
|
23
|
+
tierMode?: BillingTier | undefined;
|
|
24
|
+
tiers?: Array<CreatePriceTier> | undefined;
|
|
25
|
+
transformQuantity?: PriceTransformQuantity | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type CommitmentPriceInput$Outbound = {
|
|
30
|
+
amount?: string | undefined;
|
|
31
|
+
billing_model?: string | undefined;
|
|
32
|
+
tier_mode?: string | undefined;
|
|
33
|
+
tiers?: Array<CreatePriceTier$Outbound> | undefined;
|
|
34
|
+
transform_quantity?: PriceTransformQuantity$Outbound | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const CommitmentPriceInput$outboundSchema: z.ZodMiniType<
|
|
39
|
+
CommitmentPriceInput$Outbound,
|
|
40
|
+
CommitmentPriceInput
|
|
41
|
+
> = z.pipe(
|
|
42
|
+
z.object({
|
|
43
|
+
amount: z.optional(z.string()),
|
|
44
|
+
billingModel: z.optional(BillingModel$outboundSchema),
|
|
45
|
+
tierMode: z.optional(BillingTier$outboundSchema),
|
|
46
|
+
tiers: z.optional(z.array(CreatePriceTier$outboundSchema)),
|
|
47
|
+
transformQuantity: z.optional(PriceTransformQuantity$outboundSchema),
|
|
48
|
+
}),
|
|
49
|
+
z.transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
billingModel: "billing_model",
|
|
52
|
+
tierMode: "tier_mode",
|
|
53
|
+
transformQuantity: "transform_quantity",
|
|
54
|
+
});
|
|
55
|
+
}),
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
export function commitmentPriceInputToJSON(
|
|
59
|
+
commitmentPriceInput: CommitmentPriceInput,
|
|
60
|
+
): string {
|
|
61
|
+
return JSON.stringify(
|
|
62
|
+
CommitmentPriceInput$outboundSchema.parse(commitmentPriceInput),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { ActiveWindow, ActiveWindow$inboundSchema } from "./active-window.js";
|
|
11
|
+
import {
|
|
12
|
+
CommitmentCollectionMethod,
|
|
13
|
+
CommitmentCollectionMethod$inboundSchema,
|
|
14
|
+
} from "./commitment-collection-method.js";
|
|
15
|
+
import {
|
|
16
|
+
CommitmentEarlyTermination,
|
|
17
|
+
CommitmentEarlyTermination$inboundSchema,
|
|
18
|
+
} from "./commitment-early-termination.js";
|
|
19
|
+
import {
|
|
20
|
+
CommitmentMeasurement,
|
|
21
|
+
CommitmentMeasurement$inboundSchema,
|
|
22
|
+
} from "./commitment-measurement.js";
|
|
23
|
+
import {
|
|
24
|
+
CommitmentScopeType,
|
|
25
|
+
CommitmentScopeType$inboundSchema,
|
|
26
|
+
} from "./commitment-scope-type.js";
|
|
27
|
+
import {
|
|
28
|
+
CommitmentStatus,
|
|
29
|
+
CommitmentStatus$inboundSchema,
|
|
30
|
+
} from "./commitment-status.js";
|
|
31
|
+
import {
|
|
32
|
+
CommitmentType,
|
|
33
|
+
CommitmentType$inboundSchema,
|
|
34
|
+
} from "./commitment-type.js";
|
|
35
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
36
|
+
import { Status, Status$inboundSchema } from "./status.js";
|
|
37
|
+
|
|
38
|
+
export type CommitmentResponse = {
|
|
39
|
+
activeWindows?: Array<ActiveWindow> | undefined;
|
|
40
|
+
binding?: boolean | undefined;
|
|
41
|
+
collectionMethod?: CommitmentCollectionMethod | undefined;
|
|
42
|
+
commitmentStatus?: CommitmentStatus | undefined;
|
|
43
|
+
commitmentValue?: string | undefined;
|
|
44
|
+
committedPriceId?: string | undefined;
|
|
45
|
+
createdAt?: Date | undefined;
|
|
46
|
+
createdBy?: string | undefined;
|
|
47
|
+
currency?: string | undefined;
|
|
48
|
+
customerId?: string | undefined;
|
|
49
|
+
endDate?: Date | undefined;
|
|
50
|
+
environmentId?: string | undefined;
|
|
51
|
+
id?: string | undefined;
|
|
52
|
+
idempotencyKey?: string | undefined;
|
|
53
|
+
instalmentInvoicing?: string | undefined;
|
|
54
|
+
invoiceDescription?: string | undefined;
|
|
55
|
+
invoiceLabel?: string | undefined;
|
|
56
|
+
measurement?: CommitmentMeasurement | undefined;
|
|
57
|
+
metadata?: { [k: string]: string } | undefined;
|
|
58
|
+
name?: string | undefined;
|
|
59
|
+
onEarlyTermination?: CommitmentEarlyTermination | undefined;
|
|
60
|
+
overagePriceId?: string | undefined;
|
|
61
|
+
priority?: number | undefined;
|
|
62
|
+
scopeEntityId?: string | undefined;
|
|
63
|
+
scopeEntityType?: CommitmentScopeType | undefined;
|
|
64
|
+
startDate?: Date | undefined;
|
|
65
|
+
status?: Status | undefined;
|
|
66
|
+
subscriptionId?: string | undefined;
|
|
67
|
+
tenantId?: string | undefined;
|
|
68
|
+
terminatedAt?: Date | undefined;
|
|
69
|
+
terminationInvoiceId?: string | undefined;
|
|
70
|
+
timezone?: string | undefined;
|
|
71
|
+
totalAmount?: string | undefined;
|
|
72
|
+
type?: CommitmentType | undefined;
|
|
73
|
+
updatedAt?: Date | undefined;
|
|
74
|
+
updatedBy?: string | undefined;
|
|
75
|
+
value?: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const CommitmentResponse$inboundSchema: z.ZodMiniType<
|
|
80
|
+
CommitmentResponse,
|
|
81
|
+
unknown
|
|
82
|
+
> = z.pipe(
|
|
83
|
+
z.object({
|
|
84
|
+
active_windows: types.optional(z.array(ActiveWindow$inboundSchema)),
|
|
85
|
+
binding: types.optional(types.boolean()),
|
|
86
|
+
collection_method: types.optional(CommitmentCollectionMethod$inboundSchema),
|
|
87
|
+
commitment_status: types.optional(CommitmentStatus$inboundSchema),
|
|
88
|
+
commitment_value: types.optional(types.string()),
|
|
89
|
+
committed_price_id: types.optional(types.string()),
|
|
90
|
+
created_at: types.optional(types.date()),
|
|
91
|
+
created_by: types.optional(types.string()),
|
|
92
|
+
currency: types.optional(types.string()),
|
|
93
|
+
customer_id: types.optional(types.string()),
|
|
94
|
+
end_date: types.optional(types.date()),
|
|
95
|
+
environment_id: types.optional(types.string()),
|
|
96
|
+
id: types.optional(types.string()),
|
|
97
|
+
idempotency_key: types.optional(types.string()),
|
|
98
|
+
instalment_invoicing: types.optional(types.string()),
|
|
99
|
+
invoice_description: types.optional(types.string()),
|
|
100
|
+
invoice_label: types.optional(types.string()),
|
|
101
|
+
measurement: types.optional(CommitmentMeasurement$inboundSchema),
|
|
102
|
+
metadata: types.optional(z.record(z.string(), types.string())),
|
|
103
|
+
name: types.optional(types.string()),
|
|
104
|
+
on_early_termination: types.optional(
|
|
105
|
+
CommitmentEarlyTermination$inboundSchema,
|
|
106
|
+
),
|
|
107
|
+
overage_price_id: types.optional(types.string()),
|
|
108
|
+
priority: types.optional(types.number()),
|
|
109
|
+
scope_entity_id: types.optional(types.string()),
|
|
110
|
+
scope_entity_type: types.optional(CommitmentScopeType$inboundSchema),
|
|
111
|
+
start_date: types.optional(types.date()),
|
|
112
|
+
status: types.optional(Status$inboundSchema),
|
|
113
|
+
subscription_id: types.optional(types.string()),
|
|
114
|
+
tenant_id: types.optional(types.string()),
|
|
115
|
+
terminated_at: types.optional(types.date()),
|
|
116
|
+
termination_invoice_id: types.optional(types.string()),
|
|
117
|
+
timezone: types.optional(types.string()),
|
|
118
|
+
total_amount: types.optional(types.string()),
|
|
119
|
+
type: types.optional(CommitmentType$inboundSchema),
|
|
120
|
+
updated_at: types.optional(types.date()),
|
|
121
|
+
updated_by: types.optional(types.string()),
|
|
122
|
+
value: types.optional(types.string()),
|
|
123
|
+
}),
|
|
124
|
+
z.transform((v) => {
|
|
125
|
+
return remap$(v, {
|
|
126
|
+
"active_windows": "activeWindows",
|
|
127
|
+
"collection_method": "collectionMethod",
|
|
128
|
+
"commitment_status": "commitmentStatus",
|
|
129
|
+
"commitment_value": "commitmentValue",
|
|
130
|
+
"committed_price_id": "committedPriceId",
|
|
131
|
+
"created_at": "createdAt",
|
|
132
|
+
"created_by": "createdBy",
|
|
133
|
+
"customer_id": "customerId",
|
|
134
|
+
"end_date": "endDate",
|
|
135
|
+
"environment_id": "environmentId",
|
|
136
|
+
"idempotency_key": "idempotencyKey",
|
|
137
|
+
"instalment_invoicing": "instalmentInvoicing",
|
|
138
|
+
"invoice_description": "invoiceDescription",
|
|
139
|
+
"invoice_label": "invoiceLabel",
|
|
140
|
+
"on_early_termination": "onEarlyTermination",
|
|
141
|
+
"overage_price_id": "overagePriceId",
|
|
142
|
+
"scope_entity_id": "scopeEntityId",
|
|
143
|
+
"scope_entity_type": "scopeEntityType",
|
|
144
|
+
"start_date": "startDate",
|
|
145
|
+
"subscription_id": "subscriptionId",
|
|
146
|
+
"tenant_id": "tenantId",
|
|
147
|
+
"terminated_at": "terminatedAt",
|
|
148
|
+
"termination_invoice_id": "terminationInvoiceId",
|
|
149
|
+
"total_amount": "totalAmount",
|
|
150
|
+
"updated_at": "updatedAt",
|
|
151
|
+
"updated_by": "updatedBy",
|
|
152
|
+
});
|
|
153
|
+
}),
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
export function commitmentResponseFromJSON(
|
|
157
|
+
jsonString: string,
|
|
158
|
+
): SafeParseResult<CommitmentResponse, SDKValidationError> {
|
|
159
|
+
return safeParse(
|
|
160
|
+
jsonString,
|
|
161
|
+
(x) => CommitmentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
162
|
+
`Failed to parse 'CommitmentResponse' from JSON`,
|
|
163
|
+
);
|
|
164
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
CommitmentScopeType,
|
|
9
|
+
CommitmentScopeType$outboundSchema,
|
|
10
|
+
} from "./commitment-scope-type.js";
|
|
11
|
+
|
|
12
|
+
export type CommitmentScopeInput = {
|
|
13
|
+
/**
|
|
14
|
+
* EntityID may be omitted on an inline subscription-scoped commitment; the new subscription's ID is used.
|
|
15
|
+
*/
|
|
16
|
+
entityId?: string | undefined;
|
|
17
|
+
entityType: CommitmentScopeType;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type CommitmentScopeInput$Outbound = {
|
|
22
|
+
entity_id?: string | undefined;
|
|
23
|
+
entity_type: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const CommitmentScopeInput$outboundSchema: z.ZodMiniType<
|
|
28
|
+
CommitmentScopeInput$Outbound,
|
|
29
|
+
CommitmentScopeInput
|
|
30
|
+
> = z.pipe(
|
|
31
|
+
z.object({
|
|
32
|
+
entityId: z.optional(z.string()),
|
|
33
|
+
entityType: CommitmentScopeType$outboundSchema,
|
|
34
|
+
}),
|
|
35
|
+
z.transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
entityId: "entity_id",
|
|
38
|
+
entityType: "entity_type",
|
|
39
|
+
});
|
|
40
|
+
}),
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
export function commitmentScopeInputToJSON(
|
|
44
|
+
commitmentScopeInput: CommitmentScopeInput,
|
|
45
|
+
): string {
|
|
46
|
+
return JSON.stringify(
|
|
47
|
+
CommitmentScopeInput$outboundSchema.parse(commitmentScopeInput),
|
|
48
|
+
);
|
|
49
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const CommitmentScopeType = {
|
|
10
|
+
Subscription: "subscription",
|
|
11
|
+
Group: "group",
|
|
12
|
+
Meter: "meter",
|
|
13
|
+
Price: "price",
|
|
14
|
+
} as const;
|
|
15
|
+
export type CommitmentScopeType = OpenEnum<typeof CommitmentScopeType>;
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const CommitmentScopeType$inboundSchema: z.ZodMiniType<
|
|
19
|
+
CommitmentScopeType,
|
|
20
|
+
unknown
|
|
21
|
+
> = openEnums.inboundSchema(CommitmentScopeType);
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const CommitmentScopeType$outboundSchema: z.ZodMiniType<
|
|
24
|
+
string,
|
|
25
|
+
CommitmentScopeType
|
|
26
|
+
> = openEnums.outboundSchema(CommitmentScopeType);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const CommitmentStatus = {
|
|
10
|
+
Active: "active",
|
|
11
|
+
Ended: "ended",
|
|
12
|
+
Terminated: "terminated",
|
|
13
|
+
} as const;
|
|
14
|
+
export type CommitmentStatus = OpenEnum<typeof CommitmentStatus>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const CommitmentStatus$inboundSchema: z.ZodMiniType<
|
|
18
|
+
CommitmentStatus,
|
|
19
|
+
unknown
|
|
20
|
+
> = openEnums.inboundSchema(CommitmentStatus);
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const CommitmentStatus$outboundSchema: z.ZodMiniType<
|
|
23
|
+
string,
|
|
24
|
+
CommitmentStatus
|
|
25
|
+
> = openEnums.outboundSchema(CommitmentStatus);
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import {
|
|
11
|
+
CommitmentMeasurement,
|
|
12
|
+
CommitmentMeasurement$inboundSchema,
|
|
13
|
+
} from "./commitment-measurement.js";
|
|
14
|
+
import {
|
|
15
|
+
CommitmentType,
|
|
16
|
+
CommitmentType$inboundSchema,
|
|
17
|
+
} from "./commitment-type.js";
|
|
18
|
+
import {
|
|
19
|
+
CommitmentUsageValue,
|
|
20
|
+
CommitmentUsageValue$inboundSchema,
|
|
21
|
+
} from "./commitment-usage-value.js";
|
|
22
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
23
|
+
|
|
24
|
+
export type CommitmentUsageBreakdown = {
|
|
25
|
+
/**
|
|
26
|
+
* AppliesFrom/To is the stretch of the queried window the commitment covers; usage outside it
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* bills as overage and is not counted here.
|
|
30
|
+
*/
|
|
31
|
+
appliesFrom?: Date | undefined;
|
|
32
|
+
appliesTo?: Date | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* BilledAmount is what the stretch bills for this commitment: used plus, when binding, the true-up.
|
|
35
|
+
*/
|
|
36
|
+
billedAmount?: string | undefined;
|
|
37
|
+
binding?: boolean | undefined;
|
|
38
|
+
commitmentId?: string | undefined;
|
|
39
|
+
committed?: CommitmentUsageValue | undefined;
|
|
40
|
+
currency?: string | undefined;
|
|
41
|
+
invoiceLabel?: string | undefined;
|
|
42
|
+
measurement?: CommitmentMeasurement | undefined;
|
|
43
|
+
type?: CommitmentType | undefined;
|
|
44
|
+
unused?: CommitmentUsageValue | undefined;
|
|
45
|
+
used?: CommitmentUsageValue | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const CommitmentUsageBreakdown$inboundSchema: z.ZodMiniType<
|
|
50
|
+
CommitmentUsageBreakdown,
|
|
51
|
+
unknown
|
|
52
|
+
> = z.pipe(
|
|
53
|
+
z.object({
|
|
54
|
+
applies_from: types.optional(types.date()),
|
|
55
|
+
applies_to: types.optional(types.date()),
|
|
56
|
+
billed_amount: types.optional(types.string()),
|
|
57
|
+
binding: types.optional(types.boolean()),
|
|
58
|
+
commitment_id: types.optional(types.string()),
|
|
59
|
+
committed: types.optional(CommitmentUsageValue$inboundSchema),
|
|
60
|
+
currency: types.optional(types.string()),
|
|
61
|
+
invoice_label: types.optional(types.string()),
|
|
62
|
+
measurement: types.optional(CommitmentMeasurement$inboundSchema),
|
|
63
|
+
type: types.optional(CommitmentType$inboundSchema),
|
|
64
|
+
unused: types.optional(CommitmentUsageValue$inboundSchema),
|
|
65
|
+
used: types.optional(CommitmentUsageValue$inboundSchema),
|
|
66
|
+
}),
|
|
67
|
+
z.transform((v) => {
|
|
68
|
+
return remap$(v, {
|
|
69
|
+
"applies_from": "appliesFrom",
|
|
70
|
+
"applies_to": "appliesTo",
|
|
71
|
+
"billed_amount": "billedAmount",
|
|
72
|
+
"commitment_id": "commitmentId",
|
|
73
|
+
"invoice_label": "invoiceLabel",
|
|
74
|
+
});
|
|
75
|
+
}),
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
export function commitmentUsageBreakdownFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<CommitmentUsageBreakdown, SDKValidationError> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) => CommitmentUsageBreakdown$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'CommitmentUsageBreakdown' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
export type CommitmentUsageValue = {
|
|
12
|
+
amount?: string | undefined;
|
|
13
|
+
quantity?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const CommitmentUsageValue$inboundSchema: z.ZodMiniType<
|
|
18
|
+
CommitmentUsageValue,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
amount: types.optional(types.string()),
|
|
22
|
+
quantity: types.optional(types.string()),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function commitmentUsageValueFromJSON(
|
|
26
|
+
jsonString: string,
|
|
27
|
+
): SafeParseResult<CommitmentUsageValue, SDKValidationError> {
|
|
28
|
+
return safeParse(
|
|
29
|
+
jsonString,
|
|
30
|
+
(x) => CommitmentUsageValue$inboundSchema.parse(JSON.parse(x)),
|
|
31
|
+
`Failed to parse 'CommitmentUsageValue' from JSON`,
|
|
32
|
+
);
|
|
33
|
+
}
|