nordlet 0.3.8 → 0.3.11

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 (347) hide show
  1. package/dist/Client.d.ts +6 -0
  2. package/dist/Client.js +28 -20
  3. package/dist/api/resources/account/types/ApiKeysListAccountResponse.d.ts +1 -0
  4. package/dist/api/resources/agreements/client/Client.d.ts +42 -0
  5. package/dist/api/resources/agreements/client/Client.js +158 -0
  6. package/dist/api/resources/agreements/client/requests/SettingsGetAgreementsRequest.d.ts +5 -0
  7. package/dist/api/resources/agreements/client/requests/SettingsGetAgreementsRequest.js +3 -0
  8. package/dist/api/resources/agreements/client/requests/SettingsUpdateAgreementsRequest.d.ts +9 -0
  9. package/dist/api/resources/agreements/client/requests/SettingsUpdateAgreementsRequest.js +3 -0
  10. package/dist/api/resources/agreements/client/requests/index.d.ts +2 -0
  11. package/dist/api/resources/agreements/types/SettingsGetAgreementsResponse.d.ts +3 -0
  12. package/dist/api/resources/agreements/types/SettingsGetAgreementsResponse.js +3 -0
  13. package/dist/api/resources/agreements/types/SettingsUpdateAgreementsResponse.d.ts +3 -0
  14. package/dist/api/resources/agreements/types/SettingsUpdateAgreementsResponse.js +3 -0
  15. package/dist/api/resources/agreements/types/index.d.ts +2 -0
  16. package/dist/api/resources/agreements/types/index.js +2 -0
  17. package/dist/api/resources/assets/client/Client.d.ts +42 -0
  18. package/dist/api/resources/assets/client/Client.js +155 -0
  19. package/dist/api/resources/assets/client/requests/SettingsGetAssetsRequest.d.ts +5 -0
  20. package/dist/api/resources/assets/client/requests/SettingsGetAssetsRequest.js +3 -0
  21. package/dist/api/resources/assets/client/requests/SettingsUpdateAssetsRequest.d.ts +9 -0
  22. package/dist/api/resources/assets/client/requests/SettingsUpdateAssetsRequest.js +3 -0
  23. package/dist/api/resources/assets/client/requests/index.d.ts +2 -0
  24. package/dist/api/resources/assets/types/SettingsGetAssetsResponse.d.ts +3 -0
  25. package/dist/api/resources/assets/types/SettingsGetAssetsResponse.js +3 -0
  26. package/dist/api/resources/assets/types/SettingsUpdateAssetsResponse.d.ts +3 -0
  27. package/dist/api/resources/assets/types/SettingsUpdateAssetsResponse.js +3 -0
  28. package/dist/api/resources/assets/types/index.d.ts +2 -0
  29. package/dist/api/resources/assets/types/index.js +2 -0
  30. package/dist/api/resources/bank/client/Client.d.ts +27 -0
  31. package/dist/api/resources/bank/client/Client.js +85 -0
  32. package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.d.ts +8 -0
  33. package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.js +8 -0
  34. package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.d.ts +8 -0
  35. package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.js +8 -0
  36. package/dist/api/resources/bank/client/requests/TransactionsMatchBankRequest.d.ts +1 -0
  37. package/dist/api/resources/bank/client/requests/TransactionsMatchBankRequest.js +1 -0
  38. package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.d.ts +33 -0
  39. package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.js +18 -0
  40. package/dist/api/resources/bank/client/requests/TransactionsRecordBankRequest.d.ts +1 -0
  41. package/dist/api/resources/bank/client/requests/TransactionsRecordBankRequest.js +1 -0
  42. package/dist/api/resources/bank/client/requests/index.d.ts +3 -2
  43. package/dist/api/resources/bank/client/requests/index.js +7 -1
  44. package/dist/api/resources/bank/types/AccountsCreateBankResponse.d.ts +8 -0
  45. package/dist/api/resources/bank/types/AccountsCreateBankResponse.js +8 -0
  46. package/dist/api/resources/bank/types/AccountsListBankResponse.d.ts +8 -0
  47. package/dist/api/resources/bank/types/AccountsListBankResponse.js +14 -0
  48. package/dist/api/resources/bank/types/AccountsUpdateBankResponse.d.ts +8 -0
  49. package/dist/api/resources/bank/types/AccountsUpdateBankResponse.js +8 -0
  50. package/dist/api/resources/bank/types/SettlementsCommissionBankResponse.d.ts +4 -0
  51. package/dist/api/resources/bank/types/SettlementsGetBankResponse.d.ts +7 -0
  52. package/dist/api/resources/bank/types/SettlementsImportBankResponse.d.ts +3 -0
  53. package/dist/api/resources/bank/types/SettlementsLinkBankResponse.d.ts +3 -0
  54. package/dist/api/resources/bank/types/SettlementsListBankResponse.d.ts +3 -0
  55. package/dist/api/resources/bank/types/SettlementsMatchBankResponse.d.ts +4 -0
  56. package/dist/api/resources/bank/types/SettlementsPostBankResponse.d.ts +4 -0
  57. package/dist/api/resources/bank/types/SettlementsUnlinkBankResponse.d.ts +3 -0
  58. package/dist/api/resources/bank/types/TransactionsMatchManyBankResponse.d.ts +23 -0
  59. package/dist/api/resources/bank/types/TransactionsMatchManyBankResponse.js +11 -0
  60. package/dist/api/resources/bank/types/TransactionsSuggestMatchesBankResponse.d.ts +1 -0
  61. package/dist/api/resources/bank/types/TransactionsSuggestMatchesBankResponse.js +1 -0
  62. package/dist/api/resources/bank/types/index.d.ts +1 -0
  63. package/dist/api/resources/bank/types/index.js +1 -0
  64. package/dist/api/resources/capture/client/Client.d.ts +2 -0
  65. package/dist/api/resources/capture/client/Client.js +2 -0
  66. package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.d.ts +31 -0
  67. package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.js +8 -0
  68. package/dist/api/resources/capture/client/requests/index.d.ts +1 -1
  69. package/dist/api/resources/capture/client/requests/index.js +3 -1
  70. package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.d.ts +95 -0
  71. package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.js +23 -0
  72. package/dist/api/resources/capture/types/DocumentsExtractCaptureResponse.d.ts +21 -0
  73. package/dist/api/resources/capture/types/DocumentsExtractCaptureResponse.js +7 -0
  74. package/dist/api/resources/capture/types/DocumentsGetCaptureResponse.d.ts +21 -0
  75. package/dist/api/resources/capture/types/DocumentsGetCaptureResponse.js +7 -0
  76. package/dist/api/resources/capture/types/DocumentsListCaptureResponse.d.ts +21 -0
  77. package/dist/api/resources/capture/types/DocumentsListCaptureResponse.js +7 -0
  78. package/dist/api/resources/capture/types/DocumentsUploadCaptureResponse.d.ts +21 -0
  79. package/dist/api/resources/capture/types/DocumentsUploadCaptureResponse.js +7 -0
  80. package/dist/api/resources/cash/client/Client.d.ts +71 -2
  81. package/dist/api/resources/cash/client/Client.js +245 -2
  82. package/dist/api/resources/cash/client/requests/ExpenseReportsCreateCashRequest.d.ts +30 -0
  83. package/dist/api/resources/cash/client/requests/ExpenseReportsCreateCashRequest.js +3 -0
  84. package/dist/api/resources/cash/client/requests/ExpenseReportsGetCashRequest.d.ts +9 -0
  85. package/dist/api/resources/cash/client/requests/ExpenseReportsGetCashRequest.js +3 -0
  86. package/dist/api/resources/cash/client/requests/ExpenseReportsListCashRequest.d.ts +48 -0
  87. package/dist/api/resources/cash/client/requests/ExpenseReportsListCashRequest.js +31 -0
  88. package/dist/api/resources/cash/client/requests/OrdersCreateCashRequest.d.ts +4 -3
  89. package/dist/api/resources/cash/client/requests/index.d.ts +3 -0
  90. package/dist/api/resources/cash/client/requests/index.js +3 -1
  91. package/dist/api/resources/cash/types/AdvanceHoldersBalancesCashResponse.d.ts +1 -0
  92. package/dist/api/resources/cash/types/ExpenseReportsCreateCashResponse.d.ts +26 -0
  93. package/dist/api/resources/cash/types/ExpenseReportsCreateCashResponse.js +3 -0
  94. package/dist/api/resources/cash/types/ExpenseReportsGetCashResponse.d.ts +26 -0
  95. package/dist/api/resources/cash/types/ExpenseReportsGetCashResponse.js +3 -0
  96. package/dist/api/resources/cash/types/ExpenseReportsListCashResponse.d.ts +26 -0
  97. package/dist/api/resources/cash/types/ExpenseReportsListCashResponse.js +3 -0
  98. package/dist/api/resources/cash/types/OrdersCreateCashResponse.d.ts +2 -0
  99. package/dist/api/resources/cash/types/OrdersGetCashResponse.d.ts +2 -0
  100. package/dist/api/resources/cash/types/OrdersListCashResponse.d.ts +2 -0
  101. package/dist/api/resources/cash/types/index.d.ts +3 -0
  102. package/dist/api/resources/cash/types/index.js +3 -0
  103. package/dist/api/resources/declarations/client/Client.d.ts +93 -1
  104. package/dist/api/resources/declarations/client/Client.js +325 -1
  105. package/dist/api/resources/declarations/client/requests/EuDac7PreviewDeclarationsRequest.d.ts +9 -0
  106. package/dist/api/resources/declarations/client/requests/EuDac7PreviewDeclarationsRequest.js +3 -0
  107. package/dist/api/resources/declarations/client/requests/EuDac7XmlDeclarationsRequest.d.ts +9 -0
  108. package/dist/api/resources/declarations/client/requests/EuDac7XmlDeclarationsRequest.js +3 -0
  109. package/dist/api/resources/declarations/client/requests/EuDigitalReportingListDeclarationsRequest.d.ts +11 -0
  110. package/dist/api/resources/declarations/client/requests/EuDigitalReportingListDeclarationsRequest.js +3 -0
  111. package/dist/api/resources/declarations/client/requests/EuOwnGoodsTransfersComputeDeclarationsRequest.d.ts +11 -0
  112. package/dist/api/resources/declarations/client/requests/EuOwnGoodsTransfersComputeDeclarationsRequest.js +3 -0
  113. package/dist/api/resources/declarations/client/requests/index.d.ts +4 -0
  114. package/dist/api/resources/declarations/types/EuDac7PreviewDeclarationsResponse.d.ts +25 -0
  115. package/dist/api/resources/declarations/types/EuDac7PreviewDeclarationsResponse.js +3 -0
  116. package/dist/api/resources/declarations/types/EuDac7XmlDeclarationsResponse.d.ts +6 -0
  117. package/dist/api/resources/declarations/types/EuDac7XmlDeclarationsResponse.js +3 -0
  118. package/dist/api/resources/declarations/types/EuDigitalReportingListDeclarationsResponse.d.ts +67 -0
  119. package/dist/api/resources/declarations/types/EuDigitalReportingListDeclarationsResponse.js +27 -0
  120. package/dist/api/resources/declarations/types/EuOwnGoodsTransfersComputeDeclarationsResponse.d.ts +38 -0
  121. package/dist/api/resources/declarations/types/EuOwnGoodsTransfersComputeDeclarationsResponse.js +3 -0
  122. package/dist/api/resources/declarations/types/index.d.ts +4 -0
  123. package/dist/api/resources/declarations/types/index.js +4 -0
  124. package/dist/api/resources/hr/client/Client.d.ts +178 -0
  125. package/dist/api/resources/hr/client/Client.js +642 -0
  126. package/dist/api/resources/hr/client/requests/BusinessTripsApproveHrRequest.d.ts +9 -0
  127. package/dist/api/resources/hr/client/requests/BusinessTripsApproveHrRequest.js +3 -0
  128. package/dist/api/resources/hr/client/requests/BusinessTripsCreateHrRequest.d.ts +17 -0
  129. package/dist/api/resources/hr/client/requests/BusinessTripsCreateHrRequest.js +3 -0
  130. package/dist/api/resources/hr/client/requests/BusinessTripsDeleteHrRequest.d.ts +9 -0
  131. package/dist/api/resources/hr/client/requests/BusinessTripsDeleteHrRequest.js +3 -0
  132. package/dist/api/resources/hr/client/requests/BusinessTripsGetHrRequest.d.ts +9 -0
  133. package/dist/api/resources/hr/client/requests/BusinessTripsGetHrRequest.js +3 -0
  134. package/dist/api/resources/hr/client/requests/BusinessTripsListHrRequest.d.ts +48 -0
  135. package/dist/api/resources/hr/client/requests/BusinessTripsListHrRequest.js +31 -0
  136. package/dist/api/resources/hr/client/requests/PerDiemRatesCreateHrRequest.d.ts +13 -0
  137. package/dist/api/resources/hr/client/requests/PerDiemRatesCreateHrRequest.js +3 -0
  138. package/dist/api/resources/hr/client/requests/PerDiemRatesDeleteHrRequest.d.ts +9 -0
  139. package/dist/api/resources/hr/client/requests/PerDiemRatesDeleteHrRequest.js +3 -0
  140. package/dist/api/resources/hr/client/requests/PerDiemRatesListHrRequest.d.ts +48 -0
  141. package/dist/api/resources/hr/client/requests/PerDiemRatesListHrRequest.js +31 -0
  142. package/dist/api/resources/hr/client/requests/index.d.ts +8 -0
  143. package/dist/api/resources/hr/client/requests/index.js +5 -1
  144. package/dist/api/resources/hr/types/BusinessTripsApproveHrResponse.d.ts +22 -0
  145. package/dist/api/resources/hr/types/BusinessTripsApproveHrResponse.js +11 -0
  146. package/dist/api/resources/hr/types/BusinessTripsCreateHrResponse.d.ts +22 -0
  147. package/dist/api/resources/hr/types/BusinessTripsCreateHrResponse.js +11 -0
  148. package/dist/api/resources/hr/types/BusinessTripsDeleteHrResponse.d.ts +3 -0
  149. package/dist/api/resources/hr/types/BusinessTripsDeleteHrResponse.js +3 -0
  150. package/dist/api/resources/hr/types/BusinessTripsGetHrResponse.d.ts +22 -0
  151. package/dist/api/resources/hr/types/BusinessTripsGetHrResponse.js +11 -0
  152. package/dist/api/resources/hr/types/BusinessTripsListHrResponse.d.ts +36 -0
  153. package/dist/api/resources/hr/types/BusinessTripsListHrResponse.js +17 -0
  154. package/dist/api/resources/hr/types/PerDiemRatesCreateHrResponse.d.ts +7 -0
  155. package/dist/api/resources/hr/types/PerDiemRatesCreateHrResponse.js +3 -0
  156. package/dist/api/resources/hr/types/PerDiemRatesDeleteHrResponse.d.ts +3 -0
  157. package/dist/api/resources/hr/types/PerDiemRatesDeleteHrResponse.js +3 -0
  158. package/dist/api/resources/hr/types/PerDiemRatesListHrResponse.d.ts +21 -0
  159. package/dist/api/resources/hr/types/PerDiemRatesListHrResponse.js +3 -0
  160. package/dist/api/resources/hr/types/index.d.ts +8 -0
  161. package/dist/api/resources/hr/types/index.js +8 -0
  162. package/dist/api/resources/index.d.ts +6 -0
  163. package/dist/api/resources/index.js +7 -1
  164. package/dist/api/resources/inventory/client/Client.d.ts +22 -0
  165. package/dist/api/resources/inventory/client/Client.js +80 -0
  166. package/dist/api/resources/inventory/client/requests/WarehousesCreateInventoryRequest.d.ts +1 -0
  167. package/dist/api/resources/inventory/client/requests/WarehousesUpdateInventoryRequest.d.ts +11 -0
  168. package/dist/api/resources/inventory/client/requests/WarehousesUpdateInventoryRequest.js +3 -0
  169. package/dist/api/resources/inventory/client/requests/index.d.ts +1 -0
  170. package/dist/api/resources/inventory/types/LandedCostsCreateInventoryResponse.d.ts +1 -0
  171. package/dist/api/resources/inventory/types/LandedCostsGetInventoryResponse.d.ts +1 -0
  172. package/dist/api/resources/inventory/types/WarehousesCreateInventoryResponse.d.ts +1 -0
  173. package/dist/api/resources/inventory/types/WarehousesListInventoryResponse.d.ts +1 -0
  174. package/dist/api/resources/inventory/types/WarehousesUpdateInventoryResponse.d.ts +8 -0
  175. package/dist/api/resources/inventory/types/WarehousesUpdateInventoryResponse.js +3 -0
  176. package/dist/api/resources/inventory/types/index.d.ts +1 -0
  177. package/dist/api/resources/inventory/types/index.js +1 -0
  178. package/dist/api/resources/ledger/client/requests/JournalTransactionsCreateLedgerRequest.d.ts +1 -0
  179. package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.d.ts +2 -0
  180. package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.js +2 -0
  181. package/dist/api/resources/partners/client/Client.d.ts +23 -0
  182. package/dist/api/resources/partners/client/Client.js +78 -0
  183. package/dist/api/resources/partners/client/requests/MergePartnersRequest.d.ts +11 -0
  184. package/dist/api/resources/partners/client/requests/MergePartnersRequest.js +3 -0
  185. package/dist/api/resources/partners/client/requests/index.d.ts +1 -0
  186. package/dist/api/resources/partners/types/MergePartnersResponse.d.ts +15 -0
  187. package/dist/api/resources/partners/types/MergePartnersResponse.js +3 -0
  188. package/dist/api/resources/partners/types/index.d.ts +1 -0
  189. package/dist/api/resources/partners/types/index.js +1 -0
  190. package/dist/api/resources/payroll/client/Client.d.ts +23 -0
  191. package/dist/api/resources/payroll/client/Client.js +81 -0
  192. package/dist/api/resources/payroll/client/requests/RunsReversePayrollRequest.d.ts +11 -0
  193. package/dist/api/resources/payroll/client/requests/RunsReversePayrollRequest.js +3 -0
  194. package/dist/api/resources/payroll/client/requests/index.d.ts +1 -0
  195. package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.d.ts +5 -0
  196. package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.js +1 -0
  197. package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.d.ts +5 -0
  198. package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.js +1 -0
  199. package/dist/api/resources/payroll/types/RunsGetPayrollResponse.d.ts +5 -0
  200. package/dist/api/resources/payroll/types/RunsGetPayrollResponse.js +1 -0
  201. package/dist/api/resources/payroll/types/RunsListPayrollResponse.d.ts +5 -0
  202. package/dist/api/resources/payroll/types/RunsListPayrollResponse.js +1 -0
  203. package/dist/api/resources/payroll/types/RunsReversePayrollResponse.d.ts +52 -0
  204. package/dist/api/resources/payroll/types/RunsReversePayrollResponse.js +25 -0
  205. package/dist/api/resources/payroll/types/index.d.ts +1 -0
  206. package/dist/api/resources/payroll/types/index.js +1 -0
  207. package/dist/api/resources/peppol/client/Client.d.ts +58 -0
  208. package/dist/api/resources/peppol/client/Client.js +207 -0
  209. package/dist/api/resources/peppol/client/index.d.ts +1 -0
  210. package/dist/api/resources/peppol/client/index.js +17 -0
  211. package/dist/api/resources/peppol/client/requests/ParticipantsLookupPeppolRequest.d.ts +8 -0
  212. package/dist/api/resources/peppol/client/requests/ParticipantsLookupPeppolRequest.js +3 -0
  213. package/dist/api/resources/peppol/client/requests/WebhooksPeppolRequest.d.ts +12 -0
  214. package/dist/api/resources/peppol/client/requests/WebhooksPeppolRequest.js +3 -0
  215. package/dist/api/resources/peppol/client/requests/index.d.ts +2 -0
  216. package/dist/api/resources/peppol/client/requests/index.js +2 -0
  217. package/dist/api/resources/peppol/exports.d.ts +2 -0
  218. package/dist/api/resources/peppol/exports.js +21 -0
  219. package/dist/api/resources/peppol/index.d.ts +2 -0
  220. package/dist/api/resources/peppol/index.js +18 -0
  221. package/dist/api/resources/peppol/types/ParticipantsLookupPeppolResponse.d.ts +9 -0
  222. package/dist/api/resources/peppol/types/ParticipantsLookupPeppolResponse.js +3 -0
  223. package/dist/api/resources/peppol/types/WebhooksPeppolRequestProvider.d.ts +6 -0
  224. package/dist/api/resources/peppol/types/WebhooksPeppolRequestProvider.js +9 -0
  225. package/dist/api/resources/peppol/types/WebhooksPeppolResponse.d.ts +3 -0
  226. package/dist/api/resources/peppol/types/WebhooksPeppolResponse.js +3 -0
  227. package/dist/api/resources/peppol/types/index.d.ts +3 -0
  228. package/dist/api/resources/peppol/types/index.js +19 -0
  229. package/dist/api/resources/platformSellers/client/Client.d.ts +130 -0
  230. package/dist/api/resources/platformSellers/client/Client.js +458 -0
  231. package/dist/api/resources/platformSellers/client/index.d.ts +1 -0
  232. package/dist/api/resources/platformSellers/client/index.js +17 -0
  233. package/dist/api/resources/platformSellers/client/requests/CreatePlatformSellersRequest.d.ts +98 -0
  234. package/dist/api/resources/platformSellers/client/requests/CreatePlatformSellersRequest.js +35 -0
  235. package/dist/api/resources/platformSellers/client/requests/DeletePlatformSellersRequest.d.ts +9 -0
  236. package/dist/api/resources/platformSellers/client/requests/DeletePlatformSellersRequest.js +3 -0
  237. package/dist/api/resources/platformSellers/client/requests/GetPlatformSellersRequest.d.ts +9 -0
  238. package/dist/api/resources/platformSellers/client/requests/GetPlatformSellersRequest.js +3 -0
  239. package/dist/api/resources/platformSellers/client/requests/ListPlatformSellersRequest.d.ts +48 -0
  240. package/dist/api/resources/platformSellers/client/requests/ListPlatformSellersRequest.js +31 -0
  241. package/dist/api/resources/platformSellers/client/requests/UpdatePlatformSellersRequest.d.ts +100 -0
  242. package/dist/api/resources/platformSellers/client/requests/UpdatePlatformSellersRequest.js +35 -0
  243. package/dist/api/resources/platformSellers/client/requests/index.d.ts +5 -0
  244. package/dist/api/resources/platformSellers/client/requests/index.js +9 -0
  245. package/dist/api/resources/platformSellers/exports.d.ts +2 -0
  246. package/dist/api/resources/platformSellers/exports.js +21 -0
  247. package/dist/api/resources/platformSellers/index.d.ts +2 -0
  248. package/dist/api/resources/platformSellers/index.js +18 -0
  249. package/dist/api/resources/platformSellers/types/CreatePlatformSellersResponse.d.ts +93 -0
  250. package/dist/api/resources/platformSellers/types/CreatePlatformSellersResponse.js +35 -0
  251. package/dist/api/resources/platformSellers/types/DeletePlatformSellersResponse.d.ts +4 -0
  252. package/dist/api/resources/platformSellers/types/DeletePlatformSellersResponse.js +3 -0
  253. package/dist/api/resources/platformSellers/types/GetPlatformSellersResponse.d.ts +93 -0
  254. package/dist/api/resources/platformSellers/types/GetPlatformSellersResponse.js +35 -0
  255. package/dist/api/resources/platformSellers/types/ListPlatformSellersResponse.d.ts +59 -0
  256. package/dist/api/resources/platformSellers/types/ListPlatformSellersResponse.js +17 -0
  257. package/dist/api/resources/platformSellers/types/UpdatePlatformSellersResponse.d.ts +93 -0
  258. package/dist/api/resources/platformSellers/types/UpdatePlatformSellersResponse.js +35 -0
  259. package/dist/api/resources/platformSellers/types/index.d.ts +5 -0
  260. package/dist/api/resources/platformSellers/types/index.js +21 -0
  261. package/dist/api/resources/pos/client/Client.d.ts +156 -0
  262. package/dist/api/resources/pos/client/Client.js +541 -0
  263. package/dist/api/resources/pos/client/requests/ReceiptsCreatePosRequest.d.ts +29 -0
  264. package/dist/api/resources/pos/client/requests/ReceiptsCreatePosRequest.js +3 -0
  265. package/dist/api/resources/pos/client/requests/ReceiptsGetPosRequest.d.ts +9 -0
  266. package/dist/api/resources/pos/client/requests/ReceiptsGetPosRequest.js +3 -0
  267. package/dist/api/resources/pos/client/requests/ReceiptsListPosRequest.d.ts +48 -0
  268. package/dist/api/resources/pos/client/requests/ReceiptsListPosRequest.js +31 -0
  269. package/dist/api/resources/pos/client/requests/ShiftsClosePosRequest.d.ts +13 -0
  270. package/dist/api/resources/pos/client/requests/ShiftsClosePosRequest.js +3 -0
  271. package/dist/api/resources/pos/client/requests/ShiftsGetPosRequest.d.ts +9 -0
  272. package/dist/api/resources/pos/client/requests/ShiftsGetPosRequest.js +3 -0
  273. package/dist/api/resources/pos/client/requests/ShiftsListPosRequest.d.ts +48 -0
  274. package/dist/api/resources/pos/client/requests/ShiftsListPosRequest.js +31 -0
  275. package/dist/api/resources/pos/client/requests/ShiftsOpenPosRequest.d.ts +11 -0
  276. package/dist/api/resources/pos/client/requests/ShiftsOpenPosRequest.js +3 -0
  277. package/dist/api/resources/pos/client/requests/index.d.ts +7 -0
  278. package/dist/api/resources/pos/client/requests/index.js +5 -1
  279. package/dist/api/resources/pos/types/ReceiptsCreatePosResponse.d.ts +28 -0
  280. package/dist/api/resources/pos/types/ReceiptsCreatePosResponse.js +3 -0
  281. package/dist/api/resources/pos/types/ReceiptsGetPosResponse.d.ts +28 -0
  282. package/dist/api/resources/pos/types/ReceiptsGetPosResponse.js +3 -0
  283. package/dist/api/resources/pos/types/ReceiptsListPosResponse.d.ts +25 -0
  284. package/dist/api/resources/pos/types/ReceiptsListPosResponse.js +3 -0
  285. package/dist/api/resources/pos/types/ShiftsClosePosResponse.d.ts +21 -0
  286. package/dist/api/resources/pos/types/ShiftsClosePosResponse.js +11 -0
  287. package/dist/api/resources/pos/types/ShiftsGetPosResponse.d.ts +19 -0
  288. package/dist/api/resources/pos/types/ShiftsGetPosResponse.js +11 -0
  289. package/dist/api/resources/pos/types/ShiftsListPosResponse.d.ts +33 -0
  290. package/dist/api/resources/pos/types/ShiftsListPosResponse.js +17 -0
  291. package/dist/api/resources/pos/types/ShiftsOpenPosResponse.d.ts +19 -0
  292. package/dist/api/resources/pos/types/ShiftsOpenPosResponse.js +11 -0
  293. package/dist/api/resources/pos/types/index.d.ts +7 -0
  294. package/dist/api/resources/pos/types/index.js +7 -0
  295. package/dist/api/resources/purchases/client/Client.d.ts +40 -0
  296. package/dist/api/resources/purchases/client/Client.js +156 -0
  297. package/dist/api/resources/purchases/client/requests/DeferralsListPurchasesRequest.d.ts +48 -0
  298. package/dist/api/resources/purchases/client/requests/DeferralsListPurchasesRequest.js +31 -0
  299. package/dist/api/resources/purchases/client/requests/DeferralsPostPurchasesRequest.d.ts +7 -0
  300. package/dist/api/resources/purchases/client/requests/DeferralsPostPurchasesRequest.js +3 -0
  301. package/dist/api/resources/purchases/client/requests/InvoicesCreatePurchasesRequest.d.ts +2 -0
  302. package/dist/api/resources/purchases/client/requests/InvoicesRegisterPurchasesRequest.d.ts +1 -0
  303. package/dist/api/resources/purchases/client/requests/InvoicesUpdatePurchasesRequest.d.ts +2 -0
  304. package/dist/api/resources/purchases/client/requests/OrdersCreatePurchasesRequest.d.ts +2 -0
  305. package/dist/api/resources/purchases/client/requests/OrdersUpdatePurchasesRequest.d.ts +2 -0
  306. package/dist/api/resources/purchases/client/requests/index.d.ts +2 -0
  307. package/dist/api/resources/purchases/client/requests/index.js +3 -1
  308. package/dist/api/resources/purchases/types/DeferralsListPurchasesResponse.d.ts +34 -0
  309. package/dist/api/resources/purchases/types/DeferralsListPurchasesResponse.js +18 -0
  310. package/dist/api/resources/purchases/types/DeferralsPostPurchasesResponse.d.ts +5 -0
  311. package/dist/api/resources/purchases/types/DeferralsPostPurchasesResponse.js +3 -0
  312. package/dist/api/resources/purchases/types/InvoicesCreatePurchasesResponse.d.ts +2 -0
  313. package/dist/api/resources/purchases/types/InvoicesGetPurchasesResponse.d.ts +2 -0
  314. package/dist/api/resources/purchases/types/InvoicesRegisterPurchasesResponse.d.ts +2 -0
  315. package/dist/api/resources/purchases/types/InvoicesUpdatePurchasesResponse.d.ts +2 -0
  316. package/dist/api/resources/purchases/types/index.d.ts +2 -0
  317. package/dist/api/resources/purchases/types/index.js +2 -0
  318. package/dist/api/resources/reference/client/requests/VatResolveReferenceRequest.d.ts +16 -0
  319. package/dist/api/resources/reference/client/requests/VatResolveReferenceRequest.js +8 -0
  320. package/dist/api/resources/reports/types/AdvanceReconciliationReportsResponse.d.ts +1 -0
  321. package/dist/api/resources/reports/types/OnlineSalesReportsResponse.d.ts +1 -0
  322. package/dist/api/resources/sales/client/Client.d.ts +26 -0
  323. package/dist/api/resources/sales/client/Client.js +84 -0
  324. package/dist/api/resources/sales/client/requests/InvoicesApplyAdvanceSalesRequest.d.ts +2 -0
  325. package/dist/api/resources/sales/client/requests/InvoicesIssueSalesRequest.d.ts +1 -0
  326. package/dist/api/resources/sales/client/requests/InvoicesPeppolStatusSalesRequest.d.ts +9 -0
  327. package/dist/api/resources/sales/client/requests/InvoicesPeppolStatusSalesRequest.js +3 -0
  328. package/dist/api/resources/sales/client/requests/index.d.ts +1 -0
  329. package/dist/api/resources/sales/types/InvoicesApplyAdvanceSalesResponse.d.ts +7 -0
  330. package/dist/api/resources/sales/types/InvoicesCreateSalesResponse.d.ts +7 -0
  331. package/dist/api/resources/sales/types/InvoicesGetSalesResponse.d.ts +7 -0
  332. package/dist/api/resources/sales/types/InvoicesIssueSalesResponse.d.ts +7 -0
  333. package/dist/api/resources/sales/types/InvoicesListSalesResponse.d.ts +5 -0
  334. package/dist/api/resources/sales/types/InvoicesLockSalesResponse.d.ts +7 -0
  335. package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.d.ts +11 -0
  336. package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.js +10 -0
  337. package/dist/api/resources/sales/types/InvoicesPeppolStatusSalesResponse.d.ts +15 -0
  338. package/dist/api/resources/sales/types/InvoicesPeppolStatusSalesResponse.js +13 -0
  339. package/dist/api/resources/sales/types/InvoicesUnlockSalesResponse.d.ts +7 -0
  340. package/dist/api/resources/sales/types/InvoicesUpdateSalesResponse.d.ts +7 -0
  341. package/dist/api/resources/sales/types/index.d.ts +1 -0
  342. package/dist/api/resources/sales/types/index.js +1 -0
  343. package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.d.ts +5 -0
  344. package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.js +5 -0
  345. package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.d.ts +5 -0
  346. package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.js +5 -0
  347. package/package.json +1 -1
