@digital8/lighting-illusions-ts-sdk 0.0.569 → 0.0.571

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 (38) hide show
  1. package/.openapi-generator/FILES +4 -4
  2. package/README.md +4 -6
  3. package/dist/apis/ProductCategoryApi.d.ts +3 -27
  4. package/dist/apis/ProductCategoryApi.js +1 -97
  5. package/dist/models/PreviewAutomationRulesProductCategoryRequest.d.ts +2 -2
  6. package/dist/models/PreviewAutomationRulesResource.d.ts +38 -0
  7. package/dist/models/PreviewAutomationRulesResource.js +55 -0
  8. package/dist/models/PreviewAutomationRulesResourceArrayResponse.d.ts +33 -0
  9. package/dist/models/PreviewAutomationRulesResourceArrayResponse.js +50 -0
  10. package/dist/models/ProductCategoryListResource.d.ts +6 -0
  11. package/dist/models/ProductCategoryListResource.js +4 -0
  12. package/dist/models/ProductRating.d.ts +1 -0
  13. package/dist/models/ProductRating.js +2 -1
  14. package/dist/models/ProductSearchResultResource.d.ts +6 -0
  15. package/dist/models/ProductSearchResultResource.js +4 -0
  16. package/dist/models/index.d.ts +2 -2
  17. package/dist/models/index.js +2 -2
  18. package/docs/PreviewAutomationRulesProductCategoryRequest.md +1 -1
  19. package/docs/{AttachProductsProductCategoryRequest.md → PreviewAutomationRulesResource.md} +8 -6
  20. package/docs/{DetachProductsProductCategoryRequest.md → PreviewAutomationRulesResourceArrayResponse.md} +6 -6
  21. package/docs/ProductCategoryApi.md +3 -141
  22. package/docs/ProductCategoryListResource.md +2 -0
  23. package/docs/ProductSearchResultResource.md +2 -0
  24. package/package.json +1 -1
  25. package/src/apis/ProductCategoryApi.ts +6 -99
  26. package/src/models/PreviewAutomationRulesProductCategoryRequest.ts +2 -2
  27. package/src/models/PreviewAutomationRulesResource.ts +75 -0
  28. package/src/models/PreviewAutomationRulesResourceArrayResponse.ts +73 -0
  29. package/src/models/ProductCategoryListResource.ts +9 -0
  30. package/src/models/ProductRating.ts +2 -1
  31. package/src/models/ProductSearchResultResource.ts +9 -0
  32. package/src/models/index.ts +2 -2
  33. package/dist/models/AttachProductsProductCategoryRequest.d.ts +0 -32
  34. package/dist/models/AttachProductsProductCategoryRequest.js +0 -51
  35. package/dist/models/DetachProductsProductCategoryRequest.d.ts +0 -32
  36. package/dist/models/DetachProductsProductCategoryRequest.js +0 -51
  37. package/src/models/AttachProductsProductCategoryRequest.ts +0 -66
  38. package/src/models/DetachProductsProductCategoryRequest.ts +0 -66
@@ -17,7 +17,6 @@ docs/AttachDocumentablesDocumentRequestDocumentablesInner.md
17
17
  docs/AttachDocumentsProductChildSiteDetailRequest.md
18
18
  docs/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md
19
19
  docs/AttachProductTypeAttributeRequest.md
20
- docs/AttachProductsProductCategoryRequest.md
21
20
  docs/AttributeApi.md
22
21
  docs/AttributeFieldType.md
23
22
  docs/AttributeListResource.md
@@ -44,7 +43,6 @@ docs/DetachAssetableOverlayTemplateRequest.md
44
43
  docs/DetachDocumentablesDocumentRequest.md
45
44
  docs/DetachDocumentablesDocumentRequestDocumentablesInner.md
46
45
  docs/DetachDocumentsProductChildSiteDetailRequest.md
47
- docs/DetachProductsProductCategoryRequest.md
48
46
  docs/DocumentApi.md
49
47
  docs/DocumentFileForUploadResource.md
50
48
  docs/DocumentFileForUploadResourceArrayResponse.md
