@digital8/lighting-illusions-ts-sdk 0.0.1678 → 0.0.1680

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.1678
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1680
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -685,7 +685,7 @@ and is automatically generated by the
685
685
  [OpenAPI Generator](https://openapi-generator.tech) project:
686
686
 
687
687
  - API version: `1.0.0`
688
- - Package version: `0.0.1678`
688
+ - Package version: `0.0.1680`
689
689
  - Generator version: `7.21.0`
690
690
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
691
691
 
@@ -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}
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
32
32
  * @type {string}
33
33
  * @memberof AddressFrontendResource
34
34
  */
35
- line2?: string | null;
35
+ line2: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -22,8 +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 (!('company' in value) || value['company'] === undefined)
26
+ return false;
25
27
  if (!('line1' in value) || value['line1'] === undefined)
26
28
  return false;
29
+ if (!('line2' in value) || value['line2'] === undefined)
30
+ return false;
27
31
  if (!('postcode' in value) || value['postcode'] === undefined)
28
32
  return false;
29
33
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -44,9 +48,9 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
44
48
  return json;
45
49
  }
46
50
  return {
47
- 'company': json['company'] == null ? undefined : json['company'],
51
+ 'company': json['company'],
48
52
  'line1': json['line1'],
49
- 'line2': json['line2'] == null ? undefined : json['line2'],
53
+ 'line2': json['line2'],
50
54
  'postcode': json['postcode'],
51
55
  'suburb': json['suburb'],
52
56
  'country': json['country'],
@@ -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}
@@ -40,6 +40,8 @@ function instanceOfStoreResource(value) {
40
40
  return false;
41
41
  if (!('email' in value) || value['email'] === undefined)
42
42
  return false;
43
+ if (!('website' in value) || value['website'] === undefined)
44
+ return false;
43
45
  if (!('suppliers' in value) || value['suppliers'] === undefined)
44
46
  return false;
45
47
  if (!('address' in value) || value['address'] === undefined)
@@ -64,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
64
66
  'latitude': json['latitude'],
65
67
  'tagLine': json['tag_line'],
66
68
  'email': json['email'],
67
- 'website': json['website'] == null ? undefined : json['website'],
69
+ 'website': json['website'],
68
70
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
69
71
  'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
70
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.1678",
3
+ "version": "0.0.1680",
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}
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
36
36
  * @type {string}
37
37
  * @memberof AddressFrontendResource
38
38
  */
39
- line2?: string | null;
39
+ line2: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -73,7 +73,9 @@ 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;
78
+ if (!('line2' in value) || value['line2'] === undefined) return false;
77
79
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
78
80
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
79
81
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -92,9 +94,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
92
94
  }
93
95
  return {
94
96
 
95
- 'company': json['company'] == null ? undefined : json['company'],
97
+ 'company': json['company'],
96
98
  'line1': json['line1'],
97
- 'line2': json['line2'] == null ? undefined : json['line2'],
99
+ 'line2': json['line2'],
98
100
  'postcode': json['postcode'],
99
101
  'suburb': json['suburb'],
100
102
  'country': json['country'],
@@ -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}
@@ -139,6 +139,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
139
139
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
140
140
  if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
141
141
  if (!('email' in value) || value['email'] === undefined) return false;
142
+ if (!('website' in value) || value['website'] === undefined) return false;
142
143
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
143
144
  if (!('address' in value) || value['address'] === undefined) return false;
144
145
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
@@ -163,7 +164,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
163
164
  'latitude': json['latitude'],
164
165
  'tagLine': json['tag_line'],
165
166
  'email': json['email'],
166
- 'website': json['website'] == null ? undefined : json['website'],
167
+ 'website': json['website'],
167
168
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
168
169
  'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
169
170
  'address': AddressResourceFromJSON(json['address']),