@digital8/lighting-illusions-ts-sdk 0.0.572 → 0.0.574
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 -16
- package/README.md +6 -10
- package/dist/apis/ProductCategoryApi.d.ts +25 -1
- package/dist/apis/ProductCategoryApi.js +96 -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/index.d.ts +2 -8
- package/dist/models/index.js +2 -8
- package/docs/{GlobalSearchCategoryResource.md → AttachProductsProductCategoryRequest.md} +6 -10
- package/docs/{GlobalSearchRangeResourceArrayResponse.md → DetachProductsProductCategoryRequest.md} +6 -6
- package/docs/ProductCategoryApi.md +138 -0
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +96 -0
- package/src/models/AttachProductsProductCategoryRequest.ts +66 -0
- package/src/models/DetachProductsProductCategoryRequest.ts +66 -0
- package/src/models/index.ts +2 -8
- package/dist/models/GlobalSearchCategoryResource.d.ts +0 -44
- package/dist/models/GlobalSearchCategoryResource.js +0 -59
- package/dist/models/GlobalSearchCategoryResourceArrayResponse.d.ts +0 -33
- package/dist/models/GlobalSearchCategoryResourceArrayResponse.js +0 -50
- package/dist/models/GlobalSearchProductResource.d.ts +0 -86
- package/dist/models/GlobalSearchProductResource.js +0 -87
- package/dist/models/GlobalSearchProductResourceArrayResponse.d.ts +0 -33
- package/dist/models/GlobalSearchProductResourceArrayResponse.js +0 -50
- package/dist/models/GlobalSearchRangeResource.d.ts +0 -56
- package/dist/models/GlobalSearchRangeResource.js +0 -67
- package/dist/models/GlobalSearchRangeResourceArrayResponse.d.ts +0 -33
- package/dist/models/GlobalSearchRangeResourceArrayResponse.js +0 -50
- package/dist/models/GlobalSearchResponseResource.d.ts +0 -47
- package/dist/models/GlobalSearchResponseResource.js +0 -62
- package/dist/models/GlobalSearchResponseResourceArrayResponse.d.ts +0 -33
- package/dist/models/GlobalSearchResponseResourceArrayResponse.js +0 -50
- package/docs/GlobalSearchCategoryResourceArrayResponse.md +0 -34
- package/docs/GlobalSearchProductResource.md +0 -52
- package/docs/GlobalSearchProductResourceArrayResponse.md +0 -34
- package/docs/GlobalSearchRangeResource.md +0 -42
- package/docs/GlobalSearchResponseResource.md +0 -38
- package/docs/GlobalSearchResponseResourceArrayResponse.md +0 -34
- package/src/models/GlobalSearchCategoryResource.ts +0 -84
- package/src/models/GlobalSearchCategoryResourceArrayResponse.ts +0 -73
- package/src/models/GlobalSearchProductResource.ts +0 -147
- package/src/models/GlobalSearchProductResourceArrayResponse.ts +0 -73
- package/src/models/GlobalSearchRangeResource.ts +0 -102
- package/src/models/GlobalSearchRangeResourceArrayResponse.ts +0 -73
- package/src/models/GlobalSearchResponseResource.ts +0 -106
- package/src/models/GlobalSearchResponseResourceArrayResponse.ts +0 -73
package/.openapi-generator/FILES
CHANGED
|
@@ -17,6 +17,7 @@ docs/AttachDocumentablesDocumentRequestDocumentablesInner.md
|
|
|
17
17
|
docs/AttachDocumentsProductChildSiteDetailRequest.md
|
|
18
18
|
docs/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md
|
|
19
19
|
docs/AttachProductTypeAttributeRequest.md
|
|
20
|
+
docs/AttachProductsProductCategoryRequest.md
|
|
20
21
|
docs/AttributeApi.md
|
|
21
22
|
docs/AttributeFieldType.md
|
|
22
23
|
docs/AttributeListResource.md
|
|
@@ -43,6 +44,7 @@ docs/DetachAssetableOverlayTemplateRequest.md
|
|
|
43
44
|
docs/DetachDocumentablesDocumentRequest.md
|
|
44
45
|
docs/DetachDocumentablesDocumentRequestDocumentablesInner.md
|
|
45
46
|
docs/DetachDocumentsProductChildSiteDetailRequest.md
|
|
47
|
+
docs/DetachProductsProductCategoryRequest.md
|
|
46
48
|
docs/DocumentApi.md
|
|
47
49
|
docs/DocumentFileForUploadResource.md
|
|
48
50
|
docs/DocumentFileForUploadResourceArrayResponse.md
|
|
@@ -67,14 +69,6 @@ docs/GetAllProductChildRequest.md
|
|
|
67
69
|
docs/GetAllProductRequest.md
|
|
68
70
|
docs/GetAllProductTypeRequest.md
|
|
69
71
|
docs/GetAllSupplierRequest.md
|
|
70
|
-
docs/GlobalSearchCategoryResource.md
|
|
71
|
-
docs/GlobalSearchCategoryResourceArrayResponse.md
|
|
72
|
-
docs/GlobalSearchProductResource.md
|
|
73
|
-
docs/GlobalSearchProductResourceArrayResponse.md
|
|
74
|
-
docs/GlobalSearchRangeResource.md
|
|
75
|
-
docs/GlobalSearchRangeResourceArrayResponse.md
|
|
76
|
-
docs/GlobalSearchResponseResource.md
|
|
77
|
-
docs/GlobalSearchResponseResourceArrayResponse.md
|
|
78
72
|
docs/GoogleCategoryApi.md
|
|
79
73
|
docs/GoogleCategoryResource.md
|
|
80
74
|
docs/GoogleCategoryResourceArrayResponse.md
|
|
@@ -295,6 +289,7 @@ src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts
|
|
|
295
289
|
src/models/AttachDocumentsProductChildSiteDetailRequest.ts
|
|
296
290
|
src/models/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.ts
|
|
297
291
|
src/models/AttachProductTypeAttributeRequest.ts
|
|
292
|
+
src/models/AttachProductsProductCategoryRequest.ts
|
|
298
293
|
src/models/AttributeFieldType.ts
|
|
299
294
|
src/models/AttributeListResource.ts
|
|
300
295
|
src/models/AttributeListResourceArrayResponse.ts
|
|
@@ -320,6 +315,7 @@ src/models/DetachAssetableOverlayTemplateRequest.ts
|
|
|
320
315
|
src/models/DetachDocumentablesDocumentRequest.ts
|
|
321
316
|
src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts
|
|
322
317
|
src/models/DetachDocumentsProductChildSiteDetailRequest.ts
|
|
318
|
+
src/models/DetachProductsProductCategoryRequest.ts
|
|
323
319
|
src/models/DocumentFileForUploadResource.ts
|
|
324
320
|
src/models/DocumentFileForUploadResourceArrayResponse.ts
|
|
325
321
|
src/models/DocumentLiteResource.ts
|
|
@@ -342,14 +338,6 @@ src/models/GetAllProductChildRequest.ts
|
|
|
342
338
|
src/models/GetAllProductRequest.ts
|
|
343
339
|
src/models/GetAllProductTypeRequest.ts
|
|
344
340
|
src/models/GetAllSupplierRequest.ts
|
|
345
|
-
src/models/GlobalSearchCategoryResource.ts
|
|
346
|
-
src/models/GlobalSearchCategoryResourceArrayResponse.ts
|
|
347
|
-
src/models/GlobalSearchProductResource.ts
|
|
348
|
-
src/models/GlobalSearchProductResourceArrayResponse.ts
|
|
349
|
-
src/models/GlobalSearchRangeResource.ts
|
|
350
|
-
src/models/GlobalSearchRangeResourceArrayResponse.ts
|
|
351
|
-
src/models/GlobalSearchResponseResource.ts
|
|
352
|
-
src/models/GlobalSearchResponseResourceArrayResponse.ts
|
|
353
341
|
src/models/GoogleCategoryResource.ts
|
|
354
342
|
src/models/GoogleCategoryResourceArrayResponse.ts
|
|
355
343
|
src/models/IndexAttributeRequest.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.574
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -107,7 +107,9 @@ All URIs are relative to *http://localhost/api*
|
|
|
107
107
|
*ProductApi* | [**storeProductChild**](docs/ProductApi.md#storeproductchildoperation) | **POST** /admin-api/product/children/create | Auto-generated: storeProductChild
|
|
108
108
|
*ProductApi* | [**updateProduct**](docs/ProductApi.md#updateproductoperation) | **PUT** /admin-api/product/parent/{product}/update | Auto-generated: updateProduct
|
|
109
109
|
*ProductApi* | [**updateProductChild**](docs/ProductApi.md#updateproductchildoperation) | **PUT** /admin-api/product/children/{productChild}/update | Auto-generated: updateProductChild
|
|
110
|
+
*ProductCategoryApi* | [**attachProductsProductCategory**](docs/ProductCategoryApi.md#attachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/attach-products | Auto-generated: attachProductsProductCategory
|
|
110
111
|
*ProductCategoryApi* | [**destroyProductCategory**](docs/ProductCategoryApi.md#destroyproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/delete | Auto-generated: destroyProductCategory
|
|
112
|
+
*ProductCategoryApi* | [**detachProductsProductCategory**](docs/ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory
|
|
111
113
|
*ProductCategoryApi* | [**getAllProductCategory**](docs/ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory
|
|
112
114
|
*ProductCategoryApi* | [**getChildrenProductCategory**](docs/ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory
|
|
113
115
|
*ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory
|
|
@@ -169,6 +171,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
169
171
|
- [AttachDocumentsProductChildSiteDetailRequest](docs/AttachDocumentsProductChildSiteDetailRequest.md)
|
|
170
172
|
- [AttachDocumentsProductChildSiteDetailRequestDocumentsInner](docs/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md)
|
|
171
173
|
- [AttachProductTypeAttributeRequest](docs/AttachProductTypeAttributeRequest.md)
|
|
174
|
+
- [AttachProductsProductCategoryRequest](docs/AttachProductsProductCategoryRequest.md)
|
|
172
175
|
- [AttributeFieldType](docs/AttributeFieldType.md)
|
|
173
176
|
- [AttributeListResource](docs/AttributeListResource.md)
|
|
174
177
|
- [AttributeListResourceArrayResponse](docs/AttributeListResourceArrayResponse.md)
|
|
@@ -194,6 +197,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
194
197
|
- [DetachDocumentablesDocumentRequest](docs/DetachDocumentablesDocumentRequest.md)
|
|
195
198
|
- [DetachDocumentablesDocumentRequestDocumentablesInner](docs/DetachDocumentablesDocumentRequestDocumentablesInner.md)
|
|
196
199
|
- [DetachDocumentsProductChildSiteDetailRequest](docs/DetachDocumentsProductChildSiteDetailRequest.md)
|
|
200
|
+
- [DetachProductsProductCategoryRequest](docs/DetachProductsProductCategoryRequest.md)
|
|
197
201
|
- [DocumentFileForUploadResource](docs/DocumentFileForUploadResource.md)
|
|
198
202
|
- [DocumentFileForUploadResourceArrayResponse](docs/DocumentFileForUploadResourceArrayResponse.md)
|
|
199
203
|
- [DocumentLiteResource](docs/DocumentLiteResource.md)
|
|
@@ -216,14 +220,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
216
220
|
- [GetAllProductRequest](docs/GetAllProductRequest.md)
|
|
217
221
|
- [GetAllProductTypeRequest](docs/GetAllProductTypeRequest.md)
|
|
218
222
|
- [GetAllSupplierRequest](docs/GetAllSupplierRequest.md)
|
|
219
|
-
- [GlobalSearchCategoryResource](docs/GlobalSearchCategoryResource.md)
|
|
220
|
-
- [GlobalSearchCategoryResourceArrayResponse](docs/GlobalSearchCategoryResourceArrayResponse.md)
|
|
221
|
-
- [GlobalSearchProductResource](docs/GlobalSearchProductResource.md)
|
|
222
|
-
- [GlobalSearchProductResourceArrayResponse](docs/GlobalSearchProductResourceArrayResponse.md)
|
|
223
|
-
- [GlobalSearchRangeResource](docs/GlobalSearchRangeResource.md)
|
|
224
|
-
- [GlobalSearchRangeResourceArrayResponse](docs/GlobalSearchRangeResourceArrayResponse.md)
|
|
225
|
-
- [GlobalSearchResponseResource](docs/GlobalSearchResponseResource.md)
|
|
226
|
-
- [GlobalSearchResponseResourceArrayResponse](docs/GlobalSearchResponseResourceArrayResponse.md)
|
|
227
223
|
- [GoogleCategoryResource](docs/GoogleCategoryResource.md)
|
|
228
224
|
- [GoogleCategoryResourceArrayResponse](docs/GoogleCategoryResourceArrayResponse.md)
|
|
229
225
|
- [IndexAttributeRequest](docs/IndexAttributeRequest.md)
|
|
@@ -418,7 +414,7 @@ and is automatically generated by the
|
|
|
418
414
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
419
415
|
|
|
420
416
|
- API version: `1.0.0`
|
|
421
|
-
- Package version: `0.0.
|
|
417
|
+
- Package version: `0.0.574`
|
|
422
418
|
- Generator version: `7.18.0`
|
|
423
419
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
424
420
|
|
|
@@ -10,10 +10,18 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GenericResponse, GetAllProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest, 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
|
+
}
|
|
14
18
|
export interface DestroyProductCategoryRequest {
|
|
15
19
|
productCategory: number;
|
|
16
20
|
}
|
|
21
|
+
export interface DetachProductsProductCategoryOperationRequest {
|
|
22
|
+
productCategory: number;
|
|
23
|
+
detachProductsProductCategoryRequest?: DetachProductsProductCategoryRequest;
|
|
24
|
+
}
|
|
17
25
|
export interface GetAllProductCategoryOperationRequest {
|
|
18
26
|
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
19
27
|
}
|
|
@@ -41,6 +49,14 @@ export interface UpdateProductCategoryOperationRequest {
|
|
|
41
49
|
*
|
|
42
50
|
*/
|
|
43
51
|
export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
52
|
+
/**
|
|
53
|
+
* Auto-generated: attachProductsProductCategory
|
|
54
|
+
*/
|
|
55
|
+
attachProductsProductCategoryRaw(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>>;
|
|
56
|
+
/**
|
|
57
|
+
* Auto-generated: attachProductsProductCategory
|
|
58
|
+
*/
|
|
59
|
+
attachProductsProductCategory(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource>;
|
|
44
60
|
/**
|
|
45
61
|
* Auto-generated: destroyProductCategory
|
|
46
62
|
*/
|
|
@@ -49,6 +65,14 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
49
65
|
* Auto-generated: destroyProductCategory
|
|
50
66
|
*/
|
|
51
67
|
destroyProductCategory(requestParameters: DestroyProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* Auto-generated: detachProductsProductCategory
|
|
70
|
+
*/
|
|
71
|
+
detachProductsProductCategoryRaw(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>>;
|
|
72
|
+
/**
|
|
73
|
+
* Auto-generated: detachProductsProductCategory
|
|
74
|
+
*/
|
|
75
|
+
detachProductsProductCategory(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource>;
|
|
52
76
|
/**
|
|
53
77
|
* Auto-generated: getAllProductCategory
|
|
54
78
|
*/
|
|
@@ -75,6 +75,54 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function ProductCategoryApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Auto-generated: attachProductsProductCategory
|
|
80
|
+
*/
|
|
81
|
+
ProductCategoryApi.prototype.attachProductsProductCategoryRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters['productCategory'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling attachProductsProductCategory().');
|
|
89
|
+
}
|
|
90
|
+
queryParameters = {};
|
|
91
|
+
headerParameters = {};
|
|
92
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
+
urlPath = "/admin-api/product-category/{productCategory}/attach-products";
|
|
94
|
+
urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
|
|
95
|
+
return [4 /*yield*/, this.request({
|
|
96
|
+
path: urlPath,
|
|
97
|
+
method: 'POST',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
body: (0, index_1.AttachProductsProductCategoryRequestToJSON)(requestParameters['attachProductsProductCategoryRequest']),
|
|
101
|
+
}, initOverrides)];
|
|
102
|
+
case 1:
|
|
103
|
+
response = _a.sent();
|
|
104
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryResourceFromJSON)(jsonValue); })];
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Auto-generated: attachProductsProductCategory
|
|
111
|
+
*/
|
|
112
|
+
ProductCategoryApi.prototype.attachProductsProductCategory = function (requestParameters, initOverrides) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
114
|
+
var response;
|
|
115
|
+
return __generator(this, function (_a) {
|
|
116
|
+
switch (_a.label) {
|
|
117
|
+
case 0: return [4 /*yield*/, this.attachProductsProductCategoryRaw(requestParameters, initOverrides)];
|
|
118
|
+
case 1:
|
|
119
|
+
response = _a.sent();
|
|
120
|
+
return [4 /*yield*/, response.value()];
|
|
121
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
};
|
|
78
126
|
/**
|
|
79
127
|
* Auto-generated: destroyProductCategory
|
|
80
128
|
*/
|
|
@@ -121,6 +169,54 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
121
169
|
});
|
|
122
170
|
});
|
|
123
171
|
};
|
|
172
|
+
/**
|
|
173
|
+
* Auto-generated: detachProductsProductCategory
|
|
174
|
+
*/
|
|
175
|
+
ProductCategoryApi.prototype.detachProductsProductCategoryRaw = function (requestParameters, initOverrides) {
|
|
176
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
177
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
178
|
+
return __generator(this, function (_a) {
|
|
179
|
+
switch (_a.label) {
|
|
180
|
+
case 0:
|
|
181
|
+
if (requestParameters['productCategory'] == null) {
|
|
182
|
+
throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling detachProductsProductCategory().');
|
|
183
|
+
}
|
|
184
|
+
queryParameters = {};
|
|
185
|
+
headerParameters = {};
|
|
186
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
187
|
+
urlPath = "/admin-api/product-category/{productCategory}/detach-products";
|
|
188
|
+
urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
|
|
189
|
+
return [4 /*yield*/, this.request({
|
|
190
|
+
path: urlPath,
|
|
191
|
+
method: 'POST',
|
|
192
|
+
headers: headerParameters,
|
|
193
|
+
query: queryParameters,
|
|
194
|
+
body: (0, index_1.DetachProductsProductCategoryRequestToJSON)(requestParameters['detachProductsProductCategoryRequest']),
|
|
195
|
+
}, initOverrides)];
|
|
196
|
+
case 1:
|
|
197
|
+
response = _a.sent();
|
|
198
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryResourceFromJSON)(jsonValue); })];
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* Auto-generated: detachProductsProductCategory
|
|
205
|
+
*/
|
|
206
|
+
ProductCategoryApi.prototype.detachProductsProductCategory = function (requestParameters, initOverrides) {
|
|
207
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
208
|
+
var response;
|
|
209
|
+
return __generator(this, function (_a) {
|
|
210
|
+
switch (_a.label) {
|
|
211
|
+
case 0: return [4 /*yield*/, this.detachProductsProductCategoryRaw(requestParameters, initOverrides)];
|
|
212
|
+
case 1:
|
|
213
|
+
response = _a.sent();
|
|
214
|
+
return [4 /*yield*/, response.value()];
|
|
215
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
};
|
|
124
220
|
/**
|
|
125
221
|
* Auto-generated: getAllProductCategory
|
|
126
222
|
*/
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AttachProductsProductCategoryRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AttachProductsProductCategoryRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof AttachProductsProductCategoryRequest
|
|
22
|
+
*/
|
|
23
|
+
productChildSiteDetailIds: Array<number>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AttachProductsProductCategoryRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAttachProductsProductCategoryRequest(value: object): value is AttachProductsProductCategoryRequest;
|
|
29
|
+
export declare function AttachProductsProductCategoryRequestFromJSON(json: any): AttachProductsProductCategoryRequest;
|
|
30
|
+
export declare function AttachProductsProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachProductsProductCategoryRequest;
|
|
31
|
+
export declare function AttachProductsProductCategoryRequestToJSON(json: any): AttachProductsProductCategoryRequest;
|
|
32
|
+
export declare function AttachProductsProductCategoryRequestToJSONTyped(value?: AttachProductsProductCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAttachProductsProductCategoryRequest = instanceOfAttachProductsProductCategoryRequest;
|
|
17
|
+
exports.AttachProductsProductCategoryRequestFromJSON = AttachProductsProductCategoryRequestFromJSON;
|
|
18
|
+
exports.AttachProductsProductCategoryRequestFromJSONTyped = AttachProductsProductCategoryRequestFromJSONTyped;
|
|
19
|
+
exports.AttachProductsProductCategoryRequestToJSON = AttachProductsProductCategoryRequestToJSON;
|
|
20
|
+
exports.AttachProductsProductCategoryRequestToJSONTyped = AttachProductsProductCategoryRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AttachProductsProductCategoryRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAttachProductsProductCategoryRequest(value) {
|
|
25
|
+
if (!('productChildSiteDetailIds' in value) || value['productChildSiteDetailIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AttachProductsProductCategoryRequestFromJSON(json) {
|
|
30
|
+
return AttachProductsProductCategoryRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AttachProductsProductCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'productChildSiteDetailIds': json['product_child_site_detail_ids'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AttachProductsProductCategoryRequestToJSON(json) {
|
|
41
|
+
return AttachProductsProductCategoryRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AttachProductsProductCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'product_child_site_detail_ids': value['productChildSiteDetailIds'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DetachProductsProductCategoryRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DetachProductsProductCategoryRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof DetachProductsProductCategoryRequest
|
|
22
|
+
*/
|
|
23
|
+
productChildSiteDetailIds: Array<number>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the DetachProductsProductCategoryRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfDetachProductsProductCategoryRequest(value: object): value is DetachProductsProductCategoryRequest;
|
|
29
|
+
export declare function DetachProductsProductCategoryRequestFromJSON(json: any): DetachProductsProductCategoryRequest;
|
|
30
|
+
export declare function DetachProductsProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachProductsProductCategoryRequest;
|
|
31
|
+
export declare function DetachProductsProductCategoryRequestToJSON(json: any): DetachProductsProductCategoryRequest;
|
|
32
|
+
export declare function DetachProductsProductCategoryRequestToJSONTyped(value?: DetachProductsProductCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDetachProductsProductCategoryRequest = instanceOfDetachProductsProductCategoryRequest;
|
|
17
|
+
exports.DetachProductsProductCategoryRequestFromJSON = DetachProductsProductCategoryRequestFromJSON;
|
|
18
|
+
exports.DetachProductsProductCategoryRequestFromJSONTyped = DetachProductsProductCategoryRequestFromJSONTyped;
|
|
19
|
+
exports.DetachProductsProductCategoryRequestToJSON = DetachProductsProductCategoryRequestToJSON;
|
|
20
|
+
exports.DetachProductsProductCategoryRequestToJSONTyped = DetachProductsProductCategoryRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DetachProductsProductCategoryRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDetachProductsProductCategoryRequest(value) {
|
|
25
|
+
if (!('productChildSiteDetailIds' in value) || value['productChildSiteDetailIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DetachProductsProductCategoryRequestFromJSON(json) {
|
|
30
|
+
return DetachProductsProductCategoryRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DetachProductsProductCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'productChildSiteDetailIds': json['product_child_site_detail_ids'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function DetachProductsProductCategoryRequestToJSON(json) {
|
|
41
|
+
return DetachProductsProductCategoryRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function DetachProductsProductCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'product_child_site_detail_ids': value['productChildSiteDetailIds'],
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './AttachDocumentablesDocumentRequestDocumentablesInner';
|
|
|
12
12
|
export * from './AttachDocumentsProductChildSiteDetailRequest';
|
|
13
13
|
export * from './AttachDocumentsProductChildSiteDetailRequestDocumentsInner';
|
|
14
14
|
export * from './AttachProductTypeAttributeRequest';
|
|
15
|
+
export * from './AttachProductsProductCategoryRequest';
|
|
15
16
|
export * from './AttributeFieldType';
|
|
16
17
|
export * from './AttributeListResource';
|
|
17
18
|
export * from './AttributeListResourceArrayResponse';
|
|
@@ -37,6 +38,7 @@ export * from './DetachAssetableOverlayTemplateRequest';
|
|
|
37
38
|
export * from './DetachDocumentablesDocumentRequest';
|
|
38
39
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
39
40
|
export * from './DetachDocumentsProductChildSiteDetailRequest';
|
|
41
|
+
export * from './DetachProductsProductCategoryRequest';
|
|
40
42
|
export * from './DocumentFileForUploadResource';
|
|
41
43
|
export * from './DocumentFileForUploadResourceArrayResponse';
|
|
42
44
|
export * from './DocumentLiteResource';
|
|
@@ -59,14 +61,6 @@ export * from './GetAllProductChildRequest';
|
|
|
59
61
|
export * from './GetAllProductRequest';
|
|
60
62
|
export * from './GetAllProductTypeRequest';
|
|
61
63
|
export * from './GetAllSupplierRequest';
|
|
62
|
-
export * from './GlobalSearchCategoryResource';
|
|
63
|
-
export * from './GlobalSearchCategoryResourceArrayResponse';
|
|
64
|
-
export * from './GlobalSearchProductResource';
|
|
65
|
-
export * from './GlobalSearchProductResourceArrayResponse';
|
|
66
|
-
export * from './GlobalSearchRangeResource';
|
|
67
|
-
export * from './GlobalSearchRangeResourceArrayResponse';
|
|
68
|
-
export * from './GlobalSearchResponseResource';
|
|
69
|
-
export * from './GlobalSearchResponseResourceArrayResponse';
|
|
70
64
|
export * from './GoogleCategoryResource';
|
|
71
65
|
export * from './GoogleCategoryResourceArrayResponse';
|
|
72
66
|
export * from './IndexAttributeRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __exportStar(require("./AttachDocumentablesDocumentRequestDocumentablesInner"),
|
|
|
30
30
|
__exportStar(require("./AttachDocumentsProductChildSiteDetailRequest"), exports);
|
|
31
31
|
__exportStar(require("./AttachDocumentsProductChildSiteDetailRequestDocumentsInner"), exports);
|
|
32
32
|
__exportStar(require("./AttachProductTypeAttributeRequest"), exports);
|
|
33
|
+
__exportStar(require("./AttachProductsProductCategoryRequest"), exports);
|
|
33
34
|
__exportStar(require("./AttributeFieldType"), exports);
|
|
34
35
|
__exportStar(require("./AttributeListResource"), exports);
|
|
35
36
|
__exportStar(require("./AttributeListResourceArrayResponse"), exports);
|
|
@@ -55,6 +56,7 @@ __exportStar(require("./DetachAssetableOverlayTemplateRequest"), exports);
|
|
|
55
56
|
__exportStar(require("./DetachDocumentablesDocumentRequest"), exports);
|
|
56
57
|
__exportStar(require("./DetachDocumentablesDocumentRequestDocumentablesInner"), exports);
|
|
57
58
|
__exportStar(require("./DetachDocumentsProductChildSiteDetailRequest"), exports);
|
|
59
|
+
__exportStar(require("./DetachProductsProductCategoryRequest"), exports);
|
|
58
60
|
__exportStar(require("./DocumentFileForUploadResource"), exports);
|
|
59
61
|
__exportStar(require("./DocumentFileForUploadResourceArrayResponse"), exports);
|
|
60
62
|
__exportStar(require("./DocumentLiteResource"), exports);
|
|
@@ -77,14 +79,6 @@ __exportStar(require("./GetAllProductChildRequest"), exports);
|
|
|
77
79
|
__exportStar(require("./GetAllProductRequest"), exports);
|
|
78
80
|
__exportStar(require("./GetAllProductTypeRequest"), exports);
|
|
79
81
|
__exportStar(require("./GetAllSupplierRequest"), exports);
|
|
80
|
-
__exportStar(require("./GlobalSearchCategoryResource"), exports);
|
|
81
|
-
__exportStar(require("./GlobalSearchCategoryResourceArrayResponse"), exports);
|
|
82
|
-
__exportStar(require("./GlobalSearchProductResource"), exports);
|
|
83
|
-
__exportStar(require("./GlobalSearchProductResourceArrayResponse"), exports);
|
|
84
|
-
__exportStar(require("./GlobalSearchRangeResource"), exports);
|
|
85
|
-
__exportStar(require("./GlobalSearchRangeResourceArrayResponse"), exports);
|
|
86
|
-
__exportStar(require("./GlobalSearchResponseResource"), exports);
|
|
87
|
-
__exportStar(require("./GlobalSearchResponseResourceArrayResponse"), exports);
|
|
88
82
|
__exportStar(require("./GoogleCategoryResource"), exports);
|
|
89
83
|
__exportStar(require("./GoogleCategoryResourceArrayResponse"), exports);
|
|
90
84
|
__exportStar(require("./IndexAttributeRequest"), exports);
|
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# AttachProductsProductCategoryRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`name` | string
|
|
11
|
-
`slug` | string
|
|
9
|
+
`productChildSiteDetailIds` | Array<number>
|
|
12
10
|
|
|
13
11
|
## Example
|
|
14
12
|
|
|
15
13
|
```typescript
|
|
16
|
-
import type {
|
|
14
|
+
import type { AttachProductsProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
15
|
|
|
18
16
|
// TODO: Update the object below with actual values
|
|
19
17
|
const example = {
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
"slug": null,
|
|
23
|
-
} satisfies GlobalSearchCategoryResource
|
|
18
|
+
"productChildSiteDetailIds": null,
|
|
19
|
+
} satisfies AttachProductsProductCategoryRequest
|
|
24
20
|
|
|
25
21
|
console.log(example)
|
|
26
22
|
|
|
@@ -29,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
29
25
|
console.log(exampleJSON)
|
|
30
26
|
|
|
31
27
|
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as AttachProductsProductCategoryRequest
|
|
33
29
|
console.log(exampleParsed)
|
|
34
30
|
```
|
|
35
31
|
|
package/docs/{GlobalSearchRangeResourceArrayResponse.md → DetachProductsProductCategoryRequest.md}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# DetachProductsProductCategoryRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
9
|
+
`productChildSiteDetailIds` | Array<number>
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { DetachProductsProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
|
-
"
|
|
19
|
-
} satisfies
|
|
18
|
+
"productChildSiteDetailIds": null,
|
|
19
|
+
} satisfies DetachProductsProductCategoryRequest
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as DetachProductsProductCategoryRequest
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|