@apideck/unify 0.39.0 → 0.39.2

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 (475) hide show
  1. package/funcs/accountingAttachmentsDelete.js.map +1 -1
  2. package/funcs/accountingAttachmentsDownload.js.map +1 -1
  3. package/funcs/accountingAttachmentsGet.js.map +1 -1
  4. package/funcs/accountingAttachmentsList.js.map +1 -1
  5. package/funcs/accountingAttachmentsUpload.js.map +1 -1
  6. package/funcs/accountingBankAccountsDelete.js.map +1 -1
  7. package/funcs/accountingBankAccountsGet.js.map +1 -1
  8. package/funcs/accountingBankAccountsUpdate.js.map +1 -1
  9. package/funcs/accountingBankFeedAccountsDelete.js.map +1 -1
  10. package/funcs/accountingBankFeedAccountsGet.js.map +1 -1
  11. package/funcs/accountingBankFeedAccountsUpdate.js.map +1 -1
  12. package/funcs/accountingBankFeedStatementsDelete.js.map +1 -1
  13. package/funcs/accountingBankFeedStatementsGet.js.map +1 -1
  14. package/funcs/accountingBankFeedStatementsUpdate.js.map +1 -1
  15. package/funcs/accountingBillPaymentsDelete.js.map +1 -1
  16. package/funcs/accountingBillPaymentsGet.js.map +1 -1
  17. package/funcs/accountingBillPaymentsUpdate.js.map +1 -1
  18. package/funcs/accountingBillsDelete.js.map +1 -1
  19. package/funcs/accountingBillsGet.js.map +1 -1
  20. package/funcs/accountingBillsUpdate.js.map +1 -1
  21. package/funcs/accountingCategoriesGet.js.map +1 -1
  22. package/funcs/accountingCreditNotesDelete.js.map +1 -1
  23. package/funcs/accountingCreditNotesGet.js.map +1 -1
  24. package/funcs/accountingCreditNotesUpdate.js.map +1 -1
  25. package/funcs/accountingCustomersDelete.js.map +1 -1
  26. package/funcs/accountingCustomersGet.js.map +1 -1
  27. package/funcs/accountingCustomersUpdate.js.map +1 -1
  28. package/funcs/accountingDepartmentsDelete.js.map +1 -1
  29. package/funcs/accountingDepartmentsGet.js.map +1 -1
  30. package/funcs/accountingDepartmentsUpdate.js.map +1 -1
  31. package/funcs/accountingEmployeesDelete.js.map +1 -1
  32. package/funcs/accountingEmployeesGet.js.map +1 -1
  33. package/funcs/accountingEmployeesUpdate.js.map +1 -1
  34. package/funcs/accountingExpenseCategoriesDelete.js.map +1 -1
  35. package/funcs/accountingExpenseCategoriesGet.js.map +1 -1
  36. package/funcs/accountingExpenseCategoriesUpdate.js.map +1 -1
  37. package/funcs/accountingExpenseReportsDelete.js.map +1 -1
  38. package/funcs/accountingExpenseReportsGet.js.map +1 -1
  39. package/funcs/accountingExpenseReportsUpdate.js.map +1 -1
  40. package/funcs/accountingExpensesDelete.js.map +1 -1
  41. package/funcs/accountingExpensesGet.js.map +1 -1
  42. package/funcs/accountingExpensesUpdate.js.map +1 -1
  43. package/funcs/accountingInvoiceItemsDelete.js.map +1 -1
  44. package/funcs/accountingInvoiceItemsGet.js.map +1 -1
  45. package/funcs/accountingInvoiceItemsUpdate.js.map +1 -1
  46. package/funcs/accountingInvoicesDelete.js.map +1 -1
  47. package/funcs/accountingInvoicesGet.js.map +1 -1
  48. package/funcs/accountingInvoicesUpdate.js.map +1 -1
  49. package/funcs/accountingJournalEntriesDelete.js.map +1 -1
  50. package/funcs/accountingJournalEntriesGet.js.map +1 -1
  51. package/funcs/accountingJournalEntriesUpdate.js.map +1 -1
  52. package/funcs/accountingLedgerAccountsDelete.js.map +1 -1
  53. package/funcs/accountingLedgerAccountsGet.js.map +1 -1
  54. package/funcs/accountingLedgerAccountsUpdate.js.map +1 -1
  55. package/funcs/accountingLocationsDelete.js.map +1 -1
  56. package/funcs/accountingLocationsGet.js.map +1 -1
  57. package/funcs/accountingLocationsUpdate.js.map +1 -1
  58. package/funcs/accountingPaymentsDelete.js.map +1 -1
  59. package/funcs/accountingPaymentsGet.js.map +1 -1
  60. package/funcs/accountingPaymentsUpdate.js.map +1 -1
  61. package/funcs/accountingProjectsDelete.js.map +1 -1
  62. package/funcs/accountingProjectsGet.js.map +1 -1
  63. package/funcs/accountingProjectsUpdate.js.map +1 -1
  64. package/funcs/accountingPurchaseOrdersDelete.js.map +1 -1
  65. package/funcs/accountingPurchaseOrdersGet.js.map +1 -1
  66. package/funcs/accountingPurchaseOrdersUpdate.js.map +1 -1
  67. package/funcs/accountingQuotesDelete.js.map +1 -1
  68. package/funcs/accountingQuotesGet.js.map +1 -1
  69. package/funcs/accountingQuotesUpdate.js.map +1 -1
  70. package/funcs/accountingRefundsDelete.js.map +1 -1
  71. package/funcs/accountingRefundsGet.js.map +1 -1
  72. package/funcs/accountingRefundsUpdate.js.map +1 -1
  73. package/funcs/accountingSubsidiariesDelete.js.map +1 -1
  74. package/funcs/accountingSubsidiariesGet.js.map +1 -1
  75. package/funcs/accountingSubsidiariesUpdate.js.map +1 -1
  76. package/funcs/accountingSuppliersDelete.js.map +1 -1
  77. package/funcs/accountingSuppliersGet.js.map +1 -1
  78. package/funcs/accountingSuppliersUpdate.js.map +1 -1
  79. package/funcs/accountingTaxRatesDelete.js.map +1 -1
  80. package/funcs/accountingTaxRatesGet.js.map +1 -1
  81. package/funcs/accountingTaxRatesUpdate.js.map +1 -1
  82. package/funcs/accountingTrackingCategoriesDelete.js.map +1 -1
  83. package/funcs/accountingTrackingCategoriesGet.js.map +1 -1
  84. package/funcs/accountingTrackingCategoriesUpdate.js.map +1 -1
  85. package/funcs/atsApplicantsDelete.js.map +1 -1
  86. package/funcs/atsApplicantsGet.js.map +1 -1
  87. package/funcs/atsApplicantsUpdate.js.map +1 -1
  88. package/funcs/atsApplicationsDelete.js.map +1 -1
  89. package/funcs/atsApplicationsGet.js.map +1 -1
  90. package/funcs/atsApplicationsUpdate.js.map +1 -1
  91. package/funcs/atsJobsDelete.js.map +1 -1
  92. package/funcs/atsJobsGet.js.map +1 -1
  93. package/funcs/atsJobsUpdate.js.map +1 -1
  94. package/funcs/connectorApiResourceCoverageGet.js.map +1 -1
  95. package/funcs/connectorApiResourcesGet.js.map +1 -1
  96. package/funcs/connectorApisGet.js.map +1 -1
  97. package/funcs/connectorConnectorDocsGet.js.map +1 -1
  98. package/funcs/connectorConnectorResourcesGet.js.map +1 -1
  99. package/funcs/connectorConnectorsGet.js.map +1 -1
  100. package/funcs/crmActivitiesDelete.js.map +1 -1
  101. package/funcs/crmActivitiesGet.js.map +1 -1
  102. package/funcs/crmActivitiesUpdate.js.map +1 -1
  103. package/funcs/crmCompaniesDelete.js.map +1 -1
  104. package/funcs/crmCompaniesGet.js.map +1 -1
  105. package/funcs/crmCompaniesUpdate.js.map +1 -1
  106. package/funcs/crmContactsDelete.js.map +1 -1
  107. package/funcs/crmContactsGet.js.map +1 -1
  108. package/funcs/crmContactsUpdate.js.map +1 -1
  109. package/funcs/crmCustomObjectSchemasDelete.js.map +1 -1
  110. package/funcs/crmCustomObjectSchemasGet.js.map +1 -1
  111. package/funcs/crmCustomObjectSchemasUpdate.js.map +1 -1
  112. package/funcs/crmCustomObjectsCreate.js.map +1 -1
  113. package/funcs/crmCustomObjectsDelete.js.map +1 -1
  114. package/funcs/crmCustomObjectsGet.js.map +1 -1
  115. package/funcs/crmCustomObjectsList.js.map +1 -1
  116. package/funcs/crmCustomObjectsUpdate.js.map +1 -1
  117. package/funcs/crmLeadsDelete.js.map +1 -1
  118. package/funcs/crmLeadsGet.js.map +1 -1
  119. package/funcs/crmLeadsUpdate.js.map +1 -1
  120. package/funcs/crmNotesDelete.js.map +1 -1
  121. package/funcs/crmNotesGet.js.map +1 -1
  122. package/funcs/crmNotesUpdate.js.map +1 -1
  123. package/funcs/crmOpportunitiesDelete.js.map +1 -1
  124. package/funcs/crmOpportunitiesGet.js.map +1 -1
  125. package/funcs/crmOpportunitiesUpdate.js.map +1 -1
  126. package/funcs/crmPipelinesDelete.js.map +1 -1
  127. package/funcs/crmPipelinesGet.js.map +1 -1
  128. package/funcs/crmPipelinesUpdate.js.map +1 -1
  129. package/funcs/crmUsersDelete.js.map +1 -1
  130. package/funcs/crmUsersGet.js.map +1 -1
  131. package/funcs/crmUsersUpdate.js.map +1 -1
  132. package/funcs/ecommerceCustomersGet.js.map +1 -1
  133. package/funcs/ecommerceOrdersGet.js.map +1 -1
  134. package/funcs/ecommerceProductsGet.js.map +1 -1
  135. package/funcs/fileStorageDriveGroupsDelete.js.map +1 -1
  136. package/funcs/fileStorageDriveGroupsGet.js.map +1 -1
  137. package/funcs/fileStorageDriveGroupsUpdate.js.map +1 -1
  138. package/funcs/fileStorageDrivesDelete.js.map +1 -1
  139. package/funcs/fileStorageDrivesGet.js.map +1 -1
  140. package/funcs/fileStorageDrivesUpdate.js.map +1 -1
  141. package/funcs/fileStorageFilesDelete.js.map +1 -1
  142. package/funcs/fileStorageFilesDownload.js.map +1 -1
  143. package/funcs/fileStorageFilesExport.js.map +1 -1
  144. package/funcs/fileStorageFilesGet.js.map +1 -1
  145. package/funcs/fileStorageFilesUpdate.js.map +1 -1
  146. package/funcs/fileStorageFoldersCopy.js.map +1 -1
  147. package/funcs/fileStorageFoldersDelete.js.map +1 -1
  148. package/funcs/fileStorageFoldersGet.js.map +1 -1
  149. package/funcs/fileStorageFoldersUpdate.js.map +1 -1
  150. package/funcs/fileStorageSharedLinksDelete.js.map +1 -1
  151. package/funcs/fileStorageSharedLinksGet.js.map +1 -1
  152. package/funcs/fileStorageSharedLinksUpdate.js.map +1 -1
  153. package/funcs/fileStorageUploadSessionsDelete.js.map +1 -1
  154. package/funcs/fileStorageUploadSessionsFinish.js.map +1 -1
  155. package/funcs/fileStorageUploadSessionsGet.js.map +1 -1
  156. package/funcs/fileStorageUploadSessionsUpload.js.map +1 -1
  157. package/funcs/hrisCompaniesDelete.js.map +1 -1
  158. package/funcs/hrisCompaniesGet.js.map +1 -1
  159. package/funcs/hrisCompaniesUpdate.js.map +1 -1
  160. package/funcs/hrisDepartmentsDelete.js.map +1 -1
  161. package/funcs/hrisDepartmentsGet.js.map +1 -1
  162. package/funcs/hrisDepartmentsUpdate.js.map +1 -1
  163. package/funcs/hrisEmployeePayrollsGet.js.map +1 -1
  164. package/funcs/hrisEmployeePayrollsList.js.map +1 -1
  165. package/funcs/hrisEmployeeSchedulesList.js.map +1 -1
  166. package/funcs/hrisEmployeesDelete.js.map +1 -1
  167. package/funcs/hrisEmployeesGet.js.map +1 -1
  168. package/funcs/hrisEmployeesUpdate.js.map +1 -1
  169. package/funcs/hrisPayrollsGet.js.map +1 -1
  170. package/funcs/hrisTimeOffRequestsDelete.js.map +1 -1
  171. package/funcs/hrisTimeOffRequestsGet.js.map +1 -1
  172. package/funcs/hrisTimeOffRequestsUpdate.js.map +1 -1
  173. package/funcs/issueTrackingCollectionTagsList.js.map +1 -1
  174. package/funcs/issueTrackingCollectionTicketCommentsCreate.js.map +1 -1
  175. package/funcs/issueTrackingCollectionTicketCommentsDelete.js.map +1 -1
  176. package/funcs/issueTrackingCollectionTicketCommentsGet.js.map +1 -1
  177. package/funcs/issueTrackingCollectionTicketCommentsList.js.map +1 -1
  178. package/funcs/issueTrackingCollectionTicketCommentsUpdate.js.map +1 -1
  179. package/funcs/issueTrackingCollectionTicketsCreate.js.map +1 -1
  180. package/funcs/issueTrackingCollectionTicketsDelete.js.map +1 -1
  181. package/funcs/issueTrackingCollectionTicketsGet.js.map +1 -1
  182. package/funcs/issueTrackingCollectionTicketsList.js.map +1 -1
  183. package/funcs/issueTrackingCollectionTicketsUpdate.js.map +1 -1
  184. package/funcs/issueTrackingCollectionUsersGet.js.map +1 -1
  185. package/funcs/issueTrackingCollectionUsersList.js.map +1 -1
  186. package/funcs/issueTrackingCollectionsGet.js.map +1 -1
  187. package/funcs/smsMessagesDelete.js.map +1 -1
  188. package/funcs/smsMessagesGet.js.map +1 -1
  189. package/funcs/smsMessagesUpdate.js.map +1 -1
  190. package/funcs/vaultConnectionConsentUpdate.js.map +1 -1
  191. package/funcs/vaultConnectionConsentsList.js.map +1 -1
  192. package/funcs/vaultConnectionCustomMappingsList.js.map +1 -1
  193. package/funcs/vaultConnectionSettingsList.js.map +1 -1
  194. package/funcs/vaultConnectionSettingsUpdate.js.map +1 -1
  195. package/funcs/vaultConnectionsDelete.js.map +1 -1
  196. package/funcs/vaultConnectionsGet.js.map +1 -1
  197. package/funcs/vaultConnectionsImports.js.map +1 -1
  198. package/funcs/vaultConnectionsToken.js.map +1 -1
  199. package/funcs/vaultConnectionsUpdate.js.map +1 -1
  200. package/funcs/vaultConsumerRequestCountsList.js.map +1 -1
  201. package/funcs/vaultConsumersDelete.js.map +1 -1
  202. package/funcs/vaultConsumersGet.js.map +1 -1
  203. package/funcs/vaultConsumersUpdate.js.map +1 -1
  204. package/funcs/vaultCreateCallbackState.js.map +1 -1
  205. package/funcs/vaultCustomFieldsList.js.map +1 -1
  206. package/funcs/vaultCustomMappingsList.js.map +1 -1
  207. package/funcs/vaultValidateConnectionState.js.map +1 -1
  208. package/funcs/webhookWebhooksDelete.js.map +1 -1
  209. package/funcs/webhookWebhooksGet.js.map +1 -1
  210. package/funcs/webhookWebhooksUpdate.js.map +1 -1
  211. package/jsr.json +1 -1
  212. package/lib/config.d.ts +4 -4
  213. package/lib/config.js +4 -4
  214. package/lib/config.js.map +1 -1
  215. package/lib/encodings.d.ts.map +1 -1
  216. package/lib/encodings.js +20 -5
  217. package/lib/encodings.js.map +1 -1
  218. package/lib/files.d.ts +13 -0
  219. package/lib/files.d.ts.map +1 -1
  220. package/lib/files.js +19 -0
  221. package/lib/files.js.map +1 -1
  222. package/lib/sdks.d.ts.map +1 -1
  223. package/lib/sdks.js +8 -4
  224. package/lib/sdks.js.map +1 -1
  225. package/lib/url.d.ts.map +1 -1
  226. package/lib/url.js +4 -2
  227. package/lib/url.js.map +1 -1
  228. package/models/components/accountingemployee.d.ts +4 -0
  229. package/models/components/accountingemployee.d.ts.map +1 -1
  230. package/models/components/accountingemployee.js +5 -0
  231. package/models/components/accountingemployee.js.map +1 -1
  232. package/models/components/expense.d.ts +2 -2
  233. package/models/components/index.d.ts +1 -0
  234. package/models/components/index.d.ts.map +1 -1
  235. package/models/components/index.js +1 -0
  236. package/models/components/index.js.map +1 -1
  237. package/models/components/journalentry.d.ts +6 -2
  238. package/models/components/journalentry.d.ts.map +1 -1
  239. package/models/components/journalentry.js.map +1 -1
  240. package/models/components/journalentrylineitem.d.ts +37 -3
  241. package/models/components/journalentrylineitem.d.ts.map +1 -1
  242. package/models/components/journalentrylineitem.js +21 -3
  243. package/models/components/journalentrylineitem.js.map +1 -1
  244. package/models/components/linkedemployee.d.ts +33 -0
  245. package/models/components/linkedemployee.d.ts.map +1 -0
  246. package/models/components/linkedemployee.js +74 -0
  247. package/models/components/linkedemployee.js.map +1 -0
  248. package/models/components/linkedfinancialaccount.d.ts +3 -2
  249. package/models/components/linkedfinancialaccount.d.ts.map +1 -1
  250. package/models/components/linkedfinancialaccount.js +1 -0
  251. package/models/components/linkedfinancialaccount.js.map +1 -1
  252. package/package.json +1 -1
  253. package/src/__tests__/employees.test.ts +42 -0
  254. package/src/funcs/accountingAttachmentsDelete.ts +0 -1
  255. package/src/funcs/accountingAttachmentsDownload.ts +0 -1
  256. package/src/funcs/accountingAttachmentsGet.ts +0 -1
  257. package/src/funcs/accountingAttachmentsList.ts +0 -1
  258. package/src/funcs/accountingAttachmentsUpload.ts +0 -1
  259. package/src/funcs/accountingBankAccountsDelete.ts +0 -1
  260. package/src/funcs/accountingBankAccountsGet.ts +0 -1
  261. package/src/funcs/accountingBankAccountsUpdate.ts +0 -1
  262. package/src/funcs/accountingBankFeedAccountsDelete.ts +0 -1
  263. package/src/funcs/accountingBankFeedAccountsGet.ts +0 -1
  264. package/src/funcs/accountingBankFeedAccountsUpdate.ts +0 -1
  265. package/src/funcs/accountingBankFeedStatementsDelete.ts +0 -1
  266. package/src/funcs/accountingBankFeedStatementsGet.ts +0 -1
  267. package/src/funcs/accountingBankFeedStatementsUpdate.ts +0 -1
  268. package/src/funcs/accountingBillPaymentsDelete.ts +0 -1
  269. package/src/funcs/accountingBillPaymentsGet.ts +0 -1
  270. package/src/funcs/accountingBillPaymentsUpdate.ts +0 -1
  271. package/src/funcs/accountingBillsDelete.ts +0 -1
  272. package/src/funcs/accountingBillsGet.ts +0 -1
  273. package/src/funcs/accountingBillsUpdate.ts +0 -1
  274. package/src/funcs/accountingCategoriesGet.ts +0 -1
  275. package/src/funcs/accountingCreditNotesDelete.ts +0 -1
  276. package/src/funcs/accountingCreditNotesGet.ts +0 -1
  277. package/src/funcs/accountingCreditNotesUpdate.ts +0 -1
  278. package/src/funcs/accountingCustomersDelete.ts +0 -1
  279. package/src/funcs/accountingCustomersGet.ts +0 -1
  280. package/src/funcs/accountingCustomersUpdate.ts +0 -1
  281. package/src/funcs/accountingDepartmentsDelete.ts +0 -1
  282. package/src/funcs/accountingDepartmentsGet.ts +0 -1
  283. package/src/funcs/accountingDepartmentsUpdate.ts +0 -1
  284. package/src/funcs/accountingEmployeesDelete.ts +0 -1
  285. package/src/funcs/accountingEmployeesGet.ts +0 -1
  286. package/src/funcs/accountingEmployeesUpdate.ts +0 -1
  287. package/src/funcs/accountingExpenseCategoriesDelete.ts +0 -1
  288. package/src/funcs/accountingExpenseCategoriesGet.ts +0 -1
  289. package/src/funcs/accountingExpenseCategoriesUpdate.ts +0 -1
  290. package/src/funcs/accountingExpenseReportsDelete.ts +0 -1
  291. package/src/funcs/accountingExpenseReportsGet.ts +0 -1
  292. package/src/funcs/accountingExpenseReportsUpdate.ts +0 -1
  293. package/src/funcs/accountingExpensesDelete.ts +0 -1
  294. package/src/funcs/accountingExpensesGet.ts +0 -1
  295. package/src/funcs/accountingExpensesUpdate.ts +0 -1
  296. package/src/funcs/accountingInvoiceItemsDelete.ts +0 -1
  297. package/src/funcs/accountingInvoiceItemsGet.ts +0 -1
  298. package/src/funcs/accountingInvoiceItemsUpdate.ts +0 -1
  299. package/src/funcs/accountingInvoicesDelete.ts +0 -1
  300. package/src/funcs/accountingInvoicesGet.ts +0 -1
  301. package/src/funcs/accountingInvoicesUpdate.ts +0 -1
  302. package/src/funcs/accountingJournalEntriesDelete.ts +0 -1
  303. package/src/funcs/accountingJournalEntriesGet.ts +0 -1
  304. package/src/funcs/accountingJournalEntriesUpdate.ts +0 -1
  305. package/src/funcs/accountingLedgerAccountsDelete.ts +0 -1
  306. package/src/funcs/accountingLedgerAccountsGet.ts +0 -1
  307. package/src/funcs/accountingLedgerAccountsUpdate.ts +0 -1
  308. package/src/funcs/accountingLocationsDelete.ts +0 -1
  309. package/src/funcs/accountingLocationsGet.ts +0 -1
  310. package/src/funcs/accountingLocationsUpdate.ts +0 -1
  311. package/src/funcs/accountingPaymentsDelete.ts +0 -1
  312. package/src/funcs/accountingPaymentsGet.ts +0 -1
  313. package/src/funcs/accountingPaymentsUpdate.ts +0 -1
  314. package/src/funcs/accountingProjectsDelete.ts +0 -1
  315. package/src/funcs/accountingProjectsGet.ts +0 -1
  316. package/src/funcs/accountingProjectsUpdate.ts +0 -1
  317. package/src/funcs/accountingPurchaseOrdersDelete.ts +0 -1
  318. package/src/funcs/accountingPurchaseOrdersGet.ts +0 -1
  319. package/src/funcs/accountingPurchaseOrdersUpdate.ts +0 -1
  320. package/src/funcs/accountingQuotesDelete.ts +0 -1
  321. package/src/funcs/accountingQuotesGet.ts +0 -1
  322. package/src/funcs/accountingQuotesUpdate.ts +0 -1
  323. package/src/funcs/accountingRefundsDelete.ts +0 -1
  324. package/src/funcs/accountingRefundsGet.ts +0 -1
  325. package/src/funcs/accountingRefundsUpdate.ts +0 -1
  326. package/src/funcs/accountingSubsidiariesDelete.ts +0 -1
  327. package/src/funcs/accountingSubsidiariesGet.ts +0 -1
  328. package/src/funcs/accountingSubsidiariesUpdate.ts +0 -1
  329. package/src/funcs/accountingSuppliersDelete.ts +0 -1
  330. package/src/funcs/accountingSuppliersGet.ts +0 -1
  331. package/src/funcs/accountingSuppliersUpdate.ts +0 -1
  332. package/src/funcs/accountingTaxRatesDelete.ts +0 -1
  333. package/src/funcs/accountingTaxRatesGet.ts +0 -1
  334. package/src/funcs/accountingTaxRatesUpdate.ts +0 -1
  335. package/src/funcs/accountingTrackingCategoriesDelete.ts +0 -1
  336. package/src/funcs/accountingTrackingCategoriesGet.ts +0 -1
  337. package/src/funcs/accountingTrackingCategoriesUpdate.ts +0 -1
  338. package/src/funcs/atsApplicantsDelete.ts +0 -1
  339. package/src/funcs/atsApplicantsGet.ts +0 -1
  340. package/src/funcs/atsApplicantsUpdate.ts +0 -1
  341. package/src/funcs/atsApplicationsDelete.ts +0 -1
  342. package/src/funcs/atsApplicationsGet.ts +0 -1
  343. package/src/funcs/atsApplicationsUpdate.ts +0 -1
  344. package/src/funcs/atsJobsDelete.ts +0 -1
  345. package/src/funcs/atsJobsGet.ts +0 -1
  346. package/src/funcs/atsJobsUpdate.ts +0 -1
  347. package/src/funcs/connectorApiResourceCoverageGet.ts +0 -1
  348. package/src/funcs/connectorApiResourcesGet.ts +0 -1
  349. package/src/funcs/connectorApisGet.ts +0 -1
  350. package/src/funcs/connectorConnectorDocsGet.ts +0 -1
  351. package/src/funcs/connectorConnectorResourcesGet.ts +0 -1
  352. package/src/funcs/connectorConnectorsGet.ts +0 -1
  353. package/src/funcs/crmActivitiesDelete.ts +0 -1
  354. package/src/funcs/crmActivitiesGet.ts +0 -1
  355. package/src/funcs/crmActivitiesUpdate.ts +0 -1
  356. package/src/funcs/crmCompaniesDelete.ts +0 -1
  357. package/src/funcs/crmCompaniesGet.ts +0 -1
  358. package/src/funcs/crmCompaniesUpdate.ts +0 -1
  359. package/src/funcs/crmContactsDelete.ts +0 -1
  360. package/src/funcs/crmContactsGet.ts +0 -1
  361. package/src/funcs/crmContactsUpdate.ts +0 -1
  362. package/src/funcs/crmCustomObjectSchemasDelete.ts +0 -1
  363. package/src/funcs/crmCustomObjectSchemasGet.ts +0 -1
  364. package/src/funcs/crmCustomObjectSchemasUpdate.ts +0 -1
  365. package/src/funcs/crmCustomObjectsCreate.ts +0 -1
  366. package/src/funcs/crmCustomObjectsDelete.ts +0 -1
  367. package/src/funcs/crmCustomObjectsGet.ts +0 -1
  368. package/src/funcs/crmCustomObjectsList.ts +0 -1
  369. package/src/funcs/crmCustomObjectsUpdate.ts +0 -1
  370. package/src/funcs/crmLeadsDelete.ts +0 -1
  371. package/src/funcs/crmLeadsGet.ts +0 -1
  372. package/src/funcs/crmLeadsUpdate.ts +0 -1
  373. package/src/funcs/crmNotesDelete.ts +0 -1
  374. package/src/funcs/crmNotesGet.ts +0 -1
  375. package/src/funcs/crmNotesUpdate.ts +0 -1
  376. package/src/funcs/crmOpportunitiesDelete.ts +0 -1
  377. package/src/funcs/crmOpportunitiesGet.ts +0 -1
  378. package/src/funcs/crmOpportunitiesUpdate.ts +0 -1
  379. package/src/funcs/crmPipelinesDelete.ts +0 -1
  380. package/src/funcs/crmPipelinesGet.ts +0 -1
  381. package/src/funcs/crmPipelinesUpdate.ts +0 -1
  382. package/src/funcs/crmUsersDelete.ts +0 -1
  383. package/src/funcs/crmUsersGet.ts +0 -1
  384. package/src/funcs/crmUsersUpdate.ts +0 -1
  385. package/src/funcs/ecommerceCustomersGet.ts +0 -1
  386. package/src/funcs/ecommerceOrdersGet.ts +0 -1
  387. package/src/funcs/ecommerceProductsGet.ts +0 -1
  388. package/src/funcs/fileStorageDriveGroupsDelete.ts +0 -1
  389. package/src/funcs/fileStorageDriveGroupsGet.ts +0 -1
  390. package/src/funcs/fileStorageDriveGroupsUpdate.ts +0 -1
  391. package/src/funcs/fileStorageDrivesDelete.ts +0 -1
  392. package/src/funcs/fileStorageDrivesGet.ts +0 -1
  393. package/src/funcs/fileStorageDrivesUpdate.ts +0 -1
  394. package/src/funcs/fileStorageFilesDelete.ts +0 -1
  395. package/src/funcs/fileStorageFilesDownload.ts +0 -1
  396. package/src/funcs/fileStorageFilesExport.ts +0 -1
  397. package/src/funcs/fileStorageFilesGet.ts +0 -1
  398. package/src/funcs/fileStorageFilesUpdate.ts +0 -1
  399. package/src/funcs/fileStorageFoldersCopy.ts +0 -1
  400. package/src/funcs/fileStorageFoldersDelete.ts +0 -1
  401. package/src/funcs/fileStorageFoldersGet.ts +0 -1
  402. package/src/funcs/fileStorageFoldersUpdate.ts +0 -1
  403. package/src/funcs/fileStorageSharedLinksDelete.ts +0 -1
  404. package/src/funcs/fileStorageSharedLinksGet.ts +0 -1
  405. package/src/funcs/fileStorageSharedLinksUpdate.ts +0 -1
  406. package/src/funcs/fileStorageUploadSessionsDelete.ts +0 -1
  407. package/src/funcs/fileStorageUploadSessionsFinish.ts +0 -1
  408. package/src/funcs/fileStorageUploadSessionsGet.ts +0 -1
  409. package/src/funcs/fileStorageUploadSessionsUpload.ts +0 -1
  410. package/src/funcs/hrisCompaniesDelete.ts +0 -1
  411. package/src/funcs/hrisCompaniesGet.ts +0 -1
  412. package/src/funcs/hrisCompaniesUpdate.ts +0 -1
  413. package/src/funcs/hrisDepartmentsDelete.ts +0 -1
  414. package/src/funcs/hrisDepartmentsGet.ts +0 -1
  415. package/src/funcs/hrisDepartmentsUpdate.ts +0 -1
  416. package/src/funcs/hrisEmployeePayrollsGet.ts +0 -1
  417. package/src/funcs/hrisEmployeePayrollsList.ts +0 -1
  418. package/src/funcs/hrisEmployeeSchedulesList.ts +0 -1
  419. package/src/funcs/hrisEmployeesDelete.ts +0 -1
  420. package/src/funcs/hrisEmployeesGet.ts +0 -1
  421. package/src/funcs/hrisEmployeesUpdate.ts +0 -1
  422. package/src/funcs/hrisPayrollsGet.ts +0 -1
  423. package/src/funcs/hrisTimeOffRequestsDelete.ts +0 -1
  424. package/src/funcs/hrisTimeOffRequestsGet.ts +0 -1
  425. package/src/funcs/hrisTimeOffRequestsUpdate.ts +0 -1
  426. package/src/funcs/issueTrackingCollectionTagsList.ts +0 -1
  427. package/src/funcs/issueTrackingCollectionTicketCommentsCreate.ts +0 -1
  428. package/src/funcs/issueTrackingCollectionTicketCommentsDelete.ts +0 -1
  429. package/src/funcs/issueTrackingCollectionTicketCommentsGet.ts +0 -1
  430. package/src/funcs/issueTrackingCollectionTicketCommentsList.ts +0 -1
  431. package/src/funcs/issueTrackingCollectionTicketCommentsUpdate.ts +0 -1
  432. package/src/funcs/issueTrackingCollectionTicketsCreate.ts +0 -1
  433. package/src/funcs/issueTrackingCollectionTicketsDelete.ts +0 -1
  434. package/src/funcs/issueTrackingCollectionTicketsGet.ts +0 -1
  435. package/src/funcs/issueTrackingCollectionTicketsList.ts +0 -1
  436. package/src/funcs/issueTrackingCollectionTicketsUpdate.ts +0 -1
  437. package/src/funcs/issueTrackingCollectionUsersGet.ts +0 -1
  438. package/src/funcs/issueTrackingCollectionUsersList.ts +0 -1
  439. package/src/funcs/issueTrackingCollectionsGet.ts +0 -1
  440. package/src/funcs/smsMessagesDelete.ts +0 -1
  441. package/src/funcs/smsMessagesGet.ts +0 -1
  442. package/src/funcs/smsMessagesUpdate.ts +0 -1
  443. package/src/funcs/vaultConnectionConsentUpdate.ts +0 -1
  444. package/src/funcs/vaultConnectionConsentsList.ts +0 -1
  445. package/src/funcs/vaultConnectionCustomMappingsList.ts +0 -1
  446. package/src/funcs/vaultConnectionSettingsList.ts +0 -1
  447. package/src/funcs/vaultConnectionSettingsUpdate.ts +0 -1
  448. package/src/funcs/vaultConnectionsDelete.ts +0 -1
  449. package/src/funcs/vaultConnectionsGet.ts +0 -1
  450. package/src/funcs/vaultConnectionsImports.ts +0 -1
  451. package/src/funcs/vaultConnectionsToken.ts +0 -1
  452. package/src/funcs/vaultConnectionsUpdate.ts +0 -1
  453. package/src/funcs/vaultConsumerRequestCountsList.ts +0 -1
  454. package/src/funcs/vaultConsumersDelete.ts +0 -1
  455. package/src/funcs/vaultConsumersGet.ts +0 -1
  456. package/src/funcs/vaultConsumersUpdate.ts +0 -1
  457. package/src/funcs/vaultCreateCallbackState.ts +0 -1
  458. package/src/funcs/vaultCustomFieldsList.ts +0 -1
  459. package/src/funcs/vaultCustomMappingsList.ts +0 -1
  460. package/src/funcs/vaultValidateConnectionState.ts +0 -1
  461. package/src/funcs/webhookWebhooksDelete.ts +0 -1
  462. package/src/funcs/webhookWebhooksGet.ts +0 -1
  463. package/src/funcs/webhookWebhooksUpdate.ts +0 -1
  464. package/src/lib/config.ts +4 -4
  465. package/src/lib/encodings.ts +23 -4
  466. package/src/lib/files.ts +22 -0
  467. package/src/lib/sdks.ts +7 -5
  468. package/src/lib/url.ts +16 -14
  469. package/src/models/components/accountingemployee.ts +13 -0
  470. package/src/models/components/expense.ts +2 -2
  471. package/src/models/components/index.ts +1 -0
  472. package/src/models/components/journalentry.ts +6 -2
  473. package/src/models/components/journalentrylineitem.ts +54 -5
  474. package/src/models/components/linkedemployee.ts +79 -0
  475. package/src/models/components/linkedfinancialaccount.ts +3 -2
