@digital8/lighting-illusions-ts-sdk 0.0.586 → 0.0.587
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 -6
- package/dist/apis/ProductCategoryApi.d.ts +1 -25
- package/dist/apis/ProductCategoryApi.js +0 -96
- package/dist/models/GetAllDocumentRequest.d.ts +0 -6
- package/dist/models/GetAllDocumentRequest.js +0 -2
- package/dist/models/GetAllProductChildRequest.d.ts +1 -1
- package/dist/models/GetAllProductChildRequest.js +3 -3
- package/dist/models/IndexDocumentRequest.d.ts +0 -6
- package/dist/models/IndexDocumentRequest.js +0 -2
- package/dist/models/IndexProductChildRequest.d.ts +1 -3
- package/dist/models/IndexProductChildRequest.js +3 -5
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -2
- package/docs/GetAllDocumentRequest.md +0 -2
- package/docs/IndexDocumentRequest.md +0 -2
- package/docs/ProductCategoryApi.md +0 -138
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +0 -96
- package/src/models/GetAllDocumentRequest.ts +0 -8
- package/src/models/GetAllProductChildRequest.ts +3 -3
- package/src/models/IndexDocumentRequest.ts +0 -8
- package/src/models/IndexProductChildRequest.ts +3 -5
- 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.587
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -107,9 +107,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
107
107
|
*ProductApi* | [**storeProductChild**](docs/ProductApi.md#storeproductchildoperation) | **POST** /admin-api/product/children/create | Auto-generated: storeProductChild
|
|
108
108
|
*ProductApi* | [**updateProduct**](docs/ProductApi.md#updateproductoperation) | **PUT** /admin-api/product/parent/{product}/update | Auto-generated: updateProduct
|
|
109
109
|
*ProductApi* | [**updateProductChild**](docs/ProductApi.md#updateproductchildoperation) | **PUT** /admin-api/product/children/{productChild}/update | Auto-generated: updateProductChild
|
|
110
|
-
*ProductCategoryApi* | [**attachProductsProductCategory**](docs/ProductCategoryApi.md#attachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/attach-products | Auto-generated: attachProductsProductCategory
|
|
111
110
|
*ProductCategoryApi* | [**destroyProductCategory**](docs/ProductCategoryApi.md#destroyproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/delete | Auto-generated: destroyProductCategory
|
|
112
|
-
*ProductCategoryApi* | [**detachProductsProductCategory**](docs/ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory
|
|
113
111
|
*ProductCategoryApi* | [**getAllProductCategory**](docs/ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory
|
|
114
112
|
*ProductCategoryApi* | [**getChildrenProductCategory**](docs/ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory
|
|
115
113
|
*ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory
|
|
@@ -171,7 +169,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
171
169
|
- [AttachDocumentsProductChildSiteDetailRequest](docs/AttachDocumentsProductChildSiteDetailRequest.md)
|
|
172
170
|
- [AttachDocumentsProductChildSiteDetailRequestDocumentsInner](docs/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md)
|
|
173
171
|
- [AttachProductTypeAttributeRequest](docs/AttachProductTypeAttributeRequest.md)
|
|
174
|
-
- [AttachProductsProductCategoryRequest](docs/AttachProductsProductCategoryRequest.md)
|
|
175
172
|
- [AttributeFieldType](docs/AttributeFieldType.md)
|
|
176
173
|
- [AttributeListResource](docs/AttributeListResource.md)
|
|
177
174
|
- [AttributeListResourceArrayResponse](docs/AttributeListResourceArrayResponse.md)
|
|
@@ -197,7 +194,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
197
194
|
- [DetachDocumentablesDocumentRequest](docs/DetachDocumentablesDocumentRequest.md)
|
|
198
195
|
- [DetachDocumentablesDocumentRequestDocumentablesInner](docs/DetachDocumentablesDocumentRequestDocumentablesInner.md)
|
|
199
196
|
- [DetachDocumentsProductChildSiteDetailRequest](docs/DetachDocumentsProductChildSiteDetailRequest.md)
|
|
200
|
-
- [DetachProductsProductCategoryRequest](docs/DetachProductsProductCategoryRequest.md)
|
|
201
197
|
- [DocumentFileForUploadResource](docs/DocumentFileForUploadResource.md)
|
|
202
198
|
- [DocumentFileForUploadResourceArrayResponse](docs/DocumentFileForUploadResourceArrayResponse.md)
|
|
203
199
|
- [DocumentLiteResource](docs/DocumentLiteResource.md)
|
|
@@ -414,7 +410,7 @@ and is automatically generated by the
|
|
|
414
410
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
415
411
|
|
|
416
412
|
- API version: `1.0.0`
|
|
417
|
-
- Package version: `0.0.
|
|
413
|
+
- Package version: `0.0.587`
|
|
418
414
|
- Generator version: `7.18.0`
|
|
419
415
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
420
416
|
|
|
@@ -10,18 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface AttachProductsProductCategoryOperationRequest {
|
|
15
|
-
productCategory: number;
|
|
16
|
-
attachProductsProductCategoryRequest?: AttachProductsProductCategoryRequest;
|
|
17
|
-
}
|
|
13
|
+
import type { GenericResponse, GetAllProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest, PreviewAutomationRulesResource, ProductCategoryHierarchyResourceArrayResponse, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
|
|
18
14
|
export interface DestroyProductCategoryRequest {
|
|
19
15
|
productCategory: number;
|
|
20
16
|
}
|
|
21
|
-
export interface DetachProductsProductCategoryOperationRequest {
|
|
22
|
-
productCategory: number;
|
|
23
|
-
detachProductsProductCategoryRequest?: DetachProductsProductCategoryRequest;
|
|
24
|
-
}
|
|
25
17
|
export interface GetAllProductCategoryOperationRequest {
|
|
26
18
|
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
27
19
|
}
|
|
@@ -49,14 +41,6 @@ export interface UpdateProductCategoryOperationRequest {
|
|
|
49
41
|
*
|
|
50
42
|
*/
|
|
51
43
|
export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
52
|
-
/**
|
|
53
|
-
* Auto-generated: attachProductsProductCategory
|
|
54
|
-
*/
|
|
55
|
-
attachProductsProductCategoryRaw(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>>;
|
|
56
|
-
/**
|
|
57
|
-
* Auto-generated: attachProductsProductCategory
|
|
58
|
-
*/
|
|
59
|
-
attachProductsProductCategory(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource>;
|
|
60
44
|
/**
|
|
61
45
|
* Auto-generated: destroyProductCategory
|
|
62
46
|
*/
|
|
@@ -65,14 +49,6 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
65
49
|
* Auto-generated: destroyProductCategory
|
|
66
50
|
*/
|
|
67
51
|
destroyProductCategory(requestParameters: DestroyProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
68
|
-
/**
|
|
69
|
-
* Auto-generated: detachProductsProductCategory
|
|
70
|
-
*/
|
|
71
|
-
detachProductsProductCategoryRaw(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>>;
|
|
72
|
-
/**
|
|
73
|
-
* Auto-generated: detachProductsProductCategory
|
|
74
|
-
*/
|
|
75
|
-
detachProductsProductCategory(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource>;
|
|
76
52
|
/**
|
|
77
53
|
* Auto-generated: getAllProductCategory
|
|
78
54
|
*/
|
|
@@ -75,54 +75,6 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function ProductCategoryApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
-
/**
|
|
79
|
-
* Auto-generated: attachProductsProductCategory
|
|
80
|
-
*/
|
|
81
|
-
ProductCategoryApi.prototype.attachProductsProductCategoryRaw = function (requestParameters, initOverrides) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, urlPath, response;
|
|
84
|
-
return __generator(this, function (_a) {
|
|
85
|
-
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
if (requestParameters['productCategory'] == null) {
|
|
88
|
-
throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling attachProductsProductCategory().');
|
|
89
|
-
}
|
|
90
|
-
queryParameters = {};
|
|
91
|
-
headerParameters = {};
|
|
92
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
-
urlPath = "/admin-api/product-category/{productCategory}/attach-products";
|
|
94
|
-
urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
|
|
95
|
-
return [4 /*yield*/, this.request({
|
|
96
|
-
path: urlPath,
|
|
97
|
-
method: 'POST',
|
|
98
|
-
headers: headerParameters,
|
|
99
|
-
query: queryParameters,
|
|
100
|
-
body: (0, index_1.AttachProductsProductCategoryRequestToJSON)(requestParameters['attachProductsProductCategoryRequest']),
|
|
101
|
-
}, initOverrides)];
|
|
102
|
-
case 1:
|
|
103
|
-
response = _a.sent();
|
|
104
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryResourceFromJSON)(jsonValue); })];
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
/**
|
|
110
|
-
* Auto-generated: attachProductsProductCategory
|
|
111
|
-
*/
|
|
112
|
-
ProductCategoryApi.prototype.attachProductsProductCategory = function (requestParameters, initOverrides) {
|
|
113
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
114
|
-
var response;
|
|
115
|
-
return __generator(this, function (_a) {
|
|
116
|
-
switch (_a.label) {
|
|
117
|
-
case 0: return [4 /*yield*/, this.attachProductsProductCategoryRaw(requestParameters, initOverrides)];
|
|
118
|
-
case 1:
|
|
119
|
-
response = _a.sent();
|
|
120
|
-
return [4 /*yield*/, response.value()];
|
|
121
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
});
|
|
125
|
-
};
|
|
126
78
|
/**
|
|
127
79
|
* Auto-generated: destroyProductCategory
|
|
128
80
|
*/
|
|
@@ -169,54 +121,6 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
169
121
|
});
|
|
170
122
|
});
|
|
171
123
|
};
|
|
172
|
-
/**
|
|
173
|
-
* Auto-generated: detachProductsProductCategory
|
|
174
|
-
*/
|
|
175
|
-
ProductCategoryApi.prototype.detachProductsProductCategoryRaw = function (requestParameters, initOverrides) {
|
|
176
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
177
|
-
var queryParameters, headerParameters, urlPath, response;
|
|
178
|
-
return __generator(this, function (_a) {
|
|
179
|
-
switch (_a.label) {
|
|
180
|
-
case 0:
|
|
181
|
-
if (requestParameters['productCategory'] == null) {
|
|
182
|
-
throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling detachProductsProductCategory().');
|
|
183
|
-
}
|
|
184
|
-
queryParameters = {};
|
|
185
|
-
headerParameters = {};
|
|
186
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
187
|
-
urlPath = "/admin-api/product-category/{productCategory}/detach-products";
|
|
188
|
-
urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
|
|
189
|
-
return [4 /*yield*/, this.request({
|
|
190
|
-
path: urlPath,
|
|
191
|
-
method: 'POST',
|
|
192
|
-
headers: headerParameters,
|
|
193
|
-
query: queryParameters,
|
|
194
|
-
body: (0, index_1.DetachProductsProductCategoryRequestToJSON)(requestParameters['detachProductsProductCategoryRequest']),
|
|
195
|
-
}, initOverrides)];
|
|
196
|
-
case 1:
|
|
197
|
-
response = _a.sent();
|
|
198
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryResourceFromJSON)(jsonValue); })];
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
});
|
|
202
|
-
};
|
|
203
|
-
/**
|
|
204
|
-
* Auto-generated: detachProductsProductCategory
|
|
205
|
-
*/
|
|
206
|
-
ProductCategoryApi.prototype.detachProductsProductCategory = function (requestParameters, initOverrides) {
|
|
207
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
208
|
-
var response;
|
|
209
|
-
return __generator(this, function (_a) {
|
|
210
|
-
switch (_a.label) {
|
|
211
|
-
case 0: return [4 /*yield*/, this.detachProductsProductCategoryRaw(requestParameters, initOverrides)];
|
|
212
|
-
case 1:
|
|
213
|
-
response = _a.sent();
|
|
214
|
-
return [4 /*yield*/, response.value()];
|
|
215
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
});
|
|
219
|
-
};
|
|
220
124
|
/**
|
|
221
125
|
* Auto-generated: getAllProductCategory
|
|
222
126
|
*/
|
|
@@ -62,7 +62,6 @@ function GetAllDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
62
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
63
63
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
64
64
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
65
|
-
'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
|
|
66
65
|
};
|
|
67
66
|
}
|
|
68
67
|
function GetAllDocumentRequestToJSON(json) {
|
|
@@ -80,6 +79,5 @@ function GetAllDocumentRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
80
79
|
'related_id': value['relatedId'],
|
|
81
80
|
'related_type': value['relatedType'],
|
|
82
81
|
'includes_relations': value['includesRelations'],
|
|
83
|
-
'sites-id': value['sitesId'],
|
|
84
82
|
};
|
|
85
83
|
}
|
|
@@ -81,7 +81,7 @@ export declare const GetAllProductChildRequestSortByEnum: {
|
|
|
81
81
|
readonly SiteDetailsSlug: "siteDetails-slug";
|
|
82
82
|
readonly Sku: "sku";
|
|
83
83
|
readonly Model: "model";
|
|
84
|
-
readonly NetsuiteSyncNetsuiteId: "
|
|
84
|
+
readonly NetsuiteSyncNetsuiteId: "netsuite_sync-netsuite_id";
|
|
85
85
|
readonly NewArrivalStartDate: "new_arrival_start_date";
|
|
86
86
|
readonly NewArrivalEndDate: "new_arrival_end_date";
|
|
87
87
|
readonly CreatedAt: "created_at";
|
|
@@ -30,7 +30,7 @@ exports.GetAllProductChildRequestSortByEnum = {
|
|
|
30
30
|
SiteDetailsSlug: 'siteDetails-slug',
|
|
31
31
|
Sku: 'sku',
|
|
32
32
|
Model: 'model',
|
|
33
|
-
NetsuiteSyncNetsuiteId: '
|
|
33
|
+
NetsuiteSyncNetsuiteId: 'netsuite_sync-netsuite_id',
|
|
34
34
|
NewArrivalStartDate: 'new_arrival_start_date',
|
|
35
35
|
NewArrivalEndDate: 'new_arrival_end_date',
|
|
36
36
|
CreatedAt: 'created_at',
|
|
@@ -74,7 +74,7 @@ function GetAllProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
74
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
75
75
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
76
76
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
77
|
-
'netsuiteSyncHasNetsuiteId': json['
|
|
77
|
+
'netsuiteSyncHasNetsuiteId': json['netsuite_sync-has_netsuite_id'] == null ? undefined : json['netsuite_sync-has_netsuite_id'],
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
function GetAllProductChildRequestToJSON(json) {
|
|
@@ -94,6 +94,6 @@ function GetAllProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
94
94
|
'includes_relations': value['includesRelations'],
|
|
95
95
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
96
96
|
'is_disabled': value['isDisabled'],
|
|
97
|
-
'
|
|
97
|
+
'netsuite_sync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
|
|
98
98
|
};
|
|
99
99
|
}
|
|
@@ -61,7 +61,6 @@ function IndexDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
61
|
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
62
62
|
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
63
63
|
'page': json['page'] == null ? undefined : json['page'],
|
|
64
|
-
'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
|
|
65
64
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
66
65
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
67
66
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -81,7 +80,6 @@ function IndexDocumentRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
81
80
|
'sortDirection': value['sortDirection'],
|
|
82
81
|
'per_page': value['perPage'],
|
|
83
82
|
'page': value['page'],
|
|
84
|
-
'sites-id': value['sitesId'],
|
|
85
83
|
'related_id': value['relatedId'],
|
|
86
84
|
'related_type': value['relatedType'],
|
|
87
85
|
'includes_relations': value['includesRelations'],
|
|
@@ -93,7 +93,7 @@ export declare const IndexProductChildRequestSortByEnum: {
|
|
|
93
93
|
readonly SiteDetailsSlug: "siteDetails-slug";
|
|
94
94
|
readonly Sku: "sku";
|
|
95
95
|
readonly Model: "model";
|
|
96
|
-
readonly NetsuiteSyncNetsuiteId: "
|
|
96
|
+
readonly NetsuiteSyncNetsuiteId: "netsuite_sync-netsuite_id";
|
|
97
97
|
readonly NewArrivalStartDate: "new_arrival_start_date";
|
|
98
98
|
readonly NewArrivalEndDate: "new_arrival_end_date";
|
|
99
99
|
readonly CreatedAt: "created_at";
|
|
@@ -116,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";
|
|
@@ -30,7 +30,7 @@ exports.IndexProductChildRequestSortByEnum = {
|
|
|
30
30
|
SiteDetailsSlug: 'siteDetails-slug',
|
|
31
31
|
Sku: 'sku',
|
|
32
32
|
Model: 'model',
|
|
33
|
-
NetsuiteSyncNetsuiteId: '
|
|
33
|
+
NetsuiteSyncNetsuiteId: 'netsuite_sync-netsuite_id',
|
|
34
34
|
NewArrivalStartDate: 'new_arrival_start_date',
|
|
35
35
|
NewArrivalEndDate: 'new_arrival_end_date',
|
|
36
36
|
CreatedAt: 'created_at',
|
|
@@ -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',
|
|
@@ -81,7 +79,7 @@ function IndexProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
81
79
|
'page': json['page'] == null ? undefined : json['page'],
|
|
82
80
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
83
81
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
84
|
-
'netsuiteSyncHasNetsuiteId': json['
|
|
82
|
+
'netsuiteSyncHasNetsuiteId': json['netsuite_sync-has_netsuite_id'] == null ? undefined : json['netsuite_sync-has_netsuite_id'],
|
|
85
83
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
86
84
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
87
85
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -103,7 +101,7 @@ function IndexProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
103
101
|
'page': value['page'],
|
|
104
102
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
105
103
|
'is_disabled': value['isDisabled'],
|
|
106
|
-
'
|
|
104
|
+
'netsuite_sync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
|
|
107
105
|
'related_id': value['relatedId'],
|
|
108
106
|
'related_type': value['relatedType'],
|
|
109
107
|
'includes_relations': value['includesRelations'],
|
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);
|
|
@@ -12,7 +12,6 @@ Name | Type
|
|
|
12
12
|
`relatedId` | number
|
|
13
13
|
`relatedType` | string
|
|
14
14
|
`includesRelations` | boolean
|
|
15
|
-
`sitesId` | Array<string>
|
|
16
15
|
|
|
17
16
|
## Example
|
|
18
17
|
|
|
@@ -27,7 +26,6 @@ const example = {
|
|
|
27
26
|
"relatedId": null,
|
|
28
27
|
"relatedType": null,
|
|
29
28
|
"includesRelations": null,
|
|
30
|
-
"sitesId": null,
|
|
31
29
|
} satisfies GetAllDocumentRequest
|
|
32
30
|
|
|
33
31
|
console.log(example)
|
|
@@ -11,7 +11,6 @@ Name | Type
|
|
|
11
11
|
`sortDirection` | string
|
|
12
12
|
`perPage` | number
|
|
13
13
|
`page` | number
|
|
14
|
-
`sitesId` | Array<string>
|
|
15
14
|
`relatedId` | number
|
|
16
15
|
`relatedType` | string
|
|
17
16
|
`includesRelations` | boolean
|
|
@@ -28,7 +27,6 @@ const example = {
|
|
|
28
27
|
"sortDirection": null,
|
|
29
28
|
"perPage": null,
|
|
30
29
|
"page": null,
|
|
31
|
-
"sitesId": null,
|
|
32
30
|
"relatedId": null,
|
|
33
31
|
"relatedType": null,
|
|
34
32
|
"includesRelations": null,
|
|
@@ -4,9 +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
7
|
| [**destroyProductCategory**](ProductCategoryApi.md#destroyproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/delete | Auto-generated: destroyProductCategory |
|
|
9
|
-
| [**detachProductsProductCategory**](ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory |
|
|
10
8
|
| [**getAllProductCategory**](ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory |
|
|
11
9
|
| [**getChildrenProductCategory**](ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory |
|
|
12
10
|
| [**getHierarchyProductCategory**](ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory |
|
|
@@ -18,74 +16,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
18
16
|
|
|
19
17
|
|
|
20
18
|
|
|
21
|
-
## attachProductsProductCategory
|
|
22
|
-
|
|
23
|
-
> ProductCategoryResource attachProductsProductCategory(productCategory, attachProductsProductCategoryRequest)
|
|
24
|
-
|
|
25
|
-
Auto-generated: attachProductsProductCategory
|
|
26
|
-
|
|
27
|
-
### Example
|
|
28
|
-
|
|
29
|
-
```ts
|
|
30
|
-
import {
|
|
31
|
-
Configuration,
|
|
32
|
-
ProductCategoryApi,
|
|
33
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
34
|
-
import type { AttachProductsProductCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
35
|
-
|
|
36
|
-
async function example() {
|
|
37
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
38
|
-
const api = new ProductCategoryApi();
|
|
39
|
-
|
|
40
|
-
const body = {
|
|
41
|
-
// number | The id of the productCategory
|
|
42
|
-
productCategory: 56,
|
|
43
|
-
// AttachProductsProductCategoryRequest (optional)
|
|
44
|
-
attachProductsProductCategoryRequest: ...,
|
|
45
|
-
} satisfies AttachProductsProductCategoryOperationRequest;
|
|
46
|
-
|
|
47
|
-
try {
|
|
48
|
-
const data = await api.attachProductsProductCategory(body);
|
|
49
|
-
console.log(data);
|
|
50
|
-
} catch (error) {
|
|
51
|
-
console.error(error);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// Run the test
|
|
56
|
-
example().catch(console.error);
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Parameters
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
| Name | Type | Description | Notes |
|
|
63
|
-
|------------- | ------------- | ------------- | -------------|
|
|
64
|
-
| **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
|
|
65
|
-
| **attachProductsProductCategoryRequest** | [AttachProductsProductCategoryRequest](AttachProductsProductCategoryRequest.md) | | [Optional] |
|
|
66
|
-
|
|
67
|
-
### Return type
|
|
68
|
-
|
|
69
|
-
[**ProductCategoryResource**](ProductCategoryResource.md)
|
|
70
|
-
|
|
71
|
-
### Authorization
|
|
72
|
-
|
|
73
|
-
No authorization required
|
|
74
|
-
|
|
75
|
-
### HTTP request headers
|
|
76
|
-
|
|
77
|
-
- **Content-Type**: `application/json`
|
|
78
|
-
- **Accept**: `application/json`
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
### HTTP response details
|
|
82
|
-
| Status code | Description | Response headers |
|
|
83
|
-
|-------------|-------------|------------------|
|
|
84
|
-
| **200** | Successful resource response | - |
|
|
85
|
-
|
|
86
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
87
|
-
|
|
88
|
-
|
|
89
19
|
## destroyProductCategory
|
|
90
20
|
|
|
91
21
|
> GenericResponse destroyProductCategory(productCategory)
|
|
@@ -151,74 +81,6 @@ No authorization required
|
|
|
151
81
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
152
82
|
|
|
153
83
|
|
|
154
|
-
## detachProductsProductCategory
|
|
155
|
-
|
|
156
|
-
> ProductCategoryResource detachProductsProductCategory(productCategory, detachProductsProductCategoryRequest)
|
|
157
|
-
|
|
158
|
-
Auto-generated: detachProductsProductCategory
|
|
159
|
-
|
|
160
|
-
### Example
|
|
161
|
-
|
|
162
|
-
```ts
|
|
163
|
-
import {
|
|
164
|
-
Configuration,
|
|
165
|
-
ProductCategoryApi,
|
|
166
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
167
|
-
import type { DetachProductsProductCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
168
|
-
|
|
169
|
-
async function example() {
|
|
170
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
171
|
-
const api = new ProductCategoryApi();
|
|
172
|
-
|
|
173
|
-
const body = {
|
|
174
|
-
// number | The id of the productCategory
|
|
175
|
-
productCategory: 56,
|
|
176
|
-
// DetachProductsProductCategoryRequest (optional)
|
|
177
|
-
detachProductsProductCategoryRequest: ...,
|
|
178
|
-
} satisfies DetachProductsProductCategoryOperationRequest;
|
|
179
|
-
|
|
180
|
-
try {
|
|
181
|
-
const data = await api.detachProductsProductCategory(body);
|
|
182
|
-
console.log(data);
|
|
183
|
-
} catch (error) {
|
|
184
|
-
console.error(error);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
// Run the test
|
|
189
|
-
example().catch(console.error);
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
### Parameters
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
| Name | Type | Description | Notes |
|
|
196
|
-
|------------- | ------------- | ------------- | -------------|
|
|
197
|
-
| **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
|
|
198
|
-
| **detachProductsProductCategoryRequest** | [DetachProductsProductCategoryRequest](DetachProductsProductCategoryRequest.md) | | [Optional] |
|
|
199
|
-
|
|
200
|
-
### Return type
|
|
201
|
-
|
|
202
|
-
[**ProductCategoryResource**](ProductCategoryResource.md)
|
|
203
|
-
|
|
204
|
-
### Authorization
|
|
205
|
-
|
|
206
|
-
No authorization required
|
|
207
|
-
|
|
208
|
-
### HTTP request headers
|
|
209
|
-
|
|
210
|
-
- **Content-Type**: `application/json`
|
|
211
|
-
- **Accept**: `application/json`
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
### HTTP response details
|
|
215
|
-
| Status code | Description | Response headers |
|
|
216
|
-
|-------------|-------------|------------------|
|
|
217
|
-
| **200** | Successful resource response | - |
|
|
218
|
-
|
|
219
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
220
|
-
|
|
221
|
-
|
|
222
84
|
## getAllProductCategory
|
|
223
85
|
|
|
224
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,20 +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
55
|
export interface DestroyProductCategoryRequest {
|
|
67
56
|
productCategory: number;
|
|
68
57
|
}
|
|
69
58
|
|
|
70
|
-
export interface DetachProductsProductCategoryOperationRequest {
|
|
71
|
-
productCategory: number;
|
|
72
|
-
detachProductsProductCategoryRequest?: DetachProductsProductCategoryRequest;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
59
|
export interface GetAllProductCategoryOperationRequest {
|
|
76
60
|
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
77
61
|
}
|
|
@@ -107,46 +91,6 @@ export interface UpdateProductCategoryOperationRequest {
|
|
|
107
91
|
*/
|
|
108
92
|
export class ProductCategoryApi extends runtime.BaseAPI {
|
|
109
93
|
|
|
110
|
-
/**
|
|
111
|
-
* Auto-generated: attachProductsProductCategory
|
|
112
|
-
*/
|
|
113
|
-
async attachProductsProductCategoryRaw(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
|
|
114
|
-
if (requestParameters['productCategory'] == null) {
|
|
115
|
-
throw new runtime.RequiredError(
|
|
116
|
-
'productCategory',
|
|
117
|
-
'Required parameter "productCategory" was null or undefined when calling attachProductsProductCategory().'
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
const queryParameters: any = {};
|
|
122
|
-
|
|
123
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
124
|
-
|
|
125
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
let urlPath = `/admin-api/product-category/{productCategory}/attach-products`;
|
|
129
|
-
urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
|
|
130
|
-
|
|
131
|
-
const response = await this.request({
|
|
132
|
-
path: urlPath,
|
|
133
|
-
method: 'POST',
|
|
134
|
-
headers: headerParameters,
|
|
135
|
-
query: queryParameters,
|
|
136
|
-
body: AttachProductsProductCategoryRequestToJSON(requestParameters['attachProductsProductCategoryRequest']),
|
|
137
|
-
}, initOverrides);
|
|
138
|
-
|
|
139
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryResourceFromJSON(jsonValue));
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Auto-generated: attachProductsProductCategory
|
|
144
|
-
*/
|
|
145
|
-
async attachProductsProductCategory(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource> {
|
|
146
|
-
const response = await this.attachProductsProductCategoryRaw(requestParameters, initOverrides);
|
|
147
|
-
return await response.value();
|
|
148
|
-
}
|
|
149
|
-
|
|
150
94
|
/**
|
|
151
95
|
* Auto-generated: destroyProductCategory
|
|
152
96
|
*/
|
|
@@ -184,46 +128,6 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
184
128
|
return await response.value();
|
|
185
129
|
}
|
|
186
130
|
|
|
187
|
-
/**
|
|
188
|
-
* Auto-generated: detachProductsProductCategory
|
|
189
|
-
*/
|
|
190
|
-
async detachProductsProductCategoryRaw(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
|
|
191
|
-
if (requestParameters['productCategory'] == null) {
|
|
192
|
-
throw new runtime.RequiredError(
|
|
193
|
-
'productCategory',
|
|
194
|
-
'Required parameter "productCategory" was null or undefined when calling detachProductsProductCategory().'
|
|
195
|
-
);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
const queryParameters: any = {};
|
|
199
|
-
|
|
200
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
201
|
-
|
|
202
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
let urlPath = `/admin-api/product-category/{productCategory}/detach-products`;
|
|
206
|
-
urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
|
|
207
|
-
|
|
208
|
-
const response = await this.request({
|
|
209
|
-
path: urlPath,
|
|
210
|
-
method: 'POST',
|
|
211
|
-
headers: headerParameters,
|
|
212
|
-
query: queryParameters,
|
|
213
|
-
body: DetachProductsProductCategoryRequestToJSON(requestParameters['detachProductsProductCategoryRequest']),
|
|
214
|
-
}, initOverrides);
|
|
215
|
-
|
|
216
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryResourceFromJSON(jsonValue));
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Auto-generated: detachProductsProductCategory
|
|
221
|
-
*/
|
|
222
|
-
async detachProductsProductCategory(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource> {
|
|
223
|
-
const response = await this.detachProductsProductCategoryRaw(requestParameters, initOverrides);
|
|
224
|
-
return await response.value();
|
|
225
|
-
}
|
|
226
|
-
|
|
227
131
|
/**
|
|
228
132
|
* Auto-generated: getAllProductCategory
|
|
229
133
|
*/
|
|
@@ -55,12 +55,6 @@ export interface GetAllDocumentRequest {
|
|
|
55
55
|
* @memberof GetAllDocumentRequest
|
|
56
56
|
*/
|
|
57
57
|
includesRelations?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {Array<string>}
|
|
61
|
-
* @memberof GetAllDocumentRequest
|
|
62
|
-
*/
|
|
63
|
-
sitesId?: Array<string>;
|
|
64
58
|
}
|
|
65
59
|
|
|
66
60
|
|
|
@@ -117,7 +111,6 @@ export function GetAllDocumentRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
117
111
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
118
112
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
119
113
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
120
|
-
'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
|
|
121
114
|
};
|
|
122
115
|
}
|
|
123
116
|
|
|
@@ -138,7 +131,6 @@ export function GetAllDocumentRequestToJSONTyped(value?: GetAllDocumentRequest |
|
|
|
138
131
|
'related_id': value['relatedId'],
|
|
139
132
|
'related_type': value['relatedType'],
|
|
140
133
|
'includes_relations': value['includesRelations'],
|
|
141
|
-
'sites-id': value['sitesId'],
|
|
142
134
|
};
|
|
143
135
|
}
|
|
144
136
|
|
|
@@ -87,7 +87,7 @@ export const GetAllProductChildRequestSortByEnum = {
|
|
|
87
87
|
SiteDetailsSlug: 'siteDetails-slug',
|
|
88
88
|
Sku: 'sku',
|
|
89
89
|
Model: 'model',
|
|
90
|
-
NetsuiteSyncNetsuiteId: '
|
|
90
|
+
NetsuiteSyncNetsuiteId: 'netsuite_sync-netsuite_id',
|
|
91
91
|
NewArrivalStartDate: 'new_arrival_start_date',
|
|
92
92
|
NewArrivalEndDate: 'new_arrival_end_date',
|
|
93
93
|
CreatedAt: 'created_at',
|
|
@@ -141,7 +141,7 @@ export function GetAllProductChildRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
141
141
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
142
142
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
143
143
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
144
|
-
'netsuiteSyncHasNetsuiteId': json['
|
|
144
|
+
'netsuiteSyncHasNetsuiteId': json['netsuite_sync-has_netsuite_id'] == null ? undefined : json['netsuite_sync-has_netsuite_id'],
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -164,7 +164,7 @@ export function GetAllProductChildRequestToJSONTyped(value?: GetAllProductChildR
|
|
|
164
164
|
'includes_relations': value['includesRelations'],
|
|
165
165
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
166
166
|
'is_disabled': value['isDisabled'],
|
|
167
|
-
'
|
|
167
|
+
'netsuite_sync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
|
|
@@ -49,12 +49,6 @@ export interface IndexDocumentRequest {
|
|
|
49
49
|
* @memberof IndexDocumentRequest
|
|
50
50
|
*/
|
|
51
51
|
page?: number;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {Array<string>}
|
|
55
|
-
* @memberof IndexDocumentRequest
|
|
56
|
-
*/
|
|
57
|
-
sitesId?: Array<string>;
|
|
58
52
|
/**
|
|
59
53
|
*
|
|
60
54
|
* @type {number}
|
|
@@ -128,7 +122,6 @@ export function IndexDocumentRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
128
122
|
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
129
123
|
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
130
124
|
'page': json['page'] == null ? undefined : json['page'],
|
|
131
|
-
'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
|
|
132
125
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
133
126
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
134
127
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -151,7 +144,6 @@ export function IndexDocumentRequestToJSONTyped(value?: IndexDocumentRequest | n
|
|
|
151
144
|
'sortDirection': value['sortDirection'],
|
|
152
145
|
'per_page': value['perPage'],
|
|
153
146
|
'page': value['page'],
|
|
154
|
-
'sites-id': value['sitesId'],
|
|
155
147
|
'related_id': value['relatedId'],
|
|
156
148
|
'related_type': value['relatedType'],
|
|
157
149
|
'includes_relations': value['includesRelations'],
|
|
@@ -99,7 +99,7 @@ export const IndexProductChildRequestSortByEnum = {
|
|
|
99
99
|
SiteDetailsSlug: 'siteDetails-slug',
|
|
100
100
|
Sku: 'sku',
|
|
101
101
|
Model: 'model',
|
|
102
|
-
NetsuiteSyncNetsuiteId: '
|
|
102
|
+
NetsuiteSyncNetsuiteId: 'netsuite_sync-netsuite_id',
|
|
103
103
|
NewArrivalStartDate: 'new_arrival_start_date',
|
|
104
104
|
NewArrivalEndDate: 'new_arrival_end_date',
|
|
105
105
|
CreatedAt: 'created_at',
|
|
@@ -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',
|
|
@@ -160,7 +158,7 @@ export function IndexProductChildRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
160
158
|
'page': json['page'] == null ? undefined : json['page'],
|
|
161
159
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
162
160
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
163
|
-
'netsuiteSyncHasNetsuiteId': json['
|
|
161
|
+
'netsuiteSyncHasNetsuiteId': json['netsuite_sync-has_netsuite_id'] == null ? undefined : json['netsuite_sync-has_netsuite_id'],
|
|
164
162
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
165
163
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
166
164
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -185,7 +183,7 @@ export function IndexProductChildRequestToJSONTyped(value?: IndexProductChildReq
|
|
|
185
183
|
'page': value['page'],
|
|
186
184
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
187
185
|
'is_disabled': value['isDisabled'],
|
|
188
|
-
'
|
|
186
|
+
'netsuite_sync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
|
|
189
187
|
'related_id': value['relatedId'],
|
|
190
188
|
'related_type': value['relatedType'],
|
|
191
189
|
'includes_relations': value['includesRelations'],
|
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
|
-
|