@digital8/lighting-illusions-ts-sdk 0.0.1179 → 0.0.1181
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 -10
- package/README.md +3 -9
- package/dist/apis/ProductApi.d.ts +1 -17
- package/dist/apis/ProductApi.js +1 -62
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/ProductCategoryResource.d.ts +6 -0
- package/dist/models/ProductCategoryResource.js +4 -0
- package/dist/models/ProductChildResource.d.ts +6 -0
- package/dist/models/ProductChildResource.js +4 -0
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/docs/ProductApi.md +1 -70
- package/docs/ProductCategoryResource.md +2 -0
- package/docs/ProductChildResource.md +2 -0
- package/package.json +1 -1
- package/src/apis/ProductApi.ts +1 -60
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/ProductCategoryResource.ts +9 -0
- package/src/models/ProductChildResource.ts +9 -0
- package/src/models/index.ts +0 -5
- package/dist/models/ProductChildAttributeGroupedResource.d.ts +0 -51
- package/dist/models/ProductChildAttributeGroupedResource.js +0 -64
- package/dist/models/ProductChildAttributeGroupedResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildAttributeGroupedResourceArrayResponse.js +0 -50
- package/dist/models/ProductChildAttributeResource.d.ts +0 -69
- package/dist/models/ProductChildAttributeResource.js +0 -74
- package/dist/models/ProductChildAttributeResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildAttributeResourceArrayResponse.js +0 -50
- package/dist/models/ShowAttributesProductChildRequest.d.ts +0 -99
- package/dist/models/ShowAttributesProductChildRequest.js +0 -83
- package/docs/ProductChildAttributeGroupedResource.md +0 -40
- package/docs/ProductChildAttributeGroupedResourceArrayResponse.md +0 -34
- package/docs/ProductChildAttributeResource.md +0 -46
- package/docs/ProductChildAttributeResourceArrayResponse.md +0 -34
- package/docs/ShowAttributesProductChildRequest.md +0 -50
- package/src/models/ProductChildAttributeGroupedResource.ts +0 -101
- package/src/models/ProductChildAttributeGroupedResourceArrayResponse.ts +0 -73
- package/src/models/ProductChildAttributeResource.ts +0 -127
- package/src/models/ProductChildAttributeResourceArrayResponse.ts +0 -73
- package/src/models/ShowAttributesProductChildRequest.ts +0 -152
package/.openapi-generator/FILES
CHANGED
|
@@ -188,10 +188,6 @@ docs/ProductCategoryLiteResource.md
|
|
|
188
188
|
docs/ProductCategoryLiteResourceArrayResponse.md
|
|
189
189
|
docs/ProductCategoryResource.md
|
|
190
190
|
docs/ProductCategoryResourceArrayResponse.md
|
|
191
|
-
docs/ProductChildAttributeGroupedResource.md
|
|
192
|
-
docs/ProductChildAttributeGroupedResourceArrayResponse.md
|
|
193
|
-
docs/ProductChildAttributeResource.md
|
|
194
|
-
docs/ProductChildAttributeResourceArrayResponse.md
|
|
195
191
|
docs/ProductChildListResource.md
|
|
196
192
|
docs/ProductChildListResourceArrayResponse.md
|
|
197
193
|
docs/ProductChildLiteResource.md
|
|
@@ -234,7 +230,6 @@ docs/ProductTypeResourceArrayResponse.md
|
|
|
234
230
|
docs/SEOResource.md
|
|
235
231
|
docs/SEOResourceArrayResponse.md
|
|
236
232
|
docs/ShowAssetsProductChildRequest.md
|
|
237
|
-
docs/ShowAttributesProductChildRequest.md
|
|
238
233
|
docs/SiteApi.md
|
|
239
234
|
docs/SiteConfigResource.md
|
|
240
235
|
docs/SiteConfigResourceArrayResponse.md
|
|
@@ -509,10 +504,6 @@ src/models/ProductCategoryLiteResource.ts
|
|
|
509
504
|
src/models/ProductCategoryLiteResourceArrayResponse.ts
|
|
510
505
|
src/models/ProductCategoryResource.ts
|
|
511
506
|
src/models/ProductCategoryResourceArrayResponse.ts
|
|
512
|
-
src/models/ProductChildAttributeGroupedResource.ts
|
|
513
|
-
src/models/ProductChildAttributeGroupedResourceArrayResponse.ts
|
|
514
|
-
src/models/ProductChildAttributeResource.ts
|
|
515
|
-
src/models/ProductChildAttributeResourceArrayResponse.ts
|
|
516
507
|
src/models/ProductChildListResource.ts
|
|
517
508
|
src/models/ProductChildListResourceArrayResponse.ts
|
|
518
509
|
src/models/ProductChildLiteResource.ts
|
|
@@ -554,7 +545,6 @@ src/models/ProductTypeResourceArrayResponse.ts
|
|
|
554
545
|
src/models/SEOResource.ts
|
|
555
546
|
src/models/SEOResourceArrayResponse.ts
|
|
556
547
|
src/models/ShowAssetsProductChildRequest.ts
|
|
557
|
-
src/models/ShowAttributesProductChildRequest.ts
|
|
558
548
|
src/models/SiteConfigResource.ts
|
|
559
549
|
src/models/SiteConfigResourceArrayResponse.ts
|
|
560
550
|
src/models/SiteListResource.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.1181
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -118,8 +118,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
118
118
|
*ProductApi* | [**getCompatibleProductsProductChild**](docs/ProductApi.md#getcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/list | Auto-generated: getCompatibleProductsProductChild
|
|
119
119
|
*ProductApi* | [**indexProduct**](docs/ProductApi.md#indexproductoperation) | **POST** /admin-api/product/parent/list | Auto-generated: indexProduct
|
|
120
120
|
*ProductApi* | [**indexProductChild**](docs/ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild
|
|
121
|
-
*ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchildoperation) | **
|
|
122
|
-
*ProductApi* | [**showAttributesProductChild**](docs/ProductApi.md#showattributesproductchildoperation) | **POST** /admin-api/product/children/{productChild}/attributes | Auto-generated: showAttributesProductChild
|
|
121
|
+
*ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchildoperation) | **POST** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild
|
|
123
122
|
*ProductApi* | [**showProduct**](docs/ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct
|
|
124
123
|
*ProductApi* | [**showProductChild**](docs/ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild
|
|
125
124
|
*ProductApi* | [**storeProduct**](docs/ProductApi.md#storeproductoperation) | **POST** /admin-api/product/parent/create | Auto-generated: storeProduct
|
|
@@ -352,10 +351,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
352
351
|
- [ProductCategoryLiteResourceArrayResponse](docs/ProductCategoryLiteResourceArrayResponse.md)
|
|
353
352
|
- [ProductCategoryResource](docs/ProductCategoryResource.md)
|
|
354
353
|
- [ProductCategoryResourceArrayResponse](docs/ProductCategoryResourceArrayResponse.md)
|
|
355
|
-
- [ProductChildAttributeGroupedResource](docs/ProductChildAttributeGroupedResource.md)
|
|
356
|
-
- [ProductChildAttributeGroupedResourceArrayResponse](docs/ProductChildAttributeGroupedResourceArrayResponse.md)
|
|
357
|
-
- [ProductChildAttributeResource](docs/ProductChildAttributeResource.md)
|
|
358
|
-
- [ProductChildAttributeResourceArrayResponse](docs/ProductChildAttributeResourceArrayResponse.md)
|
|
359
354
|
- [ProductChildListResource](docs/ProductChildListResource.md)
|
|
360
355
|
- [ProductChildListResourceArrayResponse](docs/ProductChildListResourceArrayResponse.md)
|
|
361
356
|
- [ProductChildLiteResource](docs/ProductChildLiteResource.md)
|
|
@@ -397,7 +392,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
397
392
|
- [SEOResource](docs/SEOResource.md)
|
|
398
393
|
- [SEOResourceArrayResponse](docs/SEOResourceArrayResponse.md)
|
|
399
394
|
- [ShowAssetsProductChildRequest](docs/ShowAssetsProductChildRequest.md)
|
|
400
|
-
- [ShowAttributesProductChildRequest](docs/ShowAttributesProductChildRequest.md)
|
|
401
395
|
- [SiteConfigResource](docs/SiteConfigResource.md)
|
|
402
396
|
- [SiteConfigResourceArrayResponse](docs/SiteConfigResourceArrayResponse.md)
|
|
403
397
|
- [SiteListResource](docs/SiteListResource.md)
|
|
@@ -489,7 +483,7 @@ and is automatically generated by the
|
|
|
489
483
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
490
484
|
|
|
491
485
|
- API version: `1.0.0`
|
|
492
|
-
- Package version: `0.0.
|
|
486
|
+
- Package version: `0.0.1181`
|
|
493
487
|
- Generator version: `7.20.0`
|
|
494
488
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
495
489
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AssetWithOverlayLinkResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, IndexProductChildRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse,
|
|
13
|
+
import type { AssetWithOverlayLinkResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, IndexProductChildRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse, ProductChildListResourceArrayResponse, ProductChildLiteResourceArrayResponse, ProductChildResource, ProductLiteResourceArrayResponse, ProductResource, ShowAssetsProductChildRequest, StoreProductChildRequest, StoreProductRequest, UpdateProductChildRequest, UpdateProductRequest } from '../models/index';
|
|
14
14
|
export interface AttachAccessoriesProductChildOperationRequest {
|
|
15
15
|
productChild: number;
|
|
16
16
|
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
@@ -65,10 +65,6 @@ export interface ShowAssetsProductChildOperationRequest {
|
|
|
65
65
|
productChild: number;
|
|
66
66
|
showAssetsProductChildRequest?: ShowAssetsProductChildRequest;
|
|
67
67
|
}
|
|
68
|
-
export interface ShowAttributesProductChildOperationRequest {
|
|
69
|
-
productChild: number;
|
|
70
|
-
showAttributesProductChildRequest?: ShowAttributesProductChildRequest;
|
|
71
|
-
}
|
|
72
68
|
export interface ShowProductRequest {
|
|
73
69
|
product: number;
|
|
74
70
|
}
|
|
@@ -273,18 +269,6 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
273
269
|
* Auto-generated: showAssetsProductChild
|
|
274
270
|
*/
|
|
275
271
|
showAssetsProductChild(requestParameters: ShowAssetsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetWithOverlayLinkResourceArrayResponse>;
|
|
276
|
-
/**
|
|
277
|
-
* Creates request options for showAttributesProductChild without sending the request
|
|
278
|
-
*/
|
|
279
|
-
showAttributesProductChildRequestOpts(requestParameters: ShowAttributesProductChildOperationRequest): Promise<runtime.RequestOpts>;
|
|
280
|
-
/**
|
|
281
|
-
* Auto-generated: showAttributesProductChild
|
|
282
|
-
*/
|
|
283
|
-
showAttributesProductChildRaw(requestParameters: ShowAttributesProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildAttributeGroupedResource>>;
|
|
284
|
-
/**
|
|
285
|
-
* Auto-generated: showAttributesProductChild
|
|
286
|
-
*/
|
|
287
|
-
showAttributesProductChild(requestParameters: ShowAttributesProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildAttributeGroupedResource>;
|
|
288
272
|
/**
|
|
289
273
|
* Creates request options for showProduct without sending the request
|
|
290
274
|
*/
|
package/dist/apis/ProductApi.js
CHANGED
|
@@ -934,7 +934,7 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
934
934
|
urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
|
|
935
935
|
return [2 /*return*/, {
|
|
936
936
|
path: urlPath,
|
|
937
|
-
method: '
|
|
937
|
+
method: 'POST',
|
|
938
938
|
headers: headerParameters,
|
|
939
939
|
query: queryParameters,
|
|
940
940
|
body: (0, index_1.ShowAssetsProductChildRequestToJSON)(requestParameters['showAssetsProductChildRequest']),
|
|
@@ -978,67 +978,6 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
978
978
|
});
|
|
979
979
|
});
|
|
980
980
|
};
|
|
981
|
-
/**
|
|
982
|
-
* Creates request options for showAttributesProductChild without sending the request
|
|
983
|
-
*/
|
|
984
|
-
ProductApi.prototype.showAttributesProductChildRequestOpts = function (requestParameters) {
|
|
985
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
986
|
-
var queryParameters, headerParameters, urlPath;
|
|
987
|
-
return __generator(this, function (_a) {
|
|
988
|
-
if (requestParameters['productChild'] == null) {
|
|
989
|
-
throw new runtime.RequiredError('productChild', 'Required parameter "productChild" was null or undefined when calling showAttributesProductChild().');
|
|
990
|
-
}
|
|
991
|
-
queryParameters = {};
|
|
992
|
-
headerParameters = {};
|
|
993
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
994
|
-
urlPath = "/admin-api/product/children/{productChild}/attributes";
|
|
995
|
-
urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
|
|
996
|
-
return [2 /*return*/, {
|
|
997
|
-
path: urlPath,
|
|
998
|
-
method: 'POST',
|
|
999
|
-
headers: headerParameters,
|
|
1000
|
-
query: queryParameters,
|
|
1001
|
-
body: (0, index_1.ShowAttributesProductChildRequestToJSON)(requestParameters['showAttributesProductChildRequest']),
|
|
1002
|
-
}];
|
|
1003
|
-
});
|
|
1004
|
-
});
|
|
1005
|
-
};
|
|
1006
|
-
/**
|
|
1007
|
-
* Auto-generated: showAttributesProductChild
|
|
1008
|
-
*/
|
|
1009
|
-
ProductApi.prototype.showAttributesProductChildRaw = function (requestParameters, initOverrides) {
|
|
1010
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1011
|
-
var requestOptions, response;
|
|
1012
|
-
return __generator(this, function (_a) {
|
|
1013
|
-
switch (_a.label) {
|
|
1014
|
-
case 0: return [4 /*yield*/, this.showAttributesProductChildRequestOpts(requestParameters)];
|
|
1015
|
-
case 1:
|
|
1016
|
-
requestOptions = _a.sent();
|
|
1017
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1018
|
-
case 2:
|
|
1019
|
-
response = _a.sent();
|
|
1020
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductChildAttributeGroupedResourceFromJSON)(jsonValue); })];
|
|
1021
|
-
}
|
|
1022
|
-
});
|
|
1023
|
-
});
|
|
1024
|
-
};
|
|
1025
|
-
/**
|
|
1026
|
-
* Auto-generated: showAttributesProductChild
|
|
1027
|
-
*/
|
|
1028
|
-
ProductApi.prototype.showAttributesProductChild = function (requestParameters, initOverrides) {
|
|
1029
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1030
|
-
var response;
|
|
1031
|
-
return __generator(this, function (_a) {
|
|
1032
|
-
switch (_a.label) {
|
|
1033
|
-
case 0: return [4 /*yield*/, this.showAttributesProductChildRaw(requestParameters, initOverrides)];
|
|
1034
|
-
case 1:
|
|
1035
|
-
response = _a.sent();
|
|
1036
|
-
return [4 /*yield*/, response.value()];
|
|
1037
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
1038
|
-
}
|
|
1039
|
-
});
|
|
1040
|
-
});
|
|
1041
|
-
};
|
|
1042
981
|
/**
|
|
1043
982
|
* Creates request options for showProduct without sending the request
|
|
1044
983
|
*/
|
|
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -56,6 +56,12 @@ export interface ProductCategoryResource {
|
|
|
56
56
|
* @memberof ProductCategoryResource
|
|
57
57
|
*/
|
|
58
58
|
isDisabled: boolean;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof ProductCategoryResource
|
|
63
|
+
*/
|
|
64
|
+
hideFromFrontend: boolean;
|
|
59
65
|
/**
|
|
60
66
|
*
|
|
61
67
|
* @type {boolean}
|
|
@@ -35,6 +35,8 @@ function instanceOfProductCategoryResource(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('hideFromFrontend' in value) || value['hideFromFrontend'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
if (!('isAutomated' in value) || value['isAutomated'] === undefined)
|
|
39
41
|
return false;
|
|
40
42
|
if (!('index' in value) || value['index'] === undefined)
|
|
@@ -69,6 +71,7 @@ function ProductCategoryResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
71
|
'slug': json['slug'],
|
|
70
72
|
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
71
73
|
'isDisabled': json['isDisabled'],
|
|
74
|
+
'hideFromFrontend': json['hideFromFrontend'],
|
|
72
75
|
'isAutomated': json['isAutomated'],
|
|
73
76
|
'index': json['index'],
|
|
74
77
|
'automatedConditionType': json['automatedConditionType'] == null ? undefined : json['automatedConditionType'],
|
|
@@ -96,6 +99,7 @@ function ProductCategoryResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
96
99
|
'slug': value['slug'],
|
|
97
100
|
'parentId': value['parentId'],
|
|
98
101
|
'isDisabled': value['isDisabled'],
|
|
102
|
+
'hideFromFrontend': value['hideFromFrontend'],
|
|
99
103
|
'isAutomated': value['isAutomated'],
|
|
100
104
|
'index': value['index'],
|
|
101
105
|
'automatedConditionType': value['automatedConditionType'],
|
|
@@ -180,6 +180,12 @@ export interface ProductChildResource {
|
|
|
180
180
|
* @memberof ProductChildResource
|
|
181
181
|
*/
|
|
182
182
|
thumbnail: AssetResource | null;
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @type {object}
|
|
186
|
+
* @memberof ProductChildResource
|
|
187
|
+
*/
|
|
188
|
+
attributes: object;
|
|
183
189
|
/**
|
|
184
190
|
*
|
|
185
191
|
* @type {Array<ProductClassResource>}
|
|
@@ -73,6 +73,8 @@ function instanceOfProductChildResource(value) {
|
|
|
73
73
|
return false;
|
|
74
74
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
75
75
|
return false;
|
|
76
|
+
if (!('attributes' in value) || value['attributes'] === undefined)
|
|
77
|
+
return false;
|
|
76
78
|
if (!('productClasses' in value) || value['productClasses'] === undefined)
|
|
77
79
|
return false;
|
|
78
80
|
if (!('productClassString' in value) || value['productClassString'] === undefined)
|
|
@@ -116,6 +118,7 @@ function ProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
116
118
|
'siteDetails': (json['siteDetails'] == null ? null : json['siteDetails'].map(ProductChildSiteDetailResource_1.ProductChildSiteDetailResourceFromJSON)),
|
|
117
119
|
'assets': (json['assets'] == null ? null : json['assets'].map(AssetResource_1.AssetResourceFromJSON)),
|
|
118
120
|
'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
|
|
121
|
+
'attributes': json['attributes'],
|
|
119
122
|
'productClasses': (json['productClasses'] == null ? null : json['productClasses'].map(ProductClassResource_1.ProductClassResourceFromJSON)),
|
|
120
123
|
'productClassString': json['productClassString'],
|
|
121
124
|
'isPrivilegedAdmin': json['isPrivilegedAdmin'],
|
|
@@ -157,6 +160,7 @@ function ProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
157
160
|
'siteDetails': (value['siteDetails'] == null ? null : value['siteDetails'].map(ProductChildSiteDetailResource_1.ProductChildSiteDetailResourceToJSON)),
|
|
158
161
|
'assets': (value['assets'] == null ? null : value['assets'].map(AssetResource_1.AssetResourceToJSON)),
|
|
159
162
|
'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
|
|
163
|
+
'attributes': value['attributes'],
|
|
160
164
|
'productClasses': (value['productClasses'] == null ? null : value['productClasses'].map(ProductClassResource_1.ProductClassResourceToJSON)),
|
|
161
165
|
'productClassString': value['productClassString'],
|
|
162
166
|
'isPrivilegedAdmin': value['isPrivilegedAdmin'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -174,10 +174,6 @@ export * from './ProductCategoryLiteResource';
|
|
|
174
174
|
export * from './ProductCategoryLiteResourceArrayResponse';
|
|
175
175
|
export * from './ProductCategoryResource';
|
|
176
176
|
export * from './ProductCategoryResourceArrayResponse';
|
|
177
|
-
export * from './ProductChildAttributeGroupedResource';
|
|
178
|
-
export * from './ProductChildAttributeGroupedResourceArrayResponse';
|
|
179
|
-
export * from './ProductChildAttributeResource';
|
|
180
|
-
export * from './ProductChildAttributeResourceArrayResponse';
|
|
181
177
|
export * from './ProductChildListResource';
|
|
182
178
|
export * from './ProductChildListResourceArrayResponse';
|
|
183
179
|
export * from './ProductChildLiteResource';
|
|
@@ -219,7 +215,6 @@ export * from './ProductTypeResourceArrayResponse';
|
|
|
219
215
|
export * from './SEOResource';
|
|
220
216
|
export * from './SEOResourceArrayResponse';
|
|
221
217
|
export * from './ShowAssetsProductChildRequest';
|
|
222
|
-
export * from './ShowAttributesProductChildRequest';
|
|
223
218
|
export * from './SiteConfigResource';
|
|
224
219
|
export * from './SiteConfigResourceArrayResponse';
|
|
225
220
|
export * from './SiteListResource';
|
package/dist/models/index.js
CHANGED
|
@@ -192,10 +192,6 @@ __exportStar(require("./ProductCategoryLiteResource"), exports);
|
|
|
192
192
|
__exportStar(require("./ProductCategoryLiteResourceArrayResponse"), exports);
|
|
193
193
|
__exportStar(require("./ProductCategoryResource"), exports);
|
|
194
194
|
__exportStar(require("./ProductCategoryResourceArrayResponse"), exports);
|
|
195
|
-
__exportStar(require("./ProductChildAttributeGroupedResource"), exports);
|
|
196
|
-
__exportStar(require("./ProductChildAttributeGroupedResourceArrayResponse"), exports);
|
|
197
|
-
__exportStar(require("./ProductChildAttributeResource"), exports);
|
|
198
|
-
__exportStar(require("./ProductChildAttributeResourceArrayResponse"), exports);
|
|
199
195
|
__exportStar(require("./ProductChildListResource"), exports);
|
|
200
196
|
__exportStar(require("./ProductChildListResourceArrayResponse"), exports);
|
|
201
197
|
__exportStar(require("./ProductChildLiteResource"), exports);
|
|
@@ -237,7 +233,6 @@ __exportStar(require("./ProductTypeResourceArrayResponse"), exports);
|
|
|
237
233
|
__exportStar(require("./SEOResource"), exports);
|
|
238
234
|
__exportStar(require("./SEOResourceArrayResponse"), exports);
|
|
239
235
|
__exportStar(require("./ShowAssetsProductChildRequest"), exports);
|
|
240
|
-
__exportStar(require("./ShowAttributesProductChildRequest"), exports);
|
|
241
236
|
__exportStar(require("./SiteConfigResource"), exports);
|
|
242
237
|
__exportStar(require("./SiteConfigResourceArrayResponse"), exports);
|
|
243
238
|
__exportStar(require("./SiteListResource"), exports);
|
package/docs/ProductApi.md
CHANGED
|
@@ -18,8 +18,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
18
18
|
| [**getCompatibleProductsProductChild**](ProductApi.md#getcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/list | Auto-generated: getCompatibleProductsProductChild |
|
|
19
19
|
| [**indexProduct**](ProductApi.md#indexproductoperation) | **POST** /admin-api/product/parent/list | Auto-generated: indexProduct |
|
|
20
20
|
| [**indexProductChild**](ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild |
|
|
21
|
-
| [**showAssetsProductChild**](ProductApi.md#showassetsproductchildoperation) | **
|
|
22
|
-
| [**showAttributesProductChild**](ProductApi.md#showattributesproductchildoperation) | **POST** /admin-api/product/children/{productChild}/attributes | Auto-generated: showAttributesProductChild |
|
|
21
|
+
| [**showAssetsProductChild**](ProductApi.md#showassetsproductchildoperation) | **POST** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild |
|
|
23
22
|
| [**showProduct**](ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct |
|
|
24
23
|
| [**showProductChild**](ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild |
|
|
25
24
|
| [**storeProduct**](ProductApi.md#storeproductoperation) | **POST** /admin-api/product/parent/create | Auto-generated: storeProduct |
|
|
@@ -1031,74 +1030,6 @@ No authorization required
|
|
|
1031
1030
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1032
1031
|
|
|
1033
1032
|
|
|
1034
|
-
## showAttributesProductChild
|
|
1035
|
-
|
|
1036
|
-
> ProductChildAttributeGroupedResource showAttributesProductChild(productChild, showAttributesProductChildRequest)
|
|
1037
|
-
|
|
1038
|
-
Auto-generated: showAttributesProductChild
|
|
1039
|
-
|
|
1040
|
-
### Example
|
|
1041
|
-
|
|
1042
|
-
```ts
|
|
1043
|
-
import {
|
|
1044
|
-
Configuration,
|
|
1045
|
-
ProductApi,
|
|
1046
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
1047
|
-
import type { ShowAttributesProductChildOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
1048
|
-
|
|
1049
|
-
async function example() {
|
|
1050
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
1051
|
-
const api = new ProductApi();
|
|
1052
|
-
|
|
1053
|
-
const body = {
|
|
1054
|
-
// number | The id of the productChild
|
|
1055
|
-
productChild: 56,
|
|
1056
|
-
// ShowAttributesProductChildRequest (optional)
|
|
1057
|
-
showAttributesProductChildRequest: ...,
|
|
1058
|
-
} satisfies ShowAttributesProductChildOperationRequest;
|
|
1059
|
-
|
|
1060
|
-
try {
|
|
1061
|
-
const data = await api.showAttributesProductChild(body);
|
|
1062
|
-
console.log(data);
|
|
1063
|
-
} catch (error) {
|
|
1064
|
-
console.error(error);
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
// Run the test
|
|
1069
|
-
example().catch(console.error);
|
|
1070
|
-
```
|
|
1071
|
-
|
|
1072
|
-
### Parameters
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
| Name | Type | Description | Notes |
|
|
1076
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1077
|
-
| **productChild** | `number` | The id of the productChild | [Defaults to `undefined`] |
|
|
1078
|
-
| **showAttributesProductChildRequest** | [ShowAttributesProductChildRequest](ShowAttributesProductChildRequest.md) | | [Optional] |
|
|
1079
|
-
|
|
1080
|
-
### Return type
|
|
1081
|
-
|
|
1082
|
-
[**ProductChildAttributeGroupedResource**](ProductChildAttributeGroupedResource.md)
|
|
1083
|
-
|
|
1084
|
-
### Authorization
|
|
1085
|
-
|
|
1086
|
-
No authorization required
|
|
1087
|
-
|
|
1088
|
-
### HTTP request headers
|
|
1089
|
-
|
|
1090
|
-
- **Content-Type**: `application/json`
|
|
1091
|
-
- **Accept**: `application/json`
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
### HTTP response details
|
|
1095
|
-
| Status code | Description | Response headers |
|
|
1096
|
-
|-------------|-------------|------------------|
|
|
1097
|
-
| **200** | Successful resource response | - |
|
|
1098
|
-
|
|
1099
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
1033
|
## showProduct
|
|
1103
1034
|
|
|
1104
1035
|
> ProductResource showProduct(product)
|
|
@@ -12,6 +12,7 @@ Name | Type
|
|
|
12
12
|
`slug` | string
|
|
13
13
|
`parentId` | string
|
|
14
14
|
`isDisabled` | boolean
|
|
15
|
+
`hideFromFrontend` | boolean
|
|
15
16
|
`isAutomated` | boolean
|
|
16
17
|
`index` | number
|
|
17
18
|
`automatedConditionType` | string
|
|
@@ -36,6 +37,7 @@ const example = {
|
|
|
36
37
|
"slug": null,
|
|
37
38
|
"parentId": null,
|
|
38
39
|
"isDisabled": null,
|
|
40
|
+
"hideFromFrontend": null,
|
|
39
41
|
"isAutomated": null,
|
|
40
42
|
"index": null,
|
|
41
43
|
"automatedConditionType": null,
|
|
@@ -33,6 +33,7 @@ Name | Type
|
|
|
33
33
|
`siteDetails` | [Array<ProductChildSiteDetailResource>](ProductChildSiteDetailResource.md)
|
|
34
34
|
`assets` | [Array<AssetResource>](AssetResource.md)
|
|
35
35
|
`thumbnail` | [AssetResource](AssetResource.md)
|
|
36
|
+
`attributes` | object
|
|
36
37
|
`productClasses` | [Array<ProductClassResource>](ProductClassResource.md)
|
|
37
38
|
`productClassString` | string
|
|
38
39
|
`isPrivilegedAdmin` | boolean
|
|
@@ -71,6 +72,7 @@ const example = {
|
|
|
71
72
|
"siteDetails": null,
|
|
72
73
|
"assets": null,
|
|
73
74
|
"thumbnail": null,
|
|
75
|
+
"attributes": null,
|
|
74
76
|
"productClasses": null,
|
|
75
77
|
"productClassString": null,
|
|
76
78
|
"isPrivilegedAdmin": null,
|
package/package.json
CHANGED
package/src/apis/ProductApi.ts
CHANGED
|
@@ -26,14 +26,12 @@ import type {
|
|
|
26
26
|
IndexProductRequest,
|
|
27
27
|
PaginatedProductChildListResourceResponse,
|
|
28
28
|
PaginatedProductListResourceResponse,
|
|
29
|
-
ProductChildAttributeGroupedResource,
|
|
30
29
|
ProductChildListResourceArrayResponse,
|
|
31
30
|
ProductChildLiteResourceArrayResponse,
|
|
32
31
|
ProductChildResource,
|
|
33
32
|
ProductLiteResourceArrayResponse,
|
|
34
33
|
ProductResource,
|
|
35
34
|
ShowAssetsProductChildRequest,
|
|
36
|
-
ShowAttributesProductChildRequest,
|
|
37
35
|
StoreProductChildRequest,
|
|
38
36
|
StoreProductRequest,
|
|
39
37
|
UpdateProductChildRequest,
|
|
@@ -62,8 +60,6 @@ import {
|
|
|
62
60
|
PaginatedProductChildListResourceResponseToJSON,
|
|
63
61
|
PaginatedProductListResourceResponseFromJSON,
|
|
64
62
|
PaginatedProductListResourceResponseToJSON,
|
|
65
|
-
ProductChildAttributeGroupedResourceFromJSON,
|
|
66
|
-
ProductChildAttributeGroupedResourceToJSON,
|
|
67
63
|
ProductChildListResourceArrayResponseFromJSON,
|
|
68
64
|
ProductChildListResourceArrayResponseToJSON,
|
|
69
65
|
ProductChildLiteResourceArrayResponseFromJSON,
|
|
@@ -76,8 +72,6 @@ import {
|
|
|
76
72
|
ProductResourceToJSON,
|
|
77
73
|
ShowAssetsProductChildRequestFromJSON,
|
|
78
74
|
ShowAssetsProductChildRequestToJSON,
|
|
79
|
-
ShowAttributesProductChildRequestFromJSON,
|
|
80
|
-
ShowAttributesProductChildRequestToJSON,
|
|
81
75
|
StoreProductChildRequestFromJSON,
|
|
82
76
|
StoreProductChildRequestToJSON,
|
|
83
77
|
StoreProductRequestFromJSON,
|
|
@@ -157,11 +151,6 @@ export interface ShowAssetsProductChildOperationRequest {
|
|
|
157
151
|
showAssetsProductChildRequest?: ShowAssetsProductChildRequest;
|
|
158
152
|
}
|
|
159
153
|
|
|
160
|
-
export interface ShowAttributesProductChildOperationRequest {
|
|
161
|
-
productChild: number;
|
|
162
|
-
showAttributesProductChildRequest?: ShowAttributesProductChildRequest;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
154
|
export interface ShowProductRequest {
|
|
166
155
|
product: number;
|
|
167
156
|
}
|
|
@@ -860,7 +849,7 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
860
849
|
|
|
861
850
|
return {
|
|
862
851
|
path: urlPath,
|
|
863
|
-
method: '
|
|
852
|
+
method: 'POST',
|
|
864
853
|
headers: headerParameters,
|
|
865
854
|
query: queryParameters,
|
|
866
855
|
body: ShowAssetsProductChildRequestToJSON(requestParameters['showAssetsProductChildRequest']),
|
|
@@ -885,54 +874,6 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
885
874
|
return await response.value();
|
|
886
875
|
}
|
|
887
876
|
|
|
888
|
-
/**
|
|
889
|
-
* Creates request options for showAttributesProductChild without sending the request
|
|
890
|
-
*/
|
|
891
|
-
async showAttributesProductChildRequestOpts(requestParameters: ShowAttributesProductChildOperationRequest): Promise<runtime.RequestOpts> {
|
|
892
|
-
if (requestParameters['productChild'] == null) {
|
|
893
|
-
throw new runtime.RequiredError(
|
|
894
|
-
'productChild',
|
|
895
|
-
'Required parameter "productChild" was null or undefined when calling showAttributesProductChild().'
|
|
896
|
-
);
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
const queryParameters: any = {};
|
|
900
|
-
|
|
901
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
902
|
-
|
|
903
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
let urlPath = `/admin-api/product/children/{productChild}/attributes`;
|
|
907
|
-
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
908
|
-
|
|
909
|
-
return {
|
|
910
|
-
path: urlPath,
|
|
911
|
-
method: 'POST',
|
|
912
|
-
headers: headerParameters,
|
|
913
|
-
query: queryParameters,
|
|
914
|
-
body: ShowAttributesProductChildRequestToJSON(requestParameters['showAttributesProductChildRequest']),
|
|
915
|
-
};
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
/**
|
|
919
|
-
* Auto-generated: showAttributesProductChild
|
|
920
|
-
*/
|
|
921
|
-
async showAttributesProductChildRaw(requestParameters: ShowAttributesProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildAttributeGroupedResource>> {
|
|
922
|
-
const requestOptions = await this.showAttributesProductChildRequestOpts(requestParameters);
|
|
923
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
924
|
-
|
|
925
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildAttributeGroupedResourceFromJSON(jsonValue));
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
/**
|
|
929
|
-
* Auto-generated: showAttributesProductChild
|
|
930
|
-
*/
|
|
931
|
-
async showAttributesProductChild(requestParameters: ShowAttributesProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildAttributeGroupedResource> {
|
|
932
|
-
const response = await this.showAttributesProductChildRaw(requestParameters, initOverrides);
|
|
933
|
-
return await response.value();
|
|
934
|
-
}
|
|
935
|
-
|
|
936
877
|
/**
|
|
937
878
|
* Creates request options for showProduct without sending the request
|
|
938
879
|
*/
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -91,6 +91,12 @@ export interface ProductCategoryResource {
|
|
|
91
91
|
* @memberof ProductCategoryResource
|
|
92
92
|
*/
|
|
93
93
|
isDisabled: boolean;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* @memberof ProductCategoryResource
|
|
98
|
+
*/
|
|
99
|
+
hideFromFrontend: boolean;
|
|
94
100
|
/**
|
|
95
101
|
*
|
|
96
102
|
* @type {boolean}
|
|
@@ -161,6 +167,7 @@ export function instanceOfProductCategoryResource(value: object): value is Produ
|
|
|
161
167
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
162
168
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
163
169
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
|
|
170
|
+
if (!('hideFromFrontend' in value) || value['hideFromFrontend'] === undefined) return false;
|
|
164
171
|
if (!('isAutomated' in value) || value['isAutomated'] === undefined) return false;
|
|
165
172
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
166
173
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
@@ -189,6 +196,7 @@ export function ProductCategoryResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
189
196
|
'slug': json['slug'],
|
|
190
197
|
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
191
198
|
'isDisabled': json['isDisabled'],
|
|
199
|
+
'hideFromFrontend': json['hideFromFrontend'],
|
|
192
200
|
'isAutomated': json['isAutomated'],
|
|
193
201
|
'index': json['index'],
|
|
194
202
|
'automatedConditionType': json['automatedConditionType'] == null ? undefined : json['automatedConditionType'],
|
|
@@ -219,6 +227,7 @@ export function ProductCategoryResourceToJSONTyped(value?: ProductCategoryResour
|
|
|
219
227
|
'slug': value['slug'],
|
|
220
228
|
'parentId': value['parentId'],
|
|
221
229
|
'isDisabled': value['isDisabled'],
|
|
230
|
+
'hideFromFrontend': value['hideFromFrontend'],
|
|
222
231
|
'isAutomated': value['isAutomated'],
|
|
223
232
|
'index': value['index'],
|
|
224
233
|
'automatedConditionType': value['automatedConditionType'],
|