@digital8/lighting-illusions-ts-sdk 0.0.631 → 0.0.633

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.
Files changed (65) hide show
  1. package/.openapi-generator/FILES +10 -12
  2. package/README.md +7 -8
  3. package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +2 -3
  4. package/dist/models/OverlayTemplateAssetFrontendResource.js +2 -3
  5. package/dist/models/OverlayTemplateAssetResource.d.ts +3 -3
  6. package/dist/models/OverlayTemplateAssetResource.js +3 -3
  7. package/dist/models/ProductCompareResource.d.ts +2 -2
  8. package/dist/models/ProductSearchResultResource.d.ts +6 -12
  9. package/dist/models/ProductSearchResultResource.js +4 -8
  10. package/dist/models/ProductStatus.d.ts +24 -0
  11. package/dist/models/ProductStatus.js +50 -0
  12. package/dist/models/SupplierFrontendResource.d.ts +8 -7
  13. package/dist/models/SupplierFrontendResource.js +9 -8
  14. package/dist/models/WishlistCheckResource.d.ts +32 -0
  15. package/dist/models/WishlistCheckResource.js +51 -0
  16. package/dist/models/WishlistCheckResourceArrayResponse.d.ts +33 -0
  17. package/dist/models/WishlistCheckResourceArrayResponse.js +50 -0
  18. package/dist/models/WishlistToggleResource.d.ts +38 -0
  19. package/dist/models/WishlistToggleResource.js +55 -0
  20. package/dist/models/WishlistToggleResourceArrayResponse.d.ts +33 -0
  21. package/dist/models/WishlistToggleResourceArrayResponse.js +50 -0
  22. package/dist/models/index.d.ts +5 -6
  23. package/dist/models/index.js +5 -6
  24. package/docs/OverlayTemplateAssetFrontendResource.md +1 -1
  25. package/docs/OverlayTemplateAssetResource.md +1 -1
  26. package/docs/ProductCompareResource.md +1 -1
  27. package/docs/ProductSearchResultResource.md +2 -4
  28. package/docs/{ProductAvailability.md → ProductStatus.md} +4 -4
  29. package/docs/SupplierFrontendResource.md +4 -4
  30. package/docs/{PaginatedCategoryFrontendResourceResponse.md → WishlistCheckResource.md} +6 -8
  31. package/docs/{CategoryFrontendResourceArrayResponse.md → WishlistCheckResourceArrayResponse.md} +5 -5
  32. package/docs/WishlistToggleResource.md +36 -0
  33. package/docs/{CategoryWithChildrenFrontendResourceArrayResponse.md → WishlistToggleResourceArrayResponse.md} +5 -5
  34. package/package.json +1 -1
  35. package/src/models/OverlayTemplateAssetFrontendResource.ts +4 -12
  36. package/src/models/OverlayTemplateAssetResource.ts +10 -10
  37. package/src/models/ProductCompareResource.ts +2 -2
  38. package/src/models/ProductSearchResultResource.ts +9 -18
  39. package/src/models/ProductStatus.ts +52 -0
  40. package/src/models/SupplierFrontendResource.ts +27 -20
  41. package/src/models/WishlistCheckResource.ts +66 -0
  42. package/src/models/WishlistCheckResourceArrayResponse.ts +73 -0
  43. package/src/models/WishlistToggleResource.ts +75 -0
  44. package/src/models/WishlistToggleResourceArrayResponse.ts +73 -0
  45. package/src/models/index.ts +5 -6
  46. package/dist/models/CategoryFrontendResource.d.ts +0 -70
  47. package/dist/models/CategoryFrontendResource.js +0 -73
  48. package/dist/models/CategoryFrontendResourceArrayResponse.d.ts +0 -33
  49. package/dist/models/CategoryFrontendResourceArrayResponse.js +0 -50
  50. package/dist/models/CategoryWithChildrenFrontendResource.d.ts +0 -39
  51. package/dist/models/CategoryWithChildrenFrontendResource.js +0 -56
  52. package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.d.ts +0 -33
  53. package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.js +0 -50
  54. package/dist/models/PaginatedCategoryFrontendResourceResponse.d.ts +0 -40
  55. package/dist/models/PaginatedCategoryFrontendResourceResponse.js +0 -57
  56. package/dist/models/ProductAvailability.d.ts +0 -26
  57. package/dist/models/ProductAvailability.js +0 -52
  58. package/docs/CategoryFrontendResource.md +0 -46
  59. package/docs/CategoryWithChildrenFrontendResource.md +0 -36
  60. package/src/models/CategoryFrontendResource.ts +0 -133
  61. package/src/models/CategoryFrontendResourceArrayResponse.ts +0 -73
  62. package/src/models/CategoryWithChildrenFrontendResource.ts +0 -83
  63. package/src/models/CategoryWithChildrenFrontendResourceArrayResponse.ts +0 -73
  64. package/src/models/PaginatedCategoryFrontendResourceResponse.ts +0 -90
  65. package/src/models/ProductAvailability.ts +0 -54
