@digital8/lighting-illusions-ts-sdk 0.0.2586 → 0.0.2588

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.2586
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2588
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.2586 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2588 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -38,7 +38,7 @@ export interface AddressFrontendResource {
38
38
  * @type {string}
39
39
  * @memberof AddressFrontendResource
40
40
  */
41
- company: string;
41
+ company?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -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}
@@ -24,10 +24,10 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
24
24
  function instanceOfAddressFrontendResource(value) {
25
25
  if (!('addresseeName' in value) || value['addresseeName'] === undefined)
26
26
  return false;
27
- if (!('company' in value) || value['company'] === undefined)
28
- return false;
29
27
  if (!('line1' in value) || value['line1'] === undefined)
30
28
  return false;
29
+ if (!('line2' in value) || value['line2'] === undefined)
30
+ return false;
31
31
  if (!('postcode' in value) || value['postcode'] === undefined)
32
32
  return false;
33
33
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -51,9 +51,9 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'id': json['id'] == null ? undefined : json['id'],
52
52
  'type': json['type'] == null ? undefined : json['type'],
53
53
  'addresseeName': json['addresseeName'],
54
- 'company': json['company'],
54
+ 'company': json['company'] == null ? undefined : json['company'],
55
55
  'line1': json['line1'],
56
- 'line2': json['line2'] == null ? undefined : json['line2'],
56
+ 'line2': json['line2'],
57
57
  'postcode': json['postcode'],
58
58
  'suburb': json['suburb'],
59
59
  'country': json['country'],
@@ -44,7 +44,7 @@ export interface AddressResource {
44
44
  * @type {string}
45
45
  * @memberof AddressResource
46
46
  */
47
- company: string;
47
+ company?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -24,8 +24,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
24
24
  function instanceOfAddressResource(value) {
25
25
  if (!('addresseeName' in value) || value['addresseeName'] === undefined)
26
26
  return false;
27
- if (!('company' in value) || value['company'] === undefined)
28
- return false;
29
27
  if (!('line1' in value) || value['line1'] === undefined)
30
28
  return false;
31
29
  if (!('line2' in value) || value['line2'] === undefined)
@@ -54,7 +52,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
54
52
  'type': json['type'] == null ? undefined : json['type'],
55
53
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
56
54
  'addresseeName': json['addresseeName'],
57
- 'company': json['company'],
55
+ 'company': json['company'] == null ? undefined : json['company'],
58
56
  'line1': json['line1'],
59
57
  'line2': json['line2'],
60
58
  'postcode': json['postcode'],
@@ -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']),
@@ -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 (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
35
37
  return false;
36
38
  if (!('docnum' in value) || value['docnum'] === undefined)
@@ -53,7 +55,7 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
53
55
  'orderId': json['orderId'],
54
56
  'dateShipped': (new Date(json['dateShipped'])),
55
57
  'trackingNumber': json['trackingNumber'],
56
- 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
58
+ 'trackingUrl': json['trackingUrl'],
57
59
  'trackingCompany': json['trackingCompany'],
58
60
  'docnum': json['docnum'],
59
61
  'netsuiteId': json['netsuiteId'],
@@ -60,7 +60,7 @@ export interface StoreResource {
60
60
  * @type {string}
61
61
  * @memberof StoreResource
62
62
  */
63
- tagLine: string;
63
+ tagLine?: string | null;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -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}
@@ -36,10 +36,10 @@ function instanceOfStoreResource(value) {
36
36
  return false;
37
37
  if (!('latitude' in value) || value['latitude'] === undefined)
38
38
  return false;
39
- if (!('tagLine' in value) || value['tagLine'] === undefined)
40
- return false;
41
39
  if (!('email' in value) || value['email'] === undefined)
42
40
  return false;
41
+ if (!('website' in value) || value['website'] === undefined)
42
+ return false;
43
43
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
44
44
  return false;
45
45
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -66,9 +66,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
66
66
  'phone': json['phone'],
67
67
  'longitude': json['longitude'],
68
68
  'latitude': json['latitude'],
69
- 'tagLine': json['tagLine'],
69
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
70
70
  'email': json['email'],
71
- 'website': json['website'] == null ? undefined : json['website'],
71
+ 'website': json['website'],
72
72
  'netsuiteId': json['netsuiteId'],
73
73
  'displayNetsuiteId': json['displayNetsuiteId'],
74
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.2586",
3
+ "version": "0.0.2588",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -42,7 +42,7 @@ export interface AddressFrontendResource {
42
42
  * @type {string}
43
43
  * @memberof AddressFrontendResource
44
44
  */
45
- company: string;
45
+ company?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -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}
@@ -92,8 +92,8 @@ export interface AddressFrontendResource {
92
92
  */
93
93
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
94
94
  if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
95
- if (!('company' in value) || value['company'] === undefined) return false;
96
95
  if (!('line1' in value) || value['line1'] === undefined) return false;
96
+ if (!('line2' in value) || value['line2'] === undefined) return false;
97
97
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
98
98
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
99
99
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -115,9 +115,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
115
115
  'id': json['id'] == null ? undefined : json['id'],
116
116
  'type': json['type'] == null ? undefined : json['type'],
117
117
  'addresseeName': json['addresseeName'],
118
- 'company': json['company'],
118
+ 'company': json['company'] == null ? undefined : json['company'],
119
119
  'line1': json['line1'],
120
- 'line2': json['line2'] == null ? undefined : json['line2'],
120
+ 'line2': json['line2'],
121
121
  'postcode': json['postcode'],
122
122
  'suburb': json['suburb'],
123
123
  'country': json['country'],
@@ -48,7 +48,7 @@ export interface AddressResource {
48
48
  * @type {string}
49
49
  * @memberof AddressResource
50
50
  */
51
- company: string;
51
+ company?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -98,7 +98,6 @@ export interface AddressResource {
98
98
  */
99
99
  export function instanceOfAddressResource(value: object): value is AddressResource {
100
100
  if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
101
- if (!('company' in value) || value['company'] === undefined) return false;
102
101
  if (!('line1' in value) || value['line1'] === undefined) return false;
103
102
  if (!('line2' in value) || value['line2'] === undefined) return false;
104
103
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
@@ -123,7 +122,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
123
122
  'type': json['type'] == null ? undefined : json['type'],
124
123
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
125
124
  'addresseeName': json['addresseeName'],
126
- 'company': json['company'],
125
+ 'company': json['company'] == null ? undefined : json['company'],
127
126
  'line1': json['line1'],
128
127
  'line2': json['line2'],
129
128
  'postcode': json['postcode'],
@@ -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']),
@@ -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 (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
107
108
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
108
109
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
@@ -124,7 +125,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
124
125
  'orderId': json['orderId'],
125
126
  'dateShipped': (new Date(json['dateShipped'])),
126
127
  'trackingNumber': json['trackingNumber'],
127
- 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
128
+ 'trackingUrl': json['trackingUrl'],
128
129
  'trackingCompany': json['trackingCompany'],
129
130
  'docnum': json['docnum'],
130
131
  'netsuiteId': json['netsuiteId'],
@@ -89,7 +89,7 @@ export interface StoreResource {
89
89
  * @type {string}
90
90
  * @memberof StoreResource
91
91
  */
92
- tagLine: string;
92
+ tagLine?: string | null;
93
93
  /**
94
94
  *
95
95
  * @type {string}
@@ -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}
@@ -149,8 +149,8 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
149
149
  if (!('phone' in value) || value['phone'] === undefined) return false;
150
150
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
151
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
152
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
153
152
  if (!('email' in value) || value['email'] === undefined) return false;
153
+ if (!('website' in value) || value['website'] === undefined) return false;
154
154
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
155
155
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
156
156
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -175,9 +175,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
175
175
  'phone': json['phone'],
176
176
  'longitude': json['longitude'],
177
177
  'latitude': json['latitude'],
178
- 'tagLine': json['tagLine'],
178
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
179
179
  'email': json['email'],
180
- 'website': json['website'] == null ? undefined : json['website'],
180
+ 'website': json['website'],
181
181
  'netsuiteId': json['netsuiteId'],
182
182
  'displayNetsuiteId': json['displayNetsuiteId'],
183
183
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],