@digital8/lighting-illusions-ts-sdk 0.0.2718 → 0.0.2720

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.2718
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2720
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.2718 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2720 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -50,7 +50,7 @@ export interface AddressFrontendResource {
50
50
  * @type {string}
51
51
  * @memberof AddressFrontendResource
52
52
  */
53
- line2?: string | null;
53
+ line2: string;
54
54
  /**
55
55
  *
56
56
  * @type {string}
@@ -28,6 +28,8 @@ function instanceOfAddressFrontendResource(value) {
28
28
  return false;
29
29
  if (!('line1' in value) || value['line1'] === undefined)
30
30
  return false;
31
+ if (!('line2' in value) || value['line2'] === undefined)
32
+ return false;
31
33
  if (!('postcode' in value) || value['postcode'] === undefined)
32
34
  return false;
33
35
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -53,7 +55,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
53
55
  'addresseeName': json['addresseeName'],
54
56
  'company': json['company'],
55
57
  'line1': json['line1'],
56
- 'line2': json['line2'] == null ? undefined : json['line2'],
58
+ 'line2': json['line2'],
57
59
  'postcode': json['postcode'],
58
60
  'suburb': json['suburb'],
59
61
  'country': json['country'],
@@ -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,13 +45,13 @@ 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}
52
52
  * @memberof OrderFulfillmentResource
53
53
  */
54
- trackingCompany: string;
54
+ trackingCompany?: string | null;
55
55
  /**
56
56
  *
57
57
  * @type {string}
@@ -31,7 +31,7 @@ function instanceOfOrderFulfillmentResource(value) {
31
31
  return false;
32
32
  if (!('trackingNumber' in value) || value['trackingNumber'] === undefined)
33
33
  return false;
34
- if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
34
+ if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
35
35
  return false;
36
36
  if (!('docnum' in value) || value['docnum'] === undefined)
37
37
  return false;
@@ -53,8 +53,8 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
53
53
  'orderId': json['orderId'],
54
54
  'dateShipped': (new Date(json['dateShipped'])),
55
55
  'trackingNumber': json['trackingNumber'],
56
- 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
57
- 'trackingCompany': json['trackingCompany'],
56
+ 'trackingUrl': json['trackingUrl'],
57
+ 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
58
58
  'docnum': json['docnum'],
59
59
  'netsuiteId': json['netsuiteId'],
60
60
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -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}
@@ -34,6 +34,8 @@ function instanceOfStoreFrontendResource(value) {
34
34
  return false;
35
35
  if (!('longitude' in value) || value['longitude'] === undefined)
36
36
  return false;
37
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
38
+ return false;
37
39
  if (!('specialDates' in value) || value['specialDates'] === undefined)
38
40
  return false;
39
41
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -57,7 +59,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
57
59
  'address': json['address'] == null ? undefined : json['address'],
58
60
  'latitude': json['latitude'],
59
61
  'longitude': json['longitude'],
60
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
62
+ 'tagLine': json['tagLine'],
61
63
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
62
64
  'specialDates': json['specialDates'],
63
65
  'suppliers': json['suppliers'],
@@ -72,7 +72,7 @@ export interface StoreResource {
72
72
  * @type {string}
73
73
  * @memberof StoreResource
74
74
  */
75
- website: string;
75
+ website?: string | null;
76
76
  /**
77
77
  *
78
78
  * @type {number}
@@ -40,8 +40,6 @@ 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;
45
43
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
46
44
  return false;
47
45
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -70,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
70
68
  'latitude': json['latitude'],
71
69
  'tagLine': json['tagLine'],
72
70
  'email': json['email'],
73
- 'website': json['website'],
71
+ 'website': json['website'] == null ? undefined : json['website'],
74
72
  'netsuiteId': json['netsuiteId'],
75
73
  'displayNetsuiteId': json['displayNetsuiteId'],
76
74
  '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.2718",
3
+ "version": "0.0.2720",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -54,7 +54,7 @@ export interface AddressFrontendResource {
54
54
  * @type {string}
55
55
  * @memberof AddressFrontendResource
56
56
  */
57
- line2?: string | null;
57
+ line2: string;
58
58
  /**
59
59
  *
60
60
  * @type {string}
@@ -94,6 +94,7 @@ export function instanceOfAddressFrontendResource(value: object): value is Addre
94
94
  if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
95
95
  if (!('company' in value) || value['company'] === undefined) return false;
96
96
  if (!('line1' in value) || value['line1'] === undefined) return false;
97
+ if (!('line2' in value) || value['line2'] === undefined) return false;
97
98
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
98
99
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
99
100
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -117,7 +118,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
117
118
  'addresseeName': json['addresseeName'],
118
119
  'company': json['company'],
119
120
  'line1': json['line1'],
120
- 'line2': json['line2'] == null ? undefined : json['line2'],
121
+ 'line2': json['line2'],
121
122
  'postcode': json['postcode'],
122
123
  'suburb': json['suburb'],
123
124
  'country': json['country'],
@@ -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,13 +56,13 @@ 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}
63
63
  * @memberof OrderFulfillmentResource
64
64
  */
65
- trackingCompany: string;
65
+ trackingCompany?: string | null;
66
66
  /**
67
67
  *
68
68
  * @type {string}
@@ -103,7 +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 (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
106
+ if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
107
107
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
108
108
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
109
109
  if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
@@ -124,8 +124,8 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
124
124
  'orderId': json['orderId'],
125
125
  'dateShipped': (new Date(json['dateShipped'])),
126
126
  'trackingNumber': json['trackingNumber'],
127
- 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
128
- 'trackingCompany': json['trackingCompany'],
127
+ 'trackingUrl': json['trackingUrl'],
128
+ 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
129
129
  'docnum': json['docnum'],
130
130
  'netsuiteId': json['netsuiteId'],
131
131
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -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}
@@ -109,6 +109,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
109
109
  if (!('phone' in value) || value['phone'] === undefined) return false;
110
110
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
111
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
112
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
112
113
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
113
114
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
114
115
  return true;
@@ -133,7 +134,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
133
134
  'address': json['address'] == null ? undefined : json['address'],
134
135
  'latitude': json['latitude'],
135
136
  'longitude': json['longitude'],
136
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
137
+ 'tagLine': json['tagLine'],
137
138
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
138
139
  'specialDates': json['specialDates'],
139
140
  'suppliers': json['suppliers'],
@@ -101,7 +101,7 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website: string;
104
+ website?: string | null;
105
105
  /**
106
106
  *
107
107
  * @type {number}
@@ -151,7 +151,6 @@ 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;
155
154
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
156
155
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
157
156
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -178,7 +177,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
178
177
  'latitude': json['latitude'],
179
178
  'tagLine': json['tagLine'],
180
179
  'email': json['email'],
181
- 'website': json['website'],
180
+ 'website': json['website'] == null ? undefined : json['website'],
182
181
  'netsuiteId': json['netsuiteId'],
183
182
  'displayNetsuiteId': json['displayNetsuiteId'],
184
183
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],