@digital8/lighting-illusions-ts-sdk 0.0.981 → 0.0.982
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/FILES +0 -6
- package/README.md +3 -8
- package/dist/apis/AttributeApi.d.ts +1 -16
- package/dist/apis/AttributeApi.js +0 -58
- package/dist/apis/ProductCategoryApi.d.ts +4 -23
- package/dist/apis/ProductCategoryApi.js +7 -71
- package/dist/models/CategoryAutomationRuleResource.d.ts +3 -3
- package/dist/models/CategoryAutomationRuleResource.js +5 -3
- package/dist/models/GetAllProductChildRequest.d.ts +0 -6
- package/dist/models/GetAllProductChildRequest.js +0 -2
- package/dist/models/IndexProductCategoryRequest.d.ts +0 -2
- package/dist/models/IndexProductCategoryRequest.js +1 -3
- package/dist/models/IndexProductChildRequest.d.ts +0 -6
- package/dist/models/IndexProductChildRequest.js +0 -2
- package/dist/models/PreviewAutomationRulesResource.d.ts +6 -0
- package/dist/models/PreviewAutomationRulesResource.js +2 -0
- package/dist/models/ProductAggregationResource.d.ts +2 -2
- package/dist/models/ProductCategoryResource.d.ts +0 -6
- package/dist/models/ProductCategoryResource.js +0 -4
- package/dist/models/ProductChildResource.d.ts +0 -6
- package/dist/models/ProductChildResource.js +0 -4
- package/dist/models/ProductChildSiteDetailResource.d.ts +0 -18
- package/dist/models/ProductChildSiteDetailResource.js +0 -12
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +3 -3
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +5 -3
- package/dist/models/StoreProductChildRequest.d.ts +1 -7
- package/dist/models/StoreProductChildRequest.js +4 -6
- package/dist/models/StoreProductChildRequestSitesInner.d.ts +0 -18
- package/dist/models/StoreProductChildRequestSitesInner.js +0 -12
- package/dist/models/UpdateProductChildRequest.d.ts +0 -12
- package/dist/models/UpdateProductChildRequest.js +0 -6
- package/dist/models/index.d.ts +0 -3
- package/dist/models/index.js +0 -3
- package/docs/AttributeApi.md +0 -66
- package/docs/CategoryAutomationRuleResource.md +3 -3
- package/docs/GetAllProductChildRequest.md +0 -2
- package/docs/IndexProductChildRequest.md +0 -2
- package/docs/PreviewAutomationRulesResource.md +2 -0
- package/docs/ProductAggregationResource.md +1 -1
- package/docs/ProductCategoryApi.md +6 -83
- package/docs/ProductCategoryResource.md +0 -2
- package/docs/ProductChildResource.md +0 -2
- package/docs/ProductChildSiteDetailResource.md +0 -6
- package/docs/StoreProductCategoryRequestAutomationRulesInner.md +2 -2
- package/docs/StoreProductChildRequest.md +0 -2
- package/docs/StoreProductChildRequestSitesInner.md +0 -6
- package/docs/UpdateProductChildRequest.md +0 -4
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +0 -50
- package/src/apis/ProductCategoryApi.ts +6 -72
- package/src/models/CategoryAutomationRuleResource.ts +7 -6
- package/src/models/GetAllProductChildRequest.ts +0 -8
- package/src/models/IndexProductCategoryRequest.ts +1 -3
- package/src/models/IndexProductChildRequest.ts +0 -8
- package/src/models/PreviewAutomationRulesResource.ts +8 -0
- package/src/models/ProductAggregationResource.ts +2 -2
- package/src/models/ProductCategoryResource.ts +0 -9
- package/src/models/ProductChildResource.ts +0 -9
- package/src/models/ProductChildSiteDetailResource.ts +0 -27
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +7 -6
- package/src/models/StoreProductChildRequest.ts +4 -12
- package/src/models/StoreProductChildRequestSitesInner.ts +0 -27
- package/src/models/UpdateProductChildRequest.ts +0 -17
- package/src/models/index.ts +0 -3
- package/dist/models/GetHierarchyProductCategoryRequest.d.ts +0 -32
- package/dist/models/GetHierarchyProductCategoryRequest.js +0 -51
- package/dist/models/IndexAttributeValueRequest.d.ts +0 -105
- package/dist/models/IndexAttributeValueRequest.js +0 -88
- package/dist/models/PaginatedAttributeValueResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedAttributeValueResourceResponse.js +0 -57
- package/docs/GetHierarchyProductCategoryRequest.md +0 -34
- package/docs/IndexAttributeValueRequest.md +0 -50
- package/docs/PaginatedAttributeValueResourceResponse.md +0 -36
- package/src/models/GetHierarchyProductCategoryRequest.ts +0 -66
- package/src/models/IndexAttributeValueRequest.ts +0 -159
- package/src/models/PaginatedAttributeValueResourceResponse.ts +0 -90
|
@@ -8,10 +8,9 @@ All URIs are relative to *http://localhost/api*
|
|
|
8
8
|
| [**bulkDetachProductsProductCategory**](ProductCategoryApi.md#bulkdetachproductsproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/bulk-detach-products | Auto-generated: bulkDetachProductsProductCategory |
|
|
9
9
|
| [**destroyProductCategory**](ProductCategoryApi.md#destroyproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/delete | Auto-generated: destroyProductCategory |
|
|
10
10
|
| [**detachProductsProductCategory**](ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory |
|
|
11
|
-
| [**getAllChildrenProductCategory**](ProductCategoryApi.md#getallchildrenproductcategory) | **POST** /admin-api/product-category/{productCategory}/children/all | Auto-generated: getAllChildrenProductCategory |
|
|
12
11
|
| [**getAllProductCategory**](ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory |
|
|
13
12
|
| [**getChildrenProductCategory**](ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory |
|
|
14
|
-
| [**getHierarchyProductCategory**](ProductCategoryApi.md#
|
|
13
|
+
| [**getHierarchyProductCategory**](ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory |
|
|
15
14
|
| [**indexProductCategory**](ProductCategoryApi.md#indexproductcategoryoperation) | **POST** /admin-api/product-category/list | Auto-generated: indexProductCategory |
|
|
16
15
|
| [**previewAutomationRulesProductCategory**](ProductCategoryApi.md#previewautomationrulesproductcategoryoperation) | **POST** /admin-api/product-category/preview-automation-rules | Auto-generated: previewAutomationRulesProductCategory |
|
|
17
16
|
| [**showProductCategory**](ProductCategoryApi.md#showproductcategory) | **GET** /admin-api/product-category/{productCategory} | Auto-generated: showProductCategory |
|
|
@@ -286,74 +285,6 @@ No authorization required
|
|
|
286
285
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
287
286
|
|
|
288
287
|
|
|
289
|
-
## getAllChildrenProductCategory
|
|
290
|
-
|
|
291
|
-
> ProductCategoryListResourceArrayResponse getAllChildrenProductCategory(productCategory, getAllProductCategoryRequest)
|
|
292
|
-
|
|
293
|
-
Auto-generated: getAllChildrenProductCategory
|
|
294
|
-
|
|
295
|
-
### Example
|
|
296
|
-
|
|
297
|
-
```ts
|
|
298
|
-
import {
|
|
299
|
-
Configuration,
|
|
300
|
-
ProductCategoryApi,
|
|
301
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
302
|
-
import type { GetAllChildrenProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
303
|
-
|
|
304
|
-
async function example() {
|
|
305
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
306
|
-
const api = new ProductCategoryApi();
|
|
307
|
-
|
|
308
|
-
const body = {
|
|
309
|
-
// number | The id of the productCategory
|
|
310
|
-
productCategory: 56,
|
|
311
|
-
// GetAllProductCategoryRequest (optional)
|
|
312
|
-
getAllProductCategoryRequest: ...,
|
|
313
|
-
} satisfies GetAllChildrenProductCategoryRequest;
|
|
314
|
-
|
|
315
|
-
try {
|
|
316
|
-
const data = await api.getAllChildrenProductCategory(body);
|
|
317
|
-
console.log(data);
|
|
318
|
-
} catch (error) {
|
|
319
|
-
console.error(error);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
// Run the test
|
|
324
|
-
example().catch(console.error);
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
### Parameters
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
| Name | Type | Description | Notes |
|
|
331
|
-
|------------- | ------------- | ------------- | -------------|
|
|
332
|
-
| **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
|
|
333
|
-
| **getAllProductCategoryRequest** | [GetAllProductCategoryRequest](GetAllProductCategoryRequest.md) | | [Optional] |
|
|
334
|
-
|
|
335
|
-
### Return type
|
|
336
|
-
|
|
337
|
-
[**ProductCategoryListResourceArrayResponse**](ProductCategoryListResourceArrayResponse.md)
|
|
338
|
-
|
|
339
|
-
### Authorization
|
|
340
|
-
|
|
341
|
-
No authorization required
|
|
342
|
-
|
|
343
|
-
### HTTP request headers
|
|
344
|
-
|
|
345
|
-
- **Content-Type**: `application/json`
|
|
346
|
-
- **Accept**: `application/json`
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
### HTTP response details
|
|
350
|
-
| Status code | Description | Response headers |
|
|
351
|
-
|-------------|-------------|------------------|
|
|
352
|
-
| **200** | Successful resource response | - |
|
|
353
|
-
|
|
354
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
355
|
-
|
|
356
|
-
|
|
357
288
|
## getAllProductCategory
|
|
358
289
|
|
|
359
290
|
> ProductCategoryLiteResourceArrayResponse getAllProductCategory(getAllProductCategoryRequest)
|
|
@@ -489,7 +420,7 @@ No authorization required
|
|
|
489
420
|
|
|
490
421
|
## getHierarchyProductCategory
|
|
491
422
|
|
|
492
|
-
> ProductCategoryHierarchyResourceArrayResponse getHierarchyProductCategory(
|
|
423
|
+
> ProductCategoryHierarchyResourceArrayResponse getHierarchyProductCategory()
|
|
493
424
|
|
|
494
425
|
Auto-generated: getHierarchyProductCategory
|
|
495
426
|
|
|
@@ -500,19 +431,14 @@ import {
|
|
|
500
431
|
Configuration,
|
|
501
432
|
ProductCategoryApi,
|
|
502
433
|
} from '@digital8/lighting-illusions-ts-sdk';
|
|
503
|
-
import type {
|
|
434
|
+
import type { GetHierarchyProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
504
435
|
|
|
505
436
|
async function example() {
|
|
506
437
|
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
507
438
|
const api = new ProductCategoryApi();
|
|
508
439
|
|
|
509
|
-
const body = {
|
|
510
|
-
// GetHierarchyProductCategoryRequest (optional)
|
|
511
|
-
getHierarchyProductCategoryRequest: ...,
|
|
512
|
-
} satisfies GetHierarchyProductCategoryOperationRequest;
|
|
513
|
-
|
|
514
440
|
try {
|
|
515
|
-
const data = await api.getHierarchyProductCategory(
|
|
441
|
+
const data = await api.getHierarchyProductCategory();
|
|
516
442
|
console.log(data);
|
|
517
443
|
} catch (error) {
|
|
518
444
|
console.error(error);
|
|
@@ -525,10 +451,7 @@ example().catch(console.error);
|
|
|
525
451
|
|
|
526
452
|
### Parameters
|
|
527
453
|
|
|
528
|
-
|
|
529
|
-
| Name | Type | Description | Notes |
|
|
530
|
-
|------------- | ------------- | ------------- | -------------|
|
|
531
|
-
| **getHierarchyProductCategoryRequest** | [GetHierarchyProductCategoryRequest](GetHierarchyProductCategoryRequest.md) | | [Optional] |
|
|
454
|
+
This endpoint does not need any parameter.
|
|
532
455
|
|
|
533
456
|
### Return type
|
|
534
457
|
|
|
@@ -540,7 +463,7 @@ No authorization required
|
|
|
540
463
|
|
|
541
464
|
### HTTP request headers
|
|
542
465
|
|
|
543
|
-
- **Content-Type**:
|
|
466
|
+
- **Content-Type**: Not defined
|
|
544
467
|
- **Accept**: `application/json`
|
|
545
468
|
|
|
546
469
|
|
|
@@ -21,7 +21,6 @@ Name | Type
|
|
|
21
21
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
22
22
|
`seo` | [Array<SEOResource>](SEOResource.md)
|
|
23
23
|
`descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
|
|
24
|
-
`linkedProductsCount` | number
|
|
25
24
|
|
|
26
25
|
## Example
|
|
27
26
|
|
|
@@ -45,7 +44,6 @@ const example = {
|
|
|
45
44
|
"site": null,
|
|
46
45
|
"seo": null,
|
|
47
46
|
"descriptions": null,
|
|
48
|
-
"linkedProductsCount": null,
|
|
49
47
|
} satisfies ProductCategoryResource
|
|
50
48
|
|
|
51
49
|
console.log(example)
|
|
@@ -12,7 +12,6 @@ Name | Type
|
|
|
12
12
|
`modelNumber` | string
|
|
13
13
|
`weight` | number
|
|
14
14
|
`warranty` | string
|
|
15
|
-
`isWarrantyOverridden` | boolean
|
|
16
15
|
`stock` | number
|
|
17
16
|
`sku` | number
|
|
18
17
|
`buyPrice` | number
|
|
@@ -47,7 +46,6 @@ const example = {
|
|
|
47
46
|
"modelNumber": null,
|
|
48
47
|
"weight": null,
|
|
49
48
|
"warranty": null,
|
|
50
|
-
"isWarrantyOverridden": null,
|
|
51
49
|
"stock": null,
|
|
52
50
|
"sku": null,
|
|
53
51
|
"buyPrice": null,
|
|
@@ -9,12 +9,9 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
11
11
|
`name` | string
|
|
12
|
-
`isNameOverridden` | boolean
|
|
13
12
|
`slug` | string
|
|
14
|
-
`isSlugOverridden` | boolean
|
|
15
13
|
`description` | string
|
|
16
14
|
`displayName` | string
|
|
17
|
-
`isDisplayNameOverridden` | boolean
|
|
18
15
|
`rrpPrice` | number
|
|
19
16
|
`salePrice` | number
|
|
20
17
|
`isDisabled` | boolean
|
|
@@ -32,12 +29,9 @@ const example = {
|
|
|
32
29
|
"id": null,
|
|
33
30
|
"site": null,
|
|
34
31
|
"name": null,
|
|
35
|
-
"isNameOverridden": null,
|
|
36
32
|
"slug": null,
|
|
37
|
-
"isSlugOverridden": null,
|
|
38
33
|
"description": null,
|
|
39
34
|
"displayName": null,
|
|
40
|
-
"isDisplayNameOverridden": null,
|
|
41
35
|
"rrpPrice": null,
|
|
42
36
|
"salePrice": null,
|
|
43
37
|
"isDisabled": null,
|
|
@@ -11,7 +11,7 @@ Name | Type
|
|
|
11
11
|
`groupId` | number
|
|
12
12
|
`relatedId` | string
|
|
13
13
|
`value` | string
|
|
14
|
-
`
|
|
14
|
+
`valueIds` | Array<number>
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
|
@@ -25,7 +25,7 @@ const example = {
|
|
|
25
25
|
"groupId": null,
|
|
26
26
|
"relatedId": null,
|
|
27
27
|
"value": null,
|
|
28
|
-
"
|
|
28
|
+
"valueIds": null,
|
|
29
29
|
} satisfies StoreProductCategoryRequestAutomationRulesInner
|
|
30
30
|
|
|
31
31
|
console.log(example)
|
|
@@ -13,7 +13,6 @@ Name | Type
|
|
|
13
13
|
`newArrivalStartDate` | Date
|
|
14
14
|
`newArrivalEndDate` | Date
|
|
15
15
|
`warranty` | string
|
|
16
|
-
`isWarrantyOverridden` | boolean
|
|
17
16
|
`hideFromFrontend` | boolean
|
|
18
17
|
`excludeFromSearch` | boolean
|
|
19
18
|
`allowOversell` | boolean
|
|
@@ -40,7 +39,6 @@ const example = {
|
|
|
40
39
|
"newArrivalStartDate": null,
|
|
41
40
|
"newArrivalEndDate": null,
|
|
42
41
|
"warranty": null,
|
|
43
|
-
"isWarrantyOverridden": null,
|
|
44
42
|
"hideFromFrontend": null,
|
|
45
43
|
"excludeFromSearch": null,
|
|
46
44
|
"allowOversell": null,
|
|
@@ -8,14 +8,11 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`siteId` | number
|
|
10
10
|
`name` | string
|
|
11
|
-
`isNameOverridden` | boolean
|
|
12
11
|
`displayName` | string
|
|
13
|
-
`isDisplayNameOverridden` | boolean
|
|
14
12
|
`description` | string
|
|
15
13
|
`rrpPrice` | number
|
|
16
14
|
`salePrice` | number
|
|
17
15
|
`slug` | string
|
|
18
|
-
`isSlugOverridden` | boolean
|
|
19
16
|
`documents` | Array<number>
|
|
20
17
|
`seoTitle` | string
|
|
21
18
|
`seoDescription` | string
|
|
@@ -29,14 +26,11 @@ import type { StoreProductChildRequestSitesInner } from '@digital8/lighting-illu
|
|
|
29
26
|
const example = {
|
|
30
27
|
"siteId": null,
|
|
31
28
|
"name": null,
|
|
32
|
-
"isNameOverridden": null,
|
|
33
29
|
"displayName": null,
|
|
34
|
-
"isDisplayNameOverridden": null,
|
|
35
30
|
"description": null,
|
|
36
31
|
"rrpPrice": null,
|
|
37
32
|
"salePrice": null,
|
|
38
33
|
"slug": null,
|
|
39
|
-
"isSlugOverridden": null,
|
|
40
34
|
"documents": null,
|
|
41
35
|
"seoTitle": null,
|
|
42
36
|
"seoDescription": null,
|
|
@@ -12,7 +12,6 @@ Name | Type
|
|
|
12
12
|
`newArrivalStartDate` | Date
|
|
13
13
|
`newArrivalEndDate` | Date
|
|
14
14
|
`warranty` | string
|
|
15
|
-
`isWarrantyOverridden` | boolean
|
|
16
15
|
`hideFromFrontend` | boolean
|
|
17
16
|
`excludeFromSearch` | boolean
|
|
18
17
|
`allowOversell` | boolean
|
|
@@ -20,7 +19,6 @@ Name | Type
|
|
|
20
19
|
`popularityScore` | number
|
|
21
20
|
`stock` | number
|
|
22
21
|
`sites` | [Array<StoreProductChildRequestSitesInner>](StoreProductChildRequestSitesInner.md)
|
|
23
|
-
`accessories` | Array<number>
|
|
24
22
|
`assets` | [Array<UpdateProductChildRequestAssetsInner>](UpdateProductChildRequestAssetsInner.md)
|
|
25
23
|
|
|
26
24
|
## Example
|
|
@@ -36,7 +34,6 @@ const example = {
|
|
|
36
34
|
"newArrivalStartDate": null,
|
|
37
35
|
"newArrivalEndDate": null,
|
|
38
36
|
"warranty": null,
|
|
39
|
-
"isWarrantyOverridden": null,
|
|
40
37
|
"hideFromFrontend": null,
|
|
41
38
|
"excludeFromSearch": null,
|
|
42
39
|
"allowOversell": null,
|
|
@@ -44,7 +41,6 @@ const example = {
|
|
|
44
41
|
"popularityScore": null,
|
|
45
42
|
"stock": null,
|
|
46
43
|
"sites": null,
|
|
47
|
-
"accessories": null,
|
|
48
44
|
"assets": null,
|
|
49
45
|
} satisfies UpdateProductChildRequest
|
|
50
46
|
|
package/package.json
CHANGED
package/src/apis/AttributeApi.ts
CHANGED
|
@@ -23,10 +23,8 @@ import type {
|
|
|
23
23
|
GenericResponse,
|
|
24
24
|
GetAllAttributeRequest,
|
|
25
25
|
IndexAttributeRequest,
|
|
26
|
-
IndexAttributeValueRequest,
|
|
27
26
|
ModelAttributeResourceArrayResponse,
|
|
28
27
|
PaginatedAttributeListResourceResponse,
|
|
29
|
-
PaginatedAttributeValueResourceResponse,
|
|
30
28
|
StoreAttributeRequest,
|
|
31
29
|
StoreAttributeValueRequest,
|
|
32
30
|
UpdateAttributeRequest,
|
|
@@ -51,14 +49,10 @@ import {
|
|
|
51
49
|
GetAllAttributeRequestToJSON,
|
|
52
50
|
IndexAttributeRequestFromJSON,
|
|
53
51
|
IndexAttributeRequestToJSON,
|
|
54
|
-
IndexAttributeValueRequestFromJSON,
|
|
55
|
-
IndexAttributeValueRequestToJSON,
|
|
56
52
|
ModelAttributeResourceArrayResponseFromJSON,
|
|
57
53
|
ModelAttributeResourceArrayResponseToJSON,
|
|
58
54
|
PaginatedAttributeListResourceResponseFromJSON,
|
|
59
55
|
PaginatedAttributeListResourceResponseToJSON,
|
|
60
|
-
PaginatedAttributeValueResourceResponseFromJSON,
|
|
61
|
-
PaginatedAttributeValueResourceResponseToJSON,
|
|
62
56
|
StoreAttributeRequestFromJSON,
|
|
63
57
|
StoreAttributeRequestToJSON,
|
|
64
58
|
StoreAttributeValueRequestFromJSON,
|
|
@@ -100,10 +94,6 @@ export interface IndexAttributeOperationRequest {
|
|
|
100
94
|
indexAttributeRequest?: IndexAttributeRequest;
|
|
101
95
|
}
|
|
102
96
|
|
|
103
|
-
export interface IndexAttributeValueOperationRequest {
|
|
104
|
-
indexAttributeValueRequest?: IndexAttributeValueRequest;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
97
|
export interface ShowAttributeRequest {
|
|
108
98
|
attribute: number;
|
|
109
99
|
}
|
|
@@ -419,46 +409,6 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
419
409
|
return await response.value();
|
|
420
410
|
}
|
|
421
411
|
|
|
422
|
-
/**
|
|
423
|
-
* Creates request options for indexAttributeValue without sending the request
|
|
424
|
-
*/
|
|
425
|
-
async indexAttributeValueRequestOpts(requestParameters: IndexAttributeValueOperationRequest): Promise<runtime.RequestOpts> {
|
|
426
|
-
const queryParameters: any = {};
|
|
427
|
-
|
|
428
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
429
|
-
|
|
430
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
let urlPath = `/admin-api/attribute/value/list`;
|
|
434
|
-
|
|
435
|
-
return {
|
|
436
|
-
path: urlPath,
|
|
437
|
-
method: 'POST',
|
|
438
|
-
headers: headerParameters,
|
|
439
|
-
query: queryParameters,
|
|
440
|
-
body: IndexAttributeValueRequestToJSON(requestParameters['indexAttributeValueRequest']),
|
|
441
|
-
};
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* Auto-generated: indexAttributeValue
|
|
446
|
-
*/
|
|
447
|
-
async indexAttributeValueRaw(requestParameters: IndexAttributeValueOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedAttributeValueResourceResponse>> {
|
|
448
|
-
const requestOptions = await this.indexAttributeValueRequestOpts(requestParameters);
|
|
449
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
450
|
-
|
|
451
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedAttributeValueResourceResponseFromJSON(jsonValue));
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
/**
|
|
455
|
-
* Auto-generated: indexAttributeValue
|
|
456
|
-
*/
|
|
457
|
-
async indexAttributeValue(requestParameters: IndexAttributeValueOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAttributeValueResourceResponse> {
|
|
458
|
-
const response = await this.indexAttributeValueRaw(requestParameters, initOverrides);
|
|
459
|
-
return await response.value();
|
|
460
|
-
}
|
|
461
|
-
|
|
462
412
|
/**
|
|
463
413
|
* Creates request options for showAttribute without sending the request
|
|
464
414
|
*/
|
|
@@ -19,13 +19,11 @@ import type {
|
|
|
19
19
|
DetachProductsProductCategoryRequest,
|
|
20
20
|
GenericResponse,
|
|
21
21
|
GetAllProductCategoryRequest,
|
|
22
|
-
GetHierarchyProductCategoryRequest,
|
|
23
22
|
IndexProductCategoryRequest,
|
|
24
23
|
PaginatedProductCategoryListResourceResponse,
|
|
25
24
|
PreviewAutomationRulesProductCategoryRequest,
|
|
26
25
|
PreviewAutomationRulesResource,
|
|
27
26
|
ProductCategoryHierarchyResourceArrayResponse,
|
|
28
|
-
ProductCategoryListResourceArrayResponse,
|
|
29
27
|
ProductCategoryLiteResourceArrayResponse,
|
|
30
28
|
ProductCategoryResource,
|
|
31
29
|
StoreProductCategoryRequest,
|
|
@@ -40,8 +38,6 @@ import {
|
|
|
40
38
|
GenericResponseToJSON,
|
|
41
39
|
GetAllProductCategoryRequestFromJSON,
|
|
42
40
|
GetAllProductCategoryRequestToJSON,
|
|
43
|
-
GetHierarchyProductCategoryRequestFromJSON,
|
|
44
|
-
GetHierarchyProductCategoryRequestToJSON,
|
|
45
41
|
IndexProductCategoryRequestFromJSON,
|
|
46
42
|
IndexProductCategoryRequestToJSON,
|
|
47
43
|
PaginatedProductCategoryListResourceResponseFromJSON,
|
|
@@ -52,8 +48,6 @@ import {
|
|
|
52
48
|
PreviewAutomationRulesResourceToJSON,
|
|
53
49
|
ProductCategoryHierarchyResourceArrayResponseFromJSON,
|
|
54
50
|
ProductCategoryHierarchyResourceArrayResponseToJSON,
|
|
55
|
-
ProductCategoryListResourceArrayResponseFromJSON,
|
|
56
|
-
ProductCategoryListResourceArrayResponseToJSON,
|
|
57
51
|
ProductCategoryLiteResourceArrayResponseFromJSON,
|
|
58
52
|
ProductCategoryLiteResourceArrayResponseToJSON,
|
|
59
53
|
ProductCategoryResourceFromJSON,
|
|
@@ -82,11 +76,6 @@ export interface DetachProductsProductCategoryOperationRequest {
|
|
|
82
76
|
detachProductsProductCategoryRequest?: DetachProductsProductCategoryRequest;
|
|
83
77
|
}
|
|
84
78
|
|
|
85
|
-
export interface GetAllChildrenProductCategoryRequest {
|
|
86
|
-
productCategory: number;
|
|
87
|
-
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
79
|
export interface GetAllProductCategoryOperationRequest {
|
|
91
80
|
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
92
81
|
}
|
|
@@ -96,10 +85,6 @@ export interface GetChildrenProductCategoryRequest {
|
|
|
96
85
|
indexProductCategoryRequest?: IndexProductCategoryRequest;
|
|
97
86
|
}
|
|
98
87
|
|
|
99
|
-
export interface GetHierarchyProductCategoryOperationRequest {
|
|
100
|
-
getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
88
|
export interface IndexProductCategoryOperationRequest {
|
|
104
89
|
indexProductCategoryRequest?: IndexProductCategoryRequest;
|
|
105
90
|
}
|
|
@@ -312,54 +297,6 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
312
297
|
return await response.value();
|
|
313
298
|
}
|
|
314
299
|
|
|
315
|
-
/**
|
|
316
|
-
* Creates request options for getAllChildrenProductCategory without sending the request
|
|
317
|
-
*/
|
|
318
|
-
async getAllChildrenProductCategoryRequestOpts(requestParameters: GetAllChildrenProductCategoryRequest): Promise<runtime.RequestOpts> {
|
|
319
|
-
if (requestParameters['productCategory'] == null) {
|
|
320
|
-
throw new runtime.RequiredError(
|
|
321
|
-
'productCategory',
|
|
322
|
-
'Required parameter "productCategory" was null or undefined when calling getAllChildrenProductCategory().'
|
|
323
|
-
);
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
const queryParameters: any = {};
|
|
327
|
-
|
|
328
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
329
|
-
|
|
330
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
let urlPath = `/admin-api/product-category/{productCategory}/children/all`;
|
|
334
|
-
urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
|
|
335
|
-
|
|
336
|
-
return {
|
|
337
|
-
path: urlPath,
|
|
338
|
-
method: 'POST',
|
|
339
|
-
headers: headerParameters,
|
|
340
|
-
query: queryParameters,
|
|
341
|
-
body: GetAllProductCategoryRequestToJSON(requestParameters['getAllProductCategoryRequest']),
|
|
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);
|
|
351
|
-
|
|
352
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryListResourceArrayResponseFromJSON(jsonValue));
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* Auto-generated: getAllChildrenProductCategory
|
|
357
|
-
*/
|
|
358
|
-
async getAllChildrenProductCategory(requestParameters: GetAllChildrenProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryListResourceArrayResponse> {
|
|
359
|
-
const response = await this.getAllChildrenProductCategoryRaw(requestParameters, initOverrides);
|
|
360
|
-
return await response.value();
|
|
361
|
-
}
|
|
362
|
-
|
|
363
300
|
/**
|
|
364
301
|
* Creates request options for getAllProductCategory without sending the request
|
|
365
302
|
*/
|
|
@@ -451,30 +388,27 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
451
388
|
/**
|
|
452
389
|
* Creates request options for getHierarchyProductCategory without sending the request
|
|
453
390
|
*/
|
|
454
|
-
async getHierarchyProductCategoryRequestOpts(
|
|
391
|
+
async getHierarchyProductCategoryRequestOpts(): Promise<runtime.RequestOpts> {
|
|
455
392
|
const queryParameters: any = {};
|
|
456
393
|
|
|
457
394
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
458
395
|
|
|
459
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
460
|
-
|
|
461
396
|
|
|
462
397
|
let urlPath = `/admin-api/product-category/hierarchy`;
|
|
463
398
|
|
|
464
399
|
return {
|
|
465
400
|
path: urlPath,
|
|
466
|
-
method: '
|
|
401
|
+
method: 'GET',
|
|
467
402
|
headers: headerParameters,
|
|
468
403
|
query: queryParameters,
|
|
469
|
-
body: GetHierarchyProductCategoryRequestToJSON(requestParameters['getHierarchyProductCategoryRequest']),
|
|
470
404
|
};
|
|
471
405
|
}
|
|
472
406
|
|
|
473
407
|
/**
|
|
474
408
|
* Auto-generated: getHierarchyProductCategory
|
|
475
409
|
*/
|
|
476
|
-
async getHierarchyProductCategoryRaw(
|
|
477
|
-
const requestOptions = await this.getHierarchyProductCategoryRequestOpts(
|
|
410
|
+
async getHierarchyProductCategoryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>> {
|
|
411
|
+
const requestOptions = await this.getHierarchyProductCategoryRequestOpts();
|
|
478
412
|
const response = await this.request(requestOptions, initOverrides);
|
|
479
413
|
|
|
480
414
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryHierarchyResourceArrayResponseFromJSON(jsonValue));
|
|
@@ -483,8 +417,8 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
483
417
|
/**
|
|
484
418
|
* Auto-generated: getHierarchyProductCategory
|
|
485
419
|
*/
|
|
486
|
-
async getHierarchyProductCategory(
|
|
487
|
-
const response = await this.getHierarchyProductCategoryRaw(
|
|
420
|
+
async getHierarchyProductCategory(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse> {
|
|
421
|
+
const response = await this.getHierarchyProductCategoryRaw(initOverrides);
|
|
488
422
|
return await response.value();
|
|
489
423
|
}
|
|
490
424
|
|
|
@@ -39,10 +39,10 @@ export interface CategoryAutomationRuleResource {
|
|
|
39
39
|
comparisonType: object;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {number}
|
|
43
43
|
* @memberof CategoryAutomationRuleResource
|
|
44
44
|
*/
|
|
45
|
-
groupId
|
|
45
|
+
groupId: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -60,7 +60,7 @@ export interface CategoryAutomationRuleResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof CategoryAutomationRuleResource
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
valueIds?: string | null;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -69,6 +69,7 @@ export interface CategoryAutomationRuleResource {
|
|
|
69
69
|
export function instanceOfCategoryAutomationRuleResource(value: object): value is CategoryAutomationRuleResource {
|
|
70
70
|
if (!('fieldType' in value) || value['fieldType'] === undefined) return false;
|
|
71
71
|
if (!('comparisonType' in value) || value['comparisonType'] === undefined) return false;
|
|
72
|
+
if (!('groupId' in value) || value['groupId'] === undefined) return false;
|
|
72
73
|
if (!('value' in value) || value['value'] === undefined) return false;
|
|
73
74
|
return true;
|
|
74
75
|
}
|
|
@@ -86,10 +87,10 @@ export function CategoryAutomationRuleResourceFromJSONTyped(json: any, ignoreDis
|
|
|
86
87
|
'id': json['id'] == null ? undefined : json['id'],
|
|
87
88
|
'fieldType': json['fieldType'],
|
|
88
89
|
'comparisonType': json['comparisonType'],
|
|
89
|
-
'groupId': json['groupId']
|
|
90
|
+
'groupId': json['groupId'],
|
|
90
91
|
'relatedId': json['relatedId'] == null ? undefined : json['relatedId'],
|
|
91
92
|
'value': json['value'],
|
|
92
|
-
'
|
|
93
|
+
'valueIds': json['valueIds'] == null ? undefined : json['valueIds'],
|
|
93
94
|
};
|
|
94
95
|
}
|
|
95
96
|
|
|
@@ -110,7 +111,7 @@ export function CategoryAutomationRuleResourceToJSONTyped(value?: CategoryAutoma
|
|
|
110
111
|
'groupId': value['groupId'],
|
|
111
112
|
'relatedId': value['relatedId'],
|
|
112
113
|
'value': value['value'],
|
|
113
|
-
'
|
|
114
|
+
'valueIds': value['valueIds'],
|
|
114
115
|
};
|
|
115
116
|
}
|
|
116
117
|
|
|
@@ -91,12 +91,6 @@ export interface GetAllProductChildRequest {
|
|
|
91
91
|
* @memberof GetAllProductChildRequest
|
|
92
92
|
*/
|
|
93
93
|
productTypeId?: Array<string>;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {Array<string>}
|
|
97
|
-
* @memberof GetAllProductChildRequest
|
|
98
|
-
*/
|
|
99
|
-
parentIsAccessory?: Array<string>;
|
|
100
94
|
}
|
|
101
95
|
|
|
102
96
|
|
|
@@ -169,7 +163,6 @@ export function GetAllProductChildRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
169
163
|
'categoryId': json['category-id'] == null ? undefined : json['category-id'],
|
|
170
164
|
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
171
165
|
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
172
|
-
'parentIsAccessory': json['parent-is_accessory'] == null ? undefined : json['parent-is_accessory'],
|
|
173
166
|
};
|
|
174
167
|
}
|
|
175
168
|
|
|
@@ -196,7 +189,6 @@ export function GetAllProductChildRequestToJSONTyped(value?: GetAllProductChildR
|
|
|
196
189
|
'category-id': value['categoryId'],
|
|
197
190
|
'supplier-id': value['supplierId'],
|
|
198
191
|
'productType-id': value['productTypeId'],
|
|
199
|
-
'parent-is_accessory': value['parentIsAccessory'],
|
|
200
192
|
};
|
|
201
193
|
}
|
|
202
194
|
|
|
@@ -135,9 +135,7 @@ export type IndexProductCategoryRequestSortDirectionEnum = typeof IndexProductCa
|
|
|
135
135
|
*/
|
|
136
136
|
export const IndexProductCategoryRequestRelatedTypeEnum = {
|
|
137
137
|
Product: 'product',
|
|
138
|
-
ProductChildSiteDetail: 'productChildSiteDetail'
|
|
139
|
-
Attribute: 'attribute',
|
|
140
|
-
AttributeValue: 'attributeValue'
|
|
138
|
+
ProductChildSiteDetail: 'productChildSiteDetail'
|
|
141
139
|
} as const;
|
|
142
140
|
export type IndexProductCategoryRequestRelatedTypeEnum = typeof IndexProductCategoryRequestRelatedTypeEnum[keyof typeof IndexProductCategoryRequestRelatedTypeEnum];
|
|
143
141
|
|
|
@@ -85,12 +85,6 @@ export interface IndexProductChildRequest {
|
|
|
85
85
|
* @memberof IndexProductChildRequest
|
|
86
86
|
*/
|
|
87
87
|
productTypeId?: Array<string>;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {Array<string>}
|
|
91
|
-
* @memberof IndexProductChildRequest
|
|
92
|
-
*/
|
|
93
|
-
parentIsAccessory?: Array<string>;
|
|
94
88
|
/**
|
|
95
89
|
*
|
|
96
90
|
* @type {number}
|
|
@@ -188,7 +182,6 @@ export function IndexProductChildRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
188
182
|
'categoryId': json['category-id'] == null ? undefined : json['category-id'],
|
|
189
183
|
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
190
184
|
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
191
|
-
'parentIsAccessory': json['parent-is_accessory'] == null ? undefined : json['parent-is_accessory'],
|
|
192
185
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
193
186
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
194
187
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -217,7 +210,6 @@ export function IndexProductChildRequestToJSONTyped(value?: IndexProductChildReq
|
|
|
217
210
|
'category-id': value['categoryId'],
|
|
218
211
|
'supplier-id': value['supplierId'],
|
|
219
212
|
'productType-id': value['productTypeId'],
|
|
220
|
-
'parent-is_accessory': value['parentIsAccessory'],
|
|
221
213
|
'related_id': value['relatedId'],
|
|
222
214
|
'related_type': value['relatedType'],
|
|
223
215
|
'includes_relations': value['includesRelations'],
|