@digital8/lighting-illusions-ts-sdk 0.0.1672 → 0.0.1674
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 +36 -0
- package/README.md +34 -2
- package/dist/apis/BlogCategoryApi.d.ts +109 -0
- package/dist/apis/BlogCategoryApi.js +433 -0
- package/dist/apis/FrontendComponentApi.d.ts +33 -0
- package/dist/apis/FrontendComponentApi.js +138 -0
- package/dist/apis/PageApi.d.ts +109 -0
- package/dist/apis/PageApi.js +433 -0
- package/dist/apis/PageComponentApi.d.ts +94 -0
- package/dist/apis/PageComponentApi.js +375 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +4 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllBlogCategoryRequest.d.ts +78 -0
- package/dist/models/GetAllBlogCategoryRequest.js +74 -0
- package/dist/models/GetAllFrontendComponentRequest.d.ts +78 -0
- package/dist/models/GetAllFrontendComponentRequest.js +74 -0
- package/dist/models/GetAllPageComponentRequest.d.ts +90 -0
- package/dist/models/GetAllPageComponentRequest.js +78 -0
- package/dist/models/GetAllPageRequest.d.ts +91 -0
- package/dist/models/GetAllPageRequest.js +79 -0
- package/dist/models/IndexBlogCategoryRequest.d.ts +90 -0
- package/dist/models/IndexBlogCategoryRequest.js +78 -0
- package/dist/models/IndexPageRequest.d.ts +103 -0
- package/dist/models/IndexPageRequest.js +83 -0
- package/dist/models/StoreBlogCategoryRequest.d.ts +45 -0
- package/dist/models/StoreBlogCategoryRequest.js +60 -0
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +6 -2
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StorePageComponentRequest.d.ts +81 -0
- package/dist/models/StorePageComponentRequest.js +72 -0
- package/dist/models/StorePageComponentRequestRelationsInner.d.ts +44 -0
- package/dist/models/StorePageComponentRequestRelationsInner.js +53 -0
- package/dist/models/StorePageRequest.d.ts +85 -0
- package/dist/models/StorePageRequest.js +84 -0
- package/dist/models/StorePageRequestBlog.d.ts +50 -0
- package/dist/models/StorePageRequestBlog.js +55 -0
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/UpdateBlogCategoryRequest.d.ts +45 -0
- package/dist/models/UpdateBlogCategoryRequest.js +60 -0
- package/dist/models/UpdatePageComponentRequest.d.ts +69 -0
- package/dist/models/UpdatePageComponentRequest.js +64 -0
- package/dist/models/UpdatePageRequest.d.ts +70 -0
- package/dist/models/UpdatePageRequest.js +69 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/docs/BlogCategoryApi.md +407 -0
- package/docs/FrontendComponentApi.md +74 -0
- package/docs/GetAllBlogCategoryRequest.md +44 -0
- package/docs/GetAllFrontendComponentRequest.md +44 -0
- package/docs/GetAllPageComponentRequest.md +48 -0
- package/docs/GetAllPageRequest.md +48 -0
- package/docs/IndexBlogCategoryRequest.md +48 -0
- package/docs/IndexPageRequest.md +52 -0
- package/docs/PageApi.md +407 -0
- package/docs/PageComponentApi.md +341 -0
- package/docs/StoreBlogCategoryRequest.md +38 -0
- package/docs/StorePageComponentRequest.md +50 -0
- package/docs/StorePageComponentRequestRelationsInner.md +38 -0
- package/docs/StorePageRequest.md +48 -0
- package/docs/StorePageRequestBlog.md +40 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/UpdateBlogCategoryRequest.md +38 -0
- package/docs/UpdatePageComponentRequest.md +46 -0
- package/docs/UpdatePageRequest.md +46 -0
- package/package.json +1 -1
- package/src/apis/BlogCategoryApi.ts +334 -0
- package/src/apis/FrontendComponentApi.ts +77 -0
- package/src/apis/PageApi.ts +334 -0
- package/src/apis/PageComponentApi.ts +284 -0
- package/src/apis/index.ts +4 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllBlogCategoryRequest.ts +125 -0
- package/src/models/GetAllFrontendComponentRequest.ts +125 -0
- package/src/models/GetAllPageComponentRequest.ts +141 -0
- package/src/models/GetAllPageRequest.ts +142 -0
- package/src/models/IndexBlogCategoryRequest.ts +141 -0
- package/src/models/IndexPageRequest.ts +158 -0
- package/src/models/StoreBlogCategoryRequest.ts +92 -0
- package/src/models/StoreFrontendResource.ts +6 -4
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StorePageComponentRequest.ts +140 -0
- package/src/models/StorePageComponentRequestRelationsInner.ts +81 -0
- package/src/models/StorePageRequest.ts +153 -0
- package/src/models/StorePageRequestBlog.ts +89 -0
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/UpdateBlogCategoryRequest.ts +92 -0
- package/src/models/UpdatePageComponentRequest.ts +122 -0
- package/src/models/UpdatePageRequest.ts +131 -0
- package/src/models/index.ts +14 -0
|
@@ -0,0 +1,158 @@
|
|
|
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 IndexPageRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IndexPageRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IndexPageRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {IndexPageRequestSortByEnum}
|
|
31
|
+
* @memberof IndexPageRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: IndexPageRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {IndexPageRequestSortDirectionEnum}
|
|
37
|
+
* @memberof IndexPageRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: IndexPageRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IndexPageRequest
|
|
44
|
+
*/
|
|
45
|
+
perPage?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof IndexPageRequest
|
|
50
|
+
*/
|
|
51
|
+
page?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof IndexPageRequest
|
|
56
|
+
*/
|
|
57
|
+
siteId?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof IndexPageRequest
|
|
62
|
+
*/
|
|
63
|
+
type?: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof IndexPageRequest
|
|
68
|
+
*/
|
|
69
|
+
relatedId?: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof IndexPageRequest
|
|
74
|
+
*/
|
|
75
|
+
relatedType?: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof IndexPageRequest
|
|
80
|
+
*/
|
|
81
|
+
includesRelations?: boolean;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export const IndexPageRequestSortByEnum = {
|
|
89
|
+
Id: 'id',
|
|
90
|
+
Name: 'name',
|
|
91
|
+
CreatedAt: 'created_at'
|
|
92
|
+
} as const;
|
|
93
|
+
export type IndexPageRequestSortByEnum = typeof IndexPageRequestSortByEnum[keyof typeof IndexPageRequestSortByEnum];
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export const IndexPageRequestSortDirectionEnum = {
|
|
99
|
+
Asc: 'asc',
|
|
100
|
+
Desc: 'desc'
|
|
101
|
+
} as const;
|
|
102
|
+
export type IndexPageRequestSortDirectionEnum = typeof IndexPageRequestSortDirectionEnum[keyof typeof IndexPageRequestSortDirectionEnum];
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the IndexPageRequest interface.
|
|
107
|
+
*/
|
|
108
|
+
export function instanceOfIndexPageRequest(value: object): value is IndexPageRequest {
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function IndexPageRequestFromJSON(json: any): IndexPageRequest {
|
|
113
|
+
return IndexPageRequestFromJSONTyped(json, false);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function IndexPageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexPageRequest {
|
|
117
|
+
if (json == null) {
|
|
118
|
+
return json;
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
123
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
124
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
125
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
126
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
127
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
128
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
129
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
130
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
131
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function IndexPageRequestToJSON(json: any): IndexPageRequest {
|
|
136
|
+
return IndexPageRequestToJSONTyped(json, false);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function IndexPageRequestToJSONTyped(value?: IndexPageRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
140
|
+
if (value == null) {
|
|
141
|
+
return value;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'search': value['search'],
|
|
147
|
+
'sortBy': value['sortBy'],
|
|
148
|
+
'sortDirection': value['sortDirection'],
|
|
149
|
+
'per_page': value['perPage'],
|
|
150
|
+
'page': value['page'],
|
|
151
|
+
'site_id': value['siteId'],
|
|
152
|
+
'type': value['type'],
|
|
153
|
+
'related_id': value['relatedId'],
|
|
154
|
+
'related_type': value['relatedType'],
|
|
155
|
+
'includes_relations': value['includesRelations'],
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
17
|
+
import {
|
|
18
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSON,
|
|
19
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSONTyped,
|
|
20
|
+
StoreProductCategoryRequestDescriptionsInnerToJSON,
|
|
21
|
+
StoreProductCategoryRequestDescriptionsInnerToJSONTyped,
|
|
22
|
+
} from './StoreProductCategoryRequestDescriptionsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface StoreBlogCategoryRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface StoreBlogCategoryRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StoreBlogCategoryRequest
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof StoreBlogCategoryRequest
|
|
40
|
+
*/
|
|
41
|
+
slug: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
45
|
+
* @memberof StoreBlogCategoryRequest
|
|
46
|
+
*/
|
|
47
|
+
descriptions: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the StoreBlogCategoryRequest interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfStoreBlogCategoryRequest(value: object): value is StoreBlogCategoryRequest {
|
|
54
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
55
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
56
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function StoreBlogCategoryRequestFromJSON(json: any): StoreBlogCategoryRequest {
|
|
61
|
+
return StoreBlogCategoryRequestFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function StoreBlogCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreBlogCategoryRequest {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'name': json['name'],
|
|
71
|
+
'slug': json['slug'],
|
|
72
|
+
'descriptions': ((json['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function StoreBlogCategoryRequestToJSON(json: any): StoreBlogCategoryRequest {
|
|
77
|
+
return StoreBlogCategoryRequestToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function StoreBlogCategoryRequestToJSONTyped(value?: StoreBlogCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'slug': value['slug'],
|
|
89
|
+
'descriptions': ((value['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreFrontendResource
|
|
80
80
|
*/
|
|
81
|
-
tagLine
|
|
81
|
+
tagLine: string;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
@@ -106,9 +106,11 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
109
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
111
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
112
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
113
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
112
114
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
113
115
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
114
116
|
return true;
|
|
@@ -128,12 +130,12 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
128
130
|
'siteId': json['siteId'],
|
|
129
131
|
'name': json['name'],
|
|
130
132
|
'email': json['email'],
|
|
131
|
-
'website': json['website']
|
|
133
|
+
'website': json['website'],
|
|
132
134
|
'phone': json['phone'],
|
|
133
135
|
'address': json['address'] == null ? undefined : json['address'],
|
|
134
136
|
'latitude': json['latitude'],
|
|
135
137
|
'longitude': json['longitude'],
|
|
136
|
-
'tagLine': json['tagLine']
|
|
138
|
+
'tagLine': json['tagLine'],
|
|
137
139
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
138
140
|
'specialDates': json['specialDates'],
|
|
139
141
|
'suppliers': json['suppliers'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine: string;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -98,6 +98,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
98
98
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
99
99
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
100
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
101
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
101
102
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
102
103
|
return true;
|
|
103
104
|
}
|
|
@@ -118,7 +119,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
118
119
|
'phone': json['phone'],
|
|
119
120
|
'longitude': json['longitude'],
|
|
120
121
|
'latitude': json['latitude'],
|
|
121
|
-
'tagLine': json['tag_line']
|
|
122
|
+
'tagLine': json['tag_line'],
|
|
122
123
|
'email': json['email'],
|
|
123
124
|
'website': json['website'] == null ? undefined : json['website'],
|
|
124
125
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
@@ -0,0 +1,140 @@
|
|
|
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 { StorePageComponentRequestRelationsInner } from './StorePageComponentRequestRelationsInner';
|
|
17
|
+
import {
|
|
18
|
+
StorePageComponentRequestRelationsInnerFromJSON,
|
|
19
|
+
StorePageComponentRequestRelationsInnerFromJSONTyped,
|
|
20
|
+
StorePageComponentRequestRelationsInnerToJSON,
|
|
21
|
+
StorePageComponentRequestRelationsInnerToJSONTyped,
|
|
22
|
+
} from './StorePageComponentRequestRelationsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface StorePageComponentRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface StorePageComponentRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof StorePageComponentRequest
|
|
34
|
+
*/
|
|
35
|
+
pageId: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof StorePageComponentRequest
|
|
40
|
+
*/
|
|
41
|
+
componentId: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof StorePageComponentRequest
|
|
46
|
+
*/
|
|
47
|
+
type: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof StorePageComponentRequest
|
|
52
|
+
*/
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof StorePageComponentRequest
|
|
58
|
+
*/
|
|
59
|
+
order?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof StorePageComponentRequest
|
|
64
|
+
*/
|
|
65
|
+
startDate?: Date | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof StorePageComponentRequest
|
|
70
|
+
*/
|
|
71
|
+
endDate?: Date | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof StorePageComponentRequest
|
|
76
|
+
*/
|
|
77
|
+
componentData?: Array<string>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<StorePageComponentRequestRelationsInner>}
|
|
81
|
+
* @memberof StorePageComponentRequest
|
|
82
|
+
*/
|
|
83
|
+
relations?: Array<StorePageComponentRequestRelationsInner>;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the StorePageComponentRequest interface.
|
|
88
|
+
*/
|
|
89
|
+
export function instanceOfStorePageComponentRequest(value: object): value is StorePageComponentRequest {
|
|
90
|
+
if (!('pageId' in value) || value['pageId'] === undefined) return false;
|
|
91
|
+
if (!('componentId' in value) || value['componentId'] === undefined) return false;
|
|
92
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function StorePageComponentRequestFromJSON(json: any): StorePageComponentRequest {
|
|
97
|
+
return StorePageComponentRequestFromJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function StorePageComponentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorePageComponentRequest {
|
|
101
|
+
if (json == null) {
|
|
102
|
+
return json;
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'pageId': json['page_id'],
|
|
107
|
+
'componentId': json['component_id'],
|
|
108
|
+
'type': json['type'],
|
|
109
|
+
'disabled': json['disabled'] == null ? undefined : json['disabled'],
|
|
110
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
111
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
112
|
+
'endDate': json['end_date'] == null ? undefined : (new Date(json['end_date'])),
|
|
113
|
+
'componentData': json['component_data'] == null ? undefined : json['component_data'],
|
|
114
|
+
'relations': json['relations'] == null ? undefined : ((json['relations'] as Array<any>).map(StorePageComponentRequestRelationsInnerFromJSON)),
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function StorePageComponentRequestToJSON(json: any): StorePageComponentRequest {
|
|
119
|
+
return StorePageComponentRequestToJSONTyped(json, false);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function StorePageComponentRequestToJSONTyped(value?: StorePageComponentRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
123
|
+
if (value == null) {
|
|
124
|
+
return value;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'page_id': value['pageId'],
|
|
130
|
+
'component_id': value['componentId'],
|
|
131
|
+
'type': value['type'],
|
|
132
|
+
'disabled': value['disabled'],
|
|
133
|
+
'order': value['order'],
|
|
134
|
+
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
135
|
+
'end_date': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
|
|
136
|
+
'component_data': value['componentData'],
|
|
137
|
+
'relations': value['relations'] == null ? undefined : ((value['relations'] as Array<any>).map(StorePageComponentRequestRelationsInnerToJSON)),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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 StorePageComponentRequestRelationsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface StorePageComponentRequestRelationsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof StorePageComponentRequestRelationsInner
|
|
26
|
+
*/
|
|
27
|
+
pageRelatableType?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof StorePageComponentRequestRelationsInner
|
|
32
|
+
*/
|
|
33
|
+
pageRelatableId?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof StorePageComponentRequestRelationsInner
|
|
38
|
+
*/
|
|
39
|
+
order?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the StorePageComponentRequestRelationsInner interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfStorePageComponentRequestRelationsInner(value: object): value is StorePageComponentRequestRelationsInner {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function StorePageComponentRequestRelationsInnerFromJSON(json: any): StorePageComponentRequestRelationsInner {
|
|
50
|
+
return StorePageComponentRequestRelationsInnerFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function StorePageComponentRequestRelationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorePageComponentRequestRelationsInner {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'pageRelatableType': json['page_relatable_type'] == null ? undefined : json['page_relatable_type'],
|
|
60
|
+
'pageRelatableId': json['page_relatable_id'] == null ? undefined : json['page_relatable_id'],
|
|
61
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function StorePageComponentRequestRelationsInnerToJSON(json: any): StorePageComponentRequestRelationsInner {
|
|
66
|
+
return StorePageComponentRequestRelationsInnerToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function StorePageComponentRequestRelationsInnerToJSONTyped(value?: StorePageComponentRequestRelationsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'page_relatable_type': value['pageRelatableType'],
|
|
77
|
+
'page_relatable_id': value['pageRelatableId'],
|
|
78
|
+
'order': value['order'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,153 @@
|
|
|
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 { StoreProductCategoryRequestSeoInner } from './StoreProductCategoryRequestSeoInner';
|
|
17
|
+
import {
|
|
18
|
+
StoreProductCategoryRequestSeoInnerFromJSON,
|
|
19
|
+
StoreProductCategoryRequestSeoInnerFromJSONTyped,
|
|
20
|
+
StoreProductCategoryRequestSeoInnerToJSON,
|
|
21
|
+
StoreProductCategoryRequestSeoInnerToJSONTyped,
|
|
22
|
+
} from './StoreProductCategoryRequestSeoInner';
|
|
23
|
+
import type { StorePageRequestBlog } from './StorePageRequestBlog';
|
|
24
|
+
import {
|
|
25
|
+
StorePageRequestBlogFromJSON,
|
|
26
|
+
StorePageRequestBlogFromJSONTyped,
|
|
27
|
+
StorePageRequestBlogToJSON,
|
|
28
|
+
StorePageRequestBlogToJSONTyped,
|
|
29
|
+
} from './StorePageRequestBlog';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface StorePageRequest
|
|
35
|
+
*/
|
|
36
|
+
export interface StorePageRequest {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof StorePageRequest
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof StorePageRequest
|
|
47
|
+
*/
|
|
48
|
+
siteId: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof StorePageRequest
|
|
53
|
+
*/
|
|
54
|
+
slug: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {StorePageRequestTypeEnum}
|
|
58
|
+
* @memberof StorePageRequest
|
|
59
|
+
*/
|
|
60
|
+
type: StorePageRequestTypeEnum;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof StorePageRequest
|
|
65
|
+
*/
|
|
66
|
+
enabled?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof StorePageRequest
|
|
71
|
+
*/
|
|
72
|
+
startDate?: Date | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {StorePageRequestBlog}
|
|
76
|
+
* @memberof StorePageRequest
|
|
77
|
+
*/
|
|
78
|
+
blog?: StorePageRequestBlog;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Array<StoreProductCategoryRequestSeoInner>}
|
|
82
|
+
* @memberof StorePageRequest
|
|
83
|
+
*/
|
|
84
|
+
seo: Array<StoreProductCategoryRequestSeoInner>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export const StorePageRequestTypeEnum = {
|
|
92
|
+
Home: 'home',
|
|
93
|
+
Page: 'page',
|
|
94
|
+
Blog: 'blog'
|
|
95
|
+
} as const;
|
|
96
|
+
export type StorePageRequestTypeEnum = typeof StorePageRequestTypeEnum[keyof typeof StorePageRequestTypeEnum];
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Check if a given object implements the StorePageRequest interface.
|
|
101
|
+
*/
|
|
102
|
+
export function instanceOfStorePageRequest(value: object): value is StorePageRequest {
|
|
103
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
104
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
105
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
106
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
107
|
+
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function StorePageRequestFromJSON(json: any): StorePageRequest {
|
|
112
|
+
return StorePageRequestFromJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function StorePageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorePageRequest {
|
|
116
|
+
if (json == null) {
|
|
117
|
+
return json;
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
|
|
121
|
+
'name': json['name'],
|
|
122
|
+
'siteId': json['site_id'],
|
|
123
|
+
'slug': json['slug'],
|
|
124
|
+
'type': json['type'],
|
|
125
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
126
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
127
|
+
'blog': json['blog'] == null ? undefined : StorePageRequestBlogFromJSON(json['blog']),
|
|
128
|
+
'seo': ((json['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function StorePageRequestToJSON(json: any): StorePageRequest {
|
|
133
|
+
return StorePageRequestToJSONTyped(json, false);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function StorePageRequestToJSONTyped(value?: StorePageRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
137
|
+
if (value == null) {
|
|
138
|
+
return value;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return {
|
|
142
|
+
|
|
143
|
+
'name': value['name'],
|
|
144
|
+
'site_id': value['siteId'],
|
|
145
|
+
'slug': value['slug'],
|
|
146
|
+
'type': value['type'],
|
|
147
|
+
'enabled': value['enabled'],
|
|
148
|
+
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
149
|
+
'blog': StorePageRequestBlogToJSON(value['blog']),
|
|
150
|
+
'seo': ((value['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerToJSON)),
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|