@tirdad/sdk 2.1.44 → 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/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/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/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/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/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/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/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-entitlement-request.d.ts +7 -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-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 +6 -0
- package/esm/sdk/models/create-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/create-subscription-request.js +3 -0
- package/esm/sdk/models/create-subscription-request.js.map +1 -1
- 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-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/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 +48 -0
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +48 -0
- package/esm/sdk/models/index.js.map +1 -1
- package/esm/sdk/models/invoice-filter.d.ts +5 -0
- package/esm/sdk/models/invoice-filter.d.ts.map +1 -1
- package/esm/sdk/models/invoice-filter.js +2 -0
- package/esm/sdk/models/invoice-filter.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-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.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/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/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/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/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/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 +18 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +30 -0
- package/esm/sdk/sdk.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/contracts-get-contract.ts +181 -0
- package/src/funcs/contracts-query-contract.ts +172 -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/lib/config.ts +2 -2
- package/src/sdk/accounting-periods.ts +27 -0
- package/src/sdk/contracts.ts +45 -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/amortization-method.ts +20 -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-entitlement-request.ts +9 -6
- package/src/sdk/models/create-price-request.ts +4 -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 +18 -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-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/grouped-invoicing-child-request.ts +18 -0
- package/src/sdk/models/index.ts +48 -0
- package/src/sdk/models/invoice-filter.ts +9 -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-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.ts +3 -0
- package/src/sdk/models/price-response.ts +3 -0
- 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/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/subscription-entitlement-grants-response.ts +47 -0
- package/src/sdk/models/subscription-entitlements-response.ts +11 -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/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 +38 -0
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
AccountingPeriodStatus,
|
|
12
|
+
AccountingPeriodStatus$inboundSchema,
|
|
13
|
+
} from "./accounting-period-status.js";
|
|
14
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
15
|
+
import { Status, Status$inboundSchema } from "./status.js";
|
|
16
|
+
|
|
17
|
+
export type AccountingPeriodResponse = {
|
|
18
|
+
createdAt?: Date | undefined;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
periodEnd?: Date | undefined;
|
|
21
|
+
periodStart?: Date | undefined;
|
|
22
|
+
periodStatus?: AccountingPeriodStatus | undefined;
|
|
23
|
+
status?: Status | undefined;
|
|
24
|
+
updatedAt?: Date | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const AccountingPeriodResponse$inboundSchema: z.ZodMiniType<
|
|
29
|
+
AccountingPeriodResponse,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.pipe(
|
|
32
|
+
z.object({
|
|
33
|
+
created_at: types.optional(types.date()),
|
|
34
|
+
id: types.optional(types.string()),
|
|
35
|
+
period_end: types.optional(types.date()),
|
|
36
|
+
period_start: types.optional(types.date()),
|
|
37
|
+
period_status: types.optional(AccountingPeriodStatus$inboundSchema),
|
|
38
|
+
status: types.optional(Status$inboundSchema),
|
|
39
|
+
updated_at: types.optional(types.date()),
|
|
40
|
+
}),
|
|
41
|
+
z.transform((v) => {
|
|
42
|
+
return remap$(v, {
|
|
43
|
+
"created_at": "createdAt",
|
|
44
|
+
"period_end": "periodEnd",
|
|
45
|
+
"period_start": "periodStart",
|
|
46
|
+
"period_status": "periodStatus",
|
|
47
|
+
"updated_at": "updatedAt",
|
|
48
|
+
});
|
|
49
|
+
}),
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
export function accountingPeriodResponseFromJSON(
|
|
53
|
+
jsonString: string,
|
|
54
|
+
): SafeParseResult<AccountingPeriodResponse, SDKValidationError> {
|
|
55
|
+
return safeParse(
|
|
56
|
+
jsonString,
|
|
57
|
+
(x) => AccountingPeriodResponse$inboundSchema.parse(JSON.parse(x)),
|
|
58
|
+
`Failed to parse 'AccountingPeriodResponse' from JSON`,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
@@ -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 AccountingPeriodStatus = {
|
|
10
|
+
Open: "open",
|
|
11
|
+
Closed: "closed",
|
|
12
|
+
} as const;
|
|
13
|
+
export type AccountingPeriodStatus = OpenEnum<typeof AccountingPeriodStatus>;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const AccountingPeriodStatus$inboundSchema: z.ZodMiniType<
|
|
17
|
+
AccountingPeriodStatus,
|
|
18
|
+
unknown
|
|
19
|
+
> = openEnums.inboundSchema(AccountingPeriodStatus);
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const AccountingPeriodStatus$outboundSchema: z.ZodMiniType<
|
|
22
|
+
string,
|
|
23
|
+
AccountingPeriodStatus
|
|
24
|
+
> = openEnums.outboundSchema(AccountingPeriodStatus);
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
AccountingPeriodStatus,
|
|
10
|
+
AccountingPeriodStatus$outboundSchema,
|
|
11
|
+
} from "./accounting-period-status.js";
|
|
12
|
+
import {
|
|
13
|
+
FilterCondition,
|
|
14
|
+
FilterCondition$Outbound,
|
|
15
|
+
FilterCondition$outboundSchema,
|
|
16
|
+
} from "./filter-condition.js";
|
|
17
|
+
import {
|
|
18
|
+
SortCondition,
|
|
19
|
+
SortCondition$Outbound,
|
|
20
|
+
SortCondition$outboundSchema,
|
|
21
|
+
} from "./sort-condition.js";
|
|
22
|
+
import { Status, Status$outboundSchema } from "./status.js";
|
|
23
|
+
|
|
24
|
+
export const AccountingperiodFilterOrder = {
|
|
25
|
+
Asc: "asc",
|
|
26
|
+
Desc: "desc",
|
|
27
|
+
} as const;
|
|
28
|
+
export type AccountingperiodFilterOrder = ClosedEnum<
|
|
29
|
+
typeof AccountingperiodFilterOrder
|
|
30
|
+
>;
|
|
31
|
+
|
|
32
|
+
export type AccountingperiodFilter = {
|
|
33
|
+
accountingPeriodIds?: Array<string> | undefined;
|
|
34
|
+
endTime?: Date | undefined;
|
|
35
|
+
expand?: string | undefined;
|
|
36
|
+
filters?: Array<FilterCondition> | undefined;
|
|
37
|
+
limit?: number | undefined;
|
|
38
|
+
offset?: number | undefined;
|
|
39
|
+
order?: AccountingperiodFilterOrder | undefined;
|
|
40
|
+
periodStatuses?: Array<AccountingPeriodStatus> | undefined;
|
|
41
|
+
sort?: Array<SortCondition> | undefined;
|
|
42
|
+
startTime?: Date | undefined;
|
|
43
|
+
status?: Status | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const AccountingperiodFilterOrder$outboundSchema: z.ZodMiniEnum<
|
|
48
|
+
typeof AccountingperiodFilterOrder
|
|
49
|
+
> = z.enum(AccountingperiodFilterOrder);
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type AccountingperiodFilter$Outbound = {
|
|
53
|
+
accounting_period_ids?: Array<string> | undefined;
|
|
54
|
+
end_time?: string | undefined;
|
|
55
|
+
expand?: string | undefined;
|
|
56
|
+
filters?: Array<FilterCondition$Outbound> | undefined;
|
|
57
|
+
limit?: number | undefined;
|
|
58
|
+
offset?: number | undefined;
|
|
59
|
+
order?: string | undefined;
|
|
60
|
+
period_statuses?: Array<string> | undefined;
|
|
61
|
+
sort?: Array<SortCondition$Outbound> | undefined;
|
|
62
|
+
start_time?: string | undefined;
|
|
63
|
+
status?: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const AccountingperiodFilter$outboundSchema: z.ZodMiniType<
|
|
68
|
+
AccountingperiodFilter$Outbound,
|
|
69
|
+
AccountingperiodFilter
|
|
70
|
+
> = z.pipe(
|
|
71
|
+
z.object({
|
|
72
|
+
accountingPeriodIds: z.optional(z.array(z.string())),
|
|
73
|
+
endTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
74
|
+
expand: z.optional(z.string()),
|
|
75
|
+
filters: z.optional(z.array(FilterCondition$outboundSchema)),
|
|
76
|
+
limit: z.optional(z.int()),
|
|
77
|
+
offset: z.optional(z.int()),
|
|
78
|
+
order: z.optional(AccountingperiodFilterOrder$outboundSchema),
|
|
79
|
+
periodStatuses: z.optional(z.array(AccountingPeriodStatus$outboundSchema)),
|
|
80
|
+
sort: z.optional(z.array(SortCondition$outboundSchema)),
|
|
81
|
+
startTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
82
|
+
status: z.optional(Status$outboundSchema),
|
|
83
|
+
}),
|
|
84
|
+
z.transform((v) => {
|
|
85
|
+
return remap$(v, {
|
|
86
|
+
accountingPeriodIds: "accounting_period_ids",
|
|
87
|
+
endTime: "end_time",
|
|
88
|
+
periodStatuses: "period_statuses",
|
|
89
|
+
startTime: "start_time",
|
|
90
|
+
});
|
|
91
|
+
}),
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
export function accountingperiodFilterToJSON(
|
|
95
|
+
accountingperiodFilter: AccountingperiodFilter,
|
|
96
|
+
): string {
|
|
97
|
+
return JSON.stringify(
|
|
98
|
+
AccountingperiodFilter$outboundSchema.parse(accountingperiodFilter),
|
|
99
|
+
);
|
|
100
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 AmortizationMethod = {
|
|
10
|
+
Daily: "daily",
|
|
11
|
+
PeriodEven: "period_even",
|
|
12
|
+
PeriodEvenProrated: "period_even_prorated",
|
|
13
|
+
} as const;
|
|
14
|
+
export type AmortizationMethod = OpenEnum<typeof AmortizationMethod>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const AmortizationMethod$inboundSchema: z.ZodMiniType<
|
|
18
|
+
AmortizationMethod,
|
|
19
|
+
unknown
|
|
20
|
+
> = openEnums.inboundSchema(AmortizationMethod);
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
RevRecEntityType,
|
|
12
|
+
RevRecEntityType$inboundSchema,
|
|
13
|
+
} from "./rev-rec-entity-type.js";
|
|
14
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
15
|
+
|
|
16
|
+
export type ContractAssociationResponse = {
|
|
17
|
+
createdAt?: Date | undefined;
|
|
18
|
+
entityId?: string | undefined;
|
|
19
|
+
entityType?: RevRecEntityType | undefined;
|
|
20
|
+
id?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const ContractAssociationResponse$inboundSchema: z.ZodMiniType<
|
|
25
|
+
ContractAssociationResponse,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.pipe(
|
|
28
|
+
z.object({
|
|
29
|
+
created_at: types.optional(types.date()),
|
|
30
|
+
entity_id: types.optional(types.string()),
|
|
31
|
+
entity_type: types.optional(RevRecEntityType$inboundSchema),
|
|
32
|
+
id: types.optional(types.string()),
|
|
33
|
+
}),
|
|
34
|
+
z.transform((v) => {
|
|
35
|
+
return remap$(v, {
|
|
36
|
+
"created_at": "createdAt",
|
|
37
|
+
"entity_id": "entityId",
|
|
38
|
+
"entity_type": "entityType",
|
|
39
|
+
});
|
|
40
|
+
}),
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
export function contractAssociationResponseFromJSON(
|
|
44
|
+
jsonString: string,
|
|
45
|
+
): SafeParseResult<ContractAssociationResponse, SDKValidationError> {
|
|
46
|
+
return safeParse(
|
|
47
|
+
jsonString,
|
|
48
|
+
(x) => ContractAssociationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
49
|
+
`Failed to parse 'ContractAssociationResponse' from JSON`,
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
ContractStatus,
|
|
10
|
+
ContractStatus$outboundSchema,
|
|
11
|
+
} from "./contract-status.js";
|
|
12
|
+
import {
|
|
13
|
+
FilterCondition,
|
|
14
|
+
FilterCondition$Outbound,
|
|
15
|
+
FilterCondition$outboundSchema,
|
|
16
|
+
} from "./filter-condition.js";
|
|
17
|
+
import {
|
|
18
|
+
SortCondition,
|
|
19
|
+
SortCondition$Outbound,
|
|
20
|
+
SortCondition$outboundSchema,
|
|
21
|
+
} from "./sort-condition.js";
|
|
22
|
+
import { Status, Status$outboundSchema } from "./status.js";
|
|
23
|
+
|
|
24
|
+
export const ContractFilterOrder = {
|
|
25
|
+
Asc: "asc",
|
|
26
|
+
Desc: "desc",
|
|
27
|
+
} as const;
|
|
28
|
+
export type ContractFilterOrder = ClosedEnum<typeof ContractFilterOrder>;
|
|
29
|
+
|
|
30
|
+
export type ContractFilter = {
|
|
31
|
+
contractIds?: Array<string> | undefined;
|
|
32
|
+
contractStatuses?: Array<ContractStatus> | undefined;
|
|
33
|
+
customerIds?: Array<string> | undefined;
|
|
34
|
+
endTime?: Date | undefined;
|
|
35
|
+
endedAtGte?: Date | undefined;
|
|
36
|
+
expand?: string | undefined;
|
|
37
|
+
filters?: Array<FilterCondition> | undefined;
|
|
38
|
+
limit?: number | undefined;
|
|
39
|
+
offset?: number | undefined;
|
|
40
|
+
order?: ContractFilterOrder | undefined;
|
|
41
|
+
sort?: Array<SortCondition> | undefined;
|
|
42
|
+
startTime?: Date | undefined;
|
|
43
|
+
status?: Status | undefined;
|
|
44
|
+
subscriptionIds?: Array<string> | undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const ContractFilterOrder$outboundSchema: z.ZodMiniEnum<
|
|
49
|
+
typeof ContractFilterOrder
|
|
50
|
+
> = z.enum(ContractFilterOrder);
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type ContractFilter$Outbound = {
|
|
54
|
+
contract_ids?: Array<string> | undefined;
|
|
55
|
+
contract_statuses?: Array<string> | undefined;
|
|
56
|
+
customer_ids?: Array<string> | undefined;
|
|
57
|
+
end_time?: string | undefined;
|
|
58
|
+
ended_at_gte?: string | undefined;
|
|
59
|
+
expand?: string | undefined;
|
|
60
|
+
filters?: Array<FilterCondition$Outbound> | undefined;
|
|
61
|
+
limit?: number | undefined;
|
|
62
|
+
offset?: number | undefined;
|
|
63
|
+
order?: string | undefined;
|
|
64
|
+
sort?: Array<SortCondition$Outbound> | undefined;
|
|
65
|
+
start_time?: string | undefined;
|
|
66
|
+
status?: string | undefined;
|
|
67
|
+
subscription_ids?: Array<string> | undefined;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const ContractFilter$outboundSchema: z.ZodMiniType<
|
|
72
|
+
ContractFilter$Outbound,
|
|
73
|
+
ContractFilter
|
|
74
|
+
> = z.pipe(
|
|
75
|
+
z.object({
|
|
76
|
+
contractIds: z.optional(z.array(z.string())),
|
|
77
|
+
contractStatuses: z.optional(z.array(ContractStatus$outboundSchema)),
|
|
78
|
+
customerIds: z.optional(z.array(z.string())),
|
|
79
|
+
endTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
80
|
+
endedAtGte: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
81
|
+
expand: z.optional(z.string()),
|
|
82
|
+
filters: z.optional(z.array(FilterCondition$outboundSchema)),
|
|
83
|
+
limit: z.optional(z.int()),
|
|
84
|
+
offset: z.optional(z.int()),
|
|
85
|
+
order: z.optional(ContractFilterOrder$outboundSchema),
|
|
86
|
+
sort: z.optional(z.array(SortCondition$outboundSchema)),
|
|
87
|
+
startTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
88
|
+
status: z.optional(Status$outboundSchema),
|
|
89
|
+
subscriptionIds: z.optional(z.array(z.string())),
|
|
90
|
+
}),
|
|
91
|
+
z.transform((v) => {
|
|
92
|
+
return remap$(v, {
|
|
93
|
+
contractIds: "contract_ids",
|
|
94
|
+
contractStatuses: "contract_statuses",
|
|
95
|
+
customerIds: "customer_ids",
|
|
96
|
+
endTime: "end_time",
|
|
97
|
+
endedAtGte: "ended_at_gte",
|
|
98
|
+
startTime: "start_time",
|
|
99
|
+
subscriptionIds: "subscription_ids",
|
|
100
|
+
});
|
|
101
|
+
}),
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
export function contractFilterToJSON(contractFilter: ContractFilter): string {
|
|
105
|
+
return JSON.stringify(ContractFilter$outboundSchema.parse(contractFilter));
|
|
106
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
ContractAssociationResponse,
|
|
12
|
+
ContractAssociationResponse$inboundSchema,
|
|
13
|
+
} from "./contract-association-response.js";
|
|
14
|
+
import {
|
|
15
|
+
ContractStatus,
|
|
16
|
+
ContractStatus$inboundSchema,
|
|
17
|
+
} from "./contract-status.js";
|
|
18
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
19
|
+
import { Status, Status$inboundSchema } from "./status.js";
|
|
20
|
+
|
|
21
|
+
export type ContractResponse = {
|
|
22
|
+
associations?: Array<ContractAssociationResponse> | undefined;
|
|
23
|
+
contractStatus?: ContractStatus | undefined;
|
|
24
|
+
createdAt?: Date | undefined;
|
|
25
|
+
currency?: string | undefined;
|
|
26
|
+
customerId?: string | undefined;
|
|
27
|
+
endedAt?: Date | undefined;
|
|
28
|
+
id?: string | undefined;
|
|
29
|
+
status?: Status | undefined;
|
|
30
|
+
termEnd?: Date | undefined;
|
|
31
|
+
termStart?: Date | undefined;
|
|
32
|
+
updatedAt?: Date | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const ContractResponse$inboundSchema: z.ZodMiniType<
|
|
37
|
+
ContractResponse,
|
|
38
|
+
unknown
|
|
39
|
+
> = z.pipe(
|
|
40
|
+
z.object({
|
|
41
|
+
associations: types.optional(
|
|
42
|
+
z.array(ContractAssociationResponse$inboundSchema),
|
|
43
|
+
),
|
|
44
|
+
contract_status: types.optional(ContractStatus$inboundSchema),
|
|
45
|
+
created_at: types.optional(types.date()),
|
|
46
|
+
currency: types.optional(types.string()),
|
|
47
|
+
customer_id: types.optional(types.string()),
|
|
48
|
+
ended_at: types.optional(types.date()),
|
|
49
|
+
id: types.optional(types.string()),
|
|
50
|
+
status: types.optional(Status$inboundSchema),
|
|
51
|
+
term_end: types.optional(types.date()),
|
|
52
|
+
term_start: types.optional(types.date()),
|
|
53
|
+
updated_at: types.optional(types.date()),
|
|
54
|
+
}),
|
|
55
|
+
z.transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
"contract_status": "contractStatus",
|
|
58
|
+
"created_at": "createdAt",
|
|
59
|
+
"customer_id": "customerId",
|
|
60
|
+
"ended_at": "endedAt",
|
|
61
|
+
"term_end": "termEnd",
|
|
62
|
+
"term_start": "termStart",
|
|
63
|
+
"updated_at": "updatedAt",
|
|
64
|
+
});
|
|
65
|
+
}),
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
export function contractResponseFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<ContractResponse, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => ContractResponse$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'ContractResponse' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -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 ContractStatus = {
|
|
10
|
+
Draft: "draft",
|
|
11
|
+
Active: "active",
|
|
12
|
+
Ended: "ended",
|
|
13
|
+
Cancelled: "cancelled",
|
|
14
|
+
} as const;
|
|
15
|
+
export type ContractStatus = OpenEnum<typeof ContractStatus>;
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const ContractStatus$inboundSchema: z.ZodMiniType<
|
|
19
|
+
ContractStatus,
|
|
20
|
+
unknown
|
|
21
|
+
> = openEnums.inboundSchema(ContractStatus);
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const ContractStatus$outboundSchema: z.ZodMiniType<
|
|
24
|
+
string,
|
|
25
|
+
ContractStatus
|
|
26
|
+
> = openEnums.outboundSchema(ContractStatus);
|
|
@@ -36,8 +36,11 @@ export type CreateEntitlementRequest = {
|
|
|
36
36
|
endDate?: Date | undefined;
|
|
37
37
|
entityId?: string | undefined;
|
|
38
38
|
entityType?: EntitlementEntityType | undefined;
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Required, except on a subscription entitlement grant (entity_type SUBSCRIPTION with grant config), which has no feature.
|
|
41
|
+
*/
|
|
42
|
+
featureId?: string | undefined;
|
|
43
|
+
featureType?: FeatureType | undefined;
|
|
41
44
|
grantAllocationBehavior?: EntitlementGrantAllocationBehavior | undefined;
|
|
42
45
|
grantDurationUnit?: EntitlementGrantDurationUnit | undefined;
|
|
43
46
|
grantDurationValue?: number | undefined;
|
|
@@ -64,8 +67,8 @@ export type CreateEntitlementRequest$Outbound = {
|
|
|
64
67
|
end_date?: string | undefined;
|
|
65
68
|
entity_id?: string | undefined;
|
|
66
69
|
entity_type?: string | undefined;
|
|
67
|
-
feature_id
|
|
68
|
-
feature_type
|
|
70
|
+
feature_id?: string | undefined;
|
|
71
|
+
feature_type?: string | undefined;
|
|
69
72
|
grant_allocation_behavior?: string | undefined;
|
|
70
73
|
grant_duration_unit?: string | undefined;
|
|
71
74
|
grant_duration_value?: number | undefined;
|
|
@@ -93,8 +96,8 @@ export const CreateEntitlementRequest$outboundSchema: z.ZodMiniType<
|
|
|
93
96
|
endDate: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
94
97
|
entityId: z.optional(z.string()),
|
|
95
98
|
entityType: z.optional(EntitlementEntityType$outboundSchema),
|
|
96
|
-
featureId: z.string(),
|
|
97
|
-
featureType: FeatureType$outboundSchema,
|
|
99
|
+
featureId: z.optional(z.string()),
|
|
100
|
+
featureType: z.optional(FeatureType$outboundSchema),
|
|
98
101
|
grantAllocationBehavior: z.optional(
|
|
99
102
|
EntitlementGrantAllocationBehavior$outboundSchema,
|
|
100
103
|
),
|
|
@@ -67,6 +67,7 @@ export type CreatePriceRequest = {
|
|
|
67
67
|
minQuantity?: number | undefined;
|
|
68
68
|
priceUnitConfig?: PriceUnitConfig | undefined;
|
|
69
69
|
priceUnitType: PriceUnitType;
|
|
70
|
+
productId?: string | undefined;
|
|
70
71
|
startDate?: Date | undefined;
|
|
71
72
|
tierMode?: BillingTier | undefined;
|
|
72
73
|
tiers?: Array<CreatePriceTier> | undefined;
|
|
@@ -97,6 +98,7 @@ export type CreatePriceRequest$Outbound = {
|
|
|
97
98
|
min_quantity?: number | undefined;
|
|
98
99
|
price_unit_config?: PriceUnitConfig$Outbound | undefined;
|
|
99
100
|
price_unit_type: string;
|
|
101
|
+
product_id?: string | undefined;
|
|
100
102
|
start_date?: string | undefined;
|
|
101
103
|
tier_mode?: string | undefined;
|
|
102
104
|
tiers?: Array<CreatePriceTier$Outbound> | undefined;
|
|
@@ -131,6 +133,7 @@ export const CreatePriceRequest$outboundSchema: z.ZodMiniType<
|
|
|
131
133
|
minQuantity: z.optional(z.int()),
|
|
132
134
|
priceUnitConfig: z.optional(PriceUnitConfig$outboundSchema),
|
|
133
135
|
priceUnitType: PriceUnitType$outboundSchema,
|
|
136
|
+
productId: z.optional(z.string()),
|
|
134
137
|
startDate: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
135
138
|
tierMode: z.optional(BillingTier$outboundSchema),
|
|
136
139
|
tiers: z.optional(z.array(CreatePriceTier$outboundSchema)),
|
|
@@ -156,6 +159,7 @@ export const CreatePriceRequest$outboundSchema: z.ZodMiniType<
|
|
|
156
159
|
minQuantity: "min_quantity",
|
|
157
160
|
priceUnitConfig: "price_unit_config",
|
|
158
161
|
priceUnitType: "price_unit_type",
|
|
162
|
+
productId: "product_id",
|
|
159
163
|
startDate: "start_date",
|
|
160
164
|
tierMode: "tier_mode",
|
|
161
165
|
transformQuantity: "transform_quantity",
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
|
|
8
|
+
export type CreateProductRequest = {
|
|
9
|
+
description?: string | undefined;
|
|
10
|
+
lookupKey: string;
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type CreateProductRequest$Outbound = {
|
|
16
|
+
description?: string | undefined;
|
|
17
|
+
lookup_key: string;
|
|
18
|
+
name: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const CreateProductRequest$outboundSchema: z.ZodMiniType<
|
|
23
|
+
CreateProductRequest$Outbound,
|
|
24
|
+
CreateProductRequest
|
|
25
|
+
> = z.pipe(
|
|
26
|
+
z.object({
|
|
27
|
+
description: z.optional(z.string()),
|
|
28
|
+
lookupKey: z.string(),
|
|
29
|
+
name: z.string(),
|
|
30
|
+
}),
|
|
31
|
+
z.transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
lookupKey: "lookup_key",
|
|
34
|
+
});
|
|
35
|
+
}),
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
export function createProductRequestToJSON(
|
|
39
|
+
createProductRequest: CreateProductRequest,
|
|
40
|
+
): string {
|
|
41
|
+
return JSON.stringify(
|
|
42
|
+
CreateProductRequest$outboundSchema.parse(createProductRequest),
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
EntitlementAggregationMode,
|
|
9
|
+
EntitlementAggregationMode$outboundSchema,
|
|
10
|
+
} from "./entitlement-aggregation-mode.js";
|
|
11
|
+
import {
|
|
12
|
+
EntitlementGrantAllocationBehavior,
|
|
13
|
+
EntitlementGrantAllocationBehavior$outboundSchema,
|
|
14
|
+
} from "./entitlement-grant-allocation-behavior.js";
|
|
15
|
+
import {
|
|
16
|
+
EntitlementGrantDurationUnit,
|
|
17
|
+
EntitlementGrantDurationUnit$outboundSchema,
|
|
18
|
+
} from "./entitlement-grant-duration-unit.js";
|
|
19
|
+
|
|
20
|
+
export type CreateSubscriptionEntitlementGrantRequest = {
|
|
21
|
+
aggregationMode?: EntitlementAggregationMode | undefined;
|
|
22
|
+
endDate?: Date | undefined;
|
|
23
|
+
grantAllocationBehavior?: EntitlementGrantAllocationBehavior | undefined;
|
|
24
|
+
grantDurationUnit: EntitlementGrantDurationUnit;
|
|
25
|
+
grantDurationValue?: number | undefined;
|
|
26
|
+
grantQuota: string;
|
|
27
|
+
/**
|
|
28
|
+
* StartDate defaults to the subscription's start; EndDate leaves the grant open.
|
|
29
|
+
*/
|
|
30
|
+
startDate?: Date | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type CreateSubscriptionEntitlementGrantRequest$Outbound = {
|
|
35
|
+
aggregation_mode?: string | undefined;
|
|
36
|
+
end_date?: string | undefined;
|
|
37
|
+
grant_allocation_behavior?: string | undefined;
|
|
38
|
+
grant_duration_unit: string;
|
|
39
|
+
grant_duration_value?: number | undefined;
|
|
40
|
+
grant_quota: string;
|
|
41
|
+
start_date?: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const CreateSubscriptionEntitlementGrantRequest$outboundSchema:
|
|
46
|
+
z.ZodMiniType<
|
|
47
|
+
CreateSubscriptionEntitlementGrantRequest$Outbound,
|
|
48
|
+
CreateSubscriptionEntitlementGrantRequest
|
|
49
|
+
> = z.pipe(
|
|
50
|
+
z.object({
|
|
51
|
+
aggregationMode: z.optional(EntitlementAggregationMode$outboundSchema),
|
|
52
|
+
endDate: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
53
|
+
grantAllocationBehavior: z.optional(
|
|
54
|
+
EntitlementGrantAllocationBehavior$outboundSchema,
|
|
55
|
+
),
|
|
56
|
+
grantDurationUnit: EntitlementGrantDurationUnit$outboundSchema,
|
|
57
|
+
grantDurationValue: z.optional(z.int()),
|
|
58
|
+
grantQuota: z.string(),
|
|
59
|
+
startDate: z.optional(
|
|
60
|
+
z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
61
|
+
),
|
|
62
|
+
}),
|
|
63
|
+
z.transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
aggregationMode: "aggregation_mode",
|
|
66
|
+
endDate: "end_date",
|
|
67
|
+
grantAllocationBehavior: "grant_allocation_behavior",
|
|
68
|
+
grantDurationUnit: "grant_duration_unit",
|
|
69
|
+
grantDurationValue: "grant_duration_value",
|
|
70
|
+
grantQuota: "grant_quota",
|
|
71
|
+
startDate: "start_date",
|
|
72
|
+
});
|
|
73
|
+
}),
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
export function createSubscriptionEntitlementGrantRequestToJSON(
|
|
77
|
+
createSubscriptionEntitlementGrantRequest:
|
|
78
|
+
CreateSubscriptionEntitlementGrantRequest,
|
|
79
|
+
): string {
|
|
80
|
+
return JSON.stringify(
|
|
81
|
+
CreateSubscriptionEntitlementGrantRequest$outboundSchema.parse(
|
|
82
|
+
createSubscriptionEntitlementGrantRequest,
|
|
83
|
+
),
|
|
84
|
+
);
|
|
85
|
+
}
|