@digital8/lighting-illusions-ts-sdk 0.0.1143 → 0.0.1145
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 -2
- package/README.md +2 -4
- package/dist/apis/ExternalApiLogApi.d.ts +1 -16
- package/dist/apis/ExternalApiLogApi.js +0 -58
- package/dist/models/IndexExternalApiLogRequest.d.ts +0 -18
- package/dist/models/IndexExternalApiLogRequest.js +0 -6
- package/dist/models/ProductTypeListResource.d.ts +6 -0
- package/dist/models/ProductTypeListResource.js +4 -0
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/docs/ExternalApiLogApi.md +0 -66
- package/docs/IndexExternalApiLogRequest.md +0 -6
- package/docs/ProductTypeListResource.md +2 -0
- package/package.json +1 -1
- package/src/apis/ExternalApiLogApi.ts +0 -50
- package/src/models/IndexExternalApiLogRequest.ts +0 -24
- package/src/models/ProductTypeListResource.ts +9 -0
- package/src/models/index.ts +0 -1
- 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,7 +85,6 @@ docs/GetAllProductRequest.md
|
|
|
85
85
|
docs/GetAllProductTypeRequest.md
|
|
86
86
|
docs/GetAllSupplierRequest.md
|
|
87
87
|
docs/GetHierarchyProductCategoryRequest.md
|
|
88
|
-
docs/GetUniqueEndpointsExternalApiLogRequest.md
|
|
89
88
|
docs/GlobalSearchCategoryResource.md
|
|
90
89
|
docs/GlobalSearchCategoryResourceArrayResponse.md
|
|
91
90
|
docs/GlobalSearchProductResource.md
|
|
@@ -401,7 +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/GetUniqueEndpointsExternalApiLogRequest.ts
|
|
405
403
|
src/models/GlobalSearchCategoryResource.ts
|
|
406
404
|
src/models/GlobalSearchCategoryResourceArrayResponse.ts
|
|
407
405
|
src/models/GlobalSearchProductResource.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.1145
|
|
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
|
|
@@ -249,7 +248,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
249
248
|
- [GetAllProductTypeRequest](docs/GetAllProductTypeRequest.md)
|
|
250
249
|
- [GetAllSupplierRequest](docs/GetAllSupplierRequest.md)
|
|
251
250
|
- [GetHierarchyProductCategoryRequest](docs/GetHierarchyProductCategoryRequest.md)
|
|
252
|
-
- [GetUniqueEndpointsExternalApiLogRequest](docs/GetUniqueEndpointsExternalApiLogRequest.md)
|
|
253
251
|
- [GlobalSearchCategoryResource](docs/GlobalSearchCategoryResource.md)
|
|
254
252
|
- [GlobalSearchCategoryResourceArrayResponse](docs/GlobalSearchCategoryResourceArrayResponse.md)
|
|
255
253
|
- [GlobalSearchProductResource](docs/GlobalSearchProductResource.md)
|
|
@@ -476,7 +474,7 @@ and is automatically generated by the
|
|
|
476
474
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
477
475
|
|
|
478
476
|
- API version: `1.0.0`
|
|
479
|
-
- Package version: `0.0.
|
|
477
|
+
- Package version: `0.0.1145`
|
|
480
478
|
- Generator version: `7.20.0`
|
|
481
479
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
482
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
|
*/
|
|
@@ -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'],
|
|
@@ -33,6 +33,12 @@ export interface ProductTypeListResource {
|
|
|
33
33
|
* @memberof ProductTypeListResource
|
|
34
34
|
*/
|
|
35
35
|
totalAttributes: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ProductTypeListResource
|
|
40
|
+
*/
|
|
41
|
+
totalProducts: number;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the ProductTypeListResource interface.
|
|
@@ -28,6 +28,8 @@ function instanceOfProductTypeListResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('totalAttributes' in value) || value['totalAttributes'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('totalProducts' in value) || value['totalProducts'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
return true;
|
|
32
34
|
}
|
|
33
35
|
function ProductTypeListResourceFromJSON(json) {
|
|
@@ -41,6 +43,7 @@ function ProductTypeListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
43
|
'id': json['id'],
|
|
42
44
|
'name': json['name'],
|
|
43
45
|
'totalAttributes': json['totalAttributes'],
|
|
46
|
+
'totalProducts': json['totalProducts'],
|
|
44
47
|
};
|
|
45
48
|
}
|
|
46
49
|
function ProductTypeListResourceToJSON(json) {
|
|
@@ -55,5 +58,6 @@ function ProductTypeListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
55
58
|
'id': value['id'],
|
|
56
59
|
'name': value['name'],
|
|
57
60
|
'totalAttributes': value['totalAttributes'],
|
|
61
|
+
'totalProducts': value['totalProducts'],
|
|
58
62
|
};
|
|
59
63
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -76,7 +76,6 @@ export * from './GetAllProductRequest';
|
|
|
76
76
|
export * from './GetAllProductTypeRequest';
|
|
77
77
|
export * from './GetAllSupplierRequest';
|
|
78
78
|
export * from './GetHierarchyProductCategoryRequest';
|
|
79
|
-
export * from './GetUniqueEndpointsExternalApiLogRequest';
|
|
80
79
|
export * from './GlobalSearchCategoryResource';
|
|
81
80
|
export * from './GlobalSearchCategoryResourceArrayResponse';
|
|
82
81
|
export * from './GlobalSearchProductResource';
|
package/dist/models/index.js
CHANGED
|
@@ -94,7 +94,6 @@ __exportStar(require("./GetAllProductRequest"), exports);
|
|
|
94
94
|
__exportStar(require("./GetAllProductTypeRequest"), exports);
|
|
95
95
|
__exportStar(require("./GetAllSupplierRequest"), exports);
|
|
96
96
|
__exportStar(require("./GetHierarchyProductCategoryRequest"), exports);
|
|
97
|
-
__exportStar(require("./GetUniqueEndpointsExternalApiLogRequest"), exports);
|
|
98
97
|
__exportStar(require("./GlobalSearchCategoryResource"), exports);
|
|
99
98
|
__exportStar(require("./GlobalSearchCategoryResourceArrayResponse"), exports);
|
|
100
99
|
__exportStar(require("./GlobalSearchProductResource"), exports);
|
|
@@ -4,76 +4,10 @@ All URIs are relative to *http://localhost/api*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
| [**getUniqueEndpointsExternalApiLog**](ExternalApiLogApi.md#getuniqueendpointsexternalapilogoperation) | **POST** /admin-api/external-api-log/endpoints | Auto-generated: getUniqueEndpointsExternalApiLog |
|
|
8
7
|
| [**indexExternalApiLog**](ExternalApiLogApi.md#indexexternalapilogoperation) | **POST** /admin-api/external-api-log/list | Auto-generated: indexExternalApiLog |
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
|
|
12
|
-
## getUniqueEndpointsExternalApiLog
|
|
13
|
-
|
|
14
|
-
> GenericResponse getUniqueEndpointsExternalApiLog(getUniqueEndpointsExternalApiLogRequest)
|
|
15
|
-
|
|
16
|
-
Auto-generated: getUniqueEndpointsExternalApiLog
|
|
17
|
-
|
|
18
|
-
### Example
|
|
19
|
-
|
|
20
|
-
```ts
|
|
21
|
-
import {
|
|
22
|
-
Configuration,
|
|
23
|
-
ExternalApiLogApi,
|
|
24
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
25
|
-
import type { GetUniqueEndpointsExternalApiLogOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
26
|
-
|
|
27
|
-
async function example() {
|
|
28
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
29
|
-
const api = new ExternalApiLogApi();
|
|
30
|
-
|
|
31
|
-
const body = {
|
|
32
|
-
// GetUniqueEndpointsExternalApiLogRequest (optional)
|
|
33
|
-
getUniqueEndpointsExternalApiLogRequest: ...,
|
|
34
|
-
} satisfies GetUniqueEndpointsExternalApiLogOperationRequest;
|
|
35
|
-
|
|
36
|
-
try {
|
|
37
|
-
const data = await api.getUniqueEndpointsExternalApiLog(body);
|
|
38
|
-
console.log(data);
|
|
39
|
-
} catch (error) {
|
|
40
|
-
console.error(error);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Run the test
|
|
45
|
-
example().catch(console.error);
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Parameters
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
| Name | Type | Description | Notes |
|
|
52
|
-
|------------- | ------------- | ------------- | -------------|
|
|
53
|
-
| **getUniqueEndpointsExternalApiLogRequest** | [GetUniqueEndpointsExternalApiLogRequest](GetUniqueEndpointsExternalApiLogRequest.md) | | [Optional] |
|
|
54
|
-
|
|
55
|
-
### Return type
|
|
56
|
-
|
|
57
|
-
[**GenericResponse**](GenericResponse.md)
|
|
58
|
-
|
|
59
|
-
### Authorization
|
|
60
|
-
|
|
61
|
-
No authorization required
|
|
62
|
-
|
|
63
|
-
### HTTP request headers
|
|
64
|
-
|
|
65
|
-
- **Content-Type**: `application/json`
|
|
66
|
-
- **Accept**: `application/json`
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
### HTTP response details
|
|
70
|
-
| Status code | Description | Response headers |
|
|
71
|
-
|-------------|-------------|------------------|
|
|
72
|
-
| **200** | \\JsonResponse<array{data: string[]}> | - |
|
|
73
|
-
|
|
74
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
75
|
-
|
|
76
|
-
|
|
77
11
|
## indexExternalApiLog
|
|
78
12
|
|
|
79
13
|
> PaginatedExternalApiLogResourceResponse indexExternalApiLog(indexExternalApiLogRequest)
|
|
@@ -18,9 +18,6 @@ Name | Type
|
|
|
18
18
|
`externalApiLoggableId` | Array<string>
|
|
19
19
|
`siteId` | Array<string>
|
|
20
20
|
`productChildId` | Array<string>
|
|
21
|
-
`endpoint` | Array<string>
|
|
22
|
-
`beforeCreatedAt` | Date
|
|
23
|
-
`afterCreatedAt` | Date
|
|
24
21
|
`relatedId` | number
|
|
25
22
|
`relatedType` | string
|
|
26
23
|
`includesRelations` | boolean
|
|
@@ -44,9 +41,6 @@ const example = {
|
|
|
44
41
|
"externalApiLoggableId": null,
|
|
45
42
|
"siteId": null,
|
|
46
43
|
"productChildId": null,
|
|
47
|
-
"endpoint": null,
|
|
48
|
-
"beforeCreatedAt": null,
|
|
49
|
-
"afterCreatedAt": null,
|
|
50
44
|
"relatedId": null,
|
|
51
45
|
"relatedType": null,
|
|
52
46
|
"includesRelations": null,
|
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`name` | string
|
|
11
11
|
`totalAttributes` | number
|
|
12
|
+
`totalProducts` | number
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const example = {
|
|
|
20
21
|
"id": null,
|
|
21
22
|
"name": null,
|
|
22
23
|
"totalAttributes": null,
|
|
24
|
+
"totalProducts": null,
|
|
23
25
|
} satisfies ProductTypeListResource
|
|
24
26
|
|
|
25
27
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -15,26 +15,16 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
GenericResponse,
|
|
19
|
-
GetUniqueEndpointsExternalApiLogRequest,
|
|
20
18
|
IndexExternalApiLogRequest,
|
|
21
19
|
PaginatedExternalApiLogResourceResponse,
|
|
22
20
|
} from '../models/index';
|
|
23
21
|
import {
|
|
24
|
-
GenericResponseFromJSON,
|
|
25
|
-
GenericResponseToJSON,
|
|
26
|
-
GetUniqueEndpointsExternalApiLogRequestFromJSON,
|
|
27
|
-
GetUniqueEndpointsExternalApiLogRequestToJSON,
|
|
28
22
|
IndexExternalApiLogRequestFromJSON,
|
|
29
23
|
IndexExternalApiLogRequestToJSON,
|
|
30
24
|
PaginatedExternalApiLogResourceResponseFromJSON,
|
|
31
25
|
PaginatedExternalApiLogResourceResponseToJSON,
|
|
32
26
|
} from '../models/index';
|
|
33
27
|
|
|
34
|
-
export interface GetUniqueEndpointsExternalApiLogOperationRequest {
|
|
35
|
-
getUniqueEndpointsExternalApiLogRequest?: GetUniqueEndpointsExternalApiLogRequest;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
28
|
export interface IndexExternalApiLogOperationRequest {
|
|
39
29
|
indexExternalApiLogRequest?: IndexExternalApiLogRequest;
|
|
40
30
|
}
|
|
@@ -44,46 +34,6 @@ export interface IndexExternalApiLogOperationRequest {
|
|
|
44
34
|
*/
|
|
45
35
|
export class ExternalApiLogApi extends runtime.BaseAPI {
|
|
46
36
|
|
|
47
|
-
/**
|
|
48
|
-
* Creates request options for getUniqueEndpointsExternalApiLog without sending the request
|
|
49
|
-
*/
|
|
50
|
-
async getUniqueEndpointsExternalApiLogRequestOpts(requestParameters: GetUniqueEndpointsExternalApiLogOperationRequest): Promise<runtime.RequestOpts> {
|
|
51
|
-
const queryParameters: any = {};
|
|
52
|
-
|
|
53
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
54
|
-
|
|
55
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
let urlPath = `/admin-api/external-api-log/endpoints`;
|
|
59
|
-
|
|
60
|
-
return {
|
|
61
|
-
path: urlPath,
|
|
62
|
-
method: 'POST',
|
|
63
|
-
headers: headerParameters,
|
|
64
|
-
query: queryParameters,
|
|
65
|
-
body: GetUniqueEndpointsExternalApiLogRequestToJSON(requestParameters['getUniqueEndpointsExternalApiLogRequest']),
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Auto-generated: getUniqueEndpointsExternalApiLog
|
|
71
|
-
*/
|
|
72
|
-
async getUniqueEndpointsExternalApiLogRaw(requestParameters: GetUniqueEndpointsExternalApiLogOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
73
|
-
const requestOptions = await this.getUniqueEndpointsExternalApiLogRequestOpts(requestParameters);
|
|
74
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
75
|
-
|
|
76
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Auto-generated: getUniqueEndpointsExternalApiLog
|
|
81
|
-
*/
|
|
82
|
-
async getUniqueEndpointsExternalApiLog(requestParameters: GetUniqueEndpointsExternalApiLogOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
83
|
-
const response = await this.getUniqueEndpointsExternalApiLogRaw(requestParameters, initOverrides);
|
|
84
|
-
return await response.value();
|
|
85
|
-
}
|
|
86
|
-
|
|
87
37
|
/**
|
|
88
38
|
* Creates request options for indexExternalApiLog without sending the request
|
|
89
39
|
*/
|
|
@@ -91,24 +91,6 @@ export interface IndexExternalApiLogRequest {
|
|
|
91
91
|
* @memberof IndexExternalApiLogRequest
|
|
92
92
|
*/
|
|
93
93
|
productChildId?: Array<string>;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {Array<string>}
|
|
97
|
-
* @memberof IndexExternalApiLogRequest
|
|
98
|
-
*/
|
|
99
|
-
endpoint?: Array<string>;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {Date}
|
|
103
|
-
* @memberof IndexExternalApiLogRequest
|
|
104
|
-
*/
|
|
105
|
-
beforeCreatedAt?: Date;
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
* @type {Date}
|
|
109
|
-
* @memberof IndexExternalApiLogRequest
|
|
110
|
-
*/
|
|
111
|
-
afterCreatedAt?: Date;
|
|
112
94
|
/**
|
|
113
95
|
*
|
|
114
96
|
* @type {number}
|
|
@@ -183,9 +165,6 @@ export function IndexExternalApiLogRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
183
165
|
'externalApiLoggableId': json['external_api_loggable_id'] == null ? undefined : json['external_api_loggable_id'],
|
|
184
166
|
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
185
167
|
'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
|
|
186
|
-
'endpoint': json['endpoint'] == null ? undefined : json['endpoint'],
|
|
187
|
-
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
188
|
-
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
189
168
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
190
169
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
191
170
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -215,9 +194,6 @@ export function IndexExternalApiLogRequestToJSONTyped(value?: IndexExternalApiLo
|
|
|
215
194
|
'external_api_loggable_id': value['externalApiLoggableId'],
|
|
216
195
|
'site_id': value['siteId'],
|
|
217
196
|
'product_child_id': value['productChildId'],
|
|
218
|
-
'endpoint': value['endpoint'],
|
|
219
|
-
'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
|
|
220
|
-
'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
|
|
221
197
|
'related_id': value['relatedId'],
|
|
222
198
|
'related_type': value['relatedType'],
|
|
223
199
|
'includes_relations': value['includesRelations'],
|
|
@@ -37,6 +37,12 @@ export interface ProductTypeListResource {
|
|
|
37
37
|
* @memberof ProductTypeListResource
|
|
38
38
|
*/
|
|
39
39
|
totalAttributes: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ProductTypeListResource
|
|
44
|
+
*/
|
|
45
|
+
totalProducts: number;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -46,6 +52,7 @@ export function instanceOfProductTypeListResource(value: object): value is Produ
|
|
|
46
52
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
53
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
54
|
if (!('totalAttributes' in value) || value['totalAttributes'] === undefined) return false;
|
|
55
|
+
if (!('totalProducts' in value) || value['totalProducts'] === undefined) return false;
|
|
49
56
|
return true;
|
|
50
57
|
}
|
|
51
58
|
|
|
@@ -62,6 +69,7 @@ export function ProductTypeListResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
62
69
|
'id': json['id'],
|
|
63
70
|
'name': json['name'],
|
|
64
71
|
'totalAttributes': json['totalAttributes'],
|
|
72
|
+
'totalProducts': json['totalProducts'],
|
|
65
73
|
};
|
|
66
74
|
}
|
|
67
75
|
|
|
@@ -79,6 +87,7 @@ export function ProductTypeListResourceToJSONTyped(value?: ProductTypeListResour
|
|
|
79
87
|
'id': value['id'],
|
|
80
88
|
'name': value['name'],
|
|
81
89
|
'totalAttributes': value['totalAttributes'],
|
|
90
|
+
'totalProducts': value['totalProducts'],
|
|
82
91
|
};
|
|
83
92
|
}
|
|
84
93
|
|
package/src/models/index.ts
CHANGED
|
@@ -78,7 +78,6 @@ export * from './GetAllProductRequest';
|
|
|
78
78
|
export * from './GetAllProductTypeRequest';
|
|
79
79
|
export * from './GetAllSupplierRequest';
|
|
80
80
|
export * from './GetHierarchyProductCategoryRequest';
|
|
81
|
-
export * from './GetUniqueEndpointsExternalApiLogRequest';
|
|
82
81
|
export * from './GlobalSearchCategoryResource';
|
|
83
82
|
export * from './GlobalSearchCategoryResourceArrayResponse';
|
|
84
83
|
export * from './GlobalSearchProductResource';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface 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;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.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
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# GetUniqueEndpointsExternalApiLogRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`provider` | string
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { GetUniqueEndpointsExternalApiLogRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"provider": null,
|
|
19
|
-
} satisfies GetUniqueEndpointsExternalApiLogRequest
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as GetUniqueEndpointsExternalApiLogRequest
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface GetUniqueEndpointsExternalApiLogRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface GetUniqueEndpointsExternalApiLogRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {GetUniqueEndpointsExternalApiLogRequestProviderEnum}
|
|
25
|
-
* @memberof GetUniqueEndpointsExternalApiLogRequest
|
|
26
|
-
*/
|
|
27
|
-
provider?: GetUniqueEndpointsExternalApiLogRequestProviderEnum;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
export const GetUniqueEndpointsExternalApiLogRequestProviderEnum = {
|
|
35
|
-
Omnisend: 'omnisend',
|
|
36
|
-
Netsuite: 'netsuite'
|
|
37
|
-
} as const;
|
|
38
|
-
export type GetUniqueEndpointsExternalApiLogRequestProviderEnum = typeof GetUniqueEndpointsExternalApiLogRequestProviderEnum[keyof typeof GetUniqueEndpointsExternalApiLogRequestProviderEnum];
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Check if a given object implements the GetUniqueEndpointsExternalApiLogRequest interface.
|
|
43
|
-
*/
|
|
44
|
-
export function instanceOfGetUniqueEndpointsExternalApiLogRequest(value: object): value is GetUniqueEndpointsExternalApiLogRequest {
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function GetUniqueEndpointsExternalApiLogRequestFromJSON(json: any): GetUniqueEndpointsExternalApiLogRequest {
|
|
49
|
-
return GetUniqueEndpointsExternalApiLogRequestFromJSONTyped(json, false);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function GetUniqueEndpointsExternalApiLogRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUniqueEndpointsExternalApiLogRequest {
|
|
53
|
-
if (json == null) {
|
|
54
|
-
return json;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
|
|
58
|
-
'provider': json['provider'] == null ? undefined : json['provider'],
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function GetUniqueEndpointsExternalApiLogRequestToJSON(json: any): GetUniqueEndpointsExternalApiLogRequest {
|
|
63
|
-
return GetUniqueEndpointsExternalApiLogRequestToJSONTyped(json, false);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function GetUniqueEndpointsExternalApiLogRequestToJSONTyped(value?: GetUniqueEndpointsExternalApiLogRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
67
|
-
if (value == null) {
|
|
68
|
-
return value;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return {
|
|
72
|
-
|
|
73
|
-
'provider': value['provider'],
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
|