nordlet 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (556) hide show
  1. package/dist/Client.d.ts +15 -0
  2. package/dist/Client.js +60 -40
  3. package/dist/api/resources/account/client/requests/PostV1AccountCompaniesCreateRequest.d.ts +1 -0
  4. package/dist/api/resources/account/client/requests/PostV1AccountCompaniesUpdateRequest.d.ts +1 -0
  5. package/dist/api/resources/account/types/PostV1AccountCompaniesProfileResponse.d.ts +1 -0
  6. package/dist/api/resources/account/types/PostV1AccountCompaniesUpdateResponse.d.ts +1 -0
  7. package/dist/api/resources/account/types/PostV1AccountMeResponse.d.ts +15 -0
  8. package/dist/api/resources/account/types/PostV1AccountMeResponse.js +8 -0
  9. package/dist/api/resources/bank/client/Client.d.ts +279 -0
  10. package/dist/api/resources/bank/client/Client.js +1080 -45
  11. package/dist/api/resources/bank/client/requests/PostV1BankDirectDebitsExportRequest.d.ts +12 -0
  12. package/dist/api/resources/bank/client/requests/PostV1BankDirectDebitsExportRequest.js +3 -0
  13. package/dist/api/resources/bank/client/requests/PostV1BankFeedsAccountsLinkRequest.d.ts +18 -0
  14. package/dist/api/resources/bank/client/requests/PostV1BankFeedsAccountsLinkRequest.js +3 -0
  15. package/dist/api/resources/bank/client/requests/PostV1BankFeedsBanksListRequest.d.ts +7 -0
  16. package/dist/api/resources/bank/client/requests/PostV1BankFeedsBanksListRequest.js +3 -0
  17. package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsCompleteRequest.d.ts +11 -0
  18. package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsCompleteRequest.js +3 -0
  19. package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsDeleteRequest.d.ts +9 -0
  20. package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsDeleteRequest.js +3 -0
  21. package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsGetRequest.d.ts +9 -0
  22. package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsGetRequest.js +3 -0
  23. package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsListRequest.d.ts +46 -0
  24. package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsListRequest.js +31 -0
  25. package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsStartRequest.d.ts +22 -0
  26. package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsStartRequest.js +11 -0
  27. package/dist/api/resources/bank/client/requests/PostV1BankFeedsSyncRequest.d.ts +12 -0
  28. package/dist/api/resources/bank/client/requests/PostV1BankFeedsSyncRequest.js +3 -0
  29. package/dist/api/resources/bank/client/requests/PostV1BankMandatesCancelRequest.d.ts +9 -0
  30. package/dist/api/resources/bank/client/requests/PostV1BankMandatesCancelRequest.js +3 -0
  31. package/dist/api/resources/bank/client/requests/PostV1BankMandatesCreateRequest.d.ts +31 -0
  32. package/dist/api/resources/bank/client/requests/PostV1BankMandatesCreateRequest.js +15 -0
  33. package/dist/api/resources/bank/client/requests/PostV1BankMandatesGetRequest.d.ts +9 -0
  34. package/dist/api/resources/bank/client/requests/PostV1BankMandatesGetRequest.js +3 -0
  35. package/dist/api/resources/bank/client/requests/PostV1BankMandatesListRequest.d.ts +46 -0
  36. package/dist/api/resources/bank/client/requests/PostV1BankMandatesListRequest.js +31 -0
  37. package/dist/api/resources/bank/client/requests/PostV1BankMandatesUpdateRequest.d.ts +12 -0
  38. package/dist/api/resources/bank/client/requests/PostV1BankMandatesUpdateRequest.js +3 -0
  39. package/dist/api/resources/bank/client/requests/index.d.ts +14 -0
  40. package/dist/api/resources/bank/client/requests/index.js +9 -1
  41. package/dist/api/resources/bank/types/PostV1BankDirectDebitsExportResponse.d.ts +7 -0
  42. package/dist/api/resources/bank/types/PostV1BankDirectDebitsExportResponse.js +3 -0
  43. package/dist/api/resources/bank/types/PostV1BankFeedsAccountsLinkResponse.d.ts +12 -0
  44. package/dist/api/resources/bank/types/PostV1BankFeedsAccountsLinkResponse.js +3 -0
  45. package/dist/api/resources/bank/types/PostV1BankFeedsBanksListResponse.d.ts +26 -0
  46. package/dist/api/resources/bank/types/PostV1BankFeedsBanksListResponse.js +20 -0
  47. package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsCompleteResponse.d.ts +45 -0
  48. package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsCompleteResponse.js +18 -0
  49. package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsDeleteResponse.d.ts +3 -0
  50. package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsDeleteResponse.js +3 -0
  51. package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsGetResponse.d.ts +45 -0
  52. package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsGetResponse.js +18 -0
  53. package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsListResponse.d.ts +40 -0
  54. package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsListResponse.js +24 -0
  55. package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsStartResponse.d.ts +6 -0
  56. package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsStartResponse.js +3 -0
  57. package/dist/api/resources/bank/types/PostV1BankFeedsSyncResponse.d.ts +16 -0
  58. package/dist/api/resources/bank/types/PostV1BankFeedsSyncResponse.js +3 -0
  59. package/dist/api/resources/bank/types/PostV1BankMandatesCancelResponse.d.ts +36 -0
  60. package/dist/api/resources/bank/types/PostV1BankMandatesCancelResponse.js +20 -0
  61. package/dist/api/resources/bank/types/PostV1BankMandatesCreateResponse.d.ts +36 -0
  62. package/dist/api/resources/bank/types/PostV1BankMandatesCreateResponse.js +20 -0
  63. package/dist/api/resources/bank/types/PostV1BankMandatesGetResponse.d.ts +36 -0
  64. package/dist/api/resources/bank/types/PostV1BankMandatesGetResponse.js +20 -0
  65. package/dist/api/resources/bank/types/PostV1BankMandatesListResponse.d.ts +47 -0
  66. package/dist/api/resources/bank/types/PostV1BankMandatesListResponse.js +26 -0
  67. package/dist/api/resources/bank/types/PostV1BankMandatesUpdateResponse.d.ts +36 -0
  68. package/dist/api/resources/bank/types/PostV1BankMandatesUpdateResponse.js +20 -0
  69. package/dist/api/resources/bank/types/index.d.ts +14 -0
  70. package/dist/api/resources/bank/types/index.js +14 -0
  71. package/dist/api/resources/billing/client/Client.d.ts +110 -0
  72. package/dist/api/resources/billing/client/Client.js +418 -0
  73. package/dist/api/resources/billing/client/index.d.ts +1 -0
  74. package/dist/api/resources/billing/client/index.js +17 -0
  75. package/dist/api/resources/billing/client/requests/PostV1BillingAccountGetRequest.d.ts +5 -0
  76. package/dist/api/resources/billing/client/requests/PostV1BillingAccountGetRequest.js +3 -0
  77. package/dist/api/resources/billing/client/requests/PostV1BillingAccountSetPlanRequest.d.ts +17 -0
  78. package/dist/api/resources/billing/client/requests/PostV1BillingAccountSetPlanRequest.js +12 -0
  79. package/dist/api/resources/billing/client/requests/PostV1BillingTopupCreateRequest.d.ts +18 -0
  80. package/dist/api/resources/billing/client/requests/PostV1BillingTopupCreateRequest.js +12 -0
  81. package/dist/api/resources/billing/client/requests/PostV1BillingTransactionsListRequest.d.ts +7 -0
  82. package/dist/api/resources/billing/client/requests/PostV1BillingTransactionsListRequest.js +3 -0
  83. package/dist/api/resources/billing/client/requests/PostV1BillingUsageListRequest.d.ts +11 -0
  84. package/dist/api/resources/billing/client/requests/PostV1BillingUsageListRequest.js +3 -0
  85. package/dist/api/resources/billing/client/requests/index.d.ts +5 -0
  86. package/dist/api/resources/billing/client/requests/index.js +7 -0
  87. package/dist/api/resources/billing/exports.d.ts +2 -0
  88. package/dist/api/resources/billing/exports.js +21 -0
  89. package/dist/api/resources/billing/index.d.ts +2 -0
  90. package/dist/api/resources/billing/index.js +18 -0
  91. package/dist/api/resources/billing/types/PostV1BillingAccountGetResponse.d.ts +50 -0
  92. package/dist/api/resources/billing/types/PostV1BillingAccountGetResponse.js +17 -0
  93. package/dist/api/resources/billing/types/PostV1BillingAccountSetPlanResponse.d.ts +50 -0
  94. package/dist/api/resources/billing/types/PostV1BillingAccountSetPlanResponse.js +17 -0
  95. package/dist/api/resources/billing/types/PostV1BillingTopupCreateResponse.d.ts +4 -0
  96. package/dist/api/resources/billing/types/PostV1BillingTopupCreateResponse.js +3 -0
  97. package/dist/api/resources/billing/types/PostV1BillingTransactionsListResponse.d.ts +28 -0
  98. package/dist/api/resources/billing/types/PostV1BillingTransactionsListResponse.js +20 -0
  99. package/dist/api/resources/billing/types/PostV1BillingUsageListResponse.d.ts +23 -0
  100. package/dist/api/resources/billing/types/PostV1BillingUsageListResponse.js +19 -0
  101. package/dist/api/resources/billing/types/index.d.ts +5 -0
  102. package/dist/api/resources/billing/types/index.js +21 -0
  103. package/dist/api/resources/capture/client/Client.d.ts +136 -0
  104. package/dist/api/resources/capture/client/Client.js +498 -0
  105. package/dist/api/resources/capture/client/index.d.ts +1 -0
  106. package/dist/api/resources/capture/client/index.js +17 -0
  107. package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsConfirmRequest.d.ts +47 -0
  108. package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsConfirmRequest.js +3 -0
  109. package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsDeleteRequest.d.ts +9 -0
  110. package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsDeleteRequest.js +3 -0
  111. package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsExtractRequest.d.ts +9 -0
  112. package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsExtractRequest.js +3 -0
  113. package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsGetRequest.d.ts +9 -0
  114. package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsGetRequest.js +3 -0
  115. package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsListRequest.d.ts +46 -0
  116. package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsListRequest.js +31 -0
  117. package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsUploadRequest.d.ts +14 -0
  118. package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsUploadRequest.js +3 -0
  119. package/dist/api/resources/capture/client/requests/index.d.ts +6 -0
  120. package/dist/api/resources/capture/client/requests/index.js +5 -0
  121. package/dist/api/resources/capture/exports.d.ts +2 -0
  122. package/dist/api/resources/capture/exports.js +21 -0
  123. package/dist/api/resources/capture/index.d.ts +2 -0
  124. package/dist/api/resources/capture/index.js +18 -0
  125. package/dist/api/resources/capture/types/PostV1CaptureDocumentsConfirmResponse.d.ts +128 -0
  126. package/dist/api/resources/capture/types/PostV1CaptureDocumentsConfirmResponse.js +32 -0
  127. package/dist/api/resources/capture/types/PostV1CaptureDocumentsDeleteResponse.d.ts +3 -0
  128. package/dist/api/resources/capture/types/PostV1CaptureDocumentsDeleteResponse.js +3 -0
  129. package/dist/api/resources/capture/types/PostV1CaptureDocumentsExtractResponse.d.ts +61 -0
  130. package/dist/api/resources/capture/types/PostV1CaptureDocumentsExtractResponse.js +13 -0
  131. package/dist/api/resources/capture/types/PostV1CaptureDocumentsGetResponse.d.ts +61 -0
  132. package/dist/api/resources/capture/types/PostV1CaptureDocumentsGetResponse.js +13 -0
  133. package/dist/api/resources/capture/types/PostV1CaptureDocumentsListResponse.d.ts +71 -0
  134. package/dist/api/resources/capture/types/PostV1CaptureDocumentsListResponse.js +19 -0
  135. package/dist/api/resources/capture/types/PostV1CaptureDocumentsUploadResponse.d.ts +61 -0
  136. package/dist/api/resources/capture/types/PostV1CaptureDocumentsUploadResponse.js +13 -0
  137. package/dist/api/resources/capture/types/index.d.ts +6 -0
  138. package/dist/api/resources/capture/types/index.js +22 -0
  139. package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsCreateRequest.d.ts +7 -0
  140. package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsCreateRequest.js +5 -0
  141. package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsUpdateRequest.d.ts +7 -0
  142. package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsUpdateRequest.js +5 -0
  143. package/dist/api/resources/catalog/types/PostV1CatalogItemsCreateResponse.d.ts +7 -0
  144. package/dist/api/resources/catalog/types/PostV1CatalogItemsCreateResponse.js +5 -0
  145. package/dist/api/resources/catalog/types/PostV1CatalogItemsGetResponse.d.ts +7 -0
  146. package/dist/api/resources/catalog/types/PostV1CatalogItemsGetResponse.js +5 -0
  147. package/dist/api/resources/catalog/types/PostV1CatalogItemsListResponse.d.ts +7 -0
  148. package/dist/api/resources/catalog/types/PostV1CatalogItemsListResponse.js +5 -0
  149. package/dist/api/resources/catalog/types/PostV1CatalogItemsUpdateResponse.d.ts +7 -0
  150. package/dist/api/resources/catalog/types/PostV1CatalogItemsUpdateResponse.js +5 -0
  151. package/dist/api/resources/consolidation/client/Client.d.ts +111 -0
  152. package/dist/api/resources/consolidation/client/Client.js +381 -0
  153. package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyCandidatesRequest.d.ts +9 -0
  154. package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyCandidatesRequest.js +3 -0
  155. package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksListRequest.d.ts +9 -0
  156. package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksListRequest.js +3 -0
  157. package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksRemoveRequest.d.ts +11 -0
  158. package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksRemoveRequest.js +3 -0
  159. package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksSetRequest.d.ts +13 -0
  160. package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksSetRequest.js +3 -0
  161. package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyReportRequest.d.ts +13 -0
  162. package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyReportRequest.js +3 -0
  163. package/dist/api/resources/consolidation/client/requests/index.d.ts +5 -0
  164. package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyCandidatesResponse.d.ts +26 -0
  165. package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyCandidatesResponse.js +17 -0
  166. package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksListResponse.d.ts +18 -0
  167. package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksListResponse.js +3 -0
  168. package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksRemoveResponse.d.ts +3 -0
  169. package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksRemoveResponse.js +3 -0
  170. package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksSetResponse.d.ts +7 -0
  171. package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksSetResponse.js +3 -0
  172. package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyReportResponse.d.ts +104 -0
  173. package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyReportResponse.js +55 -0
  174. package/dist/api/resources/consolidation/types/PostV1ConsolidationReportResponse.d.ts +63 -0
  175. package/dist/api/resources/consolidation/types/index.d.ts +5 -0
  176. package/dist/api/resources/consolidation/types/index.js +5 -0
  177. package/dist/api/resources/declarations/client/Client.d.ts +25 -0
  178. package/dist/api/resources/declarations/client/Client.js +79 -0
  179. package/dist/api/resources/declarations/client/requests/PostV1DeclarationsPlJpkV7MGenerateRequest.d.ts +16 -0
  180. package/dist/api/resources/declarations/client/requests/PostV1DeclarationsPlJpkV7MGenerateRequest.js +3 -0
  181. package/dist/api/resources/declarations/client/requests/index.d.ts +1 -0
  182. package/dist/api/resources/declarations/types/PostV1DeclarationsPlJpkV7MGenerateResponse.d.ts +24 -0
  183. package/dist/api/resources/declarations/types/PostV1DeclarationsPlJpkV7MGenerateResponse.js +3 -0
  184. package/dist/api/resources/declarations/types/index.d.ts +1 -0
  185. package/dist/api/resources/declarations/types/index.js +1 -0
  186. package/dist/api/resources/fleet/client/Client.d.ts +175 -0
  187. package/dist/api/resources/fleet/client/Client.js +645 -0
  188. package/dist/api/resources/fleet/client/index.d.ts +1 -0
  189. package/dist/api/resources/fleet/client/index.js +17 -0
  190. package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsCreateRequest.d.ts +17 -0
  191. package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsCreateRequest.js +3 -0
  192. package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsEndRequest.d.ts +11 -0
  193. package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsEndRequest.js +3 -0
  194. package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsListRequest.d.ts +46 -0
  195. package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsListRequest.js +31 -0
  196. package/dist/api/resources/fleet/client/requests/PostV1FleetNaturaPreviewRequest.d.ts +11 -0
  197. package/dist/api/resources/fleet/client/requests/PostV1FleetNaturaPreviewRequest.js +3 -0
  198. package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesCreateRequest.d.ts +33 -0
  199. package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesCreateRequest.js +15 -0
  200. package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesGetRequest.d.ts +9 -0
  201. package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesGetRequest.js +3 -0
  202. package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesListRequest.d.ts +46 -0
  203. package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesListRequest.js +31 -0
  204. package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesUpdateRequest.d.ts +39 -0
  205. package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesUpdateRequest.js +20 -0
  206. package/dist/api/resources/fleet/client/requests/index.d.ts +8 -0
  207. package/dist/api/resources/fleet/client/requests/index.js +11 -0
  208. package/dist/api/resources/fleet/exports.d.ts +2 -0
  209. package/dist/api/resources/fleet/exports.js +21 -0
  210. package/dist/api/resources/fleet/index.d.ts +2 -0
  211. package/dist/api/resources/fleet/index.js +18 -0
  212. package/dist/api/resources/fleet/types/PostV1FleetAssignmentsCreateResponse.d.ts +13 -0
  213. package/dist/api/resources/fleet/types/PostV1FleetAssignmentsCreateResponse.js +3 -0
  214. package/dist/api/resources/fleet/types/PostV1FleetAssignmentsEndResponse.d.ts +13 -0
  215. package/dist/api/resources/fleet/types/PostV1FleetAssignmentsEndResponse.js +3 -0
  216. package/dist/api/resources/fleet/types/PostV1FleetAssignmentsListResponse.d.ts +24 -0
  217. package/dist/api/resources/fleet/types/PostV1FleetAssignmentsListResponse.js +3 -0
  218. package/dist/api/resources/fleet/types/PostV1FleetNaturaPreviewResponse.d.ts +21 -0
  219. package/dist/api/resources/fleet/types/PostV1FleetNaturaPreviewResponse.js +3 -0
  220. package/dist/api/resources/fleet/types/PostV1FleetVehiclesCreateResponse.d.ts +34 -0
  221. package/dist/api/resources/fleet/types/PostV1FleetVehiclesCreateResponse.js +12 -0
  222. package/dist/api/resources/fleet/types/PostV1FleetVehiclesGetResponse.d.ts +34 -0
  223. package/dist/api/resources/fleet/types/PostV1FleetVehiclesGetResponse.js +12 -0
  224. package/dist/api/resources/fleet/types/PostV1FleetVehiclesListResponse.d.ts +45 -0
  225. package/dist/api/resources/fleet/types/PostV1FleetVehiclesListResponse.js +18 -0
  226. package/dist/api/resources/fleet/types/PostV1FleetVehiclesUpdateResponse.d.ts +34 -0
  227. package/dist/api/resources/fleet/types/PostV1FleetVehiclesUpdateResponse.js +12 -0
  228. package/dist/api/resources/fleet/types/index.d.ts +8 -0
  229. package/dist/api/resources/fleet/types/index.js +24 -0
  230. package/dist/api/resources/index.d.ts +15 -0
  231. package/dist/api/resources/index.js +16 -1
  232. package/dist/api/resources/inventory/client/Client.d.ts +214 -0
  233. package/dist/api/resources/inventory/client/Client.js +808 -0
  234. package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsCreateRequest.d.ts +23 -0
  235. package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsCreateRequest.js +11 -0
  236. package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsGetRequest.d.ts +9 -0
  237. package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsGetRequest.js +3 -0
  238. package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsListRequest.d.ts +46 -0
  239. package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsListRequest.js +31 -0
  240. package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsGetRequest.d.ts +9 -0
  241. package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsGetRequest.js +3 -0
  242. package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsListRequest.d.ts +46 -0
  243. package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsListRequest.js +31 -0
  244. package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsUpdateRequest.d.ts +11 -0
  245. package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsUpdateRequest.js +3 -0
  246. package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesCheckRequest.d.ts +5 -0
  247. package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesCheckRequest.js +3 -0
  248. package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesCreateRequest.d.ts +15 -0
  249. package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesCreateRequest.js +3 -0
  250. package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesDeleteRequest.d.ts +9 -0
  251. package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesDeleteRequest.js +3 -0
  252. package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesListRequest.d.ts +46 -0
  253. package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesListRequest.js +31 -0
  254. package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesUpdateRequest.d.ts +13 -0
  255. package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesUpdateRequest.js +3 -0
  256. package/dist/api/resources/inventory/client/requests/PostV1InventoryStockReceiveRequest.d.ts +2 -0
  257. package/dist/api/resources/inventory/client/requests/PostV1InventoryStockTakeRequest.d.ts +2 -0
  258. package/dist/api/resources/inventory/client/requests/PostV1InventoryStockTransferRequest.d.ts +1 -0
  259. package/dist/api/resources/inventory/client/requests/PostV1InventoryStockWriteOffRequest.d.ts +1 -0
  260. package/dist/api/resources/inventory/client/requests/index.d.ts +11 -0
  261. package/dist/api/resources/inventory/client/requests/index.js +9 -1
  262. package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsCreateResponse.d.ts +26 -0
  263. package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsCreateResponse.js +11 -0
  264. package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsGetResponse.d.ts +26 -0
  265. package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsGetResponse.js +11 -0
  266. package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsListResponse.d.ts +28 -0
  267. package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsListResponse.js +17 -0
  268. package/dist/api/resources/inventory/types/PostV1InventoryLotsGetResponse.d.ts +38 -0
  269. package/dist/api/resources/inventory/types/PostV1InventoryLotsGetResponse.js +17 -0
  270. package/dist/api/resources/inventory/types/PostV1InventoryLotsListResponse.d.ts +20 -0
  271. package/dist/api/resources/inventory/types/PostV1InventoryLotsListResponse.js +3 -0
  272. package/dist/api/resources/inventory/types/PostV1InventoryLotsUpdateResponse.d.ts +9 -0
  273. package/dist/api/resources/inventory/types/PostV1InventoryLotsUpdateResponse.js +3 -0
  274. package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesCheckResponse.d.ts +18 -0
  275. package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesCheckResponse.js +3 -0
  276. package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesCreateResponse.d.ts +11 -0
  277. package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesCreateResponse.js +3 -0
  278. package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesDeleteResponse.d.ts +3 -0
  279. package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesDeleteResponse.js +3 -0
  280. package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesListResponse.d.ts +22 -0
  281. package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesListResponse.js +3 -0
  282. package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesUpdateResponse.d.ts +11 -0
  283. package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesUpdateResponse.js +3 -0
  284. package/dist/api/resources/inventory/types/PostV1InventoryStockMovementsListResponse.d.ts +1 -0
  285. package/dist/api/resources/inventory/types/index.d.ts +11 -0
  286. package/dist/api/resources/inventory/types/index.js +11 -0
  287. package/dist/api/resources/ledger/client/requests/PostV1LedgerJournalTransactionsCreateRequest.d.ts +1 -0
  288. package/dist/api/resources/ledger/client/requests/PostV1LedgerPostingRulesUpdateRequest.d.ts +2 -0
  289. package/dist/api/resources/ledger/client/requests/PostV1LedgerPostingRulesUpdateRequest.js +2 -0
  290. package/dist/api/resources/ledger/types/PostV1LedgerJournalTransactionsGetResponse.d.ts +1 -0
  291. package/dist/api/resources/migration/client/Client.d.ts +57 -0
  292. package/dist/api/resources/migration/client/Client.js +203 -0
  293. package/dist/api/resources/migration/client/index.d.ts +1 -0
  294. package/dist/api/resources/migration/client/index.js +17 -0
  295. package/dist/api/resources/migration/client/requests/PostV1MigrationBooksImportRequest.d.ts +196 -0
  296. package/dist/api/resources/migration/client/requests/PostV1MigrationBooksImportRequest.js +40 -0
  297. package/dist/api/resources/migration/client/requests/PostV1MigrationBooksValidateRequest.d.ts +196 -0
  298. package/dist/api/resources/migration/client/requests/PostV1MigrationBooksValidateRequest.js +40 -0
  299. package/dist/api/resources/migration/client/requests/index.d.ts +2 -0
  300. package/dist/api/resources/migration/client/requests/index.js +7 -0
  301. package/dist/api/resources/migration/exports.d.ts +2 -0
  302. package/dist/api/resources/migration/exports.js +21 -0
  303. package/dist/api/resources/migration/index.d.ts +2 -0
  304. package/dist/api/resources/migration/index.js +18 -0
  305. package/dist/api/resources/migration/types/PostV1MigrationBooksImportResponse.d.ts +71 -0
  306. package/dist/api/resources/migration/types/PostV1MigrationBooksImportResponse.js +3 -0
  307. package/dist/api/resources/migration/types/PostV1MigrationBooksValidateResponse.d.ts +71 -0
  308. package/dist/api/resources/migration/types/PostV1MigrationBooksValidateResponse.js +3 -0
  309. package/dist/api/resources/migration/types/index.d.ts +2 -0
  310. package/dist/api/resources/migration/types/index.js +18 -0
  311. package/dist/api/resources/partners/client/Client.d.ts +39 -0
  312. package/dist/api/resources/partners/client/Client.js +147 -0
  313. package/dist/api/resources/partners/client/requests/PostV1PartnersVatReviewsListRequest.d.ts +46 -0
  314. package/dist/api/resources/partners/client/requests/PostV1PartnersVatReviewsListRequest.js +31 -0
  315. package/dist/api/resources/partners/client/requests/PostV1PartnersVatReviewsResolveRequest.d.ts +20 -0
  316. package/dist/api/resources/partners/client/requests/PostV1PartnersVatReviewsResolveRequest.js +12 -0
  317. package/dist/api/resources/partners/client/requests/index.d.ts +2 -0
  318. package/dist/api/resources/partners/client/requests/index.js +5 -1
  319. package/dist/api/resources/partners/types/PostV1PartnersVatReviewsListResponse.d.ts +52 -0
  320. package/dist/api/resources/partners/types/PostV1PartnersVatReviewsListResponse.js +29 -0
  321. package/dist/api/resources/partners/types/PostV1PartnersVatReviewsResolveResponse.d.ts +41 -0
  322. package/dist/api/resources/partners/types/PostV1PartnersVatReviewsResolveResponse.js +23 -0
  323. package/dist/api/resources/partners/types/index.d.ts +2 -0
  324. package/dist/api/resources/partners/types/index.js +2 -0
  325. package/dist/api/resources/payroll/client/requests/PostV1PayrollRunsCreateRequest.d.ts +1 -0
  326. package/dist/api/resources/payroll/types/PostV1PayrollRunsCreateResponse.d.ts +1 -0
  327. package/dist/api/resources/payroll/types/PostV1PayrollRunsGetResponse.d.ts +1 -0
  328. package/dist/api/resources/production/client/Client.d.ts +285 -0
  329. package/dist/api/resources/production/client/Client.js +1077 -36
  330. package/dist/api/resources/production/client/requests/PostV1ProductionBomsCreateRequest.d.ts +2 -0
  331. package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCancelRequest.d.ts +9 -0
  332. package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCancelRequest.js +3 -0
  333. package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCompleteRequest.d.ts +14 -0
  334. package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCompleteRequest.js +3 -0
  335. package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCreateRequest.d.ts +22 -0
  336. package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCreateRequest.js +11 -0
  337. package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceListRequest.d.ts +46 -0
  338. package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceListRequest.js +31 -0
  339. package/dist/api/resources/production/client/requests/PostV1ProductionOrdersCompleteRequest.d.ts +1 -0
  340. package/dist/api/resources/production/client/requests/PostV1ProductionOrdersCreateRequest.d.ts +1 -0
  341. package/dist/api/resources/production/client/requests/PostV1ProductionOrdersRecordOperationRequest.d.ts +11 -0
  342. package/dist/api/resources/production/client/requests/PostV1ProductionOrdersRecordOperationRequest.js +3 -0
  343. package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksAddRequest.d.ts +12 -0
  344. package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksAddRequest.js +3 -0
  345. package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksListRequest.d.ts +46 -0
  346. package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksListRequest.js +31 -0
  347. package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksRecordRequest.d.ts +19 -0
  348. package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksRecordRequest.js +11 -0
  349. package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsCreateRequest.d.ts +32 -0
  350. package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsCreateRequest.js +3 -0
  351. package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsGetRequest.d.ts +9 -0
  352. package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsGetRequest.js +3 -0
  353. package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsListRequest.d.ts +46 -0
  354. package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsListRequest.js +31 -0
  355. package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersCreateRequest.d.ts +15 -0
  356. package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersCreateRequest.js +3 -0
  357. package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersListRequest.d.ts +46 -0
  358. package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersListRequest.js +31 -0
  359. package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersUpdateRequest.d.ts +16 -0
  360. package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersUpdateRequest.js +3 -0
  361. package/dist/api/resources/production/client/requests/index.d.ts +14 -0
  362. package/dist/api/resources/production/client/requests/index.js +13 -1
  363. package/dist/api/resources/production/types/PostV1ProductionBomsCreateResponse.d.ts +2 -0
  364. package/dist/api/resources/production/types/PostV1ProductionBomsGetResponse.d.ts +2 -0
  365. package/dist/api/resources/production/types/PostV1ProductionBomsListResponse.d.ts +1 -0
  366. package/dist/api/resources/production/types/PostV1ProductionMaintenanceCancelResponse.d.ts +26 -0
  367. package/dist/api/resources/production/types/PostV1ProductionMaintenanceCancelResponse.js +16 -0
  368. package/dist/api/resources/production/types/PostV1ProductionMaintenanceCompleteResponse.d.ts +26 -0
  369. package/dist/api/resources/production/types/PostV1ProductionMaintenanceCompleteResponse.js +16 -0
  370. package/dist/api/resources/production/types/PostV1ProductionMaintenanceCreateResponse.d.ts +26 -0
  371. package/dist/api/resources/production/types/PostV1ProductionMaintenanceCreateResponse.js +16 -0
  372. package/dist/api/resources/production/types/PostV1ProductionMaintenanceListResponse.d.ts +37 -0
  373. package/dist/api/resources/production/types/PostV1ProductionMaintenanceListResponse.js +22 -0
  374. package/dist/api/resources/production/types/PostV1ProductionOrdersCompleteResponse.d.ts +5 -0
  375. package/dist/api/resources/production/types/PostV1ProductionOrdersCreateResponse.d.ts +43 -0
  376. package/dist/api/resources/production/types/PostV1ProductionOrdersCreateResponse.js +11 -0
  377. package/dist/api/resources/production/types/PostV1ProductionOrdersGetResponse.d.ts +43 -0
  378. package/dist/api/resources/production/types/PostV1ProductionOrdersGetResponse.js +11 -0
  379. package/dist/api/resources/production/types/PostV1ProductionOrdersListResponse.d.ts +5 -0
  380. package/dist/api/resources/production/types/PostV1ProductionOrdersRecordOperationResponse.d.ts +11 -0
  381. package/dist/api/resources/production/types/PostV1ProductionOrdersRecordOperationResponse.js +3 -0
  382. package/dist/api/resources/production/types/PostV1ProductionQualityChecksAddResponse.d.ts +19 -0
  383. package/dist/api/resources/production/types/PostV1ProductionQualityChecksAddResponse.js +12 -0
  384. package/dist/api/resources/production/types/PostV1ProductionQualityChecksListResponse.d.ts +30 -0
  385. package/dist/api/resources/production/types/PostV1ProductionQualityChecksListResponse.js +18 -0
  386. package/dist/api/resources/production/types/PostV1ProductionQualityChecksRecordResponse.d.ts +19 -0
  387. package/dist/api/resources/production/types/PostV1ProductionQualityChecksRecordResponse.js +12 -0
  388. package/dist/api/resources/production/types/PostV1ProductionRoutingsCreateResponse.d.ts +24 -0
  389. package/dist/api/resources/production/types/PostV1ProductionRoutingsCreateResponse.js +3 -0
  390. package/dist/api/resources/production/types/PostV1ProductionRoutingsGetResponse.d.ts +24 -0
  391. package/dist/api/resources/production/types/PostV1ProductionRoutingsGetResponse.js +3 -0
  392. package/dist/api/resources/production/types/PostV1ProductionRoutingsListResponse.d.ts +19 -0
  393. package/dist/api/resources/production/types/PostV1ProductionRoutingsListResponse.js +3 -0
  394. package/dist/api/resources/production/types/PostV1ProductionWorkCentersCreateResponse.d.ts +12 -0
  395. package/dist/api/resources/production/types/PostV1ProductionWorkCentersCreateResponse.js +3 -0
  396. package/dist/api/resources/production/types/PostV1ProductionWorkCentersListResponse.d.ts +23 -0
  397. package/dist/api/resources/production/types/PostV1ProductionWorkCentersListResponse.js +3 -0
  398. package/dist/api/resources/production/types/PostV1ProductionWorkCentersUpdateResponse.d.ts +12 -0
  399. package/dist/api/resources/production/types/PostV1ProductionWorkCentersUpdateResponse.js +3 -0
  400. package/dist/api/resources/production/types/index.d.ts +14 -0
  401. package/dist/api/resources/production/types/index.js +14 -0
  402. package/dist/api/resources/projects/client/Client.d.ts +210 -0
  403. package/dist/api/resources/projects/client/Client.js +785 -0
  404. package/dist/api/resources/projects/client/index.d.ts +1 -0
  405. package/dist/api/resources/projects/client/index.js +17 -0
  406. package/dist/api/resources/projects/client/requests/PostV1ProjectsCreateRequest.d.ts +13 -0
  407. package/dist/api/resources/projects/client/requests/PostV1ProjectsCreateRequest.js +3 -0
  408. package/dist/api/resources/projects/client/requests/PostV1ProjectsGetRequest.d.ts +9 -0
  409. package/dist/api/resources/projects/client/requests/PostV1ProjectsGetRequest.js +3 -0
  410. package/dist/api/resources/projects/client/requests/PostV1ProjectsListRequest.d.ts +46 -0
  411. package/dist/api/resources/projects/client/requests/PostV1ProjectsListRequest.js +31 -0
  412. package/dist/api/resources/projects/client/requests/PostV1ProjectsReportRequest.d.ts +9 -0
  413. package/dist/api/resources/projects/client/requests/PostV1ProjectsReportRequest.js +3 -0
  414. package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesBillRequest.d.ts +27 -0
  415. package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesBillRequest.js +11 -0
  416. package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesCreateRequest.d.ts +17 -0
  417. package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesCreateRequest.js +3 -0
  418. package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesDeleteRequest.d.ts +9 -0
  419. package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesDeleteRequest.js +3 -0
  420. package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesListRequest.d.ts +46 -0
  421. package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesListRequest.js +31 -0
  422. package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesUpdateRequest.d.ts +14 -0
  423. package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesUpdateRequest.js +3 -0
  424. package/dist/api/resources/projects/client/requests/PostV1ProjectsUpdateRequest.d.ts +21 -0
  425. package/dist/api/resources/projects/client/requests/PostV1ProjectsUpdateRequest.js +12 -0
  426. package/dist/api/resources/projects/client/requests/index.d.ts +10 -0
  427. package/dist/api/resources/projects/client/requests/index.js +11 -0
  428. package/dist/api/resources/projects/exports.d.ts +2 -0
  429. package/dist/api/resources/projects/exports.js +21 -0
  430. package/dist/api/resources/projects/index.d.ts +2 -0
  431. package/dist/api/resources/projects/index.js +18 -0
  432. package/dist/api/resources/projects/types/PostV1ProjectsCreateResponse.d.ts +18 -0
  433. package/dist/api/resources/projects/types/PostV1ProjectsCreateResponse.js +12 -0
  434. package/dist/api/resources/projects/types/PostV1ProjectsGetResponse.d.ts +18 -0
  435. package/dist/api/resources/projects/types/PostV1ProjectsGetResponse.js +12 -0
  436. package/dist/api/resources/projects/types/PostV1ProjectsListResponse.d.ts +29 -0
  437. package/dist/api/resources/projects/types/PostV1ProjectsListResponse.js +18 -0
  438. package/dist/api/resources/projects/types/PostV1ProjectsReportResponse.d.ts +30 -0
  439. package/dist/api/resources/projects/types/PostV1ProjectsReportResponse.js +18 -0
  440. package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesBillResponse.d.ts +8 -0
  441. package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesBillResponse.js +3 -0
  442. package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesCreateResponse.d.ts +13 -0
  443. package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesCreateResponse.js +3 -0
  444. package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesDeleteResponse.d.ts +3 -0
  445. package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesDeleteResponse.js +3 -0
  446. package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesListResponse.d.ts +24 -0
  447. package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesListResponse.js +3 -0
  448. package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesUpdateResponse.d.ts +13 -0
  449. package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesUpdateResponse.js +3 -0
  450. package/dist/api/resources/projects/types/PostV1ProjectsUpdateResponse.d.ts +18 -0
  451. package/dist/api/resources/projects/types/PostV1ProjectsUpdateResponse.js +12 -0
  452. package/dist/api/resources/projects/types/index.d.ts +10 -0
  453. package/dist/api/resources/projects/types/index.js +26 -0
  454. package/dist/api/resources/purchases/client/Client.d.ts +283 -0
  455. package/dist/api/resources/purchases/client/Client.js +1039 -0
  456. package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesCreateRequest.d.ts +2 -0
  457. package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesMatchRequest.d.ts +10 -0
  458. package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesMatchRequest.js +3 -0
  459. package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesUpdateRequest.d.ts +2 -0
  460. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersApproveRequest.d.ts +10 -0
  461. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersApproveRequest.js +3 -0
  462. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCancelRequest.d.ts +10 -0
  463. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCancelRequest.js +3 -0
  464. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCloseRequest.d.ts +10 -0
  465. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCloseRequest.js +3 -0
  466. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCreateRequest.d.ts +39 -0
  467. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCreateRequest.js +3 -0
  468. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersDeleteRequest.d.ts +9 -0
  469. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersDeleteRequest.js +3 -0
  470. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersGetRequest.d.ts +9 -0
  471. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersGetRequest.js +3 -0
  472. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersListRequest.d.ts +46 -0
  473. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersListRequest.js +31 -0
  474. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersRejectRequest.d.ts +10 -0
  475. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersRejectRequest.js +3 -0
  476. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersSubmitRequest.d.ts +10 -0
  477. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersSubmitRequest.js +3 -0
  478. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersUpdateRequest.d.ts +37 -0
  479. package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersUpdateRequest.js +3 -0
  480. package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsCreateRequest.d.ts +29 -0
  481. package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsCreateRequest.js +3 -0
  482. package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsGetRequest.d.ts +9 -0
  483. package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsGetRequest.js +3 -0
  484. package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsListRequest.d.ts +46 -0
  485. package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsListRequest.js +31 -0
  486. package/dist/api/resources/purchases/client/requests/index.d.ts +14 -0
  487. package/dist/api/resources/purchases/client/requests/index.js +5 -1
  488. package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesCreateResponse.d.ts +2 -0
  489. package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesGetResponse.d.ts +2 -0
  490. package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesListResponse.d.ts +1 -0
  491. package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesMatchResponse.d.ts +38 -0
  492. package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesMatchResponse.js +25 -0
  493. package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesRegisterResponse.d.ts +2 -0
  494. package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesUpdateResponse.d.ts +2 -0
  495. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersApproveResponse.d.ts +54 -0
  496. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersApproveResponse.js +16 -0
  497. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCancelResponse.d.ts +54 -0
  498. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCancelResponse.js +16 -0
  499. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCloseResponse.d.ts +54 -0
  500. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCloseResponse.js +16 -0
  501. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCreateResponse.d.ts +54 -0
  502. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCreateResponse.js +16 -0
  503. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersDeleteResponse.d.ts +3 -0
  504. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersDeleteResponse.js +3 -0
  505. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersGetResponse.d.ts +54 -0
  506. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersGetResponse.js +16 -0
  507. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersListResponse.d.ts +41 -0
  508. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersListResponse.js +22 -0
  509. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersRejectResponse.d.ts +54 -0
  510. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersRejectResponse.js +16 -0
  511. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersSubmitResponse.d.ts +54 -0
  512. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersSubmitResponse.js +16 -0
  513. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersUpdateResponse.d.ts +54 -0
  514. package/dist/api/resources/purchases/types/PostV1PurchasesOrdersUpdateResponse.js +16 -0
  515. package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsCreateResponse.d.ts +23 -0
  516. package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsCreateResponse.js +3 -0
  517. package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsGetResponse.d.ts +23 -0
  518. package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsGetResponse.js +3 -0
  519. package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsListResponse.d.ts +20 -0
  520. package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsListResponse.js +3 -0
  521. package/dist/api/resources/purchases/types/index.d.ts +14 -0
  522. package/dist/api/resources/purchases/types/index.js +14 -0
  523. package/dist/api/resources/reference/client/Client.d.ts +40 -0
  524. package/dist/api/resources/reference/client/Client.js +148 -0
  525. package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesImportsListRequest.d.ts +7 -0
  526. package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesImportsListRequest.js +3 -0
  527. package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesSyncRequest.d.ts +5 -0
  528. package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesSyncRequest.js +3 -0
  529. package/dist/api/resources/reference/client/requests/index.d.ts +2 -0
  530. package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesImportsListResponse.d.ts +34 -0
  531. package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesImportsListResponse.js +23 -0
  532. package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesSyncResponse.d.ts +16 -0
  533. package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesSyncResponse.js +12 -0
  534. package/dist/api/resources/reference/types/index.d.ts +2 -0
  535. package/dist/api/resources/reference/types/index.js +2 -0
  536. package/dist/api/resources/sales/client/Client.d.ts +44 -0
  537. package/dist/api/resources/sales/client/Client.js +152 -0
  538. package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesCreateRequest.d.ts +1 -0
  539. package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesEinvoiceSendRequest.d.ts +9 -0
  540. package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesEinvoiceSendRequest.js +3 -0
  541. package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesEinvoiceXmlRequest.d.ts +9 -0
  542. package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesEinvoiceXmlRequest.js +3 -0
  543. package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesUpdateRequest.d.ts +1 -0
  544. package/dist/api/resources/sales/client/requests/index.d.ts +2 -0
  545. package/dist/api/resources/sales/types/PostV1SalesInvoicesApplyAdvanceResponse.d.ts +52 -0
  546. package/dist/api/resources/sales/types/PostV1SalesInvoicesCreateResponse.d.ts +52 -0
  547. package/dist/api/resources/sales/types/PostV1SalesInvoicesEinvoiceSendResponse.d.ts +8 -0
  548. package/dist/api/resources/sales/types/PostV1SalesInvoicesEinvoiceSendResponse.js +3 -0
  549. package/dist/api/resources/sales/types/PostV1SalesInvoicesEinvoiceXmlResponse.d.ts +8 -0
  550. package/dist/api/resources/sales/types/PostV1SalesInvoicesEinvoiceXmlResponse.js +3 -0
  551. package/dist/api/resources/sales/types/PostV1SalesInvoicesGetResponse.d.ts +52 -0
  552. package/dist/api/resources/sales/types/PostV1SalesInvoicesIssueResponse.d.ts +52 -0
  553. package/dist/api/resources/sales/types/PostV1SalesInvoicesUpdateResponse.d.ts +52 -0
  554. package/dist/api/resources/sales/types/index.d.ts +2 -0
  555. package/dist/api/resources/sales/types/index.js +2 -0
  556. package/package.json +1 -1
