@revenexx/sdk 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +148 -0
  3. package/dist/cjs/package.json +3 -0
  4. package/dist/cjs/sdk.js +16340 -0
  5. package/dist/cjs/sdk.js.map +1 -0
  6. package/dist/esm/package.json +3 -0
  7. package/dist/esm/sdk.js +16250 -0
  8. package/dist/esm/sdk.js.map +1 -0
  9. package/dist/iife/sdk.js +20101 -0
  10. package/package.json +56 -0
  11. package/src/channel.ts +158 -0
  12. package/src/client.ts +950 -0
  13. package/src/enums/adapter.ts +4 -0
  14. package/src/enums/attribute-boolean-status.ts +7 -0
  15. package/src/enums/attribute-datetime-status.ts +7 -0
  16. package/src/enums/attribute-email-status.ts +7 -0
  17. package/src/enums/attribute-enum-status.ts +7 -0
  18. package/src/enums/attribute-float-status.ts +7 -0
  19. package/src/enums/attribute-integer-status.ts +7 -0
  20. package/src/enums/attribute-ip-status.ts +7 -0
  21. package/src/enums/attribute-line-status.ts +7 -0
  22. package/src/enums/attribute-longtext-status.ts +7 -0
  23. package/src/enums/attribute-mediumtext-status.ts +7 -0
  24. package/src/enums/attribute-point-status.ts +7 -0
  25. package/src/enums/attribute-polygon-status.ts +7 -0
  26. package/src/enums/attribute-relationship-status.ts +7 -0
  27. package/src/enums/attribute-string-status.ts +7 -0
  28. package/src/enums/attribute-text-status.ts +7 -0
  29. package/src/enums/attribute-url-status.ts +7 -0
  30. package/src/enums/attribute-varchar-status.ts +7 -0
  31. package/src/enums/build-runtime.ts +73 -0
  32. package/src/enums/code.ts +16 -0
  33. package/src/enums/collection.ts +4 -0
  34. package/src/enums/column-boolean-status.ts +7 -0
  35. package/src/enums/column-datetime-status.ts +7 -0
  36. package/src/enums/column-email-status.ts +7 -0
  37. package/src/enums/column-enum-status.ts +7 -0
  38. package/src/enums/column-float-status.ts +7 -0
  39. package/src/enums/column-integer-status.ts +7 -0
  40. package/src/enums/column-ip-status.ts +7 -0
  41. package/src/enums/column-line-status.ts +7 -0
  42. package/src/enums/column-longtext-status.ts +7 -0
  43. package/src/enums/column-mediumtext-status.ts +7 -0
  44. package/src/enums/column-point-status.ts +7 -0
  45. package/src/enums/column-polygon-status.ts +7 -0
  46. package/src/enums/column-relationship-status.ts +7 -0
  47. package/src/enums/column-string-status.ts +7 -0
  48. package/src/enums/column-text-status.ts +7 -0
  49. package/src/enums/column-url-status.ts +7 -0
  50. package/src/enums/column-varchar-status.ts +7 -0
  51. package/src/enums/compression.ts +5 -0
  52. package/src/enums/database-type.ts +4 -0
  53. package/src/enums/deployment-status.ts +8 -0
  54. package/src/enums/execution-status.ts +7 -0
  55. package/src/enums/execution-trigger.ts +5 -0
  56. package/src/enums/framework.ts +17 -0
  57. package/src/enums/gravity.ts +11 -0
  58. package/src/enums/health-antivirus-status.ts +5 -0
  59. package/src/enums/health-status-status.ts +4 -0
  60. package/src/enums/index-status.ts +7 -0
  61. package/src/enums/message-status.ts +7 -0
  62. package/src/enums/method.ts +9 -0
  63. package/src/enums/output.ts +9 -0
  64. package/src/enums/permissions.ts +22 -0
  65. package/src/enums/priority.ts +4 -0
  66. package/src/enums/range.ts +5 -0
  67. package/src/enums/runtime.ts +73 -0
  68. package/src/enums/runtimes.ts +73 -0
  69. package/src/enums/scopes.ts +57 -0
  70. package/src/enums/theme.ts +4 -0
  71. package/src/enums/timezone.ts +421 -0
  72. package/src/enums/type.ts +5 -0
  73. package/src/enums/use-cases.ts +9 -0
  74. package/src/id.ts +47 -0
  75. package/src/index.ts +92 -0
  76. package/src/models.ts +6013 -0
  77. package/src/operator.ts +308 -0
  78. package/src/permission.ts +57 -0
  79. package/src/query.ts +576 -0
  80. package/src/role.ts +100 -0
  81. package/src/service.ts +30 -0
  82. package/src/services/apps.ts +2473 -0
  83. package/src/services/avatars.ts +744 -0
  84. package/src/services/carts.ts +1057 -0
  85. package/src/services/channels.ts +227 -0
  86. package/src/services/customers.ts +729 -0
  87. package/src/services/greetings.ts +294 -0
  88. package/src/services/locale.ts +198 -0
  89. package/src/services/markets.ts +796 -0
  90. package/src/services/messaging.ts +3463 -0
  91. package/src/services/products.ts +3100 -0
  92. package/src/services/realtime.ts +537 -0
  93. package/src/services/search.ts +346 -0
  94. package/src/services/sites.ts +1847 -0
  95. package/src/services/storage.ts +1076 -0
  96. package/src/services/tokens.ts +314 -0
  97. package/types/channel.d.ts +74 -0
  98. package/types/client.d.ts +211 -0
  99. package/types/enums/adapter.d.ts +4 -0
  100. package/types/enums/attribute-boolean-status.d.ts +7 -0
  101. package/types/enums/attribute-datetime-status.d.ts +7 -0
  102. package/types/enums/attribute-email-status.d.ts +7 -0
  103. package/types/enums/attribute-enum-status.d.ts +7 -0
  104. package/types/enums/attribute-float-status.d.ts +7 -0
  105. package/types/enums/attribute-integer-status.d.ts +7 -0
  106. package/types/enums/attribute-ip-status.d.ts +7 -0
  107. package/types/enums/attribute-line-status.d.ts +7 -0
  108. package/types/enums/attribute-longtext-status.d.ts +7 -0
  109. package/types/enums/attribute-mediumtext-status.d.ts +7 -0
  110. package/types/enums/attribute-point-status.d.ts +7 -0
  111. package/types/enums/attribute-polygon-status.d.ts +7 -0
  112. package/types/enums/attribute-relationship-status.d.ts +7 -0
  113. package/types/enums/attribute-string-status.d.ts +7 -0
  114. package/types/enums/attribute-text-status.d.ts +7 -0
  115. package/types/enums/attribute-url-status.d.ts +7 -0
  116. package/types/enums/attribute-varchar-status.d.ts +7 -0
  117. package/types/enums/build-runtime.d.ts +73 -0
  118. package/types/enums/code.d.ts +16 -0
  119. package/types/enums/collection.d.ts +4 -0
  120. package/types/enums/column-boolean-status.d.ts +7 -0
  121. package/types/enums/column-datetime-status.d.ts +7 -0
  122. package/types/enums/column-email-status.d.ts +7 -0
  123. package/types/enums/column-enum-status.d.ts +7 -0
  124. package/types/enums/column-float-status.d.ts +7 -0
  125. package/types/enums/column-integer-status.d.ts +7 -0
  126. package/types/enums/column-ip-status.d.ts +7 -0
  127. package/types/enums/column-line-status.d.ts +7 -0
  128. package/types/enums/column-longtext-status.d.ts +7 -0
  129. package/types/enums/column-mediumtext-status.d.ts +7 -0
  130. package/types/enums/column-point-status.d.ts +7 -0
  131. package/types/enums/column-polygon-status.d.ts +7 -0
  132. package/types/enums/column-relationship-status.d.ts +7 -0
  133. package/types/enums/column-string-status.d.ts +7 -0
  134. package/types/enums/column-text-status.d.ts +7 -0
  135. package/types/enums/column-url-status.d.ts +7 -0
  136. package/types/enums/column-varchar-status.d.ts +7 -0
  137. package/types/enums/compression.d.ts +5 -0
  138. package/types/enums/database-type.d.ts +4 -0
  139. package/types/enums/deployment-status.d.ts +8 -0
  140. package/types/enums/execution-status.d.ts +7 -0
  141. package/types/enums/execution-trigger.d.ts +5 -0
  142. package/types/enums/framework.d.ts +17 -0
  143. package/types/enums/gravity.d.ts +11 -0
  144. package/types/enums/health-antivirus-status.d.ts +5 -0
  145. package/types/enums/health-status-status.d.ts +4 -0
  146. package/types/enums/index-status.d.ts +7 -0
  147. package/types/enums/message-status.d.ts +7 -0
  148. package/types/enums/method.d.ts +9 -0
  149. package/types/enums/output.d.ts +9 -0
  150. package/types/enums/permissions.d.ts +22 -0
  151. package/types/enums/priority.d.ts +4 -0
  152. package/types/enums/range.d.ts +5 -0
  153. package/types/enums/runtime.d.ts +73 -0
  154. package/types/enums/runtimes.d.ts +73 -0
  155. package/types/enums/scopes.d.ts +57 -0
  156. package/types/enums/theme.d.ts +4 -0
  157. package/types/enums/timezone.d.ts +421 -0
  158. package/types/enums/type.d.ts +5 -0
  159. package/types/enums/use-cases.d.ts +9 -0
  160. package/types/id.d.ts +20 -0
  161. package/types/index.d.ts +92 -0
  162. package/types/models.d.ts +5830 -0
  163. package/types/operator.d.ts +180 -0
  164. package/types/permission.d.ts +43 -0
  165. package/types/query.d.ts +442 -0
  166. package/types/role.d.ts +70 -0
  167. package/types/service.d.ts +11 -0
  168. package/types/services/apps.d.ts +932 -0
  169. package/types/services/avatars.d.ts +318 -0
  170. package/types/services/carts.d.ts +352 -0
  171. package/types/services/channels.d.ts +75 -0
  172. package/types/services/customers.d.ts +231 -0
  173. package/types/services/greetings.d.ts +101 -0
  174. package/types/services/locale.d.ts +64 -0
  175. package/types/services/markets.d.ts +274 -0
  176. package/types/services/messaging.d.ts +1324 -0
  177. package/types/services/products.d.ts +1014 -0
  178. package/types/services/realtime.d.ts +134 -0
  179. package/types/services/search.d.ts +131 -0
  180. package/types/services/sites.d.ts +689 -0
  181. package/types/services/storage.d.ts +421 -0
  182. package/types/services/tokens.d.ts +119 -0
