@digital8/lighting-illusions-ts-sdk 0.0.487 → 0.0.488
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 +22 -2
- package/README.md +15 -7
- package/dist/apis/DocumentApi.d.ts +1 -24
- package/dist/apis/DocumentApi.js +2 -96
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllDocumentRequest.d.ts +0 -26
- package/dist/models/GetAllDocumentRequest.js +1 -14
- package/dist/models/GetAllProductChildRequest.d.ts +0 -1
- package/dist/models/GetAllProductChildRequest.js +1 -2
- package/dist/models/IndexDocumentRequest.d.ts +0 -26
- package/dist/models/IndexDocumentRequest.js +1 -14
- package/dist/models/IndexExternalApiLogRequest.d.ts +6 -0
- package/dist/models/IndexExternalApiLogRequest.js +2 -0
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -1
- package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductSearchResultResourceResponse.js +57 -0
- package/dist/models/ProductAggregationResource.d.ts +50 -0
- package/dist/models/ProductAggregationResource.js +63 -0
- package/dist/models/ProductAggregationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductAggregationResourceArrayResponse.js +50 -0
- package/dist/models/ProductChildSiteDetailResource.d.ts +8 -2
- package/dist/models/ProductChildSiteDetailResource.js +4 -4
- package/dist/models/ProductRating.d.ts +26 -0
- package/dist/models/ProductRating.js +52 -0
- package/dist/models/ProductSearchResponseResource.d.ts +54 -0
- package/dist/models/ProductSearchResponseResource.js +67 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.js +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.js +63 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.js +63 -0
- package/dist/models/ProductSearchResultResource.d.ts +116 -0
- package/dist/models/ProductSearchResultResource.js +105 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.js +50 -0
- package/dist/models/ProductSortBy.d.ts +32 -0
- package/dist/models/ProductSortBy.js +58 -0
- package/dist/models/index.d.ts +11 -1
- package/dist/models/index.js +11 -1
- package/docs/DocumentApi.md +2 -137
- package/docs/GetAllDocumentRequest.md +0 -6
- package/docs/IndexDocumentRequest.md +0 -6
- package/docs/IndexExternalApiLogRequest.md +2 -0
- package/docs/PaginatedProductSearchResultResourceResponse.md +36 -0
- package/docs/ProductAggregationResource.md +40 -0
- package/docs/ProductAggregationResourceArrayResponse.md +34 -0
- package/docs/ProductChildSiteDetailResource.md +4 -2
- package/docs/{UpdateDocumentRequest.md → ProductRating.md} +4 -10
- package/docs/ProductSearchResponseResource.md +40 -0
- package/docs/ProductSearchResponseResourceArrayResponse.md +34 -0
- package/docs/ProductSearchResponseResourceMeta.md +40 -0
- package/docs/ProductSearchResponseResourcePriceInfo.md +40 -0
- package/docs/ProductSearchResultResource.md +62 -0
- package/docs/ProductSearchResultResourceArrayResponse.md +34 -0
- package/docs/ProductSortBy.md +32 -0
- package/package.json +1 -1
- package/src/apis/DocumentApi.ts +2 -91
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllDocumentRequest.ts +0 -33
- package/src/models/GetAllProductChildRequest.ts +1 -2
- package/src/models/IndexDocumentRequest.ts +0 -33
- package/src/models/IndexExternalApiLogRequest.ts +8 -0
- package/src/models/IndexProductChildRequest.ts +0 -1
- package/src/models/PaginatedProductSearchResultResourceResponse.ts +90 -0
- package/src/models/ProductAggregationResource.ts +93 -0
- package/src/models/ProductAggregationResourceArrayResponse.ts +73 -0
- package/src/models/ProductChildSiteDetailResource.ts +12 -5
- package/src/models/ProductRating.ts +54 -0
- package/src/models/ProductSearchResponseResource.ts +122 -0
- package/src/models/ProductSearchResponseResourceArrayResponse.ts +73 -0
- package/src/models/ProductSearchResponseResourceMeta.ts +93 -0
- package/src/models/ProductSearchResponseResourcePriceInfo.ts +93 -0
- package/src/models/ProductSearchResultResource.ts +191 -0
- package/src/models/ProductSearchResultResourceArrayResponse.ts +73 -0
- package/src/models/ProductSortBy.ts +60 -0
- package/src/models/index.ts +11 -1
- package/dist/models/UpdateDocumentRequest.d.ts +0 -44
- package/dist/models/UpdateDocumentRequest.js +0 -57
- package/src/models/UpdateDocumentRequest.ts +0 -83
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfProductSearchResponseResourceMeta = instanceOfProductSearchResponseResourceMeta;
|
|
17
|
+
exports.ProductSearchResponseResourceMetaFromJSON = ProductSearchResponseResourceMetaFromJSON;
|
|
18
|
+
exports.ProductSearchResponseResourceMetaFromJSONTyped = ProductSearchResponseResourceMetaFromJSONTyped;
|
|
19
|
+
exports.ProductSearchResponseResourceMetaToJSON = ProductSearchResponseResourceMetaToJSON;
|
|
20
|
+
exports.ProductSearchResponseResourceMetaToJSONTyped = ProductSearchResponseResourceMetaToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ProductSearchResponseResourceMeta interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfProductSearchResponseResourceMeta(value) {
|
|
25
|
+
if (!('currentPage' in value) || value['currentPage'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('perPage' in value) || value['perPage'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('lastPage' in value) || value['lastPage'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ProductSearchResponseResourceMetaFromJSON(json) {
|
|
36
|
+
return ProductSearchResponseResourceMetaFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ProductSearchResponseResourceMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'currentPage': json['currentPage'],
|
|
44
|
+
'perPage': json['perPage'],
|
|
45
|
+
'total': json['total'],
|
|
46
|
+
'lastPage': json['lastPage'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ProductSearchResponseResourceMetaToJSON(json) {
|
|
50
|
+
return ProductSearchResponseResourceMetaToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ProductSearchResponseResourceMetaToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'currentPage': value['currentPage'],
|
|
59
|
+
'perPage': value['perPage'],
|
|
60
|
+
'total': value['total'],
|
|
61
|
+
'lastPage': value['lastPage'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* @interface ProductSearchResponseResourcePriceInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductSearchResponseResourcePriceInfo {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ProductSearchResponseResourcePriceInfo
|
|
22
|
+
*/
|
|
23
|
+
minPrice: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ProductSearchResponseResourcePriceInfo
|
|
28
|
+
*/
|
|
29
|
+
maxPrice: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ProductSearchResponseResourcePriceInfo
|
|
34
|
+
*/
|
|
35
|
+
lowestPrice: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ProductSearchResponseResourcePriceInfo
|
|
40
|
+
*/
|
|
41
|
+
highestPrice: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ProductSearchResponseResourcePriceInfo interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfProductSearchResponseResourcePriceInfo(value: object): value is ProductSearchResponseResourcePriceInfo;
|
|
47
|
+
export declare function ProductSearchResponseResourcePriceInfoFromJSON(json: any): ProductSearchResponseResourcePriceInfo;
|
|
48
|
+
export declare function ProductSearchResponseResourcePriceInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResponseResourcePriceInfo;
|
|
49
|
+
export declare function ProductSearchResponseResourcePriceInfoToJSON(json: any): ProductSearchResponseResourcePriceInfo;
|
|
50
|
+
export declare function ProductSearchResponseResourcePriceInfoToJSONTyped(value?: ProductSearchResponseResourcePriceInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfProductSearchResponseResourcePriceInfo = instanceOfProductSearchResponseResourcePriceInfo;
|
|
17
|
+
exports.ProductSearchResponseResourcePriceInfoFromJSON = ProductSearchResponseResourcePriceInfoFromJSON;
|
|
18
|
+
exports.ProductSearchResponseResourcePriceInfoFromJSONTyped = ProductSearchResponseResourcePriceInfoFromJSONTyped;
|
|
19
|
+
exports.ProductSearchResponseResourcePriceInfoToJSON = ProductSearchResponseResourcePriceInfoToJSON;
|
|
20
|
+
exports.ProductSearchResponseResourcePriceInfoToJSONTyped = ProductSearchResponseResourcePriceInfoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ProductSearchResponseResourcePriceInfo interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfProductSearchResponseResourcePriceInfo(value) {
|
|
25
|
+
if (!('minPrice' in value) || value['minPrice'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('maxPrice' in value) || value['maxPrice'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lowestPrice' in value) || value['lowestPrice'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('highestPrice' in value) || value['highestPrice'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ProductSearchResponseResourcePriceInfoFromJSON(json) {
|
|
36
|
+
return ProductSearchResponseResourcePriceInfoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ProductSearchResponseResourcePriceInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'minPrice': json['minPrice'],
|
|
44
|
+
'maxPrice': json['maxPrice'],
|
|
45
|
+
'lowestPrice': json['lowestPrice'],
|
|
46
|
+
'highestPrice': json['highestPrice'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ProductSearchResponseResourcePriceInfoToJSON(json) {
|
|
50
|
+
return ProductSearchResponseResourcePriceInfoToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ProductSearchResponseResourcePriceInfoToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'minPrice': value['minPrice'],
|
|
59
|
+
'maxPrice': value['maxPrice'],
|
|
60
|
+
'lowestPrice': value['lowestPrice'],
|
|
61
|
+
'highestPrice': value['highestPrice'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
* @interface ProductSearchResultResource
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductSearchResultResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ProductSearchResultResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProductSearchResultResource
|
|
28
|
+
*/
|
|
29
|
+
sku: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProductSearchResultResource
|
|
34
|
+
*/
|
|
35
|
+
model: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ProductSearchResultResource
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ProductSearchResultResource
|
|
46
|
+
*/
|
|
47
|
+
slug: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ProductSearchResultResource
|
|
52
|
+
*/
|
|
53
|
+
price: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ProductSearchResultResource
|
|
58
|
+
*/
|
|
59
|
+
salePrice: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ProductSearchResultResource
|
|
64
|
+
*/
|
|
65
|
+
thumbnail: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ProductSearchResultResource
|
|
70
|
+
*/
|
|
71
|
+
averageRating?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<number>}
|
|
75
|
+
* @memberof ProductSearchResultResource
|
|
76
|
+
*/
|
|
77
|
+
labelDetails: Array<number>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<object>}
|
|
81
|
+
* @memberof ProductSearchResultResource
|
|
82
|
+
*/
|
|
83
|
+
categories: Array<object>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof ProductSearchResultResource
|
|
88
|
+
*/
|
|
89
|
+
supplierName: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof ProductSearchResultResource
|
|
94
|
+
*/
|
|
95
|
+
supplierId: number;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof ProductSearchResultResource
|
|
100
|
+
*/
|
|
101
|
+
availability: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof ProductSearchResultResource
|
|
106
|
+
*/
|
|
107
|
+
wishlisted: boolean;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Check if a given object implements the ProductSearchResultResource interface.
|
|
111
|
+
*/
|
|
112
|
+
export declare function instanceOfProductSearchResultResource(value: object): value is ProductSearchResultResource;
|
|
113
|
+
export declare function ProductSearchResultResourceFromJSON(json: any): ProductSearchResultResource;
|
|
114
|
+
export declare function ProductSearchResultResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResultResource;
|
|
115
|
+
export declare function ProductSearchResultResourceToJSON(json: any): ProductSearchResultResource;
|
|
116
|
+
export declare function ProductSearchResultResourceToJSONTyped(value?: ProductSearchResultResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,105 @@
|
|
|
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.instanceOfProductSearchResultResource = instanceOfProductSearchResultResource;
|
|
17
|
+
exports.ProductSearchResultResourceFromJSON = ProductSearchResultResourceFromJSON;
|
|
18
|
+
exports.ProductSearchResultResourceFromJSONTyped = ProductSearchResultResourceFromJSONTyped;
|
|
19
|
+
exports.ProductSearchResultResourceToJSON = ProductSearchResultResourceToJSON;
|
|
20
|
+
exports.ProductSearchResultResourceToJSONTyped = ProductSearchResultResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ProductSearchResultResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfProductSearchResultResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('sku' in value) || value['sku'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('price' in value) || value['price'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('labelDetails' in value) || value['labelDetails'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('categories' in value) || value['categories'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('supplierName' in value) || value['supplierName'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('supplierId' in value) || value['supplierId'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('availability' in value) || value['availability'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('wishlisted' in value) || value['wishlisted'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
function ProductSearchResultResourceFromJSON(json) {
|
|
56
|
+
return ProductSearchResultResourceFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function ProductSearchResultResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': json['id'],
|
|
64
|
+
'sku': json['sku'],
|
|
65
|
+
'model': json['model'],
|
|
66
|
+
'name': json['name'],
|
|
67
|
+
'slug': json['slug'],
|
|
68
|
+
'price': json['price'],
|
|
69
|
+
'salePrice': json['salePrice'],
|
|
70
|
+
'thumbnail': json['thumbnail'],
|
|
71
|
+
'averageRating': json['averageRating'] == null ? undefined : json['averageRating'],
|
|
72
|
+
'labelDetails': json['labelDetails'],
|
|
73
|
+
'categories': json['categories'],
|
|
74
|
+
'supplierName': json['supplierName'],
|
|
75
|
+
'supplierId': json['supplierId'],
|
|
76
|
+
'availability': json['availability'],
|
|
77
|
+
'wishlisted': json['wishlisted'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function ProductSearchResultResourceToJSON(json) {
|
|
81
|
+
return ProductSearchResultResourceToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
function ProductSearchResultResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
84
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
'id': value['id'],
|
|
90
|
+
'sku': value['sku'],
|
|
91
|
+
'model': value['model'],
|
|
92
|
+
'name': value['name'],
|
|
93
|
+
'slug': value['slug'],
|
|
94
|
+
'price': value['price'],
|
|
95
|
+
'salePrice': value['salePrice'],
|
|
96
|
+
'thumbnail': value['thumbnail'],
|
|
97
|
+
'averageRating': value['averageRating'],
|
|
98
|
+
'labelDetails': value['labelDetails'],
|
|
99
|
+
'categories': value['categories'],
|
|
100
|
+
'supplierName': value['supplierName'],
|
|
101
|
+
'supplierId': value['supplierId'],
|
|
102
|
+
'availability': value['availability'],
|
|
103
|
+
'wishlisted': value['wishlisted'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
@@ -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 { ProductSearchResultResource } from './ProductSearchResultResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductSearchResultResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductSearchResultResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductSearchResultResource>}
|
|
22
|
+
* @memberof ProductSearchResultResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductSearchResultResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductSearchResultResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductSearchResultResourceArrayResponse(value: object): value is ProductSearchResultResourceArrayResponse;
|
|
30
|
+
export declare function ProductSearchResultResourceArrayResponseFromJSON(json: any): ProductSearchResultResourceArrayResponse;
|
|
31
|
+
export declare function ProductSearchResultResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResultResourceArrayResponse;
|
|
32
|
+
export declare function ProductSearchResultResourceArrayResponseToJSON(json: any): ProductSearchResultResourceArrayResponse;
|
|
33
|
+
export declare function ProductSearchResultResourceArrayResponseToJSONTyped(value?: ProductSearchResultResourceArrayResponse | 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.instanceOfProductSearchResultResourceArrayResponse = instanceOfProductSearchResultResourceArrayResponse;
|
|
17
|
+
exports.ProductSearchResultResourceArrayResponseFromJSON = ProductSearchResultResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductSearchResultResourceArrayResponseFromJSONTyped = ProductSearchResultResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductSearchResultResourceArrayResponseToJSON = ProductSearchResultResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductSearchResultResourceArrayResponseToJSONTyped = ProductSearchResultResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductSearchResultResource_1 = require("./ProductSearchResultResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductSearchResultResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductSearchResultResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductSearchResultResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductSearchResultResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductSearchResultResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductSearchResultResource_1.ProductSearchResultResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductSearchResultResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductSearchResultResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductSearchResultResourceArrayResponseToJSONTyped(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(ProductSearchResultResource_1.ProductSearchResultResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 ProductSortBy: {
|
|
17
|
+
readonly Relevance: "relevance";
|
|
18
|
+
readonly MostPopular: "mostPopular";
|
|
19
|
+
readonly HighestRating: "highestRating";
|
|
20
|
+
readonly LowestRating: "lowestRating";
|
|
21
|
+
readonly DescendingPrice: "descendingPrice";
|
|
22
|
+
readonly AscendingPrice: "ascendingPrice";
|
|
23
|
+
readonly DescendingName: "descendingName";
|
|
24
|
+
readonly AscendingName: "ascendingName";
|
|
25
|
+
readonly RecentlyAdded: "recentlyAdded";
|
|
26
|
+
};
|
|
27
|
+
export type ProductSortBy = typeof ProductSortBy[keyof typeof ProductSortBy];
|
|
28
|
+
export declare function instanceOfProductSortBy(value: any): boolean;
|
|
29
|
+
export declare function ProductSortByFromJSON(json: any): ProductSortBy;
|
|
30
|
+
export declare function ProductSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSortBy;
|
|
31
|
+
export declare function ProductSortByToJSON(value?: ProductSortBy | null): any;
|
|
32
|
+
export declare function ProductSortByToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductSortBy;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.ProductSortBy = void 0;
|
|
17
|
+
exports.instanceOfProductSortBy = instanceOfProductSortBy;
|
|
18
|
+
exports.ProductSortByFromJSON = ProductSortByFromJSON;
|
|
19
|
+
exports.ProductSortByFromJSONTyped = ProductSortByFromJSONTyped;
|
|
20
|
+
exports.ProductSortByToJSON = ProductSortByToJSON;
|
|
21
|
+
exports.ProductSortByToJSONTyped = ProductSortByToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ProductSortBy = {
|
|
27
|
+
Relevance: 'relevance',
|
|
28
|
+
MostPopular: 'mostPopular',
|
|
29
|
+
HighestRating: 'highestRating',
|
|
30
|
+
LowestRating: 'lowestRating',
|
|
31
|
+
DescendingPrice: 'descendingPrice',
|
|
32
|
+
AscendingPrice: 'ascendingPrice',
|
|
33
|
+
DescendingName: 'descendingName',
|
|
34
|
+
AscendingName: 'ascendingName',
|
|
35
|
+
RecentlyAdded: 'recentlyAdded'
|
|
36
|
+
};
|
|
37
|
+
function instanceOfProductSortBy(value) {
|
|
38
|
+
for (var key in exports.ProductSortBy) {
|
|
39
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductSortBy, key)) {
|
|
40
|
+
if (exports.ProductSortBy[key] === value) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
function ProductSortByFromJSON(json) {
|
|
48
|
+
return ProductSortByFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function ProductSortByFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
function ProductSortByToJSON(value) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
function ProductSortByToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ export * from './PaginatedProductChildResourceResponse';
|
|
|
90
90
|
export * from './PaginatedProductListResourceResponse';
|
|
91
91
|
export * from './PaginatedProductLiteResourceResponse';
|
|
92
92
|
export * from './PaginatedProductResourceResponse';
|
|
93
|
+
export * from './PaginatedProductSearchResultResourceResponse';
|
|
93
94
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
94
95
|
export * from './PaginatedProductTypeLiteResourceResponse';
|
|
95
96
|
export * from './PaginatedProductTypeResourceResponse';
|
|
@@ -106,6 +107,8 @@ export * from './PaginatedTagListResourceResponse';
|
|
|
106
107
|
export * from './PaginatedTagLiteResourceResponse';
|
|
107
108
|
export * from './PaginatedTagResourceResponse';
|
|
108
109
|
export * from './PagingMetadata';
|
|
110
|
+
export * from './ProductAggregationResource';
|
|
111
|
+
export * from './ProductAggregationResourceArrayResponse';
|
|
109
112
|
export * from './ProductChildListResource';
|
|
110
113
|
export * from './ProductChildListResourceArrayResponse';
|
|
111
114
|
export * from './ProductChildLiteResource';
|
|
@@ -124,8 +127,16 @@ export * from './ProductListResource';
|
|
|
124
127
|
export * from './ProductListResourceArrayResponse';
|
|
125
128
|
export * from './ProductLiteResource';
|
|
126
129
|
export * from './ProductLiteResourceArrayResponse';
|
|
130
|
+
export * from './ProductRating';
|
|
127
131
|
export * from './ProductResource';
|
|
128
132
|
export * from './ProductResourceArrayResponse';
|
|
133
|
+
export * from './ProductSearchResponseResource';
|
|
134
|
+
export * from './ProductSearchResponseResourceArrayResponse';
|
|
135
|
+
export * from './ProductSearchResponseResourceMeta';
|
|
136
|
+
export * from './ProductSearchResponseResourcePriceInfo';
|
|
137
|
+
export * from './ProductSearchResultResource';
|
|
138
|
+
export * from './ProductSearchResultResourceArrayResponse';
|
|
139
|
+
export * from './ProductSortBy';
|
|
129
140
|
export * from './ProductTypeListResource';
|
|
130
141
|
export * from './ProductTypeListResourceArrayResponse';
|
|
131
142
|
export * from './ProductTypeLiteResource';
|
|
@@ -183,7 +194,6 @@ export * from './TagResourceArrayResponse';
|
|
|
183
194
|
export * from './TagType';
|
|
184
195
|
export * from './UpdateAttributeRequest';
|
|
185
196
|
export * from './UpdateAttributeValueRequest';
|
|
186
|
-
export * from './UpdateDocumentRequest';
|
|
187
197
|
export * from './UpdateFilterOrderAttributeRequest';
|
|
188
198
|
export * from './UpdateFilterOrderAttributeRequestValuesInner';
|
|
189
199
|
export * from './UpdateModelAttributeRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -108,6 +108,7 @@ __exportStar(require("./PaginatedProductChildResourceResponse"), exports);
|
|
|
108
108
|
__exportStar(require("./PaginatedProductListResourceResponse"), exports);
|
|
109
109
|
__exportStar(require("./PaginatedProductLiteResourceResponse"), exports);
|
|
110
110
|
__exportStar(require("./PaginatedProductResourceResponse"), exports);
|
|
111
|
+
__exportStar(require("./PaginatedProductSearchResultResourceResponse"), exports);
|
|
111
112
|
__exportStar(require("./PaginatedProductTypeListResourceResponse"), exports);
|
|
112
113
|
__exportStar(require("./PaginatedProductTypeLiteResourceResponse"), exports);
|
|
113
114
|
__exportStar(require("./PaginatedProductTypeResourceResponse"), exports);
|
|
@@ -124,6 +125,8 @@ __exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
|
124
125
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
125
126
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
126
127
|
__exportStar(require("./PagingMetadata"), exports);
|
|
128
|
+
__exportStar(require("./ProductAggregationResource"), exports);
|
|
129
|
+
__exportStar(require("./ProductAggregationResourceArrayResponse"), exports);
|
|
127
130
|
__exportStar(require("./ProductChildListResource"), exports);
|
|
128
131
|
__exportStar(require("./ProductChildListResourceArrayResponse"), exports);
|
|
129
132
|
__exportStar(require("./ProductChildLiteResource"), exports);
|
|
@@ -142,8 +145,16 @@ __exportStar(require("./ProductListResource"), exports);
|
|
|
142
145
|
__exportStar(require("./ProductListResourceArrayResponse"), exports);
|
|
143
146
|
__exportStar(require("./ProductLiteResource"), exports);
|
|
144
147
|
__exportStar(require("./ProductLiteResourceArrayResponse"), exports);
|
|
148
|
+
__exportStar(require("./ProductRating"), exports);
|
|
145
149
|
__exportStar(require("./ProductResource"), exports);
|
|
146
150
|
__exportStar(require("./ProductResourceArrayResponse"), exports);
|
|
151
|
+
__exportStar(require("./ProductSearchResponseResource"), exports);
|
|
152
|
+
__exportStar(require("./ProductSearchResponseResourceArrayResponse"), exports);
|
|
153
|
+
__exportStar(require("./ProductSearchResponseResourceMeta"), exports);
|
|
154
|
+
__exportStar(require("./ProductSearchResponseResourcePriceInfo"), exports);
|
|
155
|
+
__exportStar(require("./ProductSearchResultResource"), exports);
|
|
156
|
+
__exportStar(require("./ProductSearchResultResourceArrayResponse"), exports);
|
|
157
|
+
__exportStar(require("./ProductSortBy"), exports);
|
|
147
158
|
__exportStar(require("./ProductTypeListResource"), exports);
|
|
148
159
|
__exportStar(require("./ProductTypeListResourceArrayResponse"), exports);
|
|
149
160
|
__exportStar(require("./ProductTypeLiteResource"), exports);
|
|
@@ -201,7 +212,6 @@ __exportStar(require("./TagResourceArrayResponse"), exports);
|
|
|
201
212
|
__exportStar(require("./TagType"), exports);
|
|
202
213
|
__exportStar(require("./UpdateAttributeRequest"), exports);
|
|
203
214
|
__exportStar(require("./UpdateAttributeValueRequest"), exports);
|
|
204
|
-
__exportStar(require("./UpdateDocumentRequest"), exports);
|
|
205
215
|
__exportStar(require("./UpdateFilterOrderAttributeRequest"), exports);
|
|
206
216
|
__exportStar(require("./UpdateFilterOrderAttributeRequestValuesInner"), exports);
|
|
207
217
|
__exportStar(require("./UpdateModelAttributeRequest"), exports);
|