@digital8/lighting-illusions-ts-sdk 0.0.979 → 0.0.981

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 (124) hide show
  1. package/.openapi-generator/VERSION +1 -1
  2. package/README.md +3 -3
  3. package/dist/apis/AssetApi.d.ts +16 -0
  4. package/dist/apis/AssetApi.js +110 -58
  5. package/dist/apis/AttributeApi.d.ts +60 -0
  6. package/dist/apis/AttributeApi.js +424 -229
  7. package/dist/apis/DefinitionApi.d.ts +24 -0
  8. package/dist/apis/DefinitionApi.js +164 -86
  9. package/dist/apis/DocumentApi.d.ts +36 -0
  10. package/dist/apis/DocumentApi.js +250 -133
  11. package/dist/apis/ExternalApiLogApi.d.ts +4 -0
  12. package/dist/apis/ExternalApiLogApi.js +26 -13
  13. package/dist/apis/GoogleCategoryApi.d.ts +4 -0
  14. package/dist/apis/GoogleCategoryApi.js +26 -13
  15. package/dist/apis/OverlayTemplateApi.d.ts +48 -0
  16. package/dist/apis/OverlayTemplateApi.js +340 -184
  17. package/dist/apis/ProductApi.d.ts +84 -0
  18. package/dist/apis/ProductApi.js +600 -327
  19. package/dist/apis/ProductCategoryApi.d.ts +52 -0
  20. package/dist/apis/ProductCategoryApi.js +364 -195
  21. package/dist/apis/ProductTypeApi.d.ts +36 -0
  22. package/dist/apis/ProductTypeApi.js +256 -139
  23. package/dist/apis/SiteApi.d.ts +32 -0
  24. package/dist/apis/SiteApi.js +220 -116
  25. package/dist/apis/SupplierApi.d.ts +32 -0
  26. package/dist/apis/SupplierApi.js +234 -130
  27. package/dist/apis/TagApi.d.ts +32 -0
  28. package/dist/apis/TagApi.js +226 -122
  29. package/dist/models/AttachAttributeProductTypeRequest.d.ts +1 -1
  30. package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -1
  31. package/dist/models/AttachProductTypeAttributeRequest.d.ts +1 -1
  32. package/dist/models/DetachAssetableOverlayTemplateRequest.d.ts +1 -1
  33. package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -1
  34. package/dist/models/GetAllAttributeRequest.d.ts +3 -3
  35. package/dist/models/GetAllDefinitionRequest.d.ts +2 -2
  36. package/dist/models/GetAllDocumentRequest.d.ts +3 -3
  37. package/dist/models/GetAllGoogleCategoryRequest.d.ts +2 -2
  38. package/dist/models/GetAllOverlayTemplateRequest.d.ts +3 -3
  39. package/dist/models/GetAllProductCategoryRequest.d.ts +3 -3
  40. package/dist/models/GetAllProductChildRequest.d.ts +3 -3
  41. package/dist/models/GetAllProductRequest.d.ts +3 -3
  42. package/dist/models/GetAllProductTypeRequest.d.ts +3 -3
  43. package/dist/models/GetAllSupplierRequest.d.ts +3 -3
  44. package/dist/models/IndexAttributeRequest.d.ts +3 -3
  45. package/dist/models/IndexAttributeValueRequest.d.ts +3 -3
  46. package/dist/models/IndexDefinitionRequest.d.ts +2 -2
  47. package/dist/models/IndexDocumentRequest.d.ts +3 -3
  48. package/dist/models/IndexExternalApiLogRequest.d.ts +2 -2
  49. package/dist/models/IndexOverlayTemplateRequest.d.ts +3 -3
  50. package/dist/models/IndexProductCategoryRequest.d.ts +3 -3
  51. package/dist/models/IndexProductChildRequest.d.ts +3 -3
  52. package/dist/models/IndexProductRequest.d.ts +3 -3
  53. package/dist/models/IndexProductTypeRequest.d.ts +3 -3
  54. package/dist/models/IndexSiteNotificationRequest.d.ts +2 -2
  55. package/dist/models/IndexSiteRequest.d.ts +2 -2
  56. package/dist/models/IndexSupplierRequest.d.ts +3 -3
  57. package/dist/models/IndexTagRequest.d.ts +3 -3
  58. package/dist/models/PreviewAutomationRulesProductCategoryRequest.d.ts +1 -1
  59. package/dist/models/StoreAssetForAssetableRequest.d.ts +1 -1
  60. package/dist/models/StoreAttributeRequest.d.ts +1 -1
  61. package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +1 -1
  62. package/dist/models/StoreProductCategoryRequest.d.ts +1 -1
  63. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +2 -2
  64. package/dist/models/StoreTagRequest.d.ts +1 -1
  65. package/dist/models/UpdateAttributeRequest.d.ts +1 -1
  66. package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +1 -1
  67. package/dist/models/UpdateProductCategoryRequest.d.ts +1 -1
  68. package/dist/models/UpdateSiteRequest.d.ts +1 -1
  69. package/dist/models/UpdateTagRequest.d.ts +1 -1
  70. package/package.json +1 -1
  71. package/src/apis/AssetApi.ts +48 -16
  72. package/src/apis/AttributeApi.ts +180 -60
  73. package/src/apis/DefinitionApi.ts +72 -24
  74. package/src/apis/DocumentApi.ts +108 -36
  75. package/src/apis/ExternalApiLogApi.ts +12 -4
  76. package/src/apis/GoogleCategoryApi.ts +12 -4
  77. package/src/apis/OverlayTemplateApi.ts +144 -48
  78. package/src/apis/ProductApi.ts +252 -84
  79. package/src/apis/ProductCategoryApi.ts +156 -52
  80. package/src/apis/ProductTypeApi.ts +108 -36
  81. package/src/apis/SiteApi.ts +96 -32
  82. package/src/apis/SupplierApi.ts +96 -32
  83. package/src/apis/TagApi.ts +96 -32
  84. package/src/models/AttachAttributeProductTypeRequest.ts +1 -1
  85. package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +1 -1
  86. package/src/models/AttachProductTypeAttributeRequest.ts +1 -1
  87. package/src/models/DetachAssetableOverlayTemplateRequest.ts +1 -1
  88. package/src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts +1 -1
  89. package/src/models/GetAllAttributeRequest.ts +3 -3
  90. package/src/models/GetAllDefinitionRequest.ts +2 -2
  91. package/src/models/GetAllDocumentRequest.ts +3 -3
  92. package/src/models/GetAllGoogleCategoryRequest.ts +2 -2
  93. package/src/models/GetAllOverlayTemplateRequest.ts +3 -3
  94. package/src/models/GetAllProductCategoryRequest.ts +3 -3
  95. package/src/models/GetAllProductChildRequest.ts +3 -3
  96. package/src/models/GetAllProductRequest.ts +3 -3
  97. package/src/models/GetAllProductTypeRequest.ts +3 -3
  98. package/src/models/GetAllSupplierRequest.ts +3 -3
  99. package/src/models/IndexAttributeRequest.ts +3 -3
  100. package/src/models/IndexAttributeValueRequest.ts +3 -3
  101. package/src/models/IndexDefinitionRequest.ts +2 -2
  102. package/src/models/IndexDocumentRequest.ts +3 -3
  103. package/src/models/IndexExternalApiLogRequest.ts +2 -2
  104. package/src/models/IndexOverlayTemplateRequest.ts +3 -3
  105. package/src/models/IndexProductCategoryRequest.ts +3 -3
  106. package/src/models/IndexProductChildRequest.ts +3 -3
  107. package/src/models/IndexProductRequest.ts +3 -3
  108. package/src/models/IndexProductTypeRequest.ts +3 -3
  109. package/src/models/IndexSiteNotificationRequest.ts +2 -2
  110. package/src/models/IndexSiteRequest.ts +2 -2
  111. package/src/models/IndexSupplierRequest.ts +3 -3
  112. package/src/models/IndexTagRequest.ts +3 -3
  113. package/src/models/PreviewAutomationRulesProductCategoryRequest.ts +1 -1
  114. package/src/models/StoreAssetForAssetableRequest.ts +1 -1
  115. package/src/models/StoreAttributeRequest.ts +1 -1
  116. package/src/models/StoreOverlayTemplateAssetRequest.ts +1 -1
  117. package/src/models/StoreProductCategoryRequest.ts +1 -1
  118. package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +2 -2
  119. package/src/models/StoreTagRequest.ts +1 -1
  120. package/src/models/UpdateAttributeRequest.ts +1 -1
  121. package/src/models/UpdateOverlayTemplateAssetRequest.ts +1 -1
  122. package/src/models/UpdateProductCategoryRequest.ts +1 -1
  123. package/src/models/UpdateSiteRequest.ts +1 -1
  124. package/src/models/UpdateTagRequest.ts +1 -1
