@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,73 +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 { ProductAggregationResource } from './ProductAggregationResource';
|
|
17
|
-
import {
|
|
18
|
-
ProductAggregationResourceFromJSON,
|
|
19
|
-
ProductAggregationResourceFromJSONTyped,
|
|
20
|
-
ProductAggregationResourceToJSON,
|
|
21
|
-
ProductAggregationResourceToJSONTyped,
|
|
22
|
-
} from './ProductAggregationResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface ProductAggregationResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface ProductAggregationResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<ProductAggregationResource>}
|
|
33
|
-
* @memberof ProductAggregationResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<ProductAggregationResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the ProductAggregationResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfProductAggregationResourceArrayResponse(value: object): value is ProductAggregationResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function ProductAggregationResourceArrayResponseFromJSON(json: any): ProductAggregationResourceArrayResponse {
|
|
46
|
-
return ProductAggregationResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function ProductAggregationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAggregationResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductAggregationResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function ProductAggregationResourceArrayResponseToJSON(json: any): ProductAggregationResourceArrayResponse {
|
|
60
|
-
return ProductAggregationResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function ProductAggregationResourceArrayResponseToJSONTyped(value?: ProductAggregationResourceArrayResponse | 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(ProductAggregationResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,54 +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
|
-
|
|
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
|
-
|
|
@@ -1,122 +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 { 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
|
-
|
|
@@ -1,73 +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 { 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
|
-
|
|
@@ -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 ProductSearchResponseResourceMeta
|
|
20
|
-
*/
|
|
21
|
-
export interface ProductSearchResponseResourceMeta {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof ProductSearchResponseResourceMeta
|
|
26
|
-
*/
|
|
27
|
-
currentPage: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof ProductSearchResponseResourceMeta
|
|
32
|
-
*/
|
|
33
|
-
perPage: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof ProductSearchResponseResourceMeta
|
|
38
|
-
*/
|
|
39
|
-
total: number;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof ProductSearchResponseResourceMeta
|
|
44
|
-
*/
|
|
45
|
-
lastPage: number;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the ProductSearchResponseResourceMeta interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfProductSearchResponseResourceMeta(value: object): value is ProductSearchResponseResourceMeta {
|
|
52
|
-
if (!('currentPage' in value) || value['currentPage'] === undefined) return false;
|
|
53
|
-
if (!('perPage' in value) || value['perPage'] === undefined) return false;
|
|
54
|
-
if (!('total' in value) || value['total'] === undefined) return false;
|
|
55
|
-
if (!('lastPage' in value) || value['lastPage'] === undefined) return false;
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function ProductSearchResponseResourceMetaFromJSON(json: any): ProductSearchResponseResourceMeta {
|
|
60
|
-
return ProductSearchResponseResourceMetaFromJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function ProductSearchResponseResourceMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResponseResourceMeta {
|
|
64
|
-
if (json == null) {
|
|
65
|
-
return json;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'currentPage': json['currentPage'],
|
|
70
|
-
'perPage': json['perPage'],
|
|
71
|
-
'total': json['total'],
|
|
72
|
-
'lastPage': json['lastPage'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function ProductSearchResponseResourceMetaToJSON(json: any): ProductSearchResponseResourceMeta {
|
|
77
|
-
return ProductSearchResponseResourceMetaToJSONTyped(json, false);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function ProductSearchResponseResourceMetaToJSONTyped(value?: ProductSearchResponseResourceMeta | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
-
if (value == null) {
|
|
82
|
-
return value;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return {
|
|
86
|
-
|
|
87
|
-
'currentPage': value['currentPage'],
|
|
88
|
-
'perPage': value['perPage'],
|
|
89
|
-
'total': value['total'],
|
|
90
|
-
'lastPage': value['lastPage'],
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
@@ -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 ProductSearchResponseResourcePriceInfo
|
|
20
|
-
*/
|
|
21
|
-
export interface ProductSearchResponseResourcePriceInfo {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof ProductSearchResponseResourcePriceInfo
|
|
26
|
-
*/
|
|
27
|
-
minPrice: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof ProductSearchResponseResourcePriceInfo
|
|
32
|
-
*/
|
|
33
|
-
maxPrice: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof ProductSearchResponseResourcePriceInfo
|
|
38
|
-
*/
|
|
39
|
-
lowestPrice: number;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof ProductSearchResponseResourcePriceInfo
|
|
44
|
-
*/
|
|
45
|
-
highestPrice: number;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the ProductSearchResponseResourcePriceInfo interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfProductSearchResponseResourcePriceInfo(value: object): value is ProductSearchResponseResourcePriceInfo {
|
|
52
|
-
if (!('minPrice' in value) || value['minPrice'] === undefined) return false;
|
|
53
|
-
if (!('maxPrice' in value) || value['maxPrice'] === undefined) return false;
|
|
54
|
-
if (!('lowestPrice' in value) || value['lowestPrice'] === undefined) return false;
|
|
55
|
-
if (!('highestPrice' in value) || value['highestPrice'] === undefined) return false;
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function ProductSearchResponseResourcePriceInfoFromJSON(json: any): ProductSearchResponseResourcePriceInfo {
|
|
60
|
-
return ProductSearchResponseResourcePriceInfoFromJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function ProductSearchResponseResourcePriceInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResponseResourcePriceInfo {
|
|
64
|
-
if (json == null) {
|
|
65
|
-
return json;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'minPrice': json['minPrice'],
|
|
70
|
-
'maxPrice': json['maxPrice'],
|
|
71
|
-
'lowestPrice': json['lowestPrice'],
|
|
72
|
-
'highestPrice': json['highestPrice'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function ProductSearchResponseResourcePriceInfoToJSON(json: any): ProductSearchResponseResourcePriceInfo {
|
|
77
|
-
return ProductSearchResponseResourcePriceInfoToJSONTyped(json, false);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function ProductSearchResponseResourcePriceInfoToJSONTyped(value?: ProductSearchResponseResourcePriceInfo | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
-
if (value == null) {
|
|
82
|
-
return value;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return {
|
|
86
|
-
|
|
87
|
-
'minPrice': value['minPrice'],
|
|
88
|
-
'maxPrice': value['maxPrice'],
|
|
89
|
-
'lowestPrice': value['lowestPrice'],
|
|
90
|
-
'highestPrice': value['highestPrice'],
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
@@ -1,191 +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 ProductSearchResultResource
|
|
20
|
-
*/
|
|
21
|
-
export interface ProductSearchResultResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof ProductSearchResultResource
|
|
26
|
-
*/
|
|
27
|
-
id: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ProductSearchResultResource
|
|
32
|
-
*/
|
|
33
|
-
sku: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof ProductSearchResultResource
|
|
38
|
-
*/
|
|
39
|
-
model: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof ProductSearchResultResource
|
|
44
|
-
*/
|
|
45
|
-
name: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof ProductSearchResultResource
|
|
50
|
-
*/
|
|
51
|
-
slug: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof ProductSearchResultResource
|
|
56
|
-
*/
|
|
57
|
-
price: number;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof ProductSearchResultResource
|
|
62
|
-
*/
|
|
63
|
-
salePrice: number;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof ProductSearchResultResource
|
|
68
|
-
*/
|
|
69
|
-
thumbnail: string;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof ProductSearchResultResource
|
|
74
|
-
*/
|
|
75
|
-
averageRating?: string | null;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {Array<number>}
|
|
79
|
-
* @memberof ProductSearchResultResource
|
|
80
|
-
*/
|
|
81
|
-
labelDetails: Array<number>;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {Array<object>}
|
|
85
|
-
* @memberof ProductSearchResultResource
|
|
86
|
-
*/
|
|
87
|
-
categories: Array<object>;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof ProductSearchResultResource
|
|
92
|
-
*/
|
|
93
|
-
supplierName: string;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {number}
|
|
97
|
-
* @memberof ProductSearchResultResource
|
|
98
|
-
*/
|
|
99
|
-
supplierId: number;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {string}
|
|
103
|
-
* @memberof ProductSearchResultResource
|
|
104
|
-
*/
|
|
105
|
-
availability: string;
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
* @type {boolean}
|
|
109
|
-
* @memberof ProductSearchResultResource
|
|
110
|
-
*/
|
|
111
|
-
wishlisted: boolean;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Check if a given object implements the ProductSearchResultResource interface.
|
|
116
|
-
*/
|
|
117
|
-
export function instanceOfProductSearchResultResource(value: object): value is ProductSearchResultResource {
|
|
118
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
119
|
-
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
120
|
-
if (!('model' in value) || value['model'] === undefined) return false;
|
|
121
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
122
|
-
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
123
|
-
if (!('price' in value) || value['price'] === undefined) return false;
|
|
124
|
-
if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
|
|
125
|
-
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
126
|
-
if (!('labelDetails' in value) || value['labelDetails'] === undefined) return false;
|
|
127
|
-
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
128
|
-
if (!('supplierName' in value) || value['supplierName'] === undefined) return false;
|
|
129
|
-
if (!('supplierId' in value) || value['supplierId'] === undefined) return false;
|
|
130
|
-
if (!('availability' in value) || value['availability'] === undefined) return false;
|
|
131
|
-
if (!('wishlisted' in value) || value['wishlisted'] === undefined) return false;
|
|
132
|
-
return true;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export function ProductSearchResultResourceFromJSON(json: any): ProductSearchResultResource {
|
|
136
|
-
return ProductSearchResultResourceFromJSONTyped(json, false);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export function ProductSearchResultResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResultResource {
|
|
140
|
-
if (json == null) {
|
|
141
|
-
return json;
|
|
142
|
-
}
|
|
143
|
-
return {
|
|
144
|
-
|
|
145
|
-
'id': json['id'],
|
|
146
|
-
'sku': json['sku'],
|
|
147
|
-
'model': json['model'],
|
|
148
|
-
'name': json['name'],
|
|
149
|
-
'slug': json['slug'],
|
|
150
|
-
'price': json['price'],
|
|
151
|
-
'salePrice': json['salePrice'],
|
|
152
|
-
'thumbnail': json['thumbnail'],
|
|
153
|
-
'averageRating': json['averageRating'] == null ? undefined : json['averageRating'],
|
|
154
|
-
'labelDetails': json['labelDetails'],
|
|
155
|
-
'categories': json['categories'],
|
|
156
|
-
'supplierName': json['supplierName'],
|
|
157
|
-
'supplierId': json['supplierId'],
|
|
158
|
-
'availability': json['availability'],
|
|
159
|
-
'wishlisted': json['wishlisted'],
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export function ProductSearchResultResourceToJSON(json: any): ProductSearchResultResource {
|
|
164
|
-
return ProductSearchResultResourceToJSONTyped(json, false);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export function ProductSearchResultResourceToJSONTyped(value?: ProductSearchResultResource | null, ignoreDiscriminator: boolean = false): any {
|
|
168
|
-
if (value == null) {
|
|
169
|
-
return value;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
return {
|
|
173
|
-
|
|
174
|
-
'id': value['id'],
|
|
175
|
-
'sku': value['sku'],
|
|
176
|
-
'model': value['model'],
|
|
177
|
-
'name': value['name'],
|
|
178
|
-
'slug': value['slug'],
|
|
179
|
-
'price': value['price'],
|
|
180
|
-
'salePrice': value['salePrice'],
|
|
181
|
-
'thumbnail': value['thumbnail'],
|
|
182
|
-
'averageRating': value['averageRating'],
|
|
183
|
-
'labelDetails': value['labelDetails'],
|
|
184
|
-
'categories': value['categories'],
|
|
185
|
-
'supplierName': value['supplierName'],
|
|
186
|
-
'supplierId': value['supplierId'],
|
|
187
|
-
'availability': value['availability'],
|
|
188
|
-
'wishlisted': value['wishlisted'],
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
|