online-compiler-widget 0.0.1

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.
Files changed (67) hide show
  1. package/FileStorage/obj/FileStorage.csproj.EntityFrameworkCore.targets +28 -0
  2. package/README.md +1 -0
  3. package/eslint.config.js +26 -0
  4. package/index.html +13 -0
  5. package/openapitools.json +7 -0
  6. package/package.json +36 -0
  7. package/pnpm-workspace.yaml +2 -0
  8. package/public/vite.svg +1 -0
  9. package/src/App.css +49 -0
  10. package/src/App.tsx +84 -0
  11. package/src/api/.openapi-generator/FILES +25 -0
  12. package/src/api/.openapi-generator/VERSION +1 -0
  13. package/src/api/.openapi-generator-ignore +23 -0
  14. package/src/api/api.ts +1312 -0
  15. package/src/api/base.ts +62 -0
  16. package/src/api/common.ts +113 -0
  17. package/src/api/configuration.ts +121 -0
  18. package/src/api/docs/CompilationError.md +26 -0
  19. package/src/api/docs/CompileRequest.md +22 -0
  20. package/src/api/docs/CompileResult.md +28 -0
  21. package/src/api/docs/CompilerApi.md +263 -0
  22. package/src/api/docs/CreateFileDto.md +22 -0
  23. package/src/api/docs/CreateProjectRequest.md +20 -0
  24. package/src/api/docs/FileApi.md +274 -0
  25. package/src/api/docs/ProcessStatus.md +28 -0
  26. package/src/api/docs/ProjectApi.md +362 -0
  27. package/src/api/docs/ProjectInfo.md +24 -0
  28. package/src/api/docs/ProjectStats.md +28 -0
  29. package/src/api/docs/RenameFileDto.md +20 -0
  30. package/src/api/docs/RenameProjectRequest.md +20 -0
  31. package/src/api/docs/RunRequest.md +24 -0
  32. package/src/api/docs/RunResult.md +30 -0
  33. package/src/api/docs/RunningProjectInfo.md +26 -0
  34. package/src/api/docs/UpdateFileDto.md +20 -0
  35. package/src/api/git_push.sh +57 -0
  36. package/src/api/index.ts +18 -0
  37. package/src/assets/Badge.svg +17 -0
  38. package/src/assets/closeIcon.svg +20 -0
  39. package/src/assets/documentIcon.svg +11 -0
  40. package/src/assets/history.svg +11 -0
  41. package/src/assets/output.svg +12 -0
  42. package/src/assets/plus.svg +20 -0
  43. package/src/assets/react.svg +1 -0
  44. package/src/assets/save-icon.svg +11 -0
  45. package/src/assets/shield.svg +10 -0
  46. package/src/assets/start.svg +11 -0
  47. package/src/assets/stop.svg +11 -0
  48. package/src/components/CompilerWidget.module.scss +169 -0
  49. package/src/components/CompilerWidget.tsx +279 -0
  50. package/src/components/FileExplorer.module.scss +372 -0
  51. package/src/components/FileExplorer.tsx +285 -0
  52. package/src/components/MonacoEditorWrapper.module.scss +29 -0
  53. package/src/components/MonacoEditorWrapper.tsx +74 -0
  54. package/src/components/OutputPanel.module.scss +123 -0
  55. package/src/components/OutputPanel.tsx +53 -0
  56. package/src/components/RunContainer.module.scss +150 -0
  57. package/src/components/RunContainer.tsx +34 -0
  58. package/src/hooks/useCompiler.ts +228 -0
  59. package/src/hooks/useInitialNodes.ts +0 -0
  60. package/src/index.css +78 -0
  61. package/src/main.tsx +7 -0
  62. package/src/types/EditorDocument.ts +8 -0
  63. package/swagger.json +1020 -0
  64. package/tsconfig.app.json +29 -0
  65. package/tsconfig.json +7 -0
  66. package/tsconfig.node.json +26 -0
  67. package/vite.config.ts +8 -0
