@digital8/lighting-illusions-ts-sdk 0.0.2922 → 0.0.2924

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.2922
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2924
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.2922 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2924 --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'],
@@ -44,7 +44,7 @@ export interface AddressResource {
44
44
  * @type {string}
45
45
  * @memberof AddressResource
46
46
  */
47
- addresseeName?: string | null;
47
+ addresseeName: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -22,6 +22,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressResource interface.
23
23
  */
24
24
  function instanceOfAddressResource(value) {
25
+ if (!('addresseeName' in value) || value['addresseeName'] === undefined)
26
+ return false;
25
27
  if (!('addresseePhone' in value) || value['addresseePhone'] === undefined)
26
28
  return false;
27
29
  if (!('company' in value) || value['company'] === undefined)
@@ -54,7 +56,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
54
56
  'type': json['type'] == null ? undefined : json['type'],
55
57
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
56
58
  'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
57
- 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
59
+ 'addresseeName': json['addresseeName'],
58
60
  'addresseePhone': json['addresseePhone'],
59
61
  'company': json['company'],
60
62
  'line1': json['line1'],
@@ -46,13 +46,13 @@ export interface OrderFulfillmentResource {
46
46
  * @type {string}
47
47
  * @memberof OrderFulfillmentResource
48
48
  */
49
- trackingUrl: string;
49
+ trackingUrl?: string | null;
50
50
  /**
51
51
  *
52
52
  * @type {string}
53
53
  * @memberof OrderFulfillmentResource
54
54
  */
55
- trackingCompany: string;
55
+ trackingCompany?: string | null;
56
56
  /**
57
57
  *
58
58
  * @type {string}
@@ -30,10 +30,6 @@ function instanceOfOrderFulfillmentResource(value) {
30
30
  return false;
31
31
  if (!('dateShipped' in value) || value['dateShipped'] === undefined)
32
32
  return false;
33
- if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
34
- return false;
35
- if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
36
- return false;
37
33
  if (!('docnum' in value) || value['docnum'] === undefined)
38
34
  return false;
39
35
  if (!('status' in value) || value['status'] === undefined)
@@ -56,8 +52,8 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
56
52
  'orderId': json['orderId'],
57
53
  'dateShipped': (new Date(json['dateShipped'])),
58
54
  'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
59
- 'trackingUrl': json['trackingUrl'],
60
- 'trackingCompany': json['trackingCompany'],
55
+ 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
56
+ 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
61
57
  'docnum': json['docnum'],
62
58
  'status': (0, OrderFulfillmentStatus_1.OrderFulfillmentStatusFromJSON)(json['status']),
63
59
  'netsuiteId': json['netsuiteId'],
@@ -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.2922",
3
+ "version": "0.0.2924",
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'],
@@ -48,7 +48,7 @@ export interface AddressResource {
48
48
  * @type {string}
49
49
  * @memberof AddressResource
50
50
  */
51
- addresseeName?: string | null;
51
+ addresseeName: string;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -109,6 +109,7 @@ export interface AddressResource {
109
109
  * Check if a given object implements the AddressResource interface.
110
110
  */
111
111
  export function instanceOfAddressResource(value: object): value is AddressResource {
112
+ if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
112
113
  if (!('addresseePhone' in value) || value['addresseePhone'] === undefined) return false;
113
114
  if (!('company' in value) || value['company'] === undefined) return false;
114
115
  if (!('line1' in value) || value['line1'] === undefined) return false;
@@ -135,7 +136,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
135
136
  'type': json['type'] == null ? undefined : json['type'],
136
137
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
137
138
  'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
138
- 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
139
+ 'addresseeName': json['addresseeName'],
139
140
  'addresseePhone': json['addresseePhone'],
140
141
  'company': json['company'],
141
142
  'line1': json['line1'],
@@ -63,13 +63,13 @@ export interface OrderFulfillmentResource {
63
63
  * @type {string}
64
64
  * @memberof OrderFulfillmentResource
65
65
  */
66
- trackingUrl: string;
66
+ trackingUrl?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
70
70
  * @memberof OrderFulfillmentResource
71
71
  */
72
- trackingCompany: string;
72
+ trackingCompany?: string | null;
73
73
  /**
74
74
  *
75
75
  * @type {string}
@@ -117,8 +117,6 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
117
117
  if (!('id' in value) || value['id'] === undefined) return false;
118
118
  if (!('orderId' in value) || value['orderId'] === undefined) return false;
119
119
  if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
120
- if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
121
- if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
122
120
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
123
121
  if (!('status' in value) || value['status'] === undefined) return false;
124
122
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
@@ -140,8 +138,8 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
140
138
  'orderId': json['orderId'],
141
139
  'dateShipped': (new Date(json['dateShipped'])),
142
140
  'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
143
- 'trackingUrl': json['trackingUrl'],
144
- 'trackingCompany': json['trackingCompany'],
141
+ 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
142
+ 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
145
143
  'docnum': json['docnum'],
146
144
  'status': OrderFulfillmentStatusFromJSON(json['status']),
147
145
  'netsuiteId': json['netsuiteId'],
@@ -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'],