@digital8/lighting-illusions-ts-sdk 0.0.525 → 0.0.527
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 -22
- package/README.md +2 -13
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/StoreProductChildRequestAssetsInner.d.ts +1 -1
- package/dist/models/StoreProductChildRequestAssetsInner.js +3 -3
- package/dist/models/UpdateProductChildRequestAssetsInner.d.ts +1 -1
- package/dist/models/UpdateProductChildRequestAssetsInner.js +3 -3
- package/dist/models/index.d.ts +0 -11
- package/dist/models/index.js +0 -11
- package/docs/StoreProductChildRequestAssetsInner.md +2 -2
- package/docs/UpdateProductChildRequestAssetsInner.md +2 -2
- package/package.json +1 -1
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/StoreProductChildRequestAssetsInner.ts +4 -4
- package/src/models/UpdateProductChildRequestAssetsInner.ts +4 -4
- package/src/models/index.ts +0 -11
- 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/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/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
|
@@ -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;
|
|
@@ -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.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
|
-
}
|
|
@@ -1,32 +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
|
-
*/
|
|
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;
|
|
@@ -1,58 +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.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
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PaginatedProductSearchResultResourceResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductSearchResultResource>](ProductSearchResultResource.md)
|
|
10
|
-
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { PaginatedProductSearchResultResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"data": null,
|
|
20
|
-
"meta": null,
|
|
21
|
-
} satisfies PaginatedProductSearchResultResourceResponse
|
|
22
|
-
|
|
23
|
-
console.log(example)
|
|
24
|
-
|
|
25
|
-
// Convert the instance to a JSON string
|
|
26
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
-
console.log(exampleJSON)
|
|
28
|
-
|
|
29
|
-
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as PaginatedProductSearchResultResourceResponse
|
|
31
|
-
console.log(exampleParsed)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
-
|
|
36
|
-
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductAggregationResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`attributes` | Array<object>
|
|
10
|
-
`priceRanges` | Array<object>
|
|
11
|
-
`brands` | Array<object>
|
|
12
|
-
`ratings` | Array<object>
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import type { ProductAggregationResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
-
|
|
19
|
-
// TODO: Update the object below with actual values
|
|
20
|
-
const example = {
|
|
21
|
-
"attributes": null,
|
|
22
|
-
"priceRanges": null,
|
|
23
|
-
"brands": null,
|
|
24
|
-
"ratings": null,
|
|
25
|
-
} satisfies ProductAggregationResource
|
|
26
|
-
|
|
27
|
-
console.log(example)
|
|
28
|
-
|
|
29
|
-
// Convert the instance to a JSON string
|
|
30
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
-
console.log(exampleJSON)
|
|
32
|
-
|
|
33
|
-
// Parse the JSON string back to an object
|
|
34
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductAggregationResource
|
|
35
|
-
console.log(exampleParsed)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
-
|
|
40
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductAggregationResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductAggregationResource>](ProductAggregationResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ProductAggregationResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies ProductAggregationResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductAggregationResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
package/docs/ProductRating.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductRating
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import type { ProductRating } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
-
|
|
15
|
-
// TODO: Update the object below with actual values
|
|
16
|
-
const example = {
|
|
17
|
-
} satisfies ProductRating
|
|
18
|
-
|
|
19
|
-
console.log(example)
|
|
20
|
-
|
|
21
|
-
// Convert the instance to a JSON string
|
|
22
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
-
console.log(exampleJSON)
|
|
24
|
-
|
|
25
|
-
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductRating
|
|
27
|
-
console.log(exampleParsed)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
-
|
|
32
|
-
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductSearchResponseResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductSearchResultResource>](ProductSearchResultResource.md)
|
|
10
|
-
`meta` | [ProductSearchResponseResourceMeta](ProductSearchResponseResourceMeta.md)
|
|
11
|
-
`aggregations` | [ProductAggregationResource](ProductAggregationResource.md)
|
|
12
|
-
`priceInfo` | [ProductSearchResponseResourcePriceInfo](ProductSearchResponseResourcePriceInfo.md)
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import type { ProductSearchResponseResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
-
|
|
19
|
-
// TODO: Update the object below with actual values
|
|
20
|
-
const example = {
|
|
21
|
-
"data": null,
|
|
22
|
-
"meta": null,
|
|
23
|
-
"aggregations": null,
|
|
24
|
-
"priceInfo": null,
|
|
25
|
-
} satisfies ProductSearchResponseResource
|
|
26
|
-
|
|
27
|
-
console.log(example)
|
|
28
|
-
|
|
29
|
-
// Convert the instance to a JSON string
|
|
30
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
-
console.log(exampleJSON)
|
|
32
|
-
|
|
33
|
-
// Parse the JSON string back to an object
|
|
34
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductSearchResponseResource
|
|
35
|
-
console.log(exampleParsed)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
-
|
|
40
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductSearchResponseResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductSearchResponseResource>](ProductSearchResponseResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ProductSearchResponseResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies ProductSearchResponseResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductSearchResponseResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductSearchResponseResourceMeta
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`currentPage` | number
|
|
10
|
-
`perPage` | number
|
|
11
|
-
`total` | number
|
|
12
|
-
`lastPage` | number
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import type { ProductSearchResponseResourceMeta } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
-
|
|
19
|
-
// TODO: Update the object below with actual values
|
|
20
|
-
const example = {
|
|
21
|
-
"currentPage": 1,
|
|
22
|
-
"perPage": 24,
|
|
23
|
-
"total": 1500,
|
|
24
|
-
"lastPage": 63,
|
|
25
|
-
} satisfies ProductSearchResponseResourceMeta
|
|
26
|
-
|
|
27
|
-
console.log(example)
|
|
28
|
-
|
|
29
|
-
// Convert the instance to a JSON string
|
|
30
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
-
console.log(exampleJSON)
|
|
32
|
-
|
|
33
|
-
// Parse the JSON string back to an object
|
|
34
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductSearchResponseResourceMeta
|
|
35
|
-
console.log(exampleParsed)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
-
|
|
40
|
-
|