@nestbox-ai/admin 1.0.38 → 1.0.42
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 +77 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +144 -2
- package/api.ts +222 -468
- package/dist/api.d.ts +118 -231
- package/dist/api.js +209 -448
- package/dist/esm/api.d.ts +118 -231
- package/dist/esm/api.js +204 -443
- package/docs/AddProjectMemberData.md +22 -0
- package/docs/AddProjectMemberDto.md +26 -0
- package/docs/AddProjectMemberResponseDTO.md +20 -0
- package/docs/AllProjectResponse.md +30 -0
- package/docs/AllProjectResponseModel.md +22 -0
- package/docs/AuthApi.md +405 -0
- package/docs/BadRequestExceptionResponse.md +22 -0
- package/docs/BooleanResponseDTO.md +20 -0
- package/docs/ChunkFileRequestDTO.md +24 -0
- package/docs/CreateCollectionRequestDTO.md +22 -0
- package/docs/CreateDocumentRequestDTO.md +24 -0
- package/docs/CreateMachineAgentDto.md +42 -0
- package/docs/CreatePermissionDto.md +26 -0
- package/docs/CreateProjectDTO.md +22 -0
- package/docs/CreateProjectResponseDTO.md +20 -0
- package/docs/CreateProjectRoleResponseDto.md +20 -0
- package/docs/CreateResourceDto.md +22 -0
- package/docs/CreateRoleDTO.md +26 -0
- package/docs/CreateRoleDto.md +24 -0
- package/docs/CreateWebhookDto.md +22 -0
- package/docs/DeleteProjectDto.md +20 -0
- package/docs/DeleteProjectResponseDTO.md +20 -0
- package/docs/DeleteProjectRoleByIdResponseDto.md +20 -0
- package/docs/DocumentsApi.md +781 -0
- package/docs/EvaluationTestApi.md +299 -0
- package/docs/FatalErrorExceptionResponse.md +20 -0
- package/docs/ForbiddenExceptionResponse.md +20 -0
- package/docs/ForgetPasswordRequestDTO.md +20 -0
- package/docs/ForgetPasswordResponseDTO.md +20 -0
- package/docs/ForgetPasswordVerificationRequestDTO.md +20 -0
- package/docs/ForgetPasswordVerificationResponseDTO.md +20 -0
- package/docs/GetAllProjectDto.md +22 -0
- package/docs/GetAllProjectMemberResponse.md +22 -0
- package/docs/GetAllProjectMemberResponseDto.md +20 -0
- package/docs/GetAllProjectRoleResponseDto.md +20 -0
- package/docs/GetAllProjectsResponseDTO.md +20 -0
- package/docs/GetAllRoleDTO.md +32 -0
- package/docs/GetProjectByIDResponseDTO.md +20 -0
- package/docs/GetProjectRoleByIdResponseDto.md +20 -0
- package/docs/GetRoleDTO.md +26 -0
- package/docs/GetUserProjectRoleByRoleIdResponseDto.md +20 -0
- package/docs/LoginRequestDTO.md +22 -0
- package/docs/LoginResponseDTO.md +20 -0
- package/docs/MachineAgentApi.md +253 -0
- package/docs/MachineAgentLogsApi.md +66 -0
- package/docs/MachineInstancesApi.md +361 -0
- package/docs/MembersApi.md +204 -0
- package/docs/MessageResponseDTO.md +20 -0
- package/docs/MiscellaneousApi.md +169 -0
- package/docs/NotFoundExceptionResponse.md +20 -0
- package/docs/NotificationsApi.md +122 -0
- package/docs/OAuthLoginRequestDTO.md +26 -0
- package/docs/PermissionsDTO.md +28 -0
- package/docs/ProjectResponseModel.md +30 -0
- package/docs/ProjectsApi.md +301 -0
- package/docs/QueriesAndDocumentationsApi.md +125 -0
- package/docs/ResetPasswordRequestDTO.md +22 -0
- package/docs/ResourceDTO.md +24 -0
- package/docs/RoleDto.md +22 -0
- package/docs/RolesApi.md +372 -0
- package/docs/SignupRequestDTO.md +36 -0
- package/docs/SignupResponseDTO.md +20 -0
- package/docs/SimilaritySearchQueryDTO.md +26 -0
- package/docs/TeamMemberDto.md +26 -0
- package/docs/UnauthorizedExceptionResponse.md +20 -0
- package/docs/UpdateDocumentRequestDTO.md +22 -0
- package/docs/UpdatePermissionDto.md +28 -0
- package/docs/UpdateProjectByIDResponseDTO.md +20 -0
- package/docs/UpdateProjectByIdRequest.md +22 -0
- package/docs/UpdateProjectRoleResponseDto.md +20 -0
- package/docs/UpdateResourceDto.md +24 -0
- package/docs/UpdateRoleByIdDto.md +24 -0
- package/docs/UpdateRoleDTO.md +26 -0
- package/docs/UpdateTeamMemberRequestDTO.md +20 -0
- package/docs/UpdateTeamMemberStatusRequestDTO.md +22 -0
- package/docs/UserDto.md +32 -0
- package/docs/WebhookApi.md +243 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.QueriesAndDocumentationsApi = exports.QueriesAndDocumentationsApiFactory = exports.QueriesAndDocumentationsApiFp = exports.QueriesAndDocumentationsApiAxiosParamCreator = exports.ProjectControllerGetAllProjectsDirectionEnum = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MiscellaneousApi = exports.MiscellaneousApiFactory = exports.MiscellaneousApiFp = exports.MiscellaneousApiAxiosParamCreator = exports.MembersControllerGetAllTeamMembersOfProjectDirectionEnum = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.
|
|
25
|
+
exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.QueriesAndDocumentationsApi = exports.QueriesAndDocumentationsApiFactory = exports.QueriesAndDocumentationsApiFp = exports.QueriesAndDocumentationsApiAxiosParamCreator = exports.ProjectControllerGetAllProjectsDirectionEnum = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MiscellaneousApi = exports.MiscellaneousApiFactory = exports.MiscellaneousApiFp = exports.MiscellaneousApiAxiosParamCreator = exports.MembersControllerGetAllTeamMembersOfProjectDirectionEnum = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.MachineInstancesApi = exports.MachineInstancesApiFactory = exports.MachineInstancesApiFp = exports.MachineInstancesApiAxiosParamCreator = exports.MachineAgentLogsApi = exports.MachineAgentLogsApiFactory = exports.MachineAgentLogsApiFp = exports.MachineAgentLogsApiAxiosParamCreator = exports.MachineAgentApi = exports.MachineAgentApiFactory = exports.MachineAgentApiFp = exports.MachineAgentApiAxiosParamCreator = exports.EvaluationTestApi = exports.EvaluationTestApiFactory = exports.EvaluationTestApiFp = exports.EvaluationTestApiAxiosParamCreator = exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.SignupRequestDTOProviderTypeEnum = exports.OAuthLoginRequestDTOTypeEnum = void 0;
|
|
26
26
|
exports.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiAxiosParamCreator = exports.RolesControllerGetAllProjectRolesDirectionEnum = exports.RolesApi = exports.RolesApiFactory = void 0;
|
|
27
27
|
const axios_1 = require("axios");
|
|
28
28
|
// Some imports not used depending on template conditions
|
|
@@ -44,6 +44,35 @@ exports.SignupRequestDTOProviderTypeEnum = {
|
|
|
44
44
|
*/
|
|
45
45
|
const AuthApiAxiosParamCreator = function (configuration) {
|
|
46
46
|
return {
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @summary Exchange token
|
|
50
|
+
* @param {string} token
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
authControllerExchangeToken: (token_1, ...args_1) => __awaiter(this, [token_1, ...args_1], void 0, function* (token, options = {}) {
|
|
55
|
+
// verify required parameter 'token' is not null or undefined
|
|
56
|
+
(0, common_1.assertParamExists)('authControllerExchangeToken', 'token', token);
|
|
57
|
+
const localVarPath = `/auth/google/{token}`
|
|
58
|
+
.replace(`{${"token"}}`, encodeURIComponent(String(token)));
|
|
59
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
60
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
61
|
+
let baseOptions;
|
|
62
|
+
if (configuration) {
|
|
63
|
+
baseOptions = configuration.baseOptions;
|
|
64
|
+
}
|
|
65
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
66
|
+
const localVarHeaderParameter = {};
|
|
67
|
+
const localVarQueryParameter = {};
|
|
68
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
69
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
70
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
71
|
+
return {
|
|
72
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
73
|
+
options: localVarRequestOptions,
|
|
74
|
+
};
|
|
75
|
+
}),
|
|
47
76
|
/**
|
|
48
77
|
*
|
|
49
78
|
* @summary Forget password initiate
|
|
@@ -234,6 +263,22 @@ exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
|
|
|
234
263
|
const AuthApiFp = function (configuration) {
|
|
235
264
|
const localVarAxiosParamCreator = (0, exports.AuthApiAxiosParamCreator)(configuration);
|
|
236
265
|
return {
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
* @summary Exchange token
|
|
269
|
+
* @param {string} token
|
|
270
|
+
* @param {*} [options] Override http request option.
|
|
271
|
+
* @throws {RequiredError}
|
|
272
|
+
*/
|
|
273
|
+
authControllerExchangeToken(token, options) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
var _a, _b, _c;
|
|
276
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerExchangeToken(token, options);
|
|
277
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
278
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authControllerExchangeToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
279
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
280
|
+
});
|
|
281
|
+
},
|
|
237
282
|
/**
|
|
238
283
|
*
|
|
239
284
|
* @summary Forget password initiate
|
|
@@ -340,6 +385,16 @@ exports.AuthApiFp = AuthApiFp;
|
|
|
340
385
|
const AuthApiFactory = function (configuration, basePath, axios) {
|
|
341
386
|
const localVarFp = (0, exports.AuthApiFp)(configuration);
|
|
342
387
|
return {
|
|
388
|
+
/**
|
|
389
|
+
*
|
|
390
|
+
* @summary Exchange token
|
|
391
|
+
* @param {string} token
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
*/
|
|
395
|
+
authControllerExchangeToken(token, options) {
|
|
396
|
+
return localVarFp.authControllerExchangeToken(token, options).then((request) => request(axios, basePath));
|
|
397
|
+
},
|
|
343
398
|
/**
|
|
344
399
|
*
|
|
345
400
|
* @summary Forget password initiate
|
|
@@ -410,6 +465,17 @@ exports.AuthApiFactory = AuthApiFactory;
|
|
|
410
465
|
* @extends {BaseAPI}
|
|
411
466
|
*/
|
|
412
467
|
class AuthApi extends base_1.BaseAPI {
|
|
468
|
+
/**
|
|
469
|
+
*
|
|
470
|
+
* @summary Exchange token
|
|
471
|
+
* @param {string} token
|
|
472
|
+
* @param {*} [options] Override http request option.
|
|
473
|
+
* @throws {RequiredError}
|
|
474
|
+
* @memberof AuthApi
|
|
475
|
+
*/
|
|
476
|
+
authControllerExchangeToken(token, options) {
|
|
477
|
+
return (0, exports.AuthApiFp)(this.configuration).authControllerExchangeToken(token, options).then((request) => request(this.axios, this.basePath));
|
|
478
|
+
}
|
|
413
479
|
/**
|
|
414
480
|
*
|
|
415
481
|
* @summary Forget password initiate
|
|
@@ -2020,16 +2086,19 @@ const MachineAgentApiAxiosParamCreator = function (configuration) {
|
|
|
2020
2086
|
* @param {string} projectId
|
|
2021
2087
|
* @param {number} page
|
|
2022
2088
|
* @param {number} limit
|
|
2089
|
+
* @param {string} type
|
|
2023
2090
|
* @param {*} [options] Override http request option.
|
|
2024
2091
|
* @throws {RequiredError}
|
|
2025
2092
|
*/
|
|
2026
|
-
machineAgentControllerGetMachineAgentByProjectId: (projectId_1, page_1, limit_1, ...args_1) => __awaiter(this, [projectId_1, page_1, limit_1, ...args_1], void 0, function* (projectId, page, limit, options = {}) {
|
|
2093
|
+
machineAgentControllerGetMachineAgentByProjectId: (projectId_1, page_1, limit_1, type_1, ...args_1) => __awaiter(this, [projectId_1, page_1, limit_1, type_1, ...args_1], void 0, function* (projectId, page, limit, type, options = {}) {
|
|
2027
2094
|
// verify required parameter 'projectId' is not null or undefined
|
|
2028
2095
|
(0, common_1.assertParamExists)('machineAgentControllerGetMachineAgentByProjectId', 'projectId', projectId);
|
|
2029
2096
|
// verify required parameter 'page' is not null or undefined
|
|
2030
2097
|
(0, common_1.assertParamExists)('machineAgentControllerGetMachineAgentByProjectId', 'page', page);
|
|
2031
2098
|
// verify required parameter 'limit' is not null or undefined
|
|
2032
2099
|
(0, common_1.assertParamExists)('machineAgentControllerGetMachineAgentByProjectId', 'limit', limit);
|
|
2100
|
+
// verify required parameter 'type' is not null or undefined
|
|
2101
|
+
(0, common_1.assertParamExists)('machineAgentControllerGetMachineAgentByProjectId', 'type', type);
|
|
2033
2102
|
const localVarPath = `/projects/{projectId}/agents`
|
|
2034
2103
|
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
2035
2104
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2047,6 +2116,9 @@ const MachineAgentApiAxiosParamCreator = function (configuration) {
|
|
|
2047
2116
|
if (limit !== undefined) {
|
|
2048
2117
|
localVarQueryParameter['limit'] = limit;
|
|
2049
2118
|
}
|
|
2119
|
+
if (type !== undefined) {
|
|
2120
|
+
localVarQueryParameter['type'] = type;
|
|
2121
|
+
}
|
|
2050
2122
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2051
2123
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2052
2124
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2139,13 +2211,14 @@ const MachineAgentApiFp = function (configuration) {
|
|
|
2139
2211
|
* @param {string} projectId
|
|
2140
2212
|
* @param {number} page
|
|
2141
2213
|
* @param {number} limit
|
|
2214
|
+
* @param {string} type
|
|
2142
2215
|
* @param {*} [options] Override http request option.
|
|
2143
2216
|
* @throws {RequiredError}
|
|
2144
2217
|
*/
|
|
2145
|
-
machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, options) {
|
|
2218
|
+
machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, type, options) {
|
|
2146
2219
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2147
2220
|
var _a, _b, _c;
|
|
2148
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, options);
|
|
2221
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, type, options);
|
|
2149
2222
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2150
2223
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MachineAgentApi.machineAgentControllerGetMachineAgentByProjectId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2151
2224
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2207,11 +2280,12 @@ const MachineAgentApiFactory = function (configuration, basePath, axios) {
|
|
|
2207
2280
|
* @param {string} projectId
|
|
2208
2281
|
* @param {number} page
|
|
2209
2282
|
* @param {number} limit
|
|
2283
|
+
* @param {string} type
|
|
2210
2284
|
* @param {*} [options] Override http request option.
|
|
2211
2285
|
* @throws {RequiredError}
|
|
2212
2286
|
*/
|
|
2213
|
-
machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, options) {
|
|
2214
|
-
return localVarFp.machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, options).then((request) => request(axios, basePath));
|
|
2287
|
+
machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, type, options) {
|
|
2288
|
+
return localVarFp.machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, type, options).then((request) => request(axios, basePath));
|
|
2215
2289
|
},
|
|
2216
2290
|
/**
|
|
2217
2291
|
*
|
|
@@ -2265,12 +2339,13 @@ class MachineAgentApi extends base_1.BaseAPI {
|
|
|
2265
2339
|
* @param {string} projectId
|
|
2266
2340
|
* @param {number} page
|
|
2267
2341
|
* @param {number} limit
|
|
2342
|
+
* @param {string} type
|
|
2268
2343
|
* @param {*} [options] Override http request option.
|
|
2269
2344
|
* @throws {RequiredError}
|
|
2270
2345
|
* @memberof MachineAgentApi
|
|
2271
2346
|
*/
|
|
2272
|
-
machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, options) {
|
|
2273
|
-
return (0, exports.MachineAgentApiFp)(this.configuration).machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
2347
|
+
machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, type, options) {
|
|
2348
|
+
return (0, exports.MachineAgentApiFp)(this.configuration).machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, type, options).then((request) => request(this.axios, this.basePath));
|
|
2274
2349
|
}
|
|
2275
2350
|
/**
|
|
2276
2351
|
*
|
|
@@ -2286,6 +2361,117 @@ class MachineAgentApi extends base_1.BaseAPI {
|
|
|
2286
2361
|
}
|
|
2287
2362
|
}
|
|
2288
2363
|
exports.MachineAgentApi = MachineAgentApi;
|
|
2364
|
+
/**
|
|
2365
|
+
* MachineAgentLogsApi - axios parameter creator
|
|
2366
|
+
* @export
|
|
2367
|
+
*/
|
|
2368
|
+
const MachineAgentLogsApiAxiosParamCreator = function (configuration) {
|
|
2369
|
+
return {
|
|
2370
|
+
/**
|
|
2371
|
+
*
|
|
2372
|
+
* @summary Fetch event logs.
|
|
2373
|
+
* @param {string} projectId
|
|
2374
|
+
* @param {string} agentId
|
|
2375
|
+
* @param {*} [options] Override http request option.
|
|
2376
|
+
* @throws {RequiredError}
|
|
2377
|
+
*/
|
|
2378
|
+
logsControllerFetchEventLogs: (projectId_1, agentId_1, ...args_1) => __awaiter(this, [projectId_1, agentId_1, ...args_1], void 0, function* (projectId, agentId, options = {}) {
|
|
2379
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
2380
|
+
(0, common_1.assertParamExists)('logsControllerFetchEventLogs', 'projectId', projectId);
|
|
2381
|
+
// verify required parameter 'agentId' is not null or undefined
|
|
2382
|
+
(0, common_1.assertParamExists)('logsControllerFetchEventLogs', 'agentId', agentId);
|
|
2383
|
+
const localVarPath = `/projects/{projectId}/fetchEventLogs/{agentId}`
|
|
2384
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
2385
|
+
.replace(`{${"agentId"}}`, encodeURIComponent(String(agentId)));
|
|
2386
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2387
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2388
|
+
let baseOptions;
|
|
2389
|
+
if (configuration) {
|
|
2390
|
+
baseOptions = configuration.baseOptions;
|
|
2391
|
+
}
|
|
2392
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2393
|
+
const localVarHeaderParameter = {};
|
|
2394
|
+
const localVarQueryParameter = {};
|
|
2395
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2396
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2397
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2398
|
+
return {
|
|
2399
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2400
|
+
options: localVarRequestOptions,
|
|
2401
|
+
};
|
|
2402
|
+
}),
|
|
2403
|
+
};
|
|
2404
|
+
};
|
|
2405
|
+
exports.MachineAgentLogsApiAxiosParamCreator = MachineAgentLogsApiAxiosParamCreator;
|
|
2406
|
+
/**
|
|
2407
|
+
* MachineAgentLogsApi - functional programming interface
|
|
2408
|
+
* @export
|
|
2409
|
+
*/
|
|
2410
|
+
const MachineAgentLogsApiFp = function (configuration) {
|
|
2411
|
+
const localVarAxiosParamCreator = (0, exports.MachineAgentLogsApiAxiosParamCreator)(configuration);
|
|
2412
|
+
return {
|
|
2413
|
+
/**
|
|
2414
|
+
*
|
|
2415
|
+
* @summary Fetch event logs.
|
|
2416
|
+
* @param {string} projectId
|
|
2417
|
+
* @param {string} agentId
|
|
2418
|
+
* @param {*} [options] Override http request option.
|
|
2419
|
+
* @throws {RequiredError}
|
|
2420
|
+
*/
|
|
2421
|
+
logsControllerFetchEventLogs(projectId, agentId, options) {
|
|
2422
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2423
|
+
var _a, _b, _c;
|
|
2424
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.logsControllerFetchEventLogs(projectId, agentId, options);
|
|
2425
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2426
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MachineAgentLogsApi.logsControllerFetchEventLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2427
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2428
|
+
});
|
|
2429
|
+
},
|
|
2430
|
+
};
|
|
2431
|
+
};
|
|
2432
|
+
exports.MachineAgentLogsApiFp = MachineAgentLogsApiFp;
|
|
2433
|
+
/**
|
|
2434
|
+
* MachineAgentLogsApi - factory interface
|
|
2435
|
+
* @export
|
|
2436
|
+
*/
|
|
2437
|
+
const MachineAgentLogsApiFactory = function (configuration, basePath, axios) {
|
|
2438
|
+
const localVarFp = (0, exports.MachineAgentLogsApiFp)(configuration);
|
|
2439
|
+
return {
|
|
2440
|
+
/**
|
|
2441
|
+
*
|
|
2442
|
+
* @summary Fetch event logs.
|
|
2443
|
+
* @param {string} projectId
|
|
2444
|
+
* @param {string} agentId
|
|
2445
|
+
* @param {*} [options] Override http request option.
|
|
2446
|
+
* @throws {RequiredError}
|
|
2447
|
+
*/
|
|
2448
|
+
logsControllerFetchEventLogs(projectId, agentId, options) {
|
|
2449
|
+
return localVarFp.logsControllerFetchEventLogs(projectId, agentId, options).then((request) => request(axios, basePath));
|
|
2450
|
+
},
|
|
2451
|
+
};
|
|
2452
|
+
};
|
|
2453
|
+
exports.MachineAgentLogsApiFactory = MachineAgentLogsApiFactory;
|
|
2454
|
+
/**
|
|
2455
|
+
* MachineAgentLogsApi - object-oriented interface
|
|
2456
|
+
* @export
|
|
2457
|
+
* @class MachineAgentLogsApi
|
|
2458
|
+
* @extends {BaseAPI}
|
|
2459
|
+
*/
|
|
2460
|
+
class MachineAgentLogsApi extends base_1.BaseAPI {
|
|
2461
|
+
/**
|
|
2462
|
+
*
|
|
2463
|
+
* @summary Fetch event logs.
|
|
2464
|
+
* @param {string} projectId
|
|
2465
|
+
* @param {string} agentId
|
|
2466
|
+
* @param {*} [options] Override http request option.
|
|
2467
|
+
* @throws {RequiredError}
|
|
2468
|
+
* @memberof MachineAgentLogsApi
|
|
2469
|
+
*/
|
|
2470
|
+
logsControllerFetchEventLogs(projectId, agentId, options) {
|
|
2471
|
+
return (0, exports.MachineAgentLogsApiFp)(this.configuration).logsControllerFetchEventLogs(projectId, agentId, options).then((request) => request(this.axios, this.basePath));
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
exports.MachineAgentLogsApi = MachineAgentLogsApi;
|
|
2289
2475
|
/**
|
|
2290
2476
|
* MachineInstancesApi - axios parameter creator
|
|
2291
2477
|
* @export
|
|
@@ -2771,356 +2957,6 @@ class MachineInstancesApi extends base_1.BaseAPI {
|
|
|
2771
2957
|
}
|
|
2772
2958
|
}
|
|
2773
2959
|
exports.MachineInstancesApi = MachineInstancesApi;
|
|
2774
|
-
/**
|
|
2775
|
-
* MachineModelsApi - axios parameter creator
|
|
2776
|
-
* @export
|
|
2777
|
-
*/
|
|
2778
|
-
const MachineModelsApiAxiosParamCreator = function (configuration) {
|
|
2779
|
-
return {
|
|
2780
|
-
/**
|
|
2781
|
-
*
|
|
2782
|
-
* @summary Create New Machine Model
|
|
2783
|
-
* @param {string} projectId
|
|
2784
|
-
* @param {object} body
|
|
2785
|
-
* @param {*} [options] Override http request option.
|
|
2786
|
-
* @throws {RequiredError}
|
|
2787
|
-
*/
|
|
2788
|
-
machineModelControllerCreateMachineModel: (projectId_1, body_1, ...args_1) => __awaiter(this, [projectId_1, body_1, ...args_1], void 0, function* (projectId, body, options = {}) {
|
|
2789
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
2790
|
-
(0, common_1.assertParamExists)('machineModelControllerCreateMachineModel', 'projectId', projectId);
|
|
2791
|
-
// verify required parameter 'body' is not null or undefined
|
|
2792
|
-
(0, common_1.assertParamExists)('machineModelControllerCreateMachineModel', 'body', body);
|
|
2793
|
-
const localVarPath = `/projects/{projectId}/models`
|
|
2794
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
2795
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2796
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2797
|
-
let baseOptions;
|
|
2798
|
-
if (configuration) {
|
|
2799
|
-
baseOptions = configuration.baseOptions;
|
|
2800
|
-
}
|
|
2801
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2802
|
-
const localVarHeaderParameter = {};
|
|
2803
|
-
const localVarQueryParameter = {};
|
|
2804
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2805
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2806
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2807
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2808
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
2809
|
-
return {
|
|
2810
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2811
|
-
options: localVarRequestOptions,
|
|
2812
|
-
};
|
|
2813
|
-
}),
|
|
2814
|
-
/**
|
|
2815
|
-
*
|
|
2816
|
-
* @summary Create New Machine Model
|
|
2817
|
-
* @param {string} projectId
|
|
2818
|
-
* @param {string} modelId
|
|
2819
|
-
* @param {Array<string>} requestBody
|
|
2820
|
-
* @param {*} [options] Override http request option.
|
|
2821
|
-
* @throws {RequiredError}
|
|
2822
|
-
*/
|
|
2823
|
-
machineModelControllerDeleteMachineModels: (projectId_1, modelId_1, requestBody_1, ...args_1) => __awaiter(this, [projectId_1, modelId_1, requestBody_1, ...args_1], void 0, function* (projectId, modelId, requestBody, options = {}) {
|
|
2824
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
2825
|
-
(0, common_1.assertParamExists)('machineModelControllerDeleteMachineModels', 'projectId', projectId);
|
|
2826
|
-
// verify required parameter 'modelId' is not null or undefined
|
|
2827
|
-
(0, common_1.assertParamExists)('machineModelControllerDeleteMachineModels', 'modelId', modelId);
|
|
2828
|
-
// verify required parameter 'requestBody' is not null or undefined
|
|
2829
|
-
(0, common_1.assertParamExists)('machineModelControllerDeleteMachineModels', 'requestBody', requestBody);
|
|
2830
|
-
const localVarPath = `/projects/{projectId}/models/{modelId}`
|
|
2831
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
2832
|
-
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
2833
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2834
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2835
|
-
let baseOptions;
|
|
2836
|
-
if (configuration) {
|
|
2837
|
-
baseOptions = configuration.baseOptions;
|
|
2838
|
-
}
|
|
2839
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2840
|
-
const localVarHeaderParameter = {};
|
|
2841
|
-
const localVarQueryParameter = {};
|
|
2842
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2843
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2844
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2845
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2846
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
2847
|
-
return {
|
|
2848
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2849
|
-
options: localVarRequestOptions,
|
|
2850
|
-
};
|
|
2851
|
-
}),
|
|
2852
|
-
/**
|
|
2853
|
-
*
|
|
2854
|
-
* @summary Get all machine models with count
|
|
2855
|
-
* @param {string} projectId
|
|
2856
|
-
* @param {number} page
|
|
2857
|
-
* @param {number} limit
|
|
2858
|
-
* @param {*} [options] Override http request option.
|
|
2859
|
-
* @throws {RequiredError}
|
|
2860
|
-
*/
|
|
2861
|
-
machineModelControllerGetMachineInstanceByProjectId: (projectId_1, page_1, limit_1, ...args_1) => __awaiter(this, [projectId_1, page_1, limit_1, ...args_1], void 0, function* (projectId, page, limit, options = {}) {
|
|
2862
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
2863
|
-
(0, common_1.assertParamExists)('machineModelControllerGetMachineInstanceByProjectId', 'projectId', projectId);
|
|
2864
|
-
// verify required parameter 'page' is not null or undefined
|
|
2865
|
-
(0, common_1.assertParamExists)('machineModelControllerGetMachineInstanceByProjectId', 'page', page);
|
|
2866
|
-
// verify required parameter 'limit' is not null or undefined
|
|
2867
|
-
(0, common_1.assertParamExists)('machineModelControllerGetMachineInstanceByProjectId', 'limit', limit);
|
|
2868
|
-
const localVarPath = `/projects/{projectId}/models`
|
|
2869
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
2870
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2871
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2872
|
-
let baseOptions;
|
|
2873
|
-
if (configuration) {
|
|
2874
|
-
baseOptions = configuration.baseOptions;
|
|
2875
|
-
}
|
|
2876
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2877
|
-
const localVarHeaderParameter = {};
|
|
2878
|
-
const localVarQueryParameter = {};
|
|
2879
|
-
if (page !== undefined) {
|
|
2880
|
-
localVarQueryParameter['page'] = page;
|
|
2881
|
-
}
|
|
2882
|
-
if (limit !== undefined) {
|
|
2883
|
-
localVarQueryParameter['limit'] = limit;
|
|
2884
|
-
}
|
|
2885
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2886
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2887
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2888
|
-
return {
|
|
2889
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2890
|
-
options: localVarRequestOptions,
|
|
2891
|
-
};
|
|
2892
|
-
}),
|
|
2893
|
-
/**
|
|
2894
|
-
*
|
|
2895
|
-
* @summary Update machine model by id
|
|
2896
|
-
* @param {string} projectId
|
|
2897
|
-
* @param {string} modelId
|
|
2898
|
-
* @param {*} [options] Override http request option.
|
|
2899
|
-
* @throws {RequiredError}
|
|
2900
|
-
*/
|
|
2901
|
-
machineModelControllerUpdateMachineModel: (projectId_1, modelId_1, ...args_1) => __awaiter(this, [projectId_1, modelId_1, ...args_1], void 0, function* (projectId, modelId, options = {}) {
|
|
2902
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
2903
|
-
(0, common_1.assertParamExists)('machineModelControllerUpdateMachineModel', 'projectId', projectId);
|
|
2904
|
-
// verify required parameter 'modelId' is not null or undefined
|
|
2905
|
-
(0, common_1.assertParamExists)('machineModelControllerUpdateMachineModel', 'modelId', modelId);
|
|
2906
|
-
const localVarPath = `/projects/{projectId}/models/{modelId}`
|
|
2907
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
2908
|
-
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
2909
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2910
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2911
|
-
let baseOptions;
|
|
2912
|
-
if (configuration) {
|
|
2913
|
-
baseOptions = configuration.baseOptions;
|
|
2914
|
-
}
|
|
2915
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
2916
|
-
const localVarHeaderParameter = {};
|
|
2917
|
-
const localVarQueryParameter = {};
|
|
2918
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2919
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2920
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2921
|
-
return {
|
|
2922
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2923
|
-
options: localVarRequestOptions,
|
|
2924
|
-
};
|
|
2925
|
-
}),
|
|
2926
|
-
};
|
|
2927
|
-
};
|
|
2928
|
-
exports.MachineModelsApiAxiosParamCreator = MachineModelsApiAxiosParamCreator;
|
|
2929
|
-
/**
|
|
2930
|
-
* MachineModelsApi - functional programming interface
|
|
2931
|
-
* @export
|
|
2932
|
-
*/
|
|
2933
|
-
const MachineModelsApiFp = function (configuration) {
|
|
2934
|
-
const localVarAxiosParamCreator = (0, exports.MachineModelsApiAxiosParamCreator)(configuration);
|
|
2935
|
-
return {
|
|
2936
|
-
/**
|
|
2937
|
-
*
|
|
2938
|
-
* @summary Create New Machine Model
|
|
2939
|
-
* @param {string} projectId
|
|
2940
|
-
* @param {object} body
|
|
2941
|
-
* @param {*} [options] Override http request option.
|
|
2942
|
-
* @throws {RequiredError}
|
|
2943
|
-
*/
|
|
2944
|
-
machineModelControllerCreateMachineModel(projectId, body, options) {
|
|
2945
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2946
|
-
var _a, _b, _c;
|
|
2947
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerCreateMachineModel(projectId, body, options);
|
|
2948
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2949
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MachineModelsApi.machineModelControllerCreateMachineModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2950
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2951
|
-
});
|
|
2952
|
-
},
|
|
2953
|
-
/**
|
|
2954
|
-
*
|
|
2955
|
-
* @summary Create New Machine Model
|
|
2956
|
-
* @param {string} projectId
|
|
2957
|
-
* @param {string} modelId
|
|
2958
|
-
* @param {Array<string>} requestBody
|
|
2959
|
-
* @param {*} [options] Override http request option.
|
|
2960
|
-
* @throws {RequiredError}
|
|
2961
|
-
*/
|
|
2962
|
-
machineModelControllerDeleteMachineModels(projectId, modelId, requestBody, options) {
|
|
2963
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2964
|
-
var _a, _b, _c;
|
|
2965
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerDeleteMachineModels(projectId, modelId, requestBody, options);
|
|
2966
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2967
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MachineModelsApi.machineModelControllerDeleteMachineModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2968
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2969
|
-
});
|
|
2970
|
-
},
|
|
2971
|
-
/**
|
|
2972
|
-
*
|
|
2973
|
-
* @summary Get all machine models with count
|
|
2974
|
-
* @param {string} projectId
|
|
2975
|
-
* @param {number} page
|
|
2976
|
-
* @param {number} limit
|
|
2977
|
-
* @param {*} [options] Override http request option.
|
|
2978
|
-
* @throws {RequiredError}
|
|
2979
|
-
*/
|
|
2980
|
-
machineModelControllerGetMachineInstanceByProjectId(projectId, page, limit, options) {
|
|
2981
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2982
|
-
var _a, _b, _c;
|
|
2983
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerGetMachineInstanceByProjectId(projectId, page, limit, options);
|
|
2984
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2985
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MachineModelsApi.machineModelControllerGetMachineInstanceByProjectId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2986
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2987
|
-
});
|
|
2988
|
-
},
|
|
2989
|
-
/**
|
|
2990
|
-
*
|
|
2991
|
-
* @summary Update machine model by id
|
|
2992
|
-
* @param {string} projectId
|
|
2993
|
-
* @param {string} modelId
|
|
2994
|
-
* @param {*} [options] Override http request option.
|
|
2995
|
-
* @throws {RequiredError}
|
|
2996
|
-
*/
|
|
2997
|
-
machineModelControllerUpdateMachineModel(projectId, modelId, options) {
|
|
2998
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2999
|
-
var _a, _b, _c;
|
|
3000
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerUpdateMachineModel(projectId, modelId, options);
|
|
3001
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3002
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MachineModelsApi.machineModelControllerUpdateMachineModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3003
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3004
|
-
});
|
|
3005
|
-
},
|
|
3006
|
-
};
|
|
3007
|
-
};
|
|
3008
|
-
exports.MachineModelsApiFp = MachineModelsApiFp;
|
|
3009
|
-
/**
|
|
3010
|
-
* MachineModelsApi - factory interface
|
|
3011
|
-
* @export
|
|
3012
|
-
*/
|
|
3013
|
-
const MachineModelsApiFactory = function (configuration, basePath, axios) {
|
|
3014
|
-
const localVarFp = (0, exports.MachineModelsApiFp)(configuration);
|
|
3015
|
-
return {
|
|
3016
|
-
/**
|
|
3017
|
-
*
|
|
3018
|
-
* @summary Create New Machine Model
|
|
3019
|
-
* @param {string} projectId
|
|
3020
|
-
* @param {object} body
|
|
3021
|
-
* @param {*} [options] Override http request option.
|
|
3022
|
-
* @throws {RequiredError}
|
|
3023
|
-
*/
|
|
3024
|
-
machineModelControllerCreateMachineModel(projectId, body, options) {
|
|
3025
|
-
return localVarFp.machineModelControllerCreateMachineModel(projectId, body, options).then((request) => request(axios, basePath));
|
|
3026
|
-
},
|
|
3027
|
-
/**
|
|
3028
|
-
*
|
|
3029
|
-
* @summary Create New Machine Model
|
|
3030
|
-
* @param {string} projectId
|
|
3031
|
-
* @param {string} modelId
|
|
3032
|
-
* @param {Array<string>} requestBody
|
|
3033
|
-
* @param {*} [options] Override http request option.
|
|
3034
|
-
* @throws {RequiredError}
|
|
3035
|
-
*/
|
|
3036
|
-
machineModelControllerDeleteMachineModels(projectId, modelId, requestBody, options) {
|
|
3037
|
-
return localVarFp.machineModelControllerDeleteMachineModels(projectId, modelId, requestBody, options).then((request) => request(axios, basePath));
|
|
3038
|
-
},
|
|
3039
|
-
/**
|
|
3040
|
-
*
|
|
3041
|
-
* @summary Get all machine models with count
|
|
3042
|
-
* @param {string} projectId
|
|
3043
|
-
* @param {number} page
|
|
3044
|
-
* @param {number} limit
|
|
3045
|
-
* @param {*} [options] Override http request option.
|
|
3046
|
-
* @throws {RequiredError}
|
|
3047
|
-
*/
|
|
3048
|
-
machineModelControllerGetMachineInstanceByProjectId(projectId, page, limit, options) {
|
|
3049
|
-
return localVarFp.machineModelControllerGetMachineInstanceByProjectId(projectId, page, limit, options).then((request) => request(axios, basePath));
|
|
3050
|
-
},
|
|
3051
|
-
/**
|
|
3052
|
-
*
|
|
3053
|
-
* @summary Update machine model by id
|
|
3054
|
-
* @param {string} projectId
|
|
3055
|
-
* @param {string} modelId
|
|
3056
|
-
* @param {*} [options] Override http request option.
|
|
3057
|
-
* @throws {RequiredError}
|
|
3058
|
-
*/
|
|
3059
|
-
machineModelControllerUpdateMachineModel(projectId, modelId, options) {
|
|
3060
|
-
return localVarFp.machineModelControllerUpdateMachineModel(projectId, modelId, options).then((request) => request(axios, basePath));
|
|
3061
|
-
},
|
|
3062
|
-
};
|
|
3063
|
-
};
|
|
3064
|
-
exports.MachineModelsApiFactory = MachineModelsApiFactory;
|
|
3065
|
-
/**
|
|
3066
|
-
* MachineModelsApi - object-oriented interface
|
|
3067
|
-
* @export
|
|
3068
|
-
* @class MachineModelsApi
|
|
3069
|
-
* @extends {BaseAPI}
|
|
3070
|
-
*/
|
|
3071
|
-
class MachineModelsApi extends base_1.BaseAPI {
|
|
3072
|
-
/**
|
|
3073
|
-
*
|
|
3074
|
-
* @summary Create New Machine Model
|
|
3075
|
-
* @param {string} projectId
|
|
3076
|
-
* @param {object} body
|
|
3077
|
-
* @param {*} [options] Override http request option.
|
|
3078
|
-
* @throws {RequiredError}
|
|
3079
|
-
* @memberof MachineModelsApi
|
|
3080
|
-
*/
|
|
3081
|
-
machineModelControllerCreateMachineModel(projectId, body, options) {
|
|
3082
|
-
return (0, exports.MachineModelsApiFp)(this.configuration).machineModelControllerCreateMachineModel(projectId, body, options).then((request) => request(this.axios, this.basePath));
|
|
3083
|
-
}
|
|
3084
|
-
/**
|
|
3085
|
-
*
|
|
3086
|
-
* @summary Create New Machine Model
|
|
3087
|
-
* @param {string} projectId
|
|
3088
|
-
* @param {string} modelId
|
|
3089
|
-
* @param {Array<string>} requestBody
|
|
3090
|
-
* @param {*} [options] Override http request option.
|
|
3091
|
-
* @throws {RequiredError}
|
|
3092
|
-
* @memberof MachineModelsApi
|
|
3093
|
-
*/
|
|
3094
|
-
machineModelControllerDeleteMachineModels(projectId, modelId, requestBody, options) {
|
|
3095
|
-
return (0, exports.MachineModelsApiFp)(this.configuration).machineModelControllerDeleteMachineModels(projectId, modelId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3096
|
-
}
|
|
3097
|
-
/**
|
|
3098
|
-
*
|
|
3099
|
-
* @summary Get all machine models with count
|
|
3100
|
-
* @param {string} projectId
|
|
3101
|
-
* @param {number} page
|
|
3102
|
-
* @param {number} limit
|
|
3103
|
-
* @param {*} [options] Override http request option.
|
|
3104
|
-
* @throws {RequiredError}
|
|
3105
|
-
* @memberof MachineModelsApi
|
|
3106
|
-
*/
|
|
3107
|
-
machineModelControllerGetMachineInstanceByProjectId(projectId, page, limit, options) {
|
|
3108
|
-
return (0, exports.MachineModelsApiFp)(this.configuration).machineModelControllerGetMachineInstanceByProjectId(projectId, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
3109
|
-
}
|
|
3110
|
-
/**
|
|
3111
|
-
*
|
|
3112
|
-
* @summary Update machine model by id
|
|
3113
|
-
* @param {string} projectId
|
|
3114
|
-
* @param {string} modelId
|
|
3115
|
-
* @param {*} [options] Override http request option.
|
|
3116
|
-
* @throws {RequiredError}
|
|
3117
|
-
* @memberof MachineModelsApi
|
|
3118
|
-
*/
|
|
3119
|
-
machineModelControllerUpdateMachineModel(projectId, modelId, options) {
|
|
3120
|
-
return (0, exports.MachineModelsApiFp)(this.configuration).machineModelControllerUpdateMachineModel(projectId, modelId, options).then((request) => request(this.axios, this.basePath));
|
|
3121
|
-
}
|
|
3122
|
-
}
|
|
3123
|
-
exports.MachineModelsApi = MachineModelsApi;
|
|
3124
2960
|
/**
|
|
3125
2961
|
* MembersApi - axios parameter creator
|
|
3126
2962
|
* @export
|
|
@@ -4253,53 +4089,21 @@ const QueriesAndDocumentationsApiAxiosParamCreator = function (configuration) {
|
|
|
4253
4089
|
* @summary Fetch Swagger JSON
|
|
4254
4090
|
* @param {string} modelId
|
|
4255
4091
|
* @param {string} projectId
|
|
4092
|
+
* @param {string} fieldName
|
|
4256
4093
|
* @param {*} [options] Override http request option.
|
|
4257
4094
|
* @throws {RequiredError}
|
|
4258
4095
|
*/
|
|
4259
|
-
queriesAndDocControllerFetchSwaggerJSON: (modelId_1, projectId_1, ...args_1) => __awaiter(this, [modelId_1, projectId_1, ...args_1], void 0, function* (modelId, projectId, options = {}) {
|
|
4096
|
+
queriesAndDocControllerFetchSwaggerJSON: (modelId_1, projectId_1, fieldName_1, ...args_1) => __awaiter(this, [modelId_1, projectId_1, fieldName_1, ...args_1], void 0, function* (modelId, projectId, fieldName, options = {}) {
|
|
4260
4097
|
// verify required parameter 'modelId' is not null or undefined
|
|
4261
4098
|
(0, common_1.assertParamExists)('queriesAndDocControllerFetchSwaggerJSON', 'modelId', modelId);
|
|
4262
4099
|
// verify required parameter 'projectId' is not null or undefined
|
|
4263
4100
|
(0, common_1.assertParamExists)('queriesAndDocControllerFetchSwaggerJSON', 'projectId', projectId);
|
|
4264
|
-
|
|
4101
|
+
// verify required parameter 'fieldName' is not null or undefined
|
|
4102
|
+
(0, common_1.assertParamExists)('queriesAndDocControllerFetchSwaggerJSON', 'fieldName', fieldName);
|
|
4103
|
+
const localVarPath = `/projects/{projectId}/{fieldName}/{modelId}/swagger`
|
|
4265
4104
|
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)))
|
|
4266
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
4267
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4268
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4269
|
-
let baseOptions;
|
|
4270
|
-
if (configuration) {
|
|
4271
|
-
baseOptions = configuration.baseOptions;
|
|
4272
|
-
}
|
|
4273
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4274
|
-
const localVarHeaderParameter = {};
|
|
4275
|
-
const localVarQueryParameter = {};
|
|
4276
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4277
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4278
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4279
|
-
return {
|
|
4280
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4281
|
-
options: localVarRequestOptions,
|
|
4282
|
-
};
|
|
4283
|
-
}),
|
|
4284
|
-
/**
|
|
4285
|
-
*
|
|
4286
|
-
* @summary Fetch Swagger JSON
|
|
4287
|
-
* @param {string} projectId
|
|
4288
|
-
* @param {string} modelId
|
|
4289
|
-
* @param {string} queryId
|
|
4290
|
-
* @param {*} [options] Override http request option.
|
|
4291
|
-
* @throws {RequiredError}
|
|
4292
|
-
*/
|
|
4293
|
-
queriesAndDocControllerGetEventLogsByQueryId: (projectId_1, modelId_1, queryId_1, ...args_1) => __awaiter(this, [projectId_1, modelId_1, queryId_1, ...args_1], void 0, function* (projectId, modelId, queryId, options = {}) {
|
|
4294
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
4295
|
-
(0, common_1.assertParamExists)('queriesAndDocControllerGetEventLogsByQueryId', 'projectId', projectId);
|
|
4296
|
-
// verify required parameter 'modelId' is not null or undefined
|
|
4297
|
-
(0, common_1.assertParamExists)('queriesAndDocControllerGetEventLogsByQueryId', 'modelId', modelId);
|
|
4298
|
-
// verify required parameter 'queryId' is not null or undefined
|
|
4299
|
-
(0, common_1.assertParamExists)('queriesAndDocControllerGetEventLogsByQueryId', 'queryId', queryId);
|
|
4300
|
-
const localVarPath = `/projects/{projectId}/queryData/{modelId}`
|
|
4301
4105
|
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
4302
|
-
.replace(`{${"
|
|
4106
|
+
.replace(`{${"fieldName"}}`, encodeURIComponent(String(fieldName)));
|
|
4303
4107
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4304
4108
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4305
4109
|
let baseOptions;
|
|
@@ -4309,9 +4113,6 @@ const QueriesAndDocumentationsApiAxiosParamCreator = function (configuration) {
|
|
|
4309
4113
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4310
4114
|
const localVarHeaderParameter = {};
|
|
4311
4115
|
const localVarQueryParameter = {};
|
|
4312
|
-
if (queryId !== undefined) {
|
|
4313
|
-
localVarQueryParameter['queryId'] = queryId;
|
|
4314
|
-
}
|
|
4315
4116
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4316
4117
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4317
4118
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4364,36 +4165,19 @@ const QueriesAndDocumentationsApiFp = function (configuration) {
|
|
|
4364
4165
|
* @summary Fetch Swagger JSON
|
|
4365
4166
|
* @param {string} modelId
|
|
4366
4167
|
* @param {string} projectId
|
|
4168
|
+
* @param {string} fieldName
|
|
4367
4169
|
* @param {*} [options] Override http request option.
|
|
4368
4170
|
* @throws {RequiredError}
|
|
4369
4171
|
*/
|
|
4370
|
-
queriesAndDocControllerFetchSwaggerJSON(modelId, projectId, options) {
|
|
4172
|
+
queriesAndDocControllerFetchSwaggerJSON(modelId, projectId, fieldName, options) {
|
|
4371
4173
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4372
4174
|
var _a, _b, _c;
|
|
4373
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.queriesAndDocControllerFetchSwaggerJSON(modelId, projectId, options);
|
|
4175
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.queriesAndDocControllerFetchSwaggerJSON(modelId, projectId, fieldName, options);
|
|
4374
4176
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4375
4177
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QueriesAndDocumentationsApi.queriesAndDocControllerFetchSwaggerJSON']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4376
4178
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4377
4179
|
});
|
|
4378
4180
|
},
|
|
4379
|
-
/**
|
|
4380
|
-
*
|
|
4381
|
-
* @summary Fetch Swagger JSON
|
|
4382
|
-
* @param {string} projectId
|
|
4383
|
-
* @param {string} modelId
|
|
4384
|
-
* @param {string} queryId
|
|
4385
|
-
* @param {*} [options] Override http request option.
|
|
4386
|
-
* @throws {RequiredError}
|
|
4387
|
-
*/
|
|
4388
|
-
queriesAndDocControllerGetEventLogsByQueryId(projectId, modelId, queryId, options) {
|
|
4389
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4390
|
-
var _a, _b, _c;
|
|
4391
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.queriesAndDocControllerGetEventLogsByQueryId(projectId, modelId, queryId, options);
|
|
4392
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4393
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QueriesAndDocumentationsApi.queriesAndDocControllerGetEventLogsByQueryId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4394
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4395
|
-
});
|
|
4396
|
-
},
|
|
4397
4181
|
/**
|
|
4398
4182
|
*
|
|
4399
4183
|
* @summary Run Query
|
|
@@ -4425,23 +4209,12 @@ const QueriesAndDocumentationsApiFactory = function (configuration, basePath, ax
|
|
|
4425
4209
|
* @summary Fetch Swagger JSON
|
|
4426
4210
|
* @param {string} modelId
|
|
4427
4211
|
* @param {string} projectId
|
|
4212
|
+
* @param {string} fieldName
|
|
4428
4213
|
* @param {*} [options] Override http request option.
|
|
4429
4214
|
* @throws {RequiredError}
|
|
4430
4215
|
*/
|
|
4431
|
-
queriesAndDocControllerFetchSwaggerJSON(modelId, projectId, options) {
|
|
4432
|
-
return localVarFp.queriesAndDocControllerFetchSwaggerJSON(modelId, projectId, options).then((request) => request(axios, basePath));
|
|
4433
|
-
},
|
|
4434
|
-
/**
|
|
4435
|
-
*
|
|
4436
|
-
* @summary Fetch Swagger JSON
|
|
4437
|
-
* @param {string} projectId
|
|
4438
|
-
* @param {string} modelId
|
|
4439
|
-
* @param {string} queryId
|
|
4440
|
-
* @param {*} [options] Override http request option.
|
|
4441
|
-
* @throws {RequiredError}
|
|
4442
|
-
*/
|
|
4443
|
-
queriesAndDocControllerGetEventLogsByQueryId(projectId, modelId, queryId, options) {
|
|
4444
|
-
return localVarFp.queriesAndDocControllerGetEventLogsByQueryId(projectId, modelId, queryId, options).then((request) => request(axios, basePath));
|
|
4216
|
+
queriesAndDocControllerFetchSwaggerJSON(modelId, projectId, fieldName, options) {
|
|
4217
|
+
return localVarFp.queriesAndDocControllerFetchSwaggerJSON(modelId, projectId, fieldName, options).then((request) => request(axios, basePath));
|
|
4445
4218
|
},
|
|
4446
4219
|
/**
|
|
4447
4220
|
*
|
|
@@ -4468,25 +4241,13 @@ class QueriesAndDocumentationsApi extends base_1.BaseAPI {
|
|
|
4468
4241
|
* @summary Fetch Swagger JSON
|
|
4469
4242
|
* @param {string} modelId
|
|
4470
4243
|
* @param {string} projectId
|
|
4244
|
+
* @param {string} fieldName
|
|
4471
4245
|
* @param {*} [options] Override http request option.
|
|
4472
4246
|
* @throws {RequiredError}
|
|
4473
4247
|
* @memberof QueriesAndDocumentationsApi
|
|
4474
4248
|
*/
|
|
4475
|
-
queriesAndDocControllerFetchSwaggerJSON(modelId, projectId, options) {
|
|
4476
|
-
return (0, exports.QueriesAndDocumentationsApiFp)(this.configuration).queriesAndDocControllerFetchSwaggerJSON(modelId, projectId, options).then((request) => request(this.axios, this.basePath));
|
|
4477
|
-
}
|
|
4478
|
-
/**
|
|
4479
|
-
*
|
|
4480
|
-
* @summary Fetch Swagger JSON
|
|
4481
|
-
* @param {string} projectId
|
|
4482
|
-
* @param {string} modelId
|
|
4483
|
-
* @param {string} queryId
|
|
4484
|
-
* @param {*} [options] Override http request option.
|
|
4485
|
-
* @throws {RequiredError}
|
|
4486
|
-
* @memberof QueriesAndDocumentationsApi
|
|
4487
|
-
*/
|
|
4488
|
-
queriesAndDocControllerGetEventLogsByQueryId(projectId, modelId, queryId, options) {
|
|
4489
|
-
return (0, exports.QueriesAndDocumentationsApiFp)(this.configuration).queriesAndDocControllerGetEventLogsByQueryId(projectId, modelId, queryId, options).then((request) => request(this.axios, this.basePath));
|
|
4249
|
+
queriesAndDocControllerFetchSwaggerJSON(modelId, projectId, fieldName, options) {
|
|
4250
|
+
return (0, exports.QueriesAndDocumentationsApiFp)(this.configuration).queriesAndDocControllerFetchSwaggerJSON(modelId, projectId, fieldName, options).then((request) => request(this.axios, this.basePath));
|
|
4490
4251
|
}
|
|
4491
4252
|
/**
|
|
4492
4253
|
*
|