@digital8/lighting-illusions-ts-sdk 0.0.1456 → 0.0.1457
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 +40 -74
- package/README.md +25 -56
- package/dist/apis/ProductRegistrationApi.d.ts +79 -0
- package/dist/apis/{LabelApi.js → ProductRegistrationApi.js} +57 -174
- package/dist/apis/SupplierApi.d.ts +1 -33
- package/dist/apis/SupplierApi.js +0 -122
- package/dist/apis/index.d.ts +1 -2
- package/dist/apis/index.js +1 -2
- package/dist/models/AddressResource.js +6 -6
- package/dist/models/GetAllProductRegistrationRequest.d.ts +81 -0
- package/dist/models/{GetAllStoreRequest.js → GetAllProductRegistrationRequest.js} +20 -24
- package/dist/models/IndexProductChildRequest.d.ts +1 -1
- package/dist/models/IndexProductChildRequest.js +1 -1
- package/dist/models/IndexProductRegistrationRequest.d.ts +124 -0
- package/dist/models/IndexProductRegistrationRequest.js +95 -0
- package/dist/models/LabelResource.d.ts +4 -23
- package/dist/models/LabelResource.js +8 -19
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
- package/dist/models/{IndexLabelRequest.js → ListAssetsProductRegistrationRequest.js} +22 -31
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +57 -0
- package/dist/models/ProductRegistrationAssetResource.d.ts +45 -0
- package/dist/models/ProductRegistrationAssetResource.js +58 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationAssetType.d.ts +25 -0
- package/dist/models/ProductRegistrationAssetType.js +51 -0
- package/dist/models/ProductRegistrationCustomerLiteResource.d.ts +44 -0
- package/dist/models/ProductRegistrationCustomerLiteResource.js +57 -0
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationCustomerResource.d.ts +50 -0
- package/dist/models/ProductRegistrationCustomerResource.js +61 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationListResource.d.ts +51 -0
- package/dist/models/ProductRegistrationListResource.js +60 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationLiteResource.d.ts +38 -0
- package/dist/models/ProductRegistrationLiteResource.js +53 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationResource.d.ts +76 -0
- package/dist/models/ProductRegistrationResource.js +75 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +19 -35
- package/dist/models/index.js +19 -35
- package/docs/{GetAllStoreRequest.md → GetAllProductRegistrationRequest.md} +4 -8
- package/docs/{IndexStoreRequest.md → IndexProductRegistrationRequest.md} +12 -8
- package/docs/LabelResource.md +6 -12
- package/docs/{IndexLabelRequest.md → ListAssetsProductRegistrationRequest.md} +8 -6
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
- package/docs/{PaginatedLabelListResourceResponse.md → PaginatedProductRegistrationListResourceResponse.md} +5 -5
- package/docs/{PaginatedStoreListResourceResponse.md → PaginatedProductRegistrationResourceResponse.md} +5 -5
- package/docs/ProductRegistrationApi.md +275 -0
- package/docs/{LabelLiteResource.md → ProductRegistrationAssetResource.md} +8 -12
- package/docs/{StoreSpecialDateFrontendResourceArrayResponse.md → ProductRegistrationAssetResourceArrayResponse.md} +5 -5
- package/docs/{DetachStoresSupplierRequest.md → ProductRegistrationAssetType.md} +4 -6
- package/docs/{StoreLiteResource.md → ProductRegistrationCustomerLiteResource.md} +6 -6
- package/docs/ProductRegistrationCustomerLiteResourceArrayResponse.md +34 -0
- package/docs/{UpdateStoreRequestSpecialDatesInner.md → ProductRegistrationCustomerResource.md} +8 -10
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
- package/docs/{StoreSpecialDateResource.md → ProductRegistrationListResource.md} +10 -16
- package/docs/{LabelLiteResourceArrayResponse.md → ProductRegistrationListResourceArrayResponse.md} +5 -5
- package/docs/{DetachSuppliersStoreRequest.md → ProductRegistrationLiteResource.md} +8 -6
- package/docs/{AddressFrontendResourceArrayResponse.md → ProductRegistrationLiteResourceArrayResponse.md} +5 -5
- package/docs/ProductRegistrationResource.md +48 -0
- package/docs/{LabelListResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
- package/docs/SupplierApi.md +0 -138
- package/package.json +1 -1
- package/src/apis/ProductRegistrationApi.ts +238 -0
- package/src/apis/SupplierApi.ts +0 -112
- package/src/apis/index.ts +1 -2
- package/src/models/AddressResource.ts +6 -6
- package/src/models/GetAllProductRegistrationRequest.ts +128 -0
- package/src/models/IndexProductChildRequest.ts +1 -1
- package/src/models/IndexProductRegistrationRequest.ts +184 -0
- package/src/models/LabelResource.ts +12 -46
- package/src/models/ListAssetsProductRegistrationRequest.ts +158 -0
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +90 -0
- package/src/models/ProductRegistrationAssetResource.ts +91 -0
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationAssetType.ts +53 -0
- package/src/models/ProductRegistrationCustomerLiteResource.ts +83 -0
- package/src/models/ProductRegistrationCustomerLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationCustomerResource.ts +92 -0
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationListResource.ts +99 -0
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationLiteResource.ts +74 -0
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationResource.ts +141 -0
- package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +19 -35
- package/dist/apis/LabelApi.d.ts +0 -109
- package/dist/apis/StoreApi.d.ts +0 -190
- package/dist/apis/StoreApi.js +0 -744
- package/dist/models/AddressFrontendResource.d.ts +0 -74
- package/dist/models/AddressFrontendResource.js +0 -75
- package/dist/models/AddressFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/AddressFrontendResourceArrayResponse.js +0 -50
- package/dist/models/AttachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/AttachStoresSupplierRequest.js +0 -51
- package/dist/models/AttachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/AttachSuppliersStoreRequest.js +0 -51
- package/dist/models/DetachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/DetachStoresSupplierRequest.js +0 -51
- package/dist/models/DetachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/DetachSuppliersStoreRequest.js +0 -51
- package/dist/models/GetAllStoreRequest.d.ts +0 -93
- package/dist/models/IndexLabelRequest.d.ts +0 -109
- package/dist/models/IndexStoreRequest.d.ts +0 -105
- package/dist/models/IndexStoreRequest.js +0 -85
- package/dist/models/LabelListResource.d.ts +0 -75
- package/dist/models/LabelListResource.js +0 -74
- package/dist/models/LabelListResourceArrayResponse.d.ts +0 -33
- package/dist/models/LabelListResourceArrayResponse.js +0 -50
- package/dist/models/LabelLiteResource.d.ts +0 -56
- package/dist/models/LabelLiteResource.js +0 -65
- package/dist/models/LabelLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/LabelLiteResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedLabelListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedLabelListResourceResponse.js +0 -57
- package/dist/models/PaginatedStoreListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedStoreListResourceResponse.js +0 -57
- package/dist/models/StoreFrontendResource.d.ts +0 -98
- package/dist/models/StoreFrontendResource.js +0 -89
- package/dist/models/StoreFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreLabelRequest.d.ts +0 -74
- package/dist/models/StoreLabelRequest.js +0 -71
- package/dist/models/StoreListResource.d.ts +0 -81
- package/dist/models/StoreListResource.js +0 -80
- package/dist/models/StoreListResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreListResourceArrayResponse.js +0 -50
- package/dist/models/StoreLiteResource.d.ts +0 -45
- package/dist/models/StoreLiteResource.js +0 -58
- package/dist/models/StoreLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreLiteResourceArrayResponse.js +0 -50
- package/dist/models/StoreResource.d.ts +0 -102
- package/dist/models/StoreResource.js +0 -95
- package/dist/models/StoreResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +0 -68
- package/dist/models/StoreSpecialDateFrontendResource.js +0 -71
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateResource.d.ts +0 -68
- package/dist/models/StoreSpecialDateResource.js +0 -71
- package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateResourceArrayResponse.js +0 -50
- package/dist/models/StoreStoreRequest.d.ts +0 -94
- package/dist/models/StoreStoreRequest.js +0 -85
- package/dist/models/StoreStoreRequestAddress.d.ts +0 -68
- package/dist/models/StoreStoreRequestAddress.js +0 -73
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +0 -62
- package/dist/models/StoreStoreRequestSpecialDatesInner.js +0 -61
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +0 -62
- package/dist/models/StoreStoreSpecialDateRequest.js +0 -61
- package/dist/models/UpdateLabelRequest.d.ts +0 -74
- package/dist/models/UpdateLabelRequest.js +0 -63
- package/dist/models/UpdateStoreRequest.d.ts +0 -94
- package/dist/models/UpdateStoreRequest.js +0 -85
- package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +0 -56
- package/dist/models/UpdateStoreRequestSpecialDatesInner.js +0 -57
- package/docs/AddressFrontendResource.md +0 -48
- package/docs/AttachStoresSupplierRequest.md +0 -34
- package/docs/AttachSuppliersStoreRequest.md +0 -34
- package/docs/LabelApi.md +0 -407
- package/docs/LabelListResource.md +0 -48
- package/docs/StoreApi.md +0 -755
- package/docs/StoreFrontendResource.md +0 -56
- package/docs/StoreFrontendResourceArrayResponse.md +0 -34
- package/docs/StoreLabelRequest.md +0 -48
- package/docs/StoreListResource.md +0 -50
- package/docs/StoreListResourceArrayResponse.md +0 -34
- package/docs/StoreLiteResourceArrayResponse.md +0 -34
- package/docs/StoreResource.md +0 -56
- package/docs/StoreResourceArrayResponse.md +0 -34
- package/docs/StoreSpecialDateFrontendResource.md +0 -46
- package/docs/StoreSpecialDateResourceArrayResponse.md +0 -34
- package/docs/StoreStoreRequest.md +0 -54
- package/docs/StoreStoreRequestAddress.md +0 -46
- package/docs/StoreStoreRequestSpecialDatesInner.md +0 -44
- package/docs/StoreStoreSpecialDateRequest.md +0 -44
- package/docs/UpdateLabelRequest.md +0 -48
- package/docs/UpdateStoreRequest.md +0 -54
- package/src/apis/LabelApi.ts +0 -328
- package/src/apis/StoreApi.ts +0 -625
- package/src/models/AddressFrontendResource.ts +0 -127
- package/src/models/AddressFrontendResourceArrayResponse.ts +0 -73
- package/src/models/AttachStoresSupplierRequest.ts +0 -66
- package/src/models/AttachSuppliersStoreRequest.ts +0 -66
- package/src/models/DetachStoresSupplierRequest.ts +0 -66
- package/src/models/DetachSuppliersStoreRequest.ts +0 -66
- package/src/models/GetAllStoreRequest.ts +0 -144
- package/src/models/IndexLabelRequest.ts +0 -163
- package/src/models/IndexStoreRequest.ts +0 -160
- package/src/models/LabelListResource.ts +0 -134
- package/src/models/LabelListResourceArrayResponse.ts +0 -73
- package/src/models/LabelLiteResource.ts +0 -101
- package/src/models/LabelLiteResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedLabelListResourceResponse.ts +0 -90
- package/src/models/PaginatedStoreListResourceResponse.ts +0 -90
- package/src/models/StoreFrontendResource.ts +0 -162
- package/src/models/StoreFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreLabelRequest.ts +0 -125
- package/src/models/StoreListResource.ts +0 -144
- package/src/models/StoreListResourceArrayResponse.ts +0 -73
- package/src/models/StoreLiteResource.ts +0 -91
- package/src/models/StoreLiteResourceArrayResponse.ts +0 -73
- package/src/models/StoreResource.ts +0 -192
- package/src/models/StoreResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateFrontendResource.ts +0 -118
- package/src/models/StoreSpecialDateFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateResource.ts +0 -118
- package/src/models/StoreSpecialDateResourceArrayResponse.ts +0 -73
- package/src/models/StoreStoreRequest.ts +0 -167
- package/src/models/StoreStoreRequestAddress.ts +0 -119
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +0 -106
- package/src/models/StoreStoreSpecialDateRequest.ts +0 -106
- package/src/models/UpdateLabelRequest.ts +0 -121
- package/src/models/UpdateStoreRequest.ts +0 -167
- package/src/models/UpdateStoreRequestSpecialDatesInner.ts +0 -97
|
@@ -1,90 +0,0 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
-
import {
|
|
18
|
-
PagingMetadataFromJSON,
|
|
19
|
-
PagingMetadataFromJSONTyped,
|
|
20
|
-
PagingMetadataToJSON,
|
|
21
|
-
PagingMetadataToJSONTyped,
|
|
22
|
-
} from './PagingMetadata';
|
|
23
|
-
import type { LabelListResource } from './LabelListResource';
|
|
24
|
-
import {
|
|
25
|
-
LabelListResourceFromJSON,
|
|
26
|
-
LabelListResourceFromJSONTyped,
|
|
27
|
-
LabelListResourceToJSON,
|
|
28
|
-
LabelListResourceToJSONTyped,
|
|
29
|
-
} from './LabelListResource';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface PaginatedLabelListResourceResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface PaginatedLabelListResourceResponse {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<LabelListResource>}
|
|
40
|
-
* @memberof PaginatedLabelListResourceResponse
|
|
41
|
-
*/
|
|
42
|
-
data: Array<LabelListResource>;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {PagingMetadata}
|
|
46
|
-
* @memberof PaginatedLabelListResourceResponse
|
|
47
|
-
*/
|
|
48
|
-
meta: PagingMetadata;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the PaginatedLabelListResourceResponse interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfPaginatedLabelListResourceResponse(value: object): value is PaginatedLabelListResourceResponse {
|
|
55
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
-
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function PaginatedLabelListResourceResponseFromJSON(json: any): PaginatedLabelListResourceResponse {
|
|
61
|
-
return PaginatedLabelListResourceResponseFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function PaginatedLabelListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedLabelListResourceResponse {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': ((json['data'] as Array<any>).map(LabelListResourceFromJSON)),
|
|
71
|
-
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function PaginatedLabelListResourceResponseToJSON(json: any): PaginatedLabelListResourceResponse {
|
|
76
|
-
return PaginatedLabelListResourceResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function PaginatedLabelListResourceResponseToJSONTyped(value?: PaginatedLabelListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'data': ((value['data'] as Array<any>).map(LabelListResourceToJSON)),
|
|
87
|
-
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
-
import {
|
|
18
|
-
PagingMetadataFromJSON,
|
|
19
|
-
PagingMetadataFromJSONTyped,
|
|
20
|
-
PagingMetadataToJSON,
|
|
21
|
-
PagingMetadataToJSONTyped,
|
|
22
|
-
} from './PagingMetadata';
|
|
23
|
-
import type { StoreListResource } from './StoreListResource';
|
|
24
|
-
import {
|
|
25
|
-
StoreListResourceFromJSON,
|
|
26
|
-
StoreListResourceFromJSONTyped,
|
|
27
|
-
StoreListResourceToJSON,
|
|
28
|
-
StoreListResourceToJSONTyped,
|
|
29
|
-
} from './StoreListResource';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface PaginatedStoreListResourceResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface PaginatedStoreListResourceResponse {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<StoreListResource>}
|
|
40
|
-
* @memberof PaginatedStoreListResourceResponse
|
|
41
|
-
*/
|
|
42
|
-
data: Array<StoreListResource>;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {PagingMetadata}
|
|
46
|
-
* @memberof PaginatedStoreListResourceResponse
|
|
47
|
-
*/
|
|
48
|
-
meta: PagingMetadata;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the PaginatedStoreListResourceResponse interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfPaginatedStoreListResourceResponse(value: object): value is PaginatedStoreListResourceResponse {
|
|
55
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
-
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function PaginatedStoreListResourceResponseFromJSON(json: any): PaginatedStoreListResourceResponse {
|
|
61
|
-
return PaginatedStoreListResourceResponseFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function PaginatedStoreListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedStoreListResourceResponse {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': ((json['data'] as Array<any>).map(StoreListResourceFromJSON)),
|
|
71
|
-
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function PaginatedStoreListResourceResponseToJSON(json: any): PaginatedStoreListResourceResponse {
|
|
76
|
-
return PaginatedStoreListResourceResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function PaginatedStoreListResourceResponseToJSONTyped(value?: PaginatedStoreListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'data': ((value['data'] as Array<any>).map(StoreListResourceToJSON)),
|
|
87
|
-
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
@@ -1,162 +0,0 @@
|
|
|
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 StoreFrontendResource
|
|
20
|
-
*/
|
|
21
|
-
export interface StoreFrontendResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof StoreFrontendResource
|
|
26
|
-
*/
|
|
27
|
-
id?: number | null;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof StoreFrontendResource
|
|
32
|
-
*/
|
|
33
|
-
siteId: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof StoreFrontendResource
|
|
38
|
-
*/
|
|
39
|
-
name: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof StoreFrontendResource
|
|
44
|
-
*/
|
|
45
|
-
email: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof StoreFrontendResource
|
|
50
|
-
*/
|
|
51
|
-
phone: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof StoreFrontendResource
|
|
56
|
-
*/
|
|
57
|
-
address?: string | null;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof StoreFrontendResource
|
|
62
|
-
*/
|
|
63
|
-
latitude: number;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {number}
|
|
67
|
-
* @memberof StoreFrontendResource
|
|
68
|
-
*/
|
|
69
|
-
longitude: number;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof StoreFrontendResource
|
|
74
|
-
*/
|
|
75
|
-
tagLine: string;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof StoreFrontendResource
|
|
80
|
-
*/
|
|
81
|
-
openingHours?: string | null;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {object}
|
|
85
|
-
* @memberof StoreFrontendResource
|
|
86
|
-
*/
|
|
87
|
-
specialDates: object;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {object}
|
|
91
|
-
* @memberof StoreFrontendResource
|
|
92
|
-
*/
|
|
93
|
-
suppliers: object;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Check if a given object implements the StoreFrontendResource interface.
|
|
98
|
-
*/
|
|
99
|
-
export function instanceOfStoreFrontendResource(value: object): value is StoreFrontendResource {
|
|
100
|
-
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
101
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
102
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
103
|
-
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
104
|
-
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
105
|
-
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
106
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
107
|
-
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
108
|
-
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
109
|
-
return true;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export function StoreFrontendResourceFromJSON(json: any): StoreFrontendResource {
|
|
113
|
-
return StoreFrontendResourceFromJSONTyped(json, false);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreFrontendResource {
|
|
117
|
-
if (json == null) {
|
|
118
|
-
return json;
|
|
119
|
-
}
|
|
120
|
-
return {
|
|
121
|
-
|
|
122
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
123
|
-
'siteId': json['siteId'],
|
|
124
|
-
'name': json['name'],
|
|
125
|
-
'email': json['email'],
|
|
126
|
-
'phone': json['phone'],
|
|
127
|
-
'address': json['address'] == null ? undefined : json['address'],
|
|
128
|
-
'latitude': json['latitude'],
|
|
129
|
-
'longitude': json['longitude'],
|
|
130
|
-
'tagLine': json['tagLine'],
|
|
131
|
-
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
132
|
-
'specialDates': json['specialDates'],
|
|
133
|
-
'suppliers': json['suppliers'],
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export function StoreFrontendResourceToJSON(json: any): StoreFrontendResource {
|
|
138
|
-
return StoreFrontendResourceToJSONTyped(json, false);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export function StoreFrontendResourceToJSONTyped(value?: StoreFrontendResource | null, ignoreDiscriminator: boolean = false): any {
|
|
142
|
-
if (value == null) {
|
|
143
|
-
return value;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
return {
|
|
147
|
-
|
|
148
|
-
'id': value['id'],
|
|
149
|
-
'siteId': value['siteId'],
|
|
150
|
-
'name': value['name'],
|
|
151
|
-
'email': value['email'],
|
|
152
|
-
'phone': value['phone'],
|
|
153
|
-
'address': value['address'],
|
|
154
|
-
'latitude': value['latitude'],
|
|
155
|
-
'longitude': value['longitude'],
|
|
156
|
-
'tagLine': value['tagLine'],
|
|
157
|
-
'openingHours': value['openingHours'],
|
|
158
|
-
'specialDates': value['specialDates'],
|
|
159
|
-
'suppliers': value['suppliers'],
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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 { StoreFrontendResource } from './StoreFrontendResource';
|
|
17
|
-
import {
|
|
18
|
-
StoreFrontendResourceFromJSON,
|
|
19
|
-
StoreFrontendResourceFromJSONTyped,
|
|
20
|
-
StoreFrontendResourceToJSON,
|
|
21
|
-
StoreFrontendResourceToJSONTyped,
|
|
22
|
-
} from './StoreFrontendResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface StoreFrontendResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface StoreFrontendResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<StoreFrontendResource>}
|
|
33
|
-
* @memberof StoreFrontendResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<StoreFrontendResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the StoreFrontendResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfStoreFrontendResourceArrayResponse(value: object): value is StoreFrontendResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function StoreFrontendResourceArrayResponseFromJSON(json: any): StoreFrontendResourceArrayResponse {
|
|
46
|
-
return StoreFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function StoreFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreFrontendResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(StoreFrontendResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function StoreFrontendResourceArrayResponseToJSON(json: any): StoreFrontendResourceArrayResponse {
|
|
60
|
-
return StoreFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function StoreFrontendResourceArrayResponseToJSONTyped(value?: StoreFrontendResourceArrayResponse | 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(StoreFrontendResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,125 +0,0 @@
|
|
|
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 StoreLabelRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface StoreLabelRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof StoreLabelRequest
|
|
26
|
-
*/
|
|
27
|
-
siteId: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof StoreLabelRequest
|
|
32
|
-
*/
|
|
33
|
-
shortName: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof StoreLabelRequest
|
|
38
|
-
*/
|
|
39
|
-
longName: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof StoreLabelRequest
|
|
44
|
-
*/
|
|
45
|
-
cartButtonText?: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof StoreLabelRequest
|
|
50
|
-
*/
|
|
51
|
-
colour: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof StoreLabelRequest
|
|
56
|
-
*/
|
|
57
|
-
textColour?: string;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {Date}
|
|
61
|
-
* @memberof StoreLabelRequest
|
|
62
|
-
*/
|
|
63
|
-
startDate?: Date;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {Date}
|
|
67
|
-
* @memberof StoreLabelRequest
|
|
68
|
-
*/
|
|
69
|
-
endDate?: Date;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Check if a given object implements the StoreLabelRequest interface.
|
|
74
|
-
*/
|
|
75
|
-
export function instanceOfStoreLabelRequest(value: object): value is StoreLabelRequest {
|
|
76
|
-
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
77
|
-
if (!('shortName' in value) || value['shortName'] === undefined) return false;
|
|
78
|
-
if (!('longName' in value) || value['longName'] === undefined) return false;
|
|
79
|
-
if (!('colour' in value) || value['colour'] === undefined) return false;
|
|
80
|
-
return true;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export function StoreLabelRequestFromJSON(json: any): StoreLabelRequest {
|
|
84
|
-
return StoreLabelRequestFromJSONTyped(json, false);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export function StoreLabelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLabelRequest {
|
|
88
|
-
if (json == null) {
|
|
89
|
-
return json;
|
|
90
|
-
}
|
|
91
|
-
return {
|
|
92
|
-
|
|
93
|
-
'siteId': json['site_id'],
|
|
94
|
-
'shortName': json['short_name'],
|
|
95
|
-
'longName': json['long_name'],
|
|
96
|
-
'cartButtonText': json['cart_button_text'] == null ? undefined : json['cart_button_text'],
|
|
97
|
-
'colour': json['colour'],
|
|
98
|
-
'textColour': json['text_colour'] == null ? undefined : json['text_colour'],
|
|
99
|
-
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
100
|
-
'endDate': json['end_date'] == null ? undefined : (new Date(json['end_date'])),
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export function StoreLabelRequestToJSON(json: any): StoreLabelRequest {
|
|
105
|
-
return StoreLabelRequestToJSONTyped(json, false);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export function StoreLabelRequestToJSONTyped(value?: StoreLabelRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
109
|
-
if (value == null) {
|
|
110
|
-
return value;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
return {
|
|
114
|
-
|
|
115
|
-
'site_id': value['siteId'],
|
|
116
|
-
'short_name': value['shortName'],
|
|
117
|
-
'long_name': value['longName'],
|
|
118
|
-
'cart_button_text': value['cartButtonText'],
|
|
119
|
-
'colour': value['colour'],
|
|
120
|
-
'text_colour': value['textColour'],
|
|
121
|
-
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
122
|
-
'end_date': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
|
|
@@ -1,144 +0,0 @@
|
|
|
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 { SiteLiteResource } from './SiteLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
SiteLiteResourceFromJSON,
|
|
19
|
-
SiteLiteResourceFromJSONTyped,
|
|
20
|
-
SiteLiteResourceToJSON,
|
|
21
|
-
SiteLiteResourceToJSONTyped,
|
|
22
|
-
} from './SiteLiteResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface StoreListResource
|
|
28
|
-
*/
|
|
29
|
-
export interface StoreListResource {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof StoreListResource
|
|
34
|
-
*/
|
|
35
|
-
id?: number | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {SiteLiteResource}
|
|
39
|
-
* @memberof StoreListResource
|
|
40
|
-
*/
|
|
41
|
-
site: SiteLiteResource | null;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof StoreListResource
|
|
46
|
-
*/
|
|
47
|
-
name: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof StoreListResource
|
|
52
|
-
*/
|
|
53
|
-
phone: string;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof StoreListResource
|
|
58
|
-
*/
|
|
59
|
-
longitude: number;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {number}
|
|
63
|
-
* @memberof StoreListResource
|
|
64
|
-
*/
|
|
65
|
-
latitude: number;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof StoreListResource
|
|
70
|
-
*/
|
|
71
|
-
tagLine: string;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof StoreListResource
|
|
76
|
-
*/
|
|
77
|
-
email: string;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof StoreListResource
|
|
82
|
-
*/
|
|
83
|
-
openingHours?: string | null;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Check if a given object implements the StoreListResource interface.
|
|
88
|
-
*/
|
|
89
|
-
export function instanceOfStoreListResource(value: object): value is StoreListResource {
|
|
90
|
-
if (!('site' in value) || value['site'] === undefined) return false;
|
|
91
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
92
|
-
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
93
|
-
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
94
|
-
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
95
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
96
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
97
|
-
return true;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export function StoreListResourceFromJSON(json: any): StoreListResource {
|
|
101
|
-
return StoreListResourceFromJSONTyped(json, false);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreListResource {
|
|
105
|
-
if (json == null) {
|
|
106
|
-
return json;
|
|
107
|
-
}
|
|
108
|
-
return {
|
|
109
|
-
|
|
110
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
111
|
-
'site': SiteLiteResourceFromJSON(json['site']),
|
|
112
|
-
'name': json['name'],
|
|
113
|
-
'phone': json['phone'],
|
|
114
|
-
'longitude': json['longitude'],
|
|
115
|
-
'latitude': json['latitude'],
|
|
116
|
-
'tagLine': json['tag_line'],
|
|
117
|
-
'email': json['email'],
|
|
118
|
-
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export function StoreListResourceToJSON(json: any): StoreListResource {
|
|
123
|
-
return StoreListResourceToJSONTyped(json, false);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export function StoreListResourceToJSONTyped(value?: StoreListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
127
|
-
if (value == null) {
|
|
128
|
-
return value;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
return {
|
|
132
|
-
|
|
133
|
-
'id': value['id'],
|
|
134
|
-
'site': SiteLiteResourceToJSON(value['site']),
|
|
135
|
-
'name': value['name'],
|
|
136
|
-
'phone': value['phone'],
|
|
137
|
-
'longitude': value['longitude'],
|
|
138
|
-
'latitude': value['latitude'],
|
|
139
|
-
'tag_line': value['tagLine'],
|
|
140
|
-
'email': value['email'],
|
|
141
|
-
'opening_hours': value['openingHours'],
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
|