connectwise-rest 0.25.1 → 1.0.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 (282) hide show
  1. package/.eslintrc +17 -52
  2. package/.gitattributes +1 -0
  3. package/.mocharc.json +5 -0
  4. package/.prettierrc +7 -0
  5. package/README.md +293 -230
  6. package/api-extractor.json +364 -0
  7. package/dist/Automate/AVTemplatePoliciesAPI.d.ts +36 -0
  8. package/dist/Automate/AVTemplatePoliciesAPI.d.ts.map +1 -0
  9. package/dist/Automate/AVTemplatePoliciesAPI.js +92 -0
  10. package/dist/Automate/AVTemplatePoliciesAPI.js.map +1 -0
  11. package/dist/Automate/ClientsAPI.d.ts +44 -0
  12. package/dist/Automate/ClientsAPI.d.ts.map +1 -0
  13. package/dist/Automate/ClientsAPI.js +119 -0
  14. package/dist/Automate/ClientsAPI.js.map +1 -0
  15. package/dist/Automate/CommandsAPI.d.ts +20 -0
  16. package/dist/Automate/CommandsAPI.d.ts.map +1 -0
  17. package/dist/Automate/CommandsAPI.js +36 -0
  18. package/dist/Automate/CommandsAPI.js.map +1 -0
  19. package/dist/Automate/ComputersAPI.d.ts +131 -0
  20. package/dist/Automate/ComputersAPI.d.ts.map +1 -0
  21. package/dist/Automate/ComputersAPI.js +358 -0
  22. package/dist/Automate/ComputersAPI.js.map +1 -0
  23. package/dist/Automate/ContactsAPI.d.ts +24 -0
  24. package/dist/Automate/ContactsAPI.d.ts.map +1 -0
  25. package/dist/Automate/ContactsAPI.js +50 -0
  26. package/dist/Automate/ContactsAPI.js.map +1 -0
  27. package/dist/Automate/DataViewsAPI.d.ts +22 -0
  28. package/dist/Automate/DataViewsAPI.d.ts.map +1 -0
  29. package/dist/Automate/DataViewsAPI.js +36 -0
  30. package/dist/Automate/DataViewsAPI.js.map +1 -0
  31. package/dist/Automate/DrivesAPI.d.ts +25 -0
  32. package/dist/Automate/DrivesAPI.d.ts.map +1 -0
  33. package/dist/Automate/DrivesAPI.js +57 -0
  34. package/dist/Automate/DrivesAPI.js.map +1 -0
  35. package/dist/Automate/EventLogsAPI.d.ts +19 -0
  36. package/dist/Automate/EventLogsAPI.d.ts.map +1 -0
  37. package/dist/Automate/EventLogsAPI.js +29 -0
  38. package/dist/Automate/EventLogsAPI.js.map +1 -0
  39. package/dist/Automate/LocationsAPI.d.ts +57 -0
  40. package/dist/Automate/LocationsAPI.d.ts.map +1 -0
  41. package/dist/Automate/LocationsAPI.js +138 -0
  42. package/dist/Automate/LocationsAPI.js.map +1 -0
  43. package/dist/Automate/MaintenanceWindowDefinitionsAPI.d.ts +19 -0
  44. package/dist/Automate/MaintenanceWindowDefinitionsAPI.d.ts.map +1 -0
  45. package/dist/Automate/MaintenanceWindowDefinitionsAPI.js +29 -0
  46. package/dist/Automate/MaintenanceWindowDefinitionsAPI.js.map +1 -0
  47. package/dist/Automate/MonitorsAPI.d.ts +29 -0
  48. package/dist/Automate/MonitorsAPI.d.ts.map +1 -0
  49. package/dist/Automate/MonitorsAPI.js +85 -0
  50. package/dist/Automate/MonitorsAPI.js.map +1 -0
  51. package/dist/Automate/NetworkDevicesAPI.d.ts +23 -0
  52. package/dist/Automate/NetworkDevicesAPI.d.ts.map +1 -0
  53. package/dist/Automate/NetworkDevicesAPI.js +43 -0
  54. package/dist/Automate/NetworkDevicesAPI.js.map +1 -0
  55. package/dist/Automate/PatchingAPI.d.ts +33 -0
  56. package/dist/Automate/PatchingAPI.d.ts.map +1 -0
  57. package/dist/Automate/PatchingAPI.js +99 -0
  58. package/dist/Automate/PatchingAPI.js.map +1 -0
  59. package/dist/Automate/RemoteAgentAPI.d.ts +24 -0
  60. package/dist/Automate/RemoteAgentAPI.d.ts.map +1 -0
  61. package/dist/Automate/RemoteAgentAPI.js +50 -0
  62. package/dist/Automate/RemoteAgentAPI.js.map +1 -0
  63. package/dist/Automate/ScriptingAPI.d.ts +41 -0
  64. package/dist/Automate/ScriptingAPI.d.ts.map +1 -0
  65. package/dist/Automate/ScriptingAPI.js +109 -0
  66. package/dist/Automate/ScriptingAPI.js.map +1 -0
  67. package/dist/Automate/SearchesAPI.d.ts +23 -0
  68. package/dist/Automate/SearchesAPI.d.ts.map +1 -0
  69. package/dist/Automate/SearchesAPI.js +43 -0
  70. package/dist/Automate/SearchesAPI.js.map +1 -0
  71. package/dist/Automate/SystemAPI.d.ts +97 -0
  72. package/dist/Automate/SystemAPI.d.ts.map +1 -0
  73. package/dist/Automate/SystemAPI.js +273 -0
  74. package/dist/Automate/SystemAPI.js.map +1 -0
  75. package/dist/Automate/TicketsAPI.d.ts +14 -0
  76. package/dist/Automate/TicketsAPI.d.ts.map +1 -0
  77. package/dist/Automate/TicketsAPI.js +29 -0
  78. package/dist/Automate/TicketsAPI.js.map +1 -0
  79. package/dist/Automate/UserProfilesAPI.d.ts +19 -0
  80. package/dist/Automate/UserProfilesAPI.d.ts.map +1 -0
  81. package/dist/Automate/UserProfilesAPI.js +28 -0
  82. package/dist/Automate/UserProfilesAPI.js.map +1 -0
  83. package/dist/Automate.d.ts +43 -0
  84. package/dist/Automate.d.ts.map +1 -0
  85. package/dist/Automate.js +164 -0
  86. package/dist/Automate.js.map +1 -0
  87. package/dist/AutomateAPI.d.ts +129 -0
  88. package/dist/AutomateAPI.d.ts.map +1 -0
  89. package/dist/AutomateAPI.js +175 -0
  90. package/dist/AutomateAPI.js.map +1 -0
  91. package/dist/AutomateTypes.d.ts +10437 -0
  92. package/dist/AutomateTypes.d.ts.map +1 -0
  93. package/dist/AutomateTypes.js +3 -0
  94. package/dist/AutomateTypes.js.map +1 -0
  95. package/dist/BaseAPI.d.ts +26 -0
  96. package/dist/BaseAPI.d.ts.map +1 -0
  97. package/dist/BaseAPI.js +116 -0
  98. package/dist/BaseAPI.js.map +1 -0
  99. package/dist/Manage/CompanyAPI.d.ts +662 -0
  100. package/dist/Manage/CompanyAPI.d.ts.map +1 -0
  101. package/dist/Manage/CompanyAPI.js +3299 -0
  102. package/dist/Manage/CompanyAPI.js.map +1 -0
  103. package/dist/Manage/ConfigurationsAPI.d.ts +32 -0
  104. package/dist/Manage/ConfigurationsAPI.d.ts.map +1 -0
  105. package/dist/Manage/ConfigurationsAPI.js +78 -0
  106. package/dist/Manage/ConfigurationsAPI.js.map +1 -0
  107. package/dist/Manage/ExpenseAPI.d.ts +85 -0
  108. package/dist/Manage/ExpenseAPI.d.ts.map +1 -0
  109. package/dist/Manage/ExpenseAPI.js +311 -0
  110. package/dist/Manage/ExpenseAPI.js.map +1 -0
  111. package/dist/Manage/FinanceAPI.d.ts +538 -0
  112. package/dist/Manage/FinanceAPI.d.ts.map +1 -0
  113. package/dist/Manage/FinanceAPI.js +2592 -0
  114. package/dist/Manage/FinanceAPI.js.map +1 -0
  115. package/dist/Manage/MarketingAPI.d.ts +142 -0
  116. package/dist/Manage/MarketingAPI.d.ts.map +1 -0
  117. package/dist/Manage/MarketingAPI.js +634 -0
  118. package/dist/Manage/MarketingAPI.js.map +1 -0
  119. package/dist/Manage/ProcurementAPI.d.ts +435 -0
  120. package/dist/Manage/ProcurementAPI.d.ts.map +1 -0
  121. package/dist/Manage/ProcurementAPI.js +2103 -0
  122. package/dist/Manage/ProcurementAPI.js.map +1 -0
  123. package/dist/Manage/ProjectAPI.d.ts +215 -0
  124. package/dist/Manage/ProjectAPI.d.ts.map +1 -0
  125. package/dist/Manage/ProjectAPI.js +945 -0
  126. package/dist/Manage/ProjectAPI.js.map +1 -0
  127. package/dist/Manage/SalesAPI.d.ts +299 -0
  128. package/dist/Manage/SalesAPI.d.ts.map +1 -0
  129. package/dist/Manage/SalesAPI.js +1397 -0
  130. package/dist/Manage/SalesAPI.js.map +1 -0
  131. package/dist/Manage/ScheduleAPI.d.ts +132 -0
  132. package/dist/Manage/ScheduleAPI.d.ts.map +1 -0
  133. package/dist/Manage/ScheduleAPI.js +580 -0
  134. package/dist/Manage/ScheduleAPI.js.map +1 -0
  135. package/dist/Manage/ServiceAPI.d.ts +493 -0
  136. package/dist/Manage/ServiceAPI.d.ts.map +1 -0
  137. package/dist/Manage/ServiceAPI.js +2339 -0
  138. package/dist/Manage/ServiceAPI.js.map +1 -0
  139. package/dist/Manage/SystemAPI.d.ts +954 -0
  140. package/dist/Manage/SystemAPI.d.ts.map +1 -0
  141. package/dist/Manage/SystemAPI.js +4536 -0
  142. package/dist/Manage/SystemAPI.js.map +1 -0
  143. package/dist/Manage/TimeAPI.d.ts +186 -0
  144. package/dist/Manage/TimeAPI.d.ts.map +1 -0
  145. package/dist/Manage/TimeAPI.js +840 -0
  146. package/dist/Manage/TimeAPI.js.map +1 -0
  147. package/dist/Manage.d.ts +39 -0
  148. package/dist/Manage.d.ts.map +1 -0
  149. package/dist/Manage.js +137 -0
  150. package/dist/Manage.js.map +1 -0
  151. package/dist/ManageAPI.d.ts +135 -0
  152. package/dist/ManageAPI.d.ts.map +1 -0
  153. package/dist/ManageAPI.js +115 -0
  154. package/dist/ManageAPI.js.map +1 -0
  155. package/dist/ManageTypes.d.ts +91320 -0
  156. package/dist/ManageTypes.d.ts.map +1 -0
  157. package/dist/ManageTypes.js +7 -0
  158. package/dist/ManageTypes.js.map +1 -0
  159. package/dist/connectwise-rest.d.ts +108638 -0
  160. package/dist/index.d.ts +12 -0
  161. package/dist/index.d.ts.map +1 -0
  162. package/dist/index.js +36 -0
  163. package/dist/index.js.map +1 -0
  164. package/dist/tsdoc-metadata.json +11 -0
  165. package/dist/types.d.ts +48 -0
  166. package/dist/types.d.ts.map +1 -0
  167. package/dist/types.js +21 -0
  168. package/dist/types.js.map +1 -0
  169. package/dist/utils/Callback.d.ts +70 -0
  170. package/dist/utils/Callback.d.ts.map +1 -0
  171. package/dist/utils/Callback.js +109 -0
  172. package/dist/utils/Callback.js.map +1 -0
  173. package/dist/utils/Series.d.ts +42 -0
  174. package/dist/utils/Series.d.ts.map +1 -0
  175. package/dist/utils/Series.js +68 -0
  176. package/dist/utils/Series.js.map +1 -0
  177. package/dist/utils/index.d.ts +7 -0
  178. package/dist/utils/index.d.ts.map +1 -0
  179. package/dist/utils/index.js +11 -0
  180. package/dist/utils/index.js.map +1 -0
  181. package/package.json +50 -19
  182. package/src/Automate/AVTemplatePoliciesAPI.ts +124 -0
  183. package/src/Automate/ClientsAPI.ts +172 -0
  184. package/src/Automate/CommandsAPI.ts +39 -0
  185. package/src/Automate/ComputersAPI.ts +588 -0
  186. package/src/Automate/ContactsAPI.ts +63 -0
  187. package/src/Automate/DataViewsAPI.ts +43 -0
  188. package/src/Automate/DrivesAPI.ts +81 -0
  189. package/src/Automate/EventLogsAPI.ts +31 -0
  190. package/src/Automate/LocationsAPI.ts +222 -0
  191. package/src/Automate/MaintenanceWindowDefinitionsAPI.ts +34 -0
  192. package/src/Automate/MonitorsAPI.ts +101 -0
  193. package/src/Automate/NetworkDevicesAPI.ts +51 -0
  194. package/src/Automate/PatchingAPI.ts +116 -0
  195. package/src/Automate/RemoteAgentAPI.ts +65 -0
  196. package/src/Automate/ScriptingAPI.ts +147 -0
  197. package/src/Automate/SearchesAPI.ts +49 -0
  198. package/src/Automate/SystemAPI.ts +412 -0
  199. package/src/Automate/TicketsAPI.ts +29 -0
  200. package/src/Automate/UserProfilesAPI.ts +31 -0
  201. package/src/Automate.ts +204 -0
  202. package/src/AutomateAPI.ts +178 -0
  203. package/src/AutomateTypes.ts +10492 -0
  204. package/src/BaseAPI.ts +180 -0
  205. package/src/Manage/CompanyAPI.ts +4941 -0
  206. package/src/Manage/ConfigurationsAPI.ts +116 -0
  207. package/src/Manage/ExpenseAPI.ts +413 -0
  208. package/src/Manage/FinanceAPI.ts +3930 -0
  209. package/src/Manage/MarketingAPI.ts +958 -0
  210. package/src/Manage/ProcurementAPI.ts +3107 -0
  211. package/src/Manage/ProjectAPI.ts +1437 -0
  212. package/src/Manage/SalesAPI.ts +1968 -0
  213. package/src/Manage/ScheduleAPI.ts +773 -0
  214. package/src/Manage/ServiceAPI.ts +3476 -0
  215. package/src/Manage/SystemAPI.ts +6415 -0
  216. package/src/Manage/TimeAPI.ts +1151 -0
  217. package/src/Manage.ts +161 -0
  218. package/src/ManageAPI.ts +170 -0
  219. package/src/ManageTypes.ts +91318 -0
  220. package/src/index.ts +13 -0
  221. package/src/types.ts +68 -0
  222. package/src/utils/Callback.ts +148 -0
  223. package/src/utils/Series.ts +89 -0
  224. package/src/utils/index.ts +7 -0
  225. package/swagger-errors.md +25 -0
  226. package/test/.env.example +12 -6
  227. package/test/test-utils.ts +27 -0
  228. package/test/test.js +331 -108
  229. package/tsconfig.json +29 -0
  230. package/.travis.yml +0 -9
  231. package/doc.md +0 -5984
  232. package/docs/jsdoc.json +0 -15
  233. package/index.js +0 -10
  234. package/src/CompanyAPI/Companies.js +0 -149
  235. package/src/CompanyAPI/CompanyCompanyTypeAssociations.js +0 -111
  236. package/src/CompanyAPI/CompanySites.js +0 -80
  237. package/src/CompanyAPI/CompanyTeams.js +0 -108
  238. package/src/CompanyAPI/CompanyTypeInfos.js +0 -58
  239. package/src/CompanyAPI/CompanyTypes.js +0 -52
  240. package/src/CompanyAPI/Configurations.js +0 -152
  241. package/src/CompanyAPI/ContactContactTypeAssociations.js +0 -55
  242. package/src/CompanyAPI/ContactRelationships.js +0 -36
  243. package/src/CompanyAPI/Contacts.js +0 -199
  244. package/src/CompanyAPI/index.js +0 -53
  245. package/src/ConnectWise.js +0 -339
  246. package/src/ConnectWiseRest.js +0 -515
  247. package/src/FinanceAPI/Additions.js +0 -127
  248. package/src/FinanceAPI/Adjustments.js +0 -109
  249. package/src/FinanceAPI/AgreementSites.js +0 -108
  250. package/src/FinanceAPI/Agreements.js +0 -220
  251. package/src/FinanceAPI/BoardDefaults.js +0 -109
  252. package/src/FinanceAPI/WorkRoles.js +0 -113
  253. package/src/FinanceAPI/WorkTypeExclusions.js +0 -78
  254. package/src/FinanceAPI/WorkTypes.js +0 -124
  255. package/src/FinanceAPI/index.js +0 -50
  256. package/src/ProcurementAPI/CatalogItems.js +0 -94
  257. package/src/ProcurementAPI/index.js +0 -22
  258. package/src/ProjectAPI/Projects.js +0 -142
  259. package/src/ProjectAPI/index.js +0 -28
  260. package/src/SalesAPI/Activities.js +0 -149
  261. package/src/SalesAPI/index.js +0 -14
  262. package/src/ScheduleAPI/ScheduleEntries.js +0 -109
  263. package/src/ScheduleAPI/ScheduleTypes.js +0 -101
  264. package/src/ScheduleAPI/index.js +0 -30
  265. package/src/ServiceDeskAPI/BoardItems.js +0 -134
  266. package/src/ServiceDeskAPI/BoardSubTypes.js +0 -112
  267. package/src/ServiceDeskAPI/BoardTeams.js +0 -108
  268. package/src/ServiceDeskAPI/BoardTypes.js +0 -139
  269. package/src/ServiceDeskAPI/Boards.js +0 -100
  270. package/src/ServiceDeskAPI/Priorities.js +0 -47
  271. package/src/ServiceDeskAPI/ServiceNotes.js +0 -172
  272. package/src/ServiceDeskAPI/Statuses.js +0 -116
  273. package/src/ServiceDeskAPI/Tickets.js +0 -588
  274. package/src/ServiceDeskAPI/index.js +0 -53
  275. package/src/SystemAPI/Members.js +0 -139
  276. package/src/SystemAPI/Reports.js +0 -116
  277. package/src/SystemAPI/index.js +0 -32
  278. package/src/TimeAPI/TimeEntries.js +0 -121
  279. package/src/TimeAPI/index.js +0 -27
  280. package/src/utils/Callback.js +0 -124
  281. package/src/utils/Series.js +0 -63
  282. package/src/utils/index.js +0 -21