@@ -38,10 +38,6 @@ docs/CategoryAutomationConditionType.md
38
38
  docs/CategoryAutomationFieldType.md
39
39
  docs/CategoryAutomationRuleResource.md
40
40
  docs/CategoryAutomationRuleResourceArrayResponse.md
41
- docs/CategoryFrontendResource.md
42
- docs/CategoryFrontendResourceArrayResponse.md
43
- docs/CategoryWithChildrenFrontendResource.md
44
- docs/CategoryWithChildrenFrontendResourceArrayResponse.md
45
41
  docs/CouponDiscountType.md
46
42
  docs/DescriptionResource.md
47
43
  docs/DescriptionResourceArrayResponse.md
@@ -118,7 +114,6 @@ docs/PaginatedAttributeListResourceResponse.md
118
114
  docs/PaginatedAttributeLiteResourceResponse.md
119
115
  docs/PaginatedAttributeProductTypeRelationResourceResponse.md
120
116
  docs/PaginatedAttributeResourceResponse.md
121
- docs/PaginatedCategoryFrontendResourceResponse.md
122
117
  docs/PaginatedDocumentResourceResponse.md
123
118
  docs/PaginatedExternalApiLogListResourceResponse.md
124
119
  docs/PaginatedExternalApiLogResourceResponse.md
@@ -159,7 +154,6 @@ docs/PreviewAutomationRulesResourceArrayResponse.md
159
154
  docs/ProductAggregationResource.md
160
155
  docs/ProductAggregationResourceArrayResponse.md
161
156
  docs/ProductApi.md
162
- docs/ProductAvailability.md
163
157
  docs/ProductCategoryApi.md
164
158
  docs/ProductCategoryHierarchyResource.md
165
159
  docs/ProductCategoryHierarchyResourceArrayResponse.md
@@ -200,6 +194,7 @@ docs/ProductSearchResponseResourcePriceInfo.md
200
194
  docs/ProductSearchResultResource.md
201
195
  docs/ProductSearchResultResourceArrayResponse.md
202
196
  docs/ProductSortBy.md
197
+ docs/ProductStatus.md
203
198
  docs/ProductTypeApi.md
204
199
  docs/ProductTypeListResource.md
205
200
  docs/ProductTypeListResourceArrayResponse.md
@@ -280,6 +275,10 @@ docs/UpdateSiteNotificationRequest.md
280
275
  docs/UpdateSiteRequest.md
281
276
  docs/UpdateSupplierRequest.md
282
277
  docs/UpdateTagRequest.md
278
+ docs/WishlistCheckResource.md
279
+ docs/WishlistCheckResourceArrayResponse.md
280
+ docs/WishlistToggleResource.md
281
+ docs/WishlistToggleResourceArrayResponse.md
283
282
  package.json
284
283
  src/apis/AssetApi.ts
285
284
  src/apis/AttributeApi.ts
@@ -330,10 +329,6 @@ src/models/CategoryAutomationConditionType.ts
330
329
  src/models/CategoryAutomationFieldType.ts
331
330
  src/models/CategoryAutomationRuleResource.ts
332
331
  src/models/CategoryAutomationRuleResourceArrayResponse.ts