@@ -0,0 +1,3100 @@
1
+ import { Service } from '../service';
2
+ import { RevenexxException, Client, type Payload, UploadProgress } from '../client';
3
+ import type { Models } from '../models';
4
+
5
+
6
+ export class Products {
7
+ client: Client;
8
+
9
+ constructor(client: Client) {
10
+ this.client = client;
11
+ }
12
+
13
+ /**
14
+ *
15
+ * @throws {RevenexxException}
16
+ * @returns {Promise<{}>}
17
+ */
18
+ productsList(): Promise<{}> {
19
+
20
+ const apiPath = '/v1/products';
21
+ const payload: Payload = {};
22
+ const uri = new URL(this.client.config.endpoint + apiPath);
23
+
24
+ const apiHeaders: { [header: string]: string } = {
25
+ }
26
+
27
+ return this.client.call(
28
+ 'get',
29
+ uri,
30
+ apiHeaders,
31
+ payload
32
+ );
33
+ }
34
+
35
+ /**
36
+ *
37
+ * @throws {RevenexxException}
38
+ * @returns {Promise<Models.Products>}
39
+ */
40
+ productsCreate(): Promise<Models.Products> {
41
+
42
+ const apiPath = '/v1/products';
43
+ const payload: Payload = {};
44
+ const uri = new URL(this.client.config.endpoint + apiPath);
45
+
46
+ const apiHeaders: { [header: string]: string } = {
47
+ 'content-type': 'application/json',
48
+ }
49
+
50
+ return this.client.call(
51
+ 'post',
52
+ uri,
53
+ apiHeaders,
54
+ payload
55
+ );
56
+ }
57
+
58
+ /**
59
+ *
60
+ * @throws {RevenexxException}
61
+ * @returns {Promise<{}>}
62
+ */
63
+ productsAssetFamiliesList(): Promise<{}> {
64
+
65
+ const apiPath = '/v1/products/asset_families';
66
+ const payload: Payload = {};
67
+ const uri = new URL(this.client.config.endpoint + apiPath);
68
+
69
+ const apiHeaders: { [header: string]: string } = {
70
+ }
71
+
72
+ return this.client.call(
73
+ 'get',
74
+ uri,
75
+ apiHeaders,
76
+ payload
77
+ );
78
+ }
79
+
80
+ /**
81
+ *
82
+ * @throws {RevenexxException}
83
+ * @returns {Promise<Models.AssetFamilies>}
84
+ */
85
+ productsAssetFamiliesCreate(): Promise<Models.AssetFamilies> {
86
+
87
+ const apiPath = '/v1/products/asset_families';
88
+ const payload: Payload = {};
89
+ const uri = new URL(this.client.config.endpoint + apiPath);
90
+
91
+ const apiHeaders: { [header: string]: string } = {
92
+ 'content-type': 'application/json',
93
+ }
94
+
95
+ return this.client.call(
96
+ 'post',
97
+ uri,
98
+ apiHeaders,
99
+ payload
100
+ );
101
+ }
102
+
103
+ /**
104
+ *
105
+ * @param {string} params.id -
106
+ * @throws {RevenexxException}
107
+ * @returns {Promise<{}>}
108
+ */
109
+ productsAssetFamiliesDelete(params: { id: string }): Promise<{}>;
110
+ /**
111
+ *
112
+ * @param {string} id -
113
+ * @throws {RevenexxException}
114
+ * @returns {Promise<{}>}
115
+ * @deprecated Use the object parameter style method for a better developer experience.
116
+ */
117
+ productsAssetFamiliesDelete(id: string): Promise<{}>;
118
+ productsAssetFamiliesDelete(
119
+ paramsOrFirst: { id: string } | string
120
+ ): Promise<{}> {
121
+ let params: { id: string };
122
+
123
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
124
+ params = (paramsOrFirst || {}) as { id: string };
125
+ } else {
126
+ params = {
127
+ id: paramsOrFirst as string
128
+ };
129
+ }
130
+
131
+ const id = params.id;
132
+
133
+ if (typeof id === 'undefined') {
134
+ throw new RevenexxException('Missing required parameter: "id"');
135
+ }
136
+
137
+ const apiPath = '/v1/products/asset_families/{id}'.replace('{id}', id);
138
+ const payload: Payload = {};
139
+ const uri = new URL(this.client.config.endpoint + apiPath);
140
+
141
+ const apiHeaders: { [header: string]: string } = {
142
+ }
143
+
144
+ return this.client.call(
145
+ 'delete',
146
+ uri,
147
+ apiHeaders,
148
+ payload
149
+ );
150
+ }
151
+
152
+ /**
153
+ *
154
+ * @param {string} params.id -
155
+ * @throws {RevenexxException}
156
+ * @returns {Promise<Models.AssetFamilies>}
157
+ */
158
+ productsAssetFamiliesGet(params: { id: string }): Promise<Models.AssetFamilies>;
159
+ /**
160
+ *
161
+ * @param {string} id -
162
+ * @throws {RevenexxException}
163
+ * @returns {Promise<Models.AssetFamilies>}
164
+ * @deprecated Use the object parameter style method for a better developer experience.
165
+ */
166
+ productsAssetFamiliesGet(id: string): Promise<Models.AssetFamilies>;
167
+ productsAssetFamiliesGet(
168
+ paramsOrFirst: { id: string } | string
169
+ ): Promise<Models.AssetFamilies> {
170
+ let params: { id: string };
171
+
172
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
173
+ params = (paramsOrFirst || {}) as { id: string };
174
+ } else {
175
+ params = {
176
+ id: paramsOrFirst as string
177
+ };
178
+ }
179
+
180
+ const id = params.id;
181
+
182
+ if (typeof id === 'undefined') {
183
+ throw new RevenexxException('Missing required parameter: "id"');
184
+ }
185
+
186
+ const apiPath = '/v1/products/asset_families/{id}'.replace('{id}', id);
187
+ const payload: Payload = {};
188
+ const uri = new URL(this.client.config.endpoint + apiPath);
189
+
190
+ const apiHeaders: { [header: string]: string } = {
191
+ }
192
+
193
+ return this.client.call(
194
+ 'get',
195
+ uri,
196
+ apiHeaders,
197
+ payload
198
+ );
199
+ }
200
+
201
+ /**
202
+ *
203
+ * @param {string} params.id -
204
+ * @throws {RevenexxException}
205
+ * @returns {Promise<Models.AssetFamilies>}
206
+ */
207
+ productsAssetFamiliesUpdate(params: { id: string }): Promise<Models.AssetFamilies>;
208
+ /**
209
+ *
210
+ * @param {string} id -
211
+ * @throws {RevenexxException}
212
+ * @returns {Promise<Models.AssetFamilies>}
213
+ * @deprecated Use the object parameter style method for a better developer experience.
214
+ */
215
+ productsAssetFamiliesUpdate(id: string): Promise<Models.AssetFamilies>;
216
+ productsAssetFamiliesUpdate(
217
+ paramsOrFirst: { id: string } | string
218
+ ): Promise<Models.AssetFamilies> {
219
+ let params: { id: string };
220
+
221
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
222
+ params = (paramsOrFirst || {}) as { id: string };
223
+ } else {
224
+ params = {
225
+ id: paramsOrFirst as string
226
+ };
227
+ }
228
+
229
+ const id = params.id;
230
+
231
+ if (typeof id === 'undefined') {
232
+ throw new RevenexxException('Missing required parameter: "id"');
233
+ }
234
+
235
+ const apiPath = '/v1/products/asset_families/{id}'.replace('{id}', id);
236
+ const payload: Payload = {};
237
+ const uri = new URL(this.client.config.endpoint + apiPath);
238
+
239
+ const apiHeaders: { [header: string]: string } = {
240
+ 'content-type': 'application/json',
241
+ }
242
+
243
+ return this.client.call(
244
+ 'put',
245
+ uri,
246
+ apiHeaders,
247
+ payload
248
+ );
249
+ }
250
+
251
+ /**
252
+ *
253
+ * @throws {RevenexxException}
254
+ * @returns {Promise<{}>}
255
+ */
256
+ productsAssetsList(): Promise<{}> {
257
+
258
+ const apiPath = '/v1/products/assets';
259
+ const payload: Payload = {};
260
+ const uri = new URL(this.client.config.endpoint + apiPath);
261
+
262
+ const apiHeaders: { [header: string]: string } = {
263
+ }
264
+
265
+ return this.client.call(
266
+ 'get',
267
+ uri,
268
+ apiHeaders,
269
+ payload
270
+ );
271
+ }
272
+
273
+ /**
274
+ *
275
+ * @throws {RevenexxException}
276
+ * @returns {Promise<Models.Assets>}
277
+ */
278
+ productsAssetsCreate(): Promise<Models.Assets> {
279
+
280
+ const apiPath = '/v1/products/assets';
281
+ const payload: Payload = {};
282
+ const uri = new URL(this.client.config.endpoint + apiPath);
283
+
284
+ const apiHeaders: { [header: string]: string } = {
285
+ 'content-type': 'application/json',
286
+ }
287
+
288
+ return this.client.call(
289
+ 'post',
290
+ uri,
291
+ apiHeaders,
292
+ payload
293
+ );
294
+ }
295
+
296
+ /**
297
+ *
298
+ * @param {string} params.id -
299
+ * @throws {RevenexxException}
300
+ * @returns {Promise<{}>}
301
+ */
302
+ productsAssetsDelete(params: { id: string }): Promise<{}>;
303
+ /**
304
+ *
305
+ * @param {string} id -
306
+ * @throws {RevenexxException}
307
+ * @returns {Promise<{}>}
308
+ * @deprecated Use the object parameter style method for a better developer experience.
309
+ */
310
+ productsAssetsDelete(id: string): Promise<{}>;
311
+ productsAssetsDelete(
312
+ paramsOrFirst: { id: string } | string
313
+ ): Promise<{}> {
314
+ let params: { id: string };
315
+
316
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
317
+ params = (paramsOrFirst || {}) as { id: string };
318
+ } else {
319
+ params = {
320
+ id: paramsOrFirst as string
321
+ };
322
+ }
323
+
324
+ const id = params.id;
325
+
326
+ if (typeof id === 'undefined') {
327
+ throw new RevenexxException('Missing required parameter: "id"');
328
+ }
329
+
330
+ const apiPath = '/v1/products/assets/{id}'.replace('{id}', id);
331
+ const payload: Payload = {};
332
+ const uri = new URL(this.client.config.endpoint + apiPath);
333
+
334
+ const apiHeaders: { [header: string]: string } = {
335
+ }
336
+
337
+ return this.client.call(
338
+ 'delete',
339
+ uri,
340
+ apiHeaders,
341
+ payload
342
+ );
343
+ }
344
+
345
+ /**
346
+ *
347
+ * @param {string} params.id -
348
+ * @throws {RevenexxException}
349
+ * @returns {Promise<Models.Assets>}
350
+ */
351
+ productsAssetsGet(params: { id: string }): Promise<Models.Assets>;
352
+ /**
353
+ *
354
+ * @param {string} id -
355
+ * @throws {RevenexxException}
356
+ * @returns {Promise<Models.Assets>}
357
+ * @deprecated Use the object parameter style method for a better developer experience.
358
+ */
359
+ productsAssetsGet(id: string): Promise<Models.Assets>;
360
+ productsAssetsGet(
361
+ paramsOrFirst: { id: string } | string
362
+ ): Promise<Models.Assets> {
363
+ let params: { id: string };
364
+
365
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
366
+ params = (paramsOrFirst || {}) as { id: string };
367
+ } else {
368
+ params = {
369
+ id: paramsOrFirst as string
370
+ };
371
+ }
372
+
373
+ const id = params.id;
374
+
375
+ if (typeof id === 'undefined') {
376
+ throw new RevenexxException('Missing required parameter: "id"');
377
+ }
378
+
379
+ const apiPath = '/v1/products/assets/{id}'.replace('{id}', id);
380
+ const payload: Payload = {};
381
+ const uri = new URL(this.client.config.endpoint + apiPath);
382
+
383
+ const apiHeaders: { [header: string]: string } = {
384
+ }
385
+
386
+ return this.client.call(
387
+ 'get',
388
+ uri,
389
+ apiHeaders,
390
+ payload
391
+ );
392
+ }
393
+
394
+ /**
395
+ *
396
+ * @param {string} params.id -
397
+ * @throws {RevenexxException}
398
+ * @returns {Promise<Models.Assets>}
399
+ */
400
+ productsAssetsUpdate(params: { id: string }): Promise<Models.Assets>;
401
+ /**
402
+ *
403
+ * @param {string} id -
404
+ * @throws {RevenexxException}
405
+ * @returns {Promise<Models.Assets>}
406
+ * @deprecated Use the object parameter style method for a better developer experience.
407
+ */
408
+ productsAssetsUpdate(id: string): Promise<Models.Assets>;
409
+ productsAssetsUpdate(
410
+ paramsOrFirst: { id: string } | string
411
+ ): Promise<Models.Assets> {
412
+ let params: { id: string };
413
+
414
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
415
+ params = (paramsOrFirst || {}) as { id: string };
416
+ } else {
417
+ params = {
418
+ id: paramsOrFirst as string
419
+ };
420
+ }
421
+
422
+ const id = params.id;
423
+
424
+ if (typeof id === 'undefined') {
425
+ throw new RevenexxException('Missing required parameter: "id"');
426
+ }
427
+
428
+ const apiPath = '/v1/products/assets/{id}'.replace('{id}', id);
429
+ const payload: Payload = {};
430
+ const uri = new URL(this.client.config.endpoint + apiPath);
431
+
432
+ const apiHeaders: { [header: string]: string } = {
433
+ 'content-type': 'application/json',
434
+ }
435
+
436
+ return this.client.call(
437
+ 'put',
438
+ uri,
439
+ apiHeaders,
440
+ payload
441
+ );
442
+ }
443
+
444
+ /**
445
+ *
446
+ * @throws {RevenexxException}
447
+ * @returns {Promise<{}>}
448
+ */
449
+ productsAssociationTypesList(): Promise<{}> {
450
+
451
+ const apiPath = '/v1/products/association_types';
452
+ const payload: Payload = {};
453
+ const uri = new URL(this.client.config.endpoint + apiPath);
454
+
455
+ const apiHeaders: { [header: string]: string } = {
456
+ }
457
+
458
+ return this.client.call(
459
+ 'get',
460
+ uri,
461
+ apiHeaders,
462
+ payload
463
+ );
464
+ }
465
+
466
+ /**
467
+ *
468
+ * @throws {RevenexxException}
469
+ * @returns {Promise<Models.AssociationTypes>}
470
+ */
471
+ productsAssociationTypesCreate(): Promise<Models.AssociationTypes> {
472
+
473
+ const apiPath = '/v1/products/association_types';
474
+ const payload: Payload = {};
475
+ const uri = new URL(this.client.config.endpoint + apiPath);
476
+
477
+ const apiHeaders: { [header: string]: string } = {
478
+ 'content-type': 'application/json',
479
+ }
480
+
481
+ return this.client.call(
482
+ 'post',
483
+ uri,
484
+ apiHeaders,
485
+ payload
486
+ );
487
+ }
488
+
489
+ /**
490
+ *
491
+ * @param {string} params.id -
492
+ * @throws {RevenexxException}
493
+ * @returns {Promise<{}>}
494
+ */
495
+ productsAssociationTypesDelete(params: { id: string }): Promise<{}>;
496
+ /**
497
+ *
498
+ * @param {string} id -
499
+ * @throws {RevenexxException}
500
+ * @returns {Promise<{}>}
501
+ * @deprecated Use the object parameter style method for a better developer experience.
502
+ */
503
+ productsAssociationTypesDelete(id: string): Promise<{}>;
504
+ productsAssociationTypesDelete(
505
+ paramsOrFirst: { id: string } | string
506
+ ): Promise<{}> {
507
+ let params: { id: string };
508
+
509
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
510
+ params = (paramsOrFirst || {}) as { id: string };
511
+ } else {
512
+ params = {
513
+ id: paramsOrFirst as string
514
+ };
515
+ }
516
+
517
+ const id = params.id;
518
+
519
+ if (typeof id === 'undefined') {
520
+ throw new RevenexxException('Missing required parameter: "id"');
521
+ }
522
+
523
+ const apiPath = '/v1/products/association_types/{id}'.replace('{id}', id);
524
+ const payload: Payload = {};
525
+ const uri = new URL(this.client.config.endpoint + apiPath);
526
+
527
+ const apiHeaders: { [header: string]: string } = {
528
+ }
529
+
530
+ return this.client.call(
531
+ 'delete',
532
+ uri,
533
+ apiHeaders,
534
+ payload
535
+ );
536
+ }
537
+
538
+ /**
539
+ *
540
+ * @param {string} params.id -
541
+ * @throws {RevenexxException}
542
+ * @returns {Promise<Models.AssociationTypes>}
543
+ */
544
+ productsAssociationTypesGet(params: { id: string }): Promise<Models.AssociationTypes>;
545
+ /**
546
+ *
547
+ * @param {string} id -
548
+ * @throws {RevenexxException}
549
+ * @returns {Promise<Models.AssociationTypes>}
550
+ * @deprecated Use the object parameter style method for a better developer experience.
551
+ */
552
+ productsAssociationTypesGet(id: string): Promise<Models.AssociationTypes>;
553
+ productsAssociationTypesGet(
554
+ paramsOrFirst: { id: string } | string
555
+ ): Promise<Models.AssociationTypes> {
556
+ let params: { id: string };
557
+
558
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
559
+ params = (paramsOrFirst || {}) as { id: string };
560
+ } else {
561
+ params = {
562
+ id: paramsOrFirst as string
563
+ };
564
+ }
565
+
566
+ const id = params.id;
567
+
568
+ if (typeof id === 'undefined') {
569
+ throw new RevenexxException('Missing required parameter: "id"');
570
+ }
571
+
572
+ const apiPath = '/v1/products/association_types/{id}'.replace('{id}', id);
573
+ const payload: Payload = {};
574
+ const uri = new URL(this.client.config.endpoint + apiPath);
575
+
576
+ const apiHeaders: { [header: string]: string } = {
577
+ }
578
+
579
+ return this.client.call(
580
+ 'get',
581
+ uri,
582
+ apiHeaders,
583
+ payload
584
+ );
585
+ }
586
+
587
+ /**
588
+ *
589
+ * @param {string} params.id -
590
+ * @throws {RevenexxException}
591
+ * @returns {Promise<Models.AssociationTypes>}
592
+ */
593
+ productsAssociationTypesUpdate(params: { id: string }): Promise<Models.AssociationTypes>;
594
+ /**
595
+ *
596
+ * @param {string} id -
597
+ * @throws {RevenexxException}
598
+ * @returns {Promise<Models.AssociationTypes>}
599
+ * @deprecated Use the object parameter style method for a better developer experience.
600
+ */
601
+ productsAssociationTypesUpdate(id: string): Promise<Models.AssociationTypes>;
602
+ productsAssociationTypesUpdate(
603
+ paramsOrFirst: { id: string } | string
604
+ ): Promise<Models.AssociationTypes> {
605
+ let params: { id: string };
606
+
607
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
608
+ params = (paramsOrFirst || {}) as { id: string };
609
+ } else {
610
+ params = {
611
+ id: paramsOrFirst as string
612
+ };
613
+ }
614
+
615
+ const id = params.id;
616
+
617
+ if (typeof id === 'undefined') {
618
+ throw new RevenexxException('Missing required parameter: "id"');
619
+ }
620
+
621
+ const apiPath = '/v1/products/association_types/{id}'.replace('{id}', id);
622
+ const payload: Payload = {};
623
+ const uri = new URL(this.client.config.endpoint + apiPath);
624
+
625
+ const apiHeaders: { [header: string]: string } = {
626
+ 'content-type': 'application/json',
627
+ }
628
+
629
+ return this.client.call(
630
+ 'put',
631
+ uri,
632
+ apiHeaders,
633
+ payload
634
+ );
635
+ }
636
+
637
+ /**
638
+ *
639
+ * @throws {RevenexxException}
640
+ * @returns {Promise<{}>}
641
+ */
642
+ productsAttributeGroupsList(): Promise<{}> {
643
+
644
+ const apiPath = '/v1/products/attribute_groups';
645
+ const payload: Payload = {};
646
+ const uri = new URL(this.client.config.endpoint + apiPath);
647
+
648
+ const apiHeaders: { [header: string]: string } = {
649
+ }
650
+
651
+ return this.client.call(
652
+ 'get',
653
+ uri,
654
+ apiHeaders,
655
+ payload
656
+ );
657
+ }
658
+
659
+ /**
660
+ *
661
+ * @throws {RevenexxException}
662
+ * @returns {Promise<Models.AttributeGroups>}
663
+ */
664
+ productsAttributeGroupsCreate(): Promise<Models.AttributeGroups> {
665
+
666
+ const apiPath = '/v1/products/attribute_groups';
667
+ const payload: Payload = {};
668
+ const uri = new URL(this.client.config.endpoint + apiPath);
669
+
670
+ const apiHeaders: { [header: string]: string } = {
671
+ 'content-type': 'application/json',
672
+ }
673
+
674
+ return this.client.call(
675
+ 'post',
676
+ uri,
677
+ apiHeaders,
678
+ payload
679
+ );
680
+ }
681
+
682
+ /**
683
+ *
684
+ * @param {string} params.id -
685
+ * @throws {RevenexxException}
686
+ * @returns {Promise<{}>}
687
+ */
688
+ productsAttributeGroupsDelete(params: { id: string }): Promise<{}>;
689
+ /**
690
+ *
691
+ * @param {string} id -
692
+ * @throws {RevenexxException}
693
+ * @returns {Promise<{}>}
694
+ * @deprecated Use the object parameter style method for a better developer experience.
695
+ */
696
+ productsAttributeGroupsDelete(id: string): Promise<{}>;
697
+ productsAttributeGroupsDelete(
698
+ paramsOrFirst: { id: string } | string
699
+ ): Promise<{}> {
700
+ let params: { id: string };
701
+
702
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
703
+ params = (paramsOrFirst || {}) as { id: string };
704
+ } else {
705
+ params = {
706
+ id: paramsOrFirst as string
707
+ };
708
+ }
709
+
710
+ const id = params.id;
711
+
712
+ if (typeof id === 'undefined') {
713
+ throw new RevenexxException('Missing required parameter: "id"');
714
+ }
715
+
716
+ const apiPath = '/v1/products/attribute_groups/{id}'.replace('{id}', id);
717
+ const payload: Payload = {};
718
+ const uri = new URL(this.client.config.endpoint + apiPath);
719
+
720
+ const apiHeaders: { [header: string]: string } = {
721
+ }
722
+
723
+ return this.client.call(
724
+ 'delete',
725
+ uri,
726
+ apiHeaders,
727
+ payload
728
+ );
729
+ }
730
+
731
+ /**
732
+ *
733
+ * @param {string} params.id -
734
+ * @throws {RevenexxException}
735
+ * @returns {Promise<Models.AttributeGroups>}
736
+ */
737
+ productsAttributeGroupsGet(params: { id: string }): Promise<Models.AttributeGroups>;
738
+ /**
739
+ *
740
+ * @param {string} id -
741
+ * @throws {RevenexxException}
742
+ * @returns {Promise<Models.AttributeGroups>}
743
+ * @deprecated Use the object parameter style method for a better developer experience.
744
+ */
745
+ productsAttributeGroupsGet(id: string): Promise<Models.AttributeGroups>;
746
+ productsAttributeGroupsGet(
747
+ paramsOrFirst: { id: string } | string
748
+ ): Promise<Models.AttributeGroups> {
749
+ let params: { id: string };
750
+
751
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
752
+ params = (paramsOrFirst || {}) as { id: string };
753
+ } else {
754
+ params = {
755
+ id: paramsOrFirst as string
756
+ };
757
+ }
758
+
759
+ const id = params.id;
760
+
761
+ if (typeof id === 'undefined') {
762
+ throw new RevenexxException('Missing required parameter: "id"');
763
+ }
764
+
765
+ const apiPath = '/v1/products/attribute_groups/{id}'.replace('{id}', id);
766
+ const payload: Payload = {};
767
+ const uri = new URL(this.client.config.endpoint + apiPath);
768
+
769
+ const apiHeaders: { [header: string]: string } = {
770
+ }
771
+
772
+ return this.client.call(
773
+ 'get',
774
+ uri,
775
+ apiHeaders,
776
+ payload
777
+ );
778
+ }
779
+
780
+ /**
781
+ *
782
+ * @param {string} params.id -
783
+ * @throws {RevenexxException}
784
+ * @returns {Promise<Models.AttributeGroups>}
785
+ */
786
+ productsAttributeGroupsUpdate(params: { id: string }): Promise<Models.AttributeGroups>;
787
+ /**
788
+ *
789
+ * @param {string} id -
790
+ * @throws {RevenexxException}
791
+ * @returns {Promise<Models.AttributeGroups>}
792
+ * @deprecated Use the object parameter style method for a better developer experience.
793
+ */
794
+ productsAttributeGroupsUpdate(id: string): Promise<Models.AttributeGroups>;
795
+ productsAttributeGroupsUpdate(
796
+ paramsOrFirst: { id: string } | string
797
+ ): Promise<Models.AttributeGroups> {
798
+ let params: { id: string };
799
+
800
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
801
+ params = (paramsOrFirst || {}) as { id: string };
802
+ } else {
803
+ params = {
804
+ id: paramsOrFirst as string
805
+ };
806
+ }
807
+
808
+ const id = params.id;
809
+
810
+ if (typeof id === 'undefined') {
811
+ throw new RevenexxException('Missing required parameter: "id"');
812
+ }
813
+
814
+ const apiPath = '/v1/products/attribute_groups/{id}'.replace('{id}', id);
815
+ const payload: Payload = {};
816
+ const uri = new URL(this.client.config.endpoint + apiPath);
817
+
818
+ const apiHeaders: { [header: string]: string } = {
819
+ 'content-type': 'application/json',
820
+ }
821
+
822
+ return this.client.call(
823
+ 'put',
824
+ uri,
825
+ apiHeaders,
826
+ payload
827
+ );
828
+ }
829
+
830
+ /**
831
+ *
832
+ * @throws {RevenexxException}
833
+ * @returns {Promise<{}>}
834
+ */
835
+ productsAttributeOptionsList(): Promise<{}> {
836
+
837
+ const apiPath = '/v1/products/attribute_options';
838
+ const payload: Payload = {};
839
+ const uri = new URL(this.client.config.endpoint + apiPath);
840
+
841
+ const apiHeaders: { [header: string]: string } = {
842
+ }
843
+
844
+ return this.client.call(
845
+ 'get',
846
+ uri,
847
+ apiHeaders,
848
+ payload
849
+ );
850
+ }
851
+
852
+ /**
853
+ *
854
+ * @throws {RevenexxException}
855
+ * @returns {Promise<Models.AttributeOptions>}
856
+ */
857
+ productsAttributeOptionsCreate(): Promise<Models.AttributeOptions> {
858
+
859
+ const apiPath = '/v1/products/attribute_options';
860
+ const payload: Payload = {};
861
+ const uri = new URL(this.client.config.endpoint + apiPath);
862
+
863
+ const apiHeaders: { [header: string]: string } = {
864
+ 'content-type': 'application/json',
865
+ }
866
+
867
+ return this.client.call(
868
+ 'post',
869
+ uri,
870
+ apiHeaders,
871
+ payload
872
+ );
873
+ }
874
+
875
+ /**
876
+ *
877
+ * @param {string} params.id -
878
+ * @throws {RevenexxException}
879
+ * @returns {Promise<{}>}
880
+ */
881
+ productsAttributeOptionsDelete(params: { id: string }): Promise<{}>;
882
+ /**
883
+ *
884
+ * @param {string} id -
885
+ * @throws {RevenexxException}
886
+ * @returns {Promise<{}>}
887
+ * @deprecated Use the object parameter style method for a better developer experience.
888
+ */
889
+ productsAttributeOptionsDelete(id: string): Promise<{}>;
890
+ productsAttributeOptionsDelete(
891
+ paramsOrFirst: { id: string } | string
892
+ ): Promise<{}> {
893
+ let params: { id: string };
894
+
895
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
896
+ params = (paramsOrFirst || {}) as { id: string };
897
+ } else {
898
+ params = {
899
+ id: paramsOrFirst as string
900
+ };
901
+ }
902
+
903
+ const id = params.id;
904
+
905
+ if (typeof id === 'undefined') {
906
+ throw new RevenexxException('Missing required parameter: "id"');
907
+ }
908
+
909
+ const apiPath = '/v1/products/attribute_options/{id}'.replace('{id}', id);
910
+ const payload: Payload = {};
911
+ const uri = new URL(this.client.config.endpoint + apiPath);
912
+
913
+ const apiHeaders: { [header: string]: string } = {
914
+ }
915
+
916
+ return this.client.call(
917
+ 'delete',
918
+ uri,
919
+ apiHeaders,
920
+ payload
921
+ );
922
+ }
923
+
924
+ /**
925
+ *
926
+ * @param {string} params.id -
927
+ * @throws {RevenexxException}
928
+ * @returns {Promise<Models.AttributeOptions>}
929
+ */
930
+ productsAttributeOptionsGet(params: { id: string }): Promise<Models.AttributeOptions>;
931
+ /**
932
+ *
933
+ * @param {string} id -
934
+ * @throws {RevenexxException}
935
+ * @returns {Promise<Models.AttributeOptions>}
936
+ * @deprecated Use the object parameter style method for a better developer experience.
937
+ */
938
+ productsAttributeOptionsGet(id: string): Promise<Models.AttributeOptions>;
939
+ productsAttributeOptionsGet(
940
+ paramsOrFirst: { id: string } | string
941
+ ): Promise<Models.AttributeOptions> {
942
+ let params: { id: string };
943
+
944
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
945
+ params = (paramsOrFirst || {}) as { id: string };
946
+ } else {
947
+ params = {
948
+ id: paramsOrFirst as string
949
+ };
950
+ }
951
+
952
+ const id = params.id;
953
+
954
+ if (typeof id === 'undefined') {
955
+ throw new RevenexxException('Missing required parameter: "id"');
956
+ }
957
+
958
+ const apiPath = '/v1/products/attribute_options/{id}'.replace('{id}', id);
959
+ const payload: Payload = {};
960
+ const uri = new URL(this.client.config.endpoint + apiPath);
961
+
962
+ const apiHeaders: { [header: string]: string } = {
963
+ }
964
+
965
+ return this.client.call(
966
+ 'get',
967
+ uri,
968
+ apiHeaders,
969
+ payload
970
+ );
971
+ }
972
+
973
+ /**
974
+ *
975
+ * @param {string} params.id -
976
+ * @throws {RevenexxException}
977
+ * @returns {Promise<Models.AttributeOptions>}
978
+ */
979
+ productsAttributeOptionsUpdate(params: { id: string }): Promise<Models.AttributeOptions>;
980
+ /**
981
+ *
982
+ * @param {string} id -
983
+ * @throws {RevenexxException}
984
+ * @returns {Promise<Models.AttributeOptions>}
985
+ * @deprecated Use the object parameter style method for a better developer experience.
986
+ */
987
+ productsAttributeOptionsUpdate(id: string): Promise<Models.AttributeOptions>;
988
+ productsAttributeOptionsUpdate(
989
+ paramsOrFirst: { id: string } | string
990
+ ): Promise<Models.AttributeOptions> {
991
+ let params: { id: string };
992
+
993
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
994
+ params = (paramsOrFirst || {}) as { id: string };
995
+ } else {
996
+ params = {
997
+ id: paramsOrFirst as string
998
+ };
999
+ }
1000
+
1001
+ const id = params.id;
1002
+
1003
+ if (typeof id === 'undefined') {
1004
+ throw new RevenexxException('Missing required parameter: "id"');
1005
+ }
1006
+
1007
+ const apiPath = '/v1/products/attribute_options/{id}'.replace('{id}', id);
1008
+ const payload: Payload = {};
1009
+ const uri = new URL(this.client.config.endpoint + apiPath);
1010
+
1011
+ const apiHeaders: { [header: string]: string } = {
1012
+ 'content-type': 'application/json',
1013
+ }
1014
+
1015
+ return this.client.call(
1016
+ 'put',
1017
+ uri,
1018
+ apiHeaders,
1019
+ payload
1020
+ );
1021
+ }
1022
+
1023
+ /**
1024
+ *
1025
+ * @throws {RevenexxException}
1026
+ * @returns {Promise<{}>}
1027
+ */
1028
+ productsAttributesList(): Promise<{}> {
1029
+
1030
+ const apiPath = '/v1/products/attributes';
1031
+ const payload: Payload = {};
1032
+ const uri = new URL(this.client.config.endpoint + apiPath);
1033
+
1034
+ const apiHeaders: { [header: string]: string } = {
1035
+ }
1036
+
1037
+ return this.client.call(
1038
+ 'get',
1039
+ uri,
1040
+ apiHeaders,
1041
+ payload
1042
+ );
1043
+ }
1044
+
1045
+ /**
1046
+ *
1047
+ * @throws {RevenexxException}
1048
+ * @returns {Promise<Models.Attributes>}
1049
+ */
1050
+ productsAttributesCreate(): Promise<Models.Attributes> {
1051
+
1052
+ const apiPath = '/v1/products/attributes';
1053
+ const payload: Payload = {};
1054
+ const uri = new URL(this.client.config.endpoint + apiPath);
1055
+
1056
+ const apiHeaders: { [header: string]: string } = {
1057
+ 'content-type': 'application/json',
1058
+ }
1059
+
1060
+ return this.client.call(
1061
+ 'post',
1062
+ uri,
1063
+ apiHeaders,
1064
+ payload
1065
+ );
1066
+ }
1067
+
1068
+ /**
1069
+ *
1070
+ * @param {string} params.id -
1071
+ * @throws {RevenexxException}
1072
+ * @returns {Promise<{}>}
1073
+ */
1074
+ productsAttributesDelete(params: { id: string }): Promise<{}>;
1075
+ /**
1076
+ *
1077
+ * @param {string} id -
1078
+ * @throws {RevenexxException}
1079
+ * @returns {Promise<{}>}
1080
+ * @deprecated Use the object parameter style method for a better developer experience.
1081
+ */
1082
+ productsAttributesDelete(id: string): Promise<{}>;
1083
+ productsAttributesDelete(
1084
+ paramsOrFirst: { id: string } | string
1085
+ ): Promise<{}> {
1086
+ let params: { id: string };
1087
+
1088
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1089
+ params = (paramsOrFirst || {}) as { id: string };
1090
+ } else {
1091
+ params = {
1092
+ id: paramsOrFirst as string
1093
+ };
1094
+ }
1095
+
1096
+ const id = params.id;
1097
+
1098
+ if (typeof id === 'undefined') {
1099
+ throw new RevenexxException('Missing required parameter: "id"');
1100
+ }
1101
+
1102
+ const apiPath = '/v1/products/attributes/{id}'.replace('{id}', id);
1103
+ const payload: Payload = {};
1104
+ const uri = new URL(this.client.config.endpoint + apiPath);
1105
+
1106
+ const apiHeaders: { [header: string]: string } = {
1107
+ }
1108
+
1109
+ return this.client.call(
1110
+ 'delete',
1111
+ uri,
1112
+ apiHeaders,
1113
+ payload
1114
+ );
1115
+ }
1116
+
1117
+ /**
1118
+ *
1119
+ * @param {string} params.id -
1120
+ * @throws {RevenexxException}
1121
+ * @returns {Promise<Models.Attributes>}
1122
+ */
1123
+ productsAttributesGet(params: { id: string }): Promise<Models.Attributes>;
1124
+ /**
1125
+ *
1126
+ * @param {string} id -
1127
+ * @throws {RevenexxException}
1128
+ * @returns {Promise<Models.Attributes>}
1129
+ * @deprecated Use the object parameter style method for a better developer experience.
1130
+ */
1131
+ productsAttributesGet(id: string): Promise<Models.Attributes>;
1132
+ productsAttributesGet(
1133
+ paramsOrFirst: { id: string } | string
1134
+ ): Promise<Models.Attributes> {
1135
+ let params: { id: string };
1136
+
1137
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1138
+ params = (paramsOrFirst || {}) as { id: string };
1139
+ } else {
1140
+ params = {
1141
+ id: paramsOrFirst as string
1142
+ };
1143
+ }
1144
+
1145
+ const id = params.id;
1146
+
1147
+ if (typeof id === 'undefined') {
1148
+ throw new RevenexxException('Missing required parameter: "id"');
1149
+ }
1150
+
1151
+ const apiPath = '/v1/products/attributes/{id}'.replace('{id}', id);
1152
+ const payload: Payload = {};
1153
+ const uri = new URL(this.client.config.endpoint + apiPath);
1154
+
1155
+ const apiHeaders: { [header: string]: string } = {
1156
+ }
1157
+
1158
+ return this.client.call(
1159
+ 'get',
1160
+ uri,
1161
+ apiHeaders,
1162
+ payload
1163
+ );
1164
+ }
1165
+
1166
+ /**
1167
+ *
1168
+ * @param {string} params.id -
1169
+ * @throws {RevenexxException}
1170
+ * @returns {Promise<Models.Attributes>}
1171
+ */
1172
+ productsAttributesUpdate(params: { id: string }): Promise<Models.Attributes>;
1173
+ /**
1174
+ *
1175
+ * @param {string} id -
1176
+ * @throws {RevenexxException}
1177
+ * @returns {Promise<Models.Attributes>}
1178
+ * @deprecated Use the object parameter style method for a better developer experience.
1179
+ */
1180
+ productsAttributesUpdate(id: string): Promise<Models.Attributes>;
1181
+ productsAttributesUpdate(
1182
+ paramsOrFirst: { id: string } | string
1183
+ ): Promise<Models.Attributes> {
1184
+ let params: { id: string };
1185
+
1186
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1187
+ params = (paramsOrFirst || {}) as { id: string };
1188
+ } else {
1189
+ params = {
1190
+ id: paramsOrFirst as string
1191
+ };
1192
+ }
1193
+
1194
+ const id = params.id;
1195
+
1196
+ if (typeof id === 'undefined') {
1197
+ throw new RevenexxException('Missing required parameter: "id"');
1198
+ }
1199
+
1200
+ const apiPath = '/v1/products/attributes/{id}'.replace('{id}', id);
1201
+ const payload: Payload = {};
1202
+ const uri = new URL(this.client.config.endpoint + apiPath);
1203
+
1204
+ const apiHeaders: { [header: string]: string } = {
1205
+ 'content-type': 'application/json',
1206
+ }
1207
+
1208
+ return this.client.call(
1209
+ 'put',
1210
+ uri,
1211
+ apiHeaders,
1212
+ payload
1213
+ );
1214
+ }
1215
+
1216
+ /**
1217
+ *
1218
+ * @throws {RevenexxException}
1219
+ * @returns {Promise<{}>}
1220
+ */
1221
+ productsCategoriesList(): Promise<{}> {
1222
+
1223
+ const apiPath = '/v1/products/categories';
1224
+ const payload: Payload = {};
1225
+ const uri = new URL(this.client.config.endpoint + apiPath);
1226
+
1227
+ const apiHeaders: { [header: string]: string } = {
1228
+ }
1229
+
1230
+ return this.client.call(
1231
+ 'get',
1232
+ uri,
1233
+ apiHeaders,
1234
+ payload
1235
+ );
1236
+ }
1237
+
1238
+ /**
1239
+ *
1240
+ * @throws {RevenexxException}
1241
+ * @returns {Promise<Models.Categories>}
1242
+ */
1243
+ productsCategoriesCreate(): Promise<Models.Categories> {
1244
+
1245
+ const apiPath = '/v1/products/categories';
1246
+ const payload: Payload = {};
1247
+ const uri = new URL(this.client.config.endpoint + apiPath);
1248
+
1249
+ const apiHeaders: { [header: string]: string } = {
1250
+ 'content-type': 'application/json',
1251
+ }
1252
+
1253
+ return this.client.call(
1254
+ 'post',
1255
+ uri,
1256
+ apiHeaders,
1257
+ payload
1258
+ );
1259
+ }
1260
+
1261
+ /**
1262
+ *
1263
+ * @param {string} params.id -
1264
+ * @throws {RevenexxException}
1265
+ * @returns {Promise<{}>}
1266
+ */
1267
+ productsCategoriesDelete(params: { id: string }): Promise<{}>;
1268
+ /**
1269
+ *
1270
+ * @param {string} id -
1271
+ * @throws {RevenexxException}
1272
+ * @returns {Promise<{}>}
1273
+ * @deprecated Use the object parameter style method for a better developer experience.
1274
+ */
1275
+ productsCategoriesDelete(id: string): Promise<{}>;
1276
+ productsCategoriesDelete(
1277
+ paramsOrFirst: { id: string } | string
1278
+ ): Promise<{}> {
1279
+ let params: { id: string };
1280
+
1281
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1282
+ params = (paramsOrFirst || {}) as { id: string };
1283
+ } else {
1284
+ params = {
1285
+ id: paramsOrFirst as string
1286
+ };
1287
+ }
1288
+
1289
+ const id = params.id;
1290
+
1291
+ if (typeof id === 'undefined') {
1292
+ throw new RevenexxException('Missing required parameter: "id"');
1293
+ }
1294
+
1295
+ const apiPath = '/v1/products/categories/{id}'.replace('{id}', id);
1296
+ const payload: Payload = {};
1297
+ const uri = new URL(this.client.config.endpoint + apiPath);
1298
+
1299
+ const apiHeaders: { [header: string]: string } = {
1300
+ }
1301
+
1302
+ return this.client.call(
1303
+ 'delete',
1304
+ uri,
1305
+ apiHeaders,
1306
+ payload
1307
+ );
1308
+ }
1309
+
1310
+ /**
1311
+ *
1312
+ * @param {string} params.id -
1313
+ * @throws {RevenexxException}
1314
+ * @returns {Promise<Models.Categories>}
1315
+ */
1316
+ productsCategoriesGet(params: { id: string }): Promise<Models.Categories>;
1317
+ /**
1318
+ *
1319
+ * @param {string} id -
1320
+ * @throws {RevenexxException}
1321
+ * @returns {Promise<Models.Categories>}
1322
+ * @deprecated Use the object parameter style method for a better developer experience.
1323
+ */
1324
+ productsCategoriesGet(id: string): Promise<Models.Categories>;
1325
+ productsCategoriesGet(
1326
+ paramsOrFirst: { id: string } | string
1327
+ ): Promise<Models.Categories> {
1328
+ let params: { id: string };
1329
+
1330
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1331
+ params = (paramsOrFirst || {}) as { id: string };
1332
+ } else {
1333
+ params = {
1334
+ id: paramsOrFirst as string
1335
+ };
1336
+ }
1337
+
1338
+ const id = params.id;
1339
+
1340
+ if (typeof id === 'undefined') {
1341
+ throw new RevenexxException('Missing required parameter: "id"');
1342
+ }
1343
+
1344
+ const apiPath = '/v1/products/categories/{id}'.replace('{id}', id);
1345
+ const payload: Payload = {};
1346
+ const uri = new URL(this.client.config.endpoint + apiPath);
1347
+
1348
+ const apiHeaders: { [header: string]: string } = {
1349
+ }
1350
+
1351
+ return this.client.call(
1352
+ 'get',
1353
+ uri,
1354
+ apiHeaders,
1355
+ payload
1356
+ );
1357
+ }
1358
+
1359
+ /**
1360
+ *
1361
+ * @param {string} params.id -
1362
+ * @throws {RevenexxException}
1363
+ * @returns {Promise<Models.Categories>}
1364
+ */
1365
+ productsCategoriesUpdate(params: { id: string }): Promise<Models.Categories>;
1366
+ /**
1367
+ *
1368
+ * @param {string} id -
1369
+ * @throws {RevenexxException}
1370
+ * @returns {Promise<Models.Categories>}
1371
+ * @deprecated Use the object parameter style method for a better developer experience.
1372
+ */
1373
+ productsCategoriesUpdate(id: string): Promise<Models.Categories>;
1374
+ productsCategoriesUpdate(
1375
+ paramsOrFirst: { id: string } | string
1376
+ ): Promise<Models.Categories> {
1377
+ let params: { id: string };
1378
+
1379
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1380
+ params = (paramsOrFirst || {}) as { id: string };
1381
+ } else {
1382
+ params = {
1383
+ id: paramsOrFirst as string
1384
+ };
1385
+ }
1386
+
1387
+ const id = params.id;
1388
+
1389
+ if (typeof id === 'undefined') {
1390
+ throw new RevenexxException('Missing required parameter: "id"');
1391
+ }
1392
+
1393
+ const apiPath = '/v1/products/categories/{id}'.replace('{id}', id);
1394
+ const payload: Payload = {};
1395
+ const uri = new URL(this.client.config.endpoint + apiPath);
1396
+
1397
+ const apiHeaders: { [header: string]: string } = {
1398
+ 'content-type': 'application/json',
1399
+ }
1400
+
1401
+ return this.client.call(
1402
+ 'put',
1403
+ uri,
1404
+ apiHeaders,
1405
+ payload
1406
+ );
1407
+ }
1408
+
1409
+ /**
1410
+ *
1411
+ * @throws {RevenexxException}
1412
+ * @returns {Promise<{}>}
1413
+ */
1414
+ productsFamiliesList(): Promise<{}> {
1415
+
1416
+ const apiPath = '/v1/products/families';
1417
+ const payload: Payload = {};
1418
+ const uri = new URL(this.client.config.endpoint + apiPath);
1419
+
1420
+ const apiHeaders: { [header: string]: string } = {
1421
+ }
1422
+
1423
+ return this.client.call(
1424
+ 'get',
1425
+ uri,
1426
+ apiHeaders,
1427
+ payload
1428
+ );
1429
+ }
1430
+
1431
+ /**
1432
+ *
1433
+ * @throws {RevenexxException}
1434
+ * @returns {Promise<Models.Families>}
1435
+ */
1436
+ productsFamiliesCreate(): Promise<Models.Families> {
1437
+
1438
+ const apiPath = '/v1/products/families';
1439
+ const payload: Payload = {};
1440
+ const uri = new URL(this.client.config.endpoint + apiPath);
1441
+
1442
+ const apiHeaders: { [header: string]: string } = {
1443
+ 'content-type': 'application/json',
1444
+ }
1445
+
1446
+ return this.client.call(
1447
+ 'post',
1448
+ uri,
1449
+ apiHeaders,
1450
+ payload
1451
+ );
1452
+ }
1453
+
1454
+ /**
1455
+ *
1456
+ * @param {string} params.id -
1457
+ * @throws {RevenexxException}
1458
+ * @returns {Promise<{}>}
1459
+ */
1460
+ productsFamiliesDelete(params: { id: string }): Promise<{}>;
1461
+ /**
1462
+ *
1463
+ * @param {string} id -
1464
+ * @throws {RevenexxException}
1465
+ * @returns {Promise<{}>}
1466
+ * @deprecated Use the object parameter style method for a better developer experience.
1467
+ */
1468
+ productsFamiliesDelete(id: string): Promise<{}>;
1469
+ productsFamiliesDelete(
1470
+ paramsOrFirst: { id: string } | string
1471
+ ): Promise<{}> {
1472
+ let params: { id: string };
1473
+
1474
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1475
+ params = (paramsOrFirst || {}) as { id: string };
1476
+ } else {
1477
+ params = {
1478
+ id: paramsOrFirst as string
1479
+ };
1480
+ }
1481
+
1482
+ const id = params.id;
1483
+
1484
+ if (typeof id === 'undefined') {
1485
+ throw new RevenexxException('Missing required parameter: "id"');
1486
+ }
1487
+
1488
+ const apiPath = '/v1/products/families/{id}'.replace('{id}', id);
1489
+ const payload: Payload = {};
1490
+ const uri = new URL(this.client.config.endpoint + apiPath);
1491
+
1492
+ const apiHeaders: { [header: string]: string } = {
1493
+ }
1494
+
1495
+ return this.client.call(
1496
+ 'delete',
1497
+ uri,
1498
+ apiHeaders,
1499
+ payload
1500
+ );
1501
+ }
1502
+
1503
+ /**
1504
+ *
1505
+ * @param {string} params.id -
1506
+ * @throws {RevenexxException}
1507
+ * @returns {Promise<Models.Families>}
1508
+ */
1509
+ productsFamiliesGet(params: { id: string }): Promise<Models.Families>;
1510
+ /**
1511
+ *
1512
+ * @param {string} id -
1513
+ * @throws {RevenexxException}
1514
+ * @returns {Promise<Models.Families>}
1515
+ * @deprecated Use the object parameter style method for a better developer experience.
1516
+ */
1517
+ productsFamiliesGet(id: string): Promise<Models.Families>;
1518
+ productsFamiliesGet(
1519
+ paramsOrFirst: { id: string } | string
1520
+ ): Promise<Models.Families> {
1521
+ let params: { id: string };
1522
+
1523
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1524
+ params = (paramsOrFirst || {}) as { id: string };
1525
+ } else {
1526
+ params = {
1527
+ id: paramsOrFirst as string
1528
+ };
1529
+ }
1530
+
1531
+ const id = params.id;
1532
+
1533
+ if (typeof id === 'undefined') {
1534
+ throw new RevenexxException('Missing required parameter: "id"');
1535
+ }
1536
+
1537
+ const apiPath = '/v1/products/families/{id}'.replace('{id}', id);
1538
+ const payload: Payload = {};
1539
+ const uri = new URL(this.client.config.endpoint + apiPath);
1540
+
1541
+ const apiHeaders: { [header: string]: string } = {
1542
+ }
1543
+
1544
+ return this.client.call(
1545
+ 'get',
1546
+ uri,
1547
+ apiHeaders,
1548
+ payload
1549
+ );
1550
+ }
1551
+
1552
+ /**
1553
+ *
1554
+ * @param {string} params.id -
1555
+ * @throws {RevenexxException}
1556
+ * @returns {Promise<Models.Families>}
1557
+ */
1558
+ productsFamiliesUpdate(params: { id: string }): Promise<Models.Families>;
1559
+ /**
1560
+ *
1561
+ * @param {string} id -
1562
+ * @throws {RevenexxException}
1563
+ * @returns {Promise<Models.Families>}
1564
+ * @deprecated Use the object parameter style method for a better developer experience.
1565
+ */
1566
+ productsFamiliesUpdate(id: string): Promise<Models.Families>;
1567
+ productsFamiliesUpdate(
1568
+ paramsOrFirst: { id: string } | string
1569
+ ): Promise<Models.Families> {
1570
+ let params: { id: string };
1571
+
1572
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1573
+ params = (paramsOrFirst || {}) as { id: string };
1574
+ } else {
1575
+ params = {
1576
+ id: paramsOrFirst as string
1577
+ };
1578
+ }
1579
+
1580
+ const id = params.id;
1581
+
1582
+ if (typeof id === 'undefined') {
1583
+ throw new RevenexxException('Missing required parameter: "id"');
1584
+ }
1585
+
1586
+ const apiPath = '/v1/products/families/{id}'.replace('{id}', id);
1587
+ const payload: Payload = {};
1588
+ const uri = new URL(this.client.config.endpoint + apiPath);
1589
+
1590
+ const apiHeaders: { [header: string]: string } = {
1591
+ 'content-type': 'application/json',
1592
+ }
1593
+
1594
+ return this.client.call(
1595
+ 'put',
1596
+ uri,
1597
+ apiHeaders,
1598
+ payload
1599
+ );
1600
+ }
1601
+
1602
+ /**
1603
+ *
1604
+ * @throws {RevenexxException}
1605
+ * @returns {Promise<{}>}
1606
+ */
1607
+ productsFamilyAttributesList(): Promise<{}> {
1608
+
1609
+ const apiPath = '/v1/products/family_attributes';
1610
+ const payload: Payload = {};
1611
+ const uri = new URL(this.client.config.endpoint + apiPath);
1612
+
1613
+ const apiHeaders: { [header: string]: string } = {
1614
+ }
1615
+
1616
+ return this.client.call(
1617
+ 'get',
1618
+ uri,
1619
+ apiHeaders,
1620
+ payload
1621
+ );
1622
+ }
1623
+
1624
+ /**
1625
+ *
1626
+ * @throws {RevenexxException}
1627
+ * @returns {Promise<Models.FamilyAttributes>}
1628
+ */
1629
+ productsFamilyAttributesCreate(): Promise<Models.FamilyAttributes> {
1630
+
1631
+ const apiPath = '/v1/products/family_attributes';
1632
+ const payload: Payload = {};
1633
+ const uri = new URL(this.client.config.endpoint + apiPath);
1634
+
1635
+ const apiHeaders: { [header: string]: string } = {
1636
+ 'content-type': 'application/json',
1637
+ }
1638
+
1639
+ return this.client.call(
1640
+ 'post',
1641
+ uri,
1642
+ apiHeaders,
1643
+ payload
1644
+ );
1645
+ }
1646
+
1647
+ /**
1648
+ *
1649
+ * @param {string} params.id -
1650
+ * @throws {RevenexxException}
1651
+ * @returns {Promise<{}>}
1652
+ */
1653
+ productsFamilyAttributesDelete(params: { id: string }): Promise<{}>;
1654
+ /**
1655
+ *
1656
+ * @param {string} id -
1657
+ * @throws {RevenexxException}
1658
+ * @returns {Promise<{}>}
1659
+ * @deprecated Use the object parameter style method for a better developer experience.
1660
+ */
1661
+ productsFamilyAttributesDelete(id: string): Promise<{}>;
1662
+ productsFamilyAttributesDelete(
1663
+ paramsOrFirst: { id: string } | string
1664
+ ): Promise<{}> {
1665
+ let params: { id: string };
1666
+
1667
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1668
+ params = (paramsOrFirst || {}) as { id: string };
1669
+ } else {
1670
+ params = {
1671
+ id: paramsOrFirst as string
1672
+ };
1673
+ }
1674
+
1675
+ const id = params.id;
1676
+
1677
+ if (typeof id === 'undefined') {
1678
+ throw new RevenexxException('Missing required parameter: "id"');
1679
+ }
1680
+
1681
+ const apiPath = '/v1/products/family_attributes/{id}'.replace('{id}', id);
1682
+ const payload: Payload = {};
1683
+ const uri = new URL(this.client.config.endpoint + apiPath);
1684
+
1685
+ const apiHeaders: { [header: string]: string } = {
1686
+ }
1687
+
1688
+ return this.client.call(
1689
+ 'delete',
1690
+ uri,
1691
+ apiHeaders,
1692
+ payload
1693
+ );
1694
+ }
1695
+
1696
+ /**
1697
+ *
1698
+ * @param {string} params.id -
1699
+ * @throws {RevenexxException}
1700
+ * @returns {Promise<Models.FamilyAttributes>}
1701
+ */
1702
+ productsFamilyAttributesGet(params: { id: string }): Promise<Models.FamilyAttributes>;
1703
+ /**
1704
+ *
1705
+ * @param {string} id -
1706
+ * @throws {RevenexxException}
1707
+ * @returns {Promise<Models.FamilyAttributes>}
1708
+ * @deprecated Use the object parameter style method for a better developer experience.
1709
+ */
1710
+ productsFamilyAttributesGet(id: string): Promise<Models.FamilyAttributes>;
1711
+ productsFamilyAttributesGet(
1712
+ paramsOrFirst: { id: string } | string
1713
+ ): Promise<Models.FamilyAttributes> {
1714
+ let params: { id: string };
1715
+
1716
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1717
+ params = (paramsOrFirst || {}) as { id: string };
1718
+ } else {
1719
+ params = {
1720
+ id: paramsOrFirst as string
1721
+ };
1722
+ }
1723
+
1724
+ const id = params.id;
1725
+
1726
+ if (typeof id === 'undefined') {
1727
+ throw new RevenexxException('Missing required parameter: "id"');
1728
+ }
1729
+
1730
+ const apiPath = '/v1/products/family_attributes/{id}'.replace('{id}', id);
1731
+ const payload: Payload = {};
1732
+ const uri = new URL(this.client.config.endpoint + apiPath);
1733
+
1734
+ const apiHeaders: { [header: string]: string } = {
1735
+ }
1736
+
1737
+ return this.client.call(
1738
+ 'get',
1739
+ uri,
1740
+ apiHeaders,
1741
+ payload
1742
+ );
1743
+ }
1744
+
1745
+ /**
1746
+ *
1747
+ * @param {string} params.id -
1748
+ * @throws {RevenexxException}
1749
+ * @returns {Promise<Models.FamilyAttributes>}
1750
+ */
1751
+ productsFamilyAttributesUpdate(params: { id: string }): Promise<Models.FamilyAttributes>;
1752
+ /**
1753
+ *
1754
+ * @param {string} id -
1755
+ * @throws {RevenexxException}
1756
+ * @returns {Promise<Models.FamilyAttributes>}
1757
+ * @deprecated Use the object parameter style method for a better developer experience.
1758
+ */
1759
+ productsFamilyAttributesUpdate(id: string): Promise<Models.FamilyAttributes>;
1760
+ productsFamilyAttributesUpdate(
1761
+ paramsOrFirst: { id: string } | string
1762
+ ): Promise<Models.FamilyAttributes> {
1763
+ let params: { id: string };
1764
+
1765
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1766
+ params = (paramsOrFirst || {}) as { id: string };
1767
+ } else {
1768
+ params = {
1769
+ id: paramsOrFirst as string
1770
+ };
1771
+ }
1772
+
1773
+ const id = params.id;
1774
+
1775
+ if (typeof id === 'undefined') {
1776
+ throw new RevenexxException('Missing required parameter: "id"');
1777
+ }
1778
+
1779
+ const apiPath = '/v1/products/family_attributes/{id}'.replace('{id}', id);
1780
+ const payload: Payload = {};
1781
+ const uri = new URL(this.client.config.endpoint + apiPath);
1782
+
1783
+ const apiHeaders: { [header: string]: string } = {
1784
+ 'content-type': 'application/json',
1785
+ }
1786
+
1787
+ return this.client.call(
1788
+ 'put',
1789
+ uri,
1790
+ apiHeaders,
1791
+ payload
1792
+ );
1793
+ }
1794
+
1795
+ /**
1796
+ *
1797
+ * @throws {RevenexxException}
1798
+ * @returns {Promise<{}>}
1799
+ */
1800
+ productsFamilyVariantsList(): Promise<{}> {
1801
+
1802
+ const apiPath = '/v1/products/family_variants';
1803
+ const payload: Payload = {};
1804
+ const uri = new URL(this.client.config.endpoint + apiPath);
1805
+
1806
+ const apiHeaders: { [header: string]: string } = {
1807
+ }
1808
+
1809
+ return this.client.call(
1810
+ 'get',
1811
+ uri,
1812
+ apiHeaders,
1813
+ payload
1814
+ );
1815
+ }
1816
+
1817
+ /**
1818
+ *
1819
+ * @throws {RevenexxException}
1820
+ * @returns {Promise<Models.FamilyVariants>}
1821
+ */
1822
+ productsFamilyVariantsCreate(): Promise<Models.FamilyVariants> {
1823
+
1824
+ const apiPath = '/v1/products/family_variants';
1825
+ const payload: Payload = {};
1826
+ const uri = new URL(this.client.config.endpoint + apiPath);
1827
+
1828
+ const apiHeaders: { [header: string]: string } = {
1829
+ 'content-type': 'application/json',
1830
+ }
1831
+
1832
+ return this.client.call(
1833
+ 'post',
1834
+ uri,
1835
+ apiHeaders,
1836
+ payload
1837
+ );
1838
+ }
1839
+
1840
+ /**
1841
+ *
1842
+ * @param {string} params.id -
1843
+ * @throws {RevenexxException}
1844
+ * @returns {Promise<{}>}
1845
+ */
1846
+ productsFamilyVariantsDelete(params: { id: string }): Promise<{}>;
1847
+ /**
1848
+ *
1849
+ * @param {string} id -
1850
+ * @throws {RevenexxException}
1851
+ * @returns {Promise<{}>}
1852
+ * @deprecated Use the object parameter style method for a better developer experience.
1853
+ */
1854
+ productsFamilyVariantsDelete(id: string): Promise<{}>;
1855
+ productsFamilyVariantsDelete(
1856
+ paramsOrFirst: { id: string } | string
1857
+ ): Promise<{}> {
1858
+ let params: { id: string };
1859
+
1860
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1861
+ params = (paramsOrFirst || {}) as { id: string };
1862
+ } else {
1863
+ params = {
1864
+ id: paramsOrFirst as string
1865
+ };
1866
+ }
1867
+
1868
+ const id = params.id;
1869
+
1870
+ if (typeof id === 'undefined') {
1871
+ throw new RevenexxException('Missing required parameter: "id"');
1872
+ }
1873
+
1874
+ const apiPath = '/v1/products/family_variants/{id}'.replace('{id}', id);
1875
+ const payload: Payload = {};
1876
+ const uri = new URL(this.client.config.endpoint + apiPath);
1877
+
1878
+ const apiHeaders: { [header: string]: string } = {
1879
+ }
1880
+
1881
+ return this.client.call(
1882
+ 'delete',
1883
+ uri,
1884
+ apiHeaders,
1885
+ payload
1886
+ );
1887
+ }
1888
+
1889
+ /**
1890
+ *
1891
+ * @param {string} params.id -
1892
+ * @throws {RevenexxException}
1893
+ * @returns {Promise<Models.FamilyVariants>}
1894
+ */
1895
+ productsFamilyVariantsGet(params: { id: string }): Promise<Models.FamilyVariants>;
1896
+ /**
1897
+ *
1898
+ * @param {string} id -
1899
+ * @throws {RevenexxException}
1900
+ * @returns {Promise<Models.FamilyVariants>}
1901
+ * @deprecated Use the object parameter style method for a better developer experience.
1902
+ */
1903
+ productsFamilyVariantsGet(id: string): Promise<Models.FamilyVariants>;
1904
+ productsFamilyVariantsGet(
1905
+ paramsOrFirst: { id: string } | string
1906
+ ): Promise<Models.FamilyVariants> {
1907
+ let params: { id: string };
1908
+
1909
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1910
+ params = (paramsOrFirst || {}) as { id: string };
1911
+ } else {
1912
+ params = {
1913
+ id: paramsOrFirst as string
1914
+ };
1915
+ }
1916
+
1917
+ const id = params.id;
1918
+
1919
+ if (typeof id === 'undefined') {
1920
+ throw new RevenexxException('Missing required parameter: "id"');
1921
+ }
1922
+
1923
+ const apiPath = '/v1/products/family_variants/{id}'.replace('{id}', id);
1924
+ const payload: Payload = {};
1925
+ const uri = new URL(this.client.config.endpoint + apiPath);
1926
+
1927
+ const apiHeaders: { [header: string]: string } = {
1928
+ }
1929
+
1930
+ return this.client.call(
1931
+ 'get',
1932
+ uri,
1933
+ apiHeaders,
1934
+ payload
1935
+ );
1936
+ }
1937
+
1938
+ /**
1939
+ *
1940
+ * @param {string} params.id -
1941
+ * @throws {RevenexxException}
1942
+ * @returns {Promise<Models.FamilyVariants>}
1943
+ */
1944
+ productsFamilyVariantsUpdate(params: { id: string }): Promise<Models.FamilyVariants>;
1945
+ /**
1946
+ *
1947
+ * @param {string} id -
1948
+ * @throws {RevenexxException}
1949
+ * @returns {Promise<Models.FamilyVariants>}
1950
+ * @deprecated Use the object parameter style method for a better developer experience.
1951
+ */
1952
+ productsFamilyVariantsUpdate(id: string): Promise<Models.FamilyVariants>;
1953
+ productsFamilyVariantsUpdate(
1954
+ paramsOrFirst: { id: string } | string
1955
+ ): Promise<Models.FamilyVariants> {
1956
+ let params: { id: string };
1957
+
1958
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1959
+ params = (paramsOrFirst || {}) as { id: string };
1960
+ } else {
1961
+ params = {
1962
+ id: paramsOrFirst as string
1963
+ };
1964
+ }
1965
+
1966
+ const id = params.id;
1967
+
1968
+ if (typeof id === 'undefined') {
1969
+ throw new RevenexxException('Missing required parameter: "id"');
1970
+ }
1971
+
1972
+ const apiPath = '/v1/products/family_variants/{id}'.replace('{id}', id);
1973
+ const payload: Payload = {};
1974
+ const uri = new URL(this.client.config.endpoint + apiPath);
1975
+
1976
+ const apiHeaders: { [header: string]: string } = {
1977
+ 'content-type': 'application/json',
1978
+ }
1979
+
1980
+ return this.client.call(
1981
+ 'put',
1982
+ uri,
1983
+ apiHeaders,
1984
+ payload
1985
+ );
1986
+ }
1987
+
1988
+ /**
1989
+ *
1990
+ * @throws {RevenexxException}
1991
+ * @returns {Promise<{}>}
1992
+ */
1993
+ productsMeasurementFamiliesList(): Promise<{}> {
1994
+
1995
+ const apiPath = '/v1/products/measurement_families';
1996
+ const payload: Payload = {};
1997
+ const uri = new URL(this.client.config.endpoint + apiPath);
1998
+
1999
+ const apiHeaders: { [header: string]: string } = {
2000
+ }
2001
+
2002
+ return this.client.call(
2003
+ 'get',
2004
+ uri,
2005
+ apiHeaders,
2006
+ payload
2007
+ );
2008
+ }
2009
+
2010
+ /**
2011
+ *
2012
+ * @throws {RevenexxException}
2013
+ * @returns {Promise<Models.MeasurementFamilies>}
2014
+ */
2015
+ productsMeasurementFamiliesCreate(): Promise<Models.MeasurementFamilies> {
2016
+
2017
+ const apiPath = '/v1/products/measurement_families';
2018
+ const payload: Payload = {};
2019
+ const uri = new URL(this.client.config.endpoint + apiPath);
2020
+
2021
+ const apiHeaders: { [header: string]: string } = {
2022
+ 'content-type': 'application/json',
2023
+ }
2024
+
2025
+ return this.client.call(
2026
+ 'post',
2027
+ uri,
2028
+ apiHeaders,
2029
+ payload
2030
+ );
2031
+ }
2032
+
2033
+ /**
2034
+ *
2035
+ * @param {string} params.id -
2036
+ * @throws {RevenexxException}
2037
+ * @returns {Promise<{}>}
2038
+ */
2039
+ productsMeasurementFamiliesDelete(params: { id: string }): Promise<{}>;
2040
+ /**
2041
+ *
2042
+ * @param {string} id -
2043
+ * @throws {RevenexxException}
2044
+ * @returns {Promise<{}>}
2045
+ * @deprecated Use the object parameter style method for a better developer experience.
2046
+ */
2047
+ productsMeasurementFamiliesDelete(id: string): Promise<{}>;
2048
+ productsMeasurementFamiliesDelete(
2049
+ paramsOrFirst: { id: string } | string
2050
+ ): Promise<{}> {
2051
+ let params: { id: string };
2052
+
2053
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2054
+ params = (paramsOrFirst || {}) as { id: string };
2055
+ } else {
2056
+ params = {
2057
+ id: paramsOrFirst as string
2058
+ };
2059
+ }
2060
+
2061
+ const id = params.id;
2062
+
2063
+ if (typeof id === 'undefined') {
2064
+ throw new RevenexxException('Missing required parameter: "id"');
2065
+ }
2066
+
2067
+ const apiPath = '/v1/products/measurement_families/{id}'.replace('{id}', id);
2068
+ const payload: Payload = {};
2069
+ const uri = new URL(this.client.config.endpoint + apiPath);
2070
+
2071
+ const apiHeaders: { [header: string]: string } = {
2072
+ }
2073
+
2074
+ return this.client.call(
2075
+ 'delete',
2076
+ uri,
2077
+ apiHeaders,
2078
+ payload
2079
+ );
2080
+ }
2081
+
2082
+ /**
2083
+ *
2084
+ * @param {string} params.id -
2085
+ * @throws {RevenexxException}
2086
+ * @returns {Promise<Models.MeasurementFamilies>}
2087
+ */
2088
+ productsMeasurementFamiliesGet(params: { id: string }): Promise<Models.MeasurementFamilies>;
2089
+ /**
2090
+ *
2091
+ * @param {string} id -
2092
+ * @throws {RevenexxException}
2093
+ * @returns {Promise<Models.MeasurementFamilies>}
2094
+ * @deprecated Use the object parameter style method for a better developer experience.
2095
+ */
2096
+ productsMeasurementFamiliesGet(id: string): Promise<Models.MeasurementFamilies>;
2097
+ productsMeasurementFamiliesGet(
2098
+ paramsOrFirst: { id: string } | string
2099
+ ): Promise<Models.MeasurementFamilies> {
2100
+ let params: { id: string };
2101
+
2102
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2103
+ params = (paramsOrFirst || {}) as { id: string };
2104
+ } else {
2105
+ params = {
2106
+ id: paramsOrFirst as string
2107
+ };
2108
+ }
2109
+
2110
+ const id = params.id;
2111
+
2112
+ if (typeof id === 'undefined') {
2113
+ throw new RevenexxException('Missing required parameter: "id"');
2114
+ }
2115
+
2116
+ const apiPath = '/v1/products/measurement_families/{id}'.replace('{id}', id);
2117
+ const payload: Payload = {};
2118
+ const uri = new URL(this.client.config.endpoint + apiPath);
2119
+
2120
+ const apiHeaders: { [header: string]: string } = {
2121
+ }
2122
+
2123
+ return this.client.call(
2124
+ 'get',
2125
+ uri,
2126
+ apiHeaders,
2127
+ payload
2128
+ );
2129
+ }
2130
+
2131
+ /**
2132
+ *
2133
+ * @param {string} params.id -
2134
+ * @throws {RevenexxException}
2135
+ * @returns {Promise<Models.MeasurementFamilies>}
2136
+ */
2137
+ productsMeasurementFamiliesUpdate(params: { id: string }): Promise<Models.MeasurementFamilies>;
2138
+ /**
2139
+ *
2140
+ * @param {string} id -
2141
+ * @throws {RevenexxException}
2142
+ * @returns {Promise<Models.MeasurementFamilies>}
2143
+ * @deprecated Use the object parameter style method for a better developer experience.
2144
+ */
2145
+ productsMeasurementFamiliesUpdate(id: string): Promise<Models.MeasurementFamilies>;
2146
+ productsMeasurementFamiliesUpdate(
2147
+ paramsOrFirst: { id: string } | string
2148
+ ): Promise<Models.MeasurementFamilies> {
2149
+ let params: { id: string };
2150
+
2151
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2152
+ params = (paramsOrFirst || {}) as { id: string };
2153
+ } else {
2154
+ params = {
2155
+ id: paramsOrFirst as string
2156
+ };
2157
+ }
2158
+
2159
+ const id = params.id;
2160
+
2161
+ if (typeof id === 'undefined') {
2162
+ throw new RevenexxException('Missing required parameter: "id"');
2163
+ }
2164
+
2165
+ const apiPath = '/v1/products/measurement_families/{id}'.replace('{id}', id);
2166
+ const payload: Payload = {};
2167
+ const uri = new URL(this.client.config.endpoint + apiPath);
2168
+
2169
+ const apiHeaders: { [header: string]: string } = {
2170
+ 'content-type': 'application/json',
2171
+ }
2172
+
2173
+ return this.client.call(
2174
+ 'put',
2175
+ uri,
2176
+ apiHeaders,
2177
+ payload
2178
+ );
2179
+ }
2180
+
2181
+ /**
2182
+ *
2183
+ * @throws {RevenexxException}
2184
+ * @returns {Promise<{}>}
2185
+ */
2186
+ productsProductAssociationsList(): Promise<{}> {
2187
+
2188
+ const apiPath = '/v1/products/product_associations';
2189
+ const payload: Payload = {};
2190
+ const uri = new URL(this.client.config.endpoint + apiPath);
2191
+
2192
+ const apiHeaders: { [header: string]: string } = {
2193
+ }
2194
+
2195
+ return this.client.call(
2196
+ 'get',
2197
+ uri,
2198
+ apiHeaders,
2199
+ payload
2200
+ );
2201
+ }
2202
+
2203
+ /**
2204
+ *
2205
+ * @throws {RevenexxException}
2206
+ * @returns {Promise<Models.ProductAssociations>}
2207
+ */
2208
+ productsProductAssociationsCreate(): Promise<Models.ProductAssociations> {
2209
+
2210
+ const apiPath = '/v1/products/product_associations';
2211
+ const payload: Payload = {};
2212
+ const uri = new URL(this.client.config.endpoint + apiPath);
2213
+
2214
+ const apiHeaders: { [header: string]: string } = {
2215
+ 'content-type': 'application/json',
2216
+ }
2217
+
2218
+ return this.client.call(
2219
+ 'post',
2220
+ uri,
2221
+ apiHeaders,
2222
+ payload
2223
+ );
2224
+ }
2225
+
2226
+ /**
2227
+ *
2228
+ * @param {string} params.id -
2229
+ * @throws {RevenexxException}
2230
+ * @returns {Promise<{}>}
2231
+ */
2232
+ productsProductAssociationsDelete(params: { id: string }): Promise<{}>;
2233
+ /**
2234
+ *
2235
+ * @param {string} id -
2236
+ * @throws {RevenexxException}
2237
+ * @returns {Promise<{}>}
2238
+ * @deprecated Use the object parameter style method for a better developer experience.
2239
+ */
2240
+ productsProductAssociationsDelete(id: string): Promise<{}>;
2241
+ productsProductAssociationsDelete(
2242
+ paramsOrFirst: { id: string } | string
2243
+ ): Promise<{}> {
2244
+ let params: { id: string };
2245
+
2246
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2247
+ params = (paramsOrFirst || {}) as { id: string };
2248
+ } else {
2249
+ params = {
2250
+ id: paramsOrFirst as string
2251
+ };
2252
+ }
2253
+
2254
+ const id = params.id;
2255
+
2256
+ if (typeof id === 'undefined') {
2257
+ throw new RevenexxException('Missing required parameter: "id"');
2258
+ }
2259
+
2260
+ const apiPath = '/v1/products/product_associations/{id}'.replace('{id}', id);
2261
+ const payload: Payload = {};
2262
+ const uri = new URL(this.client.config.endpoint + apiPath);
2263
+
2264
+ const apiHeaders: { [header: string]: string } = {
2265
+ }
2266
+
2267
+ return this.client.call(
2268
+ 'delete',
2269
+ uri,
2270
+ apiHeaders,
2271
+ payload
2272
+ );
2273
+ }
2274
+
2275
+ /**
2276
+ *
2277
+ * @param {string} params.id -
2278
+ * @throws {RevenexxException}
2279
+ * @returns {Promise<Models.ProductAssociations>}
2280
+ */
2281
+ productsProductAssociationsGet(params: { id: string }): Promise<Models.ProductAssociations>;
2282
+ /**
2283
+ *
2284
+ * @param {string} id -
2285
+ * @throws {RevenexxException}
2286
+ * @returns {Promise<Models.ProductAssociations>}
2287
+ * @deprecated Use the object parameter style method for a better developer experience.
2288
+ */
2289
+ productsProductAssociationsGet(id: string): Promise<Models.ProductAssociations>;
2290
+ productsProductAssociationsGet(
2291
+ paramsOrFirst: { id: string } | string
2292
+ ): Promise<Models.ProductAssociations> {
2293
+ let params: { id: string };
2294
+
2295
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2296
+ params = (paramsOrFirst || {}) as { id: string };
2297
+ } else {
2298
+ params = {
2299
+ id: paramsOrFirst as string
2300
+ };
2301
+ }
2302
+
2303
+ const id = params.id;
2304
+
2305
+ if (typeof id === 'undefined') {
2306
+ throw new RevenexxException('Missing required parameter: "id"');
2307
+ }
2308
+
2309
+ const apiPath = '/v1/products/product_associations/{id}'.replace('{id}', id);
2310
+ const payload: Payload = {};
2311
+ const uri = new URL(this.client.config.endpoint + apiPath);
2312
+
2313
+ const apiHeaders: { [header: string]: string } = {
2314
+ }
2315
+
2316
+ return this.client.call(
2317
+ 'get',
2318
+ uri,
2319
+ apiHeaders,
2320
+ payload
2321
+ );
2322
+ }
2323
+
2324
+ /**
2325
+ *
2326
+ * @param {string} params.id -
2327
+ * @throws {RevenexxException}
2328
+ * @returns {Promise<Models.ProductAssociations>}
2329
+ */
2330
+ productsProductAssociationsUpdate(params: { id: string }): Promise<Models.ProductAssociations>;
2331
+ /**
2332
+ *
2333
+ * @param {string} id -
2334
+ * @throws {RevenexxException}
2335
+ * @returns {Promise<Models.ProductAssociations>}
2336
+ * @deprecated Use the object parameter style method for a better developer experience.
2337
+ */
2338
+ productsProductAssociationsUpdate(id: string): Promise<Models.ProductAssociations>;
2339
+ productsProductAssociationsUpdate(
2340
+ paramsOrFirst: { id: string } | string
2341
+ ): Promise<Models.ProductAssociations> {
2342
+ let params: { id: string };
2343
+
2344
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2345
+ params = (paramsOrFirst || {}) as { id: string };
2346
+ } else {
2347
+ params = {
2348
+ id: paramsOrFirst as string
2349
+ };
2350
+ }
2351
+
2352
+ const id = params.id;
2353
+
2354
+ if (typeof id === 'undefined') {
2355
+ throw new RevenexxException('Missing required parameter: "id"');
2356
+ }
2357
+
2358
+ const apiPath = '/v1/products/product_associations/{id}'.replace('{id}', id);
2359
+ const payload: Payload = {};
2360
+ const uri = new URL(this.client.config.endpoint + apiPath);
2361
+
2362
+ const apiHeaders: { [header: string]: string } = {
2363
+ 'content-type': 'application/json',
2364
+ }
2365
+
2366
+ return this.client.call(
2367
+ 'put',
2368
+ uri,
2369
+ apiHeaders,
2370
+ payload
2371
+ );
2372
+ }
2373
+
2374
+ /**
2375
+ *
2376
+ * @throws {RevenexxException}
2377
+ * @returns {Promise<{}>}
2378
+ */
2379
+ productsProductCategoriesList(): Promise<{}> {
2380
+
2381
+ const apiPath = '/v1/products/product_categories';
2382
+ const payload: Payload = {};
2383
+ const uri = new URL(this.client.config.endpoint + apiPath);
2384
+
2385
+ const apiHeaders: { [header: string]: string } = {
2386
+ }
2387
+
2388
+ return this.client.call(
2389
+ 'get',
2390
+ uri,
2391
+ apiHeaders,
2392
+ payload
2393
+ );
2394
+ }
2395
+
2396
+ /**
2397
+ *
2398
+ * @throws {RevenexxException}
2399
+ * @returns {Promise<Models.ProductCategories>}
2400
+ */
2401
+ productsProductCategoriesCreate(): Promise<Models.ProductCategories> {
2402
+
2403
+ const apiPath = '/v1/products/product_categories';
2404
+ const payload: Payload = {};
2405
+ const uri = new URL(this.client.config.endpoint + apiPath);
2406
+
2407
+ const apiHeaders: { [header: string]: string } = {
2408
+ 'content-type': 'application/json',
2409
+ }
2410
+
2411
+ return this.client.call(
2412
+ 'post',
2413
+ uri,
2414
+ apiHeaders,
2415
+ payload
2416
+ );
2417
+ }
2418
+
2419
+ /**
2420
+ *
2421
+ * @param {string} params.id -
2422
+ * @throws {RevenexxException}
2423
+ * @returns {Promise<{}>}
2424
+ */
2425
+ productsProductCategoriesDelete(params: { id: string }): Promise<{}>;
2426
+ /**
2427
+ *
2428
+ * @param {string} id -
2429
+ * @throws {RevenexxException}
2430
+ * @returns {Promise<{}>}
2431
+ * @deprecated Use the object parameter style method for a better developer experience.
2432
+ */
2433
+ productsProductCategoriesDelete(id: string): Promise<{}>;
2434
+ productsProductCategoriesDelete(
2435
+ paramsOrFirst: { id: string } | string
2436
+ ): Promise<{}> {
2437
+ let params: { id: string };
2438
+
2439
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2440
+ params = (paramsOrFirst || {}) as { id: string };
2441
+ } else {
2442
+ params = {
2443
+ id: paramsOrFirst as string
2444
+ };
2445
+ }
2446
+
2447
+ const id = params.id;
2448
+
2449
+ if (typeof id === 'undefined') {
2450
+ throw new RevenexxException('Missing required parameter: "id"');
2451
+ }
2452
+
2453
+ const apiPath = '/v1/products/product_categories/{id}'.replace('{id}', id);
2454
+ const payload: Payload = {};
2455
+ const uri = new URL(this.client.config.endpoint + apiPath);
2456
+
2457
+ const apiHeaders: { [header: string]: string } = {
2458
+ }
2459
+
2460
+ return this.client.call(
2461
+ 'delete',
2462
+ uri,
2463
+ apiHeaders,
2464
+ payload
2465
+ );
2466
+ }
2467
+
2468
+ /**
2469
+ *
2470
+ * @param {string} params.id -
2471
+ * @throws {RevenexxException}
2472
+ * @returns {Promise<Models.ProductCategories>}
2473
+ */
2474
+ productsProductCategoriesGet(params: { id: string }): Promise<Models.ProductCategories>;
2475
+ /**
2476
+ *
2477
+ * @param {string} id -
2478
+ * @throws {RevenexxException}
2479
+ * @returns {Promise<Models.ProductCategories>}
2480
+ * @deprecated Use the object parameter style method for a better developer experience.
2481
+ */
2482
+ productsProductCategoriesGet(id: string): Promise<Models.ProductCategories>;
2483
+ productsProductCategoriesGet(
2484
+ paramsOrFirst: { id: string } | string
2485
+ ): Promise<Models.ProductCategories> {
2486
+ let params: { id: string };
2487
+
2488
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2489
+ params = (paramsOrFirst || {}) as { id: string };
2490
+ } else {
2491
+ params = {
2492
+ id: paramsOrFirst as string
2493
+ };
2494
+ }
2495
+
2496
+ const id = params.id;
2497
+
2498
+ if (typeof id === 'undefined') {
2499
+ throw new RevenexxException('Missing required parameter: "id"');
2500
+ }
2501
+
2502
+ const apiPath = '/v1/products/product_categories/{id}'.replace('{id}', id);
2503
+ const payload: Payload = {};
2504
+ const uri = new URL(this.client.config.endpoint + apiPath);
2505
+
2506
+ const apiHeaders: { [header: string]: string } = {
2507
+ }
2508
+
2509
+ return this.client.call(
2510
+ 'get',
2511
+ uri,
2512
+ apiHeaders,
2513
+ payload
2514
+ );
2515
+ }
2516
+
2517
+ /**
2518
+ *
2519
+ * @param {string} params.id -
2520
+ * @throws {RevenexxException}
2521
+ * @returns {Promise<Models.ProductCategories>}
2522
+ */
2523
+ productsProductCategoriesUpdate(params: { id: string }): Promise<Models.ProductCategories>;
2524
+ /**
2525
+ *
2526
+ * @param {string} id -
2527
+ * @throws {RevenexxException}
2528
+ * @returns {Promise<Models.ProductCategories>}
2529
+ * @deprecated Use the object parameter style method for a better developer experience.
2530
+ */
2531
+ productsProductCategoriesUpdate(id: string): Promise<Models.ProductCategories>;
2532
+ productsProductCategoriesUpdate(
2533
+ paramsOrFirst: { id: string } | string
2534
+ ): Promise<Models.ProductCategories> {
2535
+ let params: { id: string };
2536
+
2537
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2538
+ params = (paramsOrFirst || {}) as { id: string };
2539
+ } else {
2540
+ params = {
2541
+ id: paramsOrFirst as string
2542
+ };
2543
+ }
2544
+
2545
+ const id = params.id;
2546
+
2547
+ if (typeof id === 'undefined') {
2548
+ throw new RevenexxException('Missing required parameter: "id"');
2549
+ }
2550
+
2551
+ const apiPath = '/v1/products/product_categories/{id}'.replace('{id}', id);
2552
+ const payload: Payload = {};
2553
+ const uri = new URL(this.client.config.endpoint + apiPath);
2554
+
2555
+ const apiHeaders: { [header: string]: string } = {
2556
+ 'content-type': 'application/json',
2557
+ }
2558
+
2559
+ return this.client.call(
2560
+ 'put',
2561
+ uri,
2562
+ apiHeaders,
2563
+ payload
2564
+ );
2565
+ }
2566
+
2567
+ /**
2568
+ *
2569
+ * @throws {RevenexxException}
2570
+ * @returns {Promise<{}>}
2571
+ */
2572
+ productsReferenceEntitiesList(): Promise<{}> {
2573
+
2574
+ const apiPath = '/v1/products/reference_entities';
2575
+ const payload: Payload = {};
2576
+ const uri = new URL(this.client.config.endpoint + apiPath);
2577
+
2578
+ const apiHeaders: { [header: string]: string } = {
2579
+ }
2580
+
2581
+ return this.client.call(
2582
+ 'get',
2583
+ uri,
2584
+ apiHeaders,
2585
+ payload
2586
+ );
2587
+ }
2588
+
2589
+ /**
2590
+ *
2591
+ * @throws {RevenexxException}
2592
+ * @returns {Promise<Models.ReferenceEntities>}
2593
+ */
2594
+ productsReferenceEntitiesCreate(): Promise<Models.ReferenceEntities> {
2595
+
2596
+ const apiPath = '/v1/products/reference_entities';
2597
+ const payload: Payload = {};
2598
+ const uri = new URL(this.client.config.endpoint + apiPath);
2599
+
2600
+ const apiHeaders: { [header: string]: string } = {
2601
+ 'content-type': 'application/json',
2602
+ }
2603
+
2604
+ return this.client.call(
2605
+ 'post',
2606
+ uri,
2607
+ apiHeaders,
2608
+ payload
2609
+ );
2610
+ }
2611
+
2612
+ /**
2613
+ *
2614
+ * @param {string} params.id -
2615
+ * @throws {RevenexxException}
2616
+ * @returns {Promise<{}>}
2617
+ */
2618
+ productsReferenceEntitiesDelete(params: { id: string }): Promise<{}>;
2619
+ /**
2620
+ *
2621
+ * @param {string} id -
2622
+ * @throws {RevenexxException}
2623
+ * @returns {Promise<{}>}
2624
+ * @deprecated Use the object parameter style method for a better developer experience.
2625
+ */
2626
+ productsReferenceEntitiesDelete(id: string): Promise<{}>;
2627
+ productsReferenceEntitiesDelete(
2628
+ paramsOrFirst: { id: string } | string
2629
+ ): Promise<{}> {
2630
+ let params: { id: string };
2631
+
2632
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2633
+ params = (paramsOrFirst || {}) as { id: string };
2634
+ } else {
2635
+ params = {
2636
+ id: paramsOrFirst as string
2637
+ };
2638
+ }
2639
+
2640
+ const id = params.id;
2641
+
2642
+ if (typeof id === 'undefined') {
2643
+ throw new RevenexxException('Missing required parameter: "id"');
2644
+ }
2645
+
2646
+ const apiPath = '/v1/products/reference_entities/{id}'.replace('{id}', id);
2647
+ const payload: Payload = {};
2648
+ const uri = new URL(this.client.config.endpoint + apiPath);
2649
+
2650
+ const apiHeaders: { [header: string]: string } = {
2651
+ }
2652
+
2653
+ return this.client.call(
2654
+ 'delete',
2655
+ uri,
2656
+ apiHeaders,
2657
+ payload
2658
+ );
2659
+ }
2660
+
2661
+ /**
2662
+ *
2663
+ * @param {string} params.id -
2664
+ * @throws {RevenexxException}
2665
+ * @returns {Promise<Models.ReferenceEntities>}
2666
+ */
2667
+ productsReferenceEntitiesGet(params: { id: string }): Promise<Models.ReferenceEntities>;
2668
+ /**
2669
+ *
2670
+ * @param {string} id -
2671
+ * @throws {RevenexxException}
2672
+ * @returns {Promise<Models.ReferenceEntities>}
2673
+ * @deprecated Use the object parameter style method for a better developer experience.
2674
+ */
2675
+ productsReferenceEntitiesGet(id: string): Promise<Models.ReferenceEntities>;
2676
+ productsReferenceEntitiesGet(
2677
+ paramsOrFirst: { id: string } | string
2678
+ ): Promise<Models.ReferenceEntities> {
2679
+ let params: { id: string };
2680
+
2681
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2682
+ params = (paramsOrFirst || {}) as { id: string };
2683
+ } else {
2684
+ params = {
2685
+ id: paramsOrFirst as string
2686
+ };
2687
+ }
2688
+
2689
+ const id = params.id;
2690
+
2691
+ if (typeof id === 'undefined') {
2692
+ throw new RevenexxException('Missing required parameter: "id"');
2693
+ }
2694
+
2695
+ const apiPath = '/v1/products/reference_entities/{id}'.replace('{id}', id);
2696
+ const payload: Payload = {};
2697
+ const uri = new URL(this.client.config.endpoint + apiPath);
2698
+
2699
+ const apiHeaders: { [header: string]: string } = {
2700
+ }
2701
+
2702
+ return this.client.call(
2703
+ 'get',
2704
+ uri,
2705
+ apiHeaders,
2706
+ payload
2707
+ );
2708
+ }
2709
+
2710
+ /**
2711
+ *
2712
+ * @param {string} params.id -
2713
+ * @throws {RevenexxException}
2714
+ * @returns {Promise<Models.ReferenceEntities>}
2715
+ */
2716
+ productsReferenceEntitiesUpdate(params: { id: string }): Promise<Models.ReferenceEntities>;
2717
+ /**
2718
+ *
2719
+ * @param {string} id -
2720
+ * @throws {RevenexxException}
2721
+ * @returns {Promise<Models.ReferenceEntities>}
2722
+ * @deprecated Use the object parameter style method for a better developer experience.
2723
+ */
2724
+ productsReferenceEntitiesUpdate(id: string): Promise<Models.ReferenceEntities>;
2725
+ productsReferenceEntitiesUpdate(
2726
+ paramsOrFirst: { id: string } | string
2727
+ ): Promise<Models.ReferenceEntities> {
2728
+ let params: { id: string };
2729
+
2730
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2731
+ params = (paramsOrFirst || {}) as { id: string };
2732
+ } else {
2733
+ params = {
2734
+ id: paramsOrFirst as string
2735
+ };
2736
+ }
2737
+
2738
+ const id = params.id;
2739
+
2740
+ if (typeof id === 'undefined') {
2741
+ throw new RevenexxException('Missing required parameter: "id"');
2742
+ }
2743
+
2744
+ const apiPath = '/v1/products/reference_entities/{id}'.replace('{id}', id);
2745
+ const payload: Payload = {};
2746
+ const uri = new URL(this.client.config.endpoint + apiPath);
2747
+
2748
+ const apiHeaders: { [header: string]: string } = {
2749
+ 'content-type': 'application/json',
2750
+ }
2751
+
2752
+ return this.client.call(
2753
+ 'put',
2754
+ uri,
2755
+ apiHeaders,
2756
+ payload
2757
+ );
2758
+ }
2759
+
2760
+ /**
2761
+ *
2762
+ * @throws {RevenexxException}
2763
+ * @returns {Promise<{}>}
2764
+ */
2765
+ productsReferenceEntityRecordsList(): Promise<{}> {
2766
+
2767
+ const apiPath = '/v1/products/reference_entity_records';
2768
+ const payload: Payload = {};
2769
+ const uri = new URL(this.client.config.endpoint + apiPath);
2770
+
2771
+ const apiHeaders: { [header: string]: string } = {
2772
+ }
2773
+
2774
+ return this.client.call(
2775
+ 'get',
2776
+ uri,
2777
+ apiHeaders,
2778
+ payload
2779
+ );
2780
+ }
2781
+
2782
+ /**
2783
+ *
2784
+ * @throws {RevenexxException}
2785
+ * @returns {Promise<Models.ReferenceEntityRecords>}
2786
+ */
2787
+ productsReferenceEntityRecordsCreate(): Promise<Models.ReferenceEntityRecords> {
2788
+
2789
+ const apiPath = '/v1/products/reference_entity_records';
2790
+ const payload: Payload = {};
2791
+ const uri = new URL(this.client.config.endpoint + apiPath);
2792
+
2793
+ const apiHeaders: { [header: string]: string } = {
2794
+ 'content-type': 'application/json',
2795
+ }
2796
+
2797
+ return this.client.call(
2798
+ 'post',
2799
+ uri,
2800
+ apiHeaders,
2801
+ payload
2802
+ );
2803
+ }
2804
+
2805
+ /**
2806
+ *
2807
+ * @param {string} params.id -
2808
+ * @throws {RevenexxException}
2809
+ * @returns {Promise<{}>}
2810
+ */
2811
+ productsReferenceEntityRecordsDelete(params: { id: string }): Promise<{}>;
2812
+ /**
2813
+ *
2814
+ * @param {string} id -
2815
+ * @throws {RevenexxException}
2816
+ * @returns {Promise<{}>}
2817
+ * @deprecated Use the object parameter style method for a better developer experience.
2818
+ */
2819
+ productsReferenceEntityRecordsDelete(id: string): Promise<{}>;
2820
+ productsReferenceEntityRecordsDelete(
2821
+ paramsOrFirst: { id: string } | string
2822
+ ): Promise<{}> {
2823
+ let params: { id: string };
2824
+
2825
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2826
+ params = (paramsOrFirst || {}) as { id: string };
2827
+ } else {
2828
+ params = {
2829
+ id: paramsOrFirst as string
2830
+ };
2831
+ }
2832
+
2833
+ const id = params.id;
2834
+
2835
+ if (typeof id === 'undefined') {
2836
+ throw new RevenexxException('Missing required parameter: "id"');
2837
+ }
2838
+
2839
+ const apiPath = '/v1/products/reference_entity_records/{id}'.replace('{id}', id);
2840
+ const payload: Payload = {};
2841
+ const uri = new URL(this.client.config.endpoint + apiPath);
2842
+
2843
+ const apiHeaders: { [header: string]: string } = {
2844
+ }
2845
+
2846
+ return this.client.call(
2847
+ 'delete',
2848
+ uri,
2849
+ apiHeaders,
2850
+ payload
2851
+ );
2852
+ }
2853
+
2854
+ /**
2855
+ *
2856
+ * @param {string} params.id -
2857
+ * @throws {RevenexxException}
2858
+ * @returns {Promise<Models.ReferenceEntityRecords>}
2859
+ */
2860
+ productsReferenceEntityRecordsGet(params: { id: string }): Promise<Models.ReferenceEntityRecords>;
2861
+ /**
2862
+ *
2863
+ * @param {string} id -
2864
+ * @throws {RevenexxException}
2865
+ * @returns {Promise<Models.ReferenceEntityRecords>}
2866
+ * @deprecated Use the object parameter style method for a better developer experience.
2867
+ */
2868
+ productsReferenceEntityRecordsGet(id: string): Promise<Models.ReferenceEntityRecords>;
2869
+ productsReferenceEntityRecordsGet(
2870
+ paramsOrFirst: { id: string } | string
2871
+ ): Promise<Models.ReferenceEntityRecords> {
2872
+ let params: { id: string };
2873
+
2874
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2875
+ params = (paramsOrFirst || {}) as { id: string };
2876
+ } else {
2877
+ params = {
2878
+ id: paramsOrFirst as string
2879
+ };
2880
+ }
2881
+
2882
+ const id = params.id;
2883
+
2884
+ if (typeof id === 'undefined') {
2885
+ throw new RevenexxException('Missing required parameter: "id"');
2886
+ }
2887
+
2888
+ const apiPath = '/v1/products/reference_entity_records/{id}'.replace('{id}', id);
2889
+ const payload: Payload = {};
2890
+ const uri = new URL(this.client.config.endpoint + apiPath);
2891
+
2892
+ const apiHeaders: { [header: string]: string } = {
2893
+ }
2894
+
2895
+ return this.client.call(
2896
+ 'get',
2897
+ uri,
2898
+ apiHeaders,
2899
+ payload
2900
+ );
2901
+ }
2902
+
2903
+ /**
2904
+ *
2905
+ * @param {string} params.id -
2906
+ * @throws {RevenexxException}
2907
+ * @returns {Promise<Models.ReferenceEntityRecords>}
2908
+ */
2909
+ productsReferenceEntityRecordsUpdate(params: { id: string }): Promise<Models.ReferenceEntityRecords>;
2910
+ /**
2911
+ *
2912
+ * @param {string} id -
2913
+ * @throws {RevenexxException}
2914
+ * @returns {Promise<Models.ReferenceEntityRecords>}
2915
+ * @deprecated Use the object parameter style method for a better developer experience.
2916
+ */
2917
+ productsReferenceEntityRecordsUpdate(id: string): Promise<Models.ReferenceEntityRecords>;
2918
+ productsReferenceEntityRecordsUpdate(
2919
+ paramsOrFirst: { id: string } | string
2920
+ ): Promise<Models.ReferenceEntityRecords> {
2921
+ let params: { id: string };
2922
+
2923
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2924
+ params = (paramsOrFirst || {}) as { id: string };
2925
+ } else {
2926
+ params = {
2927
+ id: paramsOrFirst as string
2928
+ };
2929
+ }
2930
+
2931
+ const id = params.id;
2932
+
2933
+ if (typeof id === 'undefined') {
2934
+ throw new RevenexxException('Missing required parameter: "id"');
2935
+ }
2936
+
2937
+ const apiPath = '/v1/products/reference_entity_records/{id}'.replace('{id}', id);
2938
+ const payload: Payload = {};
2939
+ const uri = new URL(this.client.config.endpoint + apiPath);
2940
+
2941
+ const apiHeaders: { [header: string]: string } = {
2942
+ 'content-type': 'application/json',
2943
+ }
2944
+
2945
+ return this.client.call(
2946
+ 'put',
2947
+ uri,
2948
+ apiHeaders,
2949
+ payload
2950
+ );
2951
+ }
2952
+
2953
+ /**
2954
+ *
2955
+ * @param {string} params.id -
2956
+ * @throws {RevenexxException}
2957
+ * @returns {Promise<{}>}
2958
+ */
2959
+ productsDelete(params: { id: string }): Promise<{}>;
2960
+ /**
2961
+ *
2962
+ * @param {string} id -
2963
+ * @throws {RevenexxException}
2964
+ * @returns {Promise<{}>}
2965
+ * @deprecated Use the object parameter style method for a better developer experience.
2966
+ */
2967
+ productsDelete(id: string): Promise<{}>;
2968
+ productsDelete(
2969
+ paramsOrFirst: { id: string } | string
2970
+ ): Promise<{}> {
2971
+ let params: { id: string };
2972
+
2973
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2974
+ params = (paramsOrFirst || {}) as { id: string };
2975
+ } else {
2976
+ params = {
2977
+ id: paramsOrFirst as string
2978
+ };
2979
+ }
2980
+
2981
+ const id = params.id;
2982
+
2983
+ if (typeof id === 'undefined') {
2984
+ throw new RevenexxException('Missing required parameter: "id"');
2985
+ }
2986
+
2987
+ const apiPath = '/v1/products/{id}'.replace('{id}', id);
2988
+ const payload: Payload = {};
2989
+ const uri = new URL(this.client.config.endpoint + apiPath);
2990
+
2991
+ const apiHeaders: { [header: string]: string } = {
2992
+ }
2993
+
2994
+ return this.client.call(
2995
+ 'delete',
2996
+ uri,
2997
+ apiHeaders,
2998
+ payload
2999
+ );
3000
+ }
3001
+
3002
+ /**
3003
+ *
3004
+ * @param {string} params.id -
3005
+ * @throws {RevenexxException}
3006
+ * @returns {Promise<Models.Products>}
3007
+ */
3008
+ productsGet(params: { id: string }): Promise<Models.Products>;
3009
+ /**
3010
+ *
3011
+ * @param {string} id -
3012
+ * @throws {RevenexxException}
3013
+ * @returns {Promise<Models.Products>}
3014
+ * @deprecated Use the object parameter style method for a better developer experience.
3015
+ */
3016
+ productsGet(id: string): Promise<Models.Products>;
3017
+ productsGet(
3018
+ paramsOrFirst: { id: string } | string
3019
+ ): Promise<Models.Products> {
3020
+ let params: { id: string };
3021
+
3022
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
3023
+ params = (paramsOrFirst || {}) as { id: string };
3024
+ } else {
3025
+ params = {
3026
+ id: paramsOrFirst as string
3027
+ };
3028
+ }
3029
+
3030
+ const id = params.id;
3031
+
3032
+ if (typeof id === 'undefined') {
3033
+ throw new RevenexxException('Missing required parameter: "id"');
3034
+ }
3035
+
3036
+ const apiPath = '/v1/products/{id}'.replace('{id}', id);
3037
+ const payload: Payload = {};
3038
+ const uri = new URL(this.client.config.endpoint + apiPath);
3039
+
3040
+ const apiHeaders: { [header: string]: string } = {
3041
+ }
3042
+
3043
+ return this.client.call(
3044
+ 'get',
3045
+ uri,
3046
+ apiHeaders,
3047
+ payload
3048
+ );
3049
+ }
3050
+
3051
+ /**
3052
+ *
3053
+ * @param {string} params.id -
3054
+ * @throws {RevenexxException}
3055
+ * @returns {Promise<Models.Products>}
3056
+ */
3057
+ productsUpdate(params: { id: string }): Promise<Models.Products>;
3058
+ /**
3059
+ *
3060
+ * @param {string} id -
3061
+ * @throws {RevenexxException}
3062
+ * @returns {Promise<Models.Products>}
3063
+ * @deprecated Use the object parameter style method for a better developer experience.
3064
+ */
3065
+ productsUpdate(id: string): Promise<Models.Products>;
3066
+ productsUpdate(
3067
+ paramsOrFirst: { id: string } | string
3068
+ ): Promise<Models.Products> {
3069
+ let params: { id: string };
3070
+
3071
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
3072
+ params = (paramsOrFirst || {}) as { id: string };
3073
+ } else {
3074
+ params = {
3075
+ id: paramsOrFirst as string
3076
+ };
3077
+ }
3078
+
3079
+ const id = params.id;
3080
+
3081
+ if (typeof id === 'undefined') {
3082
+ throw new RevenexxException('Missing required parameter: "id"');
3083
+ }
3084
+
3085
+ const apiPath = '/v1/products/{id}'.replace('{id}', id);
3086
+ const payload: Payload = {};
3087
+ const uri = new URL(this.client.config.endpoint + apiPath);
3088
+
3089
+ const apiHeaders: { [header: string]: string } = {
3090
+ 'content-type': 'application/json',
3091
+ }
3092
+
3093
+ return this.client.call(
3094
+ 'put',
3095
+ uri,
3096
+ apiHeaders,
3097
+ payload
3098
+ );
3099
+ }
3100
+ }