@digital8/lighting-illusions-ts-sdk 0.0.523 → 0.0.524

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