@digital8/lighting-illusions-ts-sdk 0.0.1525 → 0.0.1527

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.1525
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1527
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -605,7 +605,7 @@ and is automatically generated by the
605
605
  [OpenAPI Generator](https://openapi-generator.tech) project:
606
606
 
607
607
  - API version: `1.0.0`
608
- - Package version: `0.0.1525`
608
+ - Package version: `0.0.1527`
609
609
  - Generator version: `7.20.0`
610
610
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
611
611
 
@@ -20,7 +20,7 @@ export interface AddressFrontendResource {
20
20
  * @type {string}
21
21
  * @memberof AddressFrontendResource
22
22
  */
23
- company: string;
23
+ company?: string | null;
24
24
  /**
25
25
  *
26
26
  * @type {string}
@@ -22,8 +22,6 @@ 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;
27
25
  if (!('line1' in value) || value['line1'] === undefined)
28
26
  return false;
29
27
  if (!('postcode' in value) || value['postcode'] === undefined)
@@ -46,7 +44,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
46
44
  return json;
47
45
  }
48
46
  return {
49
- 'company': json['company'],
47
+ 'company': json['company'] == null ? undefined : json['company'],
50
48
  'line1': json['line1'],
51
49
  'line2': json['line2'] == null ? undefined : json['line2'],
52
50
  'postcode': json['postcode'],
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { SupplierFrontendResource } from './SupplierFrontendResource';
13
+ import type { ModelAttributeResource } from './ModelAttributeResource';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -106,6 +107,12 @@ export interface ProductRangeFrontendResource {
106
107
  * @memberof ProductRangeFrontendResource
107
108
  */
108
109
  thumbnail?: string | null;
110
+ /**
111
+ *
112
+ * @type {Array<ModelAttributeResource>}
113
+ * @memberof ProductRangeFrontendResource
114
+ */
115
+ attributes: Array<ModelAttributeResource> | null;
109
116
  }
110
117
  /**
111
118
  * Check if a given object implements the ProductRangeFrontendResource interface.
@@ -19,6 +19,7 @@ exports.ProductRangeFrontendResourceFromJSONTyped = ProductRangeFrontendResource
19
19
  exports.ProductRangeFrontendResourceToJSON = ProductRangeFrontendResourceToJSON;
20
20
  exports.ProductRangeFrontendResourceToJSONTyped = ProductRangeFrontendResourceToJSONTyped;
21
21
  var SupplierFrontendResource_1 = require("./SupplierFrontendResource");
22
+ var ModelAttributeResource_1 = require("./ModelAttributeResource");
22
23
  /**
23
24
  * Check if a given object implements the ProductRangeFrontendResource interface.
24
25
  */
@@ -51,6 +52,8 @@ function instanceOfProductRangeFrontendResource(value) {
51
52
  return false;
52
53
  if (!('assets' in value) || value['assets'] === undefined)
53
54
  return false;
55
+ if (!('attributes' in value) || value['attributes'] === undefined)
56
+ return false;
54
57
  return true;
55
58
  }
56
59
  function ProductRangeFrontendResourceFromJSON(json) {
@@ -76,6 +79,7 @@ function ProductRangeFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
76
79
  'seo': json['seo'],
77
80
  'assets': json['assets'],
78
81
  'thumbnail': json['thumbnail'] == null ? undefined : json['thumbnail'],
82
+ 'attributes': (json['attributes'] == null ? null : json['attributes'].map(ModelAttributeResource_1.ModelAttributeResourceFromJSON)),
79
83
  };
80
84
  }
81
85
  function ProductRangeFrontendResourceToJSON(json) {
@@ -102,5 +106,6 @@ function ProductRangeFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
102
106
  'seo': value['seo'],
103
107
  'assets': value['assets'],
104
108
  'thumbnail': value['thumbnail'],
109
+ 'attributes': (value['attributes'] == null ? null : value['attributes'].map(ModelAttributeResource_1.ModelAttributeResourceToJSON)),
105
110
  };
106
111
  }
