@digital8/lighting-illusions-ts-sdk 0.0.1149 → 0.0.1150
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 +2 -4
- package/README.md +4 -7
- package/dist/apis/ExternalApiLogApi.d.ts +1 -16
- package/dist/apis/ExternalApiLogApi.js +0 -58
- package/dist/apis/OverlayTemplateApi.d.ts +1 -17
- package/dist/apis/OverlayTemplateApi.js +0 -61
- package/dist/apis/ProductApi.d.ts +10 -10
- package/dist/apis/ProductApi.js +4 -4
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/IndexExternalApiLogRequest.d.ts +0 -18
- package/dist/models/IndexExternalApiLogRequest.js +0 -6
- package/dist/models/IndexProductChildRequest.d.ts +190 -0
- package/dist/models/{GetProductChildrenOverlayTemplateRequest.js → IndexProductChildRequest.js} +17 -17
- package/dist/models/ProductChildOverlayRelationResource.d.ts +12 -25
- package/dist/models/ProductChildOverlayRelationResource.js +17 -24
- package/dist/models/ProductTypeListResource.d.ts +6 -0
- package/dist/models/ProductTypeListResource.js +4 -0
- package/dist/models/index.d.ts +1 -2
- package/dist/models/index.js +1 -2
- package/docs/ExternalApiLogApi.md +0 -66
- package/docs/IndexExternalApiLogRequest.md +0 -6
- package/docs/{GetProductChildrenOverlayTemplateRequest.md → IndexProductChildRequest.md} +4 -4
- package/docs/OverlayTemplateApi.md +0 -69
- package/docs/ProductApi.md +17 -17
- package/docs/ProductChildOverlayRelationResource.md +9 -13
- package/docs/ProductTypeListResource.md +2 -0
- package/package.json +1 -1
- package/src/apis/ExternalApiLogApi.ts +0 -50
- package/src/apis/OverlayTemplateApi.ts +0 -59
- package/src/apis/ProductApi.ts +16 -19
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/IndexExternalApiLogRequest.ts +0 -24
- package/src/models/{GetProductChildrenOverlayTemplateRequest.ts → IndexProductChildRequest.ts} +42 -42
- package/src/models/ProductChildOverlayRelationResource.ts +31 -55
- package/src/models/ProductTypeListResource.ts +9 -0
- package/src/models/index.ts +1 -2
- package/dist/models/GetProductChildrenOverlayTemplateRequest.d.ts +0 -190
- package/dist/models/GetUniqueEndpointsExternalApiLogRequest.d.ts +0 -40
- package/dist/models/GetUniqueEndpointsExternalApiLogRequest.js +0 -57
- package/docs/GetUniqueEndpointsExternalApiLogRequest.md +0 -34
- package/src/models/GetUniqueEndpointsExternalApiLogRequest.ts +0 -76
package/.openapi-generator/FILES
CHANGED
|
@@ -85,8 +85,6 @@ docs/GetAllProductRequest.md
|
|
|
85
85
|
docs/GetAllProductTypeRequest.md
|
|
86
86
|
docs/GetAllSupplierRequest.md
|
|
87
87
|
docs/GetHierarchyProductCategoryRequest.md
|
|
88
|
-
docs/GetProductChildrenOverlayTemplateRequest.md
|
|
89
|
-
docs/GetUniqueEndpointsExternalApiLogRequest.md
|
|
90
88
|
docs/GlobalSearchCategoryResource.md
|
|
91
89
|
docs/GlobalSearchCategoryResourceArrayResponse.md
|
|
92
90
|
docs/GlobalSearchProductResource.md
|
|
@@ -105,6 +103,7 @@ docs/IndexDocumentRequest.md
|
|
|
105
103
|
docs/IndexExternalApiLogRequest.md
|
|
106
104
|
docs/IndexOverlayTemplateRequest.md
|
|
107
105
|
docs/IndexProductCategoryRequest.md
|
|
106
|
+
docs/IndexProductChildRequest.md
|
|
108
107
|
docs/IndexProductRequest.md
|
|
109
108
|
docs/IndexProductTypeRequest.md
|
|
110
109
|
docs/IndexSiteNotificationRequest.md
|
|
@@ -401,8 +400,6 @@ src/models/GetAllProductRequest.ts
|
|
|
401
400
|
src/models/GetAllProductTypeRequest.ts
|
|
402
401
|
src/models/GetAllSupplierRequest.ts
|
|
403
402
|
src/models/GetHierarchyProductCategoryRequest.ts
|
|
404
|
-
src/models/GetProductChildrenOverlayTemplateRequest.ts
|
|
405
|
-
src/models/GetUniqueEndpointsExternalApiLogRequest.ts
|
|
406
403
|
src/models/GlobalSearchCategoryResource.ts
|
|
407
404
|
src/models/GlobalSearchCategoryResourceArrayResponse.ts
|
|
408
405
|
src/models/GlobalSearchProductResource.ts
|
|
@@ -420,6 +417,7 @@ src/models/IndexDocumentRequest.ts
|
|
|
420
417
|
src/models/IndexExternalApiLogRequest.ts
|
|
421
418
|
src/models/IndexOverlayTemplateRequest.ts
|
|
422
419
|
src/models/IndexProductCategoryRequest.ts
|
|
420
|
+
src/models/IndexProductChildRequest.ts
|
|
423
421
|
src/models/IndexProductRequest.ts
|
|
424
422
|
src/models/IndexProductTypeRequest.ts
|
|
425
423
|
src/models/IndexSiteNotificationRequest.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.1150
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -85,7 +85,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
85
85
|
*DocumentApi* | [**storeDocument**](docs/DocumentApi.md#storedocumentoperation) | **POST** /admin-api/document/create | Auto-generated: storeDocument
|
|
86
86
|
*DocumentApi* | [**storeDocumentFile**](docs/DocumentApi.md#storedocumentfileoperation) | **POST** /admin-api/document/files | Auto-generated: storeDocumentFile
|
|
87
87
|
*DocumentApi* | [**updateDocument**](docs/DocumentApi.md#updatedocumentoperation) | **PUT** /admin-api/document/{document}/update | Auto-generated: updateDocument
|
|
88
|
-
*ExternalApiLogApi* | [**getUniqueEndpointsExternalApiLog**](docs/ExternalApiLogApi.md#getuniqueendpointsexternalapilogoperation) | **POST** /admin-api/external-api-log/endpoints | Auto-generated: getUniqueEndpointsExternalApiLog
|
|
89
88
|
*ExternalApiLogApi* | [**indexExternalApiLog**](docs/ExternalApiLogApi.md#indexexternalapilogoperation) | **POST** /admin-api/external-api-log/list | Auto-generated: indexExternalApiLog
|
|
90
89
|
*GoogleCategoryApi* | [**getAllGoogleCategory**](docs/GoogleCategoryApi.md#getallgooglecategoryoperation) | **POST** /admin-api/google-category/all | Auto-generated: getAllGoogleCategory
|
|
91
90
|
*OverlayTemplateApi* | [**attachAssetsOverlayTemplate**](docs/OverlayTemplateApi.md#attachassetsoverlaytemplateoperation) | **POST** /admin-api/overlay-template/{overlayTemplate}/attach-assets | Auto-generated: attachAssetsOverlayTemplate
|
|
@@ -94,7 +93,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
94
93
|
*OverlayTemplateApi* | [**detachAssetOverlayTemplate**](docs/OverlayTemplateApi.md#detachassetoverlaytemplate) | **POST** /admin-api/overlay-template/{overlayTemplate}/detach-asset/{asset} | Auto-generated: detachAssetOverlayTemplate
|
|
95
94
|
*OverlayTemplateApi* | [**detachAssetableOverlayTemplate**](docs/OverlayTemplateApi.md#detachassetableoverlaytemplateoperation) | **POST** /admin-api/overlay-template/{overlayTemplate}/detach-assetable | Auto-generated: detachAssetableOverlayTemplate
|
|
96
95
|
*OverlayTemplateApi* | [**getAllOverlayTemplate**](docs/OverlayTemplateApi.md#getalloverlaytemplateoperation) | **POST** /admin-api/overlay-template/all | Auto-generated: getAllOverlayTemplate
|
|
97
|
-
*OverlayTemplateApi* | [**getProductChildrenOverlayTemplate**](docs/OverlayTemplateApi.md#getproductchildrenoverlaytemplateoperation) | **POST** /admin-api/overlay-template/{overlayTemplate}/product-children | Auto-generated: getProductChildrenOverlayTemplate
|
|
98
96
|
*OverlayTemplateApi* | [**indexOverlayTemplate**](docs/OverlayTemplateApi.md#indexoverlaytemplateoperation) | **POST** /admin-api/overlay-template/list | Auto-generated: indexOverlayTemplate
|
|
99
97
|
*OverlayTemplateApi* | [**showOverlayTemplate**](docs/OverlayTemplateApi.md#showoverlaytemplate) | **GET** /admin-api/overlay-template/{overlayTemplate} | Auto-generated: showOverlayTemplate
|
|
100
98
|
*OverlayTemplateApi* | [**storeOverlayTemplate**](docs/OverlayTemplateApi.md#storeoverlaytemplateoperation) | **POST** /admin-api/overlay-template/create | Auto-generated: storeOverlayTemplate
|
|
@@ -114,7 +112,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
114
112
|
*ProductApi* | [**getAllProductChild**](docs/ProductApi.md#getallproductchildoperation) | **POST** /admin-api/product/children/all | Auto-generated: getAllProductChild
|
|
115
113
|
*ProductApi* | [**getCompatibleProductsProductChild**](docs/ProductApi.md#getcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/list | Auto-generated: getCompatibleProductsProductChild
|
|
116
114
|
*ProductApi* | [**indexProduct**](docs/ProductApi.md#indexproductoperation) | **POST** /admin-api/product/parent/list | Auto-generated: indexProduct
|
|
117
|
-
*ProductApi* | [**indexProductChild**](docs/ProductApi.md#
|
|
115
|
+
*ProductApi* | [**indexProductChild**](docs/ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild
|
|
118
116
|
*ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchild) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild
|
|
119
117
|
*ProductApi* | [**showProduct**](docs/ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct
|
|
120
118
|
*ProductApi* | [**showProductChild**](docs/ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild
|
|
@@ -250,8 +248,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
250
248
|
- [GetAllProductTypeRequest](docs/GetAllProductTypeRequest.md)
|
|
251
249
|
- [GetAllSupplierRequest](docs/GetAllSupplierRequest.md)
|
|
252
250
|
- [GetHierarchyProductCategoryRequest](docs/GetHierarchyProductCategoryRequest.md)
|
|
253
|
-
- [GetProductChildrenOverlayTemplateRequest](docs/GetProductChildrenOverlayTemplateRequest.md)
|
|
254
|
-
- [GetUniqueEndpointsExternalApiLogRequest](docs/GetUniqueEndpointsExternalApiLogRequest.md)
|
|
255
251
|
- [GlobalSearchCategoryResource](docs/GlobalSearchCategoryResource.md)
|
|
256
252
|
- [GlobalSearchCategoryResourceArrayResponse](docs/GlobalSearchCategoryResourceArrayResponse.md)
|
|
257
253
|
- [GlobalSearchProductResource](docs/GlobalSearchProductResource.md)
|
|
@@ -269,6 +265,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
269
265
|
- [IndexExternalApiLogRequest](docs/IndexExternalApiLogRequest.md)
|
|
270
266
|
- [IndexOverlayTemplateRequest](docs/IndexOverlayTemplateRequest.md)
|
|
271
267
|
- [IndexProductCategoryRequest](docs/IndexProductCategoryRequest.md)
|
|
268
|
+
- [IndexProductChildRequest](docs/IndexProductChildRequest.md)
|
|
272
269
|
- [IndexProductRequest](docs/IndexProductRequest.md)
|
|
273
270
|
- [IndexProductTypeRequest](docs/IndexProductTypeRequest.md)
|
|
274
271
|
- [IndexSiteNotificationRequest](docs/IndexSiteNotificationRequest.md)
|
|
@@ -477,7 +474,7 @@ and is automatically generated by the
|
|
|
477
474
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
478
475
|
|
|
479
476
|
- API version: `1.0.0`
|
|
480
|
-
- Package version: `0.0.
|
|
477
|
+
- Package version: `0.0.1150`
|
|
481
478
|
- Generator version: `7.20.0`
|
|
482
479
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
483
480
|
|
|
@@ -10,10 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface GetUniqueEndpointsExternalApiLogOperationRequest {
|
|
15
|
-
getUniqueEndpointsExternalApiLogRequest?: GetUniqueEndpointsExternalApiLogRequest;
|
|
16
|
-
}
|
|
13
|
+
import type { IndexExternalApiLogRequest, PaginatedExternalApiLogResourceResponse } from '../models/index';
|
|
17
14
|
export interface IndexExternalApiLogOperationRequest {
|
|
18
15
|
indexExternalApiLogRequest?: IndexExternalApiLogRequest;
|
|
19
16
|
}
|
|
@@ -21,18 +18,6 @@ export interface IndexExternalApiLogOperationRequest {
|
|
|
21
18
|
*
|
|
22
19
|
*/
|
|
23
20
|
export declare class ExternalApiLogApi extends runtime.BaseAPI {
|
|
24
|
-
/**
|
|
25
|
-
* Creates request options for getUniqueEndpointsExternalApiLog without sending the request
|
|
26
|
-
*/
|
|
27
|
-
getUniqueEndpointsExternalApiLogRequestOpts(requestParameters: GetUniqueEndpointsExternalApiLogOperationRequest): Promise<runtime.RequestOpts>;
|
|
28
|
-
/**
|
|
29
|
-
* Auto-generated: getUniqueEndpointsExternalApiLog
|
|
30
|
-
*/
|
|
31
|
-
getUniqueEndpointsExternalApiLogRaw(requestParameters: GetUniqueEndpointsExternalApiLogOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
32
|
-
/**
|
|
33
|
-
* Auto-generated: getUniqueEndpointsExternalApiLog
|
|
34
|
-
*/
|
|
35
|
-
getUniqueEndpointsExternalApiLog(requestParameters?: GetUniqueEndpointsExternalApiLogOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
36
21
|
/**
|
|
37
22
|
* Creates request options for indexExternalApiLog without sending the request
|
|
38
23
|
*/
|
|
@@ -75,64 +75,6 @@ var ExternalApiLogApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function ExternalApiLogApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
-
/**
|
|
79
|
-
* Creates request options for getUniqueEndpointsExternalApiLog without sending the request
|
|
80
|
-
*/
|
|
81
|
-
ExternalApiLogApi.prototype.getUniqueEndpointsExternalApiLogRequestOpts = function (requestParameters) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, urlPath;
|
|
84
|
-
return __generator(this, function (_a) {
|
|
85
|
-
queryParameters = {};
|
|
86
|
-
headerParameters = {};
|
|
87
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
88
|
-
urlPath = "/admin-api/external-api-log/endpoints";
|
|
89
|
-
return [2 /*return*/, {
|
|
90
|
-
path: urlPath,
|
|
91
|
-
method: 'POST',
|
|
92
|
-
headers: headerParameters,
|
|
93
|
-
query: queryParameters,
|
|
94
|
-
body: (0, index_1.GetUniqueEndpointsExternalApiLogRequestToJSON)(requestParameters['getUniqueEndpointsExternalApiLogRequest']),
|
|
95
|
-
}];
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* Auto-generated: getUniqueEndpointsExternalApiLog
|
|
101
|
-
*/
|
|
102
|
-
ExternalApiLogApi.prototype.getUniqueEndpointsExternalApiLogRaw = function (requestParameters, initOverrides) {
|
|
103
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
104
|
-
var requestOptions, response;
|
|
105
|
-
return __generator(this, function (_a) {
|
|
106
|
-
switch (_a.label) {
|
|
107
|
-
case 0: return [4 /*yield*/, this.getUniqueEndpointsExternalApiLogRequestOpts(requestParameters)];
|
|
108
|
-
case 1:
|
|
109
|
-
requestOptions = _a.sent();
|
|
110
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
111
|
-
case 2:
|
|
112
|
-
response = _a.sent();
|
|
113
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
* Auto-generated: getUniqueEndpointsExternalApiLog
|
|
120
|
-
*/
|
|
121
|
-
ExternalApiLogApi.prototype.getUniqueEndpointsExternalApiLog = function () {
|
|
122
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
123
|
-
var response;
|
|
124
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
125
|
-
return __generator(this, function (_a) {
|
|
126
|
-
switch (_a.label) {
|
|
127
|
-
case 0: return [4 /*yield*/, this.getUniqueEndpointsExternalApiLogRaw(requestParameters, initOverrides)];
|
|
128
|
-
case 1:
|
|
129
|
-
response = _a.sent();
|
|
130
|
-
return [4 /*yield*/, response.value()];
|
|
131
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
78
|
/**
|
|
137
79
|
* Creates request options for indexExternalApiLog without sending the request
|
|
138
80
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AttachAssetsOverlayTemplateRequest, DetachAssetableOverlayTemplateRequest, GenericResponse, GetAllOverlayTemplateRequest,
|
|
13
|
+
import type { AttachAssetsOverlayTemplateRequest, DetachAssetableOverlayTemplateRequest, GenericResponse, GetAllOverlayTemplateRequest, IndexOverlayTemplateRequest, OverlayTemplateLiteResourceArrayResponse, OverlayTemplateResource, PaginatedOverlayTemplateListResourceResponse, StoreOverlayTemplateAssetRequest, StoreOverlayTemplateRequest, UpdateOverlayTemplateAssetRequest, UpdateOverlayTemplateRequest } from '../models/index';
|
|
14
14
|
export interface AttachAssetsOverlayTemplateOperationRequest {
|
|
15
15
|
overlayTemplate: number;
|
|
16
16
|
attachAssetsOverlayTemplateRequest?: AttachAssetsOverlayTemplateRequest;
|
|
@@ -32,10 +32,6 @@ export interface DetachAssetableOverlayTemplateOperationRequest {
|
|
|
32
32
|
export interface GetAllOverlayTemplateOperationRequest {
|
|
33
33
|
getAllOverlayTemplateRequest?: GetAllOverlayTemplateRequest;
|
|
34
34
|
}
|
|
35
|
-
export interface GetProductChildrenOverlayTemplateOperationRequest {
|
|
36
|
-
overlayTemplate: number;
|
|
37
|
-
getProductChildrenOverlayTemplateRequest?: GetProductChildrenOverlayTemplateRequest;
|
|
38
|
-
}
|
|
39
35
|
export interface IndexOverlayTemplateOperationRequest {
|
|
40
36
|
indexOverlayTemplateRequest?: IndexOverlayTemplateRequest;
|
|
41
37
|
}
|
|
@@ -132,18 +128,6 @@ export declare class OverlayTemplateApi extends runtime.BaseAPI {
|
|
|
132
128
|
* Auto-generated: getAllOverlayTemplate
|
|
133
129
|
*/
|
|
134
130
|
getAllOverlayTemplate(requestParameters?: GetAllOverlayTemplateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OverlayTemplateLiteResourceArrayResponse>;
|
|
135
|
-
/**
|
|
136
|
-
* Creates request options for getProductChildrenOverlayTemplate without sending the request
|
|
137
|
-
*/
|
|
138
|
-
getProductChildrenOverlayTemplateRequestOpts(requestParameters: GetProductChildrenOverlayTemplateOperationRequest): Promise<runtime.RequestOpts>;
|
|
139
|
-
/**
|
|
140
|
-
* Auto-generated: getProductChildrenOverlayTemplate
|
|
141
|
-
*/
|
|
142
|
-
getProductChildrenOverlayTemplateRaw(requestParameters: GetProductChildrenOverlayTemplateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildOverlayRelationResourceResponse>>;
|
|
143
|
-
/**
|
|
144
|
-
* Auto-generated: getProductChildrenOverlayTemplate
|
|
145
|
-
*/
|
|
146
|
-
getProductChildrenOverlayTemplate(requestParameters: GetProductChildrenOverlayTemplateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildOverlayRelationResourceResponse>;
|
|
147
131
|
/**
|
|
148
132
|
* Creates request options for indexOverlayTemplate without sending the request
|
|
149
133
|
*/
|
|
@@ -436,67 +436,6 @@ var OverlayTemplateApi = /** @class */ (function (_super) {
|
|
|
436
436
|
});
|
|
437
437
|
});
|
|
438
438
|
};
|
|
439
|
-
/**
|
|
440
|
-
* Creates request options for getProductChildrenOverlayTemplate without sending the request
|
|
441
|
-
*/
|
|
442
|
-
OverlayTemplateApi.prototype.getProductChildrenOverlayTemplateRequestOpts = function (requestParameters) {
|
|
443
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
444
|
-
var queryParameters, headerParameters, urlPath;
|
|
445
|
-
return __generator(this, function (_a) {
|
|
446
|
-
if (requestParameters['overlayTemplate'] == null) {
|
|
447
|
-
throw new runtime.RequiredError('overlayTemplate', 'Required parameter "overlayTemplate" was null or undefined when calling getProductChildrenOverlayTemplate().');
|
|
448
|
-
}
|
|
449
|
-
queryParameters = {};
|
|
450
|
-
headerParameters = {};
|
|
451
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
452
|
-
urlPath = "/admin-api/overlay-template/{overlayTemplate}/product-children";
|
|
453
|
-
urlPath = urlPath.replace("{".concat("overlayTemplate", "}"), encodeURIComponent(String(requestParameters['overlayTemplate'])));
|
|
454
|
-
return [2 /*return*/, {
|
|
455
|
-
path: urlPath,
|
|
456
|
-
method: 'POST',
|
|
457
|
-
headers: headerParameters,
|
|
458
|
-
query: queryParameters,
|
|
459
|
-
body: (0, index_1.GetProductChildrenOverlayTemplateRequestToJSON)(requestParameters['getProductChildrenOverlayTemplateRequest']),
|
|
460
|
-
}];
|
|
461
|
-
});
|
|
462
|
-
});
|
|
463
|
-
};
|
|
464
|
-
/**
|
|
465
|
-
* Auto-generated: getProductChildrenOverlayTemplate
|
|
466
|
-
*/
|
|
467
|
-
OverlayTemplateApi.prototype.getProductChildrenOverlayTemplateRaw = function (requestParameters, initOverrides) {
|
|
468
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
469
|
-
var requestOptions, response;
|
|
470
|
-
return __generator(this, function (_a) {
|
|
471
|
-
switch (_a.label) {
|
|
472
|
-
case 0: return [4 /*yield*/, this.getProductChildrenOverlayTemplateRequestOpts(requestParameters)];
|
|
473
|
-
case 1:
|
|
474
|
-
requestOptions = _a.sent();
|
|
475
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
476
|
-
case 2:
|
|
477
|
-
response = _a.sent();
|
|
478
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductChildOverlayRelationResourceResponseFromJSON)(jsonValue); })];
|
|
479
|
-
}
|
|
480
|
-
});
|
|
481
|
-
});
|
|
482
|
-
};
|
|
483
|
-
/**
|
|
484
|
-
* Auto-generated: getProductChildrenOverlayTemplate
|
|
485
|
-
*/
|
|
486
|
-
OverlayTemplateApi.prototype.getProductChildrenOverlayTemplate = function (requestParameters, initOverrides) {
|
|
487
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
488
|
-
var response;
|
|
489
|
-
return __generator(this, function (_a) {
|
|
490
|
-
switch (_a.label) {
|
|
491
|
-
case 0: return [4 /*yield*/, this.getProductChildrenOverlayTemplateRaw(requestParameters, initOverrides)];
|
|
492
|
-
case 1:
|
|
493
|
-
response = _a.sent();
|
|
494
|
-
return [4 /*yield*/, response.value()];
|
|
495
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
});
|
|
499
|
-
};
|
|
500
439
|
/**
|
|
501
440
|
* Creates request options for indexOverlayTemplate without sending the request
|
|
502
441
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AssetResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest,
|
|
13
|
+
import type { AssetResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, IndexProductChildRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse, ProductChildLiteResourceArrayResponse, ProductChildResource, ProductLiteResourceArrayResponse, ProductResource, StoreProductChildRequest, StoreProductRequest, UpdateProductChildRequest, UpdateProductRequest } from '../models/index';
|
|
14
14
|
export interface AttachAccessoriesProductChildOperationRequest {
|
|
15
15
|
productChild: number;
|
|
16
16
|
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
@@ -43,7 +43,7 @@ export interface DetachDocumentsProductChildOperationRequest {
|
|
|
43
43
|
}
|
|
44
44
|
export interface GetAccessoriesProductChildRequest {
|
|
45
45
|
productChild: number;
|
|
46
|
-
|
|
46
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
47
47
|
}
|
|
48
48
|
export interface GetAllProductOperationRequest {
|
|
49
49
|
getAllProductRequest?: GetAllProductRequest;
|
|
@@ -53,13 +53,13 @@ export interface GetAllProductChildOperationRequest {
|
|
|
53
53
|
}
|
|
54
54
|
export interface GetCompatibleProductsProductChildRequest {
|
|
55
55
|
productChild: number;
|
|
56
|
-
|
|
56
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
57
57
|
}
|
|
58
58
|
export interface IndexProductOperationRequest {
|
|
59
59
|
indexProductRequest?: IndexProductRequest;
|
|
60
60
|
}
|
|
61
|
-
export interface
|
|
62
|
-
|
|
61
|
+
export interface IndexProductChildOperationRequest {
|
|
62
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
63
63
|
}
|
|
64
64
|
export interface ShowAssetsProductChildRequest {
|
|
65
65
|
productChild: number;
|
|
@@ -191,11 +191,11 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
191
191
|
/**
|
|
192
192
|
* Auto-generated: getAccessoriesProductChild
|
|
193
193
|
*/
|
|
194
|
-
getAccessoriesProductChildRaw(requestParameters: GetAccessoriesProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
194
|
+
getAccessoriesProductChildRaw(requestParameters: GetAccessoriesProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>>;
|
|
195
195
|
/**
|
|
196
196
|
* Auto-generated: getAccessoriesProductChild
|
|
197
197
|
*/
|
|
198
|
-
getAccessoriesProductChild(requestParameters: GetAccessoriesProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
198
|
+
getAccessoriesProductChild(requestParameters: GetAccessoriesProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
|
|
199
199
|
/**
|
|
200
200
|
* Creates request options for getAllProduct without sending the request
|
|
201
201
|
*/
|
|
@@ -247,15 +247,15 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
247
247
|
/**
|
|
248
248
|
* Creates request options for indexProductChild without sending the request
|
|
249
249
|
*/
|
|
250
|
-
indexProductChildRequestOpts(requestParameters:
|
|
250
|
+
indexProductChildRequestOpts(requestParameters: IndexProductChildOperationRequest): Promise<runtime.RequestOpts>;
|
|
251
251
|
/**
|
|
252
252
|
* Auto-generated: indexProductChild
|
|
253
253
|
*/
|
|
254
|
-
indexProductChildRaw(requestParameters:
|
|
254
|
+
indexProductChildRaw(requestParameters: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>>;
|
|
255
255
|
/**
|
|
256
256
|
* Auto-generated: indexProductChild
|
|
257
257
|
*/
|
|
258
|
-
indexProductChild(requestParameters?:
|
|
258
|
+
indexProductChild(requestParameters?: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
|
|
259
259
|
/**
|
|
260
260
|
* Creates request options for showAssetsProductChild without sending the request
|
|
261
261
|
*/
|
package/dist/apis/ProductApi.js
CHANGED
|
@@ -583,7 +583,7 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
583
583
|
method: 'POST',
|
|
584
584
|
headers: headerParameters,
|
|
585
585
|
query: queryParameters,
|
|
586
|
-
body: (0, index_1.
|
|
586
|
+
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
587
587
|
}];
|
|
588
588
|
});
|
|
589
589
|
});
|
|
@@ -602,7 +602,7 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
602
602
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
603
603
|
case 2:
|
|
604
604
|
response = _a.sent();
|
|
605
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
605
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductChildListResourceResponseFromJSON)(jsonValue); })];
|
|
606
606
|
}
|
|
607
607
|
});
|
|
608
608
|
});
|
|
@@ -760,7 +760,7 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
760
760
|
method: 'POST',
|
|
761
761
|
headers: headerParameters,
|
|
762
762
|
query: queryParameters,
|
|
763
|
-
body: (0, index_1.
|
|
763
|
+
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
764
764
|
}];
|
|
765
765
|
});
|
|
766
766
|
});
|
|
@@ -875,7 +875,7 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
875
875
|
method: 'POST',
|
|
876
876
|
headers: headerParameters,
|
|
877
877
|
query: queryParameters,
|
|
878
|
-
body: (0, index_1.
|
|
878
|
+
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
879
879
|
}];
|
|
880
880
|
});
|
|
881
881
|
});
|
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -87,24 +87,6 @@ export interface IndexExternalApiLogRequest {
|
|
|
87
87
|
* @memberof IndexExternalApiLogRequest
|
|
88
88
|
*/
|
|
89
89
|
productChildId?: Array<string>;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {Array<string>}
|
|
93
|
-
* @memberof IndexExternalApiLogRequest
|
|
94
|
-
*/
|
|
95
|
-
endpoint?: Array<string>;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {Date}
|
|
99
|
-
* @memberof IndexExternalApiLogRequest
|
|
100
|
-
*/
|
|
101
|
-
beforeCreatedAt?: Date;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {Date}
|
|
105
|
-
* @memberof IndexExternalApiLogRequest
|
|
106
|
-
*/
|
|
107
|
-
afterCreatedAt?: Date;
|
|
108
90
|
/**
|
|
109
91
|
*
|
|
110
92
|
* @type {number}
|
|
@@ -64,9 +64,6 @@ function IndexExternalApiLogRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
64
|
'externalApiLoggableId': json['external_api_loggable_id'] == null ? undefined : json['external_api_loggable_id'],
|
|
65
65
|
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
66
66
|
'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
|
|
67
|
-
'endpoint': json['endpoint'] == null ? undefined : json['endpoint'],
|
|
68
|
-
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
69
|
-
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
70
67
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
71
68
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
72
69
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -93,9 +90,6 @@ function IndexExternalApiLogRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
93
90
|
'external_api_loggable_id': value['externalApiLoggableId'],
|
|
94
91
|
'site_id': value['siteId'],
|
|
95
92
|
'product_child_id': value['productChildId'],
|
|
96
|
-
'endpoint': value['endpoint'],
|
|
97
|
-
'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
|
|
98
|
-
'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
|
|
99
93
|
'related_id': value['relatedId'],
|
|
100
94
|
'related_type': value['relatedType'],
|
|
101
95
|
'includes_relations': value['includesRelations'],
|