@digital8/lighting-illusions-ts-sdk 0.0.490 → 0.0.492
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 +0 -6
- package/README.md +2 -5
- package/dist/models/IndexExternalApiLogRequest.d.ts +6 -0
- package/dist/models/IndexExternalApiLogRequest.js +2 -0
- package/dist/models/ProductChildSiteDetailResource.d.ts +8 -2
- package/dist/models/ProductChildSiteDetailResource.js +4 -4
- package/dist/models/SEOResource.d.ts +20 -2
- package/dist/models/SEOResource.js +20 -8
- package/dist/models/StoreProductChildRequestSitesInner.d.ts +15 -3
- package/dist/models/StoreProductChildRequestSitesInner.js +9 -7
- package/dist/models/StoreSupplierRequest.d.ts +0 -7
- package/dist/models/StoreSupplierRequest.js +0 -5
- package/dist/models/StoreSupplierRequestSeoInner.d.ts +20 -2
- package/dist/models/StoreSupplierRequestSeoInner.js +10 -4
- package/dist/models/StoreTagRequest.d.ts +9 -3
- package/dist/models/StoreTagRequest.js +8 -6
- package/dist/models/SupplierFrontendResource.d.ts +0 -7
- package/dist/models/SupplierFrontendResource.js +0 -5
- package/dist/models/SupplierResource.d.ts +0 -7
- package/dist/models/SupplierResource.js +0 -5
- package/dist/models/TagResource.d.ts +0 -7
- package/dist/models/TagResource.js +0 -5
- package/dist/models/UpdateSupplierRequest.d.ts +0 -7
- package/dist/models/UpdateSupplierRequest.js +0 -5
- package/dist/models/UpdateTagRequest.d.ts +9 -3
- package/dist/models/UpdateTagRequest.js +8 -6
- package/dist/models/index.d.ts +0 -3
- package/dist/models/index.js +0 -3
- package/docs/IndexExternalApiLogRequest.md +2 -0
- package/docs/ProductChildSiteDetailResource.md +4 -2
- package/docs/SEOResource.md +10 -4
- package/docs/StoreProductChildRequestSitesInner.md +8 -4
- package/docs/StoreSupplierRequest.md +0 -2
- package/docs/StoreSupplierRequestSeoInner.md +10 -4
- package/docs/StoreTagRequest.md +8 -6
- package/docs/SupplierFrontendResource.md +0 -2
- package/docs/SupplierResource.md +0 -2
- package/docs/TagResource.md +0 -2
- package/docs/UpdateSupplierRequest.md +0 -2
- package/docs/UpdateTagRequest.md +8 -6
- package/package.json +1 -1
- package/src/models/IndexExternalApiLogRequest.ts +8 -0
- package/src/models/ProductChildSiteDetailResource.ts +12 -5
- package/src/models/SEOResource.ts +37 -10
- package/src/models/StoreProductChildRequestSitesInner.ts +24 -9
- package/src/models/StoreSupplierRequest.ts +0 -16
- package/src/models/StoreSupplierRequestSeoInner.ts +30 -6
- package/src/models/StoreTagRequest.ts +17 -9
- package/src/models/SupplierFrontendResource.ts +0 -16
- package/src/models/SupplierResource.ts +0 -16
- package/src/models/TagResource.ts +0 -16
- package/src/models/UpdateSupplierRequest.ts +0 -16
- package/src/models/UpdateTagRequest.ts +17 -9
- package/src/models/index.ts +0 -3
- package/dist/models/DescriptionResource.d.ts +0 -50
- package/dist/models/DescriptionResource.js +0 -63
- package/dist/models/DescriptionResourceArrayResponse.d.ts +0 -33
- package/dist/models/DescriptionResourceArrayResponse.js +0 -50
- package/dist/models/StoreSupplierRequestDescriptionsInner.d.ts +0 -44
- package/dist/models/StoreSupplierRequestDescriptionsInner.js +0 -55
- package/docs/DescriptionResource.md +0 -40
- package/docs/DescriptionResourceArrayResponse.md +0 -34
- package/docs/StoreSupplierRequestDescriptionsInner.md +0 -38
- package/src/models/DescriptionResource.ts +0 -93
- package/src/models/DescriptionResourceArrayResponse.ts +0 -73
- package/src/models/StoreSupplierRequestDescriptionsInner.ts +0 -82
package/.openapi-generator/FILES
CHANGED
|
@@ -31,8 +31,6 @@ docs/AttributeType.md
|
|
|
31
31
|
docs/AttributeValueResource.md
|
|
32
32
|
docs/AttributeValueResourceArrayResponse.md
|
|
33
33
|
docs/CouponDiscountType.md
|
|
34
|
-
docs/DescriptionResource.md
|
|
35
|
-
docs/DescriptionResourceArrayResponse.md
|
|
36
34
|
docs/DestroyAttributeValueRequest.md
|
|
37
35
|
docs/DetachAssetableOverlayTemplateRequest.md
|
|
38
36
|
docs/DetachDocumentablesDocumentRequest.md
|
|
@@ -179,7 +177,6 @@ docs/StoreProductRequestCategoriesInner.md
|
|
|
179
177
|
docs/StoreProductTypeRequest.md
|
|
180
178
|
docs/StoreSiteNotificationRequest.md
|
|
181
179
|
docs/StoreSupplierRequest.md
|
|
182
|
-
docs/StoreSupplierRequestDescriptionsInner.md
|
|
183
180
|
docs/StoreSupplierRequestSeoInner.md
|
|
184
181
|
docs/StoreTagRequest.md
|
|
185
182
|
docs/SupplierApi.md
|
|
@@ -257,8 +254,6 @@ src/models/AttributeType.ts
|
|
|
257
254
|
src/models/AttributeValueResource.ts
|
|
258
255
|
src/models/AttributeValueResourceArrayResponse.ts
|
|
259
256
|
src/models/CouponDiscountType.ts
|
|
260
|
-
src/models/DescriptionResource.ts
|
|
261
|
-
src/models/DescriptionResourceArrayResponse.ts
|
|
262
257
|
src/models/DestroyAttributeValueRequest.ts
|
|
263
258
|
src/models/DetachAssetableOverlayTemplateRequest.ts
|
|
264
259
|
src/models/DetachDocumentablesDocumentRequest.ts
|
|
@@ -398,7 +393,6 @@ src/models/StoreProductRequestCategoriesInner.ts
|
|
|
398
393
|
src/models/StoreProductTypeRequest.ts
|
|
399
394
|
src/models/StoreSiteNotificationRequest.ts
|
|
400
395
|
src/models/StoreSupplierRequest.ts
|
|
401
|
-
src/models/StoreSupplierRequestDescriptionsInner.ts
|
|
402
396
|
src/models/StoreSupplierRequestSeoInner.ts
|
|
403
397
|
src/models/StoreTagRequest.ts
|
|
404
398
|
src/models/SupplierFrontendResource.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.492
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -172,8 +172,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
172
172
|
- [AttributeValueResource](docs/AttributeValueResource.md)
|
|
173
173
|
- [AttributeValueResourceArrayResponse](docs/AttributeValueResourceArrayResponse.md)
|
|
174
174
|
- [CouponDiscountType](docs/CouponDiscountType.md)
|
|
175
|
-
- [DescriptionResource](docs/DescriptionResource.md)
|
|
176
|
-
- [DescriptionResourceArrayResponse](docs/DescriptionResourceArrayResponse.md)
|
|
177
175
|
- [DestroyAttributeValueRequest](docs/DestroyAttributeValueRequest.md)
|
|
178
176
|
- [DetachAssetableOverlayTemplateRequest](docs/DetachAssetableOverlayTemplateRequest.md)
|
|
179
177
|
- [DetachDocumentablesDocumentRequest](docs/DetachDocumentablesDocumentRequest.md)
|
|
@@ -313,7 +311,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
313
311
|
- [StoreProductTypeRequest](docs/StoreProductTypeRequest.md)
|
|
314
312
|
- [StoreSiteNotificationRequest](docs/StoreSiteNotificationRequest.md)
|
|
315
313
|
- [StoreSupplierRequest](docs/StoreSupplierRequest.md)
|
|
316
|
-
- [StoreSupplierRequestDescriptionsInner](docs/StoreSupplierRequestDescriptionsInner.md)
|
|
317
314
|
- [StoreSupplierRequestSeoInner](docs/StoreSupplierRequestSeoInner.md)
|
|
318
315
|
- [StoreTagRequest](docs/StoreTagRequest.md)
|
|
319
316
|
- [SupplierFrontendResource](docs/SupplierFrontendResource.md)
|
|
@@ -361,7 +358,7 @@ and is automatically generated by the
|
|
|
361
358
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
362
359
|
|
|
363
360
|
- API version: `1.0.0`
|
|
364
|
-
- Package version: `0.0.
|
|
361
|
+
- Package version: `0.0.492`
|
|
365
362
|
- Generator version: `7.17.0`
|
|
366
363
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
367
364
|
|
|
@@ -81,6 +81,12 @@ export interface IndexExternalApiLogRequest {
|
|
|
81
81
|
* @memberof IndexExternalApiLogRequest
|
|
82
82
|
*/
|
|
83
83
|
siteId?: Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<string>}
|
|
87
|
+
* @memberof IndexExternalApiLogRequest
|
|
88
|
+
*/
|
|
89
|
+
productChildId?: Array<string>;
|
|
84
90
|
/**
|
|
85
91
|
*
|
|
86
92
|
* @type {number}
|
|
@@ -63,6 +63,7 @@ function IndexExternalApiLogRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'externalApiLoggableType': json['external_api_loggable_type'] == null ? undefined : json['external_api_loggable_type'],
|
|
64
64
|
'externalApiLoggableId': json['external_api_loggable_id'] == null ? undefined : json['external_api_loggable_id'],
|
|
65
65
|
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
66
|
+
'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
|
|
66
67
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
67
68
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
68
69
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -88,6 +89,7 @@ function IndexExternalApiLogRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
88
89
|
'external_api_loggable_type': value['externalApiLoggableType'],
|
|
89
90
|
'external_api_loggable_id': value['externalApiLoggableId'],
|
|
90
91
|
'site_id': value['siteId'],
|
|
92
|
+
'product_child_id': value['productChildId'],
|
|
91
93
|
'related_id': value['relatedId'],
|
|
92
94
|
'related_type': value['relatedType'],
|
|
93
95
|
'includes_relations': value['includesRelations'],
|
|
@@ -79,10 +79,16 @@ export interface ProductChildSiteDetailResource {
|
|
|
79
79
|
seo: SEOResource | null;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
|
-
* @type {
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof ProductChildSiteDetailResource
|
|
84
|
+
*/
|
|
85
|
+
omnisendId?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
83
89
|
* @memberof ProductChildSiteDetailResource
|
|
84
90
|
*/
|
|
85
|
-
|
|
91
|
+
omnisendSyncStatus?: string | null;
|
|
86
92
|
}
|
|
87
93
|
/**
|
|
88
94
|
* Check if a given object implements the ProductChildSiteDetailResource interface.
|
|
@@ -44,8 +44,6 @@ function instanceOfProductChildSiteDetailResource(value) {
|
|
|
44
44
|
return false;
|
|
45
45
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
46
46
|
return false;
|
|
47
|
-
if (!('documents' in value) || value['documents'] === undefined)
|
|
48
|
-
return false;
|
|
49
47
|
return true;
|
|
50
48
|
}
|
|
51
49
|
function ProductChildSiteDetailResourceFromJSON(json) {
|
|
@@ -66,7 +64,8 @@ function ProductChildSiteDetailResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
66
64
|
'salePrice': json['salePrice'],
|
|
67
65
|
'isDisabled': json['isDisabled'],
|
|
68
66
|
'seo': (0, SEOResource_1.SEOResourceFromJSON)(json['seo']),
|
|
69
|
-
'
|
|
67
|
+
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
68
|
+
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
70
69
|
};
|
|
71
70
|
}
|
|
72
71
|
function ProductChildSiteDetailResourceToJSON(json) {
|
|
@@ -88,6 +87,7 @@ function ProductChildSiteDetailResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
88
87
|
'salePrice': value['salePrice'],
|
|
89
88
|
'isDisabled': value['isDisabled'],
|
|
90
89
|
'seo': (0, SEOResource_1.SEOResourceToJSON)(value['seo']),
|
|
91
|
-
'
|
|
90
|
+
'omnisendId': value['omnisendId'],
|
|
91
|
+
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
|
92
92
|
};
|
|
93
93
|
}
|
|
@@ -26,19 +26,37 @@ export interface SEOResource {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof SEOResource
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
title: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof SEOResource
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
description: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SEOResource
|
|
40
|
+
*/
|
|
41
|
+
keywords: string;
|
|
36
42
|
/**
|
|
37
43
|
*
|
|
38
44
|
* @type {number}
|
|
39
45
|
* @memberof SEOResource
|
|
40
46
|
*/
|
|
41
47
|
siteId: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SEOResource
|
|
52
|
+
*/
|
|
53
|
+
footerDescription: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof SEOResource
|
|
58
|
+
*/
|
|
59
|
+
pageDescription: string;
|
|
42
60
|
}
|
|
43
61
|
/**
|
|
44
62
|
* Check if a given object implements the SEOResource interface.
|
|
@@ -24,12 +24,18 @@ exports.SEOResourceToJSONTyped = SEOResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfSEOResource(value) {
|
|
25
25
|
if (!('id' in value) || value['id'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
29
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('keywords' in value) || value['keywords'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
32
34
|
return false;
|
|
35
|
+
if (!('footerDescription' in value) || value['footerDescription'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('pageDescription' in value) || value['pageDescription'] === undefined)
|
|
38
|
+
return false;
|
|
33
39
|
return true;
|
|
34
40
|
}
|
|
35
41
|
function SEOResourceFromJSON(json) {
|
|
@@ -41,9 +47,12 @@ function SEOResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
47
|
}
|
|
42
48
|
return {
|
|
43
49
|
'id': json['id'],
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
50
|
+
'title': json['title'],
|
|
51
|
+
'description': json['description'],
|
|
52
|
+
'keywords': json['keywords'],
|
|
53
|
+
'siteId': json['site_id'],
|
|
54
|
+
'footerDescription': json['footerDescription'],
|
|
55
|
+
'pageDescription': json['pageDescription'],
|
|
47
56
|
};
|
|
48
57
|
}
|
|
49
58
|
function SEOResourceToJSON(json) {
|
|
@@ -56,8 +65,11 @@ function SEOResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
56
65
|
}
|
|
57
66
|
return {
|
|
58
67
|
'id': value['id'],
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
68
|
+
'title': value['title'],
|
|
69
|
+
'description': value['description'],
|
|
70
|
+
'keywords': value['keywords'],
|
|
71
|
+
'site_id': value['siteId'],
|
|
72
|
+
'footerDescription': value['footerDescription'],
|
|
73
|
+
'pageDescription': value['pageDescription'],
|
|
62
74
|
};
|
|
63
75
|
}
|
|
@@ -38,7 +38,7 @@ export interface StoreProductChildRequestSitesInner {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof StoreProductChildRequestSitesInner
|
|
40
40
|
*/
|
|
41
|
-
description
|
|
41
|
+
description?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {number}
|
|
@@ -68,13 +68,25 @@ export interface StoreProductChildRequestSitesInner {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreProductChildRequestSitesInner
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
title?: string;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof StoreProductChildRequestSitesInner
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
keywords?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof StoreProductChildRequestSitesInner
|
|
82
|
+
*/
|
|
83
|
+
footerDescription?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof StoreProductChildRequestSitesInner
|
|
88
|
+
*/
|
|
89
|
+
pageDescription?: string;
|
|
78
90
|
}
|
|
79
91
|
/**
|
|
80
92
|
* Check if a given object implements the StoreProductChildRequestSitesInner interface.
|
|
@@ -24,8 +24,6 @@ exports.StoreProductChildRequestSitesInnerToJSONTyped = StoreProductChildRequest
|
|
|
24
24
|
function instanceOfStoreProductChildRequestSitesInner(value) {
|
|
25
25
|
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('description' in value) || value['description'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
@@ -47,13 +45,15 @@ function StoreProductChildRequestSitesInnerFromJSONTyped(json, ignoreDiscriminat
|
|
|
47
45
|
'siteId': json['site_id'],
|
|
48
46
|
'name': json['name'] == null ? undefined : json['name'],
|
|
49
47
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
50
|
-
'description': json['description'],
|
|
48
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
51
49
|
'rrpPrice': json['rrp_price'],
|
|
52
50
|
'salePrice': json['sale_price'],
|
|
53
51
|
'slug': json['slug'],
|
|
54
52
|
'documents': json['documents'],
|
|
55
|
-
'
|
|
56
|
-
'
|
|
53
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
54
|
+
'keywords': json['keywords'] == null ? undefined : json['keywords'],
|
|
55
|
+
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
56
|
+
'pageDescription': json['page_description'] == null ? undefined : json['page_description'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
function StoreProductChildRequestSitesInnerToJSON(json) {
|
|
@@ -73,7 +73,9 @@ function StoreProductChildRequestSitesInnerToJSONTyped(value, ignoreDiscriminato
|
|
|
73
73
|
'sale_price': value['salePrice'],
|
|
74
74
|
'slug': value['slug'],
|
|
75
75
|
'documents': value['documents'],
|
|
76
|
-
'
|
|
77
|
-
'
|
|
76
|
+
'title': value['title'],
|
|
77
|
+
'keywords': value['keywords'],
|
|
78
|
+
'footer_description': value['footerDescription'],
|
|
79
|
+
'page_description': value['pageDescription'],
|
|
78
80
|
};
|
|
79
81
|
}
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { StoreSupplierRequestSeoInner } from './StoreSupplierRequestSeoInner';
|
|
13
|
-
import type { StoreSupplierRequestDescriptionsInner } from './StoreSupplierRequestDescriptionsInner';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -59,12 +58,6 @@ export interface StoreSupplierRequest {
|
|
|
59
58
|
* @memberof StoreSupplierRequest
|
|
60
59
|
*/
|
|
61
60
|
assetFileId: number;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {Array<StoreSupplierRequestDescriptionsInner>}
|
|
65
|
-
* @memberof StoreSupplierRequest
|
|
66
|
-
*/
|
|
67
|
-
descriptions: Array<StoreSupplierRequestDescriptionsInner>;
|
|
68
61
|
}
|
|
69
62
|
/**
|
|
70
63
|
* Check if a given object implements the StoreSupplierRequest interface.
|
|
@@ -19,7 +19,6 @@ exports.StoreSupplierRequestFromJSONTyped = StoreSupplierRequestFromJSONTyped;
|
|
|
19
19
|
exports.StoreSupplierRequestToJSON = StoreSupplierRequestToJSON;
|
|
20
20
|
exports.StoreSupplierRequestToJSONTyped = StoreSupplierRequestToJSONTyped;
|
|
21
21
|
var StoreSupplierRequestSeoInner_1 = require("./StoreSupplierRequestSeoInner");
|
|
22
|
-
var StoreSupplierRequestDescriptionsInner_1 = require("./StoreSupplierRequestDescriptionsInner");
|
|
23
22
|
/**
|
|
24
23
|
* Check if a given object implements the StoreSupplierRequest interface.
|
|
25
24
|
*/
|
|
@@ -36,8 +35,6 @@ function instanceOfStoreSupplierRequest(value) {
|
|
|
36
35
|
return false;
|
|
37
36
|
if (!('assetFileId' in value) || value['assetFileId'] === undefined)
|
|
38
37
|
return false;
|
|
39
|
-
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
40
|
-
return false;
|
|
41
38
|
return true;
|
|
42
39
|
}
|
|
43
40
|
function StoreSupplierRequestFromJSON(json) {
|
|
@@ -55,7 +52,6 @@ function StoreSupplierRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
52
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
56
53
|
'mimeType': json['mime_type'],
|
|
57
54
|
'assetFileId': json['asset_file_id'],
|
|
58
|
-
'descriptions': (json['descriptions'].map(StoreSupplierRequestDescriptionsInner_1.StoreSupplierRequestDescriptionsInnerFromJSON)),
|
|
59
55
|
};
|
|
60
56
|
}
|
|
61
57
|
function StoreSupplierRequestToJSON(json) {
|
|
@@ -74,6 +70,5 @@ function StoreSupplierRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
74
70
|
'alt_text': value['altText'],
|
|
75
71
|
'mime_type': value['mimeType'],
|
|
76
72
|
'asset_file_id': value['assetFileId'],
|
|
77
|
-
'descriptions': (value['descriptions'].map(StoreSupplierRequestDescriptionsInner_1.StoreSupplierRequestDescriptionsInnerToJSON)),
|
|
78
73
|
};
|
|
79
74
|
}
|
|
@@ -20,13 +20,31 @@ export interface StoreSupplierRequestSeoInner {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof StoreSupplierRequestSeoInner
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
title?: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof StoreSupplierRequestSeoInner
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
description?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StoreSupplierRequestSeoInner
|
|
34
|
+
*/
|
|
35
|
+
keywords?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof StoreSupplierRequestSeoInner
|
|
40
|
+
*/
|
|
41
|
+
footerDescription?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof StoreSupplierRequestSeoInner
|
|
46
|
+
*/
|
|
47
|
+
pageDescription?: string;
|
|
30
48
|
/**
|
|
31
49
|
*
|
|
32
50
|
* @type {number}
|
|
@@ -34,8 +34,11 @@ function StoreSupplierRequestSeoInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'
|
|
38
|
-
'
|
|
37
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
38
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
39
|
+
'keywords': json['keywords'] == null ? undefined : json['keywords'],
|
|
40
|
+
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
41
|
+
'pageDescription': json['page_description'] == null ? undefined : json['page_description'],
|
|
39
42
|
'siteId': json['site_id'],
|
|
40
43
|
};
|
|
41
44
|
}
|
|
@@ -48,8 +51,11 @@ function StoreSupplierRequestSeoInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
|
48
51
|
return value;
|
|
49
52
|
}
|
|
50
53
|
return {
|
|
51
|
-
'
|
|
52
|
-
'
|
|
54
|
+
'title': value['title'],
|
|
55
|
+
'description': value['description'],
|
|
56
|
+
'keywords': value['keywords'],
|
|
57
|
+
'footer_description': value['footerDescription'],
|
|
58
|
+
'page_description': value['pageDescription'],
|
|
53
59
|
'site_id': value['siteId'],
|
|
54
60
|
};
|
|
55
61
|
}
|
|
@@ -44,25 +44,31 @@ export interface StoreTagRequest {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof StoreTagRequest
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
title?: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof StoreTagRequest
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
description?: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof StoreTagRequest
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
keywords?: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof StoreTagRequest
|
|
64
64
|
*/
|
|
65
65
|
footerDescription?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof StoreTagRequest
|
|
70
|
+
*/
|
|
71
|
+
pageDescription?: string;
|
|
66
72
|
}
|
|
67
73
|
/**
|
|
68
74
|
* @export
|
|
@@ -52,10 +52,11 @@ function StoreTagRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'slug': json['slug'],
|
|
53
53
|
'siteId': json['site_id'],
|
|
54
54
|
'type': json['type'],
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
55
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
56
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
57
|
+
'keywords': json['keywords'] == null ? undefined : json['keywords'],
|
|
58
58
|
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
59
|
+
'pageDescription': json['page_description'] == null ? undefined : json['page_description'],
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
62
|
function StoreTagRequestToJSON(json) {
|
|
@@ -71,9 +72,10 @@ function StoreTagRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
72
|
'slug': value['slug'],
|
|
72
73
|
'site_id': value['siteId'],
|
|
73
74
|
'type': value['type'],
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'
|
|
75
|
+
'title': value['title'],
|
|
76
|
+
'description': value['description'],
|
|
77
|
+
'keywords': value['keywords'],
|
|
77
78
|
'footer_description': value['footerDescription'],
|
|
79
|
+
'page_description': value['pageDescription'],
|
|
78
80
|
};
|
|
79
81
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { DescriptionResource } from './DescriptionResource';
|
|
13
12
|
import type { AssetResource } from './AssetResource';
|
|
14
13
|
import type { SEOResource } from './SEOResource';
|
|
15
14
|
/**
|
|
@@ -54,12 +53,6 @@ export interface SupplierFrontendResource {
|
|
|
54
53
|
* @memberof SupplierFrontendResource
|
|
55
54
|
*/
|
|
56
55
|
seo: SEOResource | null;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {Array<DescriptionResource>}
|
|
60
|
-
* @memberof SupplierFrontendResource
|
|
61
|
-
*/
|
|
62
|
-
descriptions: Array<DescriptionResource> | null;
|
|
63
56
|
}
|
|
64
57
|
/**
|
|
65
58
|
* Check if a given object implements the SupplierFrontendResource interface.
|
|
@@ -18,7 +18,6 @@ exports.SupplierFrontendResourceFromJSON = SupplierFrontendResourceFromJSON;
|
|
|
18
18
|
exports.SupplierFrontendResourceFromJSONTyped = SupplierFrontendResourceFromJSONTyped;
|
|
19
19
|
exports.SupplierFrontendResourceToJSON = SupplierFrontendResourceToJSON;
|
|
20
20
|
exports.SupplierFrontendResourceToJSONTyped = SupplierFrontendResourceToJSONTyped;
|
|
21
|
-
var DescriptionResource_1 = require("./DescriptionResource");
|
|
22
21
|
var AssetResource_1 = require("./AssetResource");
|
|
23
22
|
var SEOResource_1 = require("./SEOResource");
|
|
24
23
|
/**
|
|
@@ -37,8 +36,6 @@ function instanceOfSupplierFrontendResource(value) {
|
|
|
37
36
|
return false;
|
|
38
37
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
39
38
|
return false;
|
|
40
|
-
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
41
|
-
return false;
|
|
42
39
|
return true;
|
|
43
40
|
}
|
|
44
41
|
function SupplierFrontendResourceFromJSON(json) {
|
|
@@ -55,7 +52,6 @@ function SupplierFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
52
|
'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
|
|
56
53
|
'supplierEta': json['supplierEta'],
|
|
57
54
|
'seo': (0, SEOResource_1.SEOResourceFromJSON)(json['seo']),
|
|
58
|
-
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
59
55
|
};
|
|
60
56
|
}
|
|
61
57
|
function SupplierFrontendResourceToJSON(json) {
|
|
@@ -73,6 +69,5 @@ function SupplierFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
73
69
|
'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
|
|
74
70
|
'supplierEta': value['supplierEta'],
|
|
75
71
|
'seo': (0, SEOResource_1.SEOResourceToJSON)(value['seo']),
|
|
76
|
-
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
77
72
|
};
|
|
78
73
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { DescriptionResource } from './DescriptionResource';
|
|
13
12
|
import type { AssetResource } from './AssetResource';
|
|
14
13
|
import type { SEOResource } from './SEOResource';
|
|
15
14
|
/**
|
|
@@ -54,12 +53,6 @@ export interface SupplierResource {
|
|
|
54
53
|
* @memberof SupplierResource
|
|
55
54
|
*/
|
|
56
55
|
seo: Array<SEOResource> | null;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {Array<DescriptionResource>}
|
|
60
|
-
* @memberof SupplierResource
|
|
61
|
-
*/
|
|
62
|
-
descriptions: Array<DescriptionResource> | null;
|
|
63
56
|
}
|
|
64
57
|
/**
|
|
65
58
|
* Check if a given object implements the SupplierResource interface.
|
|
@@ -18,7 +18,6 @@ exports.SupplierResourceFromJSON = SupplierResourceFromJSON;
|
|
|
18
18
|
exports.SupplierResourceFromJSONTyped = SupplierResourceFromJSONTyped;
|
|
19
19
|
exports.SupplierResourceToJSON = SupplierResourceToJSON;
|
|
20
20
|
exports.SupplierResourceToJSONTyped = SupplierResourceToJSONTyped;
|
|
21
|
-
var DescriptionResource_1 = require("./DescriptionResource");
|
|
22
21
|
var AssetResource_1 = require("./AssetResource");
|
|
23
22
|
var SEOResource_1 = require("./SEOResource");
|
|
24
23
|
/**
|
|
@@ -37,8 +36,6 @@ function instanceOfSupplierResource(value) {
|
|
|
37
36
|
return false;
|
|
38
37
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
39
38
|
return false;
|
|
40
|
-
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
41
|
-
return false;
|
|
42
39
|
return true;
|
|
43
40
|
}
|
|
44
41
|
function SupplierResourceFromJSON(json) {
|
|
@@ -55,7 +52,6 @@ function SupplierResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
52
|
'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
|
|
56
53
|
'supplierEta': json['supplierEta'],
|
|
57
54
|
'seo': (json['seo'] == null ? null : json['seo'].map(SEOResource_1.SEOResourceFromJSON)),
|
|
58
|
-
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
59
55
|
};
|
|
60
56
|
}
|
|
61
57
|
function SupplierResourceToJSON(json) {
|
|
@@ -73,6 +69,5 @@ function SupplierResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
73
69
|
'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
|
|
74
70
|
'supplierEta': value['supplierEta'],
|
|
75
71
|
'seo': (value['seo'] == null ? null : value['seo'].map(SEOResource_1.SEOResourceToJSON)),
|
|
76
|
-
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
77
72
|
};
|
|
78
73
|
}
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
-
import type { DescriptionResource } from './DescriptionResource';
|
|
14
13
|
import type { SEOResource } from './SEOResource';
|
|
15
14
|
/**
|
|
16
15
|
*
|
|
@@ -54,12 +53,6 @@ export interface TagResource {
|
|
|
54
53
|
* @memberof TagResource
|
|
55
54
|
*/
|
|
56
55
|
seo: SEOResource | null;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {DescriptionResource}
|
|
60
|
-
* @memberof TagResource
|
|
61
|
-
*/
|
|
62
|
-
description: DescriptionResource | null;
|
|
63
56
|
}
|
|
64
57
|
/**
|
|
65
58
|
* Check if a given object implements the TagResource interface.
|
|
@@ -19,7 +19,6 @@ exports.TagResourceFromJSONTyped = TagResourceFromJSONTyped;
|
|
|
19
19
|
exports.TagResourceToJSON = TagResourceToJSON;
|
|
20
20
|
exports.TagResourceToJSONTyped = TagResourceToJSONTyped;
|
|
21
21
|
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
-
var DescriptionResource_1 = require("./DescriptionResource");
|
|
23
22
|
var SEOResource_1 = require("./SEOResource");
|
|
24
23
|
/**
|
|
25
24
|
* Check if a given object implements the TagResource interface.
|
|
@@ -37,8 +36,6 @@ function instanceOfTagResource(value) {
|
|
|
37
36
|
return false;
|
|
38
37
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
39
38
|
return false;
|
|
40
|
-
if (!('description' in value) || value['description'] === undefined)
|
|
41
|
-
return false;
|
|
42
39
|
return true;
|
|
43
40
|
}
|
|
44
41
|
function TagResourceFromJSON(json) {
|
|
@@ -55,7 +52,6 @@ function TagResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
52
|
'type': json['type'],
|
|
56
53
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
57
54
|
'seo': (0, SEOResource_1.SEOResourceFromJSON)(json['seo']),
|
|
58
|
-
'description': (0, DescriptionResource_1.DescriptionResourceFromJSON)(json['description']),
|
|
59
55
|
};
|
|
60
56
|
}
|
|
61
57
|
function TagResourceToJSON(json) {
|
|
@@ -73,6 +69,5 @@ function TagResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
73
69
|
'type': value['type'],
|
|
74
70
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
75
71
|
'seo': (0, SEOResource_1.SEOResourceToJSON)(value['seo']),
|
|
76
|
-
'description': (0, DescriptionResource_1.DescriptionResourceToJSON)(value['description']),
|
|
77
72
|
};
|
|
78
73
|
}
|