@digital8/lighting-illusions-ts-sdk 0.0.530 → 0.0.532
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 +42 -24
- package/README.md +30 -14
- package/dist/apis/ProductCategoryApi.d.ts +105 -0
- package/dist/apis/ProductCategoryApi.js +445 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/CategoryAutomationComparisonType.d.ts +29 -0
- package/dist/models/CategoryAutomationComparisonType.js +55 -0
- package/dist/models/CategoryAutomationConditionType.d.ts +25 -0
- package/dist/models/CategoryAutomationConditionType.js +51 -0
- package/dist/models/CategoryAutomationFieldType.d.ts +30 -0
- package/dist/models/CategoryAutomationFieldType.js +56 -0
- package/dist/models/CategoryAutomationRuleResource.d.ts +68 -0
- package/dist/models/CategoryAutomationRuleResource.js +67 -0
- package/dist/models/CategoryAutomationRuleResourceArrayResponse.d.ts +33 -0
- package/dist/models/CategoryAutomationRuleResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllProductCategoryRequest.d.ts +115 -0
- package/dist/models/GetAllProductCategoryRequest.js +94 -0
- package/dist/models/IndexProductCategoryRequest.d.ts +127 -0
- package/dist/models/IndexProductCategoryRequest.js +98 -0
- package/dist/models/PaginatedProductCategoryListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductCategoryListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductCategoryResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductCategoryResourceResponse.js +57 -0
- package/dist/models/ProductCategoryHierarchyResource.d.ts +62 -0
- package/dist/models/ProductCategoryHierarchyResource.js +69 -0
- package/dist/models/ProductCategoryHierarchyResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryHierarchyResourceArrayResponse.js +50 -0
- package/dist/models/ProductCategoryListResource.d.ts +75 -0
- package/dist/models/ProductCategoryListResource.js +78 -0
- package/dist/models/ProductCategoryListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryListResourceArrayResponse.js +50 -0
- package/dist/models/ProductCategoryLiteResource.d.ts +38 -0
- package/dist/models/ProductCategoryLiteResource.js +53 -0
- package/dist/models/ProductCategoryLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductCategoryResource.d.ts +107 -0
- package/dist/models/ProductCategoryResource.js +96 -0
- package/dist/models/ProductCategoryResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryResourceArrayResponse.js +50 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +105 -0
- package/dist/models/StoreProductCategoryRequest.js +86 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +62 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +63 -0
- package/dist/models/UpdateProductCategoryRequest.d.ts +105 -0
- package/dist/models/UpdateProductCategoryRequest.js +74 -0
- package/dist/models/index.d.ts +20 -12
- package/dist/models/index.js +20 -12
- package/docs/{ProductSortBy.md → CategoryAutomationComparisonType.md} +4 -4
- package/docs/{ProductStatus.md → CategoryAutomationConditionType.md} +4 -4
- package/docs/{ProductRating.md → CategoryAutomationFieldType.md} +4 -4
- package/docs/CategoryAutomationRuleResource.md +46 -0
- package/docs/CategoryAutomationRuleResourceArrayResponse.md +34 -0
- package/docs/GetAllProductCategoryRequest.md +52 -0
- package/docs/IndexProductCategoryRequest.md +56 -0
- package/docs/{PaginatedProductSearchResultResourceResponse.md → PaginatedProductCategoryListResourceResponse.md} +5 -5
- package/docs/PaginatedProductCategoryResourceResponse.md +36 -0
- package/docs/ProductCategoryApi.md +534 -0
- package/docs/{ProductAggregationResource.md → ProductCategoryHierarchyResource.md} +16 -12
- package/docs/ProductCategoryHierarchyResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryListResource.md +48 -0
- package/docs/{ProductSearchResultResourceArrayResponse.md → ProductCategoryListResourceArrayResponse.md} +5 -5
- package/docs/ProductCategoryLiteResource.md +36 -0
- package/docs/{ProductSearchResponseResourceArrayResponse.md → ProductCategoryLiteResourceArrayResponse.md} +5 -5
- package/docs/ProductCategoryResource.md +58 -0
- package/docs/{ProductAggregationResourceArrayResponse.md → ProductCategoryResourceArrayResponse.md} +5 -5
- package/docs/StoreProductCategoryRequest.md +58 -0
- package/docs/StoreProductCategoryRequestAutomationRulesInner.md +44 -0
- package/docs/UpdateProductCategoryRequest.md +58 -0
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +363 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CategoryAutomationComparisonType.ts +57 -0
- package/src/models/CategoryAutomationConditionType.ts +53 -0
- package/src/models/CategoryAutomationFieldType.ts +58 -0
- package/src/models/CategoryAutomationRuleResource.ts +116 -0
- package/src/models/CategoryAutomationRuleResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllProductCategoryRequest.ts +171 -0
- package/src/models/IndexProductCategoryRequest.ts +187 -0
- package/src/models/PaginatedProductCategoryListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductCategoryResourceResponse.ts +90 -0
- package/src/models/ProductCategoryHierarchyResource.ts +110 -0
- package/src/models/ProductCategoryHierarchyResourceArrayResponse.ts +73 -0
- package/src/models/ProductCategoryListResource.ts +136 -0
- package/src/models/ProductCategoryListResourceArrayResponse.ts +73 -0
- package/src/models/ProductCategoryLiteResource.ts +74 -0
- package/src/models/ProductCategoryLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductCategoryResource.ts +193 -0
- package/src/models/ProductCategoryResourceArrayResponse.ts +73 -0
- package/src/models/StoreProductCategoryRequest.ts +175 -0
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +107 -0
- package/src/models/UpdateProductCategoryRequest.ts +169 -0
- package/src/models/index.ts +20 -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/ProductSearchResponseResource.md +0 -40
- package/docs/ProductSearchResponseResourceMeta.md +0 -40
- package/docs/ProductSearchResponseResourcePriceInfo.md +0 -40
- package/docs/ProductSearchResultResource.md +0 -62
- 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,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,24 +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 ProductStatus: {
|
|
17
|
-
readonly InStock: "in_stock";
|
|
18
|
-
};
|
|
19
|
-
export type ProductStatus = typeof ProductStatus[keyof typeof ProductStatus];
|
|
20
|
-
export declare function instanceOfProductStatus(value: any): boolean;
|
|
21
|
-
export declare function ProductStatusFromJSON(json: any): ProductStatus;
|
|
22
|
-
export declare function ProductStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStatus;
|
|
23
|
-
export declare function ProductStatusToJSON(value?: ProductStatus | null): any;
|
|
24
|
-
export declare function ProductStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductStatus;
|
|
@@ -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.ProductStatus = void 0;
|
|
17
|
-
exports.instanceOfProductStatus = instanceOfProductStatus;
|
|
18
|
-
exports.ProductStatusFromJSON = ProductStatusFromJSON;
|
|
19
|
-
exports.ProductStatusFromJSONTyped = ProductStatusFromJSONTyped;
|
|
20
|
-
exports.ProductStatusToJSON = ProductStatusToJSON;
|
|
21
|
-
exports.ProductStatusToJSONTyped = ProductStatusToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.ProductStatus = {
|
|
27
|
-
InStock: 'in_stock'
|
|
28
|
-
};
|
|
29
|
-
function instanceOfProductStatus(value) {
|
|
30
|
-
for (var key in exports.ProductStatus) {
|
|
31
|
-
if (Object.prototype.hasOwnProperty.call(exports.ProductStatus, key)) {
|
|
32
|
-
if (exports.ProductStatus[key] === value) {
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
function ProductStatusFromJSON(json) {
|
|
40
|
-
return ProductStatusFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function ProductStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
-
return json;
|
|
44
|
-
}
|
|
45
|
-
function ProductStatusToJSON(value) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
function ProductStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
@@ -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,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
|
-
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductSearchResponseResourcePriceInfo
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`minPrice` | number
|
|
10
|
-
`maxPrice` | number
|
|
11
|
-
`lowestPrice` | number
|
|
12
|
-
`highestPrice` | number
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import type { ProductSearchResponseResourcePriceInfo } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
-
|
|
19
|
-
// TODO: Update the object below with actual values
|
|
20
|
-
const example = {
|
|
21
|
-
"minPrice": 49.99,
|
|
22
|
-
"maxPrice": 899.99,
|
|
23
|
-
"lowestPrice": 29.99,
|
|
24
|
-
"highestPrice": 1299.99,
|
|
25
|
-
} satisfies ProductSearchResponseResourcePriceInfo
|
|
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 ProductSearchResponseResourcePriceInfo
|
|
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,62 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductSearchResultResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`sku` | string
|
|
11
|
-
`model` | string
|
|
12
|
-
`name` | string
|
|
13
|
-
`slug` | string
|
|
14
|
-
`price` | number
|
|
15
|
-
`salePrice` | number
|
|
16
|
-
`thumbnail` | string
|
|
17
|
-
`averageRating` | string
|
|
18
|
-
`labelDetails` | Array<number>
|
|
19
|
-
`categories` | Array<object>
|
|
20
|
-
`supplierName` | string
|
|
21
|
-
`supplierId` | number
|
|
22
|
-
`availability` | string
|
|
23
|
-
`wishlisted` | boolean
|
|
24
|
-
|
|
25
|
-
## Example
|
|
26
|
-
|
|
27
|
-
```typescript
|
|
28
|
-
import type { ProductSearchResultResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
29
|
-
|
|
30
|
-
// TODO: Update the object below with actual values
|
|
31
|
-
const example = {
|
|
32
|
-
"id": null,
|
|
33
|
-
"sku": null,
|
|
34
|
-
"model": null,
|
|
35
|
-
"name": null,
|
|
36
|
-
"slug": null,
|
|
37
|
-
"price": null,
|
|
38
|
-
"salePrice": null,
|
|
39
|
-
"thumbnail": null,
|
|
40
|
-
"averageRating": null,
|
|
41
|
-
"labelDetails": null,
|
|
42
|
-
"categories": null,
|
|
43
|
-
"supplierName": null,
|
|
44
|
-
"supplierId": null,
|
|
45
|
-
"availability": null,
|
|
46
|
-
"wishlisted": null,
|
|
47
|
-
} satisfies ProductSearchResultResource
|
|
48
|
-
|
|
49
|
-
console.log(example)
|
|
50
|
-
|
|
51
|
-
// Convert the instance to a JSON string
|
|
52
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
53
|
-
console.log(exampleJSON)
|
|
54
|
-
|
|
55
|
-
// Parse the JSON string back to an object
|
|
56
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductSearchResultResource
|
|
57
|
-
console.log(exampleParsed)
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
61
|
-
|
|
62
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
-
import {
|
|
18
|
-
PagingMetadataFromJSON,
|
|
19
|
-
PagingMetadataFromJSONTyped,
|
|
20
|
-
PagingMetadataToJSON,
|
|
21
|
-
PagingMetadataToJSONTyped,
|
|
22
|
-
} from './PagingMetadata';
|
|
23
|
-
import type { ProductSearchResultResource } from './ProductSearchResultResource';
|
|
24
|
-
import {
|
|
25
|
-
ProductSearchResultResourceFromJSON,
|
|
26
|
-
ProductSearchResultResourceFromJSONTyped,
|
|
27
|
-
ProductSearchResultResourceToJSON,
|
|
28
|
-
ProductSearchResultResourceToJSONTyped,
|
|
29
|
-
} from './ProductSearchResultResource';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface PaginatedProductSearchResultResourceResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface PaginatedProductSearchResultResourceResponse {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<ProductSearchResultResource>}
|
|
40
|
-
* @memberof PaginatedProductSearchResultResourceResponse
|
|
41
|
-
*/
|
|
42
|
-
data: Array<ProductSearchResultResource>;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {PagingMetadata}
|
|
46
|
-
* @memberof PaginatedProductSearchResultResourceResponse
|
|
47
|
-
*/
|
|
48
|
-
meta: PagingMetadata;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the PaginatedProductSearchResultResourceResponse interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfPaginatedProductSearchResultResourceResponse(value: object): value is PaginatedProductSearchResultResourceResponse {
|
|
55
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
-
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function PaginatedProductSearchResultResourceResponseFromJSON(json: any): PaginatedProductSearchResultResourceResponse {
|
|
61
|
-
return PaginatedProductSearchResultResourceResponseFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function PaginatedProductSearchResultResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductSearchResultResourceResponse {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': ((json['data'] as Array<any>).map(ProductSearchResultResourceFromJSON)),
|
|
71
|
-
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function PaginatedProductSearchResultResourceResponseToJSON(json: any): PaginatedProductSearchResultResourceResponse {
|
|
76
|
-
return PaginatedProductSearchResultResourceResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function PaginatedProductSearchResultResourceResponseToJSONTyped(value?: PaginatedProductSearchResultResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'data': ((value['data'] as Array<any>).map(ProductSearchResultResourceToJSON)),
|
|
87
|
-
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ProductAggregationResource
|
|
20
|
-
*/
|
|
21
|
-
export interface ProductAggregationResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Array<object>}
|
|
25
|
-
* @memberof ProductAggregationResource
|
|
26
|
-
*/
|
|
27
|
-
attributes: Array<object>;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {Array<object>}
|
|
31
|
-
* @memberof ProductAggregationResource
|
|
32
|
-
*/
|
|
33
|
-
priceRanges: Array<object>;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {Array<object>}
|
|
37
|
-
* @memberof ProductAggregationResource
|
|
38
|
-
*/
|
|
39
|
-
brands: Array<object>;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {Array<object>}
|
|
43
|
-
* @memberof ProductAggregationResource
|
|
44
|
-
*/
|
|
45
|
-
ratings: Array<object>;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the ProductAggregationResource interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfProductAggregationResource(value: object): value is ProductAggregationResource {
|
|
52
|
-
if (!('attributes' in value) || value['attributes'] === undefined) return false;
|
|
53
|
-
if (!('priceRanges' in value) || value['priceRanges'] === undefined) return false;
|
|
54
|
-
if (!('brands' in value) || value['brands'] === undefined) return false;
|
|
55
|
-
if (!('ratings' in value) || value['ratings'] === undefined) return false;
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function ProductAggregationResourceFromJSON(json: any): ProductAggregationResource {
|
|
60
|
-
return ProductAggregationResourceFromJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function ProductAggregationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAggregationResource {
|
|
64
|
-
if (json == null) {
|
|
65
|
-
return json;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'attributes': json['attributes'],
|
|
70
|
-
'priceRanges': json['priceRanges'],
|
|
71
|
-
'brands': json['brands'],
|
|
72
|
-
'ratings': json['ratings'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function ProductAggregationResourceToJSON(json: any): ProductAggregationResource {
|
|
77
|
-
return ProductAggregationResourceToJSONTyped(json, false);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function ProductAggregationResourceToJSONTyped(value?: ProductAggregationResource | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
-
if (value == null) {
|
|
82
|
-
return value;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return {
|
|
86
|
-
|
|
87
|
-
'attributes': value['attributes'],
|
|
88
|
-
'priceRanges': value['priceRanges'],
|
|
89
|
-
'brands': value['brands'],
|
|
90
|
-
'ratings': value['ratings'],
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|