@digital8/lighting-illusions-ts-sdk 0.0.2558 → 0.0.2559
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 +2 -0
- package/README.md +2 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreLocationResource.d.ts +38 -0
- package/dist/models/StoreLocationResource.js +55 -0
- package/dist/models/StoreLocationResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreLocationResourceArrayResponse.js +50 -0
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/OrderFulfillmentResource.ts +2 -3
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreLocationResource.ts +75 -0
- package/src/models/StoreLocationResourceArrayResponse.ts +73 -0
- package/src/models/StoreResource.ts +3 -2
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -603,6 +603,8 @@ src/models/StoreListResource.ts
|
|
|
603
603
|
src/models/StoreListResourceArrayResponse.ts
|
|
604
604
|
src/models/StoreLiteResource.ts
|
|
605
605
|
src/models/StoreLiteResourceArrayResponse.ts
|
|
606
|
+
src/models/StoreLocationResource.ts
|
|
607
|
+
src/models/StoreLocationResourceArrayResponse.ts
|
|
606
608
|
src/models/StoreResource.ts
|
|
607
609
|
src/models/StoreResourceArrayResponse.ts
|
|
608
610
|
src/models/StoreSpecialDateFrontendResource.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.2559
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/lighting-illusions-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/lighting-illusions-ts-sdk@0.0.2559 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -22,6 +22,8 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
28
|
return false;
|
|
27
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -44,7 +46,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
46
|
return json;
|
|
45
47
|
}
|
|
46
48
|
return {
|
|
47
|
-
'company': json['company']
|
|
49
|
+
'company': json['company'],
|
|
48
50
|
'line1': json['line1'],
|
|
49
51
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
50
52
|
'postcode': json['postcode'],
|
|
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -33,8 +33,6 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
-
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
|
|
37
|
-
return false;
|
|
38
36
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
39
37
|
return false;
|
|
40
38
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
@@ -56,7 +54,7 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
54
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
57
55
|
'trackingNumber': json['trackingNumber'],
|
|
58
56
|
'trackingUrl': json['trackingUrl'],
|
|
59
|
-
'trackingCompany': json['trackingCompany'],
|
|
57
|
+
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
60
58
|
'docnum': json['docnum'],
|
|
61
59
|
'netsuiteId': json['netsuiteId'],
|
|
62
60
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -37,6 +37,8 @@ function instanceOfStoreListResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -59,7 +61,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
61
|
'latitude': json['latitude'],
|
|
60
62
|
'tagLine': json['tagLine'],
|
|
61
63
|
'email': json['email'],
|
|
62
|
-
'website': json['website']
|
|
64
|
+
'website': json['website'],
|
|
63
65
|
'netsuiteId': json['netsuiteId'],
|
|
64
66
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
65
67
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -0,0 +1,38 @@
|
|
|
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 StoreLocationResource
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreLocationResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof StoreLocationResource
|
|
22
|
+
*/
|
|
23
|
+
latitude: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof StoreLocationResource
|
|
28
|
+
*/
|
|
29
|
+
longitude: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the StoreLocationResource interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfStoreLocationResource(value: object): value is StoreLocationResource;
|
|
35
|
+
export declare function StoreLocationResourceFromJSON(json: any): StoreLocationResource;
|
|
36
|
+
export declare function StoreLocationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResource;
|
|
37
|
+
export declare function StoreLocationResourceToJSON(json: any): StoreLocationResource;
|
|
38
|
+
export declare function StoreLocationResourceToJSONTyped(value?: StoreLocationResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfStoreLocationResource = instanceOfStoreLocationResource;
|
|
17
|
+
exports.StoreLocationResourceFromJSON = StoreLocationResourceFromJSON;
|
|
18
|
+
exports.StoreLocationResourceFromJSONTyped = StoreLocationResourceFromJSONTyped;
|
|
19
|
+
exports.StoreLocationResourceToJSON = StoreLocationResourceToJSON;
|
|
20
|
+
exports.StoreLocationResourceToJSONTyped = StoreLocationResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreLocationResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreLocationResource(value) {
|
|
25
|
+
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function StoreLocationResourceFromJSON(json) {
|
|
32
|
+
return StoreLocationResourceFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function StoreLocationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'latitude': json['latitude'],
|
|
40
|
+
'longitude': json['longitude'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function StoreLocationResourceToJSON(json) {
|
|
44
|
+
return StoreLocationResourceToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function StoreLocationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'latitude': value['latitude'],
|
|
53
|
+
'longitude': value['longitude'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { StoreLocationResource } from './StoreLocationResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StoreLocationResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface StoreLocationResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<StoreLocationResource>}
|
|
22
|
+
* @memberof StoreLocationResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<StoreLocationResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the StoreLocationResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfStoreLocationResourceArrayResponse(value: object): value is StoreLocationResourceArrayResponse;
|
|
30
|
+
export declare function StoreLocationResourceArrayResponseFromJSON(json: any): StoreLocationResourceArrayResponse;
|
|
31
|
+
export declare function StoreLocationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResourceArrayResponse;
|
|
32
|
+
export declare function StoreLocationResourceArrayResponseToJSON(json: any): StoreLocationResourceArrayResponse;
|
|
33
|
+
export declare function StoreLocationResourceArrayResponseToJSONTyped(value?: StoreLocationResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfStoreLocationResourceArrayResponse = instanceOfStoreLocationResourceArrayResponse;
|
|
17
|
+
exports.StoreLocationResourceArrayResponseFromJSON = StoreLocationResourceArrayResponseFromJSON;
|
|
18
|
+
exports.StoreLocationResourceArrayResponseFromJSONTyped = StoreLocationResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.StoreLocationResourceArrayResponseToJSON = StoreLocationResourceArrayResponseToJSON;
|
|
20
|
+
exports.StoreLocationResourceArrayResponseToJSONTyped = StoreLocationResourceArrayResponseToJSONTyped;
|
|
21
|
+
var StoreLocationResource_1 = require("./StoreLocationResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the StoreLocationResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfStoreLocationResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function StoreLocationResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return StoreLocationResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function StoreLocationResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(StoreLocationResource_1.StoreLocationResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function StoreLocationResourceArrayResponseToJSON(json) {
|
|
40
|
+
return StoreLocationResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function StoreLocationResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(StoreLocationResource_1.StoreLocationResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -36,6 +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;
|
|
39
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
40
42
|
return false;
|
|
41
43
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -66,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
68
|
'phone': json['phone'],
|
|
67
69
|
'longitude': json['longitude'],
|
|
68
70
|
'latitude': json['latitude'],
|
|
69
|
-
'tagLine': json['tagLine']
|
|
71
|
+
'tagLine': json['tagLine'],
|
|
70
72
|
'email': json['email'],
|
|
71
73
|
'website': json['website'],
|
|
72
74
|
'netsuiteId': json['netsuiteId'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -564,6 +564,8 @@ export * from './StoreListResource';
|
|
|
564
564
|
export * from './StoreListResourceArrayResponse';
|
|
565
565
|
export * from './StoreLiteResource';
|
|
566
566
|
export * from './StoreLiteResourceArrayResponse';
|
|
567
|
+
export * from './StoreLocationResource';
|
|
568
|
+
export * from './StoreLocationResourceArrayResponse';
|
|
567
569
|
export * from './StoreResource';
|
|
568
570
|
export * from './StoreResourceArrayResponse';
|
|
569
571
|
export * from './StoreSpecialDateFrontendResource';
|
package/dist/models/index.js
CHANGED
|
@@ -582,6 +582,8 @@ __exportStar(require("./StoreListResource"), exports);
|
|
|
582
582
|
__exportStar(require("./StoreListResourceArrayResponse"), exports);
|
|
583
583
|
__exportStar(require("./StoreLiteResource"), exports);
|
|
584
584
|
__exportStar(require("./StoreLiteResourceArrayResponse"), exports);
|
|
585
|
+
__exportStar(require("./StoreLocationResource"), exports);
|
|
586
|
+
__exportStar(require("./StoreLocationResourceArrayResponse"), exports);
|
|
585
587
|
__exportStar(require("./StoreResource"), exports);
|
|
586
588
|
__exportStar(require("./StoreResourceArrayResponse"), exports);
|
|
587
589
|
__exportStar(require("./StoreSpecialDateFrontendResource"), exports);
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -73,6 +73,7 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
76
77
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
77
78
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
78
79
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -92,7 +93,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
92
93
|
}
|
|
93
94
|
return {
|
|
94
95
|
|
|
95
|
-
'company': json['company']
|
|
96
|
+
'company': json['company'],
|
|
96
97
|
'line1': json['line1'],
|
|
97
98
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
98
99
|
'postcode': json['postcode'],
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -62,7 +62,7 @@ export interface OrderFulfillmentResource {
|
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof OrderFulfillmentResource
|
|
64
64
|
*/
|
|
65
|
-
trackingCompany
|
|
65
|
+
trackingCompany?: string | null;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
@@ -104,7 +104,6 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
|
|
|
104
104
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
|
|
105
105
|
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
|
|
106
106
|
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
|
|
107
|
-
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
|
|
108
107
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
109
108
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
110
109
|
if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
|
|
@@ -126,7 +125,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
126
125
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
127
126
|
'trackingNumber': json['trackingNumber'],
|
|
128
127
|
'trackingUrl': json['trackingUrl'],
|
|
129
|
-
'trackingCompany': json['trackingCompany'],
|
|
128
|
+
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
130
129
|
'docnum': json['docnum'],
|
|
131
130
|
'netsuiteId': json['netsuiteId'],
|
|
132
131
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website: string;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {number}
|
|
@@ -112,6 +112,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
113
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
114
114
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
115
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
115
116
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
116
117
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
117
118
|
return true;
|
|
@@ -135,7 +136,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
135
136
|
'latitude': json['latitude'],
|
|
136
137
|
'tagLine': json['tagLine'],
|
|
137
138
|
'email': json['email'],
|
|
138
|
-
'website': json['website']
|
|
139
|
+
'website': json['website'],
|
|
139
140
|
'netsuiteId': json['netsuiteId'],
|
|
140
141
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
141
142
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -0,0 +1,75 @@
|
|
|
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 StoreLocationResource
|
|
20
|
+
*/
|
|
21
|
+
export interface StoreLocationResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof StoreLocationResource
|
|
26
|
+
*/
|
|
27
|
+
latitude: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof StoreLocationResource
|
|
32
|
+
*/
|
|
33
|
+
longitude: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the StoreLocationResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfStoreLocationResource(value: object): value is StoreLocationResource {
|
|
40
|
+
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
41
|
+
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function StoreLocationResourceFromJSON(json: any): StoreLocationResource {
|
|
46
|
+
return StoreLocationResourceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function StoreLocationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResource {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'latitude': json['latitude'],
|
|
56
|
+
'longitude': json['longitude'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function StoreLocationResourceToJSON(json: any): StoreLocationResource {
|
|
61
|
+
return StoreLocationResourceToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function StoreLocationResourceToJSONTyped(value?: StoreLocationResource | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'latitude': value['latitude'],
|
|
72
|
+
'longitude': value['longitude'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { StoreLocationResource } from './StoreLocationResource';
|
|
17
|
+
import {
|
|
18
|
+
StoreLocationResourceFromJSON,
|
|
19
|
+
StoreLocationResourceFromJSONTyped,
|
|
20
|
+
StoreLocationResourceToJSON,
|
|
21
|
+
StoreLocationResourceToJSONTyped,
|
|
22
|
+
} from './StoreLocationResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface StoreLocationResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface StoreLocationResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<StoreLocationResource>}
|
|
33
|
+
* @memberof StoreLocationResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<StoreLocationResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the StoreLocationResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfStoreLocationResourceArrayResponse(value: object): value is StoreLocationResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function StoreLocationResourceArrayResponseFromJSON(json: any): StoreLocationResourceArrayResponse {
|
|
46
|
+
return StoreLocationResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function StoreLocationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(StoreLocationResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function StoreLocationResourceArrayResponseToJSON(json: any): StoreLocationResourceArrayResponse {
|
|
60
|
+
return StoreLocationResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function StoreLocationResourceArrayResponseToJSONTyped(value?: StoreLocationResourceArrayResponse | 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(StoreLocationResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine: string;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -149,6 +149,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
149
149
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
150
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
152
153
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
153
154
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
154
155
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -175,7 +176,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
175
176
|
'phone': json['phone'],
|
|
176
177
|
'longitude': json['longitude'],
|
|
177
178
|
'latitude': json['latitude'],
|
|
178
|
-
'tagLine': json['tagLine']
|
|
179
|
+
'tagLine': json['tagLine'],
|
|
179
180
|
'email': json['email'],
|
|
180
181
|
'website': json['website'],
|
|
181
182
|
'netsuiteId': json['netsuiteId'],
|
package/src/models/index.ts
CHANGED
|
@@ -566,6 +566,8 @@ export * from './StoreListResource';
|
|
|
566
566
|
export * from './StoreListResourceArrayResponse';
|
|
567
567
|
export * from './StoreLiteResource';
|
|
568
568
|
export * from './StoreLiteResourceArrayResponse';
|
|
569
|
+
export * from './StoreLocationResource';
|
|
570
|
+
export * from './StoreLocationResourceArrayResponse';
|
|
569
571
|
export * from './StoreResource';
|
|
570
572
|
export * from './StoreResourceArrayResponse';
|
|
571
573
|
export * from './StoreSpecialDateFrontendResource';
|