@@ -1372,6 +1372,648 @@ class HrClient {
1372
1372
  }
1373
1373
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/hr/incapacity-certificates/list");
1374
1374
  }
1375
+ /**
1376
+ * @param {NordletApi.PerDiemRatesCreateHrRequest} request
1377
+ * @param {HrClient.RequestOptions} requestOptions - Request-specific configuration.
1378
+ *
1379
+ * @throws {@link NordletApi.BadRequestError}
1380
+ * @throws {@link NordletApi.UnauthorizedError}
1381
+ * @throws {@link NordletApi.PaymentRequiredError}
1382
+ * @throws {@link NordletApi.ForbiddenError}
1383
+ * @throws {@link NordletApi.NotFoundError}
1384
+ * @throws {@link NordletApi.ConflictError}
1385
+ * @throws {@link NordletApi.ContentTooLargeError}
1386
+ * @throws {@link NordletApi.UnprocessableEntityError}
1387
+ * @throws {@link NordletApi.TooManyRequestsError}
1388
+ * @throws {@link NordletApi.InternalServerError}
1389
+ *
1390
+ * @example
1391
+ * await client.hr.perDiemRatesCreate({
1392
+ * countryCode: "countryCode",
1393
+ * dailyAmount: "121.00",
1394
+ * validFrom: "2026-07-01"
1395
+ * })
1396
+ */
1397
+ perDiemRatesCreate(request, requestOptions) {
1398
+ return core.HttpResponsePromise.fromPromise(this.__perDiemRatesCreate(request, requestOptions));
1399
+ }
1400
+ async __perDiemRatesCreate(request, requestOptions) {
1401
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1402
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1403
+ const _response = await core.fetcher({
1404
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1405
+ (await core.Supplier.get(this._options.environment)) ??
1406
+ environments.NordletApiEnvironment.Production, "v1/hr/per-diem-rates/create"),
1407
+ method: "POST",
1408
+ headers: _headers,
1409
+ contentType: "application/json",
1410
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1411
+ requestType: "json",
1412
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1413
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1414
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1415
+ abortSignal: requestOptions?.abortSignal,
1416
+ fetchFn: this._options?.fetch,
1417
+ logging: this._options.logging,
1418
+ });
1419
+ if (_response.ok) {
1420
+ return {
1421
+ data: _response.body,
1422
+ rawResponse: _response.rawResponse,
1423
+ };
1424
+ }
1425
+ if (_response.error.reason === "status-code") {
1426
+ switch (_response.error.statusCode) {
1427
+ case 400:
1428
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1429
+ case 401:
1430
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1431
+ case 402:
1432
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
1433
+ case 403:
1434
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1435
+ case 404:
1436
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1437
+ case 409:
1438
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1439
+ case 413:
1440
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
1441
+ case 422:
1442
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1443
+ case 429:
1444
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1445
+ case 500:
1446
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1447
+ default:
1448
+ throw new errors.NordletApiError({
1449
+ statusCode: _response.error.statusCode,
1450
+ body: _response.error.body,
1451
+ rawResponse: _response.rawResponse,
1452
+ });
1453
+ }
1454
+ }
1455
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/hr/per-diem-rates/create");
1456
+ }
1457
+ /**
1458
+ * @param {NordletApi.PerDiemRatesListHrRequest} request
1459
+ * @param {HrClient.RequestOptions} requestOptions - Request-specific configuration.
1460
+ *
1461
+ * @throws {@link NordletApi.BadRequestError}
1462
+ * @throws {@link NordletApi.UnauthorizedError}
1463
+ * @throws {@link NordletApi.PaymentRequiredError}
1464
+ * @throws {@link NordletApi.ForbiddenError}
1465
+ * @throws {@link NordletApi.NotFoundError}
1466
+ * @throws {@link NordletApi.ConflictError}
1467
+ * @throws {@link NordletApi.ContentTooLargeError}
1468
+ * @throws {@link NordletApi.UnprocessableEntityError}
1469
+ * @throws {@link NordletApi.TooManyRequestsError}
1470
+ * @throws {@link NordletApi.InternalServerError}
1471
+ *
1472
+ * @example
1473
+ * await client.hr.perDiemRatesList()
1474
+ */
1475
+ perDiemRatesList(request = {}, requestOptions) {
1476
+ return core.HttpResponsePromise.fromPromise(this.__perDiemRatesList(request, requestOptions));
1477
+ }
1478
+ async __perDiemRatesList(request = {}, requestOptions) {
1479
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1480
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1481
+ const _response = await core.fetcher({
1482
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1483
+ (await core.Supplier.get(this._options.environment)) ??
1484
+ environments.NordletApiEnvironment.Production, "v1/hr/per-diem-rates/list"),
1485
+ method: "POST",
1486
+ headers: _headers,
1487
+ contentType: "application/json",
1488
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1489
+ requestType: "json",
1490
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1491
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1492
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1493
+ abortSignal: requestOptions?.abortSignal,
1494
+ fetchFn: this._options?.fetch,
1495
+ logging: this._options.logging,
1496
+ });
1497
+ if (_response.ok) {
1498
+ return {
1499
+ data: _response.body,
1500
+ rawResponse: _response.rawResponse,
1501
+ };
1502
+ }
1503
+ if (_response.error.reason === "status-code") {
1504
+ switch (_response.error.statusCode) {
1505
+ case 400:
1506
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1507
+ case 401:
1508
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1509
+ case 402:
1510
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
1511
+ case 403:
1512
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1513
+ case 404:
1514
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1515
+ case 409:
1516
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1517
+ case 413:
1518
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
1519
+ case 422:
1520
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1521
+ case 429:
1522
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1523
+ case 500:
1524
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1525
+ default:
1526
+ throw new errors.NordletApiError({
1527
+ statusCode: _response.error.statusCode,
1528
+ body: _response.error.body,
1529
+ rawResponse: _response.rawResponse,
1530
+ });
1531
+ }
1532
+ }
1533
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/hr/per-diem-rates/list");
1534
+ }
1535
+ /**
1536
+ * @param {NordletApi.PerDiemRatesDeleteHrRequest} request
1537
+ * @param {HrClient.RequestOptions} requestOptions - Request-specific configuration.
1538
+ *
1539
+ * @throws {@link NordletApi.BadRequestError}
1540
+ * @throws {@link NordletApi.UnauthorizedError}
1541
+ * @throws {@link NordletApi.PaymentRequiredError}
1542
+ * @throws {@link NordletApi.ForbiddenError}
1543
+ * @throws {@link NordletApi.NotFoundError}
1544
+ * @throws {@link NordletApi.ConflictError}
1545
+ * @throws {@link NordletApi.ContentTooLargeError}
1546
+ * @throws {@link NordletApi.UnprocessableEntityError}
1547
+ * @throws {@link NordletApi.TooManyRequestsError}
1548
+ * @throws {@link NordletApi.InternalServerError}
1549
+ *
1550
+ * @example
1551
+ * await client.hr.perDiemRatesDelete({
1552
+ * id: "id"
1553
+ * })
1554
+ */
1555
+ perDiemRatesDelete(request, requestOptions) {
1556
+ return core.HttpResponsePromise.fromPromise(this.__perDiemRatesDelete(request, requestOptions));
1557
+ }
1558
+ async __perDiemRatesDelete(request, requestOptions) {
1559
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1560
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1561
+ const _response = await core.fetcher({
1562
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1563
+ (await core.Supplier.get(this._options.environment)) ??
1564
+ environments.NordletApiEnvironment.Production, "v1/hr/per-diem-rates/delete"),
1565
+ method: "POST",
1566
+ headers: _headers,
1567
+ contentType: "application/json",
1568
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1569
+ requestType: "json",
1570
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1571
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1572
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1573
+ abortSignal: requestOptions?.abortSignal,
1574
+ fetchFn: this._options?.fetch,
1575
+ logging: this._options.logging,
1576
+ });
1577
+ if (_response.ok) {
1578
+ return {
1579
+ data: _response.body,
1580
+ rawResponse: _response.rawResponse,
1581
+ };
1582
+ }
1583
+ if (_response.error.reason === "status-code") {
1584
+ switch (_response.error.statusCode) {
1585
+ case 400:
1586
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1587
+ case 401:
1588
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1589
+ case 402:
1590
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
1591
+ case 403:
1592
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1593
+ case 404:
1594
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1595
+ case 409:
1596
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1597
+ case 413:
1598
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
1599
+ case 422:
1600
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1601
+ case 429:
1602
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1603
+ case 500:
1604
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1605
+ default:
1606
+ throw new errors.NordletApiError({
1607
+ statusCode: _response.error.statusCode,
1608
+ body: _response.error.body,
1609
+ rawResponse: _response.rawResponse,
1610
+ });
1611
+ }
1612
+ }
1613
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/hr/per-diem-rates/delete");
1614
+ }
1615
+ /**
1616
+ * @param {NordletApi.BusinessTripsCreateHrRequest} request
1617
+ * @param {HrClient.RequestOptions} requestOptions - Request-specific configuration.
1618
+ *
1619
+ * @throws {@link NordletApi.BadRequestError}
1620
+ * @throws {@link NordletApi.UnauthorizedError}
1621
+ * @throws {@link NordletApi.PaymentRequiredError}
1622
+ * @throws {@link NordletApi.ForbiddenError}
1623
+ * @throws {@link NordletApi.NotFoundError}
1624
+ * @throws {@link NordletApi.ConflictError}
1625
+ * @throws {@link NordletApi.ContentTooLargeError}
1626
+ * @throws {@link NordletApi.UnprocessableEntityError}
1627
+ * @throws {@link NordletApi.TooManyRequestsError}
1628
+ * @throws {@link NordletApi.InternalServerError}
1629
+ *
1630
+ * @example
1631
+ * await client.hr.businessTripsCreate({
1632
+ * employeeId: "employeeId",
1633
+ * destinationCountryCode: "destinationCountryCode",
1634
+ * purpose: "purpose",
1635
+ * startDate: "2026-07-01",
1636
+ * endDate: "2026-07-01"
1637
+ * })
1638
+ */
1639
+ businessTripsCreate(request, requestOptions) {
1640
+ return core.HttpResponsePromise.fromPromise(this.__businessTripsCreate(request, requestOptions));
1641
+ }
1642
+ async __businessTripsCreate(request, requestOptions) {
1643
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1644
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1645
+ const _response = await core.fetcher({
1646
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1647
+ (await core.Supplier.get(this._options.environment)) ??
1648
+ environments.NordletApiEnvironment.Production, "v1/hr/business-trips/create"),
1649
+ method: "POST",
1650
+ headers: _headers,
1651
+ contentType: "application/json",
1652
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1653
+ requestType: "json",
1654
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1655
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1656
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1657
+ abortSignal: requestOptions?.abortSignal,
1658
+ fetchFn: this._options?.fetch,
1659
+ logging: this._options.logging,
1660
+ });
1661
+ if (_response.ok) {
1662
+ return {
1663
+ data: _response.body,
1664
+ rawResponse: _response.rawResponse,
1665
+ };
1666
+ }
1667
+ if (_response.error.reason === "status-code") {
1668
+ switch (_response.error.statusCode) {
1669
+ case 400:
1670
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1671
+ case 401:
1672
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1673
+ case 402:
1674
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
1675
+ case 403:
1676
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1677
+ case 404:
1678
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1679
+ case 409:
1680
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1681
+ case 413:
1682
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
1683
+ case 422:
1684
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1685
+ case 429:
1686
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1687
+ case 500:
1688
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1689
+ default:
1690
+ throw new errors.NordletApiError({
1691
+ statusCode: _response.error.statusCode,
1692
+ body: _response.error.body,
1693
+ rawResponse: _response.rawResponse,
1694
+ });
1695
+ }
1696
+ }
1697
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/hr/business-trips/create");
1698
+ }
1699
+ /**
1700
+ * @param {NordletApi.BusinessTripsGetHrRequest} request
1701
+ * @param {HrClient.RequestOptions} requestOptions - Request-specific configuration.
1702
+ *
1703
+ * @throws {@link NordletApi.BadRequestError}
1704
+ * @throws {@link NordletApi.UnauthorizedError}
1705
+ * @throws {@link NordletApi.PaymentRequiredError}
1706
+ * @throws {@link NordletApi.ForbiddenError}
1707
+ * @throws {@link NordletApi.NotFoundError}
1708
+ * @throws {@link NordletApi.ConflictError}
1709
+ * @throws {@link NordletApi.ContentTooLargeError}
1710
+ * @throws {@link NordletApi.UnprocessableEntityError}
1711
+ * @throws {@link NordletApi.TooManyRequestsError}
1712
+ * @throws {@link NordletApi.InternalServerError}
1713
+ *
1714
+ * @example
1715
+ * await client.hr.businessTripsGet({
1716
+ * id: "id"
1717
+ * })
1718
+ */
1719
+ businessTripsGet(request, requestOptions) {
1720
+ return core.HttpResponsePromise.fromPromise(this.__businessTripsGet(request, requestOptions));
1721
+ }
1722
+ async __businessTripsGet(request, requestOptions) {
1723
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1724
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1725
+ const _response = await core.fetcher({
1726
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1727
+ (await core.Supplier.get(this._options.environment)) ??
1728
+ environments.NordletApiEnvironment.Production, "v1/hr/business-trips/get"),
1729
+ method: "POST",
1730
+ headers: _headers,
1731
+ contentType: "application/json",
1732
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1733
+ requestType: "json",
1734
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1735
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1736
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1737
+ abortSignal: requestOptions?.abortSignal,
1738
+ fetchFn: this._options?.fetch,
1739
+ logging: this._options.logging,
1740
+ });
1741
+ if (_response.ok) {
1742
+ return {
1743
+ data: _response.body,
1744
+ rawResponse: _response.rawResponse,
1745
+ };
1746
+ }
1747
+ if (_response.error.reason === "status-code") {
1748
+ switch (_response.error.statusCode) {
1749
+ case 400:
1750
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1751
+ case 401:
1752
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1753
+ case 402:
1754
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
1755
+ case 403:
1756
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1757
+ case 404:
1758
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1759
+ case 409:
1760
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1761
+ case 413:
1762
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
1763
+ case 422:
1764
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1765
+ case 429:
1766
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1767
+ case 500:
1768
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1769
+ default:
1770
+ throw new errors.NordletApiError({
1771
+ statusCode: _response.error.statusCode,
1772
+ body: _response.error.body,
1773
+ rawResponse: _response.rawResponse,
1774
+ });
1775
+ }
1776
+ }
1777
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/hr/business-trips/get");
1778
+ }
1779
+ /**
1780
+ * @param {NordletApi.BusinessTripsListHrRequest} request
1781
+ * @param {HrClient.RequestOptions} requestOptions - Request-specific configuration.
1782
+ *
1783
+ * @throws {@link NordletApi.BadRequestError}
1784
+ * @throws {@link NordletApi.UnauthorizedError}
1785
+ * @throws {@link NordletApi.PaymentRequiredError}
1786
+ * @throws {@link NordletApi.ForbiddenError}
1787
+ * @throws {@link NordletApi.NotFoundError}
1788
+ * @throws {@link NordletApi.ConflictError}
1789
+ * @throws {@link NordletApi.ContentTooLargeError}
1790
+ * @throws {@link NordletApi.UnprocessableEntityError}
1791
+ * @throws {@link NordletApi.TooManyRequestsError}
1792
+ * @throws {@link NordletApi.InternalServerError}
1793
+ *
1794
+ * @example
1795
+ * await client.hr.businessTripsList()
1796
+ */
1797
+ businessTripsList(request = {}, requestOptions) {
1798
+ return core.HttpResponsePromise.fromPromise(this.__businessTripsList(request, requestOptions));
1799
+ }
1800
+ async __businessTripsList(request = {}, requestOptions) {
1801
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1802
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1803
+ const _response = await core.fetcher({
1804
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1805
+ (await core.Supplier.get(this._options.environment)) ??
1806
+ environments.NordletApiEnvironment.Production, "v1/hr/business-trips/list"),
1807
+ method: "POST",
1808
+ headers: _headers,
1809
+ contentType: "application/json",
1810
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1811
+ requestType: "json",
1812
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1813
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1814
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1815
+ abortSignal: requestOptions?.abortSignal,
1816
+ fetchFn: this._options?.fetch,
1817
+ logging: this._options.logging,
1818
+ });
1819
+ if (_response.ok) {
1820
+ return {
1821
+ data: _response.body,
1822
+ rawResponse: _response.rawResponse,
1823
+ };
1824
+ }
1825
+ if (_response.error.reason === "status-code") {
1826
+ switch (_response.error.statusCode) {
1827
+ case 400:
1828
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1829
+ case 401:
1830
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1831
+ case 402:
1832
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
1833
+ case 403:
1834
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1835
+ case 404:
1836
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1837
+ case 409:
1838
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1839
+ case 413:
1840
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
1841
+ case 422:
1842
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1843
+ case 429:
1844
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1845
+ case 500:
1846
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1847
+ default:
1848
+ throw new errors.NordletApiError({
1849
+ statusCode: _response.error.statusCode,
1850
+ body: _response.error.body,
1851
+ rawResponse: _response.rawResponse,
1852
+ });
1853
+ }
1854
+ }
1855
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/hr/business-trips/list");
1856
+ }
1857
+ /**
1858
+ * @param {NordletApi.BusinessTripsApproveHrRequest} request
1859
+ * @param {HrClient.RequestOptions} requestOptions - Request-specific configuration.
1860
+ *
1861
+ * @throws {@link NordletApi.BadRequestError}
1862
+ * @throws {@link NordletApi.UnauthorizedError}
1863
+ * @throws {@link NordletApi.PaymentRequiredError}
1864
+ * @throws {@link NordletApi.ForbiddenError}
1865
+ * @throws {@link NordletApi.NotFoundError}
1866
+ * @throws {@link NordletApi.ConflictError}
1867
+ * @throws {@link NordletApi.ContentTooLargeError}
1868
+ * @throws {@link NordletApi.UnprocessableEntityError}
1869
+ * @throws {@link NordletApi.TooManyRequestsError}
1870
+ * @throws {@link NordletApi.InternalServerError}
1871
+ *
1872
+ * @example
1873
+ * await client.hr.businessTripsApprove({
1874
+ * id: "id"
1875
+ * })
1876
+ */
1877
+ businessTripsApprove(request, requestOptions) {
1878
+ return core.HttpResponsePromise.fromPromise(this.__businessTripsApprove(request, requestOptions));
1879
+ }
1880
+ async __businessTripsApprove(request, requestOptions) {
1881
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1882
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1883
+ const _response = await core.fetcher({
1884
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1885
+ (await core.Supplier.get(this._options.environment)) ??
1886
+ environments.NordletApiEnvironment.Production, "v1/hr/business-trips/approve"),
1887
+ method: "POST",
1888
+ headers: _headers,
1889
+ contentType: "application/json",
1890
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1891
+ requestType: "json",
1892
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1893
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1894
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1895
+ abortSignal: requestOptions?.abortSignal,
1896
+ fetchFn: this._options?.fetch,
1897
+ logging: this._options.logging,
1898
+ });
1899
+ if (_response.ok) {
1900
+ return {
1901
+ data: _response.body,
1902
+ rawResponse: _response.rawResponse,
1903
+ };
1904
+ }
1905
+ if (_response.error.reason === "status-code") {
1906
+ switch (_response.error.statusCode) {
1907
+ case 400:
1908
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1909
+ case 401:
1910
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1911
+ case 402:
1912
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
1913
+ case 403:
1914
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1915
+ case 404:
1916
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1917
+ case 409:
1918
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1919
+ case 413:
1920
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
1921
+ case 422:
1922
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1923
+ case 429:
1924
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1925
+ case 500:
1926
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1927
+ default:
1928
+ throw new errors.NordletApiError({
1929
+ statusCode: _response.error.statusCode,
1930
+ body: _response.error.body,
1931
+ rawResponse: _response.rawResponse,
1932
+ });
1933
+ }
1934
+ }
1935
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/hr/business-trips/approve");
1936
+ }
1937
+ /**
1938
+ * @param {NordletApi.BusinessTripsDeleteHrRequest} request
1939
+ * @param {HrClient.RequestOptions} requestOptions - Request-specific configuration.
1940
+ *
1941
+ * @throws {@link NordletApi.BadRequestError}
1942
+ * @throws {@link NordletApi.UnauthorizedError}
1943
+ * @throws {@link NordletApi.PaymentRequiredError}
1944
+ * @throws {@link NordletApi.ForbiddenError}
1945
+ * @throws {@link NordletApi.NotFoundError}
1946
+ * @throws {@link NordletApi.ConflictError}
1947
+ * @throws {@link NordletApi.ContentTooLargeError}
1948
+ * @throws {@link NordletApi.UnprocessableEntityError}
1949
+ * @throws {@link NordletApi.TooManyRequestsError}
1950
+ * @throws {@link NordletApi.InternalServerError}
1951
+ *
1952
+ * @example
1953
+ * await client.hr.businessTripsDelete({
1954
+ * id: "id"
1955
+ * })
1956
+ */
1957
+ businessTripsDelete(request, requestOptions) {
1958
+ return core.HttpResponsePromise.fromPromise(this.__businessTripsDelete(request, requestOptions));
1959
+ }
1960
+ async __businessTripsDelete(request, requestOptions) {
1961
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1962
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1963
+ const _response = await core.fetcher({
1964
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1965
+ (await core.Supplier.get(this._options.environment)) ??
1966
+ environments.NordletApiEnvironment.Production, "v1/hr/business-trips/delete"),
1967
+ method: "POST",
1968
+ headers: _headers,
1969
+ contentType: "application/json",
1970
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1971
+ requestType: "json",
1972
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1973
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1974
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1975
+ abortSignal: requestOptions?.abortSignal,
1976
+ fetchFn: this._options?.fetch,
1977
+ logging: this._options.logging,
1978
+ });
1979
+ if (_response.ok) {
1980
+ return {
1981
+ data: _response.body,
1982
+ rawResponse: _response.rawResponse,
1983
+ };
1984
+ }
1985
+ if (_response.error.reason === "status-code") {
1986
+ switch (_response.error.statusCode) {
1987
+ case 400:
1988
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1989
+ case 401:
1990
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1991
+ case 402:
1992
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
1993
+ case 403:
1994
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1995
+ case 404:
1996
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1997
+ case 409:
1998
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1999
+ case 413:
2000
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
2001
+ case 422:
2002
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
2003
+ case 429:
2004
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
2005
+ case 500:
2006
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
2007
+ default:
2008
+ throw new errors.NordletApiError({
2009
+ statusCode: _response.error.statusCode,
2010
+ body: _response.error.body,
2011
+ rawResponse: _response.rawResponse,
2012
+ });
2013
+ }
2014
+ }
2015
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/hr/business-trips/delete");
2016
+ }
1375
2017
  /**
1376
2018
  * @param {NordletApi.EmployeesRecordsCreateHrRequest} request
1377
2019
  * @param {HrClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface BusinessTripsApproveHrRequest {
8
+ id: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });