@digital8/lighting-illusions-ts-sdk 0.0.2896 → 0.0.2897

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.2896
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2897
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.2896 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2897 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -32,13 +32,13 @@ export interface AddressFrontendResource {
32
32
  * @type {string}
33
33
  * @memberof AddressFrontendResource
34
34
  */
35
- addresseeName: string;
35
+ addresseeName?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {string}
39
39
  * @memberof AddressFrontendResource
40
40
  */
41
- company?: string | null;
41
+ company: string;
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}
@@ -22,10 +22,12 @@ 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)
25
+ if (!('company' in value) || value['company'] === undefined)
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;
29
31
  if (!('postcode' in value) || value['postcode'] === undefined)
30
32
  return false;
31
33
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -48,10 +50,10 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
48
50
  return {
49
51
  'id': json['id'] == null ? undefined : json['id'],
50
52
  'type': json['type'] == null ? undefined : json['type'],
51
- 'addresseeName': json['addresseeName'],
52
- 'company': json['company'] == null ? undefined : json['company'],
53
+ 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
54
+ 'company': json['company'],
53
55
  'line1': json['line1'],
54
- 'line2': json['line2'] == null ? undefined : json['line2'],
56
+ 'line2': json['line2'],
55
57
  'postcode': json['postcode'],
56
58
  'suburb': json['suburb'],
57
59
  'country': json['country'],
@@ -56,7 +56,7 @@ export interface AddressResource {
56
56
  * @type {string}
57
57
  * @memberof AddressResource
58
58
  */
59
- company?: string | null;
59
+ company: string;
60
60
  /**
61
61
  *
62
62
  * @type {string}
@@ -26,6 +26,8 @@ function instanceOfAddressResource(value) {
26
26
  return false;
27
27
  if (!('addresseePhone' in value) || value['addresseePhone'] === undefined)
28
28
  return false;
29
+ if (!('company' in value) || value['company'] === undefined)
30
+ return false;
29
31
  if (!('line1' in value) || value['line1'] === undefined)
30
32
  return false;
31
33
  if (!('line2' in value) || value['line2'] === undefined)
@@ -56,7 +58,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
56
58
  'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
57
59
  'addresseeName': json['addresseeName'],
58
60
  'addresseePhone': json['addresseePhone'],
59
- 'company': json['company'] == null ? undefined : json['company'],
61
+ 'company': json['company'],
60
62
  'line1': json['line1'],
61
63
  'line2': json['line2'],
62
64
  'postcode': json['postcode'],
@@ -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']),
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
74
74
  * @type {string}
75
75
  * @memberof StoreFrontendResource
76
76
  */
77
- tagLine: string;
77
+ tagLine?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -36,8 +36,6 @@ function instanceOfStoreFrontendResource(value) {
36
36
  return false;
37
37
  if (!('longitude' in value) || value['longitude'] === undefined)
38
38
  return false;
39
- if (!('tagLine' in value) || value['tagLine'] === undefined)
40
- return false;
41
39
  if (!('specialDates' in value) || value['specialDates'] === undefined)
42
40
  return false;
43
41
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -61,7 +59,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
61
59
  'address': json['address'] == null ? undefined : json['address'],
62
60
  'latitude': json['latitude'],
63
61
  'longitude': json['longitude'],
64
- 'tagLine': json['tagLine'],
62
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
65
63
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
66
64
  'specialDates': json['specialDates'],
67
65
  'suppliers': json['suppliers'],
@@ -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'],
@@ -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}
@@ -36,8 +36,6 @@ 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;
43
41
  if (!('website' in value) || value['website'] === undefined)
@@ -68,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
68
66
  'phone': json['phone'],
69
67
  'longitude': json['longitude'],
70
68
  'latitude': json['latitude'],
71
- 'tagLine': json['tagLine'],
69
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
72
70
  'email': json['email'],
73
71
  'website': json['website'],
74
72
  'netsuiteId': json['netsuiteId'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2896",
3
+ "version": "0.0.2897",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -36,13 +36,13 @@ export interface AddressFrontendResource {
36
36
  * @type {string}
37
37
  * @memberof AddressFrontendResource
38
38
  */
39
- addresseeName: string;
39
+ addresseeName?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
43
43
  * @memberof AddressFrontendResource
44
44
  */
45
- company?: string | null;
45
+ company: string;
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}
@@ -91,8 +91,9 @@ 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
+ if (!('company' in value) || value['company'] === undefined) return false;
95
95
  if (!('line1' in value) || value['line1'] === undefined) return false;
96
+ if (!('line2' in value) || value['line2'] === undefined) return false;
96
97
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
97
98
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
98
99
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -113,10 +114,10 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
113
114
 
114
115
  'id': json['id'] == null ? undefined : json['id'],
115
116
  'type': json['type'] == null ? undefined : json['type'],
116
- 'addresseeName': json['addresseeName'],
117
- 'company': json['company'] == null ? undefined : json['company'],
117
+ 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
118
+ 'company': json['company'],
118
119
  'line1': json['line1'],
119
- 'line2': json['line2'] == null ? undefined : json['line2'],
120
+ 'line2': json['line2'],
120
121
  'postcode': json['postcode'],
121
122
  'suburb': json['suburb'],
122
123
  'country': json['country'],
@@ -60,7 +60,7 @@ export interface AddressResource {
60
60
  * @type {string}
61
61
  * @memberof AddressResource
62
62
  */
63
- company?: string | null;
63
+ company: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -111,6 +111,7 @@ export interface AddressResource {
111
111
  export function instanceOfAddressResource(value: object): value is AddressResource {
112
112
  if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
113
113
  if (!('addresseePhone' in value) || value['addresseePhone'] === undefined) return false;
114
+ if (!('company' in value) || value['company'] === undefined) return false;
114
115
  if (!('line1' in value) || value['line1'] === undefined) return false;
115
116
  if (!('line2' in value) || value['line2'] === undefined) return false;
116
117
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
@@ -137,7 +138,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
137
138
  'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
138
139
  'addresseeName': json['addresseeName'],
139
140
  'addresseePhone': json['addresseePhone'],
140
- 'company': json['company'] == null ? undefined : json['company'],
141
+ 'company': json['company'],
141
142
  'line1': json['line1'],
142
143
  'line2': json['line2'],
143
144
  'postcode': json['postcode'],
@@ -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']),
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
78
78
  * @type {string}
79
79
  * @memberof StoreFrontendResource
80
80
  */
81
- tagLine: string;
81
+ tagLine?: string | null;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -110,7 +110,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
110
110
  if (!('phone' in value) || value['phone'] === undefined) return false;
111
111
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
112
112
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
113
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
114
113
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
115
114
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
116
115
  return true;
@@ -135,7 +134,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
135
134
  'address': json['address'] == null ? undefined : json['address'],
136
135
  'latitude': json['latitude'],
137
136
  'longitude': json['longitude'],
138
- 'tagLine': json['tagLine'],
137
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
139
138
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
140
139
  'specialDates': json['specialDates'],
141
140
  'suppliers': json['suppliers'],
@@ -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'],
@@ -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}
@@ -149,7 +149,6 @@ 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;
154
153
  if (!('website' in value) || value['website'] === undefined) return false;
155
154
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
@@ -176,7 +175,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
176
175
  'phone': json['phone'],
177
176
  'longitude': json['longitude'],
178
177
  'latitude': json['latitude'],
179
- 'tagLine': json['tagLine'],
178
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
180
179
  'email': json['email'],
181
180
  'website': json['website'],
182
181
  'netsuiteId': json['netsuiteId'],