@digital8/lighting-illusions-ts-sdk 0.0.1565 → 0.0.1567
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/.openapi-generator/FILES +4 -40
- package/README.md +4 -26
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GlobalSearchProductResource.d.ts +0 -6
- package/dist/models/GlobalSearchProductResource.js +0 -4
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -1
- package/dist/models/ModelAttributeFrontendResource.d.ts +38 -0
- package/dist/models/ModelAttributeFrontendResource.js +55 -0
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.js +50 -0
- package/dist/models/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -2
- package/dist/models/ProductRangeFrontendResource.d.ts +7 -0
- package/dist/models/ProductRangeFrontendResource.js +5 -0
- package/dist/models/ProductSearchResultResource.d.ts +0 -6
- package/dist/models/ProductSearchResultResource.js +0 -4
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/index.d.ts +2 -19
- package/dist/models/index.js +2 -19
- package/docs/GlobalSearchProductResource.md +0 -2
- package/docs/{ProductRegistrationAssetType.md → ModelAttributeFrontendResource.md} +8 -4
- package/docs/{ProductRegistrationResourceArrayResponse.md → ModelAttributeFrontendResourceArrayResponse.md} +5 -5
- package/docs/ProductChildListResource.md +0 -2
- package/docs/ProductRangeFrontendResource.md +2 -0
- package/docs/ProductSearchResultResource.md +0 -2
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GlobalSearchProductResource.ts +0 -9
- package/src/models/IndexProductChildRequest.ts +0 -1
- package/src/models/ModelAttributeFrontendResource.ts +75 -0
- package/src/models/ModelAttributeFrontendResourceArrayResponse.ts +73 -0
- package/src/models/ProductChildListResource.ts +0 -8
- package/src/models/ProductRangeFrontendResource.ts +16 -0
- package/src/models/ProductSearchResultResource.ts +0 -9
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/index.ts +2 -19
- package/dist/apis/ProductRegistrationApi.d.ts +0 -95
- package/dist/apis/ProductRegistrationApi.js +0 -377
- package/dist/models/GetAllProductRegistrationRequest.d.ts +0 -88
- package/dist/models/GetAllProductRegistrationRequest.js +0 -80
- package/dist/models/IndexProductRegistrationRequest.d.ts +0 -131
- package/dist/models/IndexProductRegistrationRequest.js +0 -98
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +0 -103
- package/dist/models/ListAssetsProductRegistrationRequest.js +0 -83
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +0 -57
- package/dist/models/ProductRegistrationAssetResource.d.ts +0 -45
- package/dist/models/ProductRegistrationAssetResource.js +0 -58
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationAssetType.d.ts +0 -25
- package/dist/models/ProductRegistrationAssetType.js +0 -51
- package/dist/models/ProductRegistrationCustomerResource.d.ts +0 -62
- package/dist/models/ProductRegistrationCustomerResource.js +0 -65
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationListResource.d.ts +0 -57
- package/dist/models/ProductRegistrationListResource.js +0 -64
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationLiteResource.d.ts +0 -38
- package/dist/models/ProductRegistrationLiteResource.js +0 -53
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationProductChildResource.d.ts +0 -50
- package/dist/models/ProductRegistrationProductChildResource.js +0 -63
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationResource.d.ts +0 -90
- package/dist/models/ProductRegistrationResource.js +0 -81
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationResourceArrayResponse.js +0 -50
- package/docs/GetAllProductRegistrationRequest.md +0 -46
- package/docs/IndexProductRegistrationRequest.md +0 -58
- package/docs/ListAssetsProductRegistrationRequest.md +0 -52
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +0 -36
- package/docs/PaginatedProductRegistrationListResourceResponse.md +0 -36
- package/docs/PaginatedProductRegistrationResourceResponse.md +0 -36
- package/docs/ProductRegistrationApi.md +0 -344
- package/docs/ProductRegistrationAssetResource.md +0 -38
- package/docs/ProductRegistrationAssetResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationCustomerResource.md +0 -44
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationListResource.md +0 -42
- package/docs/ProductRegistrationListResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationLiteResource.md +0 -36
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationProductChildResource.md +0 -40
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationResource.md +0 -52
- package/src/apis/ProductRegistrationApi.ts +0 -297
- package/src/models/GetAllProductRegistrationRequest.ts +0 -137
- package/src/models/IndexProductRegistrationRequest.ts +0 -193
- package/src/models/ListAssetsProductRegistrationRequest.ts +0 -158
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +0 -90
- package/src/models/ProductRegistrationAssetResource.ts +0 -91
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationAssetType.ts +0 -53
- package/src/models/ProductRegistrationCustomerResource.ts +0 -108
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationListResource.ts +0 -108
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationLiteResource.ts +0 -74
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationProductChildResource.ts +0 -93
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationResource.ts +0 -171
- package/src/models/ProductRegistrationResourceArrayResponse.ts +0 -73
|
@@ -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']
|
|
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)),
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
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'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -90,7 +90,6 @@ export * from './GetAllOverlayTemplateRequest';
|
|
|
90
90
|
export * from './GetAllProductCategoryRequest';
|
|
91
91
|
export * from './GetAllProductChildRequest';
|
|
92
92
|
export * from './GetAllProductRangeRequest';
|
|
93
|
-
export * from './GetAllProductRegistrationRequest';
|
|
94
93
|
export * from './GetAllProductRequest';
|
|
95
94
|
export * from './GetAllProductTypeRequest';
|
|
96
95
|
export * from './GetAllStoreRequest';
|
|
@@ -118,7 +117,6 @@ export * from './IndexOverlayTemplateRequest';
|
|
|
118
117
|
export * from './IndexProductCategoryRequest';
|
|
119
118
|
export * from './IndexProductChildRequest';
|
|
120
119
|
export * from './IndexProductRangeRequest';
|
|
121
|
-
export * from './IndexProductRegistrationRequest';
|
|
122
120
|
export * from './IndexProductRequest';
|
|
123
121
|
export * from './IndexProductTypeRequest';
|
|
124
122
|
export * from './IndexSiteNotificationRequest';
|
|
@@ -132,7 +130,8 @@ export * from './LabelLiteResource';
|
|
|
132
130
|
export * from './LabelLiteResourceArrayResponse';
|
|
133
131
|
export * from './LabelResource';
|
|
134
132
|
export * from './LabelResourceArrayResponse';
|
|
135
|
-
export * from './
|
|
133
|
+
export * from './ModelAttributeFrontendResource';
|
|
134
|
+
export * from './ModelAttributeFrontendResourceArrayResponse';
|
|
136
135
|
export * from './ModelAttributeListResource';
|
|
137
136
|
export * from './ModelAttributeListResourceArrayResponse';
|
|
138
137
|
export * from './ModelAttributeResource';
|
|
@@ -179,9 +178,6 @@ export * from './PaginatedProductRangeListResourceResponse';
|
|
|
179
178
|
export * from './PaginatedProductRangeLiteResourceResponse';
|
|
180
179
|
export * from './PaginatedProductRangeResourceResponse';
|
|
181
180
|
export * from './PaginatedProductRangeSearchResultResourceResponse';
|
|
182
|
-
export * from './PaginatedProductRegistrationAssetResourceResponse';
|
|
183
|
-
export * from './PaginatedProductRegistrationListResourceResponse';
|
|
184
|
-
export * from './PaginatedProductRegistrationResourceResponse';
|
|
185
181
|
export * from './PaginatedProductResourceResponse';
|
|
186
182
|
export * from './PaginatedProductSearchResultResourceResponse';
|
|
187
183
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
@@ -264,19 +260,6 @@ export * from './ProductRangeSiteDetailResource';
|
|
|
264
260
|
export * from './ProductRangeSiteDetailResourceArrayResponse';
|
|
265
261
|
export * from './ProductRangeSortBy';
|
|
266
262
|
export * from './ProductRating';
|
|
267
|
-
export * from './ProductRegistrationAssetResource';
|
|
268
|
-
export * from './ProductRegistrationAssetResourceArrayResponse';
|
|
269
|
-
export * from './ProductRegistrationAssetType';
|
|
270
|
-
export * from './ProductRegistrationCustomerResource';
|
|
271
|
-
export * from './ProductRegistrationCustomerResourceArrayResponse';
|
|
272
|
-
export * from './ProductRegistrationListResource';
|
|
273
|
-
export * from './ProductRegistrationListResourceArrayResponse';
|
|
274
|
-
export * from './ProductRegistrationLiteResource';
|
|
275
|
-
export * from './ProductRegistrationLiteResourceArrayResponse';
|
|
276
|
-
export * from './ProductRegistrationProductChildResource';
|
|
277
|
-
export * from './ProductRegistrationProductChildResourceArrayResponse';
|
|
278
|
-
export * from './ProductRegistrationResource';
|
|
279
|
-
export * from './ProductRegistrationResourceArrayResponse';
|
|
280
263
|
export * from './ProductResource';
|
|
281
264
|
export * from './ProductResourceArrayResponse';
|
|
282
265
|
export * from './ProductSearchResponseResource';
|
package/dist/models/index.js
CHANGED
|
@@ -108,7 +108,6 @@ __exportStar(require("./GetAllOverlayTemplateRequest"), exports);
|
|
|
108
108
|
__exportStar(require("./GetAllProductCategoryRequest"), exports);
|
|
109
109
|
__exportStar(require("./GetAllProductChildRequest"), exports);
|
|
110
110
|
__exportStar(require("./GetAllProductRangeRequest"), exports);
|
|
111
|
-
__exportStar(require("./GetAllProductRegistrationRequest"), exports);
|
|
112
111
|
__exportStar(require("./GetAllProductRequest"), exports);
|
|
113
112
|
__exportStar(require("./GetAllProductTypeRequest"), exports);
|
|
114
113
|
__exportStar(require("./GetAllStoreRequest"), exports);
|
|
@@ -136,7 +135,6 @@ __exportStar(require("./IndexOverlayTemplateRequest"), exports);
|
|
|
136
135
|
__exportStar(require("./IndexProductCategoryRequest"), exports);
|
|
137
136
|
__exportStar(require("./IndexProductChildRequest"), exports);
|
|
138
137
|
__exportStar(require("./IndexProductRangeRequest"), exports);
|
|
139
|
-
__exportStar(require("./IndexProductRegistrationRequest"), exports);
|
|
140
138
|
__exportStar(require("./IndexProductRequest"), exports);
|
|
141
139
|
__exportStar(require("./IndexProductTypeRequest"), exports);
|
|
142
140
|
__exportStar(require("./IndexSiteNotificationRequest"), exports);
|
|
@@ -150,7 +148,8 @@ __exportStar(require("./LabelLiteResource"), exports);
|
|
|
150
148
|
__exportStar(require("./LabelLiteResourceArrayResponse"), exports);
|
|
151
149
|
__exportStar(require("./LabelResource"), exports);
|
|
152
150
|
__exportStar(require("./LabelResourceArrayResponse"), exports);
|
|
153
|
-
__exportStar(require("./
|
|
151
|
+
__exportStar(require("./ModelAttributeFrontendResource"), exports);
|
|
152
|
+
__exportStar(require("./ModelAttributeFrontendResourceArrayResponse"), exports);
|
|
154
153
|
__exportStar(require("./ModelAttributeListResource"), exports);
|
|
155
154
|
__exportStar(require("./ModelAttributeListResourceArrayResponse"), exports);
|
|
156
155
|
__exportStar(require("./ModelAttributeResource"), exports);
|
|
@@ -197,9 +196,6 @@ __exportStar(require("./PaginatedProductRangeListResourceResponse"), exports);
|
|
|
197
196
|
__exportStar(require("./PaginatedProductRangeLiteResourceResponse"), exports);
|
|
198
197
|
__exportStar(require("./PaginatedProductRangeResourceResponse"), exports);
|
|
199
198
|
__exportStar(require("./PaginatedProductRangeSearchResultResourceResponse"), exports);
|
|
200
|
-
__exportStar(require("./PaginatedProductRegistrationAssetResourceResponse"), exports);
|
|
201
|
-
__exportStar(require("./PaginatedProductRegistrationListResourceResponse"), exports);
|
|
202
|
-
__exportStar(require("./PaginatedProductRegistrationResourceResponse"), exports);
|
|
203
199
|
__exportStar(require("./PaginatedProductResourceResponse"), exports);
|
|
204
200
|
__exportStar(require("./PaginatedProductSearchResultResourceResponse"), exports);
|
|
205
201
|
__exportStar(require("./PaginatedProductTypeListResourceResponse"), exports);
|
|
@@ -282,19 +278,6 @@ __exportStar(require("./ProductRangeSiteDetailResource"), exports);
|
|
|
282
278
|
__exportStar(require("./ProductRangeSiteDetailResourceArrayResponse"), exports);
|
|
283
279
|
__exportStar(require("./ProductRangeSortBy"), exports);
|
|
284
280
|
__exportStar(require("./ProductRating"), exports);
|
|
285
|
-
__exportStar(require("./ProductRegistrationAssetResource"), exports);
|
|
286
|
-
__exportStar(require("./ProductRegistrationAssetResourceArrayResponse"), exports);
|
|
287
|
-
__exportStar(require("./ProductRegistrationAssetType"), exports);
|
|
288
|
-
__exportStar(require("./ProductRegistrationCustomerResource"), exports);
|
|
289
|
-
__exportStar(require("./ProductRegistrationCustomerResourceArrayResponse"), exports);
|
|
290
|
-
__exportStar(require("./ProductRegistrationListResource"), exports);
|
|
291
|
-
__exportStar(require("./ProductRegistrationListResourceArrayResponse"), exports);
|
|
292
|
-
__exportStar(require("./ProductRegistrationLiteResource"), exports);
|
|
293
|
-
__exportStar(require("./ProductRegistrationLiteResourceArrayResponse"), exports);
|
|
294
|
-
__exportStar(require("./ProductRegistrationProductChildResource"), exports);
|
|
295
|
-
__exportStar(require("./ProductRegistrationProductChildResourceArrayResponse"), exports);
|
|
296
|
-
__exportStar(require("./ProductRegistrationResource"), exports);
|
|
297
|
-
__exportStar(require("./ProductRegistrationResourceArrayResponse"), exports);
|
|
298
281
|
__exportStar(require("./ProductResource"), exports);
|
|
299
282
|
__exportStar(require("./ProductResourceArrayResponse"), exports);
|
|
300
283
|
__exportStar(require("./ProductSearchResponseResource"), exports);
|
|
@@ -9,7 +9,6 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`name` | string
|
|
11
11
|
`model` | string
|
|
12
|
-
`modelRaw` | string
|
|
13
12
|
`slug` | string
|
|
14
13
|
`sku` | string
|
|
15
14
|
`thumbnail` | string
|
|
@@ -29,7 +28,6 @@ const example = {
|
|
|
29
28
|
"id": null,
|
|
30
29
|
"name": null,
|
|
31
30
|
"model": null,
|
|
32
|
-
"modelRaw": null,
|
|
33
31
|
"slug": null,
|
|
34
32
|
"sku": null,
|
|
35
33
|
"thumbnail": null,
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ModelAttributeFrontendResource
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`value` | string
|
|
9
11
|
|
|
10
12
|
## Example
|
|
11
13
|
|
|
12
14
|
```typescript
|
|
13
|
-
import type {
|
|
15
|
+
import type { ModelAttributeFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
16
|
|
|
15
17
|
// TODO: Update the object below with actual values
|
|
16
18
|
const example = {
|
|
17
|
-
|
|
19
|
+
"name": null,
|
|
20
|
+
"value": null,
|
|
21
|
+
} satisfies ModelAttributeFrontendResource
|
|
18
22
|
|
|
19
23
|
console.log(example)
|
|
20
24
|
|
|
@@ -23,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
23
27
|
console.log(exampleJSON)
|
|
24
28
|
|
|
25
29
|
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ModelAttributeFrontendResource
|
|
27
31
|
console.log(exampleParsed)
|
|
28
32
|
```
|
|
29
33
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ModelAttributeFrontendResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<ModelAttributeFrontendResource>](ModelAttributeFrontendResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { ModelAttributeFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"data": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies ModelAttributeFrontendResourceArrayResponse
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ModelAttributeFrontendResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -14,7 +14,6 @@ Name | Type
|
|
|
14
14
|
`stock` | number
|
|
15
15
|
`isDisabled` | string
|
|
16
16
|
`displayInSocialFeed` | boolean
|
|
17
|
-
`quantity` | string
|
|
18
17
|
`netsuiteId` | number
|
|
19
18
|
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
20
19
|
`siteDetails` | [Array<ProductChildSiteDetailLiteResource>](ProductChildSiteDetailLiteResource.md)
|
|
@@ -34,7 +33,6 @@ const example = {
|
|
|
34
33
|
"stock": null,
|
|
35
34
|
"isDisabled": null,
|
|
36
35
|
"displayInSocialFeed": null,
|
|
37
|
-
"quantity": null,
|
|
38
36
|
"netsuiteId": null,
|
|
39
37
|
"thumbnail": null,
|
|
40
38
|
"siteDetails": null,
|
|
@@ -21,6 +21,7 @@ Name | Type
|
|
|
21
21
|
`seo` | object
|
|
22
22
|
`assets` | object
|
|
23
23
|
`thumbnail` | string
|
|
24
|
+
`attributes` | [Array<ModelAttributeFrontendResource>](ModelAttributeFrontendResource.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)
|
|
@@ -9,7 +9,6 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`sku` | string
|
|
11
11
|
`model` | string
|
|
12
|
-
`modelRaw` | string
|
|
13
12
|
`barcode` | string
|
|
14
13
|
`name` | string
|
|
15
14
|
`slug` | string
|
|
@@ -36,7 +35,6 @@ const example = {
|
|
|
36
35
|
"id": null,
|
|
37
36
|
"sku": null,
|
|
38
37
|
"model": null,
|
|
39
|
-
"modelRaw": null,
|
|
40
38
|
"barcode": null,
|
|
41
39
|
"name": null,
|
|
42
40
|
"slug": null,
|
package/package.json
CHANGED
package/src/apis/index.ts
CHANGED
|
@@ -12,7 +12,6 @@ export * from './OverlayTemplateApi';
|
|
|
12
12
|
export * from './ProductApi';
|
|
13
13
|
export * from './ProductCategoryApi';
|
|
14
14
|
export * from './ProductRangeApi';
|
|
15
|
-
export * from './ProductRegistrationApi';
|
|
16
15
|
export * from './ProductTypeApi';
|
|
17
16
|
export * from './SiteApi';
|
|
18
17
|
export * from './StoreApi';
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ 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;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -37,12 +37,6 @@ export interface GlobalSearchProductResource {
|
|
|
37
37
|
* @memberof GlobalSearchProductResource
|
|
38
38
|
*/
|
|
39
39
|
model: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof GlobalSearchProductResource
|
|
44
|
-
*/
|
|
45
|
-
modelRaw: string;
|
|
46
40
|
/**
|
|
47
41
|
*
|
|
48
42
|
* @type {string}
|
|
@@ -100,7 +94,6 @@ export function instanceOfGlobalSearchProductResource(value: object): value is G
|
|
|
100
94
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
101
95
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
102
96
|
if (!('model' in value) || value['model'] === undefined) return false;
|
|
103
|
-
if (!('modelRaw' in value) || value['modelRaw'] === undefined) return false;
|
|
104
97
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
105
98
|
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
106
99
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
@@ -125,7 +118,6 @@ export function GlobalSearchProductResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
125
118
|
'id': json['id'],
|
|
126
119
|
'name': json['name'],
|
|
127
120
|
'model': json['model'],
|
|
128
|
-
'modelRaw': json['modelRaw'],
|
|
129
121
|
'slug': json['slug'],
|
|
130
122
|
'sku': json['sku'],
|
|
131
123
|
'thumbnail': json['thumbnail'],
|
|
@@ -151,7 +143,6 @@ export function GlobalSearchProductResourceToJSONTyped(value?: GlobalSearchProdu
|
|
|
151
143
|
'id': value['id'],
|
|
152
144
|
'name': value['name'],
|
|
153
145
|
'model': value['model'],
|
|
154
|
-
'modelRaw': value['modelRaw'],
|
|
155
146
|
'slug': value['slug'],
|
|
156
147
|
'sku': value['sku'],
|
|
157
148
|
'thumbnail': value['thumbnail'],
|
|
@@ -184,7 +184,6 @@ export const IndexProductChildRequestRelatedTypeEnum = {
|
|
|
184
184
|
OverlayTemplate: 'overlayTemplate',
|
|
185
185
|
ProductType: 'productType',
|
|
186
186
|
ProductRange: 'productRange',
|
|
187
|
-
ProductRegistration: 'productRegistration',
|
|
188
187
|
Supplier: 'supplier',
|
|
189
188
|
Tag: 'tag',
|
|
190
189
|
Label: 'label',
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ModelAttributeFrontendResource
|
|
20
|
+
*/
|
|
21
|
+
export interface ModelAttributeFrontendResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ModelAttributeFrontendResource
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ModelAttributeFrontendResource
|
|
32
|
+
*/
|
|
33
|
+
value: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ModelAttributeFrontendResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfModelAttributeFrontendResource(value: object): value is ModelAttributeFrontendResource {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ModelAttributeFrontendResourceFromJSON(json: any): ModelAttributeFrontendResource {
|
|
46
|
+
return ModelAttributeFrontendResourceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ModelAttributeFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelAttributeFrontendResource {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'value': json['value'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ModelAttributeFrontendResourceToJSON(json: any): ModelAttributeFrontendResource {
|
|
61
|
+
return ModelAttributeFrontendResourceToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ModelAttributeFrontendResourceToJSONTyped(value?: ModelAttributeFrontendResource | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'value': value['value'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ModelAttributeFrontendResource } from './ModelAttributeFrontendResource';
|
|
17
|
+
import {
|
|
18
|
+
ModelAttributeFrontendResourceFromJSON,
|
|
19
|
+
ModelAttributeFrontendResourceFromJSONTyped,
|
|
20
|
+
ModelAttributeFrontendResourceToJSON,
|
|
21
|
+
ModelAttributeFrontendResourceToJSONTyped,
|
|
22
|
+
} from './ModelAttributeFrontendResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ModelAttributeFrontendResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ModelAttributeFrontendResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ModelAttributeFrontendResource>}
|
|
33
|
+
* @memberof ModelAttributeFrontendResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ModelAttributeFrontendResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ModelAttributeFrontendResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfModelAttributeFrontendResourceArrayResponse(value: object): value is ModelAttributeFrontendResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ModelAttributeFrontendResourceArrayResponseFromJSON(json: any): ModelAttributeFrontendResourceArrayResponse {
|
|
46
|
+
return ModelAttributeFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ModelAttributeFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelAttributeFrontendResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ModelAttributeFrontendResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ModelAttributeFrontendResourceArrayResponseToJSON(json: any): ModelAttributeFrontendResourceArrayResponse {
|
|
60
|
+
return ModelAttributeFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ModelAttributeFrontendResourceArrayResponseToJSONTyped(value?: ModelAttributeFrontendResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ModelAttributeFrontendResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -82,12 +82,6 @@ export interface ProductChildListResource {
|
|
|
82
82
|
* @memberof ProductChildListResource
|
|
83
83
|
*/
|
|
84
84
|
displayInSocialFeed: boolean;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof ProductChildListResource
|
|
89
|
-
*/
|
|
90
|
-
quantity?: string | null;
|
|
91
85
|
/**
|
|
92
86
|
*
|
|
93
87
|
* @type {number}
|
|
@@ -142,7 +136,6 @@ export function ProductChildListResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
142
136
|
'stock': json['stock'],
|
|
143
137
|
'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
|
|
144
138
|
'displayInSocialFeed': json['displayInSocialFeed'],
|
|
145
|
-
'quantity': json['quantity'] == null ? undefined : json['quantity'],
|
|
146
139
|
'netsuiteId': json['netsuiteId'],
|
|
147
140
|
'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
|
|
148
141
|
'siteDetails': (json['siteDetails'] == null ? null : (json['siteDetails'] as Array<any>).map(ProductChildSiteDetailLiteResourceFromJSON)),
|
|
@@ -168,7 +161,6 @@ export function ProductChildListResourceToJSONTyped(value?: ProductChildListReso
|
|
|
168
161
|
'stock': value['stock'],
|
|
169
162
|
'isDisabled': value['isDisabled'],
|
|
170
163
|
'displayInSocialFeed': value['displayInSocialFeed'],
|
|
171
|
-
'quantity': value['quantity'],
|
|
172
164
|
'netsuiteId': value['netsuiteId'],
|
|
173
165
|
'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
|
|
174
166
|
'siteDetails': (value['siteDetails'] == null ? null : (value['siteDetails'] as Array<any>).map(ProductChildSiteDetailLiteResourceToJSON)),
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
SupplierFrontendResourceToJSON,
|
|
21
21
|
SupplierFrontendResourceToJSONTyped,
|
|
22
22
|
} from './SupplierFrontendResource';
|
|
23
|
+
import type { ModelAttributeFrontendResource } from './ModelAttributeFrontendResource';
|
|
24
|
+
import {
|
|
25
|
+
ModelAttributeFrontendResourceFromJSON,
|
|
26
|
+
ModelAttributeFrontendResourceFromJSONTyped,
|
|
27
|
+
ModelAttributeFrontendResourceToJSON,
|
|
28
|
+
ModelAttributeFrontendResourceToJSONTyped,
|
|
29
|
+
} from './ModelAttributeFrontendResource';
|
|
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<ModelAttributeFrontendResource>}
|
|
130
|
+
* @memberof ProductRangeFrontendResource
|
|
131
|
+
*/
|
|
132
|
+
attributes: Array<ModelAttributeFrontendResource> | 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(ModelAttributeFrontendResourceFromJSON)),
|
|
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(ModelAttributeFrontendResourceToJSON)),
|
|
197
213
|
};
|
|
198
214
|
}
|
|
199
215
|
|