@digital8/lighting-illusions-ts-sdk 0.0.1471 → 0.0.1472

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.1471
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1472
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.1471`
641
+ - Package version: `0.0.1472`
642
642
  - Generator version: `7.20.0`
643
643
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
644
644
 
@@ -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'],
@@ -57,7 +57,7 @@ export interface StoreListResource {
57
57
  * @type {string}
58
58
  * @memberof StoreListResource
59
59
  */
60
- tagLine?: string | null;
60
+ tagLine: string;
61
61
  /**
62
62
  *
63
63
  * @type {string}
@@ -33,6 +33,8 @@ function instanceOfStoreListResource(value) {
33
33
  return false;
34
34
  if (!('latitude' in value) || value['latitude'] === undefined)
35
35
  return false;
36
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
37
+ return false;
36
38
  if (!('email' in value) || value['email'] === undefined)
37
39
  return false;
38
40
  return true;
@@ -51,7 +53,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
51
53
  'phone': json['phone'],
52
54
  'longitude': json['longitude'],
53
55
  'latitude': json['latitude'],
54
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
56
+ 'tagLine': json['tag_line'],
55
57
  'email': json['email'],
56
58
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
57
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}
@@ -36,6 +36,8 @@ 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;
41
43
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -60,7 +62,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
60
62
  'phone': json['phone'],
61
63
  'longitude': json['longitude'],
62
64
  'latitude': json['latitude'],
63
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
65
+ 'tagLine': json['tag_line'],
64
66
  'email': json['email'],
65
67
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
66
68
  'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1471",
3
+ "version": "0.0.1472",
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 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'],
@@ -68,7 +68,7 @@ export interface StoreListResource {
68
68
  * @type {string}
69
69
  * @memberof StoreListResource
70
70
  */
71
- tagLine?: string | null;
71
+ tagLine: string;
72
72
  /**
73
73
  *
74
74
  * @type {string}
@@ -92,6 +92,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
92
92
  if (!('phone' in value) || value['phone'] === undefined) return false;
93
93
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
94
94
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
95
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
95
96
  if (!('email' in value) || value['email'] === undefined) return false;
96
97
  return true;
97
98
  }
@@ -112,7 +113,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
112
113
  'phone': json['phone'],
113
114
  'longitude': json['longitude'],
114
115
  'latitude': json['latitude'],
115
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
116
+ 'tagLine': json['tag_line'],
116
117
  'email': json['email'],
117
118
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
118
119
  };
@@ -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}
@@ -131,6 +131,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
131
131
  if (!('phone' in value) || value['phone'] === undefined) return false;
132
132
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
133
133
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
134
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
134
135
  if (!('email' in value) || value['email'] === undefined) return false;
135
136
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
136
137
  if (!('address' in value) || value['address'] === undefined) return false;
@@ -154,7 +155,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
154
155
  'phone': json['phone'],
155
156
  'longitude': json['longitude'],
156
157
  'latitude': json['latitude'],
157
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
158
+ 'tagLine': json['tag_line'],
158
159
  'email': json['email'],
159
160
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
160
161
  'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),