@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.
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/dist/apis/AssetApi.d.ts +16 -0
- package/dist/apis/AssetApi.js +110 -58
- package/dist/apis/AttributeApi.d.ts +60 -0
- package/dist/apis/AttributeApi.js +424 -229
- package/dist/apis/DefinitionApi.d.ts +24 -0
- package/dist/apis/DefinitionApi.js +164 -86
- package/dist/apis/DocumentApi.d.ts +36 -0
- package/dist/apis/DocumentApi.js +250 -133
- package/dist/apis/ExternalApiLogApi.d.ts +4 -0
- package/dist/apis/ExternalApiLogApi.js +26 -13
- package/dist/apis/GoogleCategoryApi.d.ts +4 -0
- package/dist/apis/GoogleCategoryApi.js +26 -13
- package/dist/apis/OverlayTemplateApi.d.ts +48 -0
- package/dist/apis/OverlayTemplateApi.js +340 -184
- package/dist/apis/ProductApi.d.ts +84 -0
- package/dist/apis/ProductApi.js +600 -327
- package/dist/apis/ProductCategoryApi.d.ts +52 -0
- package/dist/apis/ProductCategoryApi.js +364 -195
- package/dist/apis/ProductTypeApi.d.ts +36 -0
- package/dist/apis/ProductTypeApi.js +256 -139
- package/dist/apis/SiteApi.d.ts +32 -0
- package/dist/apis/SiteApi.js +220 -116
- package/dist/apis/SupplierApi.d.ts +32 -0
- package/dist/apis/SupplierApi.js +234 -130
- package/dist/apis/TagApi.d.ts +32 -0
- package/dist/apis/TagApi.js +226 -122
- package/dist/models/AttachAttributeProductTypeRequest.d.ts +1 -1
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -1
- package/dist/models/AttachProductTypeAttributeRequest.d.ts +1 -1
- package/dist/models/DetachAssetableOverlayTemplateRequest.d.ts +1 -1
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -1
- package/dist/models/GetAllAttributeRequest.d.ts +3 -3
- package/dist/models/GetAllDefinitionRequest.d.ts +2 -2
- package/dist/models/GetAllDocumentRequest.d.ts +3 -3
- package/dist/models/GetAllGoogleCategoryRequest.d.ts +2 -2
- package/dist/models/GetAllOverlayTemplateRequest.d.ts +3 -3
- package/dist/models/GetAllProductCategoryRequest.d.ts +3 -3
- package/dist/models/GetAllProductChildRequest.d.ts +3 -3
- package/dist/models/GetAllProductRequest.d.ts +3 -3
- package/dist/models/GetAllProductTypeRequest.d.ts +3 -3
- package/dist/models/GetAllSupplierRequest.d.ts +3 -3
- package/dist/models/IndexAttributeRequest.d.ts +3 -3
- package/dist/models/IndexAttributeValueRequest.d.ts +3 -3
- package/dist/models/IndexDefinitionRequest.d.ts +2 -2
- package/dist/models/IndexDocumentRequest.d.ts +3 -3
- package/dist/models/IndexExternalApiLogRequest.d.ts +2 -2
- package/dist/models/IndexOverlayTemplateRequest.d.ts +3 -3
- package/dist/models/IndexProductCategoryRequest.d.ts +3 -3
- package/dist/models/IndexProductChildRequest.d.ts +3 -3
- package/dist/models/IndexProductRequest.d.ts +3 -3
- package/dist/models/IndexProductTypeRequest.d.ts +3 -3
- package/dist/models/IndexSiteNotificationRequest.d.ts +2 -2
- package/dist/models/IndexSiteRequest.d.ts +2 -2
- package/dist/models/IndexSupplierRequest.d.ts +3 -3
- package/dist/models/IndexTagRequest.d.ts +3 -3
- package/dist/models/PreviewAutomationRulesProductCategoryRequest.d.ts +1 -1
- package/dist/models/StoreAssetForAssetableRequest.d.ts +1 -1
- package/dist/models/StoreAttributeRequest.d.ts +1 -1
- package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +1 -1
- package/dist/models/StoreProductCategoryRequest.d.ts +1 -1
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +2 -2
- package/dist/models/StoreTagRequest.d.ts +1 -1
- package/dist/models/UpdateAttributeRequest.d.ts +1 -1
- package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +1 -1
- package/dist/models/UpdateProductCategoryRequest.d.ts +1 -1
- package/dist/models/UpdateSiteRequest.d.ts +1 -1
- package/dist/models/UpdateTagRequest.d.ts +1 -1
- package/package.json +1 -1
- package/src/apis/AssetApi.ts +48 -16
- package/src/apis/AttributeApi.ts +180 -60
- package/src/apis/DefinitionApi.ts +72 -24
- package/src/apis/DocumentApi.ts +108 -36
- package/src/apis/ExternalApiLogApi.ts +12 -4
- package/src/apis/GoogleCategoryApi.ts +12 -4
- package/src/apis/OverlayTemplateApi.ts +144 -48
- package/src/apis/ProductApi.ts +252 -84
- package/src/apis/ProductCategoryApi.ts +156 -52
- package/src/apis/ProductTypeApi.ts +108 -36
- package/src/apis/SiteApi.ts +96 -32
- package/src/apis/SupplierApi.ts +96 -32
- package/src/apis/TagApi.ts +96 -32
- package/src/models/AttachAttributeProductTypeRequest.ts +1 -1
- package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +1 -1
- package/src/models/AttachProductTypeAttributeRequest.ts +1 -1
- package/src/models/DetachAssetableOverlayTemplateRequest.ts +1 -1
- package/src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts +1 -1
- package/src/models/GetAllAttributeRequest.ts +3 -3
- package/src/models/GetAllDefinitionRequest.ts +2 -2
- package/src/models/GetAllDocumentRequest.ts +3 -3
- package/src/models/GetAllGoogleCategoryRequest.ts +2 -2
- package/src/models/GetAllOverlayTemplateRequest.ts +3 -3
- package/src/models/GetAllProductCategoryRequest.ts +3 -3
- package/src/models/GetAllProductChildRequest.ts +3 -3
- package/src/models/GetAllProductRequest.ts +3 -3
- package/src/models/GetAllProductTypeRequest.ts +3 -3
- package/src/models/GetAllSupplierRequest.ts +3 -3
- package/src/models/IndexAttributeRequest.ts +3 -3
- package/src/models/IndexAttributeValueRequest.ts +3 -3
- package/src/models/IndexDefinitionRequest.ts +2 -2
- package/src/models/IndexDocumentRequest.ts +3 -3
- package/src/models/IndexExternalApiLogRequest.ts +2 -2
- package/src/models/IndexOverlayTemplateRequest.ts +3 -3
- package/src/models/IndexProductCategoryRequest.ts +3 -3
- package/src/models/IndexProductChildRequest.ts +3 -3
- package/src/models/IndexProductRequest.ts +3 -3
- package/src/models/IndexProductTypeRequest.ts +3 -3
- package/src/models/IndexSiteNotificationRequest.ts +2 -2
- package/src/models/IndexSiteRequest.ts +2 -2
- package/src/models/IndexSupplierRequest.ts +3 -3
- package/src/models/IndexTagRequest.ts +3 -3
- package/src/models/PreviewAutomationRulesProductCategoryRequest.ts +1 -1
- package/src/models/StoreAssetForAssetableRequest.ts +1 -1
- package/src/models/StoreAttributeRequest.ts +1 -1
- package/src/models/StoreOverlayTemplateAssetRequest.ts +1 -1
- package/src/models/StoreProductCategoryRequest.ts +1 -1
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +2 -2
- package/src/models/StoreTagRequest.ts +1 -1
- package/src/models/UpdateAttributeRequest.ts +1 -1
- package/src/models/UpdateOverlayTemplateAssetRequest.ts +1 -1
- package/src/models/UpdateProductCategoryRequest.ts +1 -1
- package/src/models/UpdateSiteRequest.ts +1 -1
- package/src/models/UpdateTagRequest.ts +1 -1
package/src/apis/ProductApi.ts
CHANGED
|
@@ -176,9 +176,9 @@ export interface UpdateProductChildOperationRequest {
|
|
|
176
176
|
export class ProductApi extends runtime.BaseAPI {
|
|
177
177
|
|
|
178
178
|
/**
|
|
179
|
-
*
|
|
179
|
+
* Creates request options for attachAccessoriesProductChild without sending the request
|
|
180
180
|
*/
|
|
181
|
-
async
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
*
|
|
227
|
+
* Creates request options for attachCompatibleProductsProductChild without sending the request
|
|
220
228
|
*/
|
|
221
|
-
async
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
*
|
|
275
|
+
* Creates request options for attachDocumentsProductChild without sending the request
|
|
260
276
|
*/
|
|
261
|
-
async
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
*
|
|
323
|
+
* Creates request options for destroyProduct without sending the request
|
|
300
324
|
*/
|
|
301
|
-
async
|
|
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
|
-
|
|
341
|
+
return {
|
|
318
342
|
path: urlPath,
|
|
319
343
|
method: 'DELETE',
|
|
320
344
|
headers: headerParameters,
|
|
321
345
|
query: queryParameters,
|
|
322
|
-
}
|
|
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
|
-
*
|
|
368
|
+
* Creates request options for destroyProductChild without sending the request
|
|
337
369
|
*/
|
|
338
|
-
async
|
|
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
|
-
|
|
386
|
+
return {
|
|
355
387
|
path: urlPath,
|
|
356
388
|
method: 'DELETE',
|
|
357
389
|
headers: headerParameters,
|
|
358
390
|
query: queryParameters,
|
|
359
|
-
}
|
|
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
|
-
*
|
|
413
|
+
* Creates request options for detachAccessoryProductChild without sending the request
|
|
374
414
|
*/
|
|
375
|
-
async
|
|
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
|
-
|
|
439
|
+
return {
|
|
400
440
|
path: urlPath,
|
|
401
441
|
method: 'DELETE',
|
|
402
442
|
headers: headerParameters,
|
|
403
443
|
query: queryParameters,
|
|
404
|
-
}
|
|
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
|
-
*
|
|
466
|
+
* Creates request options for detachCompatibleProductProductChild without sending the request
|
|
419
467
|
*/
|
|
420
|
-
async
|
|
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
|
-
|
|
492
|
+
return {
|
|
445
493
|
path: urlPath,
|
|
446
494
|
method: 'DELETE',
|
|
447
495
|
headers: headerParameters,
|
|
448
496
|
query: queryParameters,
|
|
449
|
-
}
|
|
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
|
-
*
|
|
519
|
+
* Creates request options for detachDocumentsProductChild without sending the request
|
|
464
520
|
*/
|
|
465
|
-
async
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
*
|
|
567
|
+
* Creates request options for getAccessoriesProductChild without sending the request
|
|
504
568
|
*/
|
|
505
|
-
async
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
*
|
|
615
|
+
* Creates request options for getAllProduct without sending the request
|
|
544
616
|
*/
|
|
545
|
-
async
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
*
|
|
655
|
+
* Creates request options for getAllProductChild without sending the request
|
|
576
656
|
*/
|
|
577
|
-
async
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
*
|
|
695
|
+
* Creates request options for getCompatibleProductsProductChild without sending the request
|
|
608
696
|
*/
|
|
609
|
-
async
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
*
|
|
743
|
+
* Creates request options for indexProduct without sending the request
|
|
648
744
|
*/
|
|
649
|
-
async
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
*
|
|
783
|
+
* Creates request options for indexProductChild without sending the request
|
|
680
784
|
*/
|
|
681
|
-
async
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
*
|
|
823
|
+
* Creates request options for showAssetsProductChild without sending the request
|
|
712
824
|
*/
|
|
713
|
-
async
|
|
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
|
-
|
|
841
|
+
return {
|
|
730
842
|
path: urlPath,
|
|
731
843
|
method: 'GET',
|
|
732
844
|
headers: headerParameters,
|
|
733
845
|
query: queryParameters,
|
|
734
|
-
}
|
|
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
|
-
*
|
|
868
|
+
* Creates request options for showProduct without sending the request
|
|
749
869
|
*/
|
|
750
|
-
async
|
|
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
|
-
|
|
886
|
+
return {
|
|
767
887
|
path: urlPath,
|
|
768
888
|
method: 'GET',
|
|
769
889
|
headers: headerParameters,
|
|
770
890
|
query: queryParameters,
|
|
771
|
-
}
|
|
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
|
-
*
|
|
913
|
+
* Creates request options for showProductChild without sending the request
|
|
786
914
|
*/
|
|
787
|
-
async
|
|
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
|
-
|
|
931
|
+
return {
|
|
804
932
|
path: urlPath,
|
|
805
933
|
method: 'GET',
|
|
806
934
|
headers: headerParameters,
|
|
807
935
|
query: queryParameters,
|
|
808
|
-
}
|
|
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
|
-
*
|
|
958
|
+
* Creates request options for storeProduct without sending the request
|
|
823
959
|
*/
|
|
824
|
-
async
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
*
|
|
998
|
+
* Creates request options for storeProductChild without sending the request
|
|
855
999
|
*/
|
|
856
|
-
async
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
*
|
|
1038
|
+
* Creates request options for updateProduct without sending the request
|
|
887
1039
|
*/
|
|
888
|
-
async
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
*
|
|
1086
|
+
* Creates request options for updateProductChild without sending the request
|
|
927
1087
|
*/
|
|
928
|
-
async
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
}
|