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