@@ -102,7 +102,6 @@ async function $do(
102
102
  charEncoding: "percent",
103
103
  }),
104
104
  };
105
-
106
105
  const path = pathToFunc("/vault/consumers/{consumer_id}")(pathParams);
107
106
 
108
107
  const headers = new Headers(compactMap({
@@ -105,7 +105,6 @@ async function $do(
105
105
  charEncoding: "percent",
106
106
  }),
107
107
  };
108
-
109
108
  const path = pathToFunc("/vault/consumers/{consumer_id}")(pathParams);
110
109
 
111
110
  const headers = new Headers(compactMap({
@@ -109,7 +109,6 @@ async function $do(
109
109
  charEncoding: "percent",
110
110
  }),
111
111
  };
112
-
113
112
  const path = pathToFunc(
114
113
  "/vault/connections/{unified_api}/{service_id}/callback-state",
115
114
  )(pathParams);
@@ -111,7 +111,6 @@ async function $do(
111
111
  charEncoding: "percent",
112
112
  }),
113
113
  };
114
-
115
114
  const path = pathToFunc(
116
115
  "/vault/connections/{unified_api}/{service_id}/{resource}/custom-fields",
117
116
  )(pathParams);
@@ -107,7 +107,6 @@ async function $do(
107
107
  charEncoding: "percent",
108
108
  }),
