@digital8/lighting-illusions-ts-sdk 0.0.488 → 0.0.489
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 +8 -22
- package/README.md +10 -15
- package/dist/apis/DocumentApi.d.ts +24 -1
- package/dist/apis/DocumentApi.js +96 -2
- package/dist/models/DescriptionResource.d.ts +44 -0
- package/dist/models/DescriptionResource.js +59 -0
- package/dist/models/DescriptionResourceArrayResponse.d.ts +33 -0
- package/dist/models/DescriptionResourceArrayResponse.js +50 -0
- package/dist/models/GetAllDocumentRequest.d.ts +26 -0
- package/dist/models/GetAllDocumentRequest.js +14 -1
- package/dist/models/GetAllProductChildRequest.d.ts +1 -0
- package/dist/models/GetAllProductChildRequest.js +2 -1
- package/dist/models/IndexDocumentRequest.d.ts +26 -0
- package/dist/models/IndexDocumentRequest.js +14 -1
- package/dist/models/IndexExternalApiLogRequest.d.ts +0 -6
- package/dist/models/IndexExternalApiLogRequest.js +0 -2
- package/dist/models/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/ProductChildSiteDetailResource.d.ts +2 -8
- package/dist/models/ProductChildSiteDetailResource.js +4 -4
- package/dist/models/SEOResource.d.ts +2 -20
- package/dist/models/SEOResource.js +8 -20
- package/dist/models/StoreProductChildRequestSitesInner.d.ts +3 -15
- package/dist/models/StoreProductChildRequestSitesInner.js +7 -9
- package/dist/models/StoreSupplierRequest.d.ts +7 -0
- package/dist/models/StoreSupplierRequest.js +5 -0
- package/dist/models/StoreSupplierRequestDescriptionsInner.d.ts +44 -0
- package/dist/models/StoreSupplierRequestDescriptionsInner.js +55 -0
- package/dist/models/StoreSupplierRequestSeoInner.d.ts +2 -20
- package/dist/models/StoreSupplierRequestSeoInner.js +4 -10
- package/dist/models/StoreTagRequest.d.ts +3 -9
- package/dist/models/StoreTagRequest.js +6 -8
- package/dist/models/SupplierFrontendResource.d.ts +7 -0
- package/dist/models/SupplierFrontendResource.js +5 -0
- package/dist/models/SupplierResource.d.ts +7 -0
- package/dist/models/SupplierResource.js +5 -0
- package/dist/models/TagResource.d.ts +7 -0
- package/dist/models/TagResource.js +5 -0
- package/dist/models/UpdateDocumentRequest.d.ts +44 -0
- package/dist/models/UpdateDocumentRequest.js +57 -0
- package/dist/models/UpdateSupplierRequest.d.ts +7 -0
- package/dist/models/UpdateSupplierRequest.js +5 -0
- package/dist/models/UpdateTagRequest.d.ts +3 -9
- package/dist/models/UpdateTagRequest.js +6 -8
- package/dist/models/index.d.ts +4 -11
- package/dist/models/index.js +4 -11
- package/docs/{ProductAggregationResourceArrayResponse.md → DescriptionResource.md} +10 -6
- package/docs/{ProductRating.md → DescriptionResourceArrayResponse.md} +6 -4
- package/docs/DocumentApi.md +137 -2
- package/docs/GetAllDocumentRequest.md +6 -0
- package/docs/IndexDocumentRequest.md +6 -0
- package/docs/IndexExternalApiLogRequest.md +0 -2
- package/docs/ProductChildSiteDetailResource.md +2 -4
- package/docs/SEOResource.md +4 -10
- package/docs/StoreProductChildRequestSitesInner.md +4 -8
- package/docs/StoreSupplierRequest.md +2 -0
- package/docs/{ProductSearchResponseResourceMeta.md → StoreSupplierRequestDescriptionsInner.md} +10 -12
- package/docs/StoreSupplierRequestSeoInner.md +4 -10
- package/docs/StoreTagRequest.md +6 -8
- package/docs/SupplierFrontendResource.md +2 -0
- package/docs/SupplierResource.md +2 -0
- package/docs/TagResource.md +2 -0
- package/docs/{ProductSortBy.md → UpdateDocumentRequest.md} +10 -4
- package/docs/UpdateSupplierRequest.md +2 -0
- package/docs/UpdateTagRequest.md +6 -8
- package/package.json +1 -1
- package/src/apis/DocumentApi.ts +91 -2
- package/src/models/DescriptionResource.ts +84 -0
- package/src/models/DescriptionResourceArrayResponse.ts +73 -0
- package/src/models/GetAllDocumentRequest.ts +33 -0
- package/src/models/GetAllProductChildRequest.ts +2 -1
- package/src/models/IndexDocumentRequest.ts +33 -0
- package/src/models/IndexExternalApiLogRequest.ts +0 -8
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/ProductChildSiteDetailResource.ts +5 -12
- package/src/models/SEOResource.ts +10 -37
- package/src/models/StoreProductChildRequestSitesInner.ts +9 -24
- package/src/models/StoreSupplierRequest.ts +16 -0
- package/src/models/StoreSupplierRequestDescriptionsInner.ts +82 -0
- package/src/models/StoreSupplierRequestSeoInner.ts +6 -30
- package/src/models/StoreTagRequest.ts +9 -17
- package/src/models/SupplierFrontendResource.ts +16 -0
- package/src/models/SupplierResource.ts +16 -0
- package/src/models/TagResource.ts +16 -0
- package/src/models/UpdateDocumentRequest.ts +83 -0
- package/src/models/UpdateSupplierRequest.ts +16 -0
- package/src/models/UpdateTagRequest.ts +9 -17
- package/src/models/index.ts +4 -11
- 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/docs/PaginatedProductSearchResultResourceResponse.md +0 -36
- package/docs/ProductAggregationResource.md +0 -40
- package/docs/ProductSearchResponseResource.md +0 -40
- package/docs/ProductSearchResponseResourceArrayResponse.md +0 -34
- package/docs/ProductSearchResponseResourcePriceInfo.md +0 -40
- package/docs/ProductSearchResultResource.md +0 -62
- package/docs/ProductSearchResultResourceArrayResponse.md +0 -34
- 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
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
StoreSupplierRequestSeoInnerToJSON,
|
|
21
21
|
StoreSupplierRequestSeoInnerToJSONTyped,
|
|
22
22
|
} from './StoreSupplierRequestSeoInner';
|
|
23
|
+
import type { StoreSupplierRequestDescriptionsInner } from './StoreSupplierRequestDescriptionsInner';
|
|
24
|
+
import {
|
|
25
|
+
StoreSupplierRequestDescriptionsInnerFromJSON,
|
|
26
|
+
StoreSupplierRequestDescriptionsInnerFromJSONTyped,
|
|
27
|
+
StoreSupplierRequestDescriptionsInnerToJSON,
|
|
28
|
+
StoreSupplierRequestDescriptionsInnerToJSONTyped,
|
|
29
|
+
} from './StoreSupplierRequestDescriptionsInner';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -69,6 +76,12 @@ export interface StoreSupplierRequest {
|
|
|
69
76
|
* @memberof StoreSupplierRequest
|
|
70
77
|
*/
|
|
71
78
|
assetFileId: number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Array<StoreSupplierRequestDescriptionsInner>}
|
|
82
|
+
* @memberof StoreSupplierRequest
|
|
83
|
+
*/
|
|
84
|
+
descriptions: Array<StoreSupplierRequestDescriptionsInner>;
|
|
72
85
|
}
|
|
73
86
|
|
|
74
87
|
/**
|
|
@@ -81,6 +94,7 @@ export function instanceOfStoreSupplierRequest(value: object): value is StoreSup
|
|
|
81
94
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
82
95
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
83
96
|
if (!('assetFileId' in value) || value['assetFileId'] === undefined) return false;
|
|
97
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
84
98
|
return true;
|
|
85
99
|
}
|
|
86
100
|
|
|
@@ -101,6 +115,7 @@ export function StoreSupplierRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
101
115
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
102
116
|
'mimeType': json['mime_type'],
|
|
103
117
|
'assetFileId': json['asset_file_id'],
|
|
118
|
+
'descriptions': ((json['descriptions'] as Array<any>).map(StoreSupplierRequestDescriptionsInnerFromJSON)),
|
|
104
119
|
};
|
|
105
120
|
}
|
|
106
121
|
|
|
@@ -122,6 +137,7 @@ export function StoreSupplierRequestToJSONTyped(value?: StoreSupplierRequest | n
|
|
|
122
137
|
'alt_text': value['altText'],
|
|
123
138
|
'mime_type': value['mimeType'],
|
|
124
139
|
'asset_file_id': value['assetFileId'],
|
|
140
|
+
'descriptions': ((value['descriptions'] as Array<any>).map(StoreSupplierRequestDescriptionsInnerToJSON)),
|
|
125
141
|
};
|
|
126
142
|
}
|
|
127
143
|
|
|
@@ -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 StoreSupplierRequestDescriptionsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface StoreSupplierRequestDescriptionsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof StoreSupplierRequestDescriptionsInner
|
|
26
|
+
*/
|
|
27
|
+
headerDescription?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof StoreSupplierRequestDescriptionsInner
|
|
32
|
+
*/
|
|
33
|
+
footerDescription?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof StoreSupplierRequestDescriptionsInner
|
|
38
|
+
*/
|
|
39
|
+
siteId: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the StoreSupplierRequestDescriptionsInner interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfStoreSupplierRequestDescriptionsInner(value: object): value is StoreSupplierRequestDescriptionsInner {
|
|
46
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function StoreSupplierRequestDescriptionsInnerFromJSON(json: any): StoreSupplierRequestDescriptionsInner {
|
|
51
|
+
return StoreSupplierRequestDescriptionsInnerFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function StoreSupplierRequestDescriptionsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreSupplierRequestDescriptionsInner {
|
|
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 StoreSupplierRequestDescriptionsInnerToJSON(json: any): StoreSupplierRequestDescriptionsInner {
|
|
67
|
+
return StoreSupplierRequestDescriptionsInnerToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function StoreSupplierRequestDescriptionsInnerToJSONTyped(value?: StoreSupplierRequestDescriptionsInner | 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
|
+
|
|
@@ -24,31 +24,13 @@ export interface StoreSupplierRequestSeoInner {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof StoreSupplierRequestSeoInner
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
seoTitle?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof StoreSupplierRequestSeoInner
|
|
32
32
|
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof StoreSupplierRequestSeoInner
|
|
38
|
-
*/
|
|
39
|
-
keywords?: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof StoreSupplierRequestSeoInner
|
|
44
|
-
*/
|
|
45
|
-
footerDescription?: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof StoreSupplierRequestSeoInner
|
|
50
|
-
*/
|
|
51
|
-
pageDescription?: string;
|
|
33
|
+
seoDescription?: string;
|
|
52
34
|
/**
|
|
53
35
|
*
|
|
54
36
|
* @type {number}
|
|
@@ -75,11 +57,8 @@ export function StoreSupplierRequestSeoInnerFromJSONTyped(json: any, ignoreDiscr
|
|
|
75
57
|
}
|
|
76
58
|
return {
|
|
77
59
|
|
|
78
|
-
'
|
|
79
|
-
'
|
|
80
|
-
'keywords': json['keywords'] == null ? undefined : json['keywords'],
|
|
81
|
-
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
82
|
-
'pageDescription': json['page_description'] == null ? undefined : json['page_description'],
|
|
60
|
+
'seoTitle': json['seo_title'] == null ? undefined : json['seo_title'],
|
|
61
|
+
'seoDescription': json['seo_description'] == null ? undefined : json['seo_description'],
|
|
83
62
|
'siteId': json['site_id'],
|
|
84
63
|
};
|
|
85
64
|
}
|
|
@@ -95,11 +74,8 @@ export function StoreSupplierRequestSeoInnerToJSONTyped(value?: StoreSupplierReq
|
|
|
95
74
|
|
|
96
75
|
return {
|
|
97
76
|
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'keywords': value['keywords'],
|
|
101
|
-
'footer_description': value['footerDescription'],
|
|
102
|
-
'page_description': value['pageDescription'],
|
|
77
|
+
'seo_title': value['seoTitle'],
|
|
78
|
+
'seo_description': value['seoDescription'],
|
|
103
79
|
'site_id': value['siteId'],
|
|
104
80
|
};
|
|
105
81
|
}
|
|
@@ -48,31 +48,25 @@ export interface StoreTagRequest {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreTagRequest
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
seoTitle?: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof StoreTagRequest
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
seoDescription?: string;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof StoreTagRequest
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
headerDescription?: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
67
67
|
* @memberof StoreTagRequest
|
|
68
68
|
*/
|
|
69
69
|
footerDescription?: string;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof StoreTagRequest
|
|
74
|
-
*/
|
|
75
|
-
pageDescription?: string;
|
|
76
70
|
}
|
|
77
71
|
|
|
78
72
|
|
|
@@ -111,11 +105,10 @@ export function StoreTagRequestFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
111
105
|
'slug': json['slug'],
|
|
112
106
|
'siteId': json['site_id'],
|
|
113
107
|
'type': json['type'],
|
|
114
|
-
'
|
|
115
|
-
'
|
|
116
|
-
'
|
|
108
|
+
'seoTitle': json['seo_title'] == null ? undefined : json['seo_title'],
|
|
109
|
+
'seoDescription': json['seo_description'] == null ? undefined : json['seo_description'],
|
|
110
|
+
'headerDescription': json['header_description'] == null ? undefined : json['header_description'],
|
|
117
111
|
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
118
|
-
'pageDescription': json['page_description'] == null ? undefined : json['page_description'],
|
|
119
112
|
};
|
|
120
113
|
}
|
|
121
114
|
|
|
@@ -134,11 +127,10 @@ export function StoreTagRequestToJSONTyped(value?: StoreTagRequest | null, ignor
|
|
|
134
127
|
'slug': value['slug'],
|
|
135
128
|
'site_id': value['siteId'],
|
|
136
129
|
'type': value['type'],
|
|
137
|
-
'
|
|
138
|
-
'
|
|
139
|
-
'
|
|
130
|
+
'seo_title': value['seoTitle'],
|
|
131
|
+
'seo_description': value['seoDescription'],
|
|
132
|
+
'header_description': value['headerDescription'],
|
|
140
133
|
'footer_description': value['footerDescription'],
|
|
141
|
-
'page_description': value['pageDescription'],
|
|
142
134
|
};
|
|
143
135
|
}
|
|
144
136
|
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
17
|
+
import {
|
|
18
|
+
DescriptionResourceFromJSON,
|
|
19
|
+
DescriptionResourceFromJSONTyped,
|
|
20
|
+
DescriptionResourceToJSON,
|
|
21
|
+
DescriptionResourceToJSONTyped,
|
|
22
|
+
} from './DescriptionResource';
|
|
16
23
|
import type { AssetResource } from './AssetResource';
|
|
17
24
|
import {
|
|
18
25
|
AssetResourceFromJSON,
|
|
@@ -70,6 +77,12 @@ export interface SupplierFrontendResource {
|
|
|
70
77
|
* @memberof SupplierFrontendResource
|
|
71
78
|
*/
|
|
72
79
|
seo: SEOResource | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {Array<DescriptionResource>}
|
|
83
|
+
* @memberof SupplierFrontendResource
|
|
84
|
+
*/
|
|
85
|
+
descriptions: Array<DescriptionResource> | null;
|
|
73
86
|
}
|
|
74
87
|
|
|
75
88
|
/**
|
|
@@ -82,6 +95,7 @@ export function instanceOfSupplierFrontendResource(value: object): value is Supp
|
|
|
82
95
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
83
96
|
if (!('supplierEta' in value) || value['supplierEta'] === undefined) return false;
|
|
84
97
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
98
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
85
99
|
return true;
|
|
86
100
|
}
|
|
87
101
|
|
|
@@ -101,6 +115,7 @@ export function SupplierFrontendResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
101
115
|
'thumbnail': AssetResourceFromJSON(json['thumbnail']),
|
|
102
116
|
'supplierEta': json['supplierEta'],
|
|
103
117
|
'seo': SEOResourceFromJSON(json['seo']),
|
|
118
|
+
'descriptions': (json['descriptions'] == null ? null : (json['descriptions'] as Array<any>).map(DescriptionResourceFromJSON)),
|
|
104
119
|
};
|
|
105
120
|
}
|
|
106
121
|
|
|
@@ -121,6 +136,7 @@ export function SupplierFrontendResourceToJSONTyped(value?: SupplierFrontendReso
|
|
|
121
136
|
'thumbnail': AssetResourceToJSON(value['thumbnail']),
|
|
122
137
|
'supplierEta': value['supplierEta'],
|
|
123
138
|
'seo': SEOResourceToJSON(value['seo']),
|
|
139
|
+
'descriptions': (value['descriptions'] == null ? null : (value['descriptions'] as Array<any>).map(DescriptionResourceToJSON)),
|
|
124
140
|
};
|
|
125
141
|
}
|
|
126
142
|
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
17
|
+
import {
|
|
18
|
+
DescriptionResourceFromJSON,
|
|
19
|
+
DescriptionResourceFromJSONTyped,
|
|
20
|
+
DescriptionResourceToJSON,
|
|
21
|
+
DescriptionResourceToJSONTyped,
|
|
22
|
+
} from './DescriptionResource';
|
|
16
23
|
import type { AssetResource } from './AssetResource';
|
|
17
24
|
import {
|
|
18
25
|
AssetResourceFromJSON,
|
|
@@ -70,6 +77,12 @@ export interface SupplierResource {
|
|
|
70
77
|
* @memberof SupplierResource
|
|
71
78
|
*/
|
|
72
79
|
seo: Array<SEOResource> | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {Array<DescriptionResource>}
|
|
83
|
+
* @memberof SupplierResource
|
|
84
|
+
*/
|
|
85
|
+
descriptions: Array<DescriptionResource> | null;
|
|
73
86
|
}
|
|
74
87
|
|
|
75
88
|
/**
|
|
@@ -82,6 +95,7 @@ export function instanceOfSupplierResource(value: object): value is SupplierReso
|
|
|
82
95
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
83
96
|
if (!('supplierEta' in value) || value['supplierEta'] === undefined) return false;
|
|
84
97
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
98
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
85
99
|
return true;
|
|
86
100
|
}
|
|
87
101
|
|
|
@@ -101,6 +115,7 @@ export function SupplierResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
101
115
|
'thumbnail': AssetResourceFromJSON(json['thumbnail']),
|
|
102
116
|
'supplierEta': json['supplierEta'],
|
|
103
117
|
'seo': (json['seo'] == null ? null : (json['seo'] as Array<any>).map(SEOResourceFromJSON)),
|
|
118
|
+
'descriptions': (json['descriptions'] == null ? null : (json['descriptions'] as Array<any>).map(DescriptionResourceFromJSON)),
|
|
104
119
|
};
|
|
105
120
|
}
|
|
106
121
|
|
|
@@ -121,6 +136,7 @@ export function SupplierResourceToJSONTyped(value?: SupplierResource | null, ign
|
|
|
121
136
|
'thumbnail': AssetResourceToJSON(value['thumbnail']),
|
|
122
137
|
'supplierEta': value['supplierEta'],
|
|
123
138
|
'seo': (value['seo'] == null ? null : (value['seo'] as Array<any>).map(SEOResourceToJSON)),
|
|
139
|
+
'descriptions': (value['descriptions'] == null ? null : (value['descriptions'] as Array<any>).map(DescriptionResourceToJSON)),
|
|
124
140
|
};
|
|
125
141
|
}
|
|
126
142
|
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
SiteLiteResourceToJSON,
|
|
21
21
|
SiteLiteResourceToJSONTyped,
|
|
22
22
|
} from './SiteLiteResource';
|
|
23
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
24
|
+
import {
|
|
25
|
+
DescriptionResourceFromJSON,
|
|
26
|
+
DescriptionResourceFromJSONTyped,
|
|
27
|
+
DescriptionResourceToJSON,
|
|
28
|
+
DescriptionResourceToJSONTyped,
|
|
29
|
+
} from './DescriptionResource';
|
|
23
30
|
import type { SEOResource } from './SEOResource';
|
|
24
31
|
import {
|
|
25
32
|
SEOResourceFromJSON,
|
|
@@ -70,6 +77,12 @@ export interface TagResource {
|
|
|
70
77
|
* @memberof TagResource
|
|
71
78
|
*/
|
|
72
79
|
seo: SEOResource | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {DescriptionResource}
|
|
83
|
+
* @memberof TagResource
|
|
84
|
+
*/
|
|
85
|
+
description: DescriptionResource | null;
|
|
73
86
|
}
|
|
74
87
|
|
|
75
88
|
/**
|
|
@@ -82,6 +95,7 @@ export function instanceOfTagResource(value: object): value is TagResource {
|
|
|
82
95
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
83
96
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
84
97
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
98
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
85
99
|
return true;
|
|
86
100
|
}
|
|
87
101
|
|
|
@@ -101,6 +115,7 @@ export function TagResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
101
115
|
'type': json['type'],
|
|
102
116
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
103
117
|
'seo': SEOResourceFromJSON(json['seo']),
|
|
118
|
+
'description': DescriptionResourceFromJSON(json['description']),
|
|
104
119
|
};
|
|
105
120
|
}
|
|
106
121
|
|
|
@@ -121,6 +136,7 @@ export function TagResourceToJSONTyped(value?: TagResource | null, ignoreDiscrim
|
|
|
121
136
|
'type': value['type'],
|
|
122
137
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
123
138
|
'seo': SEOResourceToJSON(value['seo']),
|
|
139
|
+
'description': DescriptionResourceToJSON(value['description']),
|
|
124
140
|
};
|
|
125
141
|
}
|
|
126
142
|
|
|
@@ -0,0 +1,83 @@
|
|
|
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 UpdateDocumentRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateDocumentRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateDocumentRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateDocumentRequest
|
|
32
|
+
*/
|
|
33
|
+
documentFileId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof UpdateDocumentRequest
|
|
38
|
+
*/
|
|
39
|
+
siteIds?: Array<string>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the UpdateDocumentRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfUpdateDocumentRequest(value: object): value is UpdateDocumentRequest {
|
|
46
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
+
if (!('documentFileId' in value) || value['documentFileId'] === undefined) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UpdateDocumentRequestFromJSON(json: any): UpdateDocumentRequest {
|
|
52
|
+
return UpdateDocumentRequestFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function UpdateDocumentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDocumentRequest {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'name': json['name'],
|
|
62
|
+
'documentFileId': json['document_file_id'],
|
|
63
|
+
'siteIds': json['site_ids'] == null ? undefined : json['site_ids'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function UpdateDocumentRequestToJSON(json: any): UpdateDocumentRequest {
|
|
68
|
+
return UpdateDocumentRequestToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function UpdateDocumentRequestToJSONTyped(value?: UpdateDocumentRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'name': value['name'],
|
|
79
|
+
'document_file_id': value['documentFileId'],
|
|
80
|
+
'site_ids': value['siteIds'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
StoreSupplierRequestSeoInnerToJSON,
|
|
21
21
|
StoreSupplierRequestSeoInnerToJSONTyped,
|
|
22
22
|
} from './StoreSupplierRequestSeoInner';
|
|
23
|
+
import type { StoreSupplierRequestDescriptionsInner } from './StoreSupplierRequestDescriptionsInner';
|
|
24
|
+
import {
|
|
25
|
+
StoreSupplierRequestDescriptionsInnerFromJSON,
|
|
26
|
+
StoreSupplierRequestDescriptionsInnerFromJSONTyped,
|
|
27
|
+
StoreSupplierRequestDescriptionsInnerToJSON,
|
|
28
|
+
StoreSupplierRequestDescriptionsInnerToJSONTyped,
|
|
29
|
+
} from './StoreSupplierRequestDescriptionsInner';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -69,6 +76,12 @@ export interface UpdateSupplierRequest {
|
|
|
69
76
|
* @memberof UpdateSupplierRequest
|
|
70
77
|
*/
|
|
71
78
|
assetFileId: number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Array<StoreSupplierRequestDescriptionsInner>}
|
|
82
|
+
* @memberof UpdateSupplierRequest
|
|
83
|
+
*/
|
|
84
|
+
descriptions: Array<StoreSupplierRequestDescriptionsInner>;
|
|
72
85
|
}
|
|
73
86
|
|
|
74
87
|
/**
|
|
@@ -81,6 +94,7 @@ export function instanceOfUpdateSupplierRequest(value: object): value is UpdateS
|
|
|
81
94
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
82
95
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
83
96
|
if (!('assetFileId' in value) || value['assetFileId'] === undefined) return false;
|
|
97
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
84
98
|
return true;
|
|
85
99
|
}
|
|
86
100
|
|
|
@@ -101,6 +115,7 @@ export function UpdateSupplierRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
101
115
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
102
116
|
'mimeType': json['mime_type'],
|
|
103
117
|
'assetFileId': json['asset_file_id'],
|
|
118
|
+
'descriptions': ((json['descriptions'] as Array<any>).map(StoreSupplierRequestDescriptionsInnerFromJSON)),
|
|
104
119
|
};
|
|
105
120
|
}
|
|
106
121
|
|
|
@@ -122,6 +137,7 @@ export function UpdateSupplierRequestToJSONTyped(value?: UpdateSupplierRequest |
|
|
|
122
137
|
'alt_text': value['altText'],
|
|
123
138
|
'mime_type': value['mimeType'],
|
|
124
139
|
'asset_file_id': value['assetFileId'],
|
|
140
|
+
'descriptions': ((value['descriptions'] as Array<any>).map(StoreSupplierRequestDescriptionsInnerToJSON)),
|
|
125
141
|
};
|
|
126
142
|
}
|
|
127
143
|
|
|
@@ -42,31 +42,25 @@ export interface UpdateTagRequest {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof UpdateTagRequest
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
seoTitle?: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof UpdateTagRequest
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
seoDescription?: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof UpdateTagRequest
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
headerDescription?: string;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof UpdateTagRequest
|
|
62
62
|
*/
|
|
63
63
|
footerDescription?: string;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof UpdateTagRequest
|
|
68
|
-
*/
|
|
69
|
-
pageDescription?: string;
|
|
70
64
|
}
|
|
71
65
|
|
|
72
66
|
|
|
@@ -103,11 +97,10 @@ export function UpdateTagRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
103
97
|
'name': json['name'],
|
|
104
98
|
'slug': json['slug'],
|
|
105
99
|
'type': json['type'],
|
|
106
|
-
'
|
|
107
|
-
'
|
|
108
|
-
'
|
|
100
|
+
'seoTitle': json['seo_title'] == null ? undefined : json['seo_title'],
|
|
101
|
+
'seoDescription': json['seo_description'] == null ? undefined : json['seo_description'],
|
|
102
|
+
'headerDescription': json['header_description'] == null ? undefined : json['header_description'],
|
|
109
103
|
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
110
|
-
'pageDescription': json['page_description'] == null ? undefined : json['page_description'],
|
|
111
104
|
};
|
|
112
105
|
}
|
|
113
106
|
|
|
@@ -125,11 +118,10 @@ export function UpdateTagRequestToJSONTyped(value?: UpdateTagRequest | null, ign
|
|
|
125
118
|
'name': value['name'],
|
|
126
119
|
'slug': value['slug'],
|
|
127
120
|
'type': value['type'],
|
|
128
|
-
'
|
|
129
|
-
'
|
|
130
|
-
'
|
|
121
|
+
'seo_title': value['seoTitle'],
|
|
122
|
+
'seo_description': value['seoDescription'],
|
|
123
|
+
'header_description': value['headerDescription'],
|
|
131
124
|
'footer_description': value['footerDescription'],
|
|
132
|
-
'page_description': value['pageDescription'],
|
|
133
125
|
};
|
|
134
126
|
}
|
|
135
127
|
|
package/src/models/index.ts
CHANGED
|
@@ -27,6 +27,8 @@ export * from './AttributeType';
|
|
|
27
27
|
export * from './AttributeValueResource';
|
|
28
28
|
export * from './AttributeValueResourceArrayResponse';
|
|
29
29
|
export * from './CouponDiscountType';
|
|
30
|
+
export * from './DescriptionResource';
|
|
31
|
+
export * from './DescriptionResourceArrayResponse';
|
|
30
32
|
export * from './DestroyAttributeValueRequest';
|
|
31
33
|
export * from './DetachAssetableOverlayTemplateRequest';
|
|
32
34
|
export * from './DetachDocumentablesDocumentRequest';
|
|
@@ -92,7 +94,6 @@ export * from './PaginatedProductChildResourceResponse';
|
|
|
92
94
|
export * from './PaginatedProductListResourceResponse';
|
|
93
95
|
export * from './PaginatedProductLiteResourceResponse';
|
|
94
96
|
export * from './PaginatedProductResourceResponse';
|
|
95
|
-
export * from './PaginatedProductSearchResultResourceResponse';
|
|
96
97
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
97
98
|
export * from './PaginatedProductTypeLiteResourceResponse';
|
|
98
99
|
export * from './PaginatedProductTypeResourceResponse';
|
|
@@ -109,8 +110,6 @@ export * from './PaginatedTagListResourceResponse';
|
|
|
109
110
|
export * from './PaginatedTagLiteResourceResponse';
|
|
110
111
|
export * from './PaginatedTagResourceResponse';
|
|
111
112
|
export * from './PagingMetadata';
|
|
112
|
-
export * from './ProductAggregationResource';
|
|
113
|
-
export * from './ProductAggregationResourceArrayResponse';
|
|
114
113
|
export * from './ProductChildListResource';
|
|
115
114
|
export * from './ProductChildListResourceArrayResponse';
|
|
116
115
|
export * from './ProductChildLiteResource';
|
|
@@ -129,16 +128,8 @@ export * from './ProductListResource';
|
|
|
129
128
|
export * from './ProductListResourceArrayResponse';
|
|
130
129
|
export * from './ProductLiteResource';
|
|
131
130
|
export * from './ProductLiteResourceArrayResponse';
|
|
132
|
-
export * from './ProductRating';
|
|
133
131
|
export * from './ProductResource';
|
|
134
132
|
export * from './ProductResourceArrayResponse';
|
|
135
|
-
export * from './ProductSearchResponseResource';
|
|
136
|
-
export * from './ProductSearchResponseResourceArrayResponse';
|
|
137
|
-
export * from './ProductSearchResponseResourceMeta';
|
|
138
|
-
export * from './ProductSearchResponseResourcePriceInfo';
|
|
139
|
-
export * from './ProductSearchResultResource';
|
|
140
|
-
export * from './ProductSearchResultResourceArrayResponse';
|
|
141
|
-
export * from './ProductSortBy';
|
|
142
133
|
export * from './ProductTypeListResource';
|
|
143
134
|
export * from './ProductTypeListResourceArrayResponse';
|
|
144
135
|
export * from './ProductTypeLiteResource';
|
|
@@ -177,6 +168,7 @@ export * from './StoreProductRequestCategoriesInner';
|
|
|
177
168
|
export * from './StoreProductTypeRequest';
|
|
178
169
|
export * from './StoreSiteNotificationRequest';
|
|
179
170
|
export * from './StoreSupplierRequest';
|
|
171
|
+
export * from './StoreSupplierRequestDescriptionsInner';
|
|
180
172
|
export * from './StoreSupplierRequestSeoInner';
|
|
181
173
|
export * from './StoreTagRequest';
|
|
182
174
|
export * from './SupplierFrontendResource';
|
|
@@ -196,6 +188,7 @@ export * from './TagResourceArrayResponse';
|
|
|
196
188
|
export * from './TagType';
|
|
197
189
|
export * from './UpdateAttributeRequest';
|
|
198
190
|
export * from './UpdateAttributeValueRequest';
|
|
191
|
+
export * from './UpdateDocumentRequest';
|
|
199
192
|
export * from './UpdateFilterOrderAttributeRequest';
|
|
200
193
|
export * from './UpdateFilterOrderAttributeRequestValuesInner';
|
|
201
194
|
export * from './UpdateModelAttributeRequest';
|