@digital8/lighting-illusions-ts-sdk 0.0.534 → 0.0.536
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 +28 -4
- package/README.md +16 -4
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductSearchResultResourceResponse.js +57 -0
- package/dist/models/ProductAggregationResource.d.ts +50 -0
- package/dist/models/ProductAggregationResource.js +63 -0
- package/dist/models/ProductAggregationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductAggregationResourceArrayResponse.js +50 -0
- package/dist/models/ProductCategoryResource.d.ts +14 -0
- package/dist/models/ProductCategoryResource.js +10 -0
- package/dist/models/ProductRating.d.ts +26 -0
- package/dist/models/ProductRating.js +52 -0
- package/dist/models/ProductSearchResponseResource.d.ts +54 -0
- package/dist/models/ProductSearchResponseResource.js +67 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.js +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.js +63 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.js +63 -0
- package/dist/models/ProductSearchResultResource.d.ts +116 -0
- package/dist/models/ProductSearchResultResource.js +105 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.js +50 -0
- package/dist/models/ProductSortBy.d.ts +32 -0
- package/dist/models/ProductSortBy.js +58 -0
- package/dist/models/ProductStatus.d.ts +24 -0
- package/dist/models/ProductStatus.js +50 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +23 -1
- package/dist/models/StoreProductCategoryRequest.js +14 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +27 -2
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +24 -0
- 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/StoreSupplierRequest.d.ts +6 -6
- package/dist/models/StoreSupplierRequest.js +6 -6
- package/dist/models/UpdateProductCategoryRequest.d.ts +24 -2
- package/dist/models/UpdateProductCategoryRequest.js +17 -1
- package/dist/models/UpdateSupplierRequest.d.ts +6 -6
- package/dist/models/UpdateSupplierRequest.js +6 -6
- package/dist/models/index.d.ts +14 -2
- package/dist/models/index.js +14 -2
- package/docs/PaginatedProductSearchResultResourceResponse.md +36 -0
- package/docs/ProductAggregationResource.md +40 -0
- package/docs/ProductAggregationResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryResource.md +4 -0
- package/docs/ProductRating.md +32 -0
- package/docs/ProductSearchResponseResource.md +40 -0
- package/docs/ProductSearchResponseResourceArrayResponse.md +34 -0
- package/docs/ProductSearchResponseResourceMeta.md +40 -0
- package/docs/ProductSearchResponseResourcePriceInfo.md +40 -0
- package/docs/ProductSearchResultResource.md +62 -0
- package/docs/ProductSearchResultResourceArrayResponse.md +34 -0
- package/docs/ProductSortBy.md +32 -0
- package/docs/ProductStatus.md +32 -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/ExternalApiLogResource.ts +2 -3
- package/src/models/PaginatedProductSearchResultResourceResponse.ts +90 -0
- package/src/models/ProductAggregationResource.ts +93 -0
- package/src/models/ProductAggregationResourceArrayResponse.ts +73 -0
- package/src/models/ProductCategoryResource.ts +32 -0
- package/src/models/ProductRating.ts +54 -0
- package/src/models/ProductSearchResponseResource.ts +122 -0
- package/src/models/ProductSearchResponseResourceArrayResponse.ts +73 -0
- package/src/models/ProductSearchResponseResourceMeta.ts +93 -0
- package/src/models/ProductSearchResponseResourcePriceInfo.ts +93 -0
- package/src/models/ProductSearchResultResource.ts +191 -0
- package/src/models/ProductSearchResultResourceArrayResponse.ts +73 -0
- package/src/models/ProductSortBy.ts +60 -0
- package/src/models/ProductStatus.ts +52 -0
- package/src/models/StoreProductCategoryRequest.ts +42 -1
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +31 -2
- package/src/models/StoreProductCategoryRequestDescriptionsInner.ts +82 -0
- package/src/models/{StoreSupplierRequestSeoInner.ts → StoreProductCategoryRequestSeoInner.ts} +13 -13
- package/src/models/StoreSupplierRequest.ts +20 -20
- package/src/models/UpdateProductCategoryRequest.ts +45 -3
- package/src/models/UpdateSupplierRequest.ts +20 -20
- package/src/models/index.ts +14 -2
- 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/src/models/StoreSupplierRequestDescriptionsInner.ts +0 -82
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ProductSortBy = {
|
|
21
|
+
Relevance: 'relevance',
|
|
22
|
+
MostPopular: 'mostPopular',
|
|
23
|
+
HighestRating: 'highestRating',
|
|
24
|
+
LowestRating: 'lowestRating',
|
|
25
|
+
DescendingPrice: 'descendingPrice',
|
|
26
|
+
AscendingPrice: 'ascendingPrice',
|
|
27
|
+
DescendingName: 'descendingName',
|
|
28
|
+
AscendingName: 'ascendingName',
|
|
29
|
+
RecentlyAdded: 'recentlyAdded'
|
|
30
|
+
} as const;
|
|
31
|
+
export type ProductSortBy = typeof ProductSortBy[keyof typeof ProductSortBy];
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export function instanceOfProductSortBy(value: any): boolean {
|
|
35
|
+
for (const key in ProductSortBy) {
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(ProductSortBy, key)) {
|
|
37
|
+
if (ProductSortBy[key as keyof typeof ProductSortBy] === value) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductSortByFromJSON(json: any): ProductSortBy {
|
|
46
|
+
return ProductSortByFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSortBy {
|
|
50
|
+
return json as ProductSortBy;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ProductSortByToJSON(value?: ProductSortBy | null): any {
|
|
54
|
+
return value as any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ProductSortByToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductSortBy {
|
|
58
|
+
return value as ProductSortBy;
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ProductStatus = {
|
|
21
|
+
InStock: 'in_stock'
|
|
22
|
+
} as const;
|
|
23
|
+
export type ProductStatus = typeof ProductStatus[keyof typeof ProductStatus];
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export function instanceOfProductStatus(value: any): boolean {
|
|
27
|
+
for (const key in ProductStatus) {
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(ProductStatus, key)) {
|
|
29
|
+
if (ProductStatus[key as keyof typeof ProductStatus] === value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ProductStatusFromJSON(json: any): ProductStatus {
|
|
38
|
+
return ProductStatusFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ProductStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStatus {
|
|
42
|
+
return json as ProductStatus;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductStatusToJSON(value?: ProductStatus | null): any {
|
|
46
|
+
return value as any;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductStatus {
|
|
50
|
+
return value as ProductStatus;
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -13,6 +13,20 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { StoreProductCategoryRequestSeoInner } from './StoreProductCategoryRequestSeoInner';
|
|
17
|
+
import {
|
|
18
|
+
StoreProductCategoryRequestSeoInnerFromJSON,
|
|
19
|
+
StoreProductCategoryRequestSeoInnerFromJSONTyped,
|
|
20
|
+
StoreProductCategoryRequestSeoInnerToJSON,
|
|
21
|
+
StoreProductCategoryRequestSeoInnerToJSONTyped,
|
|
22
|
+
} from './StoreProductCategoryRequestSeoInner';
|
|
23
|
+
import type { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
24
|
+
import {
|
|
25
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSON,
|
|
26
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSONTyped,
|
|
27
|
+
StoreProductCategoryRequestDescriptionsInnerToJSON,
|
|
28
|
+
StoreProductCategoryRequestDescriptionsInnerToJSONTyped,
|
|
29
|
+
} from './StoreProductCategoryRequestDescriptionsInner';
|
|
16
30
|
import type { StoreProductCategoryRequestAutomationRulesInner } from './StoreProductCategoryRequestAutomationRulesInner';
|
|
17
31
|
import {
|
|
18
32
|
StoreProductCategoryRequestAutomationRulesInnerFromJSON,
|
|
@@ -80,7 +94,7 @@ export interface StoreProductCategoryRequest {
|
|
|
80
94
|
* @type {string}
|
|
81
95
|
* @memberof StoreProductCategoryRequest
|
|
82
96
|
*/
|
|
83
|
-
automatedConditionType?:
|
|
97
|
+
automatedConditionType?: StoreProductCategoryRequestAutomatedConditionTypeEnum;
|
|
84
98
|
/**
|
|
85
99
|
*
|
|
86
100
|
* @type {Array<StoreProductCategoryRequestAutomationRulesInner>}
|
|
@@ -105,8 +119,31 @@ export interface StoreProductCategoryRequest {
|
|
|
105
119
|
* @memberof StoreProductCategoryRequest
|
|
106
120
|
*/
|
|
107
121
|
fileId: number;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {Array<StoreProductCategoryRequestSeoInner>}
|
|
125
|
+
* @memberof StoreProductCategoryRequest
|
|
126
|
+
*/
|
|
127
|
+
seo?: Array<StoreProductCategoryRequestSeoInner>;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
131
|
+
* @memberof StoreProductCategoryRequest
|
|
132
|
+
*/
|
|
133
|
+
descriptions?: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
108
134
|
}
|
|
109
135
|
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @export
|
|
139
|
+
*/
|
|
140
|
+
export const StoreProductCategoryRequestAutomatedConditionTypeEnum = {
|
|
141
|
+
And: 'and',
|
|
142
|
+
Or: 'or'
|
|
143
|
+
} as const;
|
|
144
|
+
export type StoreProductCategoryRequestAutomatedConditionTypeEnum = typeof StoreProductCategoryRequestAutomatedConditionTypeEnum[keyof typeof StoreProductCategoryRequestAutomatedConditionTypeEnum];
|
|
145
|
+
|
|
146
|
+
|
|
110
147
|
/**
|
|
111
148
|
* Check if a given object implements the StoreProductCategoryRequest interface.
|
|
112
149
|
*/
|
|
@@ -143,6 +180,8 @@ export function StoreProductCategoryRequestFromJSONTyped(json: any, ignoreDiscri
|
|
|
143
180
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
144
181
|
'mimeType': json['mime_type'],
|
|
145
182
|
'fileId': json['file_id'],
|
|
183
|
+
'seo': json['seo'] == null ? undefined : ((json['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
184
|
+
'descriptions': json['descriptions'] == null ? undefined : ((json['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
146
185
|
};
|
|
147
186
|
}
|
|
148
187
|
|
|
@@ -170,6 +209,8 @@ export function StoreProductCategoryRequestToJSONTyped(value?: StoreProductCateg
|
|
|
170
209
|
'alt_text': value['altText'],
|
|
171
210
|
'mime_type': value['mimeType'],
|
|
172
211
|
'file_id': value['fileId'],
|
|
212
|
+
'seo': value['seo'] == null ? undefined : ((value['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerToJSON)),
|
|
213
|
+
'descriptions': value['descriptions'] == null ? undefined : ((value['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
173
214
|
};
|
|
174
215
|
}
|
|
175
216
|
|
|
@@ -24,13 +24,13 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
26
26
|
*/
|
|
27
|
-
fieldType:
|
|
27
|
+
fieldType: StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
32
32
|
*/
|
|
33
|
-
comparisonType:
|
|
33
|
+
comparisonType: StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
@@ -57,6 +57,35 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
|
57
57
|
valueId?: number;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum = {
|
|
65
|
+
Price: 'price',
|
|
66
|
+
Name: 'name',
|
|
67
|
+
VariantName: 'variant_name',
|
|
68
|
+
Attribute: 'attribute',
|
|
69
|
+
Tag: 'tag',
|
|
70
|
+
Supplier: 'supplier',
|
|
71
|
+
Label: 'label'
|
|
72
|
+
} as const;
|
|
73
|
+
export type StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum = typeof StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum[keyof typeof StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum];
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export const StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum = {
|
|
79
|
+
Greater: 'greater',
|
|
80
|
+
Less: 'less',
|
|
81
|
+
Equal: 'equal',
|
|
82
|
+
NotEqual: 'notEqual',
|
|
83
|
+
Contains: 'contains',
|
|
84
|
+
NotContains: 'notContains'
|
|
85
|
+
} as const;
|
|
86
|
+
export type StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum = typeof StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum[keyof typeof StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum];
|
|
87
|
+
|
|
88
|
+
|
|
60
89
|
/**
|
|
61
90
|
* Check if a given object implements the StoreProductCategoryRequestAutomationRulesInner interface.
|
|
62
91
|
*/
|
|
@@ -0,0 +1,82 @@
|
|
|
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 StoreProductCategoryRequestDescriptionsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface StoreProductCategoryRequestDescriptionsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof StoreProductCategoryRequestDescriptionsInner
|
|
26
|
+
*/
|
|
27
|
+
headerDescription?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof StoreProductCategoryRequestDescriptionsInner
|
|
32
|
+
*/
|
|
33
|
+
footerDescription?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof StoreProductCategoryRequestDescriptionsInner
|
|
38
|
+
*/
|
|
39
|
+
siteId: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the StoreProductCategoryRequestDescriptionsInner interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfStoreProductCategoryRequestDescriptionsInner(value: object): value is StoreProductCategoryRequestDescriptionsInner {
|
|
46
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function StoreProductCategoryRequestDescriptionsInnerFromJSON(json: any): StoreProductCategoryRequestDescriptionsInner {
|
|
51
|
+
return StoreProductCategoryRequestDescriptionsInnerFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function StoreProductCategoryRequestDescriptionsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductCategoryRequestDescriptionsInner {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'headerDescription': json['header_description'] == null ? undefined : json['header_description'],
|
|
61
|
+
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
62
|
+
'siteId': json['site_id'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function StoreProductCategoryRequestDescriptionsInnerToJSON(json: any): StoreProductCategoryRequestDescriptionsInner {
|
|
67
|
+
return StoreProductCategoryRequestDescriptionsInnerToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function StoreProductCategoryRequestDescriptionsInnerToJSONTyped(value?: StoreProductCategoryRequestDescriptionsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'header_description': value['headerDescription'],
|
|
78
|
+
'footer_description': value['footerDescription'],
|
|
79
|
+
'site_id': value['siteId'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
package/src/models/{StoreSupplierRequestSeoInner.ts → StoreProductCategoryRequestSeoInner.ts}
RENAMED
|
@@ -16,42 +16,42 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface StoreProductCategoryRequestSeoInner
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface StoreProductCategoryRequestSeoInner {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof StoreProductCategoryRequestSeoInner
|
|
26
26
|
*/
|
|
27
27
|
seoTitle?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof StoreProductCategoryRequestSeoInner
|
|
32
32
|
*/
|
|
33
33
|
seoDescription?: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof StoreProductCategoryRequestSeoInner
|
|
38
38
|
*/
|
|
39
39
|
siteId: number;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Check if a given object implements the
|
|
43
|
+
* Check if a given object implements the StoreProductCategoryRequestSeoInner interface.
|
|
44
44
|
*/
|
|
45
|
-
export function
|
|
45
|
+
export function instanceOfStoreProductCategoryRequestSeoInner(value: object): value is StoreProductCategoryRequestSeoInner {
|
|
46
46
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
47
47
|
return true;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export function
|
|
51
|
-
return
|
|
50
|
+
export function StoreProductCategoryRequestSeoInnerFromJSON(json: any): StoreProductCategoryRequestSeoInner {
|
|
51
|
+
return StoreProductCategoryRequestSeoInnerFromJSONTyped(json, false);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
export function
|
|
54
|
+
export function StoreProductCategoryRequestSeoInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductCategoryRequestSeoInner {
|
|
55
55
|
if (json == null) {
|
|
56
56
|
return json;
|
|
57
57
|
}
|
|
@@ -63,11 +63,11 @@ export function StoreSupplierRequestSeoInnerFromJSONTyped(json: any, ignoreDiscr
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
export function
|
|
67
|
-
return
|
|
66
|
+
export function StoreProductCategoryRequestSeoInnerToJSON(json: any): StoreProductCategoryRequestSeoInner {
|
|
67
|
+
return StoreProductCategoryRequestSeoInnerToJSONTyped(json, false);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
export function
|
|
70
|
+
export function StoreProductCategoryRequestSeoInnerToJSONTyped(value?: StoreProductCategoryRequestSeoInner | null, ignoreDiscriminator: boolean = false): any {
|
|
71
71
|
if (value == null) {
|
|
72
72
|
return value;
|
|
73
73
|
}
|
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { StoreProductCategoryRequestSeoInner } from './StoreProductCategoryRequestSeoInner';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
23
|
-
import type {
|
|
18
|
+
StoreProductCategoryRequestSeoInnerFromJSON,
|
|
19
|
+
StoreProductCategoryRequestSeoInnerFromJSONTyped,
|
|
20
|
+
StoreProductCategoryRequestSeoInnerToJSON,
|
|
21
|
+
StoreProductCategoryRequestSeoInnerToJSONTyped,
|
|
22
|
+
} from './StoreProductCategoryRequestSeoInner';
|
|
23
|
+
import type { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './
|
|
25
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSON,
|
|
26
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSONTyped,
|
|
27
|
+
StoreProductCategoryRequestDescriptionsInnerToJSON,
|
|
28
|
+
StoreProductCategoryRequestDescriptionsInnerToJSONTyped,
|
|
29
|
+
} from './StoreProductCategoryRequestDescriptionsInner';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
@@ -54,10 +54,10 @@ export interface StoreSupplierRequest {
|
|
|
54
54
|
supplierEta: number;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {Array<
|
|
57
|
+
* @type {Array<StoreProductCategoryRequestSeoInner>}
|
|
58
58
|
* @memberof StoreSupplierRequest
|
|
59
59
|
*/
|
|
60
|
-
seo: Array<
|
|
60
|
+
seo: Array<StoreProductCategoryRequestSeoInner>;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
@@ -78,10 +78,10 @@ export interface StoreSupplierRequest {
|
|
|
78
78
|
fileId: number;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
|
-
* @type {Array<
|
|
81
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
82
82
|
* @memberof StoreSupplierRequest
|
|
83
83
|
*/
|
|
84
|
-
descriptions: Array<
|
|
84
|
+
descriptions: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -111,11 +111,11 @@ export function StoreSupplierRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
111
111
|
'name': json['name'],
|
|
112
112
|
'slug': json['slug'],
|
|
113
113
|
'supplierEta': json['supplier_eta'],
|
|
114
|
-
'seo': ((json['seo'] as Array<any>).map(
|
|
114
|
+
'seo': ((json['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
115
115
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
116
116
|
'mimeType': json['mime_type'],
|
|
117
117
|
'fileId': json['file_id'],
|
|
118
|
-
'descriptions': ((json['descriptions'] as Array<any>).map(
|
|
118
|
+
'descriptions': ((json['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -133,11 +133,11 @@ export function StoreSupplierRequestToJSONTyped(value?: StoreSupplierRequest | n
|
|
|
133
133
|
'name': value['name'],
|
|
134
134
|
'slug': value['slug'],
|
|
135
135
|
'supplier_eta': value['supplierEta'],
|
|
136
|
-
'seo': ((value['seo'] as Array<any>).map(
|
|
136
|
+
'seo': ((value['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerToJSON)),
|
|
137
137
|
'alt_text': value['altText'],
|
|
138
138
|
'mime_type': value['mimeType'],
|
|
139
139
|
'file_id': value['fileId'],
|
|
140
|
-
'descriptions': ((value['descriptions'] as Array<any>).map(
|
|
140
|
+
'descriptions': ((value['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
|
|
@@ -13,6 +13,20 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { StoreProductCategoryRequestSeoInner } from './StoreProductCategoryRequestSeoInner';
|
|
17
|
+
import {
|
|
18
|
+
StoreProductCategoryRequestSeoInnerFromJSON,
|
|
19
|
+
StoreProductCategoryRequestSeoInnerFromJSONTyped,
|
|
20
|
+
StoreProductCategoryRequestSeoInnerToJSON,
|
|
21
|
+
StoreProductCategoryRequestSeoInnerToJSONTyped,
|
|
22
|
+
} from './StoreProductCategoryRequestSeoInner';
|
|
23
|
+
import type { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
24
|
+
import {
|
|
25
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSON,
|
|
26
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSONTyped,
|
|
27
|
+
StoreProductCategoryRequestDescriptionsInnerToJSON,
|
|
28
|
+
StoreProductCategoryRequestDescriptionsInnerToJSONTyped,
|
|
29
|
+
} from './StoreProductCategoryRequestDescriptionsInner';
|
|
16
30
|
import type { StoreProductCategoryRequestAutomationRulesInner } from './StoreProductCategoryRequestAutomationRulesInner';
|
|
17
31
|
import {
|
|
18
32
|
StoreProductCategoryRequestAutomationRulesInnerFromJSON,
|
|
@@ -32,7 +46,7 @@ export interface UpdateProductCategoryRequest {
|
|
|
32
46
|
* @type {string}
|
|
33
47
|
* @memberof UpdateProductCategoryRequest
|
|
34
48
|
*/
|
|
35
|
-
siteId
|
|
49
|
+
siteId: string;
|
|
36
50
|
/**
|
|
37
51
|
*
|
|
38
52
|
* @type {string}
|
|
@@ -80,7 +94,7 @@ export interface UpdateProductCategoryRequest {
|
|
|
80
94
|
* @type {string}
|
|
81
95
|
* @memberof UpdateProductCategoryRequest
|
|
82
96
|
*/
|
|
83
|
-
automatedConditionType?:
|
|
97
|
+
automatedConditionType?: UpdateProductCategoryRequestAutomatedConditionTypeEnum;
|
|
84
98
|
/**
|
|
85
99
|
*
|
|
86
100
|
* @type {Array<StoreProductCategoryRequestAutomationRulesInner>}
|
|
@@ -105,12 +119,36 @@ export interface UpdateProductCategoryRequest {
|
|
|
105
119
|
* @memberof UpdateProductCategoryRequest
|
|
106
120
|
*/
|
|
107
121
|
fileId?: number;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {Array<StoreProductCategoryRequestSeoInner>}
|
|
125
|
+
* @memberof UpdateProductCategoryRequest
|
|
126
|
+
*/
|
|
127
|
+
seo?: Array<StoreProductCategoryRequestSeoInner>;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
131
|
+
* @memberof UpdateProductCategoryRequest
|
|
132
|
+
*/
|
|
133
|
+
descriptions?: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
108
134
|
}
|
|
109
135
|
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @export
|
|
139
|
+
*/
|
|
140
|
+
export const UpdateProductCategoryRequestAutomatedConditionTypeEnum = {
|
|
141
|
+
And: 'and',
|
|
142
|
+
Or: 'or'
|
|
143
|
+
} as const;
|
|
144
|
+
export type UpdateProductCategoryRequestAutomatedConditionTypeEnum = typeof UpdateProductCategoryRequestAutomatedConditionTypeEnum[keyof typeof UpdateProductCategoryRequestAutomatedConditionTypeEnum];
|
|
145
|
+
|
|
146
|
+
|
|
110
147
|
/**
|
|
111
148
|
* Check if a given object implements the UpdateProductCategoryRequest interface.
|
|
112
149
|
*/
|
|
113
150
|
export function instanceOfUpdateProductCategoryRequest(value: object): value is UpdateProductCategoryRequest {
|
|
151
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
114
152
|
return true;
|
|
115
153
|
}
|
|
116
154
|
|
|
@@ -124,7 +162,7 @@ export function UpdateProductCategoryRequestFromJSONTyped(json: any, ignoreDiscr
|
|
|
124
162
|
}
|
|
125
163
|
return {
|
|
126
164
|
|
|
127
|
-
'siteId': json['site_id']
|
|
165
|
+
'siteId': json['site_id'],
|
|
128
166
|
'name': json['name'] == null ? undefined : json['name'],
|
|
129
167
|
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
130
168
|
'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
|
|
@@ -137,6 +175,8 @@ export function UpdateProductCategoryRequestFromJSONTyped(json: any, ignoreDiscr
|
|
|
137
175
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
138
176
|
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
139
177
|
'fileId': json['file_id'] == null ? undefined : json['file_id'],
|
|
178
|
+
'seo': json['seo'] == null ? undefined : ((json['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
179
|
+
'descriptions': json['descriptions'] == null ? undefined : ((json['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
140
180
|
};
|
|
141
181
|
}
|
|
142
182
|
|
|
@@ -164,6 +204,8 @@ export function UpdateProductCategoryRequestToJSONTyped(value?: UpdateProductCat
|
|
|
164
204
|
'alt_text': value['altText'],
|
|
165
205
|
'mime_type': value['mimeType'],
|
|
166
206
|
'file_id': value['fileId'],
|
|
207
|
+
'seo': value['seo'] == null ? undefined : ((value['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerToJSON)),
|
|
208
|
+
'descriptions': value['descriptions'] == null ? undefined : ((value['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
167
209
|
};
|
|
168
210
|
}
|
|
169
211
|
|
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { StoreProductCategoryRequestSeoInner } from './StoreProductCategoryRequestSeoInner';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
23
|
-
import type {
|
|
18
|
+
StoreProductCategoryRequestSeoInnerFromJSON,
|
|
19
|
+
StoreProductCategoryRequestSeoInnerFromJSONTyped,
|
|
20
|
+
StoreProductCategoryRequestSeoInnerToJSON,
|
|
21
|
+
StoreProductCategoryRequestSeoInnerToJSONTyped,
|
|
22
|
+
} from './StoreProductCategoryRequestSeoInner';
|
|
23
|
+
import type { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './
|
|
25
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSON,
|
|
26
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSONTyped,
|
|
27
|
+
StoreProductCategoryRequestDescriptionsInnerToJSON,
|
|
28
|
+
StoreProductCategoryRequestDescriptionsInnerToJSONTyped,
|
|
29
|
+
} from './StoreProductCategoryRequestDescriptionsInner';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
@@ -54,10 +54,10 @@ export interface UpdateSupplierRequest {
|
|
|
54
54
|
supplierEta: number;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {Array<
|
|
57
|
+
* @type {Array<StoreProductCategoryRequestSeoInner>}
|
|
58
58
|
* @memberof UpdateSupplierRequest
|
|
59
59
|
*/
|
|
60
|
-
seo: Array<
|
|
60
|
+
seo: Array<StoreProductCategoryRequestSeoInner>;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
@@ -78,10 +78,10 @@ export interface UpdateSupplierRequest {
|
|
|
78
78
|
fileId: number;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
|
-
* @type {Array<
|
|
81
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
82
82
|
* @memberof UpdateSupplierRequest
|
|
83
83
|
*/
|
|
84
|
-
descriptions: Array<
|
|
84
|
+
descriptions: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -111,11 +111,11 @@ export function UpdateSupplierRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
111
111
|
'name': json['name'],
|
|
112
112
|
'slug': json['slug'],
|
|
113
113
|
'supplierEta': json['supplier_eta'],
|
|
114
|
-
'seo': ((json['seo'] as Array<any>).map(
|
|
114
|
+
'seo': ((json['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
115
115
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
116
116
|
'mimeType': json['mime_type'],
|
|
117
117
|
'fileId': json['file_id'],
|
|
118
|
-
'descriptions': ((json['descriptions'] as Array<any>).map(
|
|
118
|
+
'descriptions': ((json['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -133,11 +133,11 @@ export function UpdateSupplierRequestToJSONTyped(value?: UpdateSupplierRequest |
|
|
|
133
133
|
'name': value['name'],
|
|
134
134
|
'slug': value['slug'],
|
|
135
135
|
'supplier_eta': value['supplierEta'],
|
|
136
|
-
'seo': ((value['seo'] as Array<any>).map(
|
|
136
|
+
'seo': ((value['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerToJSON)),
|
|
137
137
|
'alt_text': value['altText'],
|
|
138
138
|
'mime_type': value['mimeType'],
|
|
139
139
|
'file_id': value['fileId'],
|
|
140
|
-
'descriptions': ((value['descriptions'] as Array<any>).map(
|
|
140
|
+
'descriptions': ((value['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
|