@digital8/lighting-illusions-ts-sdk 0.0.531 → 0.0.533
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 +66 -0
- package/README.md +42 -2
- 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/PaginatedProductSearchResultResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductSearchResultResourceResponse.js +57 -0
- package/dist/models/ProductAggregationResource.d.ts +50 -0
- package/dist/models/ProductAggregationResource.js +63 -0
- package/dist/models/ProductAggregationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductAggregationResourceArrayResponse.js +50 -0
- package/dist/models/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/ProductRating.d.ts +26 -0
- package/dist/models/ProductRating.js +52 -0
- package/dist/models/ProductSearchResponseResource.d.ts +54 -0
- package/dist/models/ProductSearchResponseResource.js +67 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.js +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.js +63 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.js +63 -0
- package/dist/models/ProductSearchResultResource.d.ts +116 -0
- package/dist/models/ProductSearchResultResource.js +105 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.js +50 -0
- package/dist/models/ProductSortBy.d.ts +32 -0
- package/dist/models/ProductSortBy.js +58 -0
- package/dist/models/ProductStatus.d.ts +24 -0
- package/dist/models/ProductStatus.js +50 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +113 -0
- package/dist/models/StoreProductCategoryRequest.js +94 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +87 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +87 -0
- package/dist/models/UpdateProductCategoryRequest.d.ts +113 -0
- package/dist/models/UpdateProductCategoryRequest.js +82 -0
- package/dist/models/index.d.ts +32 -0
- package/dist/models/index.js +32 -0
- package/docs/CategoryAutomationComparisonType.md +32 -0
- package/docs/CategoryAutomationConditionType.md +32 -0
- package/docs/CategoryAutomationFieldType.md +32 -0
- 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/PaginatedProductCategoryListResourceResponse.md +36 -0
- package/docs/PaginatedProductCategoryResourceResponse.md +36 -0
- package/docs/PaginatedProductSearchResultResourceResponse.md +36 -0
- package/docs/ProductAggregationResource.md +40 -0
- package/docs/ProductAggregationResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryApi.md +534 -0
- package/docs/ProductCategoryHierarchyResource.md +44 -0
- package/docs/ProductCategoryHierarchyResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryListResource.md +48 -0
- package/docs/ProductCategoryListResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryLiteResource.md +36 -0
- package/docs/ProductCategoryLiteResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryResource.md +58 -0
- package/docs/ProductCategoryResourceArrayResponse.md +34 -0
- package/docs/ProductRating.md +32 -0
- package/docs/ProductSearchResponseResource.md +40 -0
- package/docs/ProductSearchResponseResourceArrayResponse.md +34 -0
- package/docs/ProductSearchResponseResourceMeta.md +40 -0
- package/docs/ProductSearchResponseResourcePriceInfo.md +40 -0
- package/docs/ProductSearchResultResource.md +62 -0
- package/docs/ProductSearchResultResourceArrayResponse.md +34 -0
- package/docs/ProductSortBy.md +32 -0
- package/docs/ProductStatus.md +32 -0
- 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/PaginatedProductSearchResultResourceResponse.ts +90 -0
- package/src/models/ProductAggregationResource.ts +93 -0
- package/src/models/ProductAggregationResourceArrayResponse.ts +73 -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/ProductRating.ts +54 -0
- package/src/models/ProductSearchResponseResource.ts +122 -0
- package/src/models/ProductSearchResponseResourceArrayResponse.ts +73 -0
- package/src/models/ProductSearchResponseResourceMeta.ts +93 -0
- package/src/models/ProductSearchResponseResourcePriceInfo.ts +93 -0
- package/src/models/ProductSearchResultResource.ts +191 -0
- package/src/models/ProductSearchResultResourceArrayResponse.ts +73 -0
- package/src/models/ProductSortBy.ts +60 -0
- package/src/models/ProductStatus.ts +52 -0
- package/src/models/StoreProductCategoryRequest.ts +186 -0
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +136 -0
- package/src/models/UpdateProductCategoryRequest.ts +180 -0
- package/src/models/index.ts +32 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfProductSearchResponseResourcePriceInfo = instanceOfProductSearchResponseResourcePriceInfo;
|
|
17
|
+
exports.ProductSearchResponseResourcePriceInfoFromJSON = ProductSearchResponseResourcePriceInfoFromJSON;
|
|
18
|
+
exports.ProductSearchResponseResourcePriceInfoFromJSONTyped = ProductSearchResponseResourcePriceInfoFromJSONTyped;
|
|
19
|
+
exports.ProductSearchResponseResourcePriceInfoToJSON = ProductSearchResponseResourcePriceInfoToJSON;
|
|
20
|
+
exports.ProductSearchResponseResourcePriceInfoToJSONTyped = ProductSearchResponseResourcePriceInfoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ProductSearchResponseResourcePriceInfo interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfProductSearchResponseResourcePriceInfo(value) {
|
|
25
|
+
if (!('minPrice' in value) || value['minPrice'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('maxPrice' in value) || value['maxPrice'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lowestPrice' in value) || value['lowestPrice'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('highestPrice' in value) || value['highestPrice'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ProductSearchResponseResourcePriceInfoFromJSON(json) {
|
|
36
|
+
return ProductSearchResponseResourcePriceInfoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ProductSearchResponseResourcePriceInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'minPrice': json['minPrice'],
|
|
44
|
+
'maxPrice': json['maxPrice'],
|
|
45
|
+
'lowestPrice': json['lowestPrice'],
|
|
46
|
+
'highestPrice': json['highestPrice'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ProductSearchResponseResourcePriceInfoToJSON(json) {
|
|
50
|
+
return ProductSearchResponseResourcePriceInfoToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ProductSearchResponseResourcePriceInfoToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'minPrice': value['minPrice'],
|
|
59
|
+
'maxPrice': value['maxPrice'],
|
|
60
|
+
'lowestPrice': value['lowestPrice'],
|
|
61
|
+
'highestPrice': value['highestPrice'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ProductSearchResultResource
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductSearchResultResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ProductSearchResultResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProductSearchResultResource
|
|
28
|
+
*/
|
|
29
|
+
sku: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProductSearchResultResource
|
|
34
|
+
*/
|
|
35
|
+
model: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ProductSearchResultResource
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ProductSearchResultResource
|
|
46
|
+
*/
|
|
47
|
+
slug: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ProductSearchResultResource
|
|
52
|
+
*/
|
|
53
|
+
price: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ProductSearchResultResource
|
|
58
|
+
*/
|
|
59
|
+
salePrice: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ProductSearchResultResource
|
|
64
|
+
*/
|
|
65
|
+
thumbnail: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ProductSearchResultResource
|
|
70
|
+
*/
|
|
71
|
+
averageRating?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<number>}
|
|
75
|
+
* @memberof ProductSearchResultResource
|
|
76
|
+
*/
|
|
77
|
+
labelDetails: Array<number>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<object>}
|
|
81
|
+
* @memberof ProductSearchResultResource
|
|
82
|
+
*/
|
|
83
|
+
categories: Array<object>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof ProductSearchResultResource
|
|
88
|
+
*/
|
|
89
|
+
supplierName: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof ProductSearchResultResource
|
|
94
|
+
*/
|
|
95
|
+
supplierId: number;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof ProductSearchResultResource
|
|
100
|
+
*/
|
|
101
|
+
availability: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof ProductSearchResultResource
|
|
106
|
+
*/
|
|
107
|
+
wishlisted: boolean;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Check if a given object implements the ProductSearchResultResource interface.
|
|
111
|
+
*/
|
|
112
|
+
export declare function instanceOfProductSearchResultResource(value: object): value is ProductSearchResultResource;
|
|
113
|
+
export declare function ProductSearchResultResourceFromJSON(json: any): ProductSearchResultResource;
|
|
114
|
+
export declare function ProductSearchResultResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResultResource;
|
|
115
|
+
export declare function ProductSearchResultResourceToJSON(json: any): ProductSearchResultResource;
|
|
116
|
+
export declare function ProductSearchResultResourceToJSONTyped(value?: ProductSearchResultResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfProductSearchResultResource = instanceOfProductSearchResultResource;
|
|
17
|
+
exports.ProductSearchResultResourceFromJSON = ProductSearchResultResourceFromJSON;
|
|
18
|
+
exports.ProductSearchResultResourceFromJSONTyped = ProductSearchResultResourceFromJSONTyped;
|
|
19
|
+
exports.ProductSearchResultResourceToJSON = ProductSearchResultResourceToJSON;
|
|
20
|
+
exports.ProductSearchResultResourceToJSONTyped = ProductSearchResultResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ProductSearchResultResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfProductSearchResultResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('sku' in value) || value['sku'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('price' in value) || value['price'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('labelDetails' in value) || value['labelDetails'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('categories' in value) || value['categories'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('supplierName' in value) || value['supplierName'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('supplierId' in value) || value['supplierId'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('availability' in value) || value['availability'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('wishlisted' in value) || value['wishlisted'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
function ProductSearchResultResourceFromJSON(json) {
|
|
56
|
+
return ProductSearchResultResourceFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function ProductSearchResultResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': json['id'],
|
|
64
|
+
'sku': json['sku'],
|
|
65
|
+
'model': json['model'],
|
|
66
|
+
'name': json['name'],
|
|
67
|
+
'slug': json['slug'],
|
|
68
|
+
'price': json['price'],
|
|
69
|
+
'salePrice': json['salePrice'],
|
|
70
|
+
'thumbnail': json['thumbnail'],
|
|
71
|
+
'averageRating': json['averageRating'] == null ? undefined : json['averageRating'],
|
|
72
|
+
'labelDetails': json['labelDetails'],
|
|
73
|
+
'categories': json['categories'],
|
|
74
|
+
'supplierName': json['supplierName'],
|
|
75
|
+
'supplierId': json['supplierId'],
|
|
76
|
+
'availability': json['availability'],
|
|
77
|
+
'wishlisted': json['wishlisted'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function ProductSearchResultResourceToJSON(json) {
|
|
81
|
+
return ProductSearchResultResourceToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
function ProductSearchResultResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
84
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
'id': value['id'],
|
|
90
|
+
'sku': value['sku'],
|
|
91
|
+
'model': value['model'],
|
|
92
|
+
'name': value['name'],
|
|
93
|
+
'slug': value['slug'],
|
|
94
|
+
'price': value['price'],
|
|
95
|
+
'salePrice': value['salePrice'],
|
|
96
|
+
'thumbnail': value['thumbnail'],
|
|
97
|
+
'averageRating': value['averageRating'],
|
|
98
|
+
'labelDetails': value['labelDetails'],
|
|
99
|
+
'categories': value['categories'],
|
|
100
|
+
'supplierName': value['supplierName'],
|
|
101
|
+
'supplierId': value['supplierId'],
|
|
102
|
+
'availability': value['availability'],
|
|
103
|
+
'wishlisted': value['wishlisted'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ProductSearchResultResource } from './ProductSearchResultResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductSearchResultResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductSearchResultResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductSearchResultResource>}
|
|
22
|
+
* @memberof ProductSearchResultResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductSearchResultResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductSearchResultResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductSearchResultResourceArrayResponse(value: object): value is ProductSearchResultResourceArrayResponse;
|
|
30
|
+
export declare function ProductSearchResultResourceArrayResponseFromJSON(json: any): ProductSearchResultResourceArrayResponse;
|
|
31
|
+
export declare function ProductSearchResultResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResultResourceArrayResponse;
|
|
32
|
+
export declare function ProductSearchResultResourceArrayResponseToJSON(json: any): ProductSearchResultResourceArrayResponse;
|
|
33
|
+
export declare function ProductSearchResultResourceArrayResponseToJSONTyped(value?: ProductSearchResultResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfProductSearchResultResourceArrayResponse = instanceOfProductSearchResultResourceArrayResponse;
|
|
17
|
+
exports.ProductSearchResultResourceArrayResponseFromJSON = ProductSearchResultResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductSearchResultResourceArrayResponseFromJSONTyped = ProductSearchResultResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductSearchResultResourceArrayResponseToJSON = ProductSearchResultResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductSearchResultResourceArrayResponseToJSONTyped = ProductSearchResultResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductSearchResultResource_1 = require("./ProductSearchResultResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductSearchResultResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductSearchResultResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductSearchResultResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductSearchResultResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductSearchResultResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductSearchResultResource_1.ProductSearchResultResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductSearchResultResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductSearchResultResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductSearchResultResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(ProductSearchResultResource_1.ProductSearchResultResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ProductSortBy: {
|
|
17
|
+
readonly Relevance: "relevance";
|
|
18
|
+
readonly MostPopular: "mostPopular";
|
|
19
|
+
readonly HighestRating: "highestRating";
|
|
20
|
+
readonly LowestRating: "lowestRating";
|
|
21
|
+
readonly DescendingPrice: "descendingPrice";
|
|
22
|
+
readonly AscendingPrice: "ascendingPrice";
|
|
23
|
+
readonly DescendingName: "descendingName";
|
|
24
|
+
readonly AscendingName: "ascendingName";
|
|
25
|
+
readonly RecentlyAdded: "recentlyAdded";
|
|
26
|
+
};
|
|
27
|
+
export type ProductSortBy = typeof ProductSortBy[keyof typeof ProductSortBy];
|
|
28
|
+
export declare function instanceOfProductSortBy(value: any): boolean;
|
|
29
|
+
export declare function ProductSortByFromJSON(json: any): ProductSortBy;
|
|
30
|
+
export declare function ProductSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSortBy;
|
|
31
|
+
export declare function ProductSortByToJSON(value?: ProductSortBy | null): any;
|
|
32
|
+
export declare function ProductSortByToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductSortBy;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ProductSortBy = void 0;
|
|
17
|
+
exports.instanceOfProductSortBy = instanceOfProductSortBy;
|
|
18
|
+
exports.ProductSortByFromJSON = ProductSortByFromJSON;
|
|
19
|
+
exports.ProductSortByFromJSONTyped = ProductSortByFromJSONTyped;
|
|
20
|
+
exports.ProductSortByToJSON = ProductSortByToJSON;
|
|
21
|
+
exports.ProductSortByToJSONTyped = ProductSortByToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ProductSortBy = {
|
|
27
|
+
Relevance: 'relevance',
|
|
28
|
+
MostPopular: 'mostPopular',
|
|
29
|
+
HighestRating: 'highestRating',
|
|
30
|
+
LowestRating: 'lowestRating',
|
|
31
|
+
DescendingPrice: 'descendingPrice',
|
|
32
|
+
AscendingPrice: 'ascendingPrice',
|
|
33
|
+
DescendingName: 'descendingName',
|
|
34
|
+
AscendingName: 'ascendingName',
|
|
35
|
+
RecentlyAdded: 'recentlyAdded'
|
|
36
|
+
};
|
|
37
|
+
function instanceOfProductSortBy(value) {
|
|
38
|
+
for (var key in exports.ProductSortBy) {
|
|
39
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductSortBy, key)) {
|
|
40
|
+
if (exports.ProductSortBy[key] === value) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
function ProductSortByFromJSON(json) {
|
|
48
|
+
return ProductSortByFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function ProductSortByFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
function ProductSortByToJSON(value) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
function ProductSortByToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.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
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
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 { StoreProductCategoryRequestAutomationRulesInner } from './StoreProductCategoryRequestAutomationRulesInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StoreProductCategoryRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface StoreProductCategoryRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof StoreProductCategoryRequest
|
|
23
|
+
*/
|
|
24
|
+
siteId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof StoreProductCategoryRequest
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof StoreProductCategoryRequest
|
|
35
|
+
*/
|
|
36
|
+
slug: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof StoreProductCategoryRequest
|
|
41
|
+
*/
|
|
42
|
+
parentId?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof StoreProductCategoryRequest
|
|
47
|
+
*/
|
|
48
|
+
isDisabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof StoreProductCategoryRequest
|
|
53
|
+
*/
|
|
54
|
+
hideFromFrontend?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof StoreProductCategoryRequest
|
|
59
|
+
*/
|
|
60
|
+
isAutomated: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof StoreProductCategoryRequest
|
|
65
|
+
*/
|
|
66
|
+
index?: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof StoreProductCategoryRequest
|
|
71
|
+
*/
|
|
72
|
+
automatedConditionType?: StoreProductCategoryRequestAutomatedConditionTypeEnum;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<StoreProductCategoryRequestAutomationRulesInner>}
|
|
76
|
+
* @memberof StoreProductCategoryRequest
|
|
77
|
+
*/
|
|
78
|
+
automationRules?: Array<StoreProductCategoryRequestAutomationRulesInner>;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof StoreProductCategoryRequest
|
|
83
|
+
*/
|
|
84
|
+
altText?: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof StoreProductCategoryRequest
|
|
89
|
+
*/
|
|
90
|
+
mimeType: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof StoreProductCategoryRequest
|
|
95
|
+
*/
|
|
96
|
+
fileId: number;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const StoreProductCategoryRequestAutomatedConditionTypeEnum: {
|
|
102
|
+
readonly And: "and";
|
|
103
|
+
readonly Or: "or";
|
|
104
|
+
};
|
|
105
|
+
export type StoreProductCategoryRequestAutomatedConditionTypeEnum = typeof StoreProductCategoryRequestAutomatedConditionTypeEnum[keyof typeof StoreProductCategoryRequestAutomatedConditionTypeEnum];
|
|
106
|
+
/**
|
|
107
|
+
* Check if a given object implements the StoreProductCategoryRequest interface.
|
|
108
|
+
*/
|
|
109
|
+
export declare function instanceOfStoreProductCategoryRequest(value: object): value is StoreProductCategoryRequest;
|
|
110
|
+
export declare function StoreProductCategoryRequestFromJSON(json: any): StoreProductCategoryRequest;
|
|
111
|
+
export declare function StoreProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductCategoryRequest;
|
|
112
|
+
export declare function StoreProductCategoryRequestToJSON(json: any): StoreProductCategoryRequest;
|
|
113
|
+
export declare function StoreProductCategoryRequestToJSONTyped(value?: StoreProductCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|