@apideck/unify 0.42.1 → 0.43.0

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 (488) hide show
  1. package/README.md +8 -1
  2. package/funcs/accountingAttachmentsList.d.ts.map +1 -1
  3. package/funcs/accountingAttachmentsList.js +1 -2
  4. package/funcs/accountingAttachmentsList.js.map +1 -1
  5. package/funcs/accountingBankAccountsList.d.ts.map +1 -1
  6. package/funcs/accountingBankAccountsList.js +1 -2
  7. package/funcs/accountingBankAccountsList.js.map +1 -1
  8. package/funcs/accountingBankFeedAccountsList.d.ts.map +1 -1
  9. package/funcs/accountingBankFeedAccountsList.js +1 -2
  10. package/funcs/accountingBankFeedAccountsList.js.map +1 -1
  11. package/funcs/accountingBankFeedStatementsList.d.ts.map +1 -1
  12. package/funcs/accountingBankFeedStatementsList.js +1 -2
  13. package/funcs/accountingBankFeedStatementsList.js.map +1 -1
  14. package/funcs/accountingBillPaymentsList.d.ts.map +1 -1
  15. package/funcs/accountingBillPaymentsList.js +1 -2
  16. package/funcs/accountingBillPaymentsList.js.map +1 -1
  17. package/funcs/accountingBillsList.d.ts.map +1 -1
  18. package/funcs/accountingBillsList.js +1 -2
  19. package/funcs/accountingBillsList.js.map +1 -1
  20. package/funcs/accountingCategoriesList.d.ts.map +1 -1
  21. package/funcs/accountingCategoriesList.js +1 -2
  22. package/funcs/accountingCategoriesList.js.map +1 -1
  23. package/funcs/accountingCompaniesList.d.ts.map +1 -1
  24. package/funcs/accountingCompaniesList.js +1 -2
  25. package/funcs/accountingCompaniesList.js.map +1 -1
  26. package/funcs/accountingCreditNotesList.d.ts.map +1 -1
  27. package/funcs/accountingCreditNotesList.js +1 -2
  28. package/funcs/accountingCreditNotesList.js.map +1 -1
  29. package/funcs/accountingCustomersList.d.ts.map +1 -1
  30. package/funcs/accountingCustomersList.js +1 -2
  31. package/funcs/accountingCustomersList.js.map +1 -1
  32. package/funcs/accountingDepartmentsList.d.ts.map +1 -1
  33. package/funcs/accountingDepartmentsList.js +1 -2
  34. package/funcs/accountingDepartmentsList.js.map +1 -1
  35. package/funcs/accountingEmployeesList.d.ts.map +1 -1
  36. package/funcs/accountingEmployeesList.js +1 -2
  37. package/funcs/accountingEmployeesList.js.map +1 -1
  38. package/funcs/accountingExpenseCategoriesList.d.ts.map +1 -1
  39. package/funcs/accountingExpenseCategoriesList.js +1 -2
  40. package/funcs/accountingExpenseCategoriesList.js.map +1 -1
  41. package/funcs/accountingExpenseReportsList.d.ts.map +1 -1
  42. package/funcs/accountingExpenseReportsList.js +1 -2
  43. package/funcs/accountingExpenseReportsList.js.map +1 -1
  44. package/funcs/accountingExpensesList.d.ts.map +1 -1
  45. package/funcs/accountingExpensesList.js +1 -2
  46. package/funcs/accountingExpensesList.js.map +1 -1
  47. package/funcs/accountingGeneralLedgerTransactionsGet.d.ts +18 -0
  48. package/funcs/accountingGeneralLedgerTransactionsGet.d.ts.map +1 -0
  49. package/funcs/accountingGeneralLedgerTransactionsGet.js +144 -0
  50. package/funcs/accountingGeneralLedgerTransactionsGet.js.map +1 -0
  51. package/funcs/accountingGeneralLedgerTransactionsList.d.ts +21 -0
  52. package/funcs/accountingGeneralLedgerTransactionsList.d.ts.map +1 -0
  53. package/funcs/accountingGeneralLedgerTransactionsList.js +168 -0
  54. package/funcs/accountingGeneralLedgerTransactionsList.js.map +1 -0
  55. package/funcs/accountingInvoiceItemsList.d.ts.map +1 -1
  56. package/funcs/accountingInvoiceItemsList.js +1 -2
  57. package/funcs/accountingInvoiceItemsList.js.map +1 -1
  58. package/funcs/accountingInvoicesList.d.ts.map +1 -1
  59. package/funcs/accountingInvoicesList.js +1 -2
  60. package/funcs/accountingInvoicesList.js.map +1 -1
  61. package/funcs/accountingJournalEntriesList.d.ts.map +1 -1
  62. package/funcs/accountingJournalEntriesList.js +1 -2
  63. package/funcs/accountingJournalEntriesList.js.map +1 -1
  64. package/funcs/accountingLedgerAccountsList.d.ts.map +1 -1
  65. package/funcs/accountingLedgerAccountsList.js +1 -2
  66. package/funcs/accountingLedgerAccountsList.js.map +1 -1
  67. package/funcs/accountingLocationsList.d.ts.map +1 -1
  68. package/funcs/accountingLocationsList.js +1 -2
  69. package/funcs/accountingLocationsList.js.map +1 -1
  70. package/funcs/accountingPaymentsList.d.ts.map +1 -1
  71. package/funcs/accountingPaymentsList.js +1 -2
  72. package/funcs/accountingPaymentsList.js.map +1 -1
  73. package/funcs/accountingProjectsList.d.ts.map +1 -1
  74. package/funcs/accountingProjectsList.js +1 -2
  75. package/funcs/accountingProjectsList.js.map +1 -1
  76. package/funcs/accountingPurchaseOrdersList.d.ts.map +1 -1
  77. package/funcs/accountingPurchaseOrdersList.js +1 -2
  78. package/funcs/accountingPurchaseOrdersList.js.map +1 -1
  79. package/funcs/accountingQuotesList.d.ts.map +1 -1
  80. package/funcs/accountingQuotesList.js +5 -4
  81. package/funcs/accountingQuotesList.js.map +1 -1
  82. package/funcs/accountingRefundsList.d.ts.map +1 -1
  83. package/funcs/accountingRefundsList.js +1 -2
  84. package/funcs/accountingRefundsList.js.map +1 -1
  85. package/funcs/accountingSubsidiariesList.d.ts.map +1 -1
  86. package/funcs/accountingSubsidiariesList.js +1 -2
  87. package/funcs/accountingSubsidiariesList.js.map +1 -1
  88. package/funcs/accountingSuppliersList.d.ts.map +1 -1
  89. package/funcs/accountingSuppliersList.js +1 -2
  90. package/funcs/accountingSuppliersList.js.map +1 -1
  91. package/funcs/accountingTaxRatesList.d.ts.map +1 -1
  92. package/funcs/accountingTaxRatesList.js +1 -2
  93. package/funcs/accountingTaxRatesList.js.map +1 -1
  94. package/funcs/accountingTrackingCategoriesList.d.ts.map +1 -1
  95. package/funcs/accountingTrackingCategoriesList.js +1 -2
  96. package/funcs/accountingTrackingCategoriesList.js.map +1 -1
  97. package/funcs/atsApplicantsList.d.ts.map +1 -1
  98. package/funcs/atsApplicantsList.js +1 -2
  99. package/funcs/atsApplicantsList.js.map +1 -1
  100. package/funcs/atsApplicationsList.d.ts.map +1 -1
  101. package/funcs/atsApplicationsList.js +1 -2
  102. package/funcs/atsApplicationsList.js.map +1 -1
  103. package/funcs/atsJobsList.d.ts.map +1 -1
  104. package/funcs/atsJobsList.js +1 -2
  105. package/funcs/atsJobsList.js.map +1 -1
  106. package/funcs/connectorApisList.d.ts.map +1 -1
  107. package/funcs/connectorApisList.js +1 -2
  108. package/funcs/connectorApisList.js.map +1 -1
  109. package/funcs/connectorConnectorsList.d.ts.map +1 -1
  110. package/funcs/connectorConnectorsList.js +1 -2
  111. package/funcs/connectorConnectorsList.js.map +1 -1
  112. package/funcs/crmActivitiesList.d.ts.map +1 -1
  113. package/funcs/crmActivitiesList.js +1 -2
  114. package/funcs/crmActivitiesList.js.map +1 -1
  115. package/funcs/crmCompaniesList.d.ts.map +1 -1
  116. package/funcs/crmCompaniesList.js +1 -2
  117. package/funcs/crmCompaniesList.js.map +1 -1
  118. package/funcs/crmContactsList.d.ts.map +1 -1
  119. package/funcs/crmContactsList.js +1 -2
  120. package/funcs/crmContactsList.js.map +1 -1
  121. package/funcs/crmCustomObjectSchemasList.d.ts.map +1 -1
  122. package/funcs/crmCustomObjectSchemasList.js +1 -2
  123. package/funcs/crmCustomObjectSchemasList.js.map +1 -1
  124. package/funcs/crmCustomObjectsList.d.ts.map +1 -1
  125. package/funcs/crmCustomObjectsList.js +1 -2
  126. package/funcs/crmCustomObjectsList.js.map +1 -1
  127. package/funcs/crmLeadsList.d.ts.map +1 -1
  128. package/funcs/crmLeadsList.js +1 -2
  129. package/funcs/crmLeadsList.js.map +1 -1
  130. package/funcs/crmNotesList.d.ts.map +1 -1
  131. package/funcs/crmNotesList.js +2 -2
  132. package/funcs/crmNotesList.js.map +1 -1
  133. package/funcs/crmOpportunitiesList.d.ts.map +1 -1
  134. package/funcs/crmOpportunitiesList.js +1 -2
  135. package/funcs/crmOpportunitiesList.js.map +1 -1
  136. package/funcs/crmPipelinesList.d.ts.map +1 -1
  137. package/funcs/crmPipelinesList.js +1 -2
  138. package/funcs/crmPipelinesList.js.map +1 -1
  139. package/funcs/crmUsersList.d.ts.map +1 -1
  140. package/funcs/crmUsersList.js +2 -2
  141. package/funcs/crmUsersList.js.map +1 -1
  142. package/funcs/ecommerceCustomersList.d.ts.map +1 -1
  143. package/funcs/ecommerceCustomersList.js +1 -2
  144. package/funcs/ecommerceCustomersList.js.map +1 -1
  145. package/funcs/ecommerceOrdersList.d.ts.map +1 -1
  146. package/funcs/ecommerceOrdersList.js +1 -2
  147. package/funcs/ecommerceOrdersList.js.map +1 -1
  148. package/funcs/ecommerceProductsList.d.ts.map +1 -1
  149. package/funcs/ecommerceProductsList.js +1 -2
  150. package/funcs/ecommerceProductsList.js.map +1 -1
  151. package/funcs/fileStorageDriveGroupsList.d.ts.map +1 -1
  152. package/funcs/fileStorageDriveGroupsList.js +1 -2
  153. package/funcs/fileStorageDriveGroupsList.js.map +1 -1
  154. package/funcs/fileStorageDrivesList.d.ts.map +1 -1
  155. package/funcs/fileStorageDrivesList.js +1 -2
  156. package/funcs/fileStorageDrivesList.js.map +1 -1
  157. package/funcs/fileStorageFilesList.d.ts.map +1 -1
  158. package/funcs/fileStorageFilesList.js +1 -2
  159. package/funcs/fileStorageFilesList.js.map +1 -1
  160. package/funcs/fileStorageSharedLinksList.d.ts.map +1 -1
  161. package/funcs/fileStorageSharedLinksList.js +1 -2
  162. package/funcs/fileStorageSharedLinksList.js.map +1 -1
  163. package/funcs/hrisCompaniesList.d.ts.map +1 -1
  164. package/funcs/hrisCompaniesList.js +1 -2
  165. package/funcs/hrisCompaniesList.js.map +1 -1
  166. package/funcs/hrisDepartmentsList.d.ts.map +1 -1
  167. package/funcs/hrisDepartmentsList.js +1 -2
  168. package/funcs/hrisDepartmentsList.js.map +1 -1
  169. package/funcs/hrisEmployeesList.d.ts.map +1 -1
  170. package/funcs/hrisEmployeesList.js +1 -2
  171. package/funcs/hrisEmployeesList.js.map +1 -1
  172. package/funcs/hrisTimeOffRequestsList.d.ts.map +1 -1
  173. package/funcs/hrisTimeOffRequestsList.js +1 -2
  174. package/funcs/hrisTimeOffRequestsList.js.map +1 -1
  175. package/funcs/issueTrackingCollectionTagsList.d.ts.map +1 -1
  176. package/funcs/issueTrackingCollectionTagsList.js +1 -2
  177. package/funcs/issueTrackingCollectionTagsList.js.map +1 -1
  178. package/funcs/issueTrackingCollectionTicketCommentsGet.d.ts.map +1 -1
  179. package/funcs/issueTrackingCollectionTicketCommentsGet.js +1 -2
  180. package/funcs/issueTrackingCollectionTicketCommentsGet.js.map +1 -1
  181. package/funcs/issueTrackingCollectionTicketCommentsList.d.ts.map +1 -1
  182. package/funcs/issueTrackingCollectionTicketCommentsList.js +1 -2
  183. package/funcs/issueTrackingCollectionTicketCommentsList.js.map +1 -1
  184. package/funcs/issueTrackingCollectionTicketsList.d.ts.map +1 -1
  185. package/funcs/issueTrackingCollectionTicketsList.js +1 -2
  186. package/funcs/issueTrackingCollectionTicketsList.js.map +1 -1
  187. package/funcs/issueTrackingCollectionUsersList.d.ts.map +1 -1
  188. package/funcs/issueTrackingCollectionUsersList.js +1 -2
  189. package/funcs/issueTrackingCollectionUsersList.js.map +1 -1
  190. package/funcs/issueTrackingCollectionsList.d.ts.map +1 -1
  191. package/funcs/issueTrackingCollectionsList.js +1 -2
  192. package/funcs/issueTrackingCollectionsList.js.map +1 -1
  193. package/funcs/smsMessagesList.d.ts.map +1 -1
  194. package/funcs/smsMessagesList.js +1 -2
  195. package/funcs/smsMessagesList.js.map +1 -1
  196. package/funcs/vaultConsumersList.d.ts.map +1 -1
  197. package/funcs/vaultConsumersList.js +1 -2
  198. package/funcs/vaultConsumersList.js.map +1 -1
  199. package/funcs/vaultLogsList.d.ts.map +1 -1
  200. package/funcs/vaultLogsList.js +1 -2
  201. package/funcs/vaultLogsList.js.map +1 -1
  202. package/funcs/webhookEventLogsList.d.ts.map +1 -1
  203. package/funcs/webhookEventLogsList.js +1 -2
  204. package/funcs/webhookEventLogsList.js.map +1 -1
  205. package/funcs/webhookWebhooksList.d.ts.map +1 -1
  206. package/funcs/webhookWebhooksList.js +1 -2
  207. package/funcs/webhookWebhooksList.js.map +1 -1
  208. package/hooks/types.d.ts +1 -0
  209. package/hooks/types.d.ts.map +1 -1
  210. package/jsr.json +1 -1
  211. package/lib/config.d.ts +4 -4
  212. package/lib/config.js +4 -4
  213. package/lib/encodings.js +12 -12
  214. package/lib/encodings.js.map +1 -1
  215. package/lib/env.d.ts.map +1 -1
  216. package/lib/env.js +3 -3
  217. package/lib/env.js.map +1 -1
  218. package/lib/matchers.js +2 -2
  219. package/lib/matchers.js.map +1 -1
  220. package/lib/primitives.d.ts +1 -0
  221. package/lib/primitives.d.ts.map +1 -1
  222. package/lib/primitives.js +18 -0
  223. package/lib/primitives.js.map +1 -1
  224. package/lib/sdks.d.ts.map +1 -1
  225. package/lib/sdks.js +50 -16
  226. package/lib/sdks.js.map +1 -1
  227. package/models/components/billsfilter.d.ts +5 -0
  228. package/models/components/billsfilter.d.ts.map +1 -1
  229. package/models/components/billsfilter.js +2 -0
  230. package/models/components/billsfilter.js.map +1 -1
  231. package/models/components/connection.d.ts +5 -0
  232. package/models/components/connection.d.ts.map +1 -1
  233. package/models/components/connection.js +3 -0
  234. package/models/components/connection.js.map +1 -1
  235. package/models/components/connectionhealth.d.ts +1 -0
  236. package/models/components/connectionhealth.d.ts.map +1 -1
  237. package/models/components/connectionhealth.js +1 -0
  238. package/models/components/connectionhealth.js.map +1 -1
  239. package/models/components/creditnotesfilter.d.ts +5 -0
  240. package/models/components/creditnotesfilter.d.ts.map +1 -1
  241. package/models/components/creditnotesfilter.js +2 -0
  242. package/models/components/creditnotesfilter.js.map +1 -1
  243. package/models/components/customersfilter.d.ts +5 -0
  244. package/models/components/customersfilter.d.ts.map +1 -1
  245. package/models/components/customersfilter.js +2 -0
  246. package/models/components/customersfilter.js.map +1 -1
  247. package/models/components/expensereportsfilter.d.ts +5 -0
  248. package/models/components/expensereportsfilter.d.ts.map +1 -1
  249. package/models/components/expensereportsfilter.js +2 -0
  250. package/models/components/expensereportsfilter.js.map +1 -1
  251. package/models/components/generalledgertransaction.d.ts +101 -0
  252. package/models/components/generalledgertransaction.d.ts.map +1 -0
  253. package/models/components/generalledgertransaction.js +104 -0
  254. package/models/components/generalledgertransaction.js.map +1 -0
  255. package/models/components/generalledgertransactionlineitem.d.ts +56 -0
  256. package/models/components/generalledgertransactionlineitem.d.ts.map +1 -0
  257. package/models/components/generalledgertransactionlineitem.js +82 -0
  258. package/models/components/generalledgertransactionlineitem.js.map +1 -0
  259. package/models/components/generalledgertransactionsfilter.d.ts +46 -0
  260. package/models/components/generalledgertransactionsfilter.d.ts.map +1 -0
  261. package/models/components/generalledgertransactionsfilter.js +75 -0
  262. package/models/components/generalledgertransactionsfilter.js.map +1 -0
  263. package/models/components/generalledgertransactionssort.d.ts +36 -0
  264. package/models/components/generalledgertransactionssort.d.ts.map +1 -0
  265. package/models/components/generalledgertransactionssort.js +62 -0
  266. package/models/components/generalledgertransactionssort.js.map +1 -0
  267. package/models/components/getgeneralledgertransactionresponse.d.ts +40 -0
  268. package/models/components/getgeneralledgertransactionresponse.d.ts.map +1 -0
  269. package/models/components/getgeneralledgertransactionresponse.js +64 -0
  270. package/models/components/getgeneralledgertransactionresponse.js.map +1 -0
  271. package/models/components/getgeneralledgertransactionsresponse.d.ts +50 -0
  272. package/models/components/getgeneralledgertransactionsresponse.d.ts.map +1 -0
  273. package/models/components/getgeneralledgertransactionsresponse.js +68 -0
  274. package/models/components/getgeneralledgertransactionsresponse.js.map +1 -0
  275. package/models/components/index.d.ts +9 -0
  276. package/models/components/index.d.ts.map +1 -1
  277. package/models/components/index.js +9 -0
  278. package/models/components/index.js.map +1 -1
  279. package/models/components/invoiceitemsfilter.d.ts +5 -0
  280. package/models/components/invoiceitemsfilter.d.ts.map +1 -1
  281. package/models/components/invoiceitemsfilter.js +2 -0
  282. package/models/components/invoiceitemsfilter.js.map +1 -1
  283. package/models/components/invoicesfilter.d.ts +5 -0
  284. package/models/components/invoicesfilter.d.ts.map +1 -1
  285. package/models/components/invoicesfilter.js +2 -0
  286. package/models/components/invoicesfilter.js.map +1 -1
  287. package/models/components/journalentriesfilter.d.ts +23 -0
  288. package/models/components/journalentriesfilter.d.ts.map +1 -1
  289. package/models/components/journalentriesfilter.js +13 -1
  290. package/models/components/journalentriesfilter.js.map +1 -1
  291. package/models/components/ledgeraccountsfilter.d.ts +5 -0
  292. package/models/components/ledgeraccountsfilter.d.ts.map +1 -1
  293. package/models/components/ledgeraccountsfilter.js +2 -0
  294. package/models/components/ledgeraccountsfilter.js.map +1 -1
  295. package/models/components/notesfilter.d.ts +24 -0
  296. package/models/components/notesfilter.d.ts.map +1 -0
  297. package/models/components/notesfilter.js +59 -0
  298. package/models/components/notesfilter.js.map +1 -0
  299. package/models/components/paymentsfilter.d.ts +5 -0
  300. package/models/components/paymentsfilter.d.ts.map +1 -1
  301. package/models/components/paymentsfilter.js +2 -0
  302. package/models/components/paymentsfilter.js.map +1 -1
  303. package/models/components/projectsfilter.d.ts +5 -0
  304. package/models/components/projectsfilter.d.ts.map +1 -1
  305. package/models/components/projectsfilter.js +2 -0
  306. package/models/components/projectsfilter.js.map +1 -1
  307. package/models/components/purchaseordersfilter.d.ts +5 -0
  308. package/models/components/purchaseordersfilter.d.ts.map +1 -1
  309. package/models/components/purchaseordersfilter.js +2 -0
  310. package/models/components/purchaseordersfilter.js.map +1 -1
  311. package/models/components/quotesfilter.d.ts +19 -0
  312. package/models/components/quotesfilter.d.ts.map +1 -0
  313. package/models/components/quotesfilter.js +57 -0
  314. package/models/components/quotesfilter.js.map +1 -0
  315. package/models/components/suppliersfilter.d.ts +5 -0
  316. package/models/components/suppliersfilter.d.ts.map +1 -1
  317. package/models/components/suppliersfilter.js +2 -0
  318. package/models/components/suppliersfilter.js.map +1 -1
  319. package/models/components/user.d.ts +4 -0
  320. package/models/components/user.d.ts.map +1 -1
  321. package/models/components/user.js +1 -0
  322. package/models/components/user.js.map +1 -1
  323. package/models/components/userinput.d.ts +5 -0
  324. package/models/components/userinput.d.ts.map +1 -1
  325. package/models/components/userinput.js +1 -0
  326. package/models/components/userinput.js.map +1 -1
  327. package/models/components/usersfilter.d.ts +20 -0
  328. package/models/components/usersfilter.d.ts.map +1 -0
  329. package/models/components/usersfilter.js +50 -0
  330. package/models/components/usersfilter.js.map +1 -0
  331. package/models/components/webhookeventtype.d.ts +2 -0
  332. package/models/components/webhookeventtype.d.ts.map +1 -1
  333. package/models/components/webhookeventtype.js +2 -0
  334. package/models/components/webhookeventtype.js.map +1 -1
  335. package/models/operations/accountinggeneralledgertransactionsall.d.ts +96 -0
  336. package/models/operations/accountinggeneralledgertransactionsall.d.ts.map +1 -0
  337. package/models/operations/accountinggeneralledgertransactionsall.js +84 -0
  338. package/models/operations/accountinggeneralledgertransactionsall.js.map +1 -0
  339. package/models/operations/accountinggeneralledgertransactionsone.d.ts +72 -0
  340. package/models/operations/accountinggeneralledgertransactionsone.d.ts.map +1 -0
  341. package/models/operations/accountinggeneralledgertransactionsone.js +75 -0
  342. package/models/operations/accountinggeneralledgertransactionsone.js.map +1 -0
  343. package/models/operations/accountingquotesall.d.ts +5 -0
  344. package/models/operations/accountingquotesall.d.ts.map +1 -1
  345. package/models/operations/accountingquotesall.js +1 -0
  346. package/models/operations/accountingquotesall.js.map +1 -1
  347. package/models/operations/crmnotesall.d.ts +5 -0
  348. package/models/operations/crmnotesall.d.ts.map +1 -1
  349. package/models/operations/crmnotesall.js +1 -0
  350. package/models/operations/crmnotesall.js.map +1 -1
  351. package/models/operations/crmusersall.d.ts +5 -0
  352. package/models/operations/crmusersall.d.ts.map +1 -1
  353. package/models/operations/crmusersall.js +1 -0
  354. package/models/operations/crmusersall.js.map +1 -1
  355. package/models/operations/index.d.ts +2 -0
  356. package/models/operations/index.d.ts.map +1 -1
  357. package/models/operations/index.js +2 -0
  358. package/models/operations/index.js.map +1 -1
  359. package/package.json +1 -1
  360. package/sdk/accounting.d.ts +3 -0
  361. package/sdk/accounting.d.ts.map +1 -1
  362. package/sdk/accounting.js +4 -0
  363. package/sdk/accounting.js.map +1 -1
  364. package/sdk/generalledgertransactions.d.ts +22 -0
  365. package/sdk/generalledgertransactions.d.ts.map +1 -0
  366. package/sdk/generalledgertransactions.js +33 -0
  367. package/sdk/generalledgertransactions.js.map +1 -0
  368. package/src/__tests__/quotes.test.ts +5 -0
  369. package/src/funcs/accountingAttachmentsList.ts +5 -2
  370. package/src/funcs/accountingBankAccountsList.ts +5 -2
  371. package/src/funcs/accountingBankFeedAccountsList.ts +5 -2
  372. package/src/funcs/accountingBankFeedStatementsList.ts +5 -2
  373. package/src/funcs/accountingBillPaymentsList.ts +5 -2
  374. package/src/funcs/accountingBillsList.ts +5 -2
  375. package/src/funcs/accountingCategoriesList.ts +5 -2
  376. package/src/funcs/accountingCompaniesList.ts +5 -2
  377. package/src/funcs/accountingCreditNotesList.ts +5 -2
  378. package/src/funcs/accountingCustomersList.ts +5 -2
  379. package/src/funcs/accountingDepartmentsList.ts +5 -2
  380. package/src/funcs/accountingEmployeesList.ts +5 -2
  381. package/src/funcs/accountingExpenseCategoriesList.ts +5 -2
  382. package/src/funcs/accountingExpenseReportsList.ts +5 -2
  383. package/src/funcs/accountingExpensesList.ts +5 -2
  384. package/src/funcs/accountingGeneralLedgerTransactionsGet.ts +241 -0
  385. package/src/funcs/accountingGeneralLedgerTransactionsList.ts +316 -0
  386. package/src/funcs/accountingInvoiceItemsList.ts +5 -2
  387. package/src/funcs/accountingInvoicesList.ts +5 -2
  388. package/src/funcs/accountingJournalEntriesList.ts +5 -2
  389. package/src/funcs/accountingLedgerAccountsList.ts +5 -2
  390. package/src/funcs/accountingLocationsList.ts +5 -2
  391. package/src/funcs/accountingPaymentsList.ts +5 -2
  392. package/src/funcs/accountingProjectsList.ts +5 -2
  393. package/src/funcs/accountingPurchaseOrdersList.ts +5 -2
  394. package/src/funcs/accountingQuotesList.ts +21 -8
  395. package/src/funcs/accountingRefundsList.ts +5 -2
  396. package/src/funcs/accountingSubsidiariesList.ts +5 -2
  397. package/src/funcs/accountingSuppliersList.ts +5 -2
  398. package/src/funcs/accountingTaxRatesList.ts +5 -2
  399. package/src/funcs/accountingTrackingCategoriesList.ts +5 -2
  400. package/src/funcs/atsApplicantsList.ts +5 -2
  401. package/src/funcs/atsApplicationsList.ts +5 -2
  402. package/src/funcs/atsJobsList.ts +5 -2
  403. package/src/funcs/connectorApisList.ts +5 -2
  404. package/src/funcs/connectorConnectorsList.ts +5 -2
  405. package/src/funcs/crmActivitiesList.ts +5 -2
  406. package/src/funcs/crmCompaniesList.ts +5 -2
  407. package/src/funcs/crmContactsList.ts +5 -2
  408. package/src/funcs/crmCustomObjectSchemasList.ts +5 -2
  409. package/src/funcs/crmCustomObjectsList.ts +5 -2
  410. package/src/funcs/crmLeadsList.ts +5 -2
  411. package/src/funcs/crmNotesList.ts +6 -2
  412. package/src/funcs/crmOpportunitiesList.ts +5 -2
  413. package/src/funcs/crmPipelinesList.ts +5 -2
  414. package/src/funcs/crmUsersList.ts +6 -2
  415. package/src/funcs/ecommerceCustomersList.ts +5 -2
  416. package/src/funcs/ecommerceOrdersList.ts +5 -2
  417. package/src/funcs/ecommerceProductsList.ts +5 -2
  418. package/src/funcs/fileStorageDriveGroupsList.ts +5 -2
  419. package/src/funcs/fileStorageDrivesList.ts +5 -2
  420. package/src/funcs/fileStorageFilesList.ts +5 -2
  421. package/src/funcs/fileStorageSharedLinksList.ts +5 -2
  422. package/src/funcs/hrisCompaniesList.ts +5 -2
  423. package/src/funcs/hrisDepartmentsList.ts +5 -2
  424. package/src/funcs/hrisEmployeesList.ts +5 -2
  425. package/src/funcs/hrisTimeOffRequestsList.ts +5 -2
  426. package/src/funcs/issueTrackingCollectionTagsList.ts +5 -2
  427. package/src/funcs/issueTrackingCollectionTicketCommentsGet.ts +5 -2
  428. package/src/funcs/issueTrackingCollectionTicketCommentsList.ts +5 -2
  429. package/src/funcs/issueTrackingCollectionTicketsList.ts +5 -2
  430. package/src/funcs/issueTrackingCollectionUsersList.ts +5 -2
  431. package/src/funcs/issueTrackingCollectionsList.ts +5 -2
  432. package/src/funcs/smsMessagesList.ts +5 -2
  433. package/src/funcs/vaultConsumersList.ts +5 -2
  434. package/src/funcs/vaultLogsList.ts +5 -2
  435. package/src/funcs/webhookEventLogsList.ts +5 -2
  436. package/src/funcs/webhookWebhooksList.ts +5 -2
  437. package/src/hooks/types.ts +1 -0
  438. package/src/lib/config.ts +4 -4
  439. package/src/lib/encodings.ts +1 -1
  440. package/src/lib/env.ts +7 -3
  441. package/src/lib/matchers.ts +1 -1
  442. package/src/lib/primitives.ts +16 -0
  443. package/src/lib/sdks.ts +54 -17
  444. package/src/models/components/billsfilter.ts +7 -0
  445. package/src/models/components/connection.ts +7 -0
  446. package/src/models/components/connectionhealth.ts +1 -0
  447. package/src/models/components/creditnotesfilter.ts +7 -0
  448. package/src/models/components/customersfilter.ts +7 -0
  449. package/src/models/components/expensereportsfilter.ts +7 -0
  450. package/src/models/components/generalledgertransaction.ts +168 -0
  451. package/src/models/components/generalledgertransactionlineitem.ts +113 -0
  452. package/src/models/components/generalledgertransactionsfilter.ts +83 -0
  453. package/src/models/components/generalledgertransactionssort.ts +70 -0
  454. package/src/models/components/getgeneralledgertransactionresponse.ts +76 -0
  455. package/src/models/components/getgeneralledgertransactionsresponse.ts +88 -0
  456. package/src/models/components/index.ts +9 -0
  457. package/src/models/components/invoiceitemsfilter.ts +7 -0
  458. package/src/models/components/invoicesfilter.ts +7 -0
  459. package/src/models/components/journalentriesfilter.ts +34 -0
  460. package/src/models/components/ledgeraccountsfilter.ts +7 -0
  461. package/src/models/components/notesfilter.ts +49 -0
  462. package/src/models/components/paymentsfilter.ts +7 -0
  463. package/src/models/components/projectsfilter.ts +7 -0
  464. package/src/models/components/purchaseordersfilter.ts +7 -0
  465. package/src/models/components/quotesfilter.ts +42 -0
  466. package/src/models/components/suppliersfilter.ts +7 -0
  467. package/src/models/components/user.ts +5 -0
  468. package/src/models/components/userinput.ts +6 -0
  469. package/src/models/components/usersfilter.ts +36 -0
  470. package/src/models/components/webhookeventtype.ts +2 -0
  471. package/src/models/operations/accountinggeneralledgertransactionsall.ts +173 -0
  472. package/src/models/operations/accountinggeneralledgertransactionsone.ts +144 -0
  473. package/src/models/operations/accountingquotesall.ts +6 -0
  474. package/src/models/operations/crmnotesall.ts +6 -0
  475. package/src/models/operations/crmusersall.ts +6 -0
  476. package/src/models/operations/index.ts +2 -0
  477. package/src/sdk/accounting.ts +8 -0
  478. package/src/sdk/generalledgertransactions.ts +51 -0
  479. package/lib/dlv.d.ts +0 -14
  480. package/lib/dlv.d.ts.map +0 -1
  481. package/lib/dlv.js +0 -49
  482. package/lib/dlv.js.map +0 -1
  483. package/lib/is-plain-object.d.ts +0 -2
  484. package/lib/is-plain-object.d.ts.map +0 -1
  485. package/lib/is-plain-object.js +0 -41
  486. package/lib/is-plain-object.js.map +0 -1
  487. package/src/lib/dlv.ts +0 -53
  488. package/src/lib/is-plain-object.ts +0 -43
