@digital8/lighting-illusions-ts-sdk 0.0.2656 → 0.0.2658

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.2656
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2658
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.2656 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2658 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -20,7 +20,7 @@ export interface AddressFrontendResource {
20
20
  * @type {string}
21
21
  * @memberof AddressFrontendResource
22
22
  */
23
- company?: string | null;
23
+ company: string;
24
24
  /**
25
25
  *
26
26
  * @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 (!('company' in value) || value['company'] === undefined)
26
+ return false;
25
27
  if (!('line1' in value) || value['line1'] === undefined)
26
28
  return false;
27
29
  if (!('line2' in value) || value['line2'] === undefined)
@@ -46,7 +48,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
46
48
  return json;
47
49
  }
48
50
  return {
49
- 'company': json['company'] == null ? undefined : json['company'],
51
+ 'company': json['company'],
50
52
  'line1': json['line1'],
51
53
  'line2': json['line2'],
52
54
  'postcode': json['postcode'],
@@ -44,7 +44,7 @@ export interface AddressResource {
44
44
  * @type {string}
45
45
  * @memberof AddressResource
46
46
  */
47
- company?: string | null;
47
+ company: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -56,7 +56,7 @@ export interface AddressResource {
56
56
  * @type {string}
57
57
  * @memberof AddressResource
58
58
  */
59
- line2?: string | null;
59
+ line2: string;
60
60
  /**
61
61
  *
62
62
  * @type {string}
@@ -24,8 +24,12 @@ 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;
27
29
  if (!('line1' in value) || value['line1'] === undefined)
28
30
  return false;
31
+ if (!('line2' in value) || value['line2'] === undefined)
32
+ return false;
29
33
  if (!('postcode' in value) || value['postcode'] === undefined)
30
34
  return false;
31
35
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -50,9 +54,9 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
50
54
  'type': json['type'] == null ? undefined : json['type'],
51
55
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
52
56
  'addresseeName': json['addresseeName'],
53
- 'company': json['company'] == null ? undefined : json['company'],
57
+ 'company': json['company'],
54
58
  'line1': json['line1'],
55
- 'line2': json['line2'] == null ? undefined : json['line2'],
59
+ 'line2': json['line2'],
56
60
  'postcode': json['postcode'],
57
61
  'suburb': json['suburb'],
58
62
  '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,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 (!('docnum' in value) || value['docnum'] === undefined)
35
37
  return false;
36
38
  if (!('netsuiteId' in value) || value['netsuiteId'] === 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'],
54
- 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
56
+ 'trackingUrl': json['trackingUrl'],
55
57
  'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
56
58
  'docnum': json['docnum'],
57
59
  'netsuiteId': json['netsuiteId'],
@@ -69,7 +69,7 @@ export interface StoreListResource {
69
69
  * @type {string}
70
70
  * @memberof StoreListResource
71
71
  */
72
- website: string;
72
+ website?: string | null;
73
73
  /**
74
74
  *
75
75
  * @type {number}
@@ -37,8 +37,6 @@ 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;
42
40
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
43
41
  return false;
44
42
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -61,7 +59,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
61
59
  'latitude': json['latitude'],
62
60
  'tagLine': json['tagLine'],
63
61
  'email': json['email'],
64
- 'website': json['website'],
62
+ 'website': json['website'] == null ? undefined : json['website'],
65
63
  'netsuiteId': json['netsuiteId'],
66
64
  'displayNetsuiteId': json['displayNetsuiteId'],
67
65
  '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.2656",
3
+ "version": "0.0.2658",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
24
24
  * @type {string}
25
25
  * @memberof AddressFrontendResource
26
26
  */
27
- company?: string | null;
27
+ company: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -73,6 +73,7 @@ export interface AddressFrontendResource {
73
73
  * Check if a given object implements the AddressFrontendResource interface.
74
74
  */
75
75
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
76
+ if (!('company' in value) || value['company'] === undefined) return false;
76
77
  if (!('line1' in value) || value['line1'] === undefined) return false;
77
78
  if (!('line2' in value) || value['line2'] === undefined) return false;
78
79
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
@@ -93,7 +94,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
93
94
  }
94
95
  return {
95
96
 
96
- 'company': json['company'] == null ? undefined : json['company'],
97
+ 'company': json['company'],
97
98
  'line1': json['line1'],
98
99
  'line2': json['line2'],
99
100
  'postcode': json['postcode'],
@@ -48,7 +48,7 @@ export interface AddressResource {
48
48
  * @type {string}
49
49
  * @memberof AddressResource
50
50
  */
51
- company?: string | null;
51
+ company: string;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -60,7 +60,7 @@ export interface AddressResource {
60
60
  * @type {string}
61
61
  * @memberof AddressResource
62
62
  */
63
- line2?: string | null;
63
+ line2: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -98,7 +98,9 @@ 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;
101
102
  if (!('line1' in value) || value['line1'] === undefined) return false;
103
+ if (!('line2' in value) || value['line2'] === undefined) return false;
102
104
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
103
105
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
104
106
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -121,9 +123,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
121
123
  'type': json['type'] == null ? undefined : json['type'],
122
124
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
123
125
  'addresseeName': json['addresseeName'],
124
- 'company': json['company'] == null ? undefined : json['company'],
126
+ 'company': json['company'],
125
127
  'line1': json['line1'],
126
- 'line2': json['line2'] == null ? undefined : json['line2'],
128
+ 'line2': json['line2'],
127
129
  'postcode': json['postcode'],
128
130
  'suburb': json['suburb'],
129
131
  '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,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 (!('docnum' in value) || value['docnum'] === undefined) return false;
107
108
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
108
109
  if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === 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'],
126
- 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
127
+ 'trackingUrl': json['trackingUrl'],
127
128
  'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
128
129
  'docnum': json['docnum'],
129
130
  'netsuiteId': json['netsuiteId'],
@@ -80,7 +80,7 @@ export interface StoreListResource {
80
80
  * @type {string}
81
81
  * @memberof StoreListResource
82
82
  */
83
- website: string;
83
+ website?: string | null;
84
84
  /**
85
85
  *
86
86
  * @type {number}
@@ -112,7 +112,6 @@ 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;
116
115
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
117
116
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
118
117
  return true;
@@ -136,7 +135,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
136
135
  'latitude': json['latitude'],
137
136
  'tagLine': json['tagLine'],
138
137
  'email': json['email'],
139
- 'website': json['website'],
138
+ 'website': json['website'] == null ? undefined : json['website'],
140
139
  'netsuiteId': json['netsuiteId'],
141
140
  'displayNetsuiteId': json['displayNetsuiteId'],
142
141
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],