@digital8/lighting-illusions-ts-sdk 0.0.1794 → 0.0.1795

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.1794
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1795
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -707,7 +707,7 @@ and is automatically generated by the
707
707
  [OpenAPI Generator](https://openapi-generator.tech) project:
708
708
 
709
709
  - API version: `1.0.0`
710
- - Package version: `0.0.1794`
710
+ - Package version: `0.0.1795`
711
711
  - Generator version: `7.21.0`
712
712
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
713
713
 
@@ -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 | null;
41
+ line2: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -26,6 +26,8 @@ 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;
29
31
  if (!('postcode' in value) || value['postcode'] === undefined)
30
32
  return false;
31
33
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -49,7 +51,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
49
51
  'id': json['id'] == null ? undefined : json['id'],
50
52
  'company': json['company'],
51
53
  'line1': json['line_1'],
52
- 'line2': json['line_2'] == null ? undefined : json['line_2'],
54
+ 'line2': json['line_2'],
53
55
  'postcode': json['postcode'],
54
56
  'suburb': json['suburb'],
55
57
  'country': json['country'],
@@ -57,7 +57,7 @@ export interface StoreListResource {
57
57
  * @type {string}
58
58
  * @memberof StoreListResource
59
59
  */
60
- tagLine: string;
60
+ tagLine?: string | null;
61
61
  /**
62
62
  *
63
63
  * @type {string}
@@ -33,8 +33,6 @@ 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;
38
36
  if (!('email' in value) || value['email'] === undefined)
39
37
  return false;
40
38
  return true;
@@ -53,7 +51,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
53
51
  'phone': json['phone'],
54
52
  'longitude': json['longitude'],
55
53
  'latitude': json['latitude'],
56
- 'tagLine': json['tag_line'],
54
+ 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
57
55
  'email': json['email'],
58
56
  'website': json['website'] == null ? undefined : json['website'],
59
57
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
@@ -60,7 +60,7 @@ export interface StoreResource {
60
60
  * @type {string}
61
61
  * @memberof StoreResource
62
62
  */
63
- tagLine: string;
63
+ tagLine?: string | null;
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;
75
+ website?: string | null;
76
76
  /**
77
77
  *
78
78
  * @type {string}
@@ -36,12 +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;
41
39
  if (!('email' in value) || value['email'] === undefined)
42
40
  return false;
43
- if (!('website' in value) || value['website'] === undefined)
44
- return false;
45
41
  if (!('suppliers' in value) || value['suppliers'] === undefined)
46
42
  return false;
47
43
  if (!('address' in value) || value['address'] === undefined)
@@ -64,9 +60,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
64
60
  'phone': json['phone'],
65
61
  'longitude': json['longitude'],
66
62
  'latitude': json['latitude'],
67
- 'tagLine': json['tag_line'],
63
+ 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
68
64
  'email': json['email'],
69
- 'website': json['website'],
65
+ 'website': json['website'] == null ? undefined : json['website'],
70
66
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
71
67
  'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
72
68
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
35
35
  hours: string;
36
36
  /**
37
37
  *
38
- * @type {object}
38
+ * @type {string}
39
39
  * @memberof StoreSpecialDateFrontendResource
40
40
  */
41
- date: object;
41
+ date?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {boolean}
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
26
26
  return false;
27
27
  if (!('hours' in value) || value['hours'] === undefined)
28
28
  return false;
29
- if (!('date' in value) || value['date'] === undefined)
30
- return false;
31
29
  if (!('closed' in value) || value['closed'] === undefined)
32
30
  return false;
33
31
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
@@ -47,7 +45,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
47
45
  'id': json['id'] == null ? undefined : json['id'],
48
46
  'name': json['name'],
49
47
  'hours': json['hours'],
50
- 'date': json['date'],
48
+ 'date': json['date'] == null ? undefined : json['date'],
51
49
  'closed': json['closed'],
52
50
  'displayStartDate': json['displayStartDate'],
53
51
  'displayEndDate': json['displayEndDate'],
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | object
12
+ `date` | string
13
13
  `closed` | boolean
14
14
  `displayStartDate` | object
15
15
  `displayEndDate` | object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1794",
3
+ "version": "0.0.1795",
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 | null;
45
+ line2: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -81,6 +81,7 @@ 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;
84
85
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
85
86
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
86
87
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -102,7 +103,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
102
103
  'id': json['id'] == null ? undefined : json['id'],
103
104
  'company': json['company'],
104
105
  'line1': json['line_1'],
105
- 'line2': json['line_2'] == null ? undefined : json['line_2'],
106
+ 'line2': json['line_2'],
106
107
  'postcode': json['postcode'],
107
108
  'suburb': json['suburb'],
108
109
  'country': json['country'],
@@ -68,7 +68,7 @@ export interface StoreListResource {
68
68
  * @type {string}
69
69
  * @memberof StoreListResource
70
70
  */
71
- tagLine: string;
71
+ tagLine?: string | null;
72
72
  /**
73
73
  *
74
74
  * @type {string}
@@ -98,7 +98,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
98
98
  if (!('phone' in value) || value['phone'] === undefined) return false;
99
99
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
100
100
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
101
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
102
101
  if (!('email' in value) || value['email'] === undefined) return false;
103
102
  return true;
104
103
  }
@@ -119,7 +118,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
119
118
  'phone': json['phone'],
120
119
  'longitude': json['longitude'],
121
120
  'latitude': json['latitude'],
122
- 'tagLine': json['tag_line'],
121
+ 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
123
122
  'email': json['email'],
124
123
  'website': json['website'] == null ? undefined : json['website'],
125
124
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
@@ -89,7 +89,7 @@ export interface StoreResource {
89
89
  * @type {string}
90
90
  * @memberof StoreResource
91
91
  */
92
- tagLine: string;
92
+ tagLine?: string | null;
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;
104
+ website?: string | null;
105
105
  /**
106
106
  *
107
107
  * @type {string}
@@ -137,9 +137,7 @@ 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;
141
140
  if (!('email' in value) || value['email'] === undefined) return false;
142
- if (!('website' in value) || value['website'] === undefined) return false;
143
141
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
144
142
  if (!('address' in value) || value['address'] === undefined) return false;
145
143
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
@@ -162,9 +160,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
162
160
  'phone': json['phone'],
163
161
  'longitude': json['longitude'],
164
162
  'latitude': json['latitude'],
165
- 'tagLine': json['tag_line'],
163
+ 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
166
164
  'email': json['email'],
167
- 'website': json['website'],
165
+ 'website': json['website'] == null ? undefined : json['website'],
168
166
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
169
167
  'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
170
168
  'address': AddressResourceFromJSON(json['address']),
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {object}
42
+ * @type {string}
43
43
  * @memberof StoreSpecialDateFrontendResource
44
44
  */
45
- date: object;
45
+ date?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,7 +69,6 @@ export interface StoreSpecialDateFrontendResource {
69
69
  export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
70
70
  if (!('name' in value) || value['name'] === undefined) return false;
71
71
  if (!('hours' in value) || value['hours'] === undefined) return false;
72
- if (!('date' in value) || value['date'] === undefined) return false;
73
72
  if (!('closed' in value) || value['closed'] === undefined) return false;
74
73
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
75
74
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -89,7 +88,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
89
88
  'id': json['id'] == null ? undefined : json['id'],
90
89
  'name': json['name'],
91
90
  'hours': json['hours'],
92
- 'date': json['date'],
91
+ 'date': json['date'] == null ? undefined : json['date'],
93
92
  'closed': json['closed'],
94
93
  'displayStartDate': json['displayStartDate'],
95
94
  'displayEndDate': json['displayEndDate'],