@digital8/lighting-illusions-ts-sdk 0.0.636 → 0.0.638
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 +2 -12
- package/README.md +3 -8
- package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +2 -3
- package/dist/models/OverlayTemplateAssetFrontendResource.js +2 -3
- package/dist/models/OverlayTemplateAssetResource.d.ts +3 -3
- package/dist/models/OverlayTemplateAssetResource.js +3 -3
- package/dist/models/ProductCompareResource.d.ts +2 -2
- package/dist/models/ProductSearchResultResource.d.ts +6 -12
- package/dist/models/ProductSearchResultResource.js +4 -8
- package/dist/models/ProductStatus.d.ts +24 -0
- package/dist/models/ProductStatus.js +50 -0
- package/dist/models/SupplierFrontendResource.d.ts +8 -7
- package/dist/models/SupplierFrontendResource.js +9 -8
- package/dist/models/index.d.ts +1 -6
- package/dist/models/index.js +1 -6
- package/docs/OverlayTemplateAssetFrontendResource.md +1 -1
- package/docs/OverlayTemplateAssetResource.md +1 -1
- package/docs/ProductCompareResource.md +1 -1
- package/docs/ProductSearchResultResource.md +2 -4
- package/docs/{ProductAvailability.md → ProductStatus.md} +4 -4
- package/docs/SupplierFrontendResource.md +4 -4
- package/package.json +1 -1
- package/src/models/OverlayTemplateAssetFrontendResource.ts +4 -12
- package/src/models/OverlayTemplateAssetResource.ts +10 -10
- package/src/models/ProductCompareResource.ts +2 -2
- package/src/models/ProductSearchResultResource.ts +9 -18
- package/src/models/ProductStatus.ts +52 -0
- package/src/models/SupplierFrontendResource.ts +27 -20
- package/src/models/index.ts +1 -6
- package/dist/models/CategoryFrontendResource.d.ts +0 -70
- package/dist/models/CategoryFrontendResource.js +0 -73
- package/dist/models/CategoryFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/CategoryFrontendResourceArrayResponse.js +0 -50
- package/dist/models/CategoryWithChildrenFrontendResource.d.ts +0 -39
- package/dist/models/CategoryWithChildrenFrontendResource.js +0 -56
- package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedCategoryFrontendResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCategoryFrontendResourceResponse.js +0 -57
- package/dist/models/ProductAvailability.d.ts +0 -26
- package/dist/models/ProductAvailability.js +0 -52
- package/docs/CategoryFrontendResource.md +0 -46
- package/docs/CategoryFrontendResourceArrayResponse.md +0 -34
- package/docs/CategoryWithChildrenFrontendResource.md +0 -36
- package/docs/CategoryWithChildrenFrontendResourceArrayResponse.md +0 -34
- package/docs/PaginatedCategoryFrontendResourceResponse.md +0 -36
- package/src/models/CategoryFrontendResource.ts +0 -133
- package/src/models/CategoryFrontendResourceArrayResponse.ts +0 -73
- package/src/models/CategoryWithChildrenFrontendResource.ts +0 -83
- package/src/models/CategoryWithChildrenFrontendResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedCategoryFrontendResourceResponse.ts +0 -90
- package/src/models/ProductAvailability.ts +0 -54
package/.openapi-generator/FILES
CHANGED
|
@@ -38,10 +38,6 @@ docs/CategoryAutomationConditionType.md
|
|
|
38
38
|
docs/CategoryAutomationFieldType.md
|
|
39
39
|
docs/CategoryAutomationRuleResource.md
|
|
40
40
|
docs/CategoryAutomationRuleResourceArrayResponse.md
|
|
41
|
-
docs/CategoryFrontendResource.md
|
|
42
|
-
docs/CategoryFrontendResourceArrayResponse.md
|
|
43
|
-
docs/CategoryWithChildrenFrontendResource.md
|
|
44
|
-
docs/CategoryWithChildrenFrontendResourceArrayResponse.md
|
|
45
41
|
docs/CouponDiscountType.md
|
|
46
42
|
docs/DefinitionApi.md
|
|
47
43
|
docs/DefinitionListResource.md
|
|
@@ -125,7 +121,6 @@ docs/PaginatedAttributeListResourceResponse.md
|
|
|
125
121
|
docs/PaginatedAttributeLiteResourceResponse.md
|
|
126
122
|
docs/PaginatedAttributeProductTypeRelationResourceResponse.md
|
|
127
123
|
docs/PaginatedAttributeResourceResponse.md
|
|
128
|
-
docs/PaginatedCategoryFrontendResourceResponse.md
|
|
129
124
|
docs/PaginatedDefinitionListResourceResponse.md
|
|
130
125
|
docs/PaginatedDefinitionResourceResponse.md
|
|
131
126
|
docs/PaginatedDocumentResourceResponse.md
|
|
@@ -168,7 +163,6 @@ docs/PreviewAutomationRulesResourceArrayResponse.md
|
|
|
168
163
|
docs/ProductAggregationResource.md
|
|
169
164
|
docs/ProductAggregationResourceArrayResponse.md
|
|
170
165
|
docs/ProductApi.md
|
|
171
|
-
docs/ProductAvailability.md
|
|
172
166
|
docs/ProductCategoryApi.md
|
|
173
167
|
docs/ProductCategoryHierarchyResource.md
|
|
174
168
|
docs/ProductCategoryHierarchyResourceArrayResponse.md
|
|
@@ -209,6 +203,7 @@ docs/ProductSearchResponseResourcePriceInfo.md
|
|
|
209
203
|
docs/ProductSearchResultResource.md
|
|
210
204
|
docs/ProductSearchResultResourceArrayResponse.md
|
|
211
205
|
docs/ProductSortBy.md
|
|
206
|
+
docs/ProductStatus.md
|
|
212
207
|
docs/ProductTypeApi.md
|
|
213
208
|
docs/ProductTypeListResource.md
|
|
214
209
|
docs/ProductTypeListResourceArrayResponse.md
|
|
@@ -342,10 +337,6 @@ src/models/CategoryAutomationConditionType.ts
|
|
|
342
337
|
src/models/CategoryAutomationFieldType.ts
|
|
343
338
|
src/models/CategoryAutomationRuleResource.ts
|
|
344
339
|
src/models/CategoryAutomationRuleResourceArrayResponse.ts
|
|
345
|
-
src/models/CategoryFrontendResource.ts
|
|
346
|
-
src/models/CategoryFrontendResourceArrayResponse.ts
|
|
347
|
-
src/models/CategoryWithChildrenFrontendResource.ts
|
|
348
|
-
src/models/CategoryWithChildrenFrontendResourceArrayResponse.ts
|
|
349
340
|
src/models/CouponDiscountType.ts
|
|
350
341
|
src/models/DefinitionListResource.ts
|
|
351
342
|
src/models/DefinitionListResourceArrayResponse.ts
|
|
@@ -424,7 +415,6 @@ src/models/PaginatedAttributeListResourceResponse.ts
|
|
|
424
415
|
src/models/PaginatedAttributeLiteResourceResponse.ts
|
|
425
416
|
src/models/PaginatedAttributeProductTypeRelationResourceResponse.ts
|
|
426
417
|
src/models/PaginatedAttributeResourceResponse.ts
|
|
427
|
-
src/models/PaginatedCategoryFrontendResourceResponse.ts
|
|
428
418
|
src/models/PaginatedDefinitionListResourceResponse.ts
|
|
429
419
|
src/models/PaginatedDefinitionResourceResponse.ts
|
|
430
420
|
src/models/PaginatedDocumentResourceResponse.ts
|
|
@@ -466,7 +456,6 @@ src/models/PreviewAutomationRulesResource.ts
|
|
|
466
456
|
src/models/PreviewAutomationRulesResourceArrayResponse.ts
|
|
467
457
|
src/models/ProductAggregationResource.ts
|
|
468
458
|
src/models/ProductAggregationResourceArrayResponse.ts
|
|
469
|
-
src/models/ProductAvailability.ts
|
|
470
459
|
src/models/ProductCategoryHierarchyResource.ts
|
|
471
460
|
src/models/ProductCategoryHierarchyResourceArrayResponse.ts
|
|
472
461
|
src/models/ProductCategoryListResource.ts
|
|
@@ -505,6 +494,7 @@ src/models/ProductSearchResponseResourcePriceInfo.ts
|
|
|
505
494
|
src/models/ProductSearchResultResource.ts
|
|
506
495
|
src/models/ProductSearchResultResourceArrayResponse.ts
|
|
507
496
|
src/models/ProductSortBy.ts
|
|
497
|
+
src/models/ProductStatus.ts
|
|
508
498
|
src/models/ProductTypeListResource.ts
|
|
509
499
|
src/models/ProductTypeListResourceArrayResponse.ts
|
|
510
500
|
src/models/ProductTypeLiteResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.638
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -198,10 +198,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
198
198
|
- [CategoryAutomationFieldType](docs/CategoryAutomationFieldType.md)
|
|
199
199
|
- [CategoryAutomationRuleResource](docs/CategoryAutomationRuleResource.md)
|
|
200
200
|
- [CategoryAutomationRuleResourceArrayResponse](docs/CategoryAutomationRuleResourceArrayResponse.md)
|
|
201
|
-
- [CategoryFrontendResource](docs/CategoryFrontendResource.md)
|
|
202
|
-
- [CategoryFrontendResourceArrayResponse](docs/CategoryFrontendResourceArrayResponse.md)
|
|
203
|
-
- [CategoryWithChildrenFrontendResource](docs/CategoryWithChildrenFrontendResource.md)
|
|
204
|
-
- [CategoryWithChildrenFrontendResourceArrayResponse](docs/CategoryWithChildrenFrontendResourceArrayResponse.md)
|
|
205
201
|
- [CouponDiscountType](docs/CouponDiscountType.md)
|
|
206
202
|
- [DefinitionListResource](docs/DefinitionListResource.md)
|
|
207
203
|
- [DefinitionListResourceArrayResponse](docs/DefinitionListResourceArrayResponse.md)
|
|
@@ -280,7 +276,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
280
276
|
- [PaginatedAttributeLiteResourceResponse](docs/PaginatedAttributeLiteResourceResponse.md)
|
|
281
277
|
- [PaginatedAttributeProductTypeRelationResourceResponse](docs/PaginatedAttributeProductTypeRelationResourceResponse.md)
|
|
282
278
|
- [PaginatedAttributeResourceResponse](docs/PaginatedAttributeResourceResponse.md)
|
|
283
|
-
- [PaginatedCategoryFrontendResourceResponse](docs/PaginatedCategoryFrontendResourceResponse.md)
|
|
284
279
|
- [PaginatedDefinitionListResourceResponse](docs/PaginatedDefinitionListResourceResponse.md)
|
|
285
280
|
- [PaginatedDefinitionResourceResponse](docs/PaginatedDefinitionResourceResponse.md)
|
|
286
281
|
- [PaginatedDocumentResourceResponse](docs/PaginatedDocumentResourceResponse.md)
|
|
@@ -322,7 +317,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
322
317
|
- [PreviewAutomationRulesResourceArrayResponse](docs/PreviewAutomationRulesResourceArrayResponse.md)
|
|
323
318
|
- [ProductAggregationResource](docs/ProductAggregationResource.md)
|
|
324
319
|
- [ProductAggregationResourceArrayResponse](docs/ProductAggregationResourceArrayResponse.md)
|
|
325
|
-
- [ProductAvailability](docs/ProductAvailability.md)
|
|
326
320
|
- [ProductCategoryHierarchyResource](docs/ProductCategoryHierarchyResource.md)
|
|
327
321
|
- [ProductCategoryHierarchyResourceArrayResponse](docs/ProductCategoryHierarchyResourceArrayResponse.md)
|
|
328
322
|
- [ProductCategoryListResource](docs/ProductCategoryListResource.md)
|
|
@@ -361,6 +355,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
361
355
|
- [ProductSearchResultResource](docs/ProductSearchResultResource.md)
|
|
362
356
|
- [ProductSearchResultResourceArrayResponse](docs/ProductSearchResultResourceArrayResponse.md)
|
|
363
357
|
- [ProductSortBy](docs/ProductSortBy.md)
|
|
358
|
+
- [ProductStatus](docs/ProductStatus.md)
|
|
364
359
|
- [ProductTypeListResource](docs/ProductTypeListResource.md)
|
|
365
360
|
- [ProductTypeListResourceArrayResponse](docs/ProductTypeListResourceArrayResponse.md)
|
|
366
361
|
- [ProductTypeLiteResource](docs/ProductTypeLiteResource.md)
|
|
@@ -452,7 +447,7 @@ and is automatically generated by the
|
|
|
452
447
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
453
448
|
|
|
454
449
|
- API version: `1.0.0`
|
|
455
|
-
- Package version: `0.0.
|
|
450
|
+
- Package version: `0.0.638`
|
|
456
451
|
- Generator version: `7.19.0`
|
|
457
452
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
458
453
|
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { AssetLiteResource } from './AssetLiteResource';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -48,10 +47,10 @@ export interface OverlayTemplateAssetFrontendResource {
|
|
|
48
47
|
verticalMargin: number;
|
|
49
48
|
/**
|
|
50
49
|
*
|
|
51
|
-
* @type {
|
|
50
|
+
* @type {Array<string>}
|
|
52
51
|
* @memberof OverlayTemplateAssetFrontendResource
|
|
53
52
|
*/
|
|
54
|
-
image:
|
|
53
|
+
image: Array<string>;
|
|
55
54
|
}
|
|
56
55
|
/**
|
|
57
56
|
* Check if a given object implements the OverlayTemplateAssetFrontendResource interface.
|
|
@@ -18,7 +18,6 @@ exports.OverlayTemplateAssetFrontendResourceFromJSON = OverlayTemplateAssetFront
|
|
|
18
18
|
exports.OverlayTemplateAssetFrontendResourceFromJSONTyped = OverlayTemplateAssetFrontendResourceFromJSONTyped;
|
|
19
19
|
exports.OverlayTemplateAssetFrontendResourceToJSON = OverlayTemplateAssetFrontendResourceToJSON;
|
|
20
20
|
exports.OverlayTemplateAssetFrontendResourceToJSONTyped = OverlayTemplateAssetFrontendResourceToJSONTyped;
|
|
21
|
-
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
22
21
|
/**
|
|
23
22
|
* Check if a given object implements the OverlayTemplateAssetFrontendResource interface.
|
|
24
23
|
*/
|
|
@@ -50,7 +49,7 @@ function OverlayTemplateAssetFrontendResourceFromJSONTyped(json, ignoreDiscrimin
|
|
|
50
49
|
'padding': json['padding'],
|
|
51
50
|
'horizontalMargin': json['horizontalMargin'],
|
|
52
51
|
'verticalMargin': json['verticalMargin'],
|
|
53
|
-
'image':
|
|
52
|
+
'image': json['image'],
|
|
54
53
|
};
|
|
55
54
|
}
|
|
56
55
|
function OverlayTemplateAssetFrontendResourceToJSON(json) {
|
|
@@ -67,6 +66,6 @@ function OverlayTemplateAssetFrontendResourceToJSONTyped(value, ignoreDiscrimina
|
|
|
67
66
|
'padding': value['padding'],
|
|
68
67
|
'horizontalMargin': value['horizontalMargin'],
|
|
69
68
|
'verticalMargin': value['verticalMargin'],
|
|
70
|
-
'image':
|
|
69
|
+
'image': value['image'],
|
|
71
70
|
};
|
|
72
71
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { AssetResource } from './AssetResource';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -24,10 +24,10 @@ export interface OverlayTemplateAssetResource {
|
|
|
24
24
|
id: number;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {AssetResource}
|
|
28
28
|
* @memberof OverlayTemplateAssetResource
|
|
29
29
|
*/
|
|
30
|
-
asset:
|
|
30
|
+
asset: AssetResource | null;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {string}
|
|
@@ -18,7 +18,7 @@ exports.OverlayTemplateAssetResourceFromJSON = OverlayTemplateAssetResourceFromJ
|
|
|
18
18
|
exports.OverlayTemplateAssetResourceFromJSONTyped = OverlayTemplateAssetResourceFromJSONTyped;
|
|
19
19
|
exports.OverlayTemplateAssetResourceToJSON = OverlayTemplateAssetResourceToJSON;
|
|
20
20
|
exports.OverlayTemplateAssetResourceToJSONTyped = OverlayTemplateAssetResourceToJSONTyped;
|
|
21
|
-
var
|
|
21
|
+
var AssetResource_1 = require("./AssetResource");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the OverlayTemplateAssetResource interface.
|
|
24
24
|
*/
|
|
@@ -46,7 +46,7 @@ function OverlayTemplateAssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
48
|
'id': json['id'],
|
|
49
|
-
'asset': (0,
|
|
49
|
+
'asset': (0, AssetResource_1.AssetResourceFromJSON)(json['asset']),
|
|
50
50
|
'position': json['position'],
|
|
51
51
|
'padding': json['padding'],
|
|
52
52
|
'horizontalMargin': json['horizontalMargin'],
|
|
@@ -63,7 +63,7 @@ function OverlayTemplateAssetResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
63
63
|
}
|
|
64
64
|
return {
|
|
65
65
|
'id': value['id'],
|
|
66
|
-
'asset': (0,
|
|
66
|
+
'asset': (0, AssetResource_1.AssetResourceToJSON)(value['asset']),
|
|
67
67
|
'position': value['position'],
|
|
68
68
|
'padding': value['padding'],
|
|
69
69
|
'horizontalMargin': value['horizontalMargin'],
|
|
@@ -75,6 +75,12 @@ export interface ProductSearchResultResource {
|
|
|
75
75
|
* @memberof ProductSearchResultResource
|
|
76
76
|
*/
|
|
77
77
|
labelDetails: Array<number>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<object>}
|
|
81
|
+
* @memberof ProductSearchResultResource
|
|
82
|
+
*/
|
|
83
|
+
categories: Array<object>;
|
|
78
84
|
/**
|
|
79
85
|
*
|
|
80
86
|
* @type {string}
|
|
@@ -105,18 +111,6 @@ export interface ProductSearchResultResource {
|
|
|
105
111
|
* @memberof ProductSearchResultResource
|
|
106
112
|
*/
|
|
107
113
|
wishlisted: boolean;
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @type {number}
|
|
111
|
-
* @memberof ProductSearchResultResource
|
|
112
|
-
*/
|
|
113
|
-
variationCount: number;
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @type {Array<object>}
|
|
117
|
-
* @memberof ProductSearchResultResource
|
|
118
|
-
*/
|
|
119
|
-
overlayAssets: Array<object>;
|
|
120
114
|
}
|
|
121
115
|
/**
|
|
122
116
|
* Check if a given object implements the ProductSearchResultResource interface.
|
|
@@ -40,6 +40,8 @@ function instanceOfProductSearchResultResource(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('labelDetails' in value) || value['labelDetails'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
+
if (!('categories' in value) || value['categories'] === undefined)
|
|
44
|
+
return false;
|
|
43
45
|
if (!('supplierName' in value) || value['supplierName'] === undefined)
|
|
44
46
|
return false;
|
|
45
47
|
if (!('supplierLogo' in value) || value['supplierLogo'] === undefined)
|
|
@@ -50,10 +52,6 @@ function instanceOfProductSearchResultResource(value) {
|
|
|
50
52
|
return false;
|
|
51
53
|
if (!('wishlisted' in value) || value['wishlisted'] === undefined)
|
|
52
54
|
return false;
|
|
53
|
-
if (!('variationCount' in value) || value['variationCount'] === undefined)
|
|
54
|
-
return false;
|
|
55
|
-
if (!('overlayAssets' in value) || value['overlayAssets'] === undefined)
|
|
56
|
-
return false;
|
|
57
55
|
return true;
|
|
58
56
|
}
|
|
59
57
|
function ProductSearchResultResourceFromJSON(json) {
|
|
@@ -74,13 +72,12 @@ function ProductSearchResultResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
72
|
'thumbnail': json['thumbnail'],
|
|
75
73
|
'averageRating': json['averageRating'] == null ? undefined : json['averageRating'],
|
|
76
74
|
'labelDetails': json['labelDetails'],
|
|
75
|
+
'categories': json['categories'],
|
|
77
76
|
'supplierName': json['supplierName'],
|
|
78
77
|
'supplierLogo': json['supplierLogo'],
|
|
79
78
|
'supplierId': json['supplierId'],
|
|
80
79
|
'availability': json['availability'],
|
|
81
80
|
'wishlisted': json['wishlisted'],
|
|
82
|
-
'variationCount': json['variationCount'],
|
|
83
|
-
'overlayAssets': json['overlayAssets'],
|
|
84
81
|
};
|
|
85
82
|
}
|
|
86
83
|
function ProductSearchResultResourceToJSON(json) {
|
|
@@ -102,12 +99,11 @@ function ProductSearchResultResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
102
99
|
'thumbnail': value['thumbnail'],
|
|
103
100
|
'averageRating': value['averageRating'],
|
|
104
101
|
'labelDetails': value['labelDetails'],
|
|
102
|
+
'categories': value['categories'],
|
|
105
103
|
'supplierName': value['supplierName'],
|
|
106
104
|
'supplierLogo': value['supplierLogo'],
|
|
107
105
|
'supplierId': value['supplierId'],
|
|
108
106
|
'availability': value['availability'],
|
|
109
107
|
'wishlisted': value['wishlisted'],
|
|
110
|
-
'variationCount': value['variationCount'],
|
|
111
|
-
'overlayAssets': value['overlayAssets'],
|
|
112
108
|
};
|
|
113
109
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ProductStatus: {
|
|
17
|
+
readonly InStock: "in_stock";
|
|
18
|
+
};
|
|
19
|
+
export type ProductStatus = typeof ProductStatus[keyof typeof ProductStatus];
|
|
20
|
+
export declare function instanceOfProductStatus(value: any): boolean;
|
|
21
|
+
export declare function ProductStatusFromJSON(json: any): ProductStatus;
|
|
22
|
+
export declare function ProductStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStatus;
|
|
23
|
+
export declare function ProductStatusToJSON(value?: ProductStatus | null): any;
|
|
24
|
+
export declare function ProductStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductStatus;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ProductStatus = void 0;
|
|
17
|
+
exports.instanceOfProductStatus = instanceOfProductStatus;
|
|
18
|
+
exports.ProductStatusFromJSON = ProductStatusFromJSON;
|
|
19
|
+
exports.ProductStatusFromJSONTyped = ProductStatusFromJSONTyped;
|
|
20
|
+
exports.ProductStatusToJSON = ProductStatusToJSON;
|
|
21
|
+
exports.ProductStatusToJSONTyped = ProductStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ProductStatus = {
|
|
27
|
+
InStock: 'in_stock'
|
|
28
|
+
};
|
|
29
|
+
function instanceOfProductStatus(value) {
|
|
30
|
+
for (var key in exports.ProductStatus) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductStatus, key)) {
|
|
32
|
+
if (exports.ProductStatus[key] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
function ProductStatusFromJSON(json) {
|
|
40
|
+
return ProductStatusFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
function ProductStatusToJSON(value) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
function ProductStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { AssetLiteResource } from './AssetLiteResource';
|
|
13
12
|
import type { DescriptionResource } from './DescriptionResource';
|
|
13
|
+
import type { AssetResource } from './AssetResource';
|
|
14
|
+
import type { SEOResource } from './SEOResource';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -37,10 +38,10 @@ export interface SupplierFrontendResource {
|
|
|
37
38
|
slug: string;
|
|
38
39
|
/**
|
|
39
40
|
*
|
|
40
|
-
* @type {
|
|
41
|
+
* @type {AssetResource}
|
|
41
42
|
* @memberof SupplierFrontendResource
|
|
42
43
|
*/
|
|
43
|
-
thumbnail:
|
|
44
|
+
thumbnail: AssetResource | null;
|
|
44
45
|
/**
|
|
45
46
|
*
|
|
46
47
|
* @type {number}
|
|
@@ -49,16 +50,16 @@ export interface SupplierFrontendResource {
|
|
|
49
50
|
supplierEta: number;
|
|
50
51
|
/**
|
|
51
52
|
*
|
|
52
|
-
* @type {
|
|
53
|
+
* @type {SEOResource}
|
|
53
54
|
* @memberof SupplierFrontendResource
|
|
54
55
|
*/
|
|
55
|
-
seo:
|
|
56
|
+
seo: SEOResource | null;
|
|
56
57
|
/**
|
|
57
58
|
*
|
|
58
|
-
* @type {DescriptionResource}
|
|
59
|
+
* @type {Array<DescriptionResource>}
|
|
59
60
|
* @memberof SupplierFrontendResource
|
|
60
61
|
*/
|
|
61
|
-
|
|
62
|
+
descriptions: Array<DescriptionResource> | null;
|
|
62
63
|
}
|
|
63
64
|
/**
|
|
64
65
|
* Check if a given object implements the SupplierFrontendResource interface.
|
|
@@ -18,8 +18,9 @@ exports.SupplierFrontendResourceFromJSON = SupplierFrontendResourceFromJSON;
|
|
|
18
18
|
exports.SupplierFrontendResourceFromJSONTyped = SupplierFrontendResourceFromJSONTyped;
|
|
19
19
|
exports.SupplierFrontendResourceToJSON = SupplierFrontendResourceToJSON;
|
|
20
20
|
exports.SupplierFrontendResourceToJSONTyped = SupplierFrontendResourceToJSONTyped;
|
|
21
|
-
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
22
21
|
var DescriptionResource_1 = require("./DescriptionResource");
|
|
22
|
+
var AssetResource_1 = require("./AssetResource");
|
|
23
|
+
var SEOResource_1 = require("./SEOResource");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the SupplierFrontendResource interface.
|
|
25
26
|
*/
|
|
@@ -36,7 +37,7 @@ function instanceOfSupplierFrontendResource(value) {
|
|
|
36
37
|
return false;
|
|
37
38
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
38
39
|
return false;
|
|
39
|
-
if (!('
|
|
40
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
40
41
|
return false;
|
|
41
42
|
return true;
|
|
42
43
|
}
|
|
@@ -51,10 +52,10 @@ function SupplierFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
52
|
'id': json['id'],
|
|
52
53
|
'name': json['name'],
|
|
53
54
|
'slug': json['slug'],
|
|
54
|
-
'thumbnail': (0,
|
|
55
|
+
'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
|
|
55
56
|
'supplierEta': json['supplierEta'],
|
|
56
|
-
'seo': json['seo'],
|
|
57
|
-
'
|
|
57
|
+
'seo': (0, SEOResource_1.SEOResourceFromJSON)(json['seo']),
|
|
58
|
+
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
61
|
function SupplierFrontendResourceToJSON(json) {
|
|
@@ -69,9 +70,9 @@ function SupplierFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
69
70
|
'id': value['id'],
|
|
70
71
|
'name': value['name'],
|
|
71
72
|
'slug': value['slug'],
|
|
72
|
-
'thumbnail': (0,
|
|
73
|
+
'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
|
|
73
74
|
'supplierEta': value['supplierEta'],
|
|
74
|
-
'seo': value['seo'],
|
|
75
|
-
'
|
|
75
|
+
'seo': (0, SEOResource_1.SEOResourceToJSON)(value['seo']),
|
|
76
|
+
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
76
77
|
};
|
|
77
78
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -32,10 +32,6 @@ export * from './CategoryAutomationConditionType';
|
|
|
32
32
|
export * from './CategoryAutomationFieldType';
|
|
33
33
|
export * from './CategoryAutomationRuleResource';
|
|
34
34
|
export * from './CategoryAutomationRuleResourceArrayResponse';
|
|
35
|
-
export * from './CategoryFrontendResource';
|
|
36
|
-
export * from './CategoryFrontendResourceArrayResponse';
|
|
37
|
-
export * from './CategoryWithChildrenFrontendResource';
|
|
38
|
-
export * from './CategoryWithChildrenFrontendResourceArrayResponse';
|
|
39
35
|
export * from './CouponDiscountType';
|
|
40
36
|
export * from './DefinitionListResource';
|
|
41
37
|
export * from './DefinitionListResourceArrayResponse';
|
|
@@ -114,7 +110,6 @@ export * from './PaginatedAttributeListResourceResponse';
|
|
|
114
110
|
export * from './PaginatedAttributeLiteResourceResponse';
|
|
115
111
|
export * from './PaginatedAttributeProductTypeRelationResourceResponse';
|
|
116
112
|
export * from './PaginatedAttributeResourceResponse';
|
|
117
|
-
export * from './PaginatedCategoryFrontendResourceResponse';
|
|
118
113
|
export * from './PaginatedDefinitionListResourceResponse';
|
|
119
114
|
export * from './PaginatedDefinitionResourceResponse';
|
|
120
115
|
export * from './PaginatedDocumentResourceResponse';
|
|
@@ -156,7 +151,6 @@ export * from './PreviewAutomationRulesResource';
|
|
|
156
151
|
export * from './PreviewAutomationRulesResourceArrayResponse';
|
|
157
152
|
export * from './ProductAggregationResource';
|
|
158
153
|
export * from './ProductAggregationResourceArrayResponse';
|
|
159
|
-
export * from './ProductAvailability';
|
|
160
154
|
export * from './ProductCategoryHierarchyResource';
|
|
161
155
|
export * from './ProductCategoryHierarchyResourceArrayResponse';
|
|
162
156
|
export * from './ProductCategoryListResource';
|
|
@@ -195,6 +189,7 @@ export * from './ProductSearchResponseResourcePriceInfo';
|
|
|
195
189
|
export * from './ProductSearchResultResource';
|
|
196
190
|
export * from './ProductSearchResultResourceArrayResponse';
|
|
197
191
|
export * from './ProductSortBy';
|
|
192
|
+
export * from './ProductStatus';
|
|
198
193
|
export * from './ProductTypeListResource';
|
|
199
194
|
export * from './ProductTypeListResourceArrayResponse';
|
|
200
195
|
export * from './ProductTypeLiteResource';
|
package/dist/models/index.js
CHANGED
|
@@ -50,10 +50,6 @@ __exportStar(require("./CategoryAutomationConditionType"), exports);
|
|
|
50
50
|
__exportStar(require("./CategoryAutomationFieldType"), exports);
|
|
51
51
|
__exportStar(require("./CategoryAutomationRuleResource"), exports);
|
|
52
52
|
__exportStar(require("./CategoryAutomationRuleResourceArrayResponse"), exports);
|
|
53
|
-
__exportStar(require("./CategoryFrontendResource"), exports);
|
|
54
|
-
__exportStar(require("./CategoryFrontendResourceArrayResponse"), exports);
|
|
55
|
-
__exportStar(require("./CategoryWithChildrenFrontendResource"), exports);
|
|
56
|
-
__exportStar(require("./CategoryWithChildrenFrontendResourceArrayResponse"), exports);
|
|
57
53
|
__exportStar(require("./CouponDiscountType"), exports);
|
|
58
54
|
__exportStar(require("./DefinitionListResource"), exports);
|
|
59
55
|
__exportStar(require("./DefinitionListResourceArrayResponse"), exports);
|
|
@@ -132,7 +128,6 @@ __exportStar(require("./PaginatedAttributeListResourceResponse"), exports);
|
|
|
132
128
|
__exportStar(require("./PaginatedAttributeLiteResourceResponse"), exports);
|
|
133
129
|
__exportStar(require("./PaginatedAttributeProductTypeRelationResourceResponse"), exports);
|
|
134
130
|
__exportStar(require("./PaginatedAttributeResourceResponse"), exports);
|
|
135
|
-
__exportStar(require("./PaginatedCategoryFrontendResourceResponse"), exports);
|
|
136
131
|
__exportStar(require("./PaginatedDefinitionListResourceResponse"), exports);
|
|
137
132
|
__exportStar(require("./PaginatedDefinitionResourceResponse"), exports);
|
|
138
133
|
__exportStar(require("./PaginatedDocumentResourceResponse"), exports);
|
|
@@ -174,7 +169,6 @@ __exportStar(require("./PreviewAutomationRulesResource"), exports);
|
|
|
174
169
|
__exportStar(require("./PreviewAutomationRulesResourceArrayResponse"), exports);
|
|
175
170
|
__exportStar(require("./ProductAggregationResource"), exports);
|
|
176
171
|
__exportStar(require("./ProductAggregationResourceArrayResponse"), exports);
|
|
177
|
-
__exportStar(require("./ProductAvailability"), exports);
|
|
178
172
|
__exportStar(require("./ProductCategoryHierarchyResource"), exports);
|
|
179
173
|
__exportStar(require("./ProductCategoryHierarchyResourceArrayResponse"), exports);
|
|
180
174
|
__exportStar(require("./ProductCategoryListResource"), exports);
|
|
@@ -213,6 +207,7 @@ __exportStar(require("./ProductSearchResponseResourcePriceInfo"), exports);
|
|
|
213
207
|
__exportStar(require("./ProductSearchResultResource"), exports);
|
|
214
208
|
__exportStar(require("./ProductSearchResultResourceArrayResponse"), exports);
|
|
215
209
|
__exportStar(require("./ProductSortBy"), exports);
|
|
210
|
+
__exportStar(require("./ProductStatus"), exports);
|
|
216
211
|
__exportStar(require("./ProductTypeListResource"), exports);
|
|
217
212
|
__exportStar(require("./ProductTypeListResourceArrayResponse"), exports);
|
|
218
213
|
__exportStar(require("./ProductTypeLiteResource"), exports);
|
|
@@ -16,13 +16,12 @@ Name | Type
|
|
|
16
16
|
`thumbnail` | string
|
|
17
17
|
`averageRating` | string
|
|
18
18
|
`labelDetails` | Array<number>
|
|
19
|
+
`categories` | Array<object>
|
|
19
20
|
`supplierName` | string
|
|
20
21
|
`supplierLogo` | string
|
|
21
22
|
`supplierId` | number
|
|
22
23
|
`availability` | string
|
|
23
24
|
`wishlisted` | boolean
|
|
24
|
-
`variationCount` | number
|
|
25
|
-
`overlayAssets` | Array<object>
|
|
26
25
|
|
|
27
26
|
## Example
|
|
28
27
|
|
|
@@ -41,13 +40,12 @@ const example = {
|
|
|
41
40
|
"thumbnail": null,
|
|
42
41
|
"averageRating": null,
|
|
43
42
|
"labelDetails": null,
|
|
43
|
+
"categories": null,
|
|
44
44
|
"supplierName": null,
|
|
45
45
|
"supplierLogo": null,
|
|
46
46
|
"supplierId": null,
|
|
47
47
|
"availability": null,
|
|
48
48
|
"wishlisted": null,
|
|
49
|
-
"variationCount": null,
|
|
50
|
-
"overlayAssets": null,
|
|
51
49
|
} satisfies ProductSearchResultResource
|
|
52
50
|
|
|
53
51
|
console.log(example)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ProductStatus
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -10,11 +10,11 @@ Name | Type
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import type {
|
|
13
|
+
import type { ProductStatus } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
14
|
|
|
15
15
|
// TODO: Update the object below with actual values
|
|
16
16
|
const example = {
|
|
17
|
-
} satisfies
|
|
17
|
+
} satisfies ProductStatus
|
|
18
18
|
|
|
19
19
|
console.log(example)
|
|
20
20
|
|
|
@@ -23,7 +23,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
23
23
|
console.log(exampleJSON)
|
|
24
24
|
|
|
25
25
|
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductStatus
|
|
27
27
|
console.log(exampleParsed)
|
|
28
28
|
```
|
|
29
29
|
|