@digital8/lighting-illusions-ts-sdk 0.0.532 → 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 (63) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/README.md +14 -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/ProductStatus.d.ts +24 -0
  26. package/dist/models/ProductStatus.js +50 -0
  27. package/dist/models/StoreProductCategoryRequest.d.ts +9 -1
  28. package/dist/models/StoreProductCategoryRequest.js +8 -0
  29. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +27 -2
  30. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +24 -0
  31. package/dist/models/UpdateProductCategoryRequest.d.ts +9 -1
  32. package/dist/models/UpdateProductCategoryRequest.js +8 -0
  33. package/dist/models/index.d.ts +12 -0
  34. package/dist/models/index.js +12 -0
  35. package/docs/PaginatedProductSearchResultResourceResponse.md +36 -0
  36. package/docs/ProductAggregationResource.md +40 -0
  37. package/docs/ProductAggregationResourceArrayResponse.md +34 -0
  38. package/docs/ProductRating.md +32 -0
  39. package/docs/ProductSearchResponseResource.md +40 -0
  40. package/docs/ProductSearchResponseResourceArrayResponse.md +34 -0
  41. package/docs/ProductSearchResponseResourceMeta.md +40 -0
  42. package/docs/ProductSearchResponseResourcePriceInfo.md +40 -0
  43. package/docs/ProductSearchResultResource.md +62 -0
  44. package/docs/ProductSearchResultResourceArrayResponse.md +34 -0
  45. package/docs/ProductSortBy.md +32 -0
  46. package/docs/ProductStatus.md +32 -0
  47. package/package.json +1 -1
  48. package/src/models/PaginatedProductSearchResultResourceResponse.ts +90 -0
  49. package/src/models/ProductAggregationResource.ts +93 -0
  50. package/src/models/ProductAggregationResourceArrayResponse.ts +73 -0
  51. package/src/models/ProductRating.ts +54 -0
  52. package/src/models/ProductSearchResponseResource.ts +122 -0
  53. package/src/models/ProductSearchResponseResourceArrayResponse.ts +73 -0
  54. package/src/models/ProductSearchResponseResourceMeta.ts +93 -0
  55. package/src/models/ProductSearchResponseResourcePriceInfo.ts +93 -0
  56. package/src/models/ProductSearchResultResource.ts +191 -0
  57. package/src/models/ProductSearchResultResourceArrayResponse.ts +73 -0
  58. package/src/models/ProductSortBy.ts +60 -0
  59. package/src/models/ProductStatus.ts +52 -0
  60. package/src/models/StoreProductCategoryRequest.ts +12 -1
  61. package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +31 -2
  62. package/src/models/UpdateProductCategoryRequest.ts +12 -1
  63. package/src/models/index.ts +12 -0