@@ -135,6 +133,8 @@ docs/PaginatedTagLiteResourceResponse.md
135
133
  docs/PaginatedTagResourceResponse.md
136
134
  docs/PagingMetadata.md
137
135
  docs/PreviewAutomationRulesProductCategoryRequest.md
136
+ docs/PreviewAutomationRulesResource.md
137
+ docs/PreviewAutomationRulesResourceArrayResponse.md
138
138
  docs/ProductAggregationResource.md
139
139
  docs/ProductAggregationResourceArrayResponse.md
140
140
  docs/ProductApi.md
@@ -287,7 +287,6 @@ src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts
287
287
  src/models/AttachDocumentsProductChildSiteDetailRequest.ts
288
288
  src/models/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.ts
289
289
  src/models/AttachProductTypeAttributeRequest.ts
290
- src/models/AttachProductsProductCategoryRequest.ts
291
290
  src/models/AttributeFieldType.ts
292
291
  src/models/AttributeListResource.ts
293
292
  src/models/AttributeListResourceArrayResponse.ts
@@ -313,7 +312,6 @@ src/models/DetachAssetableOverlayTemplateRequest.ts
313
312
  src/models/DetachDocumentablesDocumentRequest.ts
314
313
  src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts
315
314
  src/models/DetachDocumentsProductChildSiteDetailRequest.ts
316
- src/models/DetachProductsProductCategoryRequest.ts
317
315
  src/models/DocumentFileForUploadResource.ts
318
316
  src/models/DocumentFileForUploadResourceArrayResponse.ts
319
317
  src/models/DocumentLiteResource.ts
@@ -400,6 +398,8 @@ src/models/PaginatedTagLiteResourceResponse.ts
400
398
  src/models/PaginatedTagResourceResponse.ts
401
399
  src/models/PagingMetadata.ts
402
400
  src/models/PreviewAutomationRulesProductCategoryRequest.ts
401
+ src/models/PreviewAutomationRulesResource.ts
402
+ src/models/PreviewAutomationRulesResourceArrayResponse.ts
403
403
  src/models/ProductAggregationResource.ts
404
404
  src/models/ProductAggregationResourceArrayResponse.ts
