connectwise-rest 0.23.3 → 1.0.0

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