333
- src/models/CategoryFrontendResource.ts
334
- src/models/CategoryFrontendResourceArrayResponse.ts
335
- src/models/CategoryWithChildrenFrontendResource.ts
336
- src/models/CategoryWithChildrenFrontendResourceArrayResponse.ts
337
332
  src/models/CouponDiscountType.ts
338
333
  src/models/DescriptionResource.ts
339
334
  src/models/DescriptionResourceArrayResponse.ts
@@ -406,7 +401,6 @@ src/models/PaginatedAttributeListResourceResponse.ts
406
401
  src/models/PaginatedAttributeLiteResourceResponse.ts
407
402
  src/models/PaginatedAttributeProductTypeRelationResourceResponse.ts
408
403
  src/models/PaginatedAttributeResourceResponse.ts
409
- src/models/PaginatedCategoryFrontendResourceResponse.ts
410
404
  src/models/PaginatedDocumentResourceResponse.ts
411
405
  src/models/PaginatedExternalApiLogListResourceResponse.ts
412
406
  src/models/PaginatedExternalApiLogResourceResponse.ts
@@ -446,7 +440,6 @@ src/models/PreviewAutomationRulesResource.ts
446
440
  src/models/PreviewAutomationRulesResourceArrayResponse.ts
447
441
  src/models/ProductAggregationResource.ts
448
442
  src/models/ProductAggregationResourceArrayResponse.ts
449
- src/models/ProductAvailability.ts
450
443
  src/models/ProductCategoryHierarchyResource.ts
451
444
  src/models/ProductCategoryHierarchyResourceArrayResponse.ts
452
445
  src/models/ProductCategoryListResource.ts
@@ -485,6 +478,7 @@ src/models/ProductSearchResponseResourcePriceInfo.ts
485
478
  src/models/ProductSearchResultResource.ts
486
479
  src/models/ProductSearchResultResourceArrayResponse.ts
487
480
  src/models/ProductSortBy.ts
481
+ src/models/ProductStatus.ts
488
482
  src/models/ProductTypeListResource.ts
489
483
  src/models/ProductTypeListResourceArrayResponse.ts
490
484
  src/models/ProductTypeLiteResource.ts
@@ -561,6 +555,10 @@ src/models/UpdateSiteNotificationRequest.ts
561
555
  src/models/UpdateSiteRequest.ts
562
556
  src/models/UpdateSupplierRequest.ts
563
557
  src/models/UpdateTagRequest.ts
558
+ src/models/WishlistCheckResource.ts
559
+ src/models/WishlistCheckResourceArrayResponse.ts
560
+ src/models/WishlistToggleResource.ts
561
+ src/models/WishlistToggleResourceArrayResponse.ts
564
562
  src/models/index.ts
565
563
  src/runtime.ts
566
564
  tsconfig.json
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.631
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.633
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -192,10 +192,6 @@ All URIs are relative to *http://localhost/api*
192
192
  - [CategoryAutomationFieldType](docs/CategoryAutomationFieldType.md)
193
193
  - [CategoryAutomationRuleResource](docs/CategoryAutomationRuleResource.md)
194
194
  - [CategoryAutomationRuleResourceArrayResponse](docs/CategoryAutomationRuleResourceArrayResponse.md)
195
- - [CategoryFrontendResource](docs/CategoryFrontendResource.md)
196
- - [CategoryFrontendResourceArrayResponse](docs/CategoryFrontendResourceArrayResponse.md)
197
- - [CategoryWithChildrenFrontendResource](docs/CategoryWithChildrenFrontendResource.md)
198
- - [CategoryWithChildrenFrontendResourceArrayResponse](docs/CategoryWithChildrenFrontendResourceArrayResponse.md)
199
195
  - [CouponDiscountType](docs/CouponDiscountType.md)
200
196
  - [DescriptionResource](docs/DescriptionResource.md)
201
197
  - [DescriptionResourceArrayResponse](docs/DescriptionResourceArrayResponse.md)
@@ -268,7 +264,6 @@ All URIs are relative to *http://localhost/api*
268
264
  - [PaginatedAttributeLiteResourceResponse](docs/PaginatedAttributeLiteResourceResponse.md)
