nordlet 0.3.7 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/README.md +2 -2
  2. package/dist/api/resources/account/types/ApiKeysListAccountResponse.d.ts +1 -0
  3. package/dist/api/resources/agreements/client/Client.d.ts +42 -0
  4. package/dist/api/resources/agreements/client/Client.js +158 -0
  5. package/dist/api/resources/agreements/client/requests/SettingsGetAgreementsRequest.d.ts +5 -0
  6. package/dist/api/resources/agreements/client/requests/SettingsGetAgreementsRequest.js +3 -0
  7. package/dist/api/resources/agreements/client/requests/SettingsUpdateAgreementsRequest.d.ts +9 -0
  8. package/dist/api/resources/agreements/client/requests/SettingsUpdateAgreementsRequest.js +3 -0
  9. package/dist/api/resources/agreements/client/requests/index.d.ts +2 -0
  10. package/dist/api/resources/agreements/types/AgreementsListAgreementsResponse.d.ts +2 -0
  11. package/dist/api/resources/agreements/types/InsurancePoliciesListAgreementsResponse.d.ts +2 -0
  12. package/dist/api/resources/agreements/types/SettingsGetAgreementsResponse.d.ts +3 -0
  13. package/dist/api/resources/agreements/types/SettingsGetAgreementsResponse.js +3 -0
  14. package/dist/api/resources/agreements/types/SettingsUpdateAgreementsResponse.d.ts +3 -0
  15. package/dist/api/resources/agreements/types/SettingsUpdateAgreementsResponse.js +3 -0
  16. package/dist/api/resources/agreements/types/TypesListAgreementsResponse.d.ts +2 -0
  17. package/dist/api/resources/agreements/types/index.d.ts +2 -0
  18. package/dist/api/resources/agreements/types/index.js +2 -0
  19. package/dist/api/resources/assets/client/Client.d.ts +42 -0
  20. package/dist/api/resources/assets/client/Client.js +155 -0
  21. package/dist/api/resources/assets/client/requests/SettingsGetAssetsRequest.d.ts +5 -0
  22. package/dist/api/resources/assets/client/requests/SettingsGetAssetsRequest.js +3 -0
  23. package/dist/api/resources/assets/client/requests/SettingsUpdateAssetsRequest.d.ts +9 -0
  24. package/dist/api/resources/assets/client/requests/SettingsUpdateAssetsRequest.js +3 -0
  25. package/dist/api/resources/assets/client/requests/index.d.ts +2 -0
  26. package/dist/api/resources/assets/types/AssetsListAssetsResponse.d.ts +2 -0
  27. package/dist/api/resources/assets/types/GroupsListAssetsResponse.d.ts +2 -0
  28. package/dist/api/resources/assets/types/SettingsGetAssetsResponse.d.ts +3 -0
  29. package/dist/api/resources/assets/types/SettingsGetAssetsResponse.js +3 -0
  30. package/dist/api/resources/assets/types/SettingsUpdateAssetsResponse.d.ts +3 -0
  31. package/dist/api/resources/assets/types/SettingsUpdateAssetsResponse.js +3 -0
  32. package/dist/api/resources/assets/types/index.d.ts +2 -0
  33. package/dist/api/resources/assets/types/index.js +2 -0
  34. package/dist/api/resources/audit/types/ListAuditResponse.d.ts +2 -0
  35. package/dist/api/resources/bank/client/Client.d.ts +47 -0
  36. package/dist/api/resources/bank/client/Client.js +163 -0
  37. package/dist/api/resources/bank/client/requests/DirectDebitsCandidatesBankRequest.d.ts +48 -0
  38. package/dist/api/resources/bank/client/requests/DirectDebitsCandidatesBankRequest.js +31 -0
  39. package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.d.ts +32 -0
  40. package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.js +17 -0
  41. package/dist/api/resources/bank/client/requests/index.d.ts +2 -0
  42. package/dist/api/resources/bank/client/requests/index.js +5 -1
  43. package/dist/api/resources/bank/types/AccountsListBankResponse.d.ts +2 -0
  44. package/dist/api/resources/bank/types/DirectDebitsCandidatesBankResponse.d.ts +29 -0
  45. package/dist/api/resources/bank/types/DirectDebitsCandidatesBankResponse.js +3 -0
  46. package/dist/api/resources/bank/types/FeedsConnectionsListBankResponse.d.ts +2 -0
  47. package/dist/api/resources/bank/types/ImportTemplatesListBankResponse.d.ts +2 -0
  48. package/dist/api/resources/bank/types/MandatesListBankResponse.d.ts +2 -0
  49. package/dist/api/resources/bank/types/SettlementsListBankResponse.d.ts +2 -0
  50. package/dist/api/resources/bank/types/TransactionsListBankResponse.d.ts +2 -0
  51. package/dist/api/resources/bank/types/TransactionsMatchManyBankResponse.d.ts +23 -0
  52. package/dist/api/resources/bank/types/TransactionsMatchManyBankResponse.js +11 -0
  53. package/dist/api/resources/bank/types/index.d.ts +2 -0
  54. package/dist/api/resources/bank/types/index.js +2 -0
  55. package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.d.ts +2 -0
  56. package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.d.ts +2 -0
  57. package/dist/api/resources/capture/types/DocumentsListCaptureResponse.d.ts +2 -0
  58. package/dist/api/resources/cash/client/Client.d.ts +71 -2
  59. package/dist/api/resources/cash/client/Client.js +245 -2
  60. package/dist/api/resources/cash/client/requests/ExpenseReportsCreateCashRequest.d.ts +30 -0
  61. package/dist/api/resources/cash/client/requests/ExpenseReportsCreateCashRequest.js +3 -0
  62. package/dist/api/resources/cash/client/requests/ExpenseReportsGetCashRequest.d.ts +9 -0
  63. package/dist/api/resources/cash/client/requests/ExpenseReportsGetCashRequest.js +3 -0
  64. package/dist/api/resources/cash/client/requests/ExpenseReportsListCashRequest.d.ts +48 -0
  65. package/dist/api/resources/cash/client/requests/ExpenseReportsListCashRequest.js +31 -0
  66. package/dist/api/resources/cash/client/requests/OrdersCreateCashRequest.d.ts +4 -3
  67. package/dist/api/resources/cash/client/requests/index.d.ts +3 -0
  68. package/dist/api/resources/cash/client/requests/index.js +3 -1
  69. package/dist/api/resources/cash/types/AdvanceHoldersBalancesCashResponse.d.ts +1 -0
  70. package/dist/api/resources/cash/types/ExpenseReportsCreateCashResponse.d.ts +26 -0
  71. package/dist/api/resources/cash/types/ExpenseReportsCreateCashResponse.js +3 -0
  72. package/dist/api/resources/cash/types/ExpenseReportsGetCashResponse.d.ts +26 -0
  73. package/dist/api/resources/cash/types/ExpenseReportsGetCashResponse.js +3 -0
  74. package/dist/api/resources/cash/types/ExpenseReportsListCashResponse.d.ts +26 -0
  75. package/dist/api/resources/cash/types/ExpenseReportsListCashResponse.js +3 -0
  76. package/dist/api/resources/cash/types/OrdersCreateCashResponse.d.ts +2 -0
  77. package/dist/api/resources/cash/types/OrdersGetCashResponse.d.ts +2 -0
  78. package/dist/api/resources/cash/types/OrdersListCashResponse.d.ts +4 -0
  79. package/dist/api/resources/cash/types/index.d.ts +3 -0
  80. package/dist/api/resources/cash/types/index.js +3 -0
  81. package/dist/api/resources/catalog/types/ItemsListCatalogResponse.d.ts +2 -0
  82. package/dist/api/resources/declarations/client/Client.d.ts +1 -1
  83. package/dist/api/resources/declarations/client/Client.js +1 -1
  84. package/dist/api/resources/declarations/types/SubmissionsListDeclarationsResponse.d.ts +2 -0
  85. package/dist/api/resources/documentSeries/types/ListDocumentSeriesResponse.d.ts +2 -0
  86. package/dist/api/resources/ecommerce/types/OrdersListEcommerceResponse.d.ts +2 -0
  87. package/dist/api/resources/files/types/ListFilesResponse.d.ts +2 -0
  88. package/dist/api/resources/fleet/types/AssignmentsListFleetResponse.d.ts +2 -0
  89. package/dist/api/resources/fleet/types/VehiclesListFleetResponse.d.ts +2 -0
  90. package/dist/api/resources/hr/client/Client.d.ts +178 -0
  91. package/dist/api/resources/hr/client/Client.js +642 -0
  92. package/dist/api/resources/hr/client/requests/BusinessTripsApproveHrRequest.d.ts +9 -0
  93. package/dist/api/resources/hr/client/requests/BusinessTripsApproveHrRequest.js +3 -0
  94. package/dist/api/resources/hr/client/requests/BusinessTripsCreateHrRequest.d.ts +17 -0
  95. package/dist/api/resources/hr/client/requests/BusinessTripsCreateHrRequest.js +3 -0
  96. package/dist/api/resources/hr/client/requests/BusinessTripsDeleteHrRequest.d.ts +9 -0
  97. package/dist/api/resources/hr/client/requests/BusinessTripsDeleteHrRequest.js +3 -0
  98. package/dist/api/resources/hr/client/requests/BusinessTripsGetHrRequest.d.ts +9 -0
  99. package/dist/api/resources/hr/client/requests/BusinessTripsGetHrRequest.js +3 -0
  100. package/dist/api/resources/hr/client/requests/BusinessTripsListHrRequest.d.ts +48 -0
  101. package/dist/api/resources/hr/client/requests/BusinessTripsListHrRequest.js +31 -0
  102. package/dist/api/resources/hr/client/requests/PerDiemRatesCreateHrRequest.d.ts +13 -0
  103. package/dist/api/resources/hr/client/requests/PerDiemRatesCreateHrRequest.js +3 -0
  104. package/dist/api/resources/hr/client/requests/PerDiemRatesDeleteHrRequest.d.ts +9 -0
  105. package/dist/api/resources/hr/client/requests/PerDiemRatesDeleteHrRequest.js +3 -0
  106. package/dist/api/resources/hr/client/requests/PerDiemRatesListHrRequest.d.ts +48 -0
  107. package/dist/api/resources/hr/client/requests/PerDiemRatesListHrRequest.js +31 -0
  108. package/dist/api/resources/hr/client/requests/index.d.ts +8 -0
  109. package/dist/api/resources/hr/client/requests/index.js +5 -1
  110. package/dist/api/resources/hr/types/BusinessTripsApproveHrResponse.d.ts +22 -0
  111. package/dist/api/resources/hr/types/BusinessTripsApproveHrResponse.js +11 -0
  112. package/dist/api/resources/hr/types/BusinessTripsCreateHrResponse.d.ts +22 -0
  113. package/dist/api/resources/hr/types/BusinessTripsCreateHrResponse.js +11 -0
  114. package/dist/api/resources/hr/types/BusinessTripsDeleteHrResponse.d.ts +3 -0
  115. package/dist/api/resources/hr/types/BusinessTripsDeleteHrResponse.js +3 -0
  116. package/dist/api/resources/hr/types/BusinessTripsGetHrResponse.d.ts +22 -0
  117. package/dist/api/resources/hr/types/BusinessTripsGetHrResponse.js +11 -0
  118. package/dist/api/resources/hr/types/BusinessTripsListHrResponse.d.ts +36 -0
  119. package/dist/api/resources/hr/types/BusinessTripsListHrResponse.js +17 -0
  120. package/dist/api/resources/hr/types/ContractsListHrResponse.d.ts +2 -0
  121. package/dist/api/resources/hr/types/EmployeesListHrResponse.d.ts +2 -0
  122. package/dist/api/resources/hr/types/EmployeesRecordsListHrResponse.d.ts +2 -0
  123. package/dist/api/resources/hr/types/IncapacityCertificatesListHrResponse.d.ts +2 -0
  124. package/dist/api/resources/hr/types/PerDiemRatesCreateHrResponse.d.ts +7 -0
  125. package/dist/api/resources/hr/types/PerDiemRatesCreateHrResponse.js +3 -0
  126. package/dist/api/resources/hr/types/PerDiemRatesDeleteHrResponse.d.ts +3 -0
  127. package/dist/api/resources/hr/types/PerDiemRatesDeleteHrResponse.js +3 -0
  128. package/dist/api/resources/hr/types/PerDiemRatesListHrResponse.d.ts +21 -0
  129. package/dist/api/resources/hr/types/PerDiemRatesListHrResponse.js +3 -0
  130. package/dist/api/resources/hr/types/PositionsListHrResponse.d.ts +2 -0
  131. package/dist/api/resources/hr/types/index.d.ts +8 -0
  132. package/dist/api/resources/hr/types/index.js +8 -0
  133. package/dist/api/resources/inventory/types/LandedCostsListInventoryResponse.d.ts +2 -0
  134. package/dist/api/resources/inventory/types/LotsListInventoryResponse.d.ts +2 -0
  135. package/dist/api/resources/inventory/types/ReorderRulesListInventoryResponse.d.ts +2 -0
  136. package/dist/api/resources/inventory/types/StockMovementsListInventoryResponse.d.ts +2 -0
  137. package/dist/api/resources/inventory/types/WarehousesListInventoryResponse.d.ts +2 -0
  138. package/dist/api/resources/leads/client/Client.d.ts +106 -0
  139. package/dist/api/resources/leads/client/Client.js +381 -0
  140. package/dist/api/resources/leads/client/requests/CreateLeadsRequest.d.ts +1 -0
  141. package/dist/api/resources/leads/client/requests/TypesCreateLeadsRequest.d.ts +10 -0
  142. package/dist/api/resources/leads/client/requests/TypesCreateLeadsRequest.js +3 -0
  143. package/dist/api/resources/leads/client/requests/TypesDeleteLeadsRequest.d.ts +9 -0
  144. package/dist/api/resources/leads/client/requests/TypesDeleteLeadsRequest.js +3 -0
  145. package/dist/api/resources/leads/client/requests/TypesListLeadsRequest.d.ts +5 -0
  146. package/dist/api/resources/leads/client/requests/TypesListLeadsRequest.js +3 -0
  147. package/dist/api/resources/leads/client/requests/TypesOptionsLeadsRequest.d.ts +5 -0
  148. package/dist/api/resources/leads/client/requests/TypesOptionsLeadsRequest.js +3 -0
  149. package/dist/api/resources/leads/client/requests/TypesUpdateLeadsRequest.d.ts +11 -0
  150. package/dist/api/resources/leads/client/requests/TypesUpdateLeadsRequest.js +3 -0
  151. package/dist/api/resources/leads/client/requests/UpdateLeadsRequest.d.ts +1 -0
  152. package/dist/api/resources/leads/client/requests/index.d.ts +5 -0
  153. package/dist/api/resources/leads/types/ConvertLeadsResponse.d.ts +2 -0
  154. package/dist/api/resources/leads/types/CreateLeadsResponse.d.ts +2 -0
  155. package/dist/api/resources/leads/types/GetLeadsResponse.d.ts +2 -0
  156. package/dist/api/resources/leads/types/ListLeadsResponse.d.ts +4 -0
  157. package/dist/api/resources/leads/types/TypesCreateLeadsResponse.d.ts +6 -0
  158. package/dist/api/resources/leads/types/TypesCreateLeadsResponse.js +3 -0
  159. package/dist/api/resources/leads/types/TypesDeleteLeadsResponse.d.ts +3 -0
  160. package/dist/api/resources/leads/types/TypesDeleteLeadsResponse.js +3 -0
  161. package/dist/api/resources/leads/types/TypesListLeadsResponse.d.ts +14 -0
  162. package/dist/api/resources/leads/types/TypesListLeadsResponse.js +3 -0
  163. package/dist/api/resources/leads/types/TypesOptionsLeadsResponse.d.ts +12 -0
  164. package/dist/api/resources/leads/types/TypesOptionsLeadsResponse.js +3 -0
  165. package/dist/api/resources/leads/types/TypesUpdateLeadsResponse.d.ts +6 -0
  166. package/dist/api/resources/leads/types/TypesUpdateLeadsResponse.js +3 -0
  167. package/dist/api/resources/leads/types/UpdateLeadsResponse.d.ts +2 -0
  168. package/dist/api/resources/leads/types/index.d.ts +5 -0
  169. package/dist/api/resources/leads/types/index.js +5 -0
  170. package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.d.ts +2 -0
  171. package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.js +2 -0
  172. package/dist/api/resources/ledger/types/AccountsListLedgerResponse.d.ts +2 -0
  173. package/dist/api/resources/ledger/types/CostCenterGroupsListLedgerResponse.d.ts +2 -0
  174. package/dist/api/resources/ledger/types/CostCentersListLedgerResponse.d.ts +2 -0
  175. package/dist/api/resources/ledger/types/JournalTransactionsListLedgerResponse.d.ts +3 -0
  176. package/dist/api/resources/ledger/types/OwnersListLedgerResponse.d.ts +2 -0
  177. package/dist/api/resources/ledger/types/PeriodsListLedgerResponse.d.ts +2 -0
  178. package/dist/api/resources/migration/client/Client.d.ts +1 -1
  179. package/dist/api/resources/migration/client/Client.js +1 -1
  180. package/dist/api/resources/operationTypes/types/ListOperationTypesResponse.d.ts +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/AddressesListPartnersResponse.d.ts +2 -0
  187. package/dist/api/resources/partners/types/BankAccountsListPartnersResponse.d.ts +2 -0
  188. package/dist/api/resources/partners/types/ContactsListPartnersResponse.d.ts +2 -0
  189. package/dist/api/resources/partners/types/DebtRemindersListPartnersResponse.d.ts +2 -0
  190. package/dist/api/resources/partners/types/DebtRemindersPreviewPartnersResponse.d.ts +10 -3
  191. package/dist/api/resources/partners/types/InquiriesListPartnersResponse.d.ts +2 -0
  192. package/dist/api/resources/partners/types/ListPartnersResponse.d.ts +2 -0
  193. package/dist/api/resources/partners/types/MergePartnersResponse.d.ts +15 -0
  194. package/dist/api/resources/partners/types/MergePartnersResponse.js +3 -0
  195. package/dist/api/resources/partners/types/VatReviewsListPartnersResponse.d.ts +2 -0
  196. package/dist/api/resources/partners/types/index.d.ts +1 -0
  197. package/dist/api/resources/partners/types/index.js +1 -0
  198. package/dist/api/resources/payroll/client/Client.d.ts +23 -0
  199. package/dist/api/resources/payroll/client/Client.js +81 -0
  200. package/dist/api/resources/payroll/client/requests/RunsCreatePayrollRequest.d.ts +1 -0
  201. package/dist/api/resources/payroll/client/requests/RunsReversePayrollRequest.d.ts +11 -0
  202. package/dist/api/resources/payroll/client/requests/RunsReversePayrollRequest.js +3 -0
  203. package/dist/api/resources/payroll/client/requests/index.d.ts +1 -0
  204. package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.d.ts +5 -0
  205. package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.js +1 -0
  206. package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.d.ts +5 -0
  207. package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.js +1 -0
  208. package/dist/api/resources/payroll/types/RunsGetPayrollResponse.d.ts +5 -0
  209. package/dist/api/resources/payroll/types/RunsGetPayrollResponse.js +1 -0
  210. package/dist/api/resources/payroll/types/RunsListPayrollResponse.d.ts +7 -0
  211. package/dist/api/resources/payroll/types/RunsListPayrollResponse.js +1 -0
  212. package/dist/api/resources/payroll/types/RunsReversePayrollResponse.d.ts +51 -0
  213. package/dist/api/resources/payroll/types/RunsReversePayrollResponse.js +25 -0
  214. package/dist/api/resources/payroll/types/index.d.ts +1 -0
  215. package/dist/api/resources/payroll/types/index.js +1 -0
  216. package/dist/api/resources/pos/client/Client.d.ts +156 -0
  217. package/dist/api/resources/pos/client/Client.js +541 -0
  218. package/dist/api/resources/pos/client/requests/ReceiptsCreatePosRequest.d.ts +29 -0
  219. package/dist/api/resources/pos/client/requests/ReceiptsCreatePosRequest.js +3 -0
  220. package/dist/api/resources/pos/client/requests/ReceiptsGetPosRequest.d.ts +9 -0
  221. package/dist/api/resources/pos/client/requests/ReceiptsGetPosRequest.js +3 -0
  222. package/dist/api/resources/pos/client/requests/ReceiptsListPosRequest.d.ts +48 -0
  223. package/dist/api/resources/pos/client/requests/ReceiptsListPosRequest.js +31 -0
  224. package/dist/api/resources/pos/client/requests/ShiftsClosePosRequest.d.ts +13 -0
  225. package/dist/api/resources/pos/client/requests/ShiftsClosePosRequest.js +3 -0
  226. package/dist/api/resources/pos/client/requests/ShiftsGetPosRequest.d.ts +9 -0
  227. package/dist/api/resources/pos/client/requests/ShiftsGetPosRequest.js +3 -0
  228. package/dist/api/resources/pos/client/requests/ShiftsListPosRequest.d.ts +48 -0
  229. package/dist/api/resources/pos/client/requests/ShiftsListPosRequest.js +31 -0
  230. package/dist/api/resources/pos/client/requests/ShiftsOpenPosRequest.d.ts +11 -0
  231. package/dist/api/resources/pos/client/requests/ShiftsOpenPosRequest.js +3 -0
  232. package/dist/api/resources/pos/client/requests/index.d.ts +7 -0
  233. package/dist/api/resources/pos/client/requests/index.js +5 -1
  234. package/dist/api/resources/pos/types/DevicesListPosResponse.d.ts +2 -0
  235. package/dist/api/resources/pos/types/ReceiptsCreatePosResponse.d.ts +28 -0
  236. package/dist/api/resources/pos/types/ReceiptsCreatePosResponse.js +3 -0
  237. package/dist/api/resources/pos/types/ReceiptsGetPosResponse.d.ts +28 -0
  238. package/dist/api/resources/pos/types/ReceiptsGetPosResponse.js +3 -0
  239. package/dist/api/resources/pos/types/ReceiptsListPosResponse.d.ts +25 -0
  240. package/dist/api/resources/pos/types/ReceiptsListPosResponse.js +3 -0
  241. package/dist/api/resources/pos/types/ReportsListPosResponse.d.ts +2 -0
  242. package/dist/api/resources/pos/types/ShiftsClosePosResponse.d.ts +21 -0
  243. package/dist/api/resources/pos/types/ShiftsClosePosResponse.js +11 -0
  244. package/dist/api/resources/pos/types/ShiftsGetPosResponse.d.ts +19 -0
  245. package/dist/api/resources/pos/types/ShiftsGetPosResponse.js +11 -0
  246. package/dist/api/resources/pos/types/ShiftsListPosResponse.d.ts +33 -0
  247. package/dist/api/resources/pos/types/ShiftsListPosResponse.js +17 -0
  248. package/dist/api/resources/pos/types/ShiftsOpenPosResponse.d.ts +19 -0
  249. package/dist/api/resources/pos/types/ShiftsOpenPosResponse.js +11 -0
  250. package/dist/api/resources/pos/types/index.d.ts +7 -0
  251. package/dist/api/resources/pos/types/index.js +7 -0
  252. package/dist/api/resources/production/types/BomsListProductionResponse.d.ts +2 -0
  253. package/dist/api/resources/production/types/MaintenanceListProductionResponse.d.ts +2 -0
  254. package/dist/api/resources/production/types/OrdersListProductionResponse.d.ts +2 -0
  255. package/dist/api/resources/production/types/QualityChecksListProductionResponse.d.ts +2 -0
  256. package/dist/api/resources/production/types/RoutingsListProductionResponse.d.ts +2 -0
  257. package/dist/api/resources/production/types/WorkCentersListProductionResponse.d.ts +2 -0
  258. package/dist/api/resources/projects/types/ListProjectsResponse.d.ts +2 -0
  259. package/dist/api/resources/projects/types/TimeEntriesListProjectsResponse.d.ts +2 -0
  260. package/dist/api/resources/purchases/client/Client.d.ts +40 -0
  261. package/dist/api/resources/purchases/client/Client.js +156 -0
  262. package/dist/api/resources/purchases/client/requests/DeferralsListPurchasesRequest.d.ts +48 -0
  263. package/dist/api/resources/purchases/client/requests/DeferralsListPurchasesRequest.js +31 -0
  264. package/dist/api/resources/purchases/client/requests/DeferralsPostPurchasesRequest.d.ts +7 -0
  265. package/dist/api/resources/purchases/client/requests/DeferralsPostPurchasesRequest.js +3 -0
  266. package/dist/api/resources/purchases/client/requests/InvoicesCreatePurchasesRequest.d.ts +2 -0
  267. package/dist/api/resources/purchases/client/requests/InvoicesUpdatePurchasesRequest.d.ts +2 -0
  268. package/dist/api/resources/purchases/client/requests/OrdersCreatePurchasesRequest.d.ts +2 -0
  269. package/dist/api/resources/purchases/client/requests/OrdersUpdatePurchasesRequest.d.ts +2 -0
  270. package/dist/api/resources/purchases/client/requests/index.d.ts +2 -0
  271. package/dist/api/resources/purchases/client/requests/index.js +3 -1
  272. package/dist/api/resources/purchases/types/DeferralsListPurchasesResponse.d.ts +34 -0
  273. package/dist/api/resources/purchases/types/DeferralsListPurchasesResponse.js +18 -0
  274. package/dist/api/resources/purchases/types/DeferralsPostPurchasesResponse.d.ts +5 -0
  275. package/dist/api/resources/purchases/types/DeferralsPostPurchasesResponse.js +3 -0
  276. package/dist/api/resources/purchases/types/InvoicesCreatePurchasesResponse.d.ts +2 -0
  277. package/dist/api/resources/purchases/types/InvoicesGetPurchasesResponse.d.ts +2 -0
  278. package/dist/api/resources/purchases/types/InvoicesListPurchasesResponse.d.ts +2 -0
  279. package/dist/api/resources/purchases/types/InvoicesRegisterPurchasesResponse.d.ts +2 -0
  280. package/dist/api/resources/purchases/types/InvoicesUpdatePurchasesResponse.d.ts +2 -0
  281. package/dist/api/resources/purchases/types/OrdersListPurchasesResponse.d.ts +2 -0
  282. package/dist/api/resources/purchases/types/ReceiptsListPurchasesResponse.d.ts +2 -0
  283. package/dist/api/resources/purchases/types/index.d.ts +2 -0
  284. package/dist/api/resources/purchases/types/index.js +2 -0
  285. package/dist/api/resources/reference/types/BanksListReferenceResponse.d.ts +2 -0
  286. package/dist/api/resources/reference/types/CnCodesListReferenceResponse.d.ts +2 -0
  287. package/dist/api/resources/reference/types/CurrenciesListReferenceResponse.d.ts +2 -0
  288. package/dist/api/resources/reference/types/ExchangeRatesListReferenceResponse.d.ts +2 -0
  289. package/dist/api/resources/reference/types/ExchangeRatesOverridesListReferenceResponse.d.ts +2 -0
  290. package/dist/api/resources/reference/types/SeriesListReferenceResponse.d.ts +2 -0
  291. package/dist/api/resources/reference/types/UnitsListReferenceResponse.d.ts +2 -0
  292. package/dist/api/resources/reference/types/VatClassifiersListReferenceResponse.d.ts +2 -0
  293. package/dist/api/resources/reports/types/AdvanceReconciliationReportsResponse.d.ts +1 -0
  294. package/dist/api/resources/reports/types/JobsListReportsResponse.d.ts +2 -0
  295. package/dist/api/resources/reports/types/PartnerBalancesReportsResponse.d.ts +5 -0
  296. package/dist/api/resources/sales/client/requests/InvoicesIssueSalesRequest.d.ts +1 -0
  297. package/dist/api/resources/sales/types/ActsListSalesResponse.d.ts +2 -0
  298. package/dist/api/resources/sales/types/InvoicesEinvoiceSendSalesResponse.d.ts +1 -1
  299. package/dist/api/resources/sales/types/InvoicesListSalesResponse.d.ts +2 -0
  300. package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.d.ts +1 -1
  301. package/dist/api/resources/sales/types/RecognitionRunsListSalesResponse.d.ts +2 -0
  302. package/dist/api/resources/sales/types/RecognitionSchedulesListSalesResponse.d.ts +2 -0
  303. package/dist/api/resources/sales/types/RefundLiabilityListSalesResponse.d.ts +2 -0
  304. package/dist/api/resources/transport/types/WaybillsListTransportResponse.d.ts +2 -0
  305. package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.d.ts +1 -0
  306. package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.js +1 -0
  307. package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.d.ts +1 -0
  308. package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.js +1 -0
  309. package/dist/api/resources/webhooks/types/DeliveriesListWebhooksResponse.d.ts +2 -0
  310. package/dist/api/resources/webhooks/types/SubscriptionsListWebhooksResponse.d.ts +2 -0
  311. package/package.json +1 -1
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=Nordlet%2FTypeScript)
4
4
  [![npm shield](https://img.shields.io/npm/v/nordlet)](https://www.npmjs.com/package/nordlet)
5
5
 
6
- The Nordlet TypeScript library provides convenient access to the Nordlet Accounting API from TypeScript and JavaScript (Node.js ≥ 18, browsers, and edge runtimes — anywhere `fetch` is available).
6
+ The Nordlet TypeScript library provides convenient access to the Nordlet Accounting API from TypeScript and JavaScript (Node.js ≥ 18, browsers, and edge runtimes - anywhere `fetch` is available).
7
7
 
8
8
  ## Installation
9
9
 
@@ -53,7 +53,7 @@ await client.sales.postV1SalesInvoicesList({}, { maxRetries: 5, timeoutInSeconds
53
53
 
54
54
  ## Documentation
55
55
 
56
- The full API reference lives at [docs.nordlet.com](https://docs.nordlet.com) — every endpoint, request/response schema, error envelope, idempotency and webhook conventions.
56
+ The full API reference lives at [docs.nordlet.com](https://docs.nordlet.com) - every endpoint, request/response schema, error envelope, idempotency and webhook conventions.
57
57
 
58
58
  ## Contributing
59
59
 
@@ -11,6 +11,7 @@ export declare namespace ApiKeysListAccountResponse {
11
11
  lastUsedAt: string | null;
12
12
  expiresAt: string | null;
13
13
  replacedByKeyId: string | null;
14
+ createdByUserId: string | null;
14
15
  revokedAt: string | null;
15
16
  createdAt: string;
16
17
  }
@@ -10,6 +10,48 @@ export declare namespace AgreementsClient {
10
10
  export declare class AgreementsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<AgreementsClient.Options>;
12
12
  constructor(options: AgreementsClient.Options);
13
+ /**
14
+ * @param {NordletApi.SettingsGetAgreementsRequest} request
15
+ * @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
16
+ *
17
+ * @throws {@link NordletApi.BadRequestError}
18
+ * @throws {@link NordletApi.UnauthorizedError}
19
+ * @throws {@link NordletApi.PaymentRequiredError}
20
+ * @throws {@link NordletApi.ForbiddenError}
21
+ * @throws {@link NordletApi.NotFoundError}
22
+ * @throws {@link NordletApi.ConflictError}
23
+ * @throws {@link NordletApi.ContentTooLargeError}
24
+ * @throws {@link NordletApi.UnprocessableEntityError}
25
+ * @throws {@link NordletApi.TooManyRequestsError}
26
+ * @throws {@link NordletApi.InternalServerError}
27
+ *
28
+ * @example
29
+ * await client.agreements.settingsGet()
30
+ */
31
+ settingsGet(request?: NordletApi.SettingsGetAgreementsRequest, requestOptions?: AgreementsClient.RequestOptions): core.HttpResponsePromise<NordletApi.SettingsGetAgreementsResponse>;
32
+ private __settingsGet;
33
+ /**
34
+ * @param {NordletApi.SettingsUpdateAgreementsRequest} request
35
+ * @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
36
+ *
37
+ * @throws {@link NordletApi.BadRequestError}
38
+ * @throws {@link NordletApi.UnauthorizedError}
39
+ * @throws {@link NordletApi.PaymentRequiredError}
40
+ * @throws {@link NordletApi.ForbiddenError}
41
+ * @throws {@link NordletApi.NotFoundError}
42
+ * @throws {@link NordletApi.ConflictError}
43
+ * @throws {@link NordletApi.ContentTooLargeError}
44
+ * @throws {@link NordletApi.UnprocessableEntityError}
45
+ * @throws {@link NordletApi.TooManyRequestsError}
46
+ * @throws {@link NordletApi.InternalServerError}
47
+ *
48
+ * @example
49
+ * await client.agreements.settingsUpdate({
50
+ * autoBilling: true
51
+ * })
52
+ */
53
+ settingsUpdate(request: NordletApi.SettingsUpdateAgreementsRequest, requestOptions?: AgreementsClient.RequestOptions): core.HttpResponsePromise<NordletApi.SettingsUpdateAgreementsResponse>;
54
+ private __settingsUpdate;
13
55
  /**
14
56
  * @param {NordletApi.TypesCreateAgreementsRequest} request
15
57
  * @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -47,6 +47,164 @@ class AgreementsClient {
47
47
  constructor(options) {
48
48
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
49
49
  }
50
+ /**
51
+ * @param {NordletApi.SettingsGetAgreementsRequest} request
52
+ * @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
53
+ *
54
+ * @throws {@link NordletApi.BadRequestError}
55
+ * @throws {@link NordletApi.UnauthorizedError}
56
+ * @throws {@link NordletApi.PaymentRequiredError}
57
+ * @throws {@link NordletApi.ForbiddenError}
58
+ * @throws {@link NordletApi.NotFoundError}
59
+ * @throws {@link NordletApi.ConflictError}
60
+ * @throws {@link NordletApi.ContentTooLargeError}
61
+ * @throws {@link NordletApi.UnprocessableEntityError}
62
+ * @throws {@link NordletApi.TooManyRequestsError}
63
+ * @throws {@link NordletApi.InternalServerError}
64
+ *
65
+ * @example
66
+ * await client.agreements.settingsGet()
67
+ */
68
+ settingsGet(request = {}, requestOptions) {
69
+ return core.HttpResponsePromise.fromPromise(this.__settingsGet(request, requestOptions));
70
+ }
71
+ async __settingsGet(request = {}, requestOptions) {
72
+ const _authRequest = await this._options.authProvider.getAuthRequest();
73
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
74
+ const _response = await core.fetcher({
75
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
76
+ (await core.Supplier.get(this._options.environment)) ??
77
+ environments.NordletApiEnvironment.Production, "v1/agreements/settings/get"),
78
+ method: "POST",
79
+ headers: _headers,
80
+ contentType: "application/json",
81
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
82
+ requestType: "json",
83
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
84
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
85
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
86
+ abortSignal: requestOptions?.abortSignal,
87
+ fetchFn: this._options?.fetch,
88
+ logging: this._options.logging,
89
+ });
90
+ if (_response.ok) {
91
+ return {
92
+ data: _response.body,
93
+ rawResponse: _response.rawResponse,
94
+ };
95
+ }
96
+ if (_response.error.reason === "status-code") {
97
+ switch (_response.error.statusCode) {
98
+ case 400:
99
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
100
+ case 401:
101
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
102
+ case 402:
103
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
104
+ case 403:
105
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
106
+ case 404:
107
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
108
+ case 409:
109
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
110
+ case 413:
111
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
112
+ case 422:
113
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
114
+ case 429:
115
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
116
+ case 500:
117
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
118
+ default:
119
+ throw new errors.NordletApiError({
120
+ statusCode: _response.error.statusCode,
121
+ body: _response.error.body,
122
+ rawResponse: _response.rawResponse,
123
+ });
124
+ }
125
+ }
126
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/agreements/settings/get");
127
+ }
128
+ /**
129
+ * @param {NordletApi.SettingsUpdateAgreementsRequest} request
130
+ * @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
131
+ *
132
+ * @throws {@link NordletApi.BadRequestError}
133
+ * @throws {@link NordletApi.UnauthorizedError}
134
+ * @throws {@link NordletApi.PaymentRequiredError}
135
+ * @throws {@link NordletApi.ForbiddenError}
136
+ * @throws {@link NordletApi.NotFoundError}
137
+ * @throws {@link NordletApi.ConflictError}
138
+ * @throws {@link NordletApi.ContentTooLargeError}
139
+ * @throws {@link NordletApi.UnprocessableEntityError}
140
+ * @throws {@link NordletApi.TooManyRequestsError}
141
+ * @throws {@link NordletApi.InternalServerError}
142
+ *
143
+ * @example
144
+ * await client.agreements.settingsUpdate({
145
+ * autoBilling: true
146
+ * })
147
+ */
148
+ settingsUpdate(request, requestOptions) {
149
+ return core.HttpResponsePromise.fromPromise(this.__settingsUpdate(request, requestOptions));
150
+ }
151
+ async __settingsUpdate(request, requestOptions) {
152
+ const _authRequest = await this._options.authProvider.getAuthRequest();
153
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
154
+ const _response = await core.fetcher({
155
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
156
+ (await core.Supplier.get(this._options.environment)) ??
157
+ environments.NordletApiEnvironment.Production, "v1/agreements/settings/update"),
158
+ method: "POST",
159
+ headers: _headers,
160
+ contentType: "application/json",
161
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
162
+ requestType: "json",
163
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
164
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
165
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
166
+ abortSignal: requestOptions?.abortSignal,
167
+ fetchFn: this._options?.fetch,
168
+ logging: this._options.logging,
169
+ });
170
+ if (_response.ok) {
171
+ return {
172
+ data: _response.body,
173
+ rawResponse: _response.rawResponse,
174
+ };
175
+ }
176
+ if (_response.error.reason === "status-code") {
177
+ switch (_response.error.statusCode) {
178
+ case 400:
179
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
180
+ case 401:
181
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
182
+ case 402:
183
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
184
+ case 403:
185
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
186
+ case 404:
187
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
188
+ case 409:
189
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
190
+ case 413:
191
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
192
+ case 422:
193
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
194
+ case 429:
195
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
196
+ case 500:
197
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
198
+ default:
199
+ throw new errors.NordletApiError({
200
+ statusCode: _response.error.statusCode,
201
+ body: _response.error.body,
202
+ rawResponse: _response.rawResponse,
203
+ });
204
+ }
205
+ }
206
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/agreements/settings/update");
207
+ }
50
208
  /**
51
209
  * @param {NordletApi.TypesCreateAgreementsRequest} request
52
210
  * @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export type SettingsGetAgreementsRequest = {};
@@ -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 });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * autoBilling: true
5
+ * }
6
+ */
7
+ export interface SettingsUpdateAgreementsRequest {
8
+ autoBilling: boolean;
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 });
@@ -8,5 +8,7 @@ export { AgreementsUpdateAgreementsRequest } from "./AgreementsUpdateAgreementsR
8
8
  export type { InsurancePoliciesCreateAgreementsRequest } from "./InsurancePoliciesCreateAgreementsRequest.js";
9
9
  export type { InsurancePoliciesDeleteAgreementsRequest } from "./InsurancePoliciesDeleteAgreementsRequest.js";
10
10
  export { InsurancePoliciesListAgreementsRequest } from "./InsurancePoliciesListAgreementsRequest.js";
11
+ export type { SettingsGetAgreementsRequest } from "./SettingsGetAgreementsRequest.js";
12
+ export type { SettingsUpdateAgreementsRequest } from "./SettingsUpdateAgreementsRequest.js";
11
13
  export type { TypesCreateAgreementsRequest } from "./TypesCreateAgreementsRequest.js";
12
14
  export { TypesListAgreementsRequest } from "./TypesListAgreementsRequest.js";
@@ -4,6 +4,8 @@ export interface AgreementsListAgreementsResponse {
4
4
  pageSize: number;
5
5
  total: number;
6
6
  totals?: Record<string, string> | undefined;
7
+ /** The requested totals split by currency code, present when the listed records carry a currency */
8
+ totalsByCurrency?: Record<string, Record<string, string>> | undefined;
7
9
  }
8
10
  export declare namespace AgreementsListAgreementsResponse {
9
11
  type Rows = Rows.Item[];
@@ -4,6 +4,8 @@ export interface InsurancePoliciesListAgreementsResponse {
4
4
  pageSize: number;
5
5
  total: number;
6
6
  totals?: Record<string, string> | undefined;
7
+ /** The requested totals split by currency code, present when the listed records carry a currency */
8
+ totalsByCurrency?: Record<string, Record<string, string>> | undefined;
7
9
  }
8
10
  export declare namespace InsurancePoliciesListAgreementsResponse {
9
11
  type Rows = Rows.Item[];
@@ -0,0 +1,3 @@
1
+ export interface SettingsGetAgreementsResponse {
2
+ autoBilling: boolean;
3
+ }
@@ -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 });
@@ -0,0 +1,3 @@
1
+ export interface SettingsUpdateAgreementsResponse {
2
+ autoBilling: boolean;
3
+ }
@@ -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 });
@@ -4,6 +4,8 @@ export interface TypesListAgreementsResponse {
4
4
  pageSize: number;
5
5
  total: number;
6
6
  totals?: Record<string, string> | undefined;
7
+ /** The requested totals split by currency code, present when the listed records carry a currency */
8
+ totalsByCurrency?: Record<string, Record<string, string>> | undefined;
7
9
  }
8
10
  export declare namespace TypesListAgreementsResponse {
9
11
  type Rows = Rows.Item[];
@@ -8,5 +8,7 @@ export * from "./AgreementsUpdateAgreementsResponse.js";
8
8
  export * from "./InsurancePoliciesCreateAgreementsResponse.js";
9
9
  export * from "./InsurancePoliciesDeleteAgreementsResponse.js";
10
10
  export * from "./InsurancePoliciesListAgreementsResponse.js";
11
+ export * from "./SettingsGetAgreementsResponse.js";
12
+ export * from "./SettingsUpdateAgreementsResponse.js";
11
13
  export * from "./TypesCreateAgreementsResponse.js";
12
14
  export * from "./TypesListAgreementsResponse.js";
@@ -24,5 +24,7 @@ __exportStar(require("./AgreementsUpdateAgreementsResponse.js"), exports);
24
24
  __exportStar(require("./InsurancePoliciesCreateAgreementsResponse.js"), exports);
25
25
  __exportStar(require("./InsurancePoliciesDeleteAgreementsResponse.js"), exports);
26
26
  __exportStar(require("./InsurancePoliciesListAgreementsResponse.js"), exports);
27
+ __exportStar(require("./SettingsGetAgreementsResponse.js"), exports);
28
+ __exportStar(require("./SettingsUpdateAgreementsResponse.js"), exports);
27
29
  __exportStar(require("./TypesCreateAgreementsResponse.js"), exports);
28
30
  __exportStar(require("./TypesListAgreementsResponse.js"), exports);
@@ -10,6 +10,48 @@ export declare namespace AssetsClient {
10
10
  export declare class AssetsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<AssetsClient.Options>;
12
12
  constructor(options: AssetsClient.Options);
13
+ /**
14
+ * @param {NordletApi.SettingsGetAssetsRequest} request
15
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
16
+ *
17
+ * @throws {@link NordletApi.BadRequestError}
18
+ * @throws {@link NordletApi.UnauthorizedError}
19
+ * @throws {@link NordletApi.PaymentRequiredError}
20
+ * @throws {@link NordletApi.ForbiddenError}
21
+ * @throws {@link NordletApi.NotFoundError}
22
+ * @throws {@link NordletApi.ConflictError}
23
+ * @throws {@link NordletApi.ContentTooLargeError}
24
+ * @throws {@link NordletApi.UnprocessableEntityError}
25
+ * @throws {@link NordletApi.TooManyRequestsError}
26
+ * @throws {@link NordletApi.InternalServerError}
27
+ *
28
+ * @example
29
+ * await client.assets.settingsGet()
30
+ */
31
+ settingsGet(request?: NordletApi.SettingsGetAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NordletApi.SettingsGetAssetsResponse>;
32
+ private __settingsGet;
33
+ /**
34
+ * @param {NordletApi.SettingsUpdateAssetsRequest} request
35
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
36
+ *
37
+ * @throws {@link NordletApi.BadRequestError}
38
+ * @throws {@link NordletApi.UnauthorizedError}
39
+ * @throws {@link NordletApi.PaymentRequiredError}
40
+ * @throws {@link NordletApi.ForbiddenError}
41
+ * @throws {@link NordletApi.NotFoundError}
42
+ * @throws {@link NordletApi.ConflictError}
43
+ * @throws {@link NordletApi.ContentTooLargeError}
44
+ * @throws {@link NordletApi.UnprocessableEntityError}
45
+ * @throws {@link NordletApi.TooManyRequestsError}
46
+ * @throws {@link NordletApi.InternalServerError}
47
+ *
48
+ * @example
49
+ * await client.assets.settingsUpdate({
50
+ * autoDepreciation: true
51
+ * })
52
+ */
53
+ settingsUpdate(request: NordletApi.SettingsUpdateAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NordletApi.SettingsUpdateAssetsResponse>;
54
+ private __settingsUpdate;
13
55
  /**
14
56
  * @param {NordletApi.GroupsCreateAssetsRequest} request
15
57
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -47,6 +47,161 @@ class AssetsClient {
47
47
  constructor(options) {
48
48
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
49
49
  }
50
+ /**
51
+ * @param {NordletApi.SettingsGetAssetsRequest} request
52
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
53
+ *
54
+ * @throws {@link NordletApi.BadRequestError}
55
+ * @throws {@link NordletApi.UnauthorizedError}
56
+ * @throws {@link NordletApi.PaymentRequiredError}
57
+ * @throws {@link NordletApi.ForbiddenError}
58
+ * @throws {@link NordletApi.NotFoundError}
59
+ * @throws {@link NordletApi.ConflictError}
60
+ * @throws {@link NordletApi.ContentTooLargeError}
61
+ * @throws {@link NordletApi.UnprocessableEntityError}
62
+ * @throws {@link NordletApi.TooManyRequestsError}
63
+ * @throws {@link NordletApi.InternalServerError}
64
+ *
65
+ * @example
66
+ * await client.assets.settingsGet()
67
+ */
68
+ settingsGet(request = {}, requestOptions) {
69
+ return core.HttpResponsePromise.fromPromise(this.__settingsGet(request, requestOptions));
70
+ }
71
+ async __settingsGet(request = {}, requestOptions) {
72
+ const _authRequest = await this._options.authProvider.getAuthRequest();
73
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
74
+ const _response = await core.fetcher({
75
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
76
+ (await core.Supplier.get(this._options.environment)) ??
77
+ environments.NordletApiEnvironment.Production, "v1/assets/settings/get"),
78
+ method: "POST",
79
+ headers: _headers,
80
+ contentType: "application/json",
81
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
82
+ requestType: "json",
83
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
84
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
85
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
86
+ abortSignal: requestOptions?.abortSignal,
87
+ fetchFn: this._options?.fetch,
88
+ logging: this._options.logging,
89
+ });
90
+ if (_response.ok) {
91
+ return { data: _response.body, rawResponse: _response.rawResponse };
92
+ }
93
+ if (_response.error.reason === "status-code") {
94
+ switch (_response.error.statusCode) {
95
+ case 400:
96
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
97
+ case 401:
98
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
99
+ case 402:
100
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
101
+ case 403:
102
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
103
+ case 404:
104
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
105
+ case 409:
106
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
107
+ case 413:
108
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
109
+ case 422:
110
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
111
+ case 429:
112
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
113
+ case 500:
114
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
115
+ default:
116
+ throw new errors.NordletApiError({
117
+ statusCode: _response.error.statusCode,
118
+ body: _response.error.body,
119
+ rawResponse: _response.rawResponse,
120
+ });
121
+ }
122
+ }
123
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/assets/settings/get");
124
+ }
125
+ /**
126
+ * @param {NordletApi.SettingsUpdateAssetsRequest} request
127
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
128
+ *
129
+ * @throws {@link NordletApi.BadRequestError}
130
+ * @throws {@link NordletApi.UnauthorizedError}
131
+ * @throws {@link NordletApi.PaymentRequiredError}
132
+ * @throws {@link NordletApi.ForbiddenError}
133
+ * @throws {@link NordletApi.NotFoundError}
134
+ * @throws {@link NordletApi.ConflictError}
135
+ * @throws {@link NordletApi.ContentTooLargeError}
136
+ * @throws {@link NordletApi.UnprocessableEntityError}
137
+ * @throws {@link NordletApi.TooManyRequestsError}
138
+ * @throws {@link NordletApi.InternalServerError}
139
+ *
140
+ * @example
141
+ * await client.assets.settingsUpdate({
142
+ * autoDepreciation: true
143
+ * })
144
+ */
145
+ settingsUpdate(request, requestOptions) {
146
+ return core.HttpResponsePromise.fromPromise(this.__settingsUpdate(request, requestOptions));
147
+ }
148
+ async __settingsUpdate(request, requestOptions) {
149
+ const _authRequest = await this._options.authProvider.getAuthRequest();
150
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
151
+ const _response = await core.fetcher({
152
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
153
+ (await core.Supplier.get(this._options.environment)) ??
154
+ environments.NordletApiEnvironment.Production, "v1/assets/settings/update"),
155
+ method: "POST",
156
+ headers: _headers,
157
+ contentType: "application/json",
158
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
159
+ requestType: "json",
160
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
161
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
162
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
163
+ abortSignal: requestOptions?.abortSignal,
164
+ fetchFn: this._options?.fetch,
165
+ logging: this._options.logging,
166
+ });
167
+ if (_response.ok) {
168
+ return {
169
+ data: _response.body,
170
+ rawResponse: _response.rawResponse,
171
+ };
172
+ }
173
+ if (_response.error.reason === "status-code") {
174
+ switch (_response.error.statusCode) {
175
+ case 400:
176
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
177
+ case 401:
178
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
179
+ case 402:
180
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
181
+ case 403:
182
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
183
+ case 404:
184
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
185
+ case 409:
186
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
187
+ case 413:
188
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
189
+ case 422:
190
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
191
+ case 429:
192
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
193
+ case 500:
194
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
195
+ default:
196
+ throw new errors.NordletApiError({
197
+ statusCode: _response.error.statusCode,
198
+ body: _response.error.body,
199
+ rawResponse: _response.rawResponse,
200
+ });
201
+ }
202
+ }
203
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/assets/settings/update");
204
+ }
50
205
  /**
51
206
  * @param {NordletApi.GroupsCreateAssetsRequest} request
52
207
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export type SettingsGetAssetsRequest = {};
@@ -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 });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * autoDepreciation: true
5
+ * }
6
+ */
7
+ export interface SettingsUpdateAssetsRequest {
8
+ autoDepreciation: boolean;
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 });
@@ -9,3 +9,5 @@ export type { DepreciationPostAssetsRequest } from "./DepreciationPostAssetsRequ
9
9
  export type { DepreciationPreviewAssetsRequest } from "./DepreciationPreviewAssetsRequest.js";
10
10
  export type { GroupsCreateAssetsRequest } from "./GroupsCreateAssetsRequest.js";
11
11
  export { GroupsListAssetsRequest } from "./GroupsListAssetsRequest.js";
12
+ export type { SettingsGetAssetsRequest } from "./SettingsGetAssetsRequest.js";
13
+ export type { SettingsUpdateAssetsRequest } from "./SettingsUpdateAssetsRequest.js";
@@ -4,6 +4,8 @@ export interface AssetsListAssetsResponse {
4
4
  pageSize: number;
5
5
  total: number;
6
6
  totals?: Record<string, string> | undefined;
7
+ /** The requested totals split by currency code, present when the listed records carry a currency */
8
+ totalsByCurrency?: Record<string, Record<string, string>> | undefined;
7
9
  }
8
10
  export declare namespace AssetsListAssetsResponse {
9
11
  type Rows = Rows.Item[];
@@ -4,6 +4,8 @@ export interface GroupsListAssetsResponse {
4
4
  pageSize: number;
5
5
  total: number;
6
6
  totals?: Record<string, string> | undefined;
7
+ /** The requested totals split by currency code, present when the listed records carry a currency */
8
+ totalsByCurrency?: Record<string, Record<string, string>> | undefined;
7
9
  }
8
10
  export declare namespace GroupsListAssetsResponse {
9
11
  type Rows = Rows.Item[];
@@ -0,0 +1,3 @@
1
+ export interface SettingsGetAssetsResponse {
2
+ autoDepreciation: boolean;
3
+ }
@@ -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 });
@@ -0,0 +1,3 @@
1
+ export interface SettingsUpdateAssetsResponse {
2
+ autoDepreciation: boolean;
3
+ }
@@ -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 });
@@ -9,3 +9,5 @@ export * from "./DepreciationPostAssetsResponse.js";
9
9
  export * from "./DepreciationPreviewAssetsResponse.js";
10
10
  export * from "./GroupsCreateAssetsResponse.js";
11
11
  export * from "./GroupsListAssetsResponse.js";
12
+ export * from "./SettingsGetAssetsResponse.js";
13
+ export * from "./SettingsUpdateAssetsResponse.js";