@digital8/lighting-illusions-ts-sdk 0.0.992 → 0.0.993
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 +6 -0
- package/README.md +8 -3
- package/dist/apis/AttributeApi.d.ts +16 -1
- package/dist/apis/AttributeApi.js +58 -0
- 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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- 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/IndexAttributeValueRequest.d.ts +105 -0
- package/dist/models/IndexAttributeValueRequest.js +88 -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/PaginatedAttributeValueResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedAttributeValueResourceResponse.js +57 -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 +12 -0
- package/dist/models/UpdateProductChildRequest.js +6 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/AttributeApi.md +66 -0
- package/docs/CategoryAutomationRuleResource.md +3 -3
- package/docs/GetAllProductChildRequest.md +2 -0
- package/docs/GetHierarchyProductCategoryRequest.md +34 -0
- package/docs/IndexAttributeValueRequest.md +50 -0
- package/docs/IndexProductChildRequest.md +2 -0
- package/docs/PaginatedAttributeValueResourceResponse.md +36 -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 +4 -0
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +50 -0
- package/src/apis/ProductCategoryApi.ts +72 -6
- package/src/models/CategoryAutomationRuleResource.ts +6 -7
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllProductChildRequest.ts +8 -0
- package/src/models/GetHierarchyProductCategoryRequest.ts +66 -0
- package/src/models/IndexAttributeValueRequest.ts +159 -0
- package/src/models/IndexProductCategoryRequest.ts +3 -1
- package/src/models/IndexProductChildRequest.ts +8 -0
- package/src/models/PaginatedAttributeValueResourceResponse.ts +90 -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 +17 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IndexAttributeValueRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IndexAttributeValueRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndexAttributeValueRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {IndexAttributeValueRequestSortByEnum}
|
|
27
|
+
* @memberof IndexAttributeValueRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: IndexAttributeValueRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {IndexAttributeValueRequestSortDirectionEnum}
|
|
33
|
+
* @memberof IndexAttributeValueRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: IndexAttributeValueRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IndexAttributeValueRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof IndexAttributeValueRequest
|
|
46
|
+
*/
|
|
47
|
+
page?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof IndexAttributeValueRequest
|
|
52
|
+
*/
|
|
53
|
+
attributeId?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof IndexAttributeValueRequest
|
|
58
|
+
*/
|
|
59
|
+
relatedId?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {IndexAttributeValueRequestRelatedTypeEnum}
|
|
63
|
+
* @memberof IndexAttributeValueRequest
|
|
64
|
+
*/
|
|
65
|
+
relatedType?: IndexAttributeValueRequestRelatedTypeEnum;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof IndexAttributeValueRequest
|
|
70
|
+
*/
|
|
71
|
+
includesRelations?: boolean;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export declare const IndexAttributeValueRequestSortByEnum: {
|
|
77
|
+
readonly Id: "id";
|
|
78
|
+
readonly Value: "value";
|
|
79
|
+
readonly CreatedAt: "created_at";
|
|
80
|
+
readonly UpdatedAt: "updated_at";
|
|
81
|
+
};
|
|
82
|
+
export type IndexAttributeValueRequestSortByEnum = typeof IndexAttributeValueRequestSortByEnum[keyof typeof IndexAttributeValueRequestSortByEnum];
|
|
83
|
+
/**
|
|
84
|
+
* @export
|
|
85
|
+
*/
|
|
86
|
+
export declare const IndexAttributeValueRequestSortDirectionEnum: {
|
|
87
|
+
readonly Asc: "asc";
|
|
88
|
+
readonly Desc: "desc";
|
|
89
|
+
};
|
|
90
|
+
export type IndexAttributeValueRequestSortDirectionEnum = typeof IndexAttributeValueRequestSortDirectionEnum[keyof typeof IndexAttributeValueRequestSortDirectionEnum];
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export declare const IndexAttributeValueRequestRelatedTypeEnum: {
|
|
95
|
+
readonly Attribute: "attribute";
|
|
96
|
+
};
|
|
97
|
+
export type IndexAttributeValueRequestRelatedTypeEnum = typeof IndexAttributeValueRequestRelatedTypeEnum[keyof typeof IndexAttributeValueRequestRelatedTypeEnum];
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the IndexAttributeValueRequest interface.
|
|
100
|
+
*/
|
|
101
|
+
export declare function instanceOfIndexAttributeValueRequest(value: object): value is IndexAttributeValueRequest;
|
|
102
|
+
export declare function IndexAttributeValueRequestFromJSON(json: any): IndexAttributeValueRequest;
|
|
103
|
+
export declare function IndexAttributeValueRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexAttributeValueRequest;
|
|
104
|
+
export declare function IndexAttributeValueRequestToJSON(json: any): IndexAttributeValueRequest;
|
|
105
|
+
export declare function IndexAttributeValueRequestToJSONTyped(value?: IndexAttributeValueRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.IndexAttributeValueRequestRelatedTypeEnum = exports.IndexAttributeValueRequestSortDirectionEnum = exports.IndexAttributeValueRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfIndexAttributeValueRequest = instanceOfIndexAttributeValueRequest;
|
|
18
|
+
exports.IndexAttributeValueRequestFromJSON = IndexAttributeValueRequestFromJSON;
|
|
19
|
+
exports.IndexAttributeValueRequestFromJSONTyped = IndexAttributeValueRequestFromJSONTyped;
|
|
20
|
+
exports.IndexAttributeValueRequestToJSON = IndexAttributeValueRequestToJSON;
|
|
21
|
+
exports.IndexAttributeValueRequestToJSONTyped = IndexAttributeValueRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.IndexAttributeValueRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
Value: 'value',
|
|
28
|
+
CreatedAt: 'created_at',
|
|
29
|
+
UpdatedAt: 'updated_at'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.IndexAttributeValueRequestSortDirectionEnum = {
|
|
35
|
+
Asc: 'asc',
|
|
36
|
+
Desc: 'desc'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
exports.IndexAttributeValueRequestRelatedTypeEnum = {
|
|
42
|
+
Attribute: 'attribute'
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the IndexAttributeValueRequest interface.
|
|
46
|
+
*/
|
|
47
|
+
function instanceOfIndexAttributeValueRequest(value) {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function IndexAttributeValueRequestFromJSON(json) {
|
|
51
|
+
return IndexAttributeValueRequestFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function IndexAttributeValueRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
59
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
60
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
61
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
62
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
63
|
+
'attributeId': json['attribute_id'] == null ? undefined : json['attribute_id'],
|
|
64
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
65
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
66
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function IndexAttributeValueRequestToJSON(json) {
|
|
70
|
+
return IndexAttributeValueRequestToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
function IndexAttributeValueRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
73
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'search': value['search'],
|
|
79
|
+
'sortBy': value['sortBy'],
|
|
80
|
+
'sortDirection': value['sortDirection'],
|
|
81
|
+
'per_page': value['perPage'],
|
|
82
|
+
'page': value['page'],
|
|
83
|
+
'attribute_id': value['attributeId'],
|
|
84
|
+
'related_id': value['relatedId'],
|
|
85
|
+
'related_type': value['relatedType'],
|
|
86
|
+
'includes_relations': value['includesRelations'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -128,6 +128,8 @@ export type IndexProductCategoryRequestSortDirectionEnum = typeof IndexProductCa
|
|
|
128
128
|
export declare const IndexProductCategoryRequestRelatedTypeEnum: {
|
|
129
129
|
readonly Product: "product";
|
|
130
130
|
readonly ProductChildSiteDetail: "productChildSiteDetail";
|
|
131
|
+
readonly Attribute: "attribute";
|
|
132
|
+
readonly AttributeValue: "attributeValue";
|
|
131
133
|
};
|
|
132
134
|
export type IndexProductCategoryRequestRelatedTypeEnum = typeof IndexProductCategoryRequestRelatedTypeEnum[keyof typeof IndexProductCategoryRequestRelatedTypeEnum];
|
|
133
135
|
/**
|
|
@@ -44,7 +44,9 @@ exports.IndexProductCategoryRequestSortDirectionEnum = {
|
|
|
44
44
|
*/
|
|
45
45
|
exports.IndexProductCategoryRequestRelatedTypeEnum = {
|
|
46
46
|
Product: 'product',
|
|
47
|
-
ProductChildSiteDetail: 'productChildSiteDetail'
|
|
47
|
+
ProductChildSiteDetail: 'productChildSiteDetail',
|
|
48
|
+
Attribute: 'attribute',
|
|
49
|
+
AttributeValue: 'attributeValue'
|
|
48
50
|
};
|
|
49
51
|
/**
|
|
50
52
|
* Check if a given object implements the IndexProductCategoryRequest interface.
|
|
@@ -81,6 +81,12 @@ export interface IndexProductChildRequest {
|
|
|
81
81
|
* @memberof IndexProductChildRequest
|
|
82
82
|
*/
|
|
83
83
|
productTypeId?: Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<string>}
|
|
87
|
+
* @memberof IndexProductChildRequest
|
|
88
|
+
*/
|
|
89
|
+
parentIsAccessory?: Array<string>;
|
|
84
90
|
/**
|
|
85
91
|
*
|
|
86
92
|
* @type {number}
|
|
@@ -85,6 +85,7 @@ function IndexProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
85
85
|
'categoryId': json['category-id'] == null ? undefined : json['category-id'],
|
|
86
86
|
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
87
87
|
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
88
|
+
'parentIsAccessory': json['parent-is_accessory'] == null ? undefined : json['parent-is_accessory'],
|
|
88
89
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
89
90
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
90
91
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -110,6 +111,7 @@ function IndexProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
110
111
|
'category-id': value['categoryId'],
|
|
111
112
|
'supplier-id': value['supplierId'],
|
|
112
113
|
'productType-id': value['productTypeId'],
|
|
114
|
+
'parent-is_accessory': value['parentIsAccessory'],
|
|
113
115
|
'related_id': value['relatedId'],
|
|
114
116
|
'related_type': value['relatedType'],
|
|
115
117
|
'includes_relations': value['includesRelations'],
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AttributeValueResource } from './AttributeValueResource';
|
|
13
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedAttributeValueResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedAttributeValueResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<AttributeValueResource>}
|
|
23
|
+
* @memberof PaginatedAttributeValueResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<AttributeValueResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedAttributeValueResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedAttributeValueResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedAttributeValueResourceResponse(value: object): value is PaginatedAttributeValueResourceResponse;
|
|
37
|
+
export declare function PaginatedAttributeValueResourceResponseFromJSON(json: any): PaginatedAttributeValueResourceResponse;
|
|
38
|
+
export declare function PaginatedAttributeValueResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAttributeValueResourceResponse;
|
|
39
|
+
export declare function PaginatedAttributeValueResourceResponseToJSON(json: any): PaginatedAttributeValueResourceResponse;
|
|
40
|
+
export declare function PaginatedAttributeValueResourceResponseToJSONTyped(value?: PaginatedAttributeValueResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedAttributeValueResourceResponse = instanceOfPaginatedAttributeValueResourceResponse;
|
|
17
|
+
exports.PaginatedAttributeValueResourceResponseFromJSON = PaginatedAttributeValueResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedAttributeValueResourceResponseFromJSONTyped = PaginatedAttributeValueResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedAttributeValueResourceResponseToJSON = PaginatedAttributeValueResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedAttributeValueResourceResponseToJSONTyped = PaginatedAttributeValueResourceResponseToJSONTyped;
|
|
21
|
+
var AttributeValueResource_1 = require("./AttributeValueResource");
|
|
22
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedAttributeValueResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedAttributeValueResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedAttributeValueResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedAttributeValueResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedAttributeValueResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(AttributeValueResource_1.AttributeValueResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedAttributeValueResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedAttributeValueResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedAttributeValueResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(AttributeValueResource_1.AttributeValueResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -27,12 +27,6 @@ export interface PreviewAutomationRulesResource {
|
|
|
27
27
|
* @memberof PreviewAutomationRulesResource
|
|
28
28
|
*/
|
|
29
29
|
tooComplex: boolean;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof PreviewAutomationRulesResource
|
|
34
|
-
*/
|
|
35
|
-
query?: string | null;
|
|
36
30
|
}
|
|
37
31
|
/**
|
|
38
32
|
* Check if a given object implements the PreviewAutomationRulesResource interface.
|
|
@@ -38,7 +38,6 @@ function PreviewAutomationRulesResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
38
38
|
return {
|
|
39
39
|
'count': json['count'],
|
|
40
40
|
'tooComplex': json['too_complex'],
|
|
41
|
-
'query': json['query'] == null ? undefined : json['query'],
|
|
42
41
|
};
|
|
43
42
|
}
|
|
44
43
|
function PreviewAutomationRulesResourceToJSON(json) {
|
|
@@ -52,6 +51,5 @@ function PreviewAutomationRulesResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
52
51
|
return {
|
|
53
52
|
'count': value['count'],
|
|
54
53
|
'too_complex': value['tooComplex'],
|
|
55
|
-
'query': value['query'],
|
|
56
54
|
};
|
|
57
55
|
}
|
|
@@ -110,6 +110,12 @@ export interface ProductCategoryResource {
|
|
|
110
110
|
* @memberof ProductCategoryResource
|
|
111
111
|
*/
|
|
112
112
|
descriptions: Array<DescriptionResource> | null;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {number}
|
|
116
|
+
* @memberof ProductCategoryResource
|
|
117
|
+
*/
|
|
118
|
+
linkedProductsCount: number;
|
|
113
119
|
}
|
|
114
120
|
/**
|
|
115
121
|
* Check if a given object implements the ProductCategoryResource interface.
|
|
@@ -51,6 +51,8 @@ function instanceOfProductCategoryResource(value) {
|
|
|
51
51
|
return false;
|
|
52
52
|
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
53
53
|
return false;
|
|
54
|
+
if (!('linkedProductsCount' in value) || value['linkedProductsCount'] === undefined)
|
|
55
|
+
return false;
|
|
54
56
|
return true;
|
|
55
57
|
}
|
|
56
58
|
function ProductCategoryResourceFromJSON(json) {
|
|
@@ -76,6 +78,7 @@ function ProductCategoryResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
78
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
77
79
|
'seo': (json['seo'] == null ? null : json['seo'].map(SEOResource_1.SEOResourceFromJSON)),
|
|
78
80
|
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
81
|
+
'linkedProductsCount': json['linkedProductsCount'],
|
|
79
82
|
};
|
|
80
83
|
}
|
|
81
84
|
function ProductCategoryResourceToJSON(json) {
|
|
@@ -102,5 +105,6 @@ function ProductCategoryResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
102
105
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
103
106
|
'seo': (value['seo'] == null ? null : value['seo'].map(SEOResource_1.SEOResourceToJSON)),
|
|
104
107
|
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
108
|
+
'linkedProductsCount': value['linkedProductsCount'],
|
|
105
109
|
};
|
|
106
110
|
}
|
|
@@ -36,6 +36,8 @@ function instanceOfProductChildResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('warranty' in value) || value['warranty'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('isWarrantyOverridden' in value) || value['isWarrantyOverridden'] === undefined)
|
|
40
|
+
return false;
|
|
39
41
|
if (!('stock' in value) || value['stock'] === undefined)
|
|
40
42
|
return false;
|
|
41
43
|
if (!('sku' in value) || value['sku'] === undefined)
|
|
@@ -86,6 +88,7 @@ function ProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
86
88
|
'modelNumber': json['modelNumber'],
|
|
87
89
|
'weight': json['weight'],
|
|
88
90
|
'warranty': json['warranty'],
|
|
91
|
+
'isWarrantyOverridden': json['isWarrantyOverridden'],
|
|
89
92
|
'stock': json['stock'],
|
|
90
93
|
'sku': json['sku'],
|
|
91
94
|
'buyPrice': json['buyPrice'],
|
|
@@ -123,6 +126,7 @@ function ProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
123
126
|
'modelNumber': value['modelNumber'],
|
|
124
127
|
'weight': value['weight'],
|
|
125
128
|
'warranty': value['warranty'],
|
|
129
|
+
'isWarrantyOverridden': value['isWarrantyOverridden'],
|
|
126
130
|
'stock': value['stock'],
|
|
127
131
|
'sku': value['sku'],
|
|
128
132
|
'buyPrice': value['buyPrice'],
|
|
@@ -35,12 +35,24 @@ export interface ProductChildSiteDetailResource {
|
|
|
35
35
|
* @memberof ProductChildSiteDetailResource
|
|
36
36
|
*/
|
|
37
37
|
name: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof ProductChildSiteDetailResource
|
|
42
|
+
*/
|
|
43
|
+
isNameOverridden: boolean;
|
|
38
44
|
/**
|
|
39
45
|
*
|
|
40
46
|
* @type {string}
|
|
41
47
|
* @memberof ProductChildSiteDetailResource
|
|
42
48
|
*/
|
|
43
49
|
slug: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
* @memberof ProductChildSiteDetailResource
|
|
54
|
+
*/
|
|
55
|
+
isSlugOverridden: boolean;
|
|
44
56
|
/**
|
|
45
57
|
*
|
|
46
58
|
* @type {string}
|
|
@@ -53,6 +65,12 @@ export interface ProductChildSiteDetailResource {
|
|
|
53
65
|
* @memberof ProductChildSiteDetailResource
|
|
54
66
|
*/
|
|
55
67
|
displayName: string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof ProductChildSiteDetailResource
|
|
72
|
+
*/
|
|
73
|
+
isDisplayNameOverridden: boolean;
|
|
56
74
|
/**
|
|
57
75
|
*
|
|
58
76
|
* @type {number}
|
|
@@ -30,12 +30,18 @@ function instanceOfProductChildSiteDetailResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('name' in value) || value['name'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('isNameOverridden' in value) || value['isNameOverridden'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('slug' in value) || value['slug'] === undefined)
|
|
34
36
|
return false;
|
|
37
|
+
if (!('isSlugOverridden' in value) || value['isSlugOverridden'] === undefined)
|
|
38
|
+
return false;
|
|
35
39
|
if (!('description' in value) || value['description'] === undefined)
|
|
36
40
|
return false;
|
|
37
41
|
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
38
42
|
return false;
|
|
43
|
+
if (!('isDisplayNameOverridden' in value) || value['isDisplayNameOverridden'] === undefined)
|
|
44
|
+
return false;
|
|
39
45
|
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined)
|
|
40
46
|
return false;
|
|
41
47
|
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
@@ -57,9 +63,12 @@ function ProductChildSiteDetailResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
57
63
|
'id': json['id'],
|
|
58
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
59
65
|
'name': json['name'],
|
|
66
|
+
'isNameOverridden': json['isNameOverridden'],
|
|
60
67
|
'slug': json['slug'],
|
|
68
|
+
'isSlugOverridden': json['isSlugOverridden'],
|
|
61
69
|
'description': json['description'],
|
|
62
70
|
'displayName': json['displayName'],
|
|
71
|
+
'isDisplayNameOverridden': json['isDisplayNameOverridden'],
|
|
63
72
|
'rrpPrice': json['rrpPrice'],
|
|
64
73
|
'salePrice': json['salePrice'],
|
|
65
74
|
'isDisabled': json['isDisabled'],
|
|
@@ -80,9 +89,12 @@ function ProductChildSiteDetailResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
80
89
|
'id': value['id'],
|
|
81
90
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
82
91
|
'name': value['name'],
|
|
92
|
+
'isNameOverridden': value['isNameOverridden'],
|
|
83
93
|
'slug': value['slug'],
|
|
94
|
+
'isSlugOverridden': value['isSlugOverridden'],
|
|
84
95
|
'description': value['description'],
|
|
85
96
|
'displayName': value['displayName'],
|
|
97
|
+
'isDisplayNameOverridden': value['isDisplayNameOverridden'],
|
|
86
98
|
'rrpPrice': value['rrpPrice'],
|
|
87
99
|
'salePrice': value['salePrice'],
|
|
88
100
|
'isDisabled': value['isDisabled'],
|
|
@@ -32,7 +32,7 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
34
34
|
*/
|
|
35
|
-
groupId
|
|
35
|
+
groupId?: number;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
@@ -47,10 +47,10 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
|
47
47
|
value?: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {number}
|
|
51
51
|
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
valueId?: number;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* @export
|
|
@@ -50,8 +50,6 @@ function instanceOfStoreProductCategoryRequestAutomationRulesInner(value) {
|
|
|
50
50
|
return false;
|
|
51
51
|
if (!('comparisonType' in value) || value['comparisonType'] === undefined)
|
|
52
52
|
return false;
|
|
53
|
-
if (!('groupId' in value) || value['groupId'] === undefined)
|
|
54
|
-
return false;
|
|
55
53
|
return true;
|
|
56
54
|
}
|
|
57
55
|
function StoreProductCategoryRequestAutomationRulesInnerFromJSON(json) {
|
|
@@ -64,10 +62,10 @@ function StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped(json, igno
|
|
|
64
62
|
return {
|
|
65
63
|
'fieldType': json['field_type'],
|
|
66
64
|
'comparisonType': json['comparison_type'],
|
|
67
|
-
'groupId': json['group_id'],
|
|
65
|
+
'groupId': json['group_id'] == null ? undefined : json['group_id'],
|
|
68
66
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
69
67
|
'value': json['value'] == null ? undefined : json['value'],
|
|
70
|
-
'
|
|
68
|
+
'valueId': json['value_id'] == null ? undefined : json['value_id'],
|
|
71
69
|
};
|
|
72
70
|
}
|
|
73
71
|
function StoreProductCategoryRequestAutomationRulesInnerToJSON(json) {
|
|
@@ -84,6 +82,6 @@ function StoreProductCategoryRequestAutomationRulesInnerToJSONTyped(value, ignor
|
|
|
84
82
|
'group_id': value['groupId'],
|
|
85
83
|
'related_id': value['relatedId'],
|
|
86
84
|
'value': value['value'],
|
|
87
|
-
'
|
|
85
|
+
'value_id': value['valueId'],
|
|
88
86
|
};
|
|
89
87
|
}
|
|
@@ -60,6 +60,12 @@ export interface StoreProductChildRequest {
|
|
|
60
60
|
* @memberof StoreProductChildRequest
|
|
61
61
|
*/
|
|
62
62
|
warranty?: string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
* @memberof StoreProductChildRequest
|
|
67
|
+
*/
|
|
68
|
+
isWarrantyOverridden: boolean;
|
|
63
69
|
/**
|
|
64
70
|
*
|
|
65
71
|
* @type {boolean}
|
|
@@ -119,7 +125,7 @@ export interface StoreProductChildRequest {
|
|
|
119
125
|
* @type {Array<StoreProductChildRequestAttributeValuesInner>}
|
|
120
126
|
* @memberof StoreProductChildRequest
|
|
121
127
|
*/
|
|
122
|
-
attributeValues
|
|
128
|
+
attributeValues?: Array<StoreProductChildRequestAttributeValuesInner>;
|
|
123
129
|
/**
|
|
124
130
|
*
|
|
125
131
|
* @type {Array<StoreProductChildRequestAssetsInner>}
|