@digital8/lighting-illusions-ts-sdk 0.0.493 → 0.0.494
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 +6 -0
- package/README.md +5 -2
- package/dist/models/DescriptionResource.d.ts +50 -0
- package/dist/models/DescriptionResource.js +63 -0
- package/dist/models/DescriptionResourceArrayResponse.d.ts +33 -0
- package/dist/models/DescriptionResourceArrayResponse.js +50 -0
- 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/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 +3 -0
- package/dist/models/index.js +3 -0
- package/docs/DescriptionResource.md +40 -0
- package/docs/DescriptionResourceArrayResponse.md +34 -0
- package/docs/SEOResource.md +4 -10
- package/docs/StoreProductChildRequestSitesInner.md +4 -8
- package/docs/StoreSupplierRequest.md +2 -0
- package/docs/StoreSupplierRequestDescriptionsInner.md +38 -0
- 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/UpdateSupplierRequest.md +2 -0
- package/docs/UpdateTagRequest.md +6 -8
- package/package.json +1 -1
- package/src/models/DescriptionResource.ts +93 -0
- package/src/models/DescriptionResourceArrayResponse.ts +73 -0
- 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/UpdateSupplierRequest.ts +16 -0
- package/src/models/UpdateTagRequest.ts +9 -17
- package/src/models/index.ts +3 -0
package/docs/TagResource.md
CHANGED
|
@@ -12,6 +12,7 @@ Name | Type
|
|
|
12
12
|
`type` | string
|
|
13
13
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
14
14
|
`seo` | [SEOResource](SEOResource.md)
|
|
15
|
+
`description` | [DescriptionResource](DescriptionResource.md)
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,6 +27,7 @@ const example = {
|
|
|
26
27
|
"type": null,
|
|
27
28
|
"site": null,
|
|
28
29
|
"seo": null,
|
|
30
|
+
"description": null,
|
|
29
31
|
} satisfies TagResource
|
|
30
32
|
|
|
31
33
|
console.log(example)
|
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`altText` | string
|
|
14
14
|
`mimeType` | string
|
|
15
15
|
`assetFileId` | number
|
|
16
|
+
`descriptions` | [Array<StoreSupplierRequestDescriptionsInner>](StoreSupplierRequestDescriptionsInner.md)
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -28,6 +29,7 @@ const example = {
|
|
|
28
29
|
"altText": null,
|
|
29
30
|
"mimeType": null,
|
|
30
31
|
"assetFileId": null,
|
|
32
|
+
"descriptions": null,
|
|
31
33
|
} satisfies UpdateSupplierRequest
|
|
32
34
|
|
|
33
35
|
console.log(example)
|
package/docs/UpdateTagRequest.md
CHANGED
|
@@ -9,11 +9,10 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`slug` | string
|
|
11
11
|
`type` | string
|
|
12
|
-
`
|
|
13
|
-
`
|
|
14
|
-
`
|
|
12
|
+
`seoTitle` | string
|
|
13
|
+
`seoDescription` | string
|
|
14
|
+
`headerDescription` | string
|
|
15
15
|
`footerDescription` | string
|
|
16
|
-
`pageDescription` | string
|
|
17
16
|
|
|
18
17
|
## Example
|
|
19
18
|
|
|
@@ -25,11 +24,10 @@ const example = {
|
|
|
25
24
|
"name": null,
|
|
26
25
|
"slug": null,
|
|
27
26
|
"type": null,
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
27
|
+
"seoTitle": null,
|
|
28
|
+
"seoDescription": null,
|
|
29
|
+
"headerDescription": null,
|
|
31
30
|
"footerDescription": null,
|
|
32
|
-
"pageDescription": null,
|
|
33
31
|
} satisfies UpdateTagRequest
|
|
34
32
|
|
|
35
33
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -0,0 +1,93 @@
|
|
|
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 DescriptionResource
|
|
20
|
+
*/
|
|
21
|
+
export interface DescriptionResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof DescriptionResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DescriptionResource
|
|
32
|
+
*/
|
|
33
|
+
headerDescription: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DescriptionResource
|
|
38
|
+
*/
|
|
39
|
+
footerDescription: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof DescriptionResource
|
|
44
|
+
*/
|
|
45
|
+
siteId: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the DescriptionResource interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfDescriptionResource(value: object): value is DescriptionResource {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('headerDescription' in value) || value['headerDescription'] === undefined) return false;
|
|
54
|
+
if (!('footerDescription' in value) || value['footerDescription'] === undefined) return false;
|
|
55
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function DescriptionResourceFromJSON(json: any): DescriptionResource {
|
|
60
|
+
return DescriptionResourceFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function DescriptionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DescriptionResource {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'headerDescription': json['headerDescription'],
|
|
71
|
+
'footerDescription': json['footerDescription'],
|
|
72
|
+
'siteId': json['siteId'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function DescriptionResourceToJSON(json: any): DescriptionResource {
|
|
77
|
+
return DescriptionResourceToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function DescriptionResourceToJSONTyped(value?: DescriptionResource | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'headerDescription': value['headerDescription'],
|
|
89
|
+
'footerDescription': value['footerDescription'],
|
|
90
|
+
'siteId': value['siteId'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
17
|
+
import {
|
|
18
|
+
DescriptionResourceFromJSON,
|
|
19
|
+
DescriptionResourceFromJSONTyped,
|
|
20
|
+
DescriptionResourceToJSON,
|
|
21
|
+
DescriptionResourceToJSONTyped,
|
|
22
|
+
} from './DescriptionResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DescriptionResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface DescriptionResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<DescriptionResource>}
|
|
33
|
+
* @memberof DescriptionResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<DescriptionResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the DescriptionResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfDescriptionResourceArrayResponse(value: object): value is DescriptionResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function DescriptionResourceArrayResponseFromJSON(json: any): DescriptionResourceArrayResponse {
|
|
46
|
+
return DescriptionResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function DescriptionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DescriptionResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(DescriptionResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function DescriptionResourceArrayResponseToJSON(json: any): DescriptionResourceArrayResponse {
|
|
60
|
+
return DescriptionResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function DescriptionResourceArrayResponseToJSONTyped(value?: DescriptionResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(DescriptionResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -30,37 +30,19 @@ export interface SEOResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof SEOResource
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
seoTitle: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof SEOResource
|
|
38
38
|
*/
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof SEOResource
|
|
44
|
-
*/
|
|
45
|
-
keywords: string;
|
|
39
|
+
seoDescription: string;
|
|
46
40
|
/**
|
|
47
41
|
*
|
|
48
42
|
* @type {number}
|
|
49
43
|
* @memberof SEOResource
|
|
50
44
|
*/
|
|
51
45
|
siteId: number;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof SEOResource
|
|
56
|
-
*/
|
|
57
|
-
footerDescription: string;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof SEOResource
|
|
62
|
-
*/
|
|
63
|
-
pageDescription: string;
|
|
64
46
|
}
|
|
65
47
|
|
|
66
48
|
/**
|
|
@@ -68,12 +50,9 @@ export interface SEOResource {
|
|
|
68
50
|
*/
|
|
69
51
|
export function instanceOfSEOResource(value: object): value is SEOResource {
|
|
70
52
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
71
|
-
if (!('
|
|
72
|
-
if (!('
|
|
73
|
-
if (!('keywords' in value) || value['keywords'] === undefined) return false;
|
|
53
|
+
if (!('seoTitle' in value) || value['seoTitle'] === undefined) return false;
|
|
54
|
+
if (!('seoDescription' in value) || value['seoDescription'] === undefined) return false;
|
|
74
55
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
75
|
-
if (!('footerDescription' in value) || value['footerDescription'] === undefined) return false;
|
|
76
|
-
if (!('pageDescription' in value) || value['pageDescription'] === undefined) return false;
|
|
77
56
|
return true;
|
|
78
57
|
}
|
|
79
58
|
|
|
@@ -88,12 +67,9 @@ export function SEOResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
88
67
|
return {
|
|
89
68
|
|
|
90
69
|
'id': json['id'],
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'siteId': json['site_id'],
|
|
95
|
-
'footerDescription': json['footerDescription'],
|
|
96
|
-
'pageDescription': json['pageDescription'],
|
|
70
|
+
'seoTitle': json['seoTitle'],
|
|
71
|
+
'seoDescription': json['seoDescription'],
|
|
72
|
+
'siteId': json['siteId'],
|
|
97
73
|
};
|
|
98
74
|
}
|
|
99
75
|
|
|
@@ -109,12 +85,9 @@ export function SEOResourceToJSONTyped(value?: SEOResource | null, ignoreDiscrim
|
|
|
109
85
|
return {
|
|
110
86
|
|
|
111
87
|
'id': value['id'],
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
'site_id': value['siteId'],
|
|
116
|
-
'footerDescription': value['footerDescription'],
|
|
117
|
-
'pageDescription': value['pageDescription'],
|
|
88
|
+
'seoTitle': value['seoTitle'],
|
|
89
|
+
'seoDescription': value['seoDescription'],
|
|
90
|
+
'siteId': value['siteId'],
|
|
118
91
|
};
|
|
119
92
|
}
|
|
120
93
|
|
|
@@ -42,7 +42,7 @@ export interface StoreProductChildRequestSitesInner {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof StoreProductChildRequestSitesInner
|
|
44
44
|
*/
|
|
45
|
-
description
|
|
45
|
+
description: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
|
@@ -72,25 +72,13 @@ export interface StoreProductChildRequestSitesInner {
|
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof StoreProductChildRequestSitesInner
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
seoTitle?: string;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreProductChildRequestSitesInner
|
|
80
80
|
*/
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {string}
|
|
85
|
-
* @memberof StoreProductChildRequestSitesInner
|
|
86
|
-
*/
|
|
87
|
-
footerDescription?: string;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof StoreProductChildRequestSitesInner
|
|
92
|
-
*/
|
|
93
|
-
pageDescription?: string;
|
|
81
|
+
seoDescription?: string;
|
|
94
82
|
}
|
|
95
83
|
|
|
96
84
|
/**
|
|
@@ -98,6 +86,7 @@ export interface StoreProductChildRequestSitesInner {
|
|
|
98
86
|
*/
|
|
99
87
|
export function instanceOfStoreProductChildRequestSitesInner(value: object): value is StoreProductChildRequestSitesInner {
|
|
100
88
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
89
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
101
90
|
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined) return false;
|
|
102
91
|
if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
|
|
103
92
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
@@ -118,15 +107,13 @@ export function StoreProductChildRequestSitesInnerFromJSONTyped(json: any, ignor
|
|
|
118
107
|
'siteId': json['site_id'],
|
|
119
108
|
'name': json['name'] == null ? undefined : json['name'],
|
|
120
109
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
121
|
-
'description': json['description']
|
|
110
|
+
'description': json['description'],
|
|
122
111
|
'rrpPrice': json['rrp_price'],
|
|
123
112
|
'salePrice': json['sale_price'],
|
|
124
113
|
'slug': json['slug'],
|
|
125
114
|
'documents': json['documents'],
|
|
126
|
-
'
|
|
127
|
-
'
|
|
128
|
-
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
129
|
-
'pageDescription': json['page_description'] == null ? undefined : json['page_description'],
|
|
115
|
+
'seoTitle': json['seo_title'] == null ? undefined : json['seo_title'],
|
|
116
|
+
'seoDescription': json['seo_description'] == null ? undefined : json['seo_description'],
|
|
130
117
|
};
|
|
131
118
|
}
|
|
132
119
|
|
|
@@ -149,10 +136,8 @@ export function StoreProductChildRequestSitesInnerToJSONTyped(value?: StoreProdu
|
|
|
149
136
|
'sale_price': value['salePrice'],
|
|
150
137
|
'slug': value['slug'],
|
|
151
138
|
'documents': value['documents'],
|
|
152
|
-
'
|
|
153
|
-
'
|
|
154
|
-
'footer_description': value['footerDescription'],
|
|
155
|
-
'page_description': value['pageDescription'],
|
|
139
|
+
'seo_title': value['seoTitle'],
|
|
140
|
+
'seo_description': value['seoDescription'],
|
|
156
141
|
};
|
|
157
142
|
}
|
|
158
143
|
|
|
@@ -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
|
|