269
265
  - [PaginatedAttributeProductTypeRelationResourceResponse](docs/PaginatedAttributeProductTypeRelationResourceResponse.md)
270
266
  - [PaginatedAttributeResourceResponse](docs/PaginatedAttributeResourceResponse.md)
271
- - [PaginatedCategoryFrontendResourceResponse](docs/PaginatedCategoryFrontendResourceResponse.md)
272
267
  - [PaginatedDocumentResourceResponse](docs/PaginatedDocumentResourceResponse.md)
273
268
  - [PaginatedExternalApiLogListResourceResponse](docs/PaginatedExternalApiLogListResourceResponse.md)
274
269
  - [PaginatedExternalApiLogResourceResponse](docs/PaginatedExternalApiLogResourceResponse.md)
@@ -308,7 +303,6 @@ All URIs are relative to *http://localhost/api*
308
303
  - [PreviewAutomationRulesResourceArrayResponse](docs/PreviewAutomationRulesResourceArrayResponse.md)
309
304
  - [ProductAggregationResource](docs/ProductAggregationResource.md)
310
305
  - [ProductAggregationResourceArrayResponse](docs/ProductAggregationResourceArrayResponse.md)
311
- - [ProductAvailability](docs/ProductAvailability.md)
312
306
  - [ProductCategoryHierarchyResource](docs/ProductCategoryHierarchyResource.md)
313
307
  - [ProductCategoryHierarchyResourceArrayResponse](docs/ProductCategoryHierarchyResourceArrayResponse.md)
314
308
  - [ProductCategoryListResource](docs/ProductCategoryListResource.md)
@@ -347,6 +341,7 @@ All URIs are relative to *http://localhost/api*
347
341
  - [ProductSearchResultResource](docs/ProductSearchResultResource.md)
348
342
  - [ProductSearchResultResourceArrayResponse](docs/ProductSearchResultResourceArrayResponse.md)
349
343
  - [ProductSortBy](docs/ProductSortBy.md)
344
+ - [ProductStatus](docs/ProductStatus.md)
350
345
  - [ProductTypeListResource](docs/ProductTypeListResource.md)
351
346
  - [ProductTypeListResourceArrayResponse](docs/ProductTypeListResourceArrayResponse.md)
352
347
  - [ProductTypeLiteResource](docs/ProductTypeLiteResource.md)
@@ -423,6 +418,10 @@ All URIs are relative to *http://localhost/api*
423
418
  - [UpdateSiteRequest](docs/UpdateSiteRequest.md)
424
419
  - [UpdateSupplierRequest](docs/UpdateSupplierRequest.md)
425
420
  - [UpdateTagRequest](docs/UpdateTagRequest.md)
421
+ - [WishlistCheckResource](docs/WishlistCheckResource.md)
422
+ - [WishlistCheckResourceArrayResponse](docs/WishlistCheckResourceArrayResponse.md)
423
+ - [WishlistToggleResource](docs/WishlistToggleResource.md)
424
+ - [WishlistToggleResourceArrayResponse](docs/WishlistToggleResourceArrayResponse.md)
426
425
 
427
426
  ### Authorization
428
427
 
