@digital8/lighting-illusions-ts-sdk 0.0.568 → 0.0.569
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.
- package/.openapi-generator/FILES +4 -4
- package/README.md +6 -4
- package/dist/apis/ProductCategoryApi.d.ts +27 -3
- package/dist/apis/ProductCategoryApi.js +97 -1
- package/dist/models/AttachProductsProductCategoryRequest.d.ts +32 -0
- package/dist/models/AttachProductsProductCategoryRequest.js +51 -0
- package/dist/models/DetachProductsProductCategoryRequest.d.ts +32 -0
- package/dist/models/DetachProductsProductCategoryRequest.js +51 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/PreviewAutomationRulesProductCategoryRequest.d.ts +2 -2
- package/dist/models/ProductCategoryListResource.d.ts +0 -6
- package/dist/models/ProductCategoryListResource.js +0 -4
- package/dist/models/ProductRating.d.ts +0 -1
- package/dist/models/ProductRating.js +1 -2
- package/dist/models/ProductSearchResultResource.d.ts +0 -6
- package/dist/models/ProductSearchResultResource.js +0 -4
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/docs/{PreviewAutomationRulesResource.md → AttachProductsProductCategoryRequest.md} +6 -8
- package/docs/{PreviewAutomationRulesResourceArrayResponse.md → DetachProductsProductCategoryRequest.md} +6 -6
- package/docs/PreviewAutomationRulesProductCategoryRequest.md +1 -1
- package/docs/ProductCategoryApi.md +141 -3
- package/docs/ProductCategoryListResource.md +0 -2
- package/docs/ProductSearchResultResource.md +0 -2
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +99 -6
- package/src/models/AttachProductsProductCategoryRequest.ts +66 -0
- package/src/models/DetachProductsProductCategoryRequest.ts +66 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/PreviewAutomationRulesProductCategoryRequest.ts +2 -2
- package/src/models/ProductCategoryListResource.ts +0 -9
- package/src/models/ProductRating.ts +1 -2
- package/src/models/ProductSearchResultResource.ts +0 -9
- package/src/models/index.ts +2 -2
- package/dist/models/PreviewAutomationRulesResource.d.ts +0 -38
- package/dist/models/PreviewAutomationRulesResource.js +0 -55
- package/dist/models/PreviewAutomationRulesResourceArrayResponse.d.ts +0 -33
- package/dist/models/PreviewAutomationRulesResourceArrayResponse.js +0 -50
- package/src/models/PreviewAutomationRulesResource.ts +0 -75
- package/src/models/PreviewAutomationRulesResourceArrayResponse.ts +0 -73
package/.openapi-generator/FILES
CHANGED
|
@@ -17,6 +17,7 @@ docs/AttachDocumentablesDocumentRequestDocumentablesInner.md
|
|
|
17
17
|
docs/AttachDocumentsProductChildSiteDetailRequest.md
|
|
18
18
|
docs/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md
|
|
19
19
|
docs/AttachProductTypeAttributeRequest.md
|
|
20
|
+
docs/AttachProductsProductCategoryRequest.md
|
|
20
21
|
docs/AttributeApi.md
|
|
21
22
|
docs/AttributeFieldType.md
|
|
22
23
|
docs/AttributeListResource.md
|
|
@@ -43,6 +44,7 @@ docs/DetachAssetableOverlayTemplateRequest.md
|
|
|
43
44
|
docs/DetachDocumentablesDocumentRequest.md
|
|
44
45
|
docs/DetachDocumentablesDocumentRequestDocumentablesInner.md
|
|
45
46
|
docs/DetachDocumentsProductChildSiteDetailRequest.md
|
|
47
|
+
docs/DetachProductsProductCategoryRequest.md
|
|
46
48
|
docs/DocumentApi.md
|
|
47
49
|
docs/DocumentFileForUploadResource.md
|
|
48
50
|
docs/DocumentFileForUploadResourceArrayResponse.md
|
|
@@ -133,8 +135,6 @@ docs/PaginatedTagLiteResourceResponse.md
|
|
|
133
135
|
docs/PaginatedTagResourceResponse.md
|
|
134
136
|
docs/PagingMetadata.md
|
|
135
137
|
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,6 +287,7 @@ 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
|
|
290
291
|
src/models/AttributeFieldType.ts
|
|
291
292
|
src/models/AttributeListResource.ts
|
|
292
293
|
src/models/AttributeListResourceArrayResponse.ts
|
|
@@ -312,6 +313,7 @@ src/models/DetachAssetableOverlayTemplateRequest.ts
|
|
|
312
313
|
src/models/DetachDocumentablesDocumentRequest.ts
|
|
313
314
|
src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts
|
|
314
315
|
src/models/DetachDocumentsProductChildSiteDetailRequest.ts
|
|
316
|
+
src/models/DetachProductsProductCategoryRequest.ts
|
|
315
317
|
src/models/DocumentFileForUploadResource.ts
|
|
316
318
|
src/models/DocumentFileForUploadResourceArrayResponse.ts
|
|
317
319
|
src/models/DocumentLiteResource.ts
|
|
@@ -398,8 +400,6 @@ src/models/PaginatedTagLiteResourceResponse.ts
|
|
|
398
400
|
src/models/PaginatedTagResourceResponse.ts
|
|
399
401
|
src/models/PagingMetadata.ts
|
|
400
402
|
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.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.569
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -107,7 +107,9 @@ 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
|
|
110
111
|
*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
|
|
111
113
|
*ProductCategoryApi* | [**getAllProductCategory**](docs/ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory
|
|
112
114
|
*ProductCategoryApi* | [**getChildrenProductCategory**](docs/ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory
|
|
113
115
|
*ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory
|
|
@@ -169,6 +171,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
169
171
|
- [AttachDocumentsProductChildSiteDetailRequest](docs/AttachDocumentsProductChildSiteDetailRequest.md)
|
|
170
172
|
- [AttachDocumentsProductChildSiteDetailRequestDocumentsInner](docs/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md)
|
|
171
173
|
- [AttachProductTypeAttributeRequest](docs/AttachProductTypeAttributeRequest.md)
|
|
174
|
+
- [AttachProductsProductCategoryRequest](docs/AttachProductsProductCategoryRequest.md)
|
|
172
175
|
- [AttributeFieldType](docs/AttributeFieldType.md)
|
|
173
176
|
- [AttributeListResource](docs/AttributeListResource.md)
|
|
174
177
|
- [AttributeListResourceArrayResponse](docs/AttributeListResourceArrayResponse.md)
|
|
@@ -194,6 +197,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
194
197
|
- [DetachDocumentablesDocumentRequest](docs/DetachDocumentablesDocumentRequest.md)
|
|
195
198
|
- [DetachDocumentablesDocumentRequestDocumentablesInner](docs/DetachDocumentablesDocumentRequestDocumentablesInner.md)
|
|
196
199
|
- [DetachDocumentsProductChildSiteDetailRequest](docs/DetachDocumentsProductChildSiteDetailRequest.md)
|
|
200
|
+
- [DetachProductsProductCategoryRequest](docs/DetachProductsProductCategoryRequest.md)
|
|
197
201
|
- [DocumentFileForUploadResource](docs/DocumentFileForUploadResource.md)
|
|
198
202
|
- [DocumentFileForUploadResourceArrayResponse](docs/DocumentFileForUploadResourceArrayResponse.md)
|
|
199
203
|
- [DocumentLiteResource](docs/DocumentLiteResource.md)
|
|
@@ -280,8 +284,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
280
284
|
- [PaginatedTagResourceResponse](docs/PaginatedTagResourceResponse.md)
|
|
281
285
|
- [PagingMetadata](docs/PagingMetadata.md)
|
|
282
286
|
- [PreviewAutomationRulesProductCategoryRequest](docs/PreviewAutomationRulesProductCategoryRequest.md)
|
|
283
|
-
- [PreviewAutomationRulesResource](docs/PreviewAutomationRulesResource.md)
|
|
284
|
-
- [PreviewAutomationRulesResourceArrayResponse](docs/PreviewAutomationRulesResourceArrayResponse.md)
|
|
285
287
|
- [ProductAggregationResource](docs/ProductAggregationResource.md)
|
|
286
288
|
- [ProductAggregationResourceArrayResponse](docs/ProductAggregationResourceArrayResponse.md)
|
|
287
289
|
- [ProductCategoryHierarchyResource](docs/ProductCategoryHierarchyResource.md)
|
|
@@ -410,7 +412,7 @@ and is automatically generated by the
|
|
|
410
412
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
411
413
|
|
|
412
414
|
- API version: `1.0.0`
|
|
413
|
-
- Package version: `0.0.
|
|
415
|
+
- Package version: `0.0.569`
|
|
414
416
|
- Generator version: `7.18.0`
|
|
415
417
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
416
418
|
|
|
@@ -10,10 +10,18 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GenericResponse, GetAllProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest,
|
|
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
|
+
}
|
|
14
18
|
export interface DestroyProductCategoryRequest {
|
|
15
19
|
productCategory: number;
|
|
16
20
|
}
|
|
21
|
+
export interface DetachProductsProductCategoryOperationRequest {
|
|
22
|
+
productCategory: number;
|
|
23
|
+
detachProductsProductCategoryRequest?: DetachProductsProductCategoryRequest;
|
|
24
|
+
}
|
|
17
25
|
export interface GetAllProductCategoryOperationRequest {
|
|
18
26
|
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
19
27
|
}
|
|
@@ -41,6 +49,14 @@ export interface UpdateProductCategoryOperationRequest {
|
|
|
41
49
|
*
|
|
42
50
|
*/
|
|
43
51
|
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>;
|
|
44
60
|
/**
|
|
45
61
|
* Auto-generated: destroyProductCategory
|
|
46
62
|
*/
|
|
@@ -49,6 +65,14 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
49
65
|
* Auto-generated: destroyProductCategory
|
|
50
66
|
*/
|
|
51
67
|
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>;
|
|
52
76
|
/**
|
|
53
77
|
* Auto-generated: getAllProductCategory
|
|
54
78
|
*/
|
|
@@ -84,11 +108,11 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
84
108
|
/**
|
|
85
109
|
* Auto-generated: previewAutomationRulesProductCategory
|
|
86
110
|
*/
|
|
87
|
-
previewAutomationRulesProductCategoryRaw(requestParameters: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
111
|
+
previewAutomationRulesProductCategoryRaw(requestParameters: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
88
112
|
/**
|
|
89
113
|
* Auto-generated: previewAutomationRulesProductCategory
|
|
90
114
|
*/
|
|
91
|
-
previewAutomationRulesProductCategory(requestParameters?: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
115
|
+
previewAutomationRulesProductCategory(requestParameters?: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
92
116
|
/**
|
|
93
117
|
* Auto-generated: showProductCategory
|
|
94
118
|
*/
|
|
@@ -75,6 +75,54 @@ 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
|
+
};
|
|
78
126
|
/**
|
|
79
127
|
* Auto-generated: destroyProductCategory
|
|
80
128
|
*/
|
|
@@ -121,6 +169,54 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
121
169
|
});
|
|
122
170
|
});
|
|
123
171
|
};
|
|
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
|
+
};
|
|
124
220
|
/**
|
|
125
221
|
* Auto-generated: getAllProductCategory
|
|
126
222
|
*/
|
|
@@ -323,7 +419,7 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
323
419
|
}, initOverrides)];
|
|
324
420
|
case 1:
|
|
325
421
|
response = _a.sent();
|
|
326
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
422
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
327
423
|
}
|
|
328
424
|
});
|
|
329
425
|
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AttachProductsProductCategoryRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AttachProductsProductCategoryRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof AttachProductsProductCategoryRequest
|
|
22
|
+
*/
|
|
23
|
+
productChildSiteDetailIds: Array<number>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AttachProductsProductCategoryRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAttachProductsProductCategoryRequest(value: object): value is AttachProductsProductCategoryRequest;
|
|
29
|
+
export declare function AttachProductsProductCategoryRequestFromJSON(json: any): AttachProductsProductCategoryRequest;
|
|
30
|
+
export declare function AttachProductsProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachProductsProductCategoryRequest;
|
|
31
|
+
export declare function AttachProductsProductCategoryRequestToJSON(json: any): AttachProductsProductCategoryRequest;
|
|
32
|
+
export declare function AttachProductsProductCategoryRequestToJSONTyped(value?: AttachProductsProductCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfAttachProductsProductCategoryRequest = instanceOfAttachProductsProductCategoryRequest;
|
|
17
|
+
exports.AttachProductsProductCategoryRequestFromJSON = AttachProductsProductCategoryRequestFromJSON;
|
|
18
|
+
exports.AttachProductsProductCategoryRequestFromJSONTyped = AttachProductsProductCategoryRequestFromJSONTyped;
|
|
19
|
+
exports.AttachProductsProductCategoryRequestToJSON = AttachProductsProductCategoryRequestToJSON;
|
|
20
|
+
exports.AttachProductsProductCategoryRequestToJSONTyped = AttachProductsProductCategoryRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AttachProductsProductCategoryRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAttachProductsProductCategoryRequest(value) {
|
|
25
|
+
if (!('productChildSiteDetailIds' in value) || value['productChildSiteDetailIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AttachProductsProductCategoryRequestFromJSON(json) {
|
|
30
|
+
return AttachProductsProductCategoryRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AttachProductsProductCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'productChildSiteDetailIds': json['product_child_site_detail_ids'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AttachProductsProductCategoryRequestToJSON(json) {
|
|
41
|
+
return AttachProductsProductCategoryRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AttachProductsProductCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'product_child_site_detail_ids': value['productChildSiteDetailIds'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DetachProductsProductCategoryRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DetachProductsProductCategoryRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof DetachProductsProductCategoryRequest
|
|
22
|
+
*/
|
|
23
|
+
productChildSiteDetailIds: Array<number>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the DetachProductsProductCategoryRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfDetachProductsProductCategoryRequest(value: object): value is DetachProductsProductCategoryRequest;
|
|
29
|
+
export declare function DetachProductsProductCategoryRequestFromJSON(json: any): DetachProductsProductCategoryRequest;
|
|
30
|
+
export declare function DetachProductsProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachProductsProductCategoryRequest;
|
|
31
|
+
export declare function DetachProductsProductCategoryRequestToJSON(json: any): DetachProductsProductCategoryRequest;
|
|
32
|
+
export declare function DetachProductsProductCategoryRequestToJSONTyped(value?: DetachProductsProductCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfDetachProductsProductCategoryRequest = instanceOfDetachProductsProductCategoryRequest;
|
|
17
|
+
exports.DetachProductsProductCategoryRequestFromJSON = DetachProductsProductCategoryRequestFromJSON;
|
|
18
|
+
exports.DetachProductsProductCategoryRequestFromJSONTyped = DetachProductsProductCategoryRequestFromJSONTyped;
|
|
19
|
+
exports.DetachProductsProductCategoryRequestToJSON = DetachProductsProductCategoryRequestToJSON;
|
|
20
|
+
exports.DetachProductsProductCategoryRequestToJSONTyped = DetachProductsProductCategoryRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DetachProductsProductCategoryRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDetachProductsProductCategoryRequest(value) {
|
|
25
|
+
if (!('productChildSiteDetailIds' in value) || value['productChildSiteDetailIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DetachProductsProductCategoryRequestFromJSON(json) {
|
|
30
|
+
return DetachProductsProductCategoryRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DetachProductsProductCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'productChildSiteDetailIds': json['product_child_site_detail_ids'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function DetachProductsProductCategoryRequestToJSON(json) {
|
|
41
|
+
return DetachProductsProductCategoryRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function DetachProductsProductCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'product_child_site_detail_ids': value['productChildSiteDetailIds'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -18,10 +18,10 @@ import type { StoreProductCategoryRequestAutomationRulesInner } from './StorePro
|
|
|
18
18
|
export interface PreviewAutomationRulesProductCategoryRequest {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {string}
|
|
22
22
|
* @memberof PreviewAutomationRulesProductCategoryRequest
|
|
23
23
|
*/
|
|
24
|
-
siteId:
|
|
24
|
+
siteId: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
@@ -52,12 +52,6 @@ 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;
|
|
61
55
|
/**
|
|
62
56
|
*
|
|
63
57
|
* @type {number}
|
|
@@ -33,8 +33,6 @@ 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;
|
|
38
36
|
if (!('productCount' in value) || value['productCount'] === undefined)
|
|
39
37
|
return false;
|
|
40
38
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -55,7 +53,6 @@ function ProductCategoryListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
53
|
'isDisabled': json['isDisabled'],
|
|
56
54
|
'isAutomated': json['isAutomated'],
|
|
57
55
|
'hasChildren': json['hasChildren'],
|
|
58
|
-
'isParent': json['isParent'],
|
|
59
56
|
'productCount': json['productCount'],
|
|
60
57
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
61
58
|
};
|
|
@@ -75,7 +72,6 @@ function ProductCategoryListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
75
72
|
'isDisabled': value['isDisabled'],
|
|
76
73
|
'isAutomated': value['isAutomated'],
|
|
77
74
|
'hasChildren': value['hasChildren'],
|
|
78
|
-
'isParent': value['isParent'],
|
|
79
75
|
'productCount': value['productCount'],
|
|
80
76
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
81
77
|
};
|
|
@@ -17,7 +17,6 @@ export declare const ProductRating: {
|
|
|
17
17
|
readonly _5: "5";
|
|
18
18
|
readonly _4: "4";
|
|
19
19
|
readonly _3: "3";
|
|
20
|
-
readonly _2: "2";
|
|
21
20
|
};
|
|
22
21
|
export type ProductRating = typeof ProductRating[keyof typeof ProductRating];
|
|
23
22
|
export declare function instanceOfProductRating(value: any): boolean;
|
|
@@ -87,12 +87,6 @@ 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;
|
|
96
90
|
/**
|
|
97
91
|
*
|
|
98
92
|
* @type {number}
|
|
@@ -44,8 +44,6 @@ 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;
|
|
49
47
|
if (!('supplierId' in value) || value['supplierId'] === undefined)
|
|
50
48
|
return false;
|
|
51
49
|
if (!('availability' in value) || value['availability'] === undefined)
|
|
@@ -74,7 +72,6 @@ function ProductSearchResultResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
72
|
'labelDetails': json['labelDetails'],
|
|
75
73
|
'categories': json['categories'],
|
|
76
74
|
'supplierName': json['supplierName'],
|
|
77
|
-
'supplierLogo': json['supplierLogo'],
|
|
78
75
|
'supplierId': json['supplierId'],
|
|
79
76
|
'availability': json['availability'],
|
|
80
77
|
'wishlisted': json['wishlisted'],
|
|
@@ -101,7 +98,6 @@ function ProductSearchResultResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
101
98
|
'labelDetails': value['labelDetails'],
|
|
102
99
|
'categories': value['categories'],
|
|
103
100
|
'supplierName': value['supplierName'],
|
|
104
|
-
'supplierLogo': value['supplierLogo'],
|
|
105
101
|
'supplierId': value['supplierId'],
|
|
106
102
|
'availability': value['availability'],
|
|
107
103
|
'wishlisted': value['wishlisted'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './AttachDocumentablesDocumentRequestDocumentablesInner';
|
|
|
12
12
|
export * from './AttachDocumentsProductChildSiteDetailRequest';
|
|
13
13
|
export * from './AttachDocumentsProductChildSiteDetailRequestDocumentsInner';
|
|
14
14
|
export * from './AttachProductTypeAttributeRequest';
|
|
15
|
+
export * from './AttachProductsProductCategoryRequest';
|
|
15
16
|
export * from './AttributeFieldType';
|
|
16
17
|
export * from './AttributeListResource';
|
|
17
18
|
export * from './AttributeListResourceArrayResponse';
|
|
@@ -37,6 +38,7 @@ export * from './DetachAssetableOverlayTemplateRequest';
|
|
|
37
38
|
export * from './DetachDocumentablesDocumentRequest';
|
|
38
39
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
39
40
|
export * from './DetachDocumentsProductChildSiteDetailRequest';
|
|
41
|
+
export * from './DetachProductsProductCategoryRequest';
|
|
40
42
|
export * from './DocumentFileForUploadResource';
|
|
41
43
|
export * from './DocumentFileForUploadResourceArrayResponse';
|
|
42
44
|
export * from './DocumentLiteResource';
|
|
@@ -123,8 +125,6 @@ export * from './PaginatedTagLiteResourceResponse';
|
|
|
123
125
|
export * from './PaginatedTagResourceResponse';
|
|
124
126
|
export * from './PagingMetadata';
|
|
125
127
|
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';
|
package/dist/models/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __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);
|
|
33
34
|
__exportStar(require("./AttributeFieldType"), exports);
|
|
34
35
|
__exportStar(require("./AttributeListResource"), exports);
|
|
35
36
|
__exportStar(require("./AttributeListResourceArrayResponse"), exports);
|
|
@@ -55,6 +56,7 @@ __exportStar(require("./DetachAssetableOverlayTemplateRequest"), exports);
|
|
|
55
56
|
__exportStar(require("./DetachDocumentablesDocumentRequest"), exports);
|
|
56
57
|
__exportStar(require("./DetachDocumentablesDocumentRequestDocumentablesInner"), exports);
|
|
57
58
|
__exportStar(require("./DetachDocumentsProductChildSiteDetailRequest"), exports);
|
|
59
|
+
__exportStar(require("./DetachProductsProductCategoryRequest"), exports);
|
|
58
60
|
__exportStar(require("./DocumentFileForUploadResource"), exports);
|
|
59
61
|
__exportStar(require("./DocumentFileForUploadResourceArrayResponse"), exports);
|
|
60
62
|
__exportStar(require("./DocumentLiteResource"), exports);
|
|
@@ -141,8 +143,6 @@ __exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
|
141
143
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
142
144
|
__exportStar(require("./PagingMetadata"), exports);
|
|
143
145
|
__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);
|