@digital8/lighting-illusions-ts-sdk 0.0.1113 → 0.0.1114
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 +38 -0
- package/README.md +31 -2
- package/dist/apis/StoreApi.d.ts +158 -0
- package/dist/apis/StoreApi.js +621 -0
- package/dist/apis/SupplierApi.d.ts +33 -1
- package/dist/apis/SupplierApi.js +122 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressResource.d.ts +74 -0
- package/dist/models/AddressResource.js +79 -0
- package/dist/models/AddressResourceArrayResponse.d.ts +33 -0
- package/dist/models/AddressResourceArrayResponse.js +50 -0
- package/dist/models/AttachStoresSupplierRequest.d.ts +32 -0
- package/dist/models/AttachStoresSupplierRequest.js +51 -0
- package/dist/models/AttachSuppliersStoreRequest.d.ts +32 -0
- package/dist/models/AttachSuppliersStoreRequest.js +51 -0
- package/dist/models/DetachStoresSupplierRequest.d.ts +32 -0
- package/dist/models/DetachStoresSupplierRequest.js +51 -0
- package/dist/models/DetachSuppliersStoreRequest.d.ts +32 -0
- package/dist/models/DetachSuppliersStoreRequest.js +51 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllStoreRequest.d.ts +87 -0
- package/dist/models/GetAllStoreRequest.js +79 -0
- package/dist/models/StoreListResource.d.ts +93 -0
- package/dist/models/StoreListResource.js +82 -0
- package/dist/models/StoreListResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreListResourceArrayResponse.js +50 -0
- package/dist/models/StoreResource.d.ts +112 -0
- package/dist/models/StoreResource.js +97 -0
- package/dist/models/StoreResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreResourceArrayResponse.js +50 -0
- package/dist/models/StoreSpecialDateResource.d.ts +56 -0
- package/dist/models/StoreSpecialDateResource.js +65 -0
- package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreSpecialDateResourceArrayResponse.js +50 -0
- package/dist/models/StoreStoreRequest.d.ts +177 -0
- package/dist/models/StoreStoreRequest.js +124 -0
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +50 -0
- package/dist/models/StoreStoreRequestSpecialDatesInner.js +57 -0
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +50 -0
- package/dist/models/StoreStoreSpecialDateRequest.js +57 -0
- package/dist/models/SupplierResource.d.ts +6 -0
- package/dist/models/SupplierResource.js +4 -0
- package/dist/models/UpdateStoreRequest.d.ts +177 -0
- package/dist/models/UpdateStoreRequest.js +124 -0
- package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +56 -0
- package/dist/models/UpdateStoreRequestSpecialDatesInner.js +57 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +18 -0
- package/docs/AddressResource.md +48 -0
- package/docs/AddressResourceArrayResponse.md +34 -0
- package/docs/AttachStoresSupplierRequest.md +34 -0
- package/docs/AttachSuppliersStoreRequest.md +34 -0
- package/docs/DetachStoresSupplierRequest.md +34 -0
- package/docs/DetachSuppliersStoreRequest.md +34 -0
- package/docs/GetAllStoreRequest.md +46 -0
- package/docs/StoreApi.md +617 -0
- package/docs/StoreListResource.md +54 -0
- package/docs/StoreListResourceArrayResponse.md +34 -0
- package/docs/StoreResource.md +60 -0
- package/docs/StoreResourceArrayResponse.md +34 -0
- package/docs/StoreSpecialDateResource.md +42 -0
- package/docs/StoreSpecialDateResourceArrayResponse.md +34 -0
- package/docs/StoreStoreRequest.md +82 -0
- package/docs/StoreStoreRequestSpecialDatesInner.md +40 -0
- package/docs/StoreStoreSpecialDateRequest.md +40 -0
- package/docs/SupplierApi.md +138 -0
- package/docs/SupplierResource.md +2 -0
- package/docs/UpdateStoreRequest.md +82 -0
- package/docs/UpdateStoreRequestSpecialDatesInner.md +42 -0
- package/package.json +1 -1
- package/src/apis/StoreApi.ts +513 -0
- package/src/apis/SupplierApi.ts +112 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressResource.ts +129 -0
- package/src/models/AddressResourceArrayResponse.ts +73 -0
- package/src/models/AttachStoresSupplierRequest.ts +66 -0
- package/src/models/AttachSuppliersStoreRequest.ts +66 -0
- package/src/models/DetachStoresSupplierRequest.ts +66 -0
- package/src/models/DetachSuppliersStoreRequest.ts +66 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllStoreRequest.ts +136 -0
- package/src/models/StoreListResource.ts +159 -0
- package/src/models/StoreListResourceArrayResponse.ts +73 -0
- package/src/models/StoreResource.ts +194 -0
- package/src/models/StoreResourceArrayResponse.ts +73 -0
- package/src/models/StoreSpecialDateResource.ts +101 -0
- package/src/models/StoreSpecialDateResourceArrayResponse.ts +73 -0
- package/src/models/StoreStoreRequest.ts +278 -0
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +90 -0
- package/src/models/StoreStoreSpecialDateRequest.ts +90 -0
- package/src/models/SupplierResource.ts +9 -0
- package/src/models/UpdateStoreRequest.ts +278 -0
- package/src/models/UpdateStoreRequestSpecialDatesInner.ts +97 -0
- package/src/models/index.ts +18 -0
|
@@ -0,0 +1,278 @@
|
|
|
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 { StoreStoreRequestSpecialDatesInner } from './StoreStoreRequestSpecialDatesInner';
|
|
17
|
+
import {
|
|
18
|
+
StoreStoreRequestSpecialDatesInnerFromJSON,
|
|
19
|
+
StoreStoreRequestSpecialDatesInnerFromJSONTyped,
|
|
20
|
+
StoreStoreRequestSpecialDatesInnerToJSON,
|
|
21
|
+
StoreStoreRequestSpecialDatesInnerToJSONTyped,
|
|
22
|
+
} from './StoreStoreRequestSpecialDatesInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface StoreStoreRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface StoreStoreRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof StoreStoreRequest
|
|
34
|
+
*/
|
|
35
|
+
siteId: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof StoreStoreRequest
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof StoreStoreRequest
|
|
46
|
+
*/
|
|
47
|
+
phone: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof StoreStoreRequest
|
|
52
|
+
*/
|
|
53
|
+
longitude: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof StoreStoreRequest
|
|
58
|
+
*/
|
|
59
|
+
latitude: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof StoreStoreRequest
|
|
64
|
+
*/
|
|
65
|
+
tagLine?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof StoreStoreRequest
|
|
70
|
+
*/
|
|
71
|
+
email: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof StoreStoreRequest
|
|
76
|
+
*/
|
|
77
|
+
openingHours?: Array<string>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof StoreStoreRequest
|
|
82
|
+
*/
|
|
83
|
+
openingHours0?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof StoreStoreRequest
|
|
88
|
+
*/
|
|
89
|
+
openingHours1?: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof StoreStoreRequest
|
|
94
|
+
*/
|
|
95
|
+
openingHours2?: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof StoreStoreRequest
|
|
100
|
+
*/
|
|
101
|
+
openingHours3?: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof StoreStoreRequest
|
|
106
|
+
*/
|
|
107
|
+
openingHours4?: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof StoreStoreRequest
|
|
112
|
+
*/
|
|
113
|
+
openingHours5?: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof StoreStoreRequest
|
|
118
|
+
*/
|
|
119
|
+
openingHours6?: string;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {Array<number>}
|
|
123
|
+
* @memberof StoreStoreRequest
|
|
124
|
+
*/
|
|
125
|
+
supplierIds?: Array<number>;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {Array<StoreStoreRequestSpecialDatesInner>}
|
|
129
|
+
* @memberof StoreStoreRequest
|
|
130
|
+
*/
|
|
131
|
+
specialDates?: Array<StoreStoreRequestSpecialDatesInner>;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {Array<string>}
|
|
135
|
+
* @memberof StoreStoreRequest
|
|
136
|
+
*/
|
|
137
|
+
address: Array<string>;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof StoreStoreRequest
|
|
142
|
+
*/
|
|
143
|
+
addressCompany: string;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof StoreStoreRequest
|
|
148
|
+
*/
|
|
149
|
+
addressLine1: string;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof StoreStoreRequest
|
|
154
|
+
*/
|
|
155
|
+
addressLine2?: string;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof StoreStoreRequest
|
|
160
|
+
*/
|
|
161
|
+
addressPostcode: string;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof StoreStoreRequest
|
|
166
|
+
*/
|
|
167
|
+
addressSuburb: string;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof StoreStoreRequest
|
|
172
|
+
*/
|
|
173
|
+
addressCountry: string;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @type {string}
|
|
177
|
+
* @memberof StoreStoreRequest
|
|
178
|
+
*/
|
|
179
|
+
addressState: string;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Check if a given object implements the StoreStoreRequest interface.
|
|
184
|
+
*/
|
|
185
|
+
export function instanceOfStoreStoreRequest(value: object): value is StoreStoreRequest {
|
|
186
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
187
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
188
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
189
|
+
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
190
|
+
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
191
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
192
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
193
|
+
if (!('addressCompany' in value) || value['addressCompany'] === undefined) return false;
|
|
194
|
+
if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
|
|
195
|
+
if (!('addressPostcode' in value) || value['addressPostcode'] === undefined) return false;
|
|
196
|
+
if (!('addressSuburb' in value) || value['addressSuburb'] === undefined) return false;
|
|
197
|
+
if (!('addressCountry' in value) || value['addressCountry'] === undefined) return false;
|
|
198
|
+
if (!('addressState' in value) || value['addressState'] === undefined) return false;
|
|
199
|
+
return true;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export function StoreStoreRequestFromJSON(json: any): StoreStoreRequest {
|
|
203
|
+
return StoreStoreRequestFromJSONTyped(json, false);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export function StoreStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreStoreRequest {
|
|
207
|
+
if (json == null) {
|
|
208
|
+
return json;
|
|
209
|
+
}
|
|
210
|
+
return {
|
|
211
|
+
|
|
212
|
+
'siteId': json['site_id'],
|
|
213
|
+
'name': json['name'],
|
|
214
|
+
'phone': json['phone'],
|
|
215
|
+
'longitude': json['longitude'],
|
|
216
|
+
'latitude': json['latitude'],
|
|
217
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
218
|
+
'email': json['email'],
|
|
219
|
+
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
220
|
+
'openingHours0': json['opening_hours.0'] == null ? undefined : json['opening_hours.0'],
|
|
221
|
+
'openingHours1': json['opening_hours.1'] == null ? undefined : json['opening_hours.1'],
|
|
222
|
+
'openingHours2': json['opening_hours.2'] == null ? undefined : json['opening_hours.2'],
|
|
223
|
+
'openingHours3': json['opening_hours.3'] == null ? undefined : json['opening_hours.3'],
|
|
224
|
+
'openingHours4': json['opening_hours.4'] == null ? undefined : json['opening_hours.4'],
|
|
225
|
+
'openingHours5': json['opening_hours.5'] == null ? undefined : json['opening_hours.5'],
|
|
226
|
+
'openingHours6': json['opening_hours.6'] == null ? undefined : json['opening_hours.6'],
|
|
227
|
+
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
228
|
+
'specialDates': json['special_dates'] == null ? undefined : ((json['special_dates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerFromJSON)),
|
|
229
|
+
'address': json['address'],
|
|
230
|
+
'addressCompany': json['address.company'],
|
|
231
|
+
'addressLine1': json['address.line_1'],
|
|
232
|
+
'addressLine2': json['address.line_2'] == null ? undefined : json['address.line_2'],
|
|
233
|
+
'addressPostcode': json['address.postcode'],
|
|
234
|
+
'addressSuburb': json['address.suburb'],
|
|
235
|
+
'addressCountry': json['address.country'],
|
|
236
|
+
'addressState': json['address.state'],
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export function StoreStoreRequestToJSON(json: any): StoreStoreRequest {
|
|
241
|
+
return StoreStoreRequestToJSONTyped(json, false);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export function StoreStoreRequestToJSONTyped(value?: StoreStoreRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
245
|
+
if (value == null) {
|
|
246
|
+
return value;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
return {
|
|
250
|
+
|
|
251
|
+
'site_id': value['siteId'],
|
|
252
|
+
'name': value['name'],
|
|
253
|
+
'phone': value['phone'],
|
|
254
|
+
'longitude': value['longitude'],
|
|
255
|
+
'latitude': value['latitude'],
|
|
256
|
+
'tag_line': value['tagLine'],
|
|
257
|
+
'email': value['email'],
|
|
258
|
+
'opening_hours': value['openingHours'],
|
|
259
|
+
'opening_hours.0': value['openingHours0'],
|
|
260
|
+
'opening_hours.1': value['openingHours1'],
|
|
261
|
+
'opening_hours.2': value['openingHours2'],
|
|
262
|
+
'opening_hours.3': value['openingHours3'],
|
|
263
|
+
'opening_hours.4': value['openingHours4'],
|
|
264
|
+
'opening_hours.5': value['openingHours5'],
|
|
265
|
+
'opening_hours.6': value['openingHours6'],
|
|
266
|
+
'supplier_ids': value['supplierIds'],
|
|
267
|
+
'special_dates': value['specialDates'] == null ? undefined : ((value['specialDates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerToJSON)),
|
|
268
|
+
'address': value['address'],
|
|
269
|
+
'address.company': value['addressCompany'],
|
|
270
|
+
'address.line_1': value['addressLine1'],
|
|
271
|
+
'address.line_2': value['addressLine2'],
|
|
272
|
+
'address.postcode': value['addressPostcode'],
|
|
273
|
+
'address.suburb': value['addressSuburb'],
|
|
274
|
+
'address.country': value['addressCountry'],
|
|
275
|
+
'address.state': value['addressState'],
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 StoreStoreRequestSpecialDatesInner
|
|
20
|
+
*/
|
|
21
|
+
export interface StoreStoreRequestSpecialDatesInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof StoreStoreRequestSpecialDatesInner
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof StoreStoreRequestSpecialDatesInner
|
|
32
|
+
*/
|
|
33
|
+
hours?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof StoreStoreRequestSpecialDatesInner
|
|
38
|
+
*/
|
|
39
|
+
displayStart?: Date;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof StoreStoreRequestSpecialDatesInner
|
|
44
|
+
*/
|
|
45
|
+
displayEnd?: Date;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the StoreStoreRequestSpecialDatesInner interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfStoreStoreRequestSpecialDatesInner(value: object): value is StoreStoreRequestSpecialDatesInner {
|
|
52
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function StoreStoreRequestSpecialDatesInnerFromJSON(json: any): StoreStoreRequestSpecialDatesInner {
|
|
57
|
+
return StoreStoreRequestSpecialDatesInnerFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function StoreStoreRequestSpecialDatesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreStoreRequestSpecialDatesInner {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'name': json['name'],
|
|
67
|
+
'hours': json['hours'] == null ? undefined : json['hours'],
|
|
68
|
+
'displayStart': json['display_start'] == null ? undefined : (new Date(json['display_start'])),
|
|
69
|
+
'displayEnd': json['display_end'] == null ? undefined : (new Date(json['display_end'])),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function StoreStoreRequestSpecialDatesInnerToJSON(json: any): StoreStoreRequestSpecialDatesInner {
|
|
74
|
+
return StoreStoreRequestSpecialDatesInnerToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function StoreStoreRequestSpecialDatesInnerToJSONTyped(value?: StoreStoreRequestSpecialDatesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'name': value['name'],
|
|
85
|
+
'hours': value['hours'],
|
|
86
|
+
'display_start': value['displayStart'] == null ? value['displayStart'] : value['displayStart'].toISOString(),
|
|
87
|
+
'display_end': value['displayEnd'] == null ? value['displayEnd'] : value['displayEnd'].toISOString(),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 StoreStoreSpecialDateRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface StoreStoreSpecialDateRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof StoreStoreSpecialDateRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof StoreStoreSpecialDateRequest
|
|
32
|
+
*/
|
|
33
|
+
hours?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof StoreStoreSpecialDateRequest
|
|
38
|
+
*/
|
|
39
|
+
displayStart?: Date;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof StoreStoreSpecialDateRequest
|
|
44
|
+
*/
|
|
45
|
+
displayEnd?: Date;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the StoreStoreSpecialDateRequest interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfStoreStoreSpecialDateRequest(value: object): value is StoreStoreSpecialDateRequest {
|
|
52
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function StoreStoreSpecialDateRequestFromJSON(json: any): StoreStoreSpecialDateRequest {
|
|
57
|
+
return StoreStoreSpecialDateRequestFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function StoreStoreSpecialDateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreStoreSpecialDateRequest {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'name': json['name'],
|
|
67
|
+
'hours': json['hours'] == null ? undefined : json['hours'],
|
|
68
|
+
'displayStart': json['display_start'] == null ? undefined : (new Date(json['display_start'])),
|
|
69
|
+
'displayEnd': json['display_end'] == null ? undefined : (new Date(json['display_end'])),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function StoreStoreSpecialDateRequestToJSON(json: any): StoreStoreSpecialDateRequest {
|
|
74
|
+
return StoreStoreSpecialDateRequestToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function StoreStoreSpecialDateRequestToJSONTyped(value?: StoreStoreSpecialDateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'name': value['name'],
|
|
85
|
+
'hours': value['hours'],
|
|
86
|
+
'display_start': value['displayStart'] == null ? value['displayStart'] : value['displayStart'].toISOString(),
|
|
87
|
+
'display_end': value['displayEnd'] == null ? value['displayEnd'] : value['displayEnd'].toISOString(),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -83,6 +83,12 @@ export interface SupplierResource {
|
|
|
83
83
|
* @memberof SupplierResource
|
|
84
84
|
*/
|
|
85
85
|
descriptions: Array<DescriptionResource> | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {object}
|
|
89
|
+
* @memberof SupplierResource
|
|
90
|
+
*/
|
|
91
|
+
stores: object;
|
|
86
92
|
}
|
|
87
93
|
|
|
88
94
|
/**
|
|
@@ -96,6 +102,7 @@ export function instanceOfSupplierResource(value: object): value is SupplierReso
|
|
|
96
102
|
if (!('supplierEta' in value) || value['supplierEta'] === undefined) return false;
|
|
97
103
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
98
104
|
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
105
|
+
if (!('stores' in value) || value['stores'] === undefined) return false;
|
|
99
106
|
return true;
|
|
100
107
|
}
|
|
101
108
|
|
|
@@ -116,6 +123,7 @@ export function SupplierResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
116
123
|
'supplierEta': json['supplierEta'],
|
|
117
124
|
'seo': (json['seo'] == null ? null : (json['seo'] as Array<any>).map(SEOResourceFromJSON)),
|
|
118
125
|
'descriptions': (json['descriptions'] == null ? null : (json['descriptions'] as Array<any>).map(DescriptionResourceFromJSON)),
|
|
126
|
+
'stores': json['stores'],
|
|
119
127
|
};
|
|
120
128
|
}
|
|
121
129
|
|
|
@@ -137,6 +145,7 @@ export function SupplierResourceToJSONTyped(value?: SupplierResource | null, ign
|
|
|
137
145
|
'supplierEta': value['supplierEta'],
|
|
138
146
|
'seo': (value['seo'] == null ? null : (value['seo'] as Array<any>).map(SEOResourceToJSON)),
|
|
139
147
|
'descriptions': (value['descriptions'] == null ? null : (value['descriptions'] as Array<any>).map(DescriptionResourceToJSON)),
|
|
148
|
+
'stores': value['stores'],
|
|
140
149
|
};
|
|
141
150
|
}
|
|
142
151
|
|