@@ -436,7 +435,7 @@ and is automatically generated by the
436
435
  [OpenAPI Generator](https://openapi-generator.tech) project:
437
436
 
438
437
  - API version: `1.0.0`
439
- - Package version: `0.0.631`
438
+ - Package version: `0.0.633`
440
439
  - Generator version: `7.19.0`
441
440
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
442
441
 
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { AssetLiteResource } from './AssetLiteResource';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -48,10 +47,10 @@ export interface OverlayTemplateAssetFrontendResource {
48
47
  verticalMargin: number;
49
48
  /**
50
49
  *
51
- * @type {AssetLiteResource}
50
+ * @type {Array<string>}
52
51
  * @memberof OverlayTemplateAssetFrontendResource
53
52
  */
54
- image: AssetLiteResource | null;
53
+ image: Array<string>;
55
54
  }
56
55
  /**
57
56
  * Check if a given object implements the OverlayTemplateAssetFrontendResource interface.
@@ -18,7 +18,6 @@ exports.OverlayTemplateAssetFrontendResourceFromJSON = OverlayTemplateAssetFront
18
18
  exports.OverlayTemplateAssetFrontendResourceFromJSONTyped = OverlayTemplateAssetFrontendResourceFromJSONTyped;
19
19
  exports.OverlayTemplateAssetFrontendResourceToJSON = OverlayTemplateAssetFrontendResourceToJSON;
20
20
  exports.OverlayTemplateAssetFrontendResourceToJSONTyped = OverlayTemplateAssetFrontendResourceToJSONTyped;
21
- var AssetLiteResource_1 = require("./AssetLiteResource");
22
21
  /**
23
22
  * Check if a given object implements the OverlayTemplateAssetFrontendResource interface.
24
23
  */
@@ -50,7 +49,7 @@ function OverlayTemplateAssetFrontendResourceFromJSONTyped(json, ignoreDiscrimin
50
49
  'padding': json['padding'],
51
50
  'horizontalMargin': json['horizontalMargin'],
52
51
  'verticalMargin': json['verticalMargin'],
53
- 'image': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['image']),
52
+ 'image': json['image'],
54
53
  };
55
54
  }
56
55
  function OverlayTemplateAssetFrontendResourceToJSON(json) {
@@ -67,6 +66,6 @@ function OverlayTemplateAssetFrontendResourceToJSONTyped(value, ignoreDiscrimina
67
66
  'padding': value['padding'],
68
67
  'horizontalMargin': value['horizontalMargin'],
69
68
  'verticalMargin': value['verticalMargin'],
70
- 'image': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['image']),
69
+ 'image': value['image'],
71
70
  };
72
71
  }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { AssetLiteResource } from './AssetLiteResource';
