@apideck/unify 0.29.7 → 0.29.9

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 (437) hide show
  1. package/README.md +24 -1
  2. package/docs/sdks/bankaccounts/README.md +564 -0
  3. package/docs/sdks/connectionconsent/README.md +100 -0
  4. package/docs/sdks/connectionconsents/README.md +92 -0
  5. package/docs/sdks/expenses/README.md +8 -0
  6. package/examples/accountingTaxRatesList.example.ts +1 -1
  7. package/examples/package-lock.json +1 -1
  8. package/funcs/accountingAttachmentsList.js +3 -0
  9. package/funcs/accountingAttachmentsList.js.map +1 -1
  10. package/funcs/accountingBankAccountsCreate.d.ts +18 -0
  11. package/funcs/accountingBankAccountsCreate.d.ts.map +1 -0
  12. package/funcs/accountingBankAccountsCreate.js +139 -0
  13. package/funcs/accountingBankAccountsCreate.js.map +1 -0
  14. package/funcs/accountingBankAccountsDelete.d.ts +18 -0
  15. package/funcs/accountingBankAccountsDelete.d.ts.map +1 -0
  16. package/funcs/accountingBankAccountsDelete.js +142 -0
  17. package/funcs/accountingBankAccountsDelete.js.map +1 -0
  18. package/funcs/accountingBankAccountsGet.d.ts +18 -0
  19. package/funcs/accountingBankAccountsGet.d.ts.map +1 -0
  20. package/funcs/accountingBankAccountsGet.js +143 -0
  21. package/funcs/accountingBankAccountsGet.js.map +1 -0
  22. package/funcs/accountingBankAccountsList.d.ts +21 -0
  23. package/funcs/accountingBankAccountsList.d.ts.map +1 -0
  24. package/funcs/accountingBankAccountsList.js +168 -0
  25. package/funcs/accountingBankAccountsList.js.map +1 -0
  26. package/funcs/accountingBankAccountsUpdate.d.ts +18 -0
  27. package/funcs/accountingBankAccountsUpdate.d.ts.map +1 -0
  28. package/funcs/accountingBankAccountsUpdate.js +145 -0
  29. package/funcs/accountingBankAccountsUpdate.js.map +1 -0
  30. package/funcs/accountingBankFeedAccountsList.js +3 -0
  31. package/funcs/accountingBankFeedAccountsList.js.map +1 -1
  32. package/funcs/accountingBankFeedStatementsList.js +3 -0
  33. package/funcs/accountingBankFeedStatementsList.js.map +1 -1
  34. package/funcs/accountingBillPaymentsList.js +3 -0
  35. package/funcs/accountingBillPaymentsList.js.map +1 -1
  36. package/funcs/accountingBillsList.js +3 -0
  37. package/funcs/accountingBillsList.js.map +1 -1
  38. package/funcs/accountingCategoriesList.js +3 -0
  39. package/funcs/accountingCategoriesList.js.map +1 -1
  40. package/funcs/accountingCreditNotesList.js +3 -0
  41. package/funcs/accountingCreditNotesList.js.map +1 -1
  42. package/funcs/accountingCustomersList.js +3 -0
  43. package/funcs/accountingCustomersList.js.map +1 -1
  44. package/funcs/accountingDepartmentsList.js +3 -0
  45. package/funcs/accountingDepartmentsList.js.map +1 -1
  46. package/funcs/accountingExpensesList.d.ts.map +1 -1
  47. package/funcs/accountingExpensesList.js +7 -2
  48. package/funcs/accountingExpensesList.js.map +1 -1
  49. package/funcs/accountingInvoiceItemsList.js +3 -0
  50. package/funcs/accountingInvoiceItemsList.js.map +1 -1
  51. package/funcs/accountingInvoicesList.js +3 -0
  52. package/funcs/accountingInvoicesList.js.map +1 -1
  53. package/funcs/accountingJournalEntriesList.js +3 -0
  54. package/funcs/accountingJournalEntriesList.js.map +1 -1
  55. package/funcs/accountingLedgerAccountsList.js +3 -0
  56. package/funcs/accountingLedgerAccountsList.js.map +1 -1
  57. package/funcs/accountingLocationsList.js +3 -0
  58. package/funcs/accountingLocationsList.js.map +1 -1
  59. package/funcs/accountingPaymentsList.js +3 -0
  60. package/funcs/accountingPaymentsList.js.map +1 -1
  61. package/funcs/accountingPurchaseOrdersList.js +3 -0
  62. package/funcs/accountingPurchaseOrdersList.js.map +1 -1
  63. package/funcs/accountingQuotesList.js +3 -0
  64. package/funcs/accountingQuotesList.js.map +1 -1
  65. package/funcs/accountingSubsidiariesList.js +3 -0
  66. package/funcs/accountingSubsidiariesList.js.map +1 -1
  67. package/funcs/accountingSuppliersList.js +3 -0
  68. package/funcs/accountingSuppliersList.js.map +1 -1
  69. package/funcs/accountingTaxRatesList.js +3 -0
  70. package/funcs/accountingTaxRatesList.js.map +1 -1
  71. package/funcs/accountingTrackingCategoriesList.js +3 -0
  72. package/funcs/accountingTrackingCategoriesList.js.map +1 -1
  73. package/funcs/atsApplicantsList.js +3 -0
  74. package/funcs/atsApplicantsList.js.map +1 -1
  75. package/funcs/atsApplicationsList.js +3 -0
  76. package/funcs/atsApplicationsList.js.map +1 -1
  77. package/funcs/atsJobsList.js +3 -0
  78. package/funcs/atsJobsList.js.map +1 -1
  79. package/funcs/connectorApisList.js +3 -0
  80. package/funcs/connectorApisList.js.map +1 -1
  81. package/funcs/connectorConnectorsList.js +3 -0
  82. package/funcs/connectorConnectorsList.js.map +1 -1
  83. package/funcs/crmActivitiesList.js +3 -0
  84. package/funcs/crmActivitiesList.js.map +1 -1
  85. package/funcs/crmCompaniesList.js +3 -0
  86. package/funcs/crmCompaniesList.js.map +1 -1
  87. package/funcs/crmContactsList.js +3 -0
  88. package/funcs/crmContactsList.js.map +1 -1
  89. package/funcs/crmCustomObjectSchemasList.js +3 -0
  90. package/funcs/crmCustomObjectSchemasList.js.map +1 -1
  91. package/funcs/crmCustomObjectsList.js +3 -0
  92. package/funcs/crmCustomObjectsList.js.map +1 -1
  93. package/funcs/crmLeadsList.js +3 -0
  94. package/funcs/crmLeadsList.js.map +1 -1
  95. package/funcs/crmNotesList.js +3 -0
  96. package/funcs/crmNotesList.js.map +1 -1
  97. package/funcs/crmOpportunitiesList.js +3 -0
  98. package/funcs/crmOpportunitiesList.js.map +1 -1
  99. package/funcs/crmPipelinesList.js +3 -0
  100. package/funcs/crmPipelinesList.js.map +1 -1
  101. package/funcs/crmUsersList.js +3 -0
  102. package/funcs/crmUsersList.js.map +1 -1
  103. package/funcs/ecommerceCustomersList.js +3 -0
  104. package/funcs/ecommerceCustomersList.js.map +1 -1
  105. package/funcs/ecommerceOrdersList.js +3 -0
  106. package/funcs/ecommerceOrdersList.js.map +1 -1
  107. package/funcs/ecommerceProductsList.js +3 -0
  108. package/funcs/ecommerceProductsList.js.map +1 -1
  109. package/funcs/fileStorageDriveGroupsList.js +3 -0
  110. package/funcs/fileStorageDriveGroupsList.js.map +1 -1
  111. package/funcs/fileStorageDrivesList.js +3 -0
  112. package/funcs/fileStorageDrivesList.js.map +1 -1
  113. package/funcs/fileStorageFilesList.js +3 -0
  114. package/funcs/fileStorageFilesList.js.map +1 -1
  115. package/funcs/fileStorageSharedLinksList.js +3 -0
  116. package/funcs/fileStorageSharedLinksList.js.map +1 -1
  117. package/funcs/hrisCompaniesList.js +3 -0
  118. package/funcs/hrisCompaniesList.js.map +1 -1
  119. package/funcs/hrisDepartmentsList.js +3 -0
  120. package/funcs/hrisDepartmentsList.js.map +1 -1
  121. package/funcs/hrisEmployeesList.js +3 -0
  122. package/funcs/hrisEmployeesList.js.map +1 -1
  123. package/funcs/hrisTimeOffRequestsList.js +3 -0
  124. package/funcs/hrisTimeOffRequestsList.js.map +1 -1
  125. package/funcs/issueTrackingCollectionTagsList.js +3 -0
  126. package/funcs/issueTrackingCollectionTagsList.js.map +1 -1
  127. package/funcs/issueTrackingCollectionTicketCommentsGet.js +3 -0
  128. package/funcs/issueTrackingCollectionTicketCommentsGet.js.map +1 -1
  129. package/funcs/issueTrackingCollectionTicketCommentsList.js +3 -0
  130. package/funcs/issueTrackingCollectionTicketCommentsList.js.map +1 -1
  131. package/funcs/issueTrackingCollectionTicketsList.js +3 -0
  132. package/funcs/issueTrackingCollectionTicketsList.js.map +1 -1
  133. package/funcs/issueTrackingCollectionUsersList.js +3 -0
  134. package/funcs/issueTrackingCollectionUsersList.js.map +1 -1
  135. package/funcs/issueTrackingCollectionsList.js +3 -0
  136. package/funcs/issueTrackingCollectionsList.js.map +1 -1
  137. package/funcs/smsMessagesList.js +3 -0
  138. package/funcs/smsMessagesList.js.map +1 -1
  139. package/funcs/vaultConnectionConsentUpdate.d.ts +18 -0
  140. package/funcs/vaultConnectionConsentUpdate.d.ts.map +1 -0
  141. package/funcs/vaultConnectionConsentUpdate.js +144 -0
  142. package/funcs/vaultConnectionConsentUpdate.js.map +1 -0
  143. package/funcs/vaultConnectionConsentsList.d.ts +18 -0
  144. package/funcs/vaultConnectionConsentsList.d.ts.map +1 -0
  145. package/funcs/vaultConnectionConsentsList.js +141 -0
  146. package/funcs/vaultConnectionConsentsList.js.map +1 -0
  147. package/funcs/vaultConsumersList.js +3 -0
  148. package/funcs/vaultConsumersList.js.map +1 -1
  149. package/funcs/vaultLogsList.js +3 -0
  150. package/funcs/vaultLogsList.js.map +1 -1
  151. package/funcs/webhookEventLogsList.js +3 -0
  152. package/funcs/webhookEventLogsList.js.map +1 -1
  153. package/funcs/webhookWebhooksList.js +3 -0
  154. package/funcs/webhookWebhooksList.js.map +1 -1
  155. package/jsr.json +1 -1
  156. package/lib/config.d.ts +4 -4
  157. package/lib/config.js +4 -4
  158. package/models/components/accountingbankaccount.d.ts +348 -0
  159. package/models/components/accountingbankaccount.d.ts.map +1 -0
  160. package/models/components/accountingbankaccount.js +298 -0
  161. package/models/components/accountingbankaccount.js.map +1 -0
  162. package/models/components/bankaccountsfilter.d.ts +72 -0
  163. package/models/components/bankaccountsfilter.d.ts.map +1 -0
  164. package/models/components/bankaccountsfilter.js +94 -0
  165. package/models/components/bankaccountsfilter.js.map +1 -0
  166. package/models/components/bankaccountssort.d.ts +70 -0
  167. package/models/components/bankaccountssort.d.ts.map +1 -0
  168. package/models/components/bankaccountssort.js +95 -0
  169. package/models/components/bankaccountssort.js.map +1 -0
  170. package/models/components/companyinfo.d.ts +42 -0
  171. package/models/components/companyinfo.d.ts.map +1 -1
  172. package/models/components/companyinfo.js +29 -1
  173. package/models/components/companyinfo.js.map +1 -1
  174. package/models/components/connection.d.ts +28 -0
  175. package/models/components/connection.d.ts.map +1 -1
  176. package/models/components/connection.js +31 -0
  177. package/models/components/connection.js.map +1 -1
  178. package/models/components/consentrecord.d.ts +48 -0
  179. package/models/components/consentrecord.d.ts.map +1 -0
  180. package/models/components/consentrecord.js +85 -0
  181. package/models/components/consentrecord.js.map +1 -0
  182. package/models/components/consentrecordinput.d.ts +38 -0
  183. package/models/components/consentrecordinput.d.ts.map +1 -0
  184. package/models/components/consentrecordinput.js +72 -0
  185. package/models/components/consentrecordinput.js.map +1 -0
  186. package/models/components/consentstate.d.ts +46 -0
  187. package/models/components/consentstate.d.ts.map +1 -0
  188. package/models/components/consentstate.js +67 -0
  189. package/models/components/consentstate.js.map +1 -0
  190. package/models/components/createbankaccountresponse.d.ts +61 -0
  191. package/models/components/createbankaccountresponse.d.ts.map +1 -0
  192. package/models/components/createbankaccountresponse.js +89 -0
  193. package/models/components/createbankaccountresponse.js.map +1 -0
  194. package/models/components/datascopes.d.ts +43 -0
  195. package/models/components/datascopes.d.ts.map +1 -0
  196. package/models/components/datascopes.js +83 -0
  197. package/models/components/datascopes.js.map +1 -0
  198. package/models/components/datascopesinput.d.ts +38 -0
  199. package/models/components/datascopesinput.d.ts.map +1 -0
  200. package/models/components/datascopesinput.js +72 -0
  201. package/models/components/datascopesinput.js.map +1 -0
  202. package/models/components/datascopesresources.d.ts +98 -0
  203. package/models/components/datascopesresources.d.ts.map +1 -0
  204. package/models/components/datascopesresources.js +121 -0
  205. package/models/components/datascopesresources.js.map +1 -0
  206. package/models/components/deletebankaccountresponse.d.ts +61 -0
  207. package/models/components/deletebankaccountresponse.d.ts.map +1 -0
  208. package/models/components/deletebankaccountresponse.js +89 -0
  209. package/models/components/deletebankaccountresponse.js.map +1 -0
  210. package/models/components/expense.d.ts +41 -0
  211. package/models/components/expense.d.ts.map +1 -1
  212. package/models/components/expense.js +27 -1
  213. package/models/components/expense.js.map +1 -1
  214. package/models/components/expensesfilter.d.ts +75 -0
  215. package/models/components/expensesfilter.d.ts.map +1 -0
  216. package/models/components/expensesfilter.js +105 -0
  217. package/models/components/expensesfilter.js.map +1 -0
  218. package/models/components/formfield.d.ts +3 -0
  219. package/models/components/formfield.d.ts.map +1 -1
  220. package/models/components/formfield.js +1 -0
  221. package/models/components/formfield.js.map +1 -1
  222. package/models/components/getbankaccountresponse.d.ts +58 -0
  223. package/models/components/getbankaccountresponse.d.ts.map +1 -0
  224. package/models/components/getbankaccountresponse.js +89 -0
  225. package/models/components/getbankaccountresponse.js.map +1 -0
  226. package/models/components/getbankaccountsresponse.d.ts +70 -0
  227. package/models/components/getbankaccountsresponse.d.ts.map +1 -0
  228. package/models/components/getbankaccountsresponse.js +95 -0
  229. package/models/components/getbankaccountsresponse.js.map +1 -0
  230. package/models/components/getconsentrecordsresponse.d.ts +52 -0
  231. package/models/components/getconsentrecordsresponse.d.ts.map +1 -0
  232. package/models/components/getconsentrecordsresponse.js +87 -0
  233. package/models/components/getconsentrecordsresponse.js.map +1 -0
  234. package/models/components/index.d.ts +18 -0
  235. package/models/components/index.d.ts.map +1 -1
  236. package/models/components/index.js +18 -0
  237. package/models/components/index.js.map +1 -1
  238. package/models/components/journalentriesfilter.d.ts +46 -0
  239. package/models/components/journalentriesfilter.d.ts.map +1 -1
  240. package/models/components/journalentriesfilter.js +28 -1
  241. package/models/components/journalentriesfilter.js.map +1 -1
  242. package/models/components/logsfilter.d.ts +8 -0
  243. package/models/components/logsfilter.d.ts.map +1 -1
  244. package/models/components/logsfilter.js +4 -0
  245. package/models/components/logsfilter.js.map +1 -1
  246. package/models/components/trackingcategory.d.ts +10 -0
  247. package/models/components/trackingcategory.d.ts.map +1 -1
  248. package/models/components/trackingcategory.js +8 -0
  249. package/models/components/trackingcategory.js.map +1 -1
  250. package/models/components/updatebankaccountresponse.d.ts +61 -0
  251. package/models/components/updatebankaccountresponse.d.ts.map +1 -0
  252. package/models/components/updatebankaccountresponse.js +89 -0
  253. package/models/components/updatebankaccountresponse.js.map +1 -0
  254. package/models/components/updateconsentrequest.d.ts +133 -0
  255. package/models/components/updateconsentrequest.d.ts.map +1 -0
  256. package/models/components/updateconsentrequest.js +158 -0
  257. package/models/components/updateconsentrequest.js.map +1 -0
  258. package/models/components/updateconsentresponse.d.ts +52 -0
  259. package/models/components/updateconsentresponse.d.ts.map +1 -0
  260. package/models/components/updateconsentresponse.js +87 -0
  261. package/models/components/updateconsentresponse.js.map +1 -0
  262. package/models/components/webhookeventtype.d.ts +6 -6
  263. package/models/components/webhookeventtype.js +2 -2
  264. package/models/components/webhookeventtype.js.map +1 -1
  265. package/models/errors/index.d.ts +1 -0
  266. package/models/errors/index.d.ts.map +1 -1
  267. package/models/errors/index.js +1 -0
  268. package/models/errors/index.js.map +1 -1
  269. package/models/operations/accountingbankaccountsadd.d.ts +118 -0
  270. package/models/operations/accountingbankaccountsadd.d.ts.map +1 -0
  271. package/models/operations/accountingbankaccountsadd.js +163 -0
  272. package/models/operations/accountingbankaccountsadd.js.map +1 -0
  273. package/models/operations/accountingbankaccountsall.d.ts +150 -0
  274. package/models/operations/accountingbankaccountsall.d.ts.map +1 -0
  275. package/models/operations/accountingbankaccountsall.js +173 -0
  276. package/models/operations/accountingbankaccountsall.js.map +1 -0
  277. package/models/operations/accountingbankaccountsdelete.d.ts +121 -0
  278. package/models/operations/accountingbankaccountsdelete.d.ts.map +1 -0
  279. package/models/operations/accountingbankaccountsdelete.js +155 -0
  280. package/models/operations/accountingbankaccountsdelete.js.map +1 -0
  281. package/models/operations/accountingbankaccountsone.d.ts +126 -0
  282. package/models/operations/accountingbankaccountsone.d.ts.map +1 -0
  283. package/models/operations/accountingbankaccountsone.js +157 -0
  284. package/models/operations/accountingbankaccountsone.js.map +1 -0
  285. package/models/operations/accountingbankaccountsupdate.d.ts +123 -0
  286. package/models/operations/accountingbankaccountsupdate.d.ts.map +1 -0
  287. package/models/operations/accountingbankaccountsupdate.js +165 -0
  288. package/models/operations/accountingbankaccountsupdate.js.map +1 -0
  289. package/models/operations/accountingexpensesall.d.ts +5 -0
  290. package/models/operations/accountingexpensesall.d.ts.map +1 -1
  291. package/models/operations/accountingexpensesall.js +2 -0
  292. package/models/operations/accountingexpensesall.js.map +1 -1
  293. package/models/operations/index.d.ts +7 -0
  294. package/models/operations/index.d.ts.map +1 -1
  295. package/models/operations/index.js +7 -0
  296. package/models/operations/index.js.map +1 -1
  297. package/models/operations/vaultconnectionconsentsall.d.ts +116 -0
  298. package/models/operations/vaultconnectionconsentsall.d.ts.map +1 -0
  299. package/models/operations/vaultconnectionconsentsall.js +163 -0
  300. package/models/operations/vaultconnectionconsentsall.js.map +1 -0
  301. package/models/operations/vaultconnectionconsentupdate.d.ts +121 -0
  302. package/models/operations/vaultconnectionconsentupdate.d.ts.map +1 -0
  303. package/models/operations/vaultconnectionconsentupdate.js +167 -0
  304. package/models/operations/vaultconnectionconsentupdate.js.map +1 -0
  305. package/package.json +1 -1
  306. package/sdk/accounting.d.ts +3 -0
  307. package/sdk/accounting.d.ts.map +1 -1
  308. package/sdk/accounting.js +4 -0
  309. package/sdk/accounting.js.map +1 -1
  310. package/sdk/bankaccounts.d.ts +43 -0
  311. package/sdk/bankaccounts.d.ts.map +1 -0
  312. package/sdk/bankaccounts.js +63 -0
  313. package/sdk/bankaccounts.js.map +1 -0
  314. package/sdk/connectionconsent.d.ts +12 -0
  315. package/sdk/connectionconsent.d.ts.map +1 -0
  316. package/sdk/connectionconsent.js +22 -0
  317. package/sdk/connectionconsent.js.map +1 -0
  318. package/sdk/connectionconsents.d.ts +12 -0
  319. package/sdk/connectionconsents.d.ts.map +1 -0
  320. package/sdk/connectionconsents.js +22 -0
  321. package/sdk/connectionconsents.js.map +1 -0
  322. package/sdk/vault.d.ts +6 -0
  323. package/sdk/vault.d.ts.map +1 -1
  324. package/sdk/vault.js +8 -0
  325. package/sdk/vault.js.map +1 -1
  326. package/src/__tests__/bankaccounts.test.ts +293 -0
  327. package/src/__tests__/connectionconsent.test.ts +89 -0
  328. package/src/__tests__/connectionconsents.test.ts +31 -0
  329. package/src/funcs/accountingAttachmentsList.ts +3 -0
  330. package/src/funcs/accountingBankAccountsCreate.ts +225 -0
  331. package/src/funcs/accountingBankAccountsDelete.ts +231 -0
  332. package/src/funcs/accountingBankAccountsGet.ts +230 -0
  333. package/src/funcs/accountingBankAccountsList.ts +303 -0
  334. package/src/funcs/accountingBankAccountsUpdate.ts +234 -0
  335. package/src/funcs/accountingBankFeedAccountsList.ts +3 -0
  336. package/src/funcs/accountingBankFeedStatementsList.ts +3 -0
  337. package/src/funcs/accountingBillPaymentsList.ts +3 -0
  338. package/src/funcs/accountingBillsList.ts +3 -0
  339. package/src/funcs/accountingCategoriesList.ts +3 -0
  340. package/src/funcs/accountingCreditNotesList.ts +3 -0
  341. package/src/funcs/accountingCustomersList.ts +3 -0
  342. package/src/funcs/accountingDepartmentsList.ts +3 -0
  343. package/src/funcs/accountingExpensesList.ts +19 -6
  344. package/src/funcs/accountingInvoiceItemsList.ts +3 -0
  345. package/src/funcs/accountingInvoicesList.ts +3 -0
  346. package/src/funcs/accountingJournalEntriesList.ts +3 -0
  347. package/src/funcs/accountingLedgerAccountsList.ts +3 -0
  348. package/src/funcs/accountingLocationsList.ts +3 -0
  349. package/src/funcs/accountingPaymentsList.ts +3 -0
  350. package/src/funcs/accountingPurchaseOrdersList.ts +3 -0
  351. package/src/funcs/accountingQuotesList.ts +3 -0
  352. package/src/funcs/accountingSubsidiariesList.ts +3 -0
  353. package/src/funcs/accountingSuppliersList.ts +3 -0
  354. package/src/funcs/accountingTaxRatesList.ts +3 -0
  355. package/src/funcs/accountingTrackingCategoriesList.ts +3 -0
  356. package/src/funcs/atsApplicantsList.ts +3 -0
  357. package/src/funcs/atsApplicationsList.ts +3 -0
  358. package/src/funcs/atsJobsList.ts +3 -0
  359. package/src/funcs/connectorApisList.ts +3 -0
  360. package/src/funcs/connectorConnectorsList.ts +3 -0
  361. package/src/funcs/crmActivitiesList.ts +3 -0
  362. package/src/funcs/crmCompaniesList.ts +3 -0
  363. package/src/funcs/crmContactsList.ts +3 -0
  364. package/src/funcs/crmCustomObjectSchemasList.ts +3 -0
  365. package/src/funcs/crmCustomObjectsList.ts +3 -0
  366. package/src/funcs/crmLeadsList.ts +3 -0
  367. package/src/funcs/crmNotesList.ts +3 -0
  368. package/src/funcs/crmOpportunitiesList.ts +3 -0
  369. package/src/funcs/crmPipelinesList.ts +3 -0
  370. package/src/funcs/crmUsersList.ts +3 -0
  371. package/src/funcs/ecommerceCustomersList.ts +3 -0
  372. package/src/funcs/ecommerceOrdersList.ts +3 -0
  373. package/src/funcs/ecommerceProductsList.ts +3 -0
  374. package/src/funcs/fileStorageDriveGroupsList.ts +3 -0
  375. package/src/funcs/fileStorageDrivesList.ts +3 -0
  376. package/src/funcs/fileStorageFilesList.ts +3 -0
  377. package/src/funcs/fileStorageSharedLinksList.ts +3 -0
  378. package/src/funcs/hrisCompaniesList.ts +3 -0
  379. package/src/funcs/hrisDepartmentsList.ts +3 -0
  380. package/src/funcs/hrisEmployeesList.ts +3 -0
  381. package/src/funcs/hrisTimeOffRequestsList.ts +3 -0
  382. package/src/funcs/issueTrackingCollectionTagsList.ts +3 -0
  383. package/src/funcs/issueTrackingCollectionTicketCommentsGet.ts +3 -0
  384. package/src/funcs/issueTrackingCollectionTicketCommentsList.ts +3 -0
  385. package/src/funcs/issueTrackingCollectionTicketsList.ts +3 -0
  386. package/src/funcs/issueTrackingCollectionUsersList.ts +3 -0
  387. package/src/funcs/issueTrackingCollectionsList.ts +3 -0
  388. package/src/funcs/smsMessagesList.ts +3 -0
  389. package/src/funcs/vaultConnectionConsentUpdate.ts +230 -0
  390. package/src/funcs/vaultConnectionConsentsList.ts +225 -0
  391. package/src/funcs/vaultConsumersList.ts +3 -0
  392. package/src/funcs/vaultLogsList.ts +3 -0
  393. package/src/funcs/webhookEventLogsList.ts +3 -0
  394. package/src/funcs/webhookWebhooksList.ts +3 -0
  395. package/src/lib/config.ts +4 -4
  396. package/src/models/components/accountingbankaccount.ts +576 -0
  397. package/src/models/components/bankaccountsfilter.ts +113 -0
  398. package/src/models/components/bankaccountssort.ts +113 -0
  399. package/src/models/components/companyinfo.ts +44 -0
  400. package/src/models/components/connection.ts +78 -0
  401. package/src/models/components/consentrecord.ts +101 -0
  402. package/src/models/components/consentrecordinput.ts +82 -0
  403. package/src/models/components/consentstate.ts +41 -0
  404. package/src/models/components/createbankaccountresponse.ts +122 -0
  405. package/src/models/components/datascopes.ts +94 -0
  406. package/src/models/components/datascopesinput.ts +80 -0
  407. package/src/models/components/datascopesresources.ts +172 -0
  408. package/src/models/components/deletebankaccountresponse.ts +122 -0
  409. package/src/models/components/expense.ts +47 -0
  410. package/src/models/components/expensesfilter.ts +111 -0
  411. package/src/models/components/formfield.ts +1 -0
  412. package/src/models/components/getbankaccountresponse.ts +119 -0
  413. package/src/models/components/getbankaccountsresponse.ts +145 -0
  414. package/src/models/components/getconsentrecordsresponse.ts +107 -0
  415. package/src/models/components/index.ts +18 -0
  416. package/src/models/components/journalentriesfilter.ts +40 -0
  417. package/src/models/components/logsfilter.ts +12 -0
  418. package/src/models/components/trackingcategory.ts +18 -0
  419. package/src/models/components/updatebankaccountresponse.ts +122 -0
  420. package/src/models/components/updateconsentrequest.ts +229 -0
  421. package/src/models/components/updateconsentresponse.ts +107 -0
  422. package/src/models/components/webhookeventtype.ts +2 -2
  423. package/src/models/errors/index.ts +1 -0
  424. package/src/models/operations/accountingbankaccountsadd.ts +271 -0
  425. package/src/models/operations/accountingbankaccountsall.ts +309 -0
  426. package/src/models/operations/accountingbankaccountsdelete.ts +274 -0
  427. package/src/models/operations/accountingbankaccountsone.ts +273 -0
  428. package/src/models/operations/accountingbankaccountsupdate.ts +286 -0
  429. package/src/models/operations/accountingexpensesall.ts +7 -0
  430. package/src/models/operations/index.ts +7 -0
  431. package/src/models/operations/vaultconnectionconsentsall.ts +272 -0
  432. package/src/models/operations/vaultconnectionconsentupdate.ts +284 -0
  433. package/src/sdk/accounting.ts +6 -0
  434. package/src/sdk/bankaccounts.ts +105 -0
  435. package/src/sdk/connectionconsent.ts +27 -0
  436. package/src/sdk/connectionconsents.ts +27 -0
  437. package/src/sdk/vault.ts +12 -0
