@digital8/lighting-illusions-ts-sdk 0.0.2714 → 0.0.2716

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/lighting-illusions-ts-sdk@0.0.2714
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2716
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.2714 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2716 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -61,6 +61,12 @@ export interface AdminOrderResource {
61
61
  * @memberof AdminOrderResource
62
62
  */
63
63
  source: string;
64
+ /**
65
+ *
66
+ * @type {boolean}
67
+ * @memberof AdminOrderResource
68
+ */
69
+ isExpressCheckout: boolean;
64
70
  /**
65
71
  *
66
72
  * @type {string}
@@ -38,6 +38,8 @@ 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;
41
43
  if (!('shippingType' in value) || value['shippingType'] === undefined)
42
44
  return false;
43
45
  if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
@@ -130,6 +132,7 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
130
132
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
131
133
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
132
134
  'source': json['source'],
135
+ 'isExpressCheckout': json['isExpressCheckout'],
133
136
  'paymentToken': json['paymentToken'] == null ? undefined : json['paymentToken'],
134
137
  'shippingType': json['shippingType'],
135
138
  'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
@@ -188,6 +191,7 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
188
191
  'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
189
192
  'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
190
193
  'source': value['source'],
194
+ 'isExpressCheckout': value['isExpressCheckout'],
191
195
  'paymentToken': value['paymentToken'],
192
196
  'shippingType': value['shippingType'],
193
197
  'shippingSubtotal': value['shippingSubtotal'],
@@ -69,7 +69,7 @@ export interface ExternalApiLogResource {
69
69
  * @type {string}
70
70
  * @memberof ExternalApiLogResource
71
71
  */
72
- requestPayload: string;
72
+ requestPayload?: string | null;
73
73
  /**
74
74
  *
75
75
  * @type {string}
@@ -39,8 +39,6 @@ function instanceOfExternalApiLogResource(value) {
39
39
  return false;
40
40
  if (!('isSuccess' in value) || value['isSuccess'] === undefined)
41
41
  return false;
42
- if (!('requestPayload' in value) || value['requestPayload'] === undefined)
43
- return false;
44
42
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
45
43
  return false;
46
44
  if (!('site' in value) || value['site'] === undefined)
@@ -63,7 +61,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
63
61
  'endpoint': json['endpoint'],
64
62
  'responseCode': json['responseCode'],
65
63
  'isSuccess': json['isSuccess'],
66
- 'requestPayload': json['requestPayload'],
64
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
67
65
  'responsePayload': json['responsePayload'],
68
66
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
69
67
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -45,7 +45,7 @@ export interface OrderFulfillmentResource {
45
45
  * @type {string}
46
46
  * @memberof OrderFulfillmentResource
47
47
  */
48
- trackingUrl?: string | null;
48
+ trackingUrl: string;
49
49
  /**
50
50
  *
51
51
  * @type {string}
@@ -31,6 +31,8 @@ function instanceOfOrderFulfillmentResource(value) {
31
31
  return false;
32
32
  if (!('trackingNumber' in value) || value['trackingNumber'] === undefined)
33
33
  return false;
34
+ if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
35
+ return false;
34
36
  if (!('docnum' in value) || value['docnum'] === undefined)
35
37
  return false;
36
38
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
@@ -51,7 +53,7 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
51
53
  'orderId': json['orderId'],
52
54
  'dateShipped': (new Date(json['dateShipped'])),
53
55
  'trackingNumber': json['trackingNumber'],
54
- 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
56
+ 'trackingUrl': json['trackingUrl'],
55
57
  'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
56
58
  'docnum': json['docnum'],
57
59
  'netsuiteId': json['netsuiteId'],
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
44
44
  * @type {string}
45
45
  * @memberof StoreFrontendResource
46
46
  */
47
- website?: string | null;
47
+ website: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
74
74
  * @type {string}
75
75
  * @memberof StoreFrontendResource
76
76
  */
77
- tagLine?: string | null;
77
+ tagLine: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -28,12 +28,16 @@ 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;
31
33
  if (!('phone' in value) || value['phone'] === undefined)
32
34
  return false;
33
35
  if (!('latitude' in value) || value['latitude'] === undefined)
34
36
  return false;
35
37
  if (!('longitude' in value) || value['longitude'] === undefined)
36
38
  return false;
39
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
40
+ return false;
37
41
  if (!('specialDates' in value) || value['specialDates'] === undefined)
38
42
  return false;
39
43
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -52,12 +56,12 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
52
56
  'siteId': json['siteId'],
53
57
  'name': json['name'],
54
58
  'email': json['email'],
55
- 'website': json['website'] == null ? undefined : json['website'],
59
+ 'website': json['website'],
56
60
  'phone': json['phone'],
57
61
  'address': json['address'] == null ? undefined : json['address'],
58
62
  'latitude': json['latitude'],
59
63
  'longitude': json['longitude'],
60
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
64
+ 'tagLine': json['tagLine'],
61
65
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
62
66
  'specialDates': json['specialDates'],
63
67
  'suppliers': json['suppliers'],
@@ -72,7 +72,7 @@ export interface StoreResource {
72
72
  * @type {string}
73
73
  * @memberof StoreResource
74
74
  */
75
- website?: string | null;
75
+ website: string;
76
76
  /**
77
77
  *
78
78
  * @type {number}
@@ -40,6 +40,8 @@ function instanceOfStoreResource(value) {
40
40
  return false;
41
41
  if (!('email' in value) || value['email'] === undefined)
42
42
  return false;
43
+ if (!('website' in value) || value['website'] === undefined)
44
+ return false;
43
45
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
44
46
  return false;
45
47
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -68,7 +70,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
68
70
  'latitude': json['latitude'],
69
71
  'tagLine': json['tagLine'],
70
72
  'email': json['email'],
71
- 'website': json['website'] == null ? undefined : json['website'],
73
+ 'website': json['website'],
72
74
  'netsuiteId': json['netsuiteId'],
73
75
  'displayNetsuiteId': json['displayNetsuiteId'],
74
76
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2714",
3
+ "version": "0.0.2716",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -126,6 +126,12 @@ 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;
129
135
  /**
130
136
  *
131
137
  * @type {string}
@@ -375,6 +381,7 @@ export function instanceOfAdminOrderResource(value: object): value is AdminOrder
375
381
  if (!('id' in value) || value['id'] === undefined) return false;
376
382
  if (!('placedAt' in value) || value['placedAt'] === undefined) return false;
377
383
  if (!('source' in value) || value['source'] === undefined) return false;
384
+ if (!('isExpressCheckout' in value) || value['isExpressCheckout'] === undefined) return false;
378
385
  if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
379
386
  if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
380
387
  if (!('lockedInsuranceAmount' in value) || value['lockedInsuranceAmount'] === undefined) return false;
@@ -432,6 +439,7 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
432
439
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
433
440
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
434
441
  'source': json['source'],
442
+ 'isExpressCheckout': json['isExpressCheckout'],
435
443
  'paymentToken': json['paymentToken'] == null ? undefined : json['paymentToken'],
436
444
  'shippingType': json['shippingType'],
437
445
  'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
@@ -492,6 +500,7 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
492
500
  'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
493
501
  'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
494
502
  'source': value['source'],
503
+ 'isExpressCheckout': value['isExpressCheckout'],
495
504
  'paymentToken': value['paymentToken'],
496
505
  'shippingType': value['shippingType'],
497
506
  'shippingSubtotal': value['shippingSubtotal'],
@@ -80,7 +80,7 @@ export interface ExternalApiLogResource {
80
80
  * @type {string}
81
81
  * @memberof ExternalApiLogResource
82
82
  */
83
- requestPayload: string;
83
+ requestPayload?: string | null;
84
84
  /**
85
85
  *
86
86
  * @type {string}
@@ -113,7 +113,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
113
113
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
114
114
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
115
115
  if (!('isSuccess' in value) || value['isSuccess'] === undefined) return false;
116
- if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
117
116
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
118
117
  if (!('site' in value) || value['site'] === undefined) return false;
119
118
  return true;
@@ -137,7 +136,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
137
136
  'endpoint': json['endpoint'],
138
137
  'responseCode': json['responseCode'],
139
138
  'isSuccess': json['isSuccess'],
140
- 'requestPayload': json['requestPayload'],
139
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
141
140
  'responsePayload': json['responsePayload'],
142
141
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
143
142
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -56,7 +56,7 @@ export interface OrderFulfillmentResource {
56
56
  * @type {string}
57
57
  * @memberof OrderFulfillmentResource
58
58
  */
59
- trackingUrl?: string | null;
59
+ trackingUrl: string;
60
60
  /**
61
61
  *
62
62
  * @type {string}
@@ -103,6 +103,7 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
103
103
  if (!('orderId' in value) || value['orderId'] === undefined) return false;
104
104
  if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
105
105
  if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
106
+ if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
106
107
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
107
108
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
108
109
  if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
@@ -123,7 +124,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
123
124
  'orderId': json['orderId'],
124
125
  'dateShipped': (new Date(json['dateShipped'])),
125
126
  'trackingNumber': json['trackingNumber'],
126
- 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
127
+ 'trackingUrl': json['trackingUrl'],
127
128
  'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
128
129
  'docnum': json['docnum'],
129
130
  'netsuiteId': json['netsuiteId'],
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
48
48
  * @type {string}
49
49
  * @memberof StoreFrontendResource
50
50
  */
51
- website?: string | null;
51
+ website: string;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
78
78
  * @type {string}
79
79
  * @memberof StoreFrontendResource
80
80
  */
81
- tagLine?: string | null;
81
+ tagLine: string;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -106,9 +106,11 @@ 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;
109
110
  if (!('phone' in value) || value['phone'] === undefined) return false;
110
111
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
111
112
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
113
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
112
114
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
113
115
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
114
116
  return true;
@@ -128,12 +130,12 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
128
130
  'siteId': json['siteId'],
129
131
  'name': json['name'],
130
132
  'email': json['email'],
131
- 'website': json['website'] == null ? undefined : json['website'],
133
+ 'website': json['website'],
132
134
  'phone': json['phone'],
133
135
  'address': json['address'] == null ? undefined : json['address'],
134
136
  'latitude': json['latitude'],
135
137
  'longitude': json['longitude'],
136
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
138
+ 'tagLine': json['tagLine'],
137
139
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
138
140
  'specialDates': json['specialDates'],
139
141
  'suppliers': json['suppliers'],
@@ -101,7 +101,7 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website?: string | null;
104
+ website: string;
105
105
  /**
106
106
  *
107
107
  * @type {number}
@@ -151,6 +151,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
151
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
152
152
  if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
153
153
  if (!('email' in value) || value['email'] === undefined) return false;
154
+ if (!('website' in value) || value['website'] === undefined) return false;
154
155
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
155
156
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
156
157
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -177,7 +178,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
177
178
  'latitude': json['latitude'],
178
179
  'tagLine': json['tagLine'],
179
180
  'email': json['email'],
180
- 'website': json['website'] == null ? undefined : json['website'],
181
+ 'website': json['website'],
181
182
  'netsuiteId': json['netsuiteId'],
182
183
  'displayNetsuiteId': json['displayNetsuiteId'],
183
184
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],