@@ -0,0 +1,3107 @@
1
+ /* This file was auto-generated, do not manually edit. */
2
+ import Manage from '../Manage'
3
+ import { components } from '../ManageTypes'
4
+ import { CommonParameters, CWMOptions } from '../ManageAPI'
5
+ import { NoContentResponse, OctetStreamResponse, PDFResponse, HTMLResponse } from '../types'
6
+ type schemas = components['schemas']
7
+
8
+ /** {@link AdjustmentDetail} */
9
+ export type AdjustmentDetail = schemas['AdjustmentDetail']
10
+ /** {@link AdjustmentType} */
11
+ export type AdjustmentType = schemas['AdjustmentType']
12
+ /** {@link AdjustmentTypeInfo} */
13
+ export type AdjustmentTypeInfo = schemas['AdjustmentTypeInfo']
14
+ /** {@link BulkResult} */
15
+ export type BulkResult = schemas['BulkResult']
16
+ /** {@link CatalogComponent} */
17
+ export type CatalogComponent = schemas['CatalogComponent']
18
+ /** {@link CatalogInventory} */
19
+ export type CatalogInventory = schemas['CatalogInventory']
20
+ /** {@link CatalogItem} */
21
+ export type CatalogItem = schemas['CatalogItem']
22
+ /** {@link CatalogItemInfo} */
23
+ export type CatalogItemInfo = schemas['CatalogItemInfo']
24
+ /** {@link CatalogPricing} */
25
+ export type CatalogPricing = schemas['CatalogPricing']
26
+ /** {@link Category} */
27
+ export type Category = schemas['Category']
28
+ /** {@link CategoryInfo} */
29
+ export type CategoryInfo = schemas['CategoryInfo']
30
+ /** {@link Conversion} */
31
+ export type Conversion = schemas['Conversion']
32
+ /** {@link Count} */
33
+ export type Count = schemas['Count']
34
+ /** {@link IdCollection} */
35
+ export type IdCollection = schemas['IdCollection']
36
+ /** {@link InventoryOnHand} */
37
+ export type InventoryOnHand = schemas['InventoryOnHand']
38
+ /** {@link LegacySubCategory} */
39
+ export type LegacySubCategory = schemas['LegacySubCategory']
40
+ /** {@link LegacySubCategoryInfo} */
41
+ export type LegacySubCategoryInfo = schemas['LegacySubCategoryInfo']
42
+ /** {@link Manufacturer} */
43
+ export type Manufacturer = schemas['Manufacturer']
44
+ /** {@link ManufacturerInfo} */
45
+ export type ManufacturerInfo = schemas['ManufacturerInfo']
46
+ /** {@link MinimumStockByWarehouse} */
47
+ export type MinimumStockByWarehouse = schemas['MinimumStockByWarehouse']
48
+ /** {@link OnHandSerialNumber} */
49
+ export type OnHandSerialNumber = schemas['OnHandSerialNumber']
50
+ /** {@link PatchOperation} */
51
+ export type PatchOperation = schemas['PatchOperation']
52
+ /** {@link PricingBreak} */
53
+ export type PricingBreak = schemas['PricingBreak']
54
+ /** {@link PricingDetail} */
55
+ export type PricingDetail = schemas['PricingDetail']
56
+ /** {@link PricingSchedule} */
57
+ export type PricingSchedule = schemas['PricingSchedule']
58
+ /** {@link ProcurementAdjustment} */
59
+ export type ProcurementAdjustment = schemas['ProcurementAdjustment']
60
+ /** {@link ProcurementSetting} */
61
+ export type ProcurementSetting = schemas['ProcurementSetting']
62
+ /** {@link ProductComponent} */
63
+ export type ProductComponent = schemas['ProductComponent']
64
+ /** {@link ProductDetach} */
65
+ export type ProductDetach = schemas['ProductDetach']
66
+ /** {@link ProductItem} */
67
+ export type ProductItem = schemas['ProductItem']
68
+ /** {@link ProductPickingShippingDetail} */
69
+ export type ProductPickingShippingDetail = schemas['ProductPickingShippingDetail']
70
+ /** {@link ProductType} */
71
+ export type ProductType = schemas['ProductType']
72
+ /** {@link ProductTypeInfo} */
73
+ export type ProductTypeInfo = schemas['ProductTypeInfo']
74
+ /** {@link PurchaseOrder} */
75
+ export type PurchaseOrder = schemas['PurchaseOrder']
76
+ /** {@link PurchaseOrderLineItem} */
77
+ export type PurchaseOrderLineItem = schemas['PurchaseOrderLineItem']
78
+ /** {@link PurchaseOrderStatus} */
79
+ export type PurchaseOrderStatus = schemas['PurchaseOrderStatus']
80
+ /** {@link PurchaseOrderStatusEmailTemplate} */
81
+ export type PurchaseOrderStatusEmailTemplate = schemas['PurchaseOrderStatusEmailTemplate']
82
+ /** {@link PurchaseOrderStatusNotification} */
83
+ export type PurchaseOrderStatusNotification = schemas['PurchaseOrderStatusNotification']
84
+ /** {@link PurchasingDemand} */
85
+ export type PurchasingDemand = schemas['PurchasingDemand']
86
+ /** {@link RmaAction} */
87
+ export type RmaAction = schemas['RmaAction']
88
+ /** {@link RmaActionInfo} */
89
+ export type RmaActionInfo = schemas['RmaActionInfo']
90
+ /** {@link RmaDisposition} */
91
+ export type RmaDisposition = schemas['RmaDisposition']
92
+ /** {@link RmaDispositionInfo} */
93
+ export type RmaDispositionInfo = schemas['RmaDispositionInfo']
94
+ /** {@link RmaStatus} */
95
+ export type RmaStatus = schemas['RmaStatus']
96
+ /** {@link RmaStatusEmailTemplate} */
97
+ export type RmaStatusEmailTemplate = schemas['RmaStatusEmailTemplate']
98
+ /** {@link RmaStatusInfo} */
99
+ export type RmaStatusInfo = schemas['RmaStatusInfo']
100
+ /** {@link RmaStatusNotification} */
101
+ export type RmaStatusNotification = schemas['RmaStatusNotification']
102
+ /** {@link RmaTag} */
103
+ export type RmaTag = schemas['RmaTag']
104
+ /** {@link ShipmentMethod} */
105
+ export type ShipmentMethod = schemas['ShipmentMethod']
106
+ /** {@link ShipmentMethodInfo} */
107
+ export type ShipmentMethodInfo = schemas['ShipmentMethodInfo']
108
+ /** {@link SubCategory} */
109
+ export type SubCategory = schemas['SubCategory']
110
+ /** {@link SubCategoryInfo} */
111
+ export type SubCategoryInfo = schemas['SubCategoryInfo']
112
+ /** {@link UnitOfMeasure} */
113
+ export type UnitOfMeasure = schemas['UnitOfMeasure']
114
+ /** {@link Usage} */
115
+ export type Usage = schemas['Usage']
116
+ /** {@link Warehouse} */
117
+ export type Warehouse = schemas['Warehouse']
118
+ /** {@link WarehouseBin} */
119
+ export type WarehouseBin = schemas['WarehouseBin']
120
+ /** {@link WarehouseBinInfo} */
121
+ export type WarehouseBinInfo = schemas['WarehouseBinInfo']
122
+ /** {@link WarehouseInfo} */
123
+ export type WarehouseInfo = schemas['WarehouseInfo']
124
+
125
+ /**
126
+ * @module ProcurementAPI
127
+ */
128
+
129
+ /**
130
+ * Procurement module
131
+ * @public
132
+ */
133
+ export class ProcurementAPI extends Manage {
134
+ constructor(props: CWMOptions) {
135
+ super(props)
136
+ }
137
+
138
+ getProcurementAdjustments(params: CommonParameters = {}): Promise<Array<ProcurementAdjustment>> {
139
+ return this.request({
140
+ path: `/procurement/adjustments`,
141
+ method: 'get',
142
+ params,
143
+ })
144
+ }
145
+
146
+ postProcurementAdjustments(adjustment: ProcurementAdjustment): Promise<ProcurementAdjustment> {
147
+ return this.request({
148
+ path: `/procurement/adjustments`,
149
+ method: 'post',
150
+ data: adjustment,
151
+ })
152
+ }
153
+
154
+ getProcurementAdjustmentsById(
155
+ id: number,
156
+ params: CommonParameters = {},
157
+ ): Promise<ProcurementAdjustment> {
158
+ return this.request({
159
+ path: `/procurement/adjustments/${id}`,
160
+ method: 'get',
161
+ params,
162
+ })
163
+ }
164
+
165
+ deleteProcurementAdjustmentsById(id: number): Promise<NoContentResponse> {
166
+ return this.request({
167
+ path: `/procurement/adjustments/${id}`,
168
+ method: 'delete',
169
+ })
170
+ }
171
+
172
+ putProcurementAdjustmentsById(
173
+ id: number,
174
+ adjustment: ProcurementAdjustment,
175
+ ): Promise<ProcurementAdjustment> {
176
+ return this.request({
177
+ path: `/procurement/adjustments/${id}`,
178
+ method: 'put',
179
+ data: adjustment,
180
+ })
181
+ }
182
+
183
+ patchProcurementAdjustmentsById(
184
+ id: number,
185
+ patchOperations: Array<PatchOperation>,
186
+ ): Promise<ProcurementAdjustment> {
187
+ return this.request({
188
+ path: `/procurement/adjustments/${id}`,
189
+ method: 'patch',
190
+ data: patchOperations,
191
+ })
192
+ }
193
+
194
+ getProcurementAdjustmentsByParentIdDetails(
195
+ parentId: number,
196
+ params: CommonParameters = {},
197
+ ): Promise<Array<AdjustmentDetail>> {
198
+ return this.request({
199
+ path: `/procurement/adjustments/${parentId}/details`,
200
+ method: 'get',
201
+ params,
202
+ })
203
+ }
204
+
205
+ postProcurementAdjustmentsByParentIdDetails(
206
+ parentId: number,
207
+ adjustmentDetail: AdjustmentDetail,
208
+ ): Promise<AdjustmentDetail> {
209
+ return this.request({
210
+ path: `/procurement/adjustments/${parentId}/details`,
211
+ method: 'post',
212
+ data: adjustmentDetail,
213
+ })
214
+ }
215
+
216
+ getProcurementAdjustmentsByParentIdDetailsById(
217
+ id: number,
218
+ parentId: number,
219
+ params: CommonParameters = {},
220
+ ): Promise<AdjustmentDetail> {
221
+ return this.request({
222
+ path: `/procurement/adjustments/${parentId}/details/${id}`,
223
+ method: 'get',
224
+ params,
225
+ })
226
+ }
227
+
228
+ deleteProcurementAdjustmentsByParentIdDetailsById(
229
+ id: number,
230
+ parentId: number,
231
+ ): Promise<NoContentResponse> {
232
+ return this.request({
233
+ path: `/procurement/adjustments/${parentId}/details/${id}`,
234
+ method: 'delete',
235
+ })
236
+ }
237
+
238
+ getProcurementAdjustmentsByParentIdDetailsCount(
239
+ parentId: number,
240
+ params: CommonParameters = {},
241
+ ): Promise<Count> {
242
+ return this.request({
243
+ path: `/procurement/adjustments/${parentId}/details/count`,
244
+ method: 'get',
245
+ params,
246
+ })
247
+ }
248
+
249
+ getProcurementAdjustmentsCount(params: CommonParameters = {}): Promise<Count> {
250
+ return this.request({
251
+ path: `/procurement/adjustments/count`,
252
+ method: 'get',
253
+ params,
254
+ })
255
+ }
256
+
257
+ getProcurementAdjustmentsTypes(params: CommonParameters = {}): Promise<Array<AdjustmentType>> {
258
+ return this.request({
259
+ path: `/procurement/adjustments/types`,
260
+ method: 'get',
261
+ params,
262
+ })
263
+ }
264
+
265
+ postProcurementAdjustmentsTypes(adjustmentTypes: AdjustmentType): Promise<AdjustmentType> {
266
+ return this.request({
267
+ path: `/procurement/adjustments/types`,
268
+ method: 'post',
269
+ data: adjustmentTypes,
270
+ })
271
+ }
272
+
273
+ getProcurementAdjustmentsTypesById(
274
+ id: number,
275
+ params: CommonParameters = {},
276
+ ): Promise<AdjustmentType> {
277
+ return this.request({
278
+ path: `/procurement/adjustments/types/${id}`,
279
+ method: 'get',
280
+ params,
281
+ })
282
+ }
283
+
284
+ deleteProcurementAdjustmentsTypesById(id: number): Promise<NoContentResponse> {
285
+ return this.request({
286
+ path: `/procurement/adjustments/types/${id}`,
287
+ method: 'delete',
288
+ })
289
+ }
290
+
291
+ putProcurementAdjustmentsTypesById(
292
+ id: number,
293
+ adjustmentTypes: AdjustmentType,
294
+ ): Promise<AdjustmentType> {
295
+ return this.request({
296
+ path: `/procurement/adjustments/types/${id}`,
297
+ method: 'put',
298
+ data: adjustmentTypes,
299
+ })
300
+ }
301
+
302
+ patchProcurementAdjustmentsTypesById(
303
+ id: number,
304
+ patchOperations: Array<PatchOperation>,
305
+ ): Promise<AdjustmentType> {
306
+ return this.request({
307
+ path: `/procurement/adjustments/types/${id}`,
308
+ method: 'patch',
309
+ data: patchOperations,
310
+ })
311
+ }
312
+
313
+ getProcurementAdjustmentsTypesByIdInfo(
314
+ id: number,
315
+ params: CommonParameters = {},
316
+ ): Promise<AdjustmentTypeInfo> {
317
+ return this.request({
318
+ path: `/procurement/adjustments/types/${id}/info`,
319
+ method: 'get',
320
+ params,
321
+ })
322
+ }
323
+
324
+ getProcurementAdjustmentsTypesByIdUsages(
325
+ id: number,
326
+ params: CommonParameters = {},
327
+ ): Promise<Array<Usage>> {
328
+ return this.request({
329
+ path: `/procurement/adjustments/types/${id}/usages`,
330
+ method: 'get',
331
+ params,
332
+ })
333
+ }
334
+
335
+ getProcurementAdjustmentsTypesByIdUsagesList(
336
+ id: number,
337
+ params: CommonParameters = {},
338
+ ): Promise<Array<Usage>> {
339
+ return this.request({
340
+ path: `/procurement/adjustments/types/${id}/usages/list`,
341
+ method: 'get',
342
+ params,
343
+ })
344
+ }
345
+
346
+ getProcurementAdjustmentsTypesCount(params: CommonParameters = {}): Promise<Count> {
347
+ return this.request({
348
+ path: `/procurement/adjustments/types/count`,
349
+ method: 'get',
350
+ params,
351
+ })
352
+ }
353
+
354
+ getProcurementAdjustmentsTypesInfo(
355
+ params: CommonParameters = {},
356
+ ): Promise<Array<AdjustmentTypeInfo>> {
357
+ return this.request({
358
+ path: `/procurement/adjustments/types/info`,
359
+ method: 'get',
360
+ params,
361
+ })
362
+ }
363
+
364
+ getProcurementAdjustmentsTypesInfoCount(params: CommonParameters = {}): Promise<Count> {
365
+ return this.request({
366
+ path: `/procurement/adjustments/types/info/count`,
367
+ method: 'get',
368
+ params,
369
+ })
370
+ }
371
+
372
+ getProcurementCatalog(params: CommonParameters = {}): Promise<Array<CatalogItem>> {
373
+ return this.request({
374
+ path: `/procurement/catalog`,
375
+ method: 'get',
376
+ params,
377
+ })
378
+ }
379
+
380
+ postProcurementCatalog(catalogItem: CatalogItem): Promise<CatalogItem> {
381
+ return this.request({
382
+ path: `/procurement/catalog`,
383
+ method: 'post',
384
+ data: catalogItem,
385
+ })
386
+ }
387
+
388
+ getProcurementCatalogByCatalogItemIdentifierQuantityOnHand(
389
+ catalogItemIdentifier: string,
390
+ warehouseBinId: number,
391
+ params: CommonParameters = {},
392
+ ): Promise<Count> {
393
+ return this.request({
394
+ path: `/procurement/catalog/${catalogItemIdentifier}/quantityOnHand`,
395
+ method: 'get',
396
+ params,
397
+ })
398
+ }
399
+
400
+ getProcurementCatalogById(id: number, params: CommonParameters = {}): Promise<CatalogItem> {
401
+ return this.request({
402
+ path: `/procurement/catalog/${id}`,
403
+ method: 'get',
404
+ params,
405
+ })
406
+ }
407
+
408
+ deleteProcurementCatalogById(id: number): Promise<NoContentResponse> {
409
+ return this.request({
410
+ path: `/procurement/catalog/${id}`,
411
+ method: 'delete',
412
+ })
413
+ }
414
+
415
+ putProcurementCatalogById(id: number, catalogItem: CatalogItem): Promise<CatalogItem> {
416
+ return this.request({
417
+ path: `/procurement/catalog/${id}`,
418
+ method: 'put',
419
+ data: catalogItem,
420
+ })
421
+ }
422
+
423
+ patchProcurementCatalogById(
424
+ id: number,
425
+ patchOperations: Array<PatchOperation>,
426
+ ): Promise<CatalogItem> {
427
+ return this.request({
428
+ path: `/procurement/catalog/${id}`,
429
+ method: 'patch',
430
+ data: patchOperations,
431
+ })
432
+ }
433
+
434
+ getProcurementCatalogByIdInfo(
435
+ id: number,
436
+ params: CommonParameters = {},
437
+ ): Promise<CatalogItemInfo> {
438
+ return this.request({
439
+ path: `/procurement/catalog/${id}/info`,
440
+ method: 'get',
441
+ params,
442
+ })
443
+ }
444
+
445
+ postProcurementCatalogByIdPricing(
446
+ id: number,
447
+ catalogPricing: CatalogPricing,
448
+ ): Promise<CatalogPricing> {
449
+ return this.request({
450
+ path: `/procurement/catalog/${id}/pricing`,
451
+ method: 'post',
452
+ data: catalogPricing,
453
+ })
454
+ }
455
+
456
+ getProcurementCatalogByParentIdComponents(
457
+ parentId: number,
458
+ params: CommonParameters = {},
459
+ ): Promise<Array<CatalogComponent>> {
460
+ return this.request({
461
+ path: `/procurement/catalog/${parentId}/components`,
462
+ method: 'get',
463
+ params,
464
+ })
465
+ }
466
+
467
+ postProcurementCatalogByParentIdComponents(
468
+ parentId: number,
469
+ catalogComponent: CatalogComponent,
470
+ ): Promise<CatalogComponent> {
471
+ return this.request({
472
+ path: `/procurement/catalog/${parentId}/components`,
473
+ method: 'post',
474
+ data: catalogComponent,
475
+ })
476
+ }
477
+
478
+ getProcurementCatalogByParentIdComponentsById(
479
+ id: number,
480
+ parentId: number,
481
+ params: CommonParameters = {},
482
+ ): Promise<CatalogComponent> {
483
+ return this.request({
484
+ path: `/procurement/catalog/${parentId}/components/${id}`,
485
+ method: 'get',
486
+ params,
487
+ })
488
+ }
489
+
490
+ deleteProcurementCatalogByParentIdComponentsById(
491
+ id: number,
492
+ parentId: number,
493
+ ): Promise<NoContentResponse> {
494
+ return this.request({
495
+ path: `/procurement/catalog/${parentId}/components/${id}`,
496
+ method: 'delete',
497
+ })
498
+ }
499
+
500
+ putProcurementCatalogByParentIdComponentsById(
501
+ id: number,
502
+ parentId: number,
503
+ catalogComponent: CatalogComponent,
504
+ ): Promise<CatalogComponent> {
505
+ return this.request({
506
+ path: `/procurement/catalog/${parentId}/components/${id}`,
507
+ method: 'put',
508
+ data: catalogComponent,
509
+ })
510
+ }
511
+
512
+ patchProcurementCatalogByParentIdComponentsById(
513
+ id: number,
514
+ parentId: number,
515
+ patchOperations: Array<PatchOperation>,
516
+ ): Promise<CatalogComponent> {
517
+ return this.request({
518
+ path: `/procurement/catalog/${parentId}/components/${id}`,
519
+ method: 'patch',
520
+ data: patchOperations,
521
+ })
522
+ }
523
+
524
+ getProcurementCatalogByParentIdComponentsCount(
525
+ parentId: number,
526
+ params: CommonParameters = {},
527
+ ): Promise<Count> {
528
+ return this.request({
529
+ path: `/procurement/catalog/${parentId}/components/count`,
530
+ method: 'get',
531
+ params,
532
+ })
533
+ }
534
+
535
+ getProcurementCatalogByParentIdInventory(
536
+ parentId: number,
537
+ params: CommonParameters = {},
538
+ ): Promise<Array<CatalogInventory>> {
539
+ return this.request({
540
+ path: `/procurement/catalog/${parentId}/inventory`,
541
+ method: 'get',
542
+ params,
543
+ })
544
+ }
545
+
546
+ getProcurementCatalogByParentIdInventoryById(
547
+ id: number,
548
+ parentId: number,
549
+ params: CommonParameters = {},
550
+ ): Promise<CatalogInventory> {
551
+ return this.request({
552
+ path: `/procurement/catalog/${parentId}/inventory/${id}`,
553
+ method: 'get',
554
+ params,
555
+ })
556
+ }
557
+
558
+ getProcurementCatalogByParentIdInventoryCount(
559
+ parentId: number,
560
+ params: CommonParameters = {},
561
+ ): Promise<Count> {
562
+ return this.request({
563
+ path: `/procurement/catalog/${parentId}/inventory/count`,
564
+ method: 'get',
565
+ params,
566
+ })
567
+ }
568
+
569
+ getProcurementCatalogByParentIdMinimumStockByWarehouse(
570
+ parentId: number,
571
+ params: CommonParameters = {},
572
+ ): Promise<Array<MinimumStockByWarehouse>> {
573
+ return this.request({
574
+ path: `/procurement/catalog/${parentId}/minimumStockByWarehouse`,
575
+ method: 'get',
576
+ params,
577
+ })
578
+ }
579
+
580
+ postProcurementCatalogByParentIdMinimumStockByWarehouse(
581
+ parentId: number,
582
+ minimumStockByWarehouse: MinimumStockByWarehouse,
583
+ ): Promise<MinimumStockByWarehouse> {
584
+ return this.request({
585
+ path: `/procurement/catalog/${parentId}/minimumStockByWarehouse`,
586
+ method: 'post',
587
+ data: minimumStockByWarehouse,
588
+ })
589
+ }
590
+
591
+ getProcurementCatalogByParentIdMinimumStockByWarehouseById(
592
+ id: number,
593
+ parentId: number,
594
+ params: CommonParameters = {},
595
+ ): Promise<MinimumStockByWarehouse> {
596
+ return this.request({
597
+ path: `/procurement/catalog/${parentId}/minimumStockByWarehouse/${id}`,
598
+ method: 'get',
599
+ params,
600
+ })
601
+ }
602
+
603
+ deleteProcurementCatalogByParentIdMinimumStockByWarehouseById(
604
+ id: number,
605
+ parentId: number,
606
+ ): Promise<NoContentResponse> {
607
+ return this.request({
608
+ path: `/procurement/catalog/${parentId}/minimumStockByWarehouse/${id}`,
609
+ method: 'delete',
610
+ })
611
+ }
612
+
613
+ putProcurementCatalogByParentIdMinimumStockByWarehouseById(
614
+ id: number,
615
+ parentId: number,
616
+ minimumStockByWarehouse: MinimumStockByWarehouse,
617
+ ): Promise<MinimumStockByWarehouse> {
618
+ return this.request({
619
+ path: `/procurement/catalog/${parentId}/minimumStockByWarehouse/${id}`,
620
+ method: 'put',
621
+ data: minimumStockByWarehouse,
622
+ })
623
+ }
624
+
625
+ patchProcurementCatalogByParentIdMinimumStockByWarehouseById(
626
+ id: number,
627
+ parentId: number,
628
+ patchOperations: Array<PatchOperation>,
629
+ ): Promise<MinimumStockByWarehouse> {
630
+ return this.request({
631
+ path: `/procurement/catalog/${parentId}/minimumStockByWarehouse/${id}`,
632
+ method: 'patch',
633
+ data: patchOperations,
634
+ })
635
+ }
636
+
637
+ getProcurementCatalogByParentIdMinimumStockByWarehouseCount(
638
+ parentId: number,
639
+ params: CommonParameters = {},
640
+ ): Promise<Count> {
641
+ return this.request({
642
+ path: `/procurement/catalog/${parentId}/minimumStockByWarehouse/count`,
643
+ method: 'get',
644
+ params,
645
+ })
646
+ }
647
+
648
+ getProcurementCatalogCount(params: CommonParameters = {}): Promise<Count> {
649
+ return this.request({
650
+ path: `/procurement/catalog/count`,
651
+ method: 'get',
652
+ params,
653
+ })
654
+ }
655
+
656
+ getProcurementCatalogInfo(params: CommonParameters = {}): Promise<Array<CatalogItemInfo>> {
657
+ return this.request({
658
+ path: `/procurement/catalog/info`,
659
+ method: 'get',
660
+ params,
661
+ })
662
+ }
663
+
664
+ getProcurementCatalogInfoCount(params: CommonParameters = {}): Promise<Count> {
665
+ return this.request({
666
+ path: `/procurement/catalog/info/count`,
667
+ method: 'get',
668
+ params,
669
+ })
670
+ }
671
+
672
+ getProcurementCategories(params: CommonParameters = {}): Promise<Array<Category>> {
673
+ return this.request({
674
+ path: `/procurement/categories`,
675
+ method: 'get',
676
+ params,
677
+ })
678
+ }
679
+
680
+ postProcurementCategories(category: Category): Promise<Category> {
681
+ return this.request({
682
+ path: `/procurement/categories`,
683
+ method: 'post',
684
+ data: category,
685
+ })
686
+ }
687
+
688
+ getProcurementCategoriesById(id: number, params: CommonParameters = {}): Promise<Category> {
689
+ return this.request({
690
+ path: `/procurement/categories/${id}`,
691
+ method: 'get',
692
+ params,
693
+ })
694
+ }
695
+
696
+ deleteProcurementCategoriesById(id: number): Promise<NoContentResponse> {
697
+ return this.request({
698
+ path: `/procurement/categories/${id}`,
699
+ method: 'delete',
700
+ })
701
+ }
702
+
703
+ putProcurementCategoriesById(id: number, category: Category): Promise<Category> {
704
+ return this.request({
705
+ path: `/procurement/categories/${id}`,
706
+ method: 'put',
707
+ data: category,
708
+ })
709
+ }
710
+
711
+ patchProcurementCategoriesById(
712
+ id: number,
713
+ patchOperations: Array<PatchOperation>,
714
+ ): Promise<Category> {
715
+ return this.request({
716
+ path: `/procurement/categories/${id}`,
717
+ method: 'patch',
718
+ data: patchOperations,
719
+ })
720
+ }
721
+
722
+ getProcurementCategoriesByIdInfo(
723
+ id: number,
724
+ params: CommonParameters = {},
725
+ ): Promise<CategoryInfo> {
726
+ return this.request({
727
+ path: `/procurement/categories/${id}/info`,
728
+ method: 'get',
729
+ params,
730
+ })
731
+ }
732
+
733
+ getProcurementCategoriesByParentIdSubcategories(
734
+ parentId: number,
735
+ params: CommonParameters = {},
736
+ ): Promise<Array<LegacySubCategory>> {
737
+ return this.request({
738
+ path: `/procurement/categories/${parentId}/subcategories/`,
739
+ method: 'get',
740
+ params,
741
+ })
742
+ }
743
+
744
+ postProcurementCategoriesByParentIdSubcategories(
745
+ parentId: number,
746
+ subCategory: LegacySubCategory,
747
+ ): Promise<LegacySubCategory> {
748
+ return this.request({
749
+ path: `/procurement/categories/${parentId}/subcategories/`,
750
+ method: 'post',
751
+ data: subCategory,
752
+ })
753
+ }
754
+
755
+ getProcurementCategoriesByParentIdSubcategoriesById(
756
+ id: number,
757
+ parentId: number,
758
+ params: CommonParameters = {},
759
+ ): Promise<LegacySubCategory> {
760
+ return this.request({
761
+ path: `/procurement/categories/${parentId}/subcategories/${id}`,
762
+ method: 'get',
763
+ params,
764
+ })
765
+ }
766
+
767
+ deleteProcurementCategoriesByParentIdSubcategoriesById(
768
+ id: number,
769
+ parentId: number,
770
+ ): Promise<NoContentResponse> {
771
+ return this.request({
772
+ path: `/procurement/categories/${parentId}/subcategories/${id}`,
773
+ method: 'delete',
774
+ })
775
+ }
776
+
777
+ putProcurementCategoriesByParentIdSubcategoriesById(
778
+ id: number,
779
+ parentId: number,
780
+ subCategory: LegacySubCategory,
781
+ ): Promise<LegacySubCategory> {
782
+ return this.request({
783
+ path: `/procurement/categories/${parentId}/subcategories/${id}`,
784
+ method: 'put',
785
+ data: subCategory,
786
+ })
787
+ }
788
+
789
+ patchProcurementCategoriesByParentIdSubcategoriesById(
790
+ id: number,
791
+ parentId: number,
792
+ patchOperations: Array<PatchOperation>,
793
+ ): Promise<LegacySubCategory> {
794
+ return this.request({
795
+ path: `/procurement/categories/${parentId}/subcategories/${id}`,
796
+ method: 'patch',
797
+ data: patchOperations,
798
+ })
799
+ }
800
+
801
+ getProcurementCategoriesByParentIdSubcategoriesByIdInfo(
802
+ id: number,
803
+ parentId: number,
804
+ params: CommonParameters = {},
805
+ ): Promise<LegacySubCategoryInfo> {
806
+ return this.request({
807
+ path: `/procurement/categories/${parentId}/subcategories/${id}/info`,
808
+ method: 'get',
809
+ params,
810
+ })
811
+ }
812
+
813
+ getProcurementCategoriesByParentIdSubcategoriesCount(
814
+ parentId: number,
815
+ params: CommonParameters = {},
816
+ ): Promise<Count> {
817
+ return this.request({
818
+ path: `/procurement/categories/${parentId}/subcategories/count`,
819
+ method: 'get',
820
+ params,
821
+ })
822
+ }
823
+
824
+ getProcurementCategoriesByParentIdSubcategoriesInfo(
825
+ parentId: number,
826
+ params: CommonParameters = {},
827
+ ): Promise<Array<LegacySubCategoryInfo>> {
828
+ return this.request({
829
+ path: `/procurement/categories/${parentId}/subcategories/info`,
830
+ method: 'get',
831
+ params,
832
+ })
833
+ }
834
+
835
+ getProcurementCategoriesByParentIdSubcategoriesInfoCount(
836
+ parentId: number,
837
+ params: CommonParameters = {},
838
+ ): Promise<Count> {
839
+ return this.request({
840
+ path: `/procurement/categories/${parentId}/subcategories/info/count`,
841
+ method: 'get',
842
+ params,
843
+ })
844
+ }
845
+
846
+ getProcurementCategoriesCount(params: CommonParameters = {}): Promise<Count> {
847
+ return this.request({
848
+ path: `/procurement/categories/count`,
849
+ method: 'get',
850
+ params,
851
+ })
852
+ }
853
+
854
+ getProcurementCategoriesInfo(params: CommonParameters = {}): Promise<Array<CategoryInfo>> {
855
+ return this.request({
856
+ path: `/procurement/categories/info`,
857
+ method: 'get',
858
+ params,
859
+ })
860
+ }
861
+
862
+ getProcurementCategoriesInfoCount(params: CommonParameters = {}): Promise<Count> {
863
+ return this.request({
864
+ path: `/procurement/categories/info/count`,
865
+ method: 'get',
866
+ params,
867
+ })
868
+ }
869
+
870
+ getProcurementManufacturers(params: CommonParameters = {}): Promise<Array<Manufacturer>> {
871
+ return this.request({
872
+ path: `/procurement/manufacturers`,
873
+ method: 'get',
874
+ params,
875
+ })
876
+ }
877
+
878
+ postProcurementManufacturers(manufacturer: Manufacturer): Promise<Manufacturer> {
879
+ return this.request({
880
+ path: `/procurement/manufacturers`,
881
+ method: 'post',
882
+ data: manufacturer,
883
+ })
884
+ }
885
+
886
+ getProcurementManufacturersById(
887
+ id: number,
888
+ params: CommonParameters = {},
889
+ ): Promise<Manufacturer> {
890
+ return this.request({
891
+ path: `/procurement/manufacturers/${id}`,
892
+ method: 'get',
893
+ params,
894
+ })
895
+ }
896
+
897
+ deleteProcurementManufacturersById(id: number): Promise<NoContentResponse> {
898
+ return this.request({
899
+ path: `/procurement/manufacturers/${id}`,
900
+ method: 'delete',
901
+ })
902
+ }
903
+
904
+ putProcurementManufacturersById(id: number, manufacturer: Manufacturer): Promise<Manufacturer> {
905
+ return this.request({
906
+ path: `/procurement/manufacturers/${id}`,
907
+ method: 'put',
908
+ data: manufacturer,
909
+ })
910
+ }
911
+
912
+ patchProcurementManufacturersById(
913
+ id: number,
914
+ patchOperations: Array<PatchOperation>,
915
+ ): Promise<Manufacturer> {
916
+ return this.request({
917
+ path: `/procurement/manufacturers/${id}`,
918
+ method: 'patch',
919
+ data: patchOperations,
920
+ })
921
+ }
922
+
923
+ getProcurementManufacturersByIdInfo(
924
+ id: number,
925
+ params: CommonParameters = {},
926
+ ): Promise<ManufacturerInfo> {
927
+ return this.request({
928
+ path: `/procurement/manufacturers/${id}/info`,
929
+ method: 'get',
930
+ params,
931
+ })
932
+ }
933
+
934
+ getProcurementManufacturersCount(params: CommonParameters = {}): Promise<Count> {
935
+ return this.request({
936
+ path: `/procurement/manufacturers/count`,
937
+ method: 'get',
938
+ params,
939
+ })
940
+ }
941
+
942
+ getProcurementManufacturersCountInfo(params: CommonParameters = {}): Promise<Count> {
943
+ return this.request({
944
+ path: `/procurement/manufacturers/count/info`,
945
+ method: 'get',
946
+ params,
947
+ })
948
+ }
949
+
950
+ getProcurementManufacturersInfo(params: CommonParameters = {}): Promise<Array<ManufacturerInfo>> {
951
+ return this.request({
952
+ path: `/procurement/manufacturers/info`,
953
+ method: 'get',
954
+ params,
955
+ })
956
+ }
957
+
958
+ getProcurementOnhandserialnumbers(
959
+ params: CommonParameters = {},
960
+ ): Promise<Array<OnHandSerialNumber>> {
961
+ return this.request({
962
+ path: `/procurement/onhandserialnumbers`,
963
+ method: 'get',
964
+ params,
965
+ })
966
+ }
967
+
968
+ getProcurementOnhandserialnumbersById(
969
+ id: number,
970
+ params: CommonParameters = {},
971
+ ): Promise<OnHandSerialNumber> {
972
+ return this.request({
973
+ path: `/procurement/onhandserialnumbers/${id}`,
974
+ method: 'get',
975
+ params,
976
+ })
977
+ }
978
+
979
+ getProcurementOnhandserialnumbersCount(params: CommonParameters = {}): Promise<Count> {
980
+ return this.request({
981
+ path: `/procurement/onhandserialnumbers/count`,
982
+ method: 'get',
983
+ params,
984
+ })
985
+ }
986
+
987
+ getProcurementPricingschedules(params: CommonParameters = {}): Promise<Array<PricingSchedule>> {
988
+ return this.request({
989
+ path: `/procurement/pricingschedules`,
990
+ method: 'get',
991
+ params,
992
+ })
993
+ }
994
+
995
+ postProcurementPricingschedules(pricingSchedule: PricingSchedule): Promise<PricingSchedule> {
996
+ return this.request({
997
+ path: `/procurement/pricingschedules`,
998
+ method: 'post',
999
+ data: pricingSchedule,
1000
+ })
1001
+ }
1002
+
1003
+ getProcurementPricingschedulesByGrandparentIdDetailsByParentIdBreaks(
1004
+ parentId: number,
1005
+ grandparentId: number,
1006
+ params: CommonParameters = {},
1007
+ ): Promise<Array<PricingBreak>> {
1008
+ return this.request({
1009
+ path: `/procurement/pricingschedules/${grandparentId}/details/${parentId}/breaks`,
1010
+ method: 'get',
1011
+ params,
1012
+ })
1013
+ }
1014
+
1015
+ postProcurementPricingschedulesByGrandparentIdDetailsByParentIdBreaks(
1016
+ parentId: number,
1017
+ grandparentId: number,
1018
+ pricingBreak: PricingBreak,
1019
+ ): Promise<PricingBreak> {
1020
+ return this.request({
1021
+ path: `/procurement/pricingschedules/${grandparentId}/details/${parentId}/breaks`,
1022
+ method: 'post',
1023
+ data: pricingBreak,
1024
+ })
1025
+ }
1026
+
1027
+ getProcurementPricingschedulesByGrandparentIdDetailsByParentIdBreaksById(
1028
+ id: number,
1029
+ parentId: number,
1030
+ grandparentId: number,
1031
+ params: CommonParameters = {},
1032
+ ): Promise<PricingBreak> {
1033
+ return this.request({
1034
+ path: `/procurement/pricingschedules/${grandparentId}/details/${parentId}/breaks/${id}`,
1035
+ method: 'get',
1036
+ params,
1037
+ })
1038
+ }
1039
+
1040
+ deleteProcurementPricingschedulesByGrandparentIdDetailsByParentIdBreaksById(
1041
+ id: number,
1042
+ parentId: number,
1043
+ grandparentId: number,
1044
+ ): Promise<NoContentResponse> {
1045
+ return this.request({
1046
+ path: `/procurement/pricingschedules/${grandparentId}/details/${parentId}/breaks/${id}`,
1047
+ method: 'delete',
1048
+ })
1049
+ }
1050
+
1051
+ putProcurementPricingschedulesByGrandparentIdDetailsByParentIdBreaksById(
1052
+ id: number,
1053
+ parentId: number,
1054
+ grandparentId: number,
1055
+ pricingBreak: PricingBreak,
1056
+ ): Promise<PricingBreak> {
1057
+ return this.request({
1058
+ path: `/procurement/pricingschedules/${grandparentId}/details/${parentId}/breaks/${id}`,
1059
+ method: 'put',
1060
+ data: pricingBreak,
1061
+ })
1062
+ }
1063
+
1064
+ patchProcurementPricingschedulesByGrandparentIdDetailsByParentIdBreaksById(
1065
+ id: number,
1066
+ parentId: number,
1067
+ grandparentId: number,
1068
+ patchOperations: Array<PatchOperation>,
1069
+ ): Promise<PricingBreak> {
1070
+ return this.request({
1071
+ path: `/procurement/pricingschedules/${grandparentId}/details/${parentId}/breaks/${id}`,
1072
+ method: 'patch',
1073
+ data: patchOperations,
1074
+ })
1075
+ }
1076
+
1077
+ getProcurementPricingschedulesByGrandparentIdDetailsByParentIdBreaksCount(
1078
+ parentId: number,
1079
+ grandparentId: number,
1080
+ params: CommonParameters = {},
1081
+ ): Promise<Count> {
1082
+ return this.request({
1083
+ path: `/procurement/pricingschedules/${grandparentId}/details/${parentId}/breaks/count`,
1084
+ method: 'get',
1085
+ params,
1086
+ })
1087
+ }
1088
+
1089
+ getProcurementPricingschedulesById(
1090
+ id: number,
1091
+ params: CommonParameters = {},
1092
+ ): Promise<PricingSchedule> {
1093
+ return this.request({
1094
+ path: `/procurement/pricingschedules/${id}`,
1095
+ method: 'get',
1096
+ params,
1097
+ })
1098
+ }
1099
+
1100
+ deleteProcurementPricingschedulesById(id: number): Promise<NoContentResponse> {
1101
+ return this.request({
1102
+ path: `/procurement/pricingschedules/${id}`,
1103
+ method: 'delete',
1104
+ })
1105
+ }
1106
+
1107
+ putProcurementPricingschedulesById(
1108
+ id: number,
1109
+ pricingSchedule: PricingSchedule,
1110
+ ): Promise<PricingSchedule> {
1111
+ return this.request({
1112
+ path: `/procurement/pricingschedules/${id}`,
1113
+ method: 'put',
1114
+ data: pricingSchedule,
1115
+ })
1116
+ }
1117
+
1118
+ patchProcurementPricingschedulesById(
1119
+ id: number,
1120
+ patchOperations: Array<PatchOperation>,
1121
+ ): Promise<PricingSchedule> {
1122
+ return this.request({
1123
+ path: `/procurement/pricingschedules/${id}`,
1124
+ method: 'patch',
1125
+ data: patchOperations,
1126
+ })
1127
+ }
1128
+
1129
+ getProcurementPricingschedulesByParentIdDetails(
1130
+ parentId: number,
1131
+ params: CommonParameters = {},
1132
+ ): Promise<Array<PricingDetail>> {
1133
+ return this.request({
1134
+ path: `/procurement/pricingschedules/${parentId}/details`,
1135
+ method: 'get',
1136
+ params,
1137
+ })
1138
+ }
1139
+
1140
+ postProcurementPricingschedulesByParentIdDetails(
1141
+ parentId: number,
1142
+ pricingDetail: PricingDetail,
1143
+ ): Promise<PricingDetail> {
1144
+ return this.request({
1145
+ path: `/procurement/pricingschedules/${parentId}/details`,
1146
+ method: 'post',
1147
+ data: pricingDetail,
1148
+ })
1149
+ }
1150
+
1151
+ getProcurementPricingschedulesByParentIdDetailsById(
1152
+ id: number,
1153
+ parentId: number,
1154
+ params: CommonParameters = {},
1155
+ ): Promise<PricingDetail> {
1156
+ return this.request({
1157
+ path: `/procurement/pricingschedules/${parentId}/details/${id}`,
1158
+ method: 'get',
1159
+ params,
1160
+ })
1161
+ }
1162
+
1163
+ deleteProcurementPricingschedulesByParentIdDetailsById(
1164
+ id: number,
1165
+ parentId: number,
1166
+ ): Promise<NoContentResponse> {
1167
+ return this.request({
1168
+ path: `/procurement/pricingschedules/${parentId}/details/${id}`,
1169
+ method: 'delete',
1170
+ })
1171
+ }
1172
+
1173
+ putProcurementPricingschedulesByParentIdDetailsById(
1174
+ id: number,
1175
+ parentId: number,
1176
+ pricingDetail: PricingDetail,
1177
+ ): Promise<PricingDetail> {
1178
+ return this.request({
1179
+ path: `/procurement/pricingschedules/${parentId}/details/${id}`,
1180
+ method: 'put',
1181
+ data: pricingDetail,
1182
+ })
1183
+ }
1184
+
1185
+ patchProcurementPricingschedulesByParentIdDetailsById(
1186
+ id: number,
1187
+ parentId: number,
1188
+ patchOperations: Array<PatchOperation>,
1189
+ ): Promise<PricingDetail> {
1190
+ return this.request({
1191
+ path: `/procurement/pricingschedules/${parentId}/details/${id}`,
1192
+ method: 'patch',
1193
+ data: patchOperations,
1194
+ })
1195
+ }
1196
+
1197
+ getProcurementPricingschedulesByParentIdDetailsCount(
1198
+ parentId: number,
1199
+ params: CommonParameters = {},
1200
+ ): Promise<Count> {
1201
+ return this.request({
1202
+ path: `/procurement/pricingschedules/${parentId}/details/count`,
1203
+ method: 'get',
1204
+ params,
1205
+ })
1206
+ }
1207
+
1208
+ getProcurementPricingschedulesCount(params: CommonParameters = {}): Promise<Count> {
1209
+ return this.request({
1210
+ path: `/procurement/pricingschedules/count`,
1211
+ method: 'get',
1212
+ params,
1213
+ })
1214
+ }
1215
+
1216
+ getProcurementProducts(params: CommonParameters = {}): Promise<Array<ProductItem>> {
1217
+ return this.request({
1218
+ path: `/procurement/products`,
1219
+ method: 'get',
1220
+ params,
1221
+ })
1222
+ }
1223
+
1224
+ postProcurementProducts(productItem: ProductItem): Promise<ProductItem> {
1225
+ return this.request({
1226
+ path: `/procurement/products`,
1227
+ method: 'post',
1228
+ data: productItem,
1229
+ })
1230
+ }
1231
+
1232
+ getProcurementProductsById(id: number, params: CommonParameters = {}): Promise<ProductItem> {
1233
+ return this.request({
1234
+ path: `/procurement/products/${id}`,
1235
+ method: 'get',
1236
+ params,
1237
+ })
1238
+ }
1239
+
1240
+ deleteProcurementProductsById(id: number): Promise<NoContentResponse> {
1241
+ return this.request({
1242
+ path: `/procurement/products/${id}`,
1243
+ method: 'delete',
1244
+ })
1245
+ }
1246
+
1247
+ putProcurementProductsById(id: number, productItem: ProductItem): Promise<ProductItem> {
1248
+ return this.request({
1249
+ path: `/procurement/products/${id}`,
1250
+ method: 'put',
1251
+ data: productItem,
1252
+ })
1253
+ }
1254
+
1255
+ patchProcurementProductsById(
1256
+ id: number,
1257
+ patchOperations: Array<PatchOperation>,
1258
+ ): Promise<ProductItem> {
1259
+ return this.request({
1260
+ path: `/procurement/products/${id}`,
1261
+ method: 'patch',
1262
+ data: patchOperations,
1263
+ })
1264
+ }
1265
+
1266
+ postProcurementProductsByIdDetach(id: number, detach: ProductDetach): Promise<NoContentResponse> {
1267
+ return this.request({
1268
+ path: `/procurement/products/${id}/detach`,
1269
+ method: 'post',
1270
+ data: detach,
1271
+ })
1272
+ }
1273
+
1274
+ getProcurementProductsByParentIdComponents(
1275
+ parentId: number,
1276
+ params: CommonParameters = {},
1277
+ ): Promise<Array<ProductComponent>> {
1278
+ return this.request({
1279
+ path: `/procurement/products/${parentId}/components`,
1280
+ method: 'get',
1281
+ params,
1282
+ })
1283
+ }
1284
+
1285
+ postProcurementProductsByParentIdComponents(
1286
+ parentId: number,
1287
+ productComponent: ProductComponent,
1288
+ ): Promise<Array<ProductComponent>> {
1289
+ return this.request({
1290
+ path: `/procurement/products/${parentId}/components`,
1291
+ method: 'post',
1292
+ data: productComponent,
1293
+ })
1294
+ }
1295
+
1296
+ getProcurementProductsByParentIdComponentsById(
1297
+ id: number,
1298
+ parentId: number,
1299
+ params: CommonParameters = {},
1300
+ ): Promise<Array<ProductComponent>> {
1301
+ return this.request({
1302
+ path: `/procurement/products/${parentId}/components/${id}`,
1303
+ method: 'get',
1304
+ params,
1305
+ })
1306
+ }
1307
+
1308
+ deleteProcurementProductsByParentIdComponentsById(
1309
+ id: number,
1310
+ parentId: number,
1311
+ ): Promise<NoContentResponse> {
1312
+ return this.request({
1313
+ path: `/procurement/products/${parentId}/components/${id}`,
1314
+ method: 'delete',
1315
+ })
1316
+ }
1317
+
1318
+ putProcurementProductsByParentIdComponentsById(
1319
+ id: number,
1320
+ parentId: number,
1321
+ productComponent: ProductComponent,
1322
+ ): Promise<Array<ProductComponent>> {
1323
+ return this.request({
1324
+ path: `/procurement/products/${parentId}/components/${id}`,
1325
+ method: 'put',
1326
+ data: productComponent,
1327
+ })
1328
+ }
1329
+
1330
+ patchProcurementProductsByParentIdComponentsById(
1331
+ id: number,
1332
+ parentId: number,
1333
+ patchOperations: Array<PatchOperation>,
1334
+ ): Promise<Array<ProductComponent>> {
1335
+ return this.request({
1336
+ path: `/procurement/products/${parentId}/components/${id}`,
1337
+ method: 'patch',
1338
+ data: patchOperations,
1339
+ })
1340
+ }
1341
+
1342
+ getProcurementProductsByParentIdComponentsCount(
1343
+ parentId: number,
1344
+ params: CommonParameters = {},
1345
+ ): Promise<Count> {
1346
+ return this.request({
1347
+ path: `/procurement/products/${parentId}/components/count`,
1348
+ method: 'get',
1349
+ params,
1350
+ })
1351
+ }
1352
+
1353
+ getProcurementProductsByParentIdPickingShippingDetails(
1354
+ parentId: number,
1355
+ params: CommonParameters = {},
1356
+ ): Promise<Array<ProductPickingShippingDetail>> {
1357
+ return this.request({
1358
+ path: `/procurement/products/${parentId}/pickingShippingDetails`,
1359
+ method: 'get',
1360
+ params,
1361
+ })
1362
+ }
1363
+
1364
+ postProcurementProductsByParentIdPickingShippingDetails(
1365
+ parentId: number,
1366
+ productPickingShippingDetails: ProductPickingShippingDetail,
1367
+ ): Promise<Array<ProductPickingShippingDetail>> {
1368
+ return this.request({
1369
+ path: `/procurement/products/${parentId}/pickingShippingDetails`,
1370
+ method: 'post',
1371
+ data: productPickingShippingDetails,
1372
+ })
1373
+ }
1374
+
1375
+ getProcurementProductsByParentIdPickingShippingDetailsById(
1376
+ id: number,
1377
+ parentId: number,
1378
+ params: CommonParameters = {},
1379
+ ): Promise<Array<ProductPickingShippingDetail>> {
1380
+ return this.request({
1381
+ path: `/procurement/products/${parentId}/pickingShippingDetails/${id}`,
1382
+ method: 'get',
1383
+ params,
1384
+ })
1385
+ }
1386
+
1387
+ deleteProcurementProductsByParentIdPickingShippingDetailsById(
1388
+ id: number,
1389
+ parentId: number,
1390
+ ): Promise<NoContentResponse> {
1391
+ return this.request({
1392
+ path: `/procurement/products/${parentId}/pickingShippingDetails/${id}`,
1393
+ method: 'delete',
1394
+ })
1395
+ }
1396
+
1397
+ putProcurementProductsByParentIdPickingShippingDetailsById(
1398
+ id: number,
1399
+ parentId: number,
1400
+ productPickingShippingDetails: ProductPickingShippingDetail,
1401
+ ): Promise<Array<ProductPickingShippingDetail>> {
1402
+ return this.request({
1403
+ path: `/procurement/products/${parentId}/pickingShippingDetails/${id}`,
1404
+ method: 'put',
1405
+ data: productPickingShippingDetails,
1406
+ })
1407
+ }
1408
+
1409
+ patchProcurementProductsByParentIdPickingShippingDetailsById(
1410
+ id: number,
1411
+ parentId: number,
1412
+ patchOperations: Array<PatchOperation>,
1413
+ ): Promise<Array<ProductPickingShippingDetail>> {
1414
+ return this.request({
1415
+ path: `/procurement/products/${parentId}/pickingShippingDetails/${id}`,
1416
+ method: 'patch',
1417
+ data: patchOperations,
1418
+ })
1419
+ }
1420
+
1421
+ getProcurementProductsByParentIdPickingShippingDetailsCount(
1422
+ parentId: number,
1423
+ params: CommonParameters = {},
1424
+ ): Promise<Count> {
1425
+ return this.request({
1426
+ path: `/procurement/products/${parentId}/pickingShippingDetails/count`,
1427
+ method: 'get',
1428
+ params,
1429
+ })
1430
+ }
1431
+
1432
+ getProcurementProductsCount(params: CommonParameters = {}): Promise<Count> {
1433
+ return this.request({
1434
+ path: `/procurement/products/count`,
1435
+ method: 'get',
1436
+ params,
1437
+ })
1438
+ }
1439
+
1440
+ getProcurementPurchaseorders(params: CommonParameters = {}): Promise<Array<PurchaseOrder>> {
1441
+ return this.request({
1442
+ path: `/procurement/purchaseorders`,
1443
+ method: 'get',
1444
+ params,
1445
+ })
1446
+ }
1447
+
1448
+ postProcurementPurchaseorders(purchaseOrder: PurchaseOrder): Promise<PurchaseOrder> {
1449
+ return this.request({
1450
+ path: `/procurement/purchaseorders`,
1451
+ method: 'post',
1452
+ data: purchaseOrder,
1453
+ })
1454
+ }
1455
+
1456
+ getProcurementPurchaseordersById(
1457
+ id: number,
1458
+ params: CommonParameters = {},
1459
+ ): Promise<PurchaseOrder> {
1460
+ return this.request({
1461
+ path: `/procurement/purchaseorders/${id}`,
1462
+ method: 'get',
1463
+ params,
1464
+ })
1465
+ }
1466
+
1467
+ deleteProcurementPurchaseordersById(id: number): Promise<NoContentResponse> {
1468
+ return this.request({
1469
+ path: `/procurement/purchaseorders/${id}`,
1470
+ method: 'delete',
1471
+ })
1472
+ }
1473
+
1474
+ putProcurementPurchaseordersById(
1475
+ id: number,
1476
+ purchaseOrder: PurchaseOrder,
1477
+ ): Promise<PurchaseOrder> {
1478
+ return this.request({
1479
+ path: `/procurement/purchaseorders/${id}`,
1480
+ method: 'put',
1481
+ data: purchaseOrder,
1482
+ })
1483
+ }
1484
+
1485
+ patchProcurementPurchaseordersById(
1486
+ id: number,
1487
+ patchOperations: Array<PatchOperation>,
1488
+ ): Promise<PurchaseOrder> {
1489
+ return this.request({
1490
+ path: `/procurement/purchaseorders/${id}`,
1491
+ method: 'patch',
1492
+ data: patchOperations,
1493
+ })
1494
+ }
1495
+
1496
+ getProcurementPurchaseordersByParentIdLineitems(
1497
+ parentId: number,
1498
+ params: CommonParameters = {},
1499
+ ): Promise<Array<PurchaseOrderLineItem>> {
1500
+ return this.request({
1501
+ path: `/procurement/purchaseorders/${parentId}/lineitems`,
1502
+ method: 'get',
1503
+ params,
1504
+ })
1505
+ }
1506
+
1507
+ postProcurementPurchaseordersByParentIdLineitems(
1508
+ parentId: number,
1509
+ purchaseOrderLineItem: PurchaseOrderLineItem,
1510
+ ): Promise<PurchaseOrderLineItem> {
1511
+ return this.request({
1512
+ path: `/procurement/purchaseorders/${parentId}/lineitems`,
1513
+ method: 'post',
1514
+ data: purchaseOrderLineItem,
1515
+ })
1516
+ }
1517
+
1518
+ getProcurementPurchaseordersByParentIdLineitemsById(
1519
+ id: number,
1520
+ parentId: number,
1521
+ params: CommonParameters = {},
1522
+ ): Promise<PurchaseOrderLineItem> {
1523
+ return this.request({
1524
+ path: `/procurement/purchaseorders/${parentId}/lineitems/${id}`,
1525
+ method: 'get',
1526
+ params,
1527
+ })
1528
+ }
1529
+
1530
+ deleteProcurementPurchaseordersByParentIdLineitemsById(
1531
+ id: number,
1532
+ parentId: number,
1533
+ ): Promise<NoContentResponse> {
1534
+ return this.request({
1535
+ path: `/procurement/purchaseorders/${parentId}/lineitems/${id}`,
1536
+ method: 'delete',
1537
+ })
1538
+ }
1539
+
1540
+ putProcurementPurchaseordersByParentIdLineitemsById(
1541
+ id: number,
1542
+ parentId: number,
1543
+ purchaseOrderLineItem: PurchaseOrderLineItem,
1544
+ ): Promise<PurchaseOrderLineItem> {
1545
+ return this.request({
1546
+ path: `/procurement/purchaseorders/${parentId}/lineitems/${id}`,
1547
+ method: 'put',
1548
+ data: purchaseOrderLineItem,
1549
+ })
1550
+ }
1551
+
1552
+ patchProcurementPurchaseordersByParentIdLineitemsById(
1553
+ id: number,
1554
+ parentId: number,
1555
+ patchOperations: Array<PatchOperation>,
1556
+ ): Promise<PurchaseOrderLineItem> {
1557
+ return this.request({
1558
+ path: `/procurement/purchaseorders/${parentId}/lineitems/${id}`,
1559
+ method: 'patch',
1560
+ data: patchOperations,
1561
+ })
1562
+ }
1563
+
1564
+ postProcurementPurchaseordersByParentIdLineitemsBulk(
1565
+ parentId: number,
1566
+ purchaseOrderLineItems: Array<PurchaseOrderLineItem>,
1567
+ ): Promise<BulkResult> {
1568
+ return this.request({
1569
+ path: `/procurement/purchaseorders/${parentId}/lineitems/bulk`,
1570
+ method: 'post',
1571
+ data: purchaseOrderLineItems,
1572
+ })
1573
+ }
1574
+
1575
+ deleteProcurementPurchaseordersByParentIdLineitemsBulk(
1576
+ parentId: number,
1577
+ purchaseOrderLineItems: IdCollection,
1578
+ ): Promise<BulkResult> {
1579
+ return this.request({
1580
+ path: `/procurement/purchaseorders/${parentId}/lineitems/bulk`,
1581
+ method: 'delete',
1582
+ data: purchaseOrderLineItems,
1583
+ })
1584
+ }
1585
+
1586
+ putProcurementPurchaseordersByParentIdLineitemsBulk(
1587
+ parentId: number,
1588
+ purchaseOrderLineItems: Array<PurchaseOrderLineItem>,
1589
+ ): Promise<BulkResult> {
1590
+ return this.request({
1591
+ path: `/procurement/purchaseorders/${parentId}/lineitems/bulk`,
1592
+ method: 'put',
1593
+ data: purchaseOrderLineItems,
1594
+ })
1595
+ }
1596
+
1597
+ getProcurementPurchaseordersByParentIdLineitemsCount(
1598
+ parentId: number,
1599
+ params: CommonParameters = {},
1600
+ ): Promise<Count> {
1601
+ return this.request({
1602
+ path: `/procurement/purchaseorders/${parentId}/lineitems/count`,
1603
+ method: 'get',
1604
+ params,
1605
+ })
1606
+ }
1607
+
1608
+ getProcurementPurchaseordersCount(params: CommonParameters = {}): Promise<Count> {
1609
+ return this.request({
1610
+ path: `/procurement/purchaseorders/count`,
1611
+ method: 'get',
1612
+ params,
1613
+ })
1614
+ }
1615
+
1616
+ getProcurementPurchaseorderstatuses(
1617
+ params: CommonParameters = {},
1618
+ ): Promise<Array<PurchaseOrderStatus>> {
1619
+ return this.request({
1620
+ path: `/procurement/purchaseorderstatuses`,
1621
+ method: 'get',
1622
+ params,
1623
+ })
1624
+ }
1625
+
1626
+ postProcurementPurchaseorderstatuses(
1627
+ poStatus: PurchaseOrderStatus,
1628
+ ): Promise<PurchaseOrderStatus> {
1629
+ return this.request({
1630
+ path: `/procurement/purchaseorderstatuses`,
1631
+ method: 'post',
1632
+ data: poStatus,
1633
+ })
1634
+ }
1635
+
1636
+ getProcurementPurchaseorderstatusesById(
1637
+ id: number,
1638
+ params: CommonParameters = {},
1639
+ ): Promise<PurchaseOrderStatus> {
1640
+ return this.request({
1641
+ path: `/procurement/purchaseorderstatuses/${id}`,
1642
+ method: 'get',
1643
+ params,
1644
+ })
1645
+ }
1646
+
1647
+ deleteProcurementPurchaseorderstatusesById(id: number): Promise<NoContentResponse> {
1648
+ return this.request({
1649
+ path: `/procurement/purchaseorderstatuses/${id}`,
1650
+ method: 'delete',
1651
+ })
1652
+ }
1653
+
1654
+ patchProcurementPurchaseorderstatusesById(
1655
+ id: number,
1656
+ patchOperations: Array<PatchOperation>,
1657
+ ): Promise<PurchaseOrderStatus> {
1658
+ return this.request({
1659
+ path: `/procurement/purchaseorderstatuses/${id}`,
1660
+ method: 'patch',
1661
+ data: patchOperations,
1662
+ })
1663
+ }
1664
+
1665
+ putProcurementPurchaseorderstatusesById(
1666
+ id: number,
1667
+ purchaseOrderStatus: PurchaseOrderStatus,
1668
+ ): Promise<PurchaseOrderStatus> {
1669
+ return this.request({
1670
+ path: `/procurement/purchaseorderstatuses/${id}`,
1671
+ method: 'put',
1672
+ data: purchaseOrderStatus,
1673
+ })
1674
+ }
1675
+
1676
+ getProcurementPurchaseorderstatusesByIdUsages(
1677
+ id: number,
1678
+ params: CommonParameters = {},
1679
+ ): Promise<Array<Usage>> {
1680
+ return this.request({
1681
+ path: `/procurement/purchaseorderstatuses/${id}/usages`,
1682
+ method: 'get',
1683
+ params,
1684
+ })
1685
+ }
1686
+
1687
+ getProcurementPurchaseorderstatusesByIdUsagesList(
1688
+ id: number,
1689
+ params: CommonParameters = {},
1690
+ ): Promise<Array<Usage>> {
1691
+ return this.request({
1692
+ path: `/procurement/purchaseorderstatuses/${id}/usages/list`,
1693
+ method: 'get',
1694
+ params,
1695
+ })
1696
+ }
1697
+
1698
+ getProcurementPurchaseorderstatusesByParentIdEmailtemplates(
1699
+ parentId: number,
1700
+ params: CommonParameters = {},
1701
+ ): Promise<Array<PurchaseOrderStatusEmailTemplate>> {
1702
+ return this.request({
1703
+ path: `/procurement/purchaseorderstatuses/${parentId}/emailtemplates/`,
1704
+ method: 'get',
1705
+ params,
1706
+ })
1707
+ }
1708
+
1709
+ postProcurementPurchaseorderstatusesByParentIdEmailtemplates(
1710
+ parentId: number,
1711
+ purchaseOrderStatusEmailTemplate: PurchaseOrderStatusEmailTemplate,
1712
+ ): Promise<PurchaseOrderStatusEmailTemplate> {
1713
+ return this.request({
1714
+ path: `/procurement/purchaseorderstatuses/${parentId}/emailtemplates/`,
1715
+ method: 'post',
1716
+ data: purchaseOrderStatusEmailTemplate,
1717
+ })
1718
+ }
1719
+
1720
+ getProcurementPurchaseorderstatusesByParentIdEmailtemplatesById(
1721
+ id: number,
1722
+ parentId: number,
1723
+ params: CommonParameters = {},
1724
+ ): Promise<PurchaseOrderStatusEmailTemplate> {
1725
+ return this.request({
1726
+ path: `/procurement/purchaseorderstatuses/${parentId}/emailtemplates/${id}`,
1727
+ method: 'get',
1728
+ params,
1729
+ })
1730
+ }
1731
+
1732
+ deleteProcurementPurchaseorderstatusesByParentIdEmailtemplatesById(
1733
+ id: number,
1734
+ parentId: number,
1735
+ ): Promise<NoContentResponse> {
1736
+ return this.request({
1737
+ path: `/procurement/purchaseorderstatuses/${parentId}/emailtemplates/${id}`,
1738
+ method: 'delete',
1739
+ })
1740
+ }
1741
+
1742
+ putProcurementPurchaseorderstatusesByParentIdEmailtemplatesById(
1743
+ id: number,
1744
+ parentId: number,
1745
+ purchaseOrderStatusEmailTemplate: PurchaseOrderStatusEmailTemplate,
1746
+ ): Promise<PurchaseOrderStatusEmailTemplate> {
1747
+ return this.request({
1748
+ path: `/procurement/purchaseorderstatuses/${parentId}/emailtemplates/${id}`,
1749
+ method: 'put',
1750
+ data: purchaseOrderStatusEmailTemplate,
1751
+ })
1752
+ }
1753
+
1754
+ patchProcurementPurchaseorderstatusesByParentIdEmailtemplatesById(
1755
+ id: number,
1756
+ parentId: number,
1757
+ patchOperations: Array<PatchOperation>,
1758
+ ): Promise<PurchaseOrderStatusEmailTemplate> {
1759
+ return this.request({
1760
+ path: `/procurement/purchaseorderstatuses/${parentId}/emailtemplates/${id}`,
1761
+ method: 'patch',
1762
+ data: patchOperations,
1763
+ })
1764
+ }
1765
+
1766
+ getProcurementPurchaseorderstatusesByParentIdEmailtemplatesCount(
1767
+ parentId: number,
1768
+ params: CommonParameters = {},
1769
+ ): Promise<Count> {
1770
+ return this.request({
1771
+ path: `/procurement/purchaseorderstatuses/${parentId}/emailtemplates/count`,
1772
+ method: 'get',
1773
+ params,
1774
+ })
1775
+ }
1776
+
1777
+ getProcurementPurchaseorderstatusesByParentIdNotifications(
1778
+ parentId: number,
1779
+ params: CommonParameters = {},
1780
+ ): Promise<Array<PurchaseOrderStatusNotification>> {
1781
+ return this.request({
1782
+ path: `/procurement/purchaseorderstatuses/${parentId}/notifications`,
1783
+ method: 'get',
1784
+ params,
1785
+ })
1786
+ }
1787
+
1788
+ postProcurementPurchaseorderstatusesByParentIdNotifications(
1789
+ parentId: number,
1790
+ purchaseOrderStatusNotification: PurchaseOrderStatusNotification,
1791
+ ): Promise<PurchaseOrderStatusNotification> {
1792
+ return this.request({
1793
+ path: `/procurement/purchaseorderstatuses/${parentId}/notifications`,
1794
+ method: 'post',
1795
+ data: purchaseOrderStatusNotification,
1796
+ })
1797
+ }
1798
+
1799
+ getProcurementPurchaseorderstatusesByParentIdNotificationsById(
1800
+ id: number,
1801
+ parentId: number,
1802
+ params: CommonParameters = {},
1803
+ ): Promise<PurchaseOrderStatusNotification> {
1804
+ return this.request({
1805
+ path: `/procurement/purchaseorderstatuses/${parentId}/notifications/${id}`,
1806
+ method: 'get',
1807
+ params,
1808
+ })
1809
+ }
1810
+
1811
+ deleteProcurementPurchaseorderstatusesByParentIdNotificationsById(
1812
+ id: number,
1813
+ parentId: number,
1814
+ ): Promise<NoContentResponse> {
1815
+ return this.request({
1816
+ path: `/procurement/purchaseorderstatuses/${parentId}/notifications/${id}`,
1817
+ method: 'delete',
1818
+ })
1819
+ }
1820
+
1821
+ putProcurementPurchaseorderstatusesByParentIdNotificationsById(
1822
+ id: number,
1823
+ parentId: number,
1824
+ purchaseOrderStatusNotification: PurchaseOrderStatusNotification,
1825
+ ): Promise<PurchaseOrderStatusNotification> {
1826
+ return this.request({
1827
+ path: `/procurement/purchaseorderstatuses/${parentId}/notifications/${id}`,
1828
+ method: 'put',
1829
+ data: purchaseOrderStatusNotification,
1830
+ })
1831
+ }
1832
+
1833
+ patchProcurementPurchaseorderstatusesByParentIdNotificationsById(
1834
+ id: number,
1835
+ parentId: number,
1836
+ patchOperations: Array<PatchOperation>,
1837
+ ): Promise<PurchaseOrderStatusNotification> {
1838
+ return this.request({
1839
+ path: `/procurement/purchaseorderstatuses/${parentId}/notifications/${id}`,
1840
+ method: 'patch',
1841
+ data: patchOperations,
1842
+ })
1843
+ }
1844
+
1845
+ getProcurementPurchaseorderstatusesByParentIdNotificationsCount(
1846
+ parentId: number,
1847
+ params: CommonParameters = {},
1848
+ ): Promise<Count> {
1849
+ return this.request({
1850
+ path: `/procurement/purchaseorderstatuses/${parentId}/notifications/count`,
1851
+ method: 'get',
1852
+ params,
1853
+ })
1854
+ }
1855
+
1856
+ getProcurementPurchaseorderstatusesCount(params: CommonParameters = {}): Promise<Count> {
1857
+ return this.request({
1858
+ path: `/procurement/purchaseorderstatuses/count`,
1859
+ method: 'get',
1860
+ params,
1861
+ })
1862
+ }
1863
+
1864
+ postProcurementPurchasingDemands(purchasingDemand: PurchasingDemand): Promise<PurchasingDemand> {
1865
+ return this.request({
1866
+ path: `/procurement/purchasingDemands`,
1867
+ method: 'post',
1868
+ data: purchasingDemand,
1869
+ })
1870
+ }
1871
+
1872
+ getProcurementRmaActions(params: CommonParameters = {}): Promise<Array<RmaAction>> {
1873
+ return this.request({
1874
+ path: `/procurement/rmaActions`,
1875
+ method: 'get',
1876
+ params,
1877
+ })
1878
+ }
1879
+
1880
+ postProcurementRmaActions(rmaAction: RmaAction): Promise<RmaAction> {
1881
+ return this.request({
1882
+ path: `/procurement/rmaActions`,
1883
+ method: 'post',
1884
+ data: rmaAction,
1885
+ })
1886
+ }
1887
+
1888
+ getProcurementRmaActionsById(id: number, params: CommonParameters = {}): Promise<RmaAction> {
1889
+ return this.request({
1890
+ path: `/procurement/rmaActions/${id}`,
1891
+ method: 'get',
1892
+ params,
1893
+ })
1894
+ }
1895
+
1896
+ deleteProcurementRmaActionsById(id: number): Promise<NoContentResponse> {
1897
+ return this.request({
1898
+ path: `/procurement/rmaActions/${id}`,
1899
+ method: 'delete',
1900
+ })
1901
+ }
1902
+
1903
+ putProcurementRmaActionsById(id: number, rmaAction: RmaAction): Promise<RmaAction> {
1904
+ return this.request({
1905
+ path: `/procurement/rmaActions/${id}`,
1906
+ method: 'put',
1907
+ data: rmaAction,
1908
+ })
1909
+ }
1910
+
1911
+ patchProcurementRmaActionsById(
1912
+ id: number,
1913
+ patchOperations: Array<PatchOperation>,
1914
+ ): Promise<RmaAction> {
1915
+ return this.request({
1916
+ path: `/procurement/rmaActions/${id}`,
1917
+ method: 'patch',
1918
+ data: patchOperations,
1919
+ })
1920
+ }
1921
+
1922
+ getProcurementRmaActionsByIdInfo(
1923
+ id: number,
1924
+ params: CommonParameters = {},
1925
+ ): Promise<RmaActionInfo> {
1926
+ return this.request({
1927
+ path: `/procurement/rmaActions/${id}/info`,
1928
+ method: 'get',
1929
+ params,
1930
+ })
1931
+ }
1932
+
1933
+ getProcurementRmaActionsCount(params: CommonParameters = {}): Promise<Count> {
1934
+ return this.request({
1935
+ path: `/procurement/rmaActions/count`,
1936
+ method: 'get',
1937
+ params,
1938
+ })
1939
+ }
1940
+
1941
+ getProcurementRmaActionsInfo(params: CommonParameters = {}): Promise<Array<RmaActionInfo>> {
1942
+ return this.request({
1943
+ path: `/procurement/rmaActions/info`,
1944
+ method: 'get',
1945
+ params,
1946
+ })
1947
+ }
1948
+
1949
+ getProcurementRmaActionsInfoCount(params: CommonParameters = {}): Promise<Count> {
1950
+ return this.request({
1951
+ path: `/procurement/rmaActions/info/count`,
1952
+ method: 'get',
1953
+ params,
1954
+ })
1955
+ }
1956
+
1957
+ getProcurementRMADispositions(params: CommonParameters = {}): Promise<Array<RmaDisposition>> {
1958
+ return this.request({
1959
+ path: `/procurement/RMADispositions`,
1960
+ method: 'get',
1961
+ params,
1962
+ })
1963
+ }
1964
+
1965
+ postProcurementRMADispositions(rmaDisposition: RmaDisposition): Promise<RmaDisposition> {
1966
+ return this.request({
1967
+ path: `/procurement/RMADispositions`,
1968
+ method: 'post',
1969
+ data: rmaDisposition,
1970
+ })
1971
+ }
1972
+
1973
+ getProcurementRMADispositionsById(
1974
+ id: number,
1975
+ params: CommonParameters = {},
1976
+ ): Promise<RmaDisposition> {
1977
+ return this.request({
1978
+ path: `/procurement/RMADispositions/${id}`,
1979
+ method: 'get',
1980
+ params,
1981
+ })
1982
+ }
1983
+
1984
+ deleteProcurementRMADispositionsById(id: number): Promise<NoContentResponse> {
1985
+ return this.request({
1986
+ path: `/procurement/RMADispositions/${id}`,
1987
+ method: 'delete',
1988
+ })
1989
+ }
1990
+
1991
+ putProcurementRMADispositionsById(
1992
+ id: number,
1993
+ rmaDisposition: RmaDisposition,
1994
+ ): Promise<RmaDisposition> {
1995
+ return this.request({
1996
+ path: `/procurement/RMADispositions/${id}`,
1997
+ method: 'put',
1998
+ data: rmaDisposition,
1999
+ })
2000
+ }
2001
+
2002
+ patchProcurementRMADispositionsById(
2003
+ id: number,
2004
+ patchOperations: Array<PatchOperation>,
2005
+ ): Promise<RmaDisposition> {
2006
+ return this.request({
2007
+ path: `/procurement/RMADispositions/${id}`,
2008
+ method: 'patch',
2009
+ data: patchOperations,
2010
+ })
2011
+ }
2012
+
2013
+ getProcurementRMADispositionsByIdInfo(
2014
+ id: number,
2015
+ params: CommonParameters = {},
2016
+ ): Promise<RmaDispositionInfo> {
2017
+ return this.request({
2018
+ path: `/procurement/RMADispositions/${id}/info`,
2019
+ method: 'get',
2020
+ params,
2021
+ })
2022
+ }
2023
+
2024
+ getProcurementRMADispositionsCount(params: CommonParameters = {}): Promise<Count> {
2025
+ return this.request({
2026
+ path: `/procurement/RMADispositions/count`,
2027
+ method: 'get',
2028
+ params,
2029
+ })
2030
+ }
2031
+
2032
+ getProcurementRMADispositionsInfo(
2033
+ params: CommonParameters = {},
2034
+ ): Promise<Array<RmaDispositionInfo>> {
2035
+ return this.request({
2036
+ path: `/procurement/RMADispositions/info`,
2037
+ method: 'get',
2038
+ params,
2039
+ })
2040
+ }
2041
+
2042
+ getProcurementRMADispositionsInfoCount(params: CommonParameters = {}): Promise<Count> {
2043
+ return this.request({
2044
+ path: `/procurement/RMADispositions/info/count`,
2045
+ method: 'get',
2046
+ params,
2047
+ })
2048
+ }
2049
+
2050
+ getProcurementRmaStatuses(params: CommonParameters = {}): Promise<Array<RmaStatus>> {
2051
+ return this.request({
2052
+ path: `/procurement/rmaStatuses`,
2053
+ method: 'get',
2054
+ params,
2055
+ })
2056
+ }
2057
+
2058
+ postProcurementRmaStatuses(rmaStatus: RmaStatus): Promise<RmaStatus> {
2059
+ return this.request({
2060
+ path: `/procurement/rmaStatuses`,
2061
+ method: 'post',
2062
+ data: rmaStatus,
2063
+ })
2064
+ }
2065
+
2066
+ getProcurementRmaStatusesById(id: number, params: CommonParameters = {}): Promise<RmaStatus> {
2067
+ return this.request({
2068
+ path: `/procurement/rmaStatuses/${id}`,
2069
+ method: 'get',
2070
+ params,
2071
+ })
2072
+ }
2073
+
2074
+ deleteProcurementRmaStatusesById(id: number): Promise<NoContentResponse> {
2075
+ return this.request({
2076
+ path: `/procurement/rmaStatuses/${id}`,
2077
+ method: 'delete',
2078
+ })
2079
+ }
2080
+
2081
+ putProcurementRmaStatusesById(id: number, rmaStatus: RmaStatus): Promise<RmaStatus> {
2082
+ return this.request({
2083
+ path: `/procurement/rmaStatuses/${id}`,
2084
+ method: 'put',
2085
+ data: rmaStatus,
2086
+ })
2087
+ }
2088
+
2089
+ patchProcurementRmaStatusesById(
2090
+ id: number,
2091
+ patchOperations: Array<PatchOperation>,
2092
+ ): Promise<RmaStatus> {
2093
+ return this.request({
2094
+ path: `/procurement/rmaStatuses/${id}`,
2095
+ method: 'patch',
2096
+ data: patchOperations,
2097
+ })
2098
+ }
2099
+
2100
+ getProcurementRmaStatusesByIdInfo(
2101
+ id: number,
2102
+ params: CommonParameters = {},
2103
+ ): Promise<RmaStatusInfo> {
2104
+ return this.request({
2105
+ path: `/procurement/rmaStatuses/${id}/info`,
2106
+ method: 'get',
2107
+ params,
2108
+ })
2109
+ }
2110
+
2111
+ getProcurementRmaStatusesByIdUsages(
2112
+ id: number,
2113
+ params: CommonParameters = {},
2114
+ ): Promise<Array<Usage>> {
2115
+ return this.request({
2116
+ path: `/procurement/rmaStatuses/${id}/usages`,
2117
+ method: 'get',
2118
+ params,
2119
+ })
2120
+ }
2121
+
2122
+ getProcurementRmaStatusesByIdUsagesList(
2123
+ id: number,
2124
+ params: CommonParameters = {},
2125
+ ): Promise<Array<Usage>> {
2126
+ return this.request({
2127
+ path: `/procurement/rmaStatuses/${id}/usages/list`,
2128
+ method: 'get',
2129
+ params,
2130
+ })
2131
+ }
2132
+
2133
+ postProcurementRmaStatusesByParentIdEmailtemplates(
2134
+ parentId: number,
2135
+ rmaStatusEmailTemplate: RmaStatusEmailTemplate,
2136
+ ): Promise<RmaStatusEmailTemplate> {
2137
+ return this.request({
2138
+ path: `/procurement/rmaStatuses/${parentId}/emailtemplates/`,
2139
+ method: 'post',
2140
+ data: rmaStatusEmailTemplate,
2141
+ })
2142
+ }
2143
+
2144
+ getProcurementRmaStatusesByParentIdEmailTemplates(
2145
+ parentId: number,
2146
+ params: CommonParameters = {},
2147
+ ): Promise<Array<RmaStatusEmailTemplate>> {
2148
+ return this.request({
2149
+ path: `/procurement/rmaStatuses/${parentId}/emailTemplates/`,
2150
+ method: 'get',
2151
+ params,
2152
+ })
2153
+ }
2154
+
2155
+ getProcurementRmaStatusesByParentIdEmailtemplatesById(
2156
+ id: number,
2157
+ parentId: number,
2158
+ params: CommonParameters = {},
2159
+ ): Promise<RmaStatusEmailTemplate> {
2160
+ return this.request({
2161
+ path: `/procurement/rmaStatuses/${parentId}/emailtemplates/${id}`,
2162
+ method: 'get',
2163
+ params,
2164
+ })
2165
+ }
2166
+
2167
+ deleteProcurementRmaStatusesByParentIdEmailtemplatesById(
2168
+ id: number,
2169
+ parentId: number,
2170
+ ): Promise<NoContentResponse> {
2171
+ return this.request({
2172
+ path: `/procurement/rmaStatuses/${parentId}/emailtemplates/${id}`,
2173
+ method: 'delete',
2174
+ })
2175
+ }
2176
+
2177
+ putProcurementRmaStatusesByParentIdEmailtemplatesById(
2178
+ id: number,
2179
+ parentId: number,
2180
+ rmaStatusEmailTemplate: RmaStatusEmailTemplate,
2181
+ ): Promise<RmaStatusEmailTemplate> {
2182
+ return this.request({
2183
+ path: `/procurement/rmaStatuses/${parentId}/emailtemplates/${id}`,
2184
+ method: 'put',
2185
+ data: rmaStatusEmailTemplate,
2186
+ })
2187
+ }
2188
+
2189
+ patchProcurementRmaStatusesByParentIdEmailtemplatesById(
2190
+ id: number,
2191
+ parentId: number,
2192
+ patchOperations: Array<PatchOperation>,
2193
+ ): Promise<RmaStatusEmailTemplate> {
2194
+ return this.request({
2195
+ path: `/procurement/rmaStatuses/${parentId}/emailtemplates/${id}`,
2196
+ method: 'patch',
2197
+ data: patchOperations,
2198
+ })
2199
+ }
2200
+
2201
+ getProcurementRmaStatusesByParentIdEmailtemplatesCount(
2202
+ parentId: number,
2203
+ params: CommonParameters = {},
2204
+ ): Promise<Count> {
2205
+ return this.request({
2206
+ path: `/procurement/rmaStatuses/${parentId}/emailtemplates/count`,
2207
+ method: 'get',
2208
+ params,
2209
+ })
2210
+ }
2211
+
2212
+ getProcurementRmaStatusesByParentIdNotifications(
2213
+ parentId: number,
2214
+ params: CommonParameters = {},
2215
+ ): Promise<Array<RmaStatusNotification>> {
2216
+ return this.request({
2217
+ path: `/procurement/rmaStatuses/${parentId}/notifications`,
2218
+ method: 'get',
2219
+ params,
2220
+ })
2221
+ }
2222
+
2223
+ postProcurementRmaStatusesByParentIdNotifications(
2224
+ parentId: number,
2225
+ rmaStatusNotification: RmaStatusNotification,
2226
+ ): Promise<RmaStatusNotification> {
2227
+ return this.request({
2228
+ path: `/procurement/rmaStatuses/${parentId}/notifications`,
2229
+ method: 'post',
2230
+ data: rmaStatusNotification,
2231
+ })
2232
+ }
2233
+
2234
+ getProcurementRmaStatusesByParentIdNotificationsById(
2235
+ id: number,
2236
+ parentId: number,
2237
+ params: CommonParameters = {},
2238
+ ): Promise<RmaStatusNotification> {
2239
+ return this.request({
2240
+ path: `/procurement/rmaStatuses/${parentId}/notifications/${id}`,
2241
+ method: 'get',
2242
+ params,
2243
+ })
2244
+ }
2245
+
2246
+ deleteProcurementRmaStatusesByParentIdNotificationsById(
2247
+ id: number,
2248
+ parentId: number,
2249
+ ): Promise<NoContentResponse> {
2250
+ return this.request({
2251
+ path: `/procurement/rmaStatuses/${parentId}/notifications/${id}`,
2252
+ method: 'delete',
2253
+ })
2254
+ }
2255
+
2256
+ putProcurementRmaStatusesByParentIdNotificationsById(
2257
+ id: number,
2258
+ parentId: number,
2259
+ rmaStatusNotification: RmaStatusNotification,
2260
+ ): Promise<RmaStatusNotification> {
2261
+ return this.request({
2262
+ path: `/procurement/rmaStatuses/${parentId}/notifications/${id}`,
2263
+ method: 'put',
2264
+ data: rmaStatusNotification,
2265
+ })
2266
+ }
2267
+
2268
+ patchProcurementRmaStatusesByParentIdNotificationsById(
2269
+ id: number,
2270
+ parentId: number,
2271
+ patchOperations: Array<PatchOperation>,
2272
+ ): Promise<RmaStatusNotification> {
2273
+ return this.request({
2274
+ path: `/procurement/rmaStatuses/${parentId}/notifications/${id}`,
2275
+ method: 'patch',
2276
+ data: patchOperations,
2277
+ })
2278
+ }
2279
+
2280
+ getProcurementRmaStatusesByParentIdNotificationsCount(
2281
+ parentId: number,
2282
+ params: CommonParameters = {},
2283
+ ): Promise<Count> {
2284
+ return this.request({
2285
+ path: `/procurement/rmaStatuses/${parentId}/notifications/count`,
2286
+ method: 'get',
2287
+ params,
2288
+ })
2289
+ }
2290
+
2291
+ getProcurementRmaStatusesCount(params: CommonParameters = {}): Promise<Count> {
2292
+ return this.request({
2293
+ path: `/procurement/rmaStatuses/count`,
2294
+ method: 'get',
2295
+ params,
2296
+ })
2297
+ }
2298
+
2299
+ getProcurementRmaStatusesInfo(params: CommonParameters = {}): Promise<Array<RmaStatusInfo>> {
2300
+ return this.request({
2301
+ path: `/procurement/rmaStatuses/info`,
2302
+ method: 'get',
2303
+ params,
2304
+ })
2305
+ }
2306
+
2307
+ getProcurementRmaStatusesInfoCount(params: CommonParameters = {}): Promise<Count> {
2308
+ return this.request({
2309
+ path: `/procurement/rmaStatuses/info/count`,
2310
+ method: 'get',
2311
+ params,
2312
+ })
2313
+ }
2314
+
2315
+ getProcurementRmaTags(params: CommonParameters = {}): Promise<Array<RmaTag>> {
2316
+ return this.request({
2317
+ path: `/procurement/rmaTags`,
2318
+ method: 'get',
2319
+ params,
2320
+ })
2321
+ }
2322
+
2323
+ postProcurementRmaTags(rmaTag: RmaTag): Promise<RmaTag> {
2324
+ return this.request({
2325
+ path: `/procurement/rmaTags`,
2326
+ method: 'post',
2327
+ data: rmaTag,
2328
+ })
2329
+ }
2330
+
2331
+ getProcurementRmaTagsById(id: number, params: CommonParameters = {}): Promise<RmaTag> {
2332
+ return this.request({
2333
+ path: `/procurement/rmaTags/${id}`,
2334
+ method: 'get',
2335
+ params,
2336
+ })
2337
+ }
2338
+
2339
+ deleteProcurementRmaTagsById(id: number): Promise<NoContentResponse> {
2340
+ return this.request({
2341
+ path: `/procurement/rmaTags/${id}`,
2342
+ method: 'delete',
2343
+ })
2344
+ }
2345
+
2346
+ putProcurementRmaTagsById(id: number, rmaTag: RmaTag): Promise<RmaTag> {
2347
+ return this.request({
2348
+ path: `/procurement/rmaTags/${id}`,
2349
+ method: 'put',
2350
+ data: rmaTag,
2351
+ })
2352
+ }
2353
+
2354
+ patchProcurementRmaTagsById(id: number, patchOperations: Array<PatchOperation>): Promise<RmaTag> {
2355
+ return this.request({
2356
+ path: `/procurement/rmaTags/${id}`,
2357
+ method: 'patch',
2358
+ data: patchOperations,
2359
+ })
2360
+ }
2361
+
2362
+ getProcurementRmaTagsCount(params: CommonParameters = {}): Promise<Count> {
2363
+ return this.request({
2364
+ path: `/procurement/rmaTags/count`,
2365
+ method: 'get',
2366
+ params,
2367
+ })
2368
+ }
2369
+
2370
+ getProcurementRmaTagsDefault(
2371
+ productId: number,
2372
+ billingLogId: number,
2373
+ ticketId: number,
2374
+ projectId: number,
2375
+ salesOrderId: number,
2376
+ companyId: number,
2377
+ params: CommonParameters = {},
2378
+ ): Promise<RmaTag> {
2379
+ return this.request({
2380
+ path: `/procurement/rmaTags/default`,
2381
+ method: 'get',
2382
+ params,
2383
+ })
2384
+ }
2385
+
2386
+ getProcurementSettings(params: CommonParameters = {}): Promise<Array<ProcurementSetting>> {
2387
+ return this.request({
2388
+ path: `/procurement/settings`,
2389
+ method: 'get',
2390
+ params,
2391
+ })
2392
+ }
2393
+
2394
+ getProcurementSettingsById(
2395
+ id: number,
2396
+ params: CommonParameters = {},
2397
+ ): Promise<ProcurementSetting> {
2398
+ return this.request({
2399
+ path: `/procurement/settings/${id}`,
2400
+ method: 'get',
2401
+ params,
2402
+ })
2403
+ }
2404
+
2405
+ putProcurementSettingsById(
2406
+ id: number,
2407
+ procurementSetting: ProcurementSetting,
2408
+ ): Promise<ProcurementSetting> {
2409
+ return this.request({
2410
+ path: `/procurement/settings/${id}`,
2411
+ method: 'put',
2412
+ data: procurementSetting,
2413
+ })
2414
+ }
2415
+
2416
+ patchProcurementSettingsById(
2417
+ id: number,
2418
+ patchOperations: Array<PatchOperation>,
2419
+ ): Promise<ProcurementSetting> {
2420
+ return this.request({
2421
+ path: `/procurement/settings/${id}`,
2422
+ method: 'patch',
2423
+ data: patchOperations,
2424
+ })
2425
+ }
2426
+
2427
+ getProcurementSettingsCount(params: CommonParameters = {}): Promise<Count> {
2428
+ return this.request({
2429
+ path: `/procurement/settings/count`,
2430
+ method: 'get',
2431
+ params,
2432
+ })
2433
+ }
2434
+
2435
+ getProcurementShipmentmethods(params: CommonParameters = {}): Promise<Array<ShipmentMethod>> {
2436
+ return this.request({
2437
+ path: `/procurement/shipmentmethods`,
2438
+ method: 'get',
2439
+ params,
2440
+ })
2441
+ }
2442
+
2443
+ postProcurementShipmentmethods(shipmentMethod: ShipmentMethod): Promise<ShipmentMethod> {
2444
+ return this.request({
2445
+ path: `/procurement/shipmentmethods`,
2446
+ method: 'post',
2447
+ data: shipmentMethod,
2448
+ })
2449
+ }
2450
+
2451
+ getProcurementShipmentmethodsById(
2452
+ id: number,
2453
+ params: CommonParameters = {},
2454
+ ): Promise<ShipmentMethod> {
2455
+ return this.request({
2456
+ path: `/procurement/shipmentmethods/${id}`,
2457
+ method: 'get',
2458
+ params,
2459
+ })
2460
+ }
2461
+
2462
+ deleteProcurementShipmentmethodsById(id: number): Promise<NoContentResponse> {
2463
+ return this.request({
2464
+ path: `/procurement/shipmentmethods/${id}`,
2465
+ method: 'delete',
2466
+ })
2467
+ }
2468
+
2469
+ putProcurementShipmentmethodsById(
2470
+ id: number,
2471
+ shipmentMethod: ShipmentMethod,
2472
+ ): Promise<ShipmentMethod> {
2473
+ return this.request({
2474
+ path: `/procurement/shipmentmethods/${id}`,
2475
+ method: 'put',
2476
+ data: shipmentMethod,
2477
+ })
2478
+ }
2479
+
2480
+ patchProcurementShipmentmethodsById(
2481
+ id: number,
2482
+ patchOperations: Array<PatchOperation>,
2483
+ ): Promise<ShipmentMethod> {
2484
+ return this.request({
2485
+ path: `/procurement/shipmentmethods/${id}`,
2486
+ method: 'patch',
2487
+ data: patchOperations,
2488
+ })
2489
+ }
2490
+
2491
+ getProcurementShipmentmethodsByIdInfo(
2492
+ id: number,
2493
+ params: CommonParameters = {},
2494
+ ): Promise<ShipmentMethodInfo> {
2495
+ return this.request({
2496
+ path: `/procurement/shipmentmethods/${id}/info`,
2497
+ method: 'get',
2498
+ params,
2499
+ })
2500
+ }
2501
+
2502
+ getProcurementShipmentmethodsByIdUsages(
2503
+ id: number,
2504
+ params: CommonParameters = {},
2505
+ ): Promise<Array<Usage>> {
2506
+ return this.request({
2507
+ path: `/procurement/shipmentmethods/${id}/usages`,
2508
+ method: 'get',
2509
+ params,
2510
+ })
2511
+ }
2512
+
2513
+ getProcurementShipmentmethodsByIdUsagesList(
2514
+ id: number,
2515
+ params: CommonParameters = {},
2516
+ ): Promise<Array<Usage>> {
2517
+ return this.request({
2518
+ path: `/procurement/shipmentmethods/${id}/usages/list`,
2519
+ method: 'get',
2520
+ params,
2521
+ })
2522
+ }
2523
+
2524
+ getProcurementShipmentmethodsCount(params: CommonParameters = {}): Promise<Count> {
2525
+ return this.request({
2526
+ path: `/procurement/shipmentmethods/count`,
2527
+ method: 'get',
2528
+ params,
2529
+ })
2530
+ }
2531
+
2532
+ getProcurementShipmentmethodsInfo(
2533
+ params: CommonParameters = {},
2534
+ ): Promise<Array<ShipmentMethodInfo>> {
2535
+ return this.request({
2536
+ path: `/procurement/shipmentmethods/info`,
2537
+ method: 'get',
2538
+ params,
2539
+ })
2540
+ }
2541
+
2542
+ getProcurementShipmentmethodsInfoCount(params: CommonParameters = {}): Promise<Count> {
2543
+ return this.request({
2544
+ path: `/procurement/shipmentmethods/info/count`,
2545
+ method: 'get',
2546
+ params,
2547
+ })
2548
+ }
2549
+
2550
+ getProcurementSubcategories(params: CommonParameters = {}): Promise<Array<SubCategory>> {
2551
+ return this.request({
2552
+ path: `/procurement/subcategories/`,
2553
+ method: 'get',
2554
+ params,
2555
+ })
2556
+ }
2557
+
2558
+ postProcurementSubcategories(subCategory: SubCategory): Promise<SubCategory> {
2559
+ return this.request({
2560
+ path: `/procurement/subcategories/`,
2561
+ method: 'post',
2562
+ data: subCategory,
2563
+ })
2564
+ }
2565
+
2566
+ getProcurementSubcategoriesById(id: number, params: CommonParameters = {}): Promise<SubCategory> {
2567
+ return this.request({
2568
+ path: `/procurement/subcategories/${id}`,
2569
+ method: 'get',
2570
+ params,
2571
+ })
2572
+ }
2573
+
2574
+ deleteProcurementSubcategoriesById(id: number): Promise<NoContentResponse> {
2575
+ return this.request({
2576
+ path: `/procurement/subcategories/${id}`,
2577
+ method: 'delete',
2578
+ })
2579
+ }
2580
+
2581
+ putProcurementSubcategoriesById(id: number, subCategory: SubCategory): Promise<SubCategory> {
2582
+ return this.request({
2583
+ path: `/procurement/subcategories/${id}`,
2584
+ method: 'put',
2585
+ data: subCategory,
2586
+ })
2587
+ }
2588
+
2589
+ patchProcurementSubcategoriesById(
2590
+ id: number,
2591
+ patchOperations: Array<PatchOperation>,
2592
+ ): Promise<SubCategory> {
2593
+ return this.request({
2594
+ path: `/procurement/subcategories/${id}`,
2595
+ method: 'patch',
2596
+ data: patchOperations,
2597
+ })
2598
+ }
2599
+
2600
+ getProcurementSubcategoriesByIdInfo(
2601
+ id: number,
2602
+ params: CommonParameters = {},
2603
+ ): Promise<SubCategoryInfo> {
2604
+ return this.request({
2605
+ path: `/procurement/subcategories/${id}/info`,
2606
+ method: 'get',
2607
+ params,
2608
+ })
2609
+ }
2610
+
2611
+ getProcurementSubcategoriesByIdUsages(
2612
+ id: number,
2613
+ params: CommonParameters = {},
2614
+ ): Promise<Array<Usage>> {
2615
+ return this.request({
2616
+ path: `/procurement/subcategories/${id}/usages`,
2617
+ method: 'get',
2618
+ params,
2619
+ })
2620
+ }
2621
+
2622
+ getProcurementSubcategoriesByIdUsagesList(
2623
+ id: number,
2624
+ params: CommonParameters = {},
2625
+ ): Promise<Array<Usage>> {
2626
+ return this.request({
2627
+ path: `/procurement/subcategories/${id}/usages/list`,
2628
+ method: 'get',
2629
+ params,
2630
+ })
2631
+ }
2632
+
2633
+ getProcurementSubcategoriesCount(params: CommonParameters = {}): Promise<Count> {
2634
+ return this.request({
2635
+ path: `/procurement/subcategories/count`,
2636
+ method: 'get',
2637
+ params,
2638
+ })
2639
+ }
2640
+
2641
+ getProcurementSubcategoriesInfo(params: CommonParameters = {}): Promise<Array<SubCategoryInfo>> {
2642
+ return this.request({
2643
+ path: `/procurement/subcategories/info/`,
2644
+ method: 'get',
2645
+ params,
2646
+ })
2647
+ }
2648
+
2649
+ getProcurementSubcategoriesInfoCount(params: CommonParameters = {}): Promise<Count> {
2650
+ return this.request({
2651
+ path: `/procurement/subcategories/info/count`,
2652
+ method: 'get',
2653
+ params,
2654
+ })
2655
+ }
2656
+
2657
+ getProcurementTypes(params: CommonParameters = {}): Promise<Array<ProductType>> {
2658
+ return this.request({
2659
+ path: `/procurement/types`,
2660
+ method: 'get',
2661
+ params,
2662
+ })
2663
+ }
2664
+
2665
+ postProcurementTypes(productTypes: ProductType): Promise<ProductType> {
2666
+ return this.request({
2667
+ path: `/procurement/types`,
2668
+ method: 'post',
2669
+ data: productTypes,
2670
+ })
2671
+ }
2672
+
2673
+ getProcurementTypesById(id: number, params: CommonParameters = {}): Promise<ProductType> {
2674
+ return this.request({
2675
+ path: `/procurement/types/${id}`,
2676
+ method: 'get',
2677
+ params,
2678
+ })
2679
+ }
2680
+
2681
+ deleteProcurementTypesById(id: number): Promise<NoContentResponse> {
2682
+ return this.request({
2683
+ path: `/procurement/types/${id}`,
2684
+ method: 'delete',
2685
+ })
2686
+ }
2687
+
2688
+ putProcurementTypesById(id: number, productTypes: ProductType): Promise<ProductType> {
2689
+ return this.request({
2690
+ path: `/procurement/types/${id}`,
2691
+ method: 'put',
2692
+ data: productTypes,
2693
+ })
2694
+ }
2695
+
2696
+ patchProcurementTypesById(
2697
+ id: number,
2698
+ patchOperations: Array<PatchOperation>,
2699
+ ): Promise<ProductType> {
2700
+ return this.request({
2701
+ path: `/procurement/types/${id}`,
2702
+ method: 'patch',
2703
+ data: patchOperations,
2704
+ })
2705
+ }
2706
+
2707
+ getProcurementTypesByIdInfo(id: number, params: CommonParameters = {}): Promise<ProductTypeInfo> {
2708
+ return this.request({
2709
+ path: `/procurement/types/${id}/info`,
2710
+ method: 'get',
2711
+ params,
2712
+ })
2713
+ }
2714
+
2715
+ getProcurementTypesByIdUsages(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
2716
+ return this.request({
2717
+ path: `/procurement/types/${id}/usages`,
2718
+ method: 'get',
2719
+ params,
2720
+ })
2721
+ }
2722
+
2723
+ getProcurementTypesByIdUsagesList(
2724
+ id: number,
2725
+ params: CommonParameters = {},
2726
+ ): Promise<Array<Usage>> {
2727
+ return this.request({
2728
+ path: `/procurement/types/${id}/usages/list`,
2729
+ method: 'get',
2730
+ params,
2731
+ })
2732
+ }
2733
+
2734
+ getProcurementTypesCount(params: CommonParameters = {}): Promise<Count> {
2735
+ return this.request({
2736
+ path: `/procurement/types/count`,
2737
+ method: 'get',
2738
+ params,
2739
+ })
2740
+ }
2741
+
2742
+ getProcurementTypesInfo(params: CommonParameters = {}): Promise<Array<ProductTypeInfo>> {
2743
+ return this.request({
2744
+ path: `/procurement/types/info`,
2745
+ method: 'get',
2746
+ params,
2747
+ })
2748
+ }
2749
+
2750
+ getProcurementTypesInfoCount(params: CommonParameters = {}): Promise<Count> {
2751
+ return this.request({
2752
+ path: `/procurement/types/info/count`,
2753
+ method: 'get',
2754
+ params,
2755
+ })
2756
+ }
2757
+
2758
+ getProcurementUnitOfMeasures(params: CommonParameters = {}): Promise<Array<UnitOfMeasure>> {
2759
+ return this.request({
2760
+ path: `/procurement/unitOfMeasures`,
2761
+ method: 'get',
2762
+ params,
2763
+ })
2764
+ }
2765
+
2766
+ postProcurementUnitOfMeasures(unitOfMeasure: UnitOfMeasure): Promise<UnitOfMeasure> {
2767
+ return this.request({
2768
+ path: `/procurement/unitOfMeasures`,
2769
+ method: 'post',
2770
+ data: unitOfMeasure,
2771
+ })
2772
+ }
2773
+
2774
+ getProcurementUnitOfMeasuresById(
2775
+ id: number,
2776
+ params: CommonParameters = {},
2777
+ ): Promise<UnitOfMeasure> {
2778
+ return this.request({
2779
+ path: `/procurement/unitOfMeasures/${id}`,
2780
+ method: 'get',
2781
+ params,
2782
+ })
2783
+ }
2784
+
2785
+ deleteProcurementUnitOfMeasuresById(id: number): Promise<NoContentResponse> {
2786
+ return this.request({
2787
+ path: `/procurement/unitOfMeasures/${id}`,
2788
+ method: 'delete',
2789
+ })
2790
+ }
2791
+
2792
+ putProcurementUnitOfMeasuresById(
2793
+ id: number,
2794
+ unitOfMeasure: UnitOfMeasure,
2795
+ ): Promise<UnitOfMeasure> {
2796
+ return this.request({
2797
+ path: `/procurement/unitOfMeasures/${id}`,
2798
+ method: 'put',
2799
+ data: unitOfMeasure,
2800
+ })
2801
+ }
2802
+
2803
+ patchProcurementUnitOfMeasuresById(
2804
+ id: number,
2805
+ patchOperations: Array<PatchOperation>,
2806
+ ): Promise<UnitOfMeasure> {
2807
+ return this.request({
2808
+ path: `/procurement/unitOfMeasures/${id}`,
2809
+ method: 'patch',
2810
+ data: patchOperations,
2811
+ })
2812
+ }
2813
+
2814
+ getProcurementUnitOfMeasuresByParentIdConversions(
2815
+ parentId: number,
2816
+ params: CommonParameters = {},
2817
+ ): Promise<Array<Conversion>> {
2818
+ return this.request({
2819
+ path: `/procurement/unitOfMeasures/${parentId}/conversions`,
2820
+ method: 'get',
2821
+ params,
2822
+ })
2823
+ }
2824
+
2825
+ postProcurementUnitOfMeasuresByParentIdConversions(
2826
+ parentId: number,
2827
+ conversion: Conversion,
2828
+ ): Promise<Conversion> {
2829
+ return this.request({
2830
+ path: `/procurement/unitOfMeasures/${parentId}/conversions`,
2831
+ method: 'post',
2832
+ data: conversion,
2833
+ })
2834
+ }
2835
+
2836
+ getProcurementUnitOfMeasuresByParentIdConversionsById(
2837
+ id: number,
2838
+ parentId: number,
2839
+ params: CommonParameters = {},
2840
+ ): Promise<Conversion> {
2841
+ return this.request({
2842
+ path: `/procurement/unitOfMeasures/${parentId}/conversions/${id}`,
2843
+ method: 'get',
2844
+ params,
2845
+ })
2846
+ }
2847
+
2848
+ deleteProcurementUnitOfMeasuresByParentIdConversionsById(
2849
+ id: number,
2850
+ parentId: number,
2851
+ ): Promise<NoContentResponse> {
2852
+ return this.request({
2853
+ path: `/procurement/unitOfMeasures/${parentId}/conversions/${id}`,
2854
+ method: 'delete',
2855
+ })
2856
+ }
2857
+
2858
+ putProcurementUnitOfMeasuresByParentIdConversionsById(
2859
+ id: number,
2860
+ parentId: number,
2861
+ conversion: Conversion,
2862
+ ): Promise<Conversion> {
2863
+ return this.request({
2864
+ path: `/procurement/unitOfMeasures/${parentId}/conversions/${id}`,
2865
+ method: 'put',
2866
+ data: conversion,
2867
+ })
2868
+ }
2869
+
2870
+ patchProcurementUnitOfMeasuresByParentIdConversionsById(
2871
+ id: number,
2872
+ parentId: number,
2873
+ patchOperations: Array<PatchOperation>,
2874
+ ): Promise<Conversion> {
2875
+ return this.request({
2876
+ path: `/procurement/unitOfMeasures/${parentId}/conversions/${id}`,
2877
+ method: 'patch',
2878
+ data: patchOperations,
2879
+ })
2880
+ }
2881
+
2882
+ getProcurementUnitOfMeasuresByParentIdConversionsCount(
2883
+ parentId: number,
2884
+ params: CommonParameters = {},
2885
+ ): Promise<Count> {
2886
+ return this.request({
2887
+ path: `/procurement/unitOfMeasures/${parentId}/conversions/count`,
2888
+ method: 'get',
2889
+ params,
2890
+ })
2891
+ }
2892
+
2893
+ getProcurementUnitOfMeasuresCount(params: CommonParameters = {}): Promise<Count> {
2894
+ return this.request({
2895
+ path: `/procurement/unitOfMeasures/count`,
2896
+ method: 'get',
2897
+ params,
2898
+ })
2899
+ }
2900
+
2901
+ getProcurementWarehouseBins(params: CommonParameters = {}): Promise<Array<WarehouseBin>> {
2902
+ return this.request({
2903
+ path: `/procurement/warehouseBins`,
2904
+ method: 'get',
2905
+ params,
2906
+ })
2907
+ }
2908
+
2909
+ postProcurementWarehouseBins(warehouseBin: WarehouseBin): Promise<WarehouseBin> {
2910
+ return this.request({
2911
+ path: `/procurement/warehouseBins`,
2912
+ method: 'post',
2913
+ data: warehouseBin,
2914
+ })
2915
+ }
2916
+
2917
+ getProcurementWarehouseBinsById(
2918
+ id: number,
2919
+ params: CommonParameters = {},
2920
+ ): Promise<WarehouseBin> {
2921
+ return this.request({
2922
+ path: `/procurement/warehouseBins/${id}`,
2923
+ method: 'get',
2924
+ params,
2925
+ })
2926
+ }
2927
+
2928
+ deleteProcurementWarehouseBinsById(id: number): Promise<NoContentResponse> {
2929
+ return this.request({
2930
+ path: `/procurement/warehouseBins/${id}`,
2931
+ method: 'delete',
2932
+ })
2933
+ }
2934
+
2935
+ putProcurementWarehouseBinsById(id: number, warehouseBin: WarehouseBin): Promise<WarehouseBin> {
2936
+ return this.request({
2937
+ path: `/procurement/warehouseBins/${id}`,
2938
+ method: 'put',
2939
+ data: warehouseBin,
2940
+ })
2941
+ }
2942
+
2943
+ patchProcurementWarehouseBinsById(
2944
+ id: number,
2945
+ patchOperations: Array<PatchOperation>,
2946
+ ): Promise<WarehouseBin> {
2947
+ return this.request({
2948
+ path: `/procurement/warehouseBins/${id}`,
2949
+ method: 'patch',
2950
+ data: patchOperations,
2951
+ })
2952
+ }
2953
+
2954
+ getProcurementWarehouseBinsByIdInfo(
2955
+ id: number,
2956
+ params: CommonParameters = {},
2957
+ ): Promise<WarehouseBinInfo> {
2958
+ return this.request({
2959
+ path: `/procurement/warehouseBins/${id}/info`,
2960
+ method: 'get',
2961
+ params,
2962
+ })
2963
+ }
2964
+
2965
+ getProcurementWarehouseBinsByParentIdInventoryOnHand(
2966
+ parentId: number,
2967
+ params: CommonParameters = {},
2968
+ ): Promise<Array<InventoryOnHand>> {
2969
+ return this.request({
2970
+ path: `/procurement/warehouseBins/${parentId}/inventoryOnHand`,
2971
+ method: 'get',
2972
+ params,
2973
+ })
2974
+ }
2975
+
2976
+ getProcurementWarehouseBinsByParentIdInventoryOnHandById(
2977
+ id: number,
2978
+ parentId: number,
2979
+ params: CommonParameters = {},
2980
+ ): Promise<InventoryOnHand> {
2981
+ return this.request({
2982
+ path: `/procurement/warehouseBins/${parentId}/inventoryOnHand/${id}`,
2983
+ method: 'get',
2984
+ params,
2985
+ })
2986
+ }
2987
+
2988
+ getProcurementWarehouseBinsByParentIdInventoryOnHandCount(
2989
+ parentId: number,
2990
+ params: CommonParameters = {},
2991
+ ): Promise<Count> {
2992
+ return this.request({
2993
+ path: `/procurement/warehouseBins/${parentId}/inventoryOnHand/count`,
2994
+ method: 'get',
2995
+ params,
2996
+ })
2997
+ }
2998
+
2999
+ getProcurementWarehouseBinsCount(params: CommonParameters = {}): Promise<Count> {
3000
+ return this.request({
3001
+ path: `/procurement/warehouseBins/count`,
3002
+ method: 'get',
3003
+ params,
3004
+ })
3005
+ }
3006
+
3007
+ getProcurementWarehouseBinsInfo(params: CommonParameters = {}): Promise<Array<WarehouseBinInfo>> {
3008
+ return this.request({
3009
+ path: `/procurement/warehouseBins/info`,
3010
+ method: 'get',
3011
+ params,
3012
+ })
3013
+ }
3014
+
3015
+ getProcurementWarehouseBinsInfoCount(params: CommonParameters = {}): Promise<Count> {
3016
+ return this.request({
3017
+ path: `/procurement/warehouseBins/info/count`,
3018
+ method: 'get',
3019
+ params,
3020
+ })
3021
+ }
3022
+
3023
+ getProcurementWarehouses(params: CommonParameters = {}): Promise<Array<Warehouse>> {
3024
+ return this.request({
3025
+ path: `/procurement/warehouses`,
3026
+ method: 'get',
3027
+ params,
3028
+ })
3029
+ }
3030
+
3031
+ postProcurementWarehouses(warehouse: Warehouse): Promise<Warehouse> {
3032
+ return this.request({
3033
+ path: `/procurement/warehouses`,
3034
+ method: 'post',
3035
+ data: warehouse,
3036
+ })
3037
+ }
3038
+
3039
+ getProcurementWarehousesById(id: number, params: CommonParameters = {}): Promise<Warehouse> {
3040
+ return this.request({
3041
+ path: `/procurement/warehouses/${id}`,
3042
+ method: 'get',
3043
+ params,
3044
+ })
3045
+ }
3046
+
3047
+ deleteProcurementWarehousesById(id: number): Promise<NoContentResponse> {
3048
+ return this.request({
3049
+ path: `/procurement/warehouses/${id}`,
3050
+ method: 'delete',
3051
+ })
3052
+ }
3053
+
3054
+ putProcurementWarehousesById(id: number, warehouse: Warehouse): Promise<Warehouse> {
3055
+ return this.request({
3056
+ path: `/procurement/warehouses/${id}`,
3057
+ method: 'put',
3058
+ data: warehouse,
3059
+ })
3060
+ }
3061
+
3062
+ patchProcurementWarehousesById(
3063
+ id: number,
3064
+ patchOperations: Array<PatchOperation>,
3065
+ ): Promise<Warehouse> {
3066
+ return this.request({
3067
+ path: `/procurement/warehouses/${id}`,
3068
+ method: 'patch',
3069
+ data: patchOperations,
3070
+ })
3071
+ }
3072
+
3073
+ getProcurementWarehousesByIdInfo(
3074
+ id: number,
3075
+ params: CommonParameters = {},
3076
+ ): Promise<WarehouseInfo> {
3077
+ return this.request({
3078
+ path: `/procurement/warehouses/${id}/info`,
3079
+ method: 'get',
3080
+ params,
3081
+ })
3082
+ }
3083
+
3084
+ getProcurementWarehousesCount(params: CommonParameters = {}): Promise<Count> {
3085
+ return this.request({
3086
+ path: `/procurement/warehouses/count`,
3087
+ method: 'get',
3088
+ params,
3089
+ })
3090
+ }
3091
+
3092
+ getProcurementWarehousesInfo(params: CommonParameters = {}): Promise<Array<WarehouseInfo>> {
3093
+ return this.request({
3094
+ path: `/procurement/warehouses/info`,
3095
+ method: 'get',
3096
+ params,
3097
+ })
3098
+ }
3099
+
3100
+ getProcurementWarehousesInfoCount(params: CommonParameters = {}): Promise<Count> {
3101
+ return this.request({
3102
+ path: `/procurement/warehouses/info/count`,
3103
+ method: 'get',
3104
+ params,
3105
+ })
3106
+ }
3107
+ }