@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,74 @@
|
|
|
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 ProductCategoryLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface ProductCategoryLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ProductCategoryLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProductCategoryLiteResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ProductCategoryLiteResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfProductCategoryLiteResource(value: object): value is ProductCategoryLiteResource {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ProductCategoryLiteResourceFromJSON(json: any): ProductCategoryLiteResource {
|
|
45
|
+
return ProductCategoryLiteResourceFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ProductCategoryLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryLiteResource {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductCategoryLiteResourceToJSON(json: any): ProductCategoryLiteResource {
|
|
60
|
+
return ProductCategoryLiteResourceToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductCategoryLiteResourceToJSONTyped(value?: ProductCategoryLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductCategoryLiteResourceFromJSON,
|
|
19
|
+
ProductCategoryLiteResourceFromJSONTyped,
|
|
20
|
+
ProductCategoryLiteResourceToJSON,
|
|
21
|
+
ProductCategoryLiteResourceToJSONTyped,
|
|
22
|
+
} from './ProductCategoryLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductCategoryLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductCategoryLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductCategoryLiteResource>}
|
|
33
|
+
* @memberof ProductCategoryLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductCategoryLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductCategoryLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductCategoryLiteResourceArrayResponse(value: object): value is ProductCategoryLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductCategoryLiteResourceArrayResponseFromJSON(json: any): ProductCategoryLiteResourceArrayResponse {
|
|
46
|
+
return ProductCategoryLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductCategoryLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductCategoryLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductCategoryLiteResourceArrayResponseToJSON(json: any): ProductCategoryLiteResourceArrayResponse {
|
|
60
|
+
return ProductCategoryLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductCategoryLiteResourceArrayResponseToJSONTyped(value?: ProductCategoryLiteResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductCategoryLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,193 @@
|
|
|
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 { SiteLiteResource } from './SiteLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
SiteLiteResourceFromJSON,
|
|
19
|
+
SiteLiteResourceFromJSONTyped,
|
|
20
|
+
SiteLiteResourceToJSON,
|
|
21
|
+
SiteLiteResourceToJSONTyped,
|
|
22
|
+
} from './SiteLiteResource';
|
|
23
|
+
import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductCategoryLiteResourceFromJSON,
|
|
26
|
+
ProductCategoryLiteResourceFromJSONTyped,
|
|
27
|
+
ProductCategoryLiteResourceToJSON,
|
|
28
|
+
ProductCategoryLiteResourceToJSONTyped,
|
|
29
|
+
} from './ProductCategoryLiteResource';
|
|
30
|
+
import type { AssetResource } from './AssetResource';
|
|
31
|
+
import {
|
|
32
|
+
AssetResourceFromJSON,
|
|
33
|
+
AssetResourceFromJSONTyped,
|
|
34
|
+
AssetResourceToJSON,
|
|
35
|
+
AssetResourceToJSONTyped,
|
|
36
|
+
} from './AssetResource';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface ProductCategoryResource
|
|
42
|
+
*/
|
|
43
|
+
export interface ProductCategoryResource {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof ProductCategoryResource
|
|
48
|
+
*/
|
|
49
|
+
id?: number | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof ProductCategoryResource
|
|
54
|
+
*/
|
|
55
|
+
siteId: number;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ProductCategoryResource
|
|
60
|
+
*/
|
|
61
|
+
name: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ProductCategoryResource
|
|
66
|
+
*/
|
|
67
|
+
slug: string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof ProductCategoryResource
|
|
72
|
+
*/
|
|
73
|
+
parentId?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {boolean}
|
|
77
|
+
* @memberof ProductCategoryResource
|
|
78
|
+
*/
|
|
79
|
+
isDisabled: boolean;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {boolean}
|
|
83
|
+
* @memberof ProductCategoryResource
|
|
84
|
+
*/
|
|
85
|
+
isAutomated: boolean;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof ProductCategoryResource
|
|
90
|
+
*/
|
|
91
|
+
index: number;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof ProductCategoryResource
|
|
96
|
+
*/
|
|
97
|
+
automatedConditionType?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {AssetResource}
|
|
101
|
+
* @memberof ProductCategoryResource
|
|
102
|
+
*/
|
|
103
|
+
thumbnail: AssetResource | null;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {object}
|
|
107
|
+
* @memberof ProductCategoryResource
|
|
108
|
+
*/
|
|
109
|
+
automationRules: object;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {ProductCategoryLiteResource}
|
|
113
|
+
* @memberof ProductCategoryResource
|
|
114
|
+
*/
|
|
115
|
+
parent: ProductCategoryLiteResource | null;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {SiteLiteResource}
|
|
119
|
+
* @memberof ProductCategoryResource
|
|
120
|
+
*/
|
|
121
|
+
site: SiteLiteResource | null;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Check if a given object implements the ProductCategoryResource interface.
|
|
126
|
+
*/
|
|
127
|
+
export function instanceOfProductCategoryResource(value: object): value is ProductCategoryResource {
|
|
128
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
129
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
130
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
131
|
+
if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
|
|
132
|
+
if (!('isAutomated' in value) || value['isAutomated'] === undefined) return false;
|
|
133
|
+
if (!('index' in value) || value['index'] === undefined) return false;
|
|
134
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
135
|
+
if (!('automationRules' in value) || value['automationRules'] === undefined) return false;
|
|
136
|
+
if (!('parent' in value) || value['parent'] === undefined) return false;
|
|
137
|
+
if (!('site' in value) || value['site'] === undefined) return false;
|
|
138
|
+
return true;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function ProductCategoryResourceFromJSON(json: any): ProductCategoryResource {
|
|
142
|
+
return ProductCategoryResourceFromJSONTyped(json, false);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function ProductCategoryResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryResource {
|
|
146
|
+
if (json == null) {
|
|
147
|
+
return json;
|
|
148
|
+
}
|
|
149
|
+
return {
|
|
150
|
+
|
|
151
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
152
|
+
'siteId': json['siteId'],
|
|
153
|
+
'name': json['name'],
|
|
154
|
+
'slug': json['slug'],
|
|
155
|
+
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
156
|
+
'isDisabled': json['isDisabled'],
|
|
157
|
+
'isAutomated': json['isAutomated'],
|
|
158
|
+
'index': json['index'],
|
|
159
|
+
'automatedConditionType': json['automatedConditionType'] == null ? undefined : json['automatedConditionType'],
|
|
160
|
+
'thumbnail': AssetResourceFromJSON(json['thumbnail']),
|
|
161
|
+
'automationRules': json['automationRules'],
|
|
162
|
+
'parent': ProductCategoryLiteResourceFromJSON(json['parent']),
|
|
163
|
+
'site': SiteLiteResourceFromJSON(json['site']),
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function ProductCategoryResourceToJSON(json: any): ProductCategoryResource {
|
|
168
|
+
return ProductCategoryResourceToJSONTyped(json, false);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function ProductCategoryResourceToJSONTyped(value?: ProductCategoryResource | null, ignoreDiscriminator: boolean = false): any {
|
|
172
|
+
if (value == null) {
|
|
173
|
+
return value;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return {
|
|
177
|
+
|
|
178
|
+
'id': value['id'],
|
|
179
|
+
'siteId': value['siteId'],
|
|
180
|
+
'name': value['name'],
|
|
181
|
+
'slug': value['slug'],
|
|
182
|
+
'parentId': value['parentId'],
|
|
183
|
+
'isDisabled': value['isDisabled'],
|
|
184
|
+
'isAutomated': value['isAutomated'],
|
|
185
|
+
'index': value['index'],
|
|
186
|
+
'automatedConditionType': value['automatedConditionType'],
|
|
187
|
+
'thumbnail': AssetResourceToJSON(value['thumbnail']),
|
|
188
|
+
'automationRules': value['automationRules'],
|
|
189
|
+
'parent': ProductCategoryLiteResourceToJSON(value['parent']),
|
|
190
|
+
'site': SiteLiteResourceToJSON(value['site']),
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { ProductCategoryResource } from './ProductCategoryResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductCategoryResourceFromJSON,
|
|
19
|
+
ProductCategoryResourceFromJSONTyped,
|
|
20
|
+
ProductCategoryResourceToJSON,
|
|
21
|
+
ProductCategoryResourceToJSONTyped,
|
|
22
|
+
} from './ProductCategoryResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductCategoryResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductCategoryResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductCategoryResource>}
|
|
33
|
+
* @memberof ProductCategoryResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductCategoryResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductCategoryResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductCategoryResourceArrayResponse(value: object): value is ProductCategoryResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductCategoryResourceArrayResponseFromJSON(json: any): ProductCategoryResourceArrayResponse {
|
|
46
|
+
return ProductCategoryResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductCategoryResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductCategoryResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductCategoryResourceArrayResponseToJSON(json: any): ProductCategoryResourceArrayResponse {
|
|
60
|
+
return ProductCategoryResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductCategoryResourceArrayResponseToJSONTyped(value?: ProductCategoryResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductCategoryResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ProductRating = {
|
|
21
|
+
_5: '5',
|
|
22
|
+
_4: '4',
|
|
23
|
+
_3: '3'
|
|
24
|
+
} as const;
|
|
25
|
+
export type ProductRating = typeof ProductRating[keyof typeof ProductRating];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfProductRating(value: any): boolean {
|
|
29
|
+
for (const key in ProductRating) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(ProductRating, key)) {
|
|
31
|
+
if (ProductRating[key as keyof typeof ProductRating] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ProductRatingFromJSON(json: any): ProductRating {
|
|
40
|
+
return ProductRatingFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ProductRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRating {
|
|
44
|
+
return json as ProductRating;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ProductRatingToJSON(value?: ProductRating | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ProductRatingToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductRating {
|
|
52
|
+
return value as ProductRating;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,122 @@
|
|
|
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 { ProductSearchResultResource } from './ProductSearchResultResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductSearchResultResourceFromJSON,
|
|
19
|
+
ProductSearchResultResourceFromJSONTyped,
|
|
20
|
+
ProductSearchResultResourceToJSON,
|
|
21
|
+
ProductSearchResultResourceToJSONTyped,
|
|
22
|
+
} from './ProductSearchResultResource';
|
|
23
|
+
import type { ProductSearchResponseResourceMeta } from './ProductSearchResponseResourceMeta';
|
|
24
|
+
import {
|
|
25
|
+
ProductSearchResponseResourceMetaFromJSON,
|
|
26
|
+
ProductSearchResponseResourceMetaFromJSONTyped,
|
|
27
|
+
ProductSearchResponseResourceMetaToJSON,
|
|
28
|
+
ProductSearchResponseResourceMetaToJSONTyped,
|
|
29
|
+
} from './ProductSearchResponseResourceMeta';
|
|
30
|
+
import type { ProductAggregationResource } from './ProductAggregationResource';
|
|
31
|
+
import {
|
|
32
|
+
ProductAggregationResourceFromJSON,
|
|
33
|
+
ProductAggregationResourceFromJSONTyped,
|
|
34
|
+
ProductAggregationResourceToJSON,
|
|
35
|
+
ProductAggregationResourceToJSONTyped,
|
|
36
|
+
} from './ProductAggregationResource';
|
|
37
|
+
import type { ProductSearchResponseResourcePriceInfo } from './ProductSearchResponseResourcePriceInfo';
|
|
38
|
+
import {
|
|
39
|
+
ProductSearchResponseResourcePriceInfoFromJSON,
|
|
40
|
+
ProductSearchResponseResourcePriceInfoFromJSONTyped,
|
|
41
|
+
ProductSearchResponseResourcePriceInfoToJSON,
|
|
42
|
+
ProductSearchResponseResourcePriceInfoToJSONTyped,
|
|
43
|
+
} from './ProductSearchResponseResourcePriceInfo';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface ProductSearchResponseResource
|
|
49
|
+
*/
|
|
50
|
+
export interface ProductSearchResponseResource {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<ProductSearchResultResource>}
|
|
54
|
+
* @memberof ProductSearchResponseResource
|
|
55
|
+
*/
|
|
56
|
+
data: Array<ProductSearchResultResource>;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {ProductSearchResponseResourceMeta}
|
|
60
|
+
* @memberof ProductSearchResponseResource
|
|
61
|
+
*/
|
|
62
|
+
meta: ProductSearchResponseResourceMeta;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {ProductAggregationResource}
|
|
66
|
+
* @memberof ProductSearchResponseResource
|
|
67
|
+
*/
|
|
68
|
+
aggregations: ProductAggregationResource;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {ProductSearchResponseResourcePriceInfo}
|
|
72
|
+
* @memberof ProductSearchResponseResource
|
|
73
|
+
*/
|
|
74
|
+
priceInfo: ProductSearchResponseResourcePriceInfo;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the ProductSearchResponseResource interface.
|
|
79
|
+
*/
|
|
80
|
+
export function instanceOfProductSearchResponseResource(value: object): value is ProductSearchResponseResource {
|
|
81
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
82
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
83
|
+
if (!('aggregations' in value) || value['aggregations'] === undefined) return false;
|
|
84
|
+
if (!('priceInfo' in value) || value['priceInfo'] === undefined) return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function ProductSearchResponseResourceFromJSON(json: any): ProductSearchResponseResource {
|
|
89
|
+
return ProductSearchResponseResourceFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ProductSearchResponseResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResponseResource {
|
|
93
|
+
if (json == null) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'data': ((json['data'] as Array<any>).map(ProductSearchResultResourceFromJSON)),
|
|
99
|
+
'meta': ProductSearchResponseResourceMetaFromJSON(json['meta']),
|
|
100
|
+
'aggregations': ProductAggregationResourceFromJSON(json['aggregations']),
|
|
101
|
+
'priceInfo': ProductSearchResponseResourcePriceInfoFromJSON(json['priceInfo']),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function ProductSearchResponseResourceToJSON(json: any): ProductSearchResponseResource {
|
|
106
|
+
return ProductSearchResponseResourceToJSONTyped(json, false);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function ProductSearchResponseResourceToJSONTyped(value?: ProductSearchResponseResource | null, ignoreDiscriminator: boolean = false): any {
|
|
110
|
+
if (value == null) {
|
|
111
|
+
return value;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return {
|
|
115
|
+
|
|
116
|
+
'data': ((value['data'] as Array<any>).map(ProductSearchResultResourceToJSON)),
|
|
117
|
+
'meta': ProductSearchResponseResourceMetaToJSON(value['meta']),
|
|
118
|
+
'aggregations': ProductAggregationResourceToJSON(value['aggregations']),
|
|
119
|
+
'priceInfo': ProductSearchResponseResourcePriceInfoToJSON(value['priceInfo']),
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { ProductSearchResponseResource } from './ProductSearchResponseResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductSearchResponseResourceFromJSON,
|
|
19
|
+
ProductSearchResponseResourceFromJSONTyped,
|
|
20
|
+
ProductSearchResponseResourceToJSON,
|
|
21
|
+
ProductSearchResponseResourceToJSONTyped,
|
|
22
|
+
} from './ProductSearchResponseResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductSearchResponseResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductSearchResponseResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductSearchResponseResource>}
|
|
33
|
+
* @memberof ProductSearchResponseResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductSearchResponseResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductSearchResponseResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductSearchResponseResourceArrayResponse(value: object): value is ProductSearchResponseResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductSearchResponseResourceArrayResponseFromJSON(json: any): ProductSearchResponseResourceArrayResponse {
|
|
46
|
+
return ProductSearchResponseResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductSearchResponseResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResponseResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductSearchResponseResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductSearchResponseResourceArrayResponseToJSON(json: any): ProductSearchResponseResourceArrayResponse {
|
|
60
|
+
return ProductSearchResponseResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductSearchResponseResourceArrayResponseToJSONTyped(value?: ProductSearchResponseResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductSearchResponseResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|