@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,55 @@
|
|
|
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 PerformanceObligationAssociationResponse = {
|
|
17
|
+
createdAt?: Date | undefined;
|
|
18
|
+
entityId?: string | undefined;
|
|
19
|
+
entityType?: RevRecEntityType | undefined;
|
|
20
|
+
id?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const PerformanceObligationAssociationResponse$inboundSchema:
|
|
25
|
+
z.ZodMiniType<PerformanceObligationAssociationResponse, unknown> = z.pipe(
|
|
26
|
+
z.object({
|
|
27
|
+
created_at: types.optional(types.date()),
|
|
28
|
+
entity_id: types.optional(types.string()),
|
|
29
|
+
entity_type: types.optional(RevRecEntityType$inboundSchema),
|
|
30
|
+
id: types.optional(types.string()),
|
|
31
|
+
}),
|
|
32
|
+
z.transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"created_at": "createdAt",
|
|
35
|
+
"entity_id": "entityId",
|
|
36
|
+
"entity_type": "entityType",
|
|
37
|
+
});
|
|
38
|
+
}),
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
export function performanceObligationAssociationResponseFromJSON(
|
|
42
|
+
jsonString: string,
|
|
43
|
+
): SafeParseResult<
|
|
44
|
+
PerformanceObligationAssociationResponse,
|
|
45
|
+
SDKValidationError
|
|
46
|
+
> {
|
|
47
|
+
return safeParse(
|
|
48
|
+
jsonString,
|
|
49
|
+
(x) =>
|
|
50
|
+
PerformanceObligationAssociationResponse$inboundSchema.parse(
|
|
51
|
+
JSON.parse(x),
|
|
52
|
+
),
|
|
53
|
+
`Failed to parse 'PerformanceObligationAssociationResponse' from JSON`,
|
|
54
|
+
);
|
|
55
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
AmortizationMethod,
|
|
12
|
+
AmortizationMethod$inboundSchema,
|
|
13
|
+
} from "./amortization-method.js";
|
|
14
|
+
import {
|
|
15
|
+
PerformanceObligationAssociationResponse,
|
|
16
|
+
PerformanceObligationAssociationResponse$inboundSchema,
|
|
17
|
+
} from "./performance-obligation-association-response.js";
|
|
18
|
+
import {
|
|
19
|
+
PerformanceObligationStatus,
|
|
20
|
+
PerformanceObligationStatus$inboundSchema,
|
|
21
|
+
} from "./performance-obligation-status.js";
|
|
22
|
+
import {
|
|
23
|
+
RecognitionMethod,
|
|
24
|
+
RecognitionMethod$inboundSchema,
|
|
25
|
+
} from "./recognition-method.js";
|
|
26
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
27
|
+
import { Status, Status$inboundSchema } from "./status.js";
|
|
28
|
+
|
|
29
|
+
export type PerformanceObligationResponse = {
|
|
30
|
+
amortizationMethod?: AmortizationMethod | undefined;
|
|
31
|
+
associations?: Array<PerformanceObligationAssociationResponse> | undefined;
|
|
32
|
+
contractId?: string | undefined;
|
|
33
|
+
createdAt?: Date | undefined;
|
|
34
|
+
id?: string | undefined;
|
|
35
|
+
name?: string | undefined;
|
|
36
|
+
pobStatus?: PerformanceObligationStatus | undefined;
|
|
37
|
+
recognitionMethod?: RecognitionMethod | undefined;
|
|
38
|
+
serviceEnd?: Date | undefined;
|
|
39
|
+
serviceStart?: Date | undefined;
|
|
40
|
+
status?: Status | undefined;
|
|
41
|
+
updatedAt?: Date | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const PerformanceObligationResponse$inboundSchema: z.ZodMiniType<
|
|
46
|
+
PerformanceObligationResponse,
|
|
47
|
+
unknown
|
|
48
|
+
> = z.pipe(
|
|
49
|
+
z.object({
|
|
50
|
+
amortization_method: types.optional(AmortizationMethod$inboundSchema),
|
|
51
|
+
associations: types.optional(
|
|
52
|
+
z.array(PerformanceObligationAssociationResponse$inboundSchema),
|
|
53
|
+
),
|
|
54
|
+
contract_id: types.optional(types.string()),
|
|
55
|
+
created_at: types.optional(types.date()),
|
|
56
|
+
id: types.optional(types.string()),
|
|
57
|
+
name: types.optional(types.string()),
|
|
58
|
+
pob_status: types.optional(PerformanceObligationStatus$inboundSchema),
|
|
59
|
+
recognition_method: types.optional(RecognitionMethod$inboundSchema),
|
|
60
|
+
service_end: types.optional(types.date()),
|
|
61
|
+
service_start: types.optional(types.date()),
|
|
62
|
+
status: types.optional(Status$inboundSchema),
|
|
63
|
+
updated_at: types.optional(types.date()),
|
|
64
|
+
}),
|
|
65
|
+
z.transform((v) => {
|
|
66
|
+
return remap$(v, {
|
|
67
|
+
"amortization_method": "amortizationMethod",
|
|
68
|
+
"contract_id": "contractId",
|
|
69
|
+
"created_at": "createdAt",
|
|
70
|
+
"pob_status": "pobStatus",
|
|
71
|
+
"recognition_method": "recognitionMethod",
|
|
72
|
+
"service_end": "serviceEnd",
|
|
73
|
+
"service_start": "serviceStart",
|
|
74
|
+
"updated_at": "updatedAt",
|
|
75
|
+
});
|
|
76
|
+
}),
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
export function performanceObligationResponseFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<PerformanceObligationResponse, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => PerformanceObligationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'PerformanceObligationResponse' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 PerformanceObligationStatus = {
|
|
10
|
+
Draft: "draft",
|
|
11
|
+
Active: "active",
|
|
12
|
+
Satisfied: "satisfied",
|
|
13
|
+
Cancelled: "cancelled",
|
|
14
|
+
} as const;
|
|
15
|
+
export type PerformanceObligationStatus = OpenEnum<
|
|
16
|
+
typeof PerformanceObligationStatus
|
|
17
|
+
>;
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const PerformanceObligationStatus$inboundSchema: z.ZodMiniType<
|
|
21
|
+
PerformanceObligationStatus,
|
|
22
|
+
unknown
|
|
23
|
+
> = openEnums.inboundSchema(PerformanceObligationStatus);
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const PerformanceObligationStatus$outboundSchema: z.ZodMiniType<
|
|
26
|
+
string,
|
|
27
|
+
PerformanceObligationStatus
|
|
28
|
+
> = openEnums.outboundSchema(PerformanceObligationStatus);
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
FilterCondition,
|
|
10
|
+
FilterCondition$Outbound,
|
|
11
|
+
FilterCondition$outboundSchema,
|
|
12
|
+
} from "./filter-condition.js";
|
|
13
|
+
import {
|
|
14
|
+
PerformanceObligationStatus,
|
|
15
|
+
PerformanceObligationStatus$outboundSchema,
|
|
16
|
+
} from "./performance-obligation-status.js";
|
|
17
|
+
import {
|
|
18
|
+
RecognitionMethod,
|
|
19
|
+
RecognitionMethod$outboundSchema,
|
|
20
|
+
} from "./recognition-method.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 PobFilterOrder = {
|
|
29
|
+
Asc: "asc",
|
|
30
|
+
Desc: "desc",
|
|
31
|
+
} as const;
|
|
32
|
+
export type PobFilterOrder = ClosedEnum<typeof PobFilterOrder>;
|
|
33
|
+
|
|
34
|
+
export type PobFilter = {
|
|
35
|
+
contractIds?: Array<string> | undefined;
|
|
36
|
+
customerIds?: Array<string> | undefined;
|
|
37
|
+
endTime?: Date | undefined;
|
|
38
|
+
expand?: string | undefined;
|
|
39
|
+
filters?: Array<FilterCondition> | undefined;
|
|
40
|
+
limit?: number | undefined;
|
|
41
|
+
offset?: number | undefined;
|
|
42
|
+
order?: PobFilterOrder | undefined;
|
|
43
|
+
performanceObligationIds?: Array<string> | undefined;
|
|
44
|
+
pobStatuses?: Array<PerformanceObligationStatus> | undefined;
|
|
45
|
+
recognitionMethods?: Array<RecognitionMethod> | undefined;
|
|
46
|
+
sort?: Array<SortCondition> | undefined;
|
|
47
|
+
startTime?: Date | undefined;
|
|
48
|
+
status?: Status | undefined;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const PobFilterOrder$outboundSchema: z.ZodMiniEnum<
|
|
53
|
+
typeof PobFilterOrder
|
|
54
|
+
> = z.enum(PobFilterOrder);
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export type PobFilter$Outbound = {
|
|
58
|
+
contract_ids?: Array<string> | undefined;
|
|
59
|
+
customer_ids?: Array<string> | undefined;
|
|
60
|
+
end_time?: string | undefined;
|
|
61
|
+
expand?: string | undefined;
|
|
62
|
+
filters?: Array<FilterCondition$Outbound> | undefined;
|
|
63
|
+
limit?: number | undefined;
|
|
64
|
+
offset?: number | undefined;
|
|
65
|
+
order?: string | undefined;
|
|
66
|
+
performance_obligation_ids?: Array<string> | undefined;
|
|
67
|
+
pob_statuses?: Array<string> | undefined;
|
|
68
|
+
recognition_methods?: Array<string> | undefined;
|
|
69
|
+
sort?: Array<SortCondition$Outbound> | undefined;
|
|
70
|
+
start_time?: string | undefined;
|
|
71
|
+
status?: string | undefined;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const PobFilter$outboundSchema: z.ZodMiniType<
|
|
76
|
+
PobFilter$Outbound,
|
|
77
|
+
PobFilter
|
|
78
|
+
> = z.pipe(
|
|
79
|
+
z.object({
|
|
80
|
+
contractIds: z.optional(z.array(z.string())),
|
|
81
|
+
customerIds: z.optional(z.array(z.string())),
|
|
82
|
+
endTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
83
|
+
expand: z.optional(z.string()),
|
|
84
|
+
filters: z.optional(z.array(FilterCondition$outboundSchema)),
|
|
85
|
+
limit: z.optional(z.int()),
|
|
86
|
+
offset: z.optional(z.int()),
|
|
87
|
+
order: z.optional(PobFilterOrder$outboundSchema),
|
|
88
|
+
performanceObligationIds: z.optional(z.array(z.string())),
|
|
89
|
+
pobStatuses: z.optional(
|
|
90
|
+
z.array(PerformanceObligationStatus$outboundSchema),
|
|
91
|
+
),
|
|
92
|
+
recognitionMethods: z.optional(z.array(RecognitionMethod$outboundSchema)),
|
|
93
|
+
sort: z.optional(z.array(SortCondition$outboundSchema)),
|
|
94
|
+
startTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
95
|
+
status: z.optional(Status$outboundSchema),
|
|
96
|
+
}),
|
|
97
|
+
z.transform((v) => {
|
|
98
|
+
return remap$(v, {
|
|
99
|
+
contractIds: "contract_ids",
|
|
100
|
+
customerIds: "customer_ids",
|
|
101
|
+
endTime: "end_time",
|
|
102
|
+
performanceObligationIds: "performance_obligation_ids",
|
|
103
|
+
pobStatuses: "pob_statuses",
|
|
104
|
+
recognitionMethods: "recognition_methods",
|
|
105
|
+
startTime: "start_time",
|
|
106
|
+
});
|
|
107
|
+
}),
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
export function pobFilterToJSON(pobFilter: PobFilter): string {
|
|
111
|
+
return JSON.stringify(PobFilter$outboundSchema.parse(pobFilter));
|
|
112
|
+
}
|
|
@@ -47,6 +47,7 @@ export type PriceFilter = {
|
|
|
47
47
|
*/
|
|
48
48
|
planIds?: Array<string> | undefined;
|
|
49
49
|
priceIds?: Array<string> | undefined;
|
|
50
|
+
productIds?: Array<string> | undefined;
|
|
50
51
|
sort?: string | undefined;
|
|
51
52
|
startDateLt?: string | undefined;
|
|
52
53
|
startTime?: Date | undefined;
|
|
@@ -83,6 +84,7 @@ export type PriceFilter$Outbound = {
|
|
|
83
84
|
parent_price_id?: string | undefined;
|
|
84
85
|
plan_ids?: Array<string> | undefined;
|
|
85
86
|
price_ids?: Array<string> | undefined;
|
|
87
|
+
product_ids?: Array<string> | undefined;
|
|
86
88
|
sort?: string | undefined;
|
|
87
89
|
start_date_lt?: string | undefined;
|
|
88
90
|
start_time?: string | undefined;
|
|
@@ -111,6 +113,7 @@ export const PriceFilter$outboundSchema: z.ZodMiniType<
|
|
|
111
113
|
parentPriceId: z.optional(z.string()),
|
|
112
114
|
planIds: z.optional(z.array(z.string())),
|
|
113
115
|
priceIds: z.optional(z.array(z.string())),
|
|
116
|
+
productIds: z.optional(z.array(z.string())),
|
|
114
117
|
sort: z.optional(z.string()),
|
|
115
118
|
startDateLt: z.optional(z.string()),
|
|
116
119
|
startTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
@@ -129,6 +132,7 @@ export const PriceFilter$outboundSchema: z.ZodMiniType<
|
|
|
129
132
|
parentPriceId: "parent_price_id",
|
|
130
133
|
planIds: "plan_ids",
|
|
131
134
|
priceIds: "price_ids",
|
|
135
|
+
productIds: "product_ids",
|
|
132
136
|
startDateLt: "start_date_lt",
|
|
133
137
|
startTime: "start_time",
|
|
134
138
|
subscriptionId: "subscription_id",
|
|
@@ -143,6 +143,7 @@ export type PricePrice = {
|
|
|
143
143
|
*/
|
|
144
144
|
priceUnitTiers?: Array<PricePriceTier> | undefined;
|
|
145
145
|
priceUnitType?: PriceUnitType | undefined;
|
|
146
|
+
productId?: string | undefined;
|
|
146
147
|
/**
|
|
147
148
|
* Sequence is the monotonic stamp bumped on every state change that
|
|
148
149
|
*
|
|
@@ -208,6 +209,7 @@ export const PricePrice$inboundSchema: z.ZodMiniType<PricePrice, unknown> = z
|
|
|
208
209
|
price_unit_id: types.optional(types.string()),
|
|
209
210
|
price_unit_tiers: types.optional(z.array(PricePriceTier$inboundSchema)),
|
|
210
211
|
price_unit_type: types.optional(PriceUnitType$inboundSchema),
|
|
212
|
+
product_id: types.optional(types.string()),
|
|
211
213
|
sequence: types.optional(types.number()),
|
|
212
214
|
start_date: types.optional(types.date()),
|
|
213
215
|
status: types.optional(Status$inboundSchema),
|
|
@@ -250,6 +252,7 @@ export const PricePrice$inboundSchema: z.ZodMiniType<PricePrice, unknown> = z
|
|
|
250
252
|
"price_unit_id": "priceUnitId",
|
|
251
253
|
"price_unit_tiers": "priceUnitTiers",
|
|
252
254
|
"price_unit_type": "priceUnitType",
|
|
255
|
+
"product_id": "productId",
|
|
253
256
|
"start_date": "startDate",
|
|
254
257
|
"tenant_id": "tenantId",
|
|
255
258
|
"tier_mode": "tierMode",
|
|
@@ -170,6 +170,7 @@ export type PriceResponse = {
|
|
|
170
170
|
priceUnitTiers?: Array<PricePriceTier> | undefined;
|
|
171
171
|
priceUnitType?: PriceUnitType | undefined;
|
|
172
172
|
pricingUnit?: PriceUnitResponse | undefined;
|
|
173
|
+
productId?: string | undefined;
|
|
173
174
|
/**
|
|
174
175
|
* Sequence is the monotonic stamp bumped on every state change that
|
|
175
176
|
*
|
|
@@ -243,6 +244,7 @@ export const PriceResponse$inboundSchema: z.ZodMiniType<
|
|
|
243
244
|
price_unit_tiers: types.optional(z.array(PricePriceTier$inboundSchema)),
|
|
244
245
|
price_unit_type: types.optional(PriceUnitType$inboundSchema),
|
|
245
246
|
pricing_unit: types.optional(PriceUnitResponse$inboundSchema),
|
|
247
|
+
product_id: types.optional(types.string()),
|
|
246
248
|
sequence: types.optional(types.number()),
|
|
247
249
|
start_date: types.optional(types.date()),
|
|
248
250
|
status: types.optional(Status$inboundSchema),
|
|
@@ -286,6 +288,7 @@ export const PriceResponse$inboundSchema: z.ZodMiniType<
|
|
|
286
288
|
"price_unit_tiers": "priceUnitTiers",
|
|
287
289
|
"price_unit_type": "priceUnitType",
|
|
288
290
|
"pricing_unit": "pricingUnit",
|
|
291
|
+
"product_id": "productId",
|
|
289
292
|
"start_date": "startDate",
|
|
290
293
|
"tenant_id": "tenantId",
|
|
291
294
|
"tier_mode": "tierMode",
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
FilterCondition,
|
|
10
|
+
FilterCondition$Outbound,
|
|
11
|
+
FilterCondition$outboundSchema,
|
|
12
|
+
} from "./filter-condition.js";
|
|
13
|
+
import {
|
|
14
|
+
SortCondition,
|
|
15
|
+
SortCondition$Outbound,
|
|
16
|
+
SortCondition$outboundSchema,
|
|
17
|
+
} from "./sort-condition.js";
|
|
18
|
+
import { Status, Status$outboundSchema } from "./status.js";
|
|
19
|
+
|
|
20
|
+
export const ProductFilterOrder = {
|
|
21
|
+
Asc: "asc",
|
|
22
|
+
Desc: "desc",
|
|
23
|
+
} as const;
|
|
24
|
+
export type ProductFilterOrder = ClosedEnum<typeof ProductFilterOrder>;
|
|
25
|
+
|
|
26
|
+
export type ProductFilter = {
|
|
27
|
+
endTime?: Date | undefined;
|
|
28
|
+
expand?: string | undefined;
|
|
29
|
+
filters?: Array<FilterCondition> | undefined;
|
|
30
|
+
limit?: number | undefined;
|
|
31
|
+
lookupKeys?: Array<string> | undefined;
|
|
32
|
+
offset?: number | undefined;
|
|
33
|
+
order?: ProductFilterOrder | undefined;
|
|
34
|
+
productIds?: Array<string> | undefined;
|
|
35
|
+
sort?: Array<SortCondition> | undefined;
|
|
36
|
+
startTime?: Date | undefined;
|
|
37
|
+
status?: Status | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ProductFilterOrder$outboundSchema: z.ZodMiniEnum<
|
|
42
|
+
typeof ProductFilterOrder
|
|
43
|
+
> = z.enum(ProductFilterOrder);
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type ProductFilter$Outbound = {
|
|
47
|
+
end_time?: string | undefined;
|
|
48
|
+
expand?: string | undefined;
|
|
49
|
+
filters?: Array<FilterCondition$Outbound> | undefined;
|
|
50
|
+
limit?: number | undefined;
|
|
51
|
+
lookup_keys?: Array<string> | undefined;
|
|
52
|
+
offset?: number | undefined;
|
|
53
|
+
order?: string | undefined;
|
|
54
|
+
product_ids?: Array<string> | undefined;
|
|
55
|
+
sort?: Array<SortCondition$Outbound> | undefined;
|
|
56
|
+
start_time?: string | undefined;
|
|
57
|
+
status?: string | undefined;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const ProductFilter$outboundSchema: z.ZodMiniType<
|
|
62
|
+
ProductFilter$Outbound,
|
|
63
|
+
ProductFilter
|
|
64
|
+
> = z.pipe(
|
|
65
|
+
z.object({
|
|
66
|
+
endTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
67
|
+
expand: z.optional(z.string()),
|
|
68
|
+
filters: z.optional(z.array(FilterCondition$outboundSchema)),
|
|
69
|
+
limit: z.optional(z.int()),
|
|
70
|
+
lookupKeys: z.optional(z.array(z.string())),
|
|
71
|
+
offset: z.optional(z.int()),
|
|
72
|
+
order: z.optional(ProductFilterOrder$outboundSchema),
|
|
73
|
+
productIds: z.optional(z.array(z.string())),
|
|
74
|
+
sort: z.optional(z.array(SortCondition$outboundSchema)),
|
|
75
|
+
startTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
76
|
+
status: z.optional(Status$outboundSchema),
|
|
77
|
+
}),
|
|
78
|
+
z.transform((v) => {
|
|
79
|
+
return remap$(v, {
|
|
80
|
+
endTime: "end_time",
|
|
81
|
+
lookupKeys: "lookup_keys",
|
|
82
|
+
productIds: "product_ids",
|
|
83
|
+
startTime: "start_time",
|
|
84
|
+
});
|
|
85
|
+
}),
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
export function productFilterToJSON(productFilter: ProductFilter): string {
|
|
89
|
+
return JSON.stringify(ProductFilter$outboundSchema.parse(productFilter));
|
|
90
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { SDKValidationError } from "./sdk-validation-error.js";
|
|
11
|
+
import { Status, Status$inboundSchema } from "./status.js";
|
|
12
|
+
|
|
13
|
+
export type ProductResponse = {
|
|
14
|
+
createdAt?: Date | undefined;
|
|
15
|
+
description?: string | undefined;
|
|
16
|
+
id?: string | undefined;
|
|
17
|
+
lookupKey?: string | undefined;
|
|
18
|
+
name?: string | undefined;
|
|
19
|
+
status?: Status | undefined;
|
|
20
|
+
updatedAt?: Date | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const ProductResponse$inboundSchema: z.ZodMiniType<
|
|
25
|
+
ProductResponse,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.pipe(
|
|
28
|
+
z.object({
|
|
29
|
+
created_at: types.optional(types.date()),
|
|
30
|
+
description: types.optional(types.string()),
|
|
31
|
+
id: types.optional(types.string()),
|
|
32
|
+
lookup_key: types.optional(types.string()),
|
|
33
|
+
name: types.optional(types.string()),
|
|
34
|
+
status: types.optional(Status$inboundSchema),
|
|
35
|
+
updated_at: types.optional(types.date()),
|
|
36
|
+
}),
|
|
37
|
+
z.transform((v) => {
|
|
38
|
+
return remap$(v, {
|
|
39
|
+
"created_at": "createdAt",
|
|
40
|
+
"lookup_key": "lookupKey",
|
|
41
|
+
"updated_at": "updatedAt",
|
|
42
|
+
});
|
|
43
|
+
}),
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
export function productResponseFromJSON(
|
|
47
|
+
jsonString: string,
|
|
48
|
+
): SafeParseResult<ProductResponse, SDKValidationError> {
|
|
49
|
+
return safeParse(
|
|
50
|
+
jsonString,
|
|
51
|
+
(x) => ProductResponse$inboundSchema.parse(JSON.parse(x)),
|
|
52
|
+
`Failed to parse 'ProductResponse' from JSON`,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -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 RecognitionMethod = {
|
|
10
|
+
PointInTime: "point_in_time",
|
|
11
|
+
StraightLine: "straight_line",
|
|
12
|
+
AsConsumed: "as_consumed",
|
|
13
|
+
} as const;
|
|
14
|
+
export type RecognitionMethod = OpenEnum<typeof RecognitionMethod>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const RecognitionMethod$inboundSchema: z.ZodMiniType<
|
|
18
|
+
RecognitionMethod,
|
|
19
|
+
unknown
|
|
20
|
+
> = openEnums.inboundSchema(RecognitionMethod);
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const RecognitionMethod$outboundSchema: z.ZodMiniType<
|
|
23
|
+
string,
|
|
24
|
+
RecognitionMethod
|
|
25
|
+
> = openEnums.outboundSchema(RecognitionMethod);
|
|
@@ -0,0 +1,29 @@
|
|
|
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 RevRecEntityType = {
|
|
10
|
+
Subscription: "subscription",
|
|
11
|
+
SubscriptionLineItem: "subscription_line_item",
|
|
12
|
+
Invoice: "invoice",
|
|
13
|
+
CreditNote: "credit_note",
|
|
14
|
+
Payment: "payment",
|
|
15
|
+
Refund: "refund",
|
|
16
|
+
Pob: "pob",
|
|
17
|
+
} as const;
|
|
18
|
+
export type RevRecEntityType = OpenEnum<typeof RevRecEntityType>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const RevRecEntityType$inboundSchema: z.ZodMiniType<
|
|
22
|
+
RevRecEntityType,
|
|
23
|
+
unknown
|
|
24
|
+
> = openEnums.inboundSchema(RevRecEntityType);
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const RevRecEntityType$outboundSchema: z.ZodMiniType<
|
|
27
|
+
string,
|
|
28
|
+
RevRecEntityType
|
|
29
|
+
> = openEnums.outboundSchema(RevRecEntityType);
|
|
@@ -0,0 +1,40 @@
|
|
|
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 RevenueBreakdown = {
|
|
12
|
+
actual?: string | undefined;
|
|
13
|
+
pending?: string | undefined;
|
|
14
|
+
scheduled?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* actual + pending + scheduled
|
|
17
|
+
*/
|
|
18
|
+
total?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const RevenueBreakdown$inboundSchema: z.ZodMiniType<
|
|
23
|
+
RevenueBreakdown,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
actual: types.optional(types.string()),
|
|
27
|
+
pending: types.optional(types.string()),
|
|
28
|
+
scheduled: types.optional(types.string()),
|
|
29
|
+
total: types.optional(types.string()),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export function revenueBreakdownFromJSON(
|
|
33
|
+
jsonString: string,
|
|
34
|
+
): SafeParseResult<RevenueBreakdown, SDKValidationError> {
|
|
35
|
+
return safeParse(
|
|
36
|
+
jsonString,
|
|
37
|
+
(x) => RevenueBreakdown$inboundSchema.parse(JSON.parse(x)),
|
|
38
|
+
`Failed to parse 'RevenueBreakdown' from JSON`,
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const RevenueReportGroupBy = {
|
|
9
|
+
CustomerId: "customer_id",
|
|
10
|
+
ContractId: "contract_id",
|
|
11
|
+
PobId: "pob_id",
|
|
12
|
+
} as const;
|
|
13
|
+
export type RevenueReportGroupBy = ClosedEnum<typeof RevenueReportGroupBy>;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const RevenueReportGroupBy$outboundSchema: z.ZodMiniEnum<
|
|
17
|
+
typeof RevenueReportGroupBy
|
|
18
|
+
> = z.enum(RevenueReportGroupBy);
|