@digital8/lighting-illusions-ts-sdk 0.0.1701 → 0.0.1702

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.1701
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1702
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -638,7 +638,7 @@ and is automatically generated by the
638
638
  [OpenAPI Generator](https://openapi-generator.tech) project:
639
639
 
640
640
  - API version: `1.0.0`
641
- - Package version: `0.0.1701`
641
+ - Package version: `0.0.1702`
642
642
  - Generator version: `7.21.0`
643
643
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
644
644
 
@@ -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'],
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload: string;
66
+ requestPayload?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,8 +37,6 @@ 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;
42
40
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
41
  return false;
44
42
  if (!('site' in value) || value['site'] === undefined)
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
60
58
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
61
59
  'endpoint': json['endpoint'],
62
60
  'responseCode': json['responseCode'],
63
- 'requestPayload': json['requestPayload'],
61
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
64
62
  'responsePayload': json['responsePayload'],
65
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
64
  '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}
@@ -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}
@@ -28,16 +28,12 @@ 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)
36
34
  return false;
37
35
  if (!('longitude' in value) || value['longitude'] === undefined)
38
36
  return false;
39
- if (!('tagLine' in value) || value['tagLine'] === undefined)
40
- return false;
41
37
  if (!('specialDates' in value) || value['specialDates'] === undefined)
42
38
  return false;
43
39
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -56,12 +52,12 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
56
52
  'siteId': json['siteId'],
57
53
  'name': json['name'],
58
54
  'email': json['email'],
59
- 'website': json['website'],
55
+ 'website': json['website'] == null ? undefined : json['website'],
60
56
  'phone': json['phone'],
61
57
  'address': json['address'] == null ? undefined : json['address'],
62
58
  'latitude': json['latitude'],
63
59
  'longitude': json['longitude'],
64
- 'tagLine': json['tagLine'],
60
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
65
61
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
66
62
  'specialDates': json['specialDates'],
67
63
  'suppliers': json['suppliers'],
@@ -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 {string}
@@ -35,8 +35,6 @@ 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;
40
38
  return true;
41
39
  }
42
40
  function StoreListResourceFromJSON(json) {
@@ -55,7 +53,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
55
53
  'latitude': json['latitude'],
56
54
  'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
57
55
  'email': json['email'],
58
- 'website': json['website'],
56
+ 'website': json['website'] == null ? undefined : json['website'],
59
57
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
60
58
  };
61
59
  }
@@ -60,7 +60,7 @@ export interface StoreResource {
60
60
  * @type {string}
61
61
  * @memberof StoreResource
62
62
  */
63
- tagLine?: string | null;
63
+ tagLine: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -72,7 +72,7 @@ export interface StoreResource {
72
72
  * @type {string}
73
73
  * @memberof StoreResource
74
74
  */
75
- website?: string | null;
75
+ website: string;
76
76
  /**
77
77
  *
78
78
  * @type {string}
@@ -36,8 +36,12 @@ 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;
39
41
  if (!('email' in value) || value['email'] === undefined)
40
42
  return false;
43
+ if (!('website' in value) || value['website'] === undefined)
44
+ return false;
41
45
  if (!('suppliers' in value) || value['suppliers'] === undefined)
42
46
  return false;
43
47
  if (!('address' in value) || value['address'] === undefined)
@@ -60,9 +64,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
60
64
  'phone': json['phone'],
61
65
  'longitude': json['longitude'],
62
66
  'latitude': json['latitude'],
63
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
67
+ 'tagLine': json['tag_line'],
64
68
  'email': json['email'],
65
- 'website': json['website'] == null ? undefined : json['website'],
69
+ 'website': json['website'],
66
70
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
67
71
  'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
68
72
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1701",
3
+ "version": "0.0.1702",
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'],
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
77
+ requestPayload?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,7 +106,6 @@ 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;
110
109
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
111
110
  if (!('site' in value) || value['site'] === undefined) return false;
112
111
  return true;
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
129
128
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
130
129
  'endpoint': json['endpoint'],
131
130
  'responseCode': json['responseCode'],
132
- 'requestPayload': json['requestPayload'],
131
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
133
132
  'responsePayload': json['responsePayload'],
134
133
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
135
134
  '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}
@@ -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}
@@ -106,11 +106,9 @@ 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;
113
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
114
112
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
115
113
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
116
114
  return true;
@@ -130,12 +128,12 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
130
128
  'siteId': json['siteId'],
131
129
  'name': json['name'],
132
130
  'email': json['email'],
133
- 'website': json['website'],
131
+ 'website': json['website'] == null ? undefined : json['website'],
134
132
  'phone': json['phone'],
135
133
  'address': json['address'] == null ? undefined : json['address'],
136
134
  'latitude': json['latitude'],
137
135
  'longitude': json['longitude'],
138
- 'tagLine': json['tagLine'],
136
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
139
137
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
140
138
  'specialDates': json['specialDates'],
141
139
  'suppliers': json['suppliers'],
@@ -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 {string}
@@ -99,7 +99,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
99
99
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
100
100
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
101
101
  if (!('email' in value) || value['email'] === undefined) return false;
102
- if (!('website' in value) || value['website'] === undefined) return false;
103
102
  return true;
104
103
  }
105
104
 
@@ -121,7 +120,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
121
120
  'latitude': json['latitude'],
122
121
  'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
123
122
  'email': json['email'],
124
- 'website': json['website'],
123
+ 'website': json['website'] == null ? undefined : json['website'],
125
124
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
126
125
  };
127
126
  }
@@ -89,7 +89,7 @@ export interface StoreResource {
89
89
  * @type {string}
90
90
  * @memberof StoreResource
91
91
  */
92
- tagLine?: string | null;
92
+ tagLine: string;
93
93
  /**
94
94
  *
95
95
  * @type {string}
@@ -101,7 +101,7 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website?: string | null;
104
+ website: string;
105
105
  /**
106
106
  *
107
107
  * @type {string}
@@ -137,7 +137,9 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
137
137
  if (!('phone' in value) || value['phone'] === undefined) return false;
138
138
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
139
139
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
140
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
140
141
  if (!('email' in value) || value['email'] === undefined) return false;
142
+ if (!('website' in value) || value['website'] === undefined) return false;
141
143
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
142
144
  if (!('address' in value) || value['address'] === undefined) return false;
143
145
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
@@ -160,9 +162,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
160
162
  'phone': json['phone'],
161
163
  'longitude': json['longitude'],
162
164
  'latitude': json['latitude'],
163
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
165
+ 'tagLine': json['tag_line'],
164
166
  'email': json['email'],
165
- 'website': json['website'] == null ? undefined : json['website'],
167
+ 'website': json['website'],
166
168
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
167
169
  'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
168
170
  'address': AddressResourceFromJSON(json['address']),