@codat/lending 6.0.0 → 7.1.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 (786) hide show
  1. package/FUNCTIONS.md +110 -0
  2. package/README.md +55 -38
  3. package/RUNTIMES.md +48 -0
  4. package/docs/sdks/accountspayable/README.md +5 -1
  5. package/docs/sdks/accountsreceivable/README.md +5 -1
  6. package/docs/sdks/banking/README.md +5 -1
  7. package/docs/sdks/codatlending/README.md +3 -1
  8. package/docs/sdks/codatlendingdirectcosts/README.md +0 -24
  9. package/docs/sdks/companies/README.md +15 -0
  10. package/docs/sdks/financialstatements/README.md +5 -1
  11. package/docs/sdks/loanwriteback/README.md +5 -1
  12. package/docs/sdks/sales/README.md +5 -1
  13. package/docs/sdks/sourceaccounts/README.md +113 -57
  14. package/docs/sdks/transactions/README.md +5 -1
  15. package/funcs/accountingBankDataAccountsGet.d.ts.map +1 -1
  16. package/funcs/accountingBankDataAccountsGet.js +4 -3
  17. package/funcs/accountingBankDataAccountsGet.js.map +1 -1
  18. package/funcs/accountingBankDataAccountsList.d.ts.map +1 -1
  19. package/funcs/accountingBankDataAccountsList.js +4 -3
  20. package/funcs/accountingBankDataAccountsList.js.map +1 -1
  21. package/funcs/accountingBankDataListTransactions.d.ts.map +1 -1
  22. package/funcs/accountingBankDataListTransactions.js +4 -3
  23. package/funcs/accountingBankDataListTransactions.js.map +1 -1
  24. package/funcs/accountsPayableBillCreditNotesGet.d.ts.map +1 -1
  25. package/funcs/accountsPayableBillCreditNotesGet.js +4 -3
  26. package/funcs/accountsPayableBillCreditNotesGet.js.map +1 -1
  27. package/funcs/accountsPayableBillCreditNotesList.d.ts.map +1 -1
  28. package/funcs/accountsPayableBillCreditNotesList.js +4 -3
  29. package/funcs/accountsPayableBillCreditNotesList.js.map +1 -1
  30. package/funcs/accountsPayableBillPaymentsGet.d.ts.map +1 -1
  31. package/funcs/accountsPayableBillPaymentsGet.js +4 -3
  32. package/funcs/accountsPayableBillPaymentsGet.js.map +1 -1
  33. package/funcs/accountsPayableBillPaymentsList.d.ts.map +1 -1
  34. package/funcs/accountsPayableBillPaymentsList.js +4 -3
  35. package/funcs/accountsPayableBillPaymentsList.js.map +1 -1
  36. package/funcs/accountsPayableBillsDownloadAttachment.d.ts.map +1 -1
  37. package/funcs/accountsPayableBillsDownloadAttachment.js +4 -3
  38. package/funcs/accountsPayableBillsDownloadAttachment.js.map +1 -1
  39. package/funcs/accountsPayableBillsGet.d.ts.map +1 -1
  40. package/funcs/accountsPayableBillsGet.js +4 -3
  41. package/funcs/accountsPayableBillsGet.js.map +1 -1
  42. package/funcs/accountsPayableBillsGetAttachment.d.ts.map +1 -1
  43. package/funcs/accountsPayableBillsGetAttachment.js +4 -3
  44. package/funcs/accountsPayableBillsGetAttachment.js.map +1 -1
  45. package/funcs/accountsPayableBillsList.d.ts.map +1 -1
  46. package/funcs/accountsPayableBillsList.js +4 -3
  47. package/funcs/accountsPayableBillsList.js.map +1 -1
  48. package/funcs/accountsPayableBillsListAttachments.d.ts.map +1 -1
  49. package/funcs/accountsPayableBillsListAttachments.js +4 -3
  50. package/funcs/accountsPayableBillsListAttachments.js.map +1 -1
  51. package/funcs/accountsPayableSuppliersDownloadAttachment.d.ts.map +1 -1
  52. package/funcs/accountsPayableSuppliersDownloadAttachment.js +4 -3
  53. package/funcs/accountsPayableSuppliersDownloadAttachment.js.map +1 -1
  54. package/funcs/accountsPayableSuppliersGet.d.ts.map +1 -1
  55. package/funcs/accountsPayableSuppliersGet.js +4 -3
  56. package/funcs/accountsPayableSuppliersGet.js.map +1 -1
  57. package/funcs/accountsPayableSuppliersGetAttachment.d.ts.map +1 -1
  58. package/funcs/accountsPayableSuppliersGetAttachment.js +4 -3
  59. package/funcs/accountsPayableSuppliersGetAttachment.js.map +1 -1
  60. package/funcs/accountsPayableSuppliersList.d.ts.map +1 -1
  61. package/funcs/accountsPayableSuppliersList.js +4 -3
  62. package/funcs/accountsPayableSuppliersList.js.map +1 -1
  63. package/funcs/accountsPayableSuppliersListAttachments.d.ts.map +1 -1
  64. package/funcs/accountsPayableSuppliersListAttachments.js +4 -3
  65. package/funcs/accountsPayableSuppliersListAttachments.js.map +1 -1
  66. package/funcs/accountsReceivableCreditNotesGet.d.ts.map +1 -1
  67. package/funcs/accountsReceivableCreditNotesGet.js +4 -3
  68. package/funcs/accountsReceivableCreditNotesGet.js.map +1 -1
  69. package/funcs/accountsReceivableCreditNotesList.d.ts.map +1 -1
  70. package/funcs/accountsReceivableCreditNotesList.js +4 -3
  71. package/funcs/accountsReceivableCreditNotesList.js.map +1 -1
  72. package/funcs/accountsReceivableCustomersDownloadAttachment.d.ts.map +1 -1
  73. package/funcs/accountsReceivableCustomersDownloadAttachment.js +4 -3
  74. package/funcs/accountsReceivableCustomersDownloadAttachment.js.map +1 -1
  75. package/funcs/accountsReceivableCustomersGet.d.ts.map +1 -1
  76. package/funcs/accountsReceivableCustomersGet.js +4 -3
  77. package/funcs/accountsReceivableCustomersGet.js.map +1 -1
  78. package/funcs/accountsReceivableCustomersGetAttachment.d.ts.map +1 -1
  79. package/funcs/accountsReceivableCustomersGetAttachment.js +4 -3
  80. package/funcs/accountsReceivableCustomersGetAttachment.js.map +1 -1
  81. package/funcs/accountsReceivableCustomersList.d.ts.map +1 -1
  82. package/funcs/accountsReceivableCustomersList.js +4 -3
  83. package/funcs/accountsReceivableCustomersList.js.map +1 -1
  84. package/funcs/accountsReceivableCustomersListAttachments.d.ts.map +1 -1
  85. package/funcs/accountsReceivableCustomersListAttachments.js +4 -3
  86. package/funcs/accountsReceivableCustomersListAttachments.js.map +1 -1
  87. package/funcs/accountsReceivableDirectIncomesDownloadAttachment.d.ts.map +1 -1
  88. package/funcs/accountsReceivableDirectIncomesDownloadAttachment.js +4 -3
  89. package/funcs/accountsReceivableDirectIncomesDownloadAttachment.js.map +1 -1
  90. package/funcs/accountsReceivableDirectIncomesGet.d.ts.map +1 -1
  91. package/funcs/accountsReceivableDirectIncomesGet.js +4 -3
  92. package/funcs/accountsReceivableDirectIncomesGet.js.map +1 -1
  93. package/funcs/accountsReceivableDirectIncomesGetAttachment.d.ts.map +1 -1
  94. package/funcs/accountsReceivableDirectIncomesGetAttachment.js +4 -3
  95. package/funcs/accountsReceivableDirectIncomesGetAttachment.js.map +1 -1
  96. package/funcs/accountsReceivableDirectIncomesList.d.ts.map +1 -1
  97. package/funcs/accountsReceivableDirectIncomesList.js +4 -3
  98. package/funcs/accountsReceivableDirectIncomesList.js.map +1 -1
  99. package/funcs/accountsReceivableDirectIncomesListAttachments.d.ts.map +1 -1
  100. package/funcs/accountsReceivableDirectIncomesListAttachments.js +4 -3
  101. package/funcs/accountsReceivableDirectIncomesListAttachments.js.map +1 -1
  102. package/funcs/accountsReceivableInvoicesDownloadAttachment.d.ts.map +1 -1
  103. package/funcs/accountsReceivableInvoicesDownloadAttachment.js +4 -3
  104. package/funcs/accountsReceivableInvoicesDownloadAttachment.js.map +1 -1
  105. package/funcs/accountsReceivableInvoicesDownloadPdf.d.ts.map +1 -1
  106. package/funcs/accountsReceivableInvoicesDownloadPdf.js +4 -3
  107. package/funcs/accountsReceivableInvoicesDownloadPdf.js.map +1 -1
  108. package/funcs/accountsReceivableInvoicesGet.d.ts.map +1 -1
  109. package/funcs/accountsReceivableInvoicesGet.js +4 -3
  110. package/funcs/accountsReceivableInvoicesGet.js.map +1 -1
  111. package/funcs/accountsReceivableInvoicesGetAttachment.d.ts.map +1 -1
  112. package/funcs/accountsReceivableInvoicesGetAttachment.js +4 -3
  113. package/funcs/accountsReceivableInvoicesGetAttachment.js.map +1 -1
  114. package/funcs/accountsReceivableInvoicesList.d.ts.map +1 -1
  115. package/funcs/accountsReceivableInvoicesList.js +4 -3
  116. package/funcs/accountsReceivableInvoicesList.js.map +1 -1
  117. package/funcs/accountsReceivableInvoicesListAttachments.d.ts.map +1 -1
  118. package/funcs/accountsReceivableInvoicesListAttachments.js +4 -3
  119. package/funcs/accountsReceivableInvoicesListAttachments.js.map +1 -1
  120. package/funcs/accountsReceivableInvoicesListReconciled.d.ts.map +1 -1
  121. package/funcs/accountsReceivableInvoicesListReconciled.js +4 -3
  122. package/funcs/accountsReceivableInvoicesListReconciled.js.map +1 -1
  123. package/funcs/accountsReceivablePaymentsGet.d.ts.map +1 -1
  124. package/funcs/accountsReceivablePaymentsGet.js +4 -3
  125. package/funcs/accountsReceivablePaymentsGet.js.map +1 -1
  126. package/funcs/accountsReceivablePaymentsList.d.ts.map +1 -1
  127. package/funcs/accountsReceivablePaymentsList.js +4 -3
  128. package/funcs/accountsReceivablePaymentsList.js.map +1 -1
  129. package/funcs/accountsReceivableReportsGetAgedCreditors.d.ts.map +1 -1
  130. package/funcs/accountsReceivableReportsGetAgedCreditors.js +4 -3
  131. package/funcs/accountsReceivableReportsGetAgedCreditors.js.map +1 -1
  132. package/funcs/accountsReceivableReportsGetAgedDebtors.d.ts.map +1 -1
  133. package/funcs/accountsReceivableReportsGetAgedDebtors.js +4 -3
  134. package/funcs/accountsReceivableReportsGetAgedDebtors.js.map +1 -1
  135. package/funcs/accountsReceivableReportsIsAgedCreditorsAvailable.d.ts.map +1 -1
  136. package/funcs/accountsReceivableReportsIsAgedCreditorsAvailable.js +4 -3
  137. package/funcs/accountsReceivableReportsIsAgedCreditorsAvailable.js.map +1 -1
  138. package/funcs/accountsReceivableReportsIsAgedDebtorsAvailable.d.ts.map +1 -1
  139. package/funcs/accountsReceivableReportsIsAgedDebtorsAvailable.js +4 -3
  140. package/funcs/accountsReceivableReportsIsAgedDebtorsAvailable.js.map +1 -1
  141. package/funcs/bankStatementsEndUploadSession.d.ts.map +1 -1
  142. package/funcs/bankStatementsEndUploadSession.js +4 -3
  143. package/funcs/bankStatementsEndUploadSession.js.map +1 -1
  144. package/funcs/bankStatementsGetUploadConfiguration.d.ts.map +1 -1
  145. package/funcs/bankStatementsGetUploadConfiguration.js +4 -3
  146. package/funcs/bankStatementsGetUploadConfiguration.js.map +1 -1
  147. package/funcs/bankStatementsSetUploadConfiguration.d.ts.map +1 -1
  148. package/funcs/bankStatementsSetUploadConfiguration.js +4 -3
  149. package/funcs/bankStatementsSetUploadConfiguration.js.map +1 -1
  150. package/funcs/bankStatementsStartUploadSession.d.ts.map +1 -1
  151. package/funcs/bankStatementsStartUploadSession.js +4 -3
  152. package/funcs/bankStatementsStartUploadSession.js.map +1 -1
  153. package/funcs/bankStatementsUploadBankStatementData.d.ts.map +1 -1
  154. package/funcs/bankStatementsUploadBankStatementData.js +4 -3
  155. package/funcs/bankStatementsUploadBankStatementData.js.map +1 -1
  156. package/funcs/bankingAccountBalancesList.d.ts.map +1 -1
  157. package/funcs/bankingAccountBalancesList.js +4 -3
  158. package/funcs/bankingAccountBalancesList.js.map +1 -1
  159. package/funcs/bankingAccountsGet.d.ts.map +1 -1
  160. package/funcs/bankingAccountsGet.js +4 -3
  161. package/funcs/bankingAccountsGet.js.map +1 -1
  162. package/funcs/bankingAccountsList.d.ts.map +1 -1
  163. package/funcs/bankingAccountsList.js +4 -3
  164. package/funcs/bankingAccountsList.js.map +1 -1
  165. package/funcs/bankingCategorizedStatementGet.d.ts.map +1 -1
  166. package/funcs/bankingCategorizedStatementGet.js +4 -3
  167. package/funcs/bankingCategorizedStatementGet.js.map +1 -1
  168. package/funcs/bankingTransactionCategoriesGet.d.ts.map +1 -1
  169. package/funcs/bankingTransactionCategoriesGet.js +4 -3
  170. package/funcs/bankingTransactionCategoriesGet.js.map +1 -1
  171. package/funcs/bankingTransactionCategoriesList.d.ts.map +1 -1
  172. package/funcs/bankingTransactionCategoriesList.js +4 -3
  173. package/funcs/bankingTransactionCategoriesList.js.map +1 -1
  174. package/funcs/bankingTransactionsGet.d.ts.map +1 -1
  175. package/funcs/bankingTransactionsGet.js +4 -3
  176. package/funcs/bankingTransactionsGet.js.map +1 -1
  177. package/funcs/bankingTransactionsList.d.ts.map +1 -1
  178. package/funcs/bankingTransactionsList.js +4 -3
  179. package/funcs/bankingTransactionsList.js.map +1 -1
  180. package/funcs/companiesCreate.d.ts.map +1 -1
  181. package/funcs/companiesCreate.js +4 -3
  182. package/funcs/companiesCreate.js.map +1 -1
  183. package/funcs/companiesDelete.d.ts.map +1 -1
  184. package/funcs/companiesDelete.js +4 -3
  185. package/funcs/companiesDelete.js.map +1 -1
  186. package/funcs/companiesGet.d.ts.map +1 -1
  187. package/funcs/companiesGet.js +4 -3
  188. package/funcs/companiesGet.js.map +1 -1
  189. package/funcs/companiesList.d.ts +13 -0
  190. package/funcs/companiesList.d.ts.map +1 -1
  191. package/funcs/companiesList.js +22 -7
  192. package/funcs/companiesList.js.map +1 -1
  193. package/funcs/companiesUpdate.d.ts.map +1 -1
  194. package/funcs/companiesUpdate.js +4 -3
  195. package/funcs/companiesUpdate.js.map +1 -1
  196. package/funcs/companyInfoGetAccountingProfile.d.ts.map +1 -1
  197. package/funcs/companyInfoGetAccountingProfile.js +4 -3
  198. package/funcs/companyInfoGetAccountingProfile.js.map +1 -1
  199. package/funcs/companyInfoGetCommerceProfile.d.ts.map +1 -1
  200. package/funcs/companyInfoGetCommerceProfile.js +4 -3
  201. package/funcs/companyInfoGetCommerceProfile.js.map +1 -1
  202. package/funcs/connectionsCreate.d.ts.map +1 -1
  203. package/funcs/connectionsCreate.js +4 -3
  204. package/funcs/connectionsCreate.js.map +1 -1
  205. package/funcs/connectionsDelete.d.ts.map +1 -1
  206. package/funcs/connectionsDelete.js +4 -3
  207. package/funcs/connectionsDelete.js.map +1 -1
  208. package/funcs/connectionsGet.d.ts.map +1 -1
  209. package/funcs/connectionsGet.js +4 -3
  210. package/funcs/connectionsGet.js.map +1 -1
  211. package/funcs/connectionsList.d.ts.map +1 -1
  212. package/funcs/connectionsList.js +4 -3
  213. package/funcs/connectionsList.js.map +1 -1
  214. package/funcs/connectionsUnlink.d.ts.map +1 -1
  215. package/funcs/connectionsUnlink.js +4 -3
  216. package/funcs/connectionsUnlink.js.map +1 -1
  217. package/funcs/dataIntegrityDetails.d.ts.map +1 -1
  218. package/funcs/dataIntegrityDetails.js +4 -3
  219. package/funcs/dataIntegrityDetails.js.map +1 -1
  220. package/funcs/dataIntegrityStatus.d.ts.map +1 -1
  221. package/funcs/dataIntegrityStatus.js +4 -3
  222. package/funcs/dataIntegrityStatus.js.map +1 -1
  223. package/funcs/dataIntegritySummaries.d.ts.map +1 -1
  224. package/funcs/dataIntegritySummaries.js +4 -3
  225. package/funcs/dataIntegritySummaries.js.map +1 -1
  226. package/funcs/excelReportsDownload.d.ts.map +1 -1
  227. package/funcs/excelReportsDownload.js +4 -3
  228. package/funcs/excelReportsDownload.js.map +1 -1
  229. package/funcs/excelReportsGenerate.d.ts.map +1 -1
  230. package/funcs/excelReportsGenerate.js +4 -3
  231. package/funcs/excelReportsGenerate.js.map +1 -1
  232. package/funcs/excelReportsGetStatus.d.ts.map +1 -1
  233. package/funcs/excelReportsGetStatus.js +4 -3
  234. package/funcs/excelReportsGetStatus.js.map +1 -1
  235. package/funcs/fileUploadDownload.d.ts.map +1 -1
  236. package/funcs/fileUploadDownload.js +4 -3
  237. package/funcs/fileUploadDownload.js.map +1 -1
  238. package/funcs/fileUploadListUploaded.d.ts.map +1 -1
  239. package/funcs/fileUploadListUploaded.js +4 -3
  240. package/funcs/fileUploadListUploaded.js.map +1 -1
  241. package/funcs/fileUploadUpload.d.ts.map +1 -1
  242. package/funcs/fileUploadUpload.js +4 -3
  243. package/funcs/fileUploadUpload.js.map +1 -1
  244. package/funcs/financialStatementsAccountsGet.d.ts.map +1 -1
  245. package/funcs/financialStatementsAccountsGet.js +4 -3
  246. package/funcs/financialStatementsAccountsGet.js.map +1 -1
  247. package/funcs/financialStatementsAccountsList.d.ts.map +1 -1
  248. package/funcs/financialStatementsAccountsList.js +4 -3
  249. package/funcs/financialStatementsAccountsList.js.map +1 -1
  250. package/funcs/financialStatementsBalanceSheetGet.d.ts.map +1 -1
  251. package/funcs/financialStatementsBalanceSheetGet.js +4 -3
  252. package/funcs/financialStatementsBalanceSheetGet.js.map +1 -1
  253. package/funcs/financialStatementsBalanceSheetGetCategorizedAccounts.d.ts.map +1 -1
  254. package/funcs/financialStatementsBalanceSheetGetCategorizedAccounts.js +4 -3
  255. package/funcs/financialStatementsBalanceSheetGetCategorizedAccounts.js.map +1 -1
  256. package/funcs/financialStatementsCashFlowGet.d.ts.map +1 -1
  257. package/funcs/financialStatementsCashFlowGet.js +4 -3
  258. package/funcs/financialStatementsCashFlowGet.js.map +1 -1
  259. package/funcs/financialStatementsProfitAndLossGet.d.ts.map +1 -1
  260. package/funcs/financialStatementsProfitAndLossGet.js +4 -3
  261. package/funcs/financialStatementsProfitAndLossGet.js.map +1 -1
  262. package/funcs/financialStatementsProfitAndLossGetCategorizedAccounts.d.ts.map +1 -1
  263. package/funcs/financialStatementsProfitAndLossGetCategorizedAccounts.js +4 -3
  264. package/funcs/financialStatementsProfitAndLossGetCategorizedAccounts.js.map +1 -1
  265. package/funcs/liabilitiesGenerateLoanSummary.d.ts.map +1 -1
  266. package/funcs/liabilitiesGenerateLoanSummary.js +4 -3
  267. package/funcs/liabilitiesGenerateLoanSummary.js.map +1 -1
  268. package/funcs/liabilitiesGenerateLoanTransactions.d.ts.map +1 -1
  269. package/funcs/liabilitiesGenerateLoanTransactions.js +4 -3
  270. package/funcs/liabilitiesGenerateLoanTransactions.js.map +1 -1
  271. package/funcs/liabilitiesGetLoanSummary.d.ts.map +1 -1
  272. package/funcs/liabilitiesGetLoanSummary.js +4 -3
  273. package/funcs/liabilitiesGetLoanSummary.js.map +1 -1
  274. package/funcs/liabilitiesListLoanTransactions.d.ts.map +1 -1
  275. package/funcs/liabilitiesListLoanTransactions.js +4 -3
  276. package/funcs/liabilitiesListLoanTransactions.js.map +1 -1
  277. package/funcs/loanWritebackAccountsCreate.d.ts.map +1 -1
  278. package/funcs/loanWritebackAccountsCreate.js +4 -3
  279. package/funcs/loanWritebackAccountsCreate.js.map +1 -1
  280. package/funcs/loanWritebackAccountsGetCreateModel.d.ts.map +1 -1
  281. package/funcs/loanWritebackAccountsGetCreateModel.js +4 -3
  282. package/funcs/loanWritebackAccountsGetCreateModel.js.map +1 -1
  283. package/funcs/loanWritebackBankAccountsCreate.d.ts.map +1 -1
  284. package/funcs/loanWritebackBankAccountsCreate.js +4 -3
  285. package/funcs/loanWritebackBankAccountsCreate.js.map +1 -1
  286. package/funcs/loanWritebackBankAccountsGetCreateUpdateModel.d.ts.map +1 -1
  287. package/funcs/loanWritebackBankAccountsGetCreateUpdateModel.js +4 -3
  288. package/funcs/loanWritebackBankAccountsGetCreateUpdateModel.js.map +1 -1
  289. package/funcs/loanWritebackBankTransactionsCreate.d.ts.map +1 -1
  290. package/funcs/loanWritebackBankTransactionsCreate.js +4 -3
  291. package/funcs/loanWritebackBankTransactionsCreate.js.map +1 -1
  292. package/funcs/loanWritebackBankTransactionsGetCreateModel.d.ts.map +1 -1
  293. package/funcs/loanWritebackBankTransactionsGetCreateModel.js +4 -3
  294. package/funcs/loanWritebackBankTransactionsGetCreateModel.js.map +1 -1
  295. package/funcs/loanWritebackCreateOperationsGet.d.ts.map +1 -1
  296. package/funcs/loanWritebackCreateOperationsGet.js +4 -3
  297. package/funcs/loanWritebackCreateOperationsGet.js.map +1 -1
  298. package/funcs/loanWritebackCreateOperationsList.d.ts.map +1 -1
  299. package/funcs/loanWritebackCreateOperationsList.js +4 -3
  300. package/funcs/loanWritebackCreateOperationsList.js.map +1 -1
  301. package/funcs/loanWritebackDirectCostsCreate.d.ts.map +1 -1
  302. package/funcs/loanWritebackDirectCostsCreate.js +4 -3
  303. package/funcs/loanWritebackDirectCostsCreate.js.map +1 -1
  304. package/funcs/loanWritebackDirectCostsGetCreateModel.d.ts.map +1 -1
  305. package/funcs/loanWritebackDirectCostsGetCreateModel.js +4 -3
  306. package/funcs/loanWritebackDirectCostsGetCreateModel.js.map +1 -1
  307. package/funcs/loanWritebackPaymentsCreate.d.ts.map +1 -1
  308. package/funcs/loanWritebackPaymentsCreate.js +4 -3
  309. package/funcs/loanWritebackPaymentsCreate.js.map +1 -1
  310. package/funcs/loanWritebackPaymentsGetCreateModel.d.ts.map +1 -1
  311. package/funcs/loanWritebackPaymentsGetCreateModel.js +4 -3
  312. package/funcs/loanWritebackPaymentsGetCreateModel.js.map +1 -1
  313. package/funcs/loanWritebackSourceAccountsCreate.d.ts +0 -21
  314. package/funcs/loanWritebackSourceAccountsCreate.d.ts.map +1 -1
  315. package/funcs/loanWritebackSourceAccountsCreate.js +4 -24
  316. package/funcs/loanWritebackSourceAccountsCreate.js.map +1 -1
  317. package/funcs/loanWritebackSourceAccountsCreateMapping.d.ts +21 -0
  318. package/funcs/loanWritebackSourceAccountsCreateMapping.d.ts.map +1 -1
  319. package/funcs/loanWritebackSourceAccountsCreateMapping.js +25 -3
  320. package/funcs/loanWritebackSourceAccountsCreateMapping.js.map +1 -1
  321. package/funcs/loanWritebackSourceAccountsListMappings.d.ts +23 -0
  322. package/funcs/loanWritebackSourceAccountsListMappings.d.ts.map +1 -0
  323. package/funcs/loanWritebackSourceAccountsListMappings.js +127 -0
  324. package/funcs/loanWritebackSourceAccountsListMappings.js.map +1 -0
  325. package/funcs/loanWritebackSuppliersCreate.d.ts.map +1 -1
  326. package/funcs/loanWritebackSuppliersCreate.js +4 -3
  327. package/funcs/loanWritebackSuppliersCreate.js.map +1 -1
  328. package/funcs/loanWritebackSuppliersGetCreateUpdateModel.d.ts.map +1 -1
  329. package/funcs/loanWritebackSuppliersGetCreateUpdateModel.js +4 -3
  330. package/funcs/loanWritebackSuppliersGetCreateUpdateModel.js.map +1 -1
  331. package/funcs/loanWritebackTransfersCreate.d.ts.map +1 -1
  332. package/funcs/loanWritebackTransfersCreate.js +4 -3
  333. package/funcs/loanWritebackTransfersCreate.js.map +1 -1
  334. package/funcs/loanWritebackTransfersGetCreateModel.d.ts.map +1 -1
  335. package/funcs/loanWritebackTransfersGetCreateModel.js +4 -3
  336. package/funcs/loanWritebackTransfersGetCreateModel.js.map +1 -1
  337. package/funcs/manageDataGetStatus.d.ts.map +1 -1
  338. package/funcs/manageDataGetStatus.js +4 -3
  339. package/funcs/manageDataGetStatus.js.map +1 -1
  340. package/funcs/manageDataPullOperationsGet.d.ts.map +1 -1
  341. package/funcs/manageDataPullOperationsGet.js +4 -3
  342. package/funcs/manageDataPullOperationsGet.js.map +1 -1
  343. package/funcs/manageDataPullOperationsList.d.ts.map +1 -1
  344. package/funcs/manageDataPullOperationsList.js +4 -3
  345. package/funcs/manageDataPullOperationsList.js.map +1 -1
  346. package/funcs/manageDataRefreshAllDataTypes.d.ts.map +1 -1
  347. package/funcs/manageDataRefreshAllDataTypes.js +4 -3
  348. package/funcs/manageDataRefreshAllDataTypes.js.map +1 -1
  349. package/funcs/manageDataRefreshDataType.d.ts.map +1 -1
  350. package/funcs/manageDataRefreshDataType.js +4 -3
  351. package/funcs/manageDataRefreshDataType.js.map +1 -1
  352. package/funcs/manageReportsGenerateReport.d.ts.map +1 -1
  353. package/funcs/manageReportsGenerateReport.js +5 -4
  354. package/funcs/manageReportsGenerateReport.js.map +1 -1
  355. package/funcs/manageReportsListReports.d.ts.map +1 -1
  356. package/funcs/manageReportsListReports.js +4 -3
  357. package/funcs/manageReportsListReports.js.map +1 -1
  358. package/funcs/salesCustomersGet.d.ts.map +1 -1
  359. package/funcs/salesCustomersGet.js +4 -3
  360. package/funcs/salesCustomersGet.js.map +1 -1
  361. package/funcs/salesCustomersList.d.ts.map +1 -1
  362. package/funcs/salesCustomersList.js +4 -3
  363. package/funcs/salesCustomersList.js.map +1 -1
  364. package/funcs/salesDisputesGet.d.ts.map +1 -1
  365. package/funcs/salesDisputesGet.js +4 -3
  366. package/funcs/salesDisputesGet.js.map +1 -1
  367. package/funcs/salesDisputesList.d.ts.map +1 -1
  368. package/funcs/salesDisputesList.js +4 -3
  369. package/funcs/salesDisputesList.js.map +1 -1
  370. package/funcs/salesLocationsGet.d.ts.map +1 -1
  371. package/funcs/salesLocationsGet.js +4 -3
  372. package/funcs/salesLocationsGet.js.map +1 -1
  373. package/funcs/salesLocationsList.d.ts.map +1 -1
  374. package/funcs/salesLocationsList.js +4 -3
  375. package/funcs/salesLocationsList.js.map +1 -1
  376. package/funcs/salesMetricsGetCustomerRetention.d.ts.map +1 -1
  377. package/funcs/salesMetricsGetCustomerRetention.js +4 -3
  378. package/funcs/salesMetricsGetCustomerRetention.js.map +1 -1
  379. package/funcs/salesMetricsGetLifetimeValue.d.ts.map +1 -1
  380. package/funcs/salesMetricsGetLifetimeValue.js +4 -3
  381. package/funcs/salesMetricsGetLifetimeValue.js.map +1 -1
  382. package/funcs/salesMetricsGetRevenue.d.ts.map +1 -1
  383. package/funcs/salesMetricsGetRevenue.js +4 -3
  384. package/funcs/salesMetricsGetRevenue.js.map +1 -1
  385. package/funcs/salesOrdersGet.d.ts.map +1 -1
  386. package/funcs/salesOrdersGet.js +4 -3
  387. package/funcs/salesOrdersGet.js.map +1 -1
  388. package/funcs/salesOrdersList.d.ts.map +1 -1
  389. package/funcs/salesOrdersList.js +4 -3
  390. package/funcs/salesOrdersList.js.map +1 -1
  391. package/funcs/salesPaymentMethodsGet.d.ts.map +1 -1
  392. package/funcs/salesPaymentMethodsGet.js +4 -3
  393. package/funcs/salesPaymentMethodsGet.js.map +1 -1
  394. package/funcs/salesPaymentMethodsList.d.ts.map +1 -1
  395. package/funcs/salesPaymentMethodsList.js +4 -3
  396. package/funcs/salesPaymentMethodsList.js.map +1 -1
  397. package/funcs/salesPaymentsGet.d.ts.map +1 -1
  398. package/funcs/salesPaymentsGet.js +4 -3
  399. package/funcs/salesPaymentsGet.js.map +1 -1
  400. package/funcs/salesPaymentsList.d.ts.map +1 -1
  401. package/funcs/salesPaymentsList.js +4 -3
  402. package/funcs/salesPaymentsList.js.map +1 -1
  403. package/funcs/salesProductCategoriesGet.d.ts.map +1 -1
  404. package/funcs/salesProductCategoriesGet.js +4 -3
  405. package/funcs/salesProductCategoriesGet.js.map +1 -1
  406. package/funcs/salesProductCategoriesList.d.ts.map +1 -1
  407. package/funcs/salesProductCategoriesList.js +4 -3
  408. package/funcs/salesProductCategoriesList.js.map +1 -1
  409. package/funcs/salesProductsGet.d.ts.map +1 -1
  410. package/funcs/salesProductsGet.js +4 -3
  411. package/funcs/salesProductsGet.js.map +1 -1
  412. package/funcs/salesProductsList.d.ts.map +1 -1
  413. package/funcs/salesProductsList.js +4 -3
  414. package/funcs/salesProductsList.js.map +1 -1
  415. package/funcs/salesReportsGetOrders.d.ts.map +1 -1
  416. package/funcs/salesReportsGetOrders.js +4 -3
  417. package/funcs/salesReportsGetOrders.js.map +1 -1
  418. package/funcs/salesReportsGetRefunds.d.ts.map +1 -1
  419. package/funcs/salesReportsGetRefunds.js +4 -3
  420. package/funcs/salesReportsGetRefunds.js.map +1 -1
  421. package/funcs/salesTransactionsGet.d.ts.map +1 -1
  422. package/funcs/salesTransactionsGet.js +4 -3
  423. package/funcs/salesTransactionsGet.js.map +1 -1
  424. package/funcs/salesTransactionsList.d.ts.map +1 -1
  425. package/funcs/salesTransactionsList.js +4 -3
  426. package/funcs/salesTransactionsList.js.map +1 -1
  427. package/funcs/transactionsAccountTransactionsGet.d.ts.map +1 -1
  428. package/funcs/transactionsAccountTransactionsGet.js +4 -3
  429. package/funcs/transactionsAccountTransactionsGet.js.map +1 -1
  430. package/funcs/transactionsAccountTransactionsList.d.ts.map +1 -1
  431. package/funcs/transactionsAccountTransactionsList.js +4 -3
  432. package/funcs/transactionsAccountTransactionsList.js.map +1 -1
  433. package/funcs/transactionsDirectCostsDownloadAttachment.d.ts.map +1 -1
  434. package/funcs/transactionsDirectCostsDownloadAttachment.js +4 -3
  435. package/funcs/transactionsDirectCostsDownloadAttachment.js.map +1 -1
  436. package/funcs/transactionsDirectCostsGet.d.ts.map +1 -1
  437. package/funcs/transactionsDirectCostsGet.js +4 -3
  438. package/funcs/transactionsDirectCostsGet.js.map +1 -1
  439. package/funcs/transactionsDirectCostsGetAttachment.d.ts.map +1 -1
  440. package/funcs/transactionsDirectCostsGetAttachment.js +4 -3
  441. package/funcs/transactionsDirectCostsGetAttachment.js.map +1 -1
  442. package/funcs/transactionsDirectCostsList.d.ts.map +1 -1
  443. package/funcs/transactionsDirectCostsList.js +4 -3
  444. package/funcs/transactionsDirectCostsList.js.map +1 -1
  445. package/funcs/transactionsDirectCostsListAttachments.d.ts.map +1 -1
  446. package/funcs/transactionsDirectCostsListAttachments.js +4 -3
  447. package/funcs/transactionsDirectCostsListAttachments.js.map +1 -1
  448. package/funcs/transactionsJournalEntriesGet.d.ts.map +1 -1
  449. package/funcs/transactionsJournalEntriesGet.js +4 -3
  450. package/funcs/transactionsJournalEntriesGet.js.map +1 -1
  451. package/funcs/transactionsJournalEntriesList.d.ts.map +1 -1
  452. package/funcs/transactionsJournalEntriesList.js +4 -3
  453. package/funcs/transactionsJournalEntriesList.js.map +1 -1
  454. package/funcs/transactionsJournalsGet.d.ts.map +1 -1
  455. package/funcs/transactionsJournalsGet.js +4 -3
  456. package/funcs/transactionsJournalsGet.js.map +1 -1
  457. package/funcs/transactionsJournalsList.d.ts.map +1 -1
  458. package/funcs/transactionsJournalsList.js +4 -3
  459. package/funcs/transactionsJournalsList.js.map +1 -1
  460. package/funcs/transactionsTransfersGet.d.ts.map +1 -1
  461. package/funcs/transactionsTransfersGet.js +4 -3
  462. package/funcs/transactionsTransfersGet.js.map +1 -1
  463. package/funcs/transactionsTransfersList.d.ts.map +1 -1
  464. package/funcs/transactionsTransfersList.js +4 -3
  465. package/funcs/transactionsTransfersList.js.map +1 -1
  466. package/hooks/hooks.d.ts.map +1 -1
  467. package/hooks/hooks.js +18 -0
  468. package/hooks/hooks.js.map +1 -1
  469. package/hooks/types.d.ts +3 -0
  470. package/hooks/types.d.ts.map +1 -1
  471. package/lib/config.d.ts +3 -3
  472. package/lib/config.js +4 -5
  473. package/lib/config.js.map +1 -1
  474. package/lib/encodings.js +18 -19
  475. package/lib/encodings.js.map +1 -1
  476. package/lib/http.js +1 -2
  477. package/lib/http.js.map +1 -1
  478. package/lib/matchers.js +5 -6
  479. package/lib/matchers.js.map +1 -1
  480. package/lib/primitives.d.ts +2 -0
  481. package/lib/primitives.d.ts.map +1 -1
  482. package/lib/primitives.js +54 -1
  483. package/lib/primitives.js.map +1 -1
  484. package/lib/retries.js +3 -4
  485. package/lib/retries.js.map +1 -1
  486. package/lib/sdks.d.ts +5 -1
  487. package/lib/sdks.d.ts.map +1 -1
  488. package/lib/sdks.js +16 -16
  489. package/lib/sdks.js.map +1 -1
  490. package/lib/security.js +2 -2
  491. package/lib/security.js.map +1 -1
  492. package/lib/url.js +1 -1
  493. package/lib/url.js.map +1 -1
  494. package/package.json +1 -1
  495. package/sdk/accountingbankdata.js +1 -2
  496. package/sdk/accountingbankdata.js.map +1 -1
  497. package/sdk/accountspayable.js +4 -8
  498. package/sdk/accountspayable.js.map +1 -1
  499. package/sdk/accountsreceivable.js +6 -12
  500. package/sdk/accountsreceivable.js.map +1 -1
  501. package/sdk/banking.js +5 -10
  502. package/sdk/banking.js.map +1 -1
  503. package/sdk/companies.d.ts +13 -0
  504. package/sdk/companies.d.ts.map +1 -1
  505. package/sdk/companies.js +13 -0
  506. package/sdk/companies.js.map +1 -1
  507. package/sdk/financialstatements.js +4 -8
  508. package/sdk/financialstatements.js.map +1 -1
  509. package/sdk/loanwriteback.js +9 -18
  510. package/sdk/loanwriteback.js.map +1 -1
  511. package/sdk/managedata.js +2 -4
  512. package/sdk/managedata.js.map +1 -1
  513. package/sdk/models/errors/httpclienterrors.js +2 -2
  514. package/sdk/models/errors/httpclienterrors.js.map +1 -1
  515. package/sdk/models/operations/createsourceaccount.d.ts +4 -4
  516. package/sdk/models/operations/createsourceaccount.d.ts.map +1 -1
  517. package/sdk/models/operations/createsourceaccount.js +8 -8
  518. package/sdk/models/operations/createsourceaccount.js.map +1 -1
  519. package/sdk/models/operations/getbankaccountmapping.d.ts +37 -0
  520. package/sdk/models/operations/getbankaccountmapping.d.ts.map +1 -0
  521. package/sdk/models/operations/getbankaccountmapping.js +61 -0
  522. package/sdk/models/operations/getbankaccountmapping.js.map +1 -0
  523. package/sdk/models/operations/index.d.ts +1 -0
  524. package/sdk/models/operations/index.d.ts.map +1 -1
  525. package/sdk/models/operations/index.js +1 -0
  526. package/sdk/models/operations/index.js.map +1 -1
  527. package/sdk/models/operations/listcompanies.d.ts +5 -0
  528. package/sdk/models/operations/listcompanies.d.ts.map +1 -1
  529. package/sdk/models/operations/listcompanies.js +2 -0
  530. package/sdk/models/operations/listcompanies.js.map +1 -1
  531. package/sdk/models/shared/accountingcompanyinfo.d.ts +1 -1
  532. package/sdk/models/shared/bankfeedmapping.d.ts +108 -0
  533. package/sdk/models/shared/bankfeedmapping.d.ts.map +1 -0
  534. package/sdk/models/shared/bankfeedmapping.js +81 -0
  535. package/sdk/models/shared/bankfeedmapping.js.map +1 -0
  536. package/sdk/models/shared/file.d.ts +2 -2
  537. package/sdk/models/shared/file.d.ts.map +1 -1
  538. package/sdk/models/shared/file.js +4 -4
  539. package/sdk/models/shared/file.js.map +1 -1
  540. package/sdk/models/shared/index.d.ts +6 -0
  541. package/sdk/models/shared/index.d.ts.map +1 -1
  542. package/sdk/models/shared/index.js +6 -0
  543. package/sdk/models/shared/index.js.map +1 -1
  544. package/sdk/models/shared/propertieaccounttype.d.ts +43 -0
  545. package/sdk/models/shared/propertieaccounttype.d.ts.map +1 -0
  546. package/sdk/models/shared/propertieaccounttype.js +56 -0
  547. package/sdk/models/shared/propertieaccounttype.js.map +1 -0
  548. package/sdk/models/shared/reportoperation.d.ts +3 -0
  549. package/sdk/models/shared/reportoperation.d.ts.map +1 -1
  550. package/sdk/models/shared/reportoperation.js +1 -0
  551. package/sdk/models/shared/reportoperation.js.map +1 -1
  552. package/sdk/models/shared/reporttype.d.ts +3 -0
  553. package/sdk/models/shared/reporttype.d.ts.map +1 -1
  554. package/sdk/models/shared/reporttype.js +1 -0
  555. package/sdk/models/shared/reporttype.js.map +1 -1
  556. package/sdk/models/shared/schema.d.ts +63 -0
  557. package/sdk/models/shared/schema.d.ts.map +1 -0
  558. package/sdk/models/shared/schema.js +67 -0
  559. package/sdk/models/shared/schema.js.map +1 -0
  560. package/sdk/models/shared/sourceaccountprototype.d.ts +94 -0
  561. package/sdk/models/shared/sourceaccountprototype.d.ts.map +1 -0
  562. package/sdk/models/shared/sourceaccountprototype.js +74 -0
  563. package/sdk/models/shared/sourceaccountprototype.js.map +1 -0
  564. package/sdk/models/shared/sourceaccountv2.d.ts +5 -0
  565. package/sdk/models/shared/sourceaccountv2.d.ts.map +1 -1
  566. package/sdk/models/shared/sourceaccountv2.js +2 -0
  567. package/sdk/models/shared/sourceaccountv2.js.map +1 -1
  568. package/sdk/models/shared/sourceaccountv2prototype.d.ts +104 -0
  569. package/sdk/models/shared/sourceaccountv2prototype.d.ts.map +1 -0
  570. package/sdk/models/shared/sourceaccountv2prototype.js +81 -0
  571. package/sdk/models/shared/sourceaccountv2prototype.js.map +1 -0
  572. package/sdk/models/shared/targetaccountoption.d.ts +53 -0
  573. package/sdk/models/shared/targetaccountoption.d.ts.map +1 -0
  574. package/sdk/models/shared/targetaccountoption.js +68 -0
  575. package/sdk/models/shared/targetaccountoption.js.map +1 -0
  576. package/sdk/models/webhooks/index.d.ts +1 -1
  577. package/sdk/models/webhooks/index.d.ts.map +1 -1
  578. package/sdk/models/webhooks/index.js +1 -1
  579. package/sdk/models/webhooks/index.js.map +1 -1
  580. package/sdk/models/webhooks/reportscreditmodelgeneratesuccessful.d.ts +63 -0
  581. package/sdk/models/webhooks/reportscreditmodelgeneratesuccessful.d.ts.map +1 -0
  582. package/sdk/models/webhooks/reportscreditmodelgeneratesuccessful.js +68 -0
  583. package/sdk/models/webhooks/reportscreditmodelgeneratesuccessful.js.map +1 -0
  584. package/sdk/sales.js +11 -22
  585. package/sdk/sales.js.map +1 -1
  586. package/sdk/sdk.js +18 -36
  587. package/sdk/sdk.js.map +1 -1
  588. package/sdk/sourceaccounts.d.ts +31 -18
  589. package/sdk/sourceaccounts.d.ts.map +1 -1
  590. package/sdk/sourceaccounts.js +36 -20
  591. package/sdk/sourceaccounts.js.map +1 -1
  592. package/sdk/transactions.js +5 -10
  593. package/sdk/transactions.js.map +1 -1
  594. package/sdk/types/index.d.ts +1 -0
  595. package/sdk/types/index.d.ts.map +1 -1
  596. package/sdk/types/operations.d.ts +5 -3
  597. package/sdk/types/operations.d.ts.map +1 -1
  598. package/sdk/types/operations.js +3 -0
  599. package/sdk/types/operations.js.map +1 -1
  600. package/sdk/types/webhooks.d.ts +4 -0
  601. package/sdk/types/webhooks.d.ts.map +1 -0
  602. package/sdk/types/webhooks.js +6 -0
  603. package/sdk/types/webhooks.js.map +1 -0
  604. package/src/funcs/accountingBankDataAccountsGet.ts +1 -0
  605. package/src/funcs/accountingBankDataAccountsList.ts +1 -0
  606. package/src/funcs/accountingBankDataListTransactions.ts +1 -0
  607. package/src/funcs/accountsPayableBillCreditNotesGet.ts +1 -0
  608. package/src/funcs/accountsPayableBillCreditNotesList.ts +1 -0
  609. package/src/funcs/accountsPayableBillPaymentsGet.ts +1 -0
  610. package/src/funcs/accountsPayableBillPaymentsList.ts +1 -0
  611. package/src/funcs/accountsPayableBillsDownloadAttachment.ts +1 -0
  612. package/src/funcs/accountsPayableBillsGet.ts +1 -0
  613. package/src/funcs/accountsPayableBillsGetAttachment.ts +1 -0
  614. package/src/funcs/accountsPayableBillsList.ts +1 -0
  615. package/src/funcs/accountsPayableBillsListAttachments.ts +1 -0
  616. package/src/funcs/accountsPayableSuppliersDownloadAttachment.ts +1 -0
  617. package/src/funcs/accountsPayableSuppliersGet.ts +1 -0
  618. package/src/funcs/accountsPayableSuppliersGetAttachment.ts +1 -0
  619. package/src/funcs/accountsPayableSuppliersList.ts +1 -0
  620. package/src/funcs/accountsPayableSuppliersListAttachments.ts +1 -0
  621. package/src/funcs/accountsReceivableCreditNotesGet.ts +1 -0
  622. package/src/funcs/accountsReceivableCreditNotesList.ts +1 -0
  623. package/src/funcs/accountsReceivableCustomersDownloadAttachment.ts +1 -0
  624. package/src/funcs/accountsReceivableCustomersGet.ts +1 -0
  625. package/src/funcs/accountsReceivableCustomersGetAttachment.ts +1 -0
  626. package/src/funcs/accountsReceivableCustomersList.ts +1 -0
  627. package/src/funcs/accountsReceivableCustomersListAttachments.ts +1 -0
  628. package/src/funcs/accountsReceivableDirectIncomesDownloadAttachment.ts +1 -0
  629. package/src/funcs/accountsReceivableDirectIncomesGet.ts +1 -0
  630. package/src/funcs/accountsReceivableDirectIncomesGetAttachment.ts +1 -0
  631. package/src/funcs/accountsReceivableDirectIncomesList.ts +1 -0
  632. package/src/funcs/accountsReceivableDirectIncomesListAttachments.ts +1 -0
  633. package/src/funcs/accountsReceivableInvoicesDownloadAttachment.ts +1 -0
  634. package/src/funcs/accountsReceivableInvoicesDownloadPdf.ts +1 -0
  635. package/src/funcs/accountsReceivableInvoicesGet.ts +1 -0
  636. package/src/funcs/accountsReceivableInvoicesGetAttachment.ts +1 -0
  637. package/src/funcs/accountsReceivableInvoicesList.ts +1 -0
  638. package/src/funcs/accountsReceivableInvoicesListAttachments.ts +1 -0
  639. package/src/funcs/accountsReceivableInvoicesListReconciled.ts +1 -0
  640. package/src/funcs/accountsReceivablePaymentsGet.ts +1 -0
  641. package/src/funcs/accountsReceivablePaymentsList.ts +1 -0
  642. package/src/funcs/accountsReceivableReportsGetAgedCreditors.ts +1 -0
  643. package/src/funcs/accountsReceivableReportsGetAgedDebtors.ts +1 -0
  644. package/src/funcs/accountsReceivableReportsIsAgedCreditorsAvailable.ts +1 -0
  645. package/src/funcs/accountsReceivableReportsIsAgedDebtorsAvailable.ts +1 -0
  646. package/src/funcs/bankStatementsEndUploadSession.ts +1 -0
  647. package/src/funcs/bankStatementsGetUploadConfiguration.ts +1 -0
  648. package/src/funcs/bankStatementsSetUploadConfiguration.ts +1 -0
  649. package/src/funcs/bankStatementsStartUploadSession.ts +1 -0
  650. package/src/funcs/bankStatementsUploadBankStatementData.ts +1 -0
  651. package/src/funcs/bankingAccountBalancesList.ts +1 -0
  652. package/src/funcs/bankingAccountsGet.ts +1 -0
  653. package/src/funcs/bankingAccountsList.ts +1 -0
  654. package/src/funcs/bankingCategorizedStatementGet.ts +1 -0
  655. package/src/funcs/bankingTransactionCategoriesGet.ts +1 -0
  656. package/src/funcs/bankingTransactionCategoriesList.ts +1 -0
  657. package/src/funcs/bankingTransactionsGet.ts +1 -0
  658. package/src/funcs/bankingTransactionsList.ts +1 -0
  659. package/src/funcs/companiesCreate.ts +1 -0
  660. package/src/funcs/companiesDelete.ts +1 -0
  661. package/src/funcs/companiesGet.ts +1 -0
  662. package/src/funcs/companiesList.ts +15 -0
  663. package/src/funcs/companiesUpdate.ts +1 -0
  664. package/src/funcs/companyInfoGetAccountingProfile.ts +1 -0
  665. package/src/funcs/companyInfoGetCommerceProfile.ts +1 -0
  666. package/src/funcs/connectionsCreate.ts +1 -0
  667. package/src/funcs/connectionsDelete.ts +1 -0
  668. package/src/funcs/connectionsGet.ts +1 -0
  669. package/src/funcs/connectionsList.ts +1 -0
  670. package/src/funcs/connectionsUnlink.ts +1 -0
  671. package/src/funcs/dataIntegrityDetails.ts +1 -0
  672. package/src/funcs/dataIntegrityStatus.ts +1 -0
  673. package/src/funcs/dataIntegritySummaries.ts +1 -0
  674. package/src/funcs/excelReportsDownload.ts +1 -0
  675. package/src/funcs/excelReportsGenerate.ts +1 -0
  676. package/src/funcs/excelReportsGetStatus.ts +1 -0
  677. package/src/funcs/fileUploadDownload.ts +1 -0
  678. package/src/funcs/fileUploadListUploaded.ts +1 -0
  679. package/src/funcs/fileUploadUpload.ts +1 -0
  680. package/src/funcs/financialStatementsAccountsGet.ts +1 -0
  681. package/src/funcs/financialStatementsAccountsList.ts +1 -0
  682. package/src/funcs/financialStatementsBalanceSheetGet.ts +1 -0
  683. package/src/funcs/financialStatementsBalanceSheetGetCategorizedAccounts.ts +1 -0
  684. package/src/funcs/financialStatementsCashFlowGet.ts +1 -0
  685. package/src/funcs/financialStatementsProfitAndLossGet.ts +1 -0
  686. package/src/funcs/financialStatementsProfitAndLossGetCategorizedAccounts.ts +1 -0
  687. package/src/funcs/liabilitiesGenerateLoanSummary.ts +1 -0
  688. package/src/funcs/liabilitiesGenerateLoanTransactions.ts +1 -0
  689. package/src/funcs/liabilitiesGetLoanSummary.ts +1 -0
  690. package/src/funcs/liabilitiesListLoanTransactions.ts +1 -0
  691. package/src/funcs/loanWritebackAccountsCreate.ts +1 -0
  692. package/src/funcs/loanWritebackAccountsGetCreateModel.ts +1 -0
  693. package/src/funcs/loanWritebackBankAccountsCreate.ts +1 -0
  694. package/src/funcs/loanWritebackBankAccountsGetCreateUpdateModel.ts +1 -0
  695. package/src/funcs/loanWritebackBankTransactionsCreate.ts +1 -0
  696. package/src/funcs/loanWritebackBankTransactionsGetCreateModel.ts +1 -0
  697. package/src/funcs/loanWritebackCreateOperationsGet.ts +1 -0
  698. package/src/funcs/loanWritebackCreateOperationsList.ts +1 -0
  699. package/src/funcs/loanWritebackDirectCostsCreate.ts +1 -0
  700. package/src/funcs/loanWritebackDirectCostsGetCreateModel.ts +1 -0
  701. package/src/funcs/loanWritebackPaymentsCreate.ts +1 -0
  702. package/src/funcs/loanWritebackPaymentsGetCreateModel.ts +1 -0
  703. package/src/funcs/loanWritebackSourceAccountsCreate.ts +1 -21
  704. package/src/funcs/loanWritebackSourceAccountsCreateMapping.ts +22 -0
  705. package/src/funcs/loanWritebackSourceAccountsListMappings.ts +166 -0
  706. package/src/funcs/loanWritebackSuppliersCreate.ts +1 -0
  707. package/src/funcs/loanWritebackSuppliersGetCreateUpdateModel.ts +1 -0
  708. package/src/funcs/loanWritebackTransfersCreate.ts +1 -0
  709. package/src/funcs/loanWritebackTransfersGetCreateModel.ts +1 -0
  710. package/src/funcs/manageDataGetStatus.ts +1 -0
  711. package/src/funcs/manageDataPullOperationsGet.ts +1 -0
  712. package/src/funcs/manageDataPullOperationsList.ts +1 -0
  713. package/src/funcs/manageDataRefreshAllDataTypes.ts +1 -0
  714. package/src/funcs/manageDataRefreshDataType.ts +1 -0
  715. package/src/funcs/manageReportsGenerateReport.ts +2 -1
  716. package/src/funcs/manageReportsListReports.ts +1 -0
  717. package/src/funcs/salesCustomersGet.ts +1 -0
  718. package/src/funcs/salesCustomersList.ts +1 -0
  719. package/src/funcs/salesDisputesGet.ts +1 -0
  720. package/src/funcs/salesDisputesList.ts +1 -0
  721. package/src/funcs/salesLocationsGet.ts +1 -0
  722. package/src/funcs/salesLocationsList.ts +1 -0
  723. package/src/funcs/salesMetricsGetCustomerRetention.ts +1 -0
  724. package/src/funcs/salesMetricsGetLifetimeValue.ts +1 -0
  725. package/src/funcs/salesMetricsGetRevenue.ts +1 -0
  726. package/src/funcs/salesOrdersGet.ts +1 -0
  727. package/src/funcs/salesOrdersList.ts +1 -0
  728. package/src/funcs/salesPaymentMethodsGet.ts +1 -0
  729. package/src/funcs/salesPaymentMethodsList.ts +1 -0
  730. package/src/funcs/salesPaymentsGet.ts +1 -0
  731. package/src/funcs/salesPaymentsList.ts +1 -0
  732. package/src/funcs/salesProductCategoriesGet.ts +1 -0
  733. package/src/funcs/salesProductCategoriesList.ts +1 -0
  734. package/src/funcs/salesProductsGet.ts +1 -0
  735. package/src/funcs/salesProductsList.ts +1 -0
  736. package/src/funcs/salesReportsGetOrders.ts +1 -0
  737. package/src/funcs/salesReportsGetRefunds.ts +1 -0
  738. package/src/funcs/salesTransactionsGet.ts +1 -0
  739. package/src/funcs/salesTransactionsList.ts +1 -0
  740. package/src/funcs/transactionsAccountTransactionsGet.ts +1 -0
  741. package/src/funcs/transactionsAccountTransactionsList.ts +1 -0
  742. package/src/funcs/transactionsDirectCostsDownloadAttachment.ts +1 -0
  743. package/src/funcs/transactionsDirectCostsGet.ts +1 -0
  744. package/src/funcs/transactionsDirectCostsGetAttachment.ts +1 -0
  745. package/src/funcs/transactionsDirectCostsList.ts +1 -0
  746. package/src/funcs/transactionsDirectCostsListAttachments.ts +1 -0
  747. package/src/funcs/transactionsJournalEntriesGet.ts +1 -0
  748. package/src/funcs/transactionsJournalEntriesList.ts +1 -0
  749. package/src/funcs/transactionsJournalsGet.ts +1 -0
  750. package/src/funcs/transactionsJournalsList.ts +1 -0
  751. package/src/funcs/transactionsTransfersGet.ts +1 -0
  752. package/src/funcs/transactionsTransfersList.ts +1 -0
  753. package/src/hooks/hooks.ts +20 -0
  754. package/src/hooks/types.ts +9 -0
  755. package/src/lib/config.ts +3 -3
  756. package/src/lib/primitives.ts +62 -0
  757. package/src/lib/sdks.ts +6 -1
  758. package/src/lib/security.ts +1 -1
  759. package/src/sdk/companies.ts +13 -0
  760. package/src/sdk/models/operations/createsourceaccount.ts +18 -15
  761. package/src/sdk/models/operations/getbankaccountmapping.ts +78 -0
  762. package/src/sdk/models/operations/index.ts +1 -0
  763. package/src/sdk/models/operations/listcompanies.ts +7 -0
  764. package/src/sdk/models/shared/accountingcompanyinfo.ts +1 -1
  765. package/src/sdk/models/shared/bankfeedmapping.ts +170 -0
  766. package/src/sdk/models/shared/file.ts +2 -2
  767. package/src/sdk/models/shared/index.ts +6 -0
  768. package/src/sdk/models/shared/propertieaccounttype.ts +42 -0
  769. package/src/sdk/models/shared/reportoperation.ts +1 -0
  770. package/src/sdk/models/shared/reporttype.ts +1 -0
  771. package/src/sdk/models/shared/schema.ts +104 -0
  772. package/src/sdk/models/shared/sourceaccountprototype.ts +149 -0
  773. package/src/sdk/models/shared/sourceaccountv2.ts +7 -0
  774. package/src/sdk/models/shared/sourceaccountv2prototype.ts +175 -0
  775. package/src/sdk/models/shared/targetaccountoption.ts +102 -0
  776. package/src/sdk/models/webhooks/index.ts +1 -1
  777. package/src/sdk/models/webhooks/reportscreditmodelgeneratesuccessful.ts +119 -0
  778. package/src/sdk/sourceaccounts.ts +45 -21
  779. package/src/sdk/types/index.ts +1 -0
  780. package/src/sdk/types/operations.ts +11 -5
  781. package/src/sdk/types/webhooks.ts +7 -0
  782. package/sdk/models/webhooks/reportcategorizedbankstatementgeneratesuccessful.d.ts +0 -63
  783. package/sdk/models/webhooks/reportcategorizedbankstatementgeneratesuccessful.d.ts.map +0 -1
  784. package/sdk/models/webhooks/reportcategorizedbankstatementgeneratesuccessful.js +0 -68
  785. package/sdk/models/webhooks/reportcategorizedbankstatementgeneratesuccessful.js.map +0 -1
  786. package/src/sdk/models/webhooks/reportcategorizedbankstatementgeneratesuccessful.ts +0 -122
