@digital8/lighting-illusions-ts-sdk 0.0.2052 → 0.0.2053

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.2052
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.2053
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -916,7 +916,7 @@ and is automatically generated by the
916
916
  [OpenAPI Generator](https://openapi-generator.tech) project:
917
917
 
918
918
  - API version: `1.0.0`
919
- - Package version: `0.0.2052`
919
+ - Package version: `0.0.2053`
920
920
  - Generator version: `7.22.0`
921
921
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
922
922
 
@@ -20,7 +20,7 @@ export interface AddressFrontendResource {
20
20
  * @type {string}
21
21
  * @memberof AddressFrontendResource
22
22
  */
23
- company: string;
23
+ company?: string | null;
24
24
  /**
25
25
  *
26
26
  * @type {string}
@@ -22,8 +22,6 @@ 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;
27
25
  if (!('line1' in value) || value['line1'] === undefined)
28
26
  return false;
29
27
  if (!('postcode' in value) || value['postcode'] === undefined)
@@ -46,7 +44,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
46
44
  return json;
47
45
  }
48
46
  return {
49
- 'company': json['company'],
47
+ 'company': json['company'] == null ? undefined : json['company'],
50
48
  'line1': json['line1'],
51
49
  'line2': json['line2'] == null ? undefined : json['line2'],
52
50
  'postcode': json['postcode'],
@@ -121,12 +121,6 @@ export interface AdminOrderResource {
121
121
  * @memberof AdminOrderResource
122
122
  */
123
123
  isNetsuiteLocked: boolean;
124
- /**
125
- *
126
- * @type {boolean}
127
- * @memberof AdminOrderResource
128
- */
129
- isDisabled: boolean;
130
124
  /**
131
125
  *
132
126
  * @type {number}
@@ -54,8 +54,6 @@ function instanceOfAdminOrderResource(value) {
54
54
  return false;
55
55
  if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined)
56
56
  return false;
57
- if (!('isDisabled' in value) || value['isDisabled'] === undefined)
58
- return false;
59
57
  if (!('subtotal' in value) || value['subtotal'] === undefined)
60
58
  return false;
61
59
  if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined)
@@ -132,7 +130,6 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
132
130
  'useAsBillingAddress': json['useAsBillingAddress'],
133
131
  'netsuiteId': json['netsuiteId'],
134
132
  'isNetsuiteLocked': json['isNetsuiteLocked'],
135
- 'isDisabled': json['isDisabled'],
136
133
  'subtotal': json['subtotal'],
137
134
  'productDiscountAmount': json['productDiscountAmount'],
138
135
  'subtotalDiscountAmount': json['subtotalDiscountAmount'],
@@ -185,7 +182,6 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
185
182
  'useAsBillingAddress': value['useAsBillingAddress'],
186
183
  'netsuiteId': value['netsuiteId'],
187
184
  'isNetsuiteLocked': value['isNetsuiteLocked'],
188
- 'isDisabled': value['isDisabled'],
189
185
  'subtotal': value['subtotal'],
190
186
  'productDiscountAmount': value['productDiscountAmount'],
191
187
  'subtotalDiscountAmount': value['subtotalDiscountAmount'],
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload?: string | null;
66
+ requestPayload: string;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,6 +37,8 @@ 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;
40
42
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
41
43
  return false;
42
44
  if (!('site' in value) || value['site'] === undefined)
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
59
61
  'endpoint': json['endpoint'],
60
62
  'responseCode': json['responseCode'],
61
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
63
+ 'requestPayload': json['requestPayload'],
62
64
  'responsePayload': json['responsePayload'],
63
65
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
64
66
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -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'],
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
35
35
  hours: string;
36
36
  /**
37
37
  *
38
- * @type {string}
38
+ * @type {object}
39
39
  * @memberof StoreSpecialDateFrontendResource
40
40
  */
41
- date?: string | null;
41
+ date: object;
42
42
  /**
43
43
  *
44
44
  * @type {boolean}
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateFrontendResource(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;
29
31
  if (!('closed' in value) || value['closed'] === undefined)
30
32
  return false;
31
33
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
@@ -45,7 +47,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
45
47
  'id': json['id'] == null ? undefined : json['id'],
46
48
  'name': json['name'],
47
49
  'hours': json['hours'],
48
- 'date': json['date'] == null ? undefined : json['date'],
50
+ 'date': json['date'],
49
51
  'closed': json['closed'],
50
52
  'displayStartDate': json['displayStartDate'],
51
53
  'displayEndDate': json['displayEndDate'],
@@ -35,10 +35,10 @@ export interface StoreSpecialDateResource {
35
35
  hours: string;
36
36
  /**
37
37
  *
38
- * @type {string}
38
+ * @type {object}
39
39
  * @memberof StoreSpecialDateResource
40
40
  */
41
- date?: string | null;
41
+ date: object;
42
42
  /**
43
43
  *
44
44
  * @type {boolean}
@@ -26,6 +26,8 @@ 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;
29
31
  if (!('closed' in value) || value['closed'] === undefined)
30
32
  return false;
31
33
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
@@ -45,7 +47,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
45
47
  'id': json['id'] == null ? undefined : json['id'],
46
48
  'name': json['name'],
47
49
  'hours': json['hours'],
48
- 'date': json['date'] == null ? undefined : json['date'],
50
+ 'date': json['date'],
49
51
  'closed': json['closed'],
50
52
  'displayStartDate': json['displayStartDate'],
51
53
  'displayEndDate': json['displayEndDate'],
@@ -22,7 +22,6 @@ Name | Type
22
22
  `useAsBillingAddress` | boolean
23
23
  `netsuiteId` | number
24
24
  `isNetsuiteLocked` | boolean
25
- `isDisabled` | boolean
26
25
  `subtotal` | number
27
26
  `productDiscountAmount` | number
28
27
  `subtotalDiscountAmount` | number
@@ -72,7 +71,6 @@ const example = {
72
71
  "useAsBillingAddress": null,
73
72
  "netsuiteId": null,
74
73
  "isNetsuiteLocked": null,
75
- "isDisabled": null,
76
74
  "subtotal": null,
77
75
  "productDiscountAmount": null,
78
76
  "subtotalDiscountAmount": null,
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | string
12
+ `date` | object
13
13
  `closed` | boolean
14
14
  `displayStartDate` | object
15
15
  `displayEndDate` | object
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | string
12
+ `date` | object
13
13
  `closed` | boolean
14
14
  `displayStartDate` | string
15
15
  `displayEndDate` | string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2052",
3
+ "version": "0.0.2053",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
24
24
  * @type {string}
25
25
  * @memberof AddressFrontendResource
26
26
  */
27
- company: string;
27
+ company?: string | null;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -73,7 +73,6 @@ 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;
77
76
  if (!('line1' in value) || value['line1'] === undefined) return false;
78
77
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
79
78
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
@@ -93,7 +92,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
93
92
  }
94
93
  return {
95
94
 
96
- 'company': json['company'],
95
+ 'company': json['company'] == null ? undefined : json['company'],
97
96
  'line1': json['line1'],
98
97
  'line2': json['line2'] == null ? undefined : json['line2'],
99
98
  'postcode': json['postcode'],
@@ -186,12 +186,6 @@ export interface AdminOrderResource {
186
186
  * @memberof AdminOrderResource
187
187
  */
188
188
  isNetsuiteLocked: boolean;
189
- /**
190
- *
191
- * @type {boolean}
192
- * @memberof AdminOrderResource
193
- */
194
- isDisabled: boolean;
195
189
  /**
196
190
  *
197
191
  * @type {number}
@@ -359,7 +353,6 @@ export function instanceOfAdminOrderResource(value: object): value is AdminOrder
359
353
  if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
360
354
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
361
355
  if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined) return false;
362
- if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
363
356
  if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
364
357
  if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined) return false;
365
358
  if (!('subtotalDiscountAmount' in value) || value['subtotalDiscountAmount'] === undefined) return false;
@@ -414,7 +407,6 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
414
407
  'useAsBillingAddress': json['useAsBillingAddress'],
415
408
  'netsuiteId': json['netsuiteId'],
416
409
  'isNetsuiteLocked': json['isNetsuiteLocked'],
417
- 'isDisabled': json['isDisabled'],
418
410
  'subtotal': json['subtotal'],
419
411
  'productDiscountAmount': json['productDiscountAmount'],
420
412
  'subtotalDiscountAmount': json['subtotalDiscountAmount'],
@@ -470,7 +462,6 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
470
462
  'useAsBillingAddress': value['useAsBillingAddress'],
471
463
  'netsuiteId': value['netsuiteId'],
472
464
  'isNetsuiteLocked': value['isNetsuiteLocked'],
473
- 'isDisabled': value['isDisabled'],
474
465
  'subtotal': value['subtotal'],
475
466
  'productDiscountAmount': value['productDiscountAmount'],
476
467
  'subtotalDiscountAmount': value['subtotalDiscountAmount'],
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload?: string | null;
77
+ requestPayload: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,6 +106,7 @@ 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;
109
110
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
110
111
  if (!('site' in value) || value['site'] === undefined) return false;
111
112
  return true;
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
128
129
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
129
130
  'endpoint': json['endpoint'],
130
131
  'responseCode': json['responseCode'],
131
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
132
+ 'requestPayload': json['requestPayload'],
132
133
  'responsePayload': json['responsePayload'],
133
134
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
134
135
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -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'],
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {object}
43
43
  * @memberof StoreSpecialDateFrontendResource
44
44
  */
45
- date?: string | null;
45
+ date: object;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,6 +69,7 @@ export interface StoreSpecialDateFrontendResource {
69
69
  export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
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;
72
73
  if (!('closed' in value) || value['closed'] === undefined) return false;
73
74
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
74
75
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -88,7 +89,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
88
89
  'id': json['id'] == null ? undefined : json['id'],
89
90
  'name': json['name'],
90
91
  'hours': json['hours'],
91
- 'date': json['date'] == null ? undefined : json['date'],
92
+ 'date': json['date'],
92
93
  'closed': json['closed'],
93
94
  'displayStartDate': json['displayStartDate'],
94
95
  'displayEndDate': json['displayEndDate'],
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {object}
43
43
  * @memberof StoreSpecialDateResource
44
44
  */
45
- date?: string | null;
45
+ date: object;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,6 +69,7 @@ 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;
72
73
  if (!('closed' in value) || value['closed'] === undefined) return false;
73
74
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
74
75
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -88,7 +89,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
88
89
  'id': json['id'] == null ? undefined : json['id'],
89
90
  'name': json['name'],
90
91
  'hours': json['hours'],
91
- 'date': json['date'] == null ? undefined : json['date'],
92
+ 'date': json['date'],
92
93
  'closed': json['closed'],
93
94
  'displayStartDate': json['displayStartDate'],
94
95
  'displayEndDate': json['displayEndDate'],