@digital8/lighting-illusions-ts-sdk 0.0.2702 → 0.0.2703

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.2702
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2703
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.2702 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2703 --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 | null;
35
+ addresseeName: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -22,6 +22,8 @@ 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;
25
27
  if (!('line1' in value) || value['line1'] === undefined)
26
28
  return false;
27
29
  if (!('postcode' in value) || value['postcode'] === undefined)
@@ -46,7 +48,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
46
48
  return {
47
49
  'id': json['id'] == null ? undefined : json['id'],
48
50
  'type': json['type'] == null ? undefined : json['type'],
49
- 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
51
+ 'addresseeName': json['addresseeName'],
50
52
  'company': json['company'] == null ? undefined : json['company'],
51
53
  'line1': json['line1'],
52
54
  'line2': json['line2'] == null ? undefined : json['line2'],
@@ -69,7 +69,7 @@ export interface ExternalApiLogResource {
69
69
  * @type {string}
70
70
  * @memberof ExternalApiLogResource
71
71
  */
72
- requestPayload?: string | null;
72
+ requestPayload: string;
73
73
  /**
74
74
  *
75
75
  * @type {string}
@@ -39,6 +39,8 @@ 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;
42
44
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
45
  return false;
44
46
  if (!('site' in value) || value['site'] === undefined)
@@ -61,7 +63,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
61
63
  'endpoint': json['endpoint'],
62
64
  'responseCode': json['responseCode'],
63
65
  'isSuccess': json['isSuccess'],
64
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
66
+ 'requestPayload': json['requestPayload'],
65
67
  'responsePayload': json['responsePayload'],
66
68
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
67
69
  '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}
@@ -29,6 +29,8 @@ function instanceOfOrderFulfillmentResource(value) {
29
29
  return false;
30
30
  if (!('dateShipped' in value) || value['dateShipped'] === undefined)
31
31
  return false;
32
+ if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
33
+ return false;
32
34
  if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
33
35
  return false;
34
36
  if (!('docnum' in value) || value['docnum'] === 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'] == null ? undefined : json['trackingNumber'],
54
- 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
56
+ 'trackingUrl': json['trackingUrl'],
55
57
  'trackingCompany': json['trackingCompany'],
56
58
  'docnum': json['docnum'],
57
59
  'netsuiteId': json['netsuiteId'],
@@ -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}
@@ -38,6 +38,8 @@ function instanceOfStoreResource(value) {
38
38
  return false;
39
39
  if (!('email' in value) || value['email'] === undefined)
40
40
  return false;
41
+ if (!('website' in value) || value['website'] === undefined)
42
+ return false;
41
43
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
42
44
  return false;
43
45
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -66,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
66
68
  'latitude': json['latitude'],
67
69
  'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
68
70
  'email': json['email'],
69
- 'website': json['website'] == null ? undefined : json['website'],
71
+ 'website': json['website'],
70
72
  'netsuiteId': json['netsuiteId'],
71
73
  'displayNetsuiteId': json['displayNetsuiteId'],
72
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.2702",
3
+ "version": "0.0.2703",
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 | null;
39
+ addresseeName: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -91,6 +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 (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
94
95
  if (!('line1' in value) || value['line1'] === undefined) return false;
95
96
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
96
97
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
@@ -112,7 +113,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
112
113
 
113
114
  'id': json['id'] == null ? undefined : json['id'],
114
115
  'type': json['type'] == null ? undefined : json['type'],
115
- 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
116
+ 'addresseeName': json['addresseeName'],
116
117
  'company': json['company'] == null ? undefined : json['company'],
117
118
  'line1': json['line1'],
118
119
  'line2': json['line2'] == null ? undefined : json['line2'],
@@ -80,7 +80,7 @@ export interface ExternalApiLogResource {
80
80
  * @type {string}
81
81
  * @memberof ExternalApiLogResource
82
82
  */
83
- requestPayload?: string | null;
83
+ requestPayload: string;
84
84
  /**
85
85
  *
86
86
  * @type {string}
@@ -113,6 +113,7 @@ 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;
116
117
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
117
118
  if (!('site' in value) || value['site'] === undefined) return false;
118
119
  return true;
@@ -136,7 +137,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
136
137
  'endpoint': json['endpoint'],
137
138
  'responseCode': json['responseCode'],
138
139
  'isSuccess': json['isSuccess'],
139
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
140
+ 'requestPayload': json['requestPayload'],
140
141
  'responsePayload': json['responsePayload'],
141
142
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
142
143
  '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}
@@ -102,6 +102,7 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
102
102
  if (!('id' in value) || value['id'] === undefined) return false;
103
103
  if (!('orderId' in value) || value['orderId'] === undefined) return false;
104
104
  if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
105
+ if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
105
106
  if (!('trackingCompany' in value) || value['trackingCompany'] === 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;
@@ -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'] == null ? undefined : json['trackingNumber'],
126
- 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
127
+ 'trackingUrl': json['trackingUrl'],
127
128
  'trackingCompany': json['trackingCompany'],
128
129
  'docnum': json['docnum'],
129
130
  'netsuiteId': json['netsuiteId'],
@@ -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}
@@ -150,6 +150,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
150
150
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
151
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
152
152
  if (!('email' in value) || value['email'] === undefined) return false;
153
+ if (!('website' in value) || value['website'] === undefined) return false;
153
154
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
154
155
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
155
156
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -176,7 +177,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
176
177
  'latitude': json['latitude'],
177
178
  'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
178
179
  'email': json['email'],
179
- 'website': json['website'] == null ? undefined : json['website'],
180
+ 'website': json['website'],
180
181
  'netsuiteId': json['netsuiteId'],
181
182
  'displayNetsuiteId': json['displayNetsuiteId'],
182
183
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],