@digital8/lighting-illusions-ts-sdk 0.0.533 → 0.0.535
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 +4 -28
- package/README.md +4 -16
- package/dist/models/ProductCategoryResource.d.ts +14 -0
- package/dist/models/ProductCategoryResource.js +10 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +15 -9
- package/dist/models/StoreProductCategoryRequest.js +6 -8
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +2 -27
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +0 -24
- package/dist/models/StoreProductCategoryRequestDescriptionsInner.d.ts +44 -0
- package/dist/models/StoreProductCategoryRequestDescriptionsInner.js +55 -0
- package/dist/models/StoreProductCategoryRequestSeoInner.d.ts +44 -0
- package/dist/models/StoreProductCategoryRequestSeoInner.js +55 -0
- package/dist/models/StoreProductChildRequest.d.ts +1 -1
- package/dist/models/StoreProductChildRequest.js +3 -1
- package/dist/models/StoreProductChildRequestSitesInner.d.ts +1 -1
- package/dist/models/StoreProductChildRequestSitesInner.js +3 -1
- package/dist/models/StoreSupplierRequest.d.ts +6 -6
- package/dist/models/StoreSupplierRequest.js +6 -6
- package/dist/models/UpdateProductCategoryRequest.d.ts +16 -10
- package/dist/models/UpdateProductCategoryRequest.js +9 -9
- package/dist/models/UpdateSupplierRequest.d.ts +6 -6
- package/dist/models/UpdateSupplierRequest.js +6 -6
- package/dist/models/index.d.ts +2 -14
- package/dist/models/index.js +2 -14
- package/docs/ProductCategoryResource.md +4 -0
- package/docs/StoreProductCategoryRequest.md +4 -0
- package/docs/{StoreSupplierRequestDescriptionsInner.md → StoreProductCategoryRequestDescriptionsInner.md} +4 -4
- package/docs/{StoreSupplierRequestSeoInner.md → StoreProductCategoryRequestSeoInner.md} +4 -4
- package/docs/StoreSupplierRequest.md +2 -2
- package/docs/UpdateProductCategoryRequest.md +4 -0
- package/docs/UpdateSupplierRequest.md +2 -2
- package/package.json +1 -1
- package/src/models/ProductCategoryResource.ts +32 -0
- package/src/models/StoreProductCategoryRequest.ts +31 -12
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +2 -31
- package/src/models/StoreProductCategoryRequestDescriptionsInner.ts +82 -0
- package/src/models/{StoreSupplierRequestSeoInner.ts → StoreProductCategoryRequestSeoInner.ts} +13 -13
- package/src/models/StoreProductChildRequest.ts +3 -2
- package/src/models/StoreProductChildRequestSitesInner.ts +3 -2
- package/src/models/StoreSupplierRequest.ts +20 -20
- package/src/models/UpdateProductCategoryRequest.ts +34 -14
- package/src/models/UpdateSupplierRequest.ts +20 -20
- package/src/models/index.ts +2 -14
- package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductSearchResultResourceResponse.js +0 -57
- package/dist/models/ProductAggregationResource.d.ts +0 -50
- package/dist/models/ProductAggregationResource.js +0 -63
- package/dist/models/ProductAggregationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductAggregationResourceArrayResponse.js +0 -50
- package/dist/models/ProductRating.d.ts +0 -26
- package/dist/models/ProductRating.js +0 -52
- package/dist/models/ProductSearchResponseResource.d.ts +0 -54
- package/dist/models/ProductSearchResponseResource.js +0 -67
- package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductSearchResponseResourceArrayResponse.js +0 -50
- package/dist/models/ProductSearchResponseResourceMeta.d.ts +0 -50
- package/dist/models/ProductSearchResponseResourceMeta.js +0 -63
- package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +0 -50
- package/dist/models/ProductSearchResponseResourcePriceInfo.js +0 -63
- package/dist/models/ProductSearchResultResource.d.ts +0 -116
- package/dist/models/ProductSearchResultResource.js +0 -105
- package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductSearchResultResourceArrayResponse.js +0 -50
- package/dist/models/ProductSortBy.d.ts +0 -32
- package/dist/models/ProductSortBy.js +0 -58
- package/dist/models/ProductStatus.d.ts +0 -24
- package/dist/models/ProductStatus.js +0 -50
- package/dist/models/StoreSupplierRequestDescriptionsInner.d.ts +0 -44
- package/dist/models/StoreSupplierRequestDescriptionsInner.js +0 -55
- package/dist/models/StoreSupplierRequestSeoInner.d.ts +0 -44
- package/dist/models/StoreSupplierRequestSeoInner.js +0 -55
- package/docs/PaginatedProductSearchResultResourceResponse.md +0 -36
- package/docs/ProductAggregationResource.md +0 -40
- package/docs/ProductAggregationResourceArrayResponse.md +0 -34
- package/docs/ProductRating.md +0 -32
- package/docs/ProductSearchResponseResource.md +0 -40
- package/docs/ProductSearchResponseResourceArrayResponse.md +0 -34
- package/docs/ProductSearchResponseResourceMeta.md +0 -40
- package/docs/ProductSearchResponseResourcePriceInfo.md +0 -40
- package/docs/ProductSearchResultResource.md +0 -62
- package/docs/ProductSearchResultResourceArrayResponse.md +0 -34
- package/docs/ProductSortBy.md +0 -32
- package/docs/ProductStatus.md +0 -32
- package/src/models/PaginatedProductSearchResultResourceResponse.ts +0 -90
- package/src/models/ProductAggregationResource.ts +0 -93
- package/src/models/ProductAggregationResourceArrayResponse.ts +0 -73
- package/src/models/ProductRating.ts +0 -54
- package/src/models/ProductSearchResponseResource.ts +0 -122
- package/src/models/ProductSearchResponseResourceArrayResponse.ts +0 -73
- package/src/models/ProductSearchResponseResourceMeta.ts +0 -93
- package/src/models/ProductSearchResponseResourcePriceInfo.ts +0 -93
- package/src/models/ProductSearchResultResource.ts +0 -191
- package/src/models/ProductSearchResultResourceArrayResponse.ts +0 -73
- package/src/models/ProductSortBy.ts +0 -60
- package/src/models/ProductStatus.ts +0 -52
- package/src/models/StoreSupplierRequestDescriptionsInner.ts +0 -82
|
@@ -24,6 +24,8 @@ exports.StoreProductChildRequestSitesInnerToJSONTyped = StoreProductChildRequest
|
|
|
24
24
|
function instanceOfStoreProductChildRequestSitesInner(value) {
|
|
25
25
|
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('description' in value) || value['description'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreProductChildRequestSitesInnerFromJSONTyped(json, ignoreDiscriminat
|
|
|
45
47
|
}
|
|
46
48
|
return {
|
|
47
49
|
'siteId': json['site_id'],
|
|
48
|
-
'name': json['name']
|
|
50
|
+
'name': json['name'],
|
|
49
51
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
50
52
|
'description': json['description'],
|
|
51
53
|
'rrpPrice': json['rrp_price'],
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
12
|
+
import type { StoreProductCategoryRequestSeoInner } from './StoreProductCategoryRequestSeoInner';
|
|
13
|
+
import type { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -37,10 +37,10 @@ export interface StoreSupplierRequest {
|
|
|
37
37
|
supplierEta: number;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
|
-
* @type {Array<
|
|
40
|
+
* @type {Array<StoreProductCategoryRequestSeoInner>}
|
|
41
41
|
* @memberof StoreSupplierRequest
|
|
42
42
|
*/
|
|
43
|
-
seo: Array<
|
|
43
|
+
seo: Array<StoreProductCategoryRequestSeoInner>;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @type {string}
|
|
@@ -61,10 +61,10 @@ export interface StoreSupplierRequest {
|
|
|
61
61
|
fileId: number;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
|
-
* @type {Array<
|
|
64
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
65
65
|
* @memberof StoreSupplierRequest
|
|
66
66
|
*/
|
|
67
|
-
descriptions: Array<
|
|
67
|
+
descriptions: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* Check if a given object implements the StoreSupplierRequest interface.
|
|
@@ -18,8 +18,8 @@ exports.StoreSupplierRequestFromJSON = StoreSupplierRequestFromJSON;
|
|
|
18
18
|
exports.StoreSupplierRequestFromJSONTyped = StoreSupplierRequestFromJSONTyped;
|
|
19
19
|
exports.StoreSupplierRequestToJSON = StoreSupplierRequestToJSON;
|
|
20
20
|
exports.StoreSupplierRequestToJSONTyped = StoreSupplierRequestToJSONTyped;
|
|
21
|
-
var
|
|
22
|
-
var
|
|
21
|
+
var StoreProductCategoryRequestSeoInner_1 = require("./StoreProductCategoryRequestSeoInner");
|
|
22
|
+
var StoreProductCategoryRequestDescriptionsInner_1 = require("./StoreProductCategoryRequestDescriptionsInner");
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the StoreSupplierRequest interface.
|
|
25
25
|
*/
|
|
@@ -51,11 +51,11 @@ function StoreSupplierRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'name': json['name'],
|
|
52
52
|
'slug': json['slug'],
|
|
53
53
|
'supplierEta': json['supplier_eta'],
|
|
54
|
-
'seo': (json['seo'].map(
|
|
54
|
+
'seo': (json['seo'].map(StoreProductCategoryRequestSeoInner_1.StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
55
55
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
56
56
|
'mimeType': json['mime_type'],
|
|
57
57
|
'fileId': json['file_id'],
|
|
58
|
-
'descriptions': (json['descriptions'].map(
|
|
58
|
+
'descriptions': (json['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
function StoreSupplierRequestToJSON(json) {
|
|
@@ -70,10 +70,10 @@ function StoreSupplierRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
70
70
|
'name': value['name'],
|
|
71
71
|
'slug': value['slug'],
|
|
72
72
|
'supplier_eta': value['supplierEta'],
|
|
73
|
-
'seo': (value['seo'].map(
|
|
73
|
+
'seo': (value['seo'].map(StoreProductCategoryRequestSeoInner_1.StoreProductCategoryRequestSeoInnerToJSON)),
|
|
74
74
|
'alt_text': value['altText'],
|
|
75
75
|
'mime_type': value['mimeType'],
|
|
76
76
|
'file_id': value['fileId'],
|
|
77
|
-
'descriptions': (value['descriptions'].map(
|
|
77
|
+
'descriptions': (value['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
78
78
|
};
|
|
79
79
|
}
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { StoreProductCategoryRequestSeoInner } from './StoreProductCategoryRequestSeoInner';
|
|
13
|
+
import type { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
12
14
|
import type { StoreProductCategoryRequestAutomationRulesInner } from './StoreProductCategoryRequestAutomationRulesInner';
|
|
13
15
|
/**
|
|
14
16
|
*
|
|
@@ -21,7 +23,7 @@ export interface UpdateProductCategoryRequest {
|
|
|
21
23
|
* @type {string}
|
|
22
24
|
* @memberof UpdateProductCategoryRequest
|
|
23
25
|
*/
|
|
24
|
-
siteId
|
|
26
|
+
siteId: string;
|
|
25
27
|
/**
|
|
26
28
|
*
|
|
27
29
|
* @type {string}
|
|
@@ -69,7 +71,7 @@ export interface UpdateProductCategoryRequest {
|
|
|
69
71
|
* @type {string}
|
|
70
72
|
* @memberof UpdateProductCategoryRequest
|
|
71
73
|
*/
|
|
72
|
-
automatedConditionType?:
|
|
74
|
+
automatedConditionType?: string;
|
|
73
75
|
/**
|
|
74
76
|
*
|
|
75
77
|
* @type {Array<StoreProductCategoryRequestAutomationRulesInner>}
|
|
@@ -94,15 +96,19 @@ export interface UpdateProductCategoryRequest {
|
|
|
94
96
|
* @memberof UpdateProductCategoryRequest
|
|
95
97
|
*/
|
|
96
98
|
fileId?: number;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {Array<StoreProductCategoryRequestSeoInner>}
|
|
102
|
+
* @memberof UpdateProductCategoryRequest
|
|
103
|
+
*/
|
|
104
|
+
seo?: Array<StoreProductCategoryRequestSeoInner>;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
108
|
+
* @memberof UpdateProductCategoryRequest
|
|
109
|
+
*/
|
|
110
|
+
descriptions?: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
97
111
|
}
|
|
98
|
-
/**
|
|
99
|
-
* @export
|
|
100
|
-
*/
|
|
101
|
-
export declare const UpdateProductCategoryRequestAutomatedConditionTypeEnum: {
|
|
102
|
-
readonly And: "and";
|
|
103
|
-
readonly Or: "or";
|
|
104
|
-
};
|
|
105
|
-
export type UpdateProductCategoryRequestAutomatedConditionTypeEnum = typeof UpdateProductCategoryRequestAutomatedConditionTypeEnum[keyof typeof UpdateProductCategoryRequestAutomatedConditionTypeEnum];
|
|
106
112
|
/**
|
|
107
113
|
* Check if a given object implements the UpdateProductCategoryRequest interface.
|
|
108
114
|
*/
|
|
@@ -13,24 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UpdateProductCategoryRequestAutomatedConditionTypeEnum = void 0;
|
|
17
16
|
exports.instanceOfUpdateProductCategoryRequest = instanceOfUpdateProductCategoryRequest;
|
|
18
17
|
exports.UpdateProductCategoryRequestFromJSON = UpdateProductCategoryRequestFromJSON;
|
|
19
18
|
exports.UpdateProductCategoryRequestFromJSONTyped = UpdateProductCategoryRequestFromJSONTyped;
|
|
20
19
|
exports.UpdateProductCategoryRequestToJSON = UpdateProductCategoryRequestToJSON;
|
|
21
20
|
exports.UpdateProductCategoryRequestToJSONTyped = UpdateProductCategoryRequestToJSONTyped;
|
|
21
|
+
var StoreProductCategoryRequestSeoInner_1 = require("./StoreProductCategoryRequestSeoInner");
|
|
22
|
+
var StoreProductCategoryRequestDescriptionsInner_1 = require("./StoreProductCategoryRequestDescriptionsInner");
|
|
22
23
|
var StoreProductCategoryRequestAutomationRulesInner_1 = require("./StoreProductCategoryRequestAutomationRulesInner");
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.UpdateProductCategoryRequestAutomatedConditionTypeEnum = {
|
|
27
|
-
And: 'and',
|
|
28
|
-
Or: 'or'
|
|
29
|
-
};
|
|
30
24
|
/**
|
|
31
25
|
* Check if a given object implements the UpdateProductCategoryRequest interface.
|
|
32
26
|
*/
|
|
33
27
|
function instanceOfUpdateProductCategoryRequest(value) {
|
|
28
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
29
|
+
return false;
|
|
34
30
|
return true;
|
|
35
31
|
}
|
|
36
32
|
function UpdateProductCategoryRequestFromJSON(json) {
|
|
@@ -41,7 +37,7 @@ function UpdateProductCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
37
|
return json;
|
|
42
38
|
}
|
|
43
39
|
return {
|
|
44
|
-
'siteId': json['site_id']
|
|
40
|
+
'siteId': json['site_id'],
|
|
45
41
|
'name': json['name'] == null ? undefined : json['name'],
|
|
46
42
|
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
47
43
|
'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
|
|
@@ -54,6 +50,8 @@ function UpdateProductCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
50
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
55
51
|
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
56
52
|
'fileId': json['file_id'] == null ? undefined : json['file_id'],
|
|
53
|
+
'seo': json['seo'] == null ? undefined : (json['seo'].map(StoreProductCategoryRequestSeoInner_1.StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
54
|
+
'descriptions': json['descriptions'] == null ? undefined : (json['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
57
55
|
};
|
|
58
56
|
}
|
|
59
57
|
function UpdateProductCategoryRequestToJSON(json) {
|
|
@@ -78,5 +76,7 @@ function UpdateProductCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
78
76
|
'alt_text': value['altText'],
|
|
79
77
|
'mime_type': value['mimeType'],
|
|
80
78
|
'file_id': value['fileId'],
|
|
79
|
+
'seo': value['seo'] == null ? undefined : (value['seo'].map(StoreProductCategoryRequestSeoInner_1.StoreProductCategoryRequestSeoInnerToJSON)),
|
|
80
|
+
'descriptions': value['descriptions'] == null ? undefined : (value['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
81
81
|
};
|
|
82
82
|
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
12
|
+
import type { StoreProductCategoryRequestSeoInner } from './StoreProductCategoryRequestSeoInner';
|
|
13
|
+
import type { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -37,10 +37,10 @@ export interface UpdateSupplierRequest {
|
|
|
37
37
|
supplierEta: number;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
|
-
* @type {Array<
|
|
40
|
+
* @type {Array<StoreProductCategoryRequestSeoInner>}
|
|
41
41
|
* @memberof UpdateSupplierRequest
|
|
42
42
|
*/
|
|
43
|
-
seo: Array<
|
|
43
|
+
seo: Array<StoreProductCategoryRequestSeoInner>;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @type {string}
|
|
@@ -61,10 +61,10 @@ export interface UpdateSupplierRequest {
|
|
|
61
61
|
fileId: number;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
|
-
* @type {Array<
|
|
64
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
65
65
|
* @memberof UpdateSupplierRequest
|
|
66
66
|
*/
|
|
67
|
-
descriptions: Array<
|
|
67
|
+
descriptions: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* Check if a given object implements the UpdateSupplierRequest interface.
|
|
@@ -18,8 +18,8 @@ exports.UpdateSupplierRequestFromJSON = UpdateSupplierRequestFromJSON;
|
|
|
18
18
|
exports.UpdateSupplierRequestFromJSONTyped = UpdateSupplierRequestFromJSONTyped;
|
|
19
19
|
exports.UpdateSupplierRequestToJSON = UpdateSupplierRequestToJSON;
|
|
20
20
|
exports.UpdateSupplierRequestToJSONTyped = UpdateSupplierRequestToJSONTyped;
|
|
21
|
-
var
|
|
22
|
-
var
|
|
21
|
+
var StoreProductCategoryRequestSeoInner_1 = require("./StoreProductCategoryRequestSeoInner");
|
|
22
|
+
var StoreProductCategoryRequestDescriptionsInner_1 = require("./StoreProductCategoryRequestDescriptionsInner");
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the UpdateSupplierRequest interface.
|
|
25
25
|
*/
|
|
@@ -51,11 +51,11 @@ function UpdateSupplierRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'name': json['name'],
|
|
52
52
|
'slug': json['slug'],
|
|
53
53
|
'supplierEta': json['supplier_eta'],
|
|
54
|
-
'seo': (json['seo'].map(
|
|
54
|
+
'seo': (json['seo'].map(StoreProductCategoryRequestSeoInner_1.StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
55
55
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
56
56
|
'mimeType': json['mime_type'],
|
|
57
57
|
'fileId': json['file_id'],
|
|
58
|
-
'descriptions': (json['descriptions'].map(
|
|
58
|
+
'descriptions': (json['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
function UpdateSupplierRequestToJSON(json) {
|
|
@@ -70,10 +70,10 @@ function UpdateSupplierRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
70
70
|
'name': value['name'],
|
|
71
71
|
'slug': value['slug'],
|
|
72
72
|
'supplier_eta': value['supplierEta'],
|
|
73
|
-
'seo': (value['seo'].map(
|
|
73
|
+
'seo': (value['seo'].map(StoreProductCategoryRequestSeoInner_1.StoreProductCategoryRequestSeoInnerToJSON)),
|
|
74
74
|
'alt_text': value['altText'],
|
|
75
75
|
'mime_type': value['mimeType'],
|
|
76
76
|
'file_id': value['fileId'],
|
|
77
|
-
'descriptions': (value['descriptions'].map(
|
|
77
|
+
'descriptions': (value['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
78
78
|
};
|
|
79
79
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -105,7 +105,6 @@ export * from './PaginatedProductChildResourceResponse';
|
|
|
105
105
|
export * from './PaginatedProductListResourceResponse';
|
|
106
106
|
export * from './PaginatedProductLiteResourceResponse';
|
|
107
107
|
export * from './PaginatedProductResourceResponse';
|
|
108
|
-
export * from './PaginatedProductSearchResultResourceResponse';
|
|
109
108
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
110
109
|
export * from './PaginatedProductTypeLiteResourceResponse';
|
|
111
110
|
export * from './PaginatedProductTypeResourceResponse';
|
|
@@ -122,8 +121,6 @@ export * from './PaginatedTagListResourceResponse';
|
|
|
122
121
|
export * from './PaginatedTagLiteResourceResponse';
|
|
123
122
|
export * from './PaginatedTagResourceResponse';
|
|
124
123
|
export * from './PagingMetadata';
|
|
125
|
-
export * from './ProductAggregationResource';
|
|
126
|
-
export * from './ProductAggregationResourceArrayResponse';
|
|
127
124
|
export * from './ProductCategoryHierarchyResource';
|
|
128
125
|
export * from './ProductCategoryHierarchyResourceArrayResponse';
|
|
129
126
|
export * from './ProductCategoryListResource';
|
|
@@ -150,17 +147,8 @@ export * from './ProductListResource';
|
|
|
150
147
|
export * from './ProductListResourceArrayResponse';
|
|
151
148
|
export * from './ProductLiteResource';
|
|
152
149
|
export * from './ProductLiteResourceArrayResponse';
|
|
153
|
-
export * from './ProductRating';
|
|
154
150
|
export * from './ProductResource';
|
|
155
151
|
export * from './ProductResourceArrayResponse';
|
|
156
|
-
export * from './ProductSearchResponseResource';
|
|
157
|
-
export * from './ProductSearchResponseResourceArrayResponse';
|
|
158
|
-
export * from './ProductSearchResponseResourceMeta';
|
|
159
|
-
export * from './ProductSearchResponseResourcePriceInfo';
|
|
160
|
-
export * from './ProductSearchResultResource';
|
|
161
|
-
export * from './ProductSearchResultResourceArrayResponse';
|
|
162
|
-
export * from './ProductSortBy';
|
|
163
|
-
export * from './ProductStatus';
|
|
164
152
|
export * from './ProductTypeListResource';
|
|
165
153
|
export * from './ProductTypeListResourceArrayResponse';
|
|
166
154
|
export * from './ProductTypeLiteResource';
|
|
@@ -192,6 +180,8 @@ export * from './StoreOverlayTemplateAssetRequest';
|
|
|
192
180
|
export * from './StoreOverlayTemplateRequest';
|
|
193
181
|
export * from './StoreProductCategoryRequest';
|
|
194
182
|
export * from './StoreProductCategoryRequestAutomationRulesInner';
|
|
183
|
+
export * from './StoreProductCategoryRequestDescriptionsInner';
|
|
184
|
+
export * from './StoreProductCategoryRequestSeoInner';
|
|
195
185
|
export * from './StoreProductChildRequest';
|
|
196
186
|
export * from './StoreProductChildRequestAssetsInner';
|
|
197
187
|
export * from './StoreProductChildRequestAttributeValuesInner';
|
|
@@ -201,8 +191,6 @@ export * from './StoreProductRequestCategoriesInner';
|
|
|
201
191
|
export * from './StoreProductTypeRequest';
|
|
202
192
|
export * from './StoreSiteNotificationRequest';
|
|
203
193
|
export * from './StoreSupplierRequest';
|
|
204
|
-
export * from './StoreSupplierRequestDescriptionsInner';
|
|
205
|
-
export * from './StoreSupplierRequestSeoInner';
|
|
206
194
|
export * from './StoreTagRequest';
|
|
207
195
|
export * from './SupplierFrontendResource';
|
|
208
196
|
export * from './SupplierFrontendResourceArrayResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -123,7 +123,6 @@ __exportStar(require("./PaginatedProductChildResourceResponse"), exports);
|
|
|
123
123
|
__exportStar(require("./PaginatedProductListResourceResponse"), exports);
|
|
124
124
|
__exportStar(require("./PaginatedProductLiteResourceResponse"), exports);
|
|
125
125
|
__exportStar(require("./PaginatedProductResourceResponse"), exports);
|
|
126
|
-
__exportStar(require("./PaginatedProductSearchResultResourceResponse"), exports);
|
|
127
126
|
__exportStar(require("./PaginatedProductTypeListResourceResponse"), exports);
|
|
128
127
|
__exportStar(require("./PaginatedProductTypeLiteResourceResponse"), exports);
|
|
129
128
|
__exportStar(require("./PaginatedProductTypeResourceResponse"), exports);
|
|
@@ -140,8 +139,6 @@ __exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
|
140
139
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
141
140
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
142
141
|
__exportStar(require("./PagingMetadata"), exports);
|
|
143
|
-
__exportStar(require("./ProductAggregationResource"), exports);
|
|
144
|
-
__exportStar(require("./ProductAggregationResourceArrayResponse"), exports);
|
|
145
142
|
__exportStar(require("./ProductCategoryHierarchyResource"), exports);
|
|
146
143
|
__exportStar(require("./ProductCategoryHierarchyResourceArrayResponse"), exports);
|
|
147
144
|
__exportStar(require("./ProductCategoryListResource"), exports);
|
|
@@ -168,17 +165,8 @@ __exportStar(require("./ProductListResource"), exports);
|
|
|
168
165
|
__exportStar(require("./ProductListResourceArrayResponse"), exports);
|
|
169
166
|
__exportStar(require("./ProductLiteResource"), exports);
|
|
170
167
|
__exportStar(require("./ProductLiteResourceArrayResponse"), exports);
|
|
171
|
-
__exportStar(require("./ProductRating"), exports);
|
|
172
168
|
__exportStar(require("./ProductResource"), exports);
|
|
173
169
|
__exportStar(require("./ProductResourceArrayResponse"), exports);
|
|
174
|
-
__exportStar(require("./ProductSearchResponseResource"), exports);
|
|
175
|
-
__exportStar(require("./ProductSearchResponseResourceArrayResponse"), exports);
|
|
176
|
-
__exportStar(require("./ProductSearchResponseResourceMeta"), exports);
|
|
177
|
-
__exportStar(require("./ProductSearchResponseResourcePriceInfo"), exports);
|
|
178
|
-
__exportStar(require("./ProductSearchResultResource"), exports);
|
|
179
|
-
__exportStar(require("./ProductSearchResultResourceArrayResponse"), exports);
|
|
180
|
-
__exportStar(require("./ProductSortBy"), exports);
|
|
181
|
-
__exportStar(require("./ProductStatus"), exports);
|
|
182
170
|
__exportStar(require("./ProductTypeListResource"), exports);
|
|
183
171
|
__exportStar(require("./ProductTypeListResourceArrayResponse"), exports);
|
|
184
172
|
__exportStar(require("./ProductTypeLiteResource"), exports);
|
|
@@ -210,6 +198,8 @@ __exportStar(require("./StoreOverlayTemplateAssetRequest"), exports);
|
|
|
210
198
|
__exportStar(require("./StoreOverlayTemplateRequest"), exports);
|
|
211
199
|
__exportStar(require("./StoreProductCategoryRequest"), exports);
|
|
212
200
|
__exportStar(require("./StoreProductCategoryRequestAutomationRulesInner"), exports);
|
|
201
|
+
__exportStar(require("./StoreProductCategoryRequestDescriptionsInner"), exports);
|
|
202
|
+
__exportStar(require("./StoreProductCategoryRequestSeoInner"), exports);
|
|
213
203
|
__exportStar(require("./StoreProductChildRequest"), exports);
|
|
214
204
|
__exportStar(require("./StoreProductChildRequestAssetsInner"), exports);
|
|
215
205
|
__exportStar(require("./StoreProductChildRequestAttributeValuesInner"), exports);
|
|
@@ -219,8 +209,6 @@ __exportStar(require("./StoreProductRequestCategoriesInner"), exports);
|
|
|
219
209
|
__exportStar(require("./StoreProductTypeRequest"), exports);
|
|
220
210
|
__exportStar(require("./StoreSiteNotificationRequest"), exports);
|
|
221
211
|
__exportStar(require("./StoreSupplierRequest"), exports);
|
|
222
|
-
__exportStar(require("./StoreSupplierRequestDescriptionsInner"), exports);
|
|
223
|
-
__exportStar(require("./StoreSupplierRequestSeoInner"), exports);
|
|
224
212
|
__exportStar(require("./StoreTagRequest"), exports);
|
|
225
213
|
__exportStar(require("./SupplierFrontendResource"), exports);
|
|
226
214
|
__exportStar(require("./SupplierFrontendResourceArrayResponse"), exports);
|
|
@@ -19,6 +19,8 @@ Name | Type
|
|
|
19
19
|
`automationRules` | object
|
|
20
20
|
`parent` | [ProductCategoryLiteResource](ProductCategoryLiteResource.md)
|
|
21
21
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
22
|
+
`seo` | [Array<SEOResource>](SEOResource.md)
|
|
23
|
+
`descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
|
|
22
24
|
|
|
23
25
|
## Example
|
|
24
26
|
|
|
@@ -40,6 +42,8 @@ const example = {
|
|
|
40
42
|
"automationRules": null,
|
|
41
43
|
"parent": null,
|
|
42
44
|
"site": null,
|
|
45
|
+
"seo": null,
|
|
46
|
+
"descriptions": null,
|
|
43
47
|
} satisfies ProductCategoryResource
|
|
44
48
|
|
|
45
49
|
console.log(example)
|
|
@@ -19,6 +19,8 @@ Name | Type
|
|
|
19
19
|
`altText` | string
|
|
20
20
|
`mimeType` | string
|
|
21
21
|
`fileId` | number
|
|
22
|
+
`seo` | [Array<StoreProductCategoryRequestSeoInner>](StoreProductCategoryRequestSeoInner.md)
|
|
23
|
+
`descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
|
|
22
24
|
|
|
23
25
|
## Example
|
|
24
26
|
|
|
@@ -40,6 +42,8 @@ const example = {
|
|
|
40
42
|
"altText": null,
|
|
41
43
|
"mimeType": null,
|
|
42
44
|
"fileId": null,
|
|
45
|
+
"seo": null,
|
|
46
|
+
"descriptions": null,
|
|
43
47
|
} satisfies StoreProductCategoryRequest
|
|
44
48
|
|
|
45
49
|
console.log(example)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# StoreProductCategoryRequestDescriptionsInner
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -13,14 +13,14 @@ Name | Type
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import type {
|
|
16
|
+
import type { StoreProductCategoryRequestDescriptionsInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
17
|
|
|
18
18
|
// TODO: Update the object below with actual values
|
|
19
19
|
const example = {
|
|
20
20
|
"headerDescription": null,
|
|
21
21
|
"footerDescription": null,
|
|
22
22
|
"siteId": null,
|
|
23
|
-
} satisfies
|
|
23
|
+
} satisfies StoreProductCategoryRequestDescriptionsInner
|
|
24
24
|
|
|
25
25
|
console.log(example)
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
29
29
|
console.log(exampleJSON)
|
|
30
30
|
|
|
31
31
|
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreProductCategoryRequestDescriptionsInner
|
|
33
33
|
console.log(exampleParsed)
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# StoreProductCategoryRequestSeoInner
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -13,14 +13,14 @@ Name | Type
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import type {
|
|
16
|
+
import type { StoreProductCategoryRequestSeoInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
17
|
|
|
18
18
|
// TODO: Update the object below with actual values
|
|
19
19
|
const example = {
|
|
20
20
|
"seoTitle": null,
|
|
21
21
|
"seoDescription": null,
|
|
22
22
|
"siteId": null,
|
|
23
|
-
} satisfies
|
|
23
|
+
} satisfies StoreProductCategoryRequestSeoInner
|
|
24
24
|
|
|
25
25
|
console.log(example)
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
29
29
|
console.log(exampleJSON)
|
|
30
30
|
|
|
31
31
|
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreProductCategoryRequestSeoInner
|
|
33
33
|
console.log(exampleParsed)
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -9,11 +9,11 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`slug` | string
|
|
11
11
|
`supplierEta` | number
|
|
12
|
-
`seo` | [Array<
|
|
12
|
+
`seo` | [Array<StoreProductCategoryRequestSeoInner>](StoreProductCategoryRequestSeoInner.md)
|
|
13
13
|
`altText` | string
|
|
14
14
|
`mimeType` | string
|
|
15
15
|
`fileId` | number
|
|
16
|
-
`descriptions` | [Array<
|
|
16
|
+
`descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
|
|
17
17
|
|
|
18
18
|
## Example
|
|
19
19
|
|
|
@@ -19,6 +19,8 @@ Name | Type
|
|
|
19
19
|
`altText` | string
|
|
20
20
|
`mimeType` | string
|
|
21
21
|
`fileId` | number
|
|
22
|
+
`seo` | [Array<StoreProductCategoryRequestSeoInner>](StoreProductCategoryRequestSeoInner.md)
|
|
23
|
+
`descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
|
|
22
24
|
|
|
23
25
|
## Example
|
|
24
26
|
|
|
@@ -40,6 +42,8 @@ const example = {
|
|
|
40
42
|
"altText": null,
|
|
41
43
|
"mimeType": null,
|
|
42
44
|
"fileId": null,
|
|
45
|
+
"seo": null,
|
|
46
|
+
"descriptions": null,
|
|
43
47
|
} satisfies UpdateProductCategoryRequest
|
|
44
48
|
|
|
45
49
|
console.log(example)
|
|
@@ -9,11 +9,11 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`slug` | string
|
|
11
11
|
`supplierEta` | number
|
|
12
|
-
`seo` | [Array<
|
|
12
|
+
`seo` | [Array<StoreProductCategoryRequestSeoInner>](StoreProductCategoryRequestSeoInner.md)
|
|
13
13
|
`altText` | string
|
|
14
14
|
`mimeType` | string
|
|
15
15
|
`fileId` | number
|
|
16
|
-
`descriptions` | [Array<
|
|
16
|
+
`descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
|
|
17
17
|
|
|
18
18
|
## Example
|
|
19
19
|
|
package/package.json
CHANGED
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
SiteLiteResourceToJSON,
|
|
21
21
|
SiteLiteResourceToJSONTyped,
|
|
22
22
|
} from './SiteLiteResource';
|
|
23
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
24
|
+
import {
|
|
25
|
+
DescriptionResourceFromJSON,
|
|
26
|
+
DescriptionResourceFromJSONTyped,
|
|
27
|
+
DescriptionResourceToJSON,
|
|
28
|
+
DescriptionResourceToJSONTyped,
|
|
29
|
+
} from './DescriptionResource';
|
|
23
30
|
import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
|
|
24
31
|
import {
|
|
25
32
|
ProductCategoryLiteResourceFromJSON,
|
|
@@ -34,6 +41,13 @@ import {
|
|
|
34
41
|
AssetResourceToJSON,
|
|
35
42
|
AssetResourceToJSONTyped,
|
|
36
43
|
} from './AssetResource';
|
|
44
|
+
import type { SEOResource } from './SEOResource';
|
|
45
|
+
import {
|
|
46
|
+
SEOResourceFromJSON,
|
|
47
|
+
SEOResourceFromJSONTyped,
|
|
48
|
+
SEOResourceToJSON,
|
|
49
|
+
SEOResourceToJSONTyped,
|
|
50
|
+
} from './SEOResource';
|
|
37
51
|
|
|
38
52
|
/**
|
|
39
53
|
*
|
|
@@ -119,6 +133,18 @@ export interface ProductCategoryResource {
|
|
|
119
133
|
* @memberof ProductCategoryResource
|
|
120
134
|
*/
|
|
121
135
|
site: SiteLiteResource | null;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {Array<SEOResource>}
|
|
139
|
+
* @memberof ProductCategoryResource
|
|
140
|
+
*/
|
|
141
|
+
seo: Array<SEOResource> | null;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {Array<DescriptionResource>}
|
|
145
|
+
* @memberof ProductCategoryResource
|
|
146
|
+
*/
|
|
147
|
+
descriptions: Array<DescriptionResource> | null;
|
|
122
148
|
}
|
|
123
149
|
|
|
124
150
|
/**
|
|
@@ -135,6 +161,8 @@ export function instanceOfProductCategoryResource(value: object): value is Produ
|
|
|
135
161
|
if (!('automationRules' in value) || value['automationRules'] === undefined) return false;
|
|
136
162
|
if (!('parent' in value) || value['parent'] === undefined) return false;
|
|
137
163
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
164
|
+
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
165
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
138
166
|
return true;
|
|
139
167
|
}
|
|
140
168
|
|
|
@@ -161,6 +189,8 @@ export function ProductCategoryResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
161
189
|
'automationRules': json['automationRules'],
|
|
162
190
|
'parent': ProductCategoryLiteResourceFromJSON(json['parent']),
|
|
163
191
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
192
|
+
'seo': (json['seo'] == null ? null : (json['seo'] as Array<any>).map(SEOResourceFromJSON)),
|
|
193
|
+
'descriptions': (json['descriptions'] == null ? null : (json['descriptions'] as Array<any>).map(DescriptionResourceFromJSON)),
|
|
164
194
|
};
|
|
165
195
|
}
|
|
166
196
|
|
|
@@ -188,6 +218,8 @@ export function ProductCategoryResourceToJSONTyped(value?: ProductCategoryResour
|
|
|
188
218
|
'automationRules': value['automationRules'],
|
|
189
219
|
'parent': ProductCategoryLiteResourceToJSON(value['parent']),
|
|
190
220
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
221
|
+
'seo': (value['seo'] == null ? null : (value['seo'] as Array<any>).map(SEOResourceToJSON)),
|
|
222
|
+
'descriptions': (value['descriptions'] == null ? null : (value['descriptions'] as Array<any>).map(DescriptionResourceToJSON)),
|
|
191
223
|
};
|
|
192
224
|
}
|
|
193
225
|
|