@digital8/lighting-illusions-ts-sdk 0.0.588 → 0.0.590
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 +0 -4
- package/README.md +2 -7
- package/dist/apis/ProductCategoryApi.d.ts +1 -36
- package/dist/apis/ProductCategoryApi.js +0 -142
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/IndexProductChildRequest.d.ts +0 -2
- package/dist/models/IndexProductChildRequest.js +0 -2
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -2
- package/docs/ProductCategoryApi.md +0 -204
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +0 -137
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/IndexProductChildRequest.ts +0 -2
- package/src/models/index.ts +0 -2
- package/dist/models/AttachProductsProductCategoryRequest.d.ts +0 -32
- package/dist/models/AttachProductsProductCategoryRequest.js +0 -51
- package/dist/models/DetachProductsProductCategoryRequest.d.ts +0 -32
- package/dist/models/DetachProductsProductCategoryRequest.js +0 -51
- package/docs/AttachProductsProductCategoryRequest.md +0 -34
- package/docs/DetachProductsProductCategoryRequest.md +0 -34
- package/src/models/AttachProductsProductCategoryRequest.ts +0 -66
- package/src/models/DetachProductsProductCategoryRequest.ts +0 -66
package/.openapi-generator/FILES
CHANGED
|
@@ -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
|
|
@@ -289,7 +287,6 @@ src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts
|
|
|
289
287
|
src/models/AttachDocumentsProductChildSiteDetailRequest.ts
|
|
290
288
|
src/models/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.ts
|
|
291
289
|
src/models/AttachProductTypeAttributeRequest.ts
|
|
292
|
-
src/models/AttachProductsProductCategoryRequest.ts
|
|
293
290
|
src/models/AttributeFieldType.ts
|
|
294
291
|
src/models/AttributeListResource.ts
|
|
295
292
|
src/models/AttributeListResourceArrayResponse.ts
|
|
@@ -315,7 +312,6 @@ src/models/DetachAssetableOverlayTemplateRequest.ts
|
|
|
315
312
|
src/models/DetachDocumentablesDocumentRequest.ts
|
|
316
313
|
src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts
|
|
317
314
|
src/models/DetachDocumentsProductChildSiteDetailRequest.ts
|
|
318
|
-
src/models/DetachProductsProductCategoryRequest.ts
|
|
319
315
|
src/models/DocumentFileForUploadResource.ts
|
|
320
316
|
src/models/DocumentFileForUploadResourceArrayResponse.ts
|
|
321
317
|
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.590
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -107,10 +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
|
-
*ProductCategoryApi* | [**bulkDetachProductsProductCategory**](docs/ProductCategoryApi.md#bulkdetachproductsproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/bulk-detach-products | Auto-generated: bulkDetachProductsProductCategory
|
|
112
110
|
*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
|
|
114
111
|
*ProductCategoryApi* | [**getAllProductCategory**](docs/ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory
|
|
115
112
|
*ProductCategoryApi* | [**getChildrenProductCategory**](docs/ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory
|
|
116
113
|
*ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory
|
|
@@ -172,7 +169,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
172
169
|
- [AttachDocumentsProductChildSiteDetailRequest](docs/AttachDocumentsProductChildSiteDetailRequest.md)
|
|
173
170
|
- [AttachDocumentsProductChildSiteDetailRequestDocumentsInner](docs/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md)
|
|
174
171
|
- [AttachProductTypeAttributeRequest](docs/AttachProductTypeAttributeRequest.md)
|
|
175
|
-
- [AttachProductsProductCategoryRequest](docs/AttachProductsProductCategoryRequest.md)
|
|
176
172
|
- [AttributeFieldType](docs/AttributeFieldType.md)
|
|
177
173
|
- [AttributeListResource](docs/AttributeListResource.md)
|
|
178
174
|
- [AttributeListResourceArrayResponse](docs/AttributeListResourceArrayResponse.md)
|
|
@@ -198,7 +194,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
198
194
|
- [DetachDocumentablesDocumentRequest](docs/DetachDocumentablesDocumentRequest.md)
|
|
199
195
|
- [DetachDocumentablesDocumentRequestDocumentablesInner](docs/DetachDocumentablesDocumentRequestDocumentablesInner.md)
|
|
200
196
|
- [DetachDocumentsProductChildSiteDetailRequest](docs/DetachDocumentsProductChildSiteDetailRequest.md)
|
|
201
|
-
- [DetachProductsProductCategoryRequest](docs/DetachProductsProductCategoryRequest.md)
|
|
202
197
|
- [DocumentFileForUploadResource](docs/DocumentFileForUploadResource.md)
|
|
203
198
|
- [DocumentFileForUploadResourceArrayResponse](docs/DocumentFileForUploadResourceArrayResponse.md)
|
|
204
199
|
- [DocumentLiteResource](docs/DocumentLiteResource.md)
|
|
@@ -415,7 +410,7 @@ and is automatically generated by the
|
|
|
415
410
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
416
411
|
|
|
417
412
|
- API version: `1.0.0`
|
|
418
|
-
- Package version: `0.0.
|
|
413
|
+
- Package version: `0.0.590`
|
|
419
414
|
- Generator version: `7.18.0`
|
|
420
415
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
421
416
|
|
|
@@ -10,21 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface AttachProductsProductCategoryOperationRequest {
|
|
15
|
-
productCategory: number;
|
|
16
|
-
attachProductsProductCategoryRequest?: AttachProductsProductCategoryRequest;
|
|
17
|
-
}
|
|
18
|
-
export interface BulkDetachProductsProductCategoryRequest {
|
|
19
|
-
productCategory: number;
|
|
20
|
-
}
|
|
13
|
+
import type { GenericResponse, GetAllProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest, PreviewAutomationRulesResource, ProductCategoryHierarchyResourceArrayResponse, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
|
|
21
14
|
export interface DestroyProductCategoryRequest {
|
|
22
15
|
productCategory: number;
|
|
23
16
|
}
|
|
24
|
-
export interface DetachProductsProductCategoryOperationRequest {
|
|
25
|
-
productCategory: number;
|
|
26
|
-
detachProductsProductCategoryRequest?: DetachProductsProductCategoryRequest;
|
|
27
|
-
}
|
|
28
17
|
export interface GetAllProductCategoryOperationRequest {
|
|
29
18
|
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
30
19
|
}
|
|
@@ -52,22 +41,6 @@ export interface UpdateProductCategoryOperationRequest {
|
|
|
52
41
|
*
|
|
53
42
|
*/
|
|
54
43
|
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>;
|
|
71
44
|
/**
|
|
72
45
|
* Auto-generated: destroyProductCategory
|
|
73
46
|
*/
|
|
@@ -76,14 +49,6 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
76
49
|
* Auto-generated: destroyProductCategory
|
|
77
50
|
*/
|
|
78
51
|
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>;
|
|
87
52
|
/**
|
|
88
53
|
* Auto-generated: getAllProductCategory
|
|
89
54
|
*/
|
|
@@ -75,100 +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
|
-
/**
|
|
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
|
-
};
|
|
172
78
|
/**
|
|
173
79
|
* Auto-generated: destroyProductCategory
|
|
174
80
|
*/
|
|
@@ -215,54 +121,6 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
215
121
|
});
|
|
216
122
|
});
|
|
217
123
|
};
|
|
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
|
-
};
|
|
266
124
|
/**
|
|
267
125
|
* Auto-generated: getAllProductCategory
|
|
268
126
|
*/
|
|
@@ -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']),
|
|
@@ -116,8 +116,6 @@ 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";
|
|
121
119
|
readonly Document: "document";
|
|
122
120
|
readonly OverlayTemplate: "overlayTemplate";
|
|
123
121
|
readonly ProductType: "productType";
|
|
@@ -51,8 +51,6 @@ exports.IndexProductChildRequestRelatedTypeEnum = {
|
|
|
51
51
|
Attribute: 'attribute',
|
|
52
52
|
AttributeValue: 'attributeValue',
|
|
53
53
|
CompatibleProduct: 'compatibleProduct',
|
|
54
|
-
Category: 'category',
|
|
55
|
-
AutomatedCategory: 'automatedCategory',
|
|
56
54
|
Document: 'document',
|
|
57
55
|
OverlayTemplate: 'overlayTemplate',
|
|
58
56
|
ProductType: 'productType',
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -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);
|
|
@@ -4,10 +4,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
| [**attachProductsProductCategory**](ProductCategoryApi.md#attachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/attach-products | Auto-generated: attachProductsProductCategory |
|
|
8
|
-
| [**bulkDetachProductsProductCategory**](ProductCategoryApi.md#bulkdetachproductsproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/bulk-detach-products | Auto-generated: bulkDetachProductsProductCategory |
|
|
9
7
|
| [**destroyProductCategory**](ProductCategoryApi.md#destroyproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/delete | Auto-generated: destroyProductCategory |
|
|
10
|
-
| [**detachProductsProductCategory**](ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory |
|
|
11
8
|
| [**getAllProductCategory**](ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory |
|
|
12
9
|
| [**getChildrenProductCategory**](ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory |
|
|
13
10
|
| [**getHierarchyProductCategory**](ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory |
|
|
@@ -19,139 +16,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
19
16
|
|
|
20
17
|
|
|
21
18
|
|
|
22
|
-
## attachProductsProductCategory
|
|
23
|
-
|
|
24
|
-
> ProductCategoryResource attachProductsProductCategory(productCategory, attachProductsProductCategoryRequest)
|
|
25
|
-
|
|
26
|
-
Auto-generated: attachProductsProductCategory
|
|
27
|
-
|
|
28
|
-
### Example
|
|
29
|
-
|
|
30
|
-
```ts
|
|
31
|
-
import {
|
|
32
|
-
Configuration,
|
|
33
|
-
ProductCategoryApi,
|
|
34
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
35
|
-
import type { AttachProductsProductCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
36
|
-
|
|
37
|
-
async function example() {
|
|
38
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
39
|
-
const api = new ProductCategoryApi();
|
|
40
|
-
|
|
41
|
-
const body = {
|
|
42
|
-
// number | The id of the productCategory
|
|
43
|
-
productCategory: 56,
|
|
44
|
-
// AttachProductsProductCategoryRequest (optional)
|
|
45
|
-
attachProductsProductCategoryRequest: ...,
|
|
46
|
-
} satisfies AttachProductsProductCategoryOperationRequest;
|
|
47
|
-
|
|
48
|
-
try {
|
|
49
|
-
const data = await api.attachProductsProductCategory(body);
|
|
50
|
-
console.log(data);
|
|
51
|
-
} catch (error) {
|
|
52
|
-
console.error(error);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// Run the test
|
|
57
|
-
example().catch(console.error);
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### Parameters
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
| Name | Type | Description | Notes |
|
|
64
|
-
|------------- | ------------- | ------------- | -------------|
|
|
65
|
-
| **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
|
|
66
|
-
| **attachProductsProductCategoryRequest** | [AttachProductsProductCategoryRequest](AttachProductsProductCategoryRequest.md) | | [Optional] |
|
|
67
|
-
|
|
68
|
-
### Return type
|
|
69
|
-
|
|
70
|
-
[**ProductCategoryResource**](ProductCategoryResource.md)
|
|
71
|
-
|
|
72
|
-
### Authorization
|
|
73
|
-
|
|
74
|
-
No authorization required
|
|
75
|
-
|
|
76
|
-
### HTTP request headers
|
|
77
|
-
|
|
78
|
-
- **Content-Type**: `application/json`
|
|
79
|
-
- **Accept**: `application/json`
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
### HTTP response details
|
|
83
|
-
| Status code | Description | Response headers |
|
|
84
|
-
|-------------|-------------|------------------|
|
|
85
|
-
| **200** | Successful resource response | - |
|
|
86
|
-
|
|
87
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
## bulkDetachProductsProductCategory
|
|
91
|
-
|
|
92
|
-
> GenericResponse bulkDetachProductsProductCategory(productCategory)
|
|
93
|
-
|
|
94
|
-
Auto-generated: bulkDetachProductsProductCategory
|
|
95
|
-
|
|
96
|
-
### Example
|
|
97
|
-
|
|
98
|
-
```ts
|
|
99
|
-
import {
|
|
100
|
-
Configuration,
|
|
101
|
-
ProductCategoryApi,
|
|
102
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
103
|
-
import type { BulkDetachProductsProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
104
|
-
|
|
105
|
-
async function example() {
|
|
106
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
107
|
-
const api = new ProductCategoryApi();
|
|
108
|
-
|
|
109
|
-
const body = {
|
|
110
|
-
// number | The id of the productCategory
|
|
111
|
-
productCategory: 56,
|
|
112
|
-
} satisfies BulkDetachProductsProductCategoryRequest;
|
|
113
|
-
|
|
114
|
-
try {
|
|
115
|
-
const data = await api.bulkDetachProductsProductCategory(body);
|
|
116
|
-
console.log(data);
|
|
117
|
-
} catch (error) {
|
|
118
|
-
console.error(error);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// Run the test
|
|
123
|
-
example().catch(console.error);
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### Parameters
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
| Name | Type | Description | Notes |
|
|
130
|
-
|------------- | ------------- | ------------- | -------------|
|
|
131
|
-
| **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
|
|
132
|
-
|
|
133
|
-
### Return type
|
|
134
|
-
|
|
135
|
-
[**GenericResponse**](GenericResponse.md)
|
|
136
|
-
|
|
137
|
-
### Authorization
|
|
138
|
-
|
|
139
|
-
No authorization required
|
|
140
|
-
|
|
141
|
-
### HTTP request headers
|
|
142
|
-
|
|
143
|
-
- **Content-Type**: Not defined
|
|
144
|
-
- **Accept**: `application/json`
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
### HTTP response details
|
|
148
|
-
| Status code | Description | Response headers |
|
|
149
|
-
|-------------|-------------|------------------|
|
|
150
|
-
| **200** | \\JsonResponse | - |
|
|
151
|
-
|
|
152
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
153
|
-
|
|
154
|
-
|
|
155
19
|
## destroyProductCategory
|
|
156
20
|
|
|
157
21
|
> GenericResponse destroyProductCategory(productCategory)
|
|
@@ -217,74 +81,6 @@ No authorization required
|
|
|
217
81
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
218
82
|
|
|
219
83
|
|
|
220
|
-
## detachProductsProductCategory
|
|
221
|
-
|
|
222
|
-
> ProductCategoryResource detachProductsProductCategory(productCategory, detachProductsProductCategoryRequest)
|
|
223
|
-
|
|
224
|
-
Auto-generated: detachProductsProductCategory
|
|
225
|
-
|
|
226
|
-
### Example
|
|
227
|
-
|
|
228
|
-
```ts
|
|
229
|
-
import {
|
|
230
|
-
Configuration,
|
|
231
|
-
ProductCategoryApi,
|
|
232
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
233
|
-
import type { DetachProductsProductCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
234
|
-
|
|
235
|
-
async function example() {
|
|
236
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
237
|
-
const api = new ProductCategoryApi();
|
|
238
|
-
|
|
239
|
-
const body = {
|
|
240
|
-
// number | The id of the productCategory
|
|
241
|
-
productCategory: 56,
|
|
242
|
-
// DetachProductsProductCategoryRequest (optional)
|
|
243
|
-
detachProductsProductCategoryRequest: ...,
|
|
244
|
-
} satisfies DetachProductsProductCategoryOperationRequest;
|
|
245
|
-
|
|
246
|
-
try {
|
|
247
|
-
const data = await api.detachProductsProductCategory(body);
|
|
248
|
-
console.log(data);
|
|
249
|
-
} catch (error) {
|
|
250
|
-
console.error(error);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
// Run the test
|
|
255
|
-
example().catch(console.error);
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
### Parameters
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
| Name | Type | Description | Notes |
|
|
262
|
-
|------------- | ------------- | ------------- | -------------|
|
|
263
|
-
| **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
|
|
264
|
-
| **detachProductsProductCategoryRequest** | [DetachProductsProductCategoryRequest](DetachProductsProductCategoryRequest.md) | | [Optional] |
|
|
265
|
-
|
|
266
|
-
### Return type
|
|
267
|
-
|
|
268
|
-
[**ProductCategoryResource**](ProductCategoryResource.md)
|
|
269
|
-
|
|
270
|
-
### Authorization
|
|
271
|
-
|
|
272
|
-
No authorization required
|
|
273
|
-
|
|
274
|
-
### HTTP request headers
|
|
275
|
-
|
|
276
|
-
- **Content-Type**: `application/json`
|
|
277
|
-
- **Accept**: `application/json`
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
### HTTP response details
|
|
281
|
-
| Status code | Description | Response headers |
|
|
282
|
-
|-------------|-------------|------------------|
|
|
283
|
-
| **200** | Successful resource response | - |
|
|
284
|
-
|
|
285
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
286
|
-
|
|
287
|
-
|
|
288
84
|
## getAllProductCategory
|
|
289
85
|
|
|
290
86
|
> ProductCategoryLiteResourceArrayResponse getAllProductCategory(getAllProductCategoryRequest)
|
package/package.json
CHANGED
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
AttachProductsProductCategoryRequest,
|
|
19
|
-
DetachProductsProductCategoryRequest,
|
|
20
18
|
GenericResponse,
|
|
21
19
|
GetAllProductCategoryRequest,
|
|
22
20
|
IndexProductCategoryRequest,
|
|
@@ -30,10 +28,6 @@ import type {
|
|
|
30
28
|
UpdateProductCategoryRequest,
|
|
31
29
|
} from '../models/index';
|
|
32
30
|
import {
|
|
33
|
-
AttachProductsProductCategoryRequestFromJSON,
|
|
34
|
-
AttachProductsProductCategoryRequestToJSON,
|
|
35
|
-
DetachProductsProductCategoryRequestFromJSON,
|
|
36
|
-
DetachProductsProductCategoryRequestToJSON,
|
|
37
31
|
GenericResponseFromJSON,
|
|
38
32
|
GenericResponseToJSON,
|
|
39
33
|
GetAllProductCategoryRequestFromJSON,
|
|
@@ -58,24 +52,10 @@ import {
|
|
|
58
52
|
UpdateProductCategoryRequestToJSON,
|
|
59
53
|
} from '../models/index';
|
|
60
54
|
|
|
61
|
-
export interface AttachProductsProductCategoryOperationRequest {
|
|
62
|
-
productCategory: number;
|
|
63
|
-
attachProductsProductCategoryRequest?: AttachProductsProductCategoryRequest;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface BulkDetachProductsProductCategoryRequest {
|
|
67
|
-
productCategory: number;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
55
|
export interface DestroyProductCategoryRequest {
|
|
71
56
|
productCategory: number;
|
|
72
57
|
}
|
|
73
58
|
|
|
74
|
-
export interface DetachProductsProductCategoryOperationRequest {
|
|
75
|
-
productCategory: number;
|
|
76
|
-
detachProductsProductCategoryRequest?: DetachProductsProductCategoryRequest;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
59
|
export interface GetAllProductCategoryOperationRequest {
|
|
80
60
|
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
81
61
|
}
|
|
@@ -111,83 +91,6 @@ export interface UpdateProductCategoryOperationRequest {
|
|
|
111
91
|
*/
|
|
112
92
|
export class ProductCategoryApi extends runtime.BaseAPI {
|
|
113
93
|
|
|
114
|
-
/**
|
|
115
|
-
* Auto-generated: attachProductsProductCategory
|
|
116
|
-
*/
|
|
117
|
-
async attachProductsProductCategoryRaw(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
|
|
118
|
-
if (requestParameters['productCategory'] == null) {
|
|
119
|
-
throw new runtime.RequiredError(
|
|
120
|
-
'productCategory',
|
|
121
|
-
'Required parameter "productCategory" was null or undefined when calling attachProductsProductCategory().'
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const queryParameters: any = {};
|
|
126
|
-
|
|
127
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
128
|
-
|
|
129
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
let urlPath = `/admin-api/product-category/{productCategory}/attach-products`;
|
|
133
|
-
urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
|
|
134
|
-
|
|
135
|
-
const response = await this.request({
|
|
136
|
-
path: urlPath,
|
|
137
|
-
method: 'POST',
|
|
138
|
-
headers: headerParameters,
|
|
139
|
-
query: queryParameters,
|
|
140
|
-
body: AttachProductsProductCategoryRequestToJSON(requestParameters['attachProductsProductCategoryRequest']),
|
|
141
|
-
}, initOverrides);
|
|
142
|
-
|
|
143
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryResourceFromJSON(jsonValue));
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Auto-generated: attachProductsProductCategory
|
|
148
|
-
*/
|
|
149
|
-
async attachProductsProductCategory(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource> {
|
|
150
|
-
const response = await this.attachProductsProductCategoryRaw(requestParameters, initOverrides);
|
|
151
|
-
return await response.value();
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Auto-generated: bulkDetachProductsProductCategory
|
|
156
|
-
*/
|
|
157
|
-
async bulkDetachProductsProductCategoryRaw(requestParameters: BulkDetachProductsProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
158
|
-
if (requestParameters['productCategory'] == null) {
|
|
159
|
-
throw new runtime.RequiredError(
|
|
160
|
-
'productCategory',
|
|
161
|
-
'Required parameter "productCategory" was null or undefined when calling bulkDetachProductsProductCategory().'
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
const queryParameters: any = {};
|
|
166
|
-
|
|
167
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
let urlPath = `/admin-api/product-category/{productCategory}/bulk-detach-products`;
|
|
171
|
-
urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
|
|
172
|
-
|
|
173
|
-
const response = await this.request({
|
|
174
|
-
path: urlPath,
|
|
175
|
-
method: 'DELETE',
|
|
176
|
-
headers: headerParameters,
|
|
177
|
-
query: queryParameters,
|
|
178
|
-
}, initOverrides);
|
|
179
|
-
|
|
180
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Auto-generated: bulkDetachProductsProductCategory
|
|
185
|
-
*/
|
|
186
|
-
async bulkDetachProductsProductCategory(requestParameters: BulkDetachProductsProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
187
|
-
const response = await this.bulkDetachProductsProductCategoryRaw(requestParameters, initOverrides);
|
|
188
|
-
return await response.value();
|
|
189
|
-
}
|
|
190
|
-
|
|
191
94
|
/**
|
|
192
95
|
* Auto-generated: destroyProductCategory
|
|
193
96
|
*/
|
|
@@ -225,46 +128,6 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
225
128
|
return await response.value();
|
|
226
129
|
}
|
|
227
130
|
|
|
228
|
-
/**
|
|
229
|
-
* Auto-generated: detachProductsProductCategory
|
|
230
|
-
*/
|
|
231
|
-
async detachProductsProductCategoryRaw(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
|
|
232
|
-
if (requestParameters['productCategory'] == null) {
|
|
233
|
-
throw new runtime.RequiredError(
|
|
234
|
-
'productCategory',
|
|
235
|
-
'Required parameter "productCategory" was null or undefined when calling detachProductsProductCategory().'
|
|
236
|
-
);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
const queryParameters: any = {};
|
|
240
|
-
|
|
241
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
242
|
-
|
|
243
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
let urlPath = `/admin-api/product-category/{productCategory}/detach-products`;
|
|
247
|
-
urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
|
|
248
|
-
|
|
249
|
-
const response = await this.request({
|
|
250
|
-
path: urlPath,
|
|
251
|
-
method: 'POST',
|
|
252
|
-
headers: headerParameters,
|
|
253
|
-
query: queryParameters,
|
|
254
|
-
body: DetachProductsProductCategoryRequestToJSON(requestParameters['detachProductsProductCategoryRequest']),
|
|
255
|
-
}, initOverrides);
|
|
256
|
-
|
|
257
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryResourceFromJSON(jsonValue));
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Auto-generated: detachProductsProductCategory
|
|
262
|
-
*/
|
|
263
|
-
async detachProductsProductCategory(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource> {
|
|
264
|
-
const response = await this.detachProductsProductCategoryRaw(requestParameters, initOverrides);
|
|
265
|
-
return await response.value();
|
|
266
|
-
}
|
|
267
|
-
|
|
268
131
|
/**
|
|
269
132
|
* Auto-generated: getAllProductCategory
|
|
270
133
|
*/
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -124,8 +124,6 @@ export const IndexProductChildRequestRelatedTypeEnum = {
|
|
|
124
124
|
Attribute: 'attribute',
|
|
125
125
|
AttributeValue: 'attributeValue',
|
|
126
126
|
CompatibleProduct: 'compatibleProduct',
|
|
127
|
-
Category: 'category',
|
|
128
|
-
AutomatedCategory: 'automatedCategory',
|
|
129
127
|
Document: 'document',
|
|
130
128
|
OverlayTemplate: 'overlayTemplate',
|
|
131
129
|
ProductType: 'productType',
|
package/src/models/index.ts
CHANGED
|
@@ -14,7 +14,6 @@ export * from './AttachDocumentablesDocumentRequestDocumentablesInner';
|
|
|
14
14
|
export * from './AttachDocumentsProductChildSiteDetailRequest';
|
|
15
15
|
export * from './AttachDocumentsProductChildSiteDetailRequestDocumentsInner';
|
|
16
16
|
export * from './AttachProductTypeAttributeRequest';
|
|
17
|
-
export * from './AttachProductsProductCategoryRequest';
|
|
18
17
|
export * from './AttributeFieldType';
|
|
19
18
|
export * from './AttributeListResource';
|
|
20
19
|
export * from './AttributeListResourceArrayResponse';
|
|
@@ -40,7 +39,6 @@ export * from './DetachAssetableOverlayTemplateRequest';
|
|
|
40
39
|
export * from './DetachDocumentablesDocumentRequest';
|
|
41
40
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
42
41
|
export * from './DetachDocumentsProductChildSiteDetailRequest';
|
|
43
|
-
export * from './DetachProductsProductCategoryRequest';
|
|
44
42
|
export * from './DocumentFileForUploadResource';
|
|
45
43
|
export * from './DocumentFileForUploadResourceArrayResponse';
|
|
46
44
|
export * from './DocumentLiteResource';
|
|
@@ -1,32 +0,0 @@
|
|
|
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;
|
|
@@ -1,51 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
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;
|
|
@@ -1,51 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# AttachProductsProductCategoryRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`productChildIds` | Array<number>
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { AttachProductsProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"productChildIds": null,
|
|
19
|
-
} satisfies AttachProductsProductCategoryRequest
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as AttachProductsProductCategoryRequest
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# DetachProductsProductCategoryRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`productChildIds` | Array<number>
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { DetachProductsProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"productChildIds": null,
|
|
19
|
-
} satisfies DetachProductsProductCategoryRequest
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as DetachProductsProductCategoryRequest
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface AttachProductsProductCategoryRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface AttachProductsProductCategoryRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Array<number>}
|
|
25
|
-
* @memberof AttachProductsProductCategoryRequest
|
|
26
|
-
*/
|
|
27
|
-
productChildIds: Array<number>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the AttachProductsProductCategoryRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfAttachProductsProductCategoryRequest(value: object): value is AttachProductsProductCategoryRequest {
|
|
34
|
-
if (!('productChildIds' in value) || value['productChildIds'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function AttachProductsProductCategoryRequestFromJSON(json: any): AttachProductsProductCategoryRequest {
|
|
39
|
-
return AttachProductsProductCategoryRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function AttachProductsProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachProductsProductCategoryRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'productChildIds': json['product_child_ids'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function AttachProductsProductCategoryRequestToJSON(json: any): AttachProductsProductCategoryRequest {
|
|
53
|
-
return AttachProductsProductCategoryRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function AttachProductsProductCategoryRequestToJSONTyped(value?: AttachProductsProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'product_child_ids': value['productChildIds'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface DetachProductsProductCategoryRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface DetachProductsProductCategoryRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Array<number>}
|
|
25
|
-
* @memberof DetachProductsProductCategoryRequest
|
|
26
|
-
*/
|
|
27
|
-
productChildIds: Array<number>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the DetachProductsProductCategoryRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfDetachProductsProductCategoryRequest(value: object): value is DetachProductsProductCategoryRequest {
|
|
34
|
-
if (!('productChildIds' in value) || value['productChildIds'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function DetachProductsProductCategoryRequestFromJSON(json: any): DetachProductsProductCategoryRequest {
|
|
39
|
-
return DetachProductsProductCategoryRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function DetachProductsProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachProductsProductCategoryRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'productChildIds': json['product_child_ids'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function DetachProductsProductCategoryRequestToJSON(json: any): DetachProductsProductCategoryRequest {
|
|
53
|
-
return DetachProductsProductCategoryRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function DetachProductsProductCategoryRequestToJSONTyped(value?: DetachProductsProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'product_child_ids': value['productChildIds'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|