@@ -0,0 +1,74 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SourceAccountPrototype$ = exports.SourceAccountPrototype$outboundSchema = exports.SourceAccountPrototype$inboundSchema = void 0;
30
+ exports.sourceAccountPrototypeToJSON = sourceAccountPrototypeToJSON;
31
+ exports.sourceAccountPrototypeFromJSON = sourceAccountPrototypeFromJSON;
32
+ const z = __importStar(require("zod"));
33
+ const schemas_js_1 = require("../../../lib/schemas.js");
34
+ const decimal_js_1 = require("../../types/decimal.js");
35
+ /** @internal */
36
+ exports.SourceAccountPrototype$inboundSchema = z.object({
37
+ id: z.string().optional(),
38
+ accountName: z.nullable(z.string()).optional(),
39
+ accountType: z.nullable(z.string()).optional(),
40
+ accountNumber: z.nullable(z.string()).optional(),
41
+ sortCode: z.nullable(z.string()).optional(),
42
+ currency: z.string().optional(),
43
+ balance: z.nullable(z.number().transform(v => new decimal_js_1.Decimal(v))).optional(),
44
+ modifiedDate: z.string().optional(),
45
+ });
46
+ /** @internal */
47
+ exports.SourceAccountPrototype$outboundSchema = z.object({
48
+ id: z.string().optional(),
49
+ accountName: z.nullable(z.string()).optional(),
50
+ accountType: z.nullable(z.string()).optional(),
51
+ accountNumber: z.nullable(z.string()).optional(),
52
+ sortCode: z.nullable(z.string()).optional(),
53
+ currency: z.string().optional(),
54
+ balance: z.nullable(z.union([z.instanceof(decimal_js_1.Decimal), z.number()]).transform(v => typeof v === "number" ? v : v.toNumber())).optional(),
55
+ modifiedDate: z.string().optional(),
56
+ });
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ var SourceAccountPrototype$;
62
+ (function (SourceAccountPrototype$) {
63
+ /** @deprecated use `SourceAccountPrototype$inboundSchema` instead. */
64
+ SourceAccountPrototype$.inboundSchema = exports.SourceAccountPrototype$inboundSchema;
65
+ /** @deprecated use `SourceAccountPrototype$outboundSchema` instead. */
66
+ SourceAccountPrototype$.outboundSchema = exports.SourceAccountPrototype$outboundSchema;
67
+ })(SourceAccountPrototype$ || (exports.SourceAccountPrototype$ = SourceAccountPrototype$ = {}));
68
+ function sourceAccountPrototypeToJSON(sourceAccountPrototype) {
69
+ return JSON.stringify(exports.SourceAccountPrototype$outboundSchema.parse(sourceAccountPrototype));
70
+ }
71
+ function sourceAccountPrototypeFromJSON(jsonString) {
72
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SourceAccountPrototype$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SourceAccountPrototype' from JSON`);
73
+ }
74
+ //# sourceMappingURL=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C,EAAE,EAAE,CAAC,4CAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
@@ -53,6 +53,10 @@ export type SourceAccountV2 = {
53
53
  * The account number.
54
54
  */
55
55
  accountNumber: string;
56
+ /**
57
+ * The sort code.
58
+ */
59
+ sortCode?: string | null | undefined;
56
60
  /**
57
61
  * Routing information for the bank. This does not include account number.
58
62
  */
@@ -170,6 +174,7 @@ export type SourceAccountV2$Outbound = {
170
174
  accountName: string;
171
175
  accountType: string;
172
176
  accountNumber: string;
177
+ sortCode?: string | null | undefined;
173
178
  routingInfo?: RoutingInfo$Outbound | undefined;
174
179
  currency: string;
175
180
  balance: number;
@@ -1 +1 @@
1
- {"version":3,"file":"sourceaccountv2.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/shared/sourceaccountv2.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;CAM7B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,UAAU,CACjD,OAAO,0BAA0B,CAClC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;CAMxB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,UAA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,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,WAAW,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,oBAAoB,GAAG,IAAI,GAAG,SAAS,CAAC;IACtD,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAgBf,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa,mDAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc,oEAAiC,CAAC;IAC7D,0DAA0D;IAC1D,KAAY,QAAQ,GAAG,wBAAwB,CAAC;CACjD;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
@@ -90,6 +90,7 @@ exports.SourceAccountV2$inboundSchema = z.object({
90
90
  accountName: z.string(),
91
91
  accountType: exports.SourceAccountV2AccountType$inboundSchema,
92
92
  accountNumber: z.string(),
93
+ sortCode: z.nullable(z.string()).optional(),
93
94
  routingInfo: routinginfo_js_1.RoutingInfo$inboundSchema.optional(),
94
95
  currency: z.string(),
95
96
  balance: z.number().transform(v => new decimal_js_1.Decimal(v)),
@@ -104,6 +105,7 @@ exports.SourceAccountV2$outboundSchema = z.object({
104
105
  accountName: z.string(),
105
106
  accountType: exports.SourceAccountV2AccountType$outboundSchema,
106
107
  accountNumber: z.string(),
108
+ sortCode: z.nullable(z.string()).optional(),
107
109
  routingInfo: routinginfo_js_1.RoutingInfo$outboundSchema.optional(),
108
110
  currency: z.string(),
109
111
  balance: z.union([z.instanceof(decimal_js_1.Decimal), z.number()]).transform(v => typeof v === "number" ? v : v.toNumber()),
@@ -1 +1 @@
1
- {"version":3,"file":"sourceaccountv2.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/sourceaccountv2.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAiPH,sDAIC;AAED,0DAQC;AA7PD,uCAAyB;AACzB,wDAAoD;AACpD,uDAA6D;AAI7D,qDAK0B;AAC1B,qDAK0B;AAE1B;;GAEG;AACU,QAAA,0BAA0B,GAAG;IACxC,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;CAClB,CAAC;AAQX;;GAEG;AACU,QAAA,qBAAqB,GAAG;IACnC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,OAAO,EAAE,SAAS;CACV,CAAC;AAoFX,gBAAgB;AACH,QAAA,wCAAwC,GAEjD,CAAC,CAAC,UAAU,CAAC,kCAA0B,CAAC,CAAC;AAE7C,gBAAgB;AACH,QAAA,yCAAyC,GAElD,gDAAwC,CAAC;AAE7C;;;GAGG;AACH,IAAiB,2BAA2B,CAK3C;AALD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAA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AC/E,CAAC;AAED,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"sourceaccountv2.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/sourceaccountv2.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAwPH,sDAIC;AAED,0DAQC;AApQD,uCAAyB;AACzB,wDAAoD;AACpD,uDAA6D;AAI7D,qDAK0B;AAC1B,qDAK0B;AAE1B;;GAEG;AACU,QAAA,0BAA0B,GAAG;IACxC,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;CAClB,CAAC;AAQX;;GAEG;AACU,QAAA,qBAAqB,GAAG;IACnC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,OAAO,EAAE,SAAS;CACV,CAAC;AAwFX,gBAAgB;AACH,QAAA,wCAAwC,GAEjD,CAAC,CAAC,UAAU,CAAC,kCAA0B,CAAC,CAAC;AAE7C,gBAAgB;AACH,QAAA,yCAAyC,GAElD,gDAAwC,CAAC;AAE7C;;;GAGG;AACH,IAAiB,2BAA2B,CAK3C;AALD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAC1E,CAAC,EALgB,2BAA2B,2CAA3B,2BAA2B,QAK3C;AAED,gBAAgB;AACH,QAAA,mCAAmC,GAE5C,CAAC,CAAC,UAAU,CAAC,6BA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C/E,CAAC;AAED,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,104 @@
1
+ import * as z from "zod";
2
+ import { Decimal as Decimal$ } from "../../types/decimal.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import { AccountInfo, AccountInfo$Outbound } from "./accountinfo.js";
6
+ import { PropertieAccountType } from "./propertieaccounttype.js";
7
+ import { RoutingInfo, RoutingInfo$Outbound } from "./routinginfo.js";
8
+ export type SourceAccountV2Prototype = {
9
+ /**
10
+ * Unique ID for the bank account.
11
+ */
12
+ id?: string | undefined;
13
+ /**
14
+ * The bank account name.
15
+ */
16
+ accountName?: string | undefined;
17
+ /**
18
+ * The type of bank account e.g. checking, savings, loan, creditCard, prepaidCard.
19
+ */
20
+ accountType?: PropertieAccountType | undefined;
21
+ /**
22
+ * The account number.
23
+ */
24
+ accountNumber?: string | undefined;
25
+ /**
26
+ * Routing information for the bank. This does not include account number.
27
+ */
28
+ routingInfo?: RoutingInfo | undefined;
29
+ /**
30
+ * The sort code.
31
+ */
32
+ sortCode?: string | null | undefined;
33
+ /**
34
+ * The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.
35
+ *
36
+ * @remarks
37
+ *
38
+ * ## Unknown currencies
39
+ *
40
+ * In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.
41
+ *
42
+ * There are only a very small number of edge cases where this currency code is returned by the Codat system.
43
+ */
44
+ currency?: string | undefined;
45
+ /**
46
+ * The latest balance for the bank account.
47
+ */
48
+ balance?: Decimal$ | number | undefined;
49
+ /**
50
+ * In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
51
+ *
52
+ * @remarks
53
+ *
54
+ * ```
55
+ * 2020-10-08T22:40:50Z
56
+ * 2021-01-01T00:00:00
57
+ * ```
58
+ *
59
+ * When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
60
+ *
61
+ * - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
62
+ * - Unqualified local time: `2021-11-15T01:00:00`
63
+ * - UTC time offsets: `2021-11-15T01:00:00-05:00`
64
+ *
65
+ * > Time zones
66
+ * >
67
+ * > Not all dates from Codat will contain information about time zones.
68
+ * > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
69
+ */
70
+ modifiedDate?: string | undefined;
71
+ accountInfo?: AccountInfo | null | undefined;
72
+ };
73
+ /** @internal */
74
+ export declare const SourceAccountV2Prototype$inboundSchema: z.ZodType<SourceAccountV2Prototype, z.ZodTypeDef, unknown>;
75
+ /** @internal */
76
+ export type SourceAccountV2Prototype$Outbound = {
77
+ id?: string | undefined;
78
+ accountName?: string | undefined;
79
+ accountType?: string | undefined;
80
+ accountNumber?: string | undefined;
81
+ routingInfo?: RoutingInfo$Outbound | undefined;
82
+ sortCode?: string | null | undefined;
83
+ currency?: string | undefined;
84
+ balance?: number | undefined;
85
+ modifiedDate?: string | undefined;
86
+ accountInfo?: AccountInfo$Outbound | null | undefined;
87
+ };
88
+ /** @internal */
89
+ export declare const SourceAccountV2Prototype$outboundSchema: z.ZodType<SourceAccountV2Prototype$Outbound, z.ZodTypeDef, SourceAccountV2Prototype>;
90
+ /**
91
+ * @internal
92
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
93
+ */
94
+ export declare namespace SourceAccountV2Prototype$ {
95
+ /** @deprecated use `SourceAccountV2Prototype$inboundSchema` instead. */
96
+ const inboundSchema: z.ZodType<SourceAccountV2Prototype, z.ZodTypeDef, unknown>;
97
+ /** @deprecated use `SourceAccountV2Prototype$outboundSchema` instead. */
98
+ const outboundSchema: z.ZodType<SourceAccountV2Prototype$Outbound, z.ZodTypeDef, SourceAccountV2Prototype>;
99
+ /** @deprecated use `SourceAccountV2Prototype$Outbound` instead. */
100
+ type Outbound = SourceAccountV2Prototype$Outbound;
101
+ }
102
+ export declare function sourceAccountV2PrototypeToJSON(sourceAccountV2Prototype: SourceAccountV2Prototype): string;
103
+ export declare function sourceAccountV2PrototypeFromJSON(jsonString: string): SafeParseResult<SourceAccountV2Prototype, SDKValidationError>;
104
+ //# sourceMappingURL=sourceaccountv2prototype.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceaccountv2prototype.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/shared/sourceaccountv2prototype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,oBAAoB,EAGrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC/C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,WAA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AAwB,CAcxB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,yBAAyB,CAAC;IACzC,wEAAwE;IACjE,MAAM,aAAa,4DAAyC,CAAC;IACpE,yEAAyE;IAClE,MAAM,cAAc,sFAA0C,CAAC;IACtE,mEAAmE;IACnE,KAAY,QAAQ,GAAG,iCAAiC,CAAC;CAC1D;AAED,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR;AAED,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
@@ -0,0 +1,81 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SourceAccountV2Prototype$ = exports.SourceAccountV2Prototype$outboundSchema = exports.SourceAccountV2Prototype$inboundSchema = void 0;
30
+ exports.sourceAccountV2PrototypeToJSON = sourceAccountV2PrototypeToJSON;
31
+ exports.sourceAccountV2PrototypeFromJSON = sourceAccountV2PrototypeFromJSON;
32
+ const z = __importStar(require("zod"));
33
+ const schemas_js_1 = require("../../../lib/schemas.js");
34
+ const decimal_js_1 = require("../../types/decimal.js");
35
+ const accountinfo_js_1 = require("./accountinfo.js");
36
+ const propertieaccounttype_js_1 = require("./propertieaccounttype.js");
37
+ const routinginfo_js_1 = require("./routinginfo.js");
38
+ /** @internal */
39
+ exports.SourceAccountV2Prototype$inboundSchema = z.object({
40
+ id: z.string().optional(),
41
+ accountName: z.string().optional(),
42
+ accountType: propertieaccounttype_js_1.PropertieAccountType$inboundSchema.optional(),
43
+ accountNumber: z.string().optional(),
44
+ routingInfo: routinginfo_js_1.RoutingInfo$inboundSchema.optional(),
45
+ sortCode: z.nullable(z.string()).optional(),
46
+ currency: z.string().optional(),
47
+ balance: z.number().transform(v => new decimal_js_1.Decimal(v)).optional(),
48
+ modifiedDate: z.string().optional(),
49
+ accountInfo: z.nullable(accountinfo_js_1.AccountInfo$inboundSchema).optional(),
50
+ });
51
+ /** @internal */
52
+ exports.SourceAccountV2Prototype$outboundSchema = z.object({
53
+ id: z.string().optional(),
54
+ accountName: z.string().optional(),
55
+ accountType: propertieaccounttype_js_1.PropertieAccountType$outboundSchema.optional(),
56
+ accountNumber: z.string().optional(),
57
+ routingInfo: routinginfo_js_1.RoutingInfo$outboundSchema.optional(),
58
+ sortCode: z.nullable(z.string()).optional(),
59
+ currency: z.string().optional(),
60
+ balance: z.union([z.instanceof(decimal_js_1.Decimal), z.number()]).transform(v => typeof v === "number" ? v : v.toNumber()).optional(),
61
+ modifiedDate: z.string().optional(),
62
+ accountInfo: z.nullable(accountinfo_js_1.AccountInfo$outboundSchema).optional(),
63
+ });
64
+ /**
65
+ * @internal
66
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
67
+ */
68
+ var SourceAccountV2Prototype$;
69
+ (function (SourceAccountV2Prototype$) {
70
+ /** @deprecated use `SourceAccountV2Prototype$inboundSchema` instead. */
71
+ SourceAccountV2Prototype$.inboundSchema = exports.SourceAccountV2Prototype$inboundSchema;
72
+ /** @deprecated use `SourceAccountV2Prototype$outboundSchema` instead. */
73
+ SourceAccountV2Prototype$.outboundSchema = exports.SourceAccountV2Prototype$outboundSchema;
74
+ })(SourceAccountV2Prototype$ || (exports.SourceAccountV2Prototype$ = SourceAccountV2Prototype$ = {}));
75
+ function sourceAccountV2PrototypeToJSON(sourceAccountV2Prototype) {
76
+ return JSON.stringify(exports.SourceAccountV2Prototype$outboundSchema.parse(sourceAccountV2Prototype));
77
+ }
78
+ function sourceAccountV2PrototypeFromJSON(jsonString) {
79
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SourceAccountV2Prototype$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SourceAccountV2Prototype' from JSON`);
80
+ }
81
+ //# sourceMappingURL=sourceaccountv2prototype.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceaccountv2prototype.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/sourceaccountv2prototype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA4JH,wEAMC;AAED,4EAQC;AA1KD,uCAAyB;AACzB,wDAAoD;AACpD,uDAA6D;AAG7D,qDAK0B;AAC1B,uEAImC;AACnC,qDAK0B;AAoE1B,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,4DAAkC,CAAC,QAAQ,EAAE;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,WAAW,EAAE,0CAAyB,CAAC,QAAQ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CACzC,CAAC,QAAQ,EAAE;IACZ,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,2CAA0B,CAAC,CAAC,QAAQ,EAAE;CAC/D,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,8CAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,+CAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,yCAAzB,yBAAyB,QAOzC;AAED,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,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,53 @@
1
+ import * as z from "zod";
2
+ import { Decimal as Decimal$ } from "../../types/decimal.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export type TargetAccountOption = {
6
+ /**
7
+ * Id of the target account.
8
+ */
9
+ id?: string | undefined;
10
+ /**
11
+ * Name of the target account.
12
+ */
13
+ name?: string | null | undefined;
14
+ /**
15
+ * The balance of the account.
16
+ */
17
+ balance?: Decimal$ | number | null | undefined;
18
+ /**
19
+ * The sort code of the account.
20
+ */
21
+ sortCode?: string | null | undefined;
22
+ /**
23
+ * The account number of the account.
24
+ */
25
+ accountNumber?: string | null | undefined;
26
+ };
27
+ /** @internal */
28
+ export declare const TargetAccountOption$inboundSchema: z.ZodType<TargetAccountOption, z.ZodTypeDef, unknown>;
29
+ /** @internal */
30
+ export type TargetAccountOption$Outbound = {
31
+ id?: string | undefined;
32
+ name?: string | null | undefined;
33
+ balance?: number | null | undefined;
34
+ sortCode?: string | null | undefined;
35
+ accountNumber?: string | null | undefined;
36
+ };
37
+ /** @internal */
38
+ export declare const TargetAccountOption$outboundSchema: z.ZodType<TargetAccountOption$Outbound, z.ZodTypeDef, TargetAccountOption>;
39
+ /**
40
+ * @internal
41
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
42
+ */
43
+ export declare namespace TargetAccountOption$ {
44
+ /** @deprecated use `TargetAccountOption$inboundSchema` instead. */
45
+ const inboundSchema: z.ZodType<TargetAccountOption, z.ZodTypeDef, unknown>;
46
+ /** @deprecated use `TargetAccountOption$outboundSchema` instead. */
47
+ const outboundSchema: z.ZodType<TargetAccountOption$Outbound, z.ZodTypeDef, TargetAccountOption>;
48
+ /** @deprecated use `TargetAccountOption$Outbound` instead. */
49
+ type Outbound = TargetAccountOption$Outbound;
50
+ }
51
+ export declare function targetAccountOptionToJSON(targetAccountOption: TargetAccountOption): string;
52
+ export declare function targetAccountOptionFromJSON(jsonString: string): SafeParseResult<TargetAccountOption, SDKValidationError>;
53
+ //# sourceMappingURL=targetaccountoption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"targetaccountoption.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/shared/targetaccountoption.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,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A2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
@@ -0,0 +1,68 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.TargetAccountOption$ = exports.TargetAccountOption$outboundSchema = exports.TargetAccountOption$inboundSchema = void 0;
30
+ exports.targetAccountOptionToJSON = targetAccountOptionToJSON;
31
+ exports.targetAccountOptionFromJSON = targetAccountOptionFromJSON;
32
+ const z = __importStar(require("zod"));
33
+ const schemas_js_1 = require("../../../lib/schemas.js");
34
+ const decimal_js_1 = require("../../types/decimal.js");
35
+ /** @internal */
36
+ exports.TargetAccountOption$inboundSchema = z.object({
37
+ id: z.string().optional(),
38
+ name: z.nullable(z.string()).optional(),
39
+ balance: z.nullable(z.number().transform(v => new decimal_js_1.Decimal(v))).optional(),
40
+ sortCode: z.nullable(z.string()).optional(),
41
+ accountNumber: z.nullable(z.string()).optional(),
42
+ });
43
+ /** @internal */
44
+ exports.TargetAccountOption$outboundSchema = z.object({
45
+ id: z.string().optional(),
46
+ name: z.nullable(z.string()).optional(),
47
+ balance: z.nullable(z.union([z.instanceof(decimal_js_1.Decimal), z.number()]).transform(v => typeof v === "number" ? v : v.toNumber())).optional(),
48
+ sortCode: z.nullable(z.string()).optional(),
49
+ accountNumber: z.nullable(z.string()).optional(),
50
+ });
51
+ /**
52
+ * @internal
53
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
+ */
55
+ var TargetAccountOption$;
56
+ (function (TargetAccountOption$) {
57
+ /** @deprecated use `TargetAccountOption$inboundSchema` instead. */
58
+ TargetAccountOption$.inboundSchema = exports.TargetAccountOption$inboundSchema;
59
+ /** @deprecated use `TargetAccountOption$outboundSchema` instead. */
60
+ TargetAccountOption$.outboundSchema = exports.TargetAccountOption$outboundSchema;
61
+ })(TargetAccountOption$ || (exports.TargetAccountOption$ = TargetAccountOption$ = {}));
62
+ function targetAccountOptionToJSON(targetAccountOption) {
63
+ return JSON.stringify(exports.TargetAccountOption$outboundSchema.parse(targetAccountOption));
64
+ }
65
+ function targetAccountOptionFromJSON(jsonString) {
66
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TargetAccountOption$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetAccountOption' from JSON`);
67
+ }
68
+ //# sourceMappingURL=targetaccountoption.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"targetaccountoption.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/targetaccountoption.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFH,8DAMC;AAED,kEAQC;AAjGD,uCAAyB;AACzB,wDAAoD;AACpD,uDAA6D;AA2B7D,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,C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EAAE,CAAC,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
@@ -1,2 +1,2 @@
1
- export * from "./reportcategorizedbankstatementgeneratesuccessful.js";
1
+ export * from "./reportscreditmodelgeneratesuccessful.js";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/webhooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,uDAAuD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/webhooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,2CAA2C,CAAC"}
@@ -17,5 +17,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
17
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- __exportStar(require("./reportcategorizedbankstatementgeneratesuccessful.js"), exports);
20
+ __exportStar(require("./reportscreditmodelgeneratesuccessful.js"), exports);
21
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sdk/models/webhooks/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,wFAAsE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sdk/models/webhooks/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,4EAA0D"}
@@ -0,0 +1,63 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import * as shared from "../shared/index.js";
5
+ export type ReportsCreditModelGenerateSuccessfulReportGenerationWebhook = {
6
+ /**
7
+ * Unique identifier of the event.
8
+ */
9
+ id?: string | undefined;
10
+ /**
11
+ * The type of event.
12
+ */
13
+ eventType?: string | undefined;
14
+ /**
15
+ * In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
16
+ *
17
+ * @remarks
18
+ *
19
+ * ```
20
+ * 2020-10-08T22:40:50Z
21
+ * 2021-01-01T00:00:00
22
+ * ```
23
+ *
24
+ * When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
25
+ *
26
+ * - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
27
+ * - Unqualified local time: `2021-11-15T01:00:00`
28
+ * - UTC time offsets: `2021-11-15T01:00:00-05:00`
29
+ *
30
+ * > Time zones
31
+ * >
32
+ * > Not all dates from Codat will contain information about time zones.
33
+ * > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
34
+ */
35
+ generatedDate?: string | undefined;
36
+ payload?: shared.ReportGenerationPayload | undefined;
37
+ };
38
+ /** @internal */
39
+ export declare const ReportsCreditModelGenerateSuccessfulReportGenerationWebhook$inboundSchema: z.ZodType<ReportsCreditModelGenerateSuccessfulReportGenerationWebhook, z.ZodTypeDef, unknown>;
40
+ /** @internal */
41
+ export type ReportsCreditModelGenerateSuccessfulReportGenerationWebhook$Outbound = {
42
+ id?: string | undefined;
43
+ eventType?: string | undefined;
44
+ generatedDate?: string | undefined;
45
+ payload?: shared.ReportGenerationPayload$Outbound | undefined;
46
+ };
47
+ /** @internal */
48
+ export declare const ReportsCreditModelGenerateSuccessfulReportGenerationWebhook$outboundSchema: z.ZodType<ReportsCreditModelGenerateSuccessfulReportGenerationWebhook$Outbound, z.ZodTypeDef, ReportsCreditModelGenerateSuccessfulReportGenerationWebhook>;
49
+ /**
50
+ * @internal
51
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
+ */
53
+ export declare namespace ReportsCreditModelGenerateSuccessfulReportGenerationWebhook$ {
54
+ /** @deprecated use `ReportsCreditModelGenerateSuccessfulReportGenerationWebhook$inboundSchema` instead. */
55
+ const inboundSchema: z.ZodType<ReportsCreditModelGenerateSuccessfulReportGenerationWebhook, z.ZodTypeDef, unknown>;
56
+ /** @deprecated use `ReportsCreditModelGenerateSuccessfulReportGenerationWebhook$outboundSchema` instead. */
57
+ const outboundSchema: z.ZodType<ReportsCreditModelGenerateSuccessfulReportGenerationWebhook$Outbound, z.ZodTypeDef, ReportsCreditModelGenerateSuccessfulReportGenerationWebhook>;
58
+ /** @deprecated use `ReportsCreditModelGenerateSuccessfulReportGenerationWebhook$Outbound` instead. */
59
+ type Outbound = ReportsCreditModelGenerateSuccessfulReportGenerationWebhook$Outbound;
60
+ }
61
+ export declare function reportsCreditModelGenerateSuccessfulReportGenerationWebhookToJSON(reportsCreditModelGenerateSuccessfulReportGenerationWebhook: ReportsCreditModelGenerateSuccessfulReportGenerationWebhook): string;
62
+ export declare function reportsCreditModelGenerateSuccessfulReportGenerationWebhookFromJSON(jsonString: string): SafeParseResult<ReportsCreditModelGenerateSuccessfulReportGenerationWebhook, SDKValidationError>;
63
+ //# sourceMappingURL=reportscreditmodelgeneratesuccessful.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reportscreditmodelgeneratesuccessful.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/webhooks/reportscreditmodelgeneratesuccessful.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,MAAM,MAAM,2DAA2D,GAAG;IACxE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,uBAAuB,GAAG,SAAS,CAAC;CACtD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yEAAyE,EACpF,CAAC,CAAC,OAAO,CACP,2DAA2D,EAC3D,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,oEAAoE,GAC9E;IACE,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,gCAAgC,GAAG,SAAS,CAAC;CAC/D,CAAC;AAEJ,gBAAgB;AAChB,eAAO,MAAM,0EAA0E,EACrF,CAAC,CAAC,OAAO,CACP,oEAAoE,EACpE,CAAC,CAAC,UAAU,EACZ,2DAA2D,CAM3D,CAAC;AAEL;;;GAGG;AACH,yBAAiB,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