@@ -127,9 +127,9 @@ export interface UpdateProductCategoryOperationRequest {
127
127
  export class ProductCategoryApi extends runtime.BaseAPI {
128
128
 
129
129
  /**
130
- * Auto-generated: attachProductsProductCategory
130
+ * Creates request options for attachProductsProductCategory without sending the request
131
131
  */
132
- async attachProductsProductCategoryRaw(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
132
+ async attachProductsProductCategoryRequestOpts(requestParameters: AttachProductsProductCategoryOperationRequest): Promise<runtime.RequestOpts> {
133
133
  if (requestParameters['productCategory'] == null) {
134
134
  throw new runtime.RequiredError(
135
135
  'productCategory',
@@ -147,13 +147,21 @@ export class ProductCategoryApi extends runtime.BaseAPI {
147
147
  let urlPath = `/admin-api/product-category/{productCategory}/attach-products`;
148
148
  urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
149
149
 
150
- const response = await this.request({
150
+ return {
151
151
  path: urlPath,
152
152
  method: 'POST',
153
153
  headers: headerParameters,
154
154
  query: queryParameters,
155
155
  body: AttachProductsProductCategoryRequestToJSON(requestParameters['attachProductsProductCategoryRequest']),
156
- }, initOverrides);
156
+ };
157
+ }
158
+
159
+ /**
160
+ * Auto-generated: attachProductsProductCategory
161
+ */
162
+ async attachProductsProductCategoryRaw(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
163
+ const requestOptions = await this.attachProductsProductCategoryRequestOpts(requestParameters);
164
+ const response = await this.request(requestOptions, initOverrides);
157
165
 
158
166
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryResourceFromJSON(jsonValue));
159
167
  }
@@ -167,9 +175,9 @@ export class ProductCategoryApi extends runtime.BaseAPI {
167
175
  }
168
176
 
169
177
  /**
170
- * Auto-generated: bulkDetachProductsProductCategory
178
+ * Creates request options for bulkDetachProductsProductCategory without sending the request
171
179
  */
172
- async bulkDetachProductsProductCategoryRaw(requestParameters: BulkDetachProductsProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
180
+ async bulkDetachProductsProductCategoryRequestOpts(requestParameters: BulkDetachProductsProductCategoryRequest): Promise<runtime.RequestOpts> {
173
181
  if (requestParameters['productCategory'] == null) {
174
182
  throw new runtime.RequiredError(
175
183
  'productCategory',
@@ -185,12 +193,20 @@ export class ProductCategoryApi extends runtime.BaseAPI {
185
193
  let urlPath = `/admin-api/product-category/{productCategory}/bulk-detach-products`;
186
194
  urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
187
195
 
188
- const response = await this.request({
196
+ return {
189
197
  path: urlPath,
190
198
  method: 'DELETE',
191
199
  headers: headerParameters,
192
200
  query: queryParameters,
193
- }, initOverrides);
201
+ };
202
+ }
203
+
204
+ /**
205
+ * Auto-generated: bulkDetachProductsProductCategory
206
+ */
207
+ async bulkDetachProductsProductCategoryRaw(requestParameters: BulkDetachProductsProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
208
+ const requestOptions = await this.bulkDetachProductsProductCategoryRequestOpts(requestParameters);
209
+ const response = await this.request(requestOptions, initOverrides);
194
210
 
195
211
  return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
196
212
  }
@@ -204,9 +220,9 @@ export class ProductCategoryApi extends runtime.BaseAPI {
204
220
  }
205
221
 
206
222
  /**
207
- * Auto-generated: destroyProductCategory
223
+ * Creates request options for destroyProductCategory without sending the request
208
224
  */
209
- async destroyProductCategoryRaw(requestParameters: DestroyProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
225
+ async destroyProductCategoryRequestOpts(requestParameters: DestroyProductCategoryRequest): Promise<runtime.RequestOpts> {
210
226
  if (requestParameters['productCategory'] == null) {
211
227
  throw new runtime.RequiredError(
212
228
  'productCategory',
@@ -222,12 +238,20 @@ export class ProductCategoryApi extends runtime.BaseAPI {
222
238
  let urlPath = `/admin-api/product-category/{productCategory}/delete`;
223
239
  urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
224
240
 
225
- const response = await this.request({
241
+ return {
226
242
  path: urlPath,
227
243
  method: 'DELETE',
228
244
  headers: headerParameters,
229
245
  query: queryParameters,
230
- }, initOverrides);
246
+ };
247
+ }
248
+
249
+ /**
250
+ * Auto-generated: destroyProductCategory
251
+ */
252
+ async destroyProductCategoryRaw(requestParameters: DestroyProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
253
+ const requestOptions = await this.destroyProductCategoryRequestOpts(requestParameters);
254
+ const response = await this.request(requestOptions, initOverrides);
231
255
 
232
256
  return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
233
257
  }
@@ -241,9 +265,9 @@ export class ProductCategoryApi extends runtime.BaseAPI {
241
265
  }
242
266
 
243
267
  /**
244
- * Auto-generated: detachProductsProductCategory
268
+ * Creates request options for detachProductsProductCategory without sending the request
245
269
  */
246
- async detachProductsProductCategoryRaw(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
270
+ async detachProductsProductCategoryRequestOpts(requestParameters: DetachProductsProductCategoryOperationRequest): Promise<runtime.RequestOpts> {
247
271
  if (requestParameters['productCategory'] == null) {
248
272
  throw new runtime.RequiredError(
249
273
  'productCategory',
@@ -261,13 +285,21 @@ export class ProductCategoryApi extends runtime.BaseAPI {
261
285
  let urlPath = `/admin-api/product-category/{productCategory}/detach-products`;
262
286
  urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
263
287
 
264
- const response = await this.request({
288
+ return {
265
289
  path: urlPath,
266
290
  method: 'POST',
267
291
  headers: headerParameters,
268
292
  query: queryParameters,
269
293
  body: DetachProductsProductCategoryRequestToJSON(requestParameters['detachProductsProductCategoryRequest']),
270
- }, initOverrides);
294
+ };
295
+ }
296
+
297
+ /**
298
+ * Auto-generated: detachProductsProductCategory
299
+ */
300
+ async detachProductsProductCategoryRaw(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
301
+ const requestOptions = await this.detachProductsProductCategoryRequestOpts(requestParameters);
302
+ const response = await this.request(requestOptions, initOverrides);
271
303
 
272
304
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryResourceFromJSON(jsonValue));
273
305
  }
@@ -281,9 +313,9 @@ export class ProductCategoryApi extends runtime.BaseAPI {
281
313
  }
282
314
 
283
315
  /**
284
- * Auto-generated: getAllChildrenProductCategory
316
+ * Creates request options for getAllChildrenProductCategory without sending the request
285
317
  */
286
- async getAllChildrenProductCategoryRaw(requestParameters: GetAllChildrenProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryListResourceArrayResponse>> {
318
+ async getAllChildrenProductCategoryRequestOpts(requestParameters: GetAllChildrenProductCategoryRequest): Promise<runtime.RequestOpts> {
287
319
  if (requestParameters['productCategory'] == null) {
288
320
  throw new runtime.RequiredError(
289
321
  'productCategory',
@@ -301,13 +333,21 @@ export class ProductCategoryApi extends runtime.BaseAPI {
301
333
  let urlPath = `/admin-api/product-category/{productCategory}/children/all`;
302
334
  urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
303
335
 
304
- const response = await this.request({
336
+ return {
305
337
  path: urlPath,
306
338
  method: 'POST',
307
339
  headers: headerParameters,
308
340
  query: queryParameters,
309
341
  body: GetAllProductCategoryRequestToJSON(requestParameters['getAllProductCategoryRequest']),
310
- }, initOverrides);
342
+ };
343
+ }
344
+
345
+ /**
346
+ * Auto-generated: getAllChildrenProductCategory
347
+ */
348
+ async getAllChildrenProductCategoryRaw(requestParameters: GetAllChildrenProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryListResourceArrayResponse>> {
349
+ const requestOptions = await this.getAllChildrenProductCategoryRequestOpts(requestParameters);
350
+ const response = await this.request(requestOptions, initOverrides);
311
351
 
312
352
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryListResourceArrayResponseFromJSON(jsonValue));
313
353
  }
@@ -321,9 +361,9 @@ export class ProductCategoryApi extends runtime.BaseAPI {
321
361
  }
322
362
 
323
363
  /**
324
- * Auto-generated: getAllProductCategory
364
+ * Creates request options for getAllProductCategory without sending the request
325
365
  */
326
- async getAllProductCategoryRaw(requestParameters: GetAllProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryLiteResourceArrayResponse>> {
366
+ async getAllProductCategoryRequestOpts(requestParameters: GetAllProductCategoryOperationRequest): Promise<runtime.RequestOpts> {
327
367
  const queryParameters: any = {};
328
368
 
329
369
  const headerParameters: runtime.HTTPHeaders = {};
@@ -333,13 +373,21 @@ export class ProductCategoryApi extends runtime.BaseAPI {
333
373
 
334
374
  let urlPath = `/admin-api/product-category/all`;
335
375
 
336
- const response = await this.request({
376
+ return {
337
377
  path: urlPath,
338
378
  method: 'POST',
339
379
  headers: headerParameters,
340
380
  query: queryParameters,
341
381
  body: GetAllProductCategoryRequestToJSON(requestParameters['getAllProductCategoryRequest']),
342
- }, initOverrides);
382
+ };
383
+ }
384
+
385
+ /**
386
+ * Auto-generated: getAllProductCategory
387
+ */
388
+ async getAllProductCategoryRaw(requestParameters: GetAllProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryLiteResourceArrayResponse>> {
389
+ const requestOptions = await this.getAllProductCategoryRequestOpts(requestParameters);
390
+ const response = await this.request(requestOptions, initOverrides);
343
391
 
344
392
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryLiteResourceArrayResponseFromJSON(jsonValue));
345
393
  }
@@ -353,9 +401,9 @@ export class ProductCategoryApi extends runtime.BaseAPI {
353
401
  }
354
402
 
355
403
  /**
356
- * Auto-generated: getChildrenProductCategory
404
+ * Creates request options for getChildrenProductCategory without sending the request
357
405
  */
358
- async getChildrenProductCategoryRaw(requestParameters: GetChildrenProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductCategoryListResourceResponse>> {
406
+ async getChildrenProductCategoryRequestOpts(requestParameters: GetChildrenProductCategoryRequest): Promise<runtime.RequestOpts> {
359
407
  if (requestParameters['productCategory'] == null) {
360
408
  throw new runtime.RequiredError(
361
409
  'productCategory',
@@ -373,13 +421,21 @@ export class ProductCategoryApi extends runtime.BaseAPI {
373
421
  let urlPath = `/admin-api/product-category/{productCategory}/children`;
374
422
  urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
375
423
 
376
- const response = await this.request({
424
+ return {
377
425
  path: urlPath,
378
426
  method: 'GET',
379
427
  headers: headerParameters,
380
428
  query: queryParameters,
381
429
  body: IndexProductCategoryRequestToJSON(requestParameters['indexProductCategoryRequest']),
382
- }, initOverrides);
430
+ };
431
+ }
432
+
433
+ /**
434
+ * Auto-generated: getChildrenProductCategory
435
+ */
436
+ async getChildrenProductCategoryRaw(requestParameters: GetChildrenProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductCategoryListResourceResponse>> {
437
+ const requestOptions = await this.getChildrenProductCategoryRequestOpts(requestParameters);
438
+ const response = await this.request(requestOptions, initOverrides);
383
439
 
384
440
  return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductCategoryListResourceResponseFromJSON(jsonValue));
385
441
  }
@@ -393,9 +449,9 @@ export class ProductCategoryApi extends runtime.BaseAPI {
393
449
  }
394
450
 
395
451
  /**
396
- * Auto-generated: getHierarchyProductCategory
452
+ * Creates request options for getHierarchyProductCategory without sending the request
397
453
  */
398
- async getHierarchyProductCategoryRaw(requestParameters: GetHierarchyProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>> {
454
+ async getHierarchyProductCategoryRequestOpts(requestParameters: GetHierarchyProductCategoryOperationRequest): Promise<runtime.RequestOpts> {
399
455
  const queryParameters: any = {};
400
456
 
401
457
  const headerParameters: runtime.HTTPHeaders = {};
@@ -405,13 +461,21 @@ export class ProductCategoryApi extends runtime.BaseAPI {
405
461
 
406
462
  let urlPath = `/admin-api/product-category/hierarchy`;
407
463
 
408
- const response = await this.request({
464
+ return {
409
465
  path: urlPath,
410
466
  method: 'POST',
411
467
  headers: headerParameters,
412
468
  query: queryParameters,
413
469
  body: GetHierarchyProductCategoryRequestToJSON(requestParameters['getHierarchyProductCategoryRequest']),
414
- }, initOverrides);
470
+ };
471
+ }
472
+
473
+ /**
474
+ * Auto-generated: getHierarchyProductCategory
475
+ */
476
+ async getHierarchyProductCategoryRaw(requestParameters: GetHierarchyProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>> {
477
+ const requestOptions = await this.getHierarchyProductCategoryRequestOpts(requestParameters);
478
+ const response = await this.request(requestOptions, initOverrides);
415
479
 
416
480
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryHierarchyResourceArrayResponseFromJSON(jsonValue));
417
481
  }
@@ -425,9 +489,9 @@ export class ProductCategoryApi extends runtime.BaseAPI {
425
489
  }
426
490
 
427
491
  /**
428
- * Auto-generated: indexProductCategory
492
+ * Creates request options for indexProductCategory without sending the request
429
493
  */
430
- async indexProductCategoryRaw(requestParameters: IndexProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductCategoryListResourceResponse>> {
494
+ async indexProductCategoryRequestOpts(requestParameters: IndexProductCategoryOperationRequest): Promise<runtime.RequestOpts> {
431
495
  const queryParameters: any = {};
432
496
 
433
497
  const headerParameters: runtime.HTTPHeaders = {};
@@ -437,13 +501,21 @@ export class ProductCategoryApi extends runtime.BaseAPI {
437
501
 
438
502
  let urlPath = `/admin-api/product-category/list`;
439
503
 
440
- const response = await this.request({
504
+ return {
441
505
  path: urlPath,
442
506
  method: 'POST',
443
507
  headers: headerParameters,
444
508
  query: queryParameters,
445
509
  body: IndexProductCategoryRequestToJSON(requestParameters['indexProductCategoryRequest']),
446
- }, initOverrides);
510
+ };
511
+ }
512
+
513
+ /**
514
+ * Auto-generated: indexProductCategory
515
+ */
516
+ async indexProductCategoryRaw(requestParameters: IndexProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductCategoryListResourceResponse>> {
517
+ const requestOptions = await this.indexProductCategoryRequestOpts(requestParameters);
518
+ const response = await this.request(requestOptions, initOverrides);
447
519
 
448
520
  return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductCategoryListResourceResponseFromJSON(jsonValue));
449
521
  }
@@ -457,9 +529,9 @@ export class ProductCategoryApi extends runtime.BaseAPI {
457
529
  }
458
530
 
459
531
  /**
460
- * Auto-generated: previewAutomationRulesProductCategory
532
+ * Creates request options for previewAutomationRulesProductCategory without sending the request
461
533
  */
462
- async previewAutomationRulesProductCategoryRaw(requestParameters: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PreviewAutomationRulesResource>> {
534
+ async previewAutomationRulesProductCategoryRequestOpts(requestParameters: PreviewAutomationRulesProductCategoryOperationRequest): Promise<runtime.RequestOpts> {
463
535
  const queryParameters: any = {};
464
536
 
465
537
  const headerParameters: runtime.HTTPHeaders = {};
@@ -469,13 +541,21 @@ export class ProductCategoryApi extends runtime.BaseAPI {
469
541
 
470
542
  let urlPath = `/admin-api/product-category/preview-automation-rules`;
471
543
 
472
- const response = await this.request({
544
+ return {
473
545
  path: urlPath,
474
546
  method: 'POST',
475
547
  headers: headerParameters,
476
548
  query: queryParameters,
477
549
  body: PreviewAutomationRulesProductCategoryRequestToJSON(requestParameters['previewAutomationRulesProductCategoryRequest']),
478
- }, initOverrides);
550
+ };
551
+ }
552
+
553
+ /**
554
+ * Auto-generated: previewAutomationRulesProductCategory
555
+ */
556
+ async previewAutomationRulesProductCategoryRaw(requestParameters: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PreviewAutomationRulesResource>> {
557
+ const requestOptions = await this.previewAutomationRulesProductCategoryRequestOpts(requestParameters);
558
+ const response = await this.request(requestOptions, initOverrides);
479
559
 
480
560
  return new runtime.JSONApiResponse(response, (jsonValue) => PreviewAutomationRulesResourceFromJSON(jsonValue));
481
561
  }
@@ -489,9 +569,9 @@ export class ProductCategoryApi extends runtime.BaseAPI {
489
569
  }
490
570
 
491
571
  /**
492
- * Auto-generated: showProductCategory
572
+ * Creates request options for showProductCategory without sending the request
493
573
  */
494
- async showProductCategoryRaw(requestParameters: ShowProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
574
+ async showProductCategoryRequestOpts(requestParameters: ShowProductCategoryRequest): Promise<runtime.RequestOpts> {
495
575
  if (requestParameters['productCategory'] == null) {
496
576
  throw new runtime.RequiredError(
497
577
  'productCategory',
@@ -507,12 +587,20 @@ export class ProductCategoryApi extends runtime.BaseAPI {
507
587
  let urlPath = `/admin-api/product-category/{productCategory}`;
508
588
  urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
509
589
 
510
- const response = await this.request({
590
+ return {
511
591
  path: urlPath,
512
592
  method: 'GET',
513
593
  headers: headerParameters,
514
594
  query: queryParameters,
515
- }, initOverrides);
595
+ };
596
+ }
597
+
598
+ /**
599
+ * Auto-generated: showProductCategory
600
+ */
601
+ async showProductCategoryRaw(requestParameters: ShowProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
602
+ const requestOptions = await this.showProductCategoryRequestOpts(requestParameters);
603
+ const response = await this.request(requestOptions, initOverrides);
516
604
 
517
605
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryResourceFromJSON(jsonValue));
518
606
  }
@@ -526,9 +614,9 @@ export class ProductCategoryApi extends runtime.BaseAPI {
526
614
  }
527
615
 
528
616
  /**
529
- * Auto-generated: storeProductCategory
617
+ * Creates request options for storeProductCategory without sending the request
530
618
  */
531
- async storeProductCategoryRaw(requestParameters: StoreProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
619
+ async storeProductCategoryRequestOpts(requestParameters: StoreProductCategoryOperationRequest): Promise<runtime.RequestOpts> {
532
620
  const queryParameters: any = {};
533
621
 
534
622
  const headerParameters: runtime.HTTPHeaders = {};
@@ -538,13 +626,21 @@ export class ProductCategoryApi extends runtime.BaseAPI {
538
626
 
539
627
  let urlPath = `/admin-api/product-category/create`;
540
628
 
541
- const response = await this.request({
629
+ return {
542
630
  path: urlPath,
543
631
  method: 'POST',
544
632
  headers: headerParameters,
545
633
  query: queryParameters,
546
634
  body: StoreProductCategoryRequestToJSON(requestParameters['storeProductCategoryRequest']),
547
- }, initOverrides);
635
+ };
636
+ }
637
+
638
+ /**
639
+ * Auto-generated: storeProductCategory
640
+ */
641
+ async storeProductCategoryRaw(requestParameters: StoreProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
642
+ const requestOptions = await this.storeProductCategoryRequestOpts(requestParameters);
643
+ const response = await this.request(requestOptions, initOverrides);
548
644
 
549
645
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryResourceFromJSON(jsonValue));
550
646
  }
@@ -558,9 +654,9 @@ export class ProductCategoryApi extends runtime.BaseAPI {
558
654
  }
559
655
 
560
656
  /**
561
- * Auto-generated: updateProductCategory
657
+ * Creates request options for updateProductCategory without sending the request
562
658
  */
563
- async updateProductCategoryRaw(requestParameters: UpdateProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
659
+ async updateProductCategoryRequestOpts(requestParameters: UpdateProductCategoryOperationRequest): Promise<runtime.RequestOpts> {
564
660
  if (requestParameters['productCategory'] == null) {
565
661
  throw new runtime.RequiredError(
566
662
  'productCategory',
@@ -578,13 +674,21 @@ export class ProductCategoryApi extends runtime.BaseAPI {
578
674
  let urlPath = `/admin-api/product-category/{productCategory}/update`;
579
675
  urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
580
676
 
581
- const response = await this.request({
677
+ return {
582
678
  path: urlPath,
583
679
  method: 'PUT',
584
680
  headers: headerParameters,
585
681
  query: queryParameters,
586
682
  body: UpdateProductCategoryRequestToJSON(requestParameters['updateProductCategoryRequest']),
587
- }, initOverrides);
683
+ };
684
+ }
685
+
686
+ /**
687
+ * Auto-generated: updateProductCategory
688
+ */
689
+ async updateProductCategoryRaw(requestParameters: UpdateProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
690
+ const requestOptions = await this.updateProductCategoryRequestOpts(requestParameters);
691
+ const response = await this.request(requestOptions, initOverrides);
588
692
 
589
693
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryResourceFromJSON(jsonValue));
590
694
  }