@digital8/lighting-illusions-ts-sdk 0.0.530 → 0.0.531
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 +0 -24
- package/README.md +2 -14
- package/dist/models/index.d.ts +0 -12
- package/dist/models/index.js +0 -12
- package/package.json +1 -1
- package/src/models/index.ts +0 -12
- package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductSearchResultResourceResponse.js +0 -57
- package/dist/models/ProductAggregationResource.d.ts +0 -50
- package/dist/models/ProductAggregationResource.js +0 -63
- package/dist/models/ProductAggregationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductAggregationResourceArrayResponse.js +0 -50
- package/dist/models/ProductRating.d.ts +0 -26
- package/dist/models/ProductRating.js +0 -52
- package/dist/models/ProductSearchResponseResource.d.ts +0 -54
- package/dist/models/ProductSearchResponseResource.js +0 -67
- package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductSearchResponseResourceArrayResponse.js +0 -50
- package/dist/models/ProductSearchResponseResourceMeta.d.ts +0 -50
- package/dist/models/ProductSearchResponseResourceMeta.js +0 -63
- package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +0 -50
- package/dist/models/ProductSearchResponseResourcePriceInfo.js +0 -63
- package/dist/models/ProductSearchResultResource.d.ts +0 -116
- package/dist/models/ProductSearchResultResource.js +0 -105
- package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductSearchResultResourceArrayResponse.js +0 -50
- package/dist/models/ProductSortBy.d.ts +0 -32
- package/dist/models/ProductSortBy.js +0 -58
- package/dist/models/ProductStatus.d.ts +0 -24
- package/dist/models/ProductStatus.js +0 -50
- package/docs/PaginatedProductSearchResultResourceResponse.md +0 -36
- package/docs/ProductAggregationResource.md +0 -40
- package/docs/ProductAggregationResourceArrayResponse.md +0 -34
- package/docs/ProductRating.md +0 -32
- package/docs/ProductSearchResponseResource.md +0 -40
- package/docs/ProductSearchResponseResourceArrayResponse.md +0 -34
- package/docs/ProductSearchResponseResourceMeta.md +0 -40
- package/docs/ProductSearchResponseResourcePriceInfo.md +0 -40
- package/docs/ProductSearchResultResource.md +0 -62
- package/docs/ProductSearchResultResourceArrayResponse.md +0 -34
- package/docs/ProductSortBy.md +0 -32
- package/docs/ProductStatus.md +0 -32
- package/src/models/PaginatedProductSearchResultResourceResponse.ts +0 -90
- package/src/models/ProductAggregationResource.ts +0 -93
- package/src/models/ProductAggregationResourceArrayResponse.ts +0 -73
- package/src/models/ProductRating.ts +0 -54
- package/src/models/ProductSearchResponseResource.ts +0 -122
- package/src/models/ProductSearchResponseResourceArrayResponse.ts +0 -73
- package/src/models/ProductSearchResponseResourceMeta.ts +0 -93
- package/src/models/ProductSearchResponseResourcePriceInfo.ts +0 -93
- package/src/models/ProductSearchResultResource.ts +0 -191
- package/src/models/ProductSearchResultResourceArrayResponse.ts +0 -73
- package/src/models/ProductSortBy.ts +0 -60
- package/src/models/ProductStatus.ts +0 -52
|
@@ -1,67 +0,0 @@
|
|
|
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.instanceOfProductSearchResponseResource = instanceOfProductSearchResponseResource;
|
|
17
|
-
exports.ProductSearchResponseResourceFromJSON = ProductSearchResponseResourceFromJSON;
|
|
18
|
-
exports.ProductSearchResponseResourceFromJSONTyped = ProductSearchResponseResourceFromJSONTyped;
|
|
19
|
-
exports.ProductSearchResponseResourceToJSON = ProductSearchResponseResourceToJSON;
|
|
20
|
-
exports.ProductSearchResponseResourceToJSONTyped = ProductSearchResponseResourceToJSONTyped;
|
|
21
|
-
var ProductSearchResultResource_1 = require("./ProductSearchResultResource");
|
|
22
|
-
var ProductSearchResponseResourceMeta_1 = require("./ProductSearchResponseResourceMeta");
|
|
23
|
-
var ProductAggregationResource_1 = require("./ProductAggregationResource");
|
|
24
|
-
var ProductSearchResponseResourcePriceInfo_1 = require("./ProductSearchResponseResourcePriceInfo");
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the ProductSearchResponseResource interface.
|
|
27
|
-
*/
|
|
28
|
-
function instanceOfProductSearchResponseResource(value) {
|
|
29
|
-
if (!('data' in value) || value['data'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('meta' in value) || value['meta'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('aggregations' in value) || value['aggregations'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('priceInfo' in value) || value['priceInfo'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
function ProductSearchResponseResourceFromJSON(json) {
|
|
40
|
-
return ProductSearchResponseResourceFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function ProductSearchResponseResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'data': (json['data'].map(ProductSearchResultResource_1.ProductSearchResultResourceFromJSON)),
|
|
48
|
-
'meta': (0, ProductSearchResponseResourceMeta_1.ProductSearchResponseResourceMetaFromJSON)(json['meta']),
|
|
49
|
-
'aggregations': (0, ProductAggregationResource_1.ProductAggregationResourceFromJSON)(json['aggregations']),
|
|
50
|
-
'priceInfo': (0, ProductSearchResponseResourcePriceInfo_1.ProductSearchResponseResourcePriceInfoFromJSON)(json['priceInfo']),
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function ProductSearchResponseResourceToJSON(json) {
|
|
54
|
-
return ProductSearchResponseResourceToJSONTyped(json, false);
|
|
55
|
-
}
|
|
56
|
-
function ProductSearchResponseResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
58
|
-
if (value == null) {
|
|
59
|
-
return value;
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
'data': (value['data'].map(ProductSearchResultResource_1.ProductSearchResultResourceToJSON)),
|
|
63
|
-
'meta': (0, ProductSearchResponseResourceMeta_1.ProductSearchResponseResourceMetaToJSON)(value['meta']),
|
|
64
|
-
'aggregations': (0, ProductAggregationResource_1.ProductAggregationResourceToJSON)(value['aggregations']),
|
|
65
|
-
'priceInfo': (0, ProductSearchResponseResourcePriceInfo_1.ProductSearchResponseResourcePriceInfoToJSON)(value['priceInfo']),
|
|
66
|
-
};
|
|
67
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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 { ProductSearchResponseResource } from './ProductSearchResponseResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ProductSearchResponseResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface ProductSearchResponseResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<ProductSearchResponseResource>}
|
|
22
|
-
* @memberof ProductSearchResponseResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<ProductSearchResponseResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the ProductSearchResponseResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfProductSearchResponseResourceArrayResponse(value: object): value is ProductSearchResponseResourceArrayResponse;
|
|
30
|
-
export declare function ProductSearchResponseResourceArrayResponseFromJSON(json: any): ProductSearchResponseResourceArrayResponse;
|
|
31
|
-
export declare function ProductSearchResponseResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResponseResourceArrayResponse;
|
|
32
|
-
export declare function ProductSearchResponseResourceArrayResponseToJSON(json: any): ProductSearchResponseResourceArrayResponse;
|
|
33
|
-
export declare function ProductSearchResponseResourceArrayResponseToJSONTyped(value?: ProductSearchResponseResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
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.instanceOfProductSearchResponseResourceArrayResponse = instanceOfProductSearchResponseResourceArrayResponse;
|
|
17
|
-
exports.ProductSearchResponseResourceArrayResponseFromJSON = ProductSearchResponseResourceArrayResponseFromJSON;
|
|
18
|
-
exports.ProductSearchResponseResourceArrayResponseFromJSONTyped = ProductSearchResponseResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.ProductSearchResponseResourceArrayResponseToJSON = ProductSearchResponseResourceArrayResponseToJSON;
|
|
20
|
-
exports.ProductSearchResponseResourceArrayResponseToJSONTyped = ProductSearchResponseResourceArrayResponseToJSONTyped;
|
|
21
|
-
var ProductSearchResponseResource_1 = require("./ProductSearchResponseResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the ProductSearchResponseResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfProductSearchResponseResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function ProductSearchResponseResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return ProductSearchResponseResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function ProductSearchResponseResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(ProductSearchResponseResource_1.ProductSearchResponseResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function ProductSearchResponseResourceArrayResponseToJSON(json) {
|
|
40
|
-
return ProductSearchResponseResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function ProductSearchResponseResourceArrayResponseToJSONTyped(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(ProductSearchResponseResource_1.ProductSearchResponseResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
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 ProductSearchResponseResourceMeta
|
|
16
|
-
*/
|
|
17
|
-
export interface ProductSearchResponseResourceMeta {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof ProductSearchResponseResourceMeta
|
|
22
|
-
*/
|
|
23
|
-
currentPage: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof ProductSearchResponseResourceMeta
|
|
28
|
-
*/
|
|
29
|
-
perPage: number;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof ProductSearchResponseResourceMeta
|
|
34
|
-
*/
|
|
35
|
-
total: number;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof ProductSearchResponseResourceMeta
|
|
40
|
-
*/
|
|
41
|
-
lastPage: number;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the ProductSearchResponseResourceMeta interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfProductSearchResponseResourceMeta(value: object): value is ProductSearchResponseResourceMeta;
|
|
47
|
-
export declare function ProductSearchResponseResourceMetaFromJSON(json: any): ProductSearchResponseResourceMeta;
|
|
48
|
-
export declare function ProductSearchResponseResourceMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResponseResourceMeta;
|
|
49
|
-
export declare function ProductSearchResponseResourceMetaToJSON(json: any): ProductSearchResponseResourceMeta;
|
|
50
|
-
export declare function ProductSearchResponseResourceMetaToJSONTyped(value?: ProductSearchResponseResourceMeta | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,63 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
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;
|
|
@@ -1,63 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
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;
|
|
@@ -1,105 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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;
|