@nestbox-ai/admin 1.0.23
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 +13 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/api.ts +6915 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +115 -0
- package/dist/api.d.ts +4380 -0
- package/dist/api.js +4700 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +4380 -0
- package/dist/esm/api.js +4669 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +33 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
package/dist/api.js
ADDED
|
@@ -0,0 +1,4700 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nestbox API Admin
|
|
6
|
+
* API for Nestbox Admin, control your resources
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.UserControllerFindTypeEnum = exports.UserControllerFindDirectionEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ProjectControllerGetAllTeamMembersOfProjectDirectionEnum = exports.ProjectControllerGetAllProjectsDirectionEnum = exports.ProjectControllerGetAllProjectRolesDirectionEnum = exports.ProjectApi = exports.ProjectApiFactory = exports.ProjectApiFp = exports.ProjectApiAxiosParamCreator = exports.MediaApi = exports.MediaApiFactory = exports.MediaApiFp = exports.MediaApiAxiosParamCreator = exports.MachineImagesApi = exports.MachineImagesApiFactory = exports.MachineImagesApiFp = exports.MachineImagesApiAxiosParamCreator = exports.DeviceApi = exports.DeviceApiFactory = exports.DeviceApiFp = exports.DeviceApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.UserResponseModelStatusEnum = exports.UserResponseModelTypeEnum = exports.UploadInitiateMediaRequestDTOTypeEnum = exports.UploadFinalizeMediaResponseDTOStatusEnum = exports.UploadFinalizeMediaResponseDTOAccessEnum = exports.UploadFinalizeMediaResponseDTOTypeEnum = exports.SignupRequestDTOProviderTypeEnum = exports.OAuthLoginRequestDTOTypeEnum = exports.MediaResponseModelStatusEnum = exports.MediaResponseModelAccessEnum = exports.MediaResponseModelTypeEnum = exports.GetUserByIdResponseDTOStatusEnum = exports.GetUserByIdResponseDTOTypeEnum = exports.GetMeResponseDTOStatusEnum = exports.GetMeResponseDTOTypeEnum = exports.CreateDeviceResponseDTOTypeEnum = exports.CreateDeviceRequestDTOTypeEnum = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("./common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("./base");
|
|
32
|
+
exports.CreateDeviceRequestDTOTypeEnum = {
|
|
33
|
+
Web: 'WEB',
|
|
34
|
+
Android: 'ANDROID',
|
|
35
|
+
Ios: 'IOS'
|
|
36
|
+
};
|
|
37
|
+
exports.CreateDeviceResponseDTOTypeEnum = {
|
|
38
|
+
Web: 'WEB',
|
|
39
|
+
Android: 'ANDROID',
|
|
40
|
+
Ios: 'IOS'
|
|
41
|
+
};
|
|
42
|
+
exports.GetMeResponseDTOTypeEnum = {
|
|
43
|
+
User: 'USER',
|
|
44
|
+
Admin: 'ADMIN'
|
|
45
|
+
};
|
|
46
|
+
exports.GetMeResponseDTOStatusEnum = {
|
|
47
|
+
Active: 'ACTIVE',
|
|
48
|
+
Inactive: 'INACTIVE'
|
|
49
|
+
};
|
|
50
|
+
exports.GetUserByIdResponseDTOTypeEnum = {
|
|
51
|
+
User: 'USER',
|
|
52
|
+
Admin: 'ADMIN'
|
|
53
|
+
};
|
|
54
|
+
exports.GetUserByIdResponseDTOStatusEnum = {
|
|
55
|
+
Active: 'ACTIVE',
|
|
56
|
+
Inactive: 'INACTIVE'
|
|
57
|
+
};
|
|
58
|
+
exports.MediaResponseModelTypeEnum = {
|
|
59
|
+
Image: 'IMAGE',
|
|
60
|
+
Video: 'VIDEO',
|
|
61
|
+
Document: 'DOCUMENT',
|
|
62
|
+
Archive: 'ARCHIVE',
|
|
63
|
+
Other: 'OTHER'
|
|
64
|
+
};
|
|
65
|
+
exports.MediaResponseModelAccessEnum = {
|
|
66
|
+
Public: 'PUBLIC',
|
|
67
|
+
Private: 'PRIVATE'
|
|
68
|
+
};
|
|
69
|
+
exports.MediaResponseModelStatusEnum = {
|
|
70
|
+
Uploading: 'UPLOADING',
|
|
71
|
+
Ready: 'READY',
|
|
72
|
+
Stale: 'STALE'
|
|
73
|
+
};
|
|
74
|
+
exports.OAuthLoginRequestDTOTypeEnum = {
|
|
75
|
+
Google: 'GOOGLE',
|
|
76
|
+
Apple: 'APPLE'
|
|
77
|
+
};
|
|
78
|
+
exports.SignupRequestDTOProviderTypeEnum = {
|
|
79
|
+
Google: 'GOOGLE',
|
|
80
|
+
Apple: 'APPLE'
|
|
81
|
+
};
|
|
82
|
+
exports.UploadFinalizeMediaResponseDTOTypeEnum = {
|
|
83
|
+
Image: 'IMAGE',
|
|
84
|
+
Video: 'VIDEO',
|
|
85
|
+
Document: 'DOCUMENT',
|
|
86
|
+
Archive: 'ARCHIVE',
|
|
87
|
+
Other: 'OTHER'
|
|
88
|
+
};
|
|
89
|
+
exports.UploadFinalizeMediaResponseDTOAccessEnum = {
|
|
90
|
+
Public: 'PUBLIC',
|
|
91
|
+
Private: 'PRIVATE'
|
|
92
|
+
};
|
|
93
|
+
exports.UploadFinalizeMediaResponseDTOStatusEnum = {
|
|
94
|
+
Uploading: 'UPLOADING',
|
|
95
|
+
Ready: 'READY',
|
|
96
|
+
Stale: 'STALE'
|
|
97
|
+
};
|
|
98
|
+
exports.UploadInitiateMediaRequestDTOTypeEnum = {
|
|
99
|
+
Image: 'IMAGE',
|
|
100
|
+
Video: 'VIDEO',
|
|
101
|
+
Document: 'DOCUMENT',
|
|
102
|
+
Archive: 'ARCHIVE',
|
|
103
|
+
Other: 'OTHER'
|
|
104
|
+
};
|
|
105
|
+
exports.UserResponseModelTypeEnum = {
|
|
106
|
+
User: 'USER',
|
|
107
|
+
Admin: 'ADMIN'
|
|
108
|
+
};
|
|
109
|
+
exports.UserResponseModelStatusEnum = {
|
|
110
|
+
Active: 'ACTIVE',
|
|
111
|
+
Inactive: 'INACTIVE'
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* AuthApi - axios parameter creator
|
|
115
|
+
* @export
|
|
116
|
+
*/
|
|
117
|
+
const AuthApiAxiosParamCreator = function (configuration) {
|
|
118
|
+
return {
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @summary Forget password initiate
|
|
122
|
+
* @param {ForgetPasswordRequestDTO} forgetPasswordRequestDTO
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
authControllerForgetPassword: (forgetPasswordRequestDTO_1, ...args_1) => __awaiter(this, [forgetPasswordRequestDTO_1, ...args_1], void 0, function* (forgetPasswordRequestDTO, options = {}) {
|
|
127
|
+
// verify required parameter 'forgetPasswordRequestDTO' is not null or undefined
|
|
128
|
+
(0, common_1.assertParamExists)('authControllerForgetPassword', 'forgetPasswordRequestDTO', forgetPasswordRequestDTO);
|
|
129
|
+
const localVarPath = `/auth/forget-password`;
|
|
130
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
131
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
132
|
+
let baseOptions;
|
|
133
|
+
if (configuration) {
|
|
134
|
+
baseOptions = configuration.baseOptions;
|
|
135
|
+
}
|
|
136
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
137
|
+
const localVarHeaderParameter = {};
|
|
138
|
+
const localVarQueryParameter = {};
|
|
139
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
140
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
141
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
142
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
143
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(forgetPasswordRequestDTO, localVarRequestOptions, configuration);
|
|
144
|
+
return {
|
|
145
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
146
|
+
options: localVarRequestOptions,
|
|
147
|
+
};
|
|
148
|
+
}),
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @summary Forget password verification
|
|
152
|
+
* @param {ForgetPasswordVerificationRequestDTO} forgetPasswordVerificationRequestDTO
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
authControllerForgetPasswordVerification: (forgetPasswordVerificationRequestDTO_1, ...args_1) => __awaiter(this, [forgetPasswordVerificationRequestDTO_1, ...args_1], void 0, function* (forgetPasswordVerificationRequestDTO, options = {}) {
|
|
157
|
+
// verify required parameter 'forgetPasswordVerificationRequestDTO' is not null or undefined
|
|
158
|
+
(0, common_1.assertParamExists)('authControllerForgetPasswordVerification', 'forgetPasswordVerificationRequestDTO', forgetPasswordVerificationRequestDTO);
|
|
159
|
+
const localVarPath = `/auth/forget-password/verification`;
|
|
160
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
161
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
162
|
+
let baseOptions;
|
|
163
|
+
if (configuration) {
|
|
164
|
+
baseOptions = configuration.baseOptions;
|
|
165
|
+
}
|
|
166
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
167
|
+
const localVarHeaderParameter = {};
|
|
168
|
+
const localVarQueryParameter = {};
|
|
169
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
170
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
171
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
172
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
173
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(forgetPasswordVerificationRequestDTO, localVarRequestOptions, configuration);
|
|
174
|
+
return {
|
|
175
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
176
|
+
options: localVarRequestOptions,
|
|
177
|
+
};
|
|
178
|
+
}),
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @summary Login to the application
|
|
182
|
+
* @param {LoginRequestDTO} loginRequestDTO
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
authControllerLogin: (loginRequestDTO_1, ...args_1) => __awaiter(this, [loginRequestDTO_1, ...args_1], void 0, function* (loginRequestDTO, options = {}) {
|
|
187
|
+
// verify required parameter 'loginRequestDTO' is not null or undefined
|
|
188
|
+
(0, common_1.assertParamExists)('authControllerLogin', 'loginRequestDTO', loginRequestDTO);
|
|
189
|
+
const localVarPath = `/auth/login`;
|
|
190
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
191
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
192
|
+
let baseOptions;
|
|
193
|
+
if (configuration) {
|
|
194
|
+
baseOptions = configuration.baseOptions;
|
|
195
|
+
}
|
|
196
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
197
|
+
const localVarHeaderParameter = {};
|
|
198
|
+
const localVarQueryParameter = {};
|
|
199
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
200
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
201
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
202
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
203
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(loginRequestDTO, localVarRequestOptions, configuration);
|
|
204
|
+
return {
|
|
205
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
206
|
+
options: localVarRequestOptions,
|
|
207
|
+
};
|
|
208
|
+
}),
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
* @summary Login with OAuth apps
|
|
212
|
+
* @param {OAuthLoginRequestDTO} oAuthLoginRequestDTO
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
*/
|
|
216
|
+
authControllerOAuthLogin: (oAuthLoginRequestDTO_1, ...args_1) => __awaiter(this, [oAuthLoginRequestDTO_1, ...args_1], void 0, function* (oAuthLoginRequestDTO, options = {}) {
|
|
217
|
+
// verify required parameter 'oAuthLoginRequestDTO' is not null or undefined
|
|
218
|
+
(0, common_1.assertParamExists)('authControllerOAuthLogin', 'oAuthLoginRequestDTO', oAuthLoginRequestDTO);
|
|
219
|
+
const localVarPath = `/auth/login/oauth`;
|
|
220
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
221
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
222
|
+
let baseOptions;
|
|
223
|
+
if (configuration) {
|
|
224
|
+
baseOptions = configuration.baseOptions;
|
|
225
|
+
}
|
|
226
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
227
|
+
const localVarHeaderParameter = {};
|
|
228
|
+
const localVarQueryParameter = {};
|
|
229
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
230
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
231
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
232
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
233
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(oAuthLoginRequestDTO, localVarRequestOptions, configuration);
|
|
234
|
+
return {
|
|
235
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
236
|
+
options: localVarRequestOptions,
|
|
237
|
+
};
|
|
238
|
+
}),
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @summary Forget password initiate
|
|
242
|
+
* @param {ResetPasswordRequestDTO} resetPasswordRequestDTO
|
|
243
|
+
* @param {*} [options] Override http request option.
|
|
244
|
+
* @throws {RequiredError}
|
|
245
|
+
*/
|
|
246
|
+
authControllerResetPassword: (resetPasswordRequestDTO_1, ...args_1) => __awaiter(this, [resetPasswordRequestDTO_1, ...args_1], void 0, function* (resetPasswordRequestDTO, options = {}) {
|
|
247
|
+
// verify required parameter 'resetPasswordRequestDTO' is not null or undefined
|
|
248
|
+
(0, common_1.assertParamExists)('authControllerResetPassword', 'resetPasswordRequestDTO', resetPasswordRequestDTO);
|
|
249
|
+
const localVarPath = `/auth/reset-password`;
|
|
250
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
251
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
252
|
+
let baseOptions;
|
|
253
|
+
if (configuration) {
|
|
254
|
+
baseOptions = configuration.baseOptions;
|
|
255
|
+
}
|
|
256
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
257
|
+
const localVarHeaderParameter = {};
|
|
258
|
+
const localVarQueryParameter = {};
|
|
259
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
260
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
261
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
262
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
263
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(resetPasswordRequestDTO, localVarRequestOptions, configuration);
|
|
264
|
+
return {
|
|
265
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
266
|
+
options: localVarRequestOptions,
|
|
267
|
+
};
|
|
268
|
+
}),
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @summary Signup in the application
|
|
272
|
+
* @param {SignupRequestDTO} signupRequestDTO
|
|
273
|
+
* @param {*} [options] Override http request option.
|
|
274
|
+
* @throws {RequiredError}
|
|
275
|
+
*/
|
|
276
|
+
authControllerSignup: (signupRequestDTO_1, ...args_1) => __awaiter(this, [signupRequestDTO_1, ...args_1], void 0, function* (signupRequestDTO, options = {}) {
|
|
277
|
+
// verify required parameter 'signupRequestDTO' is not null or undefined
|
|
278
|
+
(0, common_1.assertParamExists)('authControllerSignup', 'signupRequestDTO', signupRequestDTO);
|
|
279
|
+
const localVarPath = `/auth/signup`;
|
|
280
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
281
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
282
|
+
let baseOptions;
|
|
283
|
+
if (configuration) {
|
|
284
|
+
baseOptions = configuration.baseOptions;
|
|
285
|
+
}
|
|
286
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
287
|
+
const localVarHeaderParameter = {};
|
|
288
|
+
const localVarQueryParameter = {};
|
|
289
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
290
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
291
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
292
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
293
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(signupRequestDTO, localVarRequestOptions, configuration);
|
|
294
|
+
return {
|
|
295
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
296
|
+
options: localVarRequestOptions,
|
|
297
|
+
};
|
|
298
|
+
}),
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
|
|
302
|
+
/**
|
|
303
|
+
* AuthApi - functional programming interface
|
|
304
|
+
* @export
|
|
305
|
+
*/
|
|
306
|
+
const AuthApiFp = function (configuration) {
|
|
307
|
+
const localVarAxiosParamCreator = (0, exports.AuthApiAxiosParamCreator)(configuration);
|
|
308
|
+
return {
|
|
309
|
+
/**
|
|
310
|
+
*
|
|
311
|
+
* @summary Forget password initiate
|
|
312
|
+
* @param {ForgetPasswordRequestDTO} forgetPasswordRequestDTO
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
*/
|
|
316
|
+
authControllerForgetPassword(forgetPasswordRequestDTO, options) {
|
|
317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
var _a, _b, _c;
|
|
319
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerForgetPassword(forgetPasswordRequestDTO, options);
|
|
320
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
321
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authControllerForgetPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
322
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
323
|
+
});
|
|
324
|
+
},
|
|
325
|
+
/**
|
|
326
|
+
*
|
|
327
|
+
* @summary Forget password verification
|
|
328
|
+
* @param {ForgetPasswordVerificationRequestDTO} forgetPasswordVerificationRequestDTO
|
|
329
|
+
* @param {*} [options] Override http request option.
|
|
330
|
+
* @throws {RequiredError}
|
|
331
|
+
*/
|
|
332
|
+
authControllerForgetPasswordVerification(forgetPasswordVerificationRequestDTO, options) {
|
|
333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
334
|
+
var _a, _b, _c;
|
|
335
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerForgetPasswordVerification(forgetPasswordVerificationRequestDTO, options);
|
|
336
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
337
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authControllerForgetPasswordVerification']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
338
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
339
|
+
});
|
|
340
|
+
},
|
|
341
|
+
/**
|
|
342
|
+
*
|
|
343
|
+
* @summary Login to the application
|
|
344
|
+
* @param {LoginRequestDTO} loginRequestDTO
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
authControllerLogin(loginRequestDTO, options) {
|
|
349
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
350
|
+
var _a, _b, _c;
|
|
351
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerLogin(loginRequestDTO, options);
|
|
352
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
353
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authControllerLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
354
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
355
|
+
});
|
|
356
|
+
},
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
* @summary Login with OAuth apps
|
|
360
|
+
* @param {OAuthLoginRequestDTO} oAuthLoginRequestDTO
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
authControllerOAuthLogin(oAuthLoginRequestDTO, options) {
|
|
365
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
366
|
+
var _a, _b, _c;
|
|
367
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerOAuthLogin(oAuthLoginRequestDTO, options);
|
|
368
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
369
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authControllerOAuthLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
370
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
371
|
+
});
|
|
372
|
+
},
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
* @summary Forget password initiate
|
|
376
|
+
* @param {ResetPasswordRequestDTO} resetPasswordRequestDTO
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
authControllerResetPassword(resetPasswordRequestDTO, options) {
|
|
381
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
382
|
+
var _a, _b, _c;
|
|
383
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerResetPassword(resetPasswordRequestDTO, options);
|
|
384
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
385
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authControllerResetPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
386
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
387
|
+
});
|
|
388
|
+
},
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
* @summary Signup in the application
|
|
392
|
+
* @param {SignupRequestDTO} signupRequestDTO
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
authControllerSignup(signupRequestDTO, options) {
|
|
397
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
398
|
+
var _a, _b, _c;
|
|
399
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerSignup(signupRequestDTO, options);
|
|
400
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
401
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authControllerSignup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
402
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
403
|
+
});
|
|
404
|
+
},
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
exports.AuthApiFp = AuthApiFp;
|
|
408
|
+
/**
|
|
409
|
+
* AuthApi - factory interface
|
|
410
|
+
* @export
|
|
411
|
+
*/
|
|
412
|
+
const AuthApiFactory = function (configuration, basePath, axios) {
|
|
413
|
+
const localVarFp = (0, exports.AuthApiFp)(configuration);
|
|
414
|
+
return {
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* @summary Forget password initiate
|
|
418
|
+
* @param {ForgetPasswordRequestDTO} forgetPasswordRequestDTO
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
*/
|
|
422
|
+
authControllerForgetPassword(forgetPasswordRequestDTO, options) {
|
|
423
|
+
return localVarFp.authControllerForgetPassword(forgetPasswordRequestDTO, options).then((request) => request(axios, basePath));
|
|
424
|
+
},
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
* @summary Forget password verification
|
|
428
|
+
* @param {ForgetPasswordVerificationRequestDTO} forgetPasswordVerificationRequestDTO
|
|
429
|
+
* @param {*} [options] Override http request option.
|
|
430
|
+
* @throws {RequiredError}
|
|
431
|
+
*/
|
|
432
|
+
authControllerForgetPasswordVerification(forgetPasswordVerificationRequestDTO, options) {
|
|
433
|
+
return localVarFp.authControllerForgetPasswordVerification(forgetPasswordVerificationRequestDTO, options).then((request) => request(axios, basePath));
|
|
434
|
+
},
|
|
435
|
+
/**
|
|
436
|
+
*
|
|
437
|
+
* @summary Login to the application
|
|
438
|
+
* @param {LoginRequestDTO} loginRequestDTO
|
|
439
|
+
* @param {*} [options] Override http request option.
|
|
440
|
+
* @throws {RequiredError}
|
|
441
|
+
*/
|
|
442
|
+
authControllerLogin(loginRequestDTO, options) {
|
|
443
|
+
return localVarFp.authControllerLogin(loginRequestDTO, options).then((request) => request(axios, basePath));
|
|
444
|
+
},
|
|
445
|
+
/**
|
|
446
|
+
*
|
|
447
|
+
* @summary Login with OAuth apps
|
|
448
|
+
* @param {OAuthLoginRequestDTO} oAuthLoginRequestDTO
|
|
449
|
+
* @param {*} [options] Override http request option.
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
*/
|
|
452
|
+
authControllerOAuthLogin(oAuthLoginRequestDTO, options) {
|
|
453
|
+
return localVarFp.authControllerOAuthLogin(oAuthLoginRequestDTO, options).then((request) => request(axios, basePath));
|
|
454
|
+
},
|
|
455
|
+
/**
|
|
456
|
+
*
|
|
457
|
+
* @summary Forget password initiate
|
|
458
|
+
* @param {ResetPasswordRequestDTO} resetPasswordRequestDTO
|
|
459
|
+
* @param {*} [options] Override http request option.
|
|
460
|
+
* @throws {RequiredError}
|
|
461
|
+
*/
|
|
462
|
+
authControllerResetPassword(resetPasswordRequestDTO, options) {
|
|
463
|
+
return localVarFp.authControllerResetPassword(resetPasswordRequestDTO, options).then((request) => request(axios, basePath));
|
|
464
|
+
},
|
|
465
|
+
/**
|
|
466
|
+
*
|
|
467
|
+
* @summary Signup in the application
|
|
468
|
+
* @param {SignupRequestDTO} signupRequestDTO
|
|
469
|
+
* @param {*} [options] Override http request option.
|
|
470
|
+
* @throws {RequiredError}
|
|
471
|
+
*/
|
|
472
|
+
authControllerSignup(signupRequestDTO, options) {
|
|
473
|
+
return localVarFp.authControllerSignup(signupRequestDTO, options).then((request) => request(axios, basePath));
|
|
474
|
+
},
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
exports.AuthApiFactory = AuthApiFactory;
|
|
478
|
+
/**
|
|
479
|
+
* AuthApi - object-oriented interface
|
|
480
|
+
* @export
|
|
481
|
+
* @class AuthApi
|
|
482
|
+
* @extends {BaseAPI}
|
|
483
|
+
*/
|
|
484
|
+
class AuthApi extends base_1.BaseAPI {
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
* @summary Forget password initiate
|
|
488
|
+
* @param {ForgetPasswordRequestDTO} forgetPasswordRequestDTO
|
|
489
|
+
* @param {*} [options] Override http request option.
|
|
490
|
+
* @throws {RequiredError}
|
|
491
|
+
* @memberof AuthApi
|
|
492
|
+
*/
|
|
493
|
+
authControllerForgetPassword(forgetPasswordRequestDTO, options) {
|
|
494
|
+
return (0, exports.AuthApiFp)(this.configuration).authControllerForgetPassword(forgetPasswordRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
*
|
|
498
|
+
* @summary Forget password verification
|
|
499
|
+
* @param {ForgetPasswordVerificationRequestDTO} forgetPasswordVerificationRequestDTO
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
* @memberof AuthApi
|
|
503
|
+
*/
|
|
504
|
+
authControllerForgetPasswordVerification(forgetPasswordVerificationRequestDTO, options) {
|
|
505
|
+
return (0, exports.AuthApiFp)(this.configuration).authControllerForgetPasswordVerification(forgetPasswordVerificationRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
*
|
|
509
|
+
* @summary Login to the application
|
|
510
|
+
* @param {LoginRequestDTO} loginRequestDTO
|
|
511
|
+
* @param {*} [options] Override http request option.
|
|
512
|
+
* @throws {RequiredError}
|
|
513
|
+
* @memberof AuthApi
|
|
514
|
+
*/
|
|
515
|
+
authControllerLogin(loginRequestDTO, options) {
|
|
516
|
+
return (0, exports.AuthApiFp)(this.configuration).authControllerLogin(loginRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
*
|
|
520
|
+
* @summary Login with OAuth apps
|
|
521
|
+
* @param {OAuthLoginRequestDTO} oAuthLoginRequestDTO
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
* @memberof AuthApi
|
|
525
|
+
*/
|
|
526
|
+
authControllerOAuthLogin(oAuthLoginRequestDTO, options) {
|
|
527
|
+
return (0, exports.AuthApiFp)(this.configuration).authControllerOAuthLogin(oAuthLoginRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
*
|
|
531
|
+
* @summary Forget password initiate
|
|
532
|
+
* @param {ResetPasswordRequestDTO} resetPasswordRequestDTO
|
|
533
|
+
* @param {*} [options] Override http request option.
|
|
534
|
+
* @throws {RequiredError}
|
|
535
|
+
* @memberof AuthApi
|
|
536
|
+
*/
|
|
537
|
+
authControllerResetPassword(resetPasswordRequestDTO, options) {
|
|
538
|
+
return (0, exports.AuthApiFp)(this.configuration).authControllerResetPassword(resetPasswordRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
*
|
|
542
|
+
* @summary Signup in the application
|
|
543
|
+
* @param {SignupRequestDTO} signupRequestDTO
|
|
544
|
+
* @param {*} [options] Override http request option.
|
|
545
|
+
* @throws {RequiredError}
|
|
546
|
+
* @memberof AuthApi
|
|
547
|
+
*/
|
|
548
|
+
authControllerSignup(signupRequestDTO, options) {
|
|
549
|
+
return (0, exports.AuthApiFp)(this.configuration).authControllerSignup(signupRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
exports.AuthApi = AuthApi;
|
|
553
|
+
/**
|
|
554
|
+
* DefaultApi - axios parameter creator
|
|
555
|
+
* @export
|
|
556
|
+
*/
|
|
557
|
+
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
558
|
+
return {
|
|
559
|
+
/**
|
|
560
|
+
*
|
|
561
|
+
* @param {*} [options] Override http request option.
|
|
562
|
+
* @throws {RequiredError}
|
|
563
|
+
*/
|
|
564
|
+
appControllerGetHello: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
565
|
+
const localVarPath = `/`;
|
|
566
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
567
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
568
|
+
let baseOptions;
|
|
569
|
+
if (configuration) {
|
|
570
|
+
baseOptions = configuration.baseOptions;
|
|
571
|
+
}
|
|
572
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
573
|
+
const localVarHeaderParameter = {};
|
|
574
|
+
const localVarQueryParameter = {};
|
|
575
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
576
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
577
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
578
|
+
return {
|
|
579
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
580
|
+
options: localVarRequestOptions,
|
|
581
|
+
};
|
|
582
|
+
}),
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
586
|
+
/**
|
|
587
|
+
* DefaultApi - functional programming interface
|
|
588
|
+
* @export
|
|
589
|
+
*/
|
|
590
|
+
const DefaultApiFp = function (configuration) {
|
|
591
|
+
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
592
|
+
return {
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @param {*} [options] Override http request option.
|
|
596
|
+
* @throws {RequiredError}
|
|
597
|
+
*/
|
|
598
|
+
appControllerGetHello(options) {
|
|
599
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
600
|
+
var _a, _b, _c;
|
|
601
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.appControllerGetHello(options);
|
|
602
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
603
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.appControllerGetHello']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
604
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
605
|
+
});
|
|
606
|
+
},
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
exports.DefaultApiFp = DefaultApiFp;
|
|
610
|
+
/**
|
|
611
|
+
* DefaultApi - factory interface
|
|
612
|
+
* @export
|
|
613
|
+
*/
|
|
614
|
+
const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
615
|
+
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
616
|
+
return {
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @param {*} [options] Override http request option.
|
|
620
|
+
* @throws {RequiredError}
|
|
621
|
+
*/
|
|
622
|
+
appControllerGetHello(options) {
|
|
623
|
+
return localVarFp.appControllerGetHello(options).then((request) => request(axios, basePath));
|
|
624
|
+
},
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
exports.DefaultApiFactory = DefaultApiFactory;
|
|
628
|
+
/**
|
|
629
|
+
* DefaultApi - object-oriented interface
|
|
630
|
+
* @export
|
|
631
|
+
* @class DefaultApi
|
|
632
|
+
* @extends {BaseAPI}
|
|
633
|
+
*/
|
|
634
|
+
class DefaultApi extends base_1.BaseAPI {
|
|
635
|
+
/**
|
|
636
|
+
*
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
* @memberof DefaultApi
|
|
640
|
+
*/
|
|
641
|
+
appControllerGetHello(options) {
|
|
642
|
+
return (0, exports.DefaultApiFp)(this.configuration).appControllerGetHello(options).then((request) => request(this.axios, this.basePath));
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
exports.DefaultApi = DefaultApi;
|
|
646
|
+
/**
|
|
647
|
+
* DeviceApi - axios parameter creator
|
|
648
|
+
* @export
|
|
649
|
+
*/
|
|
650
|
+
const DeviceApiAxiosParamCreator = function (configuration) {
|
|
651
|
+
return {
|
|
652
|
+
/**
|
|
653
|
+
*
|
|
654
|
+
* @summary Create a new device
|
|
655
|
+
* @param {CreateDeviceRequestDTO} createDeviceRequestDTO
|
|
656
|
+
* @param {*} [options] Override http request option.
|
|
657
|
+
* @throws {RequiredError}
|
|
658
|
+
*/
|
|
659
|
+
deviceControllerCreate: (createDeviceRequestDTO_1, ...args_1) => __awaiter(this, [createDeviceRequestDTO_1, ...args_1], void 0, function* (createDeviceRequestDTO, options = {}) {
|
|
660
|
+
// verify required parameter 'createDeviceRequestDTO' is not null or undefined
|
|
661
|
+
(0, common_1.assertParamExists)('deviceControllerCreate', 'createDeviceRequestDTO', createDeviceRequestDTO);
|
|
662
|
+
const localVarPath = `/device`;
|
|
663
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
664
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
665
|
+
let baseOptions;
|
|
666
|
+
if (configuration) {
|
|
667
|
+
baseOptions = configuration.baseOptions;
|
|
668
|
+
}
|
|
669
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
670
|
+
const localVarHeaderParameter = {};
|
|
671
|
+
const localVarQueryParameter = {};
|
|
672
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
673
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
674
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
675
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
676
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDeviceRequestDTO, localVarRequestOptions, configuration);
|
|
677
|
+
return {
|
|
678
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
679
|
+
options: localVarRequestOptions,
|
|
680
|
+
};
|
|
681
|
+
}),
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
exports.DeviceApiAxiosParamCreator = DeviceApiAxiosParamCreator;
|
|
685
|
+
/**
|
|
686
|
+
* DeviceApi - functional programming interface
|
|
687
|
+
* @export
|
|
688
|
+
*/
|
|
689
|
+
const DeviceApiFp = function (configuration) {
|
|
690
|
+
const localVarAxiosParamCreator = (0, exports.DeviceApiAxiosParamCreator)(configuration);
|
|
691
|
+
return {
|
|
692
|
+
/**
|
|
693
|
+
*
|
|
694
|
+
* @summary Create a new device
|
|
695
|
+
* @param {CreateDeviceRequestDTO} createDeviceRequestDTO
|
|
696
|
+
* @param {*} [options] Override http request option.
|
|
697
|
+
* @throws {RequiredError}
|
|
698
|
+
*/
|
|
699
|
+
deviceControllerCreate(createDeviceRequestDTO, options) {
|
|
700
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
701
|
+
var _a, _b, _c;
|
|
702
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deviceControllerCreate(createDeviceRequestDTO, options);
|
|
703
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
704
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.deviceControllerCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
705
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
706
|
+
});
|
|
707
|
+
},
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
exports.DeviceApiFp = DeviceApiFp;
|
|
711
|
+
/**
|
|
712
|
+
* DeviceApi - factory interface
|
|
713
|
+
* @export
|
|
714
|
+
*/
|
|
715
|
+
const DeviceApiFactory = function (configuration, basePath, axios) {
|
|
716
|
+
const localVarFp = (0, exports.DeviceApiFp)(configuration);
|
|
717
|
+
return {
|
|
718
|
+
/**
|
|
719
|
+
*
|
|
720
|
+
* @summary Create a new device
|
|
721
|
+
* @param {CreateDeviceRequestDTO} createDeviceRequestDTO
|
|
722
|
+
* @param {*} [options] Override http request option.
|
|
723
|
+
* @throws {RequiredError}
|
|
724
|
+
*/
|
|
725
|
+
deviceControllerCreate(createDeviceRequestDTO, options) {
|
|
726
|
+
return localVarFp.deviceControllerCreate(createDeviceRequestDTO, options).then((request) => request(axios, basePath));
|
|
727
|
+
},
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
exports.DeviceApiFactory = DeviceApiFactory;
|
|
731
|
+
/**
|
|
732
|
+
* DeviceApi - object-oriented interface
|
|
733
|
+
* @export
|
|
734
|
+
* @class DeviceApi
|
|
735
|
+
* @extends {BaseAPI}
|
|
736
|
+
*/
|
|
737
|
+
class DeviceApi extends base_1.BaseAPI {
|
|
738
|
+
/**
|
|
739
|
+
*
|
|
740
|
+
* @summary Create a new device
|
|
741
|
+
* @param {CreateDeviceRequestDTO} createDeviceRequestDTO
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
* @memberof DeviceApi
|
|
745
|
+
*/
|
|
746
|
+
deviceControllerCreate(createDeviceRequestDTO, options) {
|
|
747
|
+
return (0, exports.DeviceApiFp)(this.configuration).deviceControllerCreate(createDeviceRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
exports.DeviceApi = DeviceApi;
|
|
751
|
+
/**
|
|
752
|
+
* MachineImagesApi - axios parameter creator
|
|
753
|
+
* @export
|
|
754
|
+
*/
|
|
755
|
+
const MachineImagesApiAxiosParamCreator = function (configuration) {
|
|
756
|
+
return {
|
|
757
|
+
/**
|
|
758
|
+
*
|
|
759
|
+
* @param {*} [options] Override http request option.
|
|
760
|
+
* @throws {RequiredError}
|
|
761
|
+
*/
|
|
762
|
+
machineImagesControllerGetJsonData: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
763
|
+
const localVarPath = `/machineImages`;
|
|
764
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
765
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
766
|
+
let baseOptions;
|
|
767
|
+
if (configuration) {
|
|
768
|
+
baseOptions = configuration.baseOptions;
|
|
769
|
+
}
|
|
770
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
771
|
+
const localVarHeaderParameter = {};
|
|
772
|
+
const localVarQueryParameter = {};
|
|
773
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
774
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
775
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
776
|
+
return {
|
|
777
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
778
|
+
options: localVarRequestOptions,
|
|
779
|
+
};
|
|
780
|
+
}),
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
exports.MachineImagesApiAxiosParamCreator = MachineImagesApiAxiosParamCreator;
|
|
784
|
+
/**
|
|
785
|
+
* MachineImagesApi - functional programming interface
|
|
786
|
+
* @export
|
|
787
|
+
*/
|
|
788
|
+
const MachineImagesApiFp = function (configuration) {
|
|
789
|
+
const localVarAxiosParamCreator = (0, exports.MachineImagesApiAxiosParamCreator)(configuration);
|
|
790
|
+
return {
|
|
791
|
+
/**
|
|
792
|
+
*
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
*/
|
|
796
|
+
machineImagesControllerGetJsonData(options) {
|
|
797
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
798
|
+
var _a, _b, _c;
|
|
799
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineImagesControllerGetJsonData(options);
|
|
800
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
801
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MachineImagesApi.machineImagesControllerGetJsonData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
802
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
803
|
+
});
|
|
804
|
+
},
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
exports.MachineImagesApiFp = MachineImagesApiFp;
|
|
808
|
+
/**
|
|
809
|
+
* MachineImagesApi - factory interface
|
|
810
|
+
* @export
|
|
811
|
+
*/
|
|
812
|
+
const MachineImagesApiFactory = function (configuration, basePath, axios) {
|
|
813
|
+
const localVarFp = (0, exports.MachineImagesApiFp)(configuration);
|
|
814
|
+
return {
|
|
815
|
+
/**
|
|
816
|
+
*
|
|
817
|
+
* @param {*} [options] Override http request option.
|
|
818
|
+
* @throws {RequiredError}
|
|
819
|
+
*/
|
|
820
|
+
machineImagesControllerGetJsonData(options) {
|
|
821
|
+
return localVarFp.machineImagesControllerGetJsonData(options).then((request) => request(axios, basePath));
|
|
822
|
+
},
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
exports.MachineImagesApiFactory = MachineImagesApiFactory;
|
|
826
|
+
/**
|
|
827
|
+
* MachineImagesApi - object-oriented interface
|
|
828
|
+
* @export
|
|
829
|
+
* @class MachineImagesApi
|
|
830
|
+
* @extends {BaseAPI}
|
|
831
|
+
*/
|
|
832
|
+
class MachineImagesApi extends base_1.BaseAPI {
|
|
833
|
+
/**
|
|
834
|
+
*
|
|
835
|
+
* @param {*} [options] Override http request option.
|
|
836
|
+
* @throws {RequiredError}
|
|
837
|
+
* @memberof MachineImagesApi
|
|
838
|
+
*/
|
|
839
|
+
machineImagesControllerGetJsonData(options) {
|
|
840
|
+
return (0, exports.MachineImagesApiFp)(this.configuration).machineImagesControllerGetJsonData(options).then((request) => request(this.axios, this.basePath));
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
exports.MachineImagesApi = MachineImagesApi;
|
|
844
|
+
/**
|
|
845
|
+
* MediaApi - axios parameter creator
|
|
846
|
+
* @export
|
|
847
|
+
*/
|
|
848
|
+
const MediaApiAxiosParamCreator = function (configuration) {
|
|
849
|
+
return {
|
|
850
|
+
/**
|
|
851
|
+
*
|
|
852
|
+
* @summary Finalize media
|
|
853
|
+
* @param {UploadFinalizeMediaRequestDTO} uploadFinalizeMediaRequestDTO
|
|
854
|
+
* @param {*} [options] Override http request option.
|
|
855
|
+
* @throws {RequiredError}
|
|
856
|
+
*/
|
|
857
|
+
mediaControllerUploadFinalize: (uploadFinalizeMediaRequestDTO_1, ...args_1) => __awaiter(this, [uploadFinalizeMediaRequestDTO_1, ...args_1], void 0, function* (uploadFinalizeMediaRequestDTO, options = {}) {
|
|
858
|
+
// verify required parameter 'uploadFinalizeMediaRequestDTO' is not null or undefined
|
|
859
|
+
(0, common_1.assertParamExists)('mediaControllerUploadFinalize', 'uploadFinalizeMediaRequestDTO', uploadFinalizeMediaRequestDTO);
|
|
860
|
+
const localVarPath = `/media/finalize`;
|
|
861
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
862
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
863
|
+
let baseOptions;
|
|
864
|
+
if (configuration) {
|
|
865
|
+
baseOptions = configuration.baseOptions;
|
|
866
|
+
}
|
|
867
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
868
|
+
const localVarHeaderParameter = {};
|
|
869
|
+
const localVarQueryParameter = {};
|
|
870
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
871
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
872
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
873
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
874
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(uploadFinalizeMediaRequestDTO, localVarRequestOptions, configuration);
|
|
875
|
+
return {
|
|
876
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
877
|
+
options: localVarRequestOptions,
|
|
878
|
+
};
|
|
879
|
+
}),
|
|
880
|
+
/**
|
|
881
|
+
*
|
|
882
|
+
* @summary Upload media
|
|
883
|
+
* @param {UploadInitiateMediaRequestDTO} uploadInitiateMediaRequestDTO
|
|
884
|
+
* @param {*} [options] Override http request option.
|
|
885
|
+
* @throws {RequiredError}
|
|
886
|
+
*/
|
|
887
|
+
mediaControllerUploadInitiate: (uploadInitiateMediaRequestDTO_1, ...args_1) => __awaiter(this, [uploadInitiateMediaRequestDTO_1, ...args_1], void 0, function* (uploadInitiateMediaRequestDTO, options = {}) {
|
|
888
|
+
// verify required parameter 'uploadInitiateMediaRequestDTO' is not null or undefined
|
|
889
|
+
(0, common_1.assertParamExists)('mediaControllerUploadInitiate', 'uploadInitiateMediaRequestDTO', uploadInitiateMediaRequestDTO);
|
|
890
|
+
const localVarPath = `/media/init`;
|
|
891
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
892
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
893
|
+
let baseOptions;
|
|
894
|
+
if (configuration) {
|
|
895
|
+
baseOptions = configuration.baseOptions;
|
|
896
|
+
}
|
|
897
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
898
|
+
const localVarHeaderParameter = {};
|
|
899
|
+
const localVarQueryParameter = {};
|
|
900
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
901
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
902
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
903
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
904
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(uploadInitiateMediaRequestDTO, localVarRequestOptions, configuration);
|
|
905
|
+
return {
|
|
906
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
907
|
+
options: localVarRequestOptions,
|
|
908
|
+
};
|
|
909
|
+
}),
|
|
910
|
+
/**
|
|
911
|
+
*
|
|
912
|
+
* @summary Finalize public media
|
|
913
|
+
* @param {UploadFinalizeMediaRequestDTO} uploadFinalizeMediaRequestDTO
|
|
914
|
+
* @param {*} [options] Override http request option.
|
|
915
|
+
* @throws {RequiredError}
|
|
916
|
+
*/
|
|
917
|
+
mediaControllerUploadPublicFinalize: (uploadFinalizeMediaRequestDTO_1, ...args_1) => __awaiter(this, [uploadFinalizeMediaRequestDTO_1, ...args_1], void 0, function* (uploadFinalizeMediaRequestDTO, options = {}) {
|
|
918
|
+
// verify required parameter 'uploadFinalizeMediaRequestDTO' is not null or undefined
|
|
919
|
+
(0, common_1.assertParamExists)('mediaControllerUploadPublicFinalize', 'uploadFinalizeMediaRequestDTO', uploadFinalizeMediaRequestDTO);
|
|
920
|
+
const localVarPath = `/media/public/finalize`;
|
|
921
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
922
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
923
|
+
let baseOptions;
|
|
924
|
+
if (configuration) {
|
|
925
|
+
baseOptions = configuration.baseOptions;
|
|
926
|
+
}
|
|
927
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
928
|
+
const localVarHeaderParameter = {};
|
|
929
|
+
const localVarQueryParameter = {};
|
|
930
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
931
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
932
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
933
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
934
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(uploadFinalizeMediaRequestDTO, localVarRequestOptions, configuration);
|
|
935
|
+
return {
|
|
936
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
937
|
+
options: localVarRequestOptions,
|
|
938
|
+
};
|
|
939
|
+
}),
|
|
940
|
+
/**
|
|
941
|
+
*
|
|
942
|
+
* @summary Upload public media
|
|
943
|
+
* @param {UploadInitiateMediaRequestDTO} uploadInitiateMediaRequestDTO
|
|
944
|
+
* @param {*} [options] Override http request option.
|
|
945
|
+
* @throws {RequiredError}
|
|
946
|
+
*/
|
|
947
|
+
mediaControllerUploadPublicInitiate: (uploadInitiateMediaRequestDTO_1, ...args_1) => __awaiter(this, [uploadInitiateMediaRequestDTO_1, ...args_1], void 0, function* (uploadInitiateMediaRequestDTO, options = {}) {
|
|
948
|
+
// verify required parameter 'uploadInitiateMediaRequestDTO' is not null or undefined
|
|
949
|
+
(0, common_1.assertParamExists)('mediaControllerUploadPublicInitiate', 'uploadInitiateMediaRequestDTO', uploadInitiateMediaRequestDTO);
|
|
950
|
+
const localVarPath = `/media/public/init`;
|
|
951
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
952
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
953
|
+
let baseOptions;
|
|
954
|
+
if (configuration) {
|
|
955
|
+
baseOptions = configuration.baseOptions;
|
|
956
|
+
}
|
|
957
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
958
|
+
const localVarHeaderParameter = {};
|
|
959
|
+
const localVarQueryParameter = {};
|
|
960
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
961
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
962
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
963
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
964
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(uploadInitiateMediaRequestDTO, localVarRequestOptions, configuration);
|
|
965
|
+
return {
|
|
966
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
967
|
+
options: localVarRequestOptions,
|
|
968
|
+
};
|
|
969
|
+
}),
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
exports.MediaApiAxiosParamCreator = MediaApiAxiosParamCreator;
|
|
973
|
+
/**
|
|
974
|
+
* MediaApi - functional programming interface
|
|
975
|
+
* @export
|
|
976
|
+
*/
|
|
977
|
+
const MediaApiFp = function (configuration) {
|
|
978
|
+
const localVarAxiosParamCreator = (0, exports.MediaApiAxiosParamCreator)(configuration);
|
|
979
|
+
return {
|
|
980
|
+
/**
|
|
981
|
+
*
|
|
982
|
+
* @summary Finalize media
|
|
983
|
+
* @param {UploadFinalizeMediaRequestDTO} uploadFinalizeMediaRequestDTO
|
|
984
|
+
* @param {*} [options] Override http request option.
|
|
985
|
+
* @throws {RequiredError}
|
|
986
|
+
*/
|
|
987
|
+
mediaControllerUploadFinalize(uploadFinalizeMediaRequestDTO, options) {
|
|
988
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
989
|
+
var _a, _b, _c;
|
|
990
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mediaControllerUploadFinalize(uploadFinalizeMediaRequestDTO, options);
|
|
991
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
992
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MediaApi.mediaControllerUploadFinalize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
993
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
994
|
+
});
|
|
995
|
+
},
|
|
996
|
+
/**
|
|
997
|
+
*
|
|
998
|
+
* @summary Upload media
|
|
999
|
+
* @param {UploadInitiateMediaRequestDTO} uploadInitiateMediaRequestDTO
|
|
1000
|
+
* @param {*} [options] Override http request option.
|
|
1001
|
+
* @throws {RequiredError}
|
|
1002
|
+
*/
|
|
1003
|
+
mediaControllerUploadInitiate(uploadInitiateMediaRequestDTO, options) {
|
|
1004
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1005
|
+
var _a, _b, _c;
|
|
1006
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mediaControllerUploadInitiate(uploadInitiateMediaRequestDTO, options);
|
|
1007
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1008
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MediaApi.mediaControllerUploadInitiate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1009
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1010
|
+
});
|
|
1011
|
+
},
|
|
1012
|
+
/**
|
|
1013
|
+
*
|
|
1014
|
+
* @summary Finalize public media
|
|
1015
|
+
* @param {UploadFinalizeMediaRequestDTO} uploadFinalizeMediaRequestDTO
|
|
1016
|
+
* @param {*} [options] Override http request option.
|
|
1017
|
+
* @throws {RequiredError}
|
|
1018
|
+
*/
|
|
1019
|
+
mediaControllerUploadPublicFinalize(uploadFinalizeMediaRequestDTO, options) {
|
|
1020
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1021
|
+
var _a, _b, _c;
|
|
1022
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mediaControllerUploadPublicFinalize(uploadFinalizeMediaRequestDTO, options);
|
|
1023
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1024
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MediaApi.mediaControllerUploadPublicFinalize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1025
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1026
|
+
});
|
|
1027
|
+
},
|
|
1028
|
+
/**
|
|
1029
|
+
*
|
|
1030
|
+
* @summary Upload public media
|
|
1031
|
+
* @param {UploadInitiateMediaRequestDTO} uploadInitiateMediaRequestDTO
|
|
1032
|
+
* @param {*} [options] Override http request option.
|
|
1033
|
+
* @throws {RequiredError}
|
|
1034
|
+
*/
|
|
1035
|
+
mediaControllerUploadPublicInitiate(uploadInitiateMediaRequestDTO, options) {
|
|
1036
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1037
|
+
var _a, _b, _c;
|
|
1038
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mediaControllerUploadPublicInitiate(uploadInitiateMediaRequestDTO, options);
|
|
1039
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1040
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MediaApi.mediaControllerUploadPublicInitiate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1041
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1042
|
+
});
|
|
1043
|
+
},
|
|
1044
|
+
};
|
|
1045
|
+
};
|
|
1046
|
+
exports.MediaApiFp = MediaApiFp;
|
|
1047
|
+
/**
|
|
1048
|
+
* MediaApi - factory interface
|
|
1049
|
+
* @export
|
|
1050
|
+
*/
|
|
1051
|
+
const MediaApiFactory = function (configuration, basePath, axios) {
|
|
1052
|
+
const localVarFp = (0, exports.MediaApiFp)(configuration);
|
|
1053
|
+
return {
|
|
1054
|
+
/**
|
|
1055
|
+
*
|
|
1056
|
+
* @summary Finalize media
|
|
1057
|
+
* @param {UploadFinalizeMediaRequestDTO} uploadFinalizeMediaRequestDTO
|
|
1058
|
+
* @param {*} [options] Override http request option.
|
|
1059
|
+
* @throws {RequiredError}
|
|
1060
|
+
*/
|
|
1061
|
+
mediaControllerUploadFinalize(uploadFinalizeMediaRequestDTO, options) {
|
|
1062
|
+
return localVarFp.mediaControllerUploadFinalize(uploadFinalizeMediaRequestDTO, options).then((request) => request(axios, basePath));
|
|
1063
|
+
},
|
|
1064
|
+
/**
|
|
1065
|
+
*
|
|
1066
|
+
* @summary Upload media
|
|
1067
|
+
* @param {UploadInitiateMediaRequestDTO} uploadInitiateMediaRequestDTO
|
|
1068
|
+
* @param {*} [options] Override http request option.
|
|
1069
|
+
* @throws {RequiredError}
|
|
1070
|
+
*/
|
|
1071
|
+
mediaControllerUploadInitiate(uploadInitiateMediaRequestDTO, options) {
|
|
1072
|
+
return localVarFp.mediaControllerUploadInitiate(uploadInitiateMediaRequestDTO, options).then((request) => request(axios, basePath));
|
|
1073
|
+
},
|
|
1074
|
+
/**
|
|
1075
|
+
*
|
|
1076
|
+
* @summary Finalize public media
|
|
1077
|
+
* @param {UploadFinalizeMediaRequestDTO} uploadFinalizeMediaRequestDTO
|
|
1078
|
+
* @param {*} [options] Override http request option.
|
|
1079
|
+
* @throws {RequiredError}
|
|
1080
|
+
*/
|
|
1081
|
+
mediaControllerUploadPublicFinalize(uploadFinalizeMediaRequestDTO, options) {
|
|
1082
|
+
return localVarFp.mediaControllerUploadPublicFinalize(uploadFinalizeMediaRequestDTO, options).then((request) => request(axios, basePath));
|
|
1083
|
+
},
|
|
1084
|
+
/**
|
|
1085
|
+
*
|
|
1086
|
+
* @summary Upload public media
|
|
1087
|
+
* @param {UploadInitiateMediaRequestDTO} uploadInitiateMediaRequestDTO
|
|
1088
|
+
* @param {*} [options] Override http request option.
|
|
1089
|
+
* @throws {RequiredError}
|
|
1090
|
+
*/
|
|
1091
|
+
mediaControllerUploadPublicInitiate(uploadInitiateMediaRequestDTO, options) {
|
|
1092
|
+
return localVarFp.mediaControllerUploadPublicInitiate(uploadInitiateMediaRequestDTO, options).then((request) => request(axios, basePath));
|
|
1093
|
+
},
|
|
1094
|
+
};
|
|
1095
|
+
};
|
|
1096
|
+
exports.MediaApiFactory = MediaApiFactory;
|
|
1097
|
+
/**
|
|
1098
|
+
* MediaApi - object-oriented interface
|
|
1099
|
+
* @export
|
|
1100
|
+
* @class MediaApi
|
|
1101
|
+
* @extends {BaseAPI}
|
|
1102
|
+
*/
|
|
1103
|
+
class MediaApi extends base_1.BaseAPI {
|
|
1104
|
+
/**
|
|
1105
|
+
*
|
|
1106
|
+
* @summary Finalize media
|
|
1107
|
+
* @param {UploadFinalizeMediaRequestDTO} uploadFinalizeMediaRequestDTO
|
|
1108
|
+
* @param {*} [options] Override http request option.
|
|
1109
|
+
* @throws {RequiredError}
|
|
1110
|
+
* @memberof MediaApi
|
|
1111
|
+
*/
|
|
1112
|
+
mediaControllerUploadFinalize(uploadFinalizeMediaRequestDTO, options) {
|
|
1113
|
+
return (0, exports.MediaApiFp)(this.configuration).mediaControllerUploadFinalize(uploadFinalizeMediaRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
1114
|
+
}
|
|
1115
|
+
/**
|
|
1116
|
+
*
|
|
1117
|
+
* @summary Upload media
|
|
1118
|
+
* @param {UploadInitiateMediaRequestDTO} uploadInitiateMediaRequestDTO
|
|
1119
|
+
* @param {*} [options] Override http request option.
|
|
1120
|
+
* @throws {RequiredError}
|
|
1121
|
+
* @memberof MediaApi
|
|
1122
|
+
*/
|
|
1123
|
+
mediaControllerUploadInitiate(uploadInitiateMediaRequestDTO, options) {
|
|
1124
|
+
return (0, exports.MediaApiFp)(this.configuration).mediaControllerUploadInitiate(uploadInitiateMediaRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
1125
|
+
}
|
|
1126
|
+
/**
|
|
1127
|
+
*
|
|
1128
|
+
* @summary Finalize public media
|
|
1129
|
+
* @param {UploadFinalizeMediaRequestDTO} uploadFinalizeMediaRequestDTO
|
|
1130
|
+
* @param {*} [options] Override http request option.
|
|
1131
|
+
* @throws {RequiredError}
|
|
1132
|
+
* @memberof MediaApi
|
|
1133
|
+
*/
|
|
1134
|
+
mediaControllerUploadPublicFinalize(uploadFinalizeMediaRequestDTO, options) {
|
|
1135
|
+
return (0, exports.MediaApiFp)(this.configuration).mediaControllerUploadPublicFinalize(uploadFinalizeMediaRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
*
|
|
1139
|
+
* @summary Upload public media
|
|
1140
|
+
* @param {UploadInitiateMediaRequestDTO} uploadInitiateMediaRequestDTO
|
|
1141
|
+
* @param {*} [options] Override http request option.
|
|
1142
|
+
* @throws {RequiredError}
|
|
1143
|
+
* @memberof MediaApi
|
|
1144
|
+
*/
|
|
1145
|
+
mediaControllerUploadPublicInitiate(uploadInitiateMediaRequestDTO, options) {
|
|
1146
|
+
return (0, exports.MediaApiFp)(this.configuration).mediaControllerUploadPublicInitiate(uploadInitiateMediaRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
exports.MediaApi = MediaApi;
|
|
1150
|
+
/**
|
|
1151
|
+
* ProjectApi - axios parameter creator
|
|
1152
|
+
* @export
|
|
1153
|
+
*/
|
|
1154
|
+
const ProjectApiAxiosParamCreator = function (configuration) {
|
|
1155
|
+
return {
|
|
1156
|
+
/**
|
|
1157
|
+
*
|
|
1158
|
+
* @summary Create New Machine Agent
|
|
1159
|
+
* @param {CreateMachineAgentDto} createMachineAgentDto
|
|
1160
|
+
* @param {*} [options] Override http request option.
|
|
1161
|
+
* @throws {RequiredError}
|
|
1162
|
+
*/
|
|
1163
|
+
machineAgentControllerCreateMachineAgent: (createMachineAgentDto_1, ...args_1) => __awaiter(this, [createMachineAgentDto_1, ...args_1], void 0, function* (createMachineAgentDto, options = {}) {
|
|
1164
|
+
// verify required parameter 'createMachineAgentDto' is not null or undefined
|
|
1165
|
+
(0, common_1.assertParamExists)('machineAgentControllerCreateMachineAgent', 'createMachineAgentDto', createMachineAgentDto);
|
|
1166
|
+
const localVarPath = `/project/agent`;
|
|
1167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1168
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1169
|
+
let baseOptions;
|
|
1170
|
+
if (configuration) {
|
|
1171
|
+
baseOptions = configuration.baseOptions;
|
|
1172
|
+
}
|
|
1173
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1174
|
+
const localVarHeaderParameter = {};
|
|
1175
|
+
const localVarQueryParameter = {};
|
|
1176
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1177
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1178
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1179
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1180
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createMachineAgentDto, localVarRequestOptions, configuration);
|
|
1181
|
+
return {
|
|
1182
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1183
|
+
options: localVarRequestOptions,
|
|
1184
|
+
};
|
|
1185
|
+
}),
|
|
1186
|
+
/**
|
|
1187
|
+
*
|
|
1188
|
+
* @summary Delete machine agent
|
|
1189
|
+
* @param {Array<string>} requestBody
|
|
1190
|
+
* @param {*} [options] Override http request option.
|
|
1191
|
+
* @throws {RequiredError}
|
|
1192
|
+
*/
|
|
1193
|
+
machineAgentControllerDeleteMachineAgents: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
1194
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
1195
|
+
(0, common_1.assertParamExists)('machineAgentControllerDeleteMachineAgents', 'requestBody', requestBody);
|
|
1196
|
+
const localVarPath = `/project/agent`;
|
|
1197
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1198
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1199
|
+
let baseOptions;
|
|
1200
|
+
if (configuration) {
|
|
1201
|
+
baseOptions = configuration.baseOptions;
|
|
1202
|
+
}
|
|
1203
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1204
|
+
const localVarHeaderParameter = {};
|
|
1205
|
+
const localVarQueryParameter = {};
|
|
1206
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1207
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1208
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1209
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1210
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
1211
|
+
return {
|
|
1212
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1213
|
+
options: localVarRequestOptions,
|
|
1214
|
+
};
|
|
1215
|
+
}),
|
|
1216
|
+
/**
|
|
1217
|
+
*
|
|
1218
|
+
* @summary Get all machine agent with count
|
|
1219
|
+
* @param {string} projectId
|
|
1220
|
+
* @param {number} page
|
|
1221
|
+
* @param {number} limit
|
|
1222
|
+
* @param {*} [options] Override http request option.
|
|
1223
|
+
* @throws {RequiredError}
|
|
1224
|
+
*/
|
|
1225
|
+
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 = {}) {
|
|
1226
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1227
|
+
(0, common_1.assertParamExists)('machineAgentControllerGetMachineAgentByProjectId', 'projectId', projectId);
|
|
1228
|
+
// verify required parameter 'page' is not null or undefined
|
|
1229
|
+
(0, common_1.assertParamExists)('machineAgentControllerGetMachineAgentByProjectId', 'page', page);
|
|
1230
|
+
// verify required parameter 'limit' is not null or undefined
|
|
1231
|
+
(0, common_1.assertParamExists)('machineAgentControllerGetMachineAgentByProjectId', 'limit', limit);
|
|
1232
|
+
const localVarPath = `/project/agent/{projectId}`
|
|
1233
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
1234
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1235
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1236
|
+
let baseOptions;
|
|
1237
|
+
if (configuration) {
|
|
1238
|
+
baseOptions = configuration.baseOptions;
|
|
1239
|
+
}
|
|
1240
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1241
|
+
const localVarHeaderParameter = {};
|
|
1242
|
+
const localVarQueryParameter = {};
|
|
1243
|
+
if (page !== undefined) {
|
|
1244
|
+
localVarQueryParameter['page'] = page;
|
|
1245
|
+
}
|
|
1246
|
+
if (limit !== undefined) {
|
|
1247
|
+
localVarQueryParameter['limit'] = limit;
|
|
1248
|
+
}
|
|
1249
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1250
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1251
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1252
|
+
return {
|
|
1253
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1254
|
+
options: localVarRequestOptions,
|
|
1255
|
+
};
|
|
1256
|
+
}),
|
|
1257
|
+
/**
|
|
1258
|
+
*
|
|
1259
|
+
* @summary Update machine agent by id
|
|
1260
|
+
* @param {*} [options] Override http request option.
|
|
1261
|
+
* @throws {RequiredError}
|
|
1262
|
+
*/
|
|
1263
|
+
machineAgentControllerUpdateMachineAgent: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1264
|
+
const localVarPath = `/project/agent`;
|
|
1265
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1266
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1267
|
+
let baseOptions;
|
|
1268
|
+
if (configuration) {
|
|
1269
|
+
baseOptions = configuration.baseOptions;
|
|
1270
|
+
}
|
|
1271
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1272
|
+
const localVarHeaderParameter = {};
|
|
1273
|
+
const localVarQueryParameter = {};
|
|
1274
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1275
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1276
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1277
|
+
return {
|
|
1278
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1279
|
+
options: localVarRequestOptions,
|
|
1280
|
+
};
|
|
1281
|
+
}),
|
|
1282
|
+
/**
|
|
1283
|
+
*
|
|
1284
|
+
* @summary Add new evaluation test.
|
|
1285
|
+
* @param {*} [options] Override http request option.
|
|
1286
|
+
* @throws {RequiredError}
|
|
1287
|
+
*/
|
|
1288
|
+
machineModelControllerAddEvaluationTest: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1289
|
+
const localVarPath = `/project/evaluationTest`;
|
|
1290
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1291
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1292
|
+
let baseOptions;
|
|
1293
|
+
if (configuration) {
|
|
1294
|
+
baseOptions = configuration.baseOptions;
|
|
1295
|
+
}
|
|
1296
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1297
|
+
const localVarHeaderParameter = {};
|
|
1298
|
+
const localVarQueryParameter = {};
|
|
1299
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1300
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1301
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1302
|
+
return {
|
|
1303
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1304
|
+
options: localVarRequestOptions,
|
|
1305
|
+
};
|
|
1306
|
+
}),
|
|
1307
|
+
/**
|
|
1308
|
+
*
|
|
1309
|
+
* @summary Create New Machine Model
|
|
1310
|
+
* @param {object} body
|
|
1311
|
+
* @param {*} [options] Override http request option.
|
|
1312
|
+
* @throws {RequiredError}
|
|
1313
|
+
*/
|
|
1314
|
+
machineModelControllerCreateMachineModel: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1315
|
+
// verify required parameter 'body' is not null or undefined
|
|
1316
|
+
(0, common_1.assertParamExists)('machineModelControllerCreateMachineModel', 'body', body);
|
|
1317
|
+
const localVarPath = `/project/machineModel`;
|
|
1318
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1319
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1320
|
+
let baseOptions;
|
|
1321
|
+
if (configuration) {
|
|
1322
|
+
baseOptions = configuration.baseOptions;
|
|
1323
|
+
}
|
|
1324
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1325
|
+
const localVarHeaderParameter = {};
|
|
1326
|
+
const localVarQueryParameter = {};
|
|
1327
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1328
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1330
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1331
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1332
|
+
return {
|
|
1333
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1334
|
+
options: localVarRequestOptions,
|
|
1335
|
+
};
|
|
1336
|
+
}),
|
|
1337
|
+
/**
|
|
1338
|
+
*
|
|
1339
|
+
* @summary Create webhook
|
|
1340
|
+
* @param {*} [options] Override http request option.
|
|
1341
|
+
* @throws {RequiredError}
|
|
1342
|
+
*/
|
|
1343
|
+
machineModelControllerCreateWebhook: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1344
|
+
const localVarPath = `/project/webhook`;
|
|
1345
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1346
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1347
|
+
let baseOptions;
|
|
1348
|
+
if (configuration) {
|
|
1349
|
+
baseOptions = configuration.baseOptions;
|
|
1350
|
+
}
|
|
1351
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1352
|
+
const localVarHeaderParameter = {};
|
|
1353
|
+
const localVarQueryParameter = {};
|
|
1354
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1355
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1356
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1357
|
+
return {
|
|
1358
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1359
|
+
options: localVarRequestOptions,
|
|
1360
|
+
};
|
|
1361
|
+
}),
|
|
1362
|
+
/**
|
|
1363
|
+
*
|
|
1364
|
+
* @summary Delete evaluation
|
|
1365
|
+
* @param {*} [options] Override http request option.
|
|
1366
|
+
* @throws {RequiredError}
|
|
1367
|
+
*/
|
|
1368
|
+
machineModelControllerDeleteEvaluation: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1369
|
+
const localVarPath = `/project/evaluationTest`;
|
|
1370
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1371
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1372
|
+
let baseOptions;
|
|
1373
|
+
if (configuration) {
|
|
1374
|
+
baseOptions = configuration.baseOptions;
|
|
1375
|
+
}
|
|
1376
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1377
|
+
const localVarHeaderParameter = {};
|
|
1378
|
+
const localVarQueryParameter = {};
|
|
1379
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1380
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1381
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1382
|
+
return {
|
|
1383
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1384
|
+
options: localVarRequestOptions,
|
|
1385
|
+
};
|
|
1386
|
+
}),
|
|
1387
|
+
/**
|
|
1388
|
+
*
|
|
1389
|
+
* @summary Create New Machine Model
|
|
1390
|
+
* @param {Array<string>} requestBody
|
|
1391
|
+
* @param {*} [options] Override http request option.
|
|
1392
|
+
* @throws {RequiredError}
|
|
1393
|
+
*/
|
|
1394
|
+
machineModelControllerDeleteMachineModels: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
1395
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
1396
|
+
(0, common_1.assertParamExists)('machineModelControllerDeleteMachineModels', 'requestBody', requestBody);
|
|
1397
|
+
const localVarPath = `/project/machineModel`;
|
|
1398
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1399
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1400
|
+
let baseOptions;
|
|
1401
|
+
if (configuration) {
|
|
1402
|
+
baseOptions = configuration.baseOptions;
|
|
1403
|
+
}
|
|
1404
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1405
|
+
const localVarHeaderParameter = {};
|
|
1406
|
+
const localVarQueryParameter = {};
|
|
1407
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1408
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1409
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1410
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1411
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
1412
|
+
return {
|
|
1413
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1414
|
+
options: localVarRequestOptions,
|
|
1415
|
+
};
|
|
1416
|
+
}),
|
|
1417
|
+
/**
|
|
1418
|
+
*
|
|
1419
|
+
* @summary Delete webhook
|
|
1420
|
+
* @param {string} modelId
|
|
1421
|
+
* @param {*} [options] Override http request option.
|
|
1422
|
+
* @throws {RequiredError}
|
|
1423
|
+
*/
|
|
1424
|
+
machineModelControllerDeleteWebhook: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
1425
|
+
// verify required parameter 'modelId' is not null or undefined
|
|
1426
|
+
(0, common_1.assertParamExists)('machineModelControllerDeleteWebhook', 'modelId', modelId);
|
|
1427
|
+
const localVarPath = `/project/webhook/{modelId}`
|
|
1428
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1429
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1430
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1431
|
+
let baseOptions;
|
|
1432
|
+
if (configuration) {
|
|
1433
|
+
baseOptions = configuration.baseOptions;
|
|
1434
|
+
}
|
|
1435
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1436
|
+
const localVarHeaderParameter = {};
|
|
1437
|
+
const localVarQueryParameter = {};
|
|
1438
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1439
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1440
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1441
|
+
return {
|
|
1442
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1443
|
+
options: localVarRequestOptions,
|
|
1444
|
+
};
|
|
1445
|
+
}),
|
|
1446
|
+
/**
|
|
1447
|
+
*
|
|
1448
|
+
* @summary Execute evaluation test.
|
|
1449
|
+
* @param {*} [options] Override http request option.
|
|
1450
|
+
* @throws {RequiredError}
|
|
1451
|
+
*/
|
|
1452
|
+
machineModelControllerExecuteEvaluation: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1453
|
+
const localVarPath = `/project/evaluationTest`;
|
|
1454
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1455
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1456
|
+
let baseOptions;
|
|
1457
|
+
if (configuration) {
|
|
1458
|
+
baseOptions = configuration.baseOptions;
|
|
1459
|
+
}
|
|
1460
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1461
|
+
const localVarHeaderParameter = {};
|
|
1462
|
+
const localVarQueryParameter = {};
|
|
1463
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1464
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1465
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1466
|
+
return {
|
|
1467
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1468
|
+
options: localVarRequestOptions,
|
|
1469
|
+
};
|
|
1470
|
+
}),
|
|
1471
|
+
/**
|
|
1472
|
+
*
|
|
1473
|
+
* @summary Fetch Swagger JSON
|
|
1474
|
+
* @param {string} modelId
|
|
1475
|
+
* @param {*} [options] Override http request option.
|
|
1476
|
+
* @throws {RequiredError}
|
|
1477
|
+
*/
|
|
1478
|
+
machineModelControllerFetchSwaggerJSON: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
1479
|
+
// verify required parameter 'modelId' is not null or undefined
|
|
1480
|
+
(0, common_1.assertParamExists)('machineModelControllerFetchSwaggerJSON', 'modelId', modelId);
|
|
1481
|
+
const localVarPath = `/project/SwaggerJSON/{modelId}`
|
|
1482
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1483
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1484
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1485
|
+
let baseOptions;
|
|
1486
|
+
if (configuration) {
|
|
1487
|
+
baseOptions = configuration.baseOptions;
|
|
1488
|
+
}
|
|
1489
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1490
|
+
const localVarHeaderParameter = {};
|
|
1491
|
+
const localVarQueryParameter = {};
|
|
1492
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1493
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1494
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1495
|
+
return {
|
|
1496
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1497
|
+
options: localVarRequestOptions,
|
|
1498
|
+
};
|
|
1499
|
+
}),
|
|
1500
|
+
/**
|
|
1501
|
+
*
|
|
1502
|
+
* @summary Fetch webhook
|
|
1503
|
+
* @param {string} modelId
|
|
1504
|
+
* @param {boolean} isAgentWebhook
|
|
1505
|
+
* @param {*} [options] Override http request option.
|
|
1506
|
+
* @throws {RequiredError}
|
|
1507
|
+
*/
|
|
1508
|
+
machineModelControllerFetchWebhook: (modelId_1, isAgentWebhook_1, ...args_1) => __awaiter(this, [modelId_1, isAgentWebhook_1, ...args_1], void 0, function* (modelId, isAgentWebhook, options = {}) {
|
|
1509
|
+
// verify required parameter 'modelId' is not null or undefined
|
|
1510
|
+
(0, common_1.assertParamExists)('machineModelControllerFetchWebhook', 'modelId', modelId);
|
|
1511
|
+
// verify required parameter 'isAgentWebhook' is not null or undefined
|
|
1512
|
+
(0, common_1.assertParamExists)('machineModelControllerFetchWebhook', 'isAgentWebhook', isAgentWebhook);
|
|
1513
|
+
const localVarPath = `/project/webhook/{modelId}`
|
|
1514
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1515
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1516
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1517
|
+
let baseOptions;
|
|
1518
|
+
if (configuration) {
|
|
1519
|
+
baseOptions = configuration.baseOptions;
|
|
1520
|
+
}
|
|
1521
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1522
|
+
const localVarHeaderParameter = {};
|
|
1523
|
+
const localVarQueryParameter = {};
|
|
1524
|
+
if (isAgentWebhook !== undefined) {
|
|
1525
|
+
localVarQueryParameter['isAgentWebhook'] = isAgentWebhook;
|
|
1526
|
+
}
|
|
1527
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1528
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1529
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1530
|
+
return {
|
|
1531
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1532
|
+
options: localVarRequestOptions,
|
|
1533
|
+
};
|
|
1534
|
+
}),
|
|
1535
|
+
/**
|
|
1536
|
+
*
|
|
1537
|
+
* @summary Fetch evaluation test.
|
|
1538
|
+
* @param {string} modelId
|
|
1539
|
+
* @param {*} [options] Override http request option.
|
|
1540
|
+
* @throws {RequiredError}
|
|
1541
|
+
*/
|
|
1542
|
+
machineModelControllerGetEvaluationTest: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
1543
|
+
// verify required parameter 'modelId' is not null or undefined
|
|
1544
|
+
(0, common_1.assertParamExists)('machineModelControllerGetEvaluationTest', 'modelId', modelId);
|
|
1545
|
+
const localVarPath = `/project/evaluationTest/{modelId}`
|
|
1546
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1547
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1548
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1549
|
+
let baseOptions;
|
|
1550
|
+
if (configuration) {
|
|
1551
|
+
baseOptions = configuration.baseOptions;
|
|
1552
|
+
}
|
|
1553
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1554
|
+
const localVarHeaderParameter = {};
|
|
1555
|
+
const localVarQueryParameter = {};
|
|
1556
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1557
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1558
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1559
|
+
return {
|
|
1560
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1561
|
+
options: localVarRequestOptions,
|
|
1562
|
+
};
|
|
1563
|
+
}),
|
|
1564
|
+
/**
|
|
1565
|
+
*
|
|
1566
|
+
* @summary Fetch Swagger JSON
|
|
1567
|
+
* @param {string} modelId
|
|
1568
|
+
* @param {string} queryId
|
|
1569
|
+
* @param {*} [options] Override http request option.
|
|
1570
|
+
* @throws {RequiredError}
|
|
1571
|
+
*/
|
|
1572
|
+
machineModelControllerGetEventLogsByQueryId: (modelId_1, queryId_1, ...args_1) => __awaiter(this, [modelId_1, queryId_1, ...args_1], void 0, function* (modelId, queryId, options = {}) {
|
|
1573
|
+
// verify required parameter 'modelId' is not null or undefined
|
|
1574
|
+
(0, common_1.assertParamExists)('machineModelControllerGetEventLogsByQueryId', 'modelId', modelId);
|
|
1575
|
+
// verify required parameter 'queryId' is not null or undefined
|
|
1576
|
+
(0, common_1.assertParamExists)('machineModelControllerGetEventLogsByQueryId', 'queryId', queryId);
|
|
1577
|
+
const localVarPath = `/project/queryData/{modelId}`
|
|
1578
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1579
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1580
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1581
|
+
let baseOptions;
|
|
1582
|
+
if (configuration) {
|
|
1583
|
+
baseOptions = configuration.baseOptions;
|
|
1584
|
+
}
|
|
1585
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1586
|
+
const localVarHeaderParameter = {};
|
|
1587
|
+
const localVarQueryParameter = {};
|
|
1588
|
+
if (queryId !== undefined) {
|
|
1589
|
+
localVarQueryParameter['queryId'] = queryId;
|
|
1590
|
+
}
|
|
1591
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1592
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1593
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1594
|
+
return {
|
|
1595
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1596
|
+
options: localVarRequestOptions,
|
|
1597
|
+
};
|
|
1598
|
+
}),
|
|
1599
|
+
/**
|
|
1600
|
+
*
|
|
1601
|
+
* @summary Get all machine models with count
|
|
1602
|
+
* @param {string} projectId
|
|
1603
|
+
* @param {number} page
|
|
1604
|
+
* @param {number} limit
|
|
1605
|
+
* @param {*} [options] Override http request option.
|
|
1606
|
+
* @throws {RequiredError}
|
|
1607
|
+
*/
|
|
1608
|
+
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 = {}) {
|
|
1609
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1610
|
+
(0, common_1.assertParamExists)('machineModelControllerGetMachineInstanceByProjectId', 'projectId', projectId);
|
|
1611
|
+
// verify required parameter 'page' is not null or undefined
|
|
1612
|
+
(0, common_1.assertParamExists)('machineModelControllerGetMachineInstanceByProjectId', 'page', page);
|
|
1613
|
+
// verify required parameter 'limit' is not null or undefined
|
|
1614
|
+
(0, common_1.assertParamExists)('machineModelControllerGetMachineInstanceByProjectId', 'limit', limit);
|
|
1615
|
+
const localVarPath = `/project/machineModel/{projectId}`
|
|
1616
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
1617
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1618
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1619
|
+
let baseOptions;
|
|
1620
|
+
if (configuration) {
|
|
1621
|
+
baseOptions = configuration.baseOptions;
|
|
1622
|
+
}
|
|
1623
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1624
|
+
const localVarHeaderParameter = {};
|
|
1625
|
+
const localVarQueryParameter = {};
|
|
1626
|
+
if (page !== undefined) {
|
|
1627
|
+
localVarQueryParameter['page'] = page;
|
|
1628
|
+
}
|
|
1629
|
+
if (limit !== undefined) {
|
|
1630
|
+
localVarQueryParameter['limit'] = limit;
|
|
1631
|
+
}
|
|
1632
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1633
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1634
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1635
|
+
return {
|
|
1636
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1637
|
+
options: localVarRequestOptions,
|
|
1638
|
+
};
|
|
1639
|
+
}),
|
|
1640
|
+
/**
|
|
1641
|
+
*
|
|
1642
|
+
* @summary Run Query
|
|
1643
|
+
* @param {*} [options] Override http request option.
|
|
1644
|
+
* @throws {RequiredError}
|
|
1645
|
+
*/
|
|
1646
|
+
machineModelControllerRunQuery: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1647
|
+
const localVarPath = `/project/runQuery`;
|
|
1648
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1649
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1650
|
+
let baseOptions;
|
|
1651
|
+
if (configuration) {
|
|
1652
|
+
baseOptions = configuration.baseOptions;
|
|
1653
|
+
}
|
|
1654
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1655
|
+
const localVarHeaderParameter = {};
|
|
1656
|
+
const localVarQueryParameter = {};
|
|
1657
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1658
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1659
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1660
|
+
return {
|
|
1661
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1662
|
+
options: localVarRequestOptions,
|
|
1663
|
+
};
|
|
1664
|
+
}),
|
|
1665
|
+
/**
|
|
1666
|
+
*
|
|
1667
|
+
* @summary Update evaluation
|
|
1668
|
+
* @param {*} [options] Override http request option.
|
|
1669
|
+
* @throws {RequiredError}
|
|
1670
|
+
*/
|
|
1671
|
+
machineModelControllerUpdateEvaluation: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1672
|
+
const localVarPath = `/project/evaluationTestUpdate`;
|
|
1673
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1674
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1675
|
+
let baseOptions;
|
|
1676
|
+
if (configuration) {
|
|
1677
|
+
baseOptions = configuration.baseOptions;
|
|
1678
|
+
}
|
|
1679
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1680
|
+
const localVarHeaderParameter = {};
|
|
1681
|
+
const localVarQueryParameter = {};
|
|
1682
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1683
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1684
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1685
|
+
return {
|
|
1686
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1687
|
+
options: localVarRequestOptions,
|
|
1688
|
+
};
|
|
1689
|
+
}),
|
|
1690
|
+
/**
|
|
1691
|
+
*
|
|
1692
|
+
* @summary Update machine model by id
|
|
1693
|
+
* @param {*} [options] Override http request option.
|
|
1694
|
+
* @throws {RequiredError}
|
|
1695
|
+
*/
|
|
1696
|
+
machineModelControllerUpdateMachineModel: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1697
|
+
const localVarPath = `/project/machineModel`;
|
|
1698
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1699
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1700
|
+
let baseOptions;
|
|
1701
|
+
if (configuration) {
|
|
1702
|
+
baseOptions = configuration.baseOptions;
|
|
1703
|
+
}
|
|
1704
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1705
|
+
const localVarHeaderParameter = {};
|
|
1706
|
+
const localVarQueryParameter = {};
|
|
1707
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1708
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1709
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1710
|
+
return {
|
|
1711
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1712
|
+
options: localVarRequestOptions,
|
|
1713
|
+
};
|
|
1714
|
+
}),
|
|
1715
|
+
/**
|
|
1716
|
+
*
|
|
1717
|
+
* @summary Update webhook
|
|
1718
|
+
* @param {*} [options] Override http request option.
|
|
1719
|
+
* @throws {RequiredError}
|
|
1720
|
+
*/
|
|
1721
|
+
machineModelControllerUpdateWebhook: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1722
|
+
const localVarPath = `/project/webhook`;
|
|
1723
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1724
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1725
|
+
let baseOptions;
|
|
1726
|
+
if (configuration) {
|
|
1727
|
+
baseOptions = configuration.baseOptions;
|
|
1728
|
+
}
|
|
1729
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1730
|
+
const localVarHeaderParameter = {};
|
|
1731
|
+
const localVarQueryParameter = {};
|
|
1732
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1733
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1734
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1735
|
+
return {
|
|
1736
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1737
|
+
options: localVarRequestOptions,
|
|
1738
|
+
};
|
|
1739
|
+
}),
|
|
1740
|
+
/**
|
|
1741
|
+
*
|
|
1742
|
+
* @summary Add team member to project
|
|
1743
|
+
* @param {string} id
|
|
1744
|
+
* @param {AddProjectMemberDto} addProjectMemberDto
|
|
1745
|
+
* @param {*} [options] Override http request option.
|
|
1746
|
+
* @throws {RequiredError}
|
|
1747
|
+
*/
|
|
1748
|
+
projectControllerAddTeamMemberToProject: (id_1, addProjectMemberDto_1, ...args_1) => __awaiter(this, [id_1, addProjectMemberDto_1, ...args_1], void 0, function* (id, addProjectMemberDto, options = {}) {
|
|
1749
|
+
// verify required parameter 'id' is not null or undefined
|
|
1750
|
+
(0, common_1.assertParamExists)('projectControllerAddTeamMemberToProject', 'id', id);
|
|
1751
|
+
// verify required parameter 'addProjectMemberDto' is not null or undefined
|
|
1752
|
+
(0, common_1.assertParamExists)('projectControllerAddTeamMemberToProject', 'addProjectMemberDto', addProjectMemberDto);
|
|
1753
|
+
const localVarPath = `/project/{id}/team/add`
|
|
1754
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1755
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1756
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1757
|
+
let baseOptions;
|
|
1758
|
+
if (configuration) {
|
|
1759
|
+
baseOptions = configuration.baseOptions;
|
|
1760
|
+
}
|
|
1761
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1762
|
+
const localVarHeaderParameter = {};
|
|
1763
|
+
const localVarQueryParameter = {};
|
|
1764
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1765
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1766
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1767
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1768
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addProjectMemberDto, localVarRequestOptions, configuration);
|
|
1769
|
+
return {
|
|
1770
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1771
|
+
options: localVarRequestOptions,
|
|
1772
|
+
};
|
|
1773
|
+
}),
|
|
1774
|
+
/**
|
|
1775
|
+
*
|
|
1776
|
+
* @summary Create Machine Instance
|
|
1777
|
+
* @param {string} projectId
|
|
1778
|
+
* @param {*} [options] Override http request option.
|
|
1779
|
+
* @throws {RequiredError}
|
|
1780
|
+
*/
|
|
1781
|
+
projectControllerCreateMachineInstance: (projectId_1, ...args_1) => __awaiter(this, [projectId_1, ...args_1], void 0, function* (projectId, options = {}) {
|
|
1782
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1783
|
+
(0, common_1.assertParamExists)('projectControllerCreateMachineInstance', 'projectId', projectId);
|
|
1784
|
+
const localVarPath = `/project/{projectId}/machineInstance`
|
|
1785
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
1786
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1787
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1788
|
+
let baseOptions;
|
|
1789
|
+
if (configuration) {
|
|
1790
|
+
baseOptions = configuration.baseOptions;
|
|
1791
|
+
}
|
|
1792
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1793
|
+
const localVarHeaderParameter = {};
|
|
1794
|
+
const localVarQueryParameter = {};
|
|
1795
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1796
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1797
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1798
|
+
return {
|
|
1799
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1800
|
+
options: localVarRequestOptions,
|
|
1801
|
+
};
|
|
1802
|
+
}),
|
|
1803
|
+
/**
|
|
1804
|
+
*
|
|
1805
|
+
* @summary Create Project
|
|
1806
|
+
* @param {CreateProjectDTO} createProjectDTO
|
|
1807
|
+
* @param {*} [options] Override http request option.
|
|
1808
|
+
* @throws {RequiredError}
|
|
1809
|
+
*/
|
|
1810
|
+
projectControllerCreateProject: (createProjectDTO_1, ...args_1) => __awaiter(this, [createProjectDTO_1, ...args_1], void 0, function* (createProjectDTO, options = {}) {
|
|
1811
|
+
// verify required parameter 'createProjectDTO' is not null or undefined
|
|
1812
|
+
(0, common_1.assertParamExists)('projectControllerCreateProject', 'createProjectDTO', createProjectDTO);
|
|
1813
|
+
const localVarPath = `/project/create`;
|
|
1814
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1815
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1816
|
+
let baseOptions;
|
|
1817
|
+
if (configuration) {
|
|
1818
|
+
baseOptions = configuration.baseOptions;
|
|
1819
|
+
}
|
|
1820
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1821
|
+
const localVarHeaderParameter = {};
|
|
1822
|
+
const localVarQueryParameter = {};
|
|
1823
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1824
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1825
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1826
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1827
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createProjectDTO, localVarRequestOptions, configuration);
|
|
1828
|
+
return {
|
|
1829
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1830
|
+
options: localVarRequestOptions,
|
|
1831
|
+
};
|
|
1832
|
+
}),
|
|
1833
|
+
/**
|
|
1834
|
+
*
|
|
1835
|
+
* @summary Create Project Role
|
|
1836
|
+
* @param {string} id
|
|
1837
|
+
* @param {CreateRoleDto} createRoleDto
|
|
1838
|
+
* @param {*} [options] Override http request option.
|
|
1839
|
+
* @throws {RequiredError}
|
|
1840
|
+
*/
|
|
1841
|
+
projectControllerCreateProjectRole: (id_1, createRoleDto_1, ...args_1) => __awaiter(this, [id_1, createRoleDto_1, ...args_1], void 0, function* (id, createRoleDto, options = {}) {
|
|
1842
|
+
// verify required parameter 'id' is not null or undefined
|
|
1843
|
+
(0, common_1.assertParamExists)('projectControllerCreateProjectRole', 'id', id);
|
|
1844
|
+
// verify required parameter 'createRoleDto' is not null or undefined
|
|
1845
|
+
(0, common_1.assertParamExists)('projectControllerCreateProjectRole', 'createRoleDto', createRoleDto);
|
|
1846
|
+
const localVarPath = `/project/{id}/role/create`
|
|
1847
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1848
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1849
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1850
|
+
let baseOptions;
|
|
1851
|
+
if (configuration) {
|
|
1852
|
+
baseOptions = configuration.baseOptions;
|
|
1853
|
+
}
|
|
1854
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1855
|
+
const localVarHeaderParameter = {};
|
|
1856
|
+
const localVarQueryParameter = {};
|
|
1857
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1858
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1859
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1860
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1861
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createRoleDto, localVarRequestOptions, configuration);
|
|
1862
|
+
return {
|
|
1863
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1864
|
+
options: localVarRequestOptions,
|
|
1865
|
+
};
|
|
1866
|
+
}),
|
|
1867
|
+
/**
|
|
1868
|
+
*
|
|
1869
|
+
* @summary Delete machine instances by ids
|
|
1870
|
+
* @param {string} projectId
|
|
1871
|
+
* @param {*} [options] Override http request option.
|
|
1872
|
+
* @throws {RequiredError}
|
|
1873
|
+
*/
|
|
1874
|
+
projectControllerDeleteMachineInstance: (projectId_1, ...args_1) => __awaiter(this, [projectId_1, ...args_1], void 0, function* (projectId, options = {}) {
|
|
1875
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1876
|
+
(0, common_1.assertParamExists)('projectControllerDeleteMachineInstance', 'projectId', projectId);
|
|
1877
|
+
const localVarPath = `/project/{projectId}/machineInstance`
|
|
1878
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
1879
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1880
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1881
|
+
let baseOptions;
|
|
1882
|
+
if (configuration) {
|
|
1883
|
+
baseOptions = configuration.baseOptions;
|
|
1884
|
+
}
|
|
1885
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1886
|
+
const localVarHeaderParameter = {};
|
|
1887
|
+
const localVarQueryParameter = {};
|
|
1888
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1889
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1890
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1891
|
+
return {
|
|
1892
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1893
|
+
options: localVarRequestOptions,
|
|
1894
|
+
};
|
|
1895
|
+
}),
|
|
1896
|
+
/**
|
|
1897
|
+
*
|
|
1898
|
+
* @summary Delete project by id
|
|
1899
|
+
* @param {string} id
|
|
1900
|
+
* @param {*} [options] Override http request option.
|
|
1901
|
+
* @throws {RequiredError}
|
|
1902
|
+
*/
|
|
1903
|
+
projectControllerDeleteProjectById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1904
|
+
// verify required parameter 'id' is not null or undefined
|
|
1905
|
+
(0, common_1.assertParamExists)('projectControllerDeleteProjectById', 'id', id);
|
|
1906
|
+
const localVarPath = `/project/{id}/delete`
|
|
1907
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1908
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1909
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1910
|
+
let baseOptions;
|
|
1911
|
+
if (configuration) {
|
|
1912
|
+
baseOptions = configuration.baseOptions;
|
|
1913
|
+
}
|
|
1914
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1915
|
+
const localVarHeaderParameter = {};
|
|
1916
|
+
const localVarQueryParameter = {};
|
|
1917
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1918
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1919
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1920
|
+
return {
|
|
1921
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1922
|
+
options: localVarRequestOptions,
|
|
1923
|
+
};
|
|
1924
|
+
}),
|
|
1925
|
+
/**
|
|
1926
|
+
*
|
|
1927
|
+
* @summary Delete Project Role
|
|
1928
|
+
* @param {string} id
|
|
1929
|
+
* @param {number} roleId
|
|
1930
|
+
* @param {*} [options] Override http request option.
|
|
1931
|
+
* @throws {RequiredError}
|
|
1932
|
+
*/
|
|
1933
|
+
projectControllerDeleteProjectRole: (id_1, roleId_1, ...args_1) => __awaiter(this, [id_1, roleId_1, ...args_1], void 0, function* (id, roleId, options = {}) {
|
|
1934
|
+
// verify required parameter 'id' is not null or undefined
|
|
1935
|
+
(0, common_1.assertParamExists)('projectControllerDeleteProjectRole', 'id', id);
|
|
1936
|
+
// verify required parameter 'roleId' is not null or undefined
|
|
1937
|
+
(0, common_1.assertParamExists)('projectControllerDeleteProjectRole', 'roleId', roleId);
|
|
1938
|
+
const localVarPath = `/project/{id}/role/{roleId}/delete`
|
|
1939
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
1940
|
+
.replace(`{${"roleId"}}`, encodeURIComponent(String(roleId)));
|
|
1941
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1942
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1943
|
+
let baseOptions;
|
|
1944
|
+
if (configuration) {
|
|
1945
|
+
baseOptions = configuration.baseOptions;
|
|
1946
|
+
}
|
|
1947
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1948
|
+
const localVarHeaderParameter = {};
|
|
1949
|
+
const localVarQueryParameter = {};
|
|
1950
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1951
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1952
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1953
|
+
return {
|
|
1954
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1955
|
+
options: localVarRequestOptions,
|
|
1956
|
+
};
|
|
1957
|
+
}),
|
|
1958
|
+
/**
|
|
1959
|
+
*
|
|
1960
|
+
* @summary Get all project roles
|
|
1961
|
+
* @param {string} id
|
|
1962
|
+
* @param {number} [page]
|
|
1963
|
+
* @param {number} [limit]
|
|
1964
|
+
* @param {string} [column]
|
|
1965
|
+
* @param {ProjectControllerGetAllProjectRolesDirectionEnum} [direction]
|
|
1966
|
+
* @param {*} [options] Override http request option.
|
|
1967
|
+
* @throws {RequiredError}
|
|
1968
|
+
*/
|
|
1969
|
+
projectControllerGetAllProjectRoles: (id_1, page_1, limit_1, column_1, direction_1, ...args_1) => __awaiter(this, [id_1, page_1, limit_1, column_1, direction_1, ...args_1], void 0, function* (id, page, limit, column, direction, options = {}) {
|
|
1970
|
+
// verify required parameter 'id' is not null or undefined
|
|
1971
|
+
(0, common_1.assertParamExists)('projectControllerGetAllProjectRoles', 'id', id);
|
|
1972
|
+
const localVarPath = `/project/{id}/role/all`
|
|
1973
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1974
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1975
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1976
|
+
let baseOptions;
|
|
1977
|
+
if (configuration) {
|
|
1978
|
+
baseOptions = configuration.baseOptions;
|
|
1979
|
+
}
|
|
1980
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1981
|
+
const localVarHeaderParameter = {};
|
|
1982
|
+
const localVarQueryParameter = {};
|
|
1983
|
+
if (page !== undefined) {
|
|
1984
|
+
localVarQueryParameter['page'] = page;
|
|
1985
|
+
}
|
|
1986
|
+
if (limit !== undefined) {
|
|
1987
|
+
localVarQueryParameter['limit'] = limit;
|
|
1988
|
+
}
|
|
1989
|
+
if (column !== undefined) {
|
|
1990
|
+
localVarQueryParameter['column'] = column;
|
|
1991
|
+
}
|
|
1992
|
+
if (direction !== undefined) {
|
|
1993
|
+
localVarQueryParameter['direction'] = direction;
|
|
1994
|
+
}
|
|
1995
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1996
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1997
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1998
|
+
return {
|
|
1999
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2000
|
+
options: localVarRequestOptions,
|
|
2001
|
+
};
|
|
2002
|
+
}),
|
|
2003
|
+
/**
|
|
2004
|
+
*
|
|
2005
|
+
* @summary Get all projects
|
|
2006
|
+
* @param {number} [page]
|
|
2007
|
+
* @param {number} [limit]
|
|
2008
|
+
* @param {string} [column]
|
|
2009
|
+
* @param {ProjectControllerGetAllProjectsDirectionEnum} [direction]
|
|
2010
|
+
* @param {*} [options] Override http request option.
|
|
2011
|
+
* @throws {RequiredError}
|
|
2012
|
+
*/
|
|
2013
|
+
projectControllerGetAllProjects: (page_1, limit_1, column_1, direction_1, ...args_1) => __awaiter(this, [page_1, limit_1, column_1, direction_1, ...args_1], void 0, function* (page, limit, column, direction, options = {}) {
|
|
2014
|
+
const localVarPath = `/project/all`;
|
|
2015
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2016
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2017
|
+
let baseOptions;
|
|
2018
|
+
if (configuration) {
|
|
2019
|
+
baseOptions = configuration.baseOptions;
|
|
2020
|
+
}
|
|
2021
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2022
|
+
const localVarHeaderParameter = {};
|
|
2023
|
+
const localVarQueryParameter = {};
|
|
2024
|
+
if (page !== undefined) {
|
|
2025
|
+
localVarQueryParameter['page'] = page;
|
|
2026
|
+
}
|
|
2027
|
+
if (limit !== undefined) {
|
|
2028
|
+
localVarQueryParameter['limit'] = limit;
|
|
2029
|
+
}
|
|
2030
|
+
if (column !== undefined) {
|
|
2031
|
+
localVarQueryParameter['column'] = column;
|
|
2032
|
+
}
|
|
2033
|
+
if (direction !== undefined) {
|
|
2034
|
+
localVarQueryParameter['direction'] = direction;
|
|
2035
|
+
}
|
|
2036
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2037
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2038
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2039
|
+
return {
|
|
2040
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2041
|
+
options: localVarRequestOptions,
|
|
2042
|
+
};
|
|
2043
|
+
}),
|
|
2044
|
+
/**
|
|
2045
|
+
*
|
|
2046
|
+
* @summary Get all team members of project
|
|
2047
|
+
* @param {string} id
|
|
2048
|
+
* @param {number} [page]
|
|
2049
|
+
* @param {number} [limit]
|
|
2050
|
+
* @param {string} [column]
|
|
2051
|
+
* @param {ProjectControllerGetAllTeamMembersOfProjectDirectionEnum} [direction]
|
|
2052
|
+
* @param {Array<string>} [teamMemberStatus]
|
|
2053
|
+
* @param {Array<number>} [roleIds]
|
|
2054
|
+
* @param {*} [options] Override http request option.
|
|
2055
|
+
* @throws {RequiredError}
|
|
2056
|
+
*/
|
|
2057
|
+
projectControllerGetAllTeamMembersOfProject: (id_1, page_1, limit_1, column_1, direction_1, teamMemberStatus_1, roleIds_1, ...args_1) => __awaiter(this, [id_1, page_1, limit_1, column_1, direction_1, teamMemberStatus_1, roleIds_1, ...args_1], void 0, function* (id, page, limit, column, direction, teamMemberStatus, roleIds, options = {}) {
|
|
2058
|
+
// verify required parameter 'id' is not null or undefined
|
|
2059
|
+
(0, common_1.assertParamExists)('projectControllerGetAllTeamMembersOfProject', 'id', id);
|
|
2060
|
+
const localVarPath = `/project/{id}/team/all`
|
|
2061
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2062
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2063
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2064
|
+
let baseOptions;
|
|
2065
|
+
if (configuration) {
|
|
2066
|
+
baseOptions = configuration.baseOptions;
|
|
2067
|
+
}
|
|
2068
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2069
|
+
const localVarHeaderParameter = {};
|
|
2070
|
+
const localVarQueryParameter = {};
|
|
2071
|
+
if (page !== undefined) {
|
|
2072
|
+
localVarQueryParameter['page'] = page;
|
|
2073
|
+
}
|
|
2074
|
+
if (limit !== undefined) {
|
|
2075
|
+
localVarQueryParameter['limit'] = limit;
|
|
2076
|
+
}
|
|
2077
|
+
if (column !== undefined) {
|
|
2078
|
+
localVarQueryParameter['column'] = column;
|
|
2079
|
+
}
|
|
2080
|
+
if (direction !== undefined) {
|
|
2081
|
+
localVarQueryParameter['direction'] = direction;
|
|
2082
|
+
}
|
|
2083
|
+
if (teamMemberStatus) {
|
|
2084
|
+
localVarQueryParameter['teamMemberStatus'] = teamMemberStatus;
|
|
2085
|
+
}
|
|
2086
|
+
if (roleIds) {
|
|
2087
|
+
localVarQueryParameter['roleIds'] = roleIds;
|
|
2088
|
+
}
|
|
2089
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2090
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2091
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2092
|
+
return {
|
|
2093
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2094
|
+
options: localVarRequestOptions,
|
|
2095
|
+
};
|
|
2096
|
+
}),
|
|
2097
|
+
/**
|
|
2098
|
+
*
|
|
2099
|
+
* @summary Get running status of instances.
|
|
2100
|
+
* @param {string} projectId
|
|
2101
|
+
* @param {*} [options] Override http request option.
|
|
2102
|
+
* @throws {RequiredError}
|
|
2103
|
+
*/
|
|
2104
|
+
projectControllerGetInstanceRunningStatus: (projectId_1, ...args_1) => __awaiter(this, [projectId_1, ...args_1], void 0, function* (projectId, options = {}) {
|
|
2105
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
2106
|
+
(0, common_1.assertParamExists)('projectControllerGetInstanceRunningStatus', 'projectId', projectId);
|
|
2107
|
+
const localVarPath = `/project/{projectId}/instanceRunningStatus`
|
|
2108
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
2109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2110
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2111
|
+
let baseOptions;
|
|
2112
|
+
if (configuration) {
|
|
2113
|
+
baseOptions = configuration.baseOptions;
|
|
2114
|
+
}
|
|
2115
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2116
|
+
const localVarHeaderParameter = {};
|
|
2117
|
+
const localVarQueryParameter = {};
|
|
2118
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2119
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2120
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2121
|
+
return {
|
|
2122
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2123
|
+
options: localVarRequestOptions,
|
|
2124
|
+
};
|
|
2125
|
+
}),
|
|
2126
|
+
/**
|
|
2127
|
+
*
|
|
2128
|
+
* @summary Fetch last 5 notifications
|
|
2129
|
+
* @param {string} projectId
|
|
2130
|
+
* @param {*} [options] Override http request option.
|
|
2131
|
+
* @throws {RequiredError}
|
|
2132
|
+
*/
|
|
2133
|
+
projectControllerGetLastFiveNotifications: (projectId_1, ...args_1) => __awaiter(this, [projectId_1, ...args_1], void 0, function* (projectId, options = {}) {
|
|
2134
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
2135
|
+
(0, common_1.assertParamExists)('projectControllerGetLastFiveNotifications', 'projectId', projectId);
|
|
2136
|
+
const localVarPath = `/project/{projectId}/notifications`
|
|
2137
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
2138
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2139
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2140
|
+
let baseOptions;
|
|
2141
|
+
if (configuration) {
|
|
2142
|
+
baseOptions = configuration.baseOptions;
|
|
2143
|
+
}
|
|
2144
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2145
|
+
const localVarHeaderParameter = {};
|
|
2146
|
+
const localVarQueryParameter = {};
|
|
2147
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2148
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2149
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2150
|
+
return {
|
|
2151
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2152
|
+
options: localVarRequestOptions,
|
|
2153
|
+
};
|
|
2154
|
+
}),
|
|
2155
|
+
/**
|
|
2156
|
+
*
|
|
2157
|
+
* @summary Get machine id matching instances.
|
|
2158
|
+
* @param {string} projectId
|
|
2159
|
+
* @param {*} [options] Override http request option.
|
|
2160
|
+
* @throws {RequiredError}
|
|
2161
|
+
*/
|
|
2162
|
+
projectControllerGetMachineInstanceByImageId: (projectId_1, ...args_1) => __awaiter(this, [projectId_1, ...args_1], void 0, function* (projectId, options = {}) {
|
|
2163
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
2164
|
+
(0, common_1.assertParamExists)('projectControllerGetMachineInstanceByImageId', 'projectId', projectId);
|
|
2165
|
+
const localVarPath = `/project/{projectId}/allMachineInstance`
|
|
2166
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
2167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2168
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2169
|
+
let baseOptions;
|
|
2170
|
+
if (configuration) {
|
|
2171
|
+
baseOptions = configuration.baseOptions;
|
|
2172
|
+
}
|
|
2173
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2174
|
+
const localVarHeaderParameter = {};
|
|
2175
|
+
const localVarQueryParameter = {};
|
|
2176
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2177
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2178
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2179
|
+
return {
|
|
2180
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2181
|
+
options: localVarRequestOptions,
|
|
2182
|
+
};
|
|
2183
|
+
}),
|
|
2184
|
+
/**
|
|
2185
|
+
*
|
|
2186
|
+
* @summary Get all machineInstances with count
|
|
2187
|
+
* @param {string} projectId
|
|
2188
|
+
* @param {number} page
|
|
2189
|
+
* @param {number} limit
|
|
2190
|
+
* @param {*} [options] Override http request option.
|
|
2191
|
+
* @throws {RequiredError}
|
|
2192
|
+
*/
|
|
2193
|
+
projectControllerGetMachineInstanceByUserId: (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 = {}) {
|
|
2194
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
2195
|
+
(0, common_1.assertParamExists)('projectControllerGetMachineInstanceByUserId', 'projectId', projectId);
|
|
2196
|
+
// verify required parameter 'page' is not null or undefined
|
|
2197
|
+
(0, common_1.assertParamExists)('projectControllerGetMachineInstanceByUserId', 'page', page);
|
|
2198
|
+
// verify required parameter 'limit' is not null or undefined
|
|
2199
|
+
(0, common_1.assertParamExists)('projectControllerGetMachineInstanceByUserId', 'limit', limit);
|
|
2200
|
+
const localVarPath = `/project/{projectId}/machineInstance`
|
|
2201
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
2202
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2203
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2204
|
+
let baseOptions;
|
|
2205
|
+
if (configuration) {
|
|
2206
|
+
baseOptions = configuration.baseOptions;
|
|
2207
|
+
}
|
|
2208
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2209
|
+
const localVarHeaderParameter = {};
|
|
2210
|
+
const localVarQueryParameter = {};
|
|
2211
|
+
if (page !== undefined) {
|
|
2212
|
+
localVarQueryParameter['page'] = page;
|
|
2213
|
+
}
|
|
2214
|
+
if (limit !== undefined) {
|
|
2215
|
+
localVarQueryParameter['limit'] = limit;
|
|
2216
|
+
}
|
|
2217
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2218
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2219
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2220
|
+
return {
|
|
2221
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2222
|
+
options: localVarRequestOptions,
|
|
2223
|
+
};
|
|
2224
|
+
}),
|
|
2225
|
+
/**
|
|
2226
|
+
*
|
|
2227
|
+
* @summary Get project by id
|
|
2228
|
+
* @param {string} id
|
|
2229
|
+
* @param {*} [options] Override http request option.
|
|
2230
|
+
* @throws {RequiredError}
|
|
2231
|
+
*/
|
|
2232
|
+
projectControllerGetProjectById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2233
|
+
// verify required parameter 'id' is not null or undefined
|
|
2234
|
+
(0, common_1.assertParamExists)('projectControllerGetProjectById', 'id', id);
|
|
2235
|
+
const localVarPath = `/project/{id}`
|
|
2236
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2237
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2238
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2239
|
+
let baseOptions;
|
|
2240
|
+
if (configuration) {
|
|
2241
|
+
baseOptions = configuration.baseOptions;
|
|
2242
|
+
}
|
|
2243
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2244
|
+
const localVarHeaderParameter = {};
|
|
2245
|
+
const localVarQueryParameter = {};
|
|
2246
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2247
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2248
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2249
|
+
return {
|
|
2250
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2251
|
+
options: localVarRequestOptions,
|
|
2252
|
+
};
|
|
2253
|
+
}),
|
|
2254
|
+
/**
|
|
2255
|
+
*
|
|
2256
|
+
* @summary Get project role by id
|
|
2257
|
+
* @param {string} id
|
|
2258
|
+
* @param {number} roleId
|
|
2259
|
+
* @param {*} [options] Override http request option.
|
|
2260
|
+
* @throws {RequiredError}
|
|
2261
|
+
*/
|
|
2262
|
+
projectControllerGetProjectRoleById: (id_1, roleId_1, ...args_1) => __awaiter(this, [id_1, roleId_1, ...args_1], void 0, function* (id, roleId, options = {}) {
|
|
2263
|
+
// verify required parameter 'id' is not null or undefined
|
|
2264
|
+
(0, common_1.assertParamExists)('projectControllerGetProjectRoleById', 'id', id);
|
|
2265
|
+
// verify required parameter 'roleId' is not null or undefined
|
|
2266
|
+
(0, common_1.assertParamExists)('projectControllerGetProjectRoleById', 'roleId', roleId);
|
|
2267
|
+
const localVarPath = `/project/{id}/role/{roleId}`
|
|
2268
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
2269
|
+
.replace(`{${"roleId"}}`, encodeURIComponent(String(roleId)));
|
|
2270
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2271
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2272
|
+
let baseOptions;
|
|
2273
|
+
if (configuration) {
|
|
2274
|
+
baseOptions = configuration.baseOptions;
|
|
2275
|
+
}
|
|
2276
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2277
|
+
const localVarHeaderParameter = {};
|
|
2278
|
+
const localVarQueryParameter = {};
|
|
2279
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2280
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2281
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2282
|
+
return {
|
|
2283
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2284
|
+
options: localVarRequestOptions,
|
|
2285
|
+
};
|
|
2286
|
+
}),
|
|
2287
|
+
/**
|
|
2288
|
+
*
|
|
2289
|
+
* @summary Get user project role
|
|
2290
|
+
* @param {string} id
|
|
2291
|
+
* @param {*} [options] Override http request option.
|
|
2292
|
+
* @throws {RequiredError}
|
|
2293
|
+
*/
|
|
2294
|
+
projectControllerGetUserProjectRole: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2295
|
+
// verify required parameter 'id' is not null or undefined
|
|
2296
|
+
(0, common_1.assertParamExists)('projectControllerGetUserProjectRole', 'id', id);
|
|
2297
|
+
const localVarPath = `/project/{id}/member/role`
|
|
2298
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2299
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2300
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2301
|
+
let baseOptions;
|
|
2302
|
+
if (configuration) {
|
|
2303
|
+
baseOptions = configuration.baseOptions;
|
|
2304
|
+
}
|
|
2305
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2306
|
+
const localVarHeaderParameter = {};
|
|
2307
|
+
const localVarQueryParameter = {};
|
|
2308
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2309
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2310
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2311
|
+
return {
|
|
2312
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2313
|
+
options: localVarRequestOptions,
|
|
2314
|
+
};
|
|
2315
|
+
}),
|
|
2316
|
+
/**
|
|
2317
|
+
*
|
|
2318
|
+
* @summary Mark read
|
|
2319
|
+
* @param {string} projectId
|
|
2320
|
+
* @param {object} body
|
|
2321
|
+
* @param {*} [options] Override http request option.
|
|
2322
|
+
* @throws {RequiredError}
|
|
2323
|
+
*/
|
|
2324
|
+
projectControllerMarkNotificationsAsRead: (projectId_1, body_1, ...args_1) => __awaiter(this, [projectId_1, body_1, ...args_1], void 0, function* (projectId, body, options = {}) {
|
|
2325
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
2326
|
+
(0, common_1.assertParamExists)('projectControllerMarkNotificationsAsRead', 'projectId', projectId);
|
|
2327
|
+
// verify required parameter 'body' is not null or undefined
|
|
2328
|
+
(0, common_1.assertParamExists)('projectControllerMarkNotificationsAsRead', 'body', body);
|
|
2329
|
+
const localVarPath = `/project/{projectId}/notificationStatus`
|
|
2330
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
2331
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2332
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2333
|
+
let baseOptions;
|
|
2334
|
+
if (configuration) {
|
|
2335
|
+
baseOptions = configuration.baseOptions;
|
|
2336
|
+
}
|
|
2337
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2338
|
+
const localVarHeaderParameter = {};
|
|
2339
|
+
const localVarQueryParameter = {};
|
|
2340
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2341
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2342
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2343
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2344
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
2345
|
+
return {
|
|
2346
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2347
|
+
options: localVarRequestOptions,
|
|
2348
|
+
};
|
|
2349
|
+
}),
|
|
2350
|
+
/**
|
|
2351
|
+
*
|
|
2352
|
+
* @summary Update project by id
|
|
2353
|
+
* @param {string} id
|
|
2354
|
+
* @param {UpdateProjectByIdRequest} updateProjectByIdRequest
|
|
2355
|
+
* @param {*} [options] Override http request option.
|
|
2356
|
+
* @throws {RequiredError}
|
|
2357
|
+
*/
|
|
2358
|
+
projectControllerUpdateProjectById: (id_1, updateProjectByIdRequest_1, ...args_1) => __awaiter(this, [id_1, updateProjectByIdRequest_1, ...args_1], void 0, function* (id, updateProjectByIdRequest, options = {}) {
|
|
2359
|
+
// verify required parameter 'id' is not null or undefined
|
|
2360
|
+
(0, common_1.assertParamExists)('projectControllerUpdateProjectById', 'id', id);
|
|
2361
|
+
// verify required parameter 'updateProjectByIdRequest' is not null or undefined
|
|
2362
|
+
(0, common_1.assertParamExists)('projectControllerUpdateProjectById', 'updateProjectByIdRequest', updateProjectByIdRequest);
|
|
2363
|
+
const localVarPath = `/project/{id}/update`
|
|
2364
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2365
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2366
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2367
|
+
let baseOptions;
|
|
2368
|
+
if (configuration) {
|
|
2369
|
+
baseOptions = configuration.baseOptions;
|
|
2370
|
+
}
|
|
2371
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
2372
|
+
const localVarHeaderParameter = {};
|
|
2373
|
+
const localVarQueryParameter = {};
|
|
2374
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2375
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2376
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2377
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2378
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProjectByIdRequest, localVarRequestOptions, configuration);
|
|
2379
|
+
return {
|
|
2380
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2381
|
+
options: localVarRequestOptions,
|
|
2382
|
+
};
|
|
2383
|
+
}),
|
|
2384
|
+
/**
|
|
2385
|
+
*
|
|
2386
|
+
* @summary Update project role by id
|
|
2387
|
+
* @param {string} id
|
|
2388
|
+
* @param {number} roleId
|
|
2389
|
+
* @param {UpdateRoleByIdDto} updateRoleByIdDto
|
|
2390
|
+
* @param {*} [options] Override http request option.
|
|
2391
|
+
* @throws {RequiredError}
|
|
2392
|
+
*/
|
|
2393
|
+
projectControllerUpdateProjectRoleById: (id_1, roleId_1, updateRoleByIdDto_1, ...args_1) => __awaiter(this, [id_1, roleId_1, updateRoleByIdDto_1, ...args_1], void 0, function* (id, roleId, updateRoleByIdDto, options = {}) {
|
|
2394
|
+
// verify required parameter 'id' is not null or undefined
|
|
2395
|
+
(0, common_1.assertParamExists)('projectControllerUpdateProjectRoleById', 'id', id);
|
|
2396
|
+
// verify required parameter 'roleId' is not null or undefined
|
|
2397
|
+
(0, common_1.assertParamExists)('projectControllerUpdateProjectRoleById', 'roleId', roleId);
|
|
2398
|
+
// verify required parameter 'updateRoleByIdDto' is not null or undefined
|
|
2399
|
+
(0, common_1.assertParamExists)('projectControllerUpdateProjectRoleById', 'updateRoleByIdDto', updateRoleByIdDto);
|
|
2400
|
+
const localVarPath = `/project/{id}/role/{roleId}/update`
|
|
2401
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
2402
|
+
.replace(`{${"roleId"}}`, encodeURIComponent(String(roleId)));
|
|
2403
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2404
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2405
|
+
let baseOptions;
|
|
2406
|
+
if (configuration) {
|
|
2407
|
+
baseOptions = configuration.baseOptions;
|
|
2408
|
+
}
|
|
2409
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
2410
|
+
const localVarHeaderParameter = {};
|
|
2411
|
+
const localVarQueryParameter = {};
|
|
2412
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2413
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2414
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2415
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2416
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateRoleByIdDto, localVarRequestOptions, configuration);
|
|
2417
|
+
return {
|
|
2418
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2419
|
+
options: localVarRequestOptions,
|
|
2420
|
+
};
|
|
2421
|
+
}),
|
|
2422
|
+
/**
|
|
2423
|
+
*
|
|
2424
|
+
* @summary Update Machine Instance Running Status
|
|
2425
|
+
* @param {object} body
|
|
2426
|
+
* @param {*} [options] Override http request option.
|
|
2427
|
+
* @throws {RequiredError}
|
|
2428
|
+
*/
|
|
2429
|
+
projectControllerUpdateRunningStatus: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
2430
|
+
// verify required parameter 'body' is not null or undefined
|
|
2431
|
+
(0, common_1.assertParamExists)('projectControllerUpdateRunningStatus', 'body', body);
|
|
2432
|
+
const localVarPath = `/project/updateRunningStatus`;
|
|
2433
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2434
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2435
|
+
let baseOptions;
|
|
2436
|
+
if (configuration) {
|
|
2437
|
+
baseOptions = configuration.baseOptions;
|
|
2438
|
+
}
|
|
2439
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2440
|
+
const localVarHeaderParameter = {};
|
|
2441
|
+
const localVarQueryParameter = {};
|
|
2442
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2443
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2444
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2445
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2446
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
2447
|
+
return {
|
|
2448
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2449
|
+
options: localVarRequestOptions,
|
|
2450
|
+
};
|
|
2451
|
+
}),
|
|
2452
|
+
/**
|
|
2453
|
+
*
|
|
2454
|
+
* @summary Update team member
|
|
2455
|
+
* @param {string} id
|
|
2456
|
+
* @param {string} teamMemberId
|
|
2457
|
+
* @param {UpdateTeamMemberRequestDTO} updateTeamMemberRequestDTO
|
|
2458
|
+
* @param {*} [options] Override http request option.
|
|
2459
|
+
* @throws {RequiredError}
|
|
2460
|
+
*/
|
|
2461
|
+
projectControllerUpdateTeamMemberRole: (id_1, teamMemberId_1, updateTeamMemberRequestDTO_1, ...args_1) => __awaiter(this, [id_1, teamMemberId_1, updateTeamMemberRequestDTO_1, ...args_1], void 0, function* (id, teamMemberId, updateTeamMemberRequestDTO, options = {}) {
|
|
2462
|
+
// verify required parameter 'id' is not null or undefined
|
|
2463
|
+
(0, common_1.assertParamExists)('projectControllerUpdateTeamMemberRole', 'id', id);
|
|
2464
|
+
// verify required parameter 'teamMemberId' is not null or undefined
|
|
2465
|
+
(0, common_1.assertParamExists)('projectControllerUpdateTeamMemberRole', 'teamMemberId', teamMemberId);
|
|
2466
|
+
// verify required parameter 'updateTeamMemberRequestDTO' is not null or undefined
|
|
2467
|
+
(0, common_1.assertParamExists)('projectControllerUpdateTeamMemberRole', 'updateTeamMemberRequestDTO', updateTeamMemberRequestDTO);
|
|
2468
|
+
const localVarPath = `/project/{id}/team/{teamMemberId}/update`
|
|
2469
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
2470
|
+
.replace(`{${"teamMemberId"}}`, encodeURIComponent(String(teamMemberId)));
|
|
2471
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2472
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2473
|
+
let baseOptions;
|
|
2474
|
+
if (configuration) {
|
|
2475
|
+
baseOptions = configuration.baseOptions;
|
|
2476
|
+
}
|
|
2477
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
2478
|
+
const localVarHeaderParameter = {};
|
|
2479
|
+
const localVarQueryParameter = {};
|
|
2480
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2481
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2482
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2483
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2484
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateTeamMemberRequestDTO, localVarRequestOptions, configuration);
|
|
2485
|
+
return {
|
|
2486
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2487
|
+
options: localVarRequestOptions,
|
|
2488
|
+
};
|
|
2489
|
+
}),
|
|
2490
|
+
/**
|
|
2491
|
+
*
|
|
2492
|
+
* @summary Join project
|
|
2493
|
+
* @param {UpdateTeamMemberStatusRequestDTO} updateTeamMemberStatusRequestDTO
|
|
2494
|
+
* @param {*} [options] Override http request option.
|
|
2495
|
+
* @throws {RequiredError}
|
|
2496
|
+
*/
|
|
2497
|
+
projectControllerUpdateTeamMemberStatus: (updateTeamMemberStatusRequestDTO_1, ...args_1) => __awaiter(this, [updateTeamMemberStatusRequestDTO_1, ...args_1], void 0, function* (updateTeamMemberStatusRequestDTO, options = {}) {
|
|
2498
|
+
// verify required parameter 'updateTeamMemberStatusRequestDTO' is not null or undefined
|
|
2499
|
+
(0, common_1.assertParamExists)('projectControllerUpdateTeamMemberStatus', 'updateTeamMemberStatusRequestDTO', updateTeamMemberStatusRequestDTO);
|
|
2500
|
+
const localVarPath = `/project/join`;
|
|
2501
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2502
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2503
|
+
let baseOptions;
|
|
2504
|
+
if (configuration) {
|
|
2505
|
+
baseOptions = configuration.baseOptions;
|
|
2506
|
+
}
|
|
2507
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
2508
|
+
const localVarHeaderParameter = {};
|
|
2509
|
+
const localVarQueryParameter = {};
|
|
2510
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2511
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2512
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2513
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2514
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateTeamMemberStatusRequestDTO, localVarRequestOptions, configuration);
|
|
2515
|
+
return {
|
|
2516
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2517
|
+
options: localVarRequestOptions,
|
|
2518
|
+
};
|
|
2519
|
+
}),
|
|
2520
|
+
};
|
|
2521
|
+
};
|
|
2522
|
+
exports.ProjectApiAxiosParamCreator = ProjectApiAxiosParamCreator;
|
|
2523
|
+
/**
|
|
2524
|
+
* ProjectApi - functional programming interface
|
|
2525
|
+
* @export
|
|
2526
|
+
*/
|
|
2527
|
+
const ProjectApiFp = function (configuration) {
|
|
2528
|
+
const localVarAxiosParamCreator = (0, exports.ProjectApiAxiosParamCreator)(configuration);
|
|
2529
|
+
return {
|
|
2530
|
+
/**
|
|
2531
|
+
*
|
|
2532
|
+
* @summary Create New Machine Agent
|
|
2533
|
+
* @param {CreateMachineAgentDto} createMachineAgentDto
|
|
2534
|
+
* @param {*} [options] Override http request option.
|
|
2535
|
+
* @throws {RequiredError}
|
|
2536
|
+
*/
|
|
2537
|
+
machineAgentControllerCreateMachineAgent(createMachineAgentDto, options) {
|
|
2538
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2539
|
+
var _a, _b, _c;
|
|
2540
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineAgentControllerCreateMachineAgent(createMachineAgentDto, options);
|
|
2541
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2542
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineAgentControllerCreateMachineAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2543
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2544
|
+
});
|
|
2545
|
+
},
|
|
2546
|
+
/**
|
|
2547
|
+
*
|
|
2548
|
+
* @summary Delete machine agent
|
|
2549
|
+
* @param {Array<string>} requestBody
|
|
2550
|
+
* @param {*} [options] Override http request option.
|
|
2551
|
+
* @throws {RequiredError}
|
|
2552
|
+
*/
|
|
2553
|
+
machineAgentControllerDeleteMachineAgents(requestBody, options) {
|
|
2554
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2555
|
+
var _a, _b, _c;
|
|
2556
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineAgentControllerDeleteMachineAgents(requestBody, options);
|
|
2557
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2558
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineAgentControllerDeleteMachineAgents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2559
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2560
|
+
});
|
|
2561
|
+
},
|
|
2562
|
+
/**
|
|
2563
|
+
*
|
|
2564
|
+
* @summary Get all machine agent with count
|
|
2565
|
+
* @param {string} projectId
|
|
2566
|
+
* @param {number} page
|
|
2567
|
+
* @param {number} limit
|
|
2568
|
+
* @param {*} [options] Override http request option.
|
|
2569
|
+
* @throws {RequiredError}
|
|
2570
|
+
*/
|
|
2571
|
+
machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, options) {
|
|
2572
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2573
|
+
var _a, _b, _c;
|
|
2574
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, options);
|
|
2575
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2576
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineAgentControllerGetMachineAgentByProjectId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2577
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2578
|
+
});
|
|
2579
|
+
},
|
|
2580
|
+
/**
|
|
2581
|
+
*
|
|
2582
|
+
* @summary Update machine agent by id
|
|
2583
|
+
* @param {*} [options] Override http request option.
|
|
2584
|
+
* @throws {RequiredError}
|
|
2585
|
+
*/
|
|
2586
|
+
machineAgentControllerUpdateMachineAgent(options) {
|
|
2587
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2588
|
+
var _a, _b, _c;
|
|
2589
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineAgentControllerUpdateMachineAgent(options);
|
|
2590
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2591
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineAgentControllerUpdateMachineAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2592
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2593
|
+
});
|
|
2594
|
+
},
|
|
2595
|
+
/**
|
|
2596
|
+
*
|
|
2597
|
+
* @summary Add new evaluation test.
|
|
2598
|
+
* @param {*} [options] Override http request option.
|
|
2599
|
+
* @throws {RequiredError}
|
|
2600
|
+
*/
|
|
2601
|
+
machineModelControllerAddEvaluationTest(options) {
|
|
2602
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2603
|
+
var _a, _b, _c;
|
|
2604
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerAddEvaluationTest(options);
|
|
2605
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2606
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerAddEvaluationTest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2607
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2608
|
+
});
|
|
2609
|
+
},
|
|
2610
|
+
/**
|
|
2611
|
+
*
|
|
2612
|
+
* @summary Create New Machine Model
|
|
2613
|
+
* @param {object} body
|
|
2614
|
+
* @param {*} [options] Override http request option.
|
|
2615
|
+
* @throws {RequiredError}
|
|
2616
|
+
*/
|
|
2617
|
+
machineModelControllerCreateMachineModel(body, options) {
|
|
2618
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2619
|
+
var _a, _b, _c;
|
|
2620
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerCreateMachineModel(body, options);
|
|
2621
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2622
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerCreateMachineModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2623
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2624
|
+
});
|
|
2625
|
+
},
|
|
2626
|
+
/**
|
|
2627
|
+
*
|
|
2628
|
+
* @summary Create webhook
|
|
2629
|
+
* @param {*} [options] Override http request option.
|
|
2630
|
+
* @throws {RequiredError}
|
|
2631
|
+
*/
|
|
2632
|
+
machineModelControllerCreateWebhook(options) {
|
|
2633
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2634
|
+
var _a, _b, _c;
|
|
2635
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerCreateWebhook(options);
|
|
2636
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2637
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerCreateWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2638
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2639
|
+
});
|
|
2640
|
+
},
|
|
2641
|
+
/**
|
|
2642
|
+
*
|
|
2643
|
+
* @summary Delete evaluation
|
|
2644
|
+
* @param {*} [options] Override http request option.
|
|
2645
|
+
* @throws {RequiredError}
|
|
2646
|
+
*/
|
|
2647
|
+
machineModelControllerDeleteEvaluation(options) {
|
|
2648
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2649
|
+
var _a, _b, _c;
|
|
2650
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerDeleteEvaluation(options);
|
|
2651
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2652
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerDeleteEvaluation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2653
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2654
|
+
});
|
|
2655
|
+
},
|
|
2656
|
+
/**
|
|
2657
|
+
*
|
|
2658
|
+
* @summary Create New Machine Model
|
|
2659
|
+
* @param {Array<string>} requestBody
|
|
2660
|
+
* @param {*} [options] Override http request option.
|
|
2661
|
+
* @throws {RequiredError}
|
|
2662
|
+
*/
|
|
2663
|
+
machineModelControllerDeleteMachineModels(requestBody, options) {
|
|
2664
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2665
|
+
var _a, _b, _c;
|
|
2666
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerDeleteMachineModels(requestBody, options);
|
|
2667
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2668
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerDeleteMachineModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2669
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2670
|
+
});
|
|
2671
|
+
},
|
|
2672
|
+
/**
|
|
2673
|
+
*
|
|
2674
|
+
* @summary Delete webhook
|
|
2675
|
+
* @param {string} modelId
|
|
2676
|
+
* @param {*} [options] Override http request option.
|
|
2677
|
+
* @throws {RequiredError}
|
|
2678
|
+
*/
|
|
2679
|
+
machineModelControllerDeleteWebhook(modelId, options) {
|
|
2680
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2681
|
+
var _a, _b, _c;
|
|
2682
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerDeleteWebhook(modelId, options);
|
|
2683
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2684
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerDeleteWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2685
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2686
|
+
});
|
|
2687
|
+
},
|
|
2688
|
+
/**
|
|
2689
|
+
*
|
|
2690
|
+
* @summary Execute evaluation test.
|
|
2691
|
+
* @param {*} [options] Override http request option.
|
|
2692
|
+
* @throws {RequiredError}
|
|
2693
|
+
*/
|
|
2694
|
+
machineModelControllerExecuteEvaluation(options) {
|
|
2695
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2696
|
+
var _a, _b, _c;
|
|
2697
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerExecuteEvaluation(options);
|
|
2698
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2699
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerExecuteEvaluation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2700
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2701
|
+
});
|
|
2702
|
+
},
|
|
2703
|
+
/**
|
|
2704
|
+
*
|
|
2705
|
+
* @summary Fetch Swagger JSON
|
|
2706
|
+
* @param {string} modelId
|
|
2707
|
+
* @param {*} [options] Override http request option.
|
|
2708
|
+
* @throws {RequiredError}
|
|
2709
|
+
*/
|
|
2710
|
+
machineModelControllerFetchSwaggerJSON(modelId, options) {
|
|
2711
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2712
|
+
var _a, _b, _c;
|
|
2713
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerFetchSwaggerJSON(modelId, options);
|
|
2714
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2715
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerFetchSwaggerJSON']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2716
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2717
|
+
});
|
|
2718
|
+
},
|
|
2719
|
+
/**
|
|
2720
|
+
*
|
|
2721
|
+
* @summary Fetch webhook
|
|
2722
|
+
* @param {string} modelId
|
|
2723
|
+
* @param {boolean} isAgentWebhook
|
|
2724
|
+
* @param {*} [options] Override http request option.
|
|
2725
|
+
* @throws {RequiredError}
|
|
2726
|
+
*/
|
|
2727
|
+
machineModelControllerFetchWebhook(modelId, isAgentWebhook, options) {
|
|
2728
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2729
|
+
var _a, _b, _c;
|
|
2730
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerFetchWebhook(modelId, isAgentWebhook, options);
|
|
2731
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2732
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerFetchWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2733
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2734
|
+
});
|
|
2735
|
+
},
|
|
2736
|
+
/**
|
|
2737
|
+
*
|
|
2738
|
+
* @summary Fetch evaluation test.
|
|
2739
|
+
* @param {string} modelId
|
|
2740
|
+
* @param {*} [options] Override http request option.
|
|
2741
|
+
* @throws {RequiredError}
|
|
2742
|
+
*/
|
|
2743
|
+
machineModelControllerGetEvaluationTest(modelId, options) {
|
|
2744
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2745
|
+
var _a, _b, _c;
|
|
2746
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerGetEvaluationTest(modelId, options);
|
|
2747
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2748
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerGetEvaluationTest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2749
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2750
|
+
});
|
|
2751
|
+
},
|
|
2752
|
+
/**
|
|
2753
|
+
*
|
|
2754
|
+
* @summary Fetch Swagger JSON
|
|
2755
|
+
* @param {string} modelId
|
|
2756
|
+
* @param {string} queryId
|
|
2757
|
+
* @param {*} [options] Override http request option.
|
|
2758
|
+
* @throws {RequiredError}
|
|
2759
|
+
*/
|
|
2760
|
+
machineModelControllerGetEventLogsByQueryId(modelId, queryId, options) {
|
|
2761
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2762
|
+
var _a, _b, _c;
|
|
2763
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerGetEventLogsByQueryId(modelId, queryId, options);
|
|
2764
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2765
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerGetEventLogsByQueryId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2766
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2767
|
+
});
|
|
2768
|
+
},
|
|
2769
|
+
/**
|
|
2770
|
+
*
|
|
2771
|
+
* @summary Get all machine models with count
|
|
2772
|
+
* @param {string} projectId
|
|
2773
|
+
* @param {number} page
|
|
2774
|
+
* @param {number} limit
|
|
2775
|
+
* @param {*} [options] Override http request option.
|
|
2776
|
+
* @throws {RequiredError}
|
|
2777
|
+
*/
|
|
2778
|
+
machineModelControllerGetMachineInstanceByProjectId(projectId, page, limit, options) {
|
|
2779
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2780
|
+
var _a, _b, _c;
|
|
2781
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerGetMachineInstanceByProjectId(projectId, page, limit, options);
|
|
2782
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2783
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerGetMachineInstanceByProjectId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2784
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2785
|
+
});
|
|
2786
|
+
},
|
|
2787
|
+
/**
|
|
2788
|
+
*
|
|
2789
|
+
* @summary Run Query
|
|
2790
|
+
* @param {*} [options] Override http request option.
|
|
2791
|
+
* @throws {RequiredError}
|
|
2792
|
+
*/
|
|
2793
|
+
machineModelControllerRunQuery(options) {
|
|
2794
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2795
|
+
var _a, _b, _c;
|
|
2796
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerRunQuery(options);
|
|
2797
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2798
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerRunQuery']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2799
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2800
|
+
});
|
|
2801
|
+
},
|
|
2802
|
+
/**
|
|
2803
|
+
*
|
|
2804
|
+
* @summary Update evaluation
|
|
2805
|
+
* @param {*} [options] Override http request option.
|
|
2806
|
+
* @throws {RequiredError}
|
|
2807
|
+
*/
|
|
2808
|
+
machineModelControllerUpdateEvaluation(options) {
|
|
2809
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2810
|
+
var _a, _b, _c;
|
|
2811
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerUpdateEvaluation(options);
|
|
2812
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2813
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerUpdateEvaluation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2814
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2815
|
+
});
|
|
2816
|
+
},
|
|
2817
|
+
/**
|
|
2818
|
+
*
|
|
2819
|
+
* @summary Update machine model by id
|
|
2820
|
+
* @param {*} [options] Override http request option.
|
|
2821
|
+
* @throws {RequiredError}
|
|
2822
|
+
*/
|
|
2823
|
+
machineModelControllerUpdateMachineModel(options) {
|
|
2824
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2825
|
+
var _a, _b, _c;
|
|
2826
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerUpdateMachineModel(options);
|
|
2827
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2828
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerUpdateMachineModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2829
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2830
|
+
});
|
|
2831
|
+
},
|
|
2832
|
+
/**
|
|
2833
|
+
*
|
|
2834
|
+
* @summary Update webhook
|
|
2835
|
+
* @param {*} [options] Override http request option.
|
|
2836
|
+
* @throws {RequiredError}
|
|
2837
|
+
*/
|
|
2838
|
+
machineModelControllerUpdateWebhook(options) {
|
|
2839
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2840
|
+
var _a, _b, _c;
|
|
2841
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.machineModelControllerUpdateWebhook(options);
|
|
2842
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2843
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.machineModelControllerUpdateWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2844
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2845
|
+
});
|
|
2846
|
+
},
|
|
2847
|
+
/**
|
|
2848
|
+
*
|
|
2849
|
+
* @summary Add team member to project
|
|
2850
|
+
* @param {string} id
|
|
2851
|
+
* @param {AddProjectMemberDto} addProjectMemberDto
|
|
2852
|
+
* @param {*} [options] Override http request option.
|
|
2853
|
+
* @throws {RequiredError}
|
|
2854
|
+
*/
|
|
2855
|
+
projectControllerAddTeamMemberToProject(id, addProjectMemberDto, options) {
|
|
2856
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2857
|
+
var _a, _b, _c;
|
|
2858
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerAddTeamMemberToProject(id, addProjectMemberDto, options);
|
|
2859
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2860
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerAddTeamMemberToProject']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2861
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2862
|
+
});
|
|
2863
|
+
},
|
|
2864
|
+
/**
|
|
2865
|
+
*
|
|
2866
|
+
* @summary Create Machine Instance
|
|
2867
|
+
* @param {string} projectId
|
|
2868
|
+
* @param {*} [options] Override http request option.
|
|
2869
|
+
* @throws {RequiredError}
|
|
2870
|
+
*/
|
|
2871
|
+
projectControllerCreateMachineInstance(projectId, options) {
|
|
2872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2873
|
+
var _a, _b, _c;
|
|
2874
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerCreateMachineInstance(projectId, options);
|
|
2875
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2876
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerCreateMachineInstance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2877
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2878
|
+
});
|
|
2879
|
+
},
|
|
2880
|
+
/**
|
|
2881
|
+
*
|
|
2882
|
+
* @summary Create Project
|
|
2883
|
+
* @param {CreateProjectDTO} createProjectDTO
|
|
2884
|
+
* @param {*} [options] Override http request option.
|
|
2885
|
+
* @throws {RequiredError}
|
|
2886
|
+
*/
|
|
2887
|
+
projectControllerCreateProject(createProjectDTO, options) {
|
|
2888
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2889
|
+
var _a, _b, _c;
|
|
2890
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerCreateProject(createProjectDTO, options);
|
|
2891
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2892
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerCreateProject']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2893
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2894
|
+
});
|
|
2895
|
+
},
|
|
2896
|
+
/**
|
|
2897
|
+
*
|
|
2898
|
+
* @summary Create Project Role
|
|
2899
|
+
* @param {string} id
|
|
2900
|
+
* @param {CreateRoleDto} createRoleDto
|
|
2901
|
+
* @param {*} [options] Override http request option.
|
|
2902
|
+
* @throws {RequiredError}
|
|
2903
|
+
*/
|
|
2904
|
+
projectControllerCreateProjectRole(id, createRoleDto, options) {
|
|
2905
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2906
|
+
var _a, _b, _c;
|
|
2907
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerCreateProjectRole(id, createRoleDto, options);
|
|
2908
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2909
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerCreateProjectRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2910
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2911
|
+
});
|
|
2912
|
+
},
|
|
2913
|
+
/**
|
|
2914
|
+
*
|
|
2915
|
+
* @summary Delete machine instances by ids
|
|
2916
|
+
* @param {string} projectId
|
|
2917
|
+
* @param {*} [options] Override http request option.
|
|
2918
|
+
* @throws {RequiredError}
|
|
2919
|
+
*/
|
|
2920
|
+
projectControllerDeleteMachineInstance(projectId, options) {
|
|
2921
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2922
|
+
var _a, _b, _c;
|
|
2923
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerDeleteMachineInstance(projectId, options);
|
|
2924
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2925
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerDeleteMachineInstance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2926
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2927
|
+
});
|
|
2928
|
+
},
|
|
2929
|
+
/**
|
|
2930
|
+
*
|
|
2931
|
+
* @summary Delete project by id
|
|
2932
|
+
* @param {string} id
|
|
2933
|
+
* @param {*} [options] Override http request option.
|
|
2934
|
+
* @throws {RequiredError}
|
|
2935
|
+
*/
|
|
2936
|
+
projectControllerDeleteProjectById(id, options) {
|
|
2937
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2938
|
+
var _a, _b, _c;
|
|
2939
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerDeleteProjectById(id, options);
|
|
2940
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2941
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerDeleteProjectById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2942
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2943
|
+
});
|
|
2944
|
+
},
|
|
2945
|
+
/**
|
|
2946
|
+
*
|
|
2947
|
+
* @summary Delete Project Role
|
|
2948
|
+
* @param {string} id
|
|
2949
|
+
* @param {number} roleId
|
|
2950
|
+
* @param {*} [options] Override http request option.
|
|
2951
|
+
* @throws {RequiredError}
|
|
2952
|
+
*/
|
|
2953
|
+
projectControllerDeleteProjectRole(id, roleId, options) {
|
|
2954
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2955
|
+
var _a, _b, _c;
|
|
2956
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerDeleteProjectRole(id, roleId, options);
|
|
2957
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2958
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerDeleteProjectRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2959
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2960
|
+
});
|
|
2961
|
+
},
|
|
2962
|
+
/**
|
|
2963
|
+
*
|
|
2964
|
+
* @summary Get all project roles
|
|
2965
|
+
* @param {string} id
|
|
2966
|
+
* @param {number} [page]
|
|
2967
|
+
* @param {number} [limit]
|
|
2968
|
+
* @param {string} [column]
|
|
2969
|
+
* @param {ProjectControllerGetAllProjectRolesDirectionEnum} [direction]
|
|
2970
|
+
* @param {*} [options] Override http request option.
|
|
2971
|
+
* @throws {RequiredError}
|
|
2972
|
+
*/
|
|
2973
|
+
projectControllerGetAllProjectRoles(id, page, limit, column, direction, options) {
|
|
2974
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2975
|
+
var _a, _b, _c;
|
|
2976
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerGetAllProjectRoles(id, page, limit, column, direction, options);
|
|
2977
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2978
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerGetAllProjectRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2979
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2980
|
+
});
|
|
2981
|
+
},
|
|
2982
|
+
/**
|
|
2983
|
+
*
|
|
2984
|
+
* @summary Get all projects
|
|
2985
|
+
* @param {number} [page]
|
|
2986
|
+
* @param {number} [limit]
|
|
2987
|
+
* @param {string} [column]
|
|
2988
|
+
* @param {ProjectControllerGetAllProjectsDirectionEnum} [direction]
|
|
2989
|
+
* @param {*} [options] Override http request option.
|
|
2990
|
+
* @throws {RequiredError}
|
|
2991
|
+
*/
|
|
2992
|
+
projectControllerGetAllProjects(page, limit, column, direction, options) {
|
|
2993
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2994
|
+
var _a, _b, _c;
|
|
2995
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerGetAllProjects(page, limit, column, direction, options);
|
|
2996
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2997
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerGetAllProjects']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2998
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2999
|
+
});
|
|
3000
|
+
},
|
|
3001
|
+
/**
|
|
3002
|
+
*
|
|
3003
|
+
* @summary Get all team members of project
|
|
3004
|
+
* @param {string} id
|
|
3005
|
+
* @param {number} [page]
|
|
3006
|
+
* @param {number} [limit]
|
|
3007
|
+
* @param {string} [column]
|
|
3008
|
+
* @param {ProjectControllerGetAllTeamMembersOfProjectDirectionEnum} [direction]
|
|
3009
|
+
* @param {Array<string>} [teamMemberStatus]
|
|
3010
|
+
* @param {Array<number>} [roleIds]
|
|
3011
|
+
* @param {*} [options] Override http request option.
|
|
3012
|
+
* @throws {RequiredError}
|
|
3013
|
+
*/
|
|
3014
|
+
projectControllerGetAllTeamMembersOfProject(id, page, limit, column, direction, teamMemberStatus, roleIds, options) {
|
|
3015
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3016
|
+
var _a, _b, _c;
|
|
3017
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerGetAllTeamMembersOfProject(id, page, limit, column, direction, teamMemberStatus, roleIds, options);
|
|
3018
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3019
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerGetAllTeamMembersOfProject']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3020
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3021
|
+
});
|
|
3022
|
+
},
|
|
3023
|
+
/**
|
|
3024
|
+
*
|
|
3025
|
+
* @summary Get running status of instances.
|
|
3026
|
+
* @param {string} projectId
|
|
3027
|
+
* @param {*} [options] Override http request option.
|
|
3028
|
+
* @throws {RequiredError}
|
|
3029
|
+
*/
|
|
3030
|
+
projectControllerGetInstanceRunningStatus(projectId, options) {
|
|
3031
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3032
|
+
var _a, _b, _c;
|
|
3033
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerGetInstanceRunningStatus(projectId, options);
|
|
3034
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3035
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerGetInstanceRunningStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3036
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3037
|
+
});
|
|
3038
|
+
},
|
|
3039
|
+
/**
|
|
3040
|
+
*
|
|
3041
|
+
* @summary Fetch last 5 notifications
|
|
3042
|
+
* @param {string} projectId
|
|
3043
|
+
* @param {*} [options] Override http request option.
|
|
3044
|
+
* @throws {RequiredError}
|
|
3045
|
+
*/
|
|
3046
|
+
projectControllerGetLastFiveNotifications(projectId, options) {
|
|
3047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3048
|
+
var _a, _b, _c;
|
|
3049
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerGetLastFiveNotifications(projectId, options);
|
|
3050
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3051
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerGetLastFiveNotifications']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3052
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3053
|
+
});
|
|
3054
|
+
},
|
|
3055
|
+
/**
|
|
3056
|
+
*
|
|
3057
|
+
* @summary Get machine id matching instances.
|
|
3058
|
+
* @param {string} projectId
|
|
3059
|
+
* @param {*} [options] Override http request option.
|
|
3060
|
+
* @throws {RequiredError}
|
|
3061
|
+
*/
|
|
3062
|
+
projectControllerGetMachineInstanceByImageId(projectId, options) {
|
|
3063
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3064
|
+
var _a, _b, _c;
|
|
3065
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerGetMachineInstanceByImageId(projectId, options);
|
|
3066
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3067
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerGetMachineInstanceByImageId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3068
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3069
|
+
});
|
|
3070
|
+
},
|
|
3071
|
+
/**
|
|
3072
|
+
*
|
|
3073
|
+
* @summary Get all machineInstances with count
|
|
3074
|
+
* @param {string} projectId
|
|
3075
|
+
* @param {number} page
|
|
3076
|
+
* @param {number} limit
|
|
3077
|
+
* @param {*} [options] Override http request option.
|
|
3078
|
+
* @throws {RequiredError}
|
|
3079
|
+
*/
|
|
3080
|
+
projectControllerGetMachineInstanceByUserId(projectId, page, limit, options) {
|
|
3081
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3082
|
+
var _a, _b, _c;
|
|
3083
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerGetMachineInstanceByUserId(projectId, page, limit, options);
|
|
3084
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3085
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerGetMachineInstanceByUserId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3086
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3087
|
+
});
|
|
3088
|
+
},
|
|
3089
|
+
/**
|
|
3090
|
+
*
|
|
3091
|
+
* @summary Get project by id
|
|
3092
|
+
* @param {string} id
|
|
3093
|
+
* @param {*} [options] Override http request option.
|
|
3094
|
+
* @throws {RequiredError}
|
|
3095
|
+
*/
|
|
3096
|
+
projectControllerGetProjectById(id, options) {
|
|
3097
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3098
|
+
var _a, _b, _c;
|
|
3099
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerGetProjectById(id, options);
|
|
3100
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3101
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerGetProjectById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3102
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3103
|
+
});
|
|
3104
|
+
},
|
|
3105
|
+
/**
|
|
3106
|
+
*
|
|
3107
|
+
* @summary Get project role by id
|
|
3108
|
+
* @param {string} id
|
|
3109
|
+
* @param {number} roleId
|
|
3110
|
+
* @param {*} [options] Override http request option.
|
|
3111
|
+
* @throws {RequiredError}
|
|
3112
|
+
*/
|
|
3113
|
+
projectControllerGetProjectRoleById(id, roleId, options) {
|
|
3114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3115
|
+
var _a, _b, _c;
|
|
3116
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerGetProjectRoleById(id, roleId, options);
|
|
3117
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3118
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerGetProjectRoleById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3119
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3120
|
+
});
|
|
3121
|
+
},
|
|
3122
|
+
/**
|
|
3123
|
+
*
|
|
3124
|
+
* @summary Get user project role
|
|
3125
|
+
* @param {string} id
|
|
3126
|
+
* @param {*} [options] Override http request option.
|
|
3127
|
+
* @throws {RequiredError}
|
|
3128
|
+
*/
|
|
3129
|
+
projectControllerGetUserProjectRole(id, options) {
|
|
3130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3131
|
+
var _a, _b, _c;
|
|
3132
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerGetUserProjectRole(id, options);
|
|
3133
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3134
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerGetUserProjectRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3135
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3136
|
+
});
|
|
3137
|
+
},
|
|
3138
|
+
/**
|
|
3139
|
+
*
|
|
3140
|
+
* @summary Mark read
|
|
3141
|
+
* @param {string} projectId
|
|
3142
|
+
* @param {object} body
|
|
3143
|
+
* @param {*} [options] Override http request option.
|
|
3144
|
+
* @throws {RequiredError}
|
|
3145
|
+
*/
|
|
3146
|
+
projectControllerMarkNotificationsAsRead(projectId, body, options) {
|
|
3147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3148
|
+
var _a, _b, _c;
|
|
3149
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerMarkNotificationsAsRead(projectId, body, options);
|
|
3150
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3151
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerMarkNotificationsAsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3152
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3153
|
+
});
|
|
3154
|
+
},
|
|
3155
|
+
/**
|
|
3156
|
+
*
|
|
3157
|
+
* @summary Update project by id
|
|
3158
|
+
* @param {string} id
|
|
3159
|
+
* @param {UpdateProjectByIdRequest} updateProjectByIdRequest
|
|
3160
|
+
* @param {*} [options] Override http request option.
|
|
3161
|
+
* @throws {RequiredError}
|
|
3162
|
+
*/
|
|
3163
|
+
projectControllerUpdateProjectById(id, updateProjectByIdRequest, options) {
|
|
3164
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3165
|
+
var _a, _b, _c;
|
|
3166
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerUpdateProjectById(id, updateProjectByIdRequest, options);
|
|
3167
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3168
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerUpdateProjectById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3169
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3170
|
+
});
|
|
3171
|
+
},
|
|
3172
|
+
/**
|
|
3173
|
+
*
|
|
3174
|
+
* @summary Update project role by id
|
|
3175
|
+
* @param {string} id
|
|
3176
|
+
* @param {number} roleId
|
|
3177
|
+
* @param {UpdateRoleByIdDto} updateRoleByIdDto
|
|
3178
|
+
* @param {*} [options] Override http request option.
|
|
3179
|
+
* @throws {RequiredError}
|
|
3180
|
+
*/
|
|
3181
|
+
projectControllerUpdateProjectRoleById(id, roleId, updateRoleByIdDto, options) {
|
|
3182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3183
|
+
var _a, _b, _c;
|
|
3184
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerUpdateProjectRoleById(id, roleId, updateRoleByIdDto, options);
|
|
3185
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3186
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerUpdateProjectRoleById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3187
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3188
|
+
});
|
|
3189
|
+
},
|
|
3190
|
+
/**
|
|
3191
|
+
*
|
|
3192
|
+
* @summary Update Machine Instance Running Status
|
|
3193
|
+
* @param {object} body
|
|
3194
|
+
* @param {*} [options] Override http request option.
|
|
3195
|
+
* @throws {RequiredError}
|
|
3196
|
+
*/
|
|
3197
|
+
projectControllerUpdateRunningStatus(body, options) {
|
|
3198
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3199
|
+
var _a, _b, _c;
|
|
3200
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerUpdateRunningStatus(body, options);
|
|
3201
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3202
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerUpdateRunningStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3203
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3204
|
+
});
|
|
3205
|
+
},
|
|
3206
|
+
/**
|
|
3207
|
+
*
|
|
3208
|
+
* @summary Update team member
|
|
3209
|
+
* @param {string} id
|
|
3210
|
+
* @param {string} teamMemberId
|
|
3211
|
+
* @param {UpdateTeamMemberRequestDTO} updateTeamMemberRequestDTO
|
|
3212
|
+
* @param {*} [options] Override http request option.
|
|
3213
|
+
* @throws {RequiredError}
|
|
3214
|
+
*/
|
|
3215
|
+
projectControllerUpdateTeamMemberRole(id, teamMemberId, updateTeamMemberRequestDTO, options) {
|
|
3216
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3217
|
+
var _a, _b, _c;
|
|
3218
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerUpdateTeamMemberRole(id, teamMemberId, updateTeamMemberRequestDTO, options);
|
|
3219
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3220
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerUpdateTeamMemberRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3221
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3222
|
+
});
|
|
3223
|
+
},
|
|
3224
|
+
/**
|
|
3225
|
+
*
|
|
3226
|
+
* @summary Join project
|
|
3227
|
+
* @param {UpdateTeamMemberStatusRequestDTO} updateTeamMemberStatusRequestDTO
|
|
3228
|
+
* @param {*} [options] Override http request option.
|
|
3229
|
+
* @throws {RequiredError}
|
|
3230
|
+
*/
|
|
3231
|
+
projectControllerUpdateTeamMemberStatus(updateTeamMemberStatusRequestDTO, options) {
|
|
3232
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3233
|
+
var _a, _b, _c;
|
|
3234
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectControllerUpdateTeamMemberStatus(updateTeamMemberStatusRequestDTO, options);
|
|
3235
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3236
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectApi.projectControllerUpdateTeamMemberStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3237
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3238
|
+
});
|
|
3239
|
+
},
|
|
3240
|
+
};
|
|
3241
|
+
};
|
|
3242
|
+
exports.ProjectApiFp = ProjectApiFp;
|
|
3243
|
+
/**
|
|
3244
|
+
* ProjectApi - factory interface
|
|
3245
|
+
* @export
|
|
3246
|
+
*/
|
|
3247
|
+
const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
3248
|
+
const localVarFp = (0, exports.ProjectApiFp)(configuration);
|
|
3249
|
+
return {
|
|
3250
|
+
/**
|
|
3251
|
+
*
|
|
3252
|
+
* @summary Create New Machine Agent
|
|
3253
|
+
* @param {CreateMachineAgentDto} createMachineAgentDto
|
|
3254
|
+
* @param {*} [options] Override http request option.
|
|
3255
|
+
* @throws {RequiredError}
|
|
3256
|
+
*/
|
|
3257
|
+
machineAgentControllerCreateMachineAgent(createMachineAgentDto, options) {
|
|
3258
|
+
return localVarFp.machineAgentControllerCreateMachineAgent(createMachineAgentDto, options).then((request) => request(axios, basePath));
|
|
3259
|
+
},
|
|
3260
|
+
/**
|
|
3261
|
+
*
|
|
3262
|
+
* @summary Delete machine agent
|
|
3263
|
+
* @param {Array<string>} requestBody
|
|
3264
|
+
* @param {*} [options] Override http request option.
|
|
3265
|
+
* @throws {RequiredError}
|
|
3266
|
+
*/
|
|
3267
|
+
machineAgentControllerDeleteMachineAgents(requestBody, options) {
|
|
3268
|
+
return localVarFp.machineAgentControllerDeleteMachineAgents(requestBody, options).then((request) => request(axios, basePath));
|
|
3269
|
+
},
|
|
3270
|
+
/**
|
|
3271
|
+
*
|
|
3272
|
+
* @summary Get all machine agent with count
|
|
3273
|
+
* @param {string} projectId
|
|
3274
|
+
* @param {number} page
|
|
3275
|
+
* @param {number} limit
|
|
3276
|
+
* @param {*} [options] Override http request option.
|
|
3277
|
+
* @throws {RequiredError}
|
|
3278
|
+
*/
|
|
3279
|
+
machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, options) {
|
|
3280
|
+
return localVarFp.machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, options).then((request) => request(axios, basePath));
|
|
3281
|
+
},
|
|
3282
|
+
/**
|
|
3283
|
+
*
|
|
3284
|
+
* @summary Update machine agent by id
|
|
3285
|
+
* @param {*} [options] Override http request option.
|
|
3286
|
+
* @throws {RequiredError}
|
|
3287
|
+
*/
|
|
3288
|
+
machineAgentControllerUpdateMachineAgent(options) {
|
|
3289
|
+
return localVarFp.machineAgentControllerUpdateMachineAgent(options).then((request) => request(axios, basePath));
|
|
3290
|
+
},
|
|
3291
|
+
/**
|
|
3292
|
+
*
|
|
3293
|
+
* @summary Add new evaluation test.
|
|
3294
|
+
* @param {*} [options] Override http request option.
|
|
3295
|
+
* @throws {RequiredError}
|
|
3296
|
+
*/
|
|
3297
|
+
machineModelControllerAddEvaluationTest(options) {
|
|
3298
|
+
return localVarFp.machineModelControllerAddEvaluationTest(options).then((request) => request(axios, basePath));
|
|
3299
|
+
},
|
|
3300
|
+
/**
|
|
3301
|
+
*
|
|
3302
|
+
* @summary Create New Machine Model
|
|
3303
|
+
* @param {object} body
|
|
3304
|
+
* @param {*} [options] Override http request option.
|
|
3305
|
+
* @throws {RequiredError}
|
|
3306
|
+
*/
|
|
3307
|
+
machineModelControllerCreateMachineModel(body, options) {
|
|
3308
|
+
return localVarFp.machineModelControllerCreateMachineModel(body, options).then((request) => request(axios, basePath));
|
|
3309
|
+
},
|
|
3310
|
+
/**
|
|
3311
|
+
*
|
|
3312
|
+
* @summary Create webhook
|
|
3313
|
+
* @param {*} [options] Override http request option.
|
|
3314
|
+
* @throws {RequiredError}
|
|
3315
|
+
*/
|
|
3316
|
+
machineModelControllerCreateWebhook(options) {
|
|
3317
|
+
return localVarFp.machineModelControllerCreateWebhook(options).then((request) => request(axios, basePath));
|
|
3318
|
+
},
|
|
3319
|
+
/**
|
|
3320
|
+
*
|
|
3321
|
+
* @summary Delete evaluation
|
|
3322
|
+
* @param {*} [options] Override http request option.
|
|
3323
|
+
* @throws {RequiredError}
|
|
3324
|
+
*/
|
|
3325
|
+
machineModelControllerDeleteEvaluation(options) {
|
|
3326
|
+
return localVarFp.machineModelControllerDeleteEvaluation(options).then((request) => request(axios, basePath));
|
|
3327
|
+
},
|
|
3328
|
+
/**
|
|
3329
|
+
*
|
|
3330
|
+
* @summary Create New Machine Model
|
|
3331
|
+
* @param {Array<string>} requestBody
|
|
3332
|
+
* @param {*} [options] Override http request option.
|
|
3333
|
+
* @throws {RequiredError}
|
|
3334
|
+
*/
|
|
3335
|
+
machineModelControllerDeleteMachineModels(requestBody, options) {
|
|
3336
|
+
return localVarFp.machineModelControllerDeleteMachineModels(requestBody, options).then((request) => request(axios, basePath));
|
|
3337
|
+
},
|
|
3338
|
+
/**
|
|
3339
|
+
*
|
|
3340
|
+
* @summary Delete webhook
|
|
3341
|
+
* @param {string} modelId
|
|
3342
|
+
* @param {*} [options] Override http request option.
|
|
3343
|
+
* @throws {RequiredError}
|
|
3344
|
+
*/
|
|
3345
|
+
machineModelControllerDeleteWebhook(modelId, options) {
|
|
3346
|
+
return localVarFp.machineModelControllerDeleteWebhook(modelId, options).then((request) => request(axios, basePath));
|
|
3347
|
+
},
|
|
3348
|
+
/**
|
|
3349
|
+
*
|
|
3350
|
+
* @summary Execute evaluation test.
|
|
3351
|
+
* @param {*} [options] Override http request option.
|
|
3352
|
+
* @throws {RequiredError}
|
|
3353
|
+
*/
|
|
3354
|
+
machineModelControllerExecuteEvaluation(options) {
|
|
3355
|
+
return localVarFp.machineModelControllerExecuteEvaluation(options).then((request) => request(axios, basePath));
|
|
3356
|
+
},
|
|
3357
|
+
/**
|
|
3358
|
+
*
|
|
3359
|
+
* @summary Fetch Swagger JSON
|
|
3360
|
+
* @param {string} modelId
|
|
3361
|
+
* @param {*} [options] Override http request option.
|
|
3362
|
+
* @throws {RequiredError}
|
|
3363
|
+
*/
|
|
3364
|
+
machineModelControllerFetchSwaggerJSON(modelId, options) {
|
|
3365
|
+
return localVarFp.machineModelControllerFetchSwaggerJSON(modelId, options).then((request) => request(axios, basePath));
|
|
3366
|
+
},
|
|
3367
|
+
/**
|
|
3368
|
+
*
|
|
3369
|
+
* @summary Fetch webhook
|
|
3370
|
+
* @param {string} modelId
|
|
3371
|
+
* @param {boolean} isAgentWebhook
|
|
3372
|
+
* @param {*} [options] Override http request option.
|
|
3373
|
+
* @throws {RequiredError}
|
|
3374
|
+
*/
|
|
3375
|
+
machineModelControllerFetchWebhook(modelId, isAgentWebhook, options) {
|
|
3376
|
+
return localVarFp.machineModelControllerFetchWebhook(modelId, isAgentWebhook, options).then((request) => request(axios, basePath));
|
|
3377
|
+
},
|
|
3378
|
+
/**
|
|
3379
|
+
*
|
|
3380
|
+
* @summary Fetch evaluation test.
|
|
3381
|
+
* @param {string} modelId
|
|
3382
|
+
* @param {*} [options] Override http request option.
|
|
3383
|
+
* @throws {RequiredError}
|
|
3384
|
+
*/
|
|
3385
|
+
machineModelControllerGetEvaluationTest(modelId, options) {
|
|
3386
|
+
return localVarFp.machineModelControllerGetEvaluationTest(modelId, options).then((request) => request(axios, basePath));
|
|
3387
|
+
},
|
|
3388
|
+
/**
|
|
3389
|
+
*
|
|
3390
|
+
* @summary Fetch Swagger JSON
|
|
3391
|
+
* @param {string} modelId
|
|
3392
|
+
* @param {string} queryId
|
|
3393
|
+
* @param {*} [options] Override http request option.
|
|
3394
|
+
* @throws {RequiredError}
|
|
3395
|
+
*/
|
|
3396
|
+
machineModelControllerGetEventLogsByQueryId(modelId, queryId, options) {
|
|
3397
|
+
return localVarFp.machineModelControllerGetEventLogsByQueryId(modelId, queryId, options).then((request) => request(axios, basePath));
|
|
3398
|
+
},
|
|
3399
|
+
/**
|
|
3400
|
+
*
|
|
3401
|
+
* @summary Get all machine models with count
|
|
3402
|
+
* @param {string} projectId
|
|
3403
|
+
* @param {number} page
|
|
3404
|
+
* @param {number} limit
|
|
3405
|
+
* @param {*} [options] Override http request option.
|
|
3406
|
+
* @throws {RequiredError}
|
|
3407
|
+
*/
|
|
3408
|
+
machineModelControllerGetMachineInstanceByProjectId(projectId, page, limit, options) {
|
|
3409
|
+
return localVarFp.machineModelControllerGetMachineInstanceByProjectId(projectId, page, limit, options).then((request) => request(axios, basePath));
|
|
3410
|
+
},
|
|
3411
|
+
/**
|
|
3412
|
+
*
|
|
3413
|
+
* @summary Run Query
|
|
3414
|
+
* @param {*} [options] Override http request option.
|
|
3415
|
+
* @throws {RequiredError}
|
|
3416
|
+
*/
|
|
3417
|
+
machineModelControllerRunQuery(options) {
|
|
3418
|
+
return localVarFp.machineModelControllerRunQuery(options).then((request) => request(axios, basePath));
|
|
3419
|
+
},
|
|
3420
|
+
/**
|
|
3421
|
+
*
|
|
3422
|
+
* @summary Update evaluation
|
|
3423
|
+
* @param {*} [options] Override http request option.
|
|
3424
|
+
* @throws {RequiredError}
|
|
3425
|
+
*/
|
|
3426
|
+
machineModelControllerUpdateEvaluation(options) {
|
|
3427
|
+
return localVarFp.machineModelControllerUpdateEvaluation(options).then((request) => request(axios, basePath));
|
|
3428
|
+
},
|
|
3429
|
+
/**
|
|
3430
|
+
*
|
|
3431
|
+
* @summary Update machine model by id
|
|
3432
|
+
* @param {*} [options] Override http request option.
|
|
3433
|
+
* @throws {RequiredError}
|
|
3434
|
+
*/
|
|
3435
|
+
machineModelControllerUpdateMachineModel(options) {
|
|
3436
|
+
return localVarFp.machineModelControllerUpdateMachineModel(options).then((request) => request(axios, basePath));
|
|
3437
|
+
},
|
|
3438
|
+
/**
|
|
3439
|
+
*
|
|
3440
|
+
* @summary Update webhook
|
|
3441
|
+
* @param {*} [options] Override http request option.
|
|
3442
|
+
* @throws {RequiredError}
|
|
3443
|
+
*/
|
|
3444
|
+
machineModelControllerUpdateWebhook(options) {
|
|
3445
|
+
return localVarFp.machineModelControllerUpdateWebhook(options).then((request) => request(axios, basePath));
|
|
3446
|
+
},
|
|
3447
|
+
/**
|
|
3448
|
+
*
|
|
3449
|
+
* @summary Add team member to project
|
|
3450
|
+
* @param {string} id
|
|
3451
|
+
* @param {AddProjectMemberDto} addProjectMemberDto
|
|
3452
|
+
* @param {*} [options] Override http request option.
|
|
3453
|
+
* @throws {RequiredError}
|
|
3454
|
+
*/
|
|
3455
|
+
projectControllerAddTeamMemberToProject(id, addProjectMemberDto, options) {
|
|
3456
|
+
return localVarFp.projectControllerAddTeamMemberToProject(id, addProjectMemberDto, options).then((request) => request(axios, basePath));
|
|
3457
|
+
},
|
|
3458
|
+
/**
|
|
3459
|
+
*
|
|
3460
|
+
* @summary Create Machine Instance
|
|
3461
|
+
* @param {string} projectId
|
|
3462
|
+
* @param {*} [options] Override http request option.
|
|
3463
|
+
* @throws {RequiredError}
|
|
3464
|
+
*/
|
|
3465
|
+
projectControllerCreateMachineInstance(projectId, options) {
|
|
3466
|
+
return localVarFp.projectControllerCreateMachineInstance(projectId, options).then((request) => request(axios, basePath));
|
|
3467
|
+
},
|
|
3468
|
+
/**
|
|
3469
|
+
*
|
|
3470
|
+
* @summary Create Project
|
|
3471
|
+
* @param {CreateProjectDTO} createProjectDTO
|
|
3472
|
+
* @param {*} [options] Override http request option.
|
|
3473
|
+
* @throws {RequiredError}
|
|
3474
|
+
*/
|
|
3475
|
+
projectControllerCreateProject(createProjectDTO, options) {
|
|
3476
|
+
return localVarFp.projectControllerCreateProject(createProjectDTO, options).then((request) => request(axios, basePath));
|
|
3477
|
+
},
|
|
3478
|
+
/**
|
|
3479
|
+
*
|
|
3480
|
+
* @summary Create Project Role
|
|
3481
|
+
* @param {string} id
|
|
3482
|
+
* @param {CreateRoleDto} createRoleDto
|
|
3483
|
+
* @param {*} [options] Override http request option.
|
|
3484
|
+
* @throws {RequiredError}
|
|
3485
|
+
*/
|
|
3486
|
+
projectControllerCreateProjectRole(id, createRoleDto, options) {
|
|
3487
|
+
return localVarFp.projectControllerCreateProjectRole(id, createRoleDto, options).then((request) => request(axios, basePath));
|
|
3488
|
+
},
|
|
3489
|
+
/**
|
|
3490
|
+
*
|
|
3491
|
+
* @summary Delete machine instances by ids
|
|
3492
|
+
* @param {string} projectId
|
|
3493
|
+
* @param {*} [options] Override http request option.
|
|
3494
|
+
* @throws {RequiredError}
|
|
3495
|
+
*/
|
|
3496
|
+
projectControllerDeleteMachineInstance(projectId, options) {
|
|
3497
|
+
return localVarFp.projectControllerDeleteMachineInstance(projectId, options).then((request) => request(axios, basePath));
|
|
3498
|
+
},
|
|
3499
|
+
/**
|
|
3500
|
+
*
|
|
3501
|
+
* @summary Delete project by id
|
|
3502
|
+
* @param {string} id
|
|
3503
|
+
* @param {*} [options] Override http request option.
|
|
3504
|
+
* @throws {RequiredError}
|
|
3505
|
+
*/
|
|
3506
|
+
projectControllerDeleteProjectById(id, options) {
|
|
3507
|
+
return localVarFp.projectControllerDeleteProjectById(id, options).then((request) => request(axios, basePath));
|
|
3508
|
+
},
|
|
3509
|
+
/**
|
|
3510
|
+
*
|
|
3511
|
+
* @summary Delete Project Role
|
|
3512
|
+
* @param {string} id
|
|
3513
|
+
* @param {number} roleId
|
|
3514
|
+
* @param {*} [options] Override http request option.
|
|
3515
|
+
* @throws {RequiredError}
|
|
3516
|
+
*/
|
|
3517
|
+
projectControllerDeleteProjectRole(id, roleId, options) {
|
|
3518
|
+
return localVarFp.projectControllerDeleteProjectRole(id, roleId, options).then((request) => request(axios, basePath));
|
|
3519
|
+
},
|
|
3520
|
+
/**
|
|
3521
|
+
*
|
|
3522
|
+
* @summary Get all project roles
|
|
3523
|
+
* @param {string} id
|
|
3524
|
+
* @param {number} [page]
|
|
3525
|
+
* @param {number} [limit]
|
|
3526
|
+
* @param {string} [column]
|
|
3527
|
+
* @param {ProjectControllerGetAllProjectRolesDirectionEnum} [direction]
|
|
3528
|
+
* @param {*} [options] Override http request option.
|
|
3529
|
+
* @throws {RequiredError}
|
|
3530
|
+
*/
|
|
3531
|
+
projectControllerGetAllProjectRoles(id, page, limit, column, direction, options) {
|
|
3532
|
+
return localVarFp.projectControllerGetAllProjectRoles(id, page, limit, column, direction, options).then((request) => request(axios, basePath));
|
|
3533
|
+
},
|
|
3534
|
+
/**
|
|
3535
|
+
*
|
|
3536
|
+
* @summary Get all projects
|
|
3537
|
+
* @param {number} [page]
|
|
3538
|
+
* @param {number} [limit]
|
|
3539
|
+
* @param {string} [column]
|
|
3540
|
+
* @param {ProjectControllerGetAllProjectsDirectionEnum} [direction]
|
|
3541
|
+
* @param {*} [options] Override http request option.
|
|
3542
|
+
* @throws {RequiredError}
|
|
3543
|
+
*/
|
|
3544
|
+
projectControllerGetAllProjects(page, limit, column, direction, options) {
|
|
3545
|
+
return localVarFp.projectControllerGetAllProjects(page, limit, column, direction, options).then((request) => request(axios, basePath));
|
|
3546
|
+
},
|
|
3547
|
+
/**
|
|
3548
|
+
*
|
|
3549
|
+
* @summary Get all team members of project
|
|
3550
|
+
* @param {string} id
|
|
3551
|
+
* @param {number} [page]
|
|
3552
|
+
* @param {number} [limit]
|
|
3553
|
+
* @param {string} [column]
|
|
3554
|
+
* @param {ProjectControllerGetAllTeamMembersOfProjectDirectionEnum} [direction]
|
|
3555
|
+
* @param {Array<string>} [teamMemberStatus]
|
|
3556
|
+
* @param {Array<number>} [roleIds]
|
|
3557
|
+
* @param {*} [options] Override http request option.
|
|
3558
|
+
* @throws {RequiredError}
|
|
3559
|
+
*/
|
|
3560
|
+
projectControllerGetAllTeamMembersOfProject(id, page, limit, column, direction, teamMemberStatus, roleIds, options) {
|
|
3561
|
+
return localVarFp.projectControllerGetAllTeamMembersOfProject(id, page, limit, column, direction, teamMemberStatus, roleIds, options).then((request) => request(axios, basePath));
|
|
3562
|
+
},
|
|
3563
|
+
/**
|
|
3564
|
+
*
|
|
3565
|
+
* @summary Get running status of instances.
|
|
3566
|
+
* @param {string} projectId
|
|
3567
|
+
* @param {*} [options] Override http request option.
|
|
3568
|
+
* @throws {RequiredError}
|
|
3569
|
+
*/
|
|
3570
|
+
projectControllerGetInstanceRunningStatus(projectId, options) {
|
|
3571
|
+
return localVarFp.projectControllerGetInstanceRunningStatus(projectId, options).then((request) => request(axios, basePath));
|
|
3572
|
+
},
|
|
3573
|
+
/**
|
|
3574
|
+
*
|
|
3575
|
+
* @summary Fetch last 5 notifications
|
|
3576
|
+
* @param {string} projectId
|
|
3577
|
+
* @param {*} [options] Override http request option.
|
|
3578
|
+
* @throws {RequiredError}
|
|
3579
|
+
*/
|
|
3580
|
+
projectControllerGetLastFiveNotifications(projectId, options) {
|
|
3581
|
+
return localVarFp.projectControllerGetLastFiveNotifications(projectId, options).then((request) => request(axios, basePath));
|
|
3582
|
+
},
|
|
3583
|
+
/**
|
|
3584
|
+
*
|
|
3585
|
+
* @summary Get machine id matching instances.
|
|
3586
|
+
* @param {string} projectId
|
|
3587
|
+
* @param {*} [options] Override http request option.
|
|
3588
|
+
* @throws {RequiredError}
|
|
3589
|
+
*/
|
|
3590
|
+
projectControllerGetMachineInstanceByImageId(projectId, options) {
|
|
3591
|
+
return localVarFp.projectControllerGetMachineInstanceByImageId(projectId, options).then((request) => request(axios, basePath));
|
|
3592
|
+
},
|
|
3593
|
+
/**
|
|
3594
|
+
*
|
|
3595
|
+
* @summary Get all machineInstances with count
|
|
3596
|
+
* @param {string} projectId
|
|
3597
|
+
* @param {number} page
|
|
3598
|
+
* @param {number} limit
|
|
3599
|
+
* @param {*} [options] Override http request option.
|
|
3600
|
+
* @throws {RequiredError}
|
|
3601
|
+
*/
|
|
3602
|
+
projectControllerGetMachineInstanceByUserId(projectId, page, limit, options) {
|
|
3603
|
+
return localVarFp.projectControllerGetMachineInstanceByUserId(projectId, page, limit, options).then((request) => request(axios, basePath));
|
|
3604
|
+
},
|
|
3605
|
+
/**
|
|
3606
|
+
*
|
|
3607
|
+
* @summary Get project by id
|
|
3608
|
+
* @param {string} id
|
|
3609
|
+
* @param {*} [options] Override http request option.
|
|
3610
|
+
* @throws {RequiredError}
|
|
3611
|
+
*/
|
|
3612
|
+
projectControllerGetProjectById(id, options) {
|
|
3613
|
+
return localVarFp.projectControllerGetProjectById(id, options).then((request) => request(axios, basePath));
|
|
3614
|
+
},
|
|
3615
|
+
/**
|
|
3616
|
+
*
|
|
3617
|
+
* @summary Get project role by id
|
|
3618
|
+
* @param {string} id
|
|
3619
|
+
* @param {number} roleId
|
|
3620
|
+
* @param {*} [options] Override http request option.
|
|
3621
|
+
* @throws {RequiredError}
|
|
3622
|
+
*/
|
|
3623
|
+
projectControllerGetProjectRoleById(id, roleId, options) {
|
|
3624
|
+
return localVarFp.projectControllerGetProjectRoleById(id, roleId, options).then((request) => request(axios, basePath));
|
|
3625
|
+
},
|
|
3626
|
+
/**
|
|
3627
|
+
*
|
|
3628
|
+
* @summary Get user project role
|
|
3629
|
+
* @param {string} id
|
|
3630
|
+
* @param {*} [options] Override http request option.
|
|
3631
|
+
* @throws {RequiredError}
|
|
3632
|
+
*/
|
|
3633
|
+
projectControllerGetUserProjectRole(id, options) {
|
|
3634
|
+
return localVarFp.projectControllerGetUserProjectRole(id, options).then((request) => request(axios, basePath));
|
|
3635
|
+
},
|
|
3636
|
+
/**
|
|
3637
|
+
*
|
|
3638
|
+
* @summary Mark read
|
|
3639
|
+
* @param {string} projectId
|
|
3640
|
+
* @param {object} body
|
|
3641
|
+
* @param {*} [options] Override http request option.
|
|
3642
|
+
* @throws {RequiredError}
|
|
3643
|
+
*/
|
|
3644
|
+
projectControllerMarkNotificationsAsRead(projectId, body, options) {
|
|
3645
|
+
return localVarFp.projectControllerMarkNotificationsAsRead(projectId, body, options).then((request) => request(axios, basePath));
|
|
3646
|
+
},
|
|
3647
|
+
/**
|
|
3648
|
+
*
|
|
3649
|
+
* @summary Update project by id
|
|
3650
|
+
* @param {string} id
|
|
3651
|
+
* @param {UpdateProjectByIdRequest} updateProjectByIdRequest
|
|
3652
|
+
* @param {*} [options] Override http request option.
|
|
3653
|
+
* @throws {RequiredError}
|
|
3654
|
+
*/
|
|
3655
|
+
projectControllerUpdateProjectById(id, updateProjectByIdRequest, options) {
|
|
3656
|
+
return localVarFp.projectControllerUpdateProjectById(id, updateProjectByIdRequest, options).then((request) => request(axios, basePath));
|
|
3657
|
+
},
|
|
3658
|
+
/**
|
|
3659
|
+
*
|
|
3660
|
+
* @summary Update project role by id
|
|
3661
|
+
* @param {string} id
|
|
3662
|
+
* @param {number} roleId
|
|
3663
|
+
* @param {UpdateRoleByIdDto} updateRoleByIdDto
|
|
3664
|
+
* @param {*} [options] Override http request option.
|
|
3665
|
+
* @throws {RequiredError}
|
|
3666
|
+
*/
|
|
3667
|
+
projectControllerUpdateProjectRoleById(id, roleId, updateRoleByIdDto, options) {
|
|
3668
|
+
return localVarFp.projectControllerUpdateProjectRoleById(id, roleId, updateRoleByIdDto, options).then((request) => request(axios, basePath));
|
|
3669
|
+
},
|
|
3670
|
+
/**
|
|
3671
|
+
*
|
|
3672
|
+
* @summary Update Machine Instance Running Status
|
|
3673
|
+
* @param {object} body
|
|
3674
|
+
* @param {*} [options] Override http request option.
|
|
3675
|
+
* @throws {RequiredError}
|
|
3676
|
+
*/
|
|
3677
|
+
projectControllerUpdateRunningStatus(body, options) {
|
|
3678
|
+
return localVarFp.projectControllerUpdateRunningStatus(body, options).then((request) => request(axios, basePath));
|
|
3679
|
+
},
|
|
3680
|
+
/**
|
|
3681
|
+
*
|
|
3682
|
+
* @summary Update team member
|
|
3683
|
+
* @param {string} id
|
|
3684
|
+
* @param {string} teamMemberId
|
|
3685
|
+
* @param {UpdateTeamMemberRequestDTO} updateTeamMemberRequestDTO
|
|
3686
|
+
* @param {*} [options] Override http request option.
|
|
3687
|
+
* @throws {RequiredError}
|
|
3688
|
+
*/
|
|
3689
|
+
projectControllerUpdateTeamMemberRole(id, teamMemberId, updateTeamMemberRequestDTO, options) {
|
|
3690
|
+
return localVarFp.projectControllerUpdateTeamMemberRole(id, teamMemberId, updateTeamMemberRequestDTO, options).then((request) => request(axios, basePath));
|
|
3691
|
+
},
|
|
3692
|
+
/**
|
|
3693
|
+
*
|
|
3694
|
+
* @summary Join project
|
|
3695
|
+
* @param {UpdateTeamMemberStatusRequestDTO} updateTeamMemberStatusRequestDTO
|
|
3696
|
+
* @param {*} [options] Override http request option.
|
|
3697
|
+
* @throws {RequiredError}
|
|
3698
|
+
*/
|
|
3699
|
+
projectControllerUpdateTeamMemberStatus(updateTeamMemberStatusRequestDTO, options) {
|
|
3700
|
+
return localVarFp.projectControllerUpdateTeamMemberStatus(updateTeamMemberStatusRequestDTO, options).then((request) => request(axios, basePath));
|
|
3701
|
+
},
|
|
3702
|
+
};
|
|
3703
|
+
};
|
|
3704
|
+
exports.ProjectApiFactory = ProjectApiFactory;
|
|
3705
|
+
/**
|
|
3706
|
+
* ProjectApi - object-oriented interface
|
|
3707
|
+
* @export
|
|
3708
|
+
* @class ProjectApi
|
|
3709
|
+
* @extends {BaseAPI}
|
|
3710
|
+
*/
|
|
3711
|
+
class ProjectApi extends base_1.BaseAPI {
|
|
3712
|
+
/**
|
|
3713
|
+
*
|
|
3714
|
+
* @summary Create New Machine Agent
|
|
3715
|
+
* @param {CreateMachineAgentDto} createMachineAgentDto
|
|
3716
|
+
* @param {*} [options] Override http request option.
|
|
3717
|
+
* @throws {RequiredError}
|
|
3718
|
+
* @memberof ProjectApi
|
|
3719
|
+
*/
|
|
3720
|
+
machineAgentControllerCreateMachineAgent(createMachineAgentDto, options) {
|
|
3721
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineAgentControllerCreateMachineAgent(createMachineAgentDto, options).then((request) => request(this.axios, this.basePath));
|
|
3722
|
+
}
|
|
3723
|
+
/**
|
|
3724
|
+
*
|
|
3725
|
+
* @summary Delete machine agent
|
|
3726
|
+
* @param {Array<string>} requestBody
|
|
3727
|
+
* @param {*} [options] Override http request option.
|
|
3728
|
+
* @throws {RequiredError}
|
|
3729
|
+
* @memberof ProjectApi
|
|
3730
|
+
*/
|
|
3731
|
+
machineAgentControllerDeleteMachineAgents(requestBody, options) {
|
|
3732
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineAgentControllerDeleteMachineAgents(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3733
|
+
}
|
|
3734
|
+
/**
|
|
3735
|
+
*
|
|
3736
|
+
* @summary Get all machine agent with count
|
|
3737
|
+
* @param {string} projectId
|
|
3738
|
+
* @param {number} page
|
|
3739
|
+
* @param {number} limit
|
|
3740
|
+
* @param {*} [options] Override http request option.
|
|
3741
|
+
* @throws {RequiredError}
|
|
3742
|
+
* @memberof ProjectApi
|
|
3743
|
+
*/
|
|
3744
|
+
machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, options) {
|
|
3745
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
3746
|
+
}
|
|
3747
|
+
/**
|
|
3748
|
+
*
|
|
3749
|
+
* @summary Update machine agent by id
|
|
3750
|
+
* @param {*} [options] Override http request option.
|
|
3751
|
+
* @throws {RequiredError}
|
|
3752
|
+
* @memberof ProjectApi
|
|
3753
|
+
*/
|
|
3754
|
+
machineAgentControllerUpdateMachineAgent(options) {
|
|
3755
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineAgentControllerUpdateMachineAgent(options).then((request) => request(this.axios, this.basePath));
|
|
3756
|
+
}
|
|
3757
|
+
/**
|
|
3758
|
+
*
|
|
3759
|
+
* @summary Add new evaluation test.
|
|
3760
|
+
* @param {*} [options] Override http request option.
|
|
3761
|
+
* @throws {RequiredError}
|
|
3762
|
+
* @memberof ProjectApi
|
|
3763
|
+
*/
|
|
3764
|
+
machineModelControllerAddEvaluationTest(options) {
|
|
3765
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerAddEvaluationTest(options).then((request) => request(this.axios, this.basePath));
|
|
3766
|
+
}
|
|
3767
|
+
/**
|
|
3768
|
+
*
|
|
3769
|
+
* @summary Create New Machine Model
|
|
3770
|
+
* @param {object} body
|
|
3771
|
+
* @param {*} [options] Override http request option.
|
|
3772
|
+
* @throws {RequiredError}
|
|
3773
|
+
* @memberof ProjectApi
|
|
3774
|
+
*/
|
|
3775
|
+
machineModelControllerCreateMachineModel(body, options) {
|
|
3776
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerCreateMachineModel(body, options).then((request) => request(this.axios, this.basePath));
|
|
3777
|
+
}
|
|
3778
|
+
/**
|
|
3779
|
+
*
|
|
3780
|
+
* @summary Create webhook
|
|
3781
|
+
* @param {*} [options] Override http request option.
|
|
3782
|
+
* @throws {RequiredError}
|
|
3783
|
+
* @memberof ProjectApi
|
|
3784
|
+
*/
|
|
3785
|
+
machineModelControllerCreateWebhook(options) {
|
|
3786
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerCreateWebhook(options).then((request) => request(this.axios, this.basePath));
|
|
3787
|
+
}
|
|
3788
|
+
/**
|
|
3789
|
+
*
|
|
3790
|
+
* @summary Delete evaluation
|
|
3791
|
+
* @param {*} [options] Override http request option.
|
|
3792
|
+
* @throws {RequiredError}
|
|
3793
|
+
* @memberof ProjectApi
|
|
3794
|
+
*/
|
|
3795
|
+
machineModelControllerDeleteEvaluation(options) {
|
|
3796
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerDeleteEvaluation(options).then((request) => request(this.axios, this.basePath));
|
|
3797
|
+
}
|
|
3798
|
+
/**
|
|
3799
|
+
*
|
|
3800
|
+
* @summary Create New Machine Model
|
|
3801
|
+
* @param {Array<string>} requestBody
|
|
3802
|
+
* @param {*} [options] Override http request option.
|
|
3803
|
+
* @throws {RequiredError}
|
|
3804
|
+
* @memberof ProjectApi
|
|
3805
|
+
*/
|
|
3806
|
+
machineModelControllerDeleteMachineModels(requestBody, options) {
|
|
3807
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerDeleteMachineModels(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3808
|
+
}
|
|
3809
|
+
/**
|
|
3810
|
+
*
|
|
3811
|
+
* @summary Delete webhook
|
|
3812
|
+
* @param {string} modelId
|
|
3813
|
+
* @param {*} [options] Override http request option.
|
|
3814
|
+
* @throws {RequiredError}
|
|
3815
|
+
* @memberof ProjectApi
|
|
3816
|
+
*/
|
|
3817
|
+
machineModelControllerDeleteWebhook(modelId, options) {
|
|
3818
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerDeleteWebhook(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
3819
|
+
}
|
|
3820
|
+
/**
|
|
3821
|
+
*
|
|
3822
|
+
* @summary Execute evaluation test.
|
|
3823
|
+
* @param {*} [options] Override http request option.
|
|
3824
|
+
* @throws {RequiredError}
|
|
3825
|
+
* @memberof ProjectApi
|
|
3826
|
+
*/
|
|
3827
|
+
machineModelControllerExecuteEvaluation(options) {
|
|
3828
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerExecuteEvaluation(options).then((request) => request(this.axios, this.basePath));
|
|
3829
|
+
}
|
|
3830
|
+
/**
|
|
3831
|
+
*
|
|
3832
|
+
* @summary Fetch Swagger JSON
|
|
3833
|
+
* @param {string} modelId
|
|
3834
|
+
* @param {*} [options] Override http request option.
|
|
3835
|
+
* @throws {RequiredError}
|
|
3836
|
+
* @memberof ProjectApi
|
|
3837
|
+
*/
|
|
3838
|
+
machineModelControllerFetchSwaggerJSON(modelId, options) {
|
|
3839
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerFetchSwaggerJSON(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
3840
|
+
}
|
|
3841
|
+
/**
|
|
3842
|
+
*
|
|
3843
|
+
* @summary Fetch webhook
|
|
3844
|
+
* @param {string} modelId
|
|
3845
|
+
* @param {boolean} isAgentWebhook
|
|
3846
|
+
* @param {*} [options] Override http request option.
|
|
3847
|
+
* @throws {RequiredError}
|
|
3848
|
+
* @memberof ProjectApi
|
|
3849
|
+
*/
|
|
3850
|
+
machineModelControllerFetchWebhook(modelId, isAgentWebhook, options) {
|
|
3851
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerFetchWebhook(modelId, isAgentWebhook, options).then((request) => request(this.axios, this.basePath));
|
|
3852
|
+
}
|
|
3853
|
+
/**
|
|
3854
|
+
*
|
|
3855
|
+
* @summary Fetch evaluation test.
|
|
3856
|
+
* @param {string} modelId
|
|
3857
|
+
* @param {*} [options] Override http request option.
|
|
3858
|
+
* @throws {RequiredError}
|
|
3859
|
+
* @memberof ProjectApi
|
|
3860
|
+
*/
|
|
3861
|
+
machineModelControllerGetEvaluationTest(modelId, options) {
|
|
3862
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerGetEvaluationTest(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
3863
|
+
}
|
|
3864
|
+
/**
|
|
3865
|
+
*
|
|
3866
|
+
* @summary Fetch Swagger JSON
|
|
3867
|
+
* @param {string} modelId
|
|
3868
|
+
* @param {string} queryId
|
|
3869
|
+
* @param {*} [options] Override http request option.
|
|
3870
|
+
* @throws {RequiredError}
|
|
3871
|
+
* @memberof ProjectApi
|
|
3872
|
+
*/
|
|
3873
|
+
machineModelControllerGetEventLogsByQueryId(modelId, queryId, options) {
|
|
3874
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerGetEventLogsByQueryId(modelId, queryId, options).then((request) => request(this.axios, this.basePath));
|
|
3875
|
+
}
|
|
3876
|
+
/**
|
|
3877
|
+
*
|
|
3878
|
+
* @summary Get all machine models with count
|
|
3879
|
+
* @param {string} projectId
|
|
3880
|
+
* @param {number} page
|
|
3881
|
+
* @param {number} limit
|
|
3882
|
+
* @param {*} [options] Override http request option.
|
|
3883
|
+
* @throws {RequiredError}
|
|
3884
|
+
* @memberof ProjectApi
|
|
3885
|
+
*/
|
|
3886
|
+
machineModelControllerGetMachineInstanceByProjectId(projectId, page, limit, options) {
|
|
3887
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerGetMachineInstanceByProjectId(projectId, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
3888
|
+
}
|
|
3889
|
+
/**
|
|
3890
|
+
*
|
|
3891
|
+
* @summary Run Query
|
|
3892
|
+
* @param {*} [options] Override http request option.
|
|
3893
|
+
* @throws {RequiredError}
|
|
3894
|
+
* @memberof ProjectApi
|
|
3895
|
+
*/
|
|
3896
|
+
machineModelControllerRunQuery(options) {
|
|
3897
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerRunQuery(options).then((request) => request(this.axios, this.basePath));
|
|
3898
|
+
}
|
|
3899
|
+
/**
|
|
3900
|
+
*
|
|
3901
|
+
* @summary Update evaluation
|
|
3902
|
+
* @param {*} [options] Override http request option.
|
|
3903
|
+
* @throws {RequiredError}
|
|
3904
|
+
* @memberof ProjectApi
|
|
3905
|
+
*/
|
|
3906
|
+
machineModelControllerUpdateEvaluation(options) {
|
|
3907
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerUpdateEvaluation(options).then((request) => request(this.axios, this.basePath));
|
|
3908
|
+
}
|
|
3909
|
+
/**
|
|
3910
|
+
*
|
|
3911
|
+
* @summary Update machine model by id
|
|
3912
|
+
* @param {*} [options] Override http request option.
|
|
3913
|
+
* @throws {RequiredError}
|
|
3914
|
+
* @memberof ProjectApi
|
|
3915
|
+
*/
|
|
3916
|
+
machineModelControllerUpdateMachineModel(options) {
|
|
3917
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerUpdateMachineModel(options).then((request) => request(this.axios, this.basePath));
|
|
3918
|
+
}
|
|
3919
|
+
/**
|
|
3920
|
+
*
|
|
3921
|
+
* @summary Update webhook
|
|
3922
|
+
* @param {*} [options] Override http request option.
|
|
3923
|
+
* @throws {RequiredError}
|
|
3924
|
+
* @memberof ProjectApi
|
|
3925
|
+
*/
|
|
3926
|
+
machineModelControllerUpdateWebhook(options) {
|
|
3927
|
+
return (0, exports.ProjectApiFp)(this.configuration).machineModelControllerUpdateWebhook(options).then((request) => request(this.axios, this.basePath));
|
|
3928
|
+
}
|
|
3929
|
+
/**
|
|
3930
|
+
*
|
|
3931
|
+
* @summary Add team member to project
|
|
3932
|
+
* @param {string} id
|
|
3933
|
+
* @param {AddProjectMemberDto} addProjectMemberDto
|
|
3934
|
+
* @param {*} [options] Override http request option.
|
|
3935
|
+
* @throws {RequiredError}
|
|
3936
|
+
* @memberof ProjectApi
|
|
3937
|
+
*/
|
|
3938
|
+
projectControllerAddTeamMemberToProject(id, addProjectMemberDto, options) {
|
|
3939
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerAddTeamMemberToProject(id, addProjectMemberDto, options).then((request) => request(this.axios, this.basePath));
|
|
3940
|
+
}
|
|
3941
|
+
/**
|
|
3942
|
+
*
|
|
3943
|
+
* @summary Create Machine Instance
|
|
3944
|
+
* @param {string} projectId
|
|
3945
|
+
* @param {*} [options] Override http request option.
|
|
3946
|
+
* @throws {RequiredError}
|
|
3947
|
+
* @memberof ProjectApi
|
|
3948
|
+
*/
|
|
3949
|
+
projectControllerCreateMachineInstance(projectId, options) {
|
|
3950
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerCreateMachineInstance(projectId, options).then((request) => request(this.axios, this.basePath));
|
|
3951
|
+
}
|
|
3952
|
+
/**
|
|
3953
|
+
*
|
|
3954
|
+
* @summary Create Project
|
|
3955
|
+
* @param {CreateProjectDTO} createProjectDTO
|
|
3956
|
+
* @param {*} [options] Override http request option.
|
|
3957
|
+
* @throws {RequiredError}
|
|
3958
|
+
* @memberof ProjectApi
|
|
3959
|
+
*/
|
|
3960
|
+
projectControllerCreateProject(createProjectDTO, options) {
|
|
3961
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerCreateProject(createProjectDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3962
|
+
}
|
|
3963
|
+
/**
|
|
3964
|
+
*
|
|
3965
|
+
* @summary Create Project Role
|
|
3966
|
+
* @param {string} id
|
|
3967
|
+
* @param {CreateRoleDto} createRoleDto
|
|
3968
|
+
* @param {*} [options] Override http request option.
|
|
3969
|
+
* @throws {RequiredError}
|
|
3970
|
+
* @memberof ProjectApi
|
|
3971
|
+
*/
|
|
3972
|
+
projectControllerCreateProjectRole(id, createRoleDto, options) {
|
|
3973
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerCreateProjectRole(id, createRoleDto, options).then((request) => request(this.axios, this.basePath));
|
|
3974
|
+
}
|
|
3975
|
+
/**
|
|
3976
|
+
*
|
|
3977
|
+
* @summary Delete machine instances by ids
|
|
3978
|
+
* @param {string} projectId
|
|
3979
|
+
* @param {*} [options] Override http request option.
|
|
3980
|
+
* @throws {RequiredError}
|
|
3981
|
+
* @memberof ProjectApi
|
|
3982
|
+
*/
|
|
3983
|
+
projectControllerDeleteMachineInstance(projectId, options) {
|
|
3984
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerDeleteMachineInstance(projectId, options).then((request) => request(this.axios, this.basePath));
|
|
3985
|
+
}
|
|
3986
|
+
/**
|
|
3987
|
+
*
|
|
3988
|
+
* @summary Delete project by id
|
|
3989
|
+
* @param {string} id
|
|
3990
|
+
* @param {*} [options] Override http request option.
|
|
3991
|
+
* @throws {RequiredError}
|
|
3992
|
+
* @memberof ProjectApi
|
|
3993
|
+
*/
|
|
3994
|
+
projectControllerDeleteProjectById(id, options) {
|
|
3995
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerDeleteProjectById(id, options).then((request) => request(this.axios, this.basePath));
|
|
3996
|
+
}
|
|
3997
|
+
/**
|
|
3998
|
+
*
|
|
3999
|
+
* @summary Delete Project Role
|
|
4000
|
+
* @param {string} id
|
|
4001
|
+
* @param {number} roleId
|
|
4002
|
+
* @param {*} [options] Override http request option.
|
|
4003
|
+
* @throws {RequiredError}
|
|
4004
|
+
* @memberof ProjectApi
|
|
4005
|
+
*/
|
|
4006
|
+
projectControllerDeleteProjectRole(id, roleId, options) {
|
|
4007
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerDeleteProjectRole(id, roleId, options).then((request) => request(this.axios, this.basePath));
|
|
4008
|
+
}
|
|
4009
|
+
/**
|
|
4010
|
+
*
|
|
4011
|
+
* @summary Get all project roles
|
|
4012
|
+
* @param {string} id
|
|
4013
|
+
* @param {number} [page]
|
|
4014
|
+
* @param {number} [limit]
|
|
4015
|
+
* @param {string} [column]
|
|
4016
|
+
* @param {ProjectControllerGetAllProjectRolesDirectionEnum} [direction]
|
|
4017
|
+
* @param {*} [options] Override http request option.
|
|
4018
|
+
* @throws {RequiredError}
|
|
4019
|
+
* @memberof ProjectApi
|
|
4020
|
+
*/
|
|
4021
|
+
projectControllerGetAllProjectRoles(id, page, limit, column, direction, options) {
|
|
4022
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerGetAllProjectRoles(id, page, limit, column, direction, options).then((request) => request(this.axios, this.basePath));
|
|
4023
|
+
}
|
|
4024
|
+
/**
|
|
4025
|
+
*
|
|
4026
|
+
* @summary Get all projects
|
|
4027
|
+
* @param {number} [page]
|
|
4028
|
+
* @param {number} [limit]
|
|
4029
|
+
* @param {string} [column]
|
|
4030
|
+
* @param {ProjectControllerGetAllProjectsDirectionEnum} [direction]
|
|
4031
|
+
* @param {*} [options] Override http request option.
|
|
4032
|
+
* @throws {RequiredError}
|
|
4033
|
+
* @memberof ProjectApi
|
|
4034
|
+
*/
|
|
4035
|
+
projectControllerGetAllProjects(page, limit, column, direction, options) {
|
|
4036
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerGetAllProjects(page, limit, column, direction, options).then((request) => request(this.axios, this.basePath));
|
|
4037
|
+
}
|
|
4038
|
+
/**
|
|
4039
|
+
*
|
|
4040
|
+
* @summary Get all team members of project
|
|
4041
|
+
* @param {string} id
|
|
4042
|
+
* @param {number} [page]
|
|
4043
|
+
* @param {number} [limit]
|
|
4044
|
+
* @param {string} [column]
|
|
4045
|
+
* @param {ProjectControllerGetAllTeamMembersOfProjectDirectionEnum} [direction]
|
|
4046
|
+
* @param {Array<string>} [teamMemberStatus]
|
|
4047
|
+
* @param {Array<number>} [roleIds]
|
|
4048
|
+
* @param {*} [options] Override http request option.
|
|
4049
|
+
* @throws {RequiredError}
|
|
4050
|
+
* @memberof ProjectApi
|
|
4051
|
+
*/
|
|
4052
|
+
projectControllerGetAllTeamMembersOfProject(id, page, limit, column, direction, teamMemberStatus, roleIds, options) {
|
|
4053
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerGetAllTeamMembersOfProject(id, page, limit, column, direction, teamMemberStatus, roleIds, options).then((request) => request(this.axios, this.basePath));
|
|
4054
|
+
}
|
|
4055
|
+
/**
|
|
4056
|
+
*
|
|
4057
|
+
* @summary Get running status of instances.
|
|
4058
|
+
* @param {string} projectId
|
|
4059
|
+
* @param {*} [options] Override http request option.
|
|
4060
|
+
* @throws {RequiredError}
|
|
4061
|
+
* @memberof ProjectApi
|
|
4062
|
+
*/
|
|
4063
|
+
projectControllerGetInstanceRunningStatus(projectId, options) {
|
|
4064
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerGetInstanceRunningStatus(projectId, options).then((request) => request(this.axios, this.basePath));
|
|
4065
|
+
}
|
|
4066
|
+
/**
|
|
4067
|
+
*
|
|
4068
|
+
* @summary Fetch last 5 notifications
|
|
4069
|
+
* @param {string} projectId
|
|
4070
|
+
* @param {*} [options] Override http request option.
|
|
4071
|
+
* @throws {RequiredError}
|
|
4072
|
+
* @memberof ProjectApi
|
|
4073
|
+
*/
|
|
4074
|
+
projectControllerGetLastFiveNotifications(projectId, options) {
|
|
4075
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerGetLastFiveNotifications(projectId, options).then((request) => request(this.axios, this.basePath));
|
|
4076
|
+
}
|
|
4077
|
+
/**
|
|
4078
|
+
*
|
|
4079
|
+
* @summary Get machine id matching instances.
|
|
4080
|
+
* @param {string} projectId
|
|
4081
|
+
* @param {*} [options] Override http request option.
|
|
4082
|
+
* @throws {RequiredError}
|
|
4083
|
+
* @memberof ProjectApi
|
|
4084
|
+
*/
|
|
4085
|
+
projectControllerGetMachineInstanceByImageId(projectId, options) {
|
|
4086
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerGetMachineInstanceByImageId(projectId, options).then((request) => request(this.axios, this.basePath));
|
|
4087
|
+
}
|
|
4088
|
+
/**
|
|
4089
|
+
*
|
|
4090
|
+
* @summary Get all machineInstances with count
|
|
4091
|
+
* @param {string} projectId
|
|
4092
|
+
* @param {number} page
|
|
4093
|
+
* @param {number} limit
|
|
4094
|
+
* @param {*} [options] Override http request option.
|
|
4095
|
+
* @throws {RequiredError}
|
|
4096
|
+
* @memberof ProjectApi
|
|
4097
|
+
*/
|
|
4098
|
+
projectControllerGetMachineInstanceByUserId(projectId, page, limit, options) {
|
|
4099
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerGetMachineInstanceByUserId(projectId, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
4100
|
+
}
|
|
4101
|
+
/**
|
|
4102
|
+
*
|
|
4103
|
+
* @summary Get project by id
|
|
4104
|
+
* @param {string} id
|
|
4105
|
+
* @param {*} [options] Override http request option.
|
|
4106
|
+
* @throws {RequiredError}
|
|
4107
|
+
* @memberof ProjectApi
|
|
4108
|
+
*/
|
|
4109
|
+
projectControllerGetProjectById(id, options) {
|
|
4110
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerGetProjectById(id, options).then((request) => request(this.axios, this.basePath));
|
|
4111
|
+
}
|
|
4112
|
+
/**
|
|
4113
|
+
*
|
|
4114
|
+
* @summary Get project role by id
|
|
4115
|
+
* @param {string} id
|
|
4116
|
+
* @param {number} roleId
|
|
4117
|
+
* @param {*} [options] Override http request option.
|
|
4118
|
+
* @throws {RequiredError}
|
|
4119
|
+
* @memberof ProjectApi
|
|
4120
|
+
*/
|
|
4121
|
+
projectControllerGetProjectRoleById(id, roleId, options) {
|
|
4122
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerGetProjectRoleById(id, roleId, options).then((request) => request(this.axios, this.basePath));
|
|
4123
|
+
}
|
|
4124
|
+
/**
|
|
4125
|
+
*
|
|
4126
|
+
* @summary Get user project role
|
|
4127
|
+
* @param {string} id
|
|
4128
|
+
* @param {*} [options] Override http request option.
|
|
4129
|
+
* @throws {RequiredError}
|
|
4130
|
+
* @memberof ProjectApi
|
|
4131
|
+
*/
|
|
4132
|
+
projectControllerGetUserProjectRole(id, options) {
|
|
4133
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerGetUserProjectRole(id, options).then((request) => request(this.axios, this.basePath));
|
|
4134
|
+
}
|
|
4135
|
+
/**
|
|
4136
|
+
*
|
|
4137
|
+
* @summary Mark read
|
|
4138
|
+
* @param {string} projectId
|
|
4139
|
+
* @param {object} body
|
|
4140
|
+
* @param {*} [options] Override http request option.
|
|
4141
|
+
* @throws {RequiredError}
|
|
4142
|
+
* @memberof ProjectApi
|
|
4143
|
+
*/
|
|
4144
|
+
projectControllerMarkNotificationsAsRead(projectId, body, options) {
|
|
4145
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerMarkNotificationsAsRead(projectId, body, options).then((request) => request(this.axios, this.basePath));
|
|
4146
|
+
}
|
|
4147
|
+
/**
|
|
4148
|
+
*
|
|
4149
|
+
* @summary Update project by id
|
|
4150
|
+
* @param {string} id
|
|
4151
|
+
* @param {UpdateProjectByIdRequest} updateProjectByIdRequest
|
|
4152
|
+
* @param {*} [options] Override http request option.
|
|
4153
|
+
* @throws {RequiredError}
|
|
4154
|
+
* @memberof ProjectApi
|
|
4155
|
+
*/
|
|
4156
|
+
projectControllerUpdateProjectById(id, updateProjectByIdRequest, options) {
|
|
4157
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerUpdateProjectById(id, updateProjectByIdRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4158
|
+
}
|
|
4159
|
+
/**
|
|
4160
|
+
*
|
|
4161
|
+
* @summary Update project role by id
|
|
4162
|
+
* @param {string} id
|
|
4163
|
+
* @param {number} roleId
|
|
4164
|
+
* @param {UpdateRoleByIdDto} updateRoleByIdDto
|
|
4165
|
+
* @param {*} [options] Override http request option.
|
|
4166
|
+
* @throws {RequiredError}
|
|
4167
|
+
* @memberof ProjectApi
|
|
4168
|
+
*/
|
|
4169
|
+
projectControllerUpdateProjectRoleById(id, roleId, updateRoleByIdDto, options) {
|
|
4170
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerUpdateProjectRoleById(id, roleId, updateRoleByIdDto, options).then((request) => request(this.axios, this.basePath));
|
|
4171
|
+
}
|
|
4172
|
+
/**
|
|
4173
|
+
*
|
|
4174
|
+
* @summary Update Machine Instance Running Status
|
|
4175
|
+
* @param {object} body
|
|
4176
|
+
* @param {*} [options] Override http request option.
|
|
4177
|
+
* @throws {RequiredError}
|
|
4178
|
+
* @memberof ProjectApi
|
|
4179
|
+
*/
|
|
4180
|
+
projectControllerUpdateRunningStatus(body, options) {
|
|
4181
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerUpdateRunningStatus(body, options).then((request) => request(this.axios, this.basePath));
|
|
4182
|
+
}
|
|
4183
|
+
/**
|
|
4184
|
+
*
|
|
4185
|
+
* @summary Update team member
|
|
4186
|
+
* @param {string} id
|
|
4187
|
+
* @param {string} teamMemberId
|
|
4188
|
+
* @param {UpdateTeamMemberRequestDTO} updateTeamMemberRequestDTO
|
|
4189
|
+
* @param {*} [options] Override http request option.
|
|
4190
|
+
* @throws {RequiredError}
|
|
4191
|
+
* @memberof ProjectApi
|
|
4192
|
+
*/
|
|
4193
|
+
projectControllerUpdateTeamMemberRole(id, teamMemberId, updateTeamMemberRequestDTO, options) {
|
|
4194
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerUpdateTeamMemberRole(id, teamMemberId, updateTeamMemberRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
4195
|
+
}
|
|
4196
|
+
/**
|
|
4197
|
+
*
|
|
4198
|
+
* @summary Join project
|
|
4199
|
+
* @param {UpdateTeamMemberStatusRequestDTO} updateTeamMemberStatusRequestDTO
|
|
4200
|
+
* @param {*} [options] Override http request option.
|
|
4201
|
+
* @throws {RequiredError}
|
|
4202
|
+
* @memberof ProjectApi
|
|
4203
|
+
*/
|
|
4204
|
+
projectControllerUpdateTeamMemberStatus(updateTeamMemberStatusRequestDTO, options) {
|
|
4205
|
+
return (0, exports.ProjectApiFp)(this.configuration).projectControllerUpdateTeamMemberStatus(updateTeamMemberStatusRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
4206
|
+
}
|
|
4207
|
+
}
|
|
4208
|
+
exports.ProjectApi = ProjectApi;
|
|
4209
|
+
/**
|
|
4210
|
+
* @export
|
|
4211
|
+
*/
|
|
4212
|
+
exports.ProjectControllerGetAllProjectRolesDirectionEnum = {
|
|
4213
|
+
Asc: 'ASC',
|
|
4214
|
+
Desc: 'DESC'
|
|
4215
|
+
};
|
|
4216
|
+
/**
|
|
4217
|
+
* @export
|
|
4218
|
+
*/
|
|
4219
|
+
exports.ProjectControllerGetAllProjectsDirectionEnum = {
|
|
4220
|
+
Asc: 'ASC',
|
|
4221
|
+
Desc: 'DESC'
|
|
4222
|
+
};
|
|
4223
|
+
/**
|
|
4224
|
+
* @export
|
|
4225
|
+
*/
|
|
4226
|
+
exports.ProjectControllerGetAllTeamMembersOfProjectDirectionEnum = {
|
|
4227
|
+
Asc: 'ASC',
|
|
4228
|
+
Desc: 'DESC'
|
|
4229
|
+
};
|
|
4230
|
+
/**
|
|
4231
|
+
* UserApi - axios parameter creator
|
|
4232
|
+
* @export
|
|
4233
|
+
*/
|
|
4234
|
+
const UserApiAxiosParamCreator = function (configuration) {
|
|
4235
|
+
return {
|
|
4236
|
+
/**
|
|
4237
|
+
*
|
|
4238
|
+
* @summary Get users listing
|
|
4239
|
+
* @param {number} [page]
|
|
4240
|
+
* @param {number} [limit]
|
|
4241
|
+
* @param {string} [column]
|
|
4242
|
+
* @param {UserControllerFindDirectionEnum} [direction]
|
|
4243
|
+
* @param {UserControllerFindTypeEnum} [type]
|
|
4244
|
+
* @param {*} [options] Override http request option.
|
|
4245
|
+
* @throws {RequiredError}
|
|
4246
|
+
*/
|
|
4247
|
+
userControllerFind: (page_1, limit_1, column_1, direction_1, type_1, ...args_1) => __awaiter(this, [page_1, limit_1, column_1, direction_1, type_1, ...args_1], void 0, function* (page, limit, column, direction, type, options = {}) {
|
|
4248
|
+
const localVarPath = `/users`;
|
|
4249
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4250
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4251
|
+
let baseOptions;
|
|
4252
|
+
if (configuration) {
|
|
4253
|
+
baseOptions = configuration.baseOptions;
|
|
4254
|
+
}
|
|
4255
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4256
|
+
const localVarHeaderParameter = {};
|
|
4257
|
+
const localVarQueryParameter = {};
|
|
4258
|
+
if (page !== undefined) {
|
|
4259
|
+
localVarQueryParameter['page'] = page;
|
|
4260
|
+
}
|
|
4261
|
+
if (limit !== undefined) {
|
|
4262
|
+
localVarQueryParameter['limit'] = limit;
|
|
4263
|
+
}
|
|
4264
|
+
if (column !== undefined) {
|
|
4265
|
+
localVarQueryParameter['column'] = column;
|
|
4266
|
+
}
|
|
4267
|
+
if (direction !== undefined) {
|
|
4268
|
+
localVarQueryParameter['direction'] = direction;
|
|
4269
|
+
}
|
|
4270
|
+
if (type !== undefined) {
|
|
4271
|
+
localVarQueryParameter['type'] = type;
|
|
4272
|
+
}
|
|
4273
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4274
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4275
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4276
|
+
return {
|
|
4277
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4278
|
+
options: localVarRequestOptions,
|
|
4279
|
+
};
|
|
4280
|
+
}),
|
|
4281
|
+
/**
|
|
4282
|
+
*
|
|
4283
|
+
* @summary Get user by id
|
|
4284
|
+
* @param {number} id
|
|
4285
|
+
* @param {*} [options] Override http request option.
|
|
4286
|
+
* @throws {RequiredError}
|
|
4287
|
+
*/
|
|
4288
|
+
userControllerGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
4289
|
+
// verify required parameter 'id' is not null or undefined
|
|
4290
|
+
(0, common_1.assertParamExists)('userControllerGet', 'id', id);
|
|
4291
|
+
const localVarPath = `/user/{id}`
|
|
4292
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4293
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4294
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4295
|
+
let baseOptions;
|
|
4296
|
+
if (configuration) {
|
|
4297
|
+
baseOptions = configuration.baseOptions;
|
|
4298
|
+
}
|
|
4299
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4300
|
+
const localVarHeaderParameter = {};
|
|
4301
|
+
const localVarQueryParameter = {};
|
|
4302
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4303
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4304
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4305
|
+
return {
|
|
4306
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4307
|
+
options: localVarRequestOptions,
|
|
4308
|
+
};
|
|
4309
|
+
}),
|
|
4310
|
+
/**
|
|
4311
|
+
*
|
|
4312
|
+
* @summary Get current user details
|
|
4313
|
+
* @param {*} [options] Override http request option.
|
|
4314
|
+
* @throws {RequiredError}
|
|
4315
|
+
*/
|
|
4316
|
+
userControllerGetMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4317
|
+
const localVarPath = `/user/me`;
|
|
4318
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4319
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4320
|
+
let baseOptions;
|
|
4321
|
+
if (configuration) {
|
|
4322
|
+
baseOptions = configuration.baseOptions;
|
|
4323
|
+
}
|
|
4324
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4325
|
+
const localVarHeaderParameter = {};
|
|
4326
|
+
const localVarQueryParameter = {};
|
|
4327
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4328
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4329
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4330
|
+
return {
|
|
4331
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4332
|
+
options: localVarRequestOptions,
|
|
4333
|
+
};
|
|
4334
|
+
}),
|
|
4335
|
+
/**
|
|
4336
|
+
*
|
|
4337
|
+
* @summary Check if user is registered
|
|
4338
|
+
* @param {string} email
|
|
4339
|
+
* @param {*} [options] Override http request option.
|
|
4340
|
+
* @throws {RequiredError}
|
|
4341
|
+
*/
|
|
4342
|
+
userControllerIsRegistered: (email_1, ...args_1) => __awaiter(this, [email_1, ...args_1], void 0, function* (email, options = {}) {
|
|
4343
|
+
// verify required parameter 'email' is not null or undefined
|
|
4344
|
+
(0, common_1.assertParamExists)('userControllerIsRegistered', 'email', email);
|
|
4345
|
+
const localVarPath = `/user/{email}/registered`
|
|
4346
|
+
.replace(`{${"email"}}`, encodeURIComponent(String(email)));
|
|
4347
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4348
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4349
|
+
let baseOptions;
|
|
4350
|
+
if (configuration) {
|
|
4351
|
+
baseOptions = configuration.baseOptions;
|
|
4352
|
+
}
|
|
4353
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4354
|
+
const localVarHeaderParameter = {};
|
|
4355
|
+
const localVarQueryParameter = {};
|
|
4356
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4357
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4358
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4359
|
+
return {
|
|
4360
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4361
|
+
options: localVarRequestOptions,
|
|
4362
|
+
};
|
|
4363
|
+
}),
|
|
4364
|
+
/**
|
|
4365
|
+
*
|
|
4366
|
+
* @summary Update user data
|
|
4367
|
+
* @param {UpdateUserRequestDTO} updateUserRequestDTO
|
|
4368
|
+
* @param {*} [options] Override http request option.
|
|
4369
|
+
* @throws {RequiredError}
|
|
4370
|
+
*/
|
|
4371
|
+
userControllerUpdate: (updateUserRequestDTO_1, ...args_1) => __awaiter(this, [updateUserRequestDTO_1, ...args_1], void 0, function* (updateUserRequestDTO, options = {}) {
|
|
4372
|
+
// verify required parameter 'updateUserRequestDTO' is not null or undefined
|
|
4373
|
+
(0, common_1.assertParamExists)('userControllerUpdate', 'updateUserRequestDTO', updateUserRequestDTO);
|
|
4374
|
+
const localVarPath = `/user/update`;
|
|
4375
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4376
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4377
|
+
let baseOptions;
|
|
4378
|
+
if (configuration) {
|
|
4379
|
+
baseOptions = configuration.baseOptions;
|
|
4380
|
+
}
|
|
4381
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4382
|
+
const localVarHeaderParameter = {};
|
|
4383
|
+
const localVarQueryParameter = {};
|
|
4384
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4385
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4386
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4387
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4388
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserRequestDTO, localVarRequestOptions, configuration);
|
|
4389
|
+
return {
|
|
4390
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4391
|
+
options: localVarRequestOptions,
|
|
4392
|
+
};
|
|
4393
|
+
}),
|
|
4394
|
+
/**
|
|
4395
|
+
*
|
|
4396
|
+
* @summary Update user settings
|
|
4397
|
+
* @param {UpdateUserSettingsRequestDTO} updateUserSettingsRequestDTO
|
|
4398
|
+
* @param {*} [options] Override http request option.
|
|
4399
|
+
* @throws {RequiredError}
|
|
4400
|
+
*/
|
|
4401
|
+
userSettingsControllerUpdate: (updateUserSettingsRequestDTO_1, ...args_1) => __awaiter(this, [updateUserSettingsRequestDTO_1, ...args_1], void 0, function* (updateUserSettingsRequestDTO, options = {}) {
|
|
4402
|
+
// verify required parameter 'updateUserSettingsRequestDTO' is not null or undefined
|
|
4403
|
+
(0, common_1.assertParamExists)('userSettingsControllerUpdate', 'updateUserSettingsRequestDTO', updateUserSettingsRequestDTO);
|
|
4404
|
+
const localVarPath = `/user/settings`;
|
|
4405
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4406
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4407
|
+
let baseOptions;
|
|
4408
|
+
if (configuration) {
|
|
4409
|
+
baseOptions = configuration.baseOptions;
|
|
4410
|
+
}
|
|
4411
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
4412
|
+
const localVarHeaderParameter = {};
|
|
4413
|
+
const localVarQueryParameter = {};
|
|
4414
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4415
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4416
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4417
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4418
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserSettingsRequestDTO, localVarRequestOptions, configuration);
|
|
4419
|
+
return {
|
|
4420
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4421
|
+
options: localVarRequestOptions,
|
|
4422
|
+
};
|
|
4423
|
+
}),
|
|
4424
|
+
};
|
|
4425
|
+
};
|
|
4426
|
+
exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
|
|
4427
|
+
/**
|
|
4428
|
+
* UserApi - functional programming interface
|
|
4429
|
+
* @export
|
|
4430
|
+
*/
|
|
4431
|
+
const UserApiFp = function (configuration) {
|
|
4432
|
+
const localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
|
|
4433
|
+
return {
|
|
4434
|
+
/**
|
|
4435
|
+
*
|
|
4436
|
+
* @summary Get users listing
|
|
4437
|
+
* @param {number} [page]
|
|
4438
|
+
* @param {number} [limit]
|
|
4439
|
+
* @param {string} [column]
|
|
4440
|
+
* @param {UserControllerFindDirectionEnum} [direction]
|
|
4441
|
+
* @param {UserControllerFindTypeEnum} [type]
|
|
4442
|
+
* @param {*} [options] Override http request option.
|
|
4443
|
+
* @throws {RequiredError}
|
|
4444
|
+
*/
|
|
4445
|
+
userControllerFind(page, limit, column, direction, type, options) {
|
|
4446
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4447
|
+
var _a, _b, _c;
|
|
4448
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userControllerFind(page, limit, column, direction, type, options);
|
|
4449
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4450
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.userControllerFind']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4451
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4452
|
+
});
|
|
4453
|
+
},
|
|
4454
|
+
/**
|
|
4455
|
+
*
|
|
4456
|
+
* @summary Get user by id
|
|
4457
|
+
* @param {number} id
|
|
4458
|
+
* @param {*} [options] Override http request option.
|
|
4459
|
+
* @throws {RequiredError}
|
|
4460
|
+
*/
|
|
4461
|
+
userControllerGet(id, options) {
|
|
4462
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4463
|
+
var _a, _b, _c;
|
|
4464
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userControllerGet(id, options);
|
|
4465
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4466
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.userControllerGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4467
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4468
|
+
});
|
|
4469
|
+
},
|
|
4470
|
+
/**
|
|
4471
|
+
*
|
|
4472
|
+
* @summary Get current user details
|
|
4473
|
+
* @param {*} [options] Override http request option.
|
|
4474
|
+
* @throws {RequiredError}
|
|
4475
|
+
*/
|
|
4476
|
+
userControllerGetMe(options) {
|
|
4477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4478
|
+
var _a, _b, _c;
|
|
4479
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userControllerGetMe(options);
|
|
4480
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4481
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.userControllerGetMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4482
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4483
|
+
});
|
|
4484
|
+
},
|
|
4485
|
+
/**
|
|
4486
|
+
*
|
|
4487
|
+
* @summary Check if user is registered
|
|
4488
|
+
* @param {string} email
|
|
4489
|
+
* @param {*} [options] Override http request option.
|
|
4490
|
+
* @throws {RequiredError}
|
|
4491
|
+
*/
|
|
4492
|
+
userControllerIsRegistered(email, options) {
|
|
4493
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4494
|
+
var _a, _b, _c;
|
|
4495
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userControllerIsRegistered(email, options);
|
|
4496
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4497
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.userControllerIsRegistered']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4498
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4499
|
+
});
|
|
4500
|
+
},
|
|
4501
|
+
/**
|
|
4502
|
+
*
|
|
4503
|
+
* @summary Update user data
|
|
4504
|
+
* @param {UpdateUserRequestDTO} updateUserRequestDTO
|
|
4505
|
+
* @param {*} [options] Override http request option.
|
|
4506
|
+
* @throws {RequiredError}
|
|
4507
|
+
*/
|
|
4508
|
+
userControllerUpdate(updateUserRequestDTO, options) {
|
|
4509
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4510
|
+
var _a, _b, _c;
|
|
4511
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userControllerUpdate(updateUserRequestDTO, options);
|
|
4512
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4513
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.userControllerUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4514
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4515
|
+
});
|
|
4516
|
+
},
|
|
4517
|
+
/**
|
|
4518
|
+
*
|
|
4519
|
+
* @summary Update user settings
|
|
4520
|
+
* @param {UpdateUserSettingsRequestDTO} updateUserSettingsRequestDTO
|
|
4521
|
+
* @param {*} [options] Override http request option.
|
|
4522
|
+
* @throws {RequiredError}
|
|
4523
|
+
*/
|
|
4524
|
+
userSettingsControllerUpdate(updateUserSettingsRequestDTO, options) {
|
|
4525
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4526
|
+
var _a, _b, _c;
|
|
4527
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userSettingsControllerUpdate(updateUserSettingsRequestDTO, options);
|
|
4528
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4529
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.userSettingsControllerUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4530
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4531
|
+
});
|
|
4532
|
+
},
|
|
4533
|
+
};
|
|
4534
|
+
};
|
|
4535
|
+
exports.UserApiFp = UserApiFp;
|
|
4536
|
+
/**
|
|
4537
|
+
* UserApi - factory interface
|
|
4538
|
+
* @export
|
|
4539
|
+
*/
|
|
4540
|
+
const UserApiFactory = function (configuration, basePath, axios) {
|
|
4541
|
+
const localVarFp = (0, exports.UserApiFp)(configuration);
|
|
4542
|
+
return {
|
|
4543
|
+
/**
|
|
4544
|
+
*
|
|
4545
|
+
* @summary Get users listing
|
|
4546
|
+
* @param {number} [page]
|
|
4547
|
+
* @param {number} [limit]
|
|
4548
|
+
* @param {string} [column]
|
|
4549
|
+
* @param {UserControllerFindDirectionEnum} [direction]
|
|
4550
|
+
* @param {UserControllerFindTypeEnum} [type]
|
|
4551
|
+
* @param {*} [options] Override http request option.
|
|
4552
|
+
* @throws {RequiredError}
|
|
4553
|
+
*/
|
|
4554
|
+
userControllerFind(page, limit, column, direction, type, options) {
|
|
4555
|
+
return localVarFp.userControllerFind(page, limit, column, direction, type, options).then((request) => request(axios, basePath));
|
|
4556
|
+
},
|
|
4557
|
+
/**
|
|
4558
|
+
*
|
|
4559
|
+
* @summary Get user by id
|
|
4560
|
+
* @param {number} id
|
|
4561
|
+
* @param {*} [options] Override http request option.
|
|
4562
|
+
* @throws {RequiredError}
|
|
4563
|
+
*/
|
|
4564
|
+
userControllerGet(id, options) {
|
|
4565
|
+
return localVarFp.userControllerGet(id, options).then((request) => request(axios, basePath));
|
|
4566
|
+
},
|
|
4567
|
+
/**
|
|
4568
|
+
*
|
|
4569
|
+
* @summary Get current user details
|
|
4570
|
+
* @param {*} [options] Override http request option.
|
|
4571
|
+
* @throws {RequiredError}
|
|
4572
|
+
*/
|
|
4573
|
+
userControllerGetMe(options) {
|
|
4574
|
+
return localVarFp.userControllerGetMe(options).then((request) => request(axios, basePath));
|
|
4575
|
+
},
|
|
4576
|
+
/**
|
|
4577
|
+
*
|
|
4578
|
+
* @summary Check if user is registered
|
|
4579
|
+
* @param {string} email
|
|
4580
|
+
* @param {*} [options] Override http request option.
|
|
4581
|
+
* @throws {RequiredError}
|
|
4582
|
+
*/
|
|
4583
|
+
userControllerIsRegistered(email, options) {
|
|
4584
|
+
return localVarFp.userControllerIsRegistered(email, options).then((request) => request(axios, basePath));
|
|
4585
|
+
},
|
|
4586
|
+
/**
|
|
4587
|
+
*
|
|
4588
|
+
* @summary Update user data
|
|
4589
|
+
* @param {UpdateUserRequestDTO} updateUserRequestDTO
|
|
4590
|
+
* @param {*} [options] Override http request option.
|
|
4591
|
+
* @throws {RequiredError}
|
|
4592
|
+
*/
|
|
4593
|
+
userControllerUpdate(updateUserRequestDTO, options) {
|
|
4594
|
+
return localVarFp.userControllerUpdate(updateUserRequestDTO, options).then((request) => request(axios, basePath));
|
|
4595
|
+
},
|
|
4596
|
+
/**
|
|
4597
|
+
*
|
|
4598
|
+
* @summary Update user settings
|
|
4599
|
+
* @param {UpdateUserSettingsRequestDTO} updateUserSettingsRequestDTO
|
|
4600
|
+
* @param {*} [options] Override http request option.
|
|
4601
|
+
* @throws {RequiredError}
|
|
4602
|
+
*/
|
|
4603
|
+
userSettingsControllerUpdate(updateUserSettingsRequestDTO, options) {
|
|
4604
|
+
return localVarFp.userSettingsControllerUpdate(updateUserSettingsRequestDTO, options).then((request) => request(axios, basePath));
|
|
4605
|
+
},
|
|
4606
|
+
};
|
|
4607
|
+
};
|
|
4608
|
+
exports.UserApiFactory = UserApiFactory;
|
|
4609
|
+
/**
|
|
4610
|
+
* UserApi - object-oriented interface
|
|
4611
|
+
* @export
|
|
4612
|
+
* @class UserApi
|
|
4613
|
+
* @extends {BaseAPI}
|
|
4614
|
+
*/
|
|
4615
|
+
class UserApi extends base_1.BaseAPI {
|
|
4616
|
+
/**
|
|
4617
|
+
*
|
|
4618
|
+
* @summary Get users listing
|
|
4619
|
+
* @param {number} [page]
|
|
4620
|
+
* @param {number} [limit]
|
|
4621
|
+
* @param {string} [column]
|
|
4622
|
+
* @param {UserControllerFindDirectionEnum} [direction]
|
|
4623
|
+
* @param {UserControllerFindTypeEnum} [type]
|
|
4624
|
+
* @param {*} [options] Override http request option.
|
|
4625
|
+
* @throws {RequiredError}
|
|
4626
|
+
* @memberof UserApi
|
|
4627
|
+
*/
|
|
4628
|
+
userControllerFind(page, limit, column, direction, type, options) {
|
|
4629
|
+
return (0, exports.UserApiFp)(this.configuration).userControllerFind(page, limit, column, direction, type, options).then((request) => request(this.axios, this.basePath));
|
|
4630
|
+
}
|
|
4631
|
+
/**
|
|
4632
|
+
*
|
|
4633
|
+
* @summary Get user by id
|
|
4634
|
+
* @param {number} id
|
|
4635
|
+
* @param {*} [options] Override http request option.
|
|
4636
|
+
* @throws {RequiredError}
|
|
4637
|
+
* @memberof UserApi
|
|
4638
|
+
*/
|
|
4639
|
+
userControllerGet(id, options) {
|
|
4640
|
+
return (0, exports.UserApiFp)(this.configuration).userControllerGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
4641
|
+
}
|
|
4642
|
+
/**
|
|
4643
|
+
*
|
|
4644
|
+
* @summary Get current user details
|
|
4645
|
+
* @param {*} [options] Override http request option.
|
|
4646
|
+
* @throws {RequiredError}
|
|
4647
|
+
* @memberof UserApi
|
|
4648
|
+
*/
|
|
4649
|
+
userControllerGetMe(options) {
|
|
4650
|
+
return (0, exports.UserApiFp)(this.configuration).userControllerGetMe(options).then((request) => request(this.axios, this.basePath));
|
|
4651
|
+
}
|
|
4652
|
+
/**
|
|
4653
|
+
*
|
|
4654
|
+
* @summary Check if user is registered
|
|
4655
|
+
* @param {string} email
|
|
4656
|
+
* @param {*} [options] Override http request option.
|
|
4657
|
+
* @throws {RequiredError}
|
|
4658
|
+
* @memberof UserApi
|
|
4659
|
+
*/
|
|
4660
|
+
userControllerIsRegistered(email, options) {
|
|
4661
|
+
return (0, exports.UserApiFp)(this.configuration).userControllerIsRegistered(email, options).then((request) => request(this.axios, this.basePath));
|
|
4662
|
+
}
|
|
4663
|
+
/**
|
|
4664
|
+
*
|
|
4665
|
+
* @summary Update user data
|
|
4666
|
+
* @param {UpdateUserRequestDTO} updateUserRequestDTO
|
|
4667
|
+
* @param {*} [options] Override http request option.
|
|
4668
|
+
* @throws {RequiredError}
|
|
4669
|
+
* @memberof UserApi
|
|
4670
|
+
*/
|
|
4671
|
+
userControllerUpdate(updateUserRequestDTO, options) {
|
|
4672
|
+
return (0, exports.UserApiFp)(this.configuration).userControllerUpdate(updateUserRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
4673
|
+
}
|
|
4674
|
+
/**
|
|
4675
|
+
*
|
|
4676
|
+
* @summary Update user settings
|
|
4677
|
+
* @param {UpdateUserSettingsRequestDTO} updateUserSettingsRequestDTO
|
|
4678
|
+
* @param {*} [options] Override http request option.
|
|
4679
|
+
* @throws {RequiredError}
|
|
4680
|
+
* @memberof UserApi
|
|
4681
|
+
*/
|
|
4682
|
+
userSettingsControllerUpdate(updateUserSettingsRequestDTO, options) {
|
|
4683
|
+
return (0, exports.UserApiFp)(this.configuration).userSettingsControllerUpdate(updateUserSettingsRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
4684
|
+
}
|
|
4685
|
+
}
|
|
4686
|
+
exports.UserApi = UserApi;
|
|
4687
|
+
/**
|
|
4688
|
+
* @export
|
|
4689
|
+
*/
|
|
4690
|
+
exports.UserControllerFindDirectionEnum = {
|
|
4691
|
+
Asc: 'ASC',
|
|
4692
|
+
Desc: 'DESC'
|
|
4693
|
+
};
|
|
4694
|
+
/**
|
|
4695
|
+
* @export
|
|
4696
|
+
*/
|
|
4697
|
+
exports.UserControllerFindTypeEnum = {
|
|
4698
|
+
User: 'USER',
|
|
4699
|
+
Admin: 'ADMIN'
|
|
4700
|
+
};
|