@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
@@ -176,9 +176,9 @@ export interface UpdateProductChildOperationRequest {
176
176
  export class ProductApi extends runtime.BaseAPI {
177
177
 
178
178
  /**
179
- * Auto-generated: attachAccessoriesProductChild
179
+ * Creates request options for attachAccessoriesProductChild without sending the request
180
180
  */
181
- async attachAccessoriesProductChildRaw(requestParameters: AttachAccessoriesProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
181
+ async attachAccessoriesProductChildRequestOpts(requestParameters: AttachAccessoriesProductChildOperationRequest): Promise<runtime.RequestOpts> {
182
182
  if (requestParameters['productChild'] == null) {
183
183
  throw new runtime.RequiredError(
184
184
  'productChild',
@@ -196,13 +196,21 @@ export class ProductApi extends runtime.BaseAPI {
196
196
  let urlPath = `/admin-api/product/children/{productChild}/accessory/attach`;
197
197
  urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
198
198
 
199
- const response = await this.request({
199
+ return {
200
200
  path: urlPath,
201
201
  method: 'POST',
202
202
  headers: headerParameters,
203
203
  query: queryParameters,
204
204
  body: AttachAccessoriesProductChildRequestToJSON(requestParameters['attachAccessoriesProductChildRequest']),
205
- }, initOverrides);
205
+ };
206
+ }
207
+
208
+ /**
209
+ * Auto-generated: attachAccessoriesProductChild
210
+ */
211
+ async attachAccessoriesProductChildRaw(requestParameters: AttachAccessoriesProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
212
+ const requestOptions = await this.attachAccessoriesProductChildRequestOpts(requestParameters);
213
+ const response = await this.request(requestOptions, initOverrides);
206
214
 
207
215
  return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildListResourceResponseFromJSON(jsonValue));
208
216
  }
@@ -216,9 +224,9 @@ export class ProductApi extends runtime.BaseAPI {
216
224
  }
217
225
 
218
226
  /**
219
- * Auto-generated: attachCompatibleProductsProductChild
227
+ * Creates request options for attachCompatibleProductsProductChild without sending the request
220
228
  */
221
- async attachCompatibleProductsProductChildRaw(requestParameters: AttachCompatibleProductsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
229
+ async attachCompatibleProductsProductChildRequestOpts(requestParameters: AttachCompatibleProductsProductChildRequest): Promise<runtime.RequestOpts> {
222
230
  if (requestParameters['productChild'] == null) {
223
231
  throw new runtime.RequiredError(
224
232
  'productChild',
@@ -236,13 +244,21 @@ export class ProductApi extends runtime.BaseAPI {
236
244
  let urlPath = `/admin-api/product/children/{productChild}/compatible-product/attach`;
237
245
  urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
238
246
 
239
- const response = await this.request({
247
+ return {
240
248
  path: urlPath,
241
249
  method: 'POST',
242
250
  headers: headerParameters,
243
251
  query: queryParameters,
244
252
  body: AttachAccessoriesProductChildRequestToJSON(requestParameters['attachAccessoriesProductChildRequest']),
245
- }, initOverrides);
253
+ };
254
+ }
255
+
256
+ /**
257
+ * Auto-generated: attachCompatibleProductsProductChild
258
+ */
259
+ async attachCompatibleProductsProductChildRaw(requestParameters: AttachCompatibleProductsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
260
+ const requestOptions = await this.attachCompatibleProductsProductChildRequestOpts(requestParameters);
261
+ const response = await this.request(requestOptions, initOverrides);
246
262
 
247
263
  return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildListResourceResponseFromJSON(jsonValue));
248
264
  }
@@ -256,9 +272,9 @@ export class ProductApi extends runtime.BaseAPI {
256
272
  }
257
273
 
258
274
  /**
259
- * Auto-generated: attachDocumentsProductChild
275
+ * Creates request options for attachDocumentsProductChild without sending the request
260
276
  */
261
- async attachDocumentsProductChildRaw(requestParameters: AttachDocumentsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>> {
277
+ async attachDocumentsProductChildRequestOpts(requestParameters: AttachDocumentsProductChildOperationRequest): Promise<runtime.RequestOpts> {
262
278
  if (requestParameters['productChild'] == null) {
263
279
  throw new runtime.RequiredError(
264
280
  'productChild',
@@ -276,13 +292,21 @@ export class ProductApi extends runtime.BaseAPI {
276
292
  let urlPath = `/admin-api/product/children/{productChild}/attach-documents`;
277
293
  urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
278
294
 
279
- const response = await this.request({
295
+ return {
280
296
  path: urlPath,
281
297
  method: 'POST',
282
298
  headers: headerParameters,
283
299
  query: queryParameters,
284
300
  body: AttachDocumentsProductChildRequestToJSON(requestParameters['attachDocumentsProductChildRequest']),
285
- }, initOverrides);
301
+ };
302
+ }
303
+
304
+ /**
305
+ * Auto-generated: attachDocumentsProductChild
306
+ */
307
+ async attachDocumentsProductChildRaw(requestParameters: AttachDocumentsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>> {
308
+ const requestOptions = await this.attachDocumentsProductChildRequestOpts(requestParameters);
309
+ const response = await this.request(requestOptions, initOverrides);
286
310
 
287
311
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildResourceFromJSON(jsonValue));
288
312
  }
@@ -296,9 +320,9 @@ export class ProductApi extends runtime.BaseAPI {
296
320
  }
297
321
 
298
322
  /**
299
- * Auto-generated: destroyProduct
323
+ * Creates request options for destroyProduct without sending the request
300
324
  */
301
- async destroyProductRaw(requestParameters: DestroyProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
325
+ async destroyProductRequestOpts(requestParameters: DestroyProductRequest): Promise<runtime.RequestOpts> {
302
326
  if (requestParameters['product'] == null) {
303
327
  throw new runtime.RequiredError(
304
328
  'product',
@@ -314,12 +338,20 @@ export class ProductApi extends runtime.BaseAPI {
314
338
  let urlPath = `/admin-api/product/parent/{product}/delete`;
315
339
  urlPath = urlPath.replace(`{${"product"}}`, encodeURIComponent(String(requestParameters['product'])));
316
340
 
317
- const response = await this.request({
341
+ return {
318
342
  path: urlPath,
319
343
  method: 'DELETE',
320
344
  headers: headerParameters,
321
345
  query: queryParameters,
322
- }, initOverrides);
346
+ };
347
+ }
348
+
349
+ /**
350
+ * Auto-generated: destroyProduct
351
+ */
352
+ async destroyProductRaw(requestParameters: DestroyProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
353
+ const requestOptions = await this.destroyProductRequestOpts(requestParameters);
354
+ const response = await this.request(requestOptions, initOverrides);
323
355
 
324
356
  return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
325
357
  }
@@ -333,9 +365,9 @@ export class ProductApi extends runtime.BaseAPI {
333
365
  }
334
366
 
335
367
  /**
336
- * Auto-generated: destroyProductChild
368
+ * Creates request options for destroyProductChild without sending the request
337
369
  */
338
- async destroyProductChildRaw(requestParameters: DestroyProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
370
+ async destroyProductChildRequestOpts(requestParameters: DestroyProductChildRequest): Promise<runtime.RequestOpts> {
339
371
  if (requestParameters['productChild'] == null) {
340
372
  throw new runtime.RequiredError(
341
373
  'productChild',
@@ -351,12 +383,20 @@ export class ProductApi extends runtime.BaseAPI {
351
383
  let urlPath = `/admin-api/product/children/{productChild}/delete`;
352
384
  urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
353
385
 
354
- const response = await this.request({
386
+ return {
355
387
  path: urlPath,
356
388
  method: 'DELETE',
357
389
  headers: headerParameters,
358
390
  query: queryParameters,
359
- }, initOverrides);
391
+ };
392
+ }
393
+
394
+ /**
395
+ * Auto-generated: destroyProductChild
396
+ */
397
+ async destroyProductChildRaw(requestParameters: DestroyProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
398
+ const requestOptions = await this.destroyProductChildRequestOpts(requestParameters);
399
+ const response = await this.request(requestOptions, initOverrides);
360
400
 
361
401
  return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
362
402
  }
@@ -370,9 +410,9 @@ export class ProductApi extends runtime.BaseAPI {
370
410
  }
371
411
 
372
412
  /**
373
- * Auto-generated: detachAccessoryProductChild
413
+ * Creates request options for detachAccessoryProductChild without sending the request
374
414
  */
375
- async detachAccessoryProductChildRaw(requestParameters: DetachAccessoryProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
415
+ async detachAccessoryProductChildRequestOpts(requestParameters: DetachAccessoryProductChildRequest): Promise<runtime.RequestOpts> {
376
416
  if (requestParameters['productChild'] == null) {
377
417
  throw new runtime.RequiredError(
378
418
  'productChild',
@@ -396,12 +436,20 @@ export class ProductApi extends runtime.BaseAPI {
396
436
  urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
397
437
  urlPath = urlPath.replace(`{${"accessory"}}`, encodeURIComponent(String(requestParameters['accessory'])));
398
438
 
399
- const response = await this.request({
439
+ return {
400
440
  path: urlPath,
401
441
  method: 'DELETE',
402
442
  headers: headerParameters,
403
443
  query: queryParameters,
404
- }, initOverrides);
444
+ };
445
+ }
446
+
447
+ /**
448
+ * Auto-generated: detachAccessoryProductChild
449
+ */
450
+ async detachAccessoryProductChildRaw(requestParameters: DetachAccessoryProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
451
+ const requestOptions = await this.detachAccessoryProductChildRequestOpts(requestParameters);
452
+ const response = await this.request(requestOptions, initOverrides);
405
453
 
406
454
  return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildListResourceResponseFromJSON(jsonValue));
407
455
  }
@@ -415,9 +463,9 @@ export class ProductApi extends runtime.BaseAPI {
415
463
  }
416
464
 
417
465
  /**
418
- * Auto-generated: detachCompatibleProductProductChild
466
+ * Creates request options for detachCompatibleProductProductChild without sending the request
419
467
  */
420
- async detachCompatibleProductProductChildRaw(requestParameters: DetachCompatibleProductProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
468
+ async detachCompatibleProductProductChildRequestOpts(requestParameters: DetachCompatibleProductProductChildRequest): Promise<runtime.RequestOpts> {
421
469
  if (requestParameters['productChild'] == null) {
422
470
  throw new runtime.RequiredError(
423
471
  'productChild',
@@ -441,12 +489,20 @@ export class ProductApi extends runtime.BaseAPI {
441
489
  urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
442
490
  urlPath = urlPath.replace(`{${"compatibleProduct"}}`, encodeURIComponent(String(requestParameters['compatibleProduct'])));
443
491
 
444
- const response = await this.request({
492
+ return {
445
493
  path: urlPath,
446
494
  method: 'DELETE',
447
495
  headers: headerParameters,
448
496
  query: queryParameters,
449
- }, initOverrides);
497
+ };
498
+ }
499
+
500
+ /**
501
+ * Auto-generated: detachCompatibleProductProductChild
502
+ */
503
+ async detachCompatibleProductProductChildRaw(requestParameters: DetachCompatibleProductProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
504
+ const requestOptions = await this.detachCompatibleProductProductChildRequestOpts(requestParameters);
505
+ const response = await this.request(requestOptions, initOverrides);
450
506
 
451
507
  return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildListResourceResponseFromJSON(jsonValue));
452
508
  }
@@ -460,9 +516,9 @@ export class ProductApi extends runtime.BaseAPI {
460
516
  }
461
517
 
462
518
  /**
463
- * Auto-generated: detachDocumentsProductChild
519
+ * Creates request options for detachDocumentsProductChild without sending the request
464
520
  */
465
- async detachDocumentsProductChildRaw(requestParameters: DetachDocumentsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>> {
521
+ async detachDocumentsProductChildRequestOpts(requestParameters: DetachDocumentsProductChildOperationRequest): Promise<runtime.RequestOpts> {
466
522
  if (requestParameters['productChild'] == null) {
467
523
  throw new runtime.RequiredError(
468
524
  'productChild',
@@ -480,13 +536,21 @@ export class ProductApi extends runtime.BaseAPI {
480
536
  let urlPath = `/admin-api/product/children/{productChild}/detach-documents`;
481
537
  urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
482
538
 
483
- const response = await this.request({
539
+ return {
484
540
  path: urlPath,
485
541
  method: 'POST',
486
542
  headers: headerParameters,
487
543
  query: queryParameters,
488
544
  body: DetachDocumentsProductChildRequestToJSON(requestParameters['detachDocumentsProductChildRequest']),
489
- }, initOverrides);
545
+ };
546
+ }
547
+
548
+ /**
549
+ * Auto-generated: detachDocumentsProductChild
550
+ */
551
+ async detachDocumentsProductChildRaw(requestParameters: DetachDocumentsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>> {
552
+ const requestOptions = await this.detachDocumentsProductChildRequestOpts(requestParameters);
553
+ const response = await this.request(requestOptions, initOverrides);
490
554
 
491
555
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildResourceFromJSON(jsonValue));
492
556
  }
@@ -500,9 +564,9 @@ export class ProductApi extends runtime.BaseAPI {
500
564
  }
501
565
 
502
566
  /**
503
- * Auto-generated: getAccessoriesProductChild
567
+ * Creates request options for getAccessoriesProductChild without sending the request
504
568
  */
505
- async getAccessoriesProductChildRaw(requestParameters: GetAccessoriesProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
569
+ async getAccessoriesProductChildRequestOpts(requestParameters: GetAccessoriesProductChildRequest): Promise<runtime.RequestOpts> {
506
570
  if (requestParameters['productChild'] == null) {
507
571
  throw new runtime.RequiredError(
508
572
  'productChild',
@@ -520,13 +584,21 @@ export class ProductApi extends runtime.BaseAPI {
520
584
  let urlPath = `/admin-api/product/children/{productChild}/accessory/list`;
521
585
  urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
522
586
 
523
- const response = await this.request({
587
+ return {
524
588
  path: urlPath,
525
589
  method: 'POST',
526
590
  headers: headerParameters,
527
591
  query: queryParameters,
528
592
  body: IndexProductChildRequestToJSON(requestParameters['indexProductChildRequest']),
529
- }, initOverrides);
593
+ };
594
+ }
595
+
596
+ /**
597
+ * Auto-generated: getAccessoriesProductChild
598
+ */
599
+ async getAccessoriesProductChildRaw(requestParameters: GetAccessoriesProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
600
+ const requestOptions = await this.getAccessoriesProductChildRequestOpts(requestParameters);
601
+ const response = await this.request(requestOptions, initOverrides);
530
602
 
531
603
  return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildListResourceResponseFromJSON(jsonValue));
532
604
  }
@@ -540,9 +612,9 @@ export class ProductApi extends runtime.BaseAPI {
540
612
  }
541
613
 
542
614
  /**
543
- * Auto-generated: getAllProduct
615
+ * Creates request options for getAllProduct without sending the request
544
616
  */
545
- async getAllProductRaw(requestParameters: GetAllProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductLiteResourceArrayResponse>> {
617
+ async getAllProductRequestOpts(requestParameters: GetAllProductOperationRequest): Promise<runtime.RequestOpts> {
546
618
  const queryParameters: any = {};
547
619
 
548
620
  const headerParameters: runtime.HTTPHeaders = {};
@@ -552,13 +624,21 @@ export class ProductApi extends runtime.BaseAPI {
552
624
 
553
625
  let urlPath = `/admin-api/product/parent/all`;
554
626
 
555
- const response = await this.request({
627
+ return {
556
628
  path: urlPath,
557
629
  method: 'POST',
558
630
  headers: headerParameters,
559
631
  query: queryParameters,
560
632
  body: GetAllProductRequestToJSON(requestParameters['getAllProductRequest']),
561
- }, initOverrides);
633
+ };
634
+ }
635
+
636
+ /**
637
+ * Auto-generated: getAllProduct
638
+ */
639
+ async getAllProductRaw(requestParameters: GetAllProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductLiteResourceArrayResponse>> {
640
+ const requestOptions = await this.getAllProductRequestOpts(requestParameters);
641
+ const response = await this.request(requestOptions, initOverrides);
562
642
 
563
643
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductLiteResourceArrayResponseFromJSON(jsonValue));
564
644
  }
@@ -572,9 +652,9 @@ export class ProductApi extends runtime.BaseAPI {
572
652
  }
573
653
 
574
654
  /**
575
- * Auto-generated: getAllProductChild
655
+ * Creates request options for getAllProductChild without sending the request
576
656
  */
577
- async getAllProductChildRaw(requestParameters: GetAllProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildLiteResourceArrayResponse>> {
657
+ async getAllProductChildRequestOpts(requestParameters: GetAllProductChildOperationRequest): Promise<runtime.RequestOpts> {
578
658
  const queryParameters: any = {};
579
659
 
580
660
  const headerParameters: runtime.HTTPHeaders = {};
@@ -584,13 +664,21 @@ export class ProductApi extends runtime.BaseAPI {
584
664
 
585
665
  let urlPath = `/admin-api/product/children/all`;
586
666
 
587
- const response = await this.request({
667
+ return {
588
668
  path: urlPath,
589
669
  method: 'POST',
590
670
  headers: headerParameters,
591
671
  query: queryParameters,
592
672
  body: GetAllProductChildRequestToJSON(requestParameters['getAllProductChildRequest']),
593
- }, initOverrides);
673
+ };
674
+ }
675
+
676
+ /**
677
+ * Auto-generated: getAllProductChild
678
+ */
679
+ async getAllProductChildRaw(requestParameters: GetAllProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildLiteResourceArrayResponse>> {
680
+ const requestOptions = await this.getAllProductChildRequestOpts(requestParameters);
681
+ const response = await this.request(requestOptions, initOverrides);
594
682
 
595
683
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildLiteResourceArrayResponseFromJSON(jsonValue));
596
684
  }
@@ -604,9 +692,9 @@ export class ProductApi extends runtime.BaseAPI {
604
692
  }
605
693
 
606
694
  /**
607
- * Auto-generated: getCompatibleProductsProductChild
695
+ * Creates request options for getCompatibleProductsProductChild without sending the request
608
696
  */
609
- async getCompatibleProductsProductChildRaw(requestParameters: GetCompatibleProductsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
697
+ async getCompatibleProductsProductChildRequestOpts(requestParameters: GetCompatibleProductsProductChildRequest): Promise<runtime.RequestOpts> {
610
698
  if (requestParameters['productChild'] == null) {
611
699
  throw new runtime.RequiredError(
612
700
  'productChild',
@@ -624,13 +712,21 @@ export class ProductApi extends runtime.BaseAPI {
624
712
  let urlPath = `/admin-api/product/children/{productChild}/compatible-product/list`;
625
713
  urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
626
714
 
627
- const response = await this.request({
715
+ return {
628
716
  path: urlPath,
629
717
  method: 'POST',
630
718
  headers: headerParameters,
631
719
  query: queryParameters,
632
720
  body: IndexProductChildRequestToJSON(requestParameters['indexProductChildRequest']),
633
- }, initOverrides);
721
+ };
722
+ }
723
+
724
+ /**
725
+ * Auto-generated: getCompatibleProductsProductChild
726
+ */
727
+ async getCompatibleProductsProductChildRaw(requestParameters: GetCompatibleProductsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
728
+ const requestOptions = await this.getCompatibleProductsProductChildRequestOpts(requestParameters);
729
+ const response = await this.request(requestOptions, initOverrides);
634
730
 
635
731
  return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildListResourceResponseFromJSON(jsonValue));
636
732
  }
@@ -644,9 +740,9 @@ export class ProductApi extends runtime.BaseAPI {
644
740
  }
645
741
 
646
742
  /**
647
- * Auto-generated: indexProduct
743
+ * Creates request options for indexProduct without sending the request
648
744
  */
649
- async indexProductRaw(requestParameters: IndexProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductListResourceResponse>> {
745
+ async indexProductRequestOpts(requestParameters: IndexProductOperationRequest): Promise<runtime.RequestOpts> {
650
746
  const queryParameters: any = {};
651
747
 
652
748
  const headerParameters: runtime.HTTPHeaders = {};
@@ -656,13 +752,21 @@ export class ProductApi extends runtime.BaseAPI {
656
752
 
657
753
  let urlPath = `/admin-api/product/parent/list`;
658
754
 
659
- const response = await this.request({
755
+ return {
660
756
  path: urlPath,
661
757
  method: 'POST',
662
758
  headers: headerParameters,
663
759
  query: queryParameters,
664
760
  body: IndexProductRequestToJSON(requestParameters['indexProductRequest']),
665
- }, initOverrides);
761
+ };
762
+ }
763
+
764
+ /**
765
+ * Auto-generated: indexProduct
766
+ */
767
+ async indexProductRaw(requestParameters: IndexProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductListResourceResponse>> {
768
+ const requestOptions = await this.indexProductRequestOpts(requestParameters);
769
+ const response = await this.request(requestOptions, initOverrides);
666
770
 
667
771
  return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductListResourceResponseFromJSON(jsonValue));
668
772
  }
@@ -676,9 +780,9 @@ export class ProductApi extends runtime.BaseAPI {
676
780
  }
677
781
 
678
782
  /**
679
- * Auto-generated: indexProductChild
783
+ * Creates request options for indexProductChild without sending the request
680
784
  */
681
- async indexProductChildRaw(requestParameters: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
785
+ async indexProductChildRequestOpts(requestParameters: IndexProductChildOperationRequest): Promise<runtime.RequestOpts> {
682
786
  const queryParameters: any = {};
683
787
 
684
788
  const headerParameters: runtime.HTTPHeaders = {};
@@ -688,13 +792,21 @@ export class ProductApi extends runtime.BaseAPI {
688
792
 
689
793
  let urlPath = `/admin-api/product/children/list`;
690
794
 
691
- const response = await this.request({
795
+ return {
692
796
  path: urlPath,
693
797
  method: 'POST',
694
798
  headers: headerParameters,
695
799
  query: queryParameters,
696
800
  body: IndexProductChildRequestToJSON(requestParameters['indexProductChildRequest']),
697
- }, initOverrides);
801
+ };
802
+ }
803
+
804
+ /**
805
+ * Auto-generated: indexProductChild
806
+ */
807
+ async indexProductChildRaw(requestParameters: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
808
+ const requestOptions = await this.indexProductChildRequestOpts(requestParameters);
809
+ const response = await this.request(requestOptions, initOverrides);
698
810
 
699
811
  return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildListResourceResponseFromJSON(jsonValue));
700
812
  }
@@ -708,9 +820,9 @@ export class ProductApi extends runtime.BaseAPI {
708
820
  }
709
821
 
710
822
  /**
711
- * Auto-generated: showAssetsProductChild
823
+ * Creates request options for showAssetsProductChild without sending the request
712
824
  */
713
- async showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetResourceArrayResponse>> {
825
+ async showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildRequest): Promise<runtime.RequestOpts> {
714
826
  if (requestParameters['productChild'] == null) {
715
827
  throw new runtime.RequiredError(
716
828
  'productChild',
@@ -726,12 +838,20 @@ export class ProductApi extends runtime.BaseAPI {
726
838
  let urlPath = `/admin-api/product/children/{productChild}/assets`;
727
839
  urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
728
840
 
729
- const response = await this.request({
841
+ return {
730
842
  path: urlPath,
731
843
  method: 'GET',
732
844
  headers: headerParameters,
733
845
  query: queryParameters,
734
- }, initOverrides);
846
+ };
847
+ }
848
+
849
+ /**
850
+ * Auto-generated: showAssetsProductChild
851
+ */
852
+ async showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetResourceArrayResponse>> {
853
+ const requestOptions = await this.showAssetsProductChildRequestOpts(requestParameters);
854
+ const response = await this.request(requestOptions, initOverrides);
735
855
 
736
856
  return new runtime.JSONApiResponse(response, (jsonValue) => AssetResourceArrayResponseFromJSON(jsonValue));
737
857
  }
@@ -745,9 +865,9 @@ export class ProductApi extends runtime.BaseAPI {
745
865
  }
746
866
 
747
867
  /**
748
- * Auto-generated: showProduct
868
+ * Creates request options for showProduct without sending the request
749
869
  */
750
- async showProductRaw(requestParameters: ShowProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductResource>> {
870
+ async showProductRequestOpts(requestParameters: ShowProductRequest): Promise<runtime.RequestOpts> {
751
871
  if (requestParameters['product'] == null) {
752
872
  throw new runtime.RequiredError(
753
873
  'product',
@@ -763,12 +883,20 @@ export class ProductApi extends runtime.BaseAPI {
763
883
  let urlPath = `/admin-api/product/parent/{product}`;
764
884
  urlPath = urlPath.replace(`{${"product"}}`, encodeURIComponent(String(requestParameters['product'])));
765
885
 
766
- const response = await this.request({
886
+ return {
767
887
  path: urlPath,
768
888
  method: 'GET',
769
889
  headers: headerParameters,
770
890
  query: queryParameters,
771
- }, initOverrides);
891
+ };
892
+ }
893
+
894
+ /**
895
+ * Auto-generated: showProduct
896
+ */
897
+ async showProductRaw(requestParameters: ShowProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductResource>> {
898
+ const requestOptions = await this.showProductRequestOpts(requestParameters);
899
+ const response = await this.request(requestOptions, initOverrides);
772
900
 
773
901
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductResourceFromJSON(jsonValue));
774
902
  }
@@ -782,9 +910,9 @@ export class ProductApi extends runtime.BaseAPI {
782
910
  }
783
911
 
784
912
  /**
785
- * Auto-generated: showProductChild
913
+ * Creates request options for showProductChild without sending the request
786
914
  */
787
- async showProductChildRaw(requestParameters: ShowProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>> {
915
+ async showProductChildRequestOpts(requestParameters: ShowProductChildRequest): Promise<runtime.RequestOpts> {
788
916
  if (requestParameters['productChild'] == null) {
789
917
  throw new runtime.RequiredError(
790
918
  'productChild',
@@ -800,12 +928,20 @@ export class ProductApi extends runtime.BaseAPI {
800
928
  let urlPath = `/admin-api/product/children/{productChild}`;
801
929
  urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
802
930
 
803
- const response = await this.request({
931
+ return {
804
932
  path: urlPath,
805
933
  method: 'GET',
806
934
  headers: headerParameters,
807
935
  query: queryParameters,
808
- }, initOverrides);
936
+ };
937
+ }
938
+
939
+ /**
940
+ * Auto-generated: showProductChild
941
+ */
942
+ async showProductChildRaw(requestParameters: ShowProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>> {
943
+ const requestOptions = await this.showProductChildRequestOpts(requestParameters);
944
+ const response = await this.request(requestOptions, initOverrides);
809
945
 
810
946
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildResourceFromJSON(jsonValue));
811
947
  }
@@ -819,9 +955,9 @@ export class ProductApi extends runtime.BaseAPI {
819
955
  }
820
956
 
821
957
  /**
822
- * Auto-generated: storeProduct
958
+ * Creates request options for storeProduct without sending the request
823
959
  */
824
- async storeProductRaw(requestParameters: StoreProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductResource>> {
960
+ async storeProductRequestOpts(requestParameters: StoreProductOperationRequest): Promise<runtime.RequestOpts> {
825
961
  const queryParameters: any = {};
826
962
 
827
963
  const headerParameters: runtime.HTTPHeaders = {};
@@ -831,13 +967,21 @@ export class ProductApi extends runtime.BaseAPI {
831
967
 
832
968
  let urlPath = `/admin-api/product/parent/create`;
833
969
 
834
- const response = await this.request({
970
+ return {
835
971
  path: urlPath,
836
972
  method: 'POST',
837
973
  headers: headerParameters,
838
974
  query: queryParameters,
839
975
  body: StoreProductRequestToJSON(requestParameters['storeProductRequest']),
840
- }, initOverrides);
976
+ };
977
+ }
978
+
979
+ /**
980
+ * Auto-generated: storeProduct
981
+ */
982
+ async storeProductRaw(requestParameters: StoreProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductResource>> {
983
+ const requestOptions = await this.storeProductRequestOpts(requestParameters);
984
+ const response = await this.request(requestOptions, initOverrides);
841
985
 
842
986
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductResourceFromJSON(jsonValue));
843
987
  }
@@ -851,9 +995,9 @@ export class ProductApi extends runtime.BaseAPI {
851
995
  }
852
996
 
853
997
  /**
854
- * Auto-generated: storeProductChild
998
+ * Creates request options for storeProductChild without sending the request
855
999
  */
856
- async storeProductChildRaw(requestParameters: StoreProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>> {
1000
+ async storeProductChildRequestOpts(requestParameters: StoreProductChildOperationRequest): Promise<runtime.RequestOpts> {
857
1001
  const queryParameters: any = {};
858
1002
 
859
1003
  const headerParameters: runtime.HTTPHeaders = {};
@@ -863,13 +1007,21 @@ export class ProductApi extends runtime.BaseAPI {
863
1007
 
864
1008
  let urlPath = `/admin-api/product/children/create`;
865
1009
 
866
- const response = await this.request({
1010
+ return {
867
1011
  path: urlPath,
868
1012
  method: 'POST',
869
1013
  headers: headerParameters,
870
1014
  query: queryParameters,
871
1015
  body: StoreProductChildRequestToJSON(requestParameters['storeProductChildRequest']),
872
- }, initOverrides);
1016
+ };
1017
+ }
1018
+
1019
+ /**
1020
+ * Auto-generated: storeProductChild
1021
+ */
1022
+ async storeProductChildRaw(requestParameters: StoreProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>> {
1023
+ const requestOptions = await this.storeProductChildRequestOpts(requestParameters);
1024
+ const response = await this.request(requestOptions, initOverrides);
873
1025
 
874
1026
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildResourceFromJSON(jsonValue));
875
1027
  }
@@ -883,9 +1035,9 @@ export class ProductApi extends runtime.BaseAPI {
883
1035
  }
884
1036
 
885
1037
  /**
886
- * Auto-generated: updateProduct
1038
+ * Creates request options for updateProduct without sending the request
887
1039
  */
888
- async updateProductRaw(requestParameters: UpdateProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductResource>> {
1040
+ async updateProductRequestOpts(requestParameters: UpdateProductOperationRequest): Promise<runtime.RequestOpts> {
889
1041
  if (requestParameters['product'] == null) {
890
1042
  throw new runtime.RequiredError(
891
1043
  'product',
@@ -903,13 +1055,21 @@ export class ProductApi extends runtime.BaseAPI {
903
1055
  let urlPath = `/admin-api/product/parent/{product}/update`;
904
1056
  urlPath = urlPath.replace(`{${"product"}}`, encodeURIComponent(String(requestParameters['product'])));
905
1057
 
906
- const response = await this.request({
1058
+ return {
907
1059
  path: urlPath,
908
1060
  method: 'PUT',
909
1061
  headers: headerParameters,
910
1062
  query: queryParameters,
911
1063
  body: UpdateProductRequestToJSON(requestParameters['updateProductRequest']),
912
- }, initOverrides);
1064
+ };
1065
+ }
1066
+
1067
+ /**
1068
+ * Auto-generated: updateProduct
1069
+ */
1070
+ async updateProductRaw(requestParameters: UpdateProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductResource>> {
1071
+ const requestOptions = await this.updateProductRequestOpts(requestParameters);
1072
+ const response = await this.request(requestOptions, initOverrides);
913
1073
 
914
1074
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductResourceFromJSON(jsonValue));
915
1075
  }
@@ -923,9 +1083,9 @@ export class ProductApi extends runtime.BaseAPI {
923
1083
  }
924
1084
 
925
1085
  /**
926
- * Auto-generated: updateProductChild
1086
+ * Creates request options for updateProductChild without sending the request
927
1087
  */
928
- async updateProductChildRaw(requestParameters: UpdateProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>> {
1088
+ async updateProductChildRequestOpts(requestParameters: UpdateProductChildOperationRequest): Promise<runtime.RequestOpts> {
929
1089
  if (requestParameters['productChild'] == null) {
930
1090
  throw new runtime.RequiredError(
931
1091
  'productChild',
@@ -943,13 +1103,21 @@ export class ProductApi extends runtime.BaseAPI {
943
1103
  let urlPath = `/admin-api/product/children/{productChild}/update`;
944
1104
  urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
945
1105
 
946
- const response = await this.request({
1106
+ return {
947
1107
  path: urlPath,
948
1108
  method: 'PUT',
949
1109
  headers: headerParameters,
950
1110
  query: queryParameters,
951
1111
  body: UpdateProductChildRequestToJSON(requestParameters['updateProductChildRequest']),
952
- }, initOverrides);
1112
+ };
1113
+ }
1114
+
1115
+ /**
1116
+ * Auto-generated: updateProductChild
1117
+ */
1118
+ async updateProductChildRaw(requestParameters: UpdateProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>> {
1119
+ const requestOptions = await this.updateProductChildRequestOpts(requestParameters);
1120
+ const response = await this.request(requestOptions, initOverrides);
953
1121
 
954
1122
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildResourceFromJSON(jsonValue));
955
1123
  }