@digital8/lighting-illusions-ts-sdk 0.0.534 → 0.0.536
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 +28 -4
- package/README.md +16 -4
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- 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/ProductCategoryResource.d.ts +14 -0
- package/dist/models/ProductCategoryResource.js +10 -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 +23 -1
- package/dist/models/StoreProductCategoryRequest.js +14 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +27 -2
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +24 -0
- package/dist/models/StoreProductCategoryRequestDescriptionsInner.d.ts +44 -0
- package/dist/models/StoreProductCategoryRequestDescriptionsInner.js +55 -0
- package/dist/models/StoreProductCategoryRequestSeoInner.d.ts +44 -0
- package/dist/models/StoreProductCategoryRequestSeoInner.js +55 -0
- package/dist/models/StoreSupplierRequest.d.ts +6 -6
- package/dist/models/StoreSupplierRequest.js +6 -6
- package/dist/models/UpdateProductCategoryRequest.d.ts +24 -2
- package/dist/models/UpdateProductCategoryRequest.js +17 -1
- package/dist/models/UpdateSupplierRequest.d.ts +6 -6
- package/dist/models/UpdateSupplierRequest.js +6 -6
- package/dist/models/index.d.ts +14 -2
- package/dist/models/index.js +14 -2
- package/docs/PaginatedProductSearchResultResourceResponse.md +36 -0
- package/docs/ProductAggregationResource.md +40 -0
- package/docs/ProductAggregationResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryResource.md +4 -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 +4 -0
- package/docs/{StoreSupplierRequestDescriptionsInner.md → StoreProductCategoryRequestDescriptionsInner.md} +4 -4
- package/docs/{StoreSupplierRequestSeoInner.md → StoreProductCategoryRequestSeoInner.md} +4 -4
- package/docs/StoreSupplierRequest.md +2 -2
- package/docs/UpdateProductCategoryRequest.md +4 -0
- package/docs/UpdateSupplierRequest.md +2 -2
- package/package.json +1 -1
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/PaginatedProductSearchResultResourceResponse.ts +90 -0
- package/src/models/ProductAggregationResource.ts +93 -0
- package/src/models/ProductAggregationResourceArrayResponse.ts +73 -0
- package/src/models/ProductCategoryResource.ts +32 -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 +42 -1
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +31 -2
- package/src/models/StoreProductCategoryRequestDescriptionsInner.ts +82 -0
- package/src/models/{StoreSupplierRequestSeoInner.ts → StoreProductCategoryRequestSeoInner.ts} +13 -13
- package/src/models/StoreSupplierRequest.ts +20 -20
- package/src/models/UpdateProductCategoryRequest.ts +45 -3
- package/src/models/UpdateSupplierRequest.ts +20 -20
- package/src/models/index.ts +14 -2
- package/dist/models/StoreSupplierRequestDescriptionsInner.d.ts +0 -44
- package/dist/models/StoreSupplierRequestDescriptionsInner.js +0 -55
- package/dist/models/StoreSupplierRequestSeoInner.d.ts +0 -44
- package/dist/models/StoreSupplierRequestSeoInner.js +0 -55
- package/src/models/StoreSupplierRequestDescriptionsInner.ts +0 -82
package/.openapi-generator/FILES
CHANGED
|
@@ -115,6 +115,7 @@ docs/PaginatedProductChildResourceResponse.md
|
|
|
115
115
|
docs/PaginatedProductListResourceResponse.md
|
|
116
116
|
docs/PaginatedProductLiteResourceResponse.md
|
|
117
117
|
docs/PaginatedProductResourceResponse.md
|
|
118
|
+
docs/PaginatedProductSearchResultResourceResponse.md
|
|
118
119
|
docs/PaginatedProductTypeListResourceResponse.md
|
|
119
120
|
docs/PaginatedProductTypeLiteResourceResponse.md
|
|
120
121
|
docs/PaginatedProductTypeResourceResponse.md
|
|
@@ -131,6 +132,8 @@ docs/PaginatedTagListResourceResponse.md
|
|
|
131
132
|
docs/PaginatedTagLiteResourceResponse.md
|
|
132
133
|
docs/PaginatedTagResourceResponse.md
|
|
133
134
|
docs/PagingMetadata.md
|
|
135
|
+
docs/ProductAggregationResource.md
|
|
136
|
+
docs/ProductAggregationResourceArrayResponse.md
|
|
134
137
|
docs/ProductApi.md
|
|
135
138
|
docs/ProductCategoryApi.md
|
|
136
139
|
docs/ProductCategoryHierarchyResource.md
|
|
@@ -160,8 +163,17 @@ docs/ProductListResource.md
|
|
|
160
163
|
docs/ProductListResourceArrayResponse.md
|
|
161
164
|
docs/ProductLiteResource.md
|
|
162
165
|
docs/ProductLiteResourceArrayResponse.md
|
|
166
|
+
docs/ProductRating.md
|
|
163
167
|
docs/ProductResource.md
|
|
164
168
|
docs/ProductResourceArrayResponse.md
|
|
169
|
+
docs/ProductSearchResponseResource.md
|
|
170
|
+
docs/ProductSearchResponseResourceArrayResponse.md
|
|
171
|
+
docs/ProductSearchResponseResourceMeta.md
|
|
172
|
+
docs/ProductSearchResponseResourcePriceInfo.md
|
|
173
|
+
docs/ProductSearchResultResource.md
|
|
174
|
+
docs/ProductSearchResultResourceArrayResponse.md
|
|
175
|
+
docs/ProductSortBy.md
|
|
176
|
+
docs/ProductStatus.md
|
|
165
177
|
docs/ProductTypeApi.md
|
|
166
178
|
docs/ProductTypeListResource.md
|
|
167
179
|
docs/ProductTypeListResourceArrayResponse.md
|
|
@@ -195,6 +207,8 @@ docs/StoreOverlayTemplateAssetRequest.md
|
|
|
195
207
|
docs/StoreOverlayTemplateRequest.md
|
|
196
208
|
docs/StoreProductCategoryRequest.md
|
|
197
209
|
docs/StoreProductCategoryRequestAutomationRulesInner.md
|
|
210
|
+
docs/StoreProductCategoryRequestDescriptionsInner.md
|
|
211
|
+
docs/StoreProductCategoryRequestSeoInner.md
|
|
198
212
|
docs/StoreProductChildRequest.md
|
|
199
213
|
docs/StoreProductChildRequestAssetsInner.md
|
|
200
214
|
docs/StoreProductChildRequestAttributeValuesInner.md
|
|
@@ -204,8 +218,6 @@ docs/StoreProductRequestCategoriesInner.md
|
|
|
204
218
|
docs/StoreProductTypeRequest.md
|
|
205
219
|
docs/StoreSiteNotificationRequest.md
|
|
206
220
|
docs/StoreSupplierRequest.md
|
|
207
|
-
docs/StoreSupplierRequestDescriptionsInner.md
|
|
208
|
-
docs/StoreSupplierRequestSeoInner.md
|
|
209
221
|
docs/StoreTagRequest.md
|
|
210
222
|
docs/SupplierApi.md
|
|
211
223
|
docs/SupplierFrontendResource.md
|
|
@@ -365,6 +377,7 @@ src/models/PaginatedProductChildResourceResponse.ts
|
|
|
365
377
|
src/models/PaginatedProductListResourceResponse.ts
|
|
366
378
|
src/models/PaginatedProductLiteResourceResponse.ts
|
|
367
379
|
src/models/PaginatedProductResourceResponse.ts
|
|
380
|
+
src/models/PaginatedProductSearchResultResourceResponse.ts
|
|
368
381
|
src/models/PaginatedProductTypeListResourceResponse.ts
|
|
369
382
|
src/models/PaginatedProductTypeLiteResourceResponse.ts
|
|
370
383
|
src/models/PaginatedProductTypeResourceResponse.ts
|
|
@@ -381,6 +394,8 @@ src/models/PaginatedTagListResourceResponse.ts
|
|
|
381
394
|
src/models/PaginatedTagLiteResourceResponse.ts
|
|
382
395
|
src/models/PaginatedTagResourceResponse.ts
|
|
383
396
|
src/models/PagingMetadata.ts
|
|
397
|
+
src/models/ProductAggregationResource.ts
|
|
398
|
+
src/models/ProductAggregationResourceArrayResponse.ts
|
|
384
399
|
src/models/ProductCategoryHierarchyResource.ts
|
|
385
400
|
src/models/ProductCategoryHierarchyResourceArrayResponse.ts
|
|
386
401
|
src/models/ProductCategoryListResource.ts
|
|
@@ -407,8 +422,17 @@ src/models/ProductListResource.ts
|
|
|
407
422
|
src/models/ProductListResourceArrayResponse.ts
|
|
408
423
|
src/models/ProductLiteResource.ts
|
|
409
424
|
src/models/ProductLiteResourceArrayResponse.ts
|
|
425
|
+
src/models/ProductRating.ts
|
|
410
426
|
src/models/ProductResource.ts
|
|
411
427
|
src/models/ProductResourceArrayResponse.ts
|
|
428
|
+
src/models/ProductSearchResponseResource.ts
|
|
429
|
+
src/models/ProductSearchResponseResourceArrayResponse.ts
|
|
430
|
+
src/models/ProductSearchResponseResourceMeta.ts
|
|
431
|
+
src/models/ProductSearchResponseResourcePriceInfo.ts
|
|
432
|
+
src/models/ProductSearchResultResource.ts
|
|
433
|
+
src/models/ProductSearchResultResourceArrayResponse.ts
|
|
434
|
+
src/models/ProductSortBy.ts
|
|
435
|
+
src/models/ProductStatus.ts
|
|
412
436
|
src/models/ProductTypeListResource.ts
|
|
413
437
|
src/models/ProductTypeListResourceArrayResponse.ts
|
|
414
438
|
src/models/ProductTypeLiteResource.ts
|
|
@@ -440,6 +464,8 @@ src/models/StoreOverlayTemplateAssetRequest.ts
|
|
|
440
464
|
src/models/StoreOverlayTemplateRequest.ts
|
|
441
465
|
src/models/StoreProductCategoryRequest.ts
|
|
442
466
|
src/models/StoreProductCategoryRequestAutomationRulesInner.ts
|
|
467
|
+
src/models/StoreProductCategoryRequestDescriptionsInner.ts
|
|
468
|
+
src/models/StoreProductCategoryRequestSeoInner.ts
|
|
443
469
|
src/models/StoreProductChildRequest.ts
|
|
444
470
|
src/models/StoreProductChildRequestAssetsInner.ts
|
|
445
471
|
src/models/StoreProductChildRequestAttributeValuesInner.ts
|
|
@@ -449,8 +475,6 @@ src/models/StoreProductRequestCategoriesInner.ts
|
|
|
449
475
|
src/models/StoreProductTypeRequest.ts
|
|
450
476
|
src/models/StoreSiteNotificationRequest.ts
|
|
451
477
|
src/models/StoreSupplierRequest.ts
|
|
452
|
-
src/models/StoreSupplierRequestDescriptionsInner.ts
|
|
453
|
-
src/models/StoreSupplierRequestSeoInner.ts
|
|
454
478
|
src/models/StoreTagRequest.ts
|
|
455
479
|
src/models/SupplierFrontendResource.ts
|
|
456
480
|
src/models/SupplierFrontendResourceArrayResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.536
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -261,6 +261,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
261
261
|
- [PaginatedProductListResourceResponse](docs/PaginatedProductListResourceResponse.md)
|
|
262
262
|
- [PaginatedProductLiteResourceResponse](docs/PaginatedProductLiteResourceResponse.md)
|
|
263
263
|
- [PaginatedProductResourceResponse](docs/PaginatedProductResourceResponse.md)
|
|
264
|
+
- [PaginatedProductSearchResultResourceResponse](docs/PaginatedProductSearchResultResourceResponse.md)
|
|
264
265
|
- [PaginatedProductTypeListResourceResponse](docs/PaginatedProductTypeListResourceResponse.md)
|
|
265
266
|
- [PaginatedProductTypeLiteResourceResponse](docs/PaginatedProductTypeLiteResourceResponse.md)
|
|
266
267
|
- [PaginatedProductTypeResourceResponse](docs/PaginatedProductTypeResourceResponse.md)
|
|
@@ -277,6 +278,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
277
278
|
- [PaginatedTagLiteResourceResponse](docs/PaginatedTagLiteResourceResponse.md)
|
|
278
279
|
- [PaginatedTagResourceResponse](docs/PaginatedTagResourceResponse.md)
|
|
279
280
|
- [PagingMetadata](docs/PagingMetadata.md)
|
|
281
|
+
- [ProductAggregationResource](docs/ProductAggregationResource.md)
|
|
282
|
+
- [ProductAggregationResourceArrayResponse](docs/ProductAggregationResourceArrayResponse.md)
|
|
280
283
|
- [ProductCategoryHierarchyResource](docs/ProductCategoryHierarchyResource.md)
|
|
281
284
|
- [ProductCategoryHierarchyResourceArrayResponse](docs/ProductCategoryHierarchyResourceArrayResponse.md)
|
|
282
285
|
- [ProductCategoryListResource](docs/ProductCategoryListResource.md)
|
|
@@ -303,8 +306,17 @@ All URIs are relative to *http://localhost/api*
|
|
|
303
306
|
- [ProductListResourceArrayResponse](docs/ProductListResourceArrayResponse.md)
|
|
304
307
|
- [ProductLiteResource](docs/ProductLiteResource.md)
|
|
305
308
|
- [ProductLiteResourceArrayResponse](docs/ProductLiteResourceArrayResponse.md)
|
|
309
|
+
- [ProductRating](docs/ProductRating.md)
|
|
306
310
|
- [ProductResource](docs/ProductResource.md)
|
|
307
311
|
- [ProductResourceArrayResponse](docs/ProductResourceArrayResponse.md)
|
|
312
|
+
- [ProductSearchResponseResource](docs/ProductSearchResponseResource.md)
|
|
313
|
+
- [ProductSearchResponseResourceArrayResponse](docs/ProductSearchResponseResourceArrayResponse.md)
|
|
314
|
+
- [ProductSearchResponseResourceMeta](docs/ProductSearchResponseResourceMeta.md)
|
|
315
|
+
- [ProductSearchResponseResourcePriceInfo](docs/ProductSearchResponseResourcePriceInfo.md)
|
|
316
|
+
- [ProductSearchResultResource](docs/ProductSearchResultResource.md)
|
|
317
|
+
- [ProductSearchResultResourceArrayResponse](docs/ProductSearchResultResourceArrayResponse.md)
|
|
318
|
+
- [ProductSortBy](docs/ProductSortBy.md)
|
|
319
|
+
- [ProductStatus](docs/ProductStatus.md)
|
|
308
320
|
- [ProductTypeListResource](docs/ProductTypeListResource.md)
|
|
309
321
|
- [ProductTypeListResourceArrayResponse](docs/ProductTypeListResourceArrayResponse.md)
|
|
310
322
|
- [ProductTypeLiteResource](docs/ProductTypeLiteResource.md)
|
|
@@ -336,6 +348,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
336
348
|
- [StoreOverlayTemplateRequest](docs/StoreOverlayTemplateRequest.md)
|
|
337
349
|
- [StoreProductCategoryRequest](docs/StoreProductCategoryRequest.md)
|
|
338
350
|
- [StoreProductCategoryRequestAutomationRulesInner](docs/StoreProductCategoryRequestAutomationRulesInner.md)
|
|
351
|
+
- [StoreProductCategoryRequestDescriptionsInner](docs/StoreProductCategoryRequestDescriptionsInner.md)
|
|
352
|
+
- [StoreProductCategoryRequestSeoInner](docs/StoreProductCategoryRequestSeoInner.md)
|
|
339
353
|
- [StoreProductChildRequest](docs/StoreProductChildRequest.md)
|
|
340
354
|
- [StoreProductChildRequestAssetsInner](docs/StoreProductChildRequestAssetsInner.md)
|
|
341
355
|
- [StoreProductChildRequestAttributeValuesInner](docs/StoreProductChildRequestAttributeValuesInner.md)
|
|
@@ -345,8 +359,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
345
359
|
- [StoreProductTypeRequest](docs/StoreProductTypeRequest.md)
|
|
346
360
|
- [StoreSiteNotificationRequest](docs/StoreSiteNotificationRequest.md)
|
|
347
361
|
- [StoreSupplierRequest](docs/StoreSupplierRequest.md)
|
|
348
|
-
- [StoreSupplierRequestDescriptionsInner](docs/StoreSupplierRequestDescriptionsInner.md)
|
|
349
|
-
- [StoreSupplierRequestSeoInner](docs/StoreSupplierRequestSeoInner.md)
|
|
350
362
|
- [StoreTagRequest](docs/StoreTagRequest.md)
|
|
351
363
|
- [SupplierFrontendResource](docs/SupplierFrontendResource.md)
|
|
352
364
|
- [SupplierFrontendResourceArrayResponse](docs/SupplierFrontendResourceArrayResponse.md)
|
|
@@ -394,7 +406,7 @@ and is automatically generated by the
|
|
|
394
406
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
395
407
|
|
|
396
408
|
- API version: `1.0.0`
|
|
397
|
-
- Package version: `0.0.
|
|
409
|
+
- Package version: `0.0.536`
|
|
398
410
|
- Generator version: `7.18.0`
|
|
399
411
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
400
412
|
|
|
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { ProductSearchResultResource } from './ProductSearchResultResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedProductSearchResultResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedProductSearchResultResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<ProductSearchResultResource>}
|
|
23
|
+
* @memberof PaginatedProductSearchResultResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<ProductSearchResultResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedProductSearchResultResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedProductSearchResultResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedProductSearchResultResourceResponse(value: object): value is PaginatedProductSearchResultResourceResponse;
|
|
37
|
+
export declare function PaginatedProductSearchResultResourceResponseFromJSON(json: any): PaginatedProductSearchResultResourceResponse;
|
|
38
|
+
export declare function PaginatedProductSearchResultResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductSearchResultResourceResponse;
|
|
39
|
+
export declare function PaginatedProductSearchResultResourceResponseToJSON(json: any): PaginatedProductSearchResultResourceResponse;
|
|
40
|
+
export declare function PaginatedProductSearchResultResourceResponseToJSONTyped(value?: PaginatedProductSearchResultResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfPaginatedProductSearchResultResourceResponse = instanceOfPaginatedProductSearchResultResourceResponse;
|
|
17
|
+
exports.PaginatedProductSearchResultResourceResponseFromJSON = PaginatedProductSearchResultResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedProductSearchResultResourceResponseFromJSONTyped = PaginatedProductSearchResultResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedProductSearchResultResourceResponseToJSON = PaginatedProductSearchResultResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedProductSearchResultResourceResponseToJSONTyped = PaginatedProductSearchResultResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var ProductSearchResultResource_1 = require("./ProductSearchResultResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedProductSearchResultResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedProductSearchResultResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedProductSearchResultResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedProductSearchResultResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedProductSearchResultResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(ProductSearchResultResource_1.ProductSearchResultResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedProductSearchResultResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedProductSearchResultResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedProductSearchResultResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(ProductSearchResultResource_1.ProductSearchResultResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 ProductAggregationResource
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductAggregationResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof ProductAggregationResource
|
|
22
|
+
*/
|
|
23
|
+
attributes: object;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<object>}
|
|
27
|
+
* @memberof ProductAggregationResource
|
|
28
|
+
*/
|
|
29
|
+
priceRanges: Array<object>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<object>}
|
|
33
|
+
* @memberof ProductAggregationResource
|
|
34
|
+
*/
|
|
35
|
+
brands: Array<object>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<object>}
|
|
39
|
+
* @memberof ProductAggregationResource
|
|
40
|
+
*/
|
|
41
|
+
ratings: Array<object>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ProductAggregationResource interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfProductAggregationResource(value: object): value is ProductAggregationResource;
|
|
47
|
+
export declare function ProductAggregationResourceFromJSON(json: any): ProductAggregationResource;
|
|
48
|
+
export declare function ProductAggregationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAggregationResource;
|
|
49
|
+
export declare function ProductAggregationResourceToJSON(json: any): ProductAggregationResource;
|
|
50
|
+
export declare function ProductAggregationResourceToJSONTyped(value?: ProductAggregationResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfProductAggregationResource = instanceOfProductAggregationResource;
|
|
17
|
+
exports.ProductAggregationResourceFromJSON = ProductAggregationResourceFromJSON;
|
|
18
|
+
exports.ProductAggregationResourceFromJSONTyped = ProductAggregationResourceFromJSONTyped;
|
|
19
|
+
exports.ProductAggregationResourceToJSON = ProductAggregationResourceToJSON;
|
|
20
|
+
exports.ProductAggregationResourceToJSONTyped = ProductAggregationResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ProductAggregationResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfProductAggregationResource(value) {
|
|
25
|
+
if (!('attributes' in value) || value['attributes'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('priceRanges' in value) || value['priceRanges'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('brands' in value) || value['brands'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('ratings' in value) || value['ratings'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ProductAggregationResourceFromJSON(json) {
|
|
36
|
+
return ProductAggregationResourceFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ProductAggregationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'attributes': json['attributes'],
|
|
44
|
+
'priceRanges': json['priceRanges'],
|
|
45
|
+
'brands': json['brands'],
|
|
46
|
+
'ratings': json['ratings'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ProductAggregationResourceToJSON(json) {
|
|
50
|
+
return ProductAggregationResourceToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ProductAggregationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'attributes': value['attributes'],
|
|
59
|
+
'priceRanges': value['priceRanges'],
|
|
60
|
+
'brands': value['brands'],
|
|
61
|
+
'ratings': value['ratings'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -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 { ProductAggregationResource } from './ProductAggregationResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductAggregationResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductAggregationResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductAggregationResource>}
|
|
22
|
+
* @memberof ProductAggregationResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductAggregationResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductAggregationResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductAggregationResourceArrayResponse(value: object): value is ProductAggregationResourceArrayResponse;
|
|
30
|
+
export declare function ProductAggregationResourceArrayResponseFromJSON(json: any): ProductAggregationResourceArrayResponse;
|
|
31
|
+
export declare function ProductAggregationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAggregationResourceArrayResponse;
|
|
32
|
+
export declare function ProductAggregationResourceArrayResponseToJSON(json: any): ProductAggregationResourceArrayResponse;
|
|
33
|
+
export declare function ProductAggregationResourceArrayResponseToJSONTyped(value?: ProductAggregationResourceArrayResponse | 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.instanceOfProductAggregationResourceArrayResponse = instanceOfProductAggregationResourceArrayResponse;
|
|
17
|
+
exports.ProductAggregationResourceArrayResponseFromJSON = ProductAggregationResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductAggregationResourceArrayResponseFromJSONTyped = ProductAggregationResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductAggregationResourceArrayResponseToJSON = ProductAggregationResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductAggregationResourceArrayResponseToJSONTyped = ProductAggregationResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductAggregationResource_1 = require("./ProductAggregationResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductAggregationResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductAggregationResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductAggregationResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductAggregationResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductAggregationResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductAggregationResource_1.ProductAggregationResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductAggregationResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductAggregationResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductAggregationResourceArrayResponseToJSONTyped(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(ProductAggregationResource_1.ProductAggregationResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -10,8 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
13
14
|
import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
|
|
14
15
|
import type { AssetResource } from './AssetResource';
|
|
16
|
+
import type { SEOResource } from './SEOResource';
|
|
15
17
|
/**
|
|
16
18
|
*
|
|
17
19
|
* @export
|
|
@@ -96,6 +98,18 @@ export interface ProductCategoryResource {
|
|
|
96
98
|
* @memberof ProductCategoryResource
|
|
97
99
|
*/
|
|
98
100
|
site: SiteLiteResource | null;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {Array<SEOResource>}
|
|
104
|
+
* @memberof ProductCategoryResource
|
|
105
|
+
*/
|
|
106
|
+
seo: Array<SEOResource> | null;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {Array<DescriptionResource>}
|
|
110
|
+
* @memberof ProductCategoryResource
|
|
111
|
+
*/
|
|
112
|
+
descriptions: Array<DescriptionResource> | null;
|
|
99
113
|
}
|
|
100
114
|
/**
|
|
101
115
|
* Check if a given object implements the ProductCategoryResource interface.
|
|
@@ -19,8 +19,10 @@ exports.ProductCategoryResourceFromJSONTyped = ProductCategoryResourceFromJSONTy
|
|
|
19
19
|
exports.ProductCategoryResourceToJSON = ProductCategoryResourceToJSON;
|
|
20
20
|
exports.ProductCategoryResourceToJSONTyped = ProductCategoryResourceToJSONTyped;
|
|
21
21
|
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
+
var DescriptionResource_1 = require("./DescriptionResource");
|
|
22
23
|
var ProductCategoryLiteResource_1 = require("./ProductCategoryLiteResource");
|
|
23
24
|
var AssetResource_1 = require("./AssetResource");
|
|
25
|
+
var SEOResource_1 = require("./SEOResource");
|
|
24
26
|
/**
|
|
25
27
|
* Check if a given object implements the ProductCategoryResource interface.
|
|
26
28
|
*/
|
|
@@ -45,6 +47,10 @@ function instanceOfProductCategoryResource(value) {
|
|
|
45
47
|
return false;
|
|
46
48
|
if (!('site' in value) || value['site'] === undefined)
|
|
47
49
|
return false;
|
|
50
|
+
if (!('seo' in value) || value['seo'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
53
|
+
return false;
|
|
48
54
|
return true;
|
|
49
55
|
}
|
|
50
56
|
function ProductCategoryResourceFromJSON(json) {
|
|
@@ -68,6 +74,8 @@ function ProductCategoryResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
74
|
'automationRules': json['automationRules'],
|
|
69
75
|
'parent': (0, ProductCategoryLiteResource_1.ProductCategoryLiteResourceFromJSON)(json['parent']),
|
|
70
76
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
77
|
+
'seo': (json['seo'] == null ? null : json['seo'].map(SEOResource_1.SEOResourceFromJSON)),
|
|
78
|
+
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
71
79
|
};
|
|
72
80
|
}
|
|
73
81
|
function ProductCategoryResourceToJSON(json) {
|
|
@@ -92,5 +100,7 @@ function ProductCategoryResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
92
100
|
'automationRules': value['automationRules'],
|
|
93
101
|
'parent': (0, ProductCategoryLiteResource_1.ProductCategoryLiteResourceToJSON)(value['parent']),
|
|
94
102
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
103
|
+
'seo': (value['seo'] == null ? null : value['seo'].map(SEOResource_1.SEOResourceToJSON)),
|
|
104
|
+
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
95
105
|
};
|
|
96
106
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 ProductRating: {
|
|
17
|
+
readonly _5: "5";
|
|
18
|
+
readonly _4: "4";
|
|
19
|
+
readonly _3: "3";
|
|
20
|
+
};
|
|
21
|
+
export type ProductRating = typeof ProductRating[keyof typeof ProductRating];
|
|
22
|
+
export declare function instanceOfProductRating(value: any): boolean;
|
|
23
|
+
export declare function ProductRatingFromJSON(json: any): ProductRating;
|
|
24
|
+
export declare function ProductRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRating;
|
|
25
|
+
export declare function ProductRatingToJSON(value?: ProductRating | null): any;
|
|
26
|
+
export declare function ProductRatingToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductRating;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.ProductRating = void 0;
|
|
17
|
+
exports.instanceOfProductRating = instanceOfProductRating;
|
|
18
|
+
exports.ProductRatingFromJSON = ProductRatingFromJSON;
|
|
19
|
+
exports.ProductRatingFromJSONTyped = ProductRatingFromJSONTyped;
|
|
20
|
+
exports.ProductRatingToJSON = ProductRatingToJSON;
|
|
21
|
+
exports.ProductRatingToJSONTyped = ProductRatingToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ProductRating = {
|
|
27
|
+
_5: '5',
|
|
28
|
+
_4: '4',
|
|
29
|
+
_3: '3'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfProductRating(value) {
|
|
32
|
+
for (var key in exports.ProductRating) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductRating, key)) {
|
|
34
|
+
if (exports.ProductRating[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function ProductRatingFromJSON(json) {
|
|
42
|
+
return ProductRatingFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ProductRatingFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function ProductRatingToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function ProductRatingToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|