@digital8/lighting-illusions-ts-sdk 0.0.531 → 0.0.533

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/.openapi-generator/FILES +66 -0
  2. package/README.md +42 -2
  3. package/dist/apis/ProductCategoryApi.d.ts +105 -0
  4. package/dist/apis/ProductCategoryApi.js +445 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/CategoryAutomationComparisonType.d.ts +29 -0
  8. package/dist/models/CategoryAutomationComparisonType.js +55 -0
  9. package/dist/models/CategoryAutomationConditionType.d.ts +25 -0
  10. package/dist/models/CategoryAutomationConditionType.js +51 -0
  11. package/dist/models/CategoryAutomationFieldType.d.ts +30 -0
  12. package/dist/models/CategoryAutomationFieldType.js +56 -0
  13. package/dist/models/CategoryAutomationRuleResource.d.ts +68 -0
  14. package/dist/models/CategoryAutomationRuleResource.js +67 -0
  15. package/dist/models/CategoryAutomationRuleResourceArrayResponse.d.ts +33 -0
  16. package/dist/models/CategoryAutomationRuleResourceArrayResponse.js +50 -0
  17. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  18. package/dist/models/ExternalApiLogResource.js +3 -1
  19. package/dist/models/GetAllProductCategoryRequest.d.ts +115 -0
  20. package/dist/models/GetAllProductCategoryRequest.js +94 -0
  21. package/dist/models/IndexProductCategoryRequest.d.ts +127 -0
  22. package/dist/models/IndexProductCategoryRequest.js +98 -0
  23. package/dist/models/PaginatedProductCategoryListResourceResponse.d.ts +40 -0
  24. package/dist/models/PaginatedProductCategoryListResourceResponse.js +57 -0
  25. package/dist/models/PaginatedProductCategoryResourceResponse.d.ts +40 -0
  26. package/dist/models/PaginatedProductCategoryResourceResponse.js +57 -0
  27. package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +40 -0
  28. package/dist/models/PaginatedProductSearchResultResourceResponse.js +57 -0
  29. package/dist/models/ProductAggregationResource.d.ts +50 -0
  30. package/dist/models/ProductAggregationResource.js +63 -0
  31. package/dist/models/ProductAggregationResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/ProductAggregationResourceArrayResponse.js +50 -0
  33. package/dist/models/ProductCategoryHierarchyResource.d.ts +62 -0
  34. package/dist/models/ProductCategoryHierarchyResource.js +69 -0
  35. package/dist/models/ProductCategoryHierarchyResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/ProductCategoryHierarchyResourceArrayResponse.js +50 -0
  37. package/dist/models/ProductCategoryListResource.d.ts +75 -0
  38. package/dist/models/ProductCategoryListResource.js +78 -0
  39. package/dist/models/ProductCategoryListResourceArrayResponse.d.ts +33 -0
  40. package/dist/models/ProductCategoryListResourceArrayResponse.js +50 -0
  41. package/dist/models/ProductCategoryLiteResource.d.ts +38 -0
  42. package/dist/models/ProductCategoryLiteResource.js +53 -0
  43. package/dist/models/ProductCategoryLiteResourceArrayResponse.d.ts +33 -0
  44. package/dist/models/ProductCategoryLiteResourceArrayResponse.js +50 -0
  45. package/dist/models/ProductCategoryResource.d.ts +107 -0
  46. package/dist/models/ProductCategoryResource.js +96 -0
  47. package/dist/models/ProductCategoryResourceArrayResponse.d.ts +33 -0
  48. package/dist/models/ProductCategoryResourceArrayResponse.js +50 -0
  49. package/dist/models/ProductRating.d.ts +26 -0
  50. package/dist/models/ProductRating.js +52 -0
  51. package/dist/models/ProductSearchResponseResource.d.ts +54 -0
  52. package/dist/models/ProductSearchResponseResource.js +67 -0
  53. package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +33 -0
  54. package/dist/models/ProductSearchResponseResourceArrayResponse.js +50 -0
  55. package/dist/models/ProductSearchResponseResourceMeta.d.ts +50 -0
  56. package/dist/models/ProductSearchResponseResourceMeta.js +63 -0
  57. package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +50 -0
  58. package/dist/models/ProductSearchResponseResourcePriceInfo.js +63 -0
  59. package/dist/models/ProductSearchResultResource.d.ts +116 -0
  60. package/dist/models/ProductSearchResultResource.js +105 -0
  61. package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +33 -0
  62. package/dist/models/ProductSearchResultResourceArrayResponse.js +50 -0
  63. package/dist/models/ProductSortBy.d.ts +32 -0
  64. package/dist/models/ProductSortBy.js +58 -0
  65. package/dist/models/ProductStatus.d.ts +24 -0
  66. package/dist/models/ProductStatus.js +50 -0
  67. package/dist/models/StoreProductCategoryRequest.d.ts +113 -0
  68. package/dist/models/StoreProductCategoryRequest.js +94 -0
  69. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +87 -0
  70. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +87 -0
  71. package/dist/models/UpdateProductCategoryRequest.d.ts +113 -0
  72. package/dist/models/UpdateProductCategoryRequest.js +82 -0
  73. package/dist/models/index.d.ts +32 -0
  74. package/dist/models/index.js +32 -0
  75. package/docs/CategoryAutomationComparisonType.md +32 -0
  76. package/docs/CategoryAutomationConditionType.md +32 -0
  77. package/docs/CategoryAutomationFieldType.md +32 -0
  78. package/docs/CategoryAutomationRuleResource.md +46 -0
  79. package/docs/CategoryAutomationRuleResourceArrayResponse.md +34 -0
  80. package/docs/GetAllProductCategoryRequest.md +52 -0
  81. package/docs/IndexProductCategoryRequest.md +56 -0
  82. package/docs/PaginatedProductCategoryListResourceResponse.md +36 -0
  83. package/docs/PaginatedProductCategoryResourceResponse.md +36 -0
  84. package/docs/PaginatedProductSearchResultResourceResponse.md +36 -0
  85. package/docs/ProductAggregationResource.md +40 -0
  86. package/docs/ProductAggregationResourceArrayResponse.md +34 -0
  87. package/docs/ProductCategoryApi.md +534 -0
  88. package/docs/ProductCategoryHierarchyResource.md +44 -0
  89. package/docs/ProductCategoryHierarchyResourceArrayResponse.md +34 -0
  90. package/docs/ProductCategoryListResource.md +48 -0
  91. package/docs/ProductCategoryListResourceArrayResponse.md +34 -0
  92. package/docs/ProductCategoryLiteResource.md +36 -0
  93. package/docs/ProductCategoryLiteResourceArrayResponse.md +34 -0
  94. package/docs/ProductCategoryResource.md +58 -0
  95. package/docs/ProductCategoryResourceArrayResponse.md +34 -0
  96. package/docs/ProductRating.md +32 -0
  97. package/docs/ProductSearchResponseResource.md +40 -0
  98. package/docs/ProductSearchResponseResourceArrayResponse.md +34 -0
  99. package/docs/ProductSearchResponseResourceMeta.md +40 -0
  100. package/docs/ProductSearchResponseResourcePriceInfo.md +40 -0
  101. package/docs/ProductSearchResultResource.md +62 -0
  102. package/docs/ProductSearchResultResourceArrayResponse.md +34 -0
  103. package/docs/ProductSortBy.md +32 -0
  104. package/docs/ProductStatus.md +32 -0
  105. package/docs/StoreProductCategoryRequest.md +58 -0
  106. package/docs/StoreProductCategoryRequestAutomationRulesInner.md +44 -0
  107. package/docs/UpdateProductCategoryRequest.md +58 -0
  108. package/package.json +1 -1
  109. package/src/apis/ProductCategoryApi.ts +363 -0
  110. package/src/apis/index.ts +1 -0
  111. package/src/models/CategoryAutomationComparisonType.ts +57 -0
  112. package/src/models/CategoryAutomationConditionType.ts +53 -0
  113. package/src/models/CategoryAutomationFieldType.ts +58 -0
  114. package/src/models/CategoryAutomationRuleResource.ts +116 -0
  115. package/src/models/CategoryAutomationRuleResourceArrayResponse.ts +73 -0
  116. package/src/models/ExternalApiLogResource.ts +3 -2
  117. package/src/models/GetAllProductCategoryRequest.ts +171 -0
  118. package/src/models/IndexProductCategoryRequest.ts +187 -0
  119. package/src/models/PaginatedProductCategoryListResourceResponse.ts +90 -0
  120. package/src/models/PaginatedProductCategoryResourceResponse.ts +90 -0
  121. package/src/models/PaginatedProductSearchResultResourceResponse.ts +90 -0
  122. package/src/models/ProductAggregationResource.ts +93 -0
  123. package/src/models/ProductAggregationResourceArrayResponse.ts +73 -0
  124. package/src/models/ProductCategoryHierarchyResource.ts +110 -0
  125. package/src/models/ProductCategoryHierarchyResourceArrayResponse.ts +73 -0
  126. package/src/models/ProductCategoryListResource.ts +136 -0
  127. package/src/models/ProductCategoryListResourceArrayResponse.ts +73 -0
  128. package/src/models/ProductCategoryLiteResource.ts +74 -0
  129. package/src/models/ProductCategoryLiteResourceArrayResponse.ts +73 -0
  130. package/src/models/ProductCategoryResource.ts +193 -0
  131. package/src/models/ProductCategoryResourceArrayResponse.ts +73 -0
  132. package/src/models/ProductRating.ts +54 -0
  133. package/src/models/ProductSearchResponseResource.ts +122 -0
  134. package/src/models/ProductSearchResponseResourceArrayResponse.ts +73 -0
  135. package/src/models/ProductSearchResponseResourceMeta.ts +93 -0
  136. package/src/models/ProductSearchResponseResourcePriceInfo.ts +93 -0
  137. package/src/models/ProductSearchResultResource.ts +191 -0
  138. package/src/models/ProductSearchResultResourceArrayResponse.ts +73 -0
  139. package/src/models/ProductSortBy.ts +60 -0
  140. package/src/models/ProductStatus.ts +52 -0
  141. package/src/models/StoreProductCategoryRequest.ts +186 -0
  142. package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +136 -0
  143. package/src/models/UpdateProductCategoryRequest.ts +180 -0
  144. package/src/models/index.ts +32 -0
