@digital8/lighting-illusions-ts-sdk 0.0.2204 → 0.0.2206

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.2204
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.2206
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -804,7 +804,7 @@ and is automatically generated by the
804
804
  [OpenAPI Generator](https://openapi-generator.tech) project:
805
805
 
806
806
  - API version: `1.0.0`
807
- - Package version: `0.0.2204`
807
+ - Package version: `0.0.2206`
808
808
  - Generator version: `7.22.0`
809
809
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
810
810
 
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
32
32
  * @type {string}
33
33
  * @memberof AddressFrontendResource
34
34
  */
35
- line2: string;
35
+ line2?: string | null;
36
36
  /**
37
37
  *
38
38
  * @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)
@@ -50,7 +48,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
50
48
  return {
51
49
  'company': json['company'],
52
50
  'line1': json['line1'],
53
- 'line2': json['line2'],
51
+ 'line2': json['line2'] == null ? undefined : json['line2'],
54
52
  'postcode': json['postcode'],
55
53
  'suburb': json['suburb'],
56
54
  'country': json['country'],
@@ -38,7 +38,7 @@ export interface AddressResource {
38
38
  * @type {string}
39
39
  * @memberof AddressResource
40
40
  */
41
- line2: string;
41
+ line2?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -26,8 +26,6 @@ function instanceOfAddressResource(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)
@@ -51,7 +49,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
51
49
  'id': json['id'] == null ? undefined : json['id'],
52
50
  'company': json['company'],
53
51
  'line1': json['line_1'],
54
- 'line2': json['line_2'],
52
+ 'line2': json['line_2'] == null ? undefined : json['line_2'],
55
53
  'postcode': json['postcode'],
56
54
  'suburb': json['suburb'],
57
55
  'country': json['country'],
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload?: string | null;
66
+ requestPayload: string;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
+ return false;
40
42
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
41
43
  return false;
42
44
  if (!('site' in value) || value['site'] === undefined)
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
59
61
  'endpoint': json['endpoint'],
60
62
  'responseCode': json['responseCode'],
61
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
63
+ 'requestPayload': json['requestPayload'],
62
64
  'responsePayload': json['responsePayload'],
63
65
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
64
66
  '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;
47
+ website?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -28,8 +28,6 @@ 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;
33
31
  if (!('phone' in value) || value['phone'] === undefined)
34
32
  return false;
35
33
  if (!('latitude' in value) || value['latitude'] === undefined)
@@ -56,7 +54,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
56
54
  'siteId': json['siteId'],
57
55
  'name': json['name'],
58
56
  'email': json['email'],
59
- 'website': json['website'],
57
+ 'website': json['website'] == null ? undefined : json['website'],
60
58
  'phone': json['phone'],
61
59
  'address': json['address'] == null ? undefined : json['address'],
62
60
  'latitude': json['latitude'],
@@ -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}
@@ -35,6 +35,8 @@ function instanceOfStoreListResource(value) {
35
35
  return false;
36
36
  if (!('email' in value) || value['email'] === undefined)
37
37
  return false;
38
+ if (!('website' in value) || value['website'] === undefined)
39
+ return false;
38
40
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
39
41
  return false;
40
42
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -57,7 +59,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
57
59
  'latitude': json['latitude'],
58
60
  'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
59
61
  'email': json['email'],
60
- 'website': json['website'] == null ? undefined : json['website'],
62
+ 'website': json['website'],
61
63
  'netsuiteId': json['netsuiteId'],
62
64
  'displayNetsuiteId': json['displayNetsuiteId'],
63
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.2204",
3
+ "version": "0.0.2206",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
36
36
  * @type {string}
37
37
  * @memberof AddressFrontendResource
38
38
  */
39
- line2: string;
39
+ line2?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -75,7 +75,6 @@ export interface AddressFrontendResource {
75
75
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
76
76
  if (!('company' in value) || value['company'] === undefined) return false;
77
77
  if (!('line1' in value) || value['line1'] === undefined) return false;
78
- if (!('line2' in value) || value['line2'] === undefined) return false;
79
78
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
80
79
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
81
80
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -96,7 +95,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
96
95
 
97
96
  'company': json['company'],
98
97
  'line1': json['line1'],
99
- 'line2': json['line2'],
98
+ 'line2': json['line2'] == null ? undefined : json['line2'],
100
99
  'postcode': json['postcode'],
101
100
  'suburb': json['suburb'],
102
101
  'country': json['country'],
@@ -42,7 +42,7 @@ export interface AddressResource {
42
42
  * @type {string}
43
43
  * @memberof AddressResource
44
44
  */
45
- line2: string;
45
+ line2?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -81,7 +81,6 @@ export interface AddressResource {
81
81
  export function instanceOfAddressResource(value: object): value is AddressResource {
82
82
  if (!('company' in value) || value['company'] === undefined) return false;
83
83
  if (!('line1' in value) || value['line1'] === undefined) return false;
84
- if (!('line2' in value) || value['line2'] === undefined) return false;
85
84
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
86
85
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
87
86
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -103,7 +102,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
103
102
  'id': json['id'] == null ? undefined : json['id'],
104
103
  'company': json['company'],
105
104
  'line1': json['line_1'],
106
- 'line2': json['line_2'],
105
+ 'line2': json['line_2'] == null ? undefined : json['line_2'],
107
106
  'postcode': json['postcode'],
108
107
  'suburb': json['suburb'],
109
108
  'country': json['country'],
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload?: string | null;
77
+ requestPayload: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
109
110
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
110
111
  if (!('site' in value) || value['site'] === undefined) return false;
111
112
  return true;
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
128
129
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
129
130
  'endpoint': json['endpoint'],
130
131
  'responseCode': json['responseCode'],
131
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
132
+ 'requestPayload': json['requestPayload'],
132
133
  'responsePayload': json['responsePayload'],
133
134
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
134
135
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
48
48
  * @type {string}
49
49
  * @memberof StoreFrontendResource
50
50
  */
51
- website: string;
51
+ website?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -106,7 +106,6 @@ 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;
110
109
  if (!('phone' in value) || value['phone'] === undefined) return false;
111
110
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
112
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
@@ -130,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
130
129
  'siteId': json['siteId'],
131
130
  'name': json['name'],
132
131
  'email': json['email'],
133
- 'website': json['website'],
132
+ 'website': json['website'] == null ? undefined : json['website'],
134
133
  'phone': json['phone'],
135
134
  'address': json['address'] == null ? undefined : json['address'],
136
135
  'latitude': json['latitude'],
@@ -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}
@@ -111,6 +111,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
111
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
112
112
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
113
113
  if (!('email' in value) || value['email'] === undefined) return false;
114
+ if (!('website' in value) || value['website'] === undefined) return false;
114
115
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
115
116
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
116
117
  return true;
@@ -134,7 +135,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
134
135
  'latitude': json['latitude'],
135
136
  'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
136
137
  'email': json['email'],
137
- 'website': json['website'] == null ? undefined : json['website'],
138
+ 'website': json['website'],
138
139
  'netsuiteId': json['netsuiteId'],
139
140
  'displayNetsuiteId': json['displayNetsuiteId'],
140
141
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],