@@ -0,0 +1,93 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ProductSearchResponseResourceMeta
20
+ */
21
+ export interface ProductSearchResponseResourceMeta {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ProductSearchResponseResourceMeta
26
+ */
27
+ currentPage: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ProductSearchResponseResourceMeta
32
+ */
33
+ perPage: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof ProductSearchResponseResourceMeta
38
+ */
39
+ total: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof ProductSearchResponseResourceMeta
44
+ */
45
+ lastPage: number;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the ProductSearchResponseResourceMeta interface.
50
+ */
51
+ export function instanceOfProductSearchResponseResourceMeta(value: object): value is ProductSearchResponseResourceMeta {
52
+ if (!('currentPage' in value) || value['currentPage'] === undefined) return false;
53
+ if (!('perPage' in value) || value['perPage'] === undefined) return false;
54
+ if (!('total' in value) || value['total'] === undefined) return false;
55
+ if (!('lastPage' in value) || value['lastPage'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function ProductSearchResponseResourceMetaFromJSON(json: any): ProductSearchResponseResourceMeta {
60
+ return ProductSearchResponseResourceMetaFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProductSearchResponseResourceMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResponseResourceMeta {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'currentPage': json['currentPage'],
70
+ 'perPage': json['perPage'],
71
+ 'total': json['total'],
72
+ 'lastPage': json['lastPage'],
73
+ };
74
+ }
75
+
76
+ export function ProductSearchResponseResourceMetaToJSON(json: any): ProductSearchResponseResourceMeta {
77
+ return ProductSearchResponseResourceMetaToJSONTyped(json, false);
78
+ }
79
+
80
+ export function ProductSearchResponseResourceMetaToJSONTyped(value?: ProductSearchResponseResourceMeta | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'currentPage': value['currentPage'],
88
+ 'perPage': value['perPage'],
89
+ 'total': value['total'],
90
+ 'lastPage': value['lastPage'],
91
+ };
92
+ }
93
+
@@ -0,0 +1,93 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ProductSearchResponseResourcePriceInfo
20
+ */
21
+ export interface ProductSearchResponseResourcePriceInfo {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ProductSearchResponseResourcePriceInfo
26
+ */
27
+ minPrice: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ProductSearchResponseResourcePriceInfo
32
+ */
33
+ maxPrice: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof ProductSearchResponseResourcePriceInfo
38
+ */
39
+ lowestPrice: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof ProductSearchResponseResourcePriceInfo
44
+ */
45
+ highestPrice: number;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the ProductSearchResponseResourcePriceInfo interface.
50
+ */
51
+ export function instanceOfProductSearchResponseResourcePriceInfo(value: object): value is ProductSearchResponseResourcePriceInfo {
52
+ if (!('minPrice' in value) || value['minPrice'] === undefined) return false;
53
+ if (!('maxPrice' in value) || value['maxPrice'] === undefined) return false;
54
+ if (!('lowestPrice' in value) || value['lowestPrice'] === undefined) return false;
55
+ if (!('highestPrice' in value) || value['highestPrice'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function ProductSearchResponseResourcePriceInfoFromJSON(json: any): ProductSearchResponseResourcePriceInfo {
60
+ return ProductSearchResponseResourcePriceInfoFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProductSearchResponseResourcePriceInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResponseResourcePriceInfo {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'minPrice': json['minPrice'],
70
+ 'maxPrice': json['maxPrice'],
71
+ 'lowestPrice': json['lowestPrice'],
72
+ 'highestPrice': json['highestPrice'],
73
+ };
74
+ }
75
+
76
+ export function ProductSearchResponseResourcePriceInfoToJSON(json: any): ProductSearchResponseResourcePriceInfo {
77
+ return ProductSearchResponseResourcePriceInfoToJSONTyped(json, false);
78
+ }
79
+
80
+ export function ProductSearchResponseResourcePriceInfoToJSONTyped(value?: ProductSearchResponseResourcePriceInfo | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'minPrice': value['minPrice'],
88
+ 'maxPrice': value['maxPrice'],
89
+ 'lowestPrice': value['lowestPrice'],
90
+ 'highestPrice': value['highestPrice'],
91
+ };
92
+ }
93
+
@@ -0,0 +1,191 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ProductSearchResultResource
20
+ */
21
+ export interface ProductSearchResultResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ProductSearchResultResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ProductSearchResultResource
32
+ */
33
+ sku: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ProductSearchResultResource
38
+ */
39
+ model: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ProductSearchResultResource
44
+ */
45
+ name: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof ProductSearchResultResource
50
+ */
51
+ slug: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof ProductSearchResultResource
56
+ */
57
+ price: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof ProductSearchResultResource
62
+ */
63
+ salePrice: number;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof ProductSearchResultResource
68
+ */
69
+ thumbnail: string;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof ProductSearchResultResource
74
+ */
75
+ averageRating?: string | null;
76
+ /**
77
+ *
78
+ * @type {Array<number>}
79
+ * @memberof ProductSearchResultResource
80
+ */
81
+ labelDetails: Array<number>;
82
+ /**
83
+ *
84
+ * @type {Array<object>}
85
+ * @memberof ProductSearchResultResource
86
+ */
87
+ categories: Array<object>;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof ProductSearchResultResource
92
+ */
93
+ supplierName: string;
94
+ /**
95
+ *
96
+ * @type {number}
97
+ * @memberof ProductSearchResultResource
98
+ */
99
+ supplierId: number;
100
+ /**
101
+ *
102
+ * @type {string}
103
+ * @memberof ProductSearchResultResource
104
+ */
105
+ availability: string;
106
+ /**
107
+ *
108
+ * @type {boolean}
109
+ * @memberof ProductSearchResultResource
110
+ */
111
+ wishlisted: boolean;
112
+ }
113
+
114
+ /**
115
+ * Check if a given object implements the ProductSearchResultResource interface.
116
+ */
117
+ export function instanceOfProductSearchResultResource(value: object): value is ProductSearchResultResource {
118
+ if (!('id' in value) || value['id'] === undefined) return false;
119
+ if (!('sku' in value) || value['sku'] === undefined) return false;
120
+ if (!('model' in value) || value['model'] === undefined) return false;
121
+ if (!('name' in value) || value['name'] === undefined) return false;
122
+ if (!('slug' in value) || value['slug'] === undefined) return false;
123
+ if (!('price' in value) || value['price'] === undefined) return false;
124
+ if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
125
+ if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
126
+ if (!('labelDetails' in value) || value['labelDetails'] === undefined) return false;
127
+ if (!('categories' in value) || value['categories'] === undefined) return false;
128
+ if (!('supplierName' in value) || value['supplierName'] === undefined) return false;
129
+ if (!('supplierId' in value) || value['supplierId'] === undefined) return false;
130
+ if (!('availability' in value) || value['availability'] === undefined) return false;
131
+ if (!('wishlisted' in value) || value['wishlisted'] === undefined) return false;
132
+ return true;
133
+ }
134
+
135
+ export function ProductSearchResultResourceFromJSON(json: any): ProductSearchResultResource {
136
+ return ProductSearchResultResourceFromJSONTyped(json, false);
137
+ }
138
+
139
+ export function ProductSearchResultResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResultResource {
140
+ if (json == null) {
141
+ return json;
142
+ }
143
+ return {
144
+
145
+ 'id': json['id'],
146
+ 'sku': json['sku'],
147
+ 'model': json['model'],
148
+ 'name': json['name'],
149
+ 'slug': json['slug'],
150
+ 'price': json['price'],
151
+ 'salePrice': json['salePrice'],
152
+ 'thumbnail': json['thumbnail'],
153
+ 'averageRating': json['averageRating'] == null ? undefined : json['averageRating'],
154
+ 'labelDetails': json['labelDetails'],
155
+ 'categories': json['categories'],
156
+ 'supplierName': json['supplierName'],
157
+ 'supplierId': json['supplierId'],
158
+ 'availability': json['availability'],
159
+ 'wishlisted': json['wishlisted'],
160
+ };
161
+ }
162
+
163
+ export function ProductSearchResultResourceToJSON(json: any): ProductSearchResultResource {
164
+ return ProductSearchResultResourceToJSONTyped(json, false);
165
+ }
166
+
167
+ export function ProductSearchResultResourceToJSONTyped(value?: ProductSearchResultResource | null, ignoreDiscriminator: boolean = false): any {
168
+ if (value == null) {
169
+ return value;
170
+ }
171
+
172
+ return {
173
+
174
+ 'id': value['id'],
175
+ 'sku': value['sku'],
176
+ 'model': value['model'],
177
+ 'name': value['name'],
178
+ 'slug': value['slug'],
179
+ 'price': value['price'],
180
+ 'salePrice': value['salePrice'],
181
+ 'thumbnail': value['thumbnail'],
182
+ 'averageRating': value['averageRating'],
183
+ 'labelDetails': value['labelDetails'],
184
+ 'categories': value['categories'],
185
+ 'supplierName': value['supplierName'],
186
+ 'supplierId': value['supplierId'],
187
+ 'availability': value['availability'],
188
+ 'wishlisted': value['wishlisted'],
189
+ };
190
+ }
191
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ProductSearchResultResource } from './ProductSearchResultResource';
17
+ import {
18
+ ProductSearchResultResourceFromJSON,
19
+ ProductSearchResultResourceFromJSONTyped,
20
+ ProductSearchResultResourceToJSON,
21
+ ProductSearchResultResourceToJSONTyped,
22
+ } from './ProductSearchResultResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProductSearchResultResourceArrayResponse
28
+ */
29
+ export interface ProductSearchResultResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ProductSearchResultResource>}
33
+ * @memberof ProductSearchResultResourceArrayResponse
34
+ */
35
+ data?: Array<ProductSearchResultResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ProductSearchResultResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfProductSearchResultResourceArrayResponse(value: object): value is ProductSearchResultResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function ProductSearchResultResourceArrayResponseFromJSON(json: any): ProductSearchResultResourceArrayResponse {
46
+ return ProductSearchResultResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ProductSearchResultResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResultResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductSearchResultResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function ProductSearchResultResourceArrayResponseToJSON(json: any): ProductSearchResultResourceArrayResponse {
60
+ return ProductSearchResultResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProductSearchResultResourceArrayResponseToJSONTyped(value?: ProductSearchResultResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductSearchResultResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const ProductSortBy = {
21
+ Relevance: 'relevance',
22
+ MostPopular: 'mostPopular',
23
+ HighestRating: 'highestRating',
24
+ LowestRating: 'lowestRating',
25
+ DescendingPrice: 'descendingPrice',
26
+ AscendingPrice: 'ascendingPrice',
27
+ DescendingName: 'descendingName',
28
+ AscendingName: 'ascendingName',
29
+ RecentlyAdded: 'recentlyAdded'
30
+ } as const;
31
+ export type ProductSortBy = typeof ProductSortBy[keyof typeof ProductSortBy];
32
+
33
+
34
+ export function instanceOfProductSortBy(value: any): boolean {
35
+ for (const key in ProductSortBy) {
36
+ if (Object.prototype.hasOwnProperty.call(ProductSortBy, key)) {
37
+ if (ProductSortBy[key as keyof typeof ProductSortBy] === value) {
38
+ return true;
39
+ }
40
+ }
41
+ }
42
+ return false;
43
+ }
44
+
45
+ export function ProductSortByFromJSON(json: any): ProductSortBy {
46
+ return ProductSortByFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ProductSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSortBy {
50
+ return json as ProductSortBy;
51
+ }
52
+
53
+ export function ProductSortByToJSON(value?: ProductSortBy | null): any {
54
+ return value as any;
55
+ }
56
+
57
+ export function ProductSortByToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductSortBy {
58
+ return value as ProductSortBy;
59
+ }
60
+
@@ -0,0 +1,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const ProductStatus = {
21
+ InStock: 'in_stock'
22
+ } as const;
23
+ export type ProductStatus = typeof ProductStatus[keyof typeof ProductStatus];
24
+
25
+
26
+ export function instanceOfProductStatus(value: any): boolean {
27
+ for (const key in ProductStatus) {
28
+ if (Object.prototype.hasOwnProperty.call(ProductStatus, key)) {
29
+ if (ProductStatus[key as keyof typeof ProductStatus] === value) {
30
+ return true;
31
+ }
32
+ }
33
+ }
34
+ return false;
35
+ }
36
+
37
+ export function ProductStatusFromJSON(json: any): ProductStatus {
38
+ return ProductStatusFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ProductStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStatus {
42
+ return json as ProductStatus;
43
+ }
44
+
45
+ export function ProductStatusToJSON(value?: ProductStatus | null): any {
46
+ return value as any;
47
+ }
48
+
49
+ export function ProductStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductStatus {
50
+ return value as ProductStatus;
51
+ }
52
+
@@ -80,7 +80,7 @@ export interface StoreProductCategoryRequest {
80
80
  * @type {string}
81
81
  * @memberof StoreProductCategoryRequest
82
82
  */
83
- automatedConditionType?: string;
83
+ automatedConditionType?: StoreProductCategoryRequestAutomatedConditionTypeEnum;
84
84
  /**
85
85
  *
86
86
  * @type {Array<StoreProductCategoryRequestAutomationRulesInner>}
@@ -107,6 +107,17 @@ export interface StoreProductCategoryRequest {
107
107
  fileId: number;
108
108
  }
109
109
 
110
+
111
+ /**
112
+ * @export
113
+ */
114
+ export const StoreProductCategoryRequestAutomatedConditionTypeEnum = {
115
+ And: 'and',
116
+ Or: 'or'
117
+ } as const;
118
+ export type StoreProductCategoryRequestAutomatedConditionTypeEnum = typeof StoreProductCategoryRequestAutomatedConditionTypeEnum[keyof typeof StoreProductCategoryRequestAutomatedConditionTypeEnum];
119
+
120
+
110
121
  /**
111
122
  * Check if a given object implements the StoreProductCategoryRequest interface.
112
123
  */
@@ -24,13 +24,13 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
24
24
  * @type {string}
25
25
  * @memberof StoreProductCategoryRequestAutomationRulesInner
26
26
  */
27
- fieldType: string;
27
+ fieldType: StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
31
  * @memberof StoreProductCategoryRequestAutomationRulesInner
32
32
  */
33
- comparisonType: string;
33
+ comparisonType: StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum;
34
34
  /**
35
35
  *
36
36
  * @type {number}
@@ -57,6 +57,35 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
57
57
  valueId?: number;
58
58
  }
59
59
 
60
+
61
+ /**
62
+ * @export
63
+ */
64
+ export const StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum = {
65
+ Price: 'price',
66
+ Name: 'name',
67
+ VariantName: 'variant_name',
68
+ Attribute: 'attribute',
69
+ Tag: 'tag',
70
+ Supplier: 'supplier',
71
+ Label: 'label'
72
+ } as const;
73
+ export type StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum = typeof StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum[keyof typeof StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum];
74
+
75
+ /**
76
+ * @export
77
+ */
78
+ export const StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum = {
79
+ Greater: 'greater',
80
+ Less: 'less',
81
+ Equal: 'equal',
82
+ NotEqual: 'notEqual',
83
+ Contains: 'contains',
84
+ NotContains: 'notContains'
85
+ } as const;
86
+ export type StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum = typeof StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum[keyof typeof StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum];
87
+
88
+
60
89
  /**
61
90
  * Check if a given object implements the StoreProductCategoryRequestAutomationRulesInner interface.
62
91
  */
@@ -80,7 +80,7 @@ export interface UpdateProductCategoryRequest {
80
80
  * @type {string}
81
81
  * @memberof UpdateProductCategoryRequest
82
82
  */
83
- automatedConditionType?: string;
83
+ automatedConditionType?: UpdateProductCategoryRequestAutomatedConditionTypeEnum;
84
84
  /**
85
85
  *
86
86
  * @type {Array<StoreProductCategoryRequestAutomationRulesInner>}
@@ -107,6 +107,17 @@ export interface UpdateProductCategoryRequest {
107
107
  fileId?: number;
108
108
  }
109
109
 
110
+
111
+ /**
112
+ * @export
113
+ */
114
+ export const UpdateProductCategoryRequestAutomatedConditionTypeEnum = {
115
+ And: 'and',
116
+ Or: 'or'
117
+ } as const;
118
+ export type UpdateProductCategoryRequestAutomatedConditionTypeEnum = typeof UpdateProductCategoryRequestAutomatedConditionTypeEnum[keyof typeof UpdateProductCategoryRequestAutomatedConditionTypeEnum];
119
+
120
+
110
121
  /**
111
122
  * Check if a given object implements the UpdateProductCategoryRequest interface.
112
123
  */