@digital8/lighting-illusions-ts-sdk 0.0.630 → 0.0.631
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 +12 -24
- package/README.md +8 -19
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- 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 +3 -1
- 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/index.d.ts +6 -11
- package/dist/models/index.js +6 -11
- package/docs/{DefinitionResource.md → CategoryFrontendResource.md} +14 -6
- package/docs/{DefinitionResourceArrayResponse.md → CategoryFrontendResourceArrayResponse.md} +5 -5
- package/docs/{DefinitionListResource.md → CategoryWithChildrenFrontendResource.md} +8 -8
- package/docs/{DefinitionListResourceArrayResponse.md → CategoryWithChildrenFrontendResourceArrayResponse.md} +5 -5
- package/docs/OverlayTemplateAssetFrontendResource.md +1 -1
- package/docs/OverlayTemplateAssetResource.md +1 -1
- package/docs/{PaginatedDefinitionListResourceResponse.md → PaginatedCategoryFrontendResourceResponse.md} +5 -5
- 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/package.json +1 -1
- package/src/apis/index.ts +0 -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 +3 -2
- 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/index.ts +6 -11
- package/dist/apis/DefinitionApi.d.ts +0 -85
- package/dist/apis/DefinitionApi.js +0 -355
- package/dist/models/DefinitionListResource.d.ts +0 -38
- package/dist/models/DefinitionListResource.js +0 -55
- package/dist/models/DefinitionListResourceArrayResponse.d.ts +0 -33
- package/dist/models/DefinitionListResourceArrayResponse.js +0 -50
- package/dist/models/DefinitionResource.d.ts +0 -44
- package/dist/models/DefinitionResource.js +0 -59
- package/dist/models/DefinitionResourceArrayResponse.d.ts +0 -33
- package/dist/models/DefinitionResourceArrayResponse.js +0 -50
- package/dist/models/GetAllDefinitionRequest.d.ts +0 -80
- package/dist/models/GetAllDefinitionRequest.js +0 -76
- package/dist/models/IndexDefinitionRequest.d.ts +0 -92
- package/dist/models/IndexDefinitionRequest.js +0 -80
- package/dist/models/PaginatedDefinitionListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedDefinitionListResourceResponse.js +0 -57
- package/dist/models/PaginatedDefinitionResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedDefinitionResourceResponse.js +0 -57
- package/dist/models/ProductStatus.d.ts +0 -24
- package/dist/models/ProductStatus.js +0 -50
- package/dist/models/StoreDefinitionRequest.d.ts +0 -38
- package/dist/models/StoreDefinitionRequest.js +0 -55
- package/dist/models/UpdateDefinitionRequest.d.ts +0 -38
- package/dist/models/UpdateDefinitionRequest.js +0 -55
- package/docs/DefinitionApi.md +0 -407
- package/docs/GetAllDefinitionRequest.md +0 -44
- package/docs/IndexDefinitionRequest.md +0 -48
- package/docs/PaginatedDefinitionResourceResponse.md +0 -36
- package/docs/StoreDefinitionRequest.md +0 -36
- package/docs/UpdateDefinitionRequest.md +0 -36
- package/src/apis/DefinitionApi.ts +0 -286
- package/src/models/DefinitionListResource.ts +0 -75
- package/src/models/DefinitionListResourceArrayResponse.ts +0 -73
- package/src/models/DefinitionResource.ts +0 -84
- package/src/models/DefinitionResourceArrayResponse.ts +0 -73
- package/src/models/GetAllDefinitionRequest.ts +0 -127
- package/src/models/IndexDefinitionRequest.ts +0 -143
- package/src/models/PaginatedDefinitionListResourceResponse.ts +0 -90
- package/src/models/PaginatedDefinitionResourceResponse.ts +0 -90
- package/src/models/ProductStatus.ts +0 -52
- package/src/models/StoreDefinitionRequest.ts +0 -75
- package/src/models/UpdateDefinitionRequest.ts +0 -75
|
@@ -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.instanceOfCategoryWithChildrenFrontendResourceArrayResponse = instanceOfCategoryWithChildrenFrontendResourceArrayResponse;
|
|
17
|
+
exports.CategoryWithChildrenFrontendResourceArrayResponseFromJSON = CategoryWithChildrenFrontendResourceArrayResponseFromJSON;
|
|
18
|
+
exports.CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped = CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.CategoryWithChildrenFrontendResourceArrayResponseToJSON = CategoryWithChildrenFrontendResourceArrayResponseToJSON;
|
|
20
|
+
exports.CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped = CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped;
|
|
21
|
+
var CategoryWithChildrenFrontendResource_1 = require("./CategoryWithChildrenFrontendResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CategoryWithChildrenFrontendResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCategoryWithChildrenFrontendResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CategoryWithChildrenFrontendResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(CategoryWithChildrenFrontendResource_1.CategoryWithChildrenFrontendResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function CategoryWithChildrenFrontendResourceArrayResponseToJSON(json) {
|
|
40
|
+
return CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped(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(CategoryWithChildrenFrontendResource_1.CategoryWithChildrenFrontendResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AssetLiteResource } from './AssetLiteResource';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -47,10 +48,10 @@ export interface OverlayTemplateAssetFrontendResource {
|
|
|
47
48
|
verticalMargin: number;
|
|
48
49
|
/**
|
|
49
50
|
*
|
|
50
|
-
* @type {
|
|
51
|
+
* @type {AssetLiteResource}
|
|
51
52
|
* @memberof OverlayTemplateAssetFrontendResource
|
|
52
53
|
*/
|
|
53
|
-
image:
|
|
54
|
+
image: AssetLiteResource | null;
|
|
54
55
|
}
|
|
55
56
|
/**
|
|
56
57
|
* Check if a given object implements the OverlayTemplateAssetFrontendResource interface.
|
|
@@ -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
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -32,11 +32,11 @@ 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';
|
|
35
39
|
export * from './CouponDiscountType';
|
|
36
|
-
export * from './DefinitionListResource';
|
|
37
|
-
export * from './DefinitionListResourceArrayResponse';
|
|
38
|
-
export * from './DefinitionResource';
|
|
39
|
-
export * from './DefinitionResourceArrayResponse';
|
|
40
40
|
export * from './DescriptionResource';
|
|
41
41
|
export * from './DescriptionResourceArrayResponse';
|
|
42
42
|
export * from './DestroyAttributeValueRequest';
|
|
@@ -61,7 +61,6 @@ export * from './ExternalApiProvider';
|
|
|
61
61
|
export * from './ExternalApiSyncStatus';
|
|
62
62
|
export * from './GenericResponse';
|
|
63
63
|
export * from './GetAllAttributeRequest';
|
|
64
|
-
export * from './GetAllDefinitionRequest';
|
|
65
64
|
export * from './GetAllDocumentRequest';
|
|
66
65
|
export * from './GetAllGoogleCategoryRequest';
|
|
67
66
|
export * from './GetAllOverlayTemplateRequest';
|
|
@@ -81,7 +80,6 @@ export * from './GlobalSearchResponseResourceArrayResponse';
|
|
|
81
80
|
export * from './GoogleCategoryResource';
|
|
82
81
|
export * from './GoogleCategoryResourceArrayResponse';
|
|
83
82
|
export * from './IndexAttributeRequest';
|
|
84
|
-
export * from './IndexDefinitionRequest';
|
|
85
83
|
export * from './IndexDocumentRequest';
|
|
86
84
|
export * from './IndexExternalApiLogRequest';
|
|
87
85
|
export * from './IndexOverlayTemplateRequest';
|
|
@@ -110,8 +108,7 @@ export * from './PaginatedAttributeListResourceResponse';
|
|
|
110
108
|
export * from './PaginatedAttributeLiteResourceResponse';
|
|
111
109
|
export * from './PaginatedAttributeProductTypeRelationResourceResponse';
|
|
112
110
|
export * from './PaginatedAttributeResourceResponse';
|
|
113
|
-
export * from './
|
|
114
|
-
export * from './PaginatedDefinitionResourceResponse';
|
|
111
|
+
export * from './PaginatedCategoryFrontendResourceResponse';
|
|
115
112
|
export * from './PaginatedDocumentResourceResponse';
|
|
116
113
|
export * from './PaginatedExternalApiLogListResourceResponse';
|
|
117
114
|
export * from './PaginatedExternalApiLogResourceResponse';
|
|
@@ -151,6 +148,7 @@ export * from './PreviewAutomationRulesResource';
|
|
|
151
148
|
export * from './PreviewAutomationRulesResourceArrayResponse';
|
|
152
149
|
export * from './ProductAggregationResource';
|
|
153
150
|
export * from './ProductAggregationResourceArrayResponse';
|
|
151
|
+
export * from './ProductAvailability';
|
|
154
152
|
export * from './ProductCategoryHierarchyResource';
|
|
155
153
|
export * from './ProductCategoryHierarchyResourceArrayResponse';
|
|
156
154
|
export * from './ProductCategoryListResource';
|
|
@@ -189,7 +187,6 @@ export * from './ProductSearchResponseResourcePriceInfo';
|
|
|
189
187
|
export * from './ProductSearchResultResource';
|
|
190
188
|
export * from './ProductSearchResultResourceArrayResponse';
|
|
191
189
|
export * from './ProductSortBy';
|
|
192
|
-
export * from './ProductStatus';
|
|
193
190
|
export * from './ProductTypeListResource';
|
|
194
191
|
export * from './ProductTypeListResourceArrayResponse';
|
|
195
192
|
export * from './ProductTypeLiteResource';
|
|
@@ -215,7 +212,6 @@ export * from './SiteResourceArrayResponse';
|
|
|
215
212
|
export * from './StoreAssetFileRequest';
|
|
216
213
|
export * from './StoreAttributeRequest';
|
|
217
214
|
export * from './StoreAttributeValueRequest';
|
|
218
|
-
export * from './StoreDefinitionRequest';
|
|
219
215
|
export * from './StoreDocumentFileRequest';
|
|
220
216
|
export * from './StoreDocumentRequest';
|
|
221
217
|
export * from './StoreOverlayTemplateAssetRequest';
|
|
@@ -251,7 +247,6 @@ export * from './TagResourceArrayResponse';
|
|
|
251
247
|
export * from './TagType';
|
|
252
248
|
export * from './UpdateAttributeRequest';
|
|
253
249
|
export * from './UpdateAttributeValueRequest';
|
|
254
|
-
export * from './UpdateDefinitionRequest';
|
|
255
250
|
export * from './UpdateDocumentRequest';
|
|
256
251
|
export * from './UpdateFilterOrderAttributeRequest';
|
|
257
252
|
export * from './UpdateFilterOrderAttributeRequestValuesInner';
|