@digital8/lighting-illusions-ts-sdk 0.0.650 → 0.0.652
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 +16 -2
- package/README.md +10 -3
- package/dist/models/CategoryFrontendResource.d.ts +70 -0
- package/dist/models/CategoryFrontendResource.js +73 -0
- package/dist/models/CategoryFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/CategoryFrontendResourceArrayResponse.js +50 -0
- package/dist/models/CategoryWithChildrenFrontendResource.d.ts +39 -0
- package/dist/models/CategoryWithChildrenFrontendResource.js +56 -0
- package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GlobalSearchProductResource.d.ts +6 -0
- package/dist/models/GlobalSearchProductResource.js +4 -0
- package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +3 -2
- package/dist/models/OverlayTemplateAssetFrontendResource.js +3 -2
- package/dist/models/OverlayTemplateAssetResource.d.ts +3 -3
- package/dist/models/OverlayTemplateAssetResource.js +3 -3
- package/dist/models/PaginatedCategoryFrontendResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCategoryFrontendResourceResponse.js +57 -0
- package/dist/models/ProductAvailability.d.ts +26 -0
- package/dist/models/ProductAvailability.js +52 -0
- package/dist/models/ProductCompareResource.d.ts +2 -2
- package/dist/models/ProductSearchResultResource.d.ts +12 -6
- package/dist/models/ProductSearchResultResource.js +8 -4
- package/dist/models/SupplierFrontendResource.d.ts +7 -8
- package/dist/models/SupplierFrontendResource.js +8 -9
- package/dist/models/TagFrontendResource.d.ts +63 -0
- package/dist/models/TagFrontendResource.js +72 -0
- package/dist/models/TagFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/TagFrontendResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +8 -1
- package/dist/models/index.js +8 -1
- package/docs/CategoryFrontendResource.md +46 -0
- package/docs/CategoryFrontendResourceArrayResponse.md +34 -0
- package/docs/CategoryWithChildrenFrontendResource.md +36 -0
- package/docs/CategoryWithChildrenFrontendResourceArrayResponse.md +34 -0
- package/docs/GlobalSearchProductResource.md +2 -0
- package/docs/OverlayTemplateAssetFrontendResource.md +1 -1
- package/docs/OverlayTemplateAssetResource.md +1 -1
- package/docs/PaginatedCategoryFrontendResourceResponse.md +36 -0
- package/docs/{ProductStatus.md → ProductAvailability.md} +4 -4
- package/docs/ProductCompareResource.md +1 -1
- package/docs/ProductSearchResultResource.md +4 -2
- package/docs/SupplierFrontendResource.md +4 -4
- package/docs/TagFrontendResource.md +44 -0
- package/docs/TagFrontendResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/models/CategoryFrontendResource.ts +133 -0
- package/src/models/CategoryFrontendResourceArrayResponse.ts +73 -0
- package/src/models/CategoryWithChildrenFrontendResource.ts +83 -0
- package/src/models/CategoryWithChildrenFrontendResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GlobalSearchProductResource.ts +9 -0
- package/src/models/OverlayTemplateAssetFrontendResource.ts +12 -4
- package/src/models/OverlayTemplateAssetResource.ts +10 -10
- package/src/models/PaginatedCategoryFrontendResourceResponse.ts +90 -0
- package/src/models/ProductAvailability.ts +54 -0
- package/src/models/ProductCompareResource.ts +2 -2
- package/src/models/ProductSearchResultResource.ts +18 -9
- package/src/models/SupplierFrontendResource.ts +20 -27
- package/src/models/TagFrontendResource.ts +119 -0
- package/src/models/TagFrontendResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +8 -1
- package/dist/models/ProductStatus.d.ts +0 -24
- package/dist/models/ProductStatus.js +0 -50
- package/src/models/ProductStatus.ts +0 -52
|
@@ -18,6 +18,7 @@ exports.OverlayTemplateAssetFrontendResourceFromJSON = OverlayTemplateAssetFront
|
|
|
18
18
|
exports.OverlayTemplateAssetFrontendResourceFromJSONTyped = OverlayTemplateAssetFrontendResourceFromJSONTyped;
|
|
19
19
|
exports.OverlayTemplateAssetFrontendResourceToJSON = OverlayTemplateAssetFrontendResourceToJSON;
|
|
20
20
|
exports.OverlayTemplateAssetFrontendResourceToJSONTyped = OverlayTemplateAssetFrontendResourceToJSONTyped;
|
|
21
|
+
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the OverlayTemplateAssetFrontendResource interface.
|
|
23
24
|
*/
|
|
@@ -49,7 +50,7 @@ function OverlayTemplateAssetFrontendResourceFromJSONTyped(json, ignoreDiscrimin
|
|
|
49
50
|
'padding': json['padding'],
|
|
50
51
|
'horizontalMargin': json['horizontalMargin'],
|
|
51
52
|
'verticalMargin': json['verticalMargin'],
|
|
52
|
-
'image': json['image'],
|
|
53
|
+
'image': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['image']),
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
56
|
function OverlayTemplateAssetFrontendResourceToJSON(json) {
|
|
@@ -66,6 +67,6 @@ function OverlayTemplateAssetFrontendResourceToJSONTyped(value, ignoreDiscrimina
|
|
|
66
67
|
'padding': value['padding'],
|
|
67
68
|
'horizontalMargin': value['horizontalMargin'],
|
|
68
69
|
'verticalMargin': value['verticalMargin'],
|
|
69
|
-
'image': value['image'],
|
|
70
|
+
'image': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['image']),
|
|
70
71
|
};
|
|
71
72
|
}
|
|
@@ -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 { AssetLiteResource } from './AssetLiteResource';
|
|
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 {AssetLiteResource}
|
|
28
28
|
* @memberof OverlayTemplateAssetResource
|
|
29
29
|
*/
|
|
30
|
-
asset:
|
|
30
|
+
asset: AssetLiteResource | 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 AssetLiteResource_1 = require("./AssetLiteResource");
|
|
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, AssetLiteResource_1.AssetLiteResourceFromJSON)(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, AssetLiteResource_1.AssetLiteResourceToJSON)(value['asset']),
|
|
67
67
|
'position': value['position'],
|
|
68
68
|
'padding': value['padding'],
|
|
69
69
|
'horizontalMargin': value['horizontalMargin'],
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { CategoryFrontendResource } from './CategoryFrontendResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedCategoryFrontendResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedCategoryFrontendResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<CategoryFrontendResource>}
|
|
23
|
+
* @memberof PaginatedCategoryFrontendResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<CategoryFrontendResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedCategoryFrontendResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedCategoryFrontendResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedCategoryFrontendResourceResponse(value: object): value is PaginatedCategoryFrontendResourceResponse;
|
|
37
|
+
export declare function PaginatedCategoryFrontendResourceResponseFromJSON(json: any): PaginatedCategoryFrontendResourceResponse;
|
|
38
|
+
export declare function PaginatedCategoryFrontendResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCategoryFrontendResourceResponse;
|
|
39
|
+
export declare function PaginatedCategoryFrontendResourceResponseToJSON(json: any): PaginatedCategoryFrontendResourceResponse;
|
|
40
|
+
export declare function PaginatedCategoryFrontendResourceResponseToJSONTyped(value?: PaginatedCategoryFrontendResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfPaginatedCategoryFrontendResourceResponse = instanceOfPaginatedCategoryFrontendResourceResponse;
|
|
17
|
+
exports.PaginatedCategoryFrontendResourceResponseFromJSON = PaginatedCategoryFrontendResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedCategoryFrontendResourceResponseFromJSONTyped = PaginatedCategoryFrontendResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedCategoryFrontendResourceResponseToJSON = PaginatedCategoryFrontendResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedCategoryFrontendResourceResponseToJSONTyped = PaginatedCategoryFrontendResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var CategoryFrontendResource_1 = require("./CategoryFrontendResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedCategoryFrontendResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedCategoryFrontendResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedCategoryFrontendResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedCategoryFrontendResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedCategoryFrontendResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(CategoryFrontendResource_1.CategoryFrontendResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedCategoryFrontendResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedCategoryFrontendResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedCategoryFrontendResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(CategoryFrontendResource_1.CategoryFrontendResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 ProductAvailability: {
|
|
17
|
+
readonly InStock: "in_stock";
|
|
18
|
+
readonly OutOfStock: "out_of_stock";
|
|
19
|
+
readonly Preorder: "preorder";
|
|
20
|
+
};
|
|
21
|
+
export type ProductAvailability = typeof ProductAvailability[keyof typeof ProductAvailability];
|
|
22
|
+
export declare function instanceOfProductAvailability(value: any): boolean;
|
|
23
|
+
export declare function ProductAvailabilityFromJSON(json: any): ProductAvailability;
|
|
24
|
+
export declare function ProductAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAvailability;
|
|
25
|
+
export declare function ProductAvailabilityToJSON(value?: ProductAvailability | null): any;
|
|
26
|
+
export declare function ProductAvailabilityToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductAvailability;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.ProductAvailability = void 0;
|
|
17
|
+
exports.instanceOfProductAvailability = instanceOfProductAvailability;
|
|
18
|
+
exports.ProductAvailabilityFromJSON = ProductAvailabilityFromJSON;
|
|
19
|
+
exports.ProductAvailabilityFromJSONTyped = ProductAvailabilityFromJSONTyped;
|
|
20
|
+
exports.ProductAvailabilityToJSON = ProductAvailabilityToJSON;
|
|
21
|
+
exports.ProductAvailabilityToJSONTyped = ProductAvailabilityToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ProductAvailability = {
|
|
27
|
+
InStock: 'in_stock',
|
|
28
|
+
OutOfStock: 'out_of_stock',
|
|
29
|
+
Preorder: 'preorder'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfProductAvailability(value) {
|
|
32
|
+
for (var key in exports.ProductAvailability) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductAvailability, key)) {
|
|
34
|
+
if (exports.ProductAvailability[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function ProductAvailabilityFromJSON(json) {
|
|
42
|
+
return ProductAvailabilityFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ProductAvailabilityFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function ProductAvailabilityToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function ProductAvailabilityToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -75,12 +75,6 @@ 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>;
|
|
84
78
|
/**
|
|
85
79
|
*
|
|
86
80
|
* @type {string}
|
|
@@ -111,6 +105,18 @@ export interface ProductSearchResultResource {
|
|
|
111
105
|
* @memberof ProductSearchResultResource
|
|
112
106
|
*/
|
|
113
107
|
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>;
|
|
114
120
|
}
|
|
115
121
|
/**
|
|
116
122
|
* Check if a given object implements the ProductSearchResultResource interface.
|
|
@@ -40,8 +40,6 @@ 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;
|
|
45
43
|
if (!('supplierName' in value) || value['supplierName'] === undefined)
|
|
46
44
|
return false;
|
|
47
45
|
if (!('supplierLogo' in value) || value['supplierLogo'] === undefined)
|
|
@@ -52,6 +50,10 @@ function instanceOfProductSearchResultResource(value) {
|
|
|
52
50
|
return false;
|
|
53
51
|
if (!('wishlisted' in value) || value['wishlisted'] === undefined)
|
|
54
52
|
return false;
|
|
53
|
+
if (!('variationCount' in value) || value['variationCount'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('overlayAssets' in value) || value['overlayAssets'] === undefined)
|
|
56
|
+
return false;
|
|
55
57
|
return true;
|
|
56
58
|
}
|
|
57
59
|
function ProductSearchResultResourceFromJSON(json) {
|
|
@@ -72,12 +74,13 @@ function ProductSearchResultResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
74
|
'thumbnail': json['thumbnail'],
|
|
73
75
|
'averageRating': json['averageRating'] == null ? undefined : json['averageRating'],
|
|
74
76
|
'labelDetails': json['labelDetails'],
|
|
75
|
-
'categories': json['categories'],
|
|
76
77
|
'supplierName': json['supplierName'],
|
|
77
78
|
'supplierLogo': json['supplierLogo'],
|
|
78
79
|
'supplierId': json['supplierId'],
|
|
79
80
|
'availability': json['availability'],
|
|
80
81
|
'wishlisted': json['wishlisted'],
|
|
82
|
+
'variationCount': json['variationCount'],
|
|
83
|
+
'overlayAssets': json['overlayAssets'],
|
|
81
84
|
};
|
|
82
85
|
}
|
|
83
86
|
function ProductSearchResultResourceToJSON(json) {
|
|
@@ -99,11 +102,12 @@ function ProductSearchResultResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
99
102
|
'thumbnail': value['thumbnail'],
|
|
100
103
|
'averageRating': value['averageRating'],
|
|
101
104
|
'labelDetails': value['labelDetails'],
|
|
102
|
-
'categories': value['categories'],
|
|
103
105
|
'supplierName': value['supplierName'],
|
|
104
106
|
'supplierLogo': value['supplierLogo'],
|
|
105
107
|
'supplierId': value['supplierId'],
|
|
106
108
|
'availability': value['availability'],
|
|
107
109
|
'wishlisted': value['wishlisted'],
|
|
110
|
+
'variationCount': value['variationCount'],
|
|
111
|
+
'overlayAssets': value['overlayAssets'],
|
|
108
112
|
};
|
|
109
113
|
}
|
|
@@ -9,9 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AssetLiteResource } from './AssetLiteResource';
|
|
12
13
|
import type { DescriptionResource } from './DescriptionResource';
|
|
13
|
-
import type { AssetResource } from './AssetResource';
|
|
14
|
-
import type { SEOResource } from './SEOResource';
|
|
15
14
|
/**
|
|
16
15
|
*
|
|
17
16
|
* @export
|
|
@@ -38,10 +37,10 @@ export interface SupplierFrontendResource {
|
|
|
38
37
|
slug: string;
|
|
39
38
|
/**
|
|
40
39
|
*
|
|
41
|
-
* @type {
|
|
40
|
+
* @type {AssetLiteResource}
|
|
42
41
|
* @memberof SupplierFrontendResource
|
|
43
42
|
*/
|
|
44
|
-
thumbnail:
|
|
43
|
+
thumbnail: AssetLiteResource | null;
|
|
45
44
|
/**
|
|
46
45
|
*
|
|
47
46
|
* @type {number}
|
|
@@ -50,16 +49,16 @@ export interface SupplierFrontendResource {
|
|
|
50
49
|
supplierEta: number;
|
|
51
50
|
/**
|
|
52
51
|
*
|
|
53
|
-
* @type {
|
|
52
|
+
* @type {object}
|
|
54
53
|
* @memberof SupplierFrontendResource
|
|
55
54
|
*/
|
|
56
|
-
seo:
|
|
55
|
+
seo: object;
|
|
57
56
|
/**
|
|
58
57
|
*
|
|
59
|
-
* @type {
|
|
58
|
+
* @type {DescriptionResource}
|
|
60
59
|
* @memberof SupplierFrontendResource
|
|
61
60
|
*/
|
|
62
|
-
|
|
61
|
+
description: DescriptionResource | null;
|
|
63
62
|
}
|
|
64
63
|
/**
|
|
65
64
|
* Check if a given object implements the SupplierFrontendResource interface.
|
|
@@ -18,9 +18,8 @@ exports.SupplierFrontendResourceFromJSON = SupplierFrontendResourceFromJSON;
|
|
|
18
18
|
exports.SupplierFrontendResourceFromJSONTyped = SupplierFrontendResourceFromJSONTyped;
|
|
19
19
|
exports.SupplierFrontendResourceToJSON = SupplierFrontendResourceToJSON;
|
|
20
20
|
exports.SupplierFrontendResourceToJSONTyped = SupplierFrontendResourceToJSONTyped;
|
|
21
|
+
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
21
22
|
var DescriptionResource_1 = require("./DescriptionResource");
|
|
22
|
-
var AssetResource_1 = require("./AssetResource");
|
|
23
|
-
var SEOResource_1 = require("./SEOResource");
|
|
24
23
|
/**
|
|
25
24
|
* Check if a given object implements the SupplierFrontendResource interface.
|
|
26
25
|
*/
|
|
@@ -37,7 +36,7 @@ function instanceOfSupplierFrontendResource(value) {
|
|
|
37
36
|
return false;
|
|
38
37
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
39
38
|
return false;
|
|
40
|
-
if (!('
|
|
39
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
41
40
|
return false;
|
|
42
41
|
return true;
|
|
43
42
|
}
|
|
@@ -52,10 +51,10 @@ function SupplierFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
51
|
'id': json['id'],
|
|
53
52
|
'name': json['name'],
|
|
54
53
|
'slug': json['slug'],
|
|
55
|
-
'thumbnail': (0,
|
|
54
|
+
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
56
55
|
'supplierEta': json['supplierEta'],
|
|
57
|
-
'seo':
|
|
58
|
-
'
|
|
56
|
+
'seo': json['seo'],
|
|
57
|
+
'description': (0, DescriptionResource_1.DescriptionResourceFromJSON)(json['description']),
|
|
59
58
|
};
|
|
60
59
|
}
|
|
61
60
|
function SupplierFrontendResourceToJSON(json) {
|
|
@@ -70,9 +69,9 @@ function SupplierFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
70
69
|
'id': value['id'],
|
|
71
70
|
'name': value['name'],
|
|
72
71
|
'slug': value['slug'],
|
|
73
|
-
'thumbnail': (0,
|
|
72
|
+
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
74
73
|
'supplierEta': value['supplierEta'],
|
|
75
|
-
'seo':
|
|
76
|
-
'
|
|
74
|
+
'seo': value['seo'],
|
|
75
|
+
'description': (0, DescriptionResource_1.DescriptionResourceToJSON)(value['description']),
|
|
77
76
|
};
|
|
78
77
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TagFrontendResource
|
|
17
|
+
*/
|
|
18
|
+
export interface TagFrontendResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof TagFrontendResource
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TagFrontendResource
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof TagFrontendResource
|
|
35
|
+
*/
|
|
36
|
+
slug: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof TagFrontendResource
|
|
41
|
+
*/
|
|
42
|
+
type: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {object}
|
|
46
|
+
* @memberof TagFrontendResource
|
|
47
|
+
*/
|
|
48
|
+
seo: object;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {DescriptionResource}
|
|
52
|
+
* @memberof TagFrontendResource
|
|
53
|
+
*/
|
|
54
|
+
description: DescriptionResource | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the TagFrontendResource interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfTagFrontendResource(value: object): value is TagFrontendResource;
|
|
60
|
+
export declare function TagFrontendResourceFromJSON(json: any): TagFrontendResource;
|
|
61
|
+
export declare function TagFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagFrontendResource;
|
|
62
|
+
export declare function TagFrontendResourceToJSON(json: any): TagFrontendResource;
|
|
63
|
+
export declare function TagFrontendResourceToJSONTyped(value?: TagFrontendResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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.instanceOfTagFrontendResource = instanceOfTagFrontendResource;
|
|
17
|
+
exports.TagFrontendResourceFromJSON = TagFrontendResourceFromJSON;
|
|
18
|
+
exports.TagFrontendResourceFromJSONTyped = TagFrontendResourceFromJSONTyped;
|
|
19
|
+
exports.TagFrontendResourceToJSON = TagFrontendResourceToJSON;
|
|
20
|
+
exports.TagFrontendResourceToJSONTyped = TagFrontendResourceToJSONTyped;
|
|
21
|
+
var DescriptionResource_1 = require("./DescriptionResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TagFrontendResource interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTagFrontendResource(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('seo' in value) || value['seo'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function TagFrontendResourceFromJSON(json) {
|
|
41
|
+
return TagFrontendResourceFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function TagFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
'name': json['name'],
|
|
50
|
+
'slug': json['slug'],
|
|
51
|
+
'type': json['type'],
|
|
52
|
+
'seo': json['seo'],
|
|
53
|
+
'description': (0, DescriptionResource_1.DescriptionResourceFromJSON)(json['description']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function TagFrontendResourceToJSON(json) {
|
|
57
|
+
return TagFrontendResourceToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function TagFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'name': value['name'],
|
|
67
|
+
'slug': value['slug'],
|
|
68
|
+
'type': value['type'],
|
|
69
|
+
'seo': value['seo'],
|
|
70
|
+
'description': (0, DescriptionResource_1.DescriptionResourceToJSON)(value['description']),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import type { TagFrontendResource } from './TagFrontendResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TagFrontendResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface TagFrontendResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<TagFrontendResource>}
|
|
22
|
+
* @memberof TagFrontendResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<TagFrontendResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the TagFrontendResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfTagFrontendResourceArrayResponse(value: object): value is TagFrontendResourceArrayResponse;
|
|
30
|
+
export declare function TagFrontendResourceArrayResponseFromJSON(json: any): TagFrontendResourceArrayResponse;
|
|
31
|
+
export declare function TagFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagFrontendResourceArrayResponse;
|
|
32
|
+
export declare function TagFrontendResourceArrayResponseToJSON(json: any): TagFrontendResourceArrayResponse;
|
|
33
|
+
export declare function TagFrontendResourceArrayResponseToJSONTyped(value?: TagFrontendResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfTagFrontendResourceArrayResponse = instanceOfTagFrontendResourceArrayResponse;
|
|
17
|
+
exports.TagFrontendResourceArrayResponseFromJSON = TagFrontendResourceArrayResponseFromJSON;
|
|
18
|
+
exports.TagFrontendResourceArrayResponseFromJSONTyped = TagFrontendResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.TagFrontendResourceArrayResponseToJSON = TagFrontendResourceArrayResponseToJSON;
|
|
20
|
+
exports.TagFrontendResourceArrayResponseToJSONTyped = TagFrontendResourceArrayResponseToJSONTyped;
|
|
21
|
+
var TagFrontendResource_1 = require("./TagFrontendResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TagFrontendResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTagFrontendResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function TagFrontendResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return TagFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function TagFrontendResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(TagFrontendResource_1.TagFrontendResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function TagFrontendResourceArrayResponseToJSON(json) {
|
|
40
|
+
return TagFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function TagFrontendResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(TagFrontendResource_1.TagFrontendResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|