12
+ import type { AssetResource } from './AssetResource';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -24,10 +24,10 @@ export interface OverlayTemplateAssetResource {
24
24
  id: number;
25
25
  /**
26
26
  *
27
- * @type {AssetLiteResource}
27
+ * @type {AssetResource}
28
28
  * @memberof OverlayTemplateAssetResource
29
29
  */
30
- asset: AssetLiteResource | null;
30
+ asset: AssetResource | null;
31
31
  /**
32
32
  *
33
33
  * @type {string}
@@ -18,7 +18,7 @@ exports.OverlayTemplateAssetResourceFromJSON = OverlayTemplateAssetResourceFromJ
18
18
  exports.OverlayTemplateAssetResourceFromJSONTyped = OverlayTemplateAssetResourceFromJSONTyped;
19
19
  exports.OverlayTemplateAssetResourceToJSON = OverlayTemplateAssetResourceToJSON;
20
20
  exports.OverlayTemplateAssetResourceToJSONTyped = OverlayTemplateAssetResourceToJSONTyped;
21
- var AssetLiteResource_1 = require("./AssetLiteResource");
21
+ var AssetResource_1 = require("./AssetResource");
22
22
  /**
23
23
  * Check if a given object implements the OverlayTemplateAssetResource interface.
24
24
  */
@@ -46,7 +46,7 @@ function OverlayTemplateAssetResourceFromJSONTyped(json, ignoreDiscriminator) {
46
46
  }
47
47
  return {
48
48
  'id': json['id'],
49
- 'asset': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['asset']),
49
+ 'asset': (0, AssetResource_1.AssetResourceFromJSON)(json['asset']),
50
50
  'position': json['position'],
51
51
  'padding': json['padding'],
52
52
  'horizontalMargin': json['horizontalMargin'],
@@ -63,7 +63,7 @@ function OverlayTemplateAssetResourceToJSONTyped(value, ignoreDiscriminator) {
63
63
  }
64
64
  return {
65
65
  'id': value['id'],
66
- 'asset': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['asset']),
66
+ 'asset': (0, AssetResource_1.AssetResourceToJSON)(value['asset']),
67
67
  'position': value['position'],
68
68
  'padding': value['padding'],
69
69
  'horizontalMargin': value['horizontalMargin'],
@@ -78,10 +78,10 @@ export interface ProductCompareResource {
78
78
  salePrice: number;
79
79
  /**
80
80
  *
81
- * @type {string}
81
+ * @type {number}
82
82
  * @memberof ProductCompareResource
83
83
  */
84
- availability: string;
84
+ availability: number;
85
85
  /**
86
86
  *
87
87
  * @type {number}
@@ -75,6 +75,12 @@ export interface ProductSearchResultResource {
75
75
  * @memberof ProductSearchResultResource
76
76
  */
77
77
  labelDetails: Array<number>;
78
+ /**
79
+ *
80
+ * @type {Array<object>}
81
+ * @memberof ProductSearchResultResource
82
+ */
83
+ categories: Array<object>;
78
84
  /**
79
85
  *
80
86
  * @type {string}
@@ -105,18 +111,6 @@ export interface ProductSearchResultResource {
105
111
  * @memberof ProductSearchResultResource
106
112
  */
107
113
  wishlisted: boolean;
108
- /**
109
- *
110
- * @type {number}
111
- * @memberof ProductSearchResultResource
112
- */
113
- variationCount: number;
114
- /**
115
- *
116
- * @type {Array<object>}
117
- * @memberof ProductSearchResultResource
118
- */
119
- overlayAssets: Array<object>;
120
114
  }
121
115
  /**
122
116
  * Check if a given object implements the ProductSearchResultResource interface.
@@ -40,6 +40,8 @@ function instanceOfProductSearchResultResource(value) {
40
40
  return false;
41
41
  if (!('labelDetails' in value) || value['labelDetails'] === undefined)
42
42
  return false;
43
+ if (!('categories' in value) || value['categories'] === undefined)
44
+ return false;
43
45
  if (!('supplierName' in value) || value['supplierName'] === undefined)
44
46
  return false;
45
47
  if (!('supplierLogo' in value) || value['supplierLogo'] === undefined)
@@ -50,10 +52,6 @@ function instanceOfProductSearchResultResource(value) {
50
52
  return false;
51
53
  if (!('wishlisted' in value) || value['wishlisted'] === undefined)
52
54
  return false;
53
- if (!('variationCount' in value) || value['variationCount'] === undefined)
54
- return false;
55
- if (!('overlayAssets' in value) || value['overlayAssets'] === undefined)
56
- return false;
57
55
  return true;
58
56
  }
59
57
  function ProductSearchResultResourceFromJSON(json) {
@@ -74,13 +72,12 @@ function ProductSearchResultResourceFromJSONTyped(json, ignoreDiscriminator) {
74
72
  'thumbnail': json['thumbnail'],
75
73
  'averageRating': json['averageRating'] == null ? undefined : json['averageRating'],
76
74
  'labelDetails': json['labelDetails'],
75
+ 'categories': json['categories'],
77
76
  'supplierName': json['supplierName'],
78
77
  'supplierLogo': json['supplierLogo'],
79
78
  'supplierId': json['supplierId'],
80
79
  'availability': json['availability'],
81
80
  'wishlisted': json['wishlisted'],
82
- 'variationCount': json['variationCount'],
83
- 'overlayAssets': json['overlayAssets'],
84
81
  };
85
82
  }
86
83
  function ProductSearchResultResourceToJSON(json) {
@@ -102,12 +99,11 @@ function ProductSearchResultResourceToJSONTyped(value, ignoreDiscriminator) {
102
99
  'thumbnail': value['thumbnail'],
103
100
  'averageRating': value['averageRating'],
104
101
  'labelDetails': value['labelDetails'],
102
+ 'categories': value['categories'],
105
103
  'supplierName': value['supplierName'],
106
104
  'supplierLogo': value['supplierLogo'],
107
105
  'supplierId': value['supplierId'],
108
106
  'availability': value['availability'],
109
107
  'wishlisted': value['wishlisted'],
110
- 'variationCount': value['variationCount'],
111
- 'overlayAssets': value['overlayAssets'],
112
108
  };
113
109
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const ProductStatus: {
17
+ readonly InStock: "in_stock";
18
+ };
19
+ export type ProductStatus = typeof ProductStatus[keyof typeof ProductStatus];
20
+ export declare function instanceOfProductStatus(value: any): boolean;
21
+ export declare function ProductStatusFromJSON(json: any): ProductStatus;
22
+ export declare function ProductStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStatus;
23
+ export declare function ProductStatusToJSON(value?: ProductStatus | null): any;
24
+ export declare function ProductStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductStatus;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ProductStatus = void 0;
17
+ exports.instanceOfProductStatus = instanceOfProductStatus;
18
+ exports.ProductStatusFromJSON = ProductStatusFromJSON;
19
+ exports.ProductStatusFromJSONTyped = ProductStatusFromJSONTyped;
20
+ exports.ProductStatusToJSON = ProductStatusToJSON;
21
+ exports.ProductStatusToJSONTyped = ProductStatusToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.ProductStatus = {
27
+ InStock: 'in_stock'
28
+ };
29
+ function instanceOfProductStatus(value) {
30
+ for (var key in exports.ProductStatus) {
31
+ if (Object.prototype.hasOwnProperty.call(exports.ProductStatus, key)) {
32
+ if (exports.ProductStatus[key] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+ function ProductStatusFromJSON(json) {
40
+ return ProductStatusFromJSONTyped(json, false);
41
+ }
42
+ function ProductStatusFromJSONTyped(json, ignoreDiscriminator) {
43
+ return json;
44
+ }
45
+ function ProductStatusToJSON(value) {
46
+ return value;
47
+ }
48
+ function ProductStatusToJSONTyped(value, ignoreDiscriminator) {
49
+ return value;
50
+ }
@@ -9,8 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { AssetLiteResource } from './AssetLiteResource';
13
12
  import type { DescriptionResource } from './DescriptionResource';
13
+ import type { AssetResource } from './AssetResource';
14
+ import type { SEOResource } from './SEOResource';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -37,10 +38,10 @@ export interface SupplierFrontendResource {
37
38
  slug: string;
38
39
  /**
39
40
  *
40
- * @type {AssetLiteResource}
41
+ * @type {AssetResource}
41
42
  * @memberof SupplierFrontendResource
42
43
  */
43
- thumbnail: AssetLiteResource | null;
44
+ thumbnail: AssetResource | null;
44
45
  /**
45
46
  *
46
47
  * @type {number}
@@ -49,16 +50,16 @@ export interface SupplierFrontendResource {
49
50
  supplierEta: number;
50
51
  /**
51
52
  *
52
- * @type {object}
53
+ * @type {SEOResource}
53
54
  * @memberof SupplierFrontendResource
54
55
  */
55
- seo: object;
56
+ seo: SEOResource | null;
56
57
  /**
57
58
  *
58
- * @type {DescriptionResource}
59
+ * @type {Array<DescriptionResource>}
59
60
  * @memberof SupplierFrontendResource
60
61
  */
61
- description: DescriptionResource | null;
62
+ descriptions: Array<DescriptionResource> | null;
62
63
  }
