@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
package/.openapi-generator/FILES
CHANGED
|
@@ -115,7 +115,6 @@ docs/PaginatedProductChildResourceResponse.md
|
|
|
115
115
|
docs/PaginatedProductListResourceResponse.md
|
|
116
116
|
docs/PaginatedProductLiteResourceResponse.md
|
|
117
117
|
docs/PaginatedProductResourceResponse.md
|
|
118
|
-
docs/PaginatedProductSearchResultResourceResponse.md
|
|
119
118
|
docs/PaginatedProductTypeListResourceResponse.md
|
|
120
119
|
docs/PaginatedProductTypeLiteResourceResponse.md
|
|
121
120
|
docs/PaginatedProductTypeResourceResponse.md
|
|
@@ -132,8 +131,6 @@ docs/PaginatedTagListResourceResponse.md
|
|
|
132
131
|
docs/PaginatedTagLiteResourceResponse.md
|
|
133
132
|
docs/PaginatedTagResourceResponse.md
|
|
134
133
|
docs/PagingMetadata.md
|
|
135
|
-
docs/ProductAggregationResource.md
|
|
136
|
-
docs/ProductAggregationResourceArrayResponse.md
|
|
137
134
|
docs/ProductApi.md
|
|
138
135
|
docs/ProductCategoryApi.md
|
|
139
136
|
docs/ProductCategoryHierarchyResource.md
|
|
@@ -163,17 +160,8 @@ docs/ProductListResource.md
|
|
|
163
160
|
docs/ProductListResourceArrayResponse.md
|
|
164
161
|
docs/ProductLiteResource.md
|
|
165
162
|
docs/ProductLiteResourceArrayResponse.md
|
|
166
|
-
docs/ProductRating.md
|
|
167
163
|
docs/ProductResource.md
|
|
168
164
|
docs/ProductResourceArrayResponse.md
|
|
169
|
-
docs/ProductSearchResponseResource.md
|
|
170
|
-
docs/ProductSearchResponseResourceArrayResponse.md
|
|
171
|
-
docs/ProductSearchResponseResourceMeta.md
|
|
172
|
-
docs/ProductSearchResponseResourcePriceInfo.md
|
|
173
|
-
docs/ProductSearchResultResource.md
|
|
174
|
-
docs/ProductSearchResultResourceArrayResponse.md
|
|
175
|
-
docs/ProductSortBy.md
|
|
176
|
-
docs/ProductStatus.md
|
|
177
165
|
docs/ProductTypeApi.md
|
|
178
166
|
docs/ProductTypeListResource.md
|
|
179
167
|
docs/ProductTypeListResourceArrayResponse.md
|
|
@@ -207,6 +195,8 @@ docs/StoreOverlayTemplateAssetRequest.md
|
|
|
207
195
|
docs/StoreOverlayTemplateRequest.md
|
|
208
196
|
docs/StoreProductCategoryRequest.md
|
|
209
197
|
docs/StoreProductCategoryRequestAutomationRulesInner.md
|
|
198
|
+
docs/StoreProductCategoryRequestDescriptionsInner.md
|
|
199
|
+
docs/StoreProductCategoryRequestSeoInner.md
|
|
210
200
|
docs/StoreProductChildRequest.md
|
|
211
201
|
docs/StoreProductChildRequestAssetsInner.md
|
|
212
202
|
docs/StoreProductChildRequestAttributeValuesInner.md
|
|
@@ -216,8 +206,6 @@ docs/StoreProductRequestCategoriesInner.md
|
|
|
216
206
|
docs/StoreProductTypeRequest.md
|
|
217
207
|
docs/StoreSiteNotificationRequest.md
|
|
218
208
|
docs/StoreSupplierRequest.md
|
|
219
|
-
docs/StoreSupplierRequestDescriptionsInner.md
|
|
220
|
-
docs/StoreSupplierRequestSeoInner.md
|
|
221
209
|
docs/StoreTagRequest.md
|
|
222
210
|
docs/SupplierApi.md
|
|
223
211
|
docs/SupplierFrontendResource.md
|
|
@@ -377,7 +365,6 @@ src/models/PaginatedProductChildResourceResponse.ts
|
|
|
377
365
|
src/models/PaginatedProductListResourceResponse.ts
|
|
378
366
|
src/models/PaginatedProductLiteResourceResponse.ts
|
|
379
367
|
src/models/PaginatedProductResourceResponse.ts
|
|
380
|
-
src/models/PaginatedProductSearchResultResourceResponse.ts
|
|
381
368
|
src/models/PaginatedProductTypeListResourceResponse.ts
|
|
382
369
|
src/models/PaginatedProductTypeLiteResourceResponse.ts
|
|
383
370
|
src/models/PaginatedProductTypeResourceResponse.ts
|
|
@@ -394,8 +381,6 @@ src/models/PaginatedTagListResourceResponse.ts
|
|
|
394
381
|
src/models/PaginatedTagLiteResourceResponse.ts
|
|
395
382
|
src/models/PaginatedTagResourceResponse.ts
|
|
396
383
|
src/models/PagingMetadata.ts
|
|
397
|
-
src/models/ProductAggregationResource.ts
|
|
398
|
-
src/models/ProductAggregationResourceArrayResponse.ts
|
|
399
384
|
src/models/ProductCategoryHierarchyResource.ts
|
|
400
385
|
src/models/ProductCategoryHierarchyResourceArrayResponse.ts
|
|
401
386
|
src/models/ProductCategoryListResource.ts
|
|
@@ -422,17 +407,8 @@ src/models/ProductListResource.ts
|
|
|
422
407
|
src/models/ProductListResourceArrayResponse.ts
|
|
423
408
|
src/models/ProductLiteResource.ts
|
|
424
409
|
src/models/ProductLiteResourceArrayResponse.ts
|
|
425
|
-
src/models/ProductRating.ts
|
|
426
410
|
src/models/ProductResource.ts
|
|
427
411
|
src/models/ProductResourceArrayResponse.ts
|
|
428
|
-
src/models/ProductSearchResponseResource.ts
|
|
429
|
-
src/models/ProductSearchResponseResourceArrayResponse.ts
|
|
430
|
-
src/models/ProductSearchResponseResourceMeta.ts
|
|
431
|
-
src/models/ProductSearchResponseResourcePriceInfo.ts
|
|
432
|
-
src/models/ProductSearchResultResource.ts
|
|
433
|
-
src/models/ProductSearchResultResourceArrayResponse.ts
|
|
434
|
-
src/models/ProductSortBy.ts
|
|
435
|
-
src/models/ProductStatus.ts
|
|
436
412
|
src/models/ProductTypeListResource.ts
|
|
437
413
|
src/models/ProductTypeListResourceArrayResponse.ts
|
|
438
414
|
src/models/ProductTypeLiteResource.ts
|
|
@@ -464,6 +440,8 @@ src/models/StoreOverlayTemplateAssetRequest.ts
|
|
|
464
440
|
src/models/StoreOverlayTemplateRequest.ts
|
|
465
441
|
src/models/StoreProductCategoryRequest.ts
|
|
466
442
|
src/models/StoreProductCategoryRequestAutomationRulesInner.ts
|
|
443
|
+
src/models/StoreProductCategoryRequestDescriptionsInner.ts
|
|
444
|
+
src/models/StoreProductCategoryRequestSeoInner.ts
|
|
467
445
|
src/models/StoreProductChildRequest.ts
|
|
468
446
|
src/models/StoreProductChildRequestAssetsInner.ts
|
|
469
447
|
src/models/StoreProductChildRequestAttributeValuesInner.ts
|
|
@@ -473,8 +451,6 @@ src/models/StoreProductRequestCategoriesInner.ts
|
|
|
473
451
|
src/models/StoreProductTypeRequest.ts
|
|
474
452
|
src/models/StoreSiteNotificationRequest.ts
|
|
475
453
|
src/models/StoreSupplierRequest.ts
|
|
476
|
-
src/models/StoreSupplierRequestDescriptionsInner.ts
|
|
477
|
-
src/models/StoreSupplierRequestSeoInner.ts
|
|
478
454
|
src/models/StoreTagRequest.ts
|
|
479
455
|
src/models/SupplierFrontendResource.ts
|
|
480
456
|
src/models/SupplierFrontendResourceArrayResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.535
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -261,7 +261,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
261
261
|
- [PaginatedProductListResourceResponse](docs/PaginatedProductListResourceResponse.md)
|
|
262
262
|
- [PaginatedProductLiteResourceResponse](docs/PaginatedProductLiteResourceResponse.md)
|
|
263
263
|
- [PaginatedProductResourceResponse](docs/PaginatedProductResourceResponse.md)
|
|
264
|
-
- [PaginatedProductSearchResultResourceResponse](docs/PaginatedProductSearchResultResourceResponse.md)
|
|
265
264
|
- [PaginatedProductTypeListResourceResponse](docs/PaginatedProductTypeListResourceResponse.md)
|
|
266
265
|
- [PaginatedProductTypeLiteResourceResponse](docs/PaginatedProductTypeLiteResourceResponse.md)
|
|
267
266
|
- [PaginatedProductTypeResourceResponse](docs/PaginatedProductTypeResourceResponse.md)
|
|
@@ -278,8 +277,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
278
277
|
- [PaginatedTagLiteResourceResponse](docs/PaginatedTagLiteResourceResponse.md)
|
|
279
278
|
- [PaginatedTagResourceResponse](docs/PaginatedTagResourceResponse.md)
|
|
280
279
|
- [PagingMetadata](docs/PagingMetadata.md)
|
|
281
|
-
- [ProductAggregationResource](docs/ProductAggregationResource.md)
|
|
282
|
-
- [ProductAggregationResourceArrayResponse](docs/ProductAggregationResourceArrayResponse.md)
|
|
283
280
|
- [ProductCategoryHierarchyResource](docs/ProductCategoryHierarchyResource.md)
|
|
284
281
|
- [ProductCategoryHierarchyResourceArrayResponse](docs/ProductCategoryHierarchyResourceArrayResponse.md)
|
|
285
282
|
- [ProductCategoryListResource](docs/ProductCategoryListResource.md)
|
|
@@ -306,17 +303,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
306
303
|
- [ProductListResourceArrayResponse](docs/ProductListResourceArrayResponse.md)
|
|
307
304
|
- [ProductLiteResource](docs/ProductLiteResource.md)
|
|
308
305
|
- [ProductLiteResourceArrayResponse](docs/ProductLiteResourceArrayResponse.md)
|
|
309
|
-
- [ProductRating](docs/ProductRating.md)
|
|
310
306
|
- [ProductResource](docs/ProductResource.md)
|
|
311
307
|
- [ProductResourceArrayResponse](docs/ProductResourceArrayResponse.md)
|
|
312
|
-
- [ProductSearchResponseResource](docs/ProductSearchResponseResource.md)
|
|
313
|
-
- [ProductSearchResponseResourceArrayResponse](docs/ProductSearchResponseResourceArrayResponse.md)
|
|
314
|
-
- [ProductSearchResponseResourceMeta](docs/ProductSearchResponseResourceMeta.md)
|
|
315
|
-
- [ProductSearchResponseResourcePriceInfo](docs/ProductSearchResponseResourcePriceInfo.md)
|
|
316
|
-
- [ProductSearchResultResource](docs/ProductSearchResultResource.md)
|
|
317
|
-
- [ProductSearchResultResourceArrayResponse](docs/ProductSearchResultResourceArrayResponse.md)
|
|
318
|
-
- [ProductSortBy](docs/ProductSortBy.md)
|
|
319
|
-
- [ProductStatus](docs/ProductStatus.md)
|
|
320
308
|
- [ProductTypeListResource](docs/ProductTypeListResource.md)
|
|
321
309
|
- [ProductTypeListResourceArrayResponse](docs/ProductTypeListResourceArrayResponse.md)
|
|
322
310
|
- [ProductTypeLiteResource](docs/ProductTypeLiteResource.md)
|
|
@@ -348,6 +336,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
348
336
|
- [StoreOverlayTemplateRequest](docs/StoreOverlayTemplateRequest.md)
|
|
349
337
|
- [StoreProductCategoryRequest](docs/StoreProductCategoryRequest.md)
|
|
350
338
|
- [StoreProductCategoryRequestAutomationRulesInner](docs/StoreProductCategoryRequestAutomationRulesInner.md)
|
|
339
|
+
- [StoreProductCategoryRequestDescriptionsInner](docs/StoreProductCategoryRequestDescriptionsInner.md)
|
|
340
|
+
- [StoreProductCategoryRequestSeoInner](docs/StoreProductCategoryRequestSeoInner.md)
|
|
351
341
|
- [StoreProductChildRequest](docs/StoreProductChildRequest.md)
|
|
352
342
|
- [StoreProductChildRequestAssetsInner](docs/StoreProductChildRequestAssetsInner.md)
|
|
353
343
|
- [StoreProductChildRequestAttributeValuesInner](docs/StoreProductChildRequestAttributeValuesInner.md)
|
|
@@ -357,8 +347,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
357
347
|
- [StoreProductTypeRequest](docs/StoreProductTypeRequest.md)
|
|
358
348
|
- [StoreSiteNotificationRequest](docs/StoreSiteNotificationRequest.md)
|
|
359
349
|
- [StoreSupplierRequest](docs/StoreSupplierRequest.md)
|
|
360
|
-
- [StoreSupplierRequestDescriptionsInner](docs/StoreSupplierRequestDescriptionsInner.md)
|
|
361
|
-
- [StoreSupplierRequestSeoInner](docs/StoreSupplierRequestSeoInner.md)
|
|
362
350
|
- [StoreTagRequest](docs/StoreTagRequest.md)
|
|
363
351
|
- [SupplierFrontendResource](docs/SupplierFrontendResource.md)
|
|
364
352
|
- [SupplierFrontendResourceArrayResponse](docs/SupplierFrontendResourceArrayResponse.md)
|
|
@@ -406,7 +394,7 @@ and is automatically generated by the
|
|
|
406
394
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
407
395
|
|
|
408
396
|
- API version: `1.0.0`
|
|
409
|
-
- Package version: `0.0.
|
|
397
|
+
- Package version: `0.0.535`
|
|
410
398
|
- Generator version: `7.18.0`
|
|
411
399
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
412
400
|
|
|
@@ -10,8 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
13
14
|
import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
|
|
14
15
|
import type { AssetResource } from './AssetResource';
|
|
16
|
+
import type { SEOResource } from './SEOResource';
|
|
15
17
|
/**
|
|
16
18
|
*
|
|
17
19
|
* @export
|
|
@@ -96,6 +98,18 @@ export interface ProductCategoryResource {
|
|
|
96
98
|
* @memberof ProductCategoryResource
|
|
97
99
|
*/
|
|
98
100
|
site: SiteLiteResource | null;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {Array<SEOResource>}
|
|
104
|
+
* @memberof ProductCategoryResource
|
|
105
|
+
*/
|
|
106
|
+
seo: Array<SEOResource> | null;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {Array<DescriptionResource>}
|
|
110
|
+
* @memberof ProductCategoryResource
|
|
111
|
+
*/
|
|
112
|
+
descriptions: Array<DescriptionResource> | null;
|
|
99
113
|
}
|
|
100
114
|
/**
|
|
101
115
|
* Check if a given object implements the ProductCategoryResource interface.
|
|
@@ -19,8 +19,10 @@ exports.ProductCategoryResourceFromJSONTyped = ProductCategoryResourceFromJSONTy
|
|
|
19
19
|
exports.ProductCategoryResourceToJSON = ProductCategoryResourceToJSON;
|
|
20
20
|
exports.ProductCategoryResourceToJSONTyped = ProductCategoryResourceToJSONTyped;
|
|
21
21
|
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
+
var DescriptionResource_1 = require("./DescriptionResource");
|
|
22
23
|
var ProductCategoryLiteResource_1 = require("./ProductCategoryLiteResource");
|
|
23
24
|
var AssetResource_1 = require("./AssetResource");
|
|
25
|
+
var SEOResource_1 = require("./SEOResource");
|
|
24
26
|
/**
|
|
25
27
|
* Check if a given object implements the ProductCategoryResource interface.
|
|
26
28
|
*/
|
|
@@ -45,6 +47,10 @@ function instanceOfProductCategoryResource(value) {
|
|
|
45
47
|
return false;
|
|
46
48
|
if (!('site' in value) || value['site'] === undefined)
|
|
47
49
|
return false;
|
|
50
|
+
if (!('seo' in value) || value['seo'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
53
|
+
return false;
|
|
48
54
|
return true;
|
|
49
55
|
}
|
|
50
56
|
function ProductCategoryResourceFromJSON(json) {
|
|
@@ -68,6 +74,8 @@ function ProductCategoryResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
74
|
'automationRules': json['automationRules'],
|
|
69
75
|
'parent': (0, ProductCategoryLiteResource_1.ProductCategoryLiteResourceFromJSON)(json['parent']),
|
|
70
76
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
77
|
+
'seo': (json['seo'] == null ? null : json['seo'].map(SEOResource_1.SEOResourceFromJSON)),
|
|
78
|
+
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
71
79
|
};
|
|
72
80
|
}
|
|
73
81
|
function ProductCategoryResourceToJSON(json) {
|
|
@@ -92,5 +100,7 @@ function ProductCategoryResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
92
100
|
'automationRules': value['automationRules'],
|
|
93
101
|
'parent': (0, ProductCategoryLiteResource_1.ProductCategoryLiteResourceToJSON)(value['parent']),
|
|
94
102
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
103
|
+
'seo': (value['seo'] == null ? null : value['seo'].map(SEOResource_1.SEOResourceToJSON)),
|
|
104
|
+
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
95
105
|
};
|
|
96
106
|
}
|
|
@@ -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
|
*
|
|
@@ -69,7 +71,7 @@ export interface StoreProductCategoryRequest {
|
|
|
69
71
|
* @type {string}
|
|
70
72
|
* @memberof StoreProductCategoryRequest
|
|
71
73
|
*/
|
|
72
|
-
automatedConditionType?:
|
|
74
|
+
automatedConditionType?: string;
|
|
73
75
|
/**
|
|
74
76
|
*
|
|
75
77
|
* @type {Array<StoreProductCategoryRequestAutomationRulesInner>}
|
|
@@ -94,15 +96,19 @@ export interface StoreProductCategoryRequest {
|
|
|
94
96
|
* @memberof StoreProductCategoryRequest
|
|
95
97
|
*/
|
|
96
98
|
fileId: number;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {Array<StoreProductCategoryRequestSeoInner>}
|
|
102
|
+
* @memberof StoreProductCategoryRequest
|
|
103
|
+
*/
|
|
104
|
+
seo?: Array<StoreProductCategoryRequestSeoInner>;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
108
|
+
* @memberof StoreProductCategoryRequest
|
|
109
|
+
*/
|
|
110
|
+
descriptions?: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
97
111
|
}
|
|
98
|
-
/**
|
|
99
|
-
* @export
|
|
100
|
-
*/
|
|
101
|
-
export declare const StoreProductCategoryRequestAutomatedConditionTypeEnum: {
|
|
102
|
-
readonly And: "and";
|
|
103
|
-
readonly Or: "or";
|
|
104
|
-
};
|
|
105
|
-
export type StoreProductCategoryRequestAutomatedConditionTypeEnum = typeof StoreProductCategoryRequestAutomatedConditionTypeEnum[keyof typeof StoreProductCategoryRequestAutomatedConditionTypeEnum];
|
|
106
112
|
/**
|
|
107
113
|
* Check if a given object implements the StoreProductCategoryRequest interface.
|
|
108
114
|
*/
|
|
@@ -13,20 +13,14 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.StoreProductCategoryRequestAutomatedConditionTypeEnum = void 0;
|
|
17
16
|
exports.instanceOfStoreProductCategoryRequest = instanceOfStoreProductCategoryRequest;
|
|
18
17
|
exports.StoreProductCategoryRequestFromJSON = StoreProductCategoryRequestFromJSON;
|
|
19
18
|
exports.StoreProductCategoryRequestFromJSONTyped = StoreProductCategoryRequestFromJSONTyped;
|
|
20
19
|
exports.StoreProductCategoryRequestToJSON = StoreProductCategoryRequestToJSON;
|
|
21
20
|
exports.StoreProductCategoryRequestToJSONTyped = StoreProductCategoryRequestToJSONTyped;
|
|
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.StoreProductCategoryRequestAutomatedConditionTypeEnum = {
|
|
27
|
-
And: 'and',
|
|
28
|
-
Or: 'or'
|
|
29
|
-
};
|
|
30
24
|
/**
|
|
31
25
|
* Check if a given object implements the StoreProductCategoryRequest interface.
|
|
32
26
|
*/
|
|
@@ -66,6 +60,8 @@ function StoreProductCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
60
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
67
61
|
'mimeType': json['mime_type'],
|
|
68
62
|
'fileId': json['file_id'],
|
|
63
|
+
'seo': json['seo'] == null ? undefined : (json['seo'].map(StoreProductCategoryRequestSeoInner_1.StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
64
|
+
'descriptions': json['descriptions'] == null ? undefined : (json['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
69
65
|
};
|
|
70
66
|
}
|
|
71
67
|
function StoreProductCategoryRequestToJSON(json) {
|
|
@@ -90,5 +86,7 @@ function StoreProductCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
90
86
|
'alt_text': value['altText'],
|
|
91
87
|
'mime_type': value['mimeType'],
|
|
92
88
|
'file_id': value['fileId'],
|
|
89
|
+
'seo': value['seo'] == null ? undefined : (value['seo'].map(StoreProductCategoryRequestSeoInner_1.StoreProductCategoryRequestSeoInnerToJSON)),
|
|
90
|
+
'descriptions': value['descriptions'] == null ? undefined : (value['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
93
91
|
};
|
|
94
92
|
}
|
|
@@ -20,13 +20,13 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
22
22
|
*/
|
|
23
|
-
fieldType:
|
|
23
|
+
fieldType: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
28
28
|
*/
|
|
29
|
-
comparisonType:
|
|
29
|
+
comparisonType: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {number}
|
|
@@ -52,31 +52,6 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
|
52
52
|
*/
|
|
53
53
|
valueId?: number;
|
|
54
54
|
}
|
|
55
|
-
/**
|
|
56
|
-
* @export
|
|
57
|
-
*/
|
|
58
|
-
export declare const StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum: {
|
|
59
|
-
readonly Price: "price";
|
|
60
|
-
readonly Name: "name";
|
|
61
|
-
readonly VariantName: "variant_name";
|
|
62
|
-
readonly Attribute: "attribute";
|
|
63
|
-
readonly Tag: "tag";
|
|
64
|
-
readonly Supplier: "supplier";
|
|
65
|
-
readonly Label: "label";
|
|
66
|
-
};
|
|
67
|
-
export type StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum = typeof StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum[keyof typeof StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum];
|
|
68
|
-
/**
|
|
69
|
-
* @export
|
|
70
|
-
*/
|
|
71
|
-
export declare const StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum: {
|
|
72
|
-
readonly Greater: "greater";
|
|
73
|
-
readonly Less: "less";
|
|
74
|
-
readonly Equal: "equal";
|
|
75
|
-
readonly NotEqual: "notEqual";
|
|
76
|
-
readonly Contains: "contains";
|
|
77
|
-
readonly NotContains: "notContains";
|
|
78
|
-
};
|
|
79
|
-
export type StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum = typeof StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum[keyof typeof StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum];
|
|
80
55
|
/**
|
|
81
56
|
* Check if a given object implements the StoreProductCategoryRequestAutomationRulesInner interface.
|
|
82
57
|
*/
|
|
@@ -13,35 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum = exports.StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum = void 0;
|
|
17
16
|
exports.instanceOfStoreProductCategoryRequestAutomationRulesInner = instanceOfStoreProductCategoryRequestAutomationRulesInner;
|
|
18
17
|
exports.StoreProductCategoryRequestAutomationRulesInnerFromJSON = StoreProductCategoryRequestAutomationRulesInnerFromJSON;
|
|
19
18
|
exports.StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped = StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped;
|
|
20
19
|
exports.StoreProductCategoryRequestAutomationRulesInnerToJSON = StoreProductCategoryRequestAutomationRulesInnerToJSON;
|
|
21
20
|
exports.StoreProductCategoryRequestAutomationRulesInnerToJSONTyped = StoreProductCategoryRequestAutomationRulesInnerToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum = {
|
|
26
|
-
Price: 'price',
|
|
27
|
-
Name: 'name',
|
|
28
|
-
VariantName: 'variant_name',
|
|
29
|
-
Attribute: 'attribute',
|
|
30
|
-
Tag: 'tag',
|
|
31
|
-
Supplier: 'supplier',
|
|
32
|
-
Label: 'label'
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* @export
|
|
36
|
-
*/
|
|
37
|
-
exports.StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum = {
|
|
38
|
-
Greater: 'greater',
|
|
39
|
-
Less: 'less',
|
|
40
|
-
Equal: 'equal',
|
|
41
|
-
NotEqual: 'notEqual',
|
|
42
|
-
Contains: 'contains',
|
|
43
|
-
NotContains: 'notContains'
|
|
44
|
-
};
|
|
45
21
|
/**
|
|
46
22
|
* Check if a given object implements the StoreProductCategoryRequestAutomationRulesInner interface.
|
|
47
23
|
*/
|
|
@@ -0,0 +1,44 @@
|
|
|
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 StoreProductCategoryRequestDescriptionsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreProductCategoryRequestDescriptionsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StoreProductCategoryRequestDescriptionsInner
|
|
22
|
+
*/
|
|
23
|
+
headerDescription?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StoreProductCategoryRequestDescriptionsInner
|
|
28
|
+
*/
|
|
29
|
+
footerDescription?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof StoreProductCategoryRequestDescriptionsInner
|
|
34
|
+
*/
|
|
35
|
+
siteId: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the StoreProductCategoryRequestDescriptionsInner interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfStoreProductCategoryRequestDescriptionsInner(value: object): value is StoreProductCategoryRequestDescriptionsInner;
|
|
41
|
+
export declare function StoreProductCategoryRequestDescriptionsInnerFromJSON(json: any): StoreProductCategoryRequestDescriptionsInner;
|
|
42
|
+
export declare function StoreProductCategoryRequestDescriptionsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductCategoryRequestDescriptionsInner;
|
|
43
|
+
export declare function StoreProductCategoryRequestDescriptionsInnerToJSON(json: any): StoreProductCategoryRequestDescriptionsInner;
|
|
44
|
+
export declare function StoreProductCategoryRequestDescriptionsInnerToJSONTyped(value?: StoreProductCategoryRequestDescriptionsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfStoreProductCategoryRequestDescriptionsInner = instanceOfStoreProductCategoryRequestDescriptionsInner;
|
|
17
|
+
exports.StoreProductCategoryRequestDescriptionsInnerFromJSON = StoreProductCategoryRequestDescriptionsInnerFromJSON;
|
|
18
|
+
exports.StoreProductCategoryRequestDescriptionsInnerFromJSONTyped = StoreProductCategoryRequestDescriptionsInnerFromJSONTyped;
|
|
19
|
+
exports.StoreProductCategoryRequestDescriptionsInnerToJSON = StoreProductCategoryRequestDescriptionsInnerToJSON;
|
|
20
|
+
exports.StoreProductCategoryRequestDescriptionsInnerToJSONTyped = StoreProductCategoryRequestDescriptionsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreProductCategoryRequestDescriptionsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreProductCategoryRequestDescriptionsInner(value) {
|
|
25
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function StoreProductCategoryRequestDescriptionsInnerFromJSON(json) {
|
|
30
|
+
return StoreProductCategoryRequestDescriptionsInnerFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function StoreProductCategoryRequestDescriptionsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'headerDescription': json['header_description'] == null ? undefined : json['header_description'],
|
|
38
|
+
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
39
|
+
'siteId': json['site_id'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function StoreProductCategoryRequestDescriptionsInnerToJSON(json) {
|
|
43
|
+
return StoreProductCategoryRequestDescriptionsInnerToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function StoreProductCategoryRequestDescriptionsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'header_description': value['headerDescription'],
|
|
52
|
+
'footer_description': value['footerDescription'],
|
|
53
|
+
'site_id': value['siteId'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 StoreProductCategoryRequestSeoInner
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreProductCategoryRequestSeoInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StoreProductCategoryRequestSeoInner
|
|
22
|
+
*/
|
|
23
|
+
seoTitle?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StoreProductCategoryRequestSeoInner
|
|
28
|
+
*/
|
|
29
|
+
seoDescription?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof StoreProductCategoryRequestSeoInner
|
|
34
|
+
*/
|
|
35
|
+
siteId: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the StoreProductCategoryRequestSeoInner interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfStoreProductCategoryRequestSeoInner(value: object): value is StoreProductCategoryRequestSeoInner;
|
|
41
|
+
export declare function StoreProductCategoryRequestSeoInnerFromJSON(json: any): StoreProductCategoryRequestSeoInner;
|
|
42
|
+
export declare function StoreProductCategoryRequestSeoInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductCategoryRequestSeoInner;
|
|
43
|
+
export declare function StoreProductCategoryRequestSeoInnerToJSON(json: any): StoreProductCategoryRequestSeoInner;
|
|
44
|
+
export declare function StoreProductCategoryRequestSeoInnerToJSONTyped(value?: StoreProductCategoryRequestSeoInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfStoreProductCategoryRequestSeoInner = instanceOfStoreProductCategoryRequestSeoInner;
|
|
17
|
+
exports.StoreProductCategoryRequestSeoInnerFromJSON = StoreProductCategoryRequestSeoInnerFromJSON;
|
|
18
|
+
exports.StoreProductCategoryRequestSeoInnerFromJSONTyped = StoreProductCategoryRequestSeoInnerFromJSONTyped;
|
|
19
|
+
exports.StoreProductCategoryRequestSeoInnerToJSON = StoreProductCategoryRequestSeoInnerToJSON;
|
|
20
|
+
exports.StoreProductCategoryRequestSeoInnerToJSONTyped = StoreProductCategoryRequestSeoInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreProductCategoryRequestSeoInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreProductCategoryRequestSeoInner(value) {
|
|
25
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function StoreProductCategoryRequestSeoInnerFromJSON(json) {
|
|
30
|
+
return StoreProductCategoryRequestSeoInnerFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function StoreProductCategoryRequestSeoInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'seoTitle': json['seo_title'] == null ? undefined : json['seo_title'],
|
|
38
|
+
'seoDescription': json['seo_description'] == null ? undefined : json['seo_description'],
|
|
39
|
+
'siteId': json['site_id'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function StoreProductCategoryRequestSeoInnerToJSON(json) {
|
|
43
|
+
return StoreProductCategoryRequestSeoInnerToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function StoreProductCategoryRequestSeoInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'seo_title': value['seoTitle'],
|
|
52
|
+
'seo_description': value['seoDescription'],
|
|
53
|
+
'site_id': value['siteId'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -27,6 +27,8 @@ var StoreProductChildRequestAttributeValuesInner_1 = require("./StoreProductChil
|
|
|
27
27
|
function instanceOfStoreProductChildRequest(value) {
|
|
28
28
|
if (!('productId' in value) || value['productId'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
31
|
+
return false;
|
|
30
32
|
if (!('sku' in value) || value['sku'] === undefined)
|
|
31
33
|
return false;
|
|
32
34
|
if (!('model' in value) || value['model'] === undefined)
|
|
@@ -58,7 +60,7 @@ function StoreProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
}
|
|
59
61
|
return {
|
|
60
62
|
'productId': json['product_id'],
|
|
61
|
-
'name': json['name']
|
|
63
|
+
'name': json['name'],
|
|
62
64
|
'sku': json['sku'],
|
|
63
65
|
'model': json['model'],
|
|
64
66
|
'newArrivalStartDate': json['new_arrival_start_date'] == null ? undefined : (new Date(json['new_arrival_start_date'])),
|