@@ -0,0 +1,101 @@
1
+ import * as z from "zod/v3";
2
+ import { OpenEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import { Currency } from "./currency.js";
6
+ import { CustomField } from "./customfield.js";
7
+ import { GeneralLedgerTransactionLineItem } from "./generalledgertransactionlineitem.js";
8
+ import { PassThroughBody } from "./passthroughbody.js";
9
+ /**
10
+ * The originating transaction type that produced this posting in the general ledger. Discriminates whether the entry came from an invoice, a bill, a payment, a manual journal, etc. This is the key field that distinguishes general-ledger-transactions from journal-entries (which only covers manually-captured entries). May be `null` when the upstream connector did not return an origin discriminator (e.g. Xero's single-record endpoint strips `SourceType` for every record; certain historical records also omit it). To recover a populated value, query the list endpoint.
11
+ */
12
+ export declare const GeneralLedgerTransactionSourceType: {
13
+ readonly Other: "other";
14
+ readonly Invoice: "invoice";
15
+ readonly Bill: "bill";
16
+ readonly CreditNote: "credit_note";
17
+ readonly Payment: "payment";
18
+ readonly Refund: "refund";
19
+ readonly Expense: "expense";
20
+ readonly JournalEntry: "journal_entry";
21
+ readonly Payroll: "payroll";
22
+ };
23
+ /**
24
+ * The originating transaction type that produced this posting in the general ledger. Discriminates whether the entry came from an invoice, a bill, a payment, a manual journal, etc. This is the key field that distinguishes general-ledger-transactions from journal-entries (which only covers manually-captured entries). May be `null` when the upstream connector did not return an origin discriminator (e.g. Xero's single-record endpoint strips `SourceType` for every record; certain historical records also omit it). To recover a populated value, query the list endpoint.
25
+ */
26
+ export type GeneralLedgerTransactionSourceType = OpenEnum<typeof GeneralLedgerTransactionSourceType>;
27
+ export type GeneralLedgerTransaction = {
28
+ /**
29
+ * A unique identifier for an object.
30
+ */
31
+ id?: string | undefined;
32
+ /**
33
+ * The originating transaction type that produced this posting in the general ledger. Discriminates whether the entry came from an invoice, a bill, a payment, a manual journal, etc. This is the key field that distinguishes general-ledger-transactions from journal-entries (which only covers manually-captured entries). May be `null` when the upstream connector did not return an origin discriminator (e.g. Xero's single-record endpoint strips `SourceType` for every record; certain historical records also omit it). To recover a populated value, query the list endpoint.
34
+ */
35
+ sourceType: GeneralLedgerTransactionSourceType | null;
36
+ /**
37
+ * Identifier of the originating document in the vendor system. For example, when source_type is 'invoice', this is the id of the invoice that produced this posting. Use this id together with source_type to fetch the source document via its dedicated unified resource.
38
+ */
39
+ sourceId?: string | null | undefined;
40
+ /**
41
+ * The date on which the transaction was posted to the general ledger. This is the accounting date — it is what determines the period the transaction belongs to and can be earlier than the creation date for backdated postings.
42
+ */
43
+ postedAt?: Date | undefined;
44
+ /**
45
+ * Optional reference identifier for the transaction.
46
+ */
47
+ reference?: string | null | undefined;
48
+ /**
49
+ * Sequential number auto-assigned by the vendor system to the transaction (e.g. Xero JournalNumber). Unique per company.
50
+ */
51
+ number?: string | null | undefined;
52
+ /**
53
+ * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
54
+ */
55
+ currency?: Currency | null | undefined;
56
+ /**
57
+ * Currency Exchange Rate at the time entity was recorded/generated.
58
+ */
59
+ currencyRate?: number | null | undefined;
60
+ /**
61
+ * Free-text description at the header level. Typically populated when the transaction originates from a manual journal — for system-generated postings (invoice, payment, etc.) the source document carries the descriptive text.
62
+ */
63
+ memo?: string | null | undefined;
64
+ /**
65
+ * Lines of the transaction. Each line affects one ledger account with either a debit or a credit. The signed sum of net_amount across all lines must equal zero (double-entry invariant).
66
+ */
67
+ lineItems: Array<GeneralLedgerTransactionLineItem>;
68
+ customFields?: Array<CustomField> | undefined;
69
+ /**
70
+ * The user who last updated the object.
71
+ */
72
+ updatedBy?: string | null | undefined;
73
+ /**
74
+ * The user who created the object.
75
+ */
76
+ createdBy?: string | null | undefined;
77
+ /**
78
+ * The date and time when the object was last updated.
79
+ */
80
+ updatedAt?: Date | null | undefined;
81
+ /**
82
+ * The date and time when the object was created.
83
+ */
84
+ createdAt?: Date | null | undefined;
85
+ /**
86
+ * When custom mappings are configured on the resource, the result is included here.
87
+ */
88
+ customMappings?: {
89
+ [k: string]: any;
90
+ } | null | undefined;
91
+ /**
92
+ * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
93
+ */
94
+ passThrough?: Array<PassThroughBody> | undefined;
95
+ };
96
+ /** @internal */
97
+ export declare const GeneralLedgerTransactionSourceType$inboundSchema: z.ZodType<GeneralLedgerTransactionSourceType, z.ZodTypeDef, unknown>;
98
+ /** @internal */
99
+ export declare const GeneralLedgerTransaction$inboundSchema: z.ZodType<GeneralLedgerTransaction, z.ZodTypeDef, unknown>;
100
+ export declare function generalLedgerTransactionFromJSON(jsonString: string): SafeParseResult<GeneralLedgerTransaction, SDKValidationError>;
101
+ //# sourceMappingURL=generalledgertransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generalledgertransaction.d.ts","sourceRoot":"","sources":["../../src/models/components/generalledgertransaction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAA0B,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,WAAW,EAA6B,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EACL,gCAAgC,EAEjC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAE9B;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;CAUrC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG,QAAQ,CACvD,OAAO,kCAAkC,CAC1C,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB;;OAEG;IACH,UAAU,EAAE,kCAAkC,GAAG,IAAI,CAAC;IACtD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACnD,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,cAAc,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IACzD;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAAO,CACtE,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,OAAO,CACsD,CAAC;AAEhE,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAkCP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.GeneralLedgerTransaction$inboundSchema = exports.GeneralLedgerTransactionSourceType$inboundSchema = exports.GeneralLedgerTransactionSourceType = void 0;
40
+ exports.generalLedgerTransactionFromJSON = generalLedgerTransactionFromJSON;
41
+ const z = __importStar(require("zod/v3"));
42
+ const primitives_js_1 = require("../../lib/primitives.js");
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ const openEnums = __importStar(require("../../types/enums.js"));
45
+ const types = __importStar(require("../../types/primitives.js"));
46
+ const currency_js_1 = require("./currency.js");
47
+ const customfield_js_1 = require("./customfield.js");
48
+ const generalledgertransactionlineitem_js_1 = require("./generalledgertransactionlineitem.js");
49
+ const passthroughbody_js_1 = require("./passthroughbody.js");
50
+ /**
51
+ * The originating transaction type that produced this posting in the general ledger. Discriminates whether the entry came from an invoice, a bill, a payment, a manual journal, etc. This is the key field that distinguishes general-ledger-transactions from journal-entries (which only covers manually-captured entries). May be `null` when the upstream connector did not return an origin discriminator (e.g. Xero's single-record endpoint strips `SourceType` for every record; certain historical records also omit it). To recover a populated value, query the list endpoint.
52
+ */
53
+ exports.GeneralLedgerTransactionSourceType = {
54
+ Other: "other",
55
+ Invoice: "invoice",
56
+ Bill: "bill",
57
+ CreditNote: "credit_note",
58
+ Payment: "payment",
59
+ Refund: "refund",
60
+ Expense: "expense",
61
+ JournalEntry: "journal_entry",
62
+ Payroll: "payroll",
63
+ };
64
+ /** @internal */
65
+ exports.GeneralLedgerTransactionSourceType$inboundSchema = openEnums.inboundSchema(exports.GeneralLedgerTransactionSourceType);
66
+ /** @internal */
67
+ exports.GeneralLedgerTransaction$inboundSchema = z.object({
68
+ id: types.optional(types.string()),
69
+ source_type: types.nullable(exports.GeneralLedgerTransactionSourceType$inboundSchema),
70
+ source_id: z.nullable(types.string()).optional(),
71
+ posted_at: types.optional(types.date()),
72
+ reference: z.nullable(types.string()).optional(),
73
+ number: z.nullable(types.string()).optional(),
74
+ currency: z.nullable(currency_js_1.Currency$inboundSchema).optional(),
75
+ currency_rate: z.nullable(types.number()).optional(),
76
+ memo: z.nullable(types.string()).optional(),
77
+ line_items: z.array(generalledgertransactionlineitem_js_1.GeneralLedgerTransactionLineItem$inboundSchema),
78
+ custom_fields: types.optional(z.array(customfield_js_1.CustomField$inboundSchema)),
79
+ updated_by: z.nullable(types.string()).optional(),
80
+ created_by: z.nullable(types.string()).optional(),
81
+ updated_at: z.nullable(types.date()).optional(),
82
+ created_at: z.nullable(types.date()).optional(),
83
+ custom_mappings: z.nullable(z.record(z.any())).optional(),
84
+ pass_through: types.optional(z.array(passthroughbody_js_1.PassThroughBody$inboundSchema)),
85
+ }).transform((v) => {
86
+ return (0, primitives_js_1.remap)(v, {
87
+ "source_type": "sourceType",
88
+ "source_id": "sourceId",
89
+ "posted_at": "postedAt",
90
+ "currency_rate": "currencyRate",
91
+ "line_items": "lineItems",
92
+ "custom_fields": "customFields",
93
+ "updated_by": "updatedBy",
94
+ "created_by": "createdBy",
95
+ "updated_at": "updatedAt",
96
+ "created_at": "createdAt",
97
+ "custom_mappings": "customMappings",
98
+ "pass_through": "passThrough",
99
+ });
100
+ });
101
+ function generalLedgerTransactionFromJSON(jsonString) {
102
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GeneralLedgerTransaction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GeneralLedgerTransaction' from JSON`);
103
+ }
104
+ //# sourceMappingURL=generalledgertransaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generalledgertransaction.js","sourceRoot":"","sources":["../../src/models/components/generalledgertransaction.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6JH,4EAQC;AAnKD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AACjD,gEAAkD;AAGlD,iEAAmD;AAEnD,+CAAiE;AACjE,qDAA0E;AAC1E,+FAG+C;AAC/C,6DAG8B;AAE9B;;GAEG;AACU,QAAA,kCAAkC,GAAG;IAChD,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,eAAe;IAC7B,OAAO,EAAE,SAAS;CACV,CAAC;AA4EX,gBAAgB;AACH,QAAA,gDAAgD,GAIzD,SAAS,CAAC,aAAa,CAAC,0CAAkC,CAAC,CAAC;AAEhE,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAClC,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,wDAAgD,CAAC;IAC7E,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IACvC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7C,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,oCAAsB,CAAC,CAAC,QAAQ,EAAE;IACvD,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpD,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,oFAA8C,CAAC;IACnE,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,0CAAyB,CAAC,CAAC;IACjE,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/C,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/C,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzD,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,kDAA6B,CAAC,CAAC;CACrE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,YAAY;QAC3B,WAAW,EAAE,UAAU;QACvB,WAAW,EAAE,UAAU;QACvB,eAAe,EAAE,cAAc;QAC/B,YAAY,EAAE,WAAW;QACzB,eAAe,EAAE,cAAc;QAC/B,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;QACzB,iBAAiB,EAAE,gBAAgB;QACnC,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,56 @@
1
+ import * as z from "zod/v3";
2
+ import { OpenEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import { LinkedLedgerAccount } from "./linkedledgeraccount.js";
6
+ import { LinkedTaxRate } from "./linkedtaxrate.js";
7
+ import { LinkedTrackingCategory } from "./linkedtrackingcategory.js";
8
+ /**
9
+ * Side of the entry. Redundant with the sign of net_amount but exposed as an explicit flag for filtering convenience.
10
+ */
11
+ export declare const GeneralLedgerTransactionLineItemType: {
12
+ readonly Debit: "debit";
13
+ readonly Credit: "credit";
14
+ };
15
+ /**
16
+ * Side of the entry. Redundant with the sign of net_amount but exposed as an explicit flag for filtering convenience.
17
+ */
18
+ export type GeneralLedgerTransactionLineItemType = OpenEnum<typeof GeneralLedgerTransactionLineItemType>;
19
+ export type GeneralLedgerTransactionLineItem = {
20
+ /**
21
+ * A unique identifier for an object.
22
+ */
23
+ id?: string | undefined;
24
+ /**
25
+ * Free-text description of the line.
26
+ */
27
+ description?: string | null | undefined;
28
+ /**
29
+ * The amount posted to the ledger account, tax-exclusive. Debit entries are positive, credit entries are negative. In general-ledger views the tax component lives in its own dedicated line against a tax payable/receivable account, so net_amount is the canonical figure for reporting.
30
+ */
31
+ netAmount?: number | null | undefined;
32
+ /**
33
+ * Side of the entry. Redundant with the sign of net_amount but exposed as an explicit flag for filtering convenience.
34
+ */
35
+ type: GeneralLedgerTransactionLineItemType | null;
36
+ /**
37
+ * Tax embedded in the line. In GL views this is typically 0 or null because tax has its own dedicated line against a tax payable/receivable account. Exposed for completeness and for tax-inclusive setups.
38
+ */
39
+ taxAmount?: number | null | undefined;
40
+ taxRate?: LinkedTaxRate | undefined;
41
+ /**
42
+ * A list of linked tracking categories.
43
+ */
44
+ trackingCategories?: Array<LinkedTrackingCategory | null> | null | undefined;
45
+ ledgerAccount: LinkedLedgerAccount | null;
46
+ /**
47
+ * Line number of the resource
48
+ */
49
+ lineNumber?: number | null | undefined;
50
+ };
51
+ /** @internal */
52
+ export declare const GeneralLedgerTransactionLineItemType$inboundSchema: z.ZodType<GeneralLedgerTransactionLineItemType, z.ZodTypeDef, unknown>;
53
+ /** @internal */
54
+ export declare const GeneralLedgerTransactionLineItem$inboundSchema: z.ZodType<GeneralLedgerTransactionLineItem, z.ZodTypeDef, unknown>;
55
+ export declare function generalLedgerTransactionLineItemFromJSON(jsonString: string): SafeParseResult<GeneralLedgerTransactionLineItem, SDKValidationError>;
56
+ //# sourceMappingURL=generalledgertransactionlineitem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generalledgertransactionlineitem.d.ts","sourceRoot":"","sources":["../../src/models/components/generalledgertransactionlineitem.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,aAAa,EAA+B,MAAM,oBAAoB,CAAC;AAChF,OAAO,EACL,sBAAsB,EAEvB,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;CAGvC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG,QAAQ,CACzD,OAAO,oCAAoC,CAC5C,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,IAAI,EAAE,oCAAoC,GAAG,IAAI,CAAC;IAClD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,sBAAsB,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7E,aAAa,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC1C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,OAAO,CACwD,CAAC;AAElE,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,OAAO,CAsBP,CAAC;AAEH,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE"}
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.GeneralLedgerTransactionLineItem$inboundSchema = exports.GeneralLedgerTransactionLineItemType$inboundSchema = exports.GeneralLedgerTransactionLineItemType = void 0;
40
+ exports.generalLedgerTransactionLineItemFromJSON = generalLedgerTransactionLineItemFromJSON;
41
+ const z = __importStar(require("zod/v3"));
42
+ const primitives_js_1 = require("../../lib/primitives.js");
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ const openEnums = __importStar(require("../../types/enums.js"));
45
+ const types = __importStar(require("../../types/primitives.js"));
46
+ const linkedledgeraccount_js_1 = require("./linkedledgeraccount.js");
47
+ const linkedtaxrate_js_1 = require("./linkedtaxrate.js");
48
+ const linkedtrackingcategory_js_1 = require("./linkedtrackingcategory.js");
49
+ /**
50
+ * Side of the entry. Redundant with the sign of net_amount but exposed as an explicit flag for filtering convenience.
51
+ */
52
+ exports.GeneralLedgerTransactionLineItemType = {
53
+ Debit: "debit",
54
+ Credit: "credit",
55
+ };
56
+ /** @internal */
57
+ exports.GeneralLedgerTransactionLineItemType$inboundSchema = openEnums.inboundSchema(exports.GeneralLedgerTransactionLineItemType);
58
+ /** @internal */
59
+ exports.GeneralLedgerTransactionLineItem$inboundSchema = z.object({
60
+ id: types.optional(types.string()),
61
+ description: z.nullable(types.string()).optional(),
62
+ net_amount: z.nullable(types.number()).optional(),
63
+ type: types.nullable(exports.GeneralLedgerTransactionLineItemType$inboundSchema),
64
+ tax_amount: z.nullable(types.number()).optional(),
65
+ tax_rate: types.optional(linkedtaxrate_js_1.LinkedTaxRate$inboundSchema),
66
+ tracking_categories: z.nullable(z.array(types.nullable(linkedtrackingcategory_js_1.LinkedTrackingCategory$inboundSchema))).optional(),
67
+ ledger_account: types.nullable(linkedledgeraccount_js_1.LinkedLedgerAccount$inboundSchema),
68
+ line_number: z.nullable(types.number()).optional(),
69
+ }).transform((v) => {
70
+ return (0, primitives_js_1.remap)(v, {
71
+ "net_amount": "netAmount",
72
+ "tax_amount": "taxAmount",
73
+ "tax_rate": "taxRate",
74
+ "tracking_categories": "trackingCategories",
75
+ "ledger_account": "ledgerAccount",
76
+ "line_number": "lineNumber",
77
+ });
78
+ });
79
+ function generalLedgerTransactionLineItemFromJSON(jsonString) {
80
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GeneralLedgerTransactionLineItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GeneralLedgerTransactionLineItem' from JSON`);
81
+ }
82
+ //# sourceMappingURL=generalledgertransactionlineitem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generalledgertransactionlineitem.js","sourceRoot":"","sources":["../../src/models/components/generalledgertransactionlineitem.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsGH,4FAQC;AA5GD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AACjD,gEAAkD;AAGlD,iEAAmD;AAEnD,qEAGkC;AAClC,yDAAgF;AAChF,2EAGqC;AAErC;;GAEG;AACU,QAAA,oCAAoC,GAAG;IAClD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;CACR,CAAC;AAyCX,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,SAAS,CAAC,aAAa,CAAC,4CAAoC,CAAC,CAAC;AAElE,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAClC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClD,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,0DAAkD,CAAC;IACxE,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,8CAA2B,CAAC;IACrD,mBAAmB,EAAE,CAAC,CAAC,QAAQ,CAC7B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,gEAAoC,CAAC,CAAC,CAC9D,CAAC,QAAQ,EAAE;IACZ,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,0DAAiC,CAAC;IACjE,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;QACzB,UAAU,EAAE,SAAS;QACrB,qBAAqB,EAAE,oBAAoB;QAC3C,gBAAgB,EAAE,eAAe;QACjC,aAAa,EAAE,YAAY;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,wCAAwC,CACtD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sDAA8C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,8DAA8D,CAC/D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,46 @@
1
+ import * as z from "zod/v3";
2
+ import { OpenEnum } from "../../types/enums.js";
3
+ /**
4
+ * Filter by the originating transaction type.
5
+ */
6
+ export declare const SourceType: {
7
+ readonly Other: "other";
8
+ readonly Invoice: "invoice";
9
+ readonly Bill: "bill";
10
+ readonly CreditNote: "credit_note";
11
+ readonly Payment: "payment";
12
+ readonly Refund: "refund";
13
+ readonly Expense: "expense";
14
+ readonly JournalEntry: "journal_entry";
15
+ readonly Payroll: "payroll";
16
+ };
17
+ /**
18
+ * Filter by the originating transaction type.
19
+ */
20
+ export type SourceType = OpenEnum<typeof SourceType>;
21
+ export type GeneralLedgerTransactionsFilter = {
22
+ /**
23
+ * Filter by the originating transaction type.
24
+ */
25
+ sourceType?: SourceType | undefined;
26
+ /**
27
+ * Return only transactions originated from the given source document id.
28
+ */
29
+ sourceId?: string | undefined;
30
+ /**
31
+ * Return transactions updated on or after this timestamp.
32
+ */
33
+ updatedSince?: Date | undefined;
34
+ };
35
+ /** @internal */
36
+ export declare const SourceType$outboundSchema: z.ZodType<string, z.ZodTypeDef, SourceType>;
37
+ /** @internal */
38
+ export type GeneralLedgerTransactionsFilter$Outbound = {
39
+ source_type?: string | undefined;
40
+ source_id?: string | undefined;
41
+ updated_since?: string | undefined;
42
+ };
43
+ /** @internal */
44
+ export declare const GeneralLedgerTransactionsFilter$outboundSchema: z.ZodType<GeneralLedgerTransactionsFilter$Outbound, z.ZodTypeDef, GeneralLedgerTransactionsFilter>;
45
+ export declare function generalLedgerTransactionsFilterToJSON(generalLedgerTransactionsFilter: GeneralLedgerTransactionsFilter): string;
46
+ //# sourceMappingURL=generalledgertransactionsfilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generalledgertransactionsfilter.d.ts","sourceRoot":"","sources":["../../src/models/components/generalledgertransactionsfilter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;CAUb,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAErD,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,MAAM,EACN,CAAC,CAAC,UAAU,EACZ,UAAU,CAC4B,CAAC;AAEzC,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAW/B,CAAC;AAEH,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.GeneralLedgerTransactionsFilter$outboundSchema = exports.SourceType$outboundSchema = exports.SourceType = void 0;
40
+ exports.generalLedgerTransactionsFilterToJSON = generalLedgerTransactionsFilterToJSON;
41
+ const z = __importStar(require("zod/v3"));
42
+ const primitives_js_1 = require("../../lib/primitives.js");
43
+ const openEnums = __importStar(require("../../types/enums.js"));
44
+ /**
45
+ * Filter by the originating transaction type.
46
+ */
47
+ exports.SourceType = {
48
+ Other: "other",
49
+ Invoice: "invoice",
50
+ Bill: "bill",
51
+ CreditNote: "credit_note",
52
+ Payment: "payment",
53
+ Refund: "refund",
54
+ Expense: "expense",
55
+ JournalEntry: "journal_entry",
56
+ Payroll: "payroll",
57
+ };
58
+ /** @internal */
59
+ exports.SourceType$outboundSchema = openEnums.outboundSchema(exports.SourceType);
60
+ /** @internal */
61
+ exports.GeneralLedgerTransactionsFilter$outboundSchema = z.object({
62
+ sourceType: exports.SourceType$outboundSchema.optional(),
63
+ sourceId: z.string().optional(),
64
+ updatedSince: z.date().transform(v => v.toISOString()).optional(),
65
+ }).transform((v) => {
66
+ return (0, primitives_js_1.remap)(v, {
67
+ sourceType: "source_type",
68
+ sourceId: "source_id",
69
+ updatedSince: "updated_since",
70
+ });
71
+ });
72
+ function generalLedgerTransactionsFilterToJSON(generalLedgerTransactionsFilter) {
73
+ return JSON.stringify(exports.GeneralLedgerTransactionsFilter$outboundSchema.parse(generalLedgerTransactionsFilter));
74
+ }
75
+ //# sourceMappingURL=generalledgertransactionsfilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generalledgertransactionsfilter.js","sourceRoot":"","sources":["../../src/models/components/generalledgertransactionsfilter.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEH,sFAQC;AA9ED,0CAA4B;AAC5B,2DAA0D;AAC1D,gEAAkD;AAGlD;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,eAAe;IAC7B,OAAO,EAAE,SAAS;CACV,CAAC;AAqBX,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,SAAS,CAAC,cAAc,CAAC,kBAAU,CAAC,CAAC;AASzC,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,iCAAyB,CAAC,QAAQ,EAAE;IAChD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,YAAY,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;CAClE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,QAAQ,EAAE,WAAW;QACrB,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,qCAAqC,CACnD,+BAAgE;IAEhE,OAAO,IAAI,CAAC,SAAS,CACnB,sDAA8C,CAAC,KAAK,CAClD,+BAA+B,CAChC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,36 @@
1
+ import * as z from "zod/v3";
2
+ import { OpenEnum } from "../../types/enums.js";
3
+ import { SortDirection } from "./sortdirection.js";
4
+ /**
5
+ * The field on which to sort the General Ledger Transactions.
6
+ */
7
+ export declare const GeneralLedgerTransactionsSortBy: {
8
+ readonly PostedAt: "posted_at";
9
+ readonly UpdatedAt: "updated_at";
10
+ readonly CreatedAt: "created_at";
11
+ };
12
+ /**
13
+ * The field on which to sort the General Ledger Transactions.
14
+ */
15
+ export type GeneralLedgerTransactionsSortBy = OpenEnum<typeof GeneralLedgerTransactionsSortBy>;
16
+ export type GeneralLedgerTransactionsSort = {
17
+ /**
18
+ * The field on which to sort the General Ledger Transactions.
19
+ */
20
+ by?: GeneralLedgerTransactionsSortBy | undefined;
21
+ /**
22
+ * The direction in which to sort the results
23
+ */
24
+ direction?: SortDirection | undefined;
25
+ };
26
+ /** @internal */
27
+ export declare const GeneralLedgerTransactionsSortBy$outboundSchema: z.ZodType<string, z.ZodTypeDef, GeneralLedgerTransactionsSortBy>;
28
+ /** @internal */
29
+ export type GeneralLedgerTransactionsSort$Outbound = {
30
+ by?: string | undefined;
31
+ direction: string;
32
+ };
33
+ /** @internal */
34
+ export declare const GeneralLedgerTransactionsSort$outboundSchema: z.ZodType<GeneralLedgerTransactionsSort$Outbound, z.ZodTypeDef, GeneralLedgerTransactionsSort>;
35
+ export declare function generalLedgerTransactionsSortToJSON(generalLedgerTransactionsSort: GeneralLedgerTransactionsSort): string;
36
+ //# sourceMappingURL=generalledgertransactionssort.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generalledgertransactionssort.d.ts","sourceRoot":"","sources":["../../src/models/components/generalledgertransactionssort.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,aAAa,EAEd,MAAM,oBAAoB,CAAC;AAE5B;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;CAIlC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,QAAQ,CACpD,OAAO,+BAA+B,CACvC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,EAAE,CAAC,EAAE,+BAA+B,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,MAAM,EACN,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAC4B,CAAC;AAE9D,gBAAgB;AAChB,MAAM,MAAM,sCAAsC,GAAG;IACnD,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,sCAAsC,EACtC,CAAC,CAAC,UAAU,EACZ,6BAA6B,CAI7B,CAAC;AAEH,wBAAgB,mCAAmC,CACjD,6BAA6B,EAAE,6BAA6B,GAC3D,MAAM,CAMR"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.GeneralLedgerTransactionsSort$outboundSchema = exports.GeneralLedgerTransactionsSortBy$outboundSchema = exports.GeneralLedgerTransactionsSortBy = void 0;
40
+ exports.generalLedgerTransactionsSortToJSON = generalLedgerTransactionsSortToJSON;
41
+ const z = __importStar(require("zod/v3"));
42
+ const openEnums = __importStar(require("../../types/enums.js"));
43
+ const sortdirection_js_1 = require("./sortdirection.js");
44
+ /**
45
+ * The field on which to sort the General Ledger Transactions.
46
+ */
47
+ exports.GeneralLedgerTransactionsSortBy = {
48
+ PostedAt: "posted_at",
49
+ UpdatedAt: "updated_at",
50
+ CreatedAt: "created_at",
51
+ };
52
+ /** @internal */
53
+ exports.GeneralLedgerTransactionsSortBy$outboundSchema = openEnums.outboundSchema(exports.GeneralLedgerTransactionsSortBy);
54
+ /** @internal */
55
+ exports.GeneralLedgerTransactionsSort$outboundSchema = z.object({
56
+ by: exports.GeneralLedgerTransactionsSortBy$outboundSchema.optional(),
57
+ direction: sortdirection_js_1.SortDirection$outboundSchema.default("asc"),
58
+ });
59
+ function generalLedgerTransactionsSortToJSON(generalLedgerTransactionsSort) {
60
+ return JSON.stringify(exports.GeneralLedgerTransactionsSort$outboundSchema.parse(generalLedgerTransactionsSort));
61
+ }
62
+ //# sourceMappingURL=generalledgertransactionssort.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generalledgertransactionssort.js","sourceRoot":"","sources":["../../src/models/components/generalledgertransactionssort.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DH,kFAQC;AAjED,0CAA4B;AAC5B,gEAAkD;AAElD,yDAG4B;AAE5B;;GAEG;AACU,QAAA,+BAA+B,GAAG;IAC7C,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;CACf,CAAC;AAmBX,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,SAAS,CAAC,cAAc,CAAC,uCAA+B,CAAC,CAAC;AAQ9D,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,sDAA8C,CAAC,QAAQ,EAAE;IAC7D,SAAS,EAAE,+CAA4B,CAAC,OAAO,CAAC,KAAK,CAAC;CACvD,CAAC,CAAC;AAEH,SAAgB,mCAAmC,CACjD,6BAA4D;IAE5D,OAAO,IAAI,CAAC,SAAS,CACnB,oDAA4C,CAAC,KAAK,CAChD,6BAA6B,CAC9B,CACF,CAAC;AACJ,CAAC"}