63
64
  /**
64
65
  * Check if a given object implements the SupplierFrontendResource interface.
@@ -18,8 +18,9 @@ exports.SupplierFrontendResourceFromJSON = SupplierFrontendResourceFromJSON;
18
18
  exports.SupplierFrontendResourceFromJSONTyped = SupplierFrontendResourceFromJSONTyped;
19
19
  exports.SupplierFrontendResourceToJSON = SupplierFrontendResourceToJSON;
20
20
  exports.SupplierFrontendResourceToJSONTyped = SupplierFrontendResourceToJSONTyped;
21
- var AssetLiteResource_1 = require("./AssetLiteResource");
22
21
  var DescriptionResource_1 = require("./DescriptionResource");
22
+ var AssetResource_1 = require("./AssetResource");
23
+ var SEOResource_1 = require("./SEOResource");
23
24
  /**
24
25
  * Check if a given object implements the SupplierFrontendResource interface.
25
26
  */
@@ -36,7 +37,7 @@ function instanceOfSupplierFrontendResource(value) {
36
37
  return false;
37
38
  if (!('seo' in value) || value['seo'] === undefined)
38
39
  return false;
39
- if (!('description' in value) || value['description'] === undefined)
40
+ if (!('descriptions' in value) || value['descriptions'] === undefined)
40
41
  return false;
41
42
  return true;
42
43
  }
