@digital8/lighting-illusions-ts-sdk 0.0.1869 → 0.0.1871
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 +0 -2
- package/README.md +2 -3
- package/dist/models/ExternalApiSyncStatus.d.ts +1 -0
- package/dist/models/ExternalApiSyncStatus.js +2 -1
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +0 -12
- package/dist/models/StoreListResource.js +4 -12
- package/dist/models/StoreResource.d.ts +2 -14
- package/dist/models/StoreResource.js +7 -19
- package/dist/models/StoreSpecialDateResource.js +4 -4
- package/dist/models/StoreStoreRequest.d.ts +0 -12
- package/dist/models/StoreStoreRequest.js +0 -4
- package/dist/models/UpdateStoreRequest.d.ts +0 -12
- package/dist/models/UpdateStoreRequest.js +0 -4
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/docs/StoreListResource.md +0 -4
- package/docs/StoreResource.md +0 -4
- package/docs/StoreStoreRequest.md +0 -4
- package/docs/UpdateStoreRequest.md +0 -4
- package/package.json +1 -1
- package/src/models/ExternalApiSyncStatus.ts +2 -1
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +4 -22
- package/src/models/StoreResource.ts +9 -29
- package/src/models/StoreSpecialDateResource.ts +4 -4
- package/src/models/StoreStoreRequest.ts +0 -16
- package/src/models/UpdateStoreRequest.ts +0 -16
- package/src/models/index.ts +0 -1
- package/dist/models/StoreStockType.d.ts +0 -25
- package/dist/models/StoreStockType.js +0 -51
- package/docs/StoreStockType.md +0 -32
- package/src/models/StoreStockType.ts +0 -53
package/.openapi-generator/FILES
CHANGED
|
@@ -402,7 +402,6 @@ docs/StoreSpecialDateFrontendResource.md
|
|
|
402
402
|
docs/StoreSpecialDateFrontendResourceArrayResponse.md
|
|
403
403
|
docs/StoreSpecialDateResource.md
|
|
404
404
|
docs/StoreSpecialDateResourceArrayResponse.md
|
|
405
|
-
docs/StoreStockType.md
|
|
406
405
|
docs/StoreStoreRequest.md
|
|
407
406
|
docs/StoreStoreRequestAddress.md
|
|
408
407
|
docs/StoreStoreRequestSpecialDatesInner.md
|
|
@@ -864,7 +863,6 @@ src/models/StoreSpecialDateFrontendResource.ts
|
|
|
864
863
|
src/models/StoreSpecialDateFrontendResourceArrayResponse.ts
|
|
865
864
|
src/models/StoreSpecialDateResource.ts
|
|
866
865
|
src/models/StoreSpecialDateResourceArrayResponse.ts
|
|
867
|
-
src/models/StoreStockType.ts
|
|
868
866
|
src/models/StoreStoreRequest.ts
|
|
869
867
|
src/models/StoreStoreRequestAddress.ts
|
|
870
868
|
src/models/StoreStoreRequestSpecialDatesInner.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.1871
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -612,7 +612,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
612
612
|
- [StoreSpecialDateFrontendResourceArrayResponse](docs/StoreSpecialDateFrontendResourceArrayResponse.md)
|
|
613
613
|
- [StoreSpecialDateResource](docs/StoreSpecialDateResource.md)
|
|
614
614
|
- [StoreSpecialDateResourceArrayResponse](docs/StoreSpecialDateResourceArrayResponse.md)
|
|
615
|
-
- [StoreStockType](docs/StoreStockType.md)
|
|
616
615
|
- [StoreStoreRequest](docs/StoreStoreRequest.md)
|
|
617
616
|
- [StoreStoreRequestAddress](docs/StoreStoreRequestAddress.md)
|
|
618
617
|
- [StoreStoreRequestSpecialDatesInner](docs/StoreStoreRequestSpecialDatesInner.md)
|
|
@@ -680,7 +679,7 @@ and is automatically generated by the
|
|
|
680
679
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
681
680
|
|
|
682
681
|
- API version: `1.0.0`
|
|
683
|
-
- Package version: `0.0.
|
|
682
|
+
- Package version: `0.0.1871`
|
|
684
683
|
- Generator version: `7.21.0`
|
|
685
684
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
686
685
|
|
|
@@ -18,6 +18,7 @@ export declare const ExternalApiSyncStatus: {
|
|
|
18
18
|
readonly Syncing: "syncing";
|
|
19
19
|
readonly Synced: "synced";
|
|
20
20
|
readonly UnsyncedChanges: "unsynced_changes";
|
|
21
|
+
readonly Failed: "failed";
|
|
21
22
|
};
|
|
22
23
|
export type ExternalApiSyncStatus = typeof ExternalApiSyncStatus[keyof typeof ExternalApiSyncStatus];
|
|
23
24
|
export declare function instanceOfExternalApiSyncStatus(value: any): boolean;
|
|
@@ -27,7 +27,8 @@ exports.ExternalApiSyncStatus = {
|
|
|
27
27
|
Unsynced: 'unsynced',
|
|
28
28
|
Syncing: 'syncing',
|
|
29
29
|
Synced: 'synced',
|
|
30
|
-
UnsyncedChanges: 'unsynced_changes'
|
|
30
|
+
UnsyncedChanges: 'unsynced_changes',
|
|
31
|
+
Failed: 'failed'
|
|
31
32
|
};
|
|
32
33
|
function instanceOfExternalApiSyncStatus(value) {
|
|
33
34
|
for (var key in exports.ExternalApiSyncStatus) {
|
|
@@ -28,8 +28,6 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
@@ -56,7 +54,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
54
|
'siteId': json['siteId'],
|
|
57
55
|
'name': json['name'],
|
|
58
56
|
'email': json['email'],
|
|
59
|
-
'website': json['website'],
|
|
57
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
60
58
|
'phone': json['phone'],
|
|
61
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
62
60
|
'latitude': json['latitude'],
|
|
@@ -70,18 +70,6 @@ export interface StoreListResource {
|
|
|
70
70
|
* @memberof StoreListResource
|
|
71
71
|
*/
|
|
72
72
|
website?: string | null;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {number}
|
|
76
|
-
* @memberof StoreListResource
|
|
77
|
-
*/
|
|
78
|
-
netsuiteId: number;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {number}
|
|
82
|
-
* @memberof StoreListResource
|
|
83
|
-
*/
|
|
84
|
-
displayNetsuiteId: number;
|
|
85
73
|
/**
|
|
86
74
|
*
|
|
87
75
|
* @type {string}
|
|
@@ -37,10 +37,6 @@ function instanceOfStoreListResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
41
|
-
return false;
|
|
42
|
-
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
43
|
-
return false;
|
|
44
40
|
return true;
|
|
45
41
|
}
|
|
46
42
|
function StoreListResourceFromJSON(json) {
|
|
@@ -57,12 +53,10 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
53
|
'phone': json['phone'],
|
|
58
54
|
'longitude': json['longitude'],
|
|
59
55
|
'latitude': json['latitude'],
|
|
60
|
-
'tagLine': json['
|
|
56
|
+
'tagLine': json['tag_line'],
|
|
61
57
|
'email': json['email'],
|
|
62
58
|
'website': json['website'] == null ? undefined : json['website'],
|
|
63
|
-
'
|
|
64
|
-
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
65
|
-
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
59
|
+
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
66
60
|
};
|
|
67
61
|
}
|
|
68
62
|
function StoreListResourceToJSON(json) {
|
|
@@ -80,11 +74,9 @@ function StoreListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
80
74
|
'phone': value['phone'],
|
|
81
75
|
'longitude': value['longitude'],
|
|
82
76
|
'latitude': value['latitude'],
|
|
83
|
-
'
|
|
77
|
+
'tag_line': value['tagLine'],
|
|
84
78
|
'email': value['email'],
|
|
85
79
|
'website': value['website'],
|
|
86
|
-
'
|
|
87
|
-
'displayNetsuiteId': value['displayNetsuiteId'],
|
|
88
|
-
'openingHours': value['openingHours'],
|
|
80
|
+
'opening_hours': value['openingHours'],
|
|
89
81
|
};
|
|
90
82
|
}
|
|
@@ -60,7 +60,7 @@ export interface StoreResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof StoreResource
|
|
62
62
|
*/
|
|
63
|
-
tagLine
|
|
63
|
+
tagLine?: string | null;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -72,19 +72,7 @@ export interface StoreResource {
|
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof StoreResource
|
|
74
74
|
*/
|
|
75
|
-
website
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {number}
|
|
79
|
-
* @memberof StoreResource
|
|
80
|
-
*/
|
|
81
|
-
netsuiteId: number;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {number}
|
|
85
|
-
* @memberof StoreResource
|
|
86
|
-
*/
|
|
87
|
-
displayNetsuiteId: number;
|
|
75
|
+
website?: string | null;
|
|
88
76
|
/**
|
|
89
77
|
*
|
|
90
78
|
* @type {string}
|
|
@@ -36,16 +36,8 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
40
|
return false;
|
|
43
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
-
return false;
|
|
45
|
-
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
46
|
-
return false;
|
|
47
|
-
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
48
|
-
return false;
|
|
49
41
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
50
42
|
return false;
|
|
51
43
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -68,15 +60,13 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
60
|
'phone': json['phone'],
|
|
69
61
|
'longitude': json['longitude'],
|
|
70
62
|
'latitude': json['latitude'],
|
|
71
|
-
'tagLine': json['
|
|
63
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
72
64
|
'email': json['email'],
|
|
73
|
-
'website': json['website'],
|
|
74
|
-
'
|
|
75
|
-
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
76
|
-
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
65
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
66
|
+
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
77
67
|
'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
|
|
78
68
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
79
|
-
'specialDates': (json['
|
|
69
|
+
'specialDates': (json['special_dates'] == null ? null : json['special_dates'].map(StoreSpecialDateResource_1.StoreSpecialDateResourceFromJSON)),
|
|
80
70
|
};
|
|
81
71
|
}
|
|
82
72
|
function StoreResourceToJSON(json) {
|
|
@@ -94,14 +84,12 @@ function StoreResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
94
84
|
'phone': value['phone'],
|
|
95
85
|
'longitude': value['longitude'],
|
|
96
86
|
'latitude': value['latitude'],
|
|
97
|
-
'
|
|
87
|
+
'tag_line': value['tagLine'],
|
|
98
88
|
'email': value['email'],
|
|
99
89
|
'website': value['website'],
|
|
100
|
-
'
|
|
101
|
-
'displayNetsuiteId': value['displayNetsuiteId'],
|
|
102
|
-
'openingHours': value['openingHours'],
|
|
90
|
+
'opening_hours': value['openingHours'],
|
|
103
91
|
'suppliers': (value['suppliers'] == null ? null : value['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceToJSON)),
|
|
104
92
|
'address': (0, AddressResource_1.AddressResourceToJSON)(value['address']),
|
|
105
|
-
'
|
|
93
|
+
'special_dates': (value['specialDates'] == null ? null : value['specialDates'].map(StoreSpecialDateResource_1.StoreSpecialDateResourceToJSON)),
|
|
106
94
|
};
|
|
107
95
|
}
|
|
@@ -49,8 +49,8 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'hours': json['hours'],
|
|
50
50
|
'date': json['date'],
|
|
51
51
|
'closed': json['closed'],
|
|
52
|
-
'displayStartDate': json['
|
|
53
|
-
'displayEndDate': json['
|
|
52
|
+
'displayStartDate': json['display_start_date'],
|
|
53
|
+
'displayEndDate': json['display_end_date'],
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
function StoreSpecialDateResourceToJSON(json) {
|
|
@@ -67,7 +67,7 @@ function StoreSpecialDateResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
67
|
'hours': value['hours'],
|
|
68
68
|
'date': value['date'],
|
|
69
69
|
'closed': value['closed'],
|
|
70
|
-
'
|
|
71
|
-
'
|
|
70
|
+
'display_start_date': value['displayStartDate'],
|
|
71
|
+
'display_end_date': value['displayEndDate'],
|
|
72
72
|
};
|
|
73
73
|
}
|
|
@@ -71,18 +71,6 @@ export interface StoreStoreRequest {
|
|
|
71
71
|
* @memberof StoreStoreRequest
|
|
72
72
|
*/
|
|
73
73
|
openingHours?: Array<string | null>;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {number}
|
|
77
|
-
* @memberof StoreStoreRequest
|
|
78
|
-
*/
|
|
79
|
-
netsuiteId?: number | null;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {number}
|
|
83
|
-
* @memberof StoreStoreRequest
|
|
84
|
-
*/
|
|
85
|
-
displayNetsuiteId?: number | null;
|
|
86
74
|
/**
|
|
87
75
|
*
|
|
88
76
|
* @type {Array<number>}
|
|
@@ -55,8 +55,6 @@ function StoreStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'email': json['email'] == null ? undefined : json['email'],
|
|
56
56
|
'website': json['website'] == null ? undefined : json['website'],
|
|
57
57
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
58
|
-
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
59
|
-
'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
|
|
60
58
|
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
61
59
|
'specialDates': json['special_dates'] == null ? undefined : (json['special_dates'].map(StoreStoreRequestSpecialDatesInner_1.StoreStoreRequestSpecialDatesInnerFromJSON)),
|
|
62
60
|
'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressFromJSON)(json['address']),
|
|
@@ -80,8 +78,6 @@ function StoreStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
80
78
|
'email': value['email'],
|
|
81
79
|
'website': value['website'],
|
|
82
80
|
'opening_hours': value['openingHours'],
|
|
83
|
-
'netsuite_id': value['netsuiteId'],
|
|
84
|
-
'display_netsuite_id': value['displayNetsuiteId'],
|
|
85
81
|
'supplier_ids': value['supplierIds'],
|
|
86
82
|
'special_dates': value['specialDates'] == null ? undefined : (value['specialDates'].map(StoreStoreRequestSpecialDatesInner_1.StoreStoreRequestSpecialDatesInnerToJSON)),
|
|
87
83
|
'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressToJSON)(value['address']),
|
|
@@ -71,18 +71,6 @@ export interface UpdateStoreRequest {
|
|
|
71
71
|
* @memberof UpdateStoreRequest
|
|
72
72
|
*/
|
|
73
73
|
openingHours?: Array<string | null>;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {number}
|
|
77
|
-
* @memberof UpdateStoreRequest
|
|
78
|
-
*/
|
|
79
|
-
netsuiteId?: number | null;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {number}
|
|
83
|
-
* @memberof UpdateStoreRequest
|
|
84
|
-
*/
|
|
85
|
-
displayNetsuiteId?: number | null;
|
|
86
74
|
/**
|
|
87
75
|
*
|
|
88
76
|
* @type {Array<number>}
|
|
@@ -55,8 +55,6 @@ function UpdateStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'email': json['email'] == null ? undefined : json['email'],
|
|
56
56
|
'website': json['website'] == null ? undefined : json['website'],
|
|
57
57
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
58
|
-
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
59
|
-
'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
|
|
60
58
|
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
61
59
|
'specialDates': json['special_dates'] == null ? undefined : (json['special_dates'].map(UpdateStoreRequestSpecialDatesInner_1.UpdateStoreRequestSpecialDatesInnerFromJSON)),
|
|
62
60
|
'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressFromJSON)(json['address']),
|
|
@@ -80,8 +78,6 @@ function UpdateStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
80
78
|
'email': value['email'],
|
|
81
79
|
'website': value['website'],
|
|
82
80
|
'opening_hours': value['openingHours'],
|
|
83
|
-
'netsuite_id': value['netsuiteId'],
|
|
84
|
-
'display_netsuite_id': value['displayNetsuiteId'],
|
|
85
81
|
'supplier_ids': value['supplierIds'],
|
|
86
82
|
'special_dates': value['specialDates'] == null ? undefined : (value['specialDates'].map(UpdateStoreRequestSpecialDatesInner_1.UpdateStoreRequestSpecialDatesInnerToJSON)),
|
|
87
83
|
'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressToJSON)(value['address']),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -379,7 +379,6 @@ export * from './StoreSpecialDateFrontendResource';
|
|
|
379
379
|
export * from './StoreSpecialDateFrontendResourceArrayResponse';
|
|
380
380
|
export * from './StoreSpecialDateResource';
|
|
381
381
|
export * from './StoreSpecialDateResourceArrayResponse';
|
|
382
|
-
export * from './StoreStockType';
|
|
383
382
|
export * from './StoreStoreRequest';
|
|
384
383
|
export * from './StoreStoreRequestAddress';
|
|
385
384
|
export * from './StoreStoreRequestSpecialDatesInner';
|
package/dist/models/index.js
CHANGED
|
@@ -397,7 +397,6 @@ __exportStar(require("./StoreSpecialDateFrontendResource"), exports);
|
|
|
397
397
|
__exportStar(require("./StoreSpecialDateFrontendResourceArrayResponse"), exports);
|
|
398
398
|
__exportStar(require("./StoreSpecialDateResource"), exports);
|
|
399
399
|
__exportStar(require("./StoreSpecialDateResourceArrayResponse"), exports);
|
|
400
|
-
__exportStar(require("./StoreStockType"), exports);
|
|
401
400
|
__exportStar(require("./StoreStoreRequest"), exports);
|
|
402
401
|
__exportStar(require("./StoreStoreRequestAddress"), exports);
|
|
403
402
|
__exportStar(require("./StoreStoreRequestSpecialDatesInner"), exports);
|
|
@@ -15,8 +15,6 @@ Name | Type
|
|
|
15
15
|
`tagLine` | string
|
|
16
16
|
`email` | string
|
|
17
17
|
`website` | string
|
|
18
|
-
`netsuiteId` | number
|
|
19
|
-
`displayNetsuiteId` | number
|
|
20
18
|
`openingHours` | string
|
|
21
19
|
|
|
22
20
|
## Example
|
|
@@ -35,8 +33,6 @@ const example = {
|
|
|
35
33
|
"tagLine": null,
|
|
36
34
|
"email": null,
|
|
37
35
|
"website": null,
|
|
38
|
-
"netsuiteId": null,
|
|
39
|
-
"displayNetsuiteId": null,
|
|
40
36
|
"openingHours": null,
|
|
41
37
|
} satisfies StoreListResource
|
|
42
38
|
|
package/docs/StoreResource.md
CHANGED
|
@@ -15,8 +15,6 @@ Name | Type
|
|
|
15
15
|
`tagLine` | string
|
|
16
16
|
`email` | string
|
|
17
17
|
`website` | string
|
|
18
|
-
`netsuiteId` | number
|
|
19
|
-
`displayNetsuiteId` | number
|
|
20
18
|
`openingHours` | string
|
|
21
19
|
`suppliers` | [Array<SupplierLiteResource>](SupplierLiteResource.md)
|
|
22
20
|
`address` | [AddressResource](AddressResource.md)
|
|
@@ -38,8 +36,6 @@ const example = {
|
|
|
38
36
|
"tagLine": null,
|
|
39
37
|
"email": null,
|
|
40
38
|
"website": null,
|
|
41
|
-
"netsuiteId": null,
|
|
42
|
-
"displayNetsuiteId": null,
|
|
43
39
|
"openingHours": null,
|
|
44
40
|
"suppliers": null,
|
|
45
41
|
"address": null,
|
|
@@ -15,8 +15,6 @@ Name | Type
|
|
|
15
15
|
`email` | string
|
|
16
16
|
`website` | string
|
|
17
17
|
`openingHours` | Array<string | null>
|
|
18
|
-
`netsuiteId` | number
|
|
19
|
-
`displayNetsuiteId` | number
|
|
20
18
|
`supplierIds` | Array<number>
|
|
21
19
|
`specialDates` | [Array<StoreStoreRequestSpecialDatesInner>](StoreStoreRequestSpecialDatesInner.md)
|
|
22
20
|
`address` | [StoreStoreRequestAddress](StoreStoreRequestAddress.md)
|
|
@@ -37,8 +35,6 @@ const example = {
|
|
|
37
35
|
"email": null,
|
|
38
36
|
"website": null,
|
|
39
37
|
"openingHours": null,
|
|
40
|
-
"netsuiteId": null,
|
|
41
|
-
"displayNetsuiteId": null,
|
|
42
38
|
"supplierIds": null,
|
|
43
39
|
"specialDates": null,
|
|
44
40
|
"address": null,
|
|
@@ -15,8 +15,6 @@ Name | Type
|
|
|
15
15
|
`email` | string
|
|
16
16
|
`website` | string
|
|
17
17
|
`openingHours` | Array<string | null>
|
|
18
|
-
`netsuiteId` | number
|
|
19
|
-
`displayNetsuiteId` | number
|
|
20
18
|
`supplierIds` | Array<number>
|
|
21
19
|
`specialDates` | [Array<UpdateStoreRequestSpecialDatesInner>](UpdateStoreRequestSpecialDatesInner.md)
|
|
22
20
|
`address` | [StoreStoreRequestAddress](StoreStoreRequestAddress.md)
|
|
@@ -37,8 +35,6 @@ const example = {
|
|
|
37
35
|
"email": null,
|
|
38
36
|
"website": null,
|
|
39
37
|
"openingHours": null,
|
|
40
|
-
"netsuiteId": null,
|
|
41
|
-
"displayNetsuiteId": null,
|
|
42
38
|
"supplierIds": null,
|
|
43
39
|
"specialDates": null,
|
|
44
40
|
"address": null,
|
package/package.json
CHANGED
|
@@ -21,7 +21,8 @@ export const ExternalApiSyncStatus = {
|
|
|
21
21
|
Unsynced: 'unsynced',
|
|
22
22
|
Syncing: 'syncing',
|
|
23
23
|
Synced: 'synced',
|
|
24
|
-
UnsyncedChanges: 'unsynced_changes'
|
|
24
|
+
UnsyncedChanges: 'unsynced_changes',
|
|
25
|
+
Failed: 'failed'
|
|
25
26
|
} as const;
|
|
26
27
|
export type ExternalApiSyncStatus = typeof ExternalApiSyncStatus[keyof typeof ExternalApiSyncStatus];
|
|
27
28
|
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
110
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -130,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
130
129
|
'siteId': json['siteId'],
|
|
131
130
|
'name': json['name'],
|
|
132
131
|
'email': json['email'],
|
|
133
|
-
'website': json['website'],
|
|
132
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
134
133
|
'phone': json['phone'],
|
|
135
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
136
135
|
'latitude': json['latitude'],
|
|
@@ -81,18 +81,6 @@ export interface StoreListResource {
|
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
83
|
website?: string | null;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {number}
|
|
87
|
-
* @memberof StoreListResource
|
|
88
|
-
*/
|
|
89
|
-
netsuiteId: number;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {number}
|
|
93
|
-
* @memberof StoreListResource
|
|
94
|
-
*/
|
|
95
|
-
displayNetsuiteId: number;
|
|
96
84
|
/**
|
|
97
85
|
*
|
|
98
86
|
* @type {string}
|
|
@@ -112,8 +100,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
112
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
101
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
114
102
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
115
|
-
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
116
|
-
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
117
103
|
return true;
|
|
118
104
|
}
|
|
119
105
|
|
|
@@ -133,12 +119,10 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
133
119
|
'phone': json['phone'],
|
|
134
120
|
'longitude': json['longitude'],
|
|
135
121
|
'latitude': json['latitude'],
|
|
136
|
-
'tagLine': json['
|
|
122
|
+
'tagLine': json['tag_line'],
|
|
137
123
|
'email': json['email'],
|
|
138
124
|
'website': json['website'] == null ? undefined : json['website'],
|
|
139
|
-
'
|
|
140
|
-
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
141
|
-
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
125
|
+
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
142
126
|
};
|
|
143
127
|
}
|
|
144
128
|
|
|
@@ -159,12 +143,10 @@ export function StoreListResourceToJSONTyped(value?: StoreListResource | null, i
|
|
|
159
143
|
'phone': value['phone'],
|
|
160
144
|
'longitude': value['longitude'],
|
|
161
145
|
'latitude': value['latitude'],
|
|
162
|
-
'
|
|
146
|
+
'tag_line': value['tagLine'],
|
|
163
147
|
'email': value['email'],
|
|
164
148
|
'website': value['website'],
|
|
165
|
-
'
|
|
166
|
-
'displayNetsuiteId': value['displayNetsuiteId'],
|
|
167
|
-
'openingHours': value['openingHours'],
|
|
149
|
+
'opening_hours': value['openingHours'],
|
|
168
150
|
};
|
|
169
151
|
}
|
|
170
152
|
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine?: string | null;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -101,19 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @type {number}
|
|
108
|
-
* @memberof StoreResource
|
|
109
|
-
*/
|
|
110
|
-
netsuiteId: number;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @type {number}
|
|
114
|
-
* @memberof StoreResource
|
|
115
|
-
*/
|
|
116
|
-
displayNetsuiteId: number;
|
|
104
|
+
website?: string | null;
|
|
117
105
|
/**
|
|
118
106
|
*
|
|
119
107
|
* @type {string}
|
|
@@ -149,11 +137,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
149
137
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
150
138
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
139
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
153
140
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
154
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
155
|
-
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
156
|
-
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
157
141
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
158
142
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
159
143
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
@@ -176,15 +160,13 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
176
160
|
'phone': json['phone'],
|
|
177
161
|
'longitude': json['longitude'],
|
|
178
162
|
'latitude': json['latitude'],
|
|
179
|
-
'tagLine': json['
|
|
163
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
180
164
|
'email': json['email'],
|
|
181
|
-
'website': json['website'],
|
|
182
|
-
'
|
|
183
|
-
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
184
|
-
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
165
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
166
|
+
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
185
167
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
|
186
168
|
'address': AddressResourceFromJSON(json['address']),
|
|
187
|
-
'specialDates': (json['
|
|
169
|
+
'specialDates': (json['special_dates'] == null ? null : (json['special_dates'] as Array<any>).map(StoreSpecialDateResourceFromJSON)),
|
|
188
170
|
};
|
|
189
171
|
}
|
|
190
172
|
|
|
@@ -205,15 +187,13 @@ export function StoreResourceToJSONTyped(value?: StoreResource | null, ignoreDis
|
|
|
205
187
|
'phone': value['phone'],
|
|
206
188
|
'longitude': value['longitude'],
|
|
207
189
|
'latitude': value['latitude'],
|
|
208
|
-
'
|
|
190
|
+
'tag_line': value['tagLine'],
|
|
209
191
|
'email': value['email'],
|
|
210
192
|
'website': value['website'],
|
|
211
|
-
'
|
|
212
|
-
'displayNetsuiteId': value['displayNetsuiteId'],
|
|
213
|
-
'openingHours': value['openingHours'],
|
|
193
|
+
'opening_hours': value['openingHours'],
|
|
214
194
|
'suppliers': (value['suppliers'] == null ? null : (value['suppliers'] as Array<any>).map(SupplierLiteResourceToJSON)),
|
|
215
195
|
'address': AddressResourceToJSON(value['address']),
|
|
216
|
-
'
|
|
196
|
+
'special_dates': (value['specialDates'] == null ? null : (value['specialDates'] as Array<any>).map(StoreSpecialDateResourceToJSON)),
|
|
217
197
|
};
|
|
218
198
|
}
|
|
219
199
|
|
|
@@ -91,8 +91,8 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
91
91
|
'hours': json['hours'],
|
|
92
92
|
'date': json['date'],
|
|
93
93
|
'closed': json['closed'],
|
|
94
|
-
'displayStartDate': json['
|
|
95
|
-
'displayEndDate': json['
|
|
94
|
+
'displayStartDate': json['display_start_date'],
|
|
95
|
+
'displayEndDate': json['display_end_date'],
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -112,8 +112,8 @@ export function StoreSpecialDateResourceToJSONTyped(value?: StoreSpecialDateReso
|
|
|
112
112
|
'hours': value['hours'],
|
|
113
113
|
'date': value['date'],
|
|
114
114
|
'closed': value['closed'],
|
|
115
|
-
'
|
|
116
|
-
'
|
|
115
|
+
'display_start_date': value['displayStartDate'],
|
|
116
|
+
'display_end_date': value['displayEndDate'],
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -88,18 +88,6 @@ export interface StoreStoreRequest {
|
|
|
88
88
|
* @memberof StoreStoreRequest
|
|
89
89
|
*/
|
|
90
90
|
openingHours?: Array<string | null>;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {number}
|
|
94
|
-
* @memberof StoreStoreRequest
|
|
95
|
-
*/
|
|
96
|
-
netsuiteId?: number | null;
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {number}
|
|
100
|
-
* @memberof StoreStoreRequest
|
|
101
|
-
*/
|
|
102
|
-
displayNetsuiteId?: number | null;
|
|
103
91
|
/**
|
|
104
92
|
*
|
|
105
93
|
* @type {Array<number>}
|
|
@@ -152,8 +140,6 @@ export function StoreStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
152
140
|
'email': json['email'] == null ? undefined : json['email'],
|
|
153
141
|
'website': json['website'] == null ? undefined : json['website'],
|
|
154
142
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
155
|
-
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
156
|
-
'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
|
|
157
143
|
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
158
144
|
'specialDates': json['special_dates'] == null ? undefined : ((json['special_dates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerFromJSON)),
|
|
159
145
|
'address': StoreStoreRequestAddressFromJSON(json['address']),
|
|
@@ -180,8 +166,6 @@ export function StoreStoreRequestToJSONTyped(value?: StoreStoreRequest | null, i
|
|
|
180
166
|
'email': value['email'],
|
|
181
167
|
'website': value['website'],
|
|
182
168
|
'opening_hours': value['openingHours'],
|
|
183
|
-
'netsuite_id': value['netsuiteId'],
|
|
184
|
-
'display_netsuite_id': value['displayNetsuiteId'],
|
|
185
169
|
'supplier_ids': value['supplierIds'],
|
|
186
170
|
'special_dates': value['specialDates'] == null ? undefined : ((value['specialDates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerToJSON)),
|
|
187
171
|
'address': StoreStoreRequestAddressToJSON(value['address']),
|
|
@@ -88,18 +88,6 @@ export interface UpdateStoreRequest {
|
|
|
88
88
|
* @memberof UpdateStoreRequest
|
|
89
89
|
*/
|
|
90
90
|
openingHours?: Array<string | null>;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {number}
|
|
94
|
-
* @memberof UpdateStoreRequest
|
|
95
|
-
*/
|
|
96
|
-
netsuiteId?: number | null;
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {number}
|
|
100
|
-
* @memberof UpdateStoreRequest
|
|
101
|
-
*/
|
|
102
|
-
displayNetsuiteId?: number | null;
|
|
103
91
|
/**
|
|
104
92
|
*
|
|
105
93
|
* @type {Array<number>}
|
|
@@ -152,8 +140,6 @@ export function UpdateStoreRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
152
140
|
'email': json['email'] == null ? undefined : json['email'],
|
|
153
141
|
'website': json['website'] == null ? undefined : json['website'],
|
|
154
142
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
155
|
-
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
156
|
-
'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
|
|
157
143
|
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
158
144
|
'specialDates': json['special_dates'] == null ? undefined : ((json['special_dates'] as Array<any>).map(UpdateStoreRequestSpecialDatesInnerFromJSON)),
|
|
159
145
|
'address': StoreStoreRequestAddressFromJSON(json['address']),
|
|
@@ -180,8 +166,6 @@ export function UpdateStoreRequestToJSONTyped(value?: UpdateStoreRequest | null,
|
|
|
180
166
|
'email': value['email'],
|
|
181
167
|
'website': value['website'],
|
|
182
168
|
'opening_hours': value['openingHours'],
|
|
183
|
-
'netsuite_id': value['netsuiteId'],
|
|
184
|
-
'display_netsuite_id': value['displayNetsuiteId'],
|
|
185
169
|
'supplier_ids': value['supplierIds'],
|
|
186
170
|
'special_dates': value['specialDates'] == null ? undefined : ((value['specialDates'] as Array<any>).map(UpdateStoreRequestSpecialDatesInnerToJSON)),
|
|
187
171
|
'address': StoreStoreRequestAddressToJSON(value['address']),
|
package/src/models/index.ts
CHANGED
|
@@ -381,7 +381,6 @@ export * from './StoreSpecialDateFrontendResource';
|
|
|
381
381
|
export * from './StoreSpecialDateFrontendResourceArrayResponse';
|
|
382
382
|
export * from './StoreSpecialDateResource';
|
|
383
383
|
export * from './StoreSpecialDateResourceArrayResponse';
|
|
384
|
-
export * from './StoreStockType';
|
|
385
384
|
export * from './StoreStoreRequest';
|
|
386
385
|
export * from './StoreStoreRequestAddress';
|
|
387
386
|
export * from './StoreStoreRequestSpecialDatesInner';
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
*/
|
|
16
|
-
export declare const StoreStockType: {
|
|
17
|
-
readonly Display: "display";
|
|
18
|
-
readonly Available: "available";
|
|
19
|
-
};
|
|
20
|
-
export type StoreStockType = typeof StoreStockType[keyof typeof StoreStockType];
|
|
21
|
-
export declare function instanceOfStoreStockType(value: any): boolean;
|
|
22
|
-
export declare function StoreStockTypeFromJSON(json: any): StoreStockType;
|
|
23
|
-
export declare function StoreStockTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreStockType;
|
|
24
|
-
export declare function StoreStockTypeToJSON(value?: StoreStockType | null): any;
|
|
25
|
-
export declare function StoreStockTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): StoreStockType;
|
|
@@ -1,51 +0,0 @@
|
|
|
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.StoreStockType = void 0;
|
|
17
|
-
exports.instanceOfStoreStockType = instanceOfStoreStockType;
|
|
18
|
-
exports.StoreStockTypeFromJSON = StoreStockTypeFromJSON;
|
|
19
|
-
exports.StoreStockTypeFromJSONTyped = StoreStockTypeFromJSONTyped;
|
|
20
|
-
exports.StoreStockTypeToJSON = StoreStockTypeToJSON;
|
|
21
|
-
exports.StoreStockTypeToJSONTyped = StoreStockTypeToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.StoreStockType = {
|
|
27
|
-
Display: 'display',
|
|
28
|
-
Available: 'available'
|
|
29
|
-
};
|
|
30
|
-
function instanceOfStoreStockType(value) {
|
|
31
|
-
for (var key in exports.StoreStockType) {
|
|
32
|
-
if (Object.prototype.hasOwnProperty.call(exports.StoreStockType, key)) {
|
|
33
|
-
if (exports.StoreStockType[key] === value) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
function StoreStockTypeFromJSON(json) {
|
|
41
|
-
return StoreStockTypeFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function StoreStockTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
function StoreStockTypeToJSON(value) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
function StoreStockTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
package/docs/StoreStockType.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# StoreStockType
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import type { StoreStockType } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
-
|
|
15
|
-
// TODO: Update the object below with actual values
|
|
16
|
-
const example = {
|
|
17
|
-
} satisfies StoreStockType
|
|
18
|
-
|
|
19
|
-
console.log(example)
|
|
20
|
-
|
|
21
|
-
// Convert the instance to a JSON string
|
|
22
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
-
console.log(exampleJSON)
|
|
24
|
-
|
|
25
|
-
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as StoreStockType
|
|
27
|
-
console.log(exampleParsed)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
-
|
|
32
|
-
|
|
@@ -1,53 +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
|
-
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export const StoreStockType = {
|
|
21
|
-
Display: 'display',
|
|
22
|
-
Available: 'available'
|
|
23
|
-
} as const;
|
|
24
|
-
export type StoreStockType = typeof StoreStockType[keyof typeof StoreStockType];
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export function instanceOfStoreStockType(value: any): boolean {
|
|
28
|
-
for (const key in StoreStockType) {
|
|
29
|
-
if (Object.prototype.hasOwnProperty.call(StoreStockType, key)) {
|
|
30
|
-
if (StoreStockType[key as keyof typeof StoreStockType] === value) {
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function StoreStockTypeFromJSON(json: any): StoreStockType {
|
|
39
|
-
return StoreStockTypeFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function StoreStockTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreStockType {
|
|
43
|
-
return json as StoreStockType;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function StoreStockTypeToJSON(value?: StoreStockType | null): any {
|
|
47
|
-
return value as any;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function StoreStockTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): StoreStockType {
|
|
51
|
-
return value as StoreStockType;
|
|
52
|
-
}
|
|
53
|
-
|