@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,98 @@
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.IndexProductCategoryRequestRelatedTypeEnum = exports.IndexProductCategoryRequestSortDirectionEnum = exports.IndexProductCategoryRequestSortByEnum = void 0;
17
+ exports.instanceOfIndexProductCategoryRequest = instanceOfIndexProductCategoryRequest;
18
+ exports.IndexProductCategoryRequestFromJSON = IndexProductCategoryRequestFromJSON;
19
+ exports.IndexProductCategoryRequestFromJSONTyped = IndexProductCategoryRequestFromJSONTyped;
20
+ exports.IndexProductCategoryRequestToJSON = IndexProductCategoryRequestToJSON;
21
+ exports.IndexProductCategoryRequestToJSONTyped = IndexProductCategoryRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.IndexProductCategoryRequestSortByEnum = {
26
+ Id: 'id',
27
+ Name: 'name',
28
+ Slug: 'slug',
29
+ Index: 'index',
30
+ IsDisabled: 'is_disabled',
31
+ IsAutomated: 'is_automated',
32
+ CreatedAt: 'created_at',
33
+ UpdatedAt: 'updated_at'
34
+ };
35
+ /**
36
+ * @export
37
+ */
38
+ exports.IndexProductCategoryRequestSortDirectionEnum = {
39
+ Asc: 'asc',
40
+ Desc: 'desc'
41
+ };
42
+ /**
43
+ * @export
44
+ */
45
+ exports.IndexProductCategoryRequestRelatedTypeEnum = {
46
+ Product: 'product'
47
+ };
48
+ /**
49
+ * Check if a given object implements the IndexProductCategoryRequest interface.
50
+ */
51
+ function instanceOfIndexProductCategoryRequest(value) {
52
+ return true;
53
+ }
54
+ function IndexProductCategoryRequestFromJSON(json) {
55
+ return IndexProductCategoryRequestFromJSONTyped(json, false);
56
+ }
57
+ function IndexProductCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+ 'search': json['search'] == null ? undefined : json['search'],
63
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
64
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
65
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
66
+ 'page': json['page'] == null ? undefined : json['page'],
67
+ 'siteId': json['site_id'] == null ? undefined : json['site_id'],
68
+ 'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
69
+ 'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
70
+ 'isAutomated': json['is_automated'] == null ? undefined : json['is_automated'],
71
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
72
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
73
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
74
+ };
75
+ }
76
+ function IndexProductCategoryRequestToJSON(json) {
77
+ return IndexProductCategoryRequestToJSONTyped(json, false);
78
+ }
79
+ function IndexProductCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
80
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+ return {
85
+ 'search': value['search'],
86
+ 'sortBy': value['sortBy'],
87
+ 'sortDirection': value['sortDirection'],
88
+ 'per_page': value['perPage'],
89
+ 'page': value['page'],
90
+ 'site_id': value['siteId'],
91
+ 'parent_id': value['parentId'],
92
+ 'is_disabled': value['isDisabled'],
93
+ 'is_automated': value['isAutomated'],
94
+ 'related_id': value['relatedId'],
95
+ 'related_type': value['relatedType'],
96
+ 'includes_relations': value['includesRelations'],
97
+ };
98
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ProductCategoryListResource } from './ProductCategoryListResource';
13
+ import type { PagingMetadata } from './PagingMetadata';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedProductCategoryListResourceResponse
18
+ */
19
+ export interface PaginatedProductCategoryListResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<ProductCategoryListResource>}
23
+ * @memberof PaginatedProductCategoryListResourceResponse
24
+ */
25
+ data: Array<ProductCategoryListResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedProductCategoryListResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedProductCategoryListResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedProductCategoryListResourceResponse(value: object): value is PaginatedProductCategoryListResourceResponse;
37
+ export declare function PaginatedProductCategoryListResourceResponseFromJSON(json: any): PaginatedProductCategoryListResourceResponse;
38
+ export declare function PaginatedProductCategoryListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductCategoryListResourceResponse;
39
+ export declare function PaginatedProductCategoryListResourceResponseToJSON(json: any): PaginatedProductCategoryListResourceResponse;
40
+ export declare function PaginatedProductCategoryListResourceResponseToJSONTyped(value?: PaginatedProductCategoryListResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPaginatedProductCategoryListResourceResponse = instanceOfPaginatedProductCategoryListResourceResponse;
17
+ exports.PaginatedProductCategoryListResourceResponseFromJSON = PaginatedProductCategoryListResourceResponseFromJSON;
18
+ exports.PaginatedProductCategoryListResourceResponseFromJSONTyped = PaginatedProductCategoryListResourceResponseFromJSONTyped;
19
+ exports.PaginatedProductCategoryListResourceResponseToJSON = PaginatedProductCategoryListResourceResponseToJSON;
20
+ exports.PaginatedProductCategoryListResourceResponseToJSONTyped = PaginatedProductCategoryListResourceResponseToJSONTyped;
21
+ var ProductCategoryListResource_1 = require("./ProductCategoryListResource");
22
+ var PagingMetadata_1 = require("./PagingMetadata");
23
+ /**
24
+ * Check if a given object implements the PaginatedProductCategoryListResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedProductCategoryListResourceResponse(value) {
27
+ if (!('data' in value) || value['data'] === undefined)
28
+ return false;
29
+ if (!('meta' in value) || value['meta'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedProductCategoryListResourceResponseFromJSON(json) {
34
+ return PaginatedProductCategoryListResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedProductCategoryListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(ProductCategoryListResource_1.ProductCategoryListResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedProductCategoryListResourceResponseToJSON(json) {
46
+ return PaginatedProductCategoryListResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedProductCategoryListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(ProductCategoryListResource_1.ProductCategoryListResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PagingMetadata } from './PagingMetadata';
13
+ import type { ProductCategoryResource } from './ProductCategoryResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedProductCategoryResourceResponse
18
+ */
19
+ export interface PaginatedProductCategoryResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<ProductCategoryResource>}
23
+ * @memberof PaginatedProductCategoryResourceResponse
24
+ */
25
+ data: Array<ProductCategoryResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedProductCategoryResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedProductCategoryResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedProductCategoryResourceResponse(value: object): value is PaginatedProductCategoryResourceResponse;
37
+ export declare function PaginatedProductCategoryResourceResponseFromJSON(json: any): PaginatedProductCategoryResourceResponse;
38
+ export declare function PaginatedProductCategoryResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductCategoryResourceResponse;
39
+ export declare function PaginatedProductCategoryResourceResponseToJSON(json: any): PaginatedProductCategoryResourceResponse;
40
+ export declare function PaginatedProductCategoryResourceResponseToJSONTyped(value?: PaginatedProductCategoryResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPaginatedProductCategoryResourceResponse = instanceOfPaginatedProductCategoryResourceResponse;
17
+ exports.PaginatedProductCategoryResourceResponseFromJSON = PaginatedProductCategoryResourceResponseFromJSON;
18
+ exports.PaginatedProductCategoryResourceResponseFromJSONTyped = PaginatedProductCategoryResourceResponseFromJSONTyped;
19
+ exports.PaginatedProductCategoryResourceResponseToJSON = PaginatedProductCategoryResourceResponseToJSON;
20
+ exports.PaginatedProductCategoryResourceResponseToJSONTyped = PaginatedProductCategoryResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var ProductCategoryResource_1 = require("./ProductCategoryResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedProductCategoryResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedProductCategoryResourceResponse(value) {
27
+ if (!('data' in value) || value['data'] === undefined)
28
+ return false;
29
+ if (!('meta' in value) || value['meta'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedProductCategoryResourceResponseFromJSON(json) {
34
+ return PaginatedProductCategoryResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedProductCategoryResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(ProductCategoryResource_1.ProductCategoryResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedProductCategoryResourceResponseToJSON(json) {
46
+ return PaginatedProductCategoryResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedProductCategoryResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(ProductCategoryResource_1.ProductCategoryResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PagingMetadata } from './PagingMetadata';
13
+ import type { ProductSearchResultResource } from './ProductSearchResultResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedProductSearchResultResourceResponse
18
+ */
19
+ export interface PaginatedProductSearchResultResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<ProductSearchResultResource>}
23
+ * @memberof PaginatedProductSearchResultResourceResponse
24
+ */
25
+ data: Array<ProductSearchResultResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedProductSearchResultResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedProductSearchResultResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedProductSearchResultResourceResponse(value: object): value is PaginatedProductSearchResultResourceResponse;
37
+ export declare function PaginatedProductSearchResultResourceResponseFromJSON(json: any): PaginatedProductSearchResultResourceResponse;
38
+ export declare function PaginatedProductSearchResultResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductSearchResultResourceResponse;
39
+ export declare function PaginatedProductSearchResultResourceResponseToJSON(json: any): PaginatedProductSearchResultResourceResponse;
40
+ export declare function PaginatedProductSearchResultResourceResponseToJSONTyped(value?: PaginatedProductSearchResultResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPaginatedProductSearchResultResourceResponse = instanceOfPaginatedProductSearchResultResourceResponse;
17
+ exports.PaginatedProductSearchResultResourceResponseFromJSON = PaginatedProductSearchResultResourceResponseFromJSON;
18
+ exports.PaginatedProductSearchResultResourceResponseFromJSONTyped = PaginatedProductSearchResultResourceResponseFromJSONTyped;
19
+ exports.PaginatedProductSearchResultResourceResponseToJSON = PaginatedProductSearchResultResourceResponseToJSON;
20
+ exports.PaginatedProductSearchResultResourceResponseToJSONTyped = PaginatedProductSearchResultResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var ProductSearchResultResource_1 = require("./ProductSearchResultResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedProductSearchResultResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedProductSearchResultResourceResponse(value) {
27
+ if (!('data' in value) || value['data'] === undefined)
28
+ return false;
29
+ if (!('meta' in value) || value['meta'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedProductSearchResultResourceResponseFromJSON(json) {
34
+ return PaginatedProductSearchResultResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedProductSearchResultResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(ProductSearchResultResource_1.ProductSearchResultResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedProductSearchResultResourceResponseToJSON(json) {
46
+ return PaginatedProductSearchResultResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedProductSearchResultResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(ProductSearchResultResource_1.ProductSearchResultResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ProductAggregationResource
16
+ */
17
+ export interface ProductAggregationResource {
18
+ /**
19
+ *
20
+ * @type {object}
21
+ * @memberof ProductAggregationResource
22
+ */
23
+ attributes: object;
24
+ /**
25
+ *
26
+ * @type {Array<object>}
27
+ * @memberof ProductAggregationResource
28
+ */
29
+ priceRanges: Array<object>;
30
+ /**
31
+ *
32
+ * @type {Array<object>}
33
+ * @memberof ProductAggregationResource
34
+ */
35
+ brands: Array<object>;
36
+ /**
37
+ *
38
+ * @type {Array<object>}
39
+ * @memberof ProductAggregationResource
40
+ */
41
+ ratings: Array<object>;
42
+ }
43
+ /**
44
+ * Check if a given object implements the ProductAggregationResource interface.
45
+ */
46
+ export declare function instanceOfProductAggregationResource(value: object): value is ProductAggregationResource;
47
+ export declare function ProductAggregationResourceFromJSON(json: any): ProductAggregationResource;
48
+ export declare function ProductAggregationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAggregationResource;
49
+ export declare function ProductAggregationResourceToJSON(json: any): ProductAggregationResource;
50
+ export declare function ProductAggregationResourceToJSONTyped(value?: ProductAggregationResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfProductAggregationResource = instanceOfProductAggregationResource;
17
+ exports.ProductAggregationResourceFromJSON = ProductAggregationResourceFromJSON;
18
+ exports.ProductAggregationResourceFromJSONTyped = ProductAggregationResourceFromJSONTyped;
19
+ exports.ProductAggregationResourceToJSON = ProductAggregationResourceToJSON;
20
+ exports.ProductAggregationResourceToJSONTyped = ProductAggregationResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ProductAggregationResource interface.
23
+ */
24
+ function instanceOfProductAggregationResource(value) {
25
+ if (!('attributes' in value) || value['attributes'] === undefined)
26
+ return false;
27
+ if (!('priceRanges' in value) || value['priceRanges'] === undefined)
28
+ return false;
29
+ if (!('brands' in value) || value['brands'] === undefined)
30
+ return false;
31
+ if (!('ratings' in value) || value['ratings'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function ProductAggregationResourceFromJSON(json) {
36
+ return ProductAggregationResourceFromJSONTyped(json, false);
37
+ }
38
+ function ProductAggregationResourceFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'attributes': json['attributes'],
44
+ 'priceRanges': json['priceRanges'],
45
+ 'brands': json['brands'],
46
+ 'ratings': json['ratings'],
47
+ };
48
+ }
49
+ function ProductAggregationResourceToJSON(json) {
50
+ return ProductAggregationResourceToJSONTyped(json, false);
51
+ }
52
+ function ProductAggregationResourceToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'attributes': value['attributes'],
59
+ 'priceRanges': value['priceRanges'],
60
+ 'brands': value['brands'],
61
+ 'ratings': value['ratings'],
62
+ };
63
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ProductAggregationResource } from './ProductAggregationResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductAggregationResourceArrayResponse
17
+ */
18
+ export interface ProductAggregationResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ProductAggregationResource>}
22
+ * @memberof ProductAggregationResourceArrayResponse
23
+ */
24
+ data?: Array<ProductAggregationResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ProductAggregationResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfProductAggregationResourceArrayResponse(value: object): value is ProductAggregationResourceArrayResponse;
30
+ export declare function ProductAggregationResourceArrayResponseFromJSON(json: any): ProductAggregationResourceArrayResponse;
31
+ export declare function ProductAggregationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAggregationResourceArrayResponse;
32
+ export declare function ProductAggregationResourceArrayResponseToJSON(json: any): ProductAggregationResourceArrayResponse;
33
+ export declare function ProductAggregationResourceArrayResponseToJSONTyped(value?: ProductAggregationResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfProductAggregationResourceArrayResponse = instanceOfProductAggregationResourceArrayResponse;
17
+ exports.ProductAggregationResourceArrayResponseFromJSON = ProductAggregationResourceArrayResponseFromJSON;
18
+ exports.ProductAggregationResourceArrayResponseFromJSONTyped = ProductAggregationResourceArrayResponseFromJSONTyped;
19
+ exports.ProductAggregationResourceArrayResponseToJSON = ProductAggregationResourceArrayResponseToJSON;
20
+ exports.ProductAggregationResourceArrayResponseToJSONTyped = ProductAggregationResourceArrayResponseToJSONTyped;
21
+ var ProductAggregationResource_1 = require("./ProductAggregationResource");
22
+ /**
23
+ * Check if a given object implements the ProductAggregationResourceArrayResponse interface.
24
+ */
25
+ function instanceOfProductAggregationResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function ProductAggregationResourceArrayResponseFromJSON(json) {
29
+ return ProductAggregationResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function ProductAggregationResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(ProductAggregationResource_1.ProductAggregationResourceFromJSON)),
37
+ };
38
+ }
39
+ function ProductAggregationResourceArrayResponseToJSON(json) {
40
+ return ProductAggregationResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function ProductAggregationResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(ProductAggregationResource_1.ProductAggregationResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,62 @@
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 ProductCategoryHierarchyResource
16
+ */
17
+ export interface ProductCategoryHierarchyResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ProductCategoryHierarchyResource
22
+ */
23
+ id?: number | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ProductCategoryHierarchyResource
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ProductCategoryHierarchyResource
34
+ */
35
+ slug: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ProductCategoryHierarchyResource
40
+ */
41
+ index: number;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof ProductCategoryHierarchyResource
46
+ */
47
+ isAutomated: boolean;
48
+ /**
49
+ *
50
+ * @type {object}
51
+ * @memberof ProductCategoryHierarchyResource
52
+ */
53
+ children: object;
54
+ }
55
+ /**
56
+ * Check if a given object implements the ProductCategoryHierarchyResource interface.
57
+ */
58
+ export declare function instanceOfProductCategoryHierarchyResource(value: object): value is ProductCategoryHierarchyResource;
59
+ export declare function ProductCategoryHierarchyResourceFromJSON(json: any): ProductCategoryHierarchyResource;
60
+ export declare function ProductCategoryHierarchyResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryHierarchyResource;
61
+ export declare function ProductCategoryHierarchyResourceToJSON(json: any): ProductCategoryHierarchyResource;
62
+ export declare function ProductCategoryHierarchyResourceToJSONTyped(value?: ProductCategoryHierarchyResource | null, ignoreDiscriminator?: boolean): any;