@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.
Files changed (430) hide show
  1. package/FUNCTIONS.md +3 -3
  2. package/esm/funcs/accounting-periods-query-accounting-period.d.ts +17 -0
  3. package/esm/funcs/accounting-periods-query-accounting-period.d.ts.map +1 -0
  4. package/esm/funcs/accounting-periods-query-accounting-period.js +83 -0
  5. package/esm/funcs/accounting-periods-query-accounting-period.js.map +1 -0
  6. package/esm/funcs/contracts-get-contract.d.ts +17 -0
  7. package/esm/funcs/contracts-get-contract.d.ts.map +1 -0
  8. package/esm/funcs/contracts-get-contract.js +91 -0
  9. package/esm/funcs/contracts-get-contract.js.map +1 -0
  10. package/esm/funcs/contracts-query-contract.d.ts +17 -0
  11. package/esm/funcs/contracts-query-contract.d.ts.map +1 -0
  12. package/esm/funcs/contracts-query-contract.js +83 -0
  13. package/esm/funcs/contracts-query-contract.js.map +1 -0
  14. package/esm/funcs/journal-entries-get-journal-entry.d.ts +17 -0
  15. package/esm/funcs/journal-entries-get-journal-entry.d.ts.map +1 -0
  16. package/esm/funcs/journal-entries-get-journal-entry.js +91 -0
  17. package/esm/funcs/journal-entries-get-journal-entry.js.map +1 -0
  18. package/esm/funcs/journal-entries-query-journal-entry.d.ts +17 -0
  19. package/esm/funcs/journal-entries-query-journal-entry.d.ts.map +1 -0
  20. package/esm/funcs/journal-entries-query-journal-entry.js +83 -0
  21. package/esm/funcs/journal-entries-query-journal-entry.js.map +1 -0
  22. package/esm/funcs/payments-list-payments.js +1 -0
  23. package/esm/funcs/payments-list-payments.js.map +1 -1
  24. package/esm/funcs/performance-obligations-get-performance-obligation.d.ts +17 -0
  25. package/esm/funcs/performance-obligations-get-performance-obligation.d.ts.map +1 -0
  26. package/esm/funcs/performance-obligations-get-performance-obligation.js +91 -0
  27. package/esm/funcs/performance-obligations-get-performance-obligation.js.map +1 -0
  28. package/esm/funcs/performance-obligations-query-performance-obligation.d.ts +17 -0
  29. package/esm/funcs/performance-obligations-query-performance-obligation.d.ts.map +1 -0
  30. package/esm/funcs/performance-obligations-query-performance-obligation.js +83 -0
  31. package/esm/funcs/performance-obligations-query-performance-obligation.js.map +1 -0
  32. package/esm/funcs/products-create-product.d.ts +17 -0
  33. package/esm/funcs/products-create-product.d.ts.map +1 -0
  34. package/esm/funcs/products-create-product.js +83 -0
  35. package/esm/funcs/products-create-product.js.map +1 -0
  36. package/esm/funcs/products-delete-product.d.ts +17 -0
  37. package/esm/funcs/products-delete-product.d.ts.map +1 -0
  38. package/esm/funcs/products-delete-product.js +91 -0
  39. package/esm/funcs/products-delete-product.js.map +1 -0
  40. package/esm/funcs/products-get-product.d.ts +17 -0
  41. package/esm/funcs/products-get-product.d.ts.map +1 -0
  42. package/esm/funcs/products-get-product.js +91 -0
  43. package/esm/funcs/products-get-product.js.map +1 -0
  44. package/esm/funcs/products-list-products.d.ts +17 -0
  45. package/esm/funcs/products-list-products.d.ts.map +1 -0
  46. package/esm/funcs/products-list-products.js +95 -0
  47. package/esm/funcs/products-list-products.js.map +1 -0
  48. package/esm/funcs/products-query-product.d.ts +17 -0
  49. package/esm/funcs/products-query-product.d.ts.map +1 -0
  50. package/esm/funcs/products-query-product.js +83 -0
  51. package/esm/funcs/products-query-product.js.map +1 -0
  52. package/esm/funcs/products-update-product.d.ts +17 -0
  53. package/esm/funcs/products-update-product.d.ts.map +1 -0
  54. package/esm/funcs/products-update-product.js +93 -0
  55. package/esm/funcs/products-update-product.js.map +1 -0
  56. package/esm/funcs/revenue-reports-get-revenue-rollforward.d.ts +17 -0
  57. package/esm/funcs/revenue-reports-get-revenue-rollforward.d.ts.map +1 -0
  58. package/esm/funcs/revenue-reports-get-revenue-rollforward.js +83 -0
  59. package/esm/funcs/revenue-reports-get-revenue-rollforward.js.map +1 -0
  60. package/esm/funcs/revenue-reports-get-revenue-waterfall.d.ts +17 -0
  61. package/esm/funcs/revenue-reports-get-revenue-waterfall.d.ts.map +1 -0
  62. package/esm/funcs/revenue-reports-get-revenue-waterfall.js +83 -0
  63. package/esm/funcs/revenue-reports-get-revenue-waterfall.js.map +1 -0
  64. package/esm/lib/config.d.ts +2 -2
  65. package/esm/lib/config.js +2 -2
  66. package/esm/sdk/accounting-periods.d.ts +12 -0
  67. package/esm/sdk/accounting-periods.d.ts.map +1 -0
  68. package/esm/sdk/accounting-periods.js +18 -0
  69. package/esm/sdk/accounting-periods.js.map +1 -0
  70. package/esm/sdk/contracts.d.ts +19 -0
  71. package/esm/sdk/contracts.d.ts.map +1 -0
  72. package/esm/sdk/contracts.js +28 -0
  73. package/esm/sdk/contracts.js.map +1 -0
  74. package/esm/sdk/journal-entries.d.ts +19 -0
  75. package/esm/sdk/journal-entries.d.ts.map +1 -0
  76. package/esm/sdk/journal-entries.js +28 -0
  77. package/esm/sdk/journal-entries.js.map +1 -0
  78. package/esm/sdk/models/accounting-period-response.d.ts +18 -0
  79. package/esm/sdk/models/accounting-period-response.d.ts.map +1 -0
  80. package/esm/sdk/models/accounting-period-response.js +31 -0
  81. package/esm/sdk/models/accounting-period-response.js.map +1 -0
  82. package/esm/sdk/models/accounting-period-status.d.ts +12 -0
  83. package/esm/sdk/models/accounting-period-status.d.ts.map +1 -0
  84. package/esm/sdk/models/accounting-period-status.js +13 -0
  85. package/esm/sdk/models/accounting-period-status.js.map +1 -0
  86. package/esm/sdk/models/accountingperiod-filter.d.ts +44 -0
  87. package/esm/sdk/models/accountingperiod-filter.d.ts.map +1 -0
  88. package/esm/sdk/models/accountingperiod-filter.js +40 -0
  89. package/esm/sdk/models/accountingperiod-filter.js.map +1 -0
  90. package/esm/sdk/models/amortization-method.d.ts +11 -0
  91. package/esm/sdk/models/amortization-method.d.ts.map +1 -0
  92. package/esm/sdk/models/amortization-method.js +12 -0
  93. package/esm/sdk/models/amortization-method.js.map +1 -0
  94. package/esm/sdk/models/contract-association-response.d.ts +14 -0
  95. package/esm/sdk/models/contract-association-response.d.ts.map +1 -0
  96. package/esm/sdk/models/contract-association-response.js +25 -0
  97. package/esm/sdk/models/contract-association-response.js.map +1 -0
  98. package/esm/sdk/models/contract-filter.d.ts +50 -0
  99. package/esm/sdk/models/contract-filter.d.ts.map +1 -0
  100. package/esm/sdk/models/contract-filter.js +46 -0
  101. package/esm/sdk/models/contract-filter.js.map +1 -0
  102. package/esm/sdk/models/contract-response.d.ts +23 -0
  103. package/esm/sdk/models/contract-response.d.ts.map +1 -0
  104. package/esm/sdk/models/contract-response.js +38 -0
  105. package/esm/sdk/models/contract-response.js.map +1 -0
  106. package/esm/sdk/models/contract-status.d.ts +14 -0
  107. package/esm/sdk/models/contract-status.d.ts.map +1 -0
  108. package/esm/sdk/models/contract-status.js +15 -0
  109. package/esm/sdk/models/contract-status.js.map +1 -0
  110. package/esm/sdk/models/create-entitlement-request.d.ts +7 -4
  111. package/esm/sdk/models/create-entitlement-request.d.ts.map +1 -1
  112. package/esm/sdk/models/create-entitlement-request.js +2 -2
  113. package/esm/sdk/models/create-entitlement-request.js.map +1 -1
  114. package/esm/sdk/models/create-price-request.d.ts +2 -0
  115. package/esm/sdk/models/create-price-request.d.ts.map +1 -1
  116. package/esm/sdk/models/create-price-request.js +2 -0
  117. package/esm/sdk/models/create-price-request.js.map +1 -1
  118. package/esm/sdk/models/create-product-request.d.ts +16 -0
  119. package/esm/sdk/models/create-product-request.d.ts.map +1 -0
  120. package/esm/sdk/models/create-product-request.js +19 -0
  121. package/esm/sdk/models/create-product-request.js.map +1 -0
  122. package/esm/sdk/models/create-subscription-entitlement-grant-request.d.ts +30 -0
  123. package/esm/sdk/models/create-subscription-entitlement-grant-request.d.ts.map +1 -0
  124. package/esm/sdk/models/create-subscription-entitlement-grant-request.js +32 -0
  125. package/esm/sdk/models/create-subscription-entitlement-grant-request.js.map +1 -0
  126. package/esm/sdk/models/create-subscription-request.d.ts +6 -0
  127. package/esm/sdk/models/create-subscription-request.d.ts.map +1 -1
  128. package/esm/sdk/models/create-subscription-request.js +3 -0
  129. package/esm/sdk/models/create-subscription-request.js.map +1 -1
  130. package/esm/sdk/models/delete-product-op.d.ts +15 -0
  131. package/esm/sdk/models/delete-product-op.d.ts.map +1 -0
  132. package/esm/sdk/models/delete-product-op.js +12 -0
  133. package/esm/sdk/models/delete-product-op.js.map +1 -0
  134. package/esm/sdk/models/entitlement-filter.d.ts +9 -0
  135. package/esm/sdk/models/entitlement-filter.d.ts.map +1 -1
  136. package/esm/sdk/models/entitlement-filter.js +3 -0
  137. package/esm/sdk/models/entitlement-filter.js.map +1 -1
  138. package/esm/sdk/models/entitlement-grant-scope-entity-type.d.ts +13 -0
  139. package/esm/sdk/models/entitlement-grant-scope-entity-type.d.ts.map +1 -0
  140. package/esm/sdk/models/entitlement-grant-scope-entity-type.js +14 -0
  141. package/esm/sdk/models/entitlement-grant-scope-entity-type.js.map +1 -0
  142. package/esm/sdk/models/entitlement-response.d.ts +2 -0
  143. package/esm/sdk/models/entitlement-response.d.ts.map +1 -1
  144. package/esm/sdk/models/entitlement-response.js +3 -0
  145. package/esm/sdk/models/entitlement-response.js.map +1 -1
  146. package/esm/sdk/models/get-contract-op.d.ts +15 -0
  147. package/esm/sdk/models/get-contract-op.d.ts.map +1 -0
  148. package/esm/sdk/models/get-contract-op.js +12 -0
  149. package/esm/sdk/models/get-contract-op.js.map +1 -0
  150. package/esm/sdk/models/get-journal-entry-op.d.ts +15 -0
  151. package/esm/sdk/models/get-journal-entry-op.d.ts.map +1 -0
  152. package/esm/sdk/models/get-journal-entry-op.js +12 -0
  153. package/esm/sdk/models/get-journal-entry-op.js.map +1 -0
  154. package/esm/sdk/models/get-performance-obligation-op.d.ts +15 -0
  155. package/esm/sdk/models/get-performance-obligation-op.d.ts.map +1 -0
  156. package/esm/sdk/models/get-performance-obligation-op.js +12 -0
  157. package/esm/sdk/models/get-performance-obligation-op.js.map +1 -0
  158. package/esm/sdk/models/get-product-op.d.ts +15 -0
  159. package/esm/sdk/models/get-product-op.d.ts.map +1 -0
  160. package/esm/sdk/models/get-product-op.js +12 -0
  161. package/esm/sdk/models/get-product-op.js.map +1 -0
  162. package/esm/sdk/models/grouped-invoicing-child-request.d.ts +6 -0
  163. package/esm/sdk/models/grouped-invoicing-child-request.d.ts.map +1 -1
  164. package/esm/sdk/models/grouped-invoicing-child-request.js +3 -0
  165. package/esm/sdk/models/grouped-invoicing-child-request.js.map +1 -1
  166. package/esm/sdk/models/index.d.ts +48 -0
  167. package/esm/sdk/models/index.d.ts.map +1 -1
  168. package/esm/sdk/models/index.js +48 -0
  169. package/esm/sdk/models/index.js.map +1 -1
  170. package/esm/sdk/models/invoice-filter.d.ts +5 -0
  171. package/esm/sdk/models/invoice-filter.d.ts.map +1 -1
  172. package/esm/sdk/models/invoice-filter.js +2 -0
  173. package/esm/sdk/models/invoice-filter.js.map +1 -1
  174. package/esm/sdk/models/journal-direction.d.ts +10 -0
  175. package/esm/sdk/models/journal-direction.d.ts.map +1 -0
  176. package/esm/sdk/models/journal-direction.js +11 -0
  177. package/esm/sdk/models/journal-direction.js.map +1 -0
  178. package/esm/sdk/models/journal-entry-response.d.ts +24 -0
  179. package/esm/sdk/models/journal-entry-response.d.ts.map +1 -0
  180. package/esm/sdk/models/journal-entry-response.js +41 -0
  181. package/esm/sdk/models/journal-entry-response.js.map +1 -0
  182. package/esm/sdk/models/journal-event-type.d.ts +19 -0
  183. package/esm/sdk/models/journal-event-type.d.ts.map +1 -0
  184. package/esm/sdk/models/journal-event-type.js +20 -0
  185. package/esm/sdk/models/journal-event-type.js.map +1 -0
  186. package/esm/sdk/models/journal-filter.d.ts +60 -0
  187. package/esm/sdk/models/journal-filter.d.ts.map +1 -0
  188. package/esm/sdk/models/journal-filter.js +55 -0
  189. package/esm/sdk/models/journal-filter.js.map +1 -0
  190. package/esm/sdk/models/journal-line-response.d.ts +16 -0
  191. package/esm/sdk/models/journal-line-response.d.ts.map +1 -0
  192. package/esm/sdk/models/journal-line-response.js +25 -0
  193. package/esm/sdk/models/journal-line-response.js.map +1 -0
  194. package/esm/sdk/models/ledger-account-key.d.ts +18 -0
  195. package/esm/sdk/models/ledger-account-key.d.ts.map +1 -0
  196. package/esm/sdk/models/ledger-account-key.js +19 -0
  197. package/esm/sdk/models/ledger-account-key.js.map +1 -0
  198. package/esm/sdk/models/list-accounting-periods-response.d.ts +13 -0
  199. package/esm/sdk/models/list-accounting-periods-response.d.ts.map +1 -0
  200. package/esm/sdk/models/list-accounting-periods-response.js +17 -0
  201. package/esm/sdk/models/list-accounting-periods-response.js.map +1 -0
  202. package/esm/sdk/models/list-contracts-response.d.ts +13 -0
  203. package/esm/sdk/models/list-contracts-response.d.ts.map +1 -0
  204. package/esm/sdk/models/list-contracts-response.js +17 -0
  205. package/esm/sdk/models/list-contracts-response.js.map +1 -0
  206. package/esm/sdk/models/list-journal-entries-response.d.ts +13 -0
  207. package/esm/sdk/models/list-journal-entries-response.d.ts.map +1 -0
  208. package/esm/sdk/models/list-journal-entries-response.js +17 -0
  209. package/esm/sdk/models/list-journal-entries-response.js.map +1 -0
  210. package/esm/sdk/models/list-payments-op.d.ts +5 -0
  211. package/esm/sdk/models/list-payments-op.d.ts.map +1 -1
  212. package/esm/sdk/models/list-payments-op.js +2 -0
  213. package/esm/sdk/models/list-payments-op.js.map +1 -1
  214. package/esm/sdk/models/list-performance-obligations-response.d.ts +13 -0
  215. package/esm/sdk/models/list-performance-obligations-response.d.ts.map +1 -0
  216. package/esm/sdk/models/list-performance-obligations-response.js +17 -0
  217. package/esm/sdk/models/list-performance-obligations-response.js.map +1 -0
  218. package/esm/sdk/models/list-products-op.d.ts +44 -0
  219. package/esm/sdk/models/list-products-op.d.ts.map +1 -0
  220. package/esm/sdk/models/list-products-op.js +41 -0
  221. package/esm/sdk/models/list-products-op.js.map +1 -0
  222. package/esm/sdk/models/list-products-response.d.ts +13 -0
  223. package/esm/sdk/models/list-products-response.d.ts.map +1 -0
  224. package/esm/sdk/models/list-products-response.js +17 -0
  225. package/esm/sdk/models/list-products-response.js.map +1 -0
  226. package/esm/sdk/models/performance-obligation-association-response.d.ts +14 -0
  227. package/esm/sdk/models/performance-obligation-association-response.d.ts.map +1 -0
  228. package/esm/sdk/models/performance-obligation-association-response.js +25 -0
  229. package/esm/sdk/models/performance-obligation-association-response.js.map +1 -0
  230. package/esm/sdk/models/performance-obligation-response.d.ts +26 -0
  231. package/esm/sdk/models/performance-obligation-response.d.ts.map +1 -0
  232. package/esm/sdk/models/performance-obligation-response.js +42 -0
  233. package/esm/sdk/models/performance-obligation-response.js.map +1 -0
  234. package/esm/sdk/models/performance-obligation-status.d.ts +14 -0
  235. package/esm/sdk/models/performance-obligation-status.d.ts.map +1 -0
  236. package/esm/sdk/models/performance-obligation-status.js +15 -0
  237. package/esm/sdk/models/performance-obligation-status.js.map +1 -0
  238. package/esm/sdk/models/pob-filter.d.ts +51 -0
  239. package/esm/sdk/models/pob-filter.d.ts.map +1 -0
  240. package/esm/sdk/models/pob-filter.js +47 -0
  241. package/esm/sdk/models/pob-filter.js.map +1 -0
  242. package/esm/sdk/models/price-filter.d.ts +2 -0
  243. package/esm/sdk/models/price-filter.d.ts.map +1 -1
  244. package/esm/sdk/models/price-filter.js +2 -0
  245. package/esm/sdk/models/price-filter.js.map +1 -1
  246. package/esm/sdk/models/price-price.d.ts +1 -0
  247. package/esm/sdk/models/price-price.d.ts.map +1 -1
  248. package/esm/sdk/models/price-price.js +2 -0
  249. package/esm/sdk/models/price-price.js.map +1 -1
  250. package/esm/sdk/models/price-response.d.ts +1 -0
  251. package/esm/sdk/models/price-response.d.ts.map +1 -1
  252. package/esm/sdk/models/price-response.js +2 -0
  253. package/esm/sdk/models/price-response.js.map +1 -1
  254. package/esm/sdk/models/product-filter.d.ts +43 -0
  255. package/esm/sdk/models/product-filter.d.ts.map +1 -0
  256. package/esm/sdk/models/product-filter.js +39 -0
  257. package/esm/sdk/models/product-filter.js.map +1 -0
  258. package/esm/sdk/models/product-response.d.ts +17 -0
  259. package/esm/sdk/models/product-response.d.ts.map +1 -0
  260. package/esm/sdk/models/product-response.js +28 -0
  261. package/esm/sdk/models/product-response.js.map +1 -0
  262. package/esm/sdk/models/recognition-method.d.ts +13 -0
  263. package/esm/sdk/models/recognition-method.d.ts.map +1 -0
  264. package/esm/sdk/models/recognition-method.js +14 -0
  265. package/esm/sdk/models/recognition-method.js.map +1 -0
  266. package/esm/sdk/models/rev-rec-entity-type.d.ts +17 -0
  267. package/esm/sdk/models/rev-rec-entity-type.d.ts.map +1 -0
  268. package/esm/sdk/models/rev-rec-entity-type.js +18 -0
  269. package/esm/sdk/models/rev-rec-entity-type.js.map +1 -0
  270. package/esm/sdk/models/revenue-breakdown.d.ts +16 -0
  271. package/esm/sdk/models/revenue-breakdown.d.ts.map +1 -0
  272. package/esm/sdk/models/revenue-breakdown.js +17 -0
  273. package/esm/sdk/models/revenue-breakdown.js.map +1 -0
  274. package/esm/sdk/models/revenue-report-group-by.d.ts +11 -0
  275. package/esm/sdk/models/revenue-report-group-by.d.ts.map +1 -0
  276. package/esm/sdk/models/revenue-report-group-by.js +12 -0
  277. package/esm/sdk/models/revenue-report-group-by.js.map +1 -0
  278. package/esm/sdk/models/rollforward-request.d.ts +49 -0
  279. package/esm/sdk/models/rollforward-request.d.ts.map +1 -0
  280. package/esm/sdk/models/rollforward-request.js +35 -0
  281. package/esm/sdk/models/rollforward-request.js.map +1 -0
  282. package/esm/sdk/models/rollforward-response.d.ts +20 -0
  283. package/esm/sdk/models/rollforward-response.d.ts.map +1 -0
  284. package/esm/sdk/models/rollforward-response.js +18 -0
  285. package/esm/sdk/models/rollforward-response.js.map +1 -0
  286. package/esm/sdk/models/rollforward-row.d.ts +26 -0
  287. package/esm/sdk/models/rollforward-row.d.ts.map +1 -0
  288. package/esm/sdk/models/rollforward-row.js +29 -0
  289. package/esm/sdk/models/rollforward-row.js.map +1 -0
  290. package/esm/sdk/models/subscription-entitlement-grants-response.d.ts +13 -0
  291. package/esm/sdk/models/subscription-entitlement-grants-response.d.ts.map +1 -0
  292. package/esm/sdk/models/subscription-entitlement-grants-response.js +22 -0
  293. package/esm/sdk/models/subscription-entitlement-grants-response.js.map +1 -0
  294. package/esm/sdk/models/subscription-entitlements-response.d.ts +2 -0
  295. package/esm/sdk/models/subscription-entitlements-response.d.ts.map +1 -1
  296. package/esm/sdk/models/subscription-entitlements-response.js +3 -0
  297. package/esm/sdk/models/subscription-entitlements-response.js.map +1 -1
  298. package/esm/sdk/models/update-price-request.d.ts +5 -0
  299. package/esm/sdk/models/update-price-request.d.ts.map +1 -1
  300. package/esm/sdk/models/update-price-request.js +2 -0
  301. package/esm/sdk/models/update-price-request.js.map +1 -1
  302. package/esm/sdk/models/update-product-op.d.ts +21 -0
  303. package/esm/sdk/models/update-product-op.d.ts.map +1 -0
  304. package/esm/sdk/models/update-product-op.js +14 -0
  305. package/esm/sdk/models/update-product-op.js.map +1 -0
  306. package/esm/sdk/models/update-product-request.d.ts +14 -0
  307. package/esm/sdk/models/update-product-request.d.ts.map +1 -0
  308. package/esm/sdk/models/update-product-request.js +13 -0
  309. package/esm/sdk/models/update-product-request.js.map +1 -0
  310. package/esm/sdk/models/waterfall-cell.d.ts +23 -0
  311. package/esm/sdk/models/waterfall-cell.d.ts.map +1 -0
  312. package/esm/sdk/models/waterfall-cell.js +18 -0
  313. package/esm/sdk/models/waterfall-cell.js.map +1 -0
  314. package/esm/sdk/models/waterfall-request.d.ts +48 -0
  315. package/esm/sdk/models/waterfall-request.d.ts.map +1 -0
  316. package/esm/sdk/models/waterfall-request.js +34 -0
  317. package/esm/sdk/models/waterfall-request.js.map +1 -0
  318. package/esm/sdk/models/waterfall-response.d.ts +18 -0
  319. package/esm/sdk/models/waterfall-response.d.ts.map +1 -0
  320. package/esm/sdk/models/waterfall-response.js +19 -0
  321. package/esm/sdk/models/waterfall-response.js.map +1 -0
  322. package/esm/sdk/models/waterfall-row.d.ts +17 -0
  323. package/esm/sdk/models/waterfall-row.d.ts.map +1 -0
  324. package/esm/sdk/models/waterfall-row.js +25 -0
  325. package/esm/sdk/models/waterfall-row.js.map +1 -0
  326. package/esm/sdk/performance-obligations.d.ts +19 -0
  327. package/esm/sdk/performance-obligations.d.ts.map +1 -0
  328. package/esm/sdk/performance-obligations.js +28 -0
  329. package/esm/sdk/performance-obligations.js.map +1 -0
  330. package/esm/sdk/products.d.ts +47 -0
  331. package/esm/sdk/products.d.ts.map +1 -0
  332. package/esm/sdk/products.js +68 -0
  333. package/esm/sdk/products.js.map +1 -0
  334. package/esm/sdk/revenue-reports.d.ts +19 -0
  335. package/esm/sdk/revenue-reports.d.ts.map +1 -0
  336. package/esm/sdk/revenue-reports.js +28 -0
  337. package/esm/sdk/revenue-reports.js.map +1 -0
  338. package/esm/sdk/sdk.d.ts +18 -0
  339. package/esm/sdk/sdk.d.ts.map +1 -1
  340. package/esm/sdk/sdk.js +30 -0
  341. package/esm/sdk/sdk.js.map +1 -1
  342. package/examples/{activityListActivity.example.ts → accountingPeriodsQueryAccountingPeriod.example.ts} +2 -2
  343. package/jsr.json +1 -1
  344. package/package.json +1 -1
  345. package/src/funcs/accounting-periods-query-accounting-period.ts +172 -0
  346. package/src/funcs/contracts-get-contract.ts +181 -0
  347. package/src/funcs/contracts-query-contract.ts +172 -0
  348. package/src/funcs/journal-entries-get-journal-entry.ts +181 -0
  349. package/src/funcs/journal-entries-query-journal-entry.ts +172 -0
  350. package/src/funcs/payments-list-payments.ts +1 -0
  351. package/src/funcs/performance-obligations-get-performance-obligation.ts +182 -0
  352. package/src/funcs/performance-obligations-query-performance-obligation.ts +172 -0
  353. package/src/funcs/products-create-product.ts +172 -0
  354. package/src/funcs/products-delete-product.ts +181 -0
  355. package/src/funcs/products-get-product.ts +181 -0
  356. package/src/funcs/products-list-products.ts +189 -0
  357. package/src/funcs/products-query-product.ts +172 -0
  358. package/src/funcs/products-update-product.ts +187 -0
  359. package/src/funcs/revenue-reports-get-revenue-rollforward.ts +172 -0
  360. package/src/funcs/revenue-reports-get-revenue-waterfall.ts +172 -0
  361. package/src/lib/config.ts +2 -2
  362. package/src/sdk/accounting-periods.ts +27 -0
  363. package/src/sdk/contracts.ts +45 -0
  364. package/src/sdk/journal-entries.ts +45 -0
  365. package/src/sdk/models/accounting-period-response.ts +60 -0
  366. package/src/sdk/models/accounting-period-status.ts +24 -0
  367. package/src/sdk/models/accountingperiod-filter.ts +100 -0
  368. package/src/sdk/models/amortization-method.ts +20 -0
  369. package/src/sdk/models/contract-association-response.ts +51 -0
  370. package/src/sdk/models/contract-filter.ts +106 -0
  371. package/src/sdk/models/contract-response.ts +76 -0
  372. package/src/sdk/models/contract-status.ts +26 -0
  373. package/src/sdk/models/create-entitlement-request.ts +9 -6
  374. package/src/sdk/models/create-price-request.ts +4 -0
  375. package/src/sdk/models/create-product-request.ts +44 -0
  376. package/src/sdk/models/create-subscription-entitlement-grant-request.ts +85 -0
  377. package/src/sdk/models/create-subscription-request.ts +18 -0
  378. package/src/sdk/models/delete-product-op.ts +33 -0
  379. package/src/sdk/models/entitlement-filter.ts +16 -0
  380. package/src/sdk/models/entitlement-grant-scope-entity-type.ts +27 -0
  381. package/src/sdk/models/entitlement-response.ts +7 -0
  382. package/src/sdk/models/get-contract-op.ts +33 -0
  383. package/src/sdk/models/get-journal-entry-op.ts +33 -0
  384. package/src/sdk/models/get-performance-obligation-op.ts +35 -0
  385. package/src/sdk/models/get-product-op.ts +33 -0
  386. package/src/sdk/models/grouped-invoicing-child-request.ts +18 -0
  387. package/src/sdk/models/index.ts +48 -0
  388. package/src/sdk/models/invoice-filter.ts +9 -0
  389. package/src/sdk/models/journal-direction.ts +19 -0
  390. package/src/sdk/models/journal-entry-response.ts +81 -0
  391. package/src/sdk/models/journal-event-type.ts +31 -0
  392. package/src/sdk/models/journal-filter.ts +129 -0
  393. package/src/sdk/models/journal-line-response.ts +55 -0
  394. package/src/sdk/models/ledger-account-key.ts +30 -0
  395. package/src/sdk/models/list-accounting-periods-response.ts +41 -0
  396. package/src/sdk/models/list-contracts-response.ts +41 -0
  397. package/src/sdk/models/list-journal-entries-response.ts +41 -0
  398. package/src/sdk/models/list-payments-op.ts +7 -0
  399. package/src/sdk/models/list-performance-obligations-response.ts +42 -0
  400. package/src/sdk/models/list-products-op.ts +89 -0
  401. package/src/sdk/models/list-products-response.ts +41 -0
  402. package/src/sdk/models/performance-obligation-association-response.ts +55 -0
  403. package/src/sdk/models/performance-obligation-response.ts +87 -0
  404. package/src/sdk/models/performance-obligation-status.ts +28 -0
  405. package/src/sdk/models/pob-filter.ts +112 -0
  406. package/src/sdk/models/price-filter.ts +4 -0
  407. package/src/sdk/models/price-price.ts +3 -0
  408. package/src/sdk/models/price-response.ts +3 -0
  409. package/src/sdk/models/product-filter.ts +90 -0
  410. package/src/sdk/models/product-response.ts +54 -0
  411. package/src/sdk/models/recognition-method.ts +25 -0
  412. package/src/sdk/models/rev-rec-entity-type.ts +29 -0
  413. package/src/sdk/models/revenue-breakdown.ts +40 -0
  414. package/src/sdk/models/revenue-report-group-by.ts +18 -0
  415. package/src/sdk/models/rollforward-request.ts +97 -0
  416. package/src/sdk/models/rollforward-response.ts +49 -0
  417. package/src/sdk/models/rollforward-row.ts +65 -0
  418. package/src/sdk/models/subscription-entitlement-grants-response.ts +47 -0
  419. package/src/sdk/models/subscription-entitlements-response.ts +11 -0
  420. package/src/sdk/models/update-price-request.ts +7 -0
  421. package/src/sdk/models/update-product-op.ts +46 -0
  422. package/src/sdk/models/update-product-request.ts +33 -0
  423. package/src/sdk/models/waterfall-cell.ts +50 -0
  424. package/src/sdk/models/waterfall-request.ts +93 -0
  425. package/src/sdk/models/waterfall-response.ts +47 -0
  426. package/src/sdk/models/waterfall-row.ts +52 -0
  427. package/src/sdk/performance-obligations.ts +45 -0
  428. package/src/sdk/products.ts +119 -0
  429. package/src/sdk/revenue-reports.ts +45 -0
  430. 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);