@digital8/lighting-illusions-ts-sdk 0.0.2540 → 0.0.2542

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.2540
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2542
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.2540 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2542 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
32
32
  * @type {string}
33
33
  * @memberof AddressFrontendResource
34
34
  */
35
- addresseeName: string;
35
+ addresseeName?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -50,7 +50,7 @@ export interface AddressFrontendResource {
50
50
  * @type {string}
51
51
  * @memberof AddressFrontendResource
52
52
  */
53
- line2: string;
53
+ line2?: string | null;
54
54
  /**
55
55
  *
56
56
  * @type {string}
@@ -22,14 +22,10 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressFrontendResource interface.
23
23
  */
24
24
  function instanceOfAddressFrontendResource(value) {
25
- if (!('addresseeName' in value) || value['addresseeName'] === undefined)
26
- return false;
27
25
  if (!('company' in value) || value['company'] === undefined)
28
26
  return false;
29
27
  if (!('line1' in value) || value['line1'] === undefined)
30
28
  return false;
31
- if (!('line2' in value) || value['line2'] === undefined)
32
- return false;
33
29
  if (!('postcode' in value) || value['postcode'] === undefined)
34
30
  return false;
35
31
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -52,10 +48,10 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
52
48
  return {
53
49
  'id': json['id'] == null ? undefined : json['id'],
54
50
  'type': json['type'] == null ? undefined : json['type'],
55
- 'addresseeName': json['addresseeName'],
51
+ 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
56
52
  'company': json['company'],
57
53
  'line1': json['line1'],
58
- 'line2': json['line2'],
54
+ 'line2': json['line2'] == null ? undefined : json['line2'],
59
55
  'postcode': json['postcode'],
60
56
  'suburb': json['suburb'],
61
57
  'country': json['country'],
@@ -193,6 +193,12 @@ export interface AdminOrderResource {
193
193
  * @memberof AdminOrderResource
194
194
  */
195
195
  totalPaid: number;
196
+ /**
197
+ *
198
+ * @type {number}
199
+ * @memberof AdminOrderResource
200
+ */
201
+ totalSurchargePaid: number;
196
202
  /**
197
203
  *
198
204
  * @type {number}
@@ -78,6 +78,8 @@ function instanceOfAdminOrderResource(value) {
78
78
  return false;
79
79
  if (!('totalPaid' in value) || value['totalPaid'] === undefined)
80
80
  return false;
81
+ if (!('totalSurchargePaid' in value) || value['totalSurchargePaid'] === undefined)
82
+ return false;
81
83
  if (!('totalOutstanding' in value) || value['totalOutstanding'] === undefined)
82
84
  return false;
83
85
  if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined)
@@ -148,6 +150,7 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
148
150
  'totalShipping': json['totalShipping'],
149
151
  'grandTotal': json['grandTotal'],
150
152
  'totalPaid': json['totalPaid'],
153
+ 'totalSurchargePaid': json['totalSurchargePaid'],
151
154
  'totalOutstanding': json['totalOutstanding'],
152
155
  'insuranceEstimate': json['insuranceEstimate'],
153
156
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -204,6 +207,7 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
204
207
  'totalShipping': value['totalShipping'],
205
208
  'grandTotal': value['grandTotal'],
206
209
  'totalPaid': value['totalPaid'],
210
+ 'totalSurchargePaid': value['totalSurchargePaid'],
207
211
  'totalOutstanding': value['totalOutstanding'],
208
212
  'insuranceEstimate': value['insuranceEstimate'],
209
213
  'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload: string;
66
+ requestPayload?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -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']),
@@ -35,10 +35,10 @@ export interface StoreSpecialDateResource {
35
35
  hours: string;
36
36
  /**
37
37
  *
38
- * @type {object}
38
+ * @type {string}
39
39
  * @memberof StoreSpecialDateResource
40
40
  */
41
- date: object;
41
+ date?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {boolean}
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateResource(value) {
26
26
  return false;
27
27
  if (!('hours' in value) || value['hours'] === undefined)
28
28
  return false;
29
- if (!('date' in value) || value['date'] === undefined)
30
- return false;
31
29
  if (!('closed' in value) || value['closed'] === undefined)
32
30
  return false;
33
31
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
@@ -47,7 +45,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
47
45
  'id': json['id'] == null ? undefined : json['id'],
48
46
  'name': json['name'],
49
47
  'hours': json['hours'],
50
- 'date': json['date'],
48
+ 'date': json['date'] == null ? undefined : json['date'],
51
49
  'closed': json['closed'],
52
50
  'displayStartDate': json['displayStartDate'],
53
51
  'displayEndDate': json['displayEndDate'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2540",
3
+ "version": "0.0.2542",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
36
36
  * @type {string}
37
37
  * @memberof AddressFrontendResource
38
38
  */
39
- addresseeName: string;
39
+ addresseeName?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -54,7 +54,7 @@ export interface AddressFrontendResource {
54
54
  * @type {string}
55
55
  * @memberof AddressFrontendResource
56
56
  */
57
- line2: string;
57
+ line2?: string | null;
58
58
  /**
59
59
  *
60
60
  * @type {string}
@@ -91,10 +91,8 @@ 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 (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
95
94
  if (!('company' in value) || value['company'] === undefined) return false;
96
95
  if (!('line1' in value) || value['line1'] === undefined) return false;
97
- if (!('line2' in value) || value['line2'] === undefined) return false;
98
96
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
99
97
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
100
98
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -115,10 +113,10 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
115
113
 
116
114
  'id': json['id'] == null ? undefined : json['id'],
117
115
  'type': json['type'] == null ? undefined : json['type'],
118
- 'addresseeName': json['addresseeName'],
116
+ 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
119
117
  'company': json['company'],
120
118
  'line1': json['line1'],
121
- 'line2': json['line2'],
119
+ 'line2': json['line2'] == null ? undefined : json['line2'],
122
120
  'postcode': json['postcode'],
123
121
  'suburb': json['suburb'],
124
122
  'country': json['country'],
@@ -258,6 +258,12 @@ export interface AdminOrderResource {
258
258
  * @memberof AdminOrderResource
259
259
  */
260
260
  totalPaid: number;
261
+ /**
262
+ *
263
+ * @type {number}
264
+ * @memberof AdminOrderResource
265
+ */
266
+ totalSurchargePaid: number;
261
267
  /**
262
268
  *
263
269
  * @type {number}
@@ -383,6 +389,7 @@ export function instanceOfAdminOrderResource(value: object): value is AdminOrder
383
389
  if (!('totalShipping' in value) || value['totalShipping'] === undefined) return false;
384
390
  if (!('grandTotal' in value) || value['grandTotal'] === undefined) return false;
385
391
  if (!('totalPaid' in value) || value['totalPaid'] === undefined) return false;
392
+ if (!('totalSurchargePaid' in value) || value['totalSurchargePaid'] === undefined) return false;
386
393
  if (!('totalOutstanding' in value) || value['totalOutstanding'] === undefined) return false;
387
394
  if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined) return false;
388
395
  if (!('site' in value) || value['site'] === undefined) return false;
@@ -440,6 +447,7 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
440
447
  'totalShipping': json['totalShipping'],
441
448
  'grandTotal': json['grandTotal'],
442
449
  'totalPaid': json['totalPaid'],
450
+ 'totalSurchargePaid': json['totalSurchargePaid'],
443
451
  'totalOutstanding': json['totalOutstanding'],
444
452
  'insuranceEstimate': json['insuranceEstimate'],
445
453
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -498,6 +506,7 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
498
506
  'totalShipping': value['totalShipping'],
499
507
  'grandTotal': value['grandTotal'],
500
508
  'totalPaid': value['totalPaid'],
509
+ 'totalSurchargePaid': value['totalSurchargePaid'],
501
510
  'totalOutstanding': value['totalOutstanding'],
502
511
  'insuranceEstimate': value['insuranceEstimate'],
503
512
  'site': SiteLiteResourceToJSON(value['site']),
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
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']),
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {object}
42
+ * @type {string}
43
43
  * @memberof StoreSpecialDateResource
44
44
  */
45
- date: object;
45
+ date?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,7 +69,6 @@ export interface StoreSpecialDateResource {
69
69
  export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
70
70
  if (!('name' in value) || value['name'] === undefined) return false;
71
71
  if (!('hours' in value) || value['hours'] === undefined) return false;
72
- if (!('date' in value) || value['date'] === undefined) return false;
73
72
  if (!('closed' in value) || value['closed'] === undefined) return false;
74
73
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
75
74
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -89,7 +88,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
89
88
  'id': json['id'] == null ? undefined : json['id'],
90
89
  'name': json['name'],
91
90
  'hours': json['hours'],
92
- 'date': json['date'],
91
+ 'date': json['date'] == null ? undefined : json['date'],
93
92
  'closed': json['closed'],
94
93
  'displayStartDate': json['displayStartDate'],
95
94
  'displayEndDate': json['displayEndDate'],