package/src/api/api.ts ADDED
@@ -0,0 +1,1312 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CompilerWidgetApi
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from './configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
22
+ import type { RequestArgs } from './base';
23
+ // @ts-ignore
24
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
+
26
+ export interface CompilationError {
27
+ 'errorCode'?: string | null;
28
+ 'message'?: string | null;
29
+ 'startLine'?: number;
30
+ 'endLine'?: number;
31
+ }
32
+ export interface CompileRequest {
33
+ 'mainFile'?: string | null;
34
+ 'optimize'?: boolean;
35
+ }
36
+ export interface CompileResult {
37
+ 'success'?: boolean;
38
+ 'output'?: string | null;
39
+ 'errors'?: Array<CompilationError> | null;
40
+ 'projectId'?: string;
41
+ 'compiledAt'?: string;
42
+ }
43
+ export interface CreateFileDto {
44
+ 'name'?: string | null;
45
+ 'path'?: string | null;
46
+ }
47
+ export interface CreateProjectRequest {
48
+ 'name'?: string | null;
49
+ }
50
+ export interface ProcessStatus {
51
+ 'projectId'?: string;
52
+ 'isRunning'?: boolean;
53
+ 'processId'?: string | null;
54
+ 'startedAt'?: string | null;
55
+ 'uptime'?: string;
56
+ }
57
+ export interface ProjectInfo {
58
+ 'projectId'?: string;
59
+ 'name'?: string | null;
60
+ 'fileCount'?: number;
61
+ }
62
+ export interface ProjectStats {
63
+ 'projectId'?: string;
64
+ 'fileCount'?: number;
65
+ 'cSharpFiles'?: number;
66
+ 'jsFiles'?: number;
67
+ 'otherFiles'?: number;
68
+ }
69
+ export interface RenameFileDto {
70
+ 'name'?: string | null;
71
+ }
72
+ export interface RenameProjectRequest {
73
+ 'newName'?: string | null;
74
+ }
75
+ export interface RunRequest {
76
+ 'mainFile'?: string | null;
77
+ 'environmentVariables'?: { [key: string]: string; } | null;
78
+ 'timeoutSeconds'?: number | null;
79
+ }
80
+ export interface RunResult {
81
+ 'success'?: boolean;
82
+ 'output'?: string | null;
83
+ 'errors'?: Array<CompilationError> | null;
84
+ 'processId'?: string | null;
85
+ 'projectId'?: string;
86
+ 'startedAt'?: string;
87
+ }
88
+ export interface RunningProjectInfo {
89
+ 'projectId'?: string;
90
+ 'processId'?: string | null;
91
+ 'startedAt'?: string;
92
+ 'uptime'?: string;
93
+ }
94
+ export interface UpdateFileDto {
95
+ 'content'?: string | null;
96
+ }
97
+
98
+ /**
99
+ * CompilerApi - axios parameter creator
100
+ */
101
+ export const CompilerApiAxiosParamCreator = function (configuration?: Configuration) {
102
+ return {
103
+ /**
104
+ *
105
+ * @param {string} projectId
106
+ * @param {CompileRequest} [compileRequest]
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ apiCompileProjectProjectIdCompilePost: async (projectId: string, compileRequest?: CompileRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
111
+ // verify required parameter 'projectId' is not null or undefined
112
+ assertParamExists('apiCompileProjectProjectIdCompilePost', 'projectId', projectId)
113
+ const localVarPath = `/api/compile/project/{projectId}/compile`
114
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
116
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
117
+ let baseOptions;
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ }
121
+
122
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
123
+ const localVarHeaderParameter = {} as any;
124
+ const localVarQueryParameter = {} as any;
125
+
126
+
127
+
128
+ localVarHeaderParameter['Content-Type'] = 'application/json';
129
+
130
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
131
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
132
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
133
+ localVarRequestOptions.data = serializeDataIfNeeded(compileRequest, localVarRequestOptions, configuration)
134
+
135
+ return {
136
+ url: toPathString(localVarUrlObj),
137
+ options: localVarRequestOptions,
138
+ };
139
+ },
140
+ /**
141
+ *
142
+ * @param {string} projectId
143
+ * @param {RunRequest} [runRequest]
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ apiCompileProjectProjectIdRunPost: async (projectId: string, runRequest?: RunRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
148
+ // verify required parameter 'projectId' is not null or undefined
149
+ assertParamExists('apiCompileProjectProjectIdRunPost', 'projectId', projectId)
150
+ const localVarPath = `/api/compile/project/{projectId}/run`
151
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
152
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
154
+ let baseOptions;
155
+ if (configuration) {
156
+ baseOptions = configuration.baseOptions;
157
+ }
158
+
159
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
160
+ const localVarHeaderParameter = {} as any;
161
+ const localVarQueryParameter = {} as any;
162
+
163
+
164
+
165
+ localVarHeaderParameter['Content-Type'] = 'application/json';
166
+
167
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
168
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
169
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
170
+ localVarRequestOptions.data = serializeDataIfNeeded(runRequest, localVarRequestOptions, configuration)
171
+
172
+ return {
173
+ url: toPathString(localVarUrlObj),
174
+ options: localVarRequestOptions,
175
+ };
176
+ },
177
+ /**
178
+ *
179
+ * @param {string} projectId
180
+ * @param {*} [options] Override http request option.
181
+ * @throws {RequiredError}
182
+ */
183
+ apiCompileProjectProjectIdStatusGet: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
184
+ // verify required parameter 'projectId' is not null or undefined
185
+ assertParamExists('apiCompileProjectProjectIdStatusGet', 'projectId', projectId)
186
+ const localVarPath = `/api/compile/project/{projectId}/status`
187
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
188
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
189
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
190
+ let baseOptions;
191
+ if (configuration) {
192
+ baseOptions = configuration.baseOptions;
193
+ }
194
+
195
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
196
+ const localVarHeaderParameter = {} as any;
197
+ const localVarQueryParameter = {} as any;
198
+
199
+
200
+
201
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
202
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
203
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
204
+
205
+ return {
206
+ url: toPathString(localVarUrlObj),
207
+ options: localVarRequestOptions,
208
+ };
209
+ },
210
+ /**
211
+ *
212
+ * @param {string} projectId
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ apiCompileProjectProjectIdStopPost: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
217
+ // verify required parameter 'projectId' is not null or undefined
218
+ assertParamExists('apiCompileProjectProjectIdStopPost', 'projectId', projectId)
219
+ const localVarPath = `/api/compile/project/{projectId}/stop`
220
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
221
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
222
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
223
+ let baseOptions;
224
+ if (configuration) {
225
+ baseOptions = configuration.baseOptions;
226
+ }
227
+
228
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
229
+ const localVarHeaderParameter = {} as any;
230
+ const localVarQueryParameter = {} as any;
231
+
232
+
233
+
234
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
235
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
237
+
238
+ return {
239
+ url: toPathString(localVarUrlObj),
240
+ options: localVarRequestOptions,
241
+ };
242
+ },
243
+ /**
244
+ *
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ apiCompileRunningProjectsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
249
+ const localVarPath = `/api/compile/running-projects`;
250
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
251
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
252
+ let baseOptions;
253
+ if (configuration) {
254
+ baseOptions = configuration.baseOptions;
255
+ }
256
+
257
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
258
+ const localVarHeaderParameter = {} as any;
259
+ const localVarQueryParameter = {} as any;
260
+
261
+
262
+
263
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
264
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
265
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
266
+
267
+ return {
268
+ url: toPathString(localVarUrlObj),
269
+ options: localVarRequestOptions,
270
+ };
271
+ },
272
+ }
273
+ };
274
+
275
+ /**
276
+ * CompilerApi - functional programming interface
277
+ */
278
+ export const CompilerApiFp = function(configuration?: Configuration) {
279
+ const localVarAxiosParamCreator = CompilerApiAxiosParamCreator(configuration)
280
+ return {
281
+ /**
282
+ *
283
+ * @param {string} projectId
284
+ * @param {CompileRequest} [compileRequest]
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ */
288
+ async apiCompileProjectProjectIdCompilePost(projectId: string, compileRequest?: CompileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompileResult>> {
289
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCompileProjectProjectIdCompilePost(projectId, compileRequest, options);
290
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
291
+ const localVarOperationServerBasePath = operationServerMap['CompilerApi.apiCompileProjectProjectIdCompilePost']?.[localVarOperationServerIndex]?.url;
292
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
293
+ },
294
+ /**
295
+ *
296
+ * @param {string} projectId
297
+ * @param {RunRequest} [runRequest]
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ async apiCompileProjectProjectIdRunPost(projectId: string, runRequest?: RunRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunResult>> {
302
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCompileProjectProjectIdRunPost(projectId, runRequest, options);
303
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
304
+ const localVarOperationServerBasePath = operationServerMap['CompilerApi.apiCompileProjectProjectIdRunPost']?.[localVarOperationServerIndex]?.url;
305
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
306
+ },
307
+ /**
308
+ *
309
+ * @param {string} projectId
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ async apiCompileProjectProjectIdStatusGet(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProcessStatus>> {
314
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCompileProjectProjectIdStatusGet(projectId, options);
315
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
316
+ const localVarOperationServerBasePath = operationServerMap['CompilerApi.apiCompileProjectProjectIdStatusGet']?.[localVarOperationServerIndex]?.url;
317
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
318
+ },
319
+ /**
320
+ *
321
+ * @param {string} projectId
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ */
325
+ async apiCompileProjectProjectIdStopPost(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
326
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCompileProjectProjectIdStopPost(projectId, options);
327
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
328
+ const localVarOperationServerBasePath = operationServerMap['CompilerApi.apiCompileProjectProjectIdStopPost']?.[localVarOperationServerIndex]?.url;
329
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
330
+ },
331
+ /**
332
+ *
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ async apiCompileRunningProjectsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RunningProjectInfo>>> {
337
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCompileRunningProjectsGet(options);
338
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
339
+ const localVarOperationServerBasePath = operationServerMap['CompilerApi.apiCompileRunningProjectsGet']?.[localVarOperationServerIndex]?.url;
340
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
341
+ },
342
+ }
343
+ };
344
+
345
+ /**
346
+ * CompilerApi - factory interface
347
+ */
348
+ export const CompilerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
349
+ const localVarFp = CompilerApiFp(configuration)
350
+ return {
351
+ /**
352
+ *
353
+ * @param {string} projectId
354
+ * @param {CompileRequest} [compileRequest]
355
+ * @param {*} [options] Override http request option.
356
+ * @throws {RequiredError}
357
+ */
358
+ apiCompileProjectProjectIdCompilePost(projectId: string, compileRequest?: CompileRequest, options?: RawAxiosRequestConfig): AxiosPromise<CompileResult> {
359
+ return localVarFp.apiCompileProjectProjectIdCompilePost(projectId, compileRequest, options).then((request) => request(axios, basePath));
360
+ },
361
+ /**
362
+ *
363
+ * @param {string} projectId
364
+ * @param {RunRequest} [runRequest]
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ apiCompileProjectProjectIdRunPost(projectId: string, runRequest?: RunRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunResult> {
369
+ return localVarFp.apiCompileProjectProjectIdRunPost(projectId, runRequest, options).then((request) => request(axios, basePath));
370
+ },
371
+ /**
372
+ *
373
+ * @param {string} projectId
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ apiCompileProjectProjectIdStatusGet(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProcessStatus> {
378
+ return localVarFp.apiCompileProjectProjectIdStatusGet(projectId, options).then((request) => request(axios, basePath));
379
+ },
380
+ /**
381
+ *
382
+ * @param {string} projectId
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ apiCompileProjectProjectIdStopPost(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
387
+ return localVarFp.apiCompileProjectProjectIdStopPost(projectId, options).then((request) => request(axios, basePath));
388
+ },
389
+ /**
390
+ *
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ */
394
+ apiCompileRunningProjectsGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<RunningProjectInfo>> {
395
+ return localVarFp.apiCompileRunningProjectsGet(options).then((request) => request(axios, basePath));
396
+ },
397
+ };
398
+ };
399
+
400
+ /**
401
+ * CompilerApi - object-oriented interface
402
+ */
403
+ export class CompilerApi extends BaseAPI {
404
+ /**
405
+ *
406
+ * @param {string} projectId
407
+ * @param {CompileRequest} [compileRequest]
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ public apiCompileProjectProjectIdCompilePost(projectId: string, compileRequest?: CompileRequest, options?: RawAxiosRequestConfig) {
412
+ return CompilerApiFp(this.configuration).apiCompileProjectProjectIdCompilePost(projectId, compileRequest, options).then((request) => request(this.axios, this.basePath));
413
+ }
414
+
415
+ /**
416
+ *
417
+ * @param {string} projectId
418
+ * @param {RunRequest} [runRequest]
419
+ * @param {*} [options] Override http request option.
420
+ * @throws {RequiredError}
421
+ */
422
+ public apiCompileProjectProjectIdRunPost(projectId: string, runRequest?: RunRequest, options?: RawAxiosRequestConfig) {
423
+ return CompilerApiFp(this.configuration).apiCompileProjectProjectIdRunPost(projectId, runRequest, options).then((request) => request(this.axios, this.basePath));
424
+ }
425
+
426
+ /**
427
+ *
428
+ * @param {string} projectId
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ */
432
+ public apiCompileProjectProjectIdStatusGet(projectId: string, options?: RawAxiosRequestConfig) {
433
+ return CompilerApiFp(this.configuration).apiCompileProjectProjectIdStatusGet(projectId, options).then((request) => request(this.axios, this.basePath));
434
+ }
435
+
436
+ /**
437
+ *
438
+ * @param {string} projectId
439
+ * @param {*} [options] Override http request option.
440
+ * @throws {RequiredError}
441
+ */
442
+ public apiCompileProjectProjectIdStopPost(projectId: string, options?: RawAxiosRequestConfig) {
443
+ return CompilerApiFp(this.configuration).apiCompileProjectProjectIdStopPost(projectId, options).then((request) => request(this.axios, this.basePath));
444
+ }
445
+
446
+ /**
447
+ *
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ */
451
+ public apiCompileRunningProjectsGet(options?: RawAxiosRequestConfig) {
452
+ return CompilerApiFp(this.configuration).apiCompileRunningProjectsGet(options).then((request) => request(this.axios, this.basePath));
453
+ }
454
+ }
455
+
456
+
457
+
458
+ /**
459
+ * FileApi - axios parameter creator
460
+ */
461
+ export const FileApiAxiosParamCreator = function (configuration?: Configuration) {
462
+ return {
463
+ /**
464
+ *
465
+ * @param {string} fileId
466
+ * @param {*} [options] Override http request option.
467
+ * @throws {RequiredError}
468
+ */
469
+ apiFilesFileIdDeletePost: async (fileId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
470
+ // verify required parameter 'fileId' is not null or undefined
471
+ assertParamExists('apiFilesFileIdDeletePost', 'fileId', fileId)
472
+ const localVarPath = `/api/files/{fileId}/delete`
473
+ .replace(`{${"fileId"}}`, encodeURIComponent(String(fileId)));
474
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
475
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
476
+ let baseOptions;
477
+ if (configuration) {
478
+ baseOptions = configuration.baseOptions;
479
+ }
480
+
481
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
482
+ const localVarHeaderParameter = {} as any;
483
+ const localVarQueryParameter = {} as any;
484
+
485
+
486
+
487
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
488
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
489
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
490
+
491
+ return {
492
+ url: toPathString(localVarUrlObj),
493
+ options: localVarRequestOptions,
494
+ };
495
+ },
496
+ /**
497
+ *
498
+ * @param {string} fileId
499
+ * @param {*} [options] Override http request option.
500
+ * @throws {RequiredError}
501
+ */
502
+ apiFilesFileIdPost: async (fileId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
503
+ // verify required parameter 'fileId' is not null or undefined
504
+ assertParamExists('apiFilesFileIdPost', 'fileId', fileId)
505
+ const localVarPath = `/api/files/{fileId}`
506
+ .replace(`{${"fileId"}}`, encodeURIComponent(String(fileId)));
507
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
508
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
509
+ let baseOptions;
510
+ if (configuration) {
511
+ baseOptions = configuration.baseOptions;
512
+ }
513
+
514
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
515
+ const localVarHeaderParameter = {} as any;
516
+ const localVarQueryParameter = {} as any;
517
+
518
+
519
+
520
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
521
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
522
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
523
+
524
+ return {
525
+ url: toPathString(localVarUrlObj),
526
+ options: localVarRequestOptions,
527
+ };
528
+ },
529
+ /**
530
+ *
531
+ * @param {string} fileId
532
+ * @param {RenameFileDto} [renameFileDto]
533
+ * @param {*} [options] Override http request option.
534
+ * @throws {RequiredError}
535
+ */
536
+ apiFilesFileIdRenamePost: async (fileId: string, renameFileDto?: RenameFileDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
537
+ // verify required parameter 'fileId' is not null or undefined
538
+ assertParamExists('apiFilesFileIdRenamePost', 'fileId', fileId)
539
+ const localVarPath = `/api/files/{fileId}/rename`
540
+ .replace(`{${"fileId"}}`, encodeURIComponent(String(fileId)));
541
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
542
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
543
+ let baseOptions;
544
+ if (configuration) {
545
+ baseOptions = configuration.baseOptions;
546
+ }
547
+
548
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
549
+ const localVarHeaderParameter = {} as any;
550
+ const localVarQueryParameter = {} as any;
551
+
552
+
553
+
554
+ localVarHeaderParameter['Content-Type'] = 'application/json';
555
+
556
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
557
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
558
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
559
+ localVarRequestOptions.data = serializeDataIfNeeded(renameFileDto, localVarRequestOptions, configuration)
560
+
561
+ return {
562
+ url: toPathString(localVarUrlObj),
563
+ options: localVarRequestOptions,
564
+ };
565
+ },
566
+ /**
567
+ *
568
+ * @param {string} fileId
569
+ * @param {UpdateFileDto} [updateFileDto]
570
+ * @param {*} [options] Override http request option.
571
+ * @throws {RequiredError}
572
+ */
573
+ apiFilesFileIdSavePost: async (fileId: string, updateFileDto?: UpdateFileDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
574
+ // verify required parameter 'fileId' is not null or undefined
575
+ assertParamExists('apiFilesFileIdSavePost', 'fileId', fileId)
576
+ const localVarPath = `/api/files/{fileId}/save`
577
+ .replace(`{${"fileId"}}`, encodeURIComponent(String(fileId)));
578
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
579
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
580
+ let baseOptions;
581
+ if (configuration) {
582
+ baseOptions = configuration.baseOptions;
583
+ }
584
+
585
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
586
+ const localVarHeaderParameter = {} as any;
587
+ const localVarQueryParameter = {} as any;
588
+
589
+
590
+
591
+ localVarHeaderParameter['Content-Type'] = 'application/json';
592
+
593
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
594
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
595
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
596
+ localVarRequestOptions.data = serializeDataIfNeeded(updateFileDto, localVarRequestOptions, configuration)
597
+
598
+ return {
599
+ url: toPathString(localVarUrlObj),
600
+ options: localVarRequestOptions,
601
+ };
602
+ },
603
+ /**
604
+ *
605
+ * @param {string} projectId
606
+ * @param {CreateFileDto} [createFileDto]
607
+ * @param {*} [options] Override http request option.
608
+ * @throws {RequiredError}
609
+ */
610
+ apiFilesProjectProjectIdPost: async (projectId: string, createFileDto?: CreateFileDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
611
+ // verify required parameter 'projectId' is not null or undefined
612
+ assertParamExists('apiFilesProjectProjectIdPost', 'projectId', projectId)
613
+ const localVarPath = `/api/files/project/{projectId}`
614
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
615
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
616
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
617
+ let baseOptions;
618
+ if (configuration) {
619
+ baseOptions = configuration.baseOptions;
620
+ }
621
+
622
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
623
+ const localVarHeaderParameter = {} as any;
624
+ const localVarQueryParameter = {} as any;
625
+
626
+
627
+
628
+ localVarHeaderParameter['Content-Type'] = 'application/json';
629
+
630
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
631
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
632
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
633
+ localVarRequestOptions.data = serializeDataIfNeeded(createFileDto, localVarRequestOptions, configuration)
634
+
635
+ return {
636
+ url: toPathString(localVarUrlObj),
637
+ options: localVarRequestOptions,
638
+ };
639
+ },
640
+ }
641
+ };
642
+
643
+ /**
644
+ * FileApi - functional programming interface
645
+ */
646
+ export const FileApiFp = function(configuration?: Configuration) {
647
+ const localVarAxiosParamCreator = FileApiAxiosParamCreator(configuration)
648
+ return {
649
+ /**
650
+ *
651
+ * @param {string} fileId
652
+ * @param {*} [options] Override http request option.
653
+ * @throws {RequiredError}
654
+ */
655
+ async apiFilesFileIdDeletePost(fileId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
656
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiFilesFileIdDeletePost(fileId, options);
657
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
658
+ const localVarOperationServerBasePath = operationServerMap['FileApi.apiFilesFileIdDeletePost']?.[localVarOperationServerIndex]?.url;
659
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
660
+ },
661
+ /**
662
+ *
663
+ * @param {string} fileId
664
+ * @param {*} [options] Override http request option.
665
+ * @throws {RequiredError}
666
+ */
667
+ async apiFilesFileIdPost(fileId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
668
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiFilesFileIdPost(fileId, options);
669
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
670
+ const localVarOperationServerBasePath = operationServerMap['FileApi.apiFilesFileIdPost']?.[localVarOperationServerIndex]?.url;
671
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
672
+ },
673
+ /**
674
+ *
675
+ * @param {string} fileId
676
+ * @param {RenameFileDto} [renameFileDto]
677
+ * @param {*} [options] Override http request option.
678
+ * @throws {RequiredError}
679
+ */
680
+ async apiFilesFileIdRenamePost(fileId: string, renameFileDto?: RenameFileDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
681
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiFilesFileIdRenamePost(fileId, renameFileDto, options);
682
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
683
+ const localVarOperationServerBasePath = operationServerMap['FileApi.apiFilesFileIdRenamePost']?.[localVarOperationServerIndex]?.url;
684
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
685
+ },
686
+ /**
687
+ *
688
+ * @param {string} fileId
689
+ * @param {UpdateFileDto} [updateFileDto]
690
+ * @param {*} [options] Override http request option.
691
+ * @throws {RequiredError}
692
+ */
693
+ async apiFilesFileIdSavePost(fileId: string, updateFileDto?: UpdateFileDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
694
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiFilesFileIdSavePost(fileId, updateFileDto, options);
695
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
696
+ const localVarOperationServerBasePath = operationServerMap['FileApi.apiFilesFileIdSavePost']?.[localVarOperationServerIndex]?.url;
697
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
698
+ },
699
+ /**
700
+ *
701
+ * @param {string} projectId
702
+ * @param {CreateFileDto} [createFileDto]
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ */
706
+ async apiFilesProjectProjectIdPost(projectId: string, createFileDto?: CreateFileDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
707
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiFilesProjectProjectIdPost(projectId, createFileDto, options);
708
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
709
+ const localVarOperationServerBasePath = operationServerMap['FileApi.apiFilesProjectProjectIdPost']?.[localVarOperationServerIndex]?.url;
710
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
711
+ },
712
+ }
713
+ };
714
+
715
+ /**
716
+ * FileApi - factory interface
717
+ */
718
+ export const FileApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
719
+ const localVarFp = FileApiFp(configuration)
720
+ return {
721
+ /**
722
+ *
723
+ * @param {string} fileId
724
+ * @param {*} [options] Override http request option.
725
+ * @throws {RequiredError}
726
+ */
727
+ apiFilesFileIdDeletePost(fileId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
728
+ return localVarFp.apiFilesFileIdDeletePost(fileId, options).then((request) => request(axios, basePath));
729
+ },
730
+ /**
731
+ *
732
+ * @param {string} fileId
733
+ * @param {*} [options] Override http request option.
734
+ * @throws {RequiredError}
735
+ */
736
+ apiFilesFileIdPost(fileId: string, options?: RawAxiosRequestConfig): AxiosPromise<string> {
737
+ return localVarFp.apiFilesFileIdPost(fileId, options).then((request) => request(axios, basePath));
738
+ },
739
+ /**
740
+ *
741
+ * @param {string} fileId
742
+ * @param {RenameFileDto} [renameFileDto]
743
+ * @param {*} [options] Override http request option.
744
+ * @throws {RequiredError}
745
+ */
746
+ apiFilesFileIdRenamePost(fileId: string, renameFileDto?: RenameFileDto, options?: RawAxiosRequestConfig): AxiosPromise<string> {
747
+ return localVarFp.apiFilesFileIdRenamePost(fileId, renameFileDto, options).then((request) => request(axios, basePath));
748
+ },
749
+ /**
750
+ *
751
+ * @param {string} fileId
752
+ * @param {UpdateFileDto} [updateFileDto]
753
+ * @param {*} [options] Override http request option.
754
+ * @throws {RequiredError}
755
+ */
756
+ apiFilesFileIdSavePost(fileId: string, updateFileDto?: UpdateFileDto, options?: RawAxiosRequestConfig): AxiosPromise<string> {
757
+ return localVarFp.apiFilesFileIdSavePost(fileId, updateFileDto, options).then((request) => request(axios, basePath));
758
+ },
759
+ /**
760
+ *
761
+ * @param {string} projectId
762
+ * @param {CreateFileDto} [createFileDto]
763
+ * @param {*} [options] Override http request option.
764
+ * @throws {RequiredError}
765
+ */
766
+ apiFilesProjectProjectIdPost(projectId: string, createFileDto?: CreateFileDto, options?: RawAxiosRequestConfig): AxiosPromise<string> {
767
+ return localVarFp.apiFilesProjectProjectIdPost(projectId, createFileDto, options).then((request) => request(axios, basePath));
768
+ },
769
+ };
770
+ };
771
+
772
+ /**
773
+ * FileApi - object-oriented interface
774
+ */
775
+ export class FileApi extends BaseAPI {
776
+ /**
777
+ *
778
+ * @param {string} fileId
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ */
782
+ public apiFilesFileIdDeletePost(fileId: string, options?: RawAxiosRequestConfig) {
783
+ return FileApiFp(this.configuration).apiFilesFileIdDeletePost(fileId, options).then((request) => request(this.axios, this.basePath));
784
+ }
785
+
786
+ /**
787
+ *
788
+ * @param {string} fileId
789
+ * @param {*} [options] Override http request option.
790
+ * @throws {RequiredError}
791
+ */
792
+ public apiFilesFileIdPost(fileId: string, options?: RawAxiosRequestConfig) {
793
+ return FileApiFp(this.configuration).apiFilesFileIdPost(fileId, options).then((request) => request(this.axios, this.basePath));
794
+ }
795
+
796
+ /**
797
+ *
798
+ * @param {string} fileId
799
+ * @param {RenameFileDto} [renameFileDto]
800
+ * @param {*} [options] Override http request option.
801
+ * @throws {RequiredError}
802
+ */
803
+ public apiFilesFileIdRenamePost(fileId: string, renameFileDto?: RenameFileDto, options?: RawAxiosRequestConfig) {
804
+ return FileApiFp(this.configuration).apiFilesFileIdRenamePost(fileId, renameFileDto, options).then((request) => request(this.axios, this.basePath));
805
+ }
806
+
807
+ /**
808
+ *
809
+ * @param {string} fileId
810
+ * @param {UpdateFileDto} [updateFileDto]
811
+ * @param {*} [options] Override http request option.
812
+ * @throws {RequiredError}
813
+ */
814
+ public apiFilesFileIdSavePost(fileId: string, updateFileDto?: UpdateFileDto, options?: RawAxiosRequestConfig) {
815
+ return FileApiFp(this.configuration).apiFilesFileIdSavePost(fileId, updateFileDto, options).then((request) => request(this.axios, this.basePath));
816
+ }
817
+
818
+ /**
819
+ *
820
+ * @param {string} projectId
821
+ * @param {CreateFileDto} [createFileDto]
822
+ * @param {*} [options] Override http request option.
823
+ * @throws {RequiredError}
824
+ */
825
+ public apiFilesProjectProjectIdPost(projectId: string, createFileDto?: CreateFileDto, options?: RawAxiosRequestConfig) {
826
+ return FileApiFp(this.configuration).apiFilesProjectProjectIdPost(projectId, createFileDto, options).then((request) => request(this.axios, this.basePath));
827
+ }
828
+ }
829
+
830
+
831
+
832
+ /**
833
+ * ProjectApi - axios parameter creator
834
+ */
835
+ export const ProjectApiAxiosParamCreator = function (configuration?: Configuration) {
836
+ return {
837
+ /**
838
+ *
839
+ * @param {CreateProjectRequest} [createProjectRequest]
840
+ * @param {*} [options] Override http request option.
841
+ * @throws {RequiredError}
842
+ */
843
+ apiProjectsCreatePost: async (createProjectRequest?: CreateProjectRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
844
+ const localVarPath = `/api/projects/create`;
845
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
846
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
847
+ let baseOptions;
848
+ if (configuration) {
849
+ baseOptions = configuration.baseOptions;
850
+ }
851
+
852
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
853
+ const localVarHeaderParameter = {} as any;
854
+ const localVarQueryParameter = {} as any;
855
+
856
+
857
+
858
+ localVarHeaderParameter['Content-Type'] = 'application/json';
859
+
860
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
861
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
862
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
863
+ localVarRequestOptions.data = serializeDataIfNeeded(createProjectRequest, localVarRequestOptions, configuration)
864
+
865
+ return {
866
+ url: toPathString(localVarUrlObj),
867
+ options: localVarRequestOptions,
868
+ };
869
+ },
870
+ /**
871
+ *
872
+ * @param {*} [options] Override http request option.
873
+ * @throws {RequiredError}
874
+ */
875
+ apiProjectsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
876
+ const localVarPath = `/api/projects`;
877
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
878
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
879
+ let baseOptions;
880
+ if (configuration) {
881
+ baseOptions = configuration.baseOptions;
882
+ }
883
+
884
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
885
+ const localVarHeaderParameter = {} as any;
886
+ const localVarQueryParameter = {} as any;
887
+
888
+
889
+
890
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
891
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
892
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
893
+
894
+ return {
895
+ url: toPathString(localVarUrlObj),
896
+ options: localVarRequestOptions,
897
+ };
898
+ },
899
+ /**
900
+ *
901
+ * @param {string} projectId
902
+ * @param {*} [options] Override http request option.
903
+ * @throws {RequiredError}
904
+ */
905
+ apiProjectsProjectIdDelete: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
906
+ // verify required parameter 'projectId' is not null or undefined
907
+ assertParamExists('apiProjectsProjectIdDelete', 'projectId', projectId)
908
+ const localVarPath = `/api/projects/{projectId}`
909
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
910
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
911
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
912
+ let baseOptions;
913
+ if (configuration) {
914
+ baseOptions = configuration.baseOptions;
915
+ }
916
+
917
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
918
+ const localVarHeaderParameter = {} as any;
919
+ const localVarQueryParameter = {} as any;
920
+
921
+
922
+
923
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
924
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
925
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
926
+
927
+ return {
928
+ url: toPathString(localVarUrlObj),
929
+ options: localVarRequestOptions,
930
+ };
931
+ },
932
+ /**
933
+ *
934
+ * @param {string} projectId
935
+ * @param {*} [options] Override http request option.
936
+ * @throws {RequiredError}
937
+ */
938
+ apiProjectsProjectIdDuplicatePost: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
939
+ // verify required parameter 'projectId' is not null or undefined
940
+ assertParamExists('apiProjectsProjectIdDuplicatePost', 'projectId', projectId)
941
+ const localVarPath = `/api/projects/{projectId}/duplicate`
942
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
943
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
944
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
945
+ let baseOptions;
946
+ if (configuration) {
947
+ baseOptions = configuration.baseOptions;
948
+ }
949
+
950
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
951
+ const localVarHeaderParameter = {} as any;
952
+ const localVarQueryParameter = {} as any;
953
+
954
+
955
+
956
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
957
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
958
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
959
+
960
+ return {
961
+ url: toPathString(localVarUrlObj),
962
+ options: localVarRequestOptions,
963
+ };
964
+ },
965
+ /**
966
+ *
967
+ * @param {string} projectId
968
+ * @param {*} [options] Override http request option.
969
+ * @throws {RequiredError}
970
+ */
971
+ apiProjectsProjectIdGet: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
972
+ // verify required parameter 'projectId' is not null or undefined
973
+ assertParamExists('apiProjectsProjectIdGet', 'projectId', projectId)
974
+ const localVarPath = `/api/projects/{projectId}`
975
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
976
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
977
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
978
+ let baseOptions;
979
+ if (configuration) {
980
+ baseOptions = configuration.baseOptions;
981
+ }
982
+
983
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
984
+ const localVarHeaderParameter = {} as any;
985
+ const localVarQueryParameter = {} as any;
986
+
987
+
988
+
989
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
990
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
991
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
992
+
993
+ return {
994
+ url: toPathString(localVarUrlObj),
995
+ options: localVarRequestOptions,
996
+ };
997
+ },
998
+ /**
999
+ *
1000
+ * @param {string} projectId
1001
+ * @param {RenameProjectRequest} [renameProjectRequest]
1002
+ * @param {*} [options] Override http request option.
1003
+ * @throws {RequiredError}
1004
+ */
1005
+ apiProjectsProjectIdRenamePut: async (projectId: string, renameProjectRequest?: RenameProjectRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1006
+ // verify required parameter 'projectId' is not null or undefined
1007
+ assertParamExists('apiProjectsProjectIdRenamePut', 'projectId', projectId)
1008
+ const localVarPath = `/api/projects/{projectId}/rename`
1009
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
1010
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1011
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1012
+ let baseOptions;
1013
+ if (configuration) {
1014
+ baseOptions = configuration.baseOptions;
1015
+ }
1016
+
1017
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1018
+ const localVarHeaderParameter = {} as any;
1019
+ const localVarQueryParameter = {} as any;
1020
+
1021
+
1022
+
1023
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1024
+
1025
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1026
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1027
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1028
+ localVarRequestOptions.data = serializeDataIfNeeded(renameProjectRequest, localVarRequestOptions, configuration)
1029
+
1030
+ return {
1031
+ url: toPathString(localVarUrlObj),
1032
+ options: localVarRequestOptions,
1033
+ };
1034
+ },
1035
+ /**
1036
+ *
1037
+ * @param {string} projectId
1038
+ * @param {*} [options] Override http request option.
1039
+ * @throws {RequiredError}
1040
+ */
1041
+ apiProjectsProjectIdStatsGet: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1042
+ // verify required parameter 'projectId' is not null or undefined
1043
+ assertParamExists('apiProjectsProjectIdStatsGet', 'projectId', projectId)
1044
+ const localVarPath = `/api/projects/{projectId}/stats`
1045
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
1046
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1047
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1048
+ let baseOptions;
1049
+ if (configuration) {
1050
+ baseOptions = configuration.baseOptions;
1051
+ }
1052
+
1053
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1054
+ const localVarHeaderParameter = {} as any;
1055
+ const localVarQueryParameter = {} as any;
1056
+
1057
+
1058
+
1059
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1060
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1061
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1062
+
1063
+ return {
1064
+ url: toPathString(localVarUrlObj),
1065
+ options: localVarRequestOptions,
1066
+ };
1067
+ },
1068
+ }
1069
+ };
1070
+
1071
+ /**
1072
+ * ProjectApi - functional programming interface
1073
+ */
1074
+ export const ProjectApiFp = function(configuration?: Configuration) {
1075
+ const localVarAxiosParamCreator = ProjectApiAxiosParamCreator(configuration)
1076
+ return {
1077
+ /**
1078
+ *
1079
+ * @param {CreateProjectRequest} [createProjectRequest]
1080
+ * @param {*} [options] Override http request option.
1081
+ * @throws {RequiredError}
1082
+ */
1083
+ async apiProjectsCreatePost(createProjectRequest?: CreateProjectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
1084
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProjectsCreatePost(createProjectRequest, options);
1085
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1086
+ const localVarOperationServerBasePath = operationServerMap['ProjectApi.apiProjectsCreatePost']?.[localVarOperationServerIndex]?.url;
1087
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1088
+ },
1089
+ /**
1090
+ *
1091
+ * @param {*} [options] Override http request option.
1092
+ * @throws {RequiredError}
1093
+ */
1094
+ async apiProjectsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProjectInfo>>> {
1095
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProjectsGet(options);
1096
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1097
+ const localVarOperationServerBasePath = operationServerMap['ProjectApi.apiProjectsGet']?.[localVarOperationServerIndex]?.url;
1098
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1099
+ },
1100
+ /**
1101
+ *
1102
+ * @param {string} projectId
1103
+ * @param {*} [options] Override http request option.
1104
+ * @throws {RequiredError}
1105
+ */
1106
+ async apiProjectsProjectIdDelete(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1107
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProjectsProjectIdDelete(projectId, options);
1108
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1109
+ const localVarOperationServerBasePath = operationServerMap['ProjectApi.apiProjectsProjectIdDelete']?.[localVarOperationServerIndex]?.url;
1110
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1111
+ },
1112
+ /**
1113
+ *
1114
+ * @param {string} projectId
1115
+ * @param {*} [options] Override http request option.
1116
+ * @throws {RequiredError}
1117
+ */
1118
+ async apiProjectsProjectIdDuplicatePost(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
1119
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProjectsProjectIdDuplicatePost(projectId, options);
1120
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1121
+ const localVarOperationServerBasePath = operationServerMap['ProjectApi.apiProjectsProjectIdDuplicatePost']?.[localVarOperationServerIndex]?.url;
1122
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1123
+ },
1124
+ /**
1125
+ *
1126
+ * @param {string} projectId
1127
+ * @param {*} [options] Override http request option.
1128
+ * @throws {RequiredError}
1129
+ */
1130
+ async apiProjectsProjectIdGet(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectInfo>> {
1131
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProjectsProjectIdGet(projectId, options);
1132
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1133
+ const localVarOperationServerBasePath = operationServerMap['ProjectApi.apiProjectsProjectIdGet']?.[localVarOperationServerIndex]?.url;
1134
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1135
+ },
1136
+ /**
1137
+ *
1138
+ * @param {string} projectId
1139
+ * @param {RenameProjectRequest} [renameProjectRequest]
1140
+ * @param {*} [options] Override http request option.
1141
+ * @throws {RequiredError}
1142
+ */
1143
+ async apiProjectsProjectIdRenamePut(projectId: string, renameProjectRequest?: RenameProjectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1144
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProjectsProjectIdRenamePut(projectId, renameProjectRequest, options);
1145
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1146
+ const localVarOperationServerBasePath = operationServerMap['ProjectApi.apiProjectsProjectIdRenamePut']?.[localVarOperationServerIndex]?.url;
1147
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1148
+ },
1149
+ /**
1150
+ *
1151
+ * @param {string} projectId
1152
+ * @param {*} [options] Override http request option.
1153
+ * @throws {RequiredError}
1154
+ */
1155
+ async apiProjectsProjectIdStatsGet(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectStats>> {
1156
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProjectsProjectIdStatsGet(projectId, options);
1157
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1158
+ const localVarOperationServerBasePath = operationServerMap['ProjectApi.apiProjectsProjectIdStatsGet']?.[localVarOperationServerIndex]?.url;
1159
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1160
+ },
1161
+ }
1162
+ };
1163
+
1164
+ /**
1165
+ * ProjectApi - factory interface
1166
+ */
1167
+ export const ProjectApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1168
+ const localVarFp = ProjectApiFp(configuration)
1169
+ return {
1170
+ /**
1171
+ *
1172
+ * @param {CreateProjectRequest} [createProjectRequest]
1173
+ * @param {*} [options] Override http request option.
1174
+ * @throws {RequiredError}
1175
+ */
1176
+ apiProjectsCreatePost(createProjectRequest?: CreateProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
1177
+ return localVarFp.apiProjectsCreatePost(createProjectRequest, options).then((request) => request(axios, basePath));
1178
+ },
1179
+ /**
1180
+ *
1181
+ * @param {*} [options] Override http request option.
1182
+ * @throws {RequiredError}
1183
+ */
1184
+ apiProjectsGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<ProjectInfo>> {
1185
+ return localVarFp.apiProjectsGet(options).then((request) => request(axios, basePath));
1186
+ },
1187
+ /**
1188
+ *
1189
+ * @param {string} projectId
1190
+ * @param {*} [options] Override http request option.
1191
+ * @throws {RequiredError}
1192
+ */
1193
+ apiProjectsProjectIdDelete(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1194
+ return localVarFp.apiProjectsProjectIdDelete(projectId, options).then((request) => request(axios, basePath));
1195
+ },
1196
+ /**
1197
+ *
1198
+ * @param {string} projectId
1199
+ * @param {*} [options] Override http request option.
1200
+ * @throws {RequiredError}
1201
+ */
1202
+ apiProjectsProjectIdDuplicatePost(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise<string> {
1203
+ return localVarFp.apiProjectsProjectIdDuplicatePost(projectId, options).then((request) => request(axios, basePath));
1204
+ },
1205
+ /**
1206
+ *
1207
+ * @param {string} projectId
1208
+ * @param {*} [options] Override http request option.
1209
+ * @throws {RequiredError}
1210
+ */
1211
+ apiProjectsProjectIdGet(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProjectInfo> {
1212
+ return localVarFp.apiProjectsProjectIdGet(projectId, options).then((request) => request(axios, basePath));
1213
+ },
1214
+ /**
1215
+ *
1216
+ * @param {string} projectId
1217
+ * @param {RenameProjectRequest} [renameProjectRequest]
1218
+ * @param {*} [options] Override http request option.
1219
+ * @throws {RequiredError}
1220
+ */
1221
+ apiProjectsProjectIdRenamePut(projectId: string, renameProjectRequest?: RenameProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1222
+ return localVarFp.apiProjectsProjectIdRenamePut(projectId, renameProjectRequest, options).then((request) => request(axios, basePath));
1223
+ },
1224
+ /**
1225
+ *
1226
+ * @param {string} projectId
1227
+ * @param {*} [options] Override http request option.
1228
+ * @throws {RequiredError}
1229
+ */
1230
+ apiProjectsProjectIdStatsGet(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProjectStats> {
1231
+ return localVarFp.apiProjectsProjectIdStatsGet(projectId, options).then((request) => request(axios, basePath));
1232
+ },
1233
+ };
1234
+ };
1235
+
1236
+ /**
1237
+ * ProjectApi - object-oriented interface
1238
+ */
1239
+ export class ProjectApi extends BaseAPI {
1240
+ /**
1241
+ *
1242
+ * @param {CreateProjectRequest} [createProjectRequest]
1243
+ * @param {*} [options] Override http request option.
1244
+ * @throws {RequiredError}
1245
+ */
1246
+ public apiProjectsCreatePost(createProjectRequest?: CreateProjectRequest, options?: RawAxiosRequestConfig) {
1247
+ return ProjectApiFp(this.configuration).apiProjectsCreatePost(createProjectRequest, options).then((request) => request(this.axios, this.basePath));
1248
+ }
1249
+
1250
+ /**
1251
+ *
1252
+ * @param {*} [options] Override http request option.
1253
+ * @throws {RequiredError}
1254
+ */
1255
+ public apiProjectsGet(options?: RawAxiosRequestConfig) {
1256
+ return ProjectApiFp(this.configuration).apiProjectsGet(options).then((request) => request(this.axios, this.basePath));
1257
+ }
1258
+
1259
+ /**
1260
+ *
1261
+ * @param {string} projectId
1262
+ * @param {*} [options] Override http request option.
1263
+ * @throws {RequiredError}
1264
+ */
1265
+ public apiProjectsProjectIdDelete(projectId: string, options?: RawAxiosRequestConfig) {
1266
+ return ProjectApiFp(this.configuration).apiProjectsProjectIdDelete(projectId, options).then((request) => request(this.axios, this.basePath));
1267
+ }
1268
+
1269
+ /**
1270
+ *
1271
+ * @param {string} projectId
1272
+ * @param {*} [options] Override http request option.
1273
+ * @throws {RequiredError}
1274
+ */
1275
+ public apiProjectsProjectIdDuplicatePost(projectId: string, options?: RawAxiosRequestConfig) {
1276
+ return ProjectApiFp(this.configuration).apiProjectsProjectIdDuplicatePost(projectId, options).then((request) => request(this.axios, this.basePath));
1277
+ }
1278
+
1279
+ /**
1280
+ *
1281
+ * @param {string} projectId
1282
+ * @param {*} [options] Override http request option.
1283
+ * @throws {RequiredError}
1284
+ */
1285
+ public apiProjectsProjectIdGet(projectId: string, options?: RawAxiosRequestConfig) {
1286
+ return ProjectApiFp(this.configuration).apiProjectsProjectIdGet(projectId, options).then((request) => request(this.axios, this.basePath));
1287
+ }
1288
+
1289
+ /**
1290
+ *
1291
+ * @param {string} projectId
1292
+ * @param {RenameProjectRequest} [renameProjectRequest]
1293
+ * @param {*} [options] Override http request option.
1294
+ * @throws {RequiredError}
1295
+ */
1296
+ public apiProjectsProjectIdRenamePut(projectId: string, renameProjectRequest?: RenameProjectRequest, options?: RawAxiosRequestConfig) {
1297
+ return ProjectApiFp(this.configuration).apiProjectsProjectIdRenamePut(projectId, renameProjectRequest, options).then((request) => request(this.axios, this.basePath));
1298
+ }
1299
+
1300
+ /**
1301
+ *
1302
+ * @param {string} projectId
1303
+ * @param {*} [options] Override http request option.
1304
+ * @throws {RequiredError}
1305
+ */
1306
+ public apiProjectsProjectIdStatsGet(projectId: string, options?: RawAxiosRequestConfig) {
1307
+ return ProjectApiFp(this.configuration).apiProjectsProjectIdStatsGet(projectId, options).then((request) => request(this.axios, this.basePath));
1308
+ }
1309
+ }
1310
+
1311
+
1312
+