109
109
  };
110
-
111
110
  const path = pathToFunc("/vault/custom-mappings/{unified_api}/{service_id}")(
112
111
  pathParams,
113
112
  );
@@ -114,7 +114,6 @@ async function $do(
114
114
  charEncoding: "percent",
115
115
  }),
116
116
  };
117
-
118
117
  const path = pathToFunc(
119
118
  "/vault/connections/{unified_api}/{service_id}/validate",
120
119
  )(pathParams);
@@ -103,7 +103,6 @@ async function $do(
103
103
  charEncoding: "percent",
104
104
  }),
105
105
  };
106
-
107
106
  const path = pathToFunc("/webhook/webhooks/{id}")(pathParams);
108
107
 
109
108
  const headers = new Headers(compactMap({
@@ -102,7 +102,6 @@ async function $do(
102
102
  charEncoding: "percent",
103
103
  }),
104
104
  };
105
-
106
105
  const path = pathToFunc("/webhook/webhooks/{id}")(pathParams);
107
106
 
108
107
  const headers = new Headers(compactMap({
@@ -109,7 +109,6 @@ async function $do(
109
109
  charEncoding: "percent",
110
110
  }),
111
111
  };
112
-
113
112
  const path = pathToFunc("/webhook/webhooks/{id}")(pathParams);
114
113
 
115
114
  const headers = new Headers(compactMap({
package/src/lib/config.ts CHANGED
@@ -67,8 +67,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
67
67
 
68
68
  export const SDK_METADATA = {
69
69
  language: "typescript",
70
- openapiDocVersion: "10.24.3",
71
- sdkVersion: "0.39.0",
72
- genVersion: "2.858.2",
73
- userAgent: "speakeasy-sdk/typescript 0.39.0 2.858.2 10.24.3 @apideck/unify",
70
+ openapiDocVersion: "10.24.9",
71
+ sdkVersion: "0.39.2",
72
+ genVersion: "2.869.25",
73
+ userAgent: "speakeasy-sdk/typescript 0.39.2 2.869.25 10.24.9 @apideck/unify",
74
74
  } as const;
@@ -479,6 +479,23 @@ export const encodeSpaceDelimitedQuery = queryEncoder(encodeSpaceDelimited);
479
479
  export const encodePipeDelimitedQuery = queryEncoder(encodePipeDelimited);
480
480
  export const encodeDeepObjectQuery = queryEncoder(encodeDeepObject);
481
481
 
482
+ function isBlobLike(val: unknown): val is Blob {
483
+ if (val instanceof Blob) {
484
+ return true;
485
+ }
486
+
487
+ if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) {
488
+ return false;
489
+ }
490
+
491
+ const tag = val[Symbol.toStringTag];
492
+ if (tag !== "Blob" && tag !== "File") {
493
+ return false;
494
+ }
495
+
496
+ return "stream" in val && typeof val.stream === "function";
497
+ }
498
+
482
499
  export function appendForm(
483
500
  fd: FormData,
484
501
  key: string,
@@ -487,10 +504,12 @@ export function appendForm(
487
504
  ): void {
488
505
  if (value == null) {
489
506
  return;
490
- } else if (value instanceof Blob && fileName) {
491
- fd.append(key, value, fileName);
492
- } else if (value instanceof Blob) {
493
- fd.append(key, value);
507
+ } else if (isBlobLike(value)) {
508
+ if (fileName) {
509
+ fd.append(key, value as Blob, fileName);
510
+ } else {
511
+ fd.append(key, value as Blob);
512
+ }
494
513
  } else {
495
514
  fd.append(key, String(value));
496
515
  }
package/src/lib/files.ts CHANGED
@@ -80,3 +80,25 @@ export function getContentTypeFromFileName(fileName: string): string | null {
80
80
 
81
81
  return mimeTypes[ext] || null;
82
82
  }
83
+
84
+ /**
85
+ * Creates a Blob from file content with the given MIME type.
86
+ *
87
+ * Node.js Buffers are Uint8Array subclasses that may share a pooled
88
+ * ArrayBuffer (byteOffset > 0, byteLength < buffer.byteLength). Passing
89
+ * such a Buffer directly to `new Blob([buf])` can include the entire
90
+ * underlying pool on some runtimes, producing a Blob with extra bytes
91
+ * that corrupts multipart uploads.
92
+ *
93
+ * Copying into a standalone Uint8Array ensures the Blob receives only the
94
+ * intended bytes regardless of runtime behaviour.
95
+ */
96
+ export function bytesToBlob(
97
+ content: Uint8Array<ArrayBufferLike> | ArrayBuffer | Blob | string,
98
+ contentType: string,
99
+ ): Blob {
100
+ if (content instanceof Uint8Array) {
101
+ return new Blob([new Uint8Array(content)], { type: contentType });
102
+ }
103
+ return new Blob([content as BlobPart], { type: contentType });
104
+ }
package/src/lib/sdks.ts CHANGED
@@ -128,13 +128,15 @@ export class ClientSDK {
128
128
  if (!base) {
129
129
  return ERR(new InvalidRequestError("No base URL provided for operation"));
130
130
  }
131
- const reqURL = new URL(base);
132
- const inputURL = new URL(path, reqURL);
133
-
131
+ const baseURL = new URL(base);
132
+ let reqURL: URL;
134
133
  if (path) {
135
- reqURL.pathname += reqURL.pathname.endsWith("/") ? "" : "/";
136
- reqURL.pathname += inputURL.pathname.replace(/^\/+/, "");
134
+ baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
135
+ reqURL = new URL(path, baseURL);
136
+ } else {
137
+ reqURL = baseURL;
137
138
  }
139
+ reqURL.hash = "";
138
140
 
139
141
  let finalQuery = query || "";
140
142
 
package/src/lib/url.ts CHANGED
@@ -13,21 +13,23 @@ export function pathToFunc(
13
13
  const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
14
14
 
15
15
  return function buildURLPath(params: Record<string, unknown> = {}): string {
16
- return pathPattern.replace(paramRE, function (_, placeholder) {
17
- if (!hasOwn.call(params, placeholder)) {
18
- throw new Error(`Parameter '${placeholder}' is required`);
19
- }
16
+ return pathPattern
17
+ .replace(paramRE, function (_, placeholder) {
18
+ if (!hasOwn.call(params, placeholder)) {
19
+ throw new Error(`Parameter '${placeholder}' is required`);
20
+ }
20
21
 
21
- const value = params[placeholder];
22
- if (typeof value !== "string" && typeof value !== "number") {
23
- throw new Error(
24
- `Parameter '${placeholder}' must be a string or number`,
25
- );
26
- }
22
+ const value = params[placeholder];
23
+ if (typeof value !== "string" && typeof value !== "number") {
24
+ throw new Error(
25
+ `Parameter '${placeholder}' must be a string or number`,
26
+ );
27
+ }
27
28
 
28
- return options?.charEncoding === "percent"
29
- ? encodeURIComponent(`${value}`)
30
- : `${value}`;
31
- });
29
+ return options?.charEncoding === "percent"
30
+ ? encodeURIComponent(`${value}`)
31
+ : `${value}`;
32
+ })
33
+ .replace(/^\/+/, "");
32
34
  };
33
35
  }
@@ -16,6 +16,12 @@ import {
16
16
  Address$Outbound,
17
17
  Address$outboundSchema,
18
18
  } from "./address.js";
19
+ import {
20
+ BankAccount,
21
+ BankAccount$inboundSchema,
22
+ BankAccount$Outbound,
23
+ BankAccount$outboundSchema,
24
+ } from "./bankaccount.js";
19
25
  import {
20
26
  Currency,
21
27
  Currency$inboundSchema,
@@ -199,6 +205,7 @@ export type AccountingEmployee = {
199
205
  * Phone numbers of the employee.
200
206
  */
201
207
  phoneNumbers?: Array<PhoneNumber> | undefined;
208
+ bankAccount?: BankAccount | undefined;
202
209
  customFields?: Array<CustomField> | undefined;
203
210
  /**
204
211
  * When custom mappings are configured on the resource, the result is included here.
@@ -302,6 +309,7 @@ export type AccountingEmployeeInput = {
302
309
  * Phone numbers of the employee.
303
310
  */
304
311
  phoneNumbers?: Array<PhoneNumber> | undefined;
312
+ bankAccount?: BankAccount | undefined;
305
313
  customFields?: Array<CustomField> | undefined;
306
314
  /**
307
315
  * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.
@@ -402,6 +410,7 @@ export const AccountingEmployee$inboundSchema: z.ZodType<
402
410
  notes: z.nullable(types.string()).optional(),
403
411
  addresses: types.optional(z.array(Address$inboundSchema)),
404
412
  phone_numbers: types.optional(z.array(PhoneNumber$inboundSchema)),
413
+ bank_account: types.optional(BankAccount$inboundSchema),
405
414
  custom_fields: types.optional(z.array(CustomField$inboundSchema)),
406
415
  custom_mappings: z.nullable(z.record(z.any())).optional(),
407
416
  row_version: z.nullable(types.string()).optional(),
@@ -423,6 +432,7 @@ export const AccountingEmployee$inboundSchema: z.ZodType<
423
432
  "birth_date": "birthDate",
424
433
  "tracking_categories": "trackingCategories",
425
434
  "phone_numbers": "phoneNumbers",
435
+ "bank_account": "bankAccount",
426
436
  "custom_fields": "customFields",
427
437
  "custom_mappings": "customMappings",
428
438
  "row_version": "rowVersion",
@@ -469,6 +479,7 @@ export type AccountingEmployeeInput$Outbound = {
469
479
  notes?: string | null | undefined;
470
480
  addresses?: Array<Address$Outbound> | undefined;
471
481
  phone_numbers?: Array<PhoneNumber$Outbound> | undefined;
482
+ bank_account?: BankAccount$Outbound | undefined;
472
483
  custom_fields?: Array<CustomField$Outbound> | undefined;
473
484
  row_version?: string | null | undefined;
474
485
  pass_through?: Array<PassThroughBody$Outbound> | undefined;
@@ -510,6 +521,7 @@ export const AccountingEmployeeInput$outboundSchema: z.ZodType<
510
521
  notes: z.nullable(z.string()).optional(),
511
522
  addresses: z.array(Address$outboundSchema).optional(),
512
523
  phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(),
524
+ bankAccount: BankAccount$outboundSchema.optional(),
513
525
  customFields: z.array(CustomField$outboundSchema).optional(),
514
526
  rowVersion: z.nullable(z.string()).optional(),
515
527
  passThrough: z.array(PassThroughBody$outboundSchema).optional(),
@@ -527,6 +539,7 @@ export const AccountingEmployeeInput$outboundSchema: z.ZodType<
527
539
  birthDate: "birth_date",
528
540
  trackingCategories: "tracking_categories",
529
541
  phoneNumbers: "phone_numbers",
542
+ bankAccount: "bank_account",
530
543
  customFields: "custom_fields",
531
544
  rowVersion: "row_version",
532
545
  passThrough: "pass_through",
@@ -146,7 +146,7 @@ export type Expense = {
146
146
  */
147
147
  accountId?: string | undefined;
148
148
  /**
149
- * A flexible account reference that can represent either a ledger account (GL account) or a bank account, depending on the connector's requirements.
149
+ * A flexible account reference that can represent a ledger account (GL account), a bank account, or an employee payable account, depending on the connector's requirements.
150
150
  */
151
151
  account?: LinkedFinancialAccount | null | undefined;
152
152
  /**
@@ -277,7 +277,7 @@ export type ExpenseInput = {
277
277
  */
278
278
  accountId?: string | undefined;
279
279
  /**
280
- * A flexible account reference that can represent either a ledger account (GL account) or a bank account, depending on the connector's requirements.
280
+ * A flexible account reference that can represent a ledger account (GL account), a bank account, or an employee payable account, depending on the connector's requirements.
281
281
  */
282
282
  account?: LinkedFinancialAccountInput | null | undefined;
283
283
  /**
@@ -457,6 +457,7 @@ export * from "./linkeddepartment.js";
457
457
  export * from "./linkeddepartmentinput.js";
458
458
  export * from "./linkedecommercecustomer.js";
459
459
  export * from "./linkedecommerceorder.js";
460
+ export * from "./linkedemployee.js";
460
461
  export * from "./linkedexpensecategory.js";
461
462
  export * from "./linkedfinancialaccount.js";
462
463
  export * from "./linkedfolder.js";
@@ -109,7 +109,9 @@ export type JournalEntry = {
109
109
  */
110
110
  journalSymbol?: string | null | undefined;
111
111
  /**
112
- * The specific category of tax associated with a transaction like sales or purchase
112
+ * Deprecated use line_items[].tax_type for per-line tax applicability. Kept as fallback: applies to all lines that do not set their own tax_type.
113
+ *
114
+ * @deprecated field: Deprecated — use line_items[]..
113
115
  */
114
116
  taxType?: string | null | undefined;
115
117
  /**
@@ -213,7 +215,9 @@ export type JournalEntryInput = {
213
215
  */
214
216
  journalSymbol?: string | null | undefined;
215
217
  /**
216
- * The specific category of tax associated with a transaction like sales or purchase
218
+ * Deprecated use line_items[].tax_type for per-line tax applicability. Kept as fallback: applies to all lines that do not set their own tax_type.
219
+ *
220
+ * @deprecated field: Deprecated — use line_items[]..
217
221
  */
218
222
  taxType?: string | null | undefined;
219
223
  /**
@@ -25,6 +25,12 @@ import {
25
25
  LinkedCustomerInput$Outbound,
26
26
  LinkedCustomerInput$outboundSchema,
27
27
  } from "./linkedcustomerinput.js";
28
+ import {
29
+ LinkedEmployee,
30
+ LinkedEmployee$inboundSchema,
31
+ LinkedEmployee$Outbound,
32
+ LinkedEmployee$outboundSchema,
33
+ } from "./linkedemployee.js";
28
34
  import {
29
35
  LinkedLedgerAccount,
30
36
  LinkedLedgerAccount$inboundSchema,
@@ -73,6 +79,18 @@ export type JournalEntryLineItemType = OpenEnum<
73
79
  typeof JournalEntryLineItemType
74
80
  >;
75
81
 
82
+ /**
83
+ * The tax applicability of this line item. Overrides the root-level tax_type for this line.
84
+ */
85
+ export const TaxType = {
86
+ Sales: "sales",
87
+ Purchase: "purchase",
88
+ } as const;
89
+ /**
90
+ * The tax applicability of this line item. Overrides the root-level tax_type for this line.
91
+ */
92
+ export type TaxType = OpenEnum<typeof TaxType>;
93
+
76
94
  export type JournalEntryLineItem = {
77
95
  /**
78
96
  * A unique identifier for an object.
@@ -97,8 +115,12 @@ export type JournalEntryLineItem = {
97
115
  /**
98
116
  * Debit entries are considered positive, and credit entries are considered negative.
99
117
  */
100
- type: JournalEntryLineItemType;
118
+ type: JournalEntryLineItemType | null;
101
119
  taxRate?: LinkedTaxRate | undefined;
120
+ /**
121
+ * The tax applicability of this line item. Overrides the root-level tax_type for this line.
122
+ */
123
+ taxType?: TaxType | null | undefined;
102
124
  /**
103
125
  * @deprecated field: This field is deprecated and may be removed in a future version..
104
126
  */
@@ -116,6 +138,10 @@ export type JournalEntryLineItem = {
116
138
  * The supplier this entity is linked to.
117
139
  */
118
140
  supplier?: LinkedSupplier | null | undefined;
141
+ /**
142
+ * The employee this entity is linked to.
143
+ */
144
+ employee?: LinkedEmployee | null | undefined;
119
145
  /**
120
146
  * The ID of the department
121
147
  */
@@ -154,8 +180,12 @@ export type JournalEntryLineItemInput = {
154
180
  /**
155
181
  * Debit entries are considered positive, and credit entries are considered negative.
156
182
  */
157
- type: JournalEntryLineItemType;
183
+ type: JournalEntryLineItemType | null;
158
184
  taxRate?: LinkedTaxRateInput | undefined;
185
+ /**
186
+ * The tax applicability of this line item. Overrides the root-level tax_type for this line.
187
+ */
188
+ taxType?: TaxType | null | undefined;
159
189
  /**
160
190
  * @deprecated field: This field is deprecated and may be removed in a future version..
161
191
  */
@@ -173,6 +203,10 @@ export type JournalEntryLineItemInput = {
173
203
  * The supplier this entity is linked to.
174
204
  */
175
205
  supplier?: LinkedSupplierInput | null | undefined;
206
+ /**
207
+ * The employee this entity is linked to.
208
+ */
209
+ employee?: LinkedEmployee | null | undefined;
176
210
  /**
177
211
  * The ID of the department
178
212
  */
@@ -204,6 +238,13 @@ export const JournalEntryLineItemType$outboundSchema: z.ZodType<
204
238
  JournalEntryLineItemType
205
239
  > = openEnums.outboundSchema(JournalEntryLineItemType);
206
240
 
241
+ /** @internal */
242
+ export const TaxType$inboundSchema: z.ZodType<TaxType, z.ZodTypeDef, unknown> =
243
+ openEnums.inboundSchema(TaxType);
244
+ /** @internal */
245
+ export const TaxType$outboundSchema: z.ZodType<string, z.ZodTypeDef, TaxType> =
246
+ openEnums.outboundSchema(TaxType);
247
+
207
248
  /** @internal */
208
249
  export const JournalEntryLineItem$inboundSchema: z.ZodType<
209
250
  JournalEntryLineItem,
@@ -215,8 +256,9 @@ export const JournalEntryLineItem$inboundSchema: z.ZodType<
215
256
  tax_amount: z.nullable(types.number()).optional(),
216
257
  sub_total: z.nullable(types.number()).optional(),
217
258
  total_amount: z.nullable(types.number()).optional(),
218
- type: JournalEntryLineItemType$inboundSchema,
259
+ type: types.nullable(JournalEntryLineItemType$inboundSchema),
219
260
  tax_rate: types.optional(LinkedTaxRate$inboundSchema),
261
+ tax_type: z.nullable(TaxType$inboundSchema).optional(),
220
262
  tracking_category: z.nullable(DeprecatedLinkedTrackingCategory$inboundSchema)
221
263
  .optional(),
222
264
  tracking_categories: z.nullable(
@@ -225,6 +267,7 @@ export const JournalEntryLineItem$inboundSchema: z.ZodType<
225
267
  ledger_account: types.nullable(LinkedLedgerAccount$inboundSchema),
226
268
  customer: z.nullable(LinkedCustomer$inboundSchema).optional(),
227
269
  supplier: z.nullable(LinkedSupplier$inboundSchema).optional(),
270
+ employee: z.nullable(LinkedEmployee$inboundSchema).optional(),
228
271
  department_id: z.nullable(types.string()).optional(),
229
272
  location_id: z.nullable(types.string()).optional(),
230
273
  line_number: z.nullable(types.number()).optional(),
@@ -237,6 +280,7 @@ export const JournalEntryLineItem$inboundSchema: z.ZodType<
237
280
  "sub_total": "subTotal",
238
281
  "total_amount": "totalAmount",
239
282
  "tax_rate": "taxRate",
283
+ "tax_type": "taxType",
240
284
  "tracking_category": "trackingCategory",
241
285
  "tracking_categories": "trackingCategories",
242
286
  "ledger_account": "ledgerAccount",
@@ -262,8 +306,9 @@ export type JournalEntryLineItemInput$Outbound = {
262
306
  tax_amount?: number | null | undefined;
263
307
  sub_total?: number | null | undefined;
264
308
  total_amount?: number | null | undefined;
265
- type: string;
309
+ type: string | null;
266
310
  tax_rate?: LinkedTaxRateInput$Outbound | undefined;
311
+ tax_type?: string | null | undefined;
267
312
  tracking_category?:
268
313
  | DeprecatedLinkedTrackingCategory$Outbound
269
314
  | null
@@ -275,6 +320,7 @@ export type JournalEntryLineItemInput$Outbound = {
275
320
  ledger_account: LinkedLedgerAccount$Outbound | null;
276
321
  customer?: LinkedCustomerInput$Outbound | null | undefined;
277
322
  supplier?: LinkedSupplierInput$Outbound | null | undefined;
323
+ employee?: LinkedEmployee$Outbound | null | undefined;
278
324
  department_id?: string | null | undefined;
279
325
  location_id?: string | null | undefined;
280
326
  line_number?: number | null | undefined;
@@ -291,8 +337,9 @@ export const JournalEntryLineItemInput$outboundSchema: z.ZodType<
291
337
  taxAmount: z.nullable(z.number()).optional(),
292
338
  subTotal: z.nullable(z.number()).optional(),
293
339
  totalAmount: z.nullable(z.number()).optional(),
294
- type: JournalEntryLineItemType$outboundSchema,
340
+ type: z.nullable(JournalEntryLineItemType$outboundSchema),
295
341
  taxRate: LinkedTaxRateInput$outboundSchema.optional(),
342
+ taxType: z.nullable(TaxType$outboundSchema).optional(),
296
343
  trackingCategory: z.nullable(DeprecatedLinkedTrackingCategory$outboundSchema)
297
344
  .optional(),
298
345
  trackingCategories: z.nullable(
@@ -301,6 +348,7 @@ export const JournalEntryLineItemInput$outboundSchema: z.ZodType<
301
348
  ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema),
302
349
  customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(),
303
350
  supplier: z.nullable(LinkedSupplierInput$outboundSchema).optional(),
351
+ employee: z.nullable(LinkedEmployee$outboundSchema).optional(),
304
352
  departmentId: z.nullable(z.string()).optional(),
305
353
  locationId: z.nullable(z.string()).optional(),
306
354
  lineNumber: z.nullable(z.number().int()).optional(),
@@ -311,6 +359,7 @@ export const JournalEntryLineItemInput$outboundSchema: z.ZodType<
311
359
  subTotal: "sub_total",
312
360
  totalAmount: "total_amount",
313
361
  taxRate: "tax_rate",
362
+ taxType: "tax_type",
314
363
  trackingCategory: "tracking_category",
315
364
  trackingCategories: "tracking_categories",
316
365
  ledgerAccount: "ledger_account",
@@ -0,0 +1,79 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ /**
13
+ * The employee this entity is linked to.
14
+ */
15
+ export type LinkedEmployee = {
16
+ /**
17
+ * A unique identifier for an object.
18
+ */
19
+ id?: string | undefined;
20
+ /**
21
+ * The display ID of the employee. For best performance, send this field (the employee number) instead of the GUID in the id field.
22
+ */
23
+ displayId?: string | null | undefined;
24
+ /**
25
+ * The display name of the employee.
26
+ */
27
+ displayName?: string | null | undefined;
28
+ };
29
+
30
+ /** @internal */
31
+ export const LinkedEmployee$inboundSchema: z.ZodType<
32
+ LinkedEmployee,
33
+ z.ZodTypeDef,
34
+ unknown
35
+ > = z.object({
36
+ id: types.optional(types.string()),
37
+ display_id: z.nullable(types.string()).optional(),
38
+ display_name: z.nullable(types.string()).optional(),
39
+ }).transform((v) => {
40
+ return remap$(v, {
41
+ "display_id": "displayId",
42
+ "display_name": "displayName",
43
+ });
44
+ });
45
+ /** @internal */
46
+ export type LinkedEmployee$Outbound = {
47
+ id?: string | undefined;
48
+ display_id?: string | null | undefined;
49
+ display_name?: string | null | undefined;
50
+ };
51
+
52
+ /** @internal */
53
+ export const LinkedEmployee$outboundSchema: z.ZodType<
54
+ LinkedEmployee$Outbound,
55
+ z.ZodTypeDef,
56
+ LinkedEmployee
57
+ > = z.object({
58
+ id: z.string().optional(),
59
+ displayId: z.nullable(z.string()).optional(),
60
+ displayName: z.nullable(z.string()).optional(),
61
+ }).transform((v) => {
62
+ return remap$(v, {
63
+ displayId: "display_id",
64
+ displayName: "display_name",
65
+ });
66
+ });
67
+
68
+ export function linkedEmployeeToJSON(linkedEmployee: LinkedEmployee): string {
69
+ return JSON.stringify(LinkedEmployee$outboundSchema.parse(linkedEmployee));
70
+ }
71
+ export function linkedEmployeeFromJSON(
72
+ jsonString: string,
73
+ ): SafeParseResult<LinkedEmployee, SDKValidationError> {
74
+ return safeParse(
75
+ jsonString,
76
+ (x) => LinkedEmployee$inboundSchema.parse(JSON.parse(x)),
77
+ `Failed to parse 'LinkedEmployee' from JSON`,
78
+ );
79
+ }
@@ -17,6 +17,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
17
17
  export const LinkedFinancialAccountAccountType = {
18
18
  LedgerAccount: "ledger_account",
19
19
  BankAccount: "bank_account",
20
+ Employee: "employee",
20
21
  } as const;
21
22
  /**
22
23
  * The type of account being referenced. Use `ledger_account` for GL accounts from the chart of accounts, or `bank_account` for bank account entities. When not specified, the connector will use its default behavior.
@@ -26,7 +27,7 @@ export type LinkedFinancialAccountAccountType = OpenEnum<
26
27
  >;
27
28
 
28
29
  /**
29
- * A flexible account reference that can represent either a ledger account (GL account) or a bank account, depending on the connector's requirements.
30
+ * A flexible account reference that can represent a ledger account (GL account), a bank account, or an employee payable account, depending on the connector's requirements.
30
31
  */
31
32
  export type LinkedFinancialAccount = {
32
33
  /**
@@ -60,7 +61,7 @@ export type LinkedFinancialAccount = {
60
61
  };
61
62
 
62
63
  /**
63
- * A flexible account reference that can represent either a ledger account (GL account) or a bank account, depending on the connector's requirements.
64
+ * A flexible account reference that can represent a ledger account (GL account), a bank account, or an employee payable account, depending on the connector's requirements.
64
65
  */
65
66
  export type LinkedFinancialAccountInput = {
66
67
  /**