@digital8/lighting-illusions-ts-sdk 0.0.2733 → 0.0.2735
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/README.md +2 -2
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +3 -3
- package/dist/models/AdminOrderResource.d.ts +0 -6
- package/dist/models/AdminOrderResource.js +0 -4
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AdminOrderResource.ts +0 -9
- package/src/models/StoreFrontendResource.ts +2 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
## @digital8/lighting-illusions-ts-sdk@0.0.2735
|
|
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.2735 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -32,13 +32,13 @@ export interface AddressFrontendResource {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof AddressFrontendResource
|
|
34
34
|
*/
|
|
35
|
-
addresseeName
|
|
35
|
+
addresseeName: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof AddressFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
company
|
|
41
|
+
company?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -22,7 +22,7 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
28
|
return false;
|
|
@@ -50,8 +50,8 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
return {
|
|
51
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
52
52
|
'type': json['type'] == null ? undefined : json['type'],
|
|
53
|
-
'addresseeName': json['addresseeName']
|
|
54
|
-
'company': json['company'],
|
|
53
|
+
'addresseeName': json['addresseeName'],
|
|
54
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
55
55
|
'line1': json['line1'],
|
|
56
56
|
'line2': json['line2'],
|
|
57
57
|
'postcode': json['postcode'],
|
|
@@ -38,8 +38,6 @@ function instanceOfAdminOrderResource(value) {
|
|
|
38
38
|
return false;
|
|
39
39
|
if (!('source' in value) || value['source'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
-
if (!('isExpressCheckout' in value) || value['isExpressCheckout'] === undefined)
|
|
42
|
-
return false;
|
|
43
41
|
if (!('shippingType' in value) || value['shippingType'] === undefined)
|
|
44
42
|
return false;
|
|
45
43
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
|
|
@@ -132,7 +130,6 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
132
130
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
133
131
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
134
132
|
'source': json['source'],
|
|
135
|
-
'isExpressCheckout': json['isExpressCheckout'],
|
|
136
133
|
'paymentToken': json['paymentToken'] == null ? undefined : json['paymentToken'],
|
|
137
134
|
'shippingType': json['shippingType'],
|
|
138
135
|
'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
|
|
@@ -191,7 +188,6 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
191
188
|
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
192
189
|
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
193
190
|
'source': value['source'],
|
|
194
|
-
'isExpressCheckout': value['isExpressCheckout'],
|
|
195
191
|
'paymentToken': value['paymentToken'],
|
|
196
192
|
'shippingType': value['shippingType'],
|
|
197
193
|
'shippingSubtotal': value['shippingSubtotal'],
|
|
@@ -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'],
|
package/package.json
CHANGED
|
@@ -36,13 +36,13 @@ export interface AddressFrontendResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressFrontendResource
|
|
38
38
|
*/
|
|
39
|
-
addresseeName
|
|
39
|
+
addresseeName: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
company
|
|
45
|
+
company?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -91,7 +91,7 @@ export interface AddressFrontendResource {
|
|
|
91
91
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
92
92
|
*/
|
|
93
93
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
94
|
-
if (!('
|
|
94
|
+
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
95
95
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
96
96
|
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
97
97
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
@@ -114,8 +114,8 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
114
114
|
|
|
115
115
|
'id': json['id'] == null ? undefined : json['id'],
|
|
116
116
|
'type': json['type'] == null ? undefined : json['type'],
|
|
117
|
-
'addresseeName': json['addresseeName']
|
|
118
|
-
'company': json['company'],
|
|
117
|
+
'addresseeName': json['addresseeName'],
|
|
118
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
119
119
|
'line1': json['line1'],
|
|
120
120
|
'line2': json['line2'],
|
|
121
121
|
'postcode': json['postcode'],
|
|
@@ -126,12 +126,6 @@ export interface AdminOrderResource {
|
|
|
126
126
|
* @memberof AdminOrderResource
|
|
127
127
|
*/
|
|
128
128
|
source: string;
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
131
|
-
* @type {boolean}
|
|
132
|
-
* @memberof AdminOrderResource
|
|
133
|
-
*/
|
|
134
|
-
isExpressCheckout: boolean;
|
|
135
129
|
/**
|
|
136
130
|
*
|
|
137
131
|
* @type {string}
|
|
@@ -381,7 +375,6 @@ export function instanceOfAdminOrderResource(value: object): value is AdminOrder
|
|
|
381
375
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
382
376
|
if (!('placedAt' in value) || value['placedAt'] === undefined) return false;
|
|
383
377
|
if (!('source' in value) || value['source'] === undefined) return false;
|
|
384
|
-
if (!('isExpressCheckout' in value) || value['isExpressCheckout'] === undefined) return false;
|
|
385
378
|
if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
|
|
386
379
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
|
|
387
380
|
if (!('lockedInsuranceAmount' in value) || value['lockedInsuranceAmount'] === undefined) return false;
|
|
@@ -439,7 +432,6 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
439
432
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
440
433
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
441
434
|
'source': json['source'],
|
|
442
|
-
'isExpressCheckout': json['isExpressCheckout'],
|
|
443
435
|
'paymentToken': json['paymentToken'] == null ? undefined : json['paymentToken'],
|
|
444
436
|
'shippingType': json['shippingType'],
|
|
445
437
|
'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
|
|
@@ -500,7 +492,6 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
|
|
|
500
492
|
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
501
493
|
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
502
494
|
'source': value['source'],
|
|
503
|
-
'isExpressCheckout': value['isExpressCheckout'],
|
|
504
495
|
'paymentToken': value['paymentToken'],
|
|
505
496
|
'shippingType': value['shippingType'],
|
|
506
497
|
'shippingSubtotal': value['shippingSubtotal'],
|
|
@@ -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'],
|