@digital8/lighting-illusions-ts-sdk 0.0.593 → 0.0.595
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 -0
- package/README.md +7 -2
- package/dist/apis/ProductCategoryApi.d.ts +36 -1
- package/dist/apis/ProductCategoryApi.js +142 -0
- 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/GetAllDocumentRequest.d.ts +6 -0
- package/dist/models/GetAllDocumentRequest.js +2 -0
- package/dist/models/GetAllProductChildRequest.d.ts +1 -1
- package/dist/models/GetAllProductChildRequest.js +3 -3
- package/dist/models/IndexDocumentRequest.d.ts +6 -0
- package/dist/models/IndexDocumentRequest.js +2 -0
- package/dist/models/IndexProductChildRequest.d.ts +3 -1
- package/dist/models/IndexProductChildRequest.js +5 -3
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/AttachProductsProductCategoryRequest.md +34 -0
- package/docs/DetachProductsProductCategoryRequest.md +34 -0
- package/docs/GetAllDocumentRequest.md +2 -0
- package/docs/IndexDocumentRequest.md +2 -0
- package/docs/ProductCategoryApi.md +204 -0
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +137 -0
- package/src/models/AttachProductsProductCategoryRequest.ts +66 -0
- package/src/models/DetachProductsProductCategoryRequest.ts +66 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllDocumentRequest.ts +8 -0
- package/src/models/GetAllProductChildRequest.ts +3 -3
- package/src/models/IndexDocumentRequest.ts +8 -0
- package/src/models/IndexProductChildRequest.ts +5 -3
- package/src/models/index.ts +2 -0
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
|
|
@@ -295,6 +297,7 @@ src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts
|
|
|
295
297
|
src/models/AttachDocumentsProductChildSiteDetailRequest.ts
|
|
296
298
|
src/models/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.ts
|
|
297
299
|
src/models/AttachProductTypeAttributeRequest.ts
|
|
300
|
+
src/models/AttachProductsProductCategoryRequest.ts
|
|
298
301
|
src/models/AttributeFieldType.ts
|
|
299
302
|
src/models/AttributeListResource.ts
|
|
300
303
|
src/models/AttributeListResourceArrayResponse.ts
|
|
@@ -320,6 +323,7 @@ src/models/DetachAssetableOverlayTemplateRequest.ts
|
|
|
320
323
|
src/models/DetachDocumentablesDocumentRequest.ts
|
|
321
324
|
src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts
|
|
322
325
|
src/models/DetachDocumentsProductChildSiteDetailRequest.ts
|
|
326
|
+
src/models/DetachProductsProductCategoryRequest.ts
|
|
323
327
|
src/models/DocumentFileForUploadResource.ts
|
|
324
328
|
src/models/DocumentFileForUploadResourceArrayResponse.ts
|
|
325
329
|
src/models/DocumentLiteResource.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.595
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -107,7 +107,10 @@ 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
|
+
*ProductCategoryApi* | [**bulkDetachProductsProductCategory**](docs/ProductCategoryApi.md#bulkdetachproductsproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/bulk-detach-products | Auto-generated: bulkDetachProductsProductCategory
|
|
110
112
|
*ProductCategoryApi* | [**destroyProductCategory**](docs/ProductCategoryApi.md#destroyproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/delete | Auto-generated: destroyProductCategory
|
|
113
|
+
*ProductCategoryApi* | [**detachProductsProductCategory**](docs/ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory
|
|
111
114
|
*ProductCategoryApi* | [**getAllProductCategory**](docs/ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory
|
|
112
115
|
*ProductCategoryApi* | [**getChildrenProductCategory**](docs/ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory
|
|
113
116
|
*ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory
|
|
@@ -169,6 +172,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
169
172
|
- [AttachDocumentsProductChildSiteDetailRequest](docs/AttachDocumentsProductChildSiteDetailRequest.md)
|
|
170
173
|
- [AttachDocumentsProductChildSiteDetailRequestDocumentsInner](docs/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md)
|
|
171
174
|
- [AttachProductTypeAttributeRequest](docs/AttachProductTypeAttributeRequest.md)
|
|
175
|
+
- [AttachProductsProductCategoryRequest](docs/AttachProductsProductCategoryRequest.md)
|
|
172
176
|
- [AttributeFieldType](docs/AttributeFieldType.md)
|
|
173
177
|
- [AttributeListResource](docs/AttributeListResource.md)
|
|
174
178
|
- [AttributeListResourceArrayResponse](docs/AttributeListResourceArrayResponse.md)
|
|
@@ -194,6 +198,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
194
198
|
- [DetachDocumentablesDocumentRequest](docs/DetachDocumentablesDocumentRequest.md)
|
|
195
199
|
- [DetachDocumentablesDocumentRequestDocumentablesInner](docs/DetachDocumentablesDocumentRequestDocumentablesInner.md)
|
|
196
200
|
- [DetachDocumentsProductChildSiteDetailRequest](docs/DetachDocumentsProductChildSiteDetailRequest.md)
|
|
201
|
+
- [DetachProductsProductCategoryRequest](docs/DetachProductsProductCategoryRequest.md)
|
|
197
202
|
- [DocumentFileForUploadResource](docs/DocumentFileForUploadResource.md)
|
|
198
203
|
- [DocumentFileForUploadResourceArrayResponse](docs/DocumentFileForUploadResourceArrayResponse.md)
|
|
199
204
|
- [DocumentLiteResource](docs/DocumentLiteResource.md)
|
|
@@ -418,7 +423,7 @@ and is automatically generated by the
|
|
|
418
423
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
419
424
|
|
|
420
425
|
- API version: `1.0.0`
|
|
421
|
-
- Package version: `0.0.
|
|
426
|
+
- Package version: `0.0.595`
|
|
422
427
|
- Generator version: `7.18.0`
|
|
423
428
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
424
429
|
|
|
@@ -10,10 +10,21 @@
|
|
|
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, PreviewAutomationRulesResource, ProductCategoryHierarchyResourceArrayResponse, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
|
|
13
|
+
import type { AttachProductsProductCategoryRequest, DetachProductsProductCategoryRequest, GenericResponse, GetAllProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest, PreviewAutomationRulesResource, ProductCategoryHierarchyResourceArrayResponse, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
|
|
14
|
+
export interface AttachProductsProductCategoryOperationRequest {
|
|
15
|
+
productCategory: number;
|
|
16
|
+
attachProductsProductCategoryRequest?: AttachProductsProductCategoryRequest;
|
|
17
|
+
}
|
|
18
|
+
export interface BulkDetachProductsProductCategoryRequest {
|
|
19
|
+
productCategory: number;
|
|
20
|
+
}
|
|
14
21
|
export interface DestroyProductCategoryRequest {
|
|
15
22
|
productCategory: number;
|
|
16
23
|
}
|
|
24
|
+
export interface DetachProductsProductCategoryOperationRequest {
|
|
25
|
+
productCategory: number;
|
|
26
|
+
detachProductsProductCategoryRequest?: DetachProductsProductCategoryRequest;
|
|
27
|
+
}
|
|
17
28
|
export interface GetAllProductCategoryOperationRequest {
|
|
18
29
|
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
19
30
|
}
|
|
@@ -41,6 +52,22 @@ export interface UpdateProductCategoryOperationRequest {
|
|
|
41
52
|
*
|
|
42
53
|
*/
|
|
43
54
|
export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
55
|
+
/**
|
|
56
|
+
* Auto-generated: attachProductsProductCategory
|
|
57
|
+
*/
|
|
58
|
+
attachProductsProductCategoryRaw(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>>;
|
|
59
|
+
/**
|
|
60
|
+
* Auto-generated: attachProductsProductCategory
|
|
61
|
+
*/
|
|
62
|
+
attachProductsProductCategory(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource>;
|
|
63
|
+
/**
|
|
64
|
+
* Auto-generated: bulkDetachProductsProductCategory
|
|
65
|
+
*/
|
|
66
|
+
bulkDetachProductsProductCategoryRaw(requestParameters: BulkDetachProductsProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
67
|
+
/**
|
|
68
|
+
* Auto-generated: bulkDetachProductsProductCategory
|
|
69
|
+
*/
|
|
70
|
+
bulkDetachProductsProductCategory(requestParameters: BulkDetachProductsProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
44
71
|
/**
|
|
45
72
|
* Auto-generated: destroyProductCategory
|
|
46
73
|
*/
|
|
@@ -49,6 +76,14 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
49
76
|
* Auto-generated: destroyProductCategory
|
|
50
77
|
*/
|
|
51
78
|
destroyProductCategory(requestParameters: DestroyProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* Auto-generated: detachProductsProductCategory
|
|
81
|
+
*/
|
|
82
|
+
detachProductsProductCategoryRaw(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>>;
|
|
83
|
+
/**
|
|
84
|
+
* Auto-generated: detachProductsProductCategory
|
|
85
|
+
*/
|
|
86
|
+
detachProductsProductCategory(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource>;
|
|
52
87
|
/**
|
|
53
88
|
* Auto-generated: getAllProductCategory
|
|
54
89
|
*/
|
|
@@ -75,6 +75,100 @@ 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
|
+
/**
|
|
127
|
+
* Auto-generated: bulkDetachProductsProductCategory
|
|
128
|
+
*/
|
|
129
|
+
ProductCategoryApi.prototype.bulkDetachProductsProductCategoryRaw = function (requestParameters, initOverrides) {
|
|
130
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
131
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
132
|
+
return __generator(this, function (_a) {
|
|
133
|
+
switch (_a.label) {
|
|
134
|
+
case 0:
|
|
135
|
+
if (requestParameters['productCategory'] == null) {
|
|
136
|
+
throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling bulkDetachProductsProductCategory().');
|
|
137
|
+
}
|
|
138
|
+
queryParameters = {};
|
|
139
|
+
headerParameters = {};
|
|
140
|
+
urlPath = "/admin-api/product-category/{productCategory}/bulk-detach-products";
|
|
141
|
+
urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
|
|
142
|
+
return [4 /*yield*/, this.request({
|
|
143
|
+
path: urlPath,
|
|
144
|
+
method: 'DELETE',
|
|
145
|
+
headers: headerParameters,
|
|
146
|
+
query: queryParameters,
|
|
147
|
+
}, initOverrides)];
|
|
148
|
+
case 1:
|
|
149
|
+
response = _a.sent();
|
|
150
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Auto-generated: bulkDetachProductsProductCategory
|
|
157
|
+
*/
|
|
158
|
+
ProductCategoryApi.prototype.bulkDetachProductsProductCategory = function (requestParameters, initOverrides) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
160
|
+
var response;
|
|
161
|
+
return __generator(this, function (_a) {
|
|
162
|
+
switch (_a.label) {
|
|
163
|
+
case 0: return [4 /*yield*/, this.bulkDetachProductsProductCategoryRaw(requestParameters, initOverrides)];
|
|
164
|
+
case 1:
|
|
165
|
+
response = _a.sent();
|
|
166
|
+
return [4 /*yield*/, response.value()];
|
|
167
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
};
|
|
78
172
|
/**
|
|
79
173
|
* Auto-generated: destroyProductCategory
|
|
80
174
|
*/
|
|
@@ -121,6 +215,54 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
121
215
|
});
|
|
122
216
|
});
|
|
123
217
|
};
|
|
218
|
+
/**
|
|
219
|
+
* Auto-generated: detachProductsProductCategory
|
|
220
|
+
*/
|
|
221
|
+
ProductCategoryApi.prototype.detachProductsProductCategoryRaw = function (requestParameters, initOverrides) {
|
|
222
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
223
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
224
|
+
return __generator(this, function (_a) {
|
|
225
|
+
switch (_a.label) {
|
|
226
|
+
case 0:
|
|
227
|
+
if (requestParameters['productCategory'] == null) {
|
|
228
|
+
throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling detachProductsProductCategory().');
|
|
229
|
+
}
|
|
230
|
+
queryParameters = {};
|
|
231
|
+
headerParameters = {};
|
|
232
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
233
|
+
urlPath = "/admin-api/product-category/{productCategory}/detach-products";
|
|
234
|
+
urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
|
|
235
|
+
return [4 /*yield*/, this.request({
|
|
236
|
+
path: urlPath,
|
|
237
|
+
method: 'POST',
|
|
238
|
+
headers: headerParameters,
|
|
239
|
+
query: queryParameters,
|
|
240
|
+
body: (0, index_1.DetachProductsProductCategoryRequestToJSON)(requestParameters['detachProductsProductCategoryRequest']),
|
|
241
|
+
}, initOverrides)];
|
|
242
|
+
case 1:
|
|
243
|
+
response = _a.sent();
|
|
244
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryResourceFromJSON)(jsonValue); })];
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* Auto-generated: detachProductsProductCategory
|
|
251
|
+
*/
|
|
252
|
+
ProductCategoryApi.prototype.detachProductsProductCategory = function (requestParameters, initOverrides) {
|
|
253
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
254
|
+
var response;
|
|
255
|
+
return __generator(this, function (_a) {
|
|
256
|
+
switch (_a.label) {
|
|
257
|
+
case 0: return [4 /*yield*/, this.detachProductsProductCategoryRaw(requestParameters, initOverrides)];
|
|
258
|
+
case 1:
|
|
259
|
+
response = _a.sent();
|
|
260
|
+
return [4 /*yield*/, response.value()];
|
|
261
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
});
|
|
265
|
+
};
|
|
124
266
|
/**
|
|
125
267
|
* Auto-generated: getAllProductCategory
|
|
126
268
|
*/
|
|
@@ -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
|
+
productChildIds: 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 (!('productChildIds' in value) || value['productChildIds'] === 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
|
+
'productChildIds': json['product_child_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_ids': value['productChildIds'],
|
|
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
|
+
productChildIds: 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 (!('productChildIds' in value) || value['productChildIds'] === 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
|
+
'productChildIds': json['product_child_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_ids': value['productChildIds'],
|
|
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']),
|
|
@@ -62,6 +62,7 @@ function GetAllDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
62
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
63
63
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
64
64
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
65
|
+
'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
68
|
function GetAllDocumentRequestToJSON(json) {
|
|
@@ -79,5 +80,6 @@ function GetAllDocumentRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
79
80
|
'related_id': value['relatedId'],
|
|
80
81
|
'related_type': value['relatedType'],
|
|
81
82
|
'includes_relations': value['includesRelations'],
|
|
83
|
+
'sites-id': value['sitesId'],
|
|
82
84
|
};
|
|
83
85
|
}
|
|
@@ -81,7 +81,7 @@ export declare const GetAllProductChildRequestSortByEnum: {
|
|
|
81
81
|
readonly SiteDetailsSlug: "siteDetails-slug";
|
|
82
82
|
readonly Sku: "sku";
|
|
83
83
|
readonly Model: "model";
|
|
84
|
-
readonly NetsuiteSyncNetsuiteId: "
|
|
84
|
+
readonly NetsuiteSyncNetsuiteId: "netsuiteSync-netsuite_id";
|
|
85
85
|
readonly NewArrivalStartDate: "new_arrival_start_date";
|
|
86
86
|
readonly NewArrivalEndDate: "new_arrival_end_date";
|
|
87
87
|
readonly CreatedAt: "created_at";
|
|
@@ -30,7 +30,7 @@ exports.GetAllProductChildRequestSortByEnum = {
|
|
|
30
30
|
SiteDetailsSlug: 'siteDetails-slug',
|
|
31
31
|
Sku: 'sku',
|
|
32
32
|
Model: 'model',
|
|
33
|
-
NetsuiteSyncNetsuiteId: '
|
|
33
|
+
NetsuiteSyncNetsuiteId: 'netsuiteSync-netsuite_id',
|
|
34
34
|
NewArrivalStartDate: 'new_arrival_start_date',
|
|
35
35
|
NewArrivalEndDate: 'new_arrival_end_date',
|
|
36
36
|
CreatedAt: 'created_at',
|
|
@@ -74,7 +74,7 @@ function GetAllProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
74
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
75
75
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
76
76
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
77
|
-
'netsuiteSyncHasNetsuiteId': json['
|
|
77
|
+
'netsuiteSyncHasNetsuiteId': json['netsuiteSync-has_netsuite_id'] == null ? undefined : json['netsuiteSync-has_netsuite_id'],
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
function GetAllProductChildRequestToJSON(json) {
|
|
@@ -94,6 +94,6 @@ function GetAllProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
94
94
|
'includes_relations': value['includesRelations'],
|
|
95
95
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
96
96
|
'is_disabled': value['isDisabled'],
|
|
97
|
-
'
|
|
97
|
+
'netsuiteSync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
|
|
98
98
|
};
|
|
99
99
|
}
|
|
@@ -61,6 +61,7 @@ function IndexDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
61
|
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
62
62
|
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
63
63
|
'page': json['page'] == null ? undefined : json['page'],
|
|
64
|
+
'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
|
|
64
65
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
65
66
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
66
67
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -80,6 +81,7 @@ function IndexDocumentRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
80
81
|
'sortDirection': value['sortDirection'],
|
|
81
82
|
'per_page': value['perPage'],
|
|
82
83
|
'page': value['page'],
|
|
84
|
+
'sites-id': value['sitesId'],
|
|
83
85
|
'related_id': value['relatedId'],
|
|
84
86
|
'related_type': value['relatedType'],
|
|
85
87
|
'includes_relations': value['includesRelations'],
|
|
@@ -93,7 +93,7 @@ export declare const IndexProductChildRequestSortByEnum: {
|
|
|
93
93
|
readonly SiteDetailsSlug: "siteDetails-slug";
|
|
94
94
|
readonly Sku: "sku";
|
|
95
95
|
readonly Model: "model";
|
|
96
|
-
readonly NetsuiteSyncNetsuiteId: "
|
|
96
|
+
readonly NetsuiteSyncNetsuiteId: "netsuiteSync-netsuite_id";
|
|
97
97
|
readonly NewArrivalStartDate: "new_arrival_start_date";
|
|
98
98
|
readonly NewArrivalEndDate: "new_arrival_end_date";
|
|
99
99
|
readonly CreatedAt: "created_at";
|
|
@@ -116,6 +116,8 @@ export declare const IndexProductChildRequestRelatedTypeEnum: {
|
|
|
116
116
|
readonly Attribute: "attribute";
|
|
117
117
|
readonly AttributeValue: "attributeValue";
|
|
118
118
|
readonly CompatibleProduct: "compatibleProduct";
|
|
119
|
+
readonly Category: "category";
|
|
120
|
+
readonly AutomatedCategory: "automatedCategory";
|
|
119
121
|
readonly Document: "document";
|
|
120
122
|
readonly OverlayTemplate: "overlayTemplate";
|
|
121
123
|
readonly ProductType: "productType";
|
|
@@ -30,7 +30,7 @@ exports.IndexProductChildRequestSortByEnum = {
|
|
|
30
30
|
SiteDetailsSlug: 'siteDetails-slug',
|
|
31
31
|
Sku: 'sku',
|
|
32
32
|
Model: 'model',
|
|
33
|
-
NetsuiteSyncNetsuiteId: '
|
|
33
|
+
NetsuiteSyncNetsuiteId: 'netsuiteSync-netsuite_id',
|
|
34
34
|
NewArrivalStartDate: 'new_arrival_start_date',
|
|
35
35
|
NewArrivalEndDate: 'new_arrival_end_date',
|
|
36
36
|
CreatedAt: 'created_at',
|
|
@@ -51,6 +51,8 @@ exports.IndexProductChildRequestRelatedTypeEnum = {
|
|
|
51
51
|
Attribute: 'attribute',
|
|
52
52
|
AttributeValue: 'attributeValue',
|
|
53
53
|
CompatibleProduct: 'compatibleProduct',
|
|
54
|
+
Category: 'category',
|
|
55
|
+
AutomatedCategory: 'automatedCategory',
|
|
54
56
|
Document: 'document',
|
|
55
57
|
OverlayTemplate: 'overlayTemplate',
|
|
56
58
|
ProductType: 'productType',
|
|
@@ -79,7 +81,7 @@ function IndexProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
81
|
'page': json['page'] == null ? undefined : json['page'],
|
|
80
82
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
81
83
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
82
|
-
'netsuiteSyncHasNetsuiteId': json['
|
|
84
|
+
'netsuiteSyncHasNetsuiteId': json['netsuiteSync-has_netsuite_id'] == null ? undefined : json['netsuiteSync-has_netsuite_id'],
|
|
83
85
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
84
86
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
85
87
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -101,7 +103,7 @@ function IndexProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
101
103
|
'page': value['page'],
|
|
102
104
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
103
105
|
'is_disabled': value['isDisabled'],
|
|
104
|
-
'
|
|
106
|
+
'netsuiteSync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
|
|
105
107
|
'related_id': value['relatedId'],
|
|
106
108
|
'related_type': value['relatedType'],
|
|
107
109
|
'includes_relations': value['includesRelations'],
|