@@ -795,5 +795,813 @@ class InventoryClient {
795
795
  }
796
796
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/stock/movements/list");
797
797
  }
798
+ /**
799
+ * @param {NordletApi.PostV1InventoryLotsListRequest} request
800
+ * @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
801
+ *
802
+ * @throws {@link NordletApi.BadRequestError}
803
+ * @throws {@link NordletApi.UnauthorizedError}
804
+ * @throws {@link NordletApi.ForbiddenError}
805
+ * @throws {@link NordletApi.NotFoundError}
806
+ * @throws {@link NordletApi.ConflictError}
807
+ * @throws {@link NordletApi.UnprocessableEntityError}
808
+ * @throws {@link NordletApi.TooManyRequestsError}
809
+ * @throws {@link NordletApi.InternalServerError}
810
+ *
811
+ * @example
812
+ * await client.inventory.postV1InventoryLotsList()
813
+ */
814
+ postV1InventoryLotsList(request = {}, requestOptions) {
815
+ return core.HttpResponsePromise.fromPromise(this.__postV1InventoryLotsList(request, requestOptions));
816
+ }
817
+ async __postV1InventoryLotsList(request = {}, requestOptions) {
818
+ const _authRequest = await this._options.authProvider.getAuthRequest();
819
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
820
+ const _response = await core.fetcher({
821
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
822
+ (await core.Supplier.get(this._options.environment)) ??
823
+ environments.NordletApiEnvironment.Production, "v1/inventory/lots/list"),
824
+ method: "POST",
825
+ headers: _headers,
826
+ contentType: "application/json",
827
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
828
+ requestType: "json",
829
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
830
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
831
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
832
+ abortSignal: requestOptions?.abortSignal,
833
+ fetchFn: this._options?.fetch,
834
+ logging: this._options.logging,
835
+ });
836
+ if (_response.ok) {
837
+ return {
838
+ data: _response.body,
839
+ rawResponse: _response.rawResponse,
840
+ };
841
+ }
842
+ if (_response.error.reason === "status-code") {
843
+ switch (_response.error.statusCode) {
844
+ case 400:
845
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
846
+ case 401:
847
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
848
+ case 403:
849
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
850
+ case 404:
851
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
852
+ case 409:
853
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
854
+ case 422:
855
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
856
+ case 429:
857
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
858
+ case 500:
859
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
860
+ default:
861
+ throw new errors.NordletApiError({
862
+ statusCode: _response.error.statusCode,
863
+ body: _response.error.body,
864
+ rawResponse: _response.rawResponse,
865
+ });
866
+ }
867
+ }
868
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/lots/list");
869
+ }
870
+ /**
871
+ * @param {NordletApi.PostV1InventoryLotsGetRequest} request
872
+ * @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
873
+ *
874
+ * @throws {@link NordletApi.BadRequestError}
875
+ * @throws {@link NordletApi.UnauthorizedError}
876
+ * @throws {@link NordletApi.ForbiddenError}
877
+ * @throws {@link NordletApi.NotFoundError}
878
+ * @throws {@link NordletApi.ConflictError}
879
+ * @throws {@link NordletApi.UnprocessableEntityError}
880
+ * @throws {@link NordletApi.TooManyRequestsError}
881
+ * @throws {@link NordletApi.InternalServerError}
882
+ *
883
+ * @example
884
+ * await client.inventory.postV1InventoryLotsGet({
885
+ * id: "id"
886
+ * })
887
+ */
888
+ postV1InventoryLotsGet(request, requestOptions) {
889
+ return core.HttpResponsePromise.fromPromise(this.__postV1InventoryLotsGet(request, requestOptions));
890
+ }
891
+ async __postV1InventoryLotsGet(request, requestOptions) {
892
+ const _authRequest = await this._options.authProvider.getAuthRequest();
893
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
894
+ const _response = await core.fetcher({
895
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
896
+ (await core.Supplier.get(this._options.environment)) ??
897
+ environments.NordletApiEnvironment.Production, "v1/inventory/lots/get"),
898
+ method: "POST",
899
+ headers: _headers,
900
+ contentType: "application/json",
901
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
902
+ requestType: "json",
903
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
904
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
905
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
906
+ abortSignal: requestOptions?.abortSignal,
907
+ fetchFn: this._options?.fetch,
908
+ logging: this._options.logging,
909
+ });
910
+ if (_response.ok) {
911
+ return {
912
+ data: _response.body,
913
+ rawResponse: _response.rawResponse,
914
+ };
915
+ }
916
+ if (_response.error.reason === "status-code") {
917
+ switch (_response.error.statusCode) {
918
+ case 400:
919
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
920
+ case 401:
921
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
922
+ case 403:
923
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
924
+ case 404:
925
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
926
+ case 409:
927
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
928
+ case 422:
929
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
930
+ case 429:
931
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
932
+ case 500:
933
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
934
+ default:
935
+ throw new errors.NordletApiError({
936
+ statusCode: _response.error.statusCode,
937
+ body: _response.error.body,
938
+ rawResponse: _response.rawResponse,
939
+ });
940
+ }
941
+ }
942
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/lots/get");
943
+ }
944
+ /**
945
+ * @param {NordletApi.PostV1InventoryLotsUpdateRequest} request
946
+ * @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
947
+ *
948
+ * @throws {@link NordletApi.BadRequestError}
949
+ * @throws {@link NordletApi.UnauthorizedError}
950
+ * @throws {@link NordletApi.ForbiddenError}
951
+ * @throws {@link NordletApi.NotFoundError}
952
+ * @throws {@link NordletApi.ConflictError}
953
+ * @throws {@link NordletApi.UnprocessableEntityError}
954
+ * @throws {@link NordletApi.TooManyRequestsError}
955
+ * @throws {@link NordletApi.InternalServerError}
956
+ *
957
+ * @example
958
+ * await client.inventory.postV1InventoryLotsUpdate({
959
+ * id: "id"
960
+ * })
961
+ */
962
+ postV1InventoryLotsUpdate(request, requestOptions) {
963
+ return core.HttpResponsePromise.fromPromise(this.__postV1InventoryLotsUpdate(request, requestOptions));
964
+ }
965
+ async __postV1InventoryLotsUpdate(request, requestOptions) {
966
+ const _authRequest = await this._options.authProvider.getAuthRequest();
967
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
968
+ const _response = await core.fetcher({
969
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
970
+ (await core.Supplier.get(this._options.environment)) ??
971
+ environments.NordletApiEnvironment.Production, "v1/inventory/lots/update"),
972
+ method: "POST",
973
+ headers: _headers,
974
+ contentType: "application/json",
975
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
976
+ requestType: "json",
977
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
978
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
979
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
980
+ abortSignal: requestOptions?.abortSignal,
981
+ fetchFn: this._options?.fetch,
982
+ logging: this._options.logging,
983
+ });
984
+ if (_response.ok) {
985
+ return {
986
+ data: _response.body,
987
+ rawResponse: _response.rawResponse,
988
+ };
989
+ }
990
+ if (_response.error.reason === "status-code") {
991
+ switch (_response.error.statusCode) {
992
+ case 400:
993
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
994
+ case 401:
995
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
996
+ case 403:
997
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
998
+ case 404:
999
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1000
+ case 409:
1001
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1002
+ case 422:
1003
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1004
+ case 429:
1005
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1006
+ case 500:
1007
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1008
+ default:
1009
+ throw new errors.NordletApiError({
1010
+ statusCode: _response.error.statusCode,
1011
+ body: _response.error.body,
1012
+ rawResponse: _response.rawResponse,
1013
+ });
1014
+ }
1015
+ }
1016
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/lots/update");
1017
+ }
1018
+ /**
1019
+ * @param {NordletApi.PostV1InventoryLandedCostsCreateRequest} request
1020
+ * @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
1021
+ *
1022
+ * @throws {@link NordletApi.BadRequestError}
1023
+ * @throws {@link NordletApi.UnauthorizedError}
1024
+ * @throws {@link NordletApi.ForbiddenError}
1025
+ * @throws {@link NordletApi.NotFoundError}
1026
+ * @throws {@link NordletApi.ConflictError}
1027
+ * @throws {@link NordletApi.UnprocessableEntityError}
1028
+ * @throws {@link NordletApi.TooManyRequestsError}
1029
+ * @throws {@link NordletApi.InternalServerError}
1030
+ *
1031
+ * @example
1032
+ * await client.inventory.postV1InventoryLandedCostsCreate({
1033
+ * date: "date",
1034
+ * amount: "amount"
1035
+ * })
1036
+ */
1037
+ postV1InventoryLandedCostsCreate(request, requestOptions) {
1038
+ return core.HttpResponsePromise.fromPromise(this.__postV1InventoryLandedCostsCreate(request, requestOptions));
1039
+ }
1040
+ async __postV1InventoryLandedCostsCreate(request, requestOptions) {
1041
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1042
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1043
+ const _response = await core.fetcher({
1044
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1045
+ (await core.Supplier.get(this._options.environment)) ??
1046
+ environments.NordletApiEnvironment.Production, "v1/inventory/landed-costs/create"),
1047
+ method: "POST",
1048
+ headers: _headers,
1049
+ contentType: "application/json",
1050
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1051
+ requestType: "json",
1052
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1053
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1054
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1055
+ abortSignal: requestOptions?.abortSignal,
1056
+ fetchFn: this._options?.fetch,
1057
+ logging: this._options.logging,
1058
+ });
1059
+ if (_response.ok) {
1060
+ return {
1061
+ data: _response.body,
1062
+ rawResponse: _response.rawResponse,
1063
+ };
1064
+ }
1065
+ if (_response.error.reason === "status-code") {
1066
+ switch (_response.error.statusCode) {
1067
+ case 400:
1068
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1069
+ case 401:
1070
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1071
+ case 403:
1072
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1073
+ case 404:
1074
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1075
+ case 409:
1076
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1077
+ case 422:
1078
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1079
+ case 429:
1080
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1081
+ case 500:
1082
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1083
+ default:
1084
+ throw new errors.NordletApiError({
1085
+ statusCode: _response.error.statusCode,
1086
+ body: _response.error.body,
1087
+ rawResponse: _response.rawResponse,
1088
+ });
1089
+ }
1090
+ }
1091
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/landed-costs/create");
1092
+ }
1093
+ /**
1094
+ * @param {NordletApi.PostV1InventoryLandedCostsGetRequest} request
1095
+ * @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
1096
+ *
1097
+ * @throws {@link NordletApi.BadRequestError}
1098
+ * @throws {@link NordletApi.UnauthorizedError}
1099
+ * @throws {@link NordletApi.ForbiddenError}
1100
+ * @throws {@link NordletApi.NotFoundError}
1101
+ * @throws {@link NordletApi.ConflictError}
1102
+ * @throws {@link NordletApi.UnprocessableEntityError}
1103
+ * @throws {@link NordletApi.TooManyRequestsError}
1104
+ * @throws {@link NordletApi.InternalServerError}
1105
+ *
1106
+ * @example
1107
+ * await client.inventory.postV1InventoryLandedCostsGet({
1108
+ * id: "id"
1109
+ * })
1110
+ */
1111
+ postV1InventoryLandedCostsGet(request, requestOptions) {
1112
+ return core.HttpResponsePromise.fromPromise(this.__postV1InventoryLandedCostsGet(request, requestOptions));
1113
+ }
1114
+ async __postV1InventoryLandedCostsGet(request, requestOptions) {
1115
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1116
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1117
+ const _response = await core.fetcher({
1118
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1119
+ (await core.Supplier.get(this._options.environment)) ??
1120
+ environments.NordletApiEnvironment.Production, "v1/inventory/landed-costs/get"),
1121
+ method: "POST",
1122
+ headers: _headers,
1123
+ contentType: "application/json",
1124
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1125
+ requestType: "json",
1126
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1127
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1128
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1129
+ abortSignal: requestOptions?.abortSignal,
1130
+ fetchFn: this._options?.fetch,
1131
+ logging: this._options.logging,
1132
+ });
1133
+ if (_response.ok) {
1134
+ return {
1135
+ data: _response.body,
1136
+ rawResponse: _response.rawResponse,
1137
+ };
1138
+ }
1139
+ if (_response.error.reason === "status-code") {
1140
+ switch (_response.error.statusCode) {
1141
+ case 400:
1142
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1143
+ case 401:
1144
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1145
+ case 403:
1146
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1147
+ case 404:
1148
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1149
+ case 409:
1150
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1151
+ case 422:
1152
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1153
+ case 429:
1154
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1155
+ case 500:
1156
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1157
+ default:
1158
+ throw new errors.NordletApiError({
1159
+ statusCode: _response.error.statusCode,
1160
+ body: _response.error.body,
1161
+ rawResponse: _response.rawResponse,
1162
+ });
1163
+ }
1164
+ }
1165
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/landed-costs/get");
1166
+ }
1167
+ /**
1168
+ * @param {NordletApi.PostV1InventoryLandedCostsListRequest} request
1169
+ * @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
1170
+ *
1171
+ * @throws {@link NordletApi.BadRequestError}
1172
+ * @throws {@link NordletApi.UnauthorizedError}
1173
+ * @throws {@link NordletApi.ForbiddenError}
1174
+ * @throws {@link NordletApi.NotFoundError}
1175
+ * @throws {@link NordletApi.ConflictError}
1176
+ * @throws {@link NordletApi.UnprocessableEntityError}
1177
+ * @throws {@link NordletApi.TooManyRequestsError}
1178
+ * @throws {@link NordletApi.InternalServerError}
1179
+ *
1180
+ * @example
1181
+ * await client.inventory.postV1InventoryLandedCostsList()
1182
+ */
1183
+ postV1InventoryLandedCostsList(request = {}, requestOptions) {
1184
+ return core.HttpResponsePromise.fromPromise(this.__postV1InventoryLandedCostsList(request, requestOptions));
1185
+ }
1186
+ async __postV1InventoryLandedCostsList(request = {}, requestOptions) {
1187
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1188
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1189
+ const _response = await core.fetcher({
1190
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1191
+ (await core.Supplier.get(this._options.environment)) ??
1192
+ environments.NordletApiEnvironment.Production, "v1/inventory/landed-costs/list"),
1193
+ method: "POST",
1194
+ headers: _headers,
1195
+ contentType: "application/json",
1196
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1197
+ requestType: "json",
1198
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1199
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1200
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1201
+ abortSignal: requestOptions?.abortSignal,
1202
+ fetchFn: this._options?.fetch,
1203
+ logging: this._options.logging,
1204
+ });
1205
+ if (_response.ok) {
1206
+ return {
1207
+ data: _response.body,
1208
+ rawResponse: _response.rawResponse,
1209
+ };
1210
+ }
1211
+ if (_response.error.reason === "status-code") {
1212
+ switch (_response.error.statusCode) {
1213
+ case 400:
1214
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1215
+ case 401:
1216
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1217
+ case 403:
1218
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1219
+ case 404:
1220
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1221
+ case 409:
1222
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1223
+ case 422:
1224
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1225
+ case 429:
1226
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1227
+ case 500:
1228
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1229
+ default:
1230
+ throw new errors.NordletApiError({
1231
+ statusCode: _response.error.statusCode,
1232
+ body: _response.error.body,
1233
+ rawResponse: _response.rawResponse,
1234
+ });
1235
+ }
1236
+ }
1237
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/landed-costs/list");
1238
+ }
1239
+ /**
1240
+ * @param {NordletApi.PostV1InventoryReorderRulesCreateRequest} request
1241
+ * @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
1242
+ *
1243
+ * @throws {@link NordletApi.BadRequestError}
1244
+ * @throws {@link NordletApi.UnauthorizedError}
1245
+ * @throws {@link NordletApi.ForbiddenError}
1246
+ * @throws {@link NordletApi.NotFoundError}
1247
+ * @throws {@link NordletApi.ConflictError}
1248
+ * @throws {@link NordletApi.UnprocessableEntityError}
1249
+ * @throws {@link NordletApi.TooManyRequestsError}
1250
+ * @throws {@link NordletApi.InternalServerError}
1251
+ *
1252
+ * @example
1253
+ * await client.inventory.postV1InventoryReorderRulesCreate({
1254
+ * itemId: "itemId",
1255
+ * minQty: "minQty"
1256
+ * })
1257
+ */
1258
+ postV1InventoryReorderRulesCreate(request, requestOptions) {
1259
+ return core.HttpResponsePromise.fromPromise(this.__postV1InventoryReorderRulesCreate(request, requestOptions));
1260
+ }
1261
+ async __postV1InventoryReorderRulesCreate(request, requestOptions) {
1262
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1263
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1264
+ const _response = await core.fetcher({
1265
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1266
+ (await core.Supplier.get(this._options.environment)) ??
1267
+ environments.NordletApiEnvironment.Production, "v1/inventory/reorder-rules/create"),
1268
+ method: "POST",
1269
+ headers: _headers,
1270
+ contentType: "application/json",
1271
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1272
+ requestType: "json",
1273
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1274
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1275
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1276
+ abortSignal: requestOptions?.abortSignal,
1277
+ fetchFn: this._options?.fetch,
1278
+ logging: this._options.logging,
1279
+ });
1280
+ if (_response.ok) {
1281
+ return {
1282
+ data: _response.body,
1283
+ rawResponse: _response.rawResponse,
1284
+ };
1285
+ }
1286
+ if (_response.error.reason === "status-code") {
1287
+ switch (_response.error.statusCode) {
1288
+ case 400:
1289
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1290
+ case 401:
1291
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1292
+ case 403:
1293
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1294
+ case 404:
1295
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1296
+ case 409:
1297
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1298
+ case 422:
1299
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1300
+ case 429:
1301
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1302
+ case 500:
1303
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1304
+ default:
1305
+ throw new errors.NordletApiError({
1306
+ statusCode: _response.error.statusCode,
1307
+ body: _response.error.body,
1308
+ rawResponse: _response.rawResponse,
1309
+ });
1310
+ }
1311
+ }
1312
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/reorder-rules/create");
1313
+ }
1314
+ /**
1315
+ * @param {NordletApi.PostV1InventoryReorderRulesUpdateRequest} request
1316
+ * @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
1317
+ *
1318
+ * @throws {@link NordletApi.BadRequestError}
1319
+ * @throws {@link NordletApi.UnauthorizedError}
1320
+ * @throws {@link NordletApi.ForbiddenError}
1321
+ * @throws {@link NordletApi.NotFoundError}
1322
+ * @throws {@link NordletApi.ConflictError}
1323
+ * @throws {@link NordletApi.UnprocessableEntityError}
1324
+ * @throws {@link NordletApi.TooManyRequestsError}
1325
+ * @throws {@link NordletApi.InternalServerError}
1326
+ *
1327
+ * @example
1328
+ * await client.inventory.postV1InventoryReorderRulesUpdate({
1329
+ * id: "id"
1330
+ * })
1331
+ */
1332
+ postV1InventoryReorderRulesUpdate(request, requestOptions) {
1333
+ return core.HttpResponsePromise.fromPromise(this.__postV1InventoryReorderRulesUpdate(request, requestOptions));
1334
+ }
1335
+ async __postV1InventoryReorderRulesUpdate(request, requestOptions) {
1336
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1337
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1338
+ const _response = await core.fetcher({
1339
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1340
+ (await core.Supplier.get(this._options.environment)) ??
1341
+ environments.NordletApiEnvironment.Production, "v1/inventory/reorder-rules/update"),
1342
+ method: "POST",
1343
+ headers: _headers,
1344
+ contentType: "application/json",
1345
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1346
+ requestType: "json",
1347
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1348
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1349
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1350
+ abortSignal: requestOptions?.abortSignal,
1351
+ fetchFn: this._options?.fetch,
1352
+ logging: this._options.logging,
1353
+ });
1354
+ if (_response.ok) {
1355
+ return {
1356
+ data: _response.body,
1357
+ rawResponse: _response.rawResponse,
1358
+ };
1359
+ }
1360
+ if (_response.error.reason === "status-code") {
1361
+ switch (_response.error.statusCode) {
1362
+ case 400:
1363
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1364
+ case 401:
1365
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1366
+ case 403:
1367
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1368
+ case 404:
1369
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1370
+ case 409:
1371
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1372
+ case 422:
1373
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1374
+ case 429:
1375
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1376
+ case 500:
1377
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1378
+ default:
1379
+ throw new errors.NordletApiError({
1380
+ statusCode: _response.error.statusCode,
1381
+ body: _response.error.body,
1382
+ rawResponse: _response.rawResponse,
1383
+ });
1384
+ }
1385
+ }
1386
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/reorder-rules/update");
1387
+ }
1388
+ /**
1389
+ * @param {NordletApi.PostV1InventoryReorderRulesDeleteRequest} request
1390
+ * @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
1391
+ *
1392
+ * @throws {@link NordletApi.BadRequestError}
1393
+ * @throws {@link NordletApi.UnauthorizedError}
1394
+ * @throws {@link NordletApi.ForbiddenError}
1395
+ * @throws {@link NordletApi.NotFoundError}
1396
+ * @throws {@link NordletApi.ConflictError}
1397
+ * @throws {@link NordletApi.UnprocessableEntityError}
1398
+ * @throws {@link NordletApi.TooManyRequestsError}
1399
+ * @throws {@link NordletApi.InternalServerError}
1400
+ *
1401
+ * @example
1402
+ * await client.inventory.postV1InventoryReorderRulesDelete({
1403
+ * id: "id"
1404
+ * })
1405
+ */
1406
+ postV1InventoryReorderRulesDelete(request, requestOptions) {
1407
+ return core.HttpResponsePromise.fromPromise(this.__postV1InventoryReorderRulesDelete(request, requestOptions));
1408
+ }
1409
+ async __postV1InventoryReorderRulesDelete(request, requestOptions) {
1410
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1411
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1412
+ const _response = await core.fetcher({
1413
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1414
+ (await core.Supplier.get(this._options.environment)) ??
1415
+ environments.NordletApiEnvironment.Production, "v1/inventory/reorder-rules/delete"),
1416
+ method: "POST",
1417
+ headers: _headers,
1418
+ contentType: "application/json",
1419
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1420
+ requestType: "json",
1421
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1422
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1423
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1424
+ abortSignal: requestOptions?.abortSignal,
1425
+ fetchFn: this._options?.fetch,
1426
+ logging: this._options.logging,
1427
+ });
1428
+ if (_response.ok) {
1429
+ return {
1430
+ data: _response.body,
1431
+ rawResponse: _response.rawResponse,
1432
+ };
1433
+ }
1434
+ if (_response.error.reason === "status-code") {
1435
+ switch (_response.error.statusCode) {
1436
+ case 400:
1437
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1438
+ case 401:
1439
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1440
+ case 403:
1441
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1442
+ case 404:
1443
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1444
+ case 409:
1445
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1446
+ case 422:
1447
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1448
+ case 429:
1449
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1450
+ case 500:
1451
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1452
+ default:
1453
+ throw new errors.NordletApiError({
1454
+ statusCode: _response.error.statusCode,
1455
+ body: _response.error.body,
1456
+ rawResponse: _response.rawResponse,
1457
+ });
1458
+ }
1459
+ }
1460
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/reorder-rules/delete");
1461
+ }
1462
+ /**
1463
+ * @param {NordletApi.PostV1InventoryReorderRulesListRequest} request
1464
+ * @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
1465
+ *
1466
+ * @throws {@link NordletApi.BadRequestError}
1467
+ * @throws {@link NordletApi.UnauthorizedError}
1468
+ * @throws {@link NordletApi.ForbiddenError}
1469
+ * @throws {@link NordletApi.NotFoundError}
1470
+ * @throws {@link NordletApi.ConflictError}
1471
+ * @throws {@link NordletApi.UnprocessableEntityError}
1472
+ * @throws {@link NordletApi.TooManyRequestsError}
1473
+ * @throws {@link NordletApi.InternalServerError}
1474
+ *
1475
+ * @example
1476
+ * await client.inventory.postV1InventoryReorderRulesList()
1477
+ */
1478
+ postV1InventoryReorderRulesList(request = {}, requestOptions) {
1479
+ return core.HttpResponsePromise.fromPromise(this.__postV1InventoryReorderRulesList(request, requestOptions));
1480
+ }
1481
+ async __postV1InventoryReorderRulesList(request = {}, requestOptions) {
1482
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1483
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1484
+ const _response = await core.fetcher({
1485
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1486
+ (await core.Supplier.get(this._options.environment)) ??
1487
+ environments.NordletApiEnvironment.Production, "v1/inventory/reorder-rules/list"),
1488
+ method: "POST",
1489
+ headers: _headers,
1490
+ contentType: "application/json",
1491
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1492
+ requestType: "json",
1493
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1494
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1495
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1496
+ abortSignal: requestOptions?.abortSignal,
1497
+ fetchFn: this._options?.fetch,
1498
+ logging: this._options.logging,
1499
+ });
1500
+ if (_response.ok) {
1501
+ return {
1502
+ data: _response.body,
1503
+ rawResponse: _response.rawResponse,
1504
+ };
1505
+ }
1506
+ if (_response.error.reason === "status-code") {
1507
+ switch (_response.error.statusCode) {
1508
+ case 400:
1509
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1510
+ case 401:
1511
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1512
+ case 403:
1513
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1514
+ case 404:
1515
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1516
+ case 409:
1517
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1518
+ case 422:
1519
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1520
+ case 429:
1521
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1522
+ case 500:
1523
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1524
+ default:
1525
+ throw new errors.NordletApiError({
1526
+ statusCode: _response.error.statusCode,
1527
+ body: _response.error.body,
1528
+ rawResponse: _response.rawResponse,
1529
+ });
1530
+ }
1531
+ }
1532
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/reorder-rules/list");
1533
+ }
1534
+ /**
1535
+ * @param {NordletApi.PostV1InventoryReorderRulesCheckRequest} request
1536
+ * @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
1537
+ *
1538
+ * @throws {@link NordletApi.BadRequestError}
1539
+ * @throws {@link NordletApi.UnauthorizedError}
1540
+ * @throws {@link NordletApi.ForbiddenError}
1541
+ * @throws {@link NordletApi.NotFoundError}
1542
+ * @throws {@link NordletApi.ConflictError}
1543
+ * @throws {@link NordletApi.UnprocessableEntityError}
1544
+ * @throws {@link NordletApi.TooManyRequestsError}
1545
+ * @throws {@link NordletApi.InternalServerError}
1546
+ *
1547
+ * @example
1548
+ * await client.inventory.postV1InventoryReorderRulesCheck()
1549
+ */
1550
+ postV1InventoryReorderRulesCheck(request = {}, requestOptions) {
1551
+ return core.HttpResponsePromise.fromPromise(this.__postV1InventoryReorderRulesCheck(request, requestOptions));
1552
+ }
1553
+ async __postV1InventoryReorderRulesCheck(request = {}, requestOptions) {
1554
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1555
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1556
+ const _response = await core.fetcher({
1557
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1558
+ (await core.Supplier.get(this._options.environment)) ??
1559
+ environments.NordletApiEnvironment.Production, "v1/inventory/reorder-rules/check"),
1560
+ method: "POST",
1561
+ headers: _headers,
1562
+ contentType: "application/json",
1563
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1564
+ requestType: "json",
1565
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1566
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1567
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1568
+ abortSignal: requestOptions?.abortSignal,
1569
+ fetchFn: this._options?.fetch,
1570
+ logging: this._options.logging,
1571
+ });
1572
+ if (_response.ok) {
1573
+ return {
1574
+ data: _response.body,
1575
+ rawResponse: _response.rawResponse,
1576
+ };
1577
+ }
1578
+ if (_response.error.reason === "status-code") {
1579
+ switch (_response.error.statusCode) {
1580
+ case 400:
1581
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1582
+ case 401:
1583
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1584
+ case 403:
1585
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1586
+ case 404:
1587
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1588
+ case 409:
1589
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1590
+ case 422:
1591
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1592
+ case 429:
1593
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1594
+ case 500:
1595
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1596
+ default:
1597
+ throw new errors.NordletApiError({
1598
+ statusCode: _response.error.statusCode,
1599
+ body: _response.error.body,
1600
+ rawResponse: _response.rawResponse,
1601
+ });
1602
+ }
1603
+ }
1604
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/reorder-rules/check");
1605
+ }
798
1606
  }
799
1607
  exports.InventoryClient = InventoryClient;