@@ -0,0 +1,96 @@
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.instanceOfProductCategoryResource = instanceOfProductCategoryResource;
17
+ exports.ProductCategoryResourceFromJSON = ProductCategoryResourceFromJSON;
18
+ exports.ProductCategoryResourceFromJSONTyped = ProductCategoryResourceFromJSONTyped;
19
+ exports.ProductCategoryResourceToJSON = ProductCategoryResourceToJSON;
20
+ exports.ProductCategoryResourceToJSONTyped = ProductCategoryResourceToJSONTyped;
21
+ var SiteLiteResource_1 = require("./SiteLiteResource");
22
+ var ProductCategoryLiteResource_1 = require("./ProductCategoryLiteResource");
23
+ var AssetResource_1 = require("./AssetResource");
24
+ /**
25
+ * Check if a given object implements the ProductCategoryResource interface.
26
+ */
27
+ function instanceOfProductCategoryResource(value) {
28
+ if (!('siteId' in value) || value['siteId'] === undefined)
29
+ return false;
30
+ if (!('name' in value) || value['name'] === undefined)
31
+ return false;
32
+ if (!('slug' in value) || value['slug'] === undefined)
33
+ return false;
34
+ if (!('isDisabled' in value) || value['isDisabled'] === undefined)
35
+ return false;
36
+ if (!('isAutomated' in value) || value['isAutomated'] === undefined)
37
+ return false;
38
+ if (!('index' in value) || value['index'] === undefined)
39
+ return false;
40
+ if (!('thumbnail' in value) || value['thumbnail'] === undefined)
41
+ return false;
42
+ if (!('automationRules' in value) || value['automationRules'] === undefined)
43
+ return false;
44
+ if (!('parent' in value) || value['parent'] === undefined)
45
+ return false;
46
+ if (!('site' in value) || value['site'] === undefined)
47
+ return false;
48
+ return true;
49
+ }
50
+ function ProductCategoryResourceFromJSON(json) {
51
+ return ProductCategoryResourceFromJSONTyped(json, false);
52
+ }
53
+ function ProductCategoryResourceFromJSONTyped(json, ignoreDiscriminator) {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+ 'id': json['id'] == null ? undefined : json['id'],
59
+ 'siteId': json['siteId'],
60
+ 'name': json['name'],
61
+ 'slug': json['slug'],
62
+ 'parentId': json['parentId'] == null ? undefined : json['parentId'],
63
+ 'isDisabled': json['isDisabled'],
64
+ 'isAutomated': json['isAutomated'],
65
+ 'index': json['index'],
66
+ 'automatedConditionType': json['automatedConditionType'] == null ? undefined : json['automatedConditionType'],
67
+ 'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
68
+ 'automationRules': json['automationRules'],
69
+ 'parent': (0, ProductCategoryLiteResource_1.ProductCategoryLiteResourceFromJSON)(json['parent']),
70
+ 'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
71
+ };
72
+ }
73
+ function ProductCategoryResourceToJSON(json) {
74
+ return ProductCategoryResourceToJSONTyped(json, false);
75
+ }
76
+ function ProductCategoryResourceToJSONTyped(value, ignoreDiscriminator) {
77
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+ return {
82
+ 'id': value['id'],
83
+ 'siteId': value['siteId'],
84
+ 'name': value['name'],
85
+ 'slug': value['slug'],
86
+ 'parentId': value['parentId'],
87
+ 'isDisabled': value['isDisabled'],
88
+ 'isAutomated': value['isAutomated'],
89
+ 'index': value['index'],
90
+ 'automatedConditionType': value['automatedConditionType'],
91
+ 'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
92
+ 'automationRules': value['automationRules'],
93
+ 'parent': (0, ProductCategoryLiteResource_1.ProductCategoryLiteResourceToJSON)(value['parent']),
94
+ 'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
95
+ };
96
+ }
@@ -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 { ProductCategoryResource } from './ProductCategoryResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductCategoryResourceArrayResponse
17
+ */
18
+ export interface ProductCategoryResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ProductCategoryResource>}
22
+ * @memberof ProductCategoryResourceArrayResponse
23
+ */
24
+ data?: Array<ProductCategoryResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ProductCategoryResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfProductCategoryResourceArrayResponse(value: object): value is ProductCategoryResourceArrayResponse;
30
+ export declare function ProductCategoryResourceArrayResponseFromJSON(json: any): ProductCategoryResourceArrayResponse;
31
+ export declare function ProductCategoryResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryResourceArrayResponse;
32
+ export declare function ProductCategoryResourceArrayResponseToJSON(json: any): ProductCategoryResourceArrayResponse;
33
+ export declare function ProductCategoryResourceArrayResponseToJSONTyped(value?: ProductCategoryResourceArrayResponse | 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.instanceOfProductCategoryResourceArrayResponse = instanceOfProductCategoryResourceArrayResponse;
17
+ exports.ProductCategoryResourceArrayResponseFromJSON = ProductCategoryResourceArrayResponseFromJSON;
18
+ exports.ProductCategoryResourceArrayResponseFromJSONTyped = ProductCategoryResourceArrayResponseFromJSONTyped;
19
+ exports.ProductCategoryResourceArrayResponseToJSON = ProductCategoryResourceArrayResponseToJSON;
20
+ exports.ProductCategoryResourceArrayResponseToJSONTyped = ProductCategoryResourceArrayResponseToJSONTyped;
21
+ var ProductCategoryResource_1 = require("./ProductCategoryResource");
22
+ /**
23
+ * Check if a given object implements the ProductCategoryResourceArrayResponse interface.
24
+ */
25
+ function instanceOfProductCategoryResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function ProductCategoryResourceArrayResponseFromJSON(json) {
29
+ return ProductCategoryResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function ProductCategoryResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(ProductCategoryResource_1.ProductCategoryResourceFromJSON)),
37
+ };
38
+ }
39
+ function ProductCategoryResourceArrayResponseToJSON(json) {
40
+ return ProductCategoryResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function ProductCategoryResourceArrayResponseToJSONTyped(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(ProductCategoryResource_1.ProductCategoryResourceToJSON)),
49
+ };
50
+ }
@@ -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
+ }
@@ -0,0 +1,54 @@
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
+ import type { ProductSearchResponseResourceMeta } from './ProductSearchResponseResourceMeta';
14
+ import type { ProductAggregationResource } from './ProductAggregationResource';
15
+ import type { ProductSearchResponseResourcePriceInfo } from './ProductSearchResponseResourcePriceInfo';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ProductSearchResponseResource
20
+ */
21
+ export interface ProductSearchResponseResource {
22
+ /**
23
+ *
24
+ * @type {Array<ProductSearchResultResource>}
25
+ * @memberof ProductSearchResponseResource
26
+ */
27
+ data: Array<ProductSearchResultResource>;
28
+ /**
29
+ *
30
+ * @type {ProductSearchResponseResourceMeta}
31
+ * @memberof ProductSearchResponseResource
32
+ */
33
+ meta: ProductSearchResponseResourceMeta;
34
+ /**
35
+ *
36
+ * @type {ProductAggregationResource}
37
+ * @memberof ProductSearchResponseResource
38
+ */
39
+ aggregations: ProductAggregationResource;
40
+ /**
41
+ *
42
+ * @type {ProductSearchResponseResourcePriceInfo}
43
+ * @memberof ProductSearchResponseResource
44
+ */
45
+ priceInfo: ProductSearchResponseResourcePriceInfo;
46
+ }
47
+ /**
48
+ * Check if a given object implements the ProductSearchResponseResource interface.
49
+ */
50
+ export declare function instanceOfProductSearchResponseResource(value: object): value is ProductSearchResponseResource;
51
+ export declare function ProductSearchResponseResourceFromJSON(json: any): ProductSearchResponseResource;
52
+ export declare function ProductSearchResponseResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResponseResource;
53
+ export declare function ProductSearchResponseResourceToJSON(json: any): ProductSearchResponseResource;
54
+ export declare function ProductSearchResponseResourceToJSONTyped(value?: ProductSearchResponseResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.instanceOfProductSearchResponseResource = instanceOfProductSearchResponseResource;
17
+ exports.ProductSearchResponseResourceFromJSON = ProductSearchResponseResourceFromJSON;
18
+ exports.ProductSearchResponseResourceFromJSONTyped = ProductSearchResponseResourceFromJSONTyped;
19
+ exports.ProductSearchResponseResourceToJSON = ProductSearchResponseResourceToJSON;
20
+ exports.ProductSearchResponseResourceToJSONTyped = ProductSearchResponseResourceToJSONTyped;
21
+ var ProductSearchResultResource_1 = require("./ProductSearchResultResource");
22
+ var ProductSearchResponseResourceMeta_1 = require("./ProductSearchResponseResourceMeta");
23
+ var ProductAggregationResource_1 = require("./ProductAggregationResource");
24
+ var ProductSearchResponseResourcePriceInfo_1 = require("./ProductSearchResponseResourcePriceInfo");
25
+ /**
26
+ * Check if a given object implements the ProductSearchResponseResource interface.
27
+ */
28
+ function instanceOfProductSearchResponseResource(value) {
29
+ if (!('data' in value) || value['data'] === undefined)
30
+ return false;
31
+ if (!('meta' in value) || value['meta'] === undefined)
32
+ return false;
33
+ if (!('aggregations' in value) || value['aggregations'] === undefined)
34
+ return false;
35
+ if (!('priceInfo' in value) || value['priceInfo'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function ProductSearchResponseResourceFromJSON(json) {
40
+ return ProductSearchResponseResourceFromJSONTyped(json, false);
41
+ }
42
+ function ProductSearchResponseResourceFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'data': (json['data'].map(ProductSearchResultResource_1.ProductSearchResultResourceFromJSON)),
48
+ 'meta': (0, ProductSearchResponseResourceMeta_1.ProductSearchResponseResourceMetaFromJSON)(json['meta']),
49
+ 'aggregations': (0, ProductAggregationResource_1.ProductAggregationResourceFromJSON)(json['aggregations']),
50
+ 'priceInfo': (0, ProductSearchResponseResourcePriceInfo_1.ProductSearchResponseResourcePriceInfoFromJSON)(json['priceInfo']),
51
+ };
52
+ }
53
+ function ProductSearchResponseResourceToJSON(json) {
54
+ return ProductSearchResponseResourceToJSONTyped(json, false);
55
+ }
56
+ function ProductSearchResponseResourceToJSONTyped(value, ignoreDiscriminator) {
57
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'data': (value['data'].map(ProductSearchResultResource_1.ProductSearchResultResourceToJSON)),
63
+ 'meta': (0, ProductSearchResponseResourceMeta_1.ProductSearchResponseResourceMetaToJSON)(value['meta']),
64
+ 'aggregations': (0, ProductAggregationResource_1.ProductAggregationResourceToJSON)(value['aggregations']),
65
+ 'priceInfo': (0, ProductSearchResponseResourcePriceInfo_1.ProductSearchResponseResourcePriceInfoToJSON)(value['priceInfo']),
66
+ };
67
+ }
@@ -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 { ProductSearchResponseResource } from './ProductSearchResponseResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductSearchResponseResourceArrayResponse
17
+ */
18
+ export interface ProductSearchResponseResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ProductSearchResponseResource>}
22
+ * @memberof ProductSearchResponseResourceArrayResponse
23
+ */
24
+ data?: Array<ProductSearchResponseResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ProductSearchResponseResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfProductSearchResponseResourceArrayResponse(value: object): value is ProductSearchResponseResourceArrayResponse;
30
+ export declare function ProductSearchResponseResourceArrayResponseFromJSON(json: any): ProductSearchResponseResourceArrayResponse;
31
+ export declare function ProductSearchResponseResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResponseResourceArrayResponse;
32
+ export declare function ProductSearchResponseResourceArrayResponseToJSON(json: any): ProductSearchResponseResourceArrayResponse;
33
+ export declare function ProductSearchResponseResourceArrayResponseToJSONTyped(value?: ProductSearchResponseResourceArrayResponse | 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.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;