@@ -51,10 +52,10 @@ function SupplierFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
51
52
  'id': json['id'],
52
53
  'name': json['name'],
53
54
  'slug': json['slug'],
54
- 'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
55
+ 'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
55
56
  'supplierEta': json['supplierEta'],
56
- 'seo': json['seo'],
57
- 'description': (0, DescriptionResource_1.DescriptionResourceFromJSON)(json['description']),
57
+ 'seo': (0, SEOResource_1.SEOResourceFromJSON)(json['seo']),
58
+ 'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
58
59
  };
59
60
  }
60
61
  function SupplierFrontendResourceToJSON(json) {
@@ -69,9 +70,9 @@ function SupplierFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
69
70
  'id': value['id'],
70
71
  'name': value['name'],
71
72
  'slug': value['slug'],
72
- 'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
73
+ 'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
73
74
  'supplierEta': value['supplierEta'],
74
- 'seo': value['seo'],
75
- 'description': (0, DescriptionResource_1.DescriptionResourceToJSON)(value['description']),
75
+ 'seo': (0, SEOResource_1.SEOResourceToJSON)(value['seo']),
76
+ 'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
76
77
  };
77
78
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface WishlistCheckResource
16
+ */
17
+ export interface WishlistCheckResource {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof WishlistCheckResource
22
+ */
23
+ inWishlist: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the WishlistCheckResource interface.
27
+ */
28
+ export declare function instanceOfWishlistCheckResource(value: object): value is WishlistCheckResource;
29
+ export declare function WishlistCheckResourceFromJSON(json: any): WishlistCheckResource;
30
+ export declare function WishlistCheckResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistCheckResource;
31
+ export declare function WishlistCheckResourceToJSON(json: any): WishlistCheckResource;
32
+ export declare function WishlistCheckResourceToJSONTyped(value?: WishlistCheckResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfWishlistCheckResource = instanceOfWishlistCheckResource;
17
+ exports.WishlistCheckResourceFromJSON = WishlistCheckResourceFromJSON;
18
+ exports.WishlistCheckResourceFromJSONTyped = WishlistCheckResourceFromJSONTyped;
19
+ exports.WishlistCheckResourceToJSON = WishlistCheckResourceToJSON;
20
+ exports.WishlistCheckResourceToJSONTyped = WishlistCheckResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the WishlistCheckResource interface.
23
+ */
24
+ function instanceOfWishlistCheckResource(value) {
25
+ if (!('inWishlist' in value) || value['inWishlist'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function WishlistCheckResourceFromJSON(json) {
30
+ return WishlistCheckResourceFromJSONTyped(json, false);
31
+ }
32
+ function WishlistCheckResourceFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'inWishlist': json['in_wishlist'],
38
+ };
39
+ }
40
+ function WishlistCheckResourceToJSON(json) {
41
+ return WishlistCheckResourceToJSONTyped(json, false);
42
+ }
43
+ function WishlistCheckResourceToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'in_wishlist': value['inWishlist'],
50
+ };
51
+ }
@@ -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 { WishlistCheckResource } from './WishlistCheckResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WishlistCheckResourceArrayResponse
17
+ */
18
+ export interface WishlistCheckResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<WishlistCheckResource>}
22
+ * @memberof WishlistCheckResourceArrayResponse
23
+ */
24
+ data?: Array<WishlistCheckResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the WishlistCheckResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfWishlistCheckResourceArrayResponse(value: object): value is WishlistCheckResourceArrayResponse;
30
+ export declare function WishlistCheckResourceArrayResponseFromJSON(json: any): WishlistCheckResourceArrayResponse;
31
+ export declare function WishlistCheckResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistCheckResourceArrayResponse;
32
+ export declare function WishlistCheckResourceArrayResponseToJSON(json: any): WishlistCheckResourceArrayResponse;
33
+ export declare function WishlistCheckResourceArrayResponseToJSONTyped(value?: WishlistCheckResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;