@@ -68,7 +68,7 @@ export interface StoreFrontendResource {
68
68
  * @type {string}
69
69
  * @memberof StoreFrontendResource
70
70
  */
71
- tagLine: string;
71
+ tagLine?: string | null;
72
72
  /**
73
73
  *
74
74
  * @type {string}
@@ -34,8 +34,6 @@ function instanceOfStoreFrontendResource(value) {
34
34
  return false;
35
35
  if (!('longitude' in value) || value['longitude'] === undefined)
36
36
  return false;
37
- if (!('tagLine' in value) || value['tagLine'] === undefined)
38
- return false;
39
37
  if (!('specialDates' in value) || value['specialDates'] === undefined)
40
38
  return false;
41
39
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -58,7 +56,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
58
56
  'address': json['address'] == null ? undefined : json['address'],
59
57
  'latitude': json['latitude'],
60
58
  'longitude': json['longitude'],
61
- 'tagLine': json['tagLine'],
59
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
62
60
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
63
61
  'specialDates': json['specialDates'],
64
62
  'suppliers': json['suppliers'],
@@ -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)),
@@ -21,6 +21,7 @@ Name | Type
21
21
  `seo` | object
22
22
  `assets` | object
23
23
  `thumbnail` | string
24
+ `attributes` | [Array&lt;ModelAttributeResource&gt;](ModelAttributeResource.md)
24
25
 
25
26
  ## Example
26
27
 
@@ -44,6 +45,7 @@ const example = {
44
45
  "seo": null,
45
46
  "assets": null,
46
47
  "thumbnail": null,
48
+ "attributes": null,
47
49
  } satisfies ProductRangeFrontendResource
48
50
 
49
51
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1525",
3
+ "version": "0.0.1527",
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;
27
+ company?: string | null;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -73,7 +73,6 @@ 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;
77
76
  if (!('line1' in value) || value['line1'] === undefined) return false;
78
77
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
79
78
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
@@ -93,7 +92,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
93
92
  }
94
93
  return {
95
94
 
96
- 'company': json['company'],
95
+ 'company': json['company'] == null ? undefined : json['company'],
97
96
  'line1': json['line1'],
98
97
  'line2': json['line2'] == null ? undefined : json['line2'],
99
98
  'postcode': json['postcode'],
@@ -20,6 +20,13 @@ import {
20
20
  SupplierFrontendResourceToJSON,
21
21
  SupplierFrontendResourceToJSONTyped,
22
22
  } from './SupplierFrontendResource';
23
+ import type { ModelAttributeResource } from './ModelAttributeResource';
24
+ import {
25
+ ModelAttributeResourceFromJSON,
26
+ ModelAttributeResourceFromJSONTyped,
27
+ ModelAttributeResourceToJSON,
28
+ ModelAttributeResourceToJSONTyped,
29
+ } from './ModelAttributeResource';
23
30
 
24
31
  /**
25
32
  *
@@ -117,6 +124,12 @@ export interface ProductRangeFrontendResource {
117
124
  * @memberof ProductRangeFrontendResource
118
125
  */
119
126
  thumbnail?: string | null;
127
+ /**
128
+ *
129
+ * @type {Array<ModelAttributeResource>}
130
+ * @memberof ProductRangeFrontendResource
131
+ */
132
+ attributes: Array<ModelAttributeResource> | null;
120
133
  }
121
134
 
122
135
  /**
@@ -137,6 +150,7 @@ export function instanceOfProductRangeFrontendResource(value: object): value is
137
150
  if (!('documents' in value) || value['documents'] === undefined) return false;
138
151
  if (!('seo' in value) || value['seo'] === undefined) return false;
139
152
  if (!('assets' in value) || value['assets'] === undefined) return false;
153
+ if (!('attributes' in value) || value['attributes'] === undefined) return false;
140
154
  return true;
141
155
  }
142
156
 
@@ -165,6 +179,7 @@ export function ProductRangeFrontendResourceFromJSONTyped(json: any, ignoreDiscr
165
179
  'seo': json['seo'],
166
180
  'assets': json['assets'],
167
181
  'thumbnail': json['thumbnail'] == null ? undefined : json['thumbnail'],
182
+ 'attributes': (json['attributes'] == null ? null : (json['attributes'] as Array<any>).map(ModelAttributeResourceFromJSON)),
168
183
  };
169
184
  }
170
185
 
@@ -194,6 +209,7 @@ export function ProductRangeFrontendResourceToJSONTyped(value?: ProductRangeFron
194
209
  'seo': value['seo'],
195
210
  'assets': value['assets'],
196
211
  'thumbnail': value['thumbnail'],
212
+ 'attributes': (value['attributes'] == null ? null : (value['attributes'] as Array<any>).map(ModelAttributeResourceToJSON)),
197
213
  };
198
214
  }
199
215
 
@@ -72,7 +72,7 @@ export interface StoreFrontendResource {
72
72
  * @type {string}
73
73
  * @memberof StoreFrontendResource
74
74
  */
75
- tagLine: string;
75
+ tagLine?: string | null;
76
76
  /**
77
77
  *
78
78
  * @type {string}
@@ -103,7 +103,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
103
103
  if (!('phone' in value) || value['phone'] === undefined) return false;
104
104
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
105
105
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
106
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
107
106
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
108
107
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
109
108
  return true;
@@ -127,7 +126,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
127
126
  'address': json['address'] == null ? undefined : json['address'],
128
127
  'latitude': json['latitude'],
129
128
  'longitude': json['longitude'],
130
- 'tagLine': json['tagLine'],
129
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
131
130
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
132
131
  'specialDates': json['specialDates'],
133
132
  'suppliers': json['suppliers'],
@@ -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)),