@digital8/lighting-illusions-ts-sdk 0.0.2868 → 0.0.2870

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.2868
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2870
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.2868 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2870 --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;
53
+ line2?: string | null;
54
54
  /**
55
55
  *
56
56
  * @type {string}
@@ -24,12 +24,8 @@ 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;
31
- if (!('line2' in value) || value['line2'] === undefined)
32
- return false;
33
29
  if (!('postcode' in value) || value['postcode'] === undefined)
34
30
  return false;
35
31
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -53,9 +49,9 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
53
49
  'id': json['id'] == null ? undefined : json['id'],
54
50
  'type': json['type'] == null ? undefined : json['type'],
55
51
  'addresseeName': json['addresseeName'],
56
- 'company': json['company'],
52
+ 'company': json['company'] == null ? undefined : json['company'],
57
53
  'line1': json['line1'],
58
- 'line2': json['line2'],
54
+ 'line2': json['line2'] == null ? undefined : json['line2'],
59
55
  'postcode': json['postcode'],
60
56
  'suburb': json['suburb'],
61
57
  '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']),
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
44
44
  * @type {string}
45
45
  * @memberof StoreFrontendResource
46
46
  */
47
- website?: string | null;
47
+ website: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -28,6 +28,8 @@ function instanceOfStoreFrontendResource(value) {
28
28
  return false;
29
29
  if (!('email' in value) || value['email'] === undefined)
30
30
  return false;
31
+ if (!('website' in value) || value['website'] === undefined)
32
+ return false;
31
33
  if (!('phone' in value) || value['phone'] === undefined)
32
34
  return false;
33
35
  if (!('latitude' in value) || value['latitude'] === undefined)
@@ -54,7 +56,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
54
56
  'siteId': json['siteId'],
55
57
  'name': json['name'],
56
58
  'email': json['email'],
57
- 'website': json['website'] == null ? undefined : json['website'],
59
+ 'website': json['website'],
58
60
  'phone': json['phone'],
59
61
  'address': json['address'] == null ? undefined : json['address'],
60
62
  'latitude': json['latitude'],
@@ -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.2868",
3
+ "version": "0.0.2870",
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;
57
+ line2?: string | null;
58
58
  /**
59
59
  *
60
60
  * @type {string}
@@ -92,9 +92,7 @@ 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;
97
- if (!('line2' in value) || value['line2'] === undefined) return false;
98
96
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
99
97
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
100
98
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -116,9 +114,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
116
114
  'id': json['id'] == null ? undefined : json['id'],
117
115
  'type': json['type'] == null ? undefined : json['type'],
118
116
  'addresseeName': json['addresseeName'],
119
- 'company': json['company'],
117
+ 'company': json['company'] == null ? undefined : json['company'],
120
118
  'line1': json['line1'],
121
- 'line2': json['line2'],
119
+ 'line2': json['line2'] == null ? undefined : json['line2'],
122
120
  'postcode': json['postcode'],
123
121
  'suburb': json['suburb'],
124
122
  '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']),
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
48
48
  * @type {string}
49
49
  * @memberof StoreFrontendResource
50
50
  */
51
- website?: string | null;
51
+ website: string;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -106,6 +106,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
106
106
  if (!('siteId' in value) || value['siteId'] === undefined) return false;
107
107
  if (!('name' in value) || value['name'] === undefined) return false;
108
108
  if (!('email' in value) || value['email'] === undefined) return false;
109
+ if (!('website' in value) || value['website'] === undefined) return false;
109
110
  if (!('phone' in value) || value['phone'] === undefined) return false;
110
111
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
111
112
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
@@ -129,7 +130,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
129
130
  'siteId': json['siteId'],
130
131
  'name': json['name'],
131
132
  'email': json['email'],
132
- 'website': json['website'] == null ? undefined : json['website'],
133
+ 'website': json['website'],
133
134
  'phone': json['phone'],
134
135
  'address': json['address'] == null ? undefined : json['address'],
135
136
  'latitude': json['latitude'],
@@ -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'],