@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,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface StoreStoreRequestSpecialDatesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreStoreRequestSpecialDatesInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StoreStoreRequestSpecialDatesInner
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StoreStoreRequestSpecialDatesInner
|
|
28
|
+
*/
|
|
29
|
+
hours?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof StoreStoreRequestSpecialDatesInner
|
|
34
|
+
*/
|
|
35
|
+
displayStart?: Date;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof StoreStoreRequestSpecialDatesInner
|
|
40
|
+
*/
|
|
41
|
+
displayEnd?: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the StoreStoreRequestSpecialDatesInner interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfStoreStoreRequestSpecialDatesInner(value: object): value is StoreStoreRequestSpecialDatesInner;
|
|
47
|
+
export declare function StoreStoreRequestSpecialDatesInnerFromJSON(json: any): StoreStoreRequestSpecialDatesInner;
|
|
48
|
+
export declare function StoreStoreRequestSpecialDatesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreStoreRequestSpecialDatesInner;
|
|
49
|
+
export declare function StoreStoreRequestSpecialDatesInnerToJSON(json: any): StoreStoreRequestSpecialDatesInner;
|
|
50
|
+
export declare function StoreStoreRequestSpecialDatesInnerToJSONTyped(value?: StoreStoreRequestSpecialDatesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfStoreStoreRequestSpecialDatesInner = instanceOfStoreStoreRequestSpecialDatesInner;
|
|
17
|
+
exports.StoreStoreRequestSpecialDatesInnerFromJSON = StoreStoreRequestSpecialDatesInnerFromJSON;
|
|
18
|
+
exports.StoreStoreRequestSpecialDatesInnerFromJSONTyped = StoreStoreRequestSpecialDatesInnerFromJSONTyped;
|
|
19
|
+
exports.StoreStoreRequestSpecialDatesInnerToJSON = StoreStoreRequestSpecialDatesInnerToJSON;
|
|
20
|
+
exports.StoreStoreRequestSpecialDatesInnerToJSONTyped = StoreStoreRequestSpecialDatesInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreStoreRequestSpecialDatesInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreStoreRequestSpecialDatesInner(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function StoreStoreRequestSpecialDatesInnerFromJSON(json) {
|
|
30
|
+
return StoreStoreRequestSpecialDatesInnerFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function StoreStoreRequestSpecialDatesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'hours': json['hours'] == null ? undefined : json['hours'],
|
|
39
|
+
'displayStart': json['display_start'] == null ? undefined : (new Date(json['display_start'])),
|
|
40
|
+
'displayEnd': json['display_end'] == null ? undefined : (new Date(json['display_end'])),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function StoreStoreRequestSpecialDatesInnerToJSON(json) {
|
|
44
|
+
return StoreStoreRequestSpecialDatesInnerToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function StoreStoreRequestSpecialDatesInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'hours': value['hours'],
|
|
54
|
+
'display_start': value['displayStart'] == null ? value['displayStart'] : value['displayStart'].toISOString(),
|
|
55
|
+
'display_end': value['displayEnd'] == null ? value['displayEnd'] : value['displayEnd'].toISOString(),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface StoreStoreSpecialDateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreStoreSpecialDateRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StoreStoreSpecialDateRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StoreStoreSpecialDateRequest
|
|
28
|
+
*/
|
|
29
|
+
hours?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof StoreStoreSpecialDateRequest
|
|
34
|
+
*/
|
|
35
|
+
displayStart?: Date;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof StoreStoreSpecialDateRequest
|
|
40
|
+
*/
|
|
41
|
+
displayEnd?: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the StoreStoreSpecialDateRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfStoreStoreSpecialDateRequest(value: object): value is StoreStoreSpecialDateRequest;
|
|
47
|
+
export declare function StoreStoreSpecialDateRequestFromJSON(json: any): StoreStoreSpecialDateRequest;
|
|
48
|
+
export declare function StoreStoreSpecialDateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreStoreSpecialDateRequest;
|
|
49
|
+
export declare function StoreStoreSpecialDateRequestToJSON(json: any): StoreStoreSpecialDateRequest;
|
|
50
|
+
export declare function StoreStoreSpecialDateRequestToJSONTyped(value?: StoreStoreSpecialDateRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfStoreStoreSpecialDateRequest = instanceOfStoreStoreSpecialDateRequest;
|
|
17
|
+
exports.StoreStoreSpecialDateRequestFromJSON = StoreStoreSpecialDateRequestFromJSON;
|
|
18
|
+
exports.StoreStoreSpecialDateRequestFromJSONTyped = StoreStoreSpecialDateRequestFromJSONTyped;
|
|
19
|
+
exports.StoreStoreSpecialDateRequestToJSON = StoreStoreSpecialDateRequestToJSON;
|
|
20
|
+
exports.StoreStoreSpecialDateRequestToJSONTyped = StoreStoreSpecialDateRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreStoreSpecialDateRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreStoreSpecialDateRequest(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function StoreStoreSpecialDateRequestFromJSON(json) {
|
|
30
|
+
return StoreStoreSpecialDateRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function StoreStoreSpecialDateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'hours': json['hours'] == null ? undefined : json['hours'],
|
|
39
|
+
'displayStart': json['display_start'] == null ? undefined : (new Date(json['display_start'])),
|
|
40
|
+
'displayEnd': json['display_end'] == null ? undefined : (new Date(json['display_end'])),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function StoreStoreSpecialDateRequestToJSON(json) {
|
|
44
|
+
return StoreStoreSpecialDateRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function StoreStoreSpecialDateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'hours': value['hours'],
|
|
54
|
+
'display_start': value['displayStart'] == null ? value['displayStart'] : value['displayStart'].toISOString(),
|
|
55
|
+
'display_end': value['displayEnd'] == null ? value['displayEnd'] : value['displayEnd'].toISOString(),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -60,6 +60,12 @@ export interface SupplierResource {
|
|
|
60
60
|
* @memberof SupplierResource
|
|
61
61
|
*/
|
|
62
62
|
descriptions: Array<DescriptionResource> | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {object}
|
|
66
|
+
* @memberof SupplierResource
|
|
67
|
+
*/
|
|
68
|
+
stores: object;
|
|
63
69
|
}
|
|
64
70
|
/**
|
|
65
71
|
* Check if a given object implements the SupplierResource interface.
|
|
@@ -39,6 +39,8 @@ function instanceOfSupplierResource(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
+
if (!('stores' in value) || value['stores'] === undefined)
|
|
43
|
+
return false;
|
|
42
44
|
return true;
|
|
43
45
|
}
|
|
44
46
|
function SupplierResourceFromJSON(json) {
|
|
@@ -56,6 +58,7 @@ function SupplierResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
58
|
'supplierEta': json['supplierEta'],
|
|
57
59
|
'seo': (json['seo'] == null ? null : json['seo'].map(SEOResource_1.SEOResourceFromJSON)),
|
|
58
60
|
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
61
|
+
'stores': json['stores'],
|
|
59
62
|
};
|
|
60
63
|
}
|
|
61
64
|
function SupplierResourceToJSON(json) {
|
|
@@ -74,5 +77,6 @@ function SupplierResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
74
77
|
'supplierEta': value['supplierEta'],
|
|
75
78
|
'seo': (value['seo'] == null ? null : value['seo'].map(SEOResource_1.SEOResourceToJSON)),
|
|
76
79
|
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
80
|
+
'stores': value['stores'],
|
|
77
81
|
};
|
|
78
82
|
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { UpdateStoreRequestSpecialDatesInner } from './UpdateStoreRequestSpecialDatesInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateStoreRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateStoreRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof UpdateStoreRequest
|
|
23
|
+
*/
|
|
24
|
+
siteId: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateStoreRequest
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UpdateStoreRequest
|
|
35
|
+
*/
|
|
36
|
+
phone: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof UpdateStoreRequest
|
|
41
|
+
*/
|
|
42
|
+
longitude: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof UpdateStoreRequest
|
|
47
|
+
*/
|
|
48
|
+
latitude: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof UpdateStoreRequest
|
|
53
|
+
*/
|
|
54
|
+
tagLine?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof UpdateStoreRequest
|
|
59
|
+
*/
|
|
60
|
+
email: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<string>}
|
|
64
|
+
* @memberof UpdateStoreRequest
|
|
65
|
+
*/
|
|
66
|
+
openingHours?: Array<string>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof UpdateStoreRequest
|
|
71
|
+
*/
|
|
72
|
+
openingHours0?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof UpdateStoreRequest
|
|
77
|
+
*/
|
|
78
|
+
openingHours1?: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof UpdateStoreRequest
|
|
83
|
+
*/
|
|
84
|
+
openingHours2?: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof UpdateStoreRequest
|
|
89
|
+
*/
|
|
90
|
+
openingHours3?: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof UpdateStoreRequest
|
|
95
|
+
*/
|
|
96
|
+
openingHours4?: string;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof UpdateStoreRequest
|
|
101
|
+
*/
|
|
102
|
+
openingHours5?: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof UpdateStoreRequest
|
|
107
|
+
*/
|
|
108
|
+
openingHours6?: string;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {Array<number>}
|
|
112
|
+
* @memberof UpdateStoreRequest
|
|
113
|
+
*/
|
|
114
|
+
supplierIds?: Array<number>;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {Array<UpdateStoreRequestSpecialDatesInner>}
|
|
118
|
+
* @memberof UpdateStoreRequest
|
|
119
|
+
*/
|
|
120
|
+
specialDates?: Array<UpdateStoreRequestSpecialDatesInner>;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {Array<string>}
|
|
124
|
+
* @memberof UpdateStoreRequest
|
|
125
|
+
*/
|
|
126
|
+
address: Array<string>;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof UpdateStoreRequest
|
|
131
|
+
*/
|
|
132
|
+
addressCompany: string;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof UpdateStoreRequest
|
|
137
|
+
*/
|
|
138
|
+
addressLine1: string;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof UpdateStoreRequest
|
|
143
|
+
*/
|
|
144
|
+
addressLine2?: string;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof UpdateStoreRequest
|
|
149
|
+
*/
|
|
150
|
+
addressPostcode: string;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof UpdateStoreRequest
|
|
155
|
+
*/
|
|
156
|
+
addressSuburb: string;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @type {string}
|
|
160
|
+
* @memberof UpdateStoreRequest
|
|
161
|
+
*/
|
|
162
|
+
addressCountry: string;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @memberof UpdateStoreRequest
|
|
167
|
+
*/
|
|
168
|
+
addressState: string;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Check if a given object implements the UpdateStoreRequest interface.
|
|
172
|
+
*/
|
|
173
|
+
export declare function instanceOfUpdateStoreRequest(value: object): value is UpdateStoreRequest;
|
|
174
|
+
export declare function UpdateStoreRequestFromJSON(json: any): UpdateStoreRequest;
|
|
175
|
+
export declare function UpdateStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateStoreRequest;
|
|
176
|
+
export declare function UpdateStoreRequestToJSON(json: any): UpdateStoreRequest;
|
|
177
|
+
export declare function UpdateStoreRequestToJSONTyped(value?: UpdateStoreRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUpdateStoreRequest = instanceOfUpdateStoreRequest;
|
|
17
|
+
exports.UpdateStoreRequestFromJSON = UpdateStoreRequestFromJSON;
|
|
18
|
+
exports.UpdateStoreRequestFromJSONTyped = UpdateStoreRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateStoreRequestToJSON = UpdateStoreRequestToJSON;
|
|
20
|
+
exports.UpdateStoreRequestToJSONTyped = UpdateStoreRequestToJSONTyped;
|
|
21
|
+
var UpdateStoreRequestSpecialDatesInner_1 = require("./UpdateStoreRequestSpecialDatesInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateStoreRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateStoreRequest(value) {
|
|
26
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('phone' in value) || value['phone'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('addressCompany' in value) || value['addressCompany'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('addressPostcode' in value) || value['addressPostcode'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('addressSuburb' in value) || value['addressSuburb'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('addressCountry' in value) || value['addressCountry'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('addressState' in value) || value['addressState'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
function UpdateStoreRequestFromJSON(json) {
|
|
55
|
+
return UpdateStoreRequestFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function UpdateStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'siteId': json['site_id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'phone': json['phone'],
|
|
65
|
+
'longitude': json['longitude'],
|
|
66
|
+
'latitude': json['latitude'],
|
|
67
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
68
|
+
'email': json['email'],
|
|
69
|
+
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
70
|
+
'openingHours0': json['opening_hours.0'] == null ? undefined : json['opening_hours.0'],
|
|
71
|
+
'openingHours1': json['opening_hours.1'] == null ? undefined : json['opening_hours.1'],
|
|
72
|
+
'openingHours2': json['opening_hours.2'] == null ? undefined : json['opening_hours.2'],
|
|
73
|
+
'openingHours3': json['opening_hours.3'] == null ? undefined : json['opening_hours.3'],
|
|
74
|
+
'openingHours4': json['opening_hours.4'] == null ? undefined : json['opening_hours.4'],
|
|
75
|
+
'openingHours5': json['opening_hours.5'] == null ? undefined : json['opening_hours.5'],
|
|
76
|
+
'openingHours6': json['opening_hours.6'] == null ? undefined : json['opening_hours.6'],
|
|
77
|
+
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
78
|
+
'specialDates': json['special_dates'] == null ? undefined : (json['special_dates'].map(UpdateStoreRequestSpecialDatesInner_1.UpdateStoreRequestSpecialDatesInnerFromJSON)),
|
|
79
|
+
'address': json['address'],
|
|
80
|
+
'addressCompany': json['address.company'],
|
|
81
|
+
'addressLine1': json['address.line_1'],
|
|
82
|
+
'addressLine2': json['address.line_2'] == null ? undefined : json['address.line_2'],
|
|
83
|
+
'addressPostcode': json['address.postcode'],
|
|
84
|
+
'addressSuburb': json['address.suburb'],
|
|
85
|
+
'addressCountry': json['address.country'],
|
|
86
|
+
'addressState': json['address.state'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function UpdateStoreRequestToJSON(json) {
|
|
90
|
+
return UpdateStoreRequestToJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
function UpdateStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
93
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
'site_id': value['siteId'],
|
|
99
|
+
'name': value['name'],
|
|
100
|
+
'phone': value['phone'],
|
|
101
|
+
'longitude': value['longitude'],
|
|
102
|
+
'latitude': value['latitude'],
|
|
103
|
+
'tag_line': value['tagLine'],
|
|
104
|
+
'email': value['email'],
|
|
105
|
+
'opening_hours': value['openingHours'],
|
|
106
|
+
'opening_hours.0': value['openingHours0'],
|
|
107
|
+
'opening_hours.1': value['openingHours1'],
|
|
108
|
+
'opening_hours.2': value['openingHours2'],
|
|
109
|
+
'opening_hours.3': value['openingHours3'],
|
|
110
|
+
'opening_hours.4': value['openingHours4'],
|
|
111
|
+
'opening_hours.5': value['openingHours5'],
|
|
112
|
+
'opening_hours.6': value['openingHours6'],
|
|
113
|
+
'supplier_ids': value['supplierIds'],
|
|
114
|
+
'special_dates': value['specialDates'] == null ? undefined : (value['specialDates'].map(UpdateStoreRequestSpecialDatesInner_1.UpdateStoreRequestSpecialDatesInnerToJSON)),
|
|
115
|
+
'address': value['address'],
|
|
116
|
+
'address.company': value['addressCompany'],
|
|
117
|
+
'address.line_1': value['addressLine1'],
|
|
118
|
+
'address.line_2': value['addressLine2'],
|
|
119
|
+
'address.postcode': value['addressPostcode'],
|
|
120
|
+
'address.suburb': value['addressSuburb'],
|
|
121
|
+
'address.country': value['addressCountry'],
|
|
122
|
+
'address.state': value['addressState'],
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateStoreRequestSpecialDatesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateStoreRequestSpecialDatesInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UpdateStoreRequestSpecialDatesInner
|
|
22
|
+
*/
|
|
23
|
+
id?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateStoreRequestSpecialDatesInner
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateStoreRequestSpecialDatesInner
|
|
34
|
+
*/
|
|
35
|
+
hours?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof UpdateStoreRequestSpecialDatesInner
|
|
40
|
+
*/
|
|
41
|
+
displayStart?: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof UpdateStoreRequestSpecialDatesInner
|
|
46
|
+
*/
|
|
47
|
+
displayEnd?: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the UpdateStoreRequestSpecialDatesInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfUpdateStoreRequestSpecialDatesInner(value: object): value is UpdateStoreRequestSpecialDatesInner;
|
|
53
|
+
export declare function UpdateStoreRequestSpecialDatesInnerFromJSON(json: any): UpdateStoreRequestSpecialDatesInner;
|
|
54
|
+
export declare function UpdateStoreRequestSpecialDatesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateStoreRequestSpecialDatesInner;
|
|
55
|
+
export declare function UpdateStoreRequestSpecialDatesInnerToJSON(json: any): UpdateStoreRequestSpecialDatesInner;
|
|
56
|
+
export declare function UpdateStoreRequestSpecialDatesInnerToJSONTyped(value?: UpdateStoreRequestSpecialDatesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUpdateStoreRequestSpecialDatesInner = instanceOfUpdateStoreRequestSpecialDatesInner;
|
|
17
|
+
exports.UpdateStoreRequestSpecialDatesInnerFromJSON = UpdateStoreRequestSpecialDatesInnerFromJSON;
|
|
18
|
+
exports.UpdateStoreRequestSpecialDatesInnerFromJSONTyped = UpdateStoreRequestSpecialDatesInnerFromJSONTyped;
|
|
19
|
+
exports.UpdateStoreRequestSpecialDatesInnerToJSON = UpdateStoreRequestSpecialDatesInnerToJSON;
|
|
20
|
+
exports.UpdateStoreRequestSpecialDatesInnerToJSONTyped = UpdateStoreRequestSpecialDatesInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateStoreRequestSpecialDatesInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateStoreRequestSpecialDatesInner(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateStoreRequestSpecialDatesInnerFromJSON(json) {
|
|
28
|
+
return UpdateStoreRequestSpecialDatesInnerFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateStoreRequestSpecialDatesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'hours': json['hours'] == null ? undefined : json['hours'],
|
|
38
|
+
'displayStart': json['display_start'] == null ? undefined : (new Date(json['display_start'])),
|
|
39
|
+
'displayEnd': json['display_end'] == null ? undefined : (new Date(json['display_end'])),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function UpdateStoreRequestSpecialDatesInnerToJSON(json) {
|
|
43
|
+
return UpdateStoreRequestSpecialDatesInnerToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function UpdateStoreRequestSpecialDatesInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'hours': value['hours'],
|
|
54
|
+
'display_start': value['displayStart'] == null ? value['displayStart'] : value['displayStart'].toISOString(),
|
|
55
|
+
'display_end': value['displayEnd'] == null ? value['displayEnd'] : value['displayEnd'].toISOString(),
|
|
56
|
+
};
|
|
57
|
+
}
|