@@ -0,0 +1,234 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { ApideckCore } from "../core.js";
6
+ import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import { ApideckError } from "../models/errors/apideckerror.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ /**
29
+ * Update Bank Account
30
+ *
31
+ * @remarks
32
+ * Update Bank Account
33
+ */
34
+ export function accountingBankAccountsUpdate(
35
+ client: ApideckCore,
36
+ request: operations.AccountingBankAccountsUpdateRequest,
37
+ options?: RequestOptions,
38
+ ): APIPromise<
39
+ Result<
40
+ operations.AccountingBankAccountsUpdateResponse,
41
+ | errors.BadRequestResponse
42
+ | errors.UnauthorizedResponse
43
+ | errors.PaymentRequiredResponse
44
+ | errors.NotFoundResponse
45
+ | errors.UnprocessableResponse
46
+ | ApideckError
47
+ | ResponseValidationError
48
+ | ConnectionError
49
+ | RequestAbortedError
50
+ | RequestTimeoutError
51
+ | InvalidRequestError
52
+ | UnexpectedClientError
53
+ | SDKValidationError
54
+ >
55
+ > {
56
+ return new APIPromise($do(
57
+ client,
58
+ request,
59
+ options,
60
+ ));
61
+ }
62
+
63
+ async function $do(
64
+ client: ApideckCore,
65
+ request: operations.AccountingBankAccountsUpdateRequest,
66
+ options?: RequestOptions,
67
+ ): Promise<
68
+ [
69
+ Result<
70
+ operations.AccountingBankAccountsUpdateResponse,
71
+ | errors.BadRequestResponse
72
+ | errors.UnauthorizedResponse
73
+ | errors.PaymentRequiredResponse
74
+ | errors.NotFoundResponse
75
+ | errors.UnprocessableResponse
76
+ | ApideckError
77
+ | ResponseValidationError
78
+ | ConnectionError
79
+ | RequestAbortedError
80
+ | RequestTimeoutError
81
+ | InvalidRequestError
82
+ | UnexpectedClientError
83
+ | SDKValidationError
84
+ >,
85
+ APICall,
86
+ ]
87
+ > {
88
+ const parsed = safeParse(
89
+ request,
90
+ (value) =>
91
+ operations.AccountingBankAccountsUpdateRequest$outboundSchema.parse(
92
+ value,
93
+ ),
94
+ "Input validation failed",
95
+ );
96
+ if (!parsed.ok) {
97
+ return [parsed, { status: "invalid" }];
98
+ }
99
+ const payload = parsed.value;
100
+ const body = encodeJSON("body", payload.AccountingBankAccount, {
101
+ explode: true,
102
+ });
103
+
104
+ const pathParams = {
105
+ id: encodeSimple("id", payload.id, {
106
+ explode: false,
107
+ charEncoding: "percent",
108
+ }),
109
+ };
110
+
111
+ const path = pathToFunc("/accounting/bank-accounts/{id}")(pathParams);
112
+
113
+ const query = encodeFormQuery({
114
+ "raw": payload.raw,
115
+ });
116
+
117
+ const headers = new Headers(compactMap({
118
+ "Content-Type": "application/json",
119
+ Accept: "application/json",
120
+ "x-apideck-app-id": encodeSimple(
121
+ "x-apideck-app-id",
122
+ payload.appId ?? client._options.appId,
123
+ { explode: false, charEncoding: "none" },
124
+ ),
125
+ "x-apideck-consumer-id": encodeSimple(
126
+ "x-apideck-consumer-id",
127
+ payload.consumerId ?? client._options.consumerId,
128
+ { explode: false, charEncoding: "none" },
129
+ ),
130
+ "x-apideck-service-id": encodeSimple(
131
+ "x-apideck-service-id",
132
+ payload.serviceId,
133
+ { explode: false, charEncoding: "none" },
134
+ ),
135
+ }));
136
+
137
+ const secConfig = await extractSecurity(client._options.apiKey);
138
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
139
+ const requestSecurity = resolveGlobalSecurity(securityInput);
140
+
141
+ const context = {
142
+ options: client._options,
143
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
144
+ operationID: "accounting.bankAccountsUpdate",
145
+ oAuth2Scopes: [],
146
+
147
+ resolvedSecurity: requestSecurity,
148
+
149
+ securitySource: client._options.apiKey,
150
+ retryConfig: options?.retries
151
+ || client._options.retryConfig
152
+ || {
153
+ strategy: "backoff",
154
+ backoff: {
155
+ initialInterval: 500,
156
+ maxInterval: 60000,
157
+ exponent: 1.5,
158
+ maxElapsedTime: 3600000,
159
+ },
160
+ retryConnectionErrors: true,
161
+ }
162
+ || { strategy: "none" },
163
+ retryCodes: options?.retryCodes || ["408", "500", "502", "503", "504"],
164
+ };
165
+
166
+ const requestRes = client._createRequest(context, {
167
+ security: requestSecurity,
168
+ method: "PATCH",
169
+ baseURL: options?.serverURL,
170
+ path: path,
171
+ headers: headers,
172
+ query: query,
173
+ body: body,
174
+ userAgent: client._options.userAgent,
175
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
176
+ }, options);
177
+ if (!requestRes.ok) {
178
+ return [requestRes, { status: "invalid" }];
179
+ }
180
+ const req = requestRes.value;
181
+
182
+ const doResult = await client._do(req, {
183
+ context,
184
+ errorCodes: ["400", "401", "402", "404", "422", "4XX", "5XX"],
185
+ retryConfig: context.retryConfig,
186
+ retryCodes: context.retryCodes,
187
+ });
188
+ if (!doResult.ok) {
189
+ return [doResult, { status: "request-error", request: req }];
190
+ }
191
+ const response = doResult.value;
192
+
193
+ const responseFields = {
194
+ HttpMeta: { Response: response, Request: req },
195
+ };
196
+
197
+ const [result] = await M.match<
198
+ operations.AccountingBankAccountsUpdateResponse,
199
+ | errors.BadRequestResponse
200
+ | errors.UnauthorizedResponse
201
+ | errors.PaymentRequiredResponse
202
+ | errors.NotFoundResponse
203
+ | errors.UnprocessableResponse
204
+ | ApideckError
205
+ | ResponseValidationError
206
+ | ConnectionError
207
+ | RequestAbortedError
208
+ | RequestTimeoutError
209
+ | InvalidRequestError
210
+ | UnexpectedClientError
211
+ | SDKValidationError
212
+ >(
213
+ M.json(200, operations.AccountingBankAccountsUpdateResponse$inboundSchema, {
214
+ key: "UpdateBankAccountResponse",
215
+ }),
216
+ M.jsonErr(400, errors.BadRequestResponse$inboundSchema),
217
+ M.jsonErr(401, errors.UnauthorizedResponse$inboundSchema),
218
+ M.jsonErr(402, errors.PaymentRequiredResponse$inboundSchema),
219
+ M.jsonErr(404, errors.NotFoundResponse$inboundSchema),
220
+ M.jsonErr(422, errors.UnprocessableResponse$inboundSchema),
221
+ M.fail("4XX"),
222
+ M.fail("5XX"),
223
+ M.json(
224
+ "default",
225
+ operations.AccountingBankAccountsUpdateResponse$inboundSchema,
226
+ { key: "UnexpectedErrorResponse" },
227
+ ),
228
+ )(response, req, { extraFields: responseFields });
229
+ if (!result.ok) {
230
+ return [result, { status: "complete", request: req, response }];
231
+ }
232
+
233
+ return [result, { status: "complete", request: req, response }];
234
+ }
@@ -279,6 +279,9 @@ async function $do(
279
279
  if (typeof nextCursor !== "string") {
280
280
  return { next: () => null };
281
281
  }
282
+ if (nextCursor.trim() === "") {
283
+ return { next: () => null };
284
+ }
282
285
 
283
286
  const nextVal = () =>
284
287
  accountingBankFeedAccountsList(
@@ -279,6 +279,9 @@ async function $do(
279
279
  if (typeof nextCursor !== "string") {
280
280
  return { next: () => null };
281
281
  }
282
+ if (nextCursor.trim() === "") {
283
+ return { next: () => null };
284
+ }
282
285
 
283
286
  const nextVal = () =>
284
287
  accountingBankFeedStatementsList(
@@ -277,6 +277,9 @@ async function $do(
277
277
  if (typeof nextCursor !== "string") {
278
278
  return { next: () => null };
279
279
  }
280
+ if (nextCursor.trim() === "") {
281
+ return { next: () => null };
282
+ }
280
283
 
281
284
  const nextVal = () =>
282
285
  accountingBillPaymentsList(
@@ -274,6 +274,9 @@ async function $do(
274
274
  if (typeof nextCursor !== "string") {
275
275
  return { next: () => null };
276
276
  }
277
+ if (nextCursor.trim() === "") {
278
+ return { next: () => null };
279
+ }
277
280
 
278
281
  const nextVal = () =>
279
282
  accountingBillsList(
@@ -275,6 +275,9 @@ async function $do(
275
275
  if (typeof nextCursor !== "string") {
276
276
  return { next: () => null };
277
277
  }
278
+ if (nextCursor.trim() === "") {
279
+ return { next: () => null };
280
+ }
278
281
 
279
282
  const nextVal = () =>
280
283
  accountingCategoriesList(
@@ -277,6 +277,9 @@ async function $do(
277
277
  if (typeof nextCursor !== "string") {
278
278
  return { next: () => null };
279
279
  }
280
+ if (nextCursor.trim() === "") {
281
+ return { next: () => null };
282
+ }
280
283
 
281
284
  const nextVal = () =>
282
285
  accountingCreditNotesList(
@@ -275,6 +275,9 @@ async function $do(
275
275
  if (typeof nextCursor !== "string") {
276
276
  return { next: () => null };
277
277
  }
278
+ if (nextCursor.trim() === "") {
279
+ return { next: () => null };
280
+ }
278
281
 
279
282
  const nextVal = () =>
280
283
  accountingCustomersList(
@@ -275,6 +275,9 @@ async function $do(
275
275
  if (typeof nextCursor !== "string") {
276
276
  return { next: () => null };
277
277
  }
278
+ if (nextCursor.trim() === "") {
279
+ return { next: () => null };
280
+ }
278
281
 
279
282
  const nextVal = () =>
280
283
  accountingDepartmentsList(
@@ -4,7 +4,12 @@
4
4
 
5
5
  import { ApideckCore } from "../core.js";
6
6
  import { dlv } from "../lib/dlv.js";
7
- import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
+ import {
8
+ encodeDeepObjectQuery,
9
+ encodeFormQuery,
10
+ encodeSimple,
11
+ queryJoin,
12
+ } from "../lib/encodings.js";
8
13
  import * as M from "../lib/matchers.js";
9
14
  import { compactMap } from "../lib/primitives.js";
10
15
  import { safeParse } from "../lib/schemas.js";
@@ -112,11 +117,16 @@ async function $do(
112
117
 
113
118
  const path = pathToFunc("/accounting/expenses")();
114
119
 
115
- const query = encodeFormQuery({
116
- "cursor": payload.cursor,
117
- "limit": payload.limit,
118
- "raw": payload.raw,
119
- });
120
+ const query = queryJoin(
121
+ encodeDeepObjectQuery({
122
+ "filter": payload.filter,
123
+ }),
124
+ encodeFormQuery({
125
+ "cursor": payload.cursor,
126
+ "limit": payload.limit,
127
+ "raw": payload.raw,
128
+ }),
129
+ );
120
130
 
121
131
  const headers = new Headers(compactMap({
122
132
  Accept: "application/json",
@@ -262,6 +272,9 @@ async function $do(
262
272
  if (typeof nextCursor !== "string") {
263
273
  return { next: () => null };
264
274
  }
275
+ if (nextCursor.trim() === "") {
276
+ return { next: () => null };
277
+ }
265
278
 
266
279
  const nextVal = () =>
267
280
  accountingExpensesList(
@@ -277,6 +277,9 @@ async function $do(
277
277
  if (typeof nextCursor !== "string") {
278
278
  return { next: () => null };
279
279
  }
280
+ if (nextCursor.trim() === "") {
281
+ return { next: () => null };
282
+ }
280
283
 
281
284
  const nextVal = () =>
282
285
  accountingInvoiceItemsList(
@@ -275,6 +275,9 @@ async function $do(
275
275
  if (typeof nextCursor !== "string") {
276
276
  return { next: () => null };
277
277
  }
278
+ if (nextCursor.trim() === "") {
279
+ return { next: () => null };
280
+ }
278
281
 
279
282
  const nextVal = () =>
280
283
  accountingInvoicesList(
@@ -277,6 +277,9 @@ async function $do(
277
277
  if (typeof nextCursor !== "string") {
278
278
  return { next: () => null };
279
279
  }
280
+ if (nextCursor.trim() === "") {
281
+ return { next: () => null };
282
+ }
280
283
 
281
284
  const nextVal = () =>
282
285
  accountingJournalEntriesList(
@@ -277,6 +277,9 @@ async function $do(
277
277
  if (typeof nextCursor !== "string") {
278
278
  return { next: () => null };
279
279
  }
280
+ if (nextCursor.trim() === "") {
281
+ return { next: () => null };
282
+ }
280
283
 
281
284
  const nextVal = () =>
282
285
  accountingLedgerAccountsList(
@@ -273,6 +273,9 @@ async function $do(
273
273
  if (typeof nextCursor !== "string") {
274
274
  return { next: () => null };
275
275
  }
276
+ if (nextCursor.trim() === "") {
277
+ return { next: () => null };
278
+ }
276
279
 
277
280
  const nextVal = () =>
278
281
  accountingLocationsList(
@@ -275,6 +275,9 @@ async function $do(
275
275
  if (typeof nextCursor !== "string") {
276
276
  return { next: () => null };
277
277
  }
278
+ if (nextCursor.trim() === "") {
279
+ return { next: () => null };
280
+ }
278
281
 
279
282
  const nextVal = () =>
280
283
  accountingPaymentsList(
@@ -276,6 +276,9 @@ async function $do(
276
276
  if (typeof nextCursor !== "string") {
277
277
  return { next: () => null };
278
278
  }
279
+ if (nextCursor.trim() === "") {
280
+ return { next: () => null };
281
+ }
279
282
 
280
283
  const nextVal = () =>
281
284
  accountingPurchaseOrdersList(
@@ -262,6 +262,9 @@ async function $do(
262
262
  if (typeof nextCursor !== "string") {
263
263
  return { next: () => null };
264
264
  }
265
+ if (nextCursor.trim() === "") {
266
+ return { next: () => null };
267
+ }
265
268
 
266
269
  const nextVal = () =>
267
270
  accountingQuotesList(
@@ -265,6 +265,9 @@ async function $do(
265
265
  if (typeof nextCursor !== "string") {
266
266
  return { next: () => null };
267
267
  }
268
+ if (nextCursor.trim() === "") {
269
+ return { next: () => null };
270
+ }
268
271
 
269
272
  const nextVal = () =>
270
273
  accountingSubsidiariesList(
@@ -275,6 +275,9 @@ async function $do(
275
275
  if (typeof nextCursor !== "string") {
276
276
  return { next: () => null };
277
277
  }
278
+ if (nextCursor.trim() === "") {
279
+ return { next: () => null };
280
+ }
278
281
 
279
282
  const nextVal = () =>
280
283
  accountingSuppliersList(
@@ -274,6 +274,9 @@ async function $do(
274
274
  if (typeof nextCursor !== "string") {
275
275
  return { next: () => null };
276
276
  }
277
+ if (nextCursor.trim() === "") {
278
+ return { next: () => null };
279
+ }
277
280
 
278
281
  const nextVal = () =>
279
282
  accountingTaxRatesList(
@@ -279,6 +279,9 @@ async function $do(
279
279
  if (typeof nextCursor !== "string") {
280
280
  return { next: () => null };
281
281
  }
282
+ if (nextCursor.trim() === "") {
283
+ return { next: () => null };
284
+ }
282
285
 
283
286
  const nextVal = () =>
284
287
  accountingTrackingCategoriesList(
@@ -273,6 +273,9 @@ async function $do(
273
273
  if (typeof nextCursor !== "string") {
274
274
  return { next: () => null };
275
275
  }
276
+ if (nextCursor.trim() === "") {
277
+ return { next: () => null };
278
+ }
276
279
 
277
280
  const nextVal = () =>
278
281
  atsApplicantsList(
@@ -271,6 +271,9 @@ async function $do(
271
271
  if (typeof nextCursor !== "string") {
272
272
  return { next: () => null };
273
273
  }
274
+ if (nextCursor.trim() === "") {
275
+ return { next: () => null };
276
+ }
274
277
 
275
278
  const nextVal = () =>
276
279
  atsApplicationsList(
@@ -272,6 +272,9 @@ async function $do(
272
272
  if (typeof nextCursor !== "string") {
273
273
  return { next: () => null };
274
274
  }
275
+ if (nextCursor.trim() === "") {
276
+ return { next: () => null };
277
+ }
275
278
 
276
279
  const nextVal = () =>
277
280
  atsJobsList(
@@ -250,6 +250,9 @@ async function $do(
250
250
  if (typeof nextCursor !== "string") {
251
251
  return { next: () => null };
252
252
  }
253
+ if (nextCursor.trim() === "") {
254
+ return { next: () => null };
255
+ }
253
256
 
254
257
  const nextVal = () =>
255
258
  connectorApisList(
@@ -251,6 +251,9 @@ async function $do(
251
251
  if (typeof nextCursor !== "string") {
252
252
  return { next: () => null };
253
253
  }
254
+ if (nextCursor.trim() === "") {
255
+ return { next: () => null };
256
+ }
254
257
 
255
258
  const nextVal = () =>
256
259
  connectorConnectorsList(
@@ -274,6 +274,9 @@ async function $do(
274
274
  if (typeof nextCursor !== "string") {
275
275
  return { next: () => null };
276
276
  }
277
+ if (nextCursor.trim() === "") {
278
+ return { next: () => null };
279
+ }
277
280
 
278
281
  const nextVal = () =>
279
282
  crmActivitiesList(
@@ -274,6 +274,9 @@ async function $do(
274
274
  if (typeof nextCursor !== "string") {
275
275
  return { next: () => null };
276
276
  }
277
+ if (nextCursor.trim() === "") {
278
+ return { next: () => null };
279
+ }
277
280
 
278
281
  const nextVal = () =>
279
282
  crmCompaniesList(
@@ -274,6 +274,9 @@ async function $do(
274
274
  if (typeof nextCursor !== "string") {
275
275
  return { next: () => null };
276
276
  }
277
+ if (nextCursor.trim() === "") {
278
+ return { next: () => null };
279
+ }
277
280
 
278
281
  const nextVal = () =>
279
282
  crmContactsList(
@@ -274,6 +274,9 @@ async function $do(
274
274
  if (typeof nextCursor !== "string") {
275
275
  return { next: () => null };
276
276
  }
277
+ if (nextCursor.trim() === "") {
278
+ return { next: () => null };
279
+ }
277
280
 
278
281
  const nextVal = () =>
279
282
  crmCustomObjectSchemasList(
@@ -280,6 +280,9 @@ async function $do(
280
280
  if (typeof nextCursor !== "string") {
281
281
  return { next: () => null };
282
282
  }
283
+ if (nextCursor.trim() === "") {
284
+ return { next: () => null };
285
+ }
283
286
 
284
287
  const nextVal = () =>
285
288
  crmCustomObjectsList(
@@ -274,6 +274,9 @@ async function $do(
274
274
  if (typeof nextCursor !== "string") {
275
275
  return { next: () => null };
276
276
  }
277
+ if (nextCursor.trim() === "") {
278
+ return { next: () => null };
279
+ }
277
280
 
278
281
  const nextVal = () =>
279
282
  crmLeadsList(
@@ -272,6 +272,9 @@ async function $do(
272
272
  if (typeof nextCursor !== "string") {
273
273
  return { next: () => null };
274
274
  }
275
+ if (nextCursor.trim() === "") {
276
+ return { next: () => null };
277
+ }
275
278
 
276
279
  const nextVal = () =>
277
280
  crmNotesList(
@@ -275,6 +275,9 @@ async function $do(
275
275
  if (typeof nextCursor !== "string") {
276
276
  return { next: () => null };
277
277
  }
278
+ if (nextCursor.trim() === "") {
279
+ return { next: () => null };
280
+ }
278
281
 
279
282
  const nextVal = () =>
280
283
  crmOpportunitiesList(
@@ -272,6 +272,9 @@ async function $do(
272
272
  if (typeof nextCursor !== "string") {
273
273
  return { next: () => null };
274
274
  }
275
+ if (nextCursor.trim() === "") {
276
+ return { next: () => null };
277
+ }
275
278
 
276
279
  const nextVal = () =>
277
280
  crmPipelinesList(
@@ -272,6 +272,9 @@ async function $do(
272
272
  if (typeof nextCursor !== "string") {
273
273
  return { next: () => null };
274
274
  }
275
+ if (nextCursor.trim() === "") {
276
+ return { next: () => null };
277
+ }
275
278
 
276
279
  const nextVal = () =>
277
280
  crmUsersList(