@digital8/lighting-illusions-ts-sdk 0.0.2447 → 0.0.2448

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.2447
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2448
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.2447 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2448 --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;
53
+ line2?: string | null;
54
54
  /**
55
55
  *
56
56
  * @type {string}
@@ -26,8 +26,6 @@ function instanceOfAddressFrontendResource(value) {
26
26
  return false;
27
27
  if (!('line1' in value) || value['line1'] === undefined)
28
28
  return false;
29
- if (!('line2' in value) || value['line2'] === undefined)
30
- return false;
31
29
  if (!('postcode' in value) || value['postcode'] === undefined)
32
30
  return false;
33
31
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -53,7 +51,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
53
51
  'addresseeName': json['addresseeName'],
54
52
  'company': json['company'] == null ? undefined : json['company'],
55
53
  'line1': json['line1'],
56
- 'line2': json['line2'],
54
+ 'line2': json['line2'] == null ? undefined : json['line2'],
57
55
  'postcode': json['postcode'],
58
56
  'suburb': json['suburb'],
59
57
  '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}
@@ -22,8 +22,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressResource interface.
23
23
  */
24
24
  function instanceOfAddressResource(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 (!('line2' in value) || value['line2'] === undefined)
@@ -52,7 +50,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
52
50
  'type': json['type'] == null ? undefined : json['type'],
53
51
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
54
52
  'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
55
- 'company': json['company'],
53
+ 'company': json['company'] == null ? undefined : json['company'],
56
54
  'line1': json['line1'],
57
55
  'line2': json['line2'],
58
56
  'postcode': json['postcode'],
@@ -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 (!('docnum' in value) || value['docnum'] === undefined)
33
35
  return false;
34
36
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
@@ -49,7 +51,7 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
49
51
  'orderId': json['orderId'],
50
52
  'dateShipped': (new Date(json['dateShipped'])),
51
53
  'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
52
- 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
54
+ 'trackingUrl': json['trackingUrl'],
53
55
  'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
54
56
  'docnum': json['docnum'],
55
57
  'netsuiteId': json['netsuiteId'],
@@ -69,7 +69,7 @@ export interface StoreListResource {
69
69
  * @type {string}
70
70
  * @memberof StoreListResource
71
71
  */
72
- website?: string | null;
72
+ website: string;
73
73
  /**
74
74
  *
75
75
  * @type {number}
@@ -37,6 +37,8 @@ function instanceOfStoreListResource(value) {
37
37
  return false;
38
38
  if (!('email' in value) || value['email'] === undefined)
39
39
  return false;
40
+ if (!('website' in value) || value['website'] === undefined)
41
+ return false;
40
42
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
41
43
  return false;
42
44
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -59,7 +61,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
59
61
  'latitude': json['latitude'],
60
62
  'tagLine': json['tagLine'],
61
63
  'email': json['email'],
62
- 'website': json['website'] == null ? undefined : json['website'],
64
+ 'website': json['website'],
63
65
  'netsuiteId': json['netsuiteId'],
64
66
  'displayNetsuiteId': json['displayNetsuiteId'],
65
67
  '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.2447",
3
+ "version": "0.0.2448",
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;
57
+ line2?: string | null;
58
58
  /**
59
59
  *
60
60
  * @type {string}
@@ -93,7 +93,6 @@ export interface AddressFrontendResource {
93
93
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
94
94
  if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
95
95
  if (!('line1' in value) || value['line1'] === undefined) return false;
96
- if (!('line2' in value) || value['line2'] === undefined) return false;
97
96
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
98
97
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
99
98
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -117,7 +116,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
117
116
  'addresseeName': json['addresseeName'],
118
117
  'company': json['company'] == null ? undefined : json['company'],
119
118
  'line1': json['line1'],
120
- 'line2': json['line2'],
119
+ 'line2': json['line2'] == null ? undefined : json['line2'],
121
120
  'postcode': json['postcode'],
122
121
  'suburb': json['suburb'],
123
122
  '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}
@@ -97,7 +97,6 @@ export interface AddressResource {
97
97
  * Check if a given object implements the AddressResource interface.
98
98
  */
99
99
  export function instanceOfAddressResource(value: object): value is AddressResource {
100
- if (!('company' in value) || value['company'] === undefined) return false;
101
100
  if (!('line1' in value) || value['line1'] === undefined) return false;
102
101
  if (!('line2' in value) || value['line2'] === undefined) return false;
103
102
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
@@ -122,7 +121,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
122
121
  'type': json['type'] == null ? undefined : json['type'],
123
122
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
124
123
  'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
125
- 'company': json['company'],
124
+ 'company': json['company'] == null ? undefined : json['company'],
126
125
  'line1': json['line1'],
127
126
  'line2': json['line2'],
128
127
  'postcode': json['postcode'],
@@ -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 (!('docnum' in value) || value['docnum'] === undefined) return false;
106
107
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
107
108
  if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
@@ -122,7 +123,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
122
123
  'orderId': json['orderId'],
123
124
  'dateShipped': (new Date(json['dateShipped'])),
124
125
  'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
125
- 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
126
+ 'trackingUrl': json['trackingUrl'],
126
127
  'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
127
128
  'docnum': json['docnum'],
128
129
  'netsuiteId': json['netsuiteId'],
@@ -80,7 +80,7 @@ export interface StoreListResource {
80
80
  * @type {string}
81
81
  * @memberof StoreListResource
82
82
  */
83
- website?: string | null;
83
+ website: string;
84
84
  /**
85
85
  *
86
86
  * @type {number}
@@ -112,6 +112,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
112
112
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
113
113
  if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
114
114
  if (!('email' in value) || value['email'] === undefined) return false;
115
+ if (!('website' in value) || value['website'] === undefined) return false;
115
116
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
116
117
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
117
118
  return true;
@@ -135,7 +136,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
135
136
  'latitude': json['latitude'],
136
137
  'tagLine': json['tagLine'],
137
138
  'email': json['email'],
138
- 'website': json['website'] == null ? undefined : json['website'],
139
+ 'website': json['website'],
139
140
  'netsuiteId': json['netsuiteId'],
140
141
  'displayNetsuiteId': json['displayNetsuiteId'],
141
142
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],