@flexprice/sdk 2.1.44-dev.7 → 2.1.45-dev.8
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/USAGE.md +1 -1
- package/docs/sdk/models/accounting-period-response.md +21 -0
- package/docs/sdk/models/accounting-period-status.md +17 -0
- package/docs/sdk/models/accountingperiod-filter-order.md +15 -0
- package/docs/sdk/models/accountingperiod-filter.md +25 -0
- package/docs/sdk/models/amortization-method.md +17 -0
- package/docs/sdk/models/contract-association-response.md +18 -0
- package/docs/sdk/models/contract-filter-order.md +15 -0
- package/docs/sdk/models/contract-filter.md +28 -0
- package/docs/sdk/models/contract-response.md +25 -0
- package/docs/sdk/models/contract-status.md +17 -0
- package/docs/sdk/models/create-price-request.md +1 -0
- package/docs/sdk/models/create-product-request.md +20 -0
- package/docs/sdk/models/delete-product-request.md +17 -0
- package/docs/sdk/models/get-contract-request.md +17 -0
- package/docs/sdk/models/get-journal-entry-request.md +17 -0
- package/docs/sdk/models/get-performance-obligation-request.md +17 -0
- package/docs/sdk/models/get-product-request.md +17 -0
- package/docs/sdk/models/invoice-filter.md +1 -0
- package/docs/sdk/models/journal-direction.md +17 -0
- package/docs/sdk/models/journal-entry-response.md +26 -0
- package/docs/sdk/models/journal-event-type.md +17 -0
- package/docs/sdk/models/journal-filter-order.md +15 -0
- package/docs/sdk/models/journal-filter.md +32 -0
- package/docs/sdk/models/journal-line-response.md +19 -0
- package/docs/sdk/models/ledger-account-key.md +17 -0
- package/docs/sdk/models/list-accounting-periods-response.md +16 -0
- package/docs/sdk/models/list-contracts-response.md +16 -0
- package/docs/sdk/models/list-journal-entries-response.md +16 -0
- package/docs/sdk/models/list-payments-request.md +2 -1
- package/docs/sdk/models/list-performance-obligations-response.md +16 -0
- package/docs/sdk/models/list-products-order.md +15 -0
- package/docs/sdk/models/list-products-request.md +23 -0
- package/docs/sdk/models/list-products-response.md +16 -0
- package/docs/sdk/models/list-products-status.md +15 -0
- package/docs/sdk/models/performance-obligation-association-response.md +18 -0
- package/docs/sdk/models/performance-obligation-response.md +26 -0
- package/docs/sdk/models/performance-obligation-status.md +17 -0
- package/docs/sdk/models/pob-filter-order.md +15 -0
- package/docs/sdk/models/pob-filter.md +28 -0
- package/docs/sdk/models/price-filter.md +1 -0
- package/docs/sdk/models/price-price.md +1 -0
- package/docs/sdk/models/price-response.md +1 -0
- package/docs/sdk/models/product-filter-order.md +15 -0
- package/docs/sdk/models/product-filter.md +25 -0
- package/docs/sdk/models/product-response.md +21 -0
- package/docs/sdk/models/recognition-method.md +17 -0
- package/docs/sdk/models/rev-rec-entity-type.md +17 -0
- package/docs/sdk/models/revenue-breakdown.md +18 -0
- package/docs/sdk/models/revenue-report-group-by.md +15 -0
- package/docs/sdk/models/rollforward-request.md +28 -0
- package/docs/sdk/models/rollforward-response.md +17 -0
- package/docs/sdk/models/rollforward-row.md +22 -0
- package/docs/sdk/models/update-price-request.md +1 -0
- package/docs/sdk/models/update-product-request-request.md +19 -0
- package/docs/sdk/models/update-product-request.md +16 -0
- package/docs/sdk/models/waterfall-cell.md +18 -0
- package/docs/sdk/models/waterfall-request.md +29 -0
- package/docs/sdk/models/waterfall-response.md +17 -0
- package/docs/sdk/models/waterfall-row.md +18 -0
- package/docs/sdks/accountingperiods/README.md +78 -0
- package/docs/sdks/contracts/README.md +150 -0
- package/docs/sdks/journalentries/README.md +150 -0
- package/docs/sdks/performanceobligations/README.md +150 -0
- package/docs/sdks/products/README.md +445 -0
- package/docs/sdks/revenuereports/README.md +164 -0
- 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-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/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/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/index.d.ts +45 -0
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +45 -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/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-price-request.ts +4 -0
- package/src/sdk/models/create-product-request.ts +44 -0
- package/src/sdk/models/delete-product-op.ts +33 -0
- package/src/sdk/models/get-contract-op.ts +33 -0
- package/src/sdk/models/get-journal-entry-op.ts +33 -0
- package/src/sdk/models/get-performance-obligation-op.ts +35 -0
- package/src/sdk/models/get-product-op.ts +33 -0
- package/src/sdk/models/index.ts +45 -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/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,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type GetProductRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Product ID
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type GetProductRequest$Outbound = {
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetProductRequest$outboundSchema: z.ZodMiniType<
|
|
21
|
+
GetProductRequest$Outbound,
|
|
22
|
+
GetProductRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.string(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function getProductRequestToJSON(
|
|
28
|
+
getProductRequest: GetProductRequest,
|
|
29
|
+
): string {
|
|
30
|
+
return JSON.stringify(
|
|
31
|
+
GetProductRequest$outboundSchema.parse(getProductRequest),
|
|
32
|
+
);
|
|
33
|
+
}
|
package/src/sdk/models/index.ts
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
export * from "./accounting-period-response.js";
|
|
6
|
+
export * from "./accounting-period-status.js";
|
|
7
|
+
export * from "./accountingperiod-filter.js";
|
|
5
8
|
export * from "./activate-draft-subscription-request.js";
|
|
6
9
|
export * from "./activate-subscription-op.js";
|
|
7
10
|
export * from "./active-window.js";
|
|
@@ -41,6 +44,7 @@ export * from "./alert-state.js";
|
|
|
41
44
|
export * from "./alert-threshold-type.js";
|
|
42
45
|
export * from "./alert-threshold.js";
|
|
43
46
|
export * from "./alert-type.js";
|
|
47
|
+
export * from "./amortization-method.js";
|
|
44
48
|
export * from "./analytics-column.js";
|
|
45
49
|
export * from "./analytics-filter.js";
|
|
46
50
|
export * from "./analytics-query-meta.js";
|
|
@@ -121,6 +125,10 @@ export * from "./commitment-type.js";
|
|
|
121
125
|
export * from "./commitment-usage-breakdown.js";
|
|
122
126
|
export * from "./commitment-usage-value.js";
|
|
123
127
|
export * from "./configuration-details.js";
|
|
128
|
+
export * from "./contract-association-response.js";
|
|
129
|
+
export * from "./contract-filter.js";
|
|
130
|
+
export * from "./contract-response.js";
|
|
131
|
+
export * from "./contract-status.js";
|
|
124
132
|
export * from "./cost-analytic-item.js";
|
|
125
133
|
export * from "./cost-point.js";
|
|
126
134
|
export * from "./costsheet-filter.js";
|
|
@@ -165,6 +173,7 @@ export * from "./create-price-request.js";
|
|
|
165
173
|
export * from "./create-price-tier.js";
|
|
166
174
|
export * from "./create-price-unit-request.js";
|
|
167
175
|
export * from "./create-price-unit-response.js";
|
|
176
|
+
export * from "./create-product-request.js";
|
|
168
177
|
export * from "./create-scheduled-task-request.js";
|
|
169
178
|
export * from "./create-subscription-entitlement-grant-request.js";
|
|
170
179
|
export * from "./create-subscription-line-item-op.js";
|
|
@@ -230,6 +239,7 @@ export * from "./delete-plan-op.js";
|
|
|
230
239
|
export * from "./delete-price-op.js";
|
|
231
240
|
export * from "./delete-price-request.js";
|
|
232
241
|
export * from "./delete-price-unit-op.js";
|
|
242
|
+
export * from "./delete-product-op.js";
|
|
233
243
|
export * from "./delete-scheduled-task-op.js";
|
|
234
244
|
export * from "./delete-service-account-op.js";
|
|
235
245
|
export * from "./delete-subscription-line-item-op.js";
|
|
@@ -309,6 +319,7 @@ export * from "./get-alert-settings-op.js";
|
|
|
309
319
|
export * from "./get-analytics-view-op.js";
|
|
310
320
|
export * from "./get-checkout-session-op.js";
|
|
311
321
|
export * from "./get-commitment-op.js";
|
|
322
|
+
export * from "./get-contract-op.js";
|
|
312
323
|
export * from "./get-cost-analytics-request.js";
|
|
313
324
|
export * from "./get-costsheet-op.js";
|
|
314
325
|
export * from "./get-costsheet-response.js";
|
|
@@ -336,8 +347,10 @@ export * from "./get-fx-rate-op.js";
|
|
|
336
347
|
export * from "./get-group-op.js";
|
|
337
348
|
export * from "./get-invoice-op.js";
|
|
338
349
|
export * from "./get-invoice-pdf-op.js";
|
|
350
|
+
export * from "./get-journal-entry-op.js";
|
|
339
351
|
export * from "./get-payment-op.js";
|
|
340
352
|
export * from "./get-pending-schedules-response.js";
|
|
353
|
+
export * from "./get-performance-obligation-op.js";
|
|
341
354
|
export * from "./get-plan-credit-grants-op.js";
|
|
342
355
|
export * from "./get-plan-entitlements-op.js";
|
|
343
356
|
export * from "./get-plan-op.js";
|
|
@@ -346,6 +359,7 @@ export * from "./get-price-by-lookup-key-op.js";
|
|
|
346
359
|
export * from "./get-price-op.js";
|
|
347
360
|
export * from "./get-price-unit-by-code-op.js";
|
|
348
361
|
export * from "./get-price-unit-op.js";
|
|
362
|
+
export * from "./get-product-op.js";
|
|
349
363
|
export * from "./get-rbac-role-op.js";
|
|
350
364
|
export * from "./get-refund-op.js";
|
|
351
365
|
export * from "./get-scheduled-task-op.js";
|
|
@@ -409,12 +423,19 @@ export * from "./invoice-source-type.js";
|
|
|
409
423
|
export * from "./invoice-status.js";
|
|
410
424
|
export * from "./invoice-sync-settings.js";
|
|
411
425
|
export * from "./invoice-type.js";
|
|
426
|
+
export * from "./journal-direction.js";
|
|
427
|
+
export * from "./journal-entry-response.js";
|
|
428
|
+
export * from "./journal-event-type.js";
|
|
429
|
+
export * from "./journal-filter.js";
|
|
430
|
+
export * from "./journal-line-response.js";
|
|
431
|
+
export * from "./ledger-account-key.js";
|
|
412
432
|
export * from "./line-item-change.js";
|
|
413
433
|
export * from "./line-item-commitment-config.js";
|
|
414
434
|
export * from "./line-item-grouping.js";
|
|
415
435
|
export * from "./line-item-quantity-change.js";
|
|
416
436
|
export * from "./link-integration-mapping-request.js";
|
|
417
437
|
export * from "./link-integration-mapping-response.js";
|
|
438
|
+
export * from "./list-accounting-periods-response.js";
|
|
418
439
|
export * from "./list-activity-request.js";
|
|
419
440
|
export * from "./list-activity-response.js";
|
|
420
441
|
export * from "./list-addon-associations-response.js";
|
|
@@ -425,6 +446,7 @@ export * from "./list-all-subscription-schedules-op.js";
|
|
|
425
446
|
export * from "./list-analytics-views-op.js";
|
|
426
447
|
export * from "./list-api-keys-op.js";
|
|
427
448
|
export * from "./list-commitments-response.js";
|
|
449
|
+
export * from "./list-contracts-response.js";
|
|
428
450
|
export * from "./list-costsheet-response.js";
|
|
429
451
|
export * from "./list-coupon-associations-op.js";
|
|
430
452
|
export * from "./list-coupon-associations-response.js";
|
|
@@ -439,12 +461,16 @@ export * from "./list-features-response.js";
|
|
|
439
461
|
export * from "./list-fx-rates-response.js";
|
|
440
462
|
export * from "./list-groups-response.js";
|
|
441
463
|
export * from "./list-invoices-response.js";
|
|
464
|
+
export * from "./list-journal-entries-response.js";
|
|
442
465
|
export * from "./list-payments-op.js";
|
|
443
466
|
export * from "./list-payments-response.js";
|
|
467
|
+
export * from "./list-performance-obligations-response.js";
|
|
444
468
|
export * from "./list-plans-response.js";
|
|
445
469
|
export * from "./list-price-units-op.js";
|
|
446
470
|
export * from "./list-price-units-response.js";
|
|
447
471
|
export * from "./list-prices-response.js";
|
|
472
|
+
export * from "./list-products-op.js";
|
|
473
|
+
export * from "./list-products-response.js";
|
|
448
474
|
export * from "./list-rbac-roles-op.js";
|
|
449
475
|
export * from "./list-refunds-op.js";
|
|
450
476
|
export * from "./list-refunds-response.js";
|
|
@@ -504,6 +530,9 @@ export * from "./payment-method-type.js";
|
|
|
504
530
|
export * from "./payment-response.js";
|
|
505
531
|
export * from "./payment-status.js";
|
|
506
532
|
export * from "./payment-terms.js";
|
|
533
|
+
export * from "./performance-obligation-association-response.js";
|
|
534
|
+
export * from "./performance-obligation-response.js";
|
|
535
|
+
export * from "./performance-obligation-status.js";
|
|
507
536
|
export * from "./plan-change-schedule-details.js";
|
|
508
537
|
export * from "./plan-change-schedule-result.js";
|
|
509
538
|
export * from "./plan-filter.js";
|
|
@@ -511,6 +540,7 @@ export * from "./plan-price-sync-status-response.js";
|
|
|
511
540
|
export * from "./plan-response.js";
|
|
512
541
|
export * from "./plan-summary.js";
|
|
513
542
|
export * from "./plan.js";
|
|
543
|
+
export * from "./pob-filter.js";
|
|
514
544
|
export * from "./point-bucket.js";
|
|
515
545
|
export * from "./poll-self-billing-checkout-op.js";
|
|
516
546
|
export * from "./portal-session-response.js";
|
|
@@ -533,6 +563,8 @@ export * from "./price-unit-response.js";
|
|
|
533
563
|
export * from "./price-unit-type.js";
|
|
534
564
|
export * from "./process-credit-note-op.js";
|
|
535
565
|
export * from "./process-payment-op.js";
|
|
566
|
+
export * from "./product-filter.js";
|
|
567
|
+
export * from "./product-response.js";
|
|
536
568
|
export * from "./proration-behavior.js";
|
|
537
569
|
export * from "./proration-detail.js";
|
|
538
570
|
export * from "./proration-details.js";
|
|
@@ -542,6 +574,7 @@ export * from "./query-analytics-view-op.js";
|
|
|
542
574
|
export * from "./query-filter.js";
|
|
543
575
|
export * from "./recalculate-invoice-op.js";
|
|
544
576
|
export * from "./recalculate-invoice-v2-op.js";
|
|
577
|
+
export * from "./recognition-method.js";
|
|
545
578
|
export * from "./recurring-payment-status.js";
|
|
546
579
|
export * from "./refund-destination.js";
|
|
547
580
|
export * from "./refund-reason.js";
|
|
@@ -571,11 +604,17 @@ export * from "./resume-subscription-op.js";
|
|
|
571
604
|
export * from "./resume-subscription-request.js";
|
|
572
605
|
export * from "./resume-subscription-response.js";
|
|
573
606
|
export * from "./retry-refund-op.js";
|
|
607
|
+
export * from "./rev-rec-entity-type.js";
|
|
574
608
|
export * from "./revenue-allocation-policy.js";
|
|
575
609
|
export * from "./revenue-analytics-request.js";
|
|
576
610
|
export * from "./revenue-analytics-response.js";
|
|
577
611
|
export * from "./revenue-analytics-row.js";
|
|
612
|
+
export * from "./revenue-breakdown.js";
|
|
578
613
|
export * from "./revenue-granularity.js";
|
|
614
|
+
export * from "./revenue-report-group-by.js";
|
|
615
|
+
export * from "./rollforward-request.js";
|
|
616
|
+
export * from "./rollforward-response.js";
|
|
617
|
+
export * from "./rollforward-row.js";
|
|
579
618
|
export * from "./round-type.js";
|
|
580
619
|
export * from "./run-analytics-report-op.js";
|
|
581
620
|
export * from "./s3-compression-type.js";
|
|
@@ -743,6 +782,8 @@ export * from "./update-price-op.js";
|
|
|
743
782
|
export * from "./update-price-request.js";
|
|
744
783
|
export * from "./update-price-unit-op.js";
|
|
745
784
|
export * from "./update-price-unit-request.js";
|
|
785
|
+
export * from "./update-product-op.js";
|
|
786
|
+
export * from "./update-product-request.js";
|
|
746
787
|
export * from "./update-scheduled-task-op.js";
|
|
747
788
|
export * from "./update-scheduled-task-request.js";
|
|
748
789
|
export * from "./update-service-account-op.js";
|
|
@@ -796,6 +837,10 @@ export * from "./wallet-tx-consumption.js";
|
|
|
796
837
|
export * from "./wallet-tx-reference-type.js";
|
|
797
838
|
export * from "./wallet-tx-source-type.js";
|
|
798
839
|
export * from "./wallet-type.js";
|
|
840
|
+
export * from "./waterfall-cell.js";
|
|
841
|
+
export * from "./waterfall-request.js";
|
|
842
|
+
export * from "./waterfall-response.js";
|
|
843
|
+
export * from "./waterfall-row.js";
|
|
799
844
|
export * from "./webhook-dto-alert-webhook-payload.js";
|
|
800
845
|
export * from "./webhook-dto-checkout-session-webhook-payload.js";
|
|
801
846
|
export * from "./webhook-dto-checkout-session.js";
|
|
@@ -147,6 +147,10 @@ export type InvoiceFilter = {
|
|
|
147
147
|
* Only returns invoices that were created as part of the specified subscription's billing
|
|
148
148
|
*/
|
|
149
149
|
subscriptionId?: string | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* updated_at_gte filters invoices updated at or after the given instant
|
|
152
|
+
*/
|
|
153
|
+
updatedAtGte?: Date | undefined;
|
|
150
154
|
/**
|
|
151
155
|
* voided_at_gte filters invoices voided at or after the given instant
|
|
152
156
|
*/
|
|
@@ -189,6 +193,7 @@ export type InvoiceFilter$Outbound = {
|
|
|
189
193
|
status?: string | undefined;
|
|
190
194
|
subscription_customer_id?: Array<string> | undefined;
|
|
191
195
|
subscription_id?: string | undefined;
|
|
196
|
+
updated_at_gte?: string | undefined;
|
|
192
197
|
voided_at_gte?: string | undefined;
|
|
193
198
|
};
|
|
194
199
|
|
|
@@ -229,6 +234,9 @@ export const InvoiceFilter$outboundSchema: z.ZodMiniType<
|
|
|
229
234
|
status: z.optional(Status$outboundSchema),
|
|
230
235
|
subscriptionCustomerId: z.optional(z.array(z.string())),
|
|
231
236
|
subscriptionId: z.optional(z.string()),
|
|
237
|
+
updatedAtGte: z.optional(
|
|
238
|
+
z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
239
|
+
),
|
|
232
240
|
voidedAtGte: z.optional(
|
|
233
241
|
z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
234
242
|
),
|
|
@@ -256,6 +264,7 @@ export const InvoiceFilter$outboundSchema: z.ZodMiniType<
|
|
|
256
264
|
startTime: "start_time",
|
|
257
265
|
subscriptionCustomerId: "subscription_customer_id",
|
|
258
266
|
subscriptionId: "subscription_id",
|
|
267
|
+
updatedAtGte: "updated_at_gte",
|
|
259
268
|
voidedAtGte: "voided_at_gte",
|
|
260
269
|
});
|
|
261
270
|
}),
|
|
@@ -0,0 +1,19 @@
|
|
|
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 JournalDirection = {
|
|
10
|
+
Debit: "debit",
|
|
11
|
+
Credit: "credit",
|
|
12
|
+
} as const;
|
|
13
|
+
export type JournalDirection = OpenEnum<typeof JournalDirection>;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const JournalDirection$inboundSchema: z.ZodMiniType<
|
|
17
|
+
JournalDirection,
|
|
18
|
+
unknown
|
|
19
|
+
> = openEnums.inboundSchema(JournalDirection);
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
JournalEventType,
|
|
12
|
+
JournalEventType$inboundSchema,
|
|
13
|
+
} from "./journal-event-type.js";
|
|
14
|
+
import {
|
|
15
|
+
JournalLineResponse,
|
|
16
|
+
JournalLineResponse$inboundSchema,
|
|
17
|
+
} from "./journal-line-response.js";
|
|
18
|
+
import {
|
|
19
|
+
RevRecEntityType,
|
|
20
|
+
RevRecEntityType$inboundSchema,
|
|
21
|
+
} from "./rev-rec-entity-type.js";
|
|
22
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
23
|
+
|
|
24
|
+
export type JournalEntryResponse = {
|
|
25
|
+
accountingPeriodId?: string | undefined;
|
|
26
|
+
businessDate?: Date | undefined;
|
|
27
|
+
contractId?: string | undefined;
|
|
28
|
+
createdAt?: Date | undefined;
|
|
29
|
+
currency?: string | undefined;
|
|
30
|
+
customerId?: string | undefined;
|
|
31
|
+
eventType?: JournalEventType | undefined;
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
lines?: Array<JournalLineResponse> | undefined;
|
|
34
|
+
reversalOf?: string | undefined;
|
|
35
|
+
sourceEntityId?: string | undefined;
|
|
36
|
+
sourceEntityType?: RevRecEntityType | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const JournalEntryResponse$inboundSchema: z.ZodMiniType<
|
|
41
|
+
JournalEntryResponse,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.pipe(
|
|
44
|
+
z.object({
|
|
45
|
+
accounting_period_id: types.optional(types.string()),
|
|
46
|
+
business_date: types.optional(types.date()),
|
|
47
|
+
contract_id: types.optional(types.string()),
|
|
48
|
+
created_at: types.optional(types.date()),
|
|
49
|
+
currency: types.optional(types.string()),
|
|
50
|
+
customer_id: types.optional(types.string()),
|
|
51
|
+
event_type: types.optional(JournalEventType$inboundSchema),
|
|
52
|
+
id: types.optional(types.string()),
|
|
53
|
+
lines: types.optional(z.array(JournalLineResponse$inboundSchema)),
|
|
54
|
+
reversal_of: types.optional(types.string()),
|
|
55
|
+
source_entity_id: types.optional(types.string()),
|
|
56
|
+
source_entity_type: types.optional(RevRecEntityType$inboundSchema),
|
|
57
|
+
}),
|
|
58
|
+
z.transform((v) => {
|
|
59
|
+
return remap$(v, {
|
|
60
|
+
"accounting_period_id": "accountingPeriodId",
|
|
61
|
+
"business_date": "businessDate",
|
|
62
|
+
"contract_id": "contractId",
|
|
63
|
+
"created_at": "createdAt",
|
|
64
|
+
"customer_id": "customerId",
|
|
65
|
+
"event_type": "eventType",
|
|
66
|
+
"reversal_of": "reversalOf",
|
|
67
|
+
"source_entity_id": "sourceEntityId",
|
|
68
|
+
"source_entity_type": "sourceEntityType",
|
|
69
|
+
});
|
|
70
|
+
}),
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
export function journalEntryResponseFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<JournalEntryResponse, SDKValidationError> {
|
|
76
|
+
return safeParse(
|
|
77
|
+
jsonString,
|
|
78
|
+
(x) => JournalEntryResponse$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
+
`Failed to parse 'JournalEntryResponse' from JSON`,
|
|
80
|
+
);
|
|
81
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 JournalEventType = {
|
|
10
|
+
InvoiceFinalized: "invoice_finalized",
|
|
11
|
+
InvoiceVoided: "invoice_voided",
|
|
12
|
+
CreditNoteFinalized: "credit_note_finalized",
|
|
13
|
+
CreditNoteVoided: "credit_note_voided",
|
|
14
|
+
PaymentSucceeded: "payment_succeeded",
|
|
15
|
+
PaymentReversed: "payment_reversed",
|
|
16
|
+
RefundSucceeded: "refund_succeeded",
|
|
17
|
+
RevenueEarned: "revenue_earned",
|
|
18
|
+
RevenueOffset: "revenue_offset",
|
|
19
|
+
} as const;
|
|
20
|
+
export type JournalEventType = OpenEnum<typeof JournalEventType>;
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const JournalEventType$inboundSchema: z.ZodMiniType<
|
|
24
|
+
JournalEventType,
|
|
25
|
+
unknown
|
|
26
|
+
> = openEnums.inboundSchema(JournalEventType);
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const JournalEventType$outboundSchema: z.ZodMiniType<
|
|
29
|
+
string,
|
|
30
|
+
JournalEventType
|
|
31
|
+
> = openEnums.outboundSchema(JournalEventType);
|
|
@@ -0,0 +1,129 @@
|
|
|
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
|
+
JournalEventType,
|
|
15
|
+
JournalEventType$outboundSchema,
|
|
16
|
+
} from "./journal-event-type.js";
|
|
17
|
+
import {
|
|
18
|
+
LedgerAccountKey,
|
|
19
|
+
LedgerAccountKey$outboundSchema,
|
|
20
|
+
} from "./ledger-account-key.js";
|
|
21
|
+
import {
|
|
22
|
+
RevRecEntityType,
|
|
23
|
+
RevRecEntityType$outboundSchema,
|
|
24
|
+
} from "./rev-rec-entity-type.js";
|
|
25
|
+
import {
|
|
26
|
+
SortCondition,
|
|
27
|
+
SortCondition$Outbound,
|
|
28
|
+
SortCondition$outboundSchema,
|
|
29
|
+
} from "./sort-condition.js";
|
|
30
|
+
import { Status, Status$outboundSchema } from "./status.js";
|
|
31
|
+
|
|
32
|
+
export const JournalFilterOrder = {
|
|
33
|
+
Asc: "asc",
|
|
34
|
+
Desc: "desc",
|
|
35
|
+
} as const;
|
|
36
|
+
export type JournalFilterOrder = ClosedEnum<typeof JournalFilterOrder>;
|
|
37
|
+
|
|
38
|
+
export type JournalFilter = {
|
|
39
|
+
accountingPeriodIds?: Array<string> | undefined;
|
|
40
|
+
accounts?: Array<LedgerAccountKey> | undefined;
|
|
41
|
+
contractIds?: Array<string> | undefined;
|
|
42
|
+
customerIds?: Array<string> | undefined;
|
|
43
|
+
endTime?: Date | undefined;
|
|
44
|
+
eventTypes?: Array<JournalEventType> | undefined;
|
|
45
|
+
expand?: string | undefined;
|
|
46
|
+
filters?: Array<FilterCondition> | undefined;
|
|
47
|
+
journalEntryIds?: Array<string> | undefined;
|
|
48
|
+
limit?: number | undefined;
|
|
49
|
+
offset?: number | undefined;
|
|
50
|
+
order?: JournalFilterOrder | undefined;
|
|
51
|
+
pobIds?: Array<string> | undefined;
|
|
52
|
+
sort?: Array<SortCondition> | undefined;
|
|
53
|
+
sourceEntityIds?: Array<string> | undefined;
|
|
54
|
+
sourceEntityType?: RevRecEntityType | undefined;
|
|
55
|
+
startTime?: Date | undefined;
|
|
56
|
+
status?: Status | undefined;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const JournalFilterOrder$outboundSchema: z.ZodMiniEnum<
|
|
61
|
+
typeof JournalFilterOrder
|
|
62
|
+
> = z.enum(JournalFilterOrder);
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export type JournalFilter$Outbound = {
|
|
66
|
+
accounting_period_ids?: Array<string> | undefined;
|
|
67
|
+
accounts?: Array<string> | undefined;
|
|
68
|
+
contract_ids?: Array<string> | undefined;
|
|
69
|
+
customer_ids?: Array<string> | undefined;
|
|
70
|
+
end_time?: string | undefined;
|
|
71
|
+
event_types?: Array<string> | undefined;
|
|
72
|
+
expand?: string | undefined;
|
|
73
|
+
filters?: Array<FilterCondition$Outbound> | undefined;
|
|
74
|
+
journal_entry_ids?: Array<string> | undefined;
|
|
75
|
+
limit?: number | undefined;
|
|
76
|
+
offset?: number | undefined;
|
|
77
|
+
order?: string | undefined;
|
|
78
|
+
pob_ids?: Array<string> | undefined;
|
|
79
|
+
sort?: Array<SortCondition$Outbound> | undefined;
|
|
80
|
+
source_entity_ids?: Array<string> | undefined;
|
|
81
|
+
source_entity_type?: string | undefined;
|
|
82
|
+
start_time?: string | undefined;
|
|
83
|
+
status?: string | undefined;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/** @internal */
|
|
87
|
+
export const JournalFilter$outboundSchema: z.ZodMiniType<
|
|
88
|
+
JournalFilter$Outbound,
|
|
89
|
+
JournalFilter
|
|
90
|
+
> = z.pipe(
|
|
91
|
+
z.object({
|
|
92
|
+
accountingPeriodIds: z.optional(z.array(z.string())),
|
|
93
|
+
accounts: z.optional(z.array(LedgerAccountKey$outboundSchema)),
|
|
94
|
+
contractIds: z.optional(z.array(z.string())),
|
|
95
|
+
customerIds: z.optional(z.array(z.string())),
|
|
96
|
+
endTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
97
|
+
eventTypes: z.optional(z.array(JournalEventType$outboundSchema)),
|
|
98
|
+
expand: z.optional(z.string()),
|
|
99
|
+
filters: z.optional(z.array(FilterCondition$outboundSchema)),
|
|
100
|
+
journalEntryIds: z.optional(z.array(z.string())),
|
|
101
|
+
limit: z.optional(z.int()),
|
|
102
|
+
offset: z.optional(z.int()),
|
|
103
|
+
order: z.optional(JournalFilterOrder$outboundSchema),
|
|
104
|
+
pobIds: z.optional(z.array(z.string())),
|
|
105
|
+
sort: z.optional(z.array(SortCondition$outboundSchema)),
|
|
106
|
+
sourceEntityIds: z.optional(z.array(z.string())),
|
|
107
|
+
sourceEntityType: z.optional(RevRecEntityType$outboundSchema),
|
|
108
|
+
startTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
109
|
+
status: z.optional(Status$outboundSchema),
|
|
110
|
+
}),
|
|
111
|
+
z.transform((v) => {
|
|
112
|
+
return remap$(v, {
|
|
113
|
+
accountingPeriodIds: "accounting_period_ids",
|
|
114
|
+
contractIds: "contract_ids",
|
|
115
|
+
customerIds: "customer_ids",
|
|
116
|
+
endTime: "end_time",
|
|
117
|
+
eventTypes: "event_types",
|
|
118
|
+
journalEntryIds: "journal_entry_ids",
|
|
119
|
+
pobIds: "pob_ids",
|
|
120
|
+
sourceEntityIds: "source_entity_ids",
|
|
121
|
+
sourceEntityType: "source_entity_type",
|
|
122
|
+
startTime: "start_time",
|
|
123
|
+
});
|
|
124
|
+
}),
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
export function journalFilterToJSON(journalFilter: JournalFilter): string {
|
|
128
|
+
return JSON.stringify(JournalFilter$outboundSchema.parse(journalFilter));
|
|
129
|
+
}
|
|
@@ -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
|
+
JournalDirection,
|
|
12
|
+
JournalDirection$inboundSchema,
|
|
13
|
+
} from "./journal-direction.js";
|
|
14
|
+
import {
|
|
15
|
+
LedgerAccountKey,
|
|
16
|
+
LedgerAccountKey$inboundSchema,
|
|
17
|
+
} from "./ledger-account-key.js";
|
|
18
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
19
|
+
|
|
20
|
+
export type JournalLineResponse = {
|
|
21
|
+
account?: LedgerAccountKey | undefined;
|
|
22
|
+
amount?: string | undefined;
|
|
23
|
+
direction?: JournalDirection | undefined;
|
|
24
|
+
id?: string | undefined;
|
|
25
|
+
pobId?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const JournalLineResponse$inboundSchema: z.ZodMiniType<
|
|
30
|
+
JournalLineResponse,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.pipe(
|
|
33
|
+
z.object({
|
|
34
|
+
account: types.optional(LedgerAccountKey$inboundSchema),
|
|
35
|
+
amount: types.optional(types.string()),
|
|
36
|
+
direction: types.optional(JournalDirection$inboundSchema),
|
|
37
|
+
id: types.optional(types.string()),
|
|
38
|
+
pob_id: types.optional(types.string()),
|
|
39
|
+
}),
|
|
40
|
+
z.transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
"pob_id": "pobId",
|
|
43
|
+
});
|
|
44
|
+
}),
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
export function journalLineResponseFromJSON(
|
|
48
|
+
jsonString: string,
|
|
49
|
+
): SafeParseResult<JournalLineResponse, SDKValidationError> {
|
|
50
|
+
return safeParse(
|
|
51
|
+
jsonString,
|
|
52
|
+
(x) => JournalLineResponse$inboundSchema.parse(JSON.parse(x)),
|
|
53
|
+
`Failed to parse 'JournalLineResponse' from JSON`,
|
|
54
|
+
);
|
|
55
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 LedgerAccountKey = {
|
|
10
|
+
Cash: "cash",
|
|
11
|
+
AccountsReceivable: "accounts_receivable",
|
|
12
|
+
UnbilledReceivable: "unbilled_receivable",
|
|
13
|
+
DeferredRevenue: "deferred_revenue",
|
|
14
|
+
CustomerCredit: "customer_credit",
|
|
15
|
+
TaxPayable: "tax_payable",
|
|
16
|
+
Revenue: "revenue",
|
|
17
|
+
ContraRevenue: "contra_revenue",
|
|
18
|
+
} as const;
|
|
19
|
+
export type LedgerAccountKey = OpenEnum<typeof LedgerAccountKey>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const LedgerAccountKey$inboundSchema: z.ZodMiniType<
|
|
23
|
+
LedgerAccountKey,
|
|
24
|
+
unknown
|
|
25
|
+
> = openEnums.inboundSchema(LedgerAccountKey);
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const LedgerAccountKey$outboundSchema: z.ZodMiniType<
|
|
28
|
+
string,
|
|
29
|
+
LedgerAccountKey
|
|
30
|
+
> = openEnums.outboundSchema(LedgerAccountKey);
|
|
@@ -0,0 +1,41 @@
|
|
|
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 {
|
|
10
|
+
AccountingPeriodResponse,
|
|
11
|
+
AccountingPeriodResponse$inboundSchema,
|
|
12
|
+
} from "./accounting-period-response.js";
|
|
13
|
+
import {
|
|
14
|
+
PaginationResponse,
|
|
15
|
+
PaginationResponse$inboundSchema,
|
|
16
|
+
} from "./pagination-response.js";
|
|
17
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
18
|
+
|
|
19
|
+
export type ListAccountingPeriodsResponse = {
|
|
20
|
+
items?: Array<AccountingPeriodResponse> | undefined;
|
|
21
|
+
pagination?: PaginationResponse | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ListAccountingPeriodsResponse$inboundSchema: z.ZodMiniType<
|
|
26
|
+
ListAccountingPeriodsResponse,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
items: types.optional(z.array(AccountingPeriodResponse$inboundSchema)),
|
|
30
|
+
pagination: types.optional(PaginationResponse$inboundSchema),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function listAccountingPeriodsResponseFromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<ListAccountingPeriodsResponse, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => ListAccountingPeriodsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'ListAccountingPeriodsResponse' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|