@digital8/lighting-illusions-ts-sdk 0.0.982 → 0.0.983
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 +2 -0
- package/README.md +5 -3
- package/dist/apis/ProductCategoryApi.d.ts +23 -4
- package/dist/apis/ProductCategoryApi.js +71 -7
- package/dist/models/CategoryAutomationRuleResource.d.ts +3 -3
- package/dist/models/CategoryAutomationRuleResource.js +3 -5
- package/dist/models/GetAllProductChildRequest.d.ts +6 -0
- package/dist/models/GetAllProductChildRequest.js +2 -0
- package/dist/models/GetHierarchyProductCategoryRequest.d.ts +32 -0
- package/dist/models/GetHierarchyProductCategoryRequest.js +51 -0
- package/dist/models/IndexProductCategoryRequest.d.ts +2 -0
- package/dist/models/IndexProductCategoryRequest.js +3 -1
- package/dist/models/IndexProductChildRequest.d.ts +6 -0
- package/dist/models/IndexProductChildRequest.js +2 -0
- package/dist/models/PreviewAutomationRulesResource.d.ts +0 -6
- package/dist/models/PreviewAutomationRulesResource.js +0 -2
- package/dist/models/ProductAggregationResource.d.ts +2 -2
- package/dist/models/ProductCategoryResource.d.ts +6 -0
- package/dist/models/ProductCategoryResource.js +4 -0
- package/dist/models/ProductChildResource.d.ts +6 -0
- package/dist/models/ProductChildResource.js +4 -0
- package/dist/models/ProductChildSiteDetailResource.d.ts +18 -0
- package/dist/models/ProductChildSiteDetailResource.js +12 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +3 -3
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +3 -5
- package/dist/models/StoreProductChildRequest.d.ts +7 -1
- package/dist/models/StoreProductChildRequest.js +6 -4
- package/dist/models/StoreProductChildRequestSitesInner.d.ts +18 -0
- package/dist/models/StoreProductChildRequestSitesInner.js +12 -0
- package/dist/models/UpdateProductChildRequest.d.ts +6 -0
- package/dist/models/UpdateProductChildRequest.js +4 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/CategoryAutomationRuleResource.md +3 -3
- package/docs/GetAllProductChildRequest.md +2 -0
- package/docs/GetHierarchyProductCategoryRequest.md +34 -0
- package/docs/IndexProductChildRequest.md +2 -0
- package/docs/PreviewAutomationRulesResource.md +0 -2
- package/docs/ProductAggregationResource.md +1 -1
- package/docs/ProductCategoryApi.md +83 -6
- package/docs/ProductCategoryResource.md +2 -0
- package/docs/ProductChildResource.md +2 -0
- package/docs/ProductChildSiteDetailResource.md +6 -0
- package/docs/StoreProductCategoryRequestAutomationRulesInner.md +2 -2
- package/docs/StoreProductChildRequest.md +2 -0
- package/docs/StoreProductChildRequestSitesInner.md +6 -0
- package/docs/UpdateProductChildRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +72 -6
- package/src/models/CategoryAutomationRuleResource.ts +6 -7
- package/src/models/GetAllProductChildRequest.ts +8 -0
- package/src/models/GetHierarchyProductCategoryRequest.ts +66 -0
- package/src/models/IndexProductCategoryRequest.ts +3 -1
- package/src/models/IndexProductChildRequest.ts +8 -0
- package/src/models/PreviewAutomationRulesResource.ts +0 -8
- package/src/models/ProductAggregationResource.ts +2 -2
- package/src/models/ProductCategoryResource.ts +9 -0
- package/src/models/ProductChildResource.ts +9 -0
- package/src/models/ProductChildSiteDetailResource.ts +27 -0
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +6 -7
- package/src/models/StoreProductChildRequest.ts +12 -4
- package/src/models/StoreProductChildRequestSitesInner.ts +27 -0
- package/src/models/UpdateProductChildRequest.ts +9 -0
- package/src/models/index.ts +1 -0
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`newArrivalStartDate` | Date
|
|
14
14
|
`newArrivalEndDate` | Date
|
|
15
15
|
`warranty` | string
|
|
16
|
+
`isWarrantyOverridden` | boolean
|
|
16
17
|
`hideFromFrontend` | boolean
|
|
17
18
|
`excludeFromSearch` | boolean
|
|
18
19
|
`allowOversell` | boolean
|
|
@@ -39,6 +40,7 @@ const example = {
|
|
|
39
40
|
"newArrivalStartDate": null,
|
|
40
41
|
"newArrivalEndDate": null,
|
|
41
42
|
"warranty": null,
|
|
43
|
+
"isWarrantyOverridden": null,
|
|
42
44
|
"hideFromFrontend": null,
|
|
43
45
|
"excludeFromSearch": null,
|
|
44
46
|
"allowOversell": null,
|
|
@@ -8,11 +8,14 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`siteId` | number
|
|
10
10
|
`name` | string
|
|
11
|
+
`isNameOverridden` | boolean
|
|
11
12
|
`displayName` | string
|
|
13
|
+
`isDisplayNameOverridden` | boolean
|
|
12
14
|
`description` | string
|
|
13
15
|
`rrpPrice` | number
|
|
14
16
|
`salePrice` | number
|
|
15
17
|
`slug` | string
|
|
18
|
+
`isSlugOverridden` | boolean
|
|
16
19
|
`documents` | Array<number>
|
|
17
20
|
`seoTitle` | string
|
|
18
21
|
`seoDescription` | string
|
|
@@ -26,11 +29,14 @@ import type { StoreProductChildRequestSitesInner } from '@digital8/lighting-illu
|
|
|
26
29
|
const example = {
|
|
27
30
|
"siteId": null,
|
|
28
31
|
"name": null,
|
|
32
|
+
"isNameOverridden": null,
|
|
29
33
|
"displayName": null,
|
|
34
|
+
"isDisplayNameOverridden": null,
|
|
30
35
|
"description": null,
|
|
31
36
|
"rrpPrice": null,
|
|
32
37
|
"salePrice": null,
|
|
33
38
|
"slug": null,
|
|
39
|
+
"isSlugOverridden": null,
|
|
34
40
|
"documents": null,
|
|
35
41
|
"seoTitle": null,
|
|
36
42
|
"seoDescription": null,
|
|
@@ -12,6 +12,7 @@ Name | Type
|
|
|
12
12
|
`newArrivalStartDate` | Date
|
|
13
13
|
`newArrivalEndDate` | Date
|
|
14
14
|
`warranty` | string
|
|
15
|
+
`isWarrantyOverridden` | boolean
|
|
15
16
|
`hideFromFrontend` | boolean
|
|
16
17
|
`excludeFromSearch` | boolean
|
|
17
18
|
`allowOversell` | boolean
|
|
@@ -34,6 +35,7 @@ const example = {
|
|
|
34
35
|
"newArrivalStartDate": null,
|
|
35
36
|
"newArrivalEndDate": null,
|
|
36
37
|
"warranty": null,
|
|
38
|
+
"isWarrantyOverridden": null,
|
|
37
39
|
"hideFromFrontend": null,
|
|
38
40
|
"excludeFromSearch": null,
|
|
39
41
|
"allowOversell": null,
|
package/package.json
CHANGED
|
@@ -19,11 +19,13 @@ import type {
|
|
|
19
19
|
DetachProductsProductCategoryRequest,
|
|
20
20
|
GenericResponse,
|
|
21
21
|
GetAllProductCategoryRequest,
|
|
22
|
+
GetHierarchyProductCategoryRequest,
|
|
22
23
|
IndexProductCategoryRequest,
|
|
23
24
|
PaginatedProductCategoryListResourceResponse,
|
|
24
25
|
PreviewAutomationRulesProductCategoryRequest,
|
|
25
26
|
PreviewAutomationRulesResource,
|
|
26
27
|
ProductCategoryHierarchyResourceArrayResponse,
|
|
28
|
+
ProductCategoryListResourceArrayResponse,
|
|
27
29
|
ProductCategoryLiteResourceArrayResponse,
|
|
28
30
|
ProductCategoryResource,
|
|
29
31
|
StoreProductCategoryRequest,
|
|
@@ -38,6 +40,8 @@ import {
|
|
|
38
40
|
GenericResponseToJSON,
|
|
39
41
|
GetAllProductCategoryRequestFromJSON,
|
|
40
42
|
GetAllProductCategoryRequestToJSON,
|
|
43
|
+
GetHierarchyProductCategoryRequestFromJSON,
|
|
44
|
+
GetHierarchyProductCategoryRequestToJSON,
|
|
41
45
|
IndexProductCategoryRequestFromJSON,
|
|
42
46
|
IndexProductCategoryRequestToJSON,
|
|
43
47
|
PaginatedProductCategoryListResourceResponseFromJSON,
|
|
@@ -48,6 +52,8 @@ import {
|
|
|
48
52
|
PreviewAutomationRulesResourceToJSON,
|
|
49
53
|
ProductCategoryHierarchyResourceArrayResponseFromJSON,
|
|
50
54
|
ProductCategoryHierarchyResourceArrayResponseToJSON,
|
|
55
|
+
ProductCategoryListResourceArrayResponseFromJSON,
|
|
56
|
+
ProductCategoryListResourceArrayResponseToJSON,
|
|
51
57
|
ProductCategoryLiteResourceArrayResponseFromJSON,
|
|
52
58
|
ProductCategoryLiteResourceArrayResponseToJSON,
|
|
53
59
|
ProductCategoryResourceFromJSON,
|
|
@@ -76,6 +82,11 @@ export interface DetachProductsProductCategoryOperationRequest {
|
|
|
76
82
|
detachProductsProductCategoryRequest?: DetachProductsProductCategoryRequest;
|
|
77
83
|
}
|
|
78
84
|
|
|
85
|
+
export interface GetAllChildrenProductCategoryRequest {
|
|
86
|
+
productCategory: number;
|
|
87
|
+
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
88
|
+
}
|
|
89
|
+
|
|
79
90
|
export interface GetAllProductCategoryOperationRequest {
|
|
80
91
|
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
81
92
|
}
|
|
@@ -85,6 +96,10 @@ export interface GetChildrenProductCategoryRequest {
|
|
|
85
96
|
indexProductCategoryRequest?: IndexProductCategoryRequest;
|
|
86
97
|
}
|
|
87
98
|
|
|
99
|
+
export interface GetHierarchyProductCategoryOperationRequest {
|
|
100
|
+
getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
|
|
101
|
+
}
|
|
102
|
+
|
|
88
103
|
export interface IndexProductCategoryOperationRequest {
|
|
89
104
|
indexProductCategoryRequest?: IndexProductCategoryRequest;
|
|
90
105
|
}
|
|
@@ -297,6 +312,54 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
297
312
|
return await response.value();
|
|
298
313
|
}
|
|
299
314
|
|
|
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
|
+
|
|
300
363
|
/**
|
|
301
364
|
* Creates request options for getAllProductCategory without sending the request
|
|
302
365
|
*/
|
|
@@ -388,27 +451,30 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
388
451
|
/**
|
|
389
452
|
* Creates request options for getHierarchyProductCategory without sending the request
|
|
390
453
|
*/
|
|
391
|
-
async getHierarchyProductCategoryRequestOpts(): Promise<runtime.RequestOpts> {
|
|
454
|
+
async getHierarchyProductCategoryRequestOpts(requestParameters: GetHierarchyProductCategoryOperationRequest): Promise<runtime.RequestOpts> {
|
|
392
455
|
const queryParameters: any = {};
|
|
393
456
|
|
|
394
457
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
395
458
|
|
|
459
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
460
|
+
|
|
396
461
|
|
|
397
462
|
let urlPath = `/admin-api/product-category/hierarchy`;
|
|
398
463
|
|
|
399
464
|
return {
|
|
400
465
|
path: urlPath,
|
|
401
|
-
method: '
|
|
466
|
+
method: 'POST',
|
|
402
467
|
headers: headerParameters,
|
|
403
468
|
query: queryParameters,
|
|
469
|
+
body: GetHierarchyProductCategoryRequestToJSON(requestParameters['getHierarchyProductCategoryRequest']),
|
|
404
470
|
};
|
|
405
471
|
}
|
|
406
472
|
|
|
407
473
|
/**
|
|
408
474
|
* Auto-generated: getHierarchyProductCategory
|
|
409
475
|
*/
|
|
410
|
-
async getHierarchyProductCategoryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>> {
|
|
411
|
-
const requestOptions = await this.getHierarchyProductCategoryRequestOpts();
|
|
476
|
+
async getHierarchyProductCategoryRaw(requestParameters: GetHierarchyProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>> {
|
|
477
|
+
const requestOptions = await this.getHierarchyProductCategoryRequestOpts(requestParameters);
|
|
412
478
|
const response = await this.request(requestOptions, initOverrides);
|
|
413
479
|
|
|
414
480
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryHierarchyResourceArrayResponseFromJSON(jsonValue));
|
|
@@ -417,8 +483,8 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
417
483
|
/**
|
|
418
484
|
* Auto-generated: getHierarchyProductCategory
|
|
419
485
|
*/
|
|
420
|
-
async getHierarchyProductCategory(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse> {
|
|
421
|
-
const response = await this.getHierarchyProductCategoryRaw(initOverrides);
|
|
486
|
+
async getHierarchyProductCategory(requestParameters: GetHierarchyProductCategoryOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse> {
|
|
487
|
+
const response = await this.getHierarchyProductCategoryRaw(requestParameters, initOverrides);
|
|
422
488
|
return await response.value();
|
|
423
489
|
}
|
|
424
490
|
|
|
@@ -39,10 +39,10 @@ export interface CategoryAutomationRuleResource {
|
|
|
39
39
|
comparisonType: object;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof CategoryAutomationRuleResource
|
|
44
44
|
*/
|
|
45
|
-
groupId
|
|
45
|
+
groupId?: string | null;
|
|
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
|
+
valueId?: string | null;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -69,7 +69,6 @@ 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;
|
|
73
72
|
if (!('value' in value) || value['value'] === undefined) return false;
|
|
74
73
|
return true;
|
|
75
74
|
}
|
|
@@ -87,10 +86,10 @@ export function CategoryAutomationRuleResourceFromJSONTyped(json: any, ignoreDis
|
|
|
87
86
|
'id': json['id'] == null ? undefined : json['id'],
|
|
88
87
|
'fieldType': json['fieldType'],
|
|
89
88
|
'comparisonType': json['comparisonType'],
|
|
90
|
-
'groupId': json['groupId'],
|
|
89
|
+
'groupId': json['groupId'] == null ? undefined : json['groupId'],
|
|
91
90
|
'relatedId': json['relatedId'] == null ? undefined : json['relatedId'],
|
|
92
91
|
'value': json['value'],
|
|
93
|
-
'
|
|
92
|
+
'valueId': json['valueId'] == null ? undefined : json['valueId'],
|
|
94
93
|
};
|
|
95
94
|
}
|
|
96
95
|
|
|
@@ -111,7 +110,7 @@ export function CategoryAutomationRuleResourceToJSONTyped(value?: CategoryAutoma
|
|
|
111
110
|
'groupId': value['groupId'],
|
|
112
111
|
'relatedId': value['relatedId'],
|
|
113
112
|
'value': value['value'],
|
|
114
|
-
'
|
|
113
|
+
'valueId': value['valueId'],
|
|
115
114
|
};
|
|
116
115
|
}
|
|
117
116
|
|
|
@@ -91,6 +91,12 @@ 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>;
|
|
94
100
|
}
|
|
95
101
|
|
|
96
102
|
|
|
@@ -163,6 +169,7 @@ export function GetAllProductChildRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
163
169
|
'categoryId': json['category-id'] == null ? undefined : json['category-id'],
|
|
164
170
|
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
165
171
|
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
172
|
+
'parentIsAccessory': json['parent-is_accessory'] == null ? undefined : json['parent-is_accessory'],
|
|
166
173
|
};
|
|
167
174
|
}
|
|
168
175
|
|
|
@@ -189,6 +196,7 @@ export function GetAllProductChildRequestToJSONTyped(value?: GetAllProductChildR
|
|
|
189
196
|
'category-id': value['categoryId'],
|
|
190
197
|
'supplier-id': value['supplierId'],
|
|
191
198
|
'productType-id': value['productTypeId'],
|
|
199
|
+
'parent-is_accessory': value['parentIsAccessory'],
|
|
192
200
|
};
|
|
193
201
|
}
|
|
194
202
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetHierarchyProductCategoryRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface GetHierarchyProductCategoryRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GetHierarchyProductCategoryRequest
|
|
26
|
+
*/
|
|
27
|
+
siteId: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GetHierarchyProductCategoryRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfGetHierarchyProductCategoryRequest(value: object): value is GetHierarchyProductCategoryRequest {
|
|
34
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function GetHierarchyProductCategoryRequestFromJSON(json: any): GetHierarchyProductCategoryRequest {
|
|
39
|
+
return GetHierarchyProductCategoryRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function GetHierarchyProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHierarchyProductCategoryRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'siteId': json['site_id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function GetHierarchyProductCategoryRequestToJSON(json: any): GetHierarchyProductCategoryRequest {
|
|
53
|
+
return GetHierarchyProductCategoryRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function GetHierarchyProductCategoryRequestToJSONTyped(value?: GetHierarchyProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'site_id': value['siteId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -135,7 +135,9 @@ export type IndexProductCategoryRequestSortDirectionEnum = typeof IndexProductCa
|
|
|
135
135
|
*/
|
|
136
136
|
export const IndexProductCategoryRequestRelatedTypeEnum = {
|
|
137
137
|
Product: 'product',
|
|
138
|
-
ProductChildSiteDetail: 'productChildSiteDetail'
|
|
138
|
+
ProductChildSiteDetail: 'productChildSiteDetail',
|
|
139
|
+
Attribute: 'attribute',
|
|
140
|
+
AttributeValue: 'attributeValue'
|
|
139
141
|
} as const;
|
|
140
142
|
export type IndexProductCategoryRequestRelatedTypeEnum = typeof IndexProductCategoryRequestRelatedTypeEnum[keyof typeof IndexProductCategoryRequestRelatedTypeEnum];
|
|
141
143
|
|
|
@@ -85,6 +85,12 @@ 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>;
|
|
88
94
|
/**
|
|
89
95
|
*
|
|
90
96
|
* @type {number}
|
|
@@ -182,6 +188,7 @@ export function IndexProductChildRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
182
188
|
'categoryId': json['category-id'] == null ? undefined : json['category-id'],
|
|
183
189
|
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
184
190
|
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
191
|
+
'parentIsAccessory': json['parent-is_accessory'] == null ? undefined : json['parent-is_accessory'],
|
|
185
192
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
186
193
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
187
194
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -210,6 +217,7 @@ export function IndexProductChildRequestToJSONTyped(value?: IndexProductChildReq
|
|
|
210
217
|
'category-id': value['categoryId'],
|
|
211
218
|
'supplier-id': value['supplierId'],
|
|
212
219
|
'productType-id': value['productTypeId'],
|
|
220
|
+
'parent-is_accessory': value['parentIsAccessory'],
|
|
213
221
|
'related_id': value['relatedId'],
|
|
214
222
|
'related_type': value['relatedType'],
|
|
215
223
|
'includes_relations': value['includesRelations'],
|
|
@@ -31,12 +31,6 @@ export interface PreviewAutomationRulesResource {
|
|
|
31
31
|
* @memberof PreviewAutomationRulesResource
|
|
32
32
|
*/
|
|
33
33
|
tooComplex: boolean;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof PreviewAutomationRulesResource
|
|
38
|
-
*/
|
|
39
|
-
query?: string | null;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
36
|
/**
|
|
@@ -60,7 +54,6 @@ export function PreviewAutomationRulesResourceFromJSONTyped(json: any, ignoreDis
|
|
|
60
54
|
|
|
61
55
|
'count': json['count'],
|
|
62
56
|
'tooComplex': json['too_complex'],
|
|
63
|
-
'query': json['query'] == null ? undefined : json['query'],
|
|
64
57
|
};
|
|
65
58
|
}
|
|
66
59
|
|
|
@@ -77,7 +70,6 @@ export function PreviewAutomationRulesResourceToJSONTyped(value?: PreviewAutomat
|
|
|
77
70
|
|
|
78
71
|
'count': value['count'],
|
|
79
72
|
'too_complex': value['tooComplex'],
|
|
80
|
-
'query': value['query'],
|
|
81
73
|
};
|
|
82
74
|
}
|
|
83
75
|
|
|
@@ -21,10 +21,10 @@ import { mapValues } from '../runtime';
|
|
|
21
21
|
export interface ProductAggregationResource {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
|
-
* @type {object}
|
|
24
|
+
* @type {Array<object>}
|
|
25
25
|
* @memberof ProductAggregationResource
|
|
26
26
|
*/
|
|
27
|
-
attributes: object
|
|
27
|
+
attributes: Array<object>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {Array<object>}
|
|
@@ -145,6 +145,12 @@ export interface ProductCategoryResource {
|
|
|
145
145
|
* @memberof ProductCategoryResource
|
|
146
146
|
*/
|
|
147
147
|
descriptions: Array<DescriptionResource> | null;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {number}
|
|
151
|
+
* @memberof ProductCategoryResource
|
|
152
|
+
*/
|
|
153
|
+
linkedProductsCount: number;
|
|
148
154
|
}
|
|
149
155
|
|
|
150
156
|
/**
|
|
@@ -163,6 +169,7 @@ export function instanceOfProductCategoryResource(value: object): value is Produ
|
|
|
163
169
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
164
170
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
165
171
|
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
172
|
+
if (!('linkedProductsCount' in value) || value['linkedProductsCount'] === undefined) return false;
|
|
166
173
|
return true;
|
|
167
174
|
}
|
|
168
175
|
|
|
@@ -191,6 +198,7 @@ export function ProductCategoryResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
191
198
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
192
199
|
'seo': (json['seo'] == null ? null : (json['seo'] as Array<any>).map(SEOResourceFromJSON)),
|
|
193
200
|
'descriptions': (json['descriptions'] == null ? null : (json['descriptions'] as Array<any>).map(DescriptionResourceFromJSON)),
|
|
201
|
+
'linkedProductsCount': json['linkedProductsCount'],
|
|
194
202
|
};
|
|
195
203
|
}
|
|
196
204
|
|
|
@@ -220,6 +228,7 @@ export function ProductCategoryResourceToJSONTyped(value?: ProductCategoryResour
|
|
|
220
228
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
221
229
|
'seo': (value['seo'] == null ? null : (value['seo'] as Array<any>).map(SEOResourceToJSON)),
|
|
222
230
|
'descriptions': (value['descriptions'] == null ? null : (value['descriptions'] as Array<any>).map(DescriptionResourceToJSON)),
|
|
231
|
+
'linkedProductsCount': value['linkedProductsCount'],
|
|
223
232
|
};
|
|
224
233
|
}
|
|
225
234
|
|
|
@@ -70,6 +70,12 @@ export interface ProductChildResource {
|
|
|
70
70
|
* @memberof ProductChildResource
|
|
71
71
|
*/
|
|
72
72
|
warranty: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof ProductChildResource
|
|
77
|
+
*/
|
|
78
|
+
isWarrantyOverridden: boolean;
|
|
73
79
|
/**
|
|
74
80
|
*
|
|
75
81
|
* @type {number}
|
|
@@ -202,6 +208,7 @@ export function instanceOfProductChildResource(value: object): value is ProductC
|
|
|
202
208
|
if (!('modelNumber' in value) || value['modelNumber'] === undefined) return false;
|
|
203
209
|
if (!('weight' in value) || value['weight'] === undefined) return false;
|
|
204
210
|
if (!('warranty' in value) || value['warranty'] === undefined) return false;
|
|
211
|
+
if (!('isWarrantyOverridden' in value) || value['isWarrantyOverridden'] === undefined) return false;
|
|
205
212
|
if (!('stock' in value) || value['stock'] === undefined) return false;
|
|
206
213
|
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
207
214
|
if (!('buyPrice' in value) || value['buyPrice'] === undefined) return false;
|
|
@@ -238,6 +245,7 @@ export function ProductChildResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
238
245
|
'modelNumber': json['modelNumber'],
|
|
239
246
|
'weight': json['weight'],
|
|
240
247
|
'warranty': json['warranty'],
|
|
248
|
+
'isWarrantyOverridden': json['isWarrantyOverridden'],
|
|
241
249
|
'stock': json['stock'],
|
|
242
250
|
'sku': json['sku'],
|
|
243
251
|
'buyPrice': json['buyPrice'],
|
|
@@ -278,6 +286,7 @@ export function ProductChildResourceToJSONTyped(value?: ProductChildResource | n
|
|
|
278
286
|
'modelNumber': value['modelNumber'],
|
|
279
287
|
'weight': value['weight'],
|
|
280
288
|
'warranty': value['warranty'],
|
|
289
|
+
'isWarrantyOverridden': value['isWarrantyOverridden'],
|
|
281
290
|
'stock': value['stock'],
|
|
282
291
|
'sku': value['sku'],
|
|
283
292
|
'buyPrice': value['buyPrice'],
|
|
@@ -52,12 +52,24 @@ export interface ProductChildSiteDetailResource {
|
|
|
52
52
|
* @memberof ProductChildSiteDetailResource
|
|
53
53
|
*/
|
|
54
54
|
name: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof ProductChildSiteDetailResource
|
|
59
|
+
*/
|
|
60
|
+
isNameOverridden: boolean;
|
|
55
61
|
/**
|
|
56
62
|
*
|
|
57
63
|
* @type {string}
|
|
58
64
|
* @memberof ProductChildSiteDetailResource
|
|
59
65
|
*/
|
|
60
66
|
slug: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof ProductChildSiteDetailResource
|
|
71
|
+
*/
|
|
72
|
+
isSlugOverridden: boolean;
|
|
61
73
|
/**
|
|
62
74
|
*
|
|
63
75
|
* @type {string}
|
|
@@ -70,6 +82,12 @@ export interface ProductChildSiteDetailResource {
|
|
|
70
82
|
* @memberof ProductChildSiteDetailResource
|
|
71
83
|
*/
|
|
72
84
|
displayName: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof ProductChildSiteDetailResource
|
|
89
|
+
*/
|
|
90
|
+
isDisplayNameOverridden: boolean;
|
|
73
91
|
/**
|
|
74
92
|
*
|
|
75
93
|
* @type {number}
|
|
@@ -115,9 +133,12 @@ export function instanceOfProductChildSiteDetailResource(value: object): value i
|
|
|
115
133
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
116
134
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
117
135
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
136
|
+
if (!('isNameOverridden' in value) || value['isNameOverridden'] === undefined) return false;
|
|
118
137
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
138
|
+
if (!('isSlugOverridden' in value) || value['isSlugOverridden'] === undefined) return false;
|
|
119
139
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
120
140
|
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
141
|
+
if (!('isDisplayNameOverridden' in value) || value['isDisplayNameOverridden'] === undefined) return false;
|
|
121
142
|
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined) return false;
|
|
122
143
|
if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
|
|
123
144
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
|
|
@@ -138,9 +159,12 @@ export function ProductChildSiteDetailResourceFromJSONTyped(json: any, ignoreDis
|
|
|
138
159
|
'id': json['id'],
|
|
139
160
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
140
161
|
'name': json['name'],
|
|
162
|
+
'isNameOverridden': json['isNameOverridden'],
|
|
141
163
|
'slug': json['slug'],
|
|
164
|
+
'isSlugOverridden': json['isSlugOverridden'],
|
|
142
165
|
'description': json['description'],
|
|
143
166
|
'displayName': json['displayName'],
|
|
167
|
+
'isDisplayNameOverridden': json['isDisplayNameOverridden'],
|
|
144
168
|
'rrpPrice': json['rrpPrice'],
|
|
145
169
|
'salePrice': json['salePrice'],
|
|
146
170
|
'isDisabled': json['isDisabled'],
|
|
@@ -164,9 +188,12 @@ export function ProductChildSiteDetailResourceToJSONTyped(value?: ProductChildSi
|
|
|
164
188
|
'id': value['id'],
|
|
165
189
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
166
190
|
'name': value['name'],
|
|
191
|
+
'isNameOverridden': value['isNameOverridden'],
|
|
167
192
|
'slug': value['slug'],
|
|
193
|
+
'isSlugOverridden': value['isSlugOverridden'],
|
|
168
194
|
'description': value['description'],
|
|
169
195
|
'displayName': value['displayName'],
|
|
196
|
+
'isDisplayNameOverridden': value['isDisplayNameOverridden'],
|
|
170
197
|
'rrpPrice': value['rrpPrice'],
|
|
171
198
|
'salePrice': value['salePrice'],
|
|
172
199
|
'isDisabled': value['isDisabled'],
|
|
@@ -36,7 +36,7 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
38
38
|
*/
|
|
39
|
-
groupId
|
|
39
|
+
groupId?: number;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -51,10 +51,10 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
|
51
51
|
value?: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
|
-
* @type {
|
|
54
|
+
* @type {number}
|
|
55
55
|
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
valueId?: number;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
|
|
@@ -92,7 +92,6 @@ export type StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum =
|
|
|
92
92
|
export function instanceOfStoreProductCategoryRequestAutomationRulesInner(value: object): value is StoreProductCategoryRequestAutomationRulesInner {
|
|
93
93
|
if (!('fieldType' in value) || value['fieldType'] === undefined) return false;
|
|
94
94
|
if (!('comparisonType' in value) || value['comparisonType'] === undefined) return false;
|
|
95
|
-
if (!('groupId' in value) || value['groupId'] === undefined) return false;
|
|
96
95
|
return true;
|
|
97
96
|
}
|
|
98
97
|
|
|
@@ -108,10 +107,10 @@ export function StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped(jso
|
|
|
108
107
|
|
|
109
108
|
'fieldType': json['field_type'],
|
|
110
109
|
'comparisonType': json['comparison_type'],
|
|
111
|
-
'groupId': json['group_id'],
|
|
110
|
+
'groupId': json['group_id'] == null ? undefined : json['group_id'],
|
|
112
111
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
113
112
|
'value': json['value'] == null ? undefined : json['value'],
|
|
114
|
-
'
|
|
113
|
+
'valueId': json['value_id'] == null ? undefined : json['value_id'],
|
|
115
114
|
};
|
|
116
115
|
}
|
|
117
116
|
|
|
@@ -131,7 +130,7 @@ export function StoreProductCategoryRequestAutomationRulesInnerToJSONTyped(value
|
|
|
131
130
|
'group_id': value['groupId'],
|
|
132
131
|
'related_id': value['relatedId'],
|
|
133
132
|
'value': value['value'],
|
|
134
|
-
'
|
|
133
|
+
'value_id': value['valueId'],
|
|
135
134
|
};
|
|
136
135
|
}
|
|
137
136
|
|