405
405
  src/models/ProductCategoryHierarchyResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.569
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.571
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -107,9 +107,7 @@ All URIs are relative to *http://localhost/api*
107
107
  *ProductApi* | [**storeProductChild**](docs/ProductApi.md#storeproductchildoperation) | **POST** /admin-api/product/children/create | Auto-generated: storeProductChild
108
108
  *ProductApi* | [**updateProduct**](docs/ProductApi.md#updateproductoperation) | **PUT** /admin-api/product/parent/{product}/update | Auto-generated: updateProduct
109
109
  *ProductApi* | [**updateProductChild**](docs/ProductApi.md#updateproductchildoperation) | **PUT** /admin-api/product/children/{productChild}/update | Auto-generated: updateProductChild
110
- *ProductCategoryApi* | [**attachProductsProductCategory**](docs/ProductCategoryApi.md#attachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/attach-products | Auto-generated: attachProductsProductCategory
111
110
  *ProductCategoryApi* | [**destroyProductCategory**](docs/ProductCategoryApi.md#destroyproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/delete | Auto-generated: destroyProductCategory
112
- *ProductCategoryApi* | [**detachProductsProductCategory**](docs/ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory
113
111
  *ProductCategoryApi* | [**getAllProductCategory**](docs/ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory
114
112
  *ProductCategoryApi* | [**getChildrenProductCategory**](docs/ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory
115
113
  *ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory
@@ -171,7 +169,6 @@ All URIs are relative to *http://localhost/api*
171
169
  - [AttachDocumentsProductChildSiteDetailRequest](docs/AttachDocumentsProductChildSiteDetailRequest.md)
172
170
  - [AttachDocumentsProductChildSiteDetailRequestDocumentsInner](docs/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md)
173
171
  - [AttachProductTypeAttributeRequest](docs/AttachProductTypeAttributeRequest.md)
174
- - [AttachProductsProductCategoryRequest](docs/AttachProductsProductCategoryRequest.md)
175
172
  - [AttributeFieldType](docs/AttributeFieldType.md)
176
173
  - [AttributeListResource](docs/AttributeListResource.md)
177
174
  - [AttributeListResourceArrayResponse](docs/AttributeListResourceArrayResponse.md)
@@ -197,7 +194,6 @@ All URIs are relative to *http://localhost/api*
197
194
  - [DetachDocumentablesDocumentRequest](docs/DetachDocumentablesDocumentRequest.md)
198
195
  - [DetachDocumentablesDocumentRequestDocumentablesInner](docs/DetachDocumentablesDocumentRequestDocumentablesInner.md)
199
196
  - [DetachDocumentsProductChildSiteDetailRequest](docs/DetachDocumentsProductChildSiteDetailRequest.md)
200
- - [DetachProductsProductCategoryRequest](docs/DetachProductsProductCategoryRequest.md)
201
197
  - [DocumentFileForUploadResource](docs/DocumentFileForUploadResource.md)
202
198
  - [DocumentFileForUploadResourceArrayResponse](docs/DocumentFileForUploadResourceArrayResponse.md)
203
199
  - [DocumentLiteResource](docs/DocumentLiteResource.md)
@@ -284,6 +280,8 @@ All URIs are relative to *http://localhost/api*
284
280
  - [PaginatedTagResourceResponse](docs/PaginatedTagResourceResponse.md)
285
281
  - [PagingMetadata](docs/PagingMetadata.md)
286
282
  - [PreviewAutomationRulesProductCategoryRequest](docs/PreviewAutomationRulesProductCategoryRequest.md)
283
+ - [PreviewAutomationRulesResource](docs/PreviewAutomationRulesResource.md)
284
+ - [PreviewAutomationRulesResourceArrayResponse](docs/PreviewAutomationRulesResourceArrayResponse.md)
287
285
  - [ProductAggregationResource](docs/ProductAggregationResource.md)
288
286
  - [ProductAggregationResourceArrayResponse](docs/ProductAggregationResourceArrayResponse.md)
289
287
  - [ProductCategoryHierarchyResource](docs/ProductCategoryHierarchyResource.md)
@@ -412,7 +410,7 @@ and is automatically generated by the
412
410
  [OpenAPI Generator](https://openapi-generator.tech) project:
413
411
 
414
412
  - API version: `1.0.0`
415
- - Package version: `0.0.569`
413
+ - Package version: `0.0.571`
416
414
  - Generator version: `7.18.0`
417
415
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
418
416
 
@@ -10,18 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AttachProductsProductCategoryRequest, DetachProductsProductCategoryRequest, GenericResponse, GetAllProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest, ProductCategoryHierarchyResourceArrayResponse, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
14
- export interface AttachProductsProductCategoryOperationRequest {
15
- productCategory: number;
16
- attachProductsProductCategoryRequest?: AttachProductsProductCategoryRequest;
17
- }
13
+ import type { GenericResponse, GetAllProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest, PreviewAutomationRulesResource, ProductCategoryHierarchyResourceArrayResponse, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
18
14
  export interface DestroyProductCategoryRequest {
19
15
  productCategory: number;
20
16
  }
21
- export interface DetachProductsProductCategoryOperationRequest {
22
- productCategory: number;
23
- detachProductsProductCategoryRequest?: DetachProductsProductCategoryRequest;
24
- }
25
17
  export interface GetAllProductCategoryOperationRequest {
26
18
  getAllProductCategoryRequest?: GetAllProductCategoryRequest;
27
19
  }
@@ -49,14 +41,6 @@ export interface UpdateProductCategoryOperationRequest {
49
41
  *
50
42
  */
51
43
  export declare class ProductCategoryApi extends runtime.BaseAPI {
52
- /**
53
- * Auto-generated: attachProductsProductCategory
54
- */
55
- attachProductsProductCategoryRaw(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>>;
56
- /**
57
- * Auto-generated: attachProductsProductCategory
58
- */
59
- attachProductsProductCategory(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource>;
60
44
  /**
61
45
  * Auto-generated: destroyProductCategory
62
46
  */
@@ -65,14 +49,6 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
65
49
  * Auto-generated: destroyProductCategory
66
50
  */
67
51
  destroyProductCategory(requestParameters: DestroyProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
68
- /**
69
- * Auto-generated: detachProductsProductCategory
70
- */
71
- detachProductsProductCategoryRaw(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>>;
72
- /**
73
- * Auto-generated: detachProductsProductCategory
74
- */
75
- detachProductsProductCategory(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource>;
76
52
  /**
77
53
  * Auto-generated: getAllProductCategory
78
54
  */
@@ -108,11 +84,11 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
108
84
  /**
109
85
  * Auto-generated: previewAutomationRulesProductCategory
110
86
  */
111
- previewAutomationRulesProductCategoryRaw(requestParameters: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
87
+ previewAutomationRulesProductCategoryRaw(requestParameters: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PreviewAutomationRulesResource>>;
112
88
  /**
113
89
  * Auto-generated: previewAutomationRulesProductCategory
114
90
  */
115
- previewAutomationRulesProductCategory(requestParameters?: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
91
+ previewAutomationRulesProductCategory(requestParameters?: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PreviewAutomationRulesResource>;
116
92
  /**
117
93
  * Auto-generated: showProductCategory
118
94
  */
@@ -75,54 +75,6 @@ var ProductCategoryApi = /** @class */ (function (_super) {
75
75
  function ProductCategoryApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
- /**
79
- * Auto-generated: attachProductsProductCategory
80
- */
81
- ProductCategoryApi.prototype.attachProductsProductCategoryRaw = function (requestParameters, initOverrides) {
82
- return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, urlPath, response;
84
- return __generator(this, function (_a) {
85
- switch (_a.label) {
86
- case 0:
87
- if (requestParameters['productCategory'] == null) {
88
- throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling attachProductsProductCategory().');
89
- }
90
- queryParameters = {};
91
- headerParameters = {};
92
- headerParameters['Content-Type'] = 'application/json';
93
- urlPath = "/admin-api/product-category/{productCategory}/attach-products";
94
- urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
95
- return [4 /*yield*/, this.request({
96
- path: urlPath,
97
- method: 'POST',
98
- headers: headerParameters,
99
- query: queryParameters,
100
- body: (0, index_1.AttachProductsProductCategoryRequestToJSON)(requestParameters['attachProductsProductCategoryRequest']),
101
- }, initOverrides)];
102
- case 1:
103
- response = _a.sent();
104
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryResourceFromJSON)(jsonValue); })];
105
- }
106
- });
107
- });
108
- };
109
- /**
110
- * Auto-generated: attachProductsProductCategory
111
- */
112
- ProductCategoryApi.prototype.attachProductsProductCategory = function (requestParameters, initOverrides) {
113
- return __awaiter(this, void 0, void 0, function () {
114
- var response;
115
- return __generator(this, function (_a) {
116
- switch (_a.label) {
117
- case 0: return [4 /*yield*/, this.attachProductsProductCategoryRaw(requestParameters, initOverrides)];
118
- case 1:
119
- response = _a.sent();
120
- return [4 /*yield*/, response.value()];
121
- case 2: return [2 /*return*/, _a.sent()];
122
- }
123
- });
124
- });
125
- };
126
78
  /**
127
79
  * Auto-generated: destroyProductCategory
128
80
  */
@@ -169,54 +121,6 @@ var ProductCategoryApi = /** @class */ (function (_super) {
169
121
  });
170
122
  });
171
123
  };
172
- /**
173
- * Auto-generated: detachProductsProductCategory
174
- */
175
- ProductCategoryApi.prototype.detachProductsProductCategoryRaw = function (requestParameters, initOverrides) {
176
- return __awaiter(this, void 0, void 0, function () {
177
- var queryParameters, headerParameters, urlPath, response;
178
- return __generator(this, function (_a) {
179
- switch (_a.label) {
180
- case 0:
181
- if (requestParameters['productCategory'] == null) {
182
- throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling detachProductsProductCategory().');
183
- }
184
- queryParameters = {};
185
- headerParameters = {};
186
- headerParameters['Content-Type'] = 'application/json';
187
- urlPath = "/admin-api/product-category/{productCategory}/detach-products";
188
- urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
189
- return [4 /*yield*/, this.request({
190
- path: urlPath,
191
- method: 'POST',
192
- headers: headerParameters,
193
- query: queryParameters,
194
- body: (0, index_1.DetachProductsProductCategoryRequestToJSON)(requestParameters['detachProductsProductCategoryRequest']),
195
- }, initOverrides)];
196
- case 1:
197
- response = _a.sent();
198
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryResourceFromJSON)(jsonValue); })];
199
- }
200
- });
201
- });
202
- };
203
- /**
204
- * Auto-generated: detachProductsProductCategory
205
- */
206
- ProductCategoryApi.prototype.detachProductsProductCategory = function (requestParameters, initOverrides) {
207
- return __awaiter(this, void 0, void 0, function () {
208
- var response;
209
- return __generator(this, function (_a) {
210
- switch (_a.label) {
211
- case 0: return [4 /*yield*/, this.detachProductsProductCategoryRaw(requestParameters, initOverrides)];
212
- case 1:
213
- response = _a.sent();
214
- return [4 /*yield*/, response.value()];
215
- case 2: return [2 /*return*/, _a.sent()];
216
- }
217
- });
218
- });
219
- };
220
124
  /**
221
125
  * Auto-generated: getAllProductCategory
222
126
  */
@@ -419,7 +323,7 @@ var ProductCategoryApi = /** @class */ (function (_super) {
419
323
  }, initOverrides)];
420
324
  case 1:
421
325
  response = _a.sent();
422
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
326
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PreviewAutomationRulesResourceFromJSON)(jsonValue); })];
423
327
  }
424
328
  });
425
329
  });
@@ -18,10 +18,10 @@ import type { StoreProductCategoryRequestAutomationRulesInner } from './StorePro
18
18
  export interface PreviewAutomationRulesProductCategoryRequest {
19
19
  /**
20
20
  *
21
- * @type {string}
21
+ * @type {number}
22
22
  * @memberof PreviewAutomationRulesProductCategoryRequest
23
23
  */
24
- siteId: string;
24
+ siteId: number;
25
25
  /**
26
26
  *
27
27
  * @type {string}
@@ -0,0 +1,38 @@
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 PreviewAutomationRulesResource
16
+ */
17
+ export interface PreviewAutomationRulesResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof PreviewAutomationRulesResource
22
+ */
23
+ count: number;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof PreviewAutomationRulesResource
28
+ */
29
+ tooComplex: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PreviewAutomationRulesResource interface.
33
+ */
34
+ export declare function instanceOfPreviewAutomationRulesResource(value: object): value is PreviewAutomationRulesResource;
35
+ export declare function PreviewAutomationRulesResourceFromJSON(json: any): PreviewAutomationRulesResource;
36
+ export declare function PreviewAutomationRulesResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PreviewAutomationRulesResource;
37
+ export declare function PreviewAutomationRulesResourceToJSON(json: any): PreviewAutomationRulesResource;
38
+ export declare function PreviewAutomationRulesResourceToJSONTyped(value?: PreviewAutomationRulesResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfPreviewAutomationRulesResource = instanceOfPreviewAutomationRulesResource;
17
+ exports.PreviewAutomationRulesResourceFromJSON = PreviewAutomationRulesResourceFromJSON;
18
+ exports.PreviewAutomationRulesResourceFromJSONTyped = PreviewAutomationRulesResourceFromJSONTyped;
19
+ exports.PreviewAutomationRulesResourceToJSON = PreviewAutomationRulesResourceToJSON;
20
+ exports.PreviewAutomationRulesResourceToJSONTyped = PreviewAutomationRulesResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PreviewAutomationRulesResource interface.
23
+ */
24
+ function instanceOfPreviewAutomationRulesResource(value) {
25
+ if (!('count' in value) || value['count'] === undefined)
26
+ return false;
27
+ if (!('tooComplex' in value) || value['tooComplex'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function PreviewAutomationRulesResourceFromJSON(json) {
32
+ return PreviewAutomationRulesResourceFromJSONTyped(json, false);
33
+ }
34
+ function PreviewAutomationRulesResourceFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'count': json['count'],
40
+ 'tooComplex': json['too_complex'],
41
+ };
42
+ }
43
+ function PreviewAutomationRulesResourceToJSON(json) {
44
+ return PreviewAutomationRulesResourceToJSONTyped(json, false);
45
+ }
46
+ function PreviewAutomationRulesResourceToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'count': value['count'],
53
+ 'too_complex': value['tooComplex'],
54
+ };
55
+ }
@@ -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 { PreviewAutomationRulesResource } from './PreviewAutomationRulesResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PreviewAutomationRulesResourceArrayResponse
17
+ */
18
+ export interface PreviewAutomationRulesResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<PreviewAutomationRulesResource>}
22
+ * @memberof PreviewAutomationRulesResourceArrayResponse
23
+ */
24
+ data?: Array<PreviewAutomationRulesResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the PreviewAutomationRulesResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfPreviewAutomationRulesResourceArrayResponse(value: object): value is PreviewAutomationRulesResourceArrayResponse;
30
+ export declare function PreviewAutomationRulesResourceArrayResponseFromJSON(json: any): PreviewAutomationRulesResourceArrayResponse;
31
+ export declare function PreviewAutomationRulesResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PreviewAutomationRulesResourceArrayResponse;
32
+ export declare function PreviewAutomationRulesResourceArrayResponseToJSON(json: any): PreviewAutomationRulesResourceArrayResponse;
33
+ export declare function PreviewAutomationRulesResourceArrayResponseToJSONTyped(value?: PreviewAutomationRulesResourceArrayResponse | 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.instanceOfPreviewAutomationRulesResourceArrayResponse = instanceOfPreviewAutomationRulesResourceArrayResponse;
17
+ exports.PreviewAutomationRulesResourceArrayResponseFromJSON = PreviewAutomationRulesResourceArrayResponseFromJSON;
18
+ exports.PreviewAutomationRulesResourceArrayResponseFromJSONTyped = PreviewAutomationRulesResourceArrayResponseFromJSONTyped;
19
+ exports.PreviewAutomationRulesResourceArrayResponseToJSON = PreviewAutomationRulesResourceArrayResponseToJSON;
20
+ exports.PreviewAutomationRulesResourceArrayResponseToJSONTyped = PreviewAutomationRulesResourceArrayResponseToJSONTyped;
21
+ var PreviewAutomationRulesResource_1 = require("./PreviewAutomationRulesResource");
22
+ /**
23
+ * Check if a given object implements the PreviewAutomationRulesResourceArrayResponse interface.
24
+ */
25
+ function instanceOfPreviewAutomationRulesResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function PreviewAutomationRulesResourceArrayResponseFromJSON(json) {
29
+ return PreviewAutomationRulesResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function PreviewAutomationRulesResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(PreviewAutomationRulesResource_1.PreviewAutomationRulesResourceFromJSON)),
37
+ };
38
+ }
39
+ function PreviewAutomationRulesResourceArrayResponseToJSON(json) {
40
+ return PreviewAutomationRulesResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function PreviewAutomationRulesResourceArrayResponseToJSONTyped(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(PreviewAutomationRulesResource_1.PreviewAutomationRulesResourceToJSON)),
49
+ };
50
+ }
@@ -52,6 +52,12 @@ export interface ProductCategoryListResource {
52
52
  * @memberof ProductCategoryListResource
53
53
  */
54
54
  hasChildren: boolean;
55
+ /**
56
+ *
57
+ * @type {boolean}
58
+ * @memberof ProductCategoryListResource
59
+ */
60
+ isParent: boolean;
55
61
  /**
56
62
  *
57
63
  * @type {number}
@@ -33,6 +33,8 @@ function instanceOfProductCategoryListResource(value) {
33
33
  return false;
34
34
  if (!('hasChildren' in value) || value['hasChildren'] === undefined)
35
35
  return false;
36
+ if (!('isParent' in value) || value['isParent'] === undefined)
37
+ return false;
36
38
  if (!('productCount' in value) || value['productCount'] === undefined)
37
39
  return false;
38
40
  if (!('site' in value) || value['site'] === undefined)
@@ -53,6 +55,7 @@ function ProductCategoryListResourceFromJSONTyped(json, ignoreDiscriminator) {
53
55
  'isDisabled': json['isDisabled'],
54
56
  'isAutomated': json['isAutomated'],
55
57
  'hasChildren': json['hasChildren'],
58
+ 'isParent': json['isParent'],
56
59
  'productCount': json['productCount'],
57
60
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
58
61
  };
@@ -72,6 +75,7 @@ function ProductCategoryListResourceToJSONTyped(value, ignoreDiscriminator) {
72
75
  'isDisabled': value['isDisabled'],
73
76
  'isAutomated': value['isAutomated'],
74
77
  'hasChildren': value['hasChildren'],
78
+ 'isParent': value['isParent'],
75
79
  'productCount': value['productCount'],
76
80
  'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
77
81
  };
@@ -17,6 +17,7 @@ export declare const ProductRating: {
17
17
  readonly _5: "5";
18
18
  readonly _4: "4";
19
19
  readonly _3: "3";
20
+ readonly _2: "2";
20
21
  };
21
22
  export type ProductRating = typeof ProductRating[keyof typeof ProductRating];
22
23
  export declare function instanceOfProductRating(value: any): boolean;
@@ -26,7 +26,8 @@ exports.ProductRatingToJSONTyped = ProductRatingToJSONTyped;
26
26
  exports.ProductRating = {
27
27
  _5: '5',
28
28
  _4: '4',
29
- _3: '3'
29
+ _3: '3',
30
+ _2: '2'
30
31
  };
31
32
  function instanceOfProductRating(value) {
32
33
  for (var key in exports.ProductRating) {
@@ -87,6 +87,12 @@ export interface ProductSearchResultResource {
87
87
  * @memberof ProductSearchResultResource
88
88
  */
89
89
  supplierName: string;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof ProductSearchResultResource
94
+ */
95
+ supplierLogo: string;
90
96
  /**
91
97
  *
92
98
  * @type {number}
@@ -44,6 +44,8 @@ function instanceOfProductSearchResultResource(value) {
44
44
  return false;
45
45
  if (!('supplierName' in value) || value['supplierName'] === undefined)
46
46
  return false;
47
+ if (!('supplierLogo' in value) || value['supplierLogo'] === undefined)
48
+ return false;
47
49
  if (!('supplierId' in value) || value['supplierId'] === undefined)
48
50
  return false;
49
51
  if (!('availability' in value) || value['availability'] === undefined)
@@ -72,6 +74,7 @@ function ProductSearchResultResourceFromJSONTyped(json, ignoreDiscriminator) {
72
74
  'labelDetails': json['labelDetails'],
73
75
  'categories': json['categories'],
74
76
  'supplierName': json['supplierName'],
77
+ 'supplierLogo': json['supplierLogo'],
75
78
  'supplierId': json['supplierId'],
76
79
  'availability': json['availability'],
77
80
  'wishlisted': json['wishlisted'],
@@ -98,6 +101,7 @@ function ProductSearchResultResourceToJSONTyped(value, ignoreDiscriminator) {
98
101
  'labelDetails': value['labelDetails'],
99
102
  'categories': value['categories'],
100
103
  'supplierName': value['supplierName'],
104
+ 'supplierLogo': value['supplierLogo'],
101
105
  'supplierId': value['supplierId'],
102
106
  'availability': value['availability'],
103
107
  'wishlisted': value['wishlisted'],
@@ -12,7 +12,6 @@ export * from './AttachDocumentablesDocumentRequestDocumentablesInner';
12
12
  export * from './AttachDocumentsProductChildSiteDetailRequest';
13
13
  export * from './AttachDocumentsProductChildSiteDetailRequestDocumentsInner';
14
14
  export * from './AttachProductTypeAttributeRequest';
15
- export * from './AttachProductsProductCategoryRequest';
16
15
  export * from './AttributeFieldType';
17
16
  export * from './AttributeListResource';
18
17
  export * from './AttributeListResourceArrayResponse';
@@ -38,7 +37,6 @@ export * from './DetachAssetableOverlayTemplateRequest';
38
37
  export * from './DetachDocumentablesDocumentRequest';
39
38
  export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
40
39
  export * from './DetachDocumentsProductChildSiteDetailRequest';
41
- export * from './DetachProductsProductCategoryRequest';
42
40
  export * from './DocumentFileForUploadResource';
43
41
  export * from './DocumentFileForUploadResourceArrayResponse';
44
42
  export * from './DocumentLiteResource';
@@ -125,6 +123,8 @@ export * from './PaginatedTagLiteResourceResponse';
125
123
  export * from './PaginatedTagResourceResponse';
126
124
  export * from './PagingMetadata';
127
125
  export * from './PreviewAutomationRulesProductCategoryRequest';
126
+ export * from './PreviewAutomationRulesResource';
127
+ export * from './PreviewAutomationRulesResourceArrayResponse';
128
128
  export * from './ProductAggregationResource';
129
129
  export * from './ProductAggregationResourceArrayResponse';
130
130
  export * from './ProductCategoryHierarchyResource';
@@ -30,7 +30,6 @@ __exportStar(require("./AttachDocumentablesDocumentRequestDocumentablesInner"),
30
30
  __exportStar(require("./AttachDocumentsProductChildSiteDetailRequest"), exports);
31
31
  __exportStar(require("./AttachDocumentsProductChildSiteDetailRequestDocumentsInner"), exports);
32
32
  __exportStar(require("./AttachProductTypeAttributeRequest"), exports);
33
- __exportStar(require("./AttachProductsProductCategoryRequest"), exports);
34
33
  __exportStar(require("./AttributeFieldType"), exports);
35
34
  __exportStar(require("./AttributeListResource"), exports);
36
35
  __exportStar(require("./AttributeListResourceArrayResponse"), exports);
@@ -56,7 +55,6 @@ __exportStar(require("./DetachAssetableOverlayTemplateRequest"), exports);
56
55
  __exportStar(require("./DetachDocumentablesDocumentRequest"), exports);
57
56
  __exportStar(require("./DetachDocumentablesDocumentRequestDocumentablesInner"), exports);
58
57
  __exportStar(require("./DetachDocumentsProductChildSiteDetailRequest"), exports);
59
- __exportStar(require("./DetachProductsProductCategoryRequest"), exports);
60
58
  __exportStar(require("./DocumentFileForUploadResource"), exports);
61
59
  __exportStar(require("./DocumentFileForUploadResourceArrayResponse"), exports);
62
60
  __exportStar(require("./DocumentLiteResource"), exports);
@@ -143,6 +141,8 @@ __exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
143
141
  __exportStar(require("./PaginatedTagResourceResponse"), exports);
144
142
  __exportStar(require("./PagingMetadata"), exports);
145
143
  __exportStar(require("./PreviewAutomationRulesProductCategoryRequest"), exports);
144
+ __exportStar(require("./PreviewAutomationRulesResource"), exports);
145
+ __exportStar(require("./PreviewAutomationRulesResourceArrayResponse"), exports);
146
146
  __exportStar(require("./ProductAggregationResource"), exports);
147
147
  __exportStar(require("./ProductAggregationResourceArrayResponse"), exports);
148
148
  __exportStar(require("./ProductCategoryHierarchyResource"), exports);
@@ -6,7 +6,7 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `siteId` | string
9
+ `siteId` | number
10
10
  `automatedConditionType` | string
11
11
  `automationRules` | [Array&lt;StoreProductCategoryRequestAutomationRulesInner&gt;](StoreProductCategoryRequestAutomationRulesInner.md)
12
12