@digital8/lighting-illusions-ts-sdk 0.0.1147 → 0.0.1149
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 -6
- package/README.md +5 -6
- package/dist/apis/ExternalApiLogApi.d.ts +16 -1
- package/dist/apis/ExternalApiLogApi.js +58 -0
- package/dist/apis/ProductApi.d.ts +8 -9
- package/dist/apis/ProductApi.js +4 -6
- package/dist/models/AttachAssetsOverlayTemplateRequest.d.ts +0 -6
- package/dist/models/AttachAssetsOverlayTemplateRequest.js +0 -2
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetUniqueEndpointsExternalApiLogRequest.d.ts +40 -0
- package/dist/models/GetUniqueEndpointsExternalApiLogRequest.js +57 -0
- package/dist/models/IndexExternalApiLogRequest.d.ts +18 -0
- package/dist/models/IndexExternalApiLogRequest.js +6 -0
- package/dist/models/index.d.ts +1 -3
- package/dist/models/index.js +1 -3
- package/docs/AttachAssetsOverlayTemplateRequest.md +0 -2
- package/docs/ExternalApiLogApi.md +66 -0
- package/docs/{ShowAssetsProductChildRequest.md → GetUniqueEndpointsExternalApiLogRequest.md} +6 -6
- package/docs/IndexExternalApiLogRequest.md +6 -0
- package/docs/ProductApi.md +12 -15
- package/package.json +1 -1
- package/src/apis/ExternalApiLogApi.ts +50 -0
- package/src/apis/ProductApi.ts +17 -21
- package/src/models/AttachAssetsOverlayTemplateRequest.ts +0 -8
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetUniqueEndpointsExternalApiLogRequest.ts +76 -0
- package/src/models/IndexExternalApiLogRequest.ts +24 -0
- package/src/models/index.ts +1 -3
- package/dist/models/AssetWithOverlayLinkResource.d.ts +0 -93
- package/dist/models/AssetWithOverlayLinkResource.js +0 -90
- package/dist/models/AssetWithOverlayLinkResourceArrayResponse.d.ts +0 -33
- package/dist/models/AssetWithOverlayLinkResourceArrayResponse.js +0 -50
- package/dist/models/ShowAssetsProductChildRequest.d.ts +0 -32
- package/dist/models/ShowAssetsProductChildRequest.js +0 -49
- package/docs/AssetWithOverlayLinkResource.md +0 -54
- package/docs/AssetWithOverlayLinkResourceArrayResponse.md +0 -34
- package/src/models/AssetWithOverlayLinkResource.ts +0 -163
- package/src/models/AssetWithOverlayLinkResourceArrayResponse.ts +0 -73
- package/src/models/ShowAssetsProductChildRequest.ts +0 -65
package/.openapi-generator/FILES
CHANGED
|
@@ -11,8 +11,6 @@ docs/AssetLiteResource.md
|
|
|
11
11
|
docs/AssetLiteResourceArrayResponse.md
|
|
12
12
|
docs/AssetResource.md
|
|
13
13
|
docs/AssetResourceArrayResponse.md
|
|
14
|
-
docs/AssetWithOverlayLinkResource.md
|
|
15
|
-
docs/AssetWithOverlayLinkResourceArrayResponse.md
|
|
16
14
|
docs/AttachAccessoriesProductChildRequest.md
|
|
17
15
|
docs/AttachAssetsOverlayTemplateRequest.md
|
|
18
16
|
docs/AttachAttributeProductTypeRequest.md
|
|
@@ -88,6 +86,7 @@ docs/GetAllProductTypeRequest.md
|
|
|
88
86
|
docs/GetAllSupplierRequest.md
|
|
89
87
|
docs/GetHierarchyProductCategoryRequest.md
|
|
90
88
|
docs/GetProductChildrenOverlayTemplateRequest.md
|
|
89
|
+
docs/GetUniqueEndpointsExternalApiLogRequest.md
|
|
91
90
|
docs/GlobalSearchCategoryResource.md
|
|
92
91
|
docs/GlobalSearchCategoryResourceArrayResponse.md
|
|
93
92
|
docs/GlobalSearchProductResource.md
|
|
@@ -227,7 +226,6 @@ docs/ProductTypeResource.md
|
|
|
227
226
|
docs/ProductTypeResourceArrayResponse.md
|
|
228
227
|
docs/SEOResource.md
|
|
229
228
|
docs/SEOResourceArrayResponse.md
|
|
230
|
-
docs/ShowAssetsProductChildRequest.md
|
|
231
229
|
docs/SiteApi.md
|
|
232
230
|
docs/SiteConfigResource.md
|
|
233
231
|
docs/SiteConfigResourceArrayResponse.md
|
|
@@ -333,8 +331,6 @@ src/models/AssetLiteResource.ts
|
|
|
333
331
|
src/models/AssetLiteResourceArrayResponse.ts
|
|
334
332
|
src/models/AssetResource.ts
|
|
335
333
|
src/models/AssetResourceArrayResponse.ts
|
|
336
|
-
src/models/AssetWithOverlayLinkResource.ts
|
|
337
|
-
src/models/AssetWithOverlayLinkResourceArrayResponse.ts
|
|
338
334
|
src/models/AttachAccessoriesProductChildRequest.ts
|
|
339
335
|
src/models/AttachAssetsOverlayTemplateRequest.ts
|
|
340
336
|
src/models/AttachAttributeProductTypeRequest.ts
|
|
@@ -406,6 +402,7 @@ src/models/GetAllProductTypeRequest.ts
|
|
|
406
402
|
src/models/GetAllSupplierRequest.ts
|
|
407
403
|
src/models/GetHierarchyProductCategoryRequest.ts
|
|
408
404
|
src/models/GetProductChildrenOverlayTemplateRequest.ts
|
|
405
|
+
src/models/GetUniqueEndpointsExternalApiLogRequest.ts
|
|
409
406
|
src/models/GlobalSearchCategoryResource.ts
|
|
410
407
|
src/models/GlobalSearchCategoryResourceArrayResponse.ts
|
|
411
408
|
src/models/GlobalSearchProductResource.ts
|
|
@@ -540,7 +537,6 @@ src/models/ProductTypeResource.ts
|
|
|
540
537
|
src/models/ProductTypeResourceArrayResponse.ts
|
|
541
538
|
src/models/SEOResource.ts
|
|
542
539
|
src/models/SEOResourceArrayResponse.ts
|
|
543
|
-
src/models/ShowAssetsProductChildRequest.ts
|
|
544
540
|
src/models/SiteConfigResource.ts
|
|
545
541
|
src/models/SiteConfigResourceArrayResponse.ts
|
|
546
542
|
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.1149
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -85,6 +85,7 @@ 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
|
|
88
89
|
*ExternalApiLogApi* | [**indexExternalApiLog**](docs/ExternalApiLogApi.md#indexexternalapilogoperation) | **POST** /admin-api/external-api-log/list | Auto-generated: indexExternalApiLog
|
|
89
90
|
*GoogleCategoryApi* | [**getAllGoogleCategory**](docs/GoogleCategoryApi.md#getallgooglecategoryoperation) | **POST** /admin-api/google-category/all | Auto-generated: getAllGoogleCategory
|
|
90
91
|
*OverlayTemplateApi* | [**attachAssetsOverlayTemplate**](docs/OverlayTemplateApi.md#attachassetsoverlaytemplateoperation) | **POST** /admin-api/overlay-template/{overlayTemplate}/attach-assets | Auto-generated: attachAssetsOverlayTemplate
|
|
@@ -114,7 +115,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
114
115
|
*ProductApi* | [**getCompatibleProductsProductChild**](docs/ProductApi.md#getcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/list | Auto-generated: getCompatibleProductsProductChild
|
|
115
116
|
*ProductApi* | [**indexProduct**](docs/ProductApi.md#indexproductoperation) | **POST** /admin-api/product/parent/list | Auto-generated: indexProduct
|
|
116
117
|
*ProductApi* | [**indexProductChild**](docs/ProductApi.md#indexproductchild) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild
|
|
117
|
-
*ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#
|
|
118
|
+
*ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchild) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild
|
|
118
119
|
*ProductApi* | [**showProduct**](docs/ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct
|
|
119
120
|
*ProductApi* | [**showProductChild**](docs/ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild
|
|
120
121
|
*ProductApi* | [**storeProduct**](docs/ProductApi.md#storeproductoperation) | **POST** /admin-api/product/parent/create | Auto-generated: storeProduct
|
|
@@ -179,8 +180,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
179
180
|
- [AssetLiteResourceArrayResponse](docs/AssetLiteResourceArrayResponse.md)
|
|
180
181
|
- [AssetResource](docs/AssetResource.md)
|
|
181
182
|
- [AssetResourceArrayResponse](docs/AssetResourceArrayResponse.md)
|
|
182
|
-
- [AssetWithOverlayLinkResource](docs/AssetWithOverlayLinkResource.md)
|
|
183
|
-
- [AssetWithOverlayLinkResourceArrayResponse](docs/AssetWithOverlayLinkResourceArrayResponse.md)
|
|
184
183
|
- [AttachAccessoriesProductChildRequest](docs/AttachAccessoriesProductChildRequest.md)
|
|
185
184
|
- [AttachAssetsOverlayTemplateRequest](docs/AttachAssetsOverlayTemplateRequest.md)
|
|
186
185
|
- [AttachAttributeProductTypeRequest](docs/AttachAttributeProductTypeRequest.md)
|
|
@@ -252,6 +251,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
252
251
|
- [GetAllSupplierRequest](docs/GetAllSupplierRequest.md)
|
|
253
252
|
- [GetHierarchyProductCategoryRequest](docs/GetHierarchyProductCategoryRequest.md)
|
|
254
253
|
- [GetProductChildrenOverlayTemplateRequest](docs/GetProductChildrenOverlayTemplateRequest.md)
|
|
254
|
+
- [GetUniqueEndpointsExternalApiLogRequest](docs/GetUniqueEndpointsExternalApiLogRequest.md)
|
|
255
255
|
- [GlobalSearchCategoryResource](docs/GlobalSearchCategoryResource.md)
|
|
256
256
|
- [GlobalSearchCategoryResourceArrayResponse](docs/GlobalSearchCategoryResourceArrayResponse.md)
|
|
257
257
|
- [GlobalSearchProductResource](docs/GlobalSearchProductResource.md)
|
|
@@ -386,7 +386,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
386
386
|
- [ProductTypeResourceArrayResponse](docs/ProductTypeResourceArrayResponse.md)
|
|
387
387
|
- [SEOResource](docs/SEOResource.md)
|
|
388
388
|
- [SEOResourceArrayResponse](docs/SEOResourceArrayResponse.md)
|
|
389
|
-
- [ShowAssetsProductChildRequest](docs/ShowAssetsProductChildRequest.md)
|
|
390
389
|
- [SiteConfigResource](docs/SiteConfigResource.md)
|
|
391
390
|
- [SiteConfigResourceArrayResponse](docs/SiteConfigResourceArrayResponse.md)
|
|
392
391
|
- [SiteListResource](docs/SiteListResource.md)
|
|
@@ -478,7 +477,7 @@ and is automatically generated by the
|
|
|
478
477
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
479
478
|
|
|
480
479
|
- API version: `1.0.0`
|
|
481
|
-
- Package version: `0.0.
|
|
480
|
+
- Package version: `0.0.1149`
|
|
482
481
|
- Generator version: `7.20.0`
|
|
483
482
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
484
483
|
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { IndexExternalApiLogRequest, PaginatedExternalApiLogResourceResponse } from '../models/index';
|
|
13
|
+
import type { GenericResponse, GetUniqueEndpointsExternalApiLogRequest, IndexExternalApiLogRequest, PaginatedExternalApiLogResourceResponse } from '../models/index';
|
|
14
|
+
export interface GetUniqueEndpointsExternalApiLogOperationRequest {
|
|
15
|
+
getUniqueEndpointsExternalApiLogRequest?: GetUniqueEndpointsExternalApiLogRequest;
|
|
16
|
+
}
|
|
14
17
|
export interface IndexExternalApiLogOperationRequest {
|
|
15
18
|
indexExternalApiLogRequest?: IndexExternalApiLogRequest;
|
|
16
19
|
}
|
|
@@ -18,6 +21,18 @@ export interface IndexExternalApiLogOperationRequest {
|
|
|
18
21
|
*
|
|
19
22
|
*/
|
|
20
23
|
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>;
|
|
21
36
|
/**
|
|
22
37
|
* Creates request options for indexExternalApiLog without sending the request
|
|
23
38
|
*/
|
|
@@ -75,6 +75,64 @@ 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
|
+
};
|
|
78
136
|
/**
|
|
79
137
|
* Creates request options for indexExternalApiLog without sending the request
|
|
80
138
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
13
|
+
import type { AssetResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, GetProductChildrenOverlayTemplateRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse, ProductChildListResourceArrayResponse, 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
|
+
getAllProductChildRequest?: GetAllProductChildRequest;
|
|
47
47
|
}
|
|
48
48
|
export interface GetAllProductOperationRequest {
|
|
49
49
|
getAllProductRequest?: GetAllProductRequest;
|
|
@@ -61,9 +61,8 @@ export interface IndexProductOperationRequest {
|
|
|
61
61
|
export interface IndexProductChildRequest {
|
|
62
62
|
getProductChildrenOverlayTemplateRequest?: GetProductChildrenOverlayTemplateRequest;
|
|
63
63
|
}
|
|
64
|
-
export interface
|
|
64
|
+
export interface ShowAssetsProductChildRequest {
|
|
65
65
|
productChild: number;
|
|
66
|
-
showAssetsProductChildRequest?: ShowAssetsProductChildRequest;
|
|
67
66
|
}
|
|
68
67
|
export interface ShowProductRequest {
|
|
69
68
|
product: number;
|
|
@@ -192,11 +191,11 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
192
191
|
/**
|
|
193
192
|
* Auto-generated: getAccessoriesProductChild
|
|
194
193
|
*/
|
|
195
|
-
getAccessoriesProductChildRaw(requestParameters: GetAccessoriesProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
194
|
+
getAccessoriesProductChildRaw(requestParameters: GetAccessoriesProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildListResourceArrayResponse>>;
|
|
196
195
|
/**
|
|
197
196
|
* Auto-generated: getAccessoriesProductChild
|
|
198
197
|
*/
|
|
199
|
-
getAccessoriesProductChild(requestParameters: GetAccessoriesProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
198
|
+
getAccessoriesProductChild(requestParameters: GetAccessoriesProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildListResourceArrayResponse>;
|
|
200
199
|
/**
|
|
201
200
|
* Creates request options for getAllProduct without sending the request
|
|
202
201
|
*/
|
|
@@ -260,15 +259,15 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
260
259
|
/**
|
|
261
260
|
* Creates request options for showAssetsProductChild without sending the request
|
|
262
261
|
*/
|
|
263
|
-
showAssetsProductChildRequestOpts(requestParameters:
|
|
262
|
+
showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildRequest): Promise<runtime.RequestOpts>;
|
|
264
263
|
/**
|
|
265
264
|
* Auto-generated: showAssetsProductChild
|
|
266
265
|
*/
|
|
267
|
-
showAssetsProductChildRaw(requestParameters:
|
|
266
|
+
showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetResourceArrayResponse>>;
|
|
268
267
|
/**
|
|
269
268
|
* Auto-generated: showAssetsProductChild
|
|
270
269
|
*/
|
|
271
|
-
showAssetsProductChild(requestParameters:
|
|
270
|
+
showAssetsProductChild(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetResourceArrayResponse>;
|
|
272
271
|
/**
|
|
273
272
|
* Creates request options for showProduct without sending the request
|
|
274
273
|
*/
|
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.GetAllProductChildRequestToJSON)(requestParameters['getAllProductChildRequest']),
|
|
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.ProductChildListResourceArrayResponseFromJSON)(jsonValue); })];
|
|
606
606
|
}
|
|
607
607
|
});
|
|
608
608
|
});
|
|
@@ -929,15 +929,13 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
929
929
|
}
|
|
930
930
|
queryParameters = {};
|
|
931
931
|
headerParameters = {};
|
|
932
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
933
932
|
urlPath = "/admin-api/product/children/{productChild}/assets";
|
|
934
933
|
urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
|
|
935
934
|
return [2 /*return*/, {
|
|
936
935
|
path: urlPath,
|
|
937
|
-
method: '
|
|
936
|
+
method: 'GET',
|
|
938
937
|
headers: headerParameters,
|
|
939
938
|
query: queryParameters,
|
|
940
|
-
body: (0, index_1.ShowAssetsProductChildRequestToJSON)(requestParameters['showAssetsProductChildRequest']),
|
|
941
939
|
}];
|
|
942
940
|
});
|
|
943
941
|
});
|
|
@@ -956,7 +954,7 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
956
954
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
957
955
|
case 2:
|
|
958
956
|
response = _a.sent();
|
|
959
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
957
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AssetResourceArrayResponseFromJSON)(jsonValue); })];
|
|
960
958
|
}
|
|
961
959
|
});
|
|
962
960
|
});
|
|
@@ -21,12 +21,6 @@ export interface AttachAssetsOverlayTemplateRequest {
|
|
|
21
21
|
* @memberof AttachAssetsOverlayTemplateRequest
|
|
22
22
|
*/
|
|
23
23
|
assetIds: Array<number>;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {boolean}
|
|
27
|
-
* @memberof AttachAssetsOverlayTemplateRequest
|
|
28
|
-
*/
|
|
29
|
-
syncAssets?: boolean;
|
|
30
24
|
}
|
|
31
25
|
/**
|
|
32
26
|
* Check if a given object implements the AttachAssetsOverlayTemplateRequest interface.
|
|
@@ -35,7 +35,6 @@ function AttachAssetsOverlayTemplateRequestFromJSONTyped(json, ignoreDiscriminat
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'assetIds': json['asset_ids'],
|
|
38
|
-
'syncAssets': json['sync_assets'] == null ? undefined : json['sync_assets'],
|
|
39
38
|
};
|
|
40
39
|
}
|
|
41
40
|
function AttachAssetsOverlayTemplateRequestToJSON(json) {
|
|
@@ -48,6 +47,5 @@ function AttachAssetsOverlayTemplateRequestToJSONTyped(value, ignoreDiscriminato
|
|
|
48
47
|
}
|
|
49
48
|
return {
|
|
50
49
|
'asset_ids': value['assetIds'],
|
|
51
|
-
'sync_assets': value['syncAssets'],
|
|
52
50
|
};
|
|
53
51
|
}
|
|
@@ -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']),
|
|
@@ -0,0 +1,40 @@
|
|
|
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 GetUniqueEndpointsExternalApiLogRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface GetUniqueEndpointsExternalApiLogRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {GetUniqueEndpointsExternalApiLogRequestProviderEnum}
|
|
21
|
+
* @memberof GetUniqueEndpointsExternalApiLogRequest
|
|
22
|
+
*/
|
|
23
|
+
provider?: GetUniqueEndpointsExternalApiLogRequestProviderEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const GetUniqueEndpointsExternalApiLogRequestProviderEnum: {
|
|
29
|
+
readonly Omnisend: "omnisend";
|
|
30
|
+
readonly Netsuite: "netsuite";
|
|
31
|
+
};
|
|
32
|
+
export type GetUniqueEndpointsExternalApiLogRequestProviderEnum = typeof GetUniqueEndpointsExternalApiLogRequestProviderEnum[keyof typeof GetUniqueEndpointsExternalApiLogRequestProviderEnum];
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the GetUniqueEndpointsExternalApiLogRequest interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfGetUniqueEndpointsExternalApiLogRequest(value: object): value is GetUniqueEndpointsExternalApiLogRequest;
|
|
37
|
+
export declare function GetUniqueEndpointsExternalApiLogRequestFromJSON(json: any): GetUniqueEndpointsExternalApiLogRequest;
|
|
38
|
+
export declare function GetUniqueEndpointsExternalApiLogRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUniqueEndpointsExternalApiLogRequest;
|
|
39
|
+
export declare function GetUniqueEndpointsExternalApiLogRequestToJSON(json: any): GetUniqueEndpointsExternalApiLogRequest;
|
|
40
|
+
export declare function GetUniqueEndpointsExternalApiLogRequestToJSONTyped(value?: GetUniqueEndpointsExternalApiLogRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.GetUniqueEndpointsExternalApiLogRequestProviderEnum = void 0;
|
|
17
|
+
exports.instanceOfGetUniqueEndpointsExternalApiLogRequest = instanceOfGetUniqueEndpointsExternalApiLogRequest;
|
|
18
|
+
exports.GetUniqueEndpointsExternalApiLogRequestFromJSON = GetUniqueEndpointsExternalApiLogRequestFromJSON;
|
|
19
|
+
exports.GetUniqueEndpointsExternalApiLogRequestFromJSONTyped = GetUniqueEndpointsExternalApiLogRequestFromJSONTyped;
|
|
20
|
+
exports.GetUniqueEndpointsExternalApiLogRequestToJSON = GetUniqueEndpointsExternalApiLogRequestToJSON;
|
|
21
|
+
exports.GetUniqueEndpointsExternalApiLogRequestToJSONTyped = GetUniqueEndpointsExternalApiLogRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetUniqueEndpointsExternalApiLogRequestProviderEnum = {
|
|
26
|
+
Omnisend: 'omnisend',
|
|
27
|
+
Netsuite: 'netsuite'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the GetUniqueEndpointsExternalApiLogRequest interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfGetUniqueEndpointsExternalApiLogRequest(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function GetUniqueEndpointsExternalApiLogRequestFromJSON(json) {
|
|
36
|
+
return GetUniqueEndpointsExternalApiLogRequestFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function GetUniqueEndpointsExternalApiLogRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'provider': json['provider'] == null ? undefined : json['provider'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function GetUniqueEndpointsExternalApiLogRequestToJSON(json) {
|
|
47
|
+
return GetUniqueEndpointsExternalApiLogRequestToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function GetUniqueEndpointsExternalApiLogRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'provider': value['provider'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -87,6 +87,24 @@ 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;
|
|
90
108
|
/**
|
|
91
109
|
*
|
|
92
110
|
* @type {number}
|
|
@@ -64,6 +64,9 @@ 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'])),
|
|
67
70
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
68
71
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
69
72
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -90,6 +93,9 @@ function IndexExternalApiLogRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
90
93
|
'external_api_loggable_id': value['externalApiLoggableId'],
|
|
91
94
|
'site_id': value['siteId'],
|
|
92
95
|
'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(),
|
|
93
99
|
'related_id': value['relatedId'],
|
|
94
100
|
'related_type': value['relatedType'],
|
|
95
101
|
'includes_relations': value['includesRelations'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -6,8 +6,6 @@ export * from './AssetLiteResource';
|
|
|
6
6
|
export * from './AssetLiteResourceArrayResponse';
|
|
7
7
|
export * from './AssetResource';
|
|
8
8
|
export * from './AssetResourceArrayResponse';
|
|
9
|
-
export * from './AssetWithOverlayLinkResource';
|
|
10
|
-
export * from './AssetWithOverlayLinkResourceArrayResponse';
|
|
11
9
|
export * from './AttachAccessoriesProductChildRequest';
|
|
12
10
|
export * from './AttachAssetsOverlayTemplateRequest';
|
|
13
11
|
export * from './AttachAttributeProductTypeRequest';
|
|
@@ -79,6 +77,7 @@ export * from './GetAllProductTypeRequest';
|
|
|
79
77
|
export * from './GetAllSupplierRequest';
|
|
80
78
|
export * from './GetHierarchyProductCategoryRequest';
|
|
81
79
|
export * from './GetProductChildrenOverlayTemplateRequest';
|
|
80
|
+
export * from './GetUniqueEndpointsExternalApiLogRequest';
|
|
82
81
|
export * from './GlobalSearchCategoryResource';
|
|
83
82
|
export * from './GlobalSearchCategoryResourceArrayResponse';
|
|
84
83
|
export * from './GlobalSearchProductResource';
|
|
@@ -213,7 +212,6 @@ export * from './ProductTypeResource';
|
|
|
213
212
|
export * from './ProductTypeResourceArrayResponse';
|
|
214
213
|
export * from './SEOResource';
|
|
215
214
|
export * from './SEOResourceArrayResponse';
|
|
216
|
-
export * from './ShowAssetsProductChildRequest';
|
|
217
215
|
export * from './SiteConfigResource';
|
|
218
216
|
export * from './SiteConfigResourceArrayResponse';
|
|
219
217
|
export * from './SiteListResource';
|
package/dist/models/index.js
CHANGED
|
@@ -24,8 +24,6 @@ __exportStar(require("./AssetLiteResource"), exports);
|
|
|
24
24
|
__exportStar(require("./AssetLiteResourceArrayResponse"), exports);
|
|
25
25
|
__exportStar(require("./AssetResource"), exports);
|
|
26
26
|
__exportStar(require("./AssetResourceArrayResponse"), exports);
|
|
27
|
-
__exportStar(require("./AssetWithOverlayLinkResource"), exports);
|
|
28
|
-
__exportStar(require("./AssetWithOverlayLinkResourceArrayResponse"), exports);
|
|
29
27
|
__exportStar(require("./AttachAccessoriesProductChildRequest"), exports);
|
|
30
28
|
__exportStar(require("./AttachAssetsOverlayTemplateRequest"), exports);
|
|
31
29
|
__exportStar(require("./AttachAttributeProductTypeRequest"), exports);
|
|
@@ -97,6 +95,7 @@ __exportStar(require("./GetAllProductTypeRequest"), exports);
|
|
|
97
95
|
__exportStar(require("./GetAllSupplierRequest"), exports);
|
|
98
96
|
__exportStar(require("./GetHierarchyProductCategoryRequest"), exports);
|
|
99
97
|
__exportStar(require("./GetProductChildrenOverlayTemplateRequest"), exports);
|
|
98
|
+
__exportStar(require("./GetUniqueEndpointsExternalApiLogRequest"), exports);
|
|
100
99
|
__exportStar(require("./GlobalSearchCategoryResource"), exports);
|
|
101
100
|
__exportStar(require("./GlobalSearchCategoryResourceArrayResponse"), exports);
|
|
102
101
|
__exportStar(require("./GlobalSearchProductResource"), exports);
|
|
@@ -231,7 +230,6 @@ __exportStar(require("./ProductTypeResource"), exports);
|
|
|
231
230
|
__exportStar(require("./ProductTypeResourceArrayResponse"), exports);
|
|
232
231
|
__exportStar(require("./SEOResource"), exports);
|
|
233
232
|
__exportStar(require("./SEOResourceArrayResponse"), exports);
|
|
234
|
-
__exportStar(require("./ShowAssetsProductChildRequest"), exports);
|
|
235
233
|
__exportStar(require("./SiteConfigResource"), exports);
|
|
236
234
|
__exportStar(require("./SiteConfigResourceArrayResponse"), exports);
|
|
237
235
|
__exportStar(require("./SiteListResource"), exports);
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`assetIds` | Array<number>
|
|
10
|
-
`syncAssets` | boolean
|
|
11
10
|
|
|
12
11
|
## Example
|
|
13
12
|
|
|
@@ -17,7 +16,6 @@ import type { AttachAssetsOverlayTemplateRequest } from '@digital8/lighting-illu
|
|
|
17
16
|
// TODO: Update the object below with actual values
|
|
18
17
|
const example = {
|
|
19
18
|
"assetIds": null,
|
|
20
|
-
"syncAssets": null,
|
|
21
19
|
} satisfies AttachAssetsOverlayTemplateRequest
|
|
22
20
|
|
|
23
21
|
console.log(example)
|