From ab59c534a2eb3e788b3d1b6a42272297de681067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Sat, 11 Jan 2025 09:54:08 +0100 Subject: [PATCH 1/5] feat: send auth in task content --- src/api/backend/api/default.service.ts | 672 ++++++++++++------------ src/app/services/tasks/tasks.service.ts | 86 ++- src/app/util/utils.ts | 4 - 3 files changed, 396 insertions(+), 366 deletions(-) diff --git a/src/api/backend/api/default.service.ts b/src/api/backend/api/default.service.ts index 246f9fd0..dea258ce 100644 --- a/src/api/backend/api/default.service.ts +++ b/src/api/backend/api/default.service.ts @@ -3,7 +3,7 @@ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 1.0.0 - * + * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git @@ -112,6 +112,8 @@ export class DefaultService { this.configuration = configuration; this.basePath = basePath || configuration.basePath || this.basePath; } + + this.basePath = this.basePath.replace(/\/+$/, ''); } /** @@ -130,9 +132,9 @@ export class DefaultService { /** - * - * - * @param body + * + * + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -185,9 +187,9 @@ export class DefaultService { } /** - * - * - * @param achievementId + * + * + * @param achievementId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -234,10 +236,10 @@ export class DefaultService { } /** - * - * - * @param body - * @param achievementId + * + * + * @param body + * @param achievementId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -294,12 +296,12 @@ export class DefaultService { } /** - * - * - * @param _limit - * @param _start - * @param achievement - * @param year + * + * + * @param _limit + * @param _start + * @param achievement + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -353,9 +355,9 @@ export class DefaultService { } /** - * - * - * @param achievementId + * + * + * @param achievementId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -394,8 +396,8 @@ export class DefaultService { } /** - * - * + * + * * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -430,9 +432,9 @@ export class DefaultService { } /** - * - * - * @param body + * + * + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -485,9 +487,9 @@ export class DefaultService { } /** - * - * - * @param year + * + * + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -534,9 +536,9 @@ export class DefaultService { } /** - * - * - * @param taskId + * + * + * @param taskId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -583,10 +585,10 @@ export class DefaultService { } /** - * - * - * @param taskId - * @param _public + * + * + * @param taskId + * @param _public * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -643,12 +645,12 @@ export class DefaultService { } /** - * - * - * @param task - * @param participant - * @param state - * @param year + * + * + * @param task + * @param participant + * @param state + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -710,9 +712,9 @@ export class DefaultService { } /** - * - * - * @param correctionId + * + * + * @param correctionId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -759,10 +761,10 @@ export class DefaultService { } /** - * - * - * @param correctionId - * @param _public + * + * + * @param correctionId + * @param _public * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -819,10 +821,10 @@ export class DefaultService { } /** - * - * - * @param body - * @param correctionId + * + * + * @param body + * @param correctionId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -879,11 +881,11 @@ export class DefaultService { } /** - * - * - * @param files - * @param userId - * @param year + * + * + * @param files + * @param userId + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -957,9 +959,9 @@ export class DefaultService { } /** - * - * - * @param body + * + * + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1012,9 +1014,9 @@ export class DefaultService { } /** - * - * - * @param evaluationId + * + * + * @param evaluationId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1061,16 +1063,16 @@ export class DefaultService { } /** - * - * - * @param user - * @param module - * @param limit - * @param page - * @param from - * @param to - * @param result - * @param year + * + * + * @param user + * @param module + * @param limit + * @param page + * @param from + * @param to + * @param result + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1148,9 +1150,9 @@ export class DefaultService { } /** - * - * - * @param executionId + * + * + * @param executionId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1197,9 +1199,9 @@ export class DefaultService { } /** - * - * - * @param evaluationId + * + * + * @param evaluationId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1246,8 +1248,8 @@ export class DefaultService { } /** - * - * + * + * * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1290,9 +1292,9 @@ export class DefaultService { } /** - * - * - * @param evaluationId + * + * + * @param evaluationId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1339,9 +1341,9 @@ export class DefaultService { } /** - * - * - * @param taskId + * + * + * @param taskId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1388,9 +1390,9 @@ export class DefaultService { } /** - * - * - * @param taskId + * + * + * @param taskId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1437,9 +1439,9 @@ export class DefaultService { } /** - * - * - * @param taskId + * + * + * @param taskId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1486,10 +1488,10 @@ export class DefaultService { } /** - * - * - * @param body - * @param year + * + * + * @param body + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1546,9 +1548,9 @@ export class DefaultService { } /** - * - * - * @param taskId + * + * + * @param taskId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1595,10 +1597,10 @@ export class DefaultService { } /** - * - * - * @param wave - * @param year + * + * + * @param wave + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1652,9 +1654,9 @@ export class DefaultService { } /** - * - * - * @param taskId + * + * + * @param taskId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1701,9 +1703,9 @@ export class DefaultService { } /** - * - * - * @param taskId + * + * + * @param taskId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1750,10 +1752,10 @@ export class DefaultService { } /** - * - * - * @param body - * @param taskId + * + * + * @param body + * @param taskId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1810,9 +1812,9 @@ export class DefaultService { } /** - * - * - * @param year + * + * + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1859,9 +1861,9 @@ export class DefaultService { } /** - * - * - * @param waveId + * + * + * @param waveId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1908,9 +1910,9 @@ export class DefaultService { } /** - * - * - * @param body + * + * + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -1963,9 +1965,9 @@ export class DefaultService { } /** - * - * - * @param articleId + * + * + * @param articleId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2012,10 +2014,10 @@ export class DefaultService { } /** - * - * - * @param body - * @param articleId + * + * + * @param body + * @param articleId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2072,12 +2074,12 @@ export class DefaultService { } /** - * - * - * @param _limit - * @param _start - * @param article - * @param year + * + * + * @param _limit + * @param _start + * @param article + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2139,9 +2141,9 @@ export class DefaultService { } /** - * - * - * @param articleId + * + * + * @param articleId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2188,12 +2190,12 @@ export class DefaultService { } /** - * - * - * @param grant_type - * @param username - * @param password - * @param refresh_token + * + * + * @param grant_type + * @param username + * @param password + * @param refresh_token * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2274,8 +2276,8 @@ export class DefaultService { } /** - * - * + * + * * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2318,9 +2320,9 @@ export class DefaultService { } /** - * - * - * @param body + * + * + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2373,10 +2375,10 @@ export class DefaultService { } /** - * - * - * @param files - * @param path + * + * + * @param files + * @param path * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2449,9 +2451,9 @@ export class DefaultService { } /** - * - * - * @param path + * + * + * @param path * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2501,9 +2503,9 @@ export class DefaultService { } /** - * - * - * @param path + * + * + * @param path * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2553,10 +2555,10 @@ export class DefaultService { } /** - * - * - * @param userId - * @param yearId + * + * + * @param userId + * @param yearId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2599,9 +2601,9 @@ export class DefaultService { } /** - * - * - * @param userId + * + * + * @param userId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2640,9 +2642,9 @@ export class DefaultService { } /** - * - * - * @param body + * + * + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2695,9 +2697,9 @@ export class DefaultService { } /** - * - * - * @param feedbackId + * + * + * @param feedbackId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2744,10 +2746,10 @@ export class DefaultService { } /** - * - * - * @param body - * @param feedbackId + * + * + * @param body + * @param feedbackId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2804,9 +2806,9 @@ export class DefaultService { } /** - * - * - * @param feedbackId + * + * + * @param feedbackId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2853,9 +2855,9 @@ export class DefaultService { } /** - * - * - * @param body + * + * + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2900,13 +2902,13 @@ export class DefaultService { } /** - * - * - * @param context - * @param imagesId - * @param file - * @param module - * @param user + * + * + * @param context + * @param imagesId + * @param file + * @param module + * @param user * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -2972,8 +2974,8 @@ export class DefaultService { } /** - * - * + * + * * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3016,9 +3018,9 @@ export class DefaultService { } /** - * - * - * @param body + * + * + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3071,9 +3073,9 @@ export class DefaultService { } /** - * - * - * @param modulesId + * + * + * @param modulesId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3120,10 +3122,10 @@ export class DefaultService { } /** - * - * - * @param files - * @param modulesId + * + * + * @param files + * @param modulesId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3194,10 +3196,10 @@ export class DefaultService { } /** - * - * - * @param modulesId - * @param body + * + * + * @param modulesId + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3251,9 +3253,9 @@ export class DefaultService { } /** - * - * - * @param body + * + * + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3306,9 +3308,9 @@ export class DefaultService { } /** - * - * - * @param postsId + * + * + * @param postsId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3355,10 +3357,10 @@ export class DefaultService { } /** - * - * - * @param body - * @param postsId + * + * + * @param body + * @param postsId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3415,9 +3417,9 @@ export class DefaultService { } /** - * - * - * @param postsId + * + * + * @param postsId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3464,9 +3466,9 @@ export class DefaultService { } /** - * - * - * @param body + * + * + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3519,9 +3521,9 @@ export class DefaultService { } /** - * - * - * @param year + * + * + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3568,10 +3570,10 @@ export class DefaultService { } /** - * - * - * @param profileId - * @param year + * + * + * @param profileId + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3622,9 +3624,9 @@ export class DefaultService { } /** - * - * - * @param file + * + * + * @param file * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3691,9 +3693,9 @@ export class DefaultService { } /** - * - * - * @param body + * + * + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3738,10 +3740,10 @@ export class DefaultService { } /** - * - * - * @param body - * @param moduleId + * + * + * @param body + * @param moduleId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3798,9 +3800,9 @@ export class DefaultService { } /** - * - * - * @param body + * + * + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3845,8 +3847,8 @@ export class DefaultService { } /** - * - * + * + * * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3888,9 +3890,9 @@ export class DefaultService { } /** - * - * - * @param submFileId + * + * + * @param submFileId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3937,9 +3939,9 @@ export class DefaultService { } /** - * - * - * @param submFileId + * + * + * @param submFileId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -3986,16 +3988,16 @@ export class DefaultService { } /** - * - * - * @param view - * @param contentId + * + * + * @param view + * @param contentId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public taskContent2GetSingle(view: string, contentId: string, observe?: 'body', reportProgress?: boolean): Observable; - public taskContent2GetSingle(view: string, contentId: string, observe?: 'response', reportProgress?: boolean): Observable>; - public taskContent2GetSingle(view: string, contentId: string, observe?: 'events', reportProgress?: boolean): Observable>; + public taskContent2GetSingle(view: string, contentId: string, observe?: 'body', reportProgress?: boolean): Observable; + public taskContent2GetSingle(view: string, contentId: string, observe?: 'response', reportProgress?: boolean): Observable>; + public taskContent2GetSingle(view: string, contentId: string, observe?: 'events', reportProgress?: boolean): Observable>; public taskContent2GetSingle(view: string, contentId: string, observe: any = 'body', reportProgress: boolean = false ): Observable { if (view === null || view === undefined) { @@ -4029,8 +4031,10 @@ export class DefaultService { const consumes: string[] = [ ]; - return this.httpClient.request('get',`${this.basePath}/taskContent/${encodeURIComponent(String(contentId))}/${encodeURIComponent(String(view))}`, + return this.httpClient.request('get',`${this.basePath}/taskContent/${String(contentId)}/${String(view)}`, { + //@ts-ignore + responseType: "blob", withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, @@ -4040,10 +4044,10 @@ export class DefaultService { } /** - * - * - * @param view - * @param contentId + * + * + * @param view + * @param contentId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4094,9 +4098,9 @@ export class DefaultService { } /** - * - * - * @param taskDetailsId + * + * + * @param taskDetailsId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4143,9 +4147,9 @@ export class DefaultService { } /** - * - * - * @param year + * + * + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4192,9 +4196,9 @@ export class DefaultService { } /** - * - * - * @param tasksId + * + * + * @param tasksId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4241,9 +4245,9 @@ export class DefaultService { } /** - * - * - * @param threadDetailsId + * + * + * @param threadDetailsId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4290,9 +4294,9 @@ export class DefaultService { } /** - * - * - * @param body + * + * + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4345,10 +4349,10 @@ export class DefaultService { } /** - * - * - * @param wave - * @param year + * + * + * @param wave + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4402,9 +4406,9 @@ export class DefaultService { } /** - * - * - * @param threadsId + * + * + * @param threadsId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4451,9 +4455,9 @@ export class DefaultService { } /** - * - * - * @param threadsId + * + * + * @param threadsId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4500,9 +4504,9 @@ export class DefaultService { } /** - * - * - * @param usersId + * + * + * @param usersId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4549,11 +4553,11 @@ export class DefaultService { } /** - * - * - * @param filter - * @param sort - * @param year + * + * + * @param filter + * @param sort + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4611,10 +4615,10 @@ export class DefaultService { } /** - * - * - * @param usersId - * @param year + * + * + * @param usersId + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4665,10 +4669,10 @@ export class DefaultService { } /** - * - * - * @param usersId - * @param year + * + * + * @param usersId + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4719,9 +4723,9 @@ export class DefaultService { } /** - * - * - * @param body + * + * + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4774,9 +4778,9 @@ export class DefaultService { } /** - * - * - * @param waveId + * + * + * @param waveId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4823,9 +4827,9 @@ export class DefaultService { } /** - * - * - * @param year + * + * + * @param year * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4872,9 +4876,9 @@ export class DefaultService { } /** - * - * - * @param waveId + * + * + * @param waveId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4921,10 +4925,10 @@ export class DefaultService { } /** - * - * - * @param body - * @param waveId + * + * + * @param body + * @param waveId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -4981,9 +4985,9 @@ export class DefaultService { } /** - * - * - * @param body + * + * + * @param body * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -5036,9 +5040,9 @@ export class DefaultService { } /** - * - * - * @param yearId + * + * + * @param yearId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -5085,8 +5089,8 @@ export class DefaultService { } /** - * - * + * + * * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -5121,9 +5125,9 @@ export class DefaultService { } /** - * - * - * @param yearId + * + * + * @param yearId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ @@ -5162,10 +5166,10 @@ export class DefaultService { } /** - * - * - * @param body - * @param yearId + * + * + * @param body + * @param yearId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ diff --git a/src/app/services/tasks/tasks.service.ts b/src/app/services/tasks/tasks.service.ts index 76e35ece..bd10db4b 100644 --- a/src/app/services/tasks/tasks.service.ts +++ b/src/app/services/tasks/tasks.service.ts @@ -1,4 +1,5 @@ import { Injectable } from '@angular/core'; +import { DomSanitizer } from '@angular/platform-browser'; import { BackendService, YearsService, UserService } from '../shared'; import { combineLatest, merge, Observable, of, Subject } from 'rxjs'; import { filter, map, mapTo, mergeMap, shareReplay, take, tap } from 'rxjs/operators'; @@ -38,13 +39,20 @@ export class TasksService { private readonly taskUpdatesSubject: Subject = new Subject(); private readonly taskUpdates$ = this.taskUpdatesSubject.asObservable(); - constructor(private backend: BackendService, private year: YearsService, private userService: UserService) { + constructor( + private backend: BackendService, + private year: YearsService, + private userService: UserService, + private sanitizer: DomSanitizer, + ) { this.tasks$ = merge( backend.user$.pipe(map(() => this.year.selected)), - year.selected$ + year.selected$, ).pipe( mergeMap((year) => this.backend.http.tasksGetAll(year?.id)), - map((response) => response.tasks.map((task) => TasksService.taskAddIcon(task))), + mergeMap((response) => + combineLatest(response.tasks.map((task) => this.taskAddIcon(task))), + ), tap((tasks) => { tasks.forEach((task) => this.updateTask(task)); }), @@ -156,7 +164,8 @@ export class TasksService { } return this.backend.http.tasksGetSingle(taskId).pipe( - map((response) => TasksService.taskAddIcon(response.task)), + map((response) => this.taskAddIcon(response.task)), + mergeMap((taskWithIcon$) => taskWithIcon$), tap((task) => this.updateTask(task, publishUpdate)), take(1), ); @@ -168,26 +177,32 @@ export class TasksService { * @param publishUpdate if set to false then no task update subscribers are notified upon update */ public updateTask(task: Task, publishUpdate = true): void { - environment.logger.debug(`[TASK] updating task cache for task ${task.id}, publish update: ${publishUpdate}`); - const taskWithIcon = TasksService.taskAddIcon(task); - - /* - Empty space in the cache - */ - const cachedKeys = Object.keys(this.cache); - let firstKey; - while (cachedKeys.length >= TasksService.CACHE_MAX_SIZE && (firstKey = cachedKeys.shift())) { - const key = Number(firstKey); - delete this.cache[key]; - } + environment.logger.debug( + `[TASK] updating task cache for task ${task.id}, publish update: ${publishUpdate}`, + ); - /* - Save the task into cache - */ - this.cache[taskWithIcon.id] = taskWithIcon; - if (publishUpdate) { - this.taskUpdatesSubject.next(taskWithIcon); - } + this.taskAddIcon(task).subscribe((taskWithIcon) => { + /* + Empty space in the cache + */ + const cachedKeys = Object.keys(this.cache); + let firstKey; + while ( + cachedKeys.length >= TasksService.CACHE_MAX_SIZE && + (firstKey = cachedKeys.shift()) + ) { + const key = Number(firstKey); + delete this.cache[key]; + } + + /* + Save the task into cache + */ + this.cache[taskWithIcon.id] = taskWithIcon; + if (publishUpdate) { + this.taskUpdatesSubject.next(taskWithIcon); + } + }); } /** @@ -236,6 +251,7 @@ export class TasksService { mapTo(true)); } + public static sortTasks(tasks: TaskWithIcon[], lockedLast: boolean): TaskWithIcon[] { const flatLevels = Utils.flatArray(TasksService.splitToLevels(tasks)); if (!lockedLast) { @@ -302,10 +318,24 @@ export class TasksService { return r; } - private static taskAddIcon(task: Task): TaskWithIcon { - return { - ...task, - icon: Utils.getTaskIconURL(task), - }; + + private taskAddIcon(task: Task): Observable { + return this.backend.http + .taskContent2GetSingle( + `icon/${task.state}${task.picture_suffix}`, + task.id.toString(), + ) + .pipe( + mergeMap((icon) => { + const url = URL.createObjectURL(icon); + // icon is safe + const safeUrl = this.sanitizer.bypassSecurityTrustUrl(url); + + return of({ + ...task, + icon: safeUrl as string, + }); + }), + ); } } diff --git a/src/app/util/utils.ts b/src/app/util/utils.ts index 058ad1f8..98c74b11 100644 --- a/src/app/util/utils.ts +++ b/src/app/util/utils.ts @@ -60,10 +60,6 @@ export class Utils { return r; } - public static getTaskIconURL(task: Task): string { - return Utils.fixUrl(`${environment.backend}${task.picture_base}/${task.state}${task.picture_suffix}`); - } - public static fixUrl(url: string): string { const replace = (x: string): string => x.replace(/([^:])\/\//g, '$1/'); return replace(replace(url)); From be18eb481b15d43da1de929291abc9e1f4117ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Sat, 11 Jan 2025 09:57:12 +0100 Subject: [PATCH 2/5] refactor: cleanup --- src/api/backend/api/default.service.ts | 10432 +++++++++++------------ 1 file changed, 5215 insertions(+), 5217 deletions(-) diff --git a/src/api/backend/api/default.service.ts b/src/api/backend/api/default.service.ts index dea258ce..15223879 100644 --- a/src/api/backend/api/default.service.ts +++ b/src/api/backend/api/default.service.ts @@ -3,5226 +3,5224 @@ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 1.0.0 - * + * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. *//* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent } from '@angular/common/http'; -import { CustomHttpUrlEncodingCodec } from '../encoder'; - -import { Observable } from 'rxjs'; - -import { AchievementCreationRequest } from '../model/achievementCreationRequest'; -import { AchievementGrantRequest } from '../model/achievementGrantRequest'; -import { AchievementGrantResponse } from '../model/achievementGrantResponse'; -import { AchievementResponse } from '../model/achievementResponse'; -import { AchievementsResponse } from '../model/achievementsResponse'; -import { AdminInstanceConfig } from '../model/adminInstanceConfig'; -import { AdminInstanceConfigResponse } from '../model/adminInstanceConfigResponse'; -import { AdminTaskCreationRequest } from '../model/adminTaskCreationRequest'; -import { AdminTaskDeployResponse } from '../model/adminTaskDeployResponse'; -import { AdminTaskMergeResponse } from '../model/adminTaskMergeResponse'; -import { AdminTaskResponse } from '../model/adminTaskResponse'; -import { AdminTaskUpdateRequest } from '../model/adminTaskUpdateRequest'; -import { AdminTasksResponse } from '../model/adminTasksResponse'; -import { ArticleCreationRequest } from '../model/articleCreationRequest'; -import { ArticleResponse } from '../model/articleResponse'; -import { ArticlesResponse } from '../model/articlesResponse'; -import { AuthResponse } from '../model/authResponse'; -import { BasicProfileResponse } from '../model/basicProfileResponse'; -import { ChangePasswordRequest } from '../model/changePasswordRequest'; -import { ChangePasswordResult } from '../model/changePasswordResult'; -import { CodeEvaluationResponse } from '../model/codeEvaluationResponse'; -import { CorrectionEvaluation } from '../model/correctionEvaluation'; -import { CorrectionInfoResponse } from '../model/correctionInfoResponse'; -import { CorrectionInfosAllResponse } from '../model/correctionInfosAllResponse'; -import { CorrectionResponse } from '../model/correctionResponse'; -import { CorrectionState } from '../model/correctionState'; -import { CorrectionUpdateRequest } from '../model/correctionUpdateRequest'; -import { CorrectionsAllResponse } from '../model/correctionsAllResponse'; -import { DiplomasListResponse } from '../model/diplomasListResponse'; -import { EmailSendRequest } from '../model/emailSendRequest'; -import { EmailSendResponse } from '../model/emailSendResponse'; -import { EmptyDict } from '../model/emptyDict'; -import { Execution } from '../model/execution'; -import { ExecutionResult } from '../model/executionResult'; -import { ExecutionsResponse } from '../model/executionsResponse'; -import { FeedbackCreationRequest } from '../model/feedbackCreationRequest'; -import { FeedbackRequest } from '../model/feedbackRequest'; -import { FeedbackResponse } from '../model/feedbackResponse'; -import { FeedbackUpdateRequest } from '../model/feedbackUpdateRequest'; -import { FeedbacksResponse } from '../model/feedbacksResponse'; -import { ForgottenPasswordRequest } from '../model/forgottenPasswordRequest'; -import { ForgottenPasswordResult } from '../model/forgottenPasswordResult'; -import { InlineResponse200 } from '../model/inlineResponse200'; -import { InlineResponse2001 } from '../model/inlineResponse2001'; -import { ModuleResponse } from '../model/moduleResponse'; -import { ModuleSubmissionRequest } from '../model/moduleSubmissionRequest'; -import { ModuleSubmitResponse } from '../model/moduleSubmitResponse'; -import { MonitoringDashboardURLResponse } from '../model/monitoringDashboardURLResponse'; -import { PossibleErrorDict } from '../model/possibleErrorDict'; -import { PostResponse } from '../model/postResponse'; -import { PostsCreationRequest } from '../model/postsCreationRequest'; -import { PostsEditRequest } from '../model/postsEditRequest'; -import { ProfileEdit } from '../model/profileEdit'; -import { ProfileResponse } from '../model/profileResponse'; -import { RegistrationRequest } from '../model/registrationRequest'; -import { RunCodeRequest } from '../model/runCodeRequest'; -import { RunCodeResponse } from '../model/runCodeResponse'; -import { TaskDetailResponse } from '../model/taskDetailResponse'; -import { TaskResponse } from '../model/taskResponse'; -import { TasksResponse } from '../model/tasksResponse'; -import { ThreadDetailResponse } from '../model/threadDetailResponse'; -import { ThreadResponse } from '../model/threadResponse'; -import { ThreadsCreationRequest } from '../model/threadsCreationRequest'; -import { ThreadsResponse } from '../model/threadsResponse'; -import { Uint8Array } from '../model/uint8Array'; -import { UserResponse } from '../model/userResponse'; -import { UsersResponse } from '../model/usersResponse'; -import { WaveCreationRequest } from '../model/waveCreationRequest'; -import { WaveResponse } from '../model/waveResponse'; -import { WaveUpdateRequest } from '../model/waveUpdateRequest'; -import { Waves } from '../model/waves'; -import { YearCreationRequest } from '../model/yearCreationRequest'; -import { YearResponse } from '../model/yearResponse'; -import { YearUpdateRequest } from '../model/yearUpdateRequest'; -import { Years } from '../model/years'; - -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; - - -@Injectable() -export class DefaultService { - - protected basePath = '/'; - public defaultHeaders = new HttpHeaders(); - public configuration = new Configuration(); - - constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) { - if (basePath) { - this.basePath = basePath; - } - if (configuration) { - this.configuration = configuration; - this.basePath = basePath || configuration.basePath || this.basePath; - } - - this.basePath = this.basePath.replace(/\/+$/, ''); - } - - /** - * @param consumes string[] mime-types - * @return true: consumes contains 'multipart/form-data', false: otherwise - */ - private canConsumeForm(consumes: string[]): boolean { - const form = 'multipart/form-data'; - for (const consume of consumes) { - if (form === consume) { - return true; - } - } - return false; - } - - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public achievementsCreateNew(body: AchievementCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public achievementsCreateNew(body: AchievementCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public achievementsCreateNew(body: AchievementCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public achievementsCreateNew(body: AchievementCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling achievementsCreateNew.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/achievements`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param achievementId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public achievementsDeleteSingle(achievementId: number, observe?: 'body', reportProgress?: boolean): Observable; - public achievementsDeleteSingle(achievementId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public achievementsDeleteSingle(achievementId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public achievementsDeleteSingle(achievementId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (achievementId === null || achievementId === undefined) { - throw new Error('Required parameter achievementId was null or undefined when calling achievementsDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/achievements/${encodeURIComponent(String(achievementId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param achievementId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe?: 'body', reportProgress?: boolean): Observable; - public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling achievementsEditSingle.'); - } - - if (achievementId === null || achievementId === undefined) { - throw new Error('Required parameter achievementId was null or undefined when calling achievementsEditSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/achievements/${encodeURIComponent(String(achievementId))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param _limit - * @param _start - * @param achievement - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (_limit !== undefined && _limit !== null) { - queryParameters = queryParameters.set('_limit', _limit); - } - if (_start !== undefined && _start !== null) { - queryParameters = queryParameters.set('_start', _start); - } - - let headers = this.defaultHeaders; - if (achievement !== undefined && achievement !== null) { - headers = headers.set('achievement', String(achievement)); - } - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/achievements`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param achievementId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public achievementsGetSingle(achievementId: number, observe?: 'body', reportProgress?: boolean): Observable; - public achievementsGetSingle(achievementId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public achievementsGetSingle(achievementId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public achievementsGetSingle(achievementId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (achievementId === null || achievementId === undefined) { - throw new Error('Required parameter achievementId was null or undefined when calling achievementsGetSingle.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/achievements/${encodeURIComponent(String(achievementId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public achievementsGetSuccessful(observe?: 'body', reportProgress?: boolean): Observable; - public achievementsGetSuccessful(observe?: 'response', reportProgress?: boolean): Observable>; - public achievementsGetSuccessful(observe?: 'events', reportProgress?: boolean): Observable>; - public achievementsGetSuccessful(observe: any = 'body', reportProgress: boolean = false ): Observable { - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/achievements/special/successful`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminAchievementsGrant(body: AchievementGrantRequest, observe?: 'body', reportProgress?: boolean): Observable; - public adminAchievementsGrant(body: AchievementGrantRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public adminAchievementsGrant(body: AchievementGrantRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public adminAchievementsGrant(body: AchievementGrantRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling adminAchievementsGrant.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/admin/achievements/grant`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminCorrectionInfosGetAll(year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminCorrectionInfosGetAll(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminCorrectionInfosGetAll(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminCorrectionInfosGetAll(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/correctionInfos`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminCorrectionInfosGetSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminCorrectionInfosGetSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminCorrectionInfosGetSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminCorrectionInfosGetSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminCorrectionInfosGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/correctionInfos/${encodeURIComponent(String(taskId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param _public - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminCorrectionsEmail(taskId: number, _public: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminCorrectionsEmail(taskId: number, _public: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminCorrectionsEmail(taskId: number, _public: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminCorrectionsEmail(taskId: number, _public: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminCorrectionsEmail.'); - } - - if (_public === null || _public === undefined) { - throw new Error('Required parameter _public was null or undefined when calling adminCorrectionsEmail.'); - } - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (_public !== undefined && _public !== null) { - queryParameters = queryParameters.set('public', _public); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('put',`${this.basePath}/admin/correctionsEmail/${encodeURIComponent(String(taskId))}`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param task - * @param participant - * @param state - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (task !== undefined && task !== null) { - queryParameters = queryParameters.set('task', task); - } - if (participant !== undefined && participant !== null) { - queryParameters = queryParameters.set('participant', participant); - } - if (state !== undefined && state !== null) { - queryParameters = queryParameters.set('state', state); - } - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/corrections`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param correctionId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminCorrectionsGetSingle(correctionId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminCorrectionsGetSingle(correctionId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminCorrectionsGetSingle(correctionId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminCorrectionsGetSingle(correctionId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (correctionId === null || correctionId === undefined) { - throw new Error('Required parameter correctionId was null or undefined when calling adminCorrectionsGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/corrections/${encodeURIComponent(String(correctionId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param correctionId - * @param _public - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminCorrectionsPublish(correctionId: number, _public: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminCorrectionsPublish(correctionId: number, _public: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminCorrectionsPublish(correctionId: number, _public: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminCorrectionsPublish(correctionId: number, _public: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (correctionId === null || correctionId === undefined) { - throw new Error('Required parameter correctionId was null or undefined when calling adminCorrectionsPublish.'); - } - - if (_public === null || _public === undefined) { - throw new Error('Required parameter _public was null or undefined when calling adminCorrectionsPublish.'); - } - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (_public !== undefined && _public !== null) { - queryParameters = queryParameters.set('public', _public); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/corrections/${encodeURIComponent(String(correctionId))}/publish`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param correctionId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling adminCorrectionsUpdateSingle.'); - } - - if (correctionId === null || correctionId === undefined) { - throw new Error('Required parameter correctionId was null or undefined when calling adminCorrectionsUpdateSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/admin/corrections/${encodeURIComponent(String(correctionId))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param files - * @param userId - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (files === null || files === undefined) { - throw new Error('Required parameter files was null or undefined when calling adminDiplomaGrant.'); - } - - if (userId === null || userId === undefined) { - throw new Error('Required parameter userId was null or undefined when calling adminDiplomaGrant.'); - } - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'multipart/form-data' - ]; - - const canConsumeForm = this.canConsumeForm(consumes); - - let formParams: { append(param: string, value: any): void; }; - let useForm = false; - let convertFormParamsToString = false; - // use FormData to transmit files using content-type "multipart/form-data" - // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data - useForm = canConsumeForm; - if (useForm) { - formParams = new FormData(); - } else { - formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - } - - if (files !== undefined) { - formParams = formParams.append('files', files) as any || formParams; - } - - return this.httpClient.request('post',`${this.basePath}/admin/diploma/${encodeURIComponent(String(userId))}/grant`, - { - body: convertFormParamsToString ? formParams.toString() : formParams, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminEmailSend(body: EmailSendRequest, observe?: 'body', reportProgress?: boolean): Observable; - public adminEmailSend(body: EmailSendRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public adminEmailSend(body: EmailSendRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public adminEmailSend(body: EmailSendRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling adminEmailSend.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/admin/e-mail`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param evaluationId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminEvaluationGetSingle(evaluationId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminEvaluationGetSingle(evaluationId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminEvaluationGetSingle(evaluationId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminEvaluationGetSingle(evaluationId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (evaluationId === null || evaluationId === undefined) { - throw new Error('Required parameter evaluationId was null or undefined when calling adminEvaluationGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/evalCodes/${encodeURIComponent(String(evaluationId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param user - * @param module - * @param limit - * @param page - * @param from - * @param to - * @param result - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - - - - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (user !== undefined && user !== null) { - queryParameters = queryParameters.set('user', user); - } - if (module !== undefined && module !== null) { - queryParameters = queryParameters.set('module', module); - } - if (limit !== undefined && limit !== null) { - queryParameters = queryParameters.set('limit', limit); - } - if (page !== undefined && page !== null) { - queryParameters = queryParameters.set('page', page); - } - if (from !== undefined && from !== null) { - queryParameters = queryParameters.set('from', from); - } - if (to !== undefined && to !== null) { - queryParameters = queryParameters.set('to', to); - } - if (result !== undefined && result !== null) { - queryParameters = queryParameters.set('result', result); - } - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/execs`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param executionId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminExecutionGetSingle(executionId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminExecutionGetSingle(executionId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminExecutionGetSingle(executionId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminExecutionGetSingle(executionId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (executionId === null || executionId === undefined) { - throw new Error('Required parameter executionId was null or undefined when calling adminExecutionGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/execs/${encodeURIComponent(String(executionId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param evaluationId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminGetEvaluationSingle(evaluationId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminGetEvaluationSingle(evaluationId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminGetEvaluationSingle(evaluationId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminGetEvaluationSingle(evaluationId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (evaluationId === null || evaluationId === undefined) { - throw new Error('Required parameter evaluationId was null or undefined when calling adminGetEvaluationSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/evaluations/${encodeURIComponent(String(evaluationId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminMonitoringDashboardURL(observe?: 'body', reportProgress?: boolean): Observable; - public adminMonitoringDashboardURL(observe?: 'response', reportProgress?: boolean): Observable>; - public adminMonitoringDashboardURL(observe?: 'events', reportProgress?: boolean): Observable>; - public adminMonitoringDashboardURL(observe: any = 'body', reportProgress: boolean = false ): Observable { - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/monitoring-dashboard`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param evaluationId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminSubmissionEvaluation(evaluationId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminSubmissionEvaluation(evaluationId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminSubmissionEvaluation(evaluationId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminSubmissionEvaluation(evaluationId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (evaluationId === null || evaluationId === undefined) { - throw new Error('Required parameter evaluationId was null or undefined when calling adminSubmissionEvaluation.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/subm/eval/${encodeURIComponent(String(evaluationId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminSubmissionTask(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminSubmissionTask(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminSubmissionTask(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminSubmissionTask(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminSubmissionTask.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/subm/task/${encodeURIComponent(String(taskId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTaskDeploySingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTaskDeploySingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTaskDeploySingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTaskDeploySingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminTaskDeploySingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('post',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}/deploy`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTaskMergeSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTaskMergeSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTaskMergeSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTaskMergeSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminTaskMergeSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('post',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}/merge`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling adminTasksCreateNew.'); - } - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/admin/atasks`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTasksDeleteSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTasksDeleteSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTasksDeleteSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTasksDeleteSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminTasksDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param wave - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTasksGetAll(wave?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTasksGetAll(wave?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTasksGetAll(wave?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTasksGetAll(wave?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (wave !== undefined && wave !== null) { - queryParameters = queryParameters.set('wave', wave); - } - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/atasks`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTasksGetDeploySingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTasksGetDeploySingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTasksGetDeploySingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTasksGetDeploySingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminTasksGetDeploySingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}/deploy`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTasksGetSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTasksGetSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTasksGetSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTasksGetSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminTasksGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling adminTasksUpdateSingle.'); - } - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminTasksUpdateSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminUserExport(year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminUserExport(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminUserExport(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminUserExport(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/user-export`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param waveId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminWavesDiff(waveId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminWavesDiff(waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminWavesDiff(waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminWavesDiff(waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (waveId === null || waveId === undefined) { - throw new Error('Required parameter waveId was null or undefined when calling adminWavesDiff.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/waves/${encodeURIComponent(String(waveId))}/diff`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public articlesCreateNew(body: ArticleCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public articlesCreateNew(body: ArticleCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public articlesCreateNew(body: ArticleCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public articlesCreateNew(body: ArticleCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling articlesCreateNew.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/articles`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param articleId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public articlesDeleteSingle(articleId: number, observe?: 'body', reportProgress?: boolean): Observable; - public articlesDeleteSingle(articleId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public articlesDeleteSingle(articleId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public articlesDeleteSingle(articleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (articleId === null || articleId === undefined) { - throw new Error('Required parameter articleId was null or undefined when calling articlesDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/articles/${encodeURIComponent(String(articleId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param articleId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe?: 'body', reportProgress?: boolean): Observable; - public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling articlesEditSingle.'); - } - - if (articleId === null || articleId === undefined) { - throw new Error('Required parameter articleId was null or undefined when calling articlesEditSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/articles/${encodeURIComponent(String(articleId))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param _limit - * @param _start - * @param article - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (_limit !== undefined && _limit !== null) { - queryParameters = queryParameters.set('_limit', _limit); - } - if (_start !== undefined && _start !== null) { - queryParameters = queryParameters.set('_start', _start); - } - - let headers = this.defaultHeaders; - if (article !== undefined && article !== null) { - headers = headers.set('article', String(article)); - } - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/articles`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param articleId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public articlesGetSingle(articleId: number, observe?: 'body', reportProgress?: boolean): Observable; - public articlesGetSingle(articleId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public articlesGetSingle(articleId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public articlesGetSingle(articleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (articleId === null || articleId === undefined) { - throw new Error('Required parameter articleId was null or undefined when calling articlesGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/articles/${encodeURIComponent(String(articleId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param grant_type - * @param username - * @param password - * @param refresh_token - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - // @ts-ignore - public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe?: 'body', reportProgress?: boolean): Observable; - // @ts-ignore - public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe?: 'response', reportProgress?: boolean): Observable>; - // @ts-ignore - public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe?: 'events', reportProgress?: boolean): Observable>; - // @ts-ignore - public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (grant_type === null || grant_type === undefined) { - throw new Error('Required parameter grant_type was null or undefined when calling authorize.'); - } - - if (username === null || username === undefined) { - throw new Error('Required parameter username was null or undefined when calling authorize.'); - } - - if (password === null || password === undefined) { - throw new Error('Required parameter password was null or undefined when calling authorize.'); - } - - if (refresh_token === null || refresh_token === undefined) { - throw new Error('Required parameter refresh_token was null or undefined when calling authorize.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'multipart/form-data' - ]; - - const canConsumeForm = this.canConsumeForm(consumes); - - let formParams: { append(param: string, value: any): void; }; - let useForm = false; - let convertFormParamsToString = false; - if (useForm) { - formParams = new FormData(); - } else { - formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - } - - if (grant_type !== undefined) { - formParams = formParams.append('grant_type', grant_type) as any || formParams; - } - if (username !== undefined) { - formParams = formParams.append('username', username) as any || formParams; - } - if (password !== undefined) { - formParams = formParams.append('password', password) as any || formParams; - } - if (refresh_token !== undefined) { - formParams = formParams.append('refresh_token', refresh_token) as any || formParams; - } - - return this.httpClient.request('post',`${this.basePath}/auth`, - { - body: convertFormParamsToString ? formParams.toString() : formParams, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public basicProfileGetSingle(observe?: 'body', reportProgress?: boolean): Observable; - public basicProfileGetSingle(observe?: 'response', reportProgress?: boolean): Observable>; - public basicProfileGetSingle(observe?: 'events', reportProgress?: boolean): Observable>; - public basicProfileGetSingle(observe: any = 'body', reportProgress: boolean = false ): Observable { - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/basicProfile`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public changePassword(body: ChangePasswordRequest, observe?: 'body', reportProgress?: boolean): Observable; - public changePassword(body: ChangePasswordRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public changePassword(body: ChangePasswordRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public changePassword(body: ChangePasswordRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling changePassword.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/settings/changePassword`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param files - * @param path - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public contentsCreateNewForm(files: Array, path?: string, observe?: 'body', reportProgress?: boolean): Observable; - public contentsCreateNewForm(files: Array, path?: string, observe?: 'response', reportProgress?: boolean): Observable>; - public contentsCreateNewForm(files: Array, path?: string, observe?: 'events', reportProgress?: boolean): Observable>; - public contentsCreateNewForm(files: Array, path?: string, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (files === null || files === undefined) { - throw new Error('Required parameter files was null or undefined when calling contentsCreateNew.'); - } - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (path !== undefined && path !== null) { - queryParameters = queryParameters.set('path', path); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'multipart/form-data' - ]; - - const canConsumeForm = this.canConsumeForm(consumes); - - let formParams: { append(param: string, value: any): void; }; - let useForm = false; - let convertFormParamsToString = false; - if (useForm) { - formParams = new FormData(); - } else { - formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - } - - if (files) { - files.forEach((element) => { - formParams = formParams.append('files', element) as any || formParams; - }) - } - - return this.httpClient.request('post',`${this.basePath}/content`, - { - body: convertFormParamsToString ? formParams.toString() : formParams, - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param path - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public contentsDeleteSingle(path?: string, observe?: 'body', reportProgress?: boolean): Observable; - public contentsDeleteSingle(path?: string, observe?: 'response', reportProgress?: boolean): Observable>; - public contentsDeleteSingle(path?: string, observe?: 'events', reportProgress?: boolean): Observable>; - public contentsDeleteSingle(path?: string, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (path !== undefined && path !== null) { - queryParameters = queryParameters.set('path', path); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/content`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param path - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public contentsGetSingle(path?: string, observe?: 'body', reportProgress?: boolean): Observable; - public contentsGetSingle(path?: string, observe?: 'response', reportProgress?: boolean): Observable>; - public contentsGetSingle(path?: string, observe?: 'events', reportProgress?: boolean): Observable>; - public contentsGetSingle(path?: string, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (path !== undefined && path !== null) { - queryParameters = queryParameters.set('path', path); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/content`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param userId - * @param yearId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public diplomaDownloadSingle(userId: number, yearId: number, observe?: 'body', reportProgress?: boolean): Observable; - public diplomaDownloadSingle(userId: number, yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public diplomaDownloadSingle(userId: number, yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public diplomaDownloadSingle(userId: number, yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (userId === null || userId === undefined) { - throw new Error('Required parameter userId was null or undefined when calling diplomaDownloadSingle.'); - } - - if (yearId === null || yearId === undefined) { - throw new Error('Required parameter yearId was null or undefined when calling diplomaDownloadSingle.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/diplomas/${encodeURIComponent(String(userId))}/${encodeURIComponent(String(yearId))}/show`,//@ts-ignore -{responseType: "blob", - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param userId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public diplomasListForUserSingle(userId: number, observe?: 'body', reportProgress?: boolean): Observable; - public diplomasListForUserSingle(userId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public diplomasListForUserSingle(userId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public diplomasListForUserSingle(userId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (userId === null || userId === undefined) { - throw new Error('Required parameter userId was null or undefined when calling diplomasListForUserSingle.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/diplomas/${encodeURIComponent(String(userId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public feedbackCreateNew(body: FeedbackCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public feedbackCreateNew(body: FeedbackCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public feedbackCreateNew(body: FeedbackCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public feedbackCreateNew(body: FeedbackCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling feedbackCreateNew.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/feedbacks`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param feedbackId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public feedbackDeleteSingle(feedbackId: number, observe?: 'body', reportProgress?: boolean): Observable; - public feedbackDeleteSingle(feedbackId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public feedbackDeleteSingle(feedbackId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public feedbackDeleteSingle(feedbackId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (feedbackId === null || feedbackId === undefined) { - throw new Error('Required parameter feedbackId was null or undefined when calling feedbackDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/feedbacks/${encodeURIComponent(String(feedbackId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param feedbackId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe?: 'body', reportProgress?: boolean): Observable; - public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling feedbackEditSingle.'); - } - - if (feedbackId === null || feedbackId === undefined) { - throw new Error('Required parameter feedbackId was null or undefined when calling feedbackEditSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/feedbacks/${encodeURIComponent(String(feedbackId))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param feedbackId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public feedbackGetSingle(feedbackId: number, observe?: 'body', reportProgress?: boolean): Observable; - public feedbackGetSingle(feedbackId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public feedbackGetSingle(feedbackId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public feedbackGetSingle(feedbackId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (feedbackId === null || feedbackId === undefined) { - throw new Error('Required parameter feedbackId was null or undefined when calling feedbackGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/feedbacks/${encodeURIComponent(String(feedbackId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public forgottenPasswordReset(body: ForgottenPasswordRequest, observe?: 'body', reportProgress?: boolean): Observable; - public forgottenPasswordReset(body: ForgottenPasswordRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public forgottenPasswordReset(body: ForgottenPasswordRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public forgottenPasswordReset(body: ForgottenPasswordRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling forgottenPasswordReset.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/forgottenPassword`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param context - * @param imagesId - * @param file - * @param module - * @param user - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe?: 'body', reportProgress?: boolean): Observable; - public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (context === null || context === undefined) { - throw new Error('Required parameter context was null or undefined when calling imagesGetSingle.'); - } - - if (imagesId === null || imagesId === undefined) { - throw new Error('Required parameter imagesId was null or undefined when calling imagesGetSingle.'); - } - - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (file !== undefined && file !== null) { - queryParameters = queryParameters.set('file', file); - } - if (module !== undefined && module !== null) { - queryParameters = queryParameters.set('module', module); - } - if (user !== undefined && user !== null) { - queryParameters = queryParameters.set('user', user); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/images/${encodeURIComponent(String(context))}/${encodeURIComponent(String(imagesId))}`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public instanceConfigGetAll(observe?: 'body', reportProgress?: boolean): Observable; - public instanceConfigGetAll(observe?: 'response', reportProgress?: boolean): Observable>; - public instanceConfigGetAll(observe?: 'events', reportProgress?: boolean): Observable>; - public instanceConfigGetAll(observe: any = 'body', reportProgress: boolean = false ): Observable { - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/instanceConfig`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public instanceConfigSetSingle(body: AdminInstanceConfig, observe?: 'body', reportProgress?: boolean): Observable; - public instanceConfigSetSingle(body: AdminInstanceConfig, observe?: 'response', reportProgress?: boolean): Observable>; - public instanceConfigSetSingle(body: AdminInstanceConfig, observe?: 'events', reportProgress?: boolean): Observable>; - public instanceConfigSetSingle(body: AdminInstanceConfig, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling instanceConfigSetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/admin/instanceConfig`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param modulesId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public modulesGetSingle(modulesId: number, observe?: 'body', reportProgress?: boolean): Observable; - public modulesGetSingle(modulesId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public modulesGetSingle(modulesId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public modulesGetSingle(modulesId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (modulesId === null || modulesId === undefined) { - throw new Error('Required parameter modulesId was null or undefined when calling modulesGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/modules/${encodeURIComponent(String(modulesId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param files - * @param modulesId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public modulesSubmitFilesForm(files: Blob, modulesId: number, observe?: 'body', reportProgress?: boolean): Observable; - public modulesSubmitFilesForm(files: Blob, modulesId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public modulesSubmitFilesForm(files: Blob, modulesId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public modulesSubmitFilesForm(files: Blob, modulesId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (files === null || files === undefined) { - throw new Error('Required parameter files was null or undefined when calling modulesSubmitFiles.'); - } - - if (modulesId === null || modulesId === undefined) { - throw new Error('Required parameter modulesId was null or undefined when calling modulesSubmitFiles.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'multipart/form-data' - ]; - - const canConsumeForm = this.canConsumeForm(consumes); - - let formParams: { append(param: string, value: any): void; }; - let useForm = false; - let convertFormParamsToString = false; - // use FormData to transmit files using content-type "multipart/form-data" - // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data - useForm = canConsumeForm; - if (useForm) { - formParams = new FormData(); - } else { - formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - } - - if (files !== undefined) { - formParams = formParams.append('files', files) as any || formParams; - } - - return this.httpClient.request('post',`${this.basePath}/modules/${encodeURIComponent(String(modulesId))}/submitFiles`, - { - body: convertFormParamsToString ? formParams.toString() : formParams, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param modulesId - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe?: 'body', reportProgress?: boolean): Observable; - public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (modulesId === null || modulesId === undefined) { - throw new Error('Required parameter modulesId was null or undefined when calling modulesSubmitSingle.'); - } - - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/modules/${encodeURIComponent(String(modulesId))}/submit`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public postsCreateNew(body: PostsCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public postsCreateNew(body: PostsCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public postsCreateNew(body: PostsCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public postsCreateNew(body: PostsCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling postsCreateNew.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/posts`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param postsId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public postsDeleteSingle(postsId: number, observe?: 'body', reportProgress?: boolean): Observable; - public postsDeleteSingle(postsId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public postsDeleteSingle(postsId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public postsDeleteSingle(postsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (postsId === null || postsId === undefined) { - throw new Error('Required parameter postsId was null or undefined when calling postsDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/posts/${encodeURIComponent(String(postsId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param postsId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public postsEditSingle(body: PostsEditRequest, postsId: number, observe?: 'body', reportProgress?: boolean): Observable; - public postsEditSingle(body: PostsEditRequest, postsId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public postsEditSingle(body: PostsEditRequest, postsId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public postsEditSingle(body: PostsEditRequest, postsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling postsEditSingle.'); - } - - if (postsId === null || postsId === undefined) { - throw new Error('Required parameter postsId was null or undefined when calling postsEditSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/posts/${encodeURIComponent(String(postsId))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param postsId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public postsGetSingle(postsId: number, observe?: 'body', reportProgress?: boolean): Observable; - public postsGetSingle(postsId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public postsGetSingle(postsId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public postsGetSingle(postsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (postsId === null || postsId === undefined) { - throw new Error('Required parameter postsId was null or undefined when calling postsGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/posts/${encodeURIComponent(String(postsId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public profileEditMy(body: ProfileEdit, observe?: 'body', reportProgress?: boolean): Observable; - public profileEditMy(body: ProfileEdit, observe?: 'response', reportProgress?: boolean): Observable>; - public profileEditMy(body: ProfileEdit, observe?: 'events', reportProgress?: boolean): Observable>; - public profileEditMy(body: ProfileEdit, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling profileEditMy.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/profile`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public profileGetMy(year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public profileGetMy(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public profileGetMy(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public profileGetMy(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/profile`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param profileId - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public profileGetSingle(profileId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public profileGetSingle(profileId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public profileGetSingle(profileId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public profileGetSingle(profileId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (profileId === null || profileId === undefined) { - throw new Error('Required parameter profileId was null or undefined when calling profileGetSingle.'); - } - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/profile/${encodeURIComponent(String(profileId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param file - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public profileUploadPictureForm(file: Blob, observe?: 'body', reportProgress?: boolean): Observable; - public profileUploadPictureForm(file: Blob, observe?: 'response', reportProgress?: boolean): Observable>; - public profileUploadPictureForm(file: Blob, observe?: 'events', reportProgress?: boolean): Observable>; - public profileUploadPictureForm(file: Blob, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (file === null || file === undefined) { - throw new Error('Required parameter file was null or undefined when calling profileUploadPicture.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'multipart/form-data' - ]; - - const canConsumeForm = this.canConsumeForm(consumes); - - let formParams: { append(param: string, value: any): void; }; - let useForm = false; - let convertFormParamsToString = false; - // use FormData to transmit files using content-type "multipart/form-data" - // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data - useForm = canConsumeForm; - if (useForm) { - formParams = new FormData(); - } else { - formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - } - - if (file !== undefined) { - formParams = formParams.append('file', file) as any || formParams; - } - - return this.httpClient.request('post',`${this.basePath}/profile/picture`, - { - body: convertFormParamsToString ? formParams.toString() : formParams, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public registerNewUser(body: RegistrationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public registerNewUser(body: RegistrationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public registerNewUser(body: RegistrationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public registerNewUser(body: RegistrationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling registerNewUser.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/registration`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param moduleId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public runCode(body: RunCodeRequest, moduleId: number, observe?: 'body', reportProgress?: boolean): Observable; - public runCode(body: RunCodeRequest, moduleId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public runCode(body: RunCodeRequest, moduleId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public runCode(body: RunCodeRequest, moduleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling runCode.'); - } - - if (moduleId === null || moduleId === undefined) { - throw new Error('Required parameter moduleId was null or undefined when calling runCode.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/runCode/${encodeURIComponent(String(moduleId))}/submit`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public sendEmailWithFeedback(body: FeedbackRequest, observe?: 'body', reportProgress?: boolean): Observable; - public sendEmailWithFeedback(body: FeedbackRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public sendEmailWithFeedback(body: FeedbackRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public sendEmailWithFeedback(body: FeedbackRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling sendEmailWithFeedback.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/feedback`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public sendEmailWithFeedback_1(observe?: 'body', reportProgress?: boolean): Observable; - public sendEmailWithFeedback_1(observe?: 'response', reportProgress?: boolean): Observable>; - public sendEmailWithFeedback_1(observe?: 'events', reportProgress?: boolean): Observable>; - public sendEmailWithFeedback_1(observe: any = 'body', reportProgress: boolean = false ): Observable { - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/logout`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param submFileId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public subFilesDeleteSingle(submFileId: number, observe?: 'body', reportProgress?: boolean): Observable; - public subFilesDeleteSingle(submFileId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public subFilesDeleteSingle(submFileId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public subFilesDeleteSingle(submFileId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (submFileId === null || submFileId === undefined) { - throw new Error('Required parameter submFileId was null or undefined when calling subFilesDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/submFiles/${encodeURIComponent(String(submFileId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param submFileId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public submFilesGetSingle(submFileId: number, observe?: 'body', reportProgress?: boolean): Observable; - public submFilesGetSingle(submFileId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public submFilesGetSingle(submFileId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public submFilesGetSingle(submFileId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (submFileId === null || submFileId === undefined) { - throw new Error('Required parameter submFileId was null or undefined when calling submFilesGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/submFiles/${encodeURIComponent(String(submFileId))}`,//@ts-ignore -{responseType: "blob", - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param view - * @param contentId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public taskContent2GetSingle(view: string, contentId: string, observe?: 'body', reportProgress?: boolean): Observable; - public taskContent2GetSingle(view: string, contentId: string, observe?: 'response', reportProgress?: boolean): Observable>; - public taskContent2GetSingle(view: string, contentId: string, observe?: 'events', reportProgress?: boolean): Observable>; - public taskContent2GetSingle(view: string, contentId: string, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (view === null || view === undefined) { - throw new Error('Required parameter view was null or undefined when calling taskContent2GetSingle.'); - } - - if (contentId === null || contentId === undefined) { - throw new Error('Required parameter contentId was null or undefined when calling taskContent2GetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/taskContent/${String(contentId)}/${String(view)}`, - { - //@ts-ignore - responseType: "blob", - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param view - * @param contentId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public taskContentGetSingle(view: string, contentId: string, observe?: 'body', reportProgress?: boolean): Observable; - public taskContentGetSingle(view: string, contentId: string, observe?: 'response', reportProgress?: boolean): Observable>; - public taskContentGetSingle(view: string, contentId: string, observe?: 'events', reportProgress?: boolean): Observable>; - public taskContentGetSingle(view: string, contentId: string, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (view === null || view === undefined) { - throw new Error('Required parameter view was null or undefined when calling taskContentGetSingle.'); - } - - if (contentId === null || contentId === undefined) { - throw new Error('Required parameter contentId was null or undefined when calling taskContentGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/task-content/${encodeURIComponent(String(contentId))}/${encodeURIComponent(String(view))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskDetailsId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public taskDetailsGetSingle(taskDetailsId: number, observe?: 'body', reportProgress?: boolean): Observable; - public taskDetailsGetSingle(taskDetailsId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public taskDetailsGetSingle(taskDetailsId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public taskDetailsGetSingle(taskDetailsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskDetailsId === null || taskDetailsId === undefined) { - throw new Error('Required parameter taskDetailsId was null or undefined when calling taskDetailsGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/taskDetails/${encodeURIComponent(String(taskDetailsId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public tasksGetAll(year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public tasksGetAll(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public tasksGetAll(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public tasksGetAll(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/tasks`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param tasksId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public tasksGetSingle(tasksId: number, observe?: 'body', reportProgress?: boolean): Observable; - public tasksGetSingle(tasksId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public tasksGetSingle(tasksId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public tasksGetSingle(tasksId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (tasksId === null || tasksId === undefined) { - throw new Error('Required parameter tasksId was null or undefined when calling tasksGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/tasks/${encodeURIComponent(String(tasksId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param threadDetailsId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public threadDetailsGetSingle(threadDetailsId: number, observe?: 'body', reportProgress?: boolean): Observable; - public threadDetailsGetSingle(threadDetailsId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public threadDetailsGetSingle(threadDetailsId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public threadDetailsGetSingle(threadDetailsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (threadDetailsId === null || threadDetailsId === undefined) { - throw new Error('Required parameter threadDetailsId was null or undefined when calling threadDetailsGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/threadDetails/${encodeURIComponent(String(threadDetailsId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public threadsCreateNew(body: ThreadsCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public threadsCreateNew(body: ThreadsCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public threadsCreateNew(body: ThreadsCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public threadsCreateNew(body: ThreadsCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling threadsCreateNew.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/threads`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param wave - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public threadsGetAll(wave?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public threadsGetAll(wave?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public threadsGetAll(wave?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public threadsGetAll(wave?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (wave !== undefined && wave !== null) { - queryParameters = queryParameters.set('wave', wave); - } - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/threads`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param threadsId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public threadsGetSingle(threadsId: number, observe?: 'body', reportProgress?: boolean): Observable; - public threadsGetSingle(threadsId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public threadsGetSingle(threadsId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public threadsGetSingle(threadsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (threadsId === null || threadsId === undefined) { - throw new Error('Required parameter threadsId was null or undefined when calling threadsGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/threads/${encodeURIComponent(String(threadsId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param threadsId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public threadsMarkVisited(threadsId: number, observe?: 'body', reportProgress?: boolean): Observable; - public threadsMarkVisited(threadsId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public threadsMarkVisited(threadsId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public threadsMarkVisited(threadsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (threadsId === null || threadsId === undefined) { - throw new Error('Required parameter threadsId was null or undefined when calling threadsMarkVisited.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('put',`${this.basePath}/threads/${encodeURIComponent(String(threadsId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param usersId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public usersDeleteSingle(usersId: number, observe?: 'body', reportProgress?: boolean): Observable; - public usersDeleteSingle(usersId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public usersDeleteSingle(usersId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public usersDeleteSingle(usersId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (usersId === null || usersId === undefined) { - throw new Error('Required parameter usersId was null or undefined when calling usersDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/users/${encodeURIComponent(String(usersId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param filter - * @param sort - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public usersGetAll(filter?: string, sort?: string, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public usersGetAll(filter?: string, sort?: string, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public usersGetAll(filter?: string, sort?: string, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public usersGetAll(filter?: string, sort?: string, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (filter !== undefined && filter !== null) { - queryParameters = queryParameters.set('filter', filter); - } - if (sort !== undefined && sort !== null) { - queryParameters = queryParameters.set('sort', sort); - } - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/users`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param usersId - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public usersGetSingle(usersId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public usersGetSingle(usersId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public usersGetSingle(usersId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public usersGetSingle(usersId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (usersId === null || usersId === undefined) { - throw new Error('Required parameter usersId was null or undefined when calling usersGetSingle.'); - } - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/users/${encodeURIComponent(String(usersId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param usersId - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public usersGetSingleDiscordInvite(usersId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public usersGetSingleDiscordInvite(usersId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public usersGetSingleDiscordInvite(usersId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public usersGetSingleDiscordInvite(usersId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (usersId === null || usersId === undefined) { - throw new Error('Required parameter usersId was null or undefined when calling usersGetSingleDiscordInvite.'); - } - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/users/${encodeURIComponent(String(usersId))}/discord`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public wavesCreateNew(body: WaveCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public wavesCreateNew(body: WaveCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public wavesCreateNew(body: WaveCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public wavesCreateNew(body: WaveCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling wavesCreateNew.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/waves`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param waveId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public wavesDeleteSingle(waveId: number, observe?: 'body', reportProgress?: boolean): Observable; - public wavesDeleteSingle(waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public wavesDeleteSingle(waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public wavesDeleteSingle(waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (waveId === null || waveId === undefined) { - throw new Error('Required parameter waveId was null or undefined when calling wavesDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/waves/${encodeURIComponent(String(waveId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public wavesGetAll(year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public wavesGetAll(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public wavesGetAll(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public wavesGetAll(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/waves`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param waveId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public wavesGetSingle(waveId: number, observe?: 'body', reportProgress?: boolean): Observable; - public wavesGetSingle(waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public wavesGetSingle(waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public wavesGetSingle(waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (waveId === null || waveId === undefined) { - throw new Error('Required parameter waveId was null or undefined when calling wavesGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/waves/${encodeURIComponent(String(waveId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param waveId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe?: 'body', reportProgress?: boolean): Observable; - public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling wavesUpdateSingle.'); - } - - if (waveId === null || waveId === undefined) { - throw new Error('Required parameter waveId was null or undefined when calling wavesUpdateSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/waves/${encodeURIComponent(String(waveId))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public yearsCreateNew(body: YearCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public yearsCreateNew(body: YearCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public yearsCreateNew(body: YearCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public yearsCreateNew(body: YearCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling yearsCreateNew.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/years`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param yearId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public yearsDeleteSingle(yearId: number, observe?: 'body', reportProgress?: boolean): Observable; - public yearsDeleteSingle(yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public yearsDeleteSingle(yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public yearsDeleteSingle(yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (yearId === null || yearId === undefined) { - throw new Error('Required parameter yearId was null or undefined when calling yearsDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/years/${encodeURIComponent(String(yearId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public yearsGetAll(observe?: 'body', reportProgress?: boolean): Observable; - public yearsGetAll(observe?: 'response', reportProgress?: boolean): Observable>; - public yearsGetAll(observe?: 'events', reportProgress?: boolean): Observable>; - public yearsGetAll(observe: any = 'body', reportProgress: boolean = false ): Observable { - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/years`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param yearId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public yearsGetSingle(yearId: number, observe?: 'body', reportProgress?: boolean): Observable; - public yearsGetSingle(yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public yearsGetSingle(yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public yearsGetSingle(yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (yearId === null || yearId === undefined) { - throw new Error('Required parameter yearId was null or undefined when calling yearsGetSingle.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/years/${encodeURIComponent(String(yearId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param yearId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe?: 'body', reportProgress?: boolean): Observable; - public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling yearsUpdateSingle.'); - } - - if (yearId === null || yearId === undefined) { - throw new Error('Required parameter yearId was null or undefined when calling yearsUpdateSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/years/${encodeURIComponent(String(yearId))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - -} + import { Inject, Injectable, Optional } from '@angular/core'; + import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent } from '@angular/common/http'; + import { CustomHttpUrlEncodingCodec } from '../encoder'; + + import { Observable } from 'rxjs'; + + import { AchievementCreationRequest } from '../model/achievementCreationRequest'; + import { AchievementGrantRequest } from '../model/achievementGrantRequest'; + import { AchievementGrantResponse } from '../model/achievementGrantResponse'; + import { AchievementResponse } from '../model/achievementResponse'; + import { AchievementsResponse } from '../model/achievementsResponse'; + import { AdminInstanceConfig } from '../model/adminInstanceConfig'; + import { AdminInstanceConfigResponse } from '../model/adminInstanceConfigResponse'; + import { AdminTaskCreationRequest } from '../model/adminTaskCreationRequest'; + import { AdminTaskDeployResponse } from '../model/adminTaskDeployResponse'; + import { AdminTaskMergeResponse } from '../model/adminTaskMergeResponse'; + import { AdminTaskResponse } from '../model/adminTaskResponse'; + import { AdminTaskUpdateRequest } from '../model/adminTaskUpdateRequest'; + import { AdminTasksResponse } from '../model/adminTasksResponse'; + import { ArticleCreationRequest } from '../model/articleCreationRequest'; + import { ArticleResponse } from '../model/articleResponse'; + import { ArticlesResponse } from '../model/articlesResponse'; + import { AuthResponse } from '../model/authResponse'; + import { BasicProfileResponse } from '../model/basicProfileResponse'; + import { ChangePasswordRequest } from '../model/changePasswordRequest'; + import { ChangePasswordResult } from '../model/changePasswordResult'; + import { CodeEvaluationResponse } from '../model/codeEvaluationResponse'; + import { CorrectionEvaluation } from '../model/correctionEvaluation'; + import { CorrectionInfoResponse } from '../model/correctionInfoResponse'; + import { CorrectionInfosAllResponse } from '../model/correctionInfosAllResponse'; + import { CorrectionResponse } from '../model/correctionResponse'; + import { CorrectionState } from '../model/correctionState'; + import { CorrectionUpdateRequest } from '../model/correctionUpdateRequest'; + import { CorrectionsAllResponse } from '../model/correctionsAllResponse'; + import { DiplomasListResponse } from '../model/diplomasListResponse'; + import { EmailSendRequest } from '../model/emailSendRequest'; + import { EmailSendResponse } from '../model/emailSendResponse'; + import { EmptyDict } from '../model/emptyDict'; + import { Execution } from '../model/execution'; + import { ExecutionResult } from '../model/executionResult'; + import { ExecutionsResponse } from '../model/executionsResponse'; + import { FeedbackCreationRequest } from '../model/feedbackCreationRequest'; + import { FeedbackRequest } from '../model/feedbackRequest'; + import { FeedbackResponse } from '../model/feedbackResponse'; + import { FeedbackUpdateRequest } from '../model/feedbackUpdateRequest'; + import { FeedbacksResponse } from '../model/feedbacksResponse'; + import { ForgottenPasswordRequest } from '../model/forgottenPasswordRequest'; + import { ForgottenPasswordResult } from '../model/forgottenPasswordResult'; + import { InlineResponse200 } from '../model/inlineResponse200'; + import { InlineResponse2001 } from '../model/inlineResponse2001'; + import { ModuleResponse } from '../model/moduleResponse'; + import { ModuleSubmissionRequest } from '../model/moduleSubmissionRequest'; + import { ModuleSubmitResponse } from '../model/moduleSubmitResponse'; + import { MonitoringDashboardURLResponse } from '../model/monitoringDashboardURLResponse'; + import { PossibleErrorDict } from '../model/possibleErrorDict'; + import { PostResponse } from '../model/postResponse'; + import { PostsCreationRequest } from '../model/postsCreationRequest'; + import { PostsEditRequest } from '../model/postsEditRequest'; + import { ProfileEdit } from '../model/profileEdit'; + import { ProfileResponse } from '../model/profileResponse'; + import { RegistrationRequest } from '../model/registrationRequest'; + import { RunCodeRequest } from '../model/runCodeRequest'; + import { RunCodeResponse } from '../model/runCodeResponse'; + import { TaskDetailResponse } from '../model/taskDetailResponse'; + import { TaskResponse } from '../model/taskResponse'; + import { TasksResponse } from '../model/tasksResponse'; + import { ThreadDetailResponse } from '../model/threadDetailResponse'; + import { ThreadResponse } from '../model/threadResponse'; + import { ThreadsCreationRequest } from '../model/threadsCreationRequest'; + import { ThreadsResponse } from '../model/threadsResponse'; + import { Uint8Array } from '../model/uint8Array'; + import { UserResponse } from '../model/userResponse'; + import { UsersResponse } from '../model/usersResponse'; + import { WaveCreationRequest } from '../model/waveCreationRequest'; + import { WaveResponse } from '../model/waveResponse'; + import { WaveUpdateRequest } from '../model/waveUpdateRequest'; + import { Waves } from '../model/waves'; + import { YearCreationRequest } from '../model/yearCreationRequest'; + import { YearResponse } from '../model/yearResponse'; + import { YearUpdateRequest } from '../model/yearUpdateRequest'; + import { Years } from '../model/years'; + + import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; + import { Configuration } from '../configuration'; + + + @Injectable() + export class DefaultService { + + protected basePath = '/'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) { + if (basePath) { + this.basePath = basePath; + } + if (configuration) { + this.configuration = configuration; + this.basePath = basePath || configuration.basePath || this.basePath; + } + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public achievementsCreateNew(body: AchievementCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public achievementsCreateNew(body: AchievementCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public achievementsCreateNew(body: AchievementCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public achievementsCreateNew(body: AchievementCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling achievementsCreateNew.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/achievements`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param achievementId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public achievementsDeleteSingle(achievementId: number, observe?: 'body', reportProgress?: boolean): Observable; + public achievementsDeleteSingle(achievementId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public achievementsDeleteSingle(achievementId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public achievementsDeleteSingle(achievementId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (achievementId === null || achievementId === undefined) { + throw new Error('Required parameter achievementId was null or undefined when calling achievementsDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/achievements/${encodeURIComponent(String(achievementId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param achievementId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe?: 'body', reportProgress?: boolean): Observable; + public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling achievementsEditSingle.'); + } + + if (achievementId === null || achievementId === undefined) { + throw new Error('Required parameter achievementId was null or undefined when calling achievementsEditSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/achievements/${encodeURIComponent(String(achievementId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param _limit + * @param _start + * @param achievement + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (_limit !== undefined && _limit !== null) { + queryParameters = queryParameters.set('_limit', _limit); + } + if (_start !== undefined && _start !== null) { + queryParameters = queryParameters.set('_start', _start); + } + + let headers = this.defaultHeaders; + if (achievement !== undefined && achievement !== null) { + headers = headers.set('achievement', String(achievement)); + } + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/achievements`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param achievementId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public achievementsGetSingle(achievementId: number, observe?: 'body', reportProgress?: boolean): Observable; + public achievementsGetSingle(achievementId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public achievementsGetSingle(achievementId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public achievementsGetSingle(achievementId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (achievementId === null || achievementId === undefined) { + throw new Error('Required parameter achievementId was null or undefined when calling achievementsGetSingle.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/achievements/${encodeURIComponent(String(achievementId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public achievementsGetSuccessful(observe?: 'body', reportProgress?: boolean): Observable; + public achievementsGetSuccessful(observe?: 'response', reportProgress?: boolean): Observable>; + public achievementsGetSuccessful(observe?: 'events', reportProgress?: boolean): Observable>; + public achievementsGetSuccessful(observe: any = 'body', reportProgress: boolean = false ): Observable { + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/achievements/special/successful`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminAchievementsGrant(body: AchievementGrantRequest, observe?: 'body', reportProgress?: boolean): Observable; + public adminAchievementsGrant(body: AchievementGrantRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public adminAchievementsGrant(body: AchievementGrantRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public adminAchievementsGrant(body: AchievementGrantRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling adminAchievementsGrant.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/admin/achievements/grant`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminCorrectionInfosGetAll(year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminCorrectionInfosGetAll(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminCorrectionInfosGetAll(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminCorrectionInfosGetAll(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/correctionInfos`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminCorrectionInfosGetSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminCorrectionInfosGetSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminCorrectionInfosGetSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminCorrectionInfosGetSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminCorrectionInfosGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/correctionInfos/${encodeURIComponent(String(taskId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param _public + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminCorrectionsEmail(taskId: number, _public: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminCorrectionsEmail(taskId: number, _public: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminCorrectionsEmail(taskId: number, _public: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminCorrectionsEmail(taskId: number, _public: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminCorrectionsEmail.'); + } + + if (_public === null || _public === undefined) { + throw new Error('Required parameter _public was null or undefined when calling adminCorrectionsEmail.'); + } + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (_public !== undefined && _public !== null) { + queryParameters = queryParameters.set('public', _public); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('put',`${this.basePath}/admin/correctionsEmail/${encodeURIComponent(String(taskId))}`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param task + * @param participant + * @param state + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (task !== undefined && task !== null) { + queryParameters = queryParameters.set('task', task); + } + if (participant !== undefined && participant !== null) { + queryParameters = queryParameters.set('participant', participant); + } + if (state !== undefined && state !== null) { + queryParameters = queryParameters.set('state', state); + } + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/corrections`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param correctionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminCorrectionsGetSingle(correctionId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminCorrectionsGetSingle(correctionId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminCorrectionsGetSingle(correctionId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminCorrectionsGetSingle(correctionId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (correctionId === null || correctionId === undefined) { + throw new Error('Required parameter correctionId was null or undefined when calling adminCorrectionsGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/corrections/${encodeURIComponent(String(correctionId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param correctionId + * @param _public + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminCorrectionsPublish(correctionId: number, _public: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminCorrectionsPublish(correctionId: number, _public: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminCorrectionsPublish(correctionId: number, _public: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminCorrectionsPublish(correctionId: number, _public: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (correctionId === null || correctionId === undefined) { + throw new Error('Required parameter correctionId was null or undefined when calling adminCorrectionsPublish.'); + } + + if (_public === null || _public === undefined) { + throw new Error('Required parameter _public was null or undefined when calling adminCorrectionsPublish.'); + } + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (_public !== undefined && _public !== null) { + queryParameters = queryParameters.set('public', _public); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/corrections/${encodeURIComponent(String(correctionId))}/publish`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param correctionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling adminCorrectionsUpdateSingle.'); + } + + if (correctionId === null || correctionId === undefined) { + throw new Error('Required parameter correctionId was null or undefined when calling adminCorrectionsUpdateSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/admin/corrections/${encodeURIComponent(String(correctionId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param files + * @param userId + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (files === null || files === undefined) { + throw new Error('Required parameter files was null or undefined when calling adminDiplomaGrant.'); + } + + if (userId === null || userId === undefined) { + throw new Error('Required parameter userId was null or undefined when calling adminDiplomaGrant.'); + } + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): void; }; + let useForm = false; + let convertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + useForm = canConsumeForm; + if (useForm) { + formParams = new FormData(); + } else { + formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + } + + if (files !== undefined) { + formParams = formParams.append('files', files) as any || formParams; + } + + return this.httpClient.request('post',`${this.basePath}/admin/diploma/${encodeURIComponent(String(userId))}/grant`, + { + body: convertFormParamsToString ? formParams.toString() : formParams, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminEmailSend(body: EmailSendRequest, observe?: 'body', reportProgress?: boolean): Observable; + public adminEmailSend(body: EmailSendRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public adminEmailSend(body: EmailSendRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public adminEmailSend(body: EmailSendRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling adminEmailSend.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/admin/e-mail`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param evaluationId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminEvaluationGetSingle(evaluationId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminEvaluationGetSingle(evaluationId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminEvaluationGetSingle(evaluationId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminEvaluationGetSingle(evaluationId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (evaluationId === null || evaluationId === undefined) { + throw new Error('Required parameter evaluationId was null or undefined when calling adminEvaluationGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/evalCodes/${encodeURIComponent(String(evaluationId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param user + * @param module + * @param limit + * @param page + * @param from + * @param to + * @param result + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + + + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (user !== undefined && user !== null) { + queryParameters = queryParameters.set('user', user); + } + if (module !== undefined && module !== null) { + queryParameters = queryParameters.set('module', module); + } + if (limit !== undefined && limit !== null) { + queryParameters = queryParameters.set('limit', limit); + } + if (page !== undefined && page !== null) { + queryParameters = queryParameters.set('page', page); + } + if (from !== undefined && from !== null) { + queryParameters = queryParameters.set('from', from); + } + if (to !== undefined && to !== null) { + queryParameters = queryParameters.set('to', to); + } + if (result !== undefined && result !== null) { + queryParameters = queryParameters.set('result', result); + } + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/execs`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param executionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminExecutionGetSingle(executionId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminExecutionGetSingle(executionId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminExecutionGetSingle(executionId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminExecutionGetSingle(executionId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (executionId === null || executionId === undefined) { + throw new Error('Required parameter executionId was null or undefined when calling adminExecutionGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/execs/${encodeURIComponent(String(executionId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param evaluationId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminGetEvaluationSingle(evaluationId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminGetEvaluationSingle(evaluationId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminGetEvaluationSingle(evaluationId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminGetEvaluationSingle(evaluationId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (evaluationId === null || evaluationId === undefined) { + throw new Error('Required parameter evaluationId was null or undefined when calling adminGetEvaluationSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/evaluations/${encodeURIComponent(String(evaluationId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminMonitoringDashboardURL(observe?: 'body', reportProgress?: boolean): Observable; + public adminMonitoringDashboardURL(observe?: 'response', reportProgress?: boolean): Observable>; + public adminMonitoringDashboardURL(observe?: 'events', reportProgress?: boolean): Observable>; + public adminMonitoringDashboardURL(observe: any = 'body', reportProgress: boolean = false ): Observable { + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/monitoring-dashboard`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param evaluationId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminSubmissionEvaluation(evaluationId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminSubmissionEvaluation(evaluationId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminSubmissionEvaluation(evaluationId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminSubmissionEvaluation(evaluationId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (evaluationId === null || evaluationId === undefined) { + throw new Error('Required parameter evaluationId was null or undefined when calling adminSubmissionEvaluation.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/subm/eval/${encodeURIComponent(String(evaluationId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminSubmissionTask(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminSubmissionTask(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminSubmissionTask(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminSubmissionTask(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminSubmissionTask.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/subm/task/${encodeURIComponent(String(taskId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTaskDeploySingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTaskDeploySingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTaskDeploySingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTaskDeploySingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminTaskDeploySingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('post',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}/deploy`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTaskMergeSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTaskMergeSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTaskMergeSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTaskMergeSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminTaskMergeSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('post',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}/merge`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling adminTasksCreateNew.'); + } + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/admin/atasks`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTasksDeleteSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTasksDeleteSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTasksDeleteSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTasksDeleteSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminTasksDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param wave + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTasksGetAll(wave?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTasksGetAll(wave?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTasksGetAll(wave?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTasksGetAll(wave?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (wave !== undefined && wave !== null) { + queryParameters = queryParameters.set('wave', wave); + } + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/atasks`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTasksGetDeploySingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTasksGetDeploySingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTasksGetDeploySingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTasksGetDeploySingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminTasksGetDeploySingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}/deploy`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTasksGetSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTasksGetSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTasksGetSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTasksGetSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminTasksGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling adminTasksUpdateSingle.'); + } + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminTasksUpdateSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminUserExport(year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminUserExport(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminUserExport(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminUserExport(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/user-export`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param waveId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminWavesDiff(waveId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminWavesDiff(waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminWavesDiff(waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminWavesDiff(waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (waveId === null || waveId === undefined) { + throw new Error('Required parameter waveId was null or undefined when calling adminWavesDiff.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/waves/${encodeURIComponent(String(waveId))}/diff`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public articlesCreateNew(body: ArticleCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public articlesCreateNew(body: ArticleCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public articlesCreateNew(body: ArticleCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public articlesCreateNew(body: ArticleCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling articlesCreateNew.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/articles`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param articleId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public articlesDeleteSingle(articleId: number, observe?: 'body', reportProgress?: boolean): Observable; + public articlesDeleteSingle(articleId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public articlesDeleteSingle(articleId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public articlesDeleteSingle(articleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (articleId === null || articleId === undefined) { + throw new Error('Required parameter articleId was null or undefined when calling articlesDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/articles/${encodeURIComponent(String(articleId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param articleId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe?: 'body', reportProgress?: boolean): Observable; + public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling articlesEditSingle.'); + } + + if (articleId === null || articleId === undefined) { + throw new Error('Required parameter articleId was null or undefined when calling articlesEditSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/articles/${encodeURIComponent(String(articleId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param _limit + * @param _start + * @param article + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (_limit !== undefined && _limit !== null) { + queryParameters = queryParameters.set('_limit', _limit); + } + if (_start !== undefined && _start !== null) { + queryParameters = queryParameters.set('_start', _start); + } + + let headers = this.defaultHeaders; + if (article !== undefined && article !== null) { + headers = headers.set('article', String(article)); + } + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/articles`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param articleId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public articlesGetSingle(articleId: number, observe?: 'body', reportProgress?: boolean): Observable; + public articlesGetSingle(articleId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public articlesGetSingle(articleId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public articlesGetSingle(articleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (articleId === null || articleId === undefined) { + throw new Error('Required parameter articleId was null or undefined when calling articlesGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/articles/${encodeURIComponent(String(articleId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param grant_type + * @param username + * @param password + * @param refresh_token + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + // @ts-ignore + public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe?: 'body', reportProgress?: boolean): Observable; + // @ts-ignore + public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe?: 'response', reportProgress?: boolean): Observable>; + // @ts-ignore + public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe?: 'events', reportProgress?: boolean): Observable>; + // @ts-ignore + public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (grant_type === null || grant_type === undefined) { + throw new Error('Required parameter grant_type was null or undefined when calling authorize.'); + } + + if (username === null || username === undefined) { + throw new Error('Required parameter username was null or undefined when calling authorize.'); + } + + if (password === null || password === undefined) { + throw new Error('Required parameter password was null or undefined when calling authorize.'); + } + + if (refresh_token === null || refresh_token === undefined) { + throw new Error('Required parameter refresh_token was null or undefined when calling authorize.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): void; }; + let useForm = false; + let convertFormParamsToString = false; + if (useForm) { + formParams = new FormData(); + } else { + formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + } + + if (grant_type !== undefined) { + formParams = formParams.append('grant_type', grant_type) as any || formParams; + } + if (username !== undefined) { + formParams = formParams.append('username', username) as any || formParams; + } + if (password !== undefined) { + formParams = formParams.append('password', password) as any || formParams; + } + if (refresh_token !== undefined) { + formParams = formParams.append('refresh_token', refresh_token) as any || formParams; + } + + return this.httpClient.request('post',`${this.basePath}/auth`, + { + body: convertFormParamsToString ? formParams.toString() : formParams, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public basicProfileGetSingle(observe?: 'body', reportProgress?: boolean): Observable; + public basicProfileGetSingle(observe?: 'response', reportProgress?: boolean): Observable>; + public basicProfileGetSingle(observe?: 'events', reportProgress?: boolean): Observable>; + public basicProfileGetSingle(observe: any = 'body', reportProgress: boolean = false ): Observable { + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/basicProfile`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public changePassword(body: ChangePasswordRequest, observe?: 'body', reportProgress?: boolean): Observable; + public changePassword(body: ChangePasswordRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public changePassword(body: ChangePasswordRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public changePassword(body: ChangePasswordRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling changePassword.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/settings/changePassword`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param files + * @param path + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public contentsCreateNewForm(files: Array, path?: string, observe?: 'body', reportProgress?: boolean): Observable; + public contentsCreateNewForm(files: Array, path?: string, observe?: 'response', reportProgress?: boolean): Observable>; + public contentsCreateNewForm(files: Array, path?: string, observe?: 'events', reportProgress?: boolean): Observable>; + public contentsCreateNewForm(files: Array, path?: string, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (files === null || files === undefined) { + throw new Error('Required parameter files was null or undefined when calling contentsCreateNew.'); + } + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (path !== undefined && path !== null) { + queryParameters = queryParameters.set('path', path); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): void; }; + let useForm = false; + let convertFormParamsToString = false; + if (useForm) { + formParams = new FormData(); + } else { + formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + } + + if (files) { + files.forEach((element) => { + formParams = formParams.append('files', element) as any || formParams; + }) + } + + return this.httpClient.request('post',`${this.basePath}/content`, + { + body: convertFormParamsToString ? formParams.toString() : formParams, + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param path + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public contentsDeleteSingle(path?: string, observe?: 'body', reportProgress?: boolean): Observable; + public contentsDeleteSingle(path?: string, observe?: 'response', reportProgress?: boolean): Observable>; + public contentsDeleteSingle(path?: string, observe?: 'events', reportProgress?: boolean): Observable>; + public contentsDeleteSingle(path?: string, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (path !== undefined && path !== null) { + queryParameters = queryParameters.set('path', path); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/content`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param path + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public contentsGetSingle(path?: string, observe?: 'body', reportProgress?: boolean): Observable; + public contentsGetSingle(path?: string, observe?: 'response', reportProgress?: boolean): Observable>; + public contentsGetSingle(path?: string, observe?: 'events', reportProgress?: boolean): Observable>; + public contentsGetSingle(path?: string, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (path !== undefined && path !== null) { + queryParameters = queryParameters.set('path', path); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/content`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param userId + * @param yearId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public diplomaDownloadSingle(userId: number, yearId: number, observe?: 'body', reportProgress?: boolean): Observable; + public diplomaDownloadSingle(userId: number, yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public diplomaDownloadSingle(userId: number, yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public diplomaDownloadSingle(userId: number, yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (userId === null || userId === undefined) { + throw new Error('Required parameter userId was null or undefined when calling diplomaDownloadSingle.'); + } + + if (yearId === null || yearId === undefined) { + throw new Error('Required parameter yearId was null or undefined when calling diplomaDownloadSingle.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/diplomas/${encodeURIComponent(String(userId))}/${encodeURIComponent(String(yearId))}/show`,//@ts-ignore + {responseType: "blob", + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param userId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public diplomasListForUserSingle(userId: number, observe?: 'body', reportProgress?: boolean): Observable; + public diplomasListForUserSingle(userId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public diplomasListForUserSingle(userId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public diplomasListForUserSingle(userId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (userId === null || userId === undefined) { + throw new Error('Required parameter userId was null or undefined when calling diplomasListForUserSingle.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/diplomas/${encodeURIComponent(String(userId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public feedbackCreateNew(body: FeedbackCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public feedbackCreateNew(body: FeedbackCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public feedbackCreateNew(body: FeedbackCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public feedbackCreateNew(body: FeedbackCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling feedbackCreateNew.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/feedbacks`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param feedbackId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public feedbackDeleteSingle(feedbackId: number, observe?: 'body', reportProgress?: boolean): Observable; + public feedbackDeleteSingle(feedbackId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public feedbackDeleteSingle(feedbackId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public feedbackDeleteSingle(feedbackId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (feedbackId === null || feedbackId === undefined) { + throw new Error('Required parameter feedbackId was null or undefined when calling feedbackDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/feedbacks/${encodeURIComponent(String(feedbackId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param feedbackId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe?: 'body', reportProgress?: boolean): Observable; + public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling feedbackEditSingle.'); + } + + if (feedbackId === null || feedbackId === undefined) { + throw new Error('Required parameter feedbackId was null or undefined when calling feedbackEditSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/feedbacks/${encodeURIComponent(String(feedbackId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param feedbackId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public feedbackGetSingle(feedbackId: number, observe?: 'body', reportProgress?: boolean): Observable; + public feedbackGetSingle(feedbackId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public feedbackGetSingle(feedbackId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public feedbackGetSingle(feedbackId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (feedbackId === null || feedbackId === undefined) { + throw new Error('Required parameter feedbackId was null or undefined when calling feedbackGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/feedbacks/${encodeURIComponent(String(feedbackId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public forgottenPasswordReset(body: ForgottenPasswordRequest, observe?: 'body', reportProgress?: boolean): Observable; + public forgottenPasswordReset(body: ForgottenPasswordRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public forgottenPasswordReset(body: ForgottenPasswordRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public forgottenPasswordReset(body: ForgottenPasswordRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling forgottenPasswordReset.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/forgottenPassword`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param context + * @param imagesId + * @param file + * @param module + * @param user + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe?: 'body', reportProgress?: boolean): Observable; + public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (context === null || context === undefined) { + throw new Error('Required parameter context was null or undefined when calling imagesGetSingle.'); + } + + if (imagesId === null || imagesId === undefined) { + throw new Error('Required parameter imagesId was null or undefined when calling imagesGetSingle.'); + } + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (file !== undefined && file !== null) { + queryParameters = queryParameters.set('file', file); + } + if (module !== undefined && module !== null) { + queryParameters = queryParameters.set('module', module); + } + if (user !== undefined && user !== null) { + queryParameters = queryParameters.set('user', user); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/images/${encodeURIComponent(String(context))}/${encodeURIComponent(String(imagesId))}`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public instanceConfigGetAll(observe?: 'body', reportProgress?: boolean): Observable; + public instanceConfigGetAll(observe?: 'response', reportProgress?: boolean): Observable>; + public instanceConfigGetAll(observe?: 'events', reportProgress?: boolean): Observable>; + public instanceConfigGetAll(observe: any = 'body', reportProgress: boolean = false ): Observable { + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/instanceConfig`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public instanceConfigSetSingle(body: AdminInstanceConfig, observe?: 'body', reportProgress?: boolean): Observable; + public instanceConfigSetSingle(body: AdminInstanceConfig, observe?: 'response', reportProgress?: boolean): Observable>; + public instanceConfigSetSingle(body: AdminInstanceConfig, observe?: 'events', reportProgress?: boolean): Observable>; + public instanceConfigSetSingle(body: AdminInstanceConfig, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling instanceConfigSetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/admin/instanceConfig`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param modulesId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public modulesGetSingle(modulesId: number, observe?: 'body', reportProgress?: boolean): Observable; + public modulesGetSingle(modulesId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public modulesGetSingle(modulesId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public modulesGetSingle(modulesId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (modulesId === null || modulesId === undefined) { + throw new Error('Required parameter modulesId was null or undefined when calling modulesGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/modules/${encodeURIComponent(String(modulesId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param files + * @param modulesId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public modulesSubmitFilesForm(files: Blob, modulesId: number, observe?: 'body', reportProgress?: boolean): Observable; + public modulesSubmitFilesForm(files: Blob, modulesId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public modulesSubmitFilesForm(files: Blob, modulesId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public modulesSubmitFilesForm(files: Blob, modulesId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (files === null || files === undefined) { + throw new Error('Required parameter files was null or undefined when calling modulesSubmitFiles.'); + } + + if (modulesId === null || modulesId === undefined) { + throw new Error('Required parameter modulesId was null or undefined when calling modulesSubmitFiles.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): void; }; + let useForm = false; + let convertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + useForm = canConsumeForm; + if (useForm) { + formParams = new FormData(); + } else { + formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + } + + if (files !== undefined) { + formParams = formParams.append('files', files) as any || formParams; + } + + return this.httpClient.request('post',`${this.basePath}/modules/${encodeURIComponent(String(modulesId))}/submitFiles`, + { + body: convertFormParamsToString ? formParams.toString() : formParams, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param modulesId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe?: 'body', reportProgress?: boolean): Observable; + public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (modulesId === null || modulesId === undefined) { + throw new Error('Required parameter modulesId was null or undefined when calling modulesSubmitSingle.'); + } + + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/modules/${encodeURIComponent(String(modulesId))}/submit`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postsCreateNew(body: PostsCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public postsCreateNew(body: PostsCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public postsCreateNew(body: PostsCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public postsCreateNew(body: PostsCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling postsCreateNew.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/posts`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param postsId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postsDeleteSingle(postsId: number, observe?: 'body', reportProgress?: boolean): Observable; + public postsDeleteSingle(postsId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public postsDeleteSingle(postsId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public postsDeleteSingle(postsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (postsId === null || postsId === undefined) { + throw new Error('Required parameter postsId was null or undefined when calling postsDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/posts/${encodeURIComponent(String(postsId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param postsId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postsEditSingle(body: PostsEditRequest, postsId: number, observe?: 'body', reportProgress?: boolean): Observable; + public postsEditSingle(body: PostsEditRequest, postsId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public postsEditSingle(body: PostsEditRequest, postsId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public postsEditSingle(body: PostsEditRequest, postsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling postsEditSingle.'); + } + + if (postsId === null || postsId === undefined) { + throw new Error('Required parameter postsId was null or undefined when calling postsEditSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/posts/${encodeURIComponent(String(postsId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param postsId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postsGetSingle(postsId: number, observe?: 'body', reportProgress?: boolean): Observable; + public postsGetSingle(postsId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public postsGetSingle(postsId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public postsGetSingle(postsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (postsId === null || postsId === undefined) { + throw new Error('Required parameter postsId was null or undefined when calling postsGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/posts/${encodeURIComponent(String(postsId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public profileEditMy(body: ProfileEdit, observe?: 'body', reportProgress?: boolean): Observable; + public profileEditMy(body: ProfileEdit, observe?: 'response', reportProgress?: boolean): Observable>; + public profileEditMy(body: ProfileEdit, observe?: 'events', reportProgress?: boolean): Observable>; + public profileEditMy(body: ProfileEdit, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling profileEditMy.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/profile`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public profileGetMy(year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public profileGetMy(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public profileGetMy(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public profileGetMy(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/profile`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param profileId + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public profileGetSingle(profileId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public profileGetSingle(profileId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public profileGetSingle(profileId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public profileGetSingle(profileId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (profileId === null || profileId === undefined) { + throw new Error('Required parameter profileId was null or undefined when calling profileGetSingle.'); + } + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/profile/${encodeURIComponent(String(profileId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param file + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public profileUploadPictureForm(file: Blob, observe?: 'body', reportProgress?: boolean): Observable; + public profileUploadPictureForm(file: Blob, observe?: 'response', reportProgress?: boolean): Observable>; + public profileUploadPictureForm(file: Blob, observe?: 'events', reportProgress?: boolean): Observable>; + public profileUploadPictureForm(file: Blob, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (file === null || file === undefined) { + throw new Error('Required parameter file was null or undefined when calling profileUploadPicture.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): void; }; + let useForm = false; + let convertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + useForm = canConsumeForm; + if (useForm) { + formParams = new FormData(); + } else { + formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + } + + if (file !== undefined) { + formParams = formParams.append('file', file) as any || formParams; + } + + return this.httpClient.request('post',`${this.basePath}/profile/picture`, + { + body: convertFormParamsToString ? formParams.toString() : formParams, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public registerNewUser(body: RegistrationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public registerNewUser(body: RegistrationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public registerNewUser(body: RegistrationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public registerNewUser(body: RegistrationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling registerNewUser.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/registration`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param moduleId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public runCode(body: RunCodeRequest, moduleId: number, observe?: 'body', reportProgress?: boolean): Observable; + public runCode(body: RunCodeRequest, moduleId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public runCode(body: RunCodeRequest, moduleId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public runCode(body: RunCodeRequest, moduleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling runCode.'); + } + + if (moduleId === null || moduleId === undefined) { + throw new Error('Required parameter moduleId was null or undefined when calling runCode.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/runCode/${encodeURIComponent(String(moduleId))}/submit`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public sendEmailWithFeedback(body: FeedbackRequest, observe?: 'body', reportProgress?: boolean): Observable; + public sendEmailWithFeedback(body: FeedbackRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public sendEmailWithFeedback(body: FeedbackRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public sendEmailWithFeedback(body: FeedbackRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling sendEmailWithFeedback.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/feedback`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public sendEmailWithFeedback_1(observe?: 'body', reportProgress?: boolean): Observable; + public sendEmailWithFeedback_1(observe?: 'response', reportProgress?: boolean): Observable>; + public sendEmailWithFeedback_1(observe?: 'events', reportProgress?: boolean): Observable>; + public sendEmailWithFeedback_1(observe: any = 'body', reportProgress: boolean = false ): Observable { + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/logout`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param submFileId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public subFilesDeleteSingle(submFileId: number, observe?: 'body', reportProgress?: boolean): Observable; + public subFilesDeleteSingle(submFileId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public subFilesDeleteSingle(submFileId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public subFilesDeleteSingle(submFileId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (submFileId === null || submFileId === undefined) { + throw new Error('Required parameter submFileId was null or undefined when calling subFilesDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/submFiles/${encodeURIComponent(String(submFileId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param submFileId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public submFilesGetSingle(submFileId: number, observe?: 'body', reportProgress?: boolean): Observable; + public submFilesGetSingle(submFileId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public submFilesGetSingle(submFileId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public submFilesGetSingle(submFileId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (submFileId === null || submFileId === undefined) { + throw new Error('Required parameter submFileId was null or undefined when calling submFilesGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/submFiles/${encodeURIComponent(String(submFileId))}`,//@ts-ignore + {responseType: "blob", + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param view + * @param contentId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public taskContent2GetSingle(view: string, contentId: string, observe?: 'body', reportProgress?: boolean): Observable; + public taskContent2GetSingle(view: string, contentId: string, observe?: 'response', reportProgress?: boolean): Observable>; + public taskContent2GetSingle(view: string, contentId: string, observe?: 'events', reportProgress?: boolean): Observable>; + public taskContent2GetSingle(view: string, contentId: string, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (view === null || view === undefined) { + throw new Error('Required parameter view was null or undefined when calling taskContent2GetSingle.'); + } + + if (contentId === null || contentId === undefined) { + throw new Error('Required parameter contentId was null or undefined when calling taskContent2GetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/taskContent/${String(contentId)}/${String(view)}`, + { + //@ts-ignore + responseType: "blob", + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param view + * @param contentId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public taskContentGetSingle(view: string, contentId: string, observe?: 'body', reportProgress?: boolean): Observable; + public taskContentGetSingle(view: string, contentId: string, observe?: 'response', reportProgress?: boolean): Observable>; + public taskContentGetSingle(view: string, contentId: string, observe?: 'events', reportProgress?: boolean): Observable>; + public taskContentGetSingle(view: string, contentId: string, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (view === null || view === undefined) { + throw new Error('Required parameter view was null or undefined when calling taskContentGetSingle.'); + } + + if (contentId === null || contentId === undefined) { + throw new Error('Required parameter contentId was null or undefined when calling taskContentGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/task-content/${encodeURIComponent(String(contentId))}/${encodeURIComponent(String(view))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskDetailsId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public taskDetailsGetSingle(taskDetailsId: number, observe?: 'body', reportProgress?: boolean): Observable; + public taskDetailsGetSingle(taskDetailsId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public taskDetailsGetSingle(taskDetailsId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public taskDetailsGetSingle(taskDetailsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskDetailsId === null || taskDetailsId === undefined) { + throw new Error('Required parameter taskDetailsId was null or undefined when calling taskDetailsGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/taskDetails/${encodeURIComponent(String(taskDetailsId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public tasksGetAll(year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public tasksGetAll(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public tasksGetAll(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public tasksGetAll(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/tasks`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param tasksId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public tasksGetSingle(tasksId: number, observe?: 'body', reportProgress?: boolean): Observable; + public tasksGetSingle(tasksId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public tasksGetSingle(tasksId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public tasksGetSingle(tasksId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (tasksId === null || tasksId === undefined) { + throw new Error('Required parameter tasksId was null or undefined when calling tasksGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/tasks/${encodeURIComponent(String(tasksId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param threadDetailsId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public threadDetailsGetSingle(threadDetailsId: number, observe?: 'body', reportProgress?: boolean): Observable; + public threadDetailsGetSingle(threadDetailsId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public threadDetailsGetSingle(threadDetailsId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public threadDetailsGetSingle(threadDetailsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (threadDetailsId === null || threadDetailsId === undefined) { + throw new Error('Required parameter threadDetailsId was null or undefined when calling threadDetailsGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/threadDetails/${encodeURIComponent(String(threadDetailsId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public threadsCreateNew(body: ThreadsCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public threadsCreateNew(body: ThreadsCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public threadsCreateNew(body: ThreadsCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public threadsCreateNew(body: ThreadsCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling threadsCreateNew.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/threads`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param wave + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public threadsGetAll(wave?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public threadsGetAll(wave?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public threadsGetAll(wave?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public threadsGetAll(wave?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (wave !== undefined && wave !== null) { + queryParameters = queryParameters.set('wave', wave); + } + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/threads`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param threadsId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public threadsGetSingle(threadsId: number, observe?: 'body', reportProgress?: boolean): Observable; + public threadsGetSingle(threadsId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public threadsGetSingle(threadsId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public threadsGetSingle(threadsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (threadsId === null || threadsId === undefined) { + throw new Error('Required parameter threadsId was null or undefined when calling threadsGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/threads/${encodeURIComponent(String(threadsId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param threadsId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public threadsMarkVisited(threadsId: number, observe?: 'body', reportProgress?: boolean): Observable; + public threadsMarkVisited(threadsId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public threadsMarkVisited(threadsId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public threadsMarkVisited(threadsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (threadsId === null || threadsId === undefined) { + throw new Error('Required parameter threadsId was null or undefined when calling threadsMarkVisited.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('put',`${this.basePath}/threads/${encodeURIComponent(String(threadsId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param usersId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public usersDeleteSingle(usersId: number, observe?: 'body', reportProgress?: boolean): Observable; + public usersDeleteSingle(usersId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public usersDeleteSingle(usersId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public usersDeleteSingle(usersId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (usersId === null || usersId === undefined) { + throw new Error('Required parameter usersId was null or undefined when calling usersDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/users/${encodeURIComponent(String(usersId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param filter + * @param sort + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public usersGetAll(filter?: string, sort?: string, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public usersGetAll(filter?: string, sort?: string, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public usersGetAll(filter?: string, sort?: string, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public usersGetAll(filter?: string, sort?: string, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (filter !== undefined && filter !== null) { + queryParameters = queryParameters.set('filter', filter); + } + if (sort !== undefined && sort !== null) { + queryParameters = queryParameters.set('sort', sort); + } + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/users`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param usersId + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public usersGetSingle(usersId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public usersGetSingle(usersId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public usersGetSingle(usersId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public usersGetSingle(usersId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (usersId === null || usersId === undefined) { + throw new Error('Required parameter usersId was null or undefined when calling usersGetSingle.'); + } + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/users/${encodeURIComponent(String(usersId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param usersId + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public usersGetSingleDiscordInvite(usersId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public usersGetSingleDiscordInvite(usersId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public usersGetSingleDiscordInvite(usersId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public usersGetSingleDiscordInvite(usersId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (usersId === null || usersId === undefined) { + throw new Error('Required parameter usersId was null or undefined when calling usersGetSingleDiscordInvite.'); + } + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/users/${encodeURIComponent(String(usersId))}/discord`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public wavesCreateNew(body: WaveCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public wavesCreateNew(body: WaveCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public wavesCreateNew(body: WaveCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public wavesCreateNew(body: WaveCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling wavesCreateNew.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/waves`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param waveId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public wavesDeleteSingle(waveId: number, observe?: 'body', reportProgress?: boolean): Observable; + public wavesDeleteSingle(waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public wavesDeleteSingle(waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public wavesDeleteSingle(waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (waveId === null || waveId === undefined) { + throw new Error('Required parameter waveId was null or undefined when calling wavesDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/waves/${encodeURIComponent(String(waveId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public wavesGetAll(year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public wavesGetAll(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public wavesGetAll(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public wavesGetAll(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/waves`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param waveId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public wavesGetSingle(waveId: number, observe?: 'body', reportProgress?: boolean): Observable; + public wavesGetSingle(waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public wavesGetSingle(waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public wavesGetSingle(waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (waveId === null || waveId === undefined) { + throw new Error('Required parameter waveId was null or undefined when calling wavesGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/waves/${encodeURIComponent(String(waveId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param waveId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe?: 'body', reportProgress?: boolean): Observable; + public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling wavesUpdateSingle.'); + } + + if (waveId === null || waveId === undefined) { + throw new Error('Required parameter waveId was null or undefined when calling wavesUpdateSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/waves/${encodeURIComponent(String(waveId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public yearsCreateNew(body: YearCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public yearsCreateNew(body: YearCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public yearsCreateNew(body: YearCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public yearsCreateNew(body: YearCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling yearsCreateNew.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/years`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param yearId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public yearsDeleteSingle(yearId: number, observe?: 'body', reportProgress?: boolean): Observable; + public yearsDeleteSingle(yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public yearsDeleteSingle(yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public yearsDeleteSingle(yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (yearId === null || yearId === undefined) { + throw new Error('Required parameter yearId was null or undefined when calling yearsDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/years/${encodeURIComponent(String(yearId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public yearsGetAll(observe?: 'body', reportProgress?: boolean): Observable; + public yearsGetAll(observe?: 'response', reportProgress?: boolean): Observable>; + public yearsGetAll(observe?: 'events', reportProgress?: boolean): Observable>; + public yearsGetAll(observe: any = 'body', reportProgress: boolean = false ): Observable { + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/years`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param yearId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public yearsGetSingle(yearId: number, observe?: 'body', reportProgress?: boolean): Observable; + public yearsGetSingle(yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public yearsGetSingle(yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public yearsGetSingle(yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (yearId === null || yearId === undefined) { + throw new Error('Required parameter yearId was null or undefined when calling yearsGetSingle.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/years/${encodeURIComponent(String(yearId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param yearId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe?: 'body', reportProgress?: boolean): Observable; + public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling yearsUpdateSingle.'); + } + + if (yearId === null || yearId === undefined) { + throw new Error('Required parameter yearId was null or undefined when calling yearsUpdateSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/years/${encodeURIComponent(String(yearId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + } \ No newline at end of file From e5c90fa7f943f1fcdf8341d45624f7eeab72cd88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Sat, 11 Jan 2025 09:59:34 +0100 Subject: [PATCH 3/5] refactor: cleanup --- src/api/backend/api/default.service.ts | 10356 +++++++++++------------ 1 file changed, 5178 insertions(+), 5178 deletions(-) diff --git a/src/api/backend/api/default.service.ts b/src/api/backend/api/default.service.ts index 15223879..3496a76a 100644 --- a/src/api/backend/api/default.service.ts +++ b/src/api/backend/api/default.service.ts @@ -10,5178 +10,4000 @@ * Do not edit the class manually. *//* tslint:disable:no-unused-variable member-ordering */ - import { Inject, Injectable, Optional } from '@angular/core'; - import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent } from '@angular/common/http'; - import { CustomHttpUrlEncodingCodec } from '../encoder'; - - import { Observable } from 'rxjs'; - - import { AchievementCreationRequest } from '../model/achievementCreationRequest'; - import { AchievementGrantRequest } from '../model/achievementGrantRequest'; - import { AchievementGrantResponse } from '../model/achievementGrantResponse'; - import { AchievementResponse } from '../model/achievementResponse'; - import { AchievementsResponse } from '../model/achievementsResponse'; - import { AdminInstanceConfig } from '../model/adminInstanceConfig'; - import { AdminInstanceConfigResponse } from '../model/adminInstanceConfigResponse'; - import { AdminTaskCreationRequest } from '../model/adminTaskCreationRequest'; - import { AdminTaskDeployResponse } from '../model/adminTaskDeployResponse'; - import { AdminTaskMergeResponse } from '../model/adminTaskMergeResponse'; - import { AdminTaskResponse } from '../model/adminTaskResponse'; - import { AdminTaskUpdateRequest } from '../model/adminTaskUpdateRequest'; - import { AdminTasksResponse } from '../model/adminTasksResponse'; - import { ArticleCreationRequest } from '../model/articleCreationRequest'; - import { ArticleResponse } from '../model/articleResponse'; - import { ArticlesResponse } from '../model/articlesResponse'; - import { AuthResponse } from '../model/authResponse'; - import { BasicProfileResponse } from '../model/basicProfileResponse'; - import { ChangePasswordRequest } from '../model/changePasswordRequest'; - import { ChangePasswordResult } from '../model/changePasswordResult'; - import { CodeEvaluationResponse } from '../model/codeEvaluationResponse'; - import { CorrectionEvaluation } from '../model/correctionEvaluation'; - import { CorrectionInfoResponse } from '../model/correctionInfoResponse'; - import { CorrectionInfosAllResponse } from '../model/correctionInfosAllResponse'; - import { CorrectionResponse } from '../model/correctionResponse'; - import { CorrectionState } from '../model/correctionState'; - import { CorrectionUpdateRequest } from '../model/correctionUpdateRequest'; - import { CorrectionsAllResponse } from '../model/correctionsAllResponse'; - import { DiplomasListResponse } from '../model/diplomasListResponse'; - import { EmailSendRequest } from '../model/emailSendRequest'; - import { EmailSendResponse } from '../model/emailSendResponse'; - import { EmptyDict } from '../model/emptyDict'; - import { Execution } from '../model/execution'; - import { ExecutionResult } from '../model/executionResult'; - import { ExecutionsResponse } from '../model/executionsResponse'; - import { FeedbackCreationRequest } from '../model/feedbackCreationRequest'; - import { FeedbackRequest } from '../model/feedbackRequest'; - import { FeedbackResponse } from '../model/feedbackResponse'; - import { FeedbackUpdateRequest } from '../model/feedbackUpdateRequest'; - import { FeedbacksResponse } from '../model/feedbacksResponse'; - import { ForgottenPasswordRequest } from '../model/forgottenPasswordRequest'; - import { ForgottenPasswordResult } from '../model/forgottenPasswordResult'; - import { InlineResponse200 } from '../model/inlineResponse200'; - import { InlineResponse2001 } from '../model/inlineResponse2001'; - import { ModuleResponse } from '../model/moduleResponse'; - import { ModuleSubmissionRequest } from '../model/moduleSubmissionRequest'; - import { ModuleSubmitResponse } from '../model/moduleSubmitResponse'; - import { MonitoringDashboardURLResponse } from '../model/monitoringDashboardURLResponse'; - import { PossibleErrorDict } from '../model/possibleErrorDict'; - import { PostResponse } from '../model/postResponse'; - import { PostsCreationRequest } from '../model/postsCreationRequest'; - import { PostsEditRequest } from '../model/postsEditRequest'; - import { ProfileEdit } from '../model/profileEdit'; - import { ProfileResponse } from '../model/profileResponse'; - import { RegistrationRequest } from '../model/registrationRequest'; - import { RunCodeRequest } from '../model/runCodeRequest'; - import { RunCodeResponse } from '../model/runCodeResponse'; - import { TaskDetailResponse } from '../model/taskDetailResponse'; - import { TaskResponse } from '../model/taskResponse'; - import { TasksResponse } from '../model/tasksResponse'; - import { ThreadDetailResponse } from '../model/threadDetailResponse'; - import { ThreadResponse } from '../model/threadResponse'; - import { ThreadsCreationRequest } from '../model/threadsCreationRequest'; - import { ThreadsResponse } from '../model/threadsResponse'; - import { Uint8Array } from '../model/uint8Array'; - import { UserResponse } from '../model/userResponse'; - import { UsersResponse } from '../model/usersResponse'; - import { WaveCreationRequest } from '../model/waveCreationRequest'; - import { WaveResponse } from '../model/waveResponse'; - import { WaveUpdateRequest } from '../model/waveUpdateRequest'; - import { Waves } from '../model/waves'; - import { YearCreationRequest } from '../model/yearCreationRequest'; - import { YearResponse } from '../model/yearResponse'; - import { YearUpdateRequest } from '../model/yearUpdateRequest'; - import { Years } from '../model/years'; - - import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; - import { Configuration } from '../configuration'; - - - @Injectable() - export class DefaultService { - - protected basePath = '/'; - public defaultHeaders = new HttpHeaders(); - public configuration = new Configuration(); - - constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) { - if (basePath) { - this.basePath = basePath; - } - if (configuration) { - this.configuration = configuration; - this.basePath = basePath || configuration.basePath || this.basePath; - } - } - - /** - * @param consumes string[] mime-types - * @return true: consumes contains 'multipart/form-data', false: otherwise - */ - private canConsumeForm(consumes: string[]): boolean { - const form = 'multipart/form-data'; - for (const consume of consumes) { - if (form === consume) { - return true; - } - } - return false; - } - - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public achievementsCreateNew(body: AchievementCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public achievementsCreateNew(body: AchievementCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public achievementsCreateNew(body: AchievementCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public achievementsCreateNew(body: AchievementCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling achievementsCreateNew.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/achievements`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param achievementId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public achievementsDeleteSingle(achievementId: number, observe?: 'body', reportProgress?: boolean): Observable; - public achievementsDeleteSingle(achievementId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public achievementsDeleteSingle(achievementId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public achievementsDeleteSingle(achievementId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (achievementId === null || achievementId === undefined) { - throw new Error('Required parameter achievementId was null or undefined when calling achievementsDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/achievements/${encodeURIComponent(String(achievementId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param achievementId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe?: 'body', reportProgress?: boolean): Observable; - public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling achievementsEditSingle.'); - } - - if (achievementId === null || achievementId === undefined) { - throw new Error('Required parameter achievementId was null or undefined when calling achievementsEditSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/achievements/${encodeURIComponent(String(achievementId))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param _limit - * @param _start - * @param achievement - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (_limit !== undefined && _limit !== null) { - queryParameters = queryParameters.set('_limit', _limit); - } - if (_start !== undefined && _start !== null) { - queryParameters = queryParameters.set('_start', _start); - } - - let headers = this.defaultHeaders; - if (achievement !== undefined && achievement !== null) { - headers = headers.set('achievement', String(achievement)); - } - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/achievements`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param achievementId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public achievementsGetSingle(achievementId: number, observe?: 'body', reportProgress?: boolean): Observable; - public achievementsGetSingle(achievementId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public achievementsGetSingle(achievementId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public achievementsGetSingle(achievementId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (achievementId === null || achievementId === undefined) { - throw new Error('Required parameter achievementId was null or undefined when calling achievementsGetSingle.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/achievements/${encodeURIComponent(String(achievementId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public achievementsGetSuccessful(observe?: 'body', reportProgress?: boolean): Observable; - public achievementsGetSuccessful(observe?: 'response', reportProgress?: boolean): Observable>; - public achievementsGetSuccessful(observe?: 'events', reportProgress?: boolean): Observable>; - public achievementsGetSuccessful(observe: any = 'body', reportProgress: boolean = false ): Observable { - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/achievements/special/successful`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminAchievementsGrant(body: AchievementGrantRequest, observe?: 'body', reportProgress?: boolean): Observable; - public adminAchievementsGrant(body: AchievementGrantRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public adminAchievementsGrant(body: AchievementGrantRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public adminAchievementsGrant(body: AchievementGrantRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling adminAchievementsGrant.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/admin/achievements/grant`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminCorrectionInfosGetAll(year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminCorrectionInfosGetAll(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminCorrectionInfosGetAll(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminCorrectionInfosGetAll(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/correctionInfos`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminCorrectionInfosGetSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminCorrectionInfosGetSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminCorrectionInfosGetSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminCorrectionInfosGetSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminCorrectionInfosGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/correctionInfos/${encodeURIComponent(String(taskId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param _public - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminCorrectionsEmail(taskId: number, _public: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminCorrectionsEmail(taskId: number, _public: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminCorrectionsEmail(taskId: number, _public: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminCorrectionsEmail(taskId: number, _public: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminCorrectionsEmail.'); - } - - if (_public === null || _public === undefined) { - throw new Error('Required parameter _public was null or undefined when calling adminCorrectionsEmail.'); - } - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (_public !== undefined && _public !== null) { - queryParameters = queryParameters.set('public', _public); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('put',`${this.basePath}/admin/correctionsEmail/${encodeURIComponent(String(taskId))}`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param task - * @param participant - * @param state - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (task !== undefined && task !== null) { - queryParameters = queryParameters.set('task', task); - } - if (participant !== undefined && participant !== null) { - queryParameters = queryParameters.set('participant', participant); - } - if (state !== undefined && state !== null) { - queryParameters = queryParameters.set('state', state); - } - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/corrections`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param correctionId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminCorrectionsGetSingle(correctionId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminCorrectionsGetSingle(correctionId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminCorrectionsGetSingle(correctionId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminCorrectionsGetSingle(correctionId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (correctionId === null || correctionId === undefined) { - throw new Error('Required parameter correctionId was null or undefined when calling adminCorrectionsGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/corrections/${encodeURIComponent(String(correctionId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param correctionId - * @param _public - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminCorrectionsPublish(correctionId: number, _public: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminCorrectionsPublish(correctionId: number, _public: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminCorrectionsPublish(correctionId: number, _public: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminCorrectionsPublish(correctionId: number, _public: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (correctionId === null || correctionId === undefined) { - throw new Error('Required parameter correctionId was null or undefined when calling adminCorrectionsPublish.'); - } - - if (_public === null || _public === undefined) { - throw new Error('Required parameter _public was null or undefined when calling adminCorrectionsPublish.'); - } - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (_public !== undefined && _public !== null) { - queryParameters = queryParameters.set('public', _public); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/corrections/${encodeURIComponent(String(correctionId))}/publish`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param correctionId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling adminCorrectionsUpdateSingle.'); - } - - if (correctionId === null || correctionId === undefined) { - throw new Error('Required parameter correctionId was null or undefined when calling adminCorrectionsUpdateSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/admin/corrections/${encodeURIComponent(String(correctionId))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param files - * @param userId - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (files === null || files === undefined) { - throw new Error('Required parameter files was null or undefined when calling adminDiplomaGrant.'); - } - - if (userId === null || userId === undefined) { - throw new Error('Required parameter userId was null or undefined when calling adminDiplomaGrant.'); - } - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'multipart/form-data' - ]; - - const canConsumeForm = this.canConsumeForm(consumes); - - let formParams: { append(param: string, value: any): void; }; - let useForm = false; - let convertFormParamsToString = false; - // use FormData to transmit files using content-type "multipart/form-data" - // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data - useForm = canConsumeForm; - if (useForm) { - formParams = new FormData(); - } else { - formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - } - - if (files !== undefined) { - formParams = formParams.append('files', files) as any || formParams; - } - - return this.httpClient.request('post',`${this.basePath}/admin/diploma/${encodeURIComponent(String(userId))}/grant`, - { - body: convertFormParamsToString ? formParams.toString() : formParams, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminEmailSend(body: EmailSendRequest, observe?: 'body', reportProgress?: boolean): Observable; - public adminEmailSend(body: EmailSendRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public adminEmailSend(body: EmailSendRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public adminEmailSend(body: EmailSendRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling adminEmailSend.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/admin/e-mail`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param evaluationId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminEvaluationGetSingle(evaluationId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminEvaluationGetSingle(evaluationId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminEvaluationGetSingle(evaluationId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminEvaluationGetSingle(evaluationId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (evaluationId === null || evaluationId === undefined) { - throw new Error('Required parameter evaluationId was null or undefined when calling adminEvaluationGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/evalCodes/${encodeURIComponent(String(evaluationId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param user - * @param module - * @param limit - * @param page - * @param from - * @param to - * @param result - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - - - - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (user !== undefined && user !== null) { - queryParameters = queryParameters.set('user', user); - } - if (module !== undefined && module !== null) { - queryParameters = queryParameters.set('module', module); - } - if (limit !== undefined && limit !== null) { - queryParameters = queryParameters.set('limit', limit); - } - if (page !== undefined && page !== null) { - queryParameters = queryParameters.set('page', page); - } - if (from !== undefined && from !== null) { - queryParameters = queryParameters.set('from', from); - } - if (to !== undefined && to !== null) { - queryParameters = queryParameters.set('to', to); - } - if (result !== undefined && result !== null) { - queryParameters = queryParameters.set('result', result); - } - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/execs`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param executionId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminExecutionGetSingle(executionId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminExecutionGetSingle(executionId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminExecutionGetSingle(executionId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminExecutionGetSingle(executionId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (executionId === null || executionId === undefined) { - throw new Error('Required parameter executionId was null or undefined when calling adminExecutionGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/execs/${encodeURIComponent(String(executionId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param evaluationId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminGetEvaluationSingle(evaluationId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminGetEvaluationSingle(evaluationId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminGetEvaluationSingle(evaluationId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminGetEvaluationSingle(evaluationId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (evaluationId === null || evaluationId === undefined) { - throw new Error('Required parameter evaluationId was null or undefined when calling adminGetEvaluationSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/evaluations/${encodeURIComponent(String(evaluationId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminMonitoringDashboardURL(observe?: 'body', reportProgress?: boolean): Observable; - public adminMonitoringDashboardURL(observe?: 'response', reportProgress?: boolean): Observable>; - public adminMonitoringDashboardURL(observe?: 'events', reportProgress?: boolean): Observable>; - public adminMonitoringDashboardURL(observe: any = 'body', reportProgress: boolean = false ): Observable { - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/monitoring-dashboard`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param evaluationId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminSubmissionEvaluation(evaluationId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminSubmissionEvaluation(evaluationId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminSubmissionEvaluation(evaluationId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminSubmissionEvaluation(evaluationId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (evaluationId === null || evaluationId === undefined) { - throw new Error('Required parameter evaluationId was null or undefined when calling adminSubmissionEvaluation.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/subm/eval/${encodeURIComponent(String(evaluationId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminSubmissionTask(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminSubmissionTask(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminSubmissionTask(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminSubmissionTask(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminSubmissionTask.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/subm/task/${encodeURIComponent(String(taskId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTaskDeploySingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTaskDeploySingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTaskDeploySingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTaskDeploySingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminTaskDeploySingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('post',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}/deploy`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTaskMergeSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTaskMergeSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTaskMergeSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTaskMergeSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminTaskMergeSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('post',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}/merge`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling adminTasksCreateNew.'); - } - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/admin/atasks`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTasksDeleteSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTasksDeleteSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTasksDeleteSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTasksDeleteSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminTasksDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param wave - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTasksGetAll(wave?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTasksGetAll(wave?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTasksGetAll(wave?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTasksGetAll(wave?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (wave !== undefined && wave !== null) { - queryParameters = queryParameters.set('wave', wave); - } - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/atasks`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTasksGetDeploySingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTasksGetDeploySingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTasksGetDeploySingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTasksGetDeploySingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminTasksGetDeploySingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}/deploy`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTasksGetSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTasksGetSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTasksGetSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTasksGetSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminTasksGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param taskId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling adminTasksUpdateSingle.'); - } - - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling adminTasksUpdateSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminUserExport(year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminUserExport(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminUserExport(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminUserExport(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/user-export`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param waveId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public adminWavesDiff(waveId: number, observe?: 'body', reportProgress?: boolean): Observable; - public adminWavesDiff(waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public adminWavesDiff(waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public adminWavesDiff(waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (waveId === null || waveId === undefined) { - throw new Error('Required parameter waveId was null or undefined when calling adminWavesDiff.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/waves/${encodeURIComponent(String(waveId))}/diff`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public articlesCreateNew(body: ArticleCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public articlesCreateNew(body: ArticleCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public articlesCreateNew(body: ArticleCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public articlesCreateNew(body: ArticleCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling articlesCreateNew.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/articles`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param articleId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public articlesDeleteSingle(articleId: number, observe?: 'body', reportProgress?: boolean): Observable; - public articlesDeleteSingle(articleId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public articlesDeleteSingle(articleId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public articlesDeleteSingle(articleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (articleId === null || articleId === undefined) { - throw new Error('Required parameter articleId was null or undefined when calling articlesDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/articles/${encodeURIComponent(String(articleId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param articleId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe?: 'body', reportProgress?: boolean): Observable; - public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling articlesEditSingle.'); - } - - if (articleId === null || articleId === undefined) { - throw new Error('Required parameter articleId was null or undefined when calling articlesEditSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/articles/${encodeURIComponent(String(articleId))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param _limit - * @param _start - * @param article - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (_limit !== undefined && _limit !== null) { - queryParameters = queryParameters.set('_limit', _limit); - } - if (_start !== undefined && _start !== null) { - queryParameters = queryParameters.set('_start', _start); - } - - let headers = this.defaultHeaders; - if (article !== undefined && article !== null) { - headers = headers.set('article', String(article)); - } - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/articles`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param articleId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public articlesGetSingle(articleId: number, observe?: 'body', reportProgress?: boolean): Observable; - public articlesGetSingle(articleId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public articlesGetSingle(articleId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public articlesGetSingle(articleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (articleId === null || articleId === undefined) { - throw new Error('Required parameter articleId was null or undefined when calling articlesGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/articles/${encodeURIComponent(String(articleId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param grant_type - * @param username - * @param password - * @param refresh_token - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - // @ts-ignore - public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe?: 'body', reportProgress?: boolean): Observable; - // @ts-ignore - public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe?: 'response', reportProgress?: boolean): Observable>; - // @ts-ignore - public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe?: 'events', reportProgress?: boolean): Observable>; - // @ts-ignore - public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (grant_type === null || grant_type === undefined) { - throw new Error('Required parameter grant_type was null or undefined when calling authorize.'); - } - - if (username === null || username === undefined) { - throw new Error('Required parameter username was null or undefined when calling authorize.'); - } - - if (password === null || password === undefined) { - throw new Error('Required parameter password was null or undefined when calling authorize.'); - } - - if (refresh_token === null || refresh_token === undefined) { - throw new Error('Required parameter refresh_token was null or undefined when calling authorize.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'multipart/form-data' - ]; - - const canConsumeForm = this.canConsumeForm(consumes); - - let formParams: { append(param: string, value: any): void; }; - let useForm = false; - let convertFormParamsToString = false; - if (useForm) { - formParams = new FormData(); - } else { - formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - } - - if (grant_type !== undefined) { - formParams = formParams.append('grant_type', grant_type) as any || formParams; - } - if (username !== undefined) { - formParams = formParams.append('username', username) as any || formParams; - } - if (password !== undefined) { - formParams = formParams.append('password', password) as any || formParams; - } - if (refresh_token !== undefined) { - formParams = formParams.append('refresh_token', refresh_token) as any || formParams; - } - - return this.httpClient.request('post',`${this.basePath}/auth`, - { - body: convertFormParamsToString ? formParams.toString() : formParams, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public basicProfileGetSingle(observe?: 'body', reportProgress?: boolean): Observable; - public basicProfileGetSingle(observe?: 'response', reportProgress?: boolean): Observable>; - public basicProfileGetSingle(observe?: 'events', reportProgress?: boolean): Observable>; - public basicProfileGetSingle(observe: any = 'body', reportProgress: boolean = false ): Observable { - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/basicProfile`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public changePassword(body: ChangePasswordRequest, observe?: 'body', reportProgress?: boolean): Observable; - public changePassword(body: ChangePasswordRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public changePassword(body: ChangePasswordRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public changePassword(body: ChangePasswordRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling changePassword.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/settings/changePassword`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param files - * @param path - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public contentsCreateNewForm(files: Array, path?: string, observe?: 'body', reportProgress?: boolean): Observable; - public contentsCreateNewForm(files: Array, path?: string, observe?: 'response', reportProgress?: boolean): Observable>; - public contentsCreateNewForm(files: Array, path?: string, observe?: 'events', reportProgress?: boolean): Observable>; - public contentsCreateNewForm(files: Array, path?: string, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (files === null || files === undefined) { - throw new Error('Required parameter files was null or undefined when calling contentsCreateNew.'); - } - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (path !== undefined && path !== null) { - queryParameters = queryParameters.set('path', path); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'multipart/form-data' - ]; - - const canConsumeForm = this.canConsumeForm(consumes); - - let formParams: { append(param: string, value: any): void; }; - let useForm = false; - let convertFormParamsToString = false; - if (useForm) { - formParams = new FormData(); - } else { - formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - } - - if (files) { - files.forEach((element) => { - formParams = formParams.append('files', element) as any || formParams; - }) - } - - return this.httpClient.request('post',`${this.basePath}/content`, - { - body: convertFormParamsToString ? formParams.toString() : formParams, - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param path - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public contentsDeleteSingle(path?: string, observe?: 'body', reportProgress?: boolean): Observable; - public contentsDeleteSingle(path?: string, observe?: 'response', reportProgress?: boolean): Observable>; - public contentsDeleteSingle(path?: string, observe?: 'events', reportProgress?: boolean): Observable>; - public contentsDeleteSingle(path?: string, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (path !== undefined && path !== null) { - queryParameters = queryParameters.set('path', path); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/content`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param path - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public contentsGetSingle(path?: string, observe?: 'body', reportProgress?: boolean): Observable; - public contentsGetSingle(path?: string, observe?: 'response', reportProgress?: boolean): Observable>; - public contentsGetSingle(path?: string, observe?: 'events', reportProgress?: boolean): Observable>; - public contentsGetSingle(path?: string, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (path !== undefined && path !== null) { - queryParameters = queryParameters.set('path', path); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/content`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param userId - * @param yearId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public diplomaDownloadSingle(userId: number, yearId: number, observe?: 'body', reportProgress?: boolean): Observable; - public diplomaDownloadSingle(userId: number, yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public diplomaDownloadSingle(userId: number, yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public diplomaDownloadSingle(userId: number, yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (userId === null || userId === undefined) { - throw new Error('Required parameter userId was null or undefined when calling diplomaDownloadSingle.'); - } - - if (yearId === null || yearId === undefined) { - throw new Error('Required parameter yearId was null or undefined when calling diplomaDownloadSingle.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/diplomas/${encodeURIComponent(String(userId))}/${encodeURIComponent(String(yearId))}/show`,//@ts-ignore - {responseType: "blob", - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param userId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public diplomasListForUserSingle(userId: number, observe?: 'body', reportProgress?: boolean): Observable; - public diplomasListForUserSingle(userId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public diplomasListForUserSingle(userId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public diplomasListForUserSingle(userId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (userId === null || userId === undefined) { - throw new Error('Required parameter userId was null or undefined when calling diplomasListForUserSingle.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/diplomas/${encodeURIComponent(String(userId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public feedbackCreateNew(body: FeedbackCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public feedbackCreateNew(body: FeedbackCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public feedbackCreateNew(body: FeedbackCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public feedbackCreateNew(body: FeedbackCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling feedbackCreateNew.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/feedbacks`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param feedbackId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public feedbackDeleteSingle(feedbackId: number, observe?: 'body', reportProgress?: boolean): Observable; - public feedbackDeleteSingle(feedbackId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public feedbackDeleteSingle(feedbackId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public feedbackDeleteSingle(feedbackId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (feedbackId === null || feedbackId === undefined) { - throw new Error('Required parameter feedbackId was null or undefined when calling feedbackDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/feedbacks/${encodeURIComponent(String(feedbackId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param feedbackId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe?: 'body', reportProgress?: boolean): Observable; - public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling feedbackEditSingle.'); - } - - if (feedbackId === null || feedbackId === undefined) { - throw new Error('Required parameter feedbackId was null or undefined when calling feedbackEditSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/feedbacks/${encodeURIComponent(String(feedbackId))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param feedbackId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public feedbackGetSingle(feedbackId: number, observe?: 'body', reportProgress?: boolean): Observable; - public feedbackGetSingle(feedbackId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public feedbackGetSingle(feedbackId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public feedbackGetSingle(feedbackId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (feedbackId === null || feedbackId === undefined) { - throw new Error('Required parameter feedbackId was null or undefined when calling feedbackGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/feedbacks/${encodeURIComponent(String(feedbackId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public forgottenPasswordReset(body: ForgottenPasswordRequest, observe?: 'body', reportProgress?: boolean): Observable; - public forgottenPasswordReset(body: ForgottenPasswordRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public forgottenPasswordReset(body: ForgottenPasswordRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public forgottenPasswordReset(body: ForgottenPasswordRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling forgottenPasswordReset.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/forgottenPassword`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param context - * @param imagesId - * @param file - * @param module - * @param user - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe?: 'body', reportProgress?: boolean): Observable; - public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (context === null || context === undefined) { - throw new Error('Required parameter context was null or undefined when calling imagesGetSingle.'); - } - - if (imagesId === null || imagesId === undefined) { - throw new Error('Required parameter imagesId was null or undefined when calling imagesGetSingle.'); - } - - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (file !== undefined && file !== null) { - queryParameters = queryParameters.set('file', file); - } - if (module !== undefined && module !== null) { - queryParameters = queryParameters.set('module', module); - } - if (user !== undefined && user !== null) { - queryParameters = queryParameters.set('user', user); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/images/${encodeURIComponent(String(context))}/${encodeURIComponent(String(imagesId))}`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public instanceConfigGetAll(observe?: 'body', reportProgress?: boolean): Observable; - public instanceConfigGetAll(observe?: 'response', reportProgress?: boolean): Observable>; - public instanceConfigGetAll(observe?: 'events', reportProgress?: boolean): Observable>; - public instanceConfigGetAll(observe: any = 'body', reportProgress: boolean = false ): Observable { - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/admin/instanceConfig`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public instanceConfigSetSingle(body: AdminInstanceConfig, observe?: 'body', reportProgress?: boolean): Observable; - public instanceConfigSetSingle(body: AdminInstanceConfig, observe?: 'response', reportProgress?: boolean): Observable>; - public instanceConfigSetSingle(body: AdminInstanceConfig, observe?: 'events', reportProgress?: boolean): Observable>; - public instanceConfigSetSingle(body: AdminInstanceConfig, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling instanceConfigSetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/admin/instanceConfig`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param modulesId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public modulesGetSingle(modulesId: number, observe?: 'body', reportProgress?: boolean): Observable; - public modulesGetSingle(modulesId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public modulesGetSingle(modulesId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public modulesGetSingle(modulesId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (modulesId === null || modulesId === undefined) { - throw new Error('Required parameter modulesId was null or undefined when calling modulesGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/modules/${encodeURIComponent(String(modulesId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param files - * @param modulesId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public modulesSubmitFilesForm(files: Blob, modulesId: number, observe?: 'body', reportProgress?: boolean): Observable; - public modulesSubmitFilesForm(files: Blob, modulesId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public modulesSubmitFilesForm(files: Blob, modulesId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public modulesSubmitFilesForm(files: Blob, modulesId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (files === null || files === undefined) { - throw new Error('Required parameter files was null or undefined when calling modulesSubmitFiles.'); - } - - if (modulesId === null || modulesId === undefined) { - throw new Error('Required parameter modulesId was null or undefined when calling modulesSubmitFiles.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'multipart/form-data' - ]; - - const canConsumeForm = this.canConsumeForm(consumes); - - let formParams: { append(param: string, value: any): void; }; - let useForm = false; - let convertFormParamsToString = false; - // use FormData to transmit files using content-type "multipart/form-data" - // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data - useForm = canConsumeForm; - if (useForm) { - formParams = new FormData(); - } else { - formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - } - - if (files !== undefined) { - formParams = formParams.append('files', files) as any || formParams; - } - - return this.httpClient.request('post',`${this.basePath}/modules/${encodeURIComponent(String(modulesId))}/submitFiles`, - { - body: convertFormParamsToString ? formParams.toString() : formParams, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param modulesId - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe?: 'body', reportProgress?: boolean): Observable; - public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (modulesId === null || modulesId === undefined) { - throw new Error('Required parameter modulesId was null or undefined when calling modulesSubmitSingle.'); - } - - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/modules/${encodeURIComponent(String(modulesId))}/submit`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public postsCreateNew(body: PostsCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public postsCreateNew(body: PostsCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public postsCreateNew(body: PostsCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public postsCreateNew(body: PostsCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling postsCreateNew.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/posts`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param postsId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public postsDeleteSingle(postsId: number, observe?: 'body', reportProgress?: boolean): Observable; - public postsDeleteSingle(postsId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public postsDeleteSingle(postsId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public postsDeleteSingle(postsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (postsId === null || postsId === undefined) { - throw new Error('Required parameter postsId was null or undefined when calling postsDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/posts/${encodeURIComponent(String(postsId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param postsId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public postsEditSingle(body: PostsEditRequest, postsId: number, observe?: 'body', reportProgress?: boolean): Observable; - public postsEditSingle(body: PostsEditRequest, postsId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public postsEditSingle(body: PostsEditRequest, postsId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public postsEditSingle(body: PostsEditRequest, postsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling postsEditSingle.'); - } - - if (postsId === null || postsId === undefined) { - throw new Error('Required parameter postsId was null or undefined when calling postsEditSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/posts/${encodeURIComponent(String(postsId))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param postsId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public postsGetSingle(postsId: number, observe?: 'body', reportProgress?: boolean): Observable; - public postsGetSingle(postsId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public postsGetSingle(postsId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public postsGetSingle(postsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (postsId === null || postsId === undefined) { - throw new Error('Required parameter postsId was null or undefined when calling postsGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/posts/${encodeURIComponent(String(postsId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public profileEditMy(body: ProfileEdit, observe?: 'body', reportProgress?: boolean): Observable; - public profileEditMy(body: ProfileEdit, observe?: 'response', reportProgress?: boolean): Observable>; - public profileEditMy(body: ProfileEdit, observe?: 'events', reportProgress?: boolean): Observable>; - public profileEditMy(body: ProfileEdit, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling profileEditMy.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/profile`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public profileGetMy(year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public profileGetMy(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public profileGetMy(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public profileGetMy(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/profile`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param profileId - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public profileGetSingle(profileId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public profileGetSingle(profileId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public profileGetSingle(profileId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public profileGetSingle(profileId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (profileId === null || profileId === undefined) { - throw new Error('Required parameter profileId was null or undefined when calling profileGetSingle.'); - } - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/profile/${encodeURIComponent(String(profileId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param file - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public profileUploadPictureForm(file: Blob, observe?: 'body', reportProgress?: boolean): Observable; - public profileUploadPictureForm(file: Blob, observe?: 'response', reportProgress?: boolean): Observable>; - public profileUploadPictureForm(file: Blob, observe?: 'events', reportProgress?: boolean): Observable>; - public profileUploadPictureForm(file: Blob, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (file === null || file === undefined) { - throw new Error('Required parameter file was null or undefined when calling profileUploadPicture.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'multipart/form-data' - ]; - - const canConsumeForm = this.canConsumeForm(consumes); - - let formParams: { append(param: string, value: any): void; }; - let useForm = false; - let convertFormParamsToString = false; - // use FormData to transmit files using content-type "multipart/form-data" - // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data - useForm = canConsumeForm; - if (useForm) { - formParams = new FormData(); - } else { - formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - } - - if (file !== undefined) { - formParams = formParams.append('file', file) as any || formParams; - } - - return this.httpClient.request('post',`${this.basePath}/profile/picture`, - { - body: convertFormParamsToString ? formParams.toString() : formParams, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public registerNewUser(body: RegistrationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public registerNewUser(body: RegistrationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public registerNewUser(body: RegistrationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public registerNewUser(body: RegistrationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling registerNewUser.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/registration`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param moduleId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public runCode(body: RunCodeRequest, moduleId: number, observe?: 'body', reportProgress?: boolean): Observable; - public runCode(body: RunCodeRequest, moduleId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public runCode(body: RunCodeRequest, moduleId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public runCode(body: RunCodeRequest, moduleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling runCode.'); - } - - if (moduleId === null || moduleId === undefined) { - throw new Error('Required parameter moduleId was null or undefined when calling runCode.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/runCode/${encodeURIComponent(String(moduleId))}/submit`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public sendEmailWithFeedback(body: FeedbackRequest, observe?: 'body', reportProgress?: boolean): Observable; - public sendEmailWithFeedback(body: FeedbackRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public sendEmailWithFeedback(body: FeedbackRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public sendEmailWithFeedback(body: FeedbackRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling sendEmailWithFeedback.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/feedback`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public sendEmailWithFeedback_1(observe?: 'body', reportProgress?: boolean): Observable; - public sendEmailWithFeedback_1(observe?: 'response', reportProgress?: boolean): Observable>; - public sendEmailWithFeedback_1(observe?: 'events', reportProgress?: boolean): Observable>; - public sendEmailWithFeedback_1(observe: any = 'body', reportProgress: boolean = false ): Observable { - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/logout`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param submFileId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public subFilesDeleteSingle(submFileId: number, observe?: 'body', reportProgress?: boolean): Observable; - public subFilesDeleteSingle(submFileId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public subFilesDeleteSingle(submFileId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public subFilesDeleteSingle(submFileId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (submFileId === null || submFileId === undefined) { - throw new Error('Required parameter submFileId was null or undefined when calling subFilesDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/submFiles/${encodeURIComponent(String(submFileId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param submFileId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public submFilesGetSingle(submFileId: number, observe?: 'body', reportProgress?: boolean): Observable; - public submFilesGetSingle(submFileId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public submFilesGetSingle(submFileId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public submFilesGetSingle(submFileId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (submFileId === null || submFileId === undefined) { - throw new Error('Required parameter submFileId was null or undefined when calling submFilesGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/submFiles/${encodeURIComponent(String(submFileId))}`,//@ts-ignore - {responseType: "blob", - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param view - * @param contentId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public taskContent2GetSingle(view: string, contentId: string, observe?: 'body', reportProgress?: boolean): Observable; - public taskContent2GetSingle(view: string, contentId: string, observe?: 'response', reportProgress?: boolean): Observable>; - public taskContent2GetSingle(view: string, contentId: string, observe?: 'events', reportProgress?: boolean): Observable>; - public taskContent2GetSingle(view: string, contentId: string, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (view === null || view === undefined) { - throw new Error('Required parameter view was null or undefined when calling taskContent2GetSingle.'); - } - - if (contentId === null || contentId === undefined) { - throw new Error('Required parameter contentId was null or undefined when calling taskContent2GetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/taskContent/${String(contentId)}/${String(view)}`, - { - //@ts-ignore - responseType: "blob", - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param view - * @param contentId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public taskContentGetSingle(view: string, contentId: string, observe?: 'body', reportProgress?: boolean): Observable; - public taskContentGetSingle(view: string, contentId: string, observe?: 'response', reportProgress?: boolean): Observable>; - public taskContentGetSingle(view: string, contentId: string, observe?: 'events', reportProgress?: boolean): Observable>; - public taskContentGetSingle(view: string, contentId: string, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (view === null || view === undefined) { - throw new Error('Required parameter view was null or undefined when calling taskContentGetSingle.'); - } - - if (contentId === null || contentId === undefined) { - throw new Error('Required parameter contentId was null or undefined when calling taskContentGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/task-content/${encodeURIComponent(String(contentId))}/${encodeURIComponent(String(view))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param taskDetailsId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public taskDetailsGetSingle(taskDetailsId: number, observe?: 'body', reportProgress?: boolean): Observable; - public taskDetailsGetSingle(taskDetailsId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public taskDetailsGetSingle(taskDetailsId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public taskDetailsGetSingle(taskDetailsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (taskDetailsId === null || taskDetailsId === undefined) { - throw new Error('Required parameter taskDetailsId was null or undefined when calling taskDetailsGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/taskDetails/${encodeURIComponent(String(taskDetailsId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public tasksGetAll(year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public tasksGetAll(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public tasksGetAll(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public tasksGetAll(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/tasks`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param tasksId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public tasksGetSingle(tasksId: number, observe?: 'body', reportProgress?: boolean): Observable; - public tasksGetSingle(tasksId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public tasksGetSingle(tasksId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public tasksGetSingle(tasksId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (tasksId === null || tasksId === undefined) { - throw new Error('Required parameter tasksId was null or undefined when calling tasksGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/tasks/${encodeURIComponent(String(tasksId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param threadDetailsId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public threadDetailsGetSingle(threadDetailsId: number, observe?: 'body', reportProgress?: boolean): Observable; - public threadDetailsGetSingle(threadDetailsId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public threadDetailsGetSingle(threadDetailsId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public threadDetailsGetSingle(threadDetailsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (threadDetailsId === null || threadDetailsId === undefined) { - throw new Error('Required parameter threadDetailsId was null or undefined when calling threadDetailsGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/threadDetails/${encodeURIComponent(String(threadDetailsId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public threadsCreateNew(body: ThreadsCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public threadsCreateNew(body: ThreadsCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public threadsCreateNew(body: ThreadsCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public threadsCreateNew(body: ThreadsCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling threadsCreateNew.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/threads`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param wave - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public threadsGetAll(wave?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public threadsGetAll(wave?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public threadsGetAll(wave?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public threadsGetAll(wave?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (wave !== undefined && wave !== null) { - queryParameters = queryParameters.set('wave', wave); - } - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/threads`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param threadsId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public threadsGetSingle(threadsId: number, observe?: 'body', reportProgress?: boolean): Observable; - public threadsGetSingle(threadsId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public threadsGetSingle(threadsId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public threadsGetSingle(threadsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (threadsId === null || threadsId === undefined) { - throw new Error('Required parameter threadsId was null or undefined when calling threadsGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/threads/${encodeURIComponent(String(threadsId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param threadsId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public threadsMarkVisited(threadsId: number, observe?: 'body', reportProgress?: boolean): Observable; - public threadsMarkVisited(threadsId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public threadsMarkVisited(threadsId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public threadsMarkVisited(threadsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (threadsId === null || threadsId === undefined) { - throw new Error('Required parameter threadsId was null or undefined when calling threadsMarkVisited.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('put',`${this.basePath}/threads/${encodeURIComponent(String(threadsId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param usersId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public usersDeleteSingle(usersId: number, observe?: 'body', reportProgress?: boolean): Observable; - public usersDeleteSingle(usersId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public usersDeleteSingle(usersId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public usersDeleteSingle(usersId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (usersId === null || usersId === undefined) { - throw new Error('Required parameter usersId was null or undefined when calling usersDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/users/${encodeURIComponent(String(usersId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param filter - * @param sort - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public usersGetAll(filter?: string, sort?: string, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public usersGetAll(filter?: string, sort?: string, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public usersGetAll(filter?: string, sort?: string, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public usersGetAll(filter?: string, sort?: string, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (filter !== undefined && filter !== null) { - queryParameters = queryParameters.set('filter', filter); - } - if (sort !== undefined && sort !== null) { - queryParameters = queryParameters.set('sort', sort); - } - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/users`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param usersId - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public usersGetSingle(usersId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public usersGetSingle(usersId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public usersGetSingle(usersId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public usersGetSingle(usersId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (usersId === null || usersId === undefined) { - throw new Error('Required parameter usersId was null or undefined when calling usersGetSingle.'); - } - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/users/${encodeURIComponent(String(usersId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param usersId - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public usersGetSingleDiscordInvite(usersId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public usersGetSingleDiscordInvite(usersId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public usersGetSingleDiscordInvite(usersId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public usersGetSingleDiscordInvite(usersId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (usersId === null || usersId === undefined) { - throw new Error('Required parameter usersId was null or undefined when calling usersGetSingleDiscordInvite.'); - } - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/users/${encodeURIComponent(String(usersId))}/discord`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public wavesCreateNew(body: WaveCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public wavesCreateNew(body: WaveCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public wavesCreateNew(body: WaveCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public wavesCreateNew(body: WaveCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling wavesCreateNew.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/waves`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param waveId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public wavesDeleteSingle(waveId: number, observe?: 'body', reportProgress?: boolean): Observable; - public wavesDeleteSingle(waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public wavesDeleteSingle(waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public wavesDeleteSingle(waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (waveId === null || waveId === undefined) { - throw new Error('Required parameter waveId was null or undefined when calling wavesDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/waves/${encodeURIComponent(String(waveId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public wavesGetAll(year?: number, observe?: 'body', reportProgress?: boolean): Observable; - public wavesGetAll(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; - public wavesGetAll(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; - public wavesGetAll(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - let headers = this.defaultHeaders; - if (year !== undefined && year !== null) { - headers = headers.set('year', String(year)); - } - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/waves`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param waveId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public wavesGetSingle(waveId: number, observe?: 'body', reportProgress?: boolean): Observable; - public wavesGetSingle(waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public wavesGetSingle(waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public wavesGetSingle(waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (waveId === null || waveId === undefined) { - throw new Error('Required parameter waveId was null or undefined when calling wavesGetSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/waves/${encodeURIComponent(String(waveId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param waveId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe?: 'body', reportProgress?: boolean): Observable; - public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling wavesUpdateSingle.'); - } - - if (waveId === null || waveId === undefined) { - throw new Error('Required parameter waveId was null or undefined when calling wavesUpdateSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/waves/${encodeURIComponent(String(waveId))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public yearsCreateNew(body: YearCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; - public yearsCreateNew(body: YearCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; - public yearsCreateNew(body: YearCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; - public yearsCreateNew(body: YearCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling yearsCreateNew.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('post',`${this.basePath}/years`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param yearId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public yearsDeleteSingle(yearId: number, observe?: 'body', reportProgress?: boolean): Observable; - public yearsDeleteSingle(yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public yearsDeleteSingle(yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public yearsDeleteSingle(yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (yearId === null || yearId === undefined) { - throw new Error('Required parameter yearId was null or undefined when calling yearsDeleteSingle.'); - } - - let headers = this.defaultHeaders; - - // authentication (ksi) required - if (this.configuration.accessToken) { - const accessToken = typeof this.configuration.accessToken === 'function' - ? this.configuration.accessToken() - : this.configuration.accessToken; - headers = headers.set('Authorization', 'Bearer ' + accessToken); - } - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('delete',`${this.basePath}/years/${encodeURIComponent(String(yearId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public yearsGetAll(observe?: 'body', reportProgress?: boolean): Observable; - public yearsGetAll(observe?: 'response', reportProgress?: boolean): Observable>; - public yearsGetAll(observe?: 'events', reportProgress?: boolean): Observable>; - public yearsGetAll(observe: any = 'body', reportProgress: boolean = false ): Observable { - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/years`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param yearId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public yearsGetSingle(yearId: number, observe?: 'body', reportProgress?: boolean): Observable; - public yearsGetSingle(yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public yearsGetSingle(yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public yearsGetSingle(yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (yearId === null || yearId === undefined) { - throw new Error('Required parameter yearId was null or undefined when calling yearsGetSingle.'); - } - - let headers = this.defaultHeaders; - - // to determine the Accept header - let httpHeaderAccepts: string[] = [ - 'application/json' - ]; - const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); - if (httpHeaderAcceptSelected != undefined) { - headers = headers.set('Accept', httpHeaderAcceptSelected); - } - - // to determine the Content-Type header - const consumes: string[] = [ - ]; - - return this.httpClient.request('get',`${this.basePath}/years/${encodeURIComponent(String(yearId))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * - * @param body - * @param yearId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe?: 'body', reportProgress?: boolean): Observable; - public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; - public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; - public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent } from '@angular/common/http'; +import { CustomHttpUrlEncodingCodec } from '../encoder'; + +import { Observable } from 'rxjs'; + +import { AchievementCreationRequest } from '../model/achievementCreationRequest'; +import { AchievementGrantRequest } from '../model/achievementGrantRequest'; +import { AchievementGrantResponse } from '../model/achievementGrantResponse'; +import { AchievementResponse } from '../model/achievementResponse'; +import { AchievementsResponse } from '../model/achievementsResponse'; +import { AdminInstanceConfig } from '../model/adminInstanceConfig'; +import { AdminInstanceConfigResponse } from '../model/adminInstanceConfigResponse'; +import { AdminTaskCreationRequest } from '../model/adminTaskCreationRequest'; +import { AdminTaskDeployResponse } from '../model/adminTaskDeployResponse'; +import { AdminTaskMergeResponse } from '../model/adminTaskMergeResponse'; +import { AdminTaskResponse } from '../model/adminTaskResponse'; +import { AdminTaskUpdateRequest } from '../model/adminTaskUpdateRequest'; +import { AdminTasksResponse } from '../model/adminTasksResponse'; +import { ArticleCreationRequest } from '../model/articleCreationRequest'; +import { ArticleResponse } from '../model/articleResponse'; +import { ArticlesResponse } from '../model/articlesResponse'; +import { AuthResponse } from '../model/authResponse'; +import { BasicProfileResponse } from '../model/basicProfileResponse'; +import { ChangePasswordRequest } from '../model/changePasswordRequest'; +import { ChangePasswordResult } from '../model/changePasswordResult'; +import { CodeEvaluationResponse } from '../model/codeEvaluationResponse'; +import { CorrectionEvaluation } from '../model/correctionEvaluation'; +import { CorrectionInfoResponse } from '../model/correctionInfoResponse'; +import { CorrectionInfosAllResponse } from '../model/correctionInfosAllResponse'; +import { CorrectionResponse } from '../model/correctionResponse'; +import { CorrectionState } from '../model/correctionState'; +import { CorrectionUpdateRequest } from '../model/correctionUpdateRequest'; +import { CorrectionsAllResponse } from '../model/correctionsAllResponse'; +import { DiplomasListResponse } from '../model/diplomasListResponse'; +import { EmailSendRequest } from '../model/emailSendRequest'; +import { EmailSendResponse } from '../model/emailSendResponse'; +import { EmptyDict } from '../model/emptyDict'; +import { Execution } from '../model/execution'; +import { ExecutionResult } from '../model/executionResult'; +import { ExecutionsResponse } from '../model/executionsResponse'; +import { FeedbackCreationRequest } from '../model/feedbackCreationRequest'; +import { FeedbackRequest } from '../model/feedbackRequest'; +import { FeedbackResponse } from '../model/feedbackResponse'; +import { FeedbackUpdateRequest } from '../model/feedbackUpdateRequest'; +import { FeedbacksResponse } from '../model/feedbacksResponse'; +import { ForgottenPasswordRequest } from '../model/forgottenPasswordRequest'; +import { ForgottenPasswordResult } from '../model/forgottenPasswordResult'; +import { InlineResponse200 } from '../model/inlineResponse200'; +import { InlineResponse2001 } from '../model/inlineResponse2001'; +import { ModuleResponse } from '../model/moduleResponse'; +import { ModuleSubmissionRequest } from '../model/moduleSubmissionRequest'; +import { ModuleSubmitResponse } from '../model/moduleSubmitResponse'; +import { MonitoringDashboardURLResponse } from '../model/monitoringDashboardURLResponse'; +import { PossibleErrorDict } from '../model/possibleErrorDict'; +import { PostResponse } from '../model/postResponse'; +import { PostsCreationRequest } from '../model/postsCreationRequest'; +import { PostsEditRequest } from '../model/postsEditRequest'; +import { ProfileEdit } from '../model/profileEdit'; +import { ProfileResponse } from '../model/profileResponse'; +import { RegistrationRequest } from '../model/registrationRequest'; +import { RunCodeRequest } from '../model/runCodeRequest'; +import { RunCodeResponse } from '../model/runCodeResponse'; +import { TaskDetailResponse } from '../model/taskDetailResponse'; +import { TaskResponse } from '../model/taskResponse'; +import { TasksResponse } from '../model/tasksResponse'; +import { ThreadDetailResponse } from '../model/threadDetailResponse'; +import { ThreadResponse } from '../model/threadResponse'; +import { ThreadsCreationRequest } from '../model/threadsCreationRequest'; +import { ThreadsResponse } from '../model/threadsResponse'; +import { Uint8Array } from '../model/uint8Array'; +import { UserResponse } from '../model/userResponse'; +import { UsersResponse } from '../model/usersResponse'; +import { WaveCreationRequest } from '../model/waveCreationRequest'; +import { WaveResponse } from '../model/waveResponse'; +import { WaveUpdateRequest } from '../model/waveUpdateRequest'; +import { Waves } from '../model/waves'; +import { YearCreationRequest } from '../model/yearCreationRequest'; +import { YearResponse } from '../model/yearResponse'; +import { YearUpdateRequest } from '../model/yearUpdateRequest'; +import { Years } from '../model/years'; + +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + +@Injectable() +export class DefaultService { + + protected basePath = '/'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) { + if (basePath) { + this.basePath = basePath; + } + if (configuration) { + this.configuration = configuration; + this.basePath = basePath || configuration.basePath || this.basePath; + } + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public achievementsCreateNew(body: AchievementCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public achievementsCreateNew(body: AchievementCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public achievementsCreateNew(body: AchievementCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public achievementsCreateNew(body: AchievementCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling achievementsCreateNew.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/achievements`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param achievementId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public achievementsDeleteSingle(achievementId: number, observe?: 'body', reportProgress?: boolean): Observable; + public achievementsDeleteSingle(achievementId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public achievementsDeleteSingle(achievementId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public achievementsDeleteSingle(achievementId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (achievementId === null || achievementId === undefined) { + throw new Error('Required parameter achievementId was null or undefined when calling achievementsDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/achievements/${encodeURIComponent(String(achievementId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param achievementId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe?: 'body', reportProgress?: boolean): Observable; + public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public achievementsEditSingle(body: AchievementCreationRequest, achievementId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling achievementsEditSingle.'); + } + + if (achievementId === null || achievementId === undefined) { + throw new Error('Required parameter achievementId was null or undefined when calling achievementsEditSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/achievements/${encodeURIComponent(String(achievementId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param _limit + * @param _start + * @param achievement + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public achievementsGetAll(_limit?: number, _start?: number, achievement?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (_limit !== undefined && _limit !== null) { + queryParameters = queryParameters.set('_limit', _limit); + } + if (_start !== undefined && _start !== null) { + queryParameters = queryParameters.set('_start', _start); + } + + let headers = this.defaultHeaders; + if (achievement !== undefined && achievement !== null) { + headers = headers.set('achievement', String(achievement)); + } + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/achievements`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param achievementId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public achievementsGetSingle(achievementId: number, observe?: 'body', reportProgress?: boolean): Observable; + public achievementsGetSingle(achievementId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public achievementsGetSingle(achievementId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public achievementsGetSingle(achievementId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (achievementId === null || achievementId === undefined) { + throw new Error('Required parameter achievementId was null or undefined when calling achievementsGetSingle.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/achievements/${encodeURIComponent(String(achievementId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public achievementsGetSuccessful(observe?: 'body', reportProgress?: boolean): Observable; + public achievementsGetSuccessful(observe?: 'response', reportProgress?: boolean): Observable>; + public achievementsGetSuccessful(observe?: 'events', reportProgress?: boolean): Observable>; + public achievementsGetSuccessful(observe: any = 'body', reportProgress: boolean = false ): Observable { + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/achievements/special/successful`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminAchievementsGrant(body: AchievementGrantRequest, observe?: 'body', reportProgress?: boolean): Observable; + public adminAchievementsGrant(body: AchievementGrantRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public adminAchievementsGrant(body: AchievementGrantRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public adminAchievementsGrant(body: AchievementGrantRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling adminAchievementsGrant.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/admin/achievements/grant`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminCorrectionInfosGetAll(year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminCorrectionInfosGetAll(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminCorrectionInfosGetAll(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminCorrectionInfosGetAll(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/correctionInfos`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminCorrectionInfosGetSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminCorrectionInfosGetSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminCorrectionInfosGetSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminCorrectionInfosGetSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminCorrectionInfosGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/correctionInfos/${encodeURIComponent(String(taskId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param _public + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminCorrectionsEmail(taskId: number, _public: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminCorrectionsEmail(taskId: number, _public: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminCorrectionsEmail(taskId: number, _public: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminCorrectionsEmail(taskId: number, _public: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminCorrectionsEmail.'); + } + + if (_public === null || _public === undefined) { + throw new Error('Required parameter _public was null or undefined when calling adminCorrectionsEmail.'); + } + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (_public !== undefined && _public !== null) { + queryParameters = queryParameters.set('public', _public); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('put',`${this.basePath}/admin/correctionsEmail/${encodeURIComponent(String(taskId))}`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param task + * @param participant + * @param state + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminCorrectionsGetAll(task?: number, participant?: number, state?: CorrectionState, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (task !== undefined && task !== null) { + queryParameters = queryParameters.set('task', task); + } + if (participant !== undefined && participant !== null) { + queryParameters = queryParameters.set('participant', participant); + } + if (state !== undefined && state !== null) { + queryParameters = queryParameters.set('state', state); + } + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/corrections`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param correctionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminCorrectionsGetSingle(correctionId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminCorrectionsGetSingle(correctionId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminCorrectionsGetSingle(correctionId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminCorrectionsGetSingle(correctionId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (correctionId === null || correctionId === undefined) { + throw new Error('Required parameter correctionId was null or undefined when calling adminCorrectionsGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/corrections/${encodeURIComponent(String(correctionId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param correctionId + * @param _public + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminCorrectionsPublish(correctionId: number, _public: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminCorrectionsPublish(correctionId: number, _public: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminCorrectionsPublish(correctionId: number, _public: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminCorrectionsPublish(correctionId: number, _public: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (correctionId === null || correctionId === undefined) { + throw new Error('Required parameter correctionId was null or undefined when calling adminCorrectionsPublish.'); + } + + if (_public === null || _public === undefined) { + throw new Error('Required parameter _public was null or undefined when calling adminCorrectionsPublish.'); + } + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (_public !== undefined && _public !== null) { + queryParameters = queryParameters.set('public', _public); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/corrections/${encodeURIComponent(String(correctionId))}/publish`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param correctionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminCorrectionsUpdateSingle(body: CorrectionUpdateRequest, correctionId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling adminCorrectionsUpdateSingle.'); + } + + if (correctionId === null || correctionId === undefined) { + throw new Error('Required parameter correctionId was null or undefined when calling adminCorrectionsUpdateSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/admin/corrections/${encodeURIComponent(String(correctionId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param files + * @param userId + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminDiplomaGrantForm(files: Blob, userId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (files === null || files === undefined) { + throw new Error('Required parameter files was null or undefined when calling adminDiplomaGrant.'); + } + + if (userId === null || userId === undefined) { + throw new Error('Required parameter userId was null or undefined when calling adminDiplomaGrant.'); + } + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): void; }; + let useForm = false; + let convertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + useForm = canConsumeForm; + if (useForm) { + formParams = new FormData(); + } else { + formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + } + + if (files !== undefined) { + formParams = formParams.append('files', files) as any || formParams; + } + + return this.httpClient.request('post',`${this.basePath}/admin/diploma/${encodeURIComponent(String(userId))}/grant`, + { + body: convertFormParamsToString ? formParams.toString() : formParams, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminEmailSend(body: EmailSendRequest, observe?: 'body', reportProgress?: boolean): Observable; + public adminEmailSend(body: EmailSendRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public adminEmailSend(body: EmailSendRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public adminEmailSend(body: EmailSendRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling adminEmailSend.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/admin/e-mail`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param evaluationId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminEvaluationGetSingle(evaluationId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminEvaluationGetSingle(evaluationId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminEvaluationGetSingle(evaluationId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminEvaluationGetSingle(evaluationId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (evaluationId === null || evaluationId === undefined) { + throw new Error('Required parameter evaluationId was null or undefined when calling adminEvaluationGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/evalCodes/${encodeURIComponent(String(evaluationId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param user + * @param module + * @param limit + * @param page + * @param from + * @param to + * @param result + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminExecutionGetMultiple(user?: number, module?: number, limit?: number, page?: number, from?: string, to?: string, result?: ExecutionResult, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + + + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (user !== undefined && user !== null) { + queryParameters = queryParameters.set('user', user); + } + if (module !== undefined && module !== null) { + queryParameters = queryParameters.set('module', module); + } + if (limit !== undefined && limit !== null) { + queryParameters = queryParameters.set('limit', limit); + } + if (page !== undefined && page !== null) { + queryParameters = queryParameters.set('page', page); + } + if (from !== undefined && from !== null) { + queryParameters = queryParameters.set('from', from); + } + if (to !== undefined && to !== null) { + queryParameters = queryParameters.set('to', to); + } + if (result !== undefined && result !== null) { + queryParameters = queryParameters.set('result', result); + } + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/execs`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param executionId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminExecutionGetSingle(executionId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminExecutionGetSingle(executionId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminExecutionGetSingle(executionId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminExecutionGetSingle(executionId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (executionId === null || executionId === undefined) { + throw new Error('Required parameter executionId was null or undefined when calling adminExecutionGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/execs/${encodeURIComponent(String(executionId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param evaluationId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminGetEvaluationSingle(evaluationId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminGetEvaluationSingle(evaluationId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminGetEvaluationSingle(evaluationId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminGetEvaluationSingle(evaluationId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (evaluationId === null || evaluationId === undefined) { + throw new Error('Required parameter evaluationId was null or undefined when calling adminGetEvaluationSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/evaluations/${encodeURIComponent(String(evaluationId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminMonitoringDashboardURL(observe?: 'body', reportProgress?: boolean): Observable; + public adminMonitoringDashboardURL(observe?: 'response', reportProgress?: boolean): Observable>; + public adminMonitoringDashboardURL(observe?: 'events', reportProgress?: boolean): Observable>; + public adminMonitoringDashboardURL(observe: any = 'body', reportProgress: boolean = false ): Observable { + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/monitoring-dashboard`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param evaluationId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminSubmissionEvaluation(evaluationId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminSubmissionEvaluation(evaluationId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminSubmissionEvaluation(evaluationId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminSubmissionEvaluation(evaluationId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (evaluationId === null || evaluationId === undefined) { + throw new Error('Required parameter evaluationId was null or undefined when calling adminSubmissionEvaluation.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/subm/eval/${encodeURIComponent(String(evaluationId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminSubmissionTask(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminSubmissionTask(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminSubmissionTask(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminSubmissionTask(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminSubmissionTask.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/subm/task/${encodeURIComponent(String(taskId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTaskDeploySingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTaskDeploySingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTaskDeploySingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTaskDeploySingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminTaskDeploySingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('post',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}/deploy`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTaskMergeSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTaskMergeSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTaskMergeSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTaskMergeSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminTaskMergeSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('post',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}/merge`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTasksCreateNew(body: AdminTaskCreationRequest, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling adminTasksCreateNew.'); + } + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/admin/atasks`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTasksDeleteSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTasksDeleteSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTasksDeleteSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTasksDeleteSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminTasksDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param wave + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTasksGetAll(wave?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTasksGetAll(wave?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTasksGetAll(wave?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTasksGetAll(wave?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (wave !== undefined && wave !== null) { + queryParameters = queryParameters.set('wave', wave); + } + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/atasks`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTasksGetDeploySingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTasksGetDeploySingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTasksGetDeploySingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTasksGetDeploySingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminTasksGetDeploySingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}/deploy`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTasksGetSingle(taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTasksGetSingle(taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTasksGetSingle(taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTasksGetSingle(taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminTasksGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param taskId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminTasksUpdateSingle(body: AdminTaskUpdateRequest, taskId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling adminTasksUpdateSingle.'); + } + + if (taskId === null || taskId === undefined) { + throw new Error('Required parameter taskId was null or undefined when calling adminTasksUpdateSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/admin/atasks/${encodeURIComponent(String(taskId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminUserExport(year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminUserExport(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminUserExport(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminUserExport(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/user-export`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param waveId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public adminWavesDiff(waveId: number, observe?: 'body', reportProgress?: boolean): Observable; + public adminWavesDiff(waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public adminWavesDiff(waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public adminWavesDiff(waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (waveId === null || waveId === undefined) { + throw new Error('Required parameter waveId was null or undefined when calling adminWavesDiff.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/waves/${encodeURIComponent(String(waveId))}/diff`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public articlesCreateNew(body: ArticleCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public articlesCreateNew(body: ArticleCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public articlesCreateNew(body: ArticleCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public articlesCreateNew(body: ArticleCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling articlesCreateNew.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/articles`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param articleId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public articlesDeleteSingle(articleId: number, observe?: 'body', reportProgress?: boolean): Observable; + public articlesDeleteSingle(articleId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public articlesDeleteSingle(articleId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public articlesDeleteSingle(articleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (articleId === null || articleId === undefined) { + throw new Error('Required parameter articleId was null or undefined when calling articlesDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/articles/${encodeURIComponent(String(articleId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param articleId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe?: 'body', reportProgress?: boolean): Observable; + public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public articlesEditSingle(body: ArticleCreationRequest, articleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling articlesEditSingle.'); + } + + if (articleId === null || articleId === undefined) { + throw new Error('Required parameter articleId was null or undefined when calling articlesEditSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/articles/${encodeURIComponent(String(articleId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param _limit + * @param _start + * @param article + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public articlesGetAll(_limit?: number, _start?: number, article?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (_limit !== undefined && _limit !== null) { + queryParameters = queryParameters.set('_limit', _limit); + } + if (_start !== undefined && _start !== null) { + queryParameters = queryParameters.set('_start', _start); + } + + let headers = this.defaultHeaders; + if (article !== undefined && article !== null) { + headers = headers.set('article', String(article)); + } + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/articles`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param articleId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public articlesGetSingle(articleId: number, observe?: 'body', reportProgress?: boolean): Observable; + public articlesGetSingle(articleId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public articlesGetSingle(articleId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public articlesGetSingle(articleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (articleId === null || articleId === undefined) { + throw new Error('Required parameter articleId was null or undefined when calling articlesGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/articles/${encodeURIComponent(String(articleId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param grant_type + * @param username + * @param password + * @param refresh_token + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + // @ts-ignore + public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe?: 'body', reportProgress?: boolean): Observable; + // @ts-ignore + public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe?: 'response', reportProgress?: boolean): Observable>; + // @ts-ignore + public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe?: 'events', reportProgress?: boolean): Observable>; + // @ts-ignore + public authorizeForm(grant_type: string, username: string = "", password: string = "", refresh_token: string = "", observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (grant_type === null || grant_type === undefined) { + throw new Error('Required parameter grant_type was null or undefined when calling authorize.'); + } + + if (username === null || username === undefined) { + throw new Error('Required parameter username was null or undefined when calling authorize.'); + } + + if (password === null || password === undefined) { + throw new Error('Required parameter password was null or undefined when calling authorize.'); + } + + if (refresh_token === null || refresh_token === undefined) { + throw new Error('Required parameter refresh_token was null or undefined when calling authorize.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): void; }; + let useForm = false; + let convertFormParamsToString = false; + if (useForm) { + formParams = new FormData(); + } else { + formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + } + + if (grant_type !== undefined) { + formParams = formParams.append('grant_type', grant_type) as any || formParams; + } + if (username !== undefined) { + formParams = formParams.append('username', username) as any || formParams; + } + if (password !== undefined) { + formParams = formParams.append('password', password) as any || formParams; + } + if (refresh_token !== undefined) { + formParams = formParams.append('refresh_token', refresh_token) as any || formParams; + } + + return this.httpClient.request('post',`${this.basePath}/auth`, + { + body: convertFormParamsToString ? formParams.toString() : formParams, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public basicProfileGetSingle(observe?: 'body', reportProgress?: boolean): Observable; + public basicProfileGetSingle(observe?: 'response', reportProgress?: boolean): Observable>; + public basicProfileGetSingle(observe?: 'events', reportProgress?: boolean): Observable>; + public basicProfileGetSingle(observe: any = 'body', reportProgress: boolean = false ): Observable { + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/basicProfile`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public changePassword(body: ChangePasswordRequest, observe?: 'body', reportProgress?: boolean): Observable; + public changePassword(body: ChangePasswordRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public changePassword(body: ChangePasswordRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public changePassword(body: ChangePasswordRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling changePassword.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/settings/changePassword`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param files + * @param path + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public contentsCreateNewForm(files: Array, path?: string, observe?: 'body', reportProgress?: boolean): Observable; + public contentsCreateNewForm(files: Array, path?: string, observe?: 'response', reportProgress?: boolean): Observable>; + public contentsCreateNewForm(files: Array, path?: string, observe?: 'events', reportProgress?: boolean): Observable>; + public contentsCreateNewForm(files: Array, path?: string, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (files === null || files === undefined) { + throw new Error('Required parameter files was null or undefined when calling contentsCreateNew.'); + } + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (path !== undefined && path !== null) { + queryParameters = queryParameters.set('path', path); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): void; }; + let useForm = false; + let convertFormParamsToString = false; + if (useForm) { + formParams = new FormData(); + } else { + formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + } + + if (files) { + files.forEach((element) => { + formParams = formParams.append('files', element) as any || formParams; + }) + } + + return this.httpClient.request('post',`${this.basePath}/content`, + { + body: convertFormParamsToString ? formParams.toString() : formParams, + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param path + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public contentsDeleteSingle(path?: string, observe?: 'body', reportProgress?: boolean): Observable; + public contentsDeleteSingle(path?: string, observe?: 'response', reportProgress?: boolean): Observable>; + public contentsDeleteSingle(path?: string, observe?: 'events', reportProgress?: boolean): Observable>; + public contentsDeleteSingle(path?: string, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (path !== undefined && path !== null) { + queryParameters = queryParameters.set('path', path); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/content`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param path + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public contentsGetSingle(path?: string, observe?: 'body', reportProgress?: boolean): Observable; + public contentsGetSingle(path?: string, observe?: 'response', reportProgress?: boolean): Observable>; + public contentsGetSingle(path?: string, observe?: 'events', reportProgress?: boolean): Observable>; + public contentsGetSingle(path?: string, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (path !== undefined && path !== null) { + queryParameters = queryParameters.set('path', path); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/content`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param userId + * @param yearId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public diplomaDownloadSingle(userId: number, yearId: number, observe?: 'body', reportProgress?: boolean): Observable; + public diplomaDownloadSingle(userId: number, yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public diplomaDownloadSingle(userId: number, yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public diplomaDownloadSingle(userId: number, yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (userId === null || userId === undefined) { + throw new Error('Required parameter userId was null or undefined when calling diplomaDownloadSingle.'); + } + + if (yearId === null || yearId === undefined) { + throw new Error('Required parameter yearId was null or undefined when calling diplomaDownloadSingle.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/diplomas/${encodeURIComponent(String(userId))}/${encodeURIComponent(String(yearId))}/show`,//@ts-ignore +{responseType: "blob", + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param userId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public diplomasListForUserSingle(userId: number, observe?: 'body', reportProgress?: boolean): Observable; + public diplomasListForUserSingle(userId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public diplomasListForUserSingle(userId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public diplomasListForUserSingle(userId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (userId === null || userId === undefined) { + throw new Error('Required parameter userId was null or undefined when calling diplomasListForUserSingle.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/diplomas/${encodeURIComponent(String(userId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public feedbackCreateNew(body: FeedbackCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public feedbackCreateNew(body: FeedbackCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public feedbackCreateNew(body: FeedbackCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public feedbackCreateNew(body: FeedbackCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling feedbackCreateNew.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/feedbacks`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param feedbackId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public feedbackDeleteSingle(feedbackId: number, observe?: 'body', reportProgress?: boolean): Observable; + public feedbackDeleteSingle(feedbackId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public feedbackDeleteSingle(feedbackId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public feedbackDeleteSingle(feedbackId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (feedbackId === null || feedbackId === undefined) { + throw new Error('Required parameter feedbackId was null or undefined when calling feedbackDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/feedbacks/${encodeURIComponent(String(feedbackId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param feedbackId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe?: 'body', reportProgress?: boolean): Observable; + public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public feedbackEditSingle(body: FeedbackUpdateRequest, feedbackId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling feedbackEditSingle.'); + } + + if (feedbackId === null || feedbackId === undefined) { + throw new Error('Required parameter feedbackId was null or undefined when calling feedbackEditSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/feedbacks/${encodeURIComponent(String(feedbackId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param feedbackId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public feedbackGetSingle(feedbackId: number, observe?: 'body', reportProgress?: boolean): Observable; + public feedbackGetSingle(feedbackId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public feedbackGetSingle(feedbackId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public feedbackGetSingle(feedbackId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (feedbackId === null || feedbackId === undefined) { + throw new Error('Required parameter feedbackId was null or undefined when calling feedbackGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/feedbacks/${encodeURIComponent(String(feedbackId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public forgottenPasswordReset(body: ForgottenPasswordRequest, observe?: 'body', reportProgress?: boolean): Observable; + public forgottenPasswordReset(body: ForgottenPasswordRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public forgottenPasswordReset(body: ForgottenPasswordRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public forgottenPasswordReset(body: ForgottenPasswordRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling forgottenPasswordReset.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/forgottenPassword`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param context + * @param imagesId + * @param file + * @param module + * @param user + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe?: 'body', reportProgress?: boolean): Observable; + public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public imagesGetSingle(context: string, imagesId: number, file?: string, module?: number, user?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (context === null || context === undefined) { + throw new Error('Required parameter context was null or undefined when calling imagesGetSingle.'); + } + + if (imagesId === null || imagesId === undefined) { + throw new Error('Required parameter imagesId was null or undefined when calling imagesGetSingle.'); + } + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (file !== undefined && file !== null) { + queryParameters = queryParameters.set('file', file); + } + if (module !== undefined && module !== null) { + queryParameters = queryParameters.set('module', module); + } + if (user !== undefined && user !== null) { + queryParameters = queryParameters.set('user', user); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/images/${encodeURIComponent(String(context))}/${encodeURIComponent(String(imagesId))}`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public instanceConfigGetAll(observe?: 'body', reportProgress?: boolean): Observable; + public instanceConfigGetAll(observe?: 'response', reportProgress?: boolean): Observable>; + public instanceConfigGetAll(observe?: 'events', reportProgress?: boolean): Observable>; + public instanceConfigGetAll(observe: any = 'body', reportProgress: boolean = false ): Observable { + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/admin/instanceConfig`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public instanceConfigSetSingle(body: AdminInstanceConfig, observe?: 'body', reportProgress?: boolean): Observable; + public instanceConfigSetSingle(body: AdminInstanceConfig, observe?: 'response', reportProgress?: boolean): Observable>; + public instanceConfigSetSingle(body: AdminInstanceConfig, observe?: 'events', reportProgress?: boolean): Observable>; + public instanceConfigSetSingle(body: AdminInstanceConfig, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling instanceConfigSetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/admin/instanceConfig`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param modulesId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public modulesGetSingle(modulesId: number, observe?: 'body', reportProgress?: boolean): Observable; + public modulesGetSingle(modulesId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public modulesGetSingle(modulesId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public modulesGetSingle(modulesId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (modulesId === null || modulesId === undefined) { + throw new Error('Required parameter modulesId was null or undefined when calling modulesGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/modules/${encodeURIComponent(String(modulesId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param files + * @param modulesId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public modulesSubmitFilesForm(files: Blob, modulesId: number, observe?: 'body', reportProgress?: boolean): Observable; + public modulesSubmitFilesForm(files: Blob, modulesId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public modulesSubmitFilesForm(files: Blob, modulesId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public modulesSubmitFilesForm(files: Blob, modulesId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (files === null || files === undefined) { + throw new Error('Required parameter files was null or undefined when calling modulesSubmitFiles.'); + } + + if (modulesId === null || modulesId === undefined) { + throw new Error('Required parameter modulesId was null or undefined when calling modulesSubmitFiles.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): void; }; + let useForm = false; + let convertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + useForm = canConsumeForm; + if (useForm) { + formParams = new FormData(); + } else { + formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + } + + if (files !== undefined) { + formParams = formParams.append('files', files) as any || formParams; + } + + return this.httpClient.request('post',`${this.basePath}/modules/${encodeURIComponent(String(modulesId))}/submitFiles`, + { + body: convertFormParamsToString ? formParams.toString() : formParams, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param modulesId + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe?: 'body', reportProgress?: boolean): Observable; + public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public modulesSubmitSingle(modulesId: number, body?: ModuleSubmissionRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (modulesId === null || modulesId === undefined) { + throw new Error('Required parameter modulesId was null or undefined when calling modulesSubmitSingle.'); + } + + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/modules/${encodeURIComponent(String(modulesId))}/submit`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postsCreateNew(body: PostsCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public postsCreateNew(body: PostsCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public postsCreateNew(body: PostsCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public postsCreateNew(body: PostsCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling postsCreateNew.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/posts`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param postsId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postsDeleteSingle(postsId: number, observe?: 'body', reportProgress?: boolean): Observable; + public postsDeleteSingle(postsId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public postsDeleteSingle(postsId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public postsDeleteSingle(postsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (postsId === null || postsId === undefined) { + throw new Error('Required parameter postsId was null or undefined when calling postsDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/posts/${encodeURIComponent(String(postsId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param postsId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postsEditSingle(body: PostsEditRequest, postsId: number, observe?: 'body', reportProgress?: boolean): Observable; + public postsEditSingle(body: PostsEditRequest, postsId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public postsEditSingle(body: PostsEditRequest, postsId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public postsEditSingle(body: PostsEditRequest, postsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling postsEditSingle.'); + } + + if (postsId === null || postsId === undefined) { + throw new Error('Required parameter postsId was null or undefined when calling postsEditSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/posts/${encodeURIComponent(String(postsId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param postsId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public postsGetSingle(postsId: number, observe?: 'body', reportProgress?: boolean): Observable; + public postsGetSingle(postsId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public postsGetSingle(postsId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public postsGetSingle(postsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (postsId === null || postsId === undefined) { + throw new Error('Required parameter postsId was null or undefined when calling postsGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/posts/${encodeURIComponent(String(postsId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public profileEditMy(body: ProfileEdit, observe?: 'body', reportProgress?: boolean): Observable; + public profileEditMy(body: ProfileEdit, observe?: 'response', reportProgress?: boolean): Observable>; + public profileEditMy(body: ProfileEdit, observe?: 'events', reportProgress?: boolean): Observable>; + public profileEditMy(body: ProfileEdit, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling profileEditMy.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/profile`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public profileGetMy(year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public profileGetMy(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public profileGetMy(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public profileGetMy(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/profile`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param profileId + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public profileGetSingle(profileId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public profileGetSingle(profileId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public profileGetSingle(profileId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public profileGetSingle(profileId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (profileId === null || profileId === undefined) { + throw new Error('Required parameter profileId was null or undefined when calling profileGetSingle.'); + } + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/profile/${encodeURIComponent(String(profileId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param file + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public profileUploadPictureForm(file: Blob, observe?: 'body', reportProgress?: boolean): Observable; + public profileUploadPictureForm(file: Blob, observe?: 'response', reportProgress?: boolean): Observable>; + public profileUploadPictureForm(file: Blob, observe?: 'events', reportProgress?: boolean): Observable>; + public profileUploadPictureForm(file: Blob, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (file === null || file === undefined) { + throw new Error('Required parameter file was null or undefined when calling profileUploadPicture.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): void; }; + let useForm = false; + let convertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + useForm = canConsumeForm; + if (useForm) { + formParams = new FormData(); + } else { + formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + } + + if (file !== undefined) { + formParams = formParams.append('file', file) as any || formParams; + } + + return this.httpClient.request('post',`${this.basePath}/profile/picture`, + { + body: convertFormParamsToString ? formParams.toString() : formParams, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public registerNewUser(body: RegistrationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public registerNewUser(body: RegistrationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public registerNewUser(body: RegistrationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public registerNewUser(body: RegistrationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling registerNewUser.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/registration`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param moduleId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public runCode(body: RunCodeRequest, moduleId: number, observe?: 'body', reportProgress?: boolean): Observable; + public runCode(body: RunCodeRequest, moduleId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public runCode(body: RunCodeRequest, moduleId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public runCode(body: RunCodeRequest, moduleId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling runCode.'); + } + + if (moduleId === null || moduleId === undefined) { + throw new Error('Required parameter moduleId was null or undefined when calling runCode.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/runCode/${encodeURIComponent(String(moduleId))}/submit`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public sendEmailWithFeedback(body: FeedbackRequest, observe?: 'body', reportProgress?: boolean): Observable; + public sendEmailWithFeedback(body: FeedbackRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public sendEmailWithFeedback(body: FeedbackRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public sendEmailWithFeedback(body: FeedbackRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling sendEmailWithFeedback.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/feedback`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public sendEmailWithFeedback_1(observe?: 'body', reportProgress?: boolean): Observable; + public sendEmailWithFeedback_1(observe?: 'response', reportProgress?: boolean): Observable>; + public sendEmailWithFeedback_1(observe?: 'events', reportProgress?: boolean): Observable>; + public sendEmailWithFeedback_1(observe: any = 'body', reportProgress: boolean = false ): Observable { + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/logout`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param submFileId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public subFilesDeleteSingle(submFileId: number, observe?: 'body', reportProgress?: boolean): Observable; + public subFilesDeleteSingle(submFileId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public subFilesDeleteSingle(submFileId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public subFilesDeleteSingle(submFileId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (submFileId === null || submFileId === undefined) { + throw new Error('Required parameter submFileId was null or undefined when calling subFilesDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/submFiles/${encodeURIComponent(String(submFileId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param submFileId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public submFilesGetSingle(submFileId: number, observe?: 'body', reportProgress?: boolean): Observable; + public submFilesGetSingle(submFileId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public submFilesGetSingle(submFileId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public submFilesGetSingle(submFileId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (submFileId === null || submFileId === undefined) { + throw new Error('Required parameter submFileId was null or undefined when calling submFilesGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/submFiles/${encodeURIComponent(String(submFileId))}`,//@ts-ignore +{responseType: "blob", + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param view + * @param contentId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public taskContent2GetSingle(view: string, contentId: string, observe?: 'body', reportProgress?: boolean): Observable; + public taskContent2GetSingle(view: string, contentId: string, observe?: 'response', reportProgress?: boolean): Observable>; + public taskContent2GetSingle(view: string, contentId: string, observe?: 'events', reportProgress?: boolean): Observable>; + public taskContent2GetSingle(view: string, contentId: string, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling yearsUpdateSingle.'); + if (view === null || view === undefined) { + throw new Error('Required parameter view was null or undefined when calling taskContent2GetSingle.'); } - if (yearId === null || yearId === undefined) { - throw new Error('Required parameter yearId was null or undefined when calling yearsUpdateSingle.'); + if (contentId === null || contentId === undefined) { + throw new Error('Required parameter contentId was null or undefined when calling taskContent2GetSingle.'); } let headers = this.defaultHeaders; @@ -5205,16 +4027,12 @@ // to determine the Content-Type header const consumes: string[] = [ - 'application/json' ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - return this.httpClient.request('put',`${this.basePath}/years/${encodeURIComponent(String(yearId))}`, + return this.httpClient.request('get',`${this.basePath}/taskContent/${String(contentId)}/${String(view)}`, { - body: body, + //@ts-ignore + responseType: "blob", withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, @@ -5222,5 +4040,1187 @@ } ); } - - } \ No newline at end of file + + /** + * + * + * @param view + * @param contentId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public taskContentGetSingle(view: string, contentId: string, observe?: 'body', reportProgress?: boolean): Observable; + public taskContentGetSingle(view: string, contentId: string, observe?: 'response', reportProgress?: boolean): Observable>; + public taskContentGetSingle(view: string, contentId: string, observe?: 'events', reportProgress?: boolean): Observable>; + public taskContentGetSingle(view: string, contentId: string, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (view === null || view === undefined) { + throw new Error('Required parameter view was null or undefined when calling taskContentGetSingle.'); + } + + if (contentId === null || contentId === undefined) { + throw new Error('Required parameter contentId was null or undefined when calling taskContentGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/task-content/${encodeURIComponent(String(contentId))}/${encodeURIComponent(String(view))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param taskDetailsId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public taskDetailsGetSingle(taskDetailsId: number, observe?: 'body', reportProgress?: boolean): Observable; + public taskDetailsGetSingle(taskDetailsId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public taskDetailsGetSingle(taskDetailsId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public taskDetailsGetSingle(taskDetailsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (taskDetailsId === null || taskDetailsId === undefined) { + throw new Error('Required parameter taskDetailsId was null or undefined when calling taskDetailsGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/taskDetails/${encodeURIComponent(String(taskDetailsId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public tasksGetAll(year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public tasksGetAll(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public tasksGetAll(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public tasksGetAll(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/tasks`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param tasksId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public tasksGetSingle(tasksId: number, observe?: 'body', reportProgress?: boolean): Observable; + public tasksGetSingle(tasksId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public tasksGetSingle(tasksId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public tasksGetSingle(tasksId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (tasksId === null || tasksId === undefined) { + throw new Error('Required parameter tasksId was null or undefined when calling tasksGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/tasks/${encodeURIComponent(String(tasksId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param threadDetailsId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public threadDetailsGetSingle(threadDetailsId: number, observe?: 'body', reportProgress?: boolean): Observable; + public threadDetailsGetSingle(threadDetailsId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public threadDetailsGetSingle(threadDetailsId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public threadDetailsGetSingle(threadDetailsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (threadDetailsId === null || threadDetailsId === undefined) { + throw new Error('Required parameter threadDetailsId was null or undefined when calling threadDetailsGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/threadDetails/${encodeURIComponent(String(threadDetailsId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public threadsCreateNew(body: ThreadsCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public threadsCreateNew(body: ThreadsCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public threadsCreateNew(body: ThreadsCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public threadsCreateNew(body: ThreadsCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling threadsCreateNew.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/threads`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param wave + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public threadsGetAll(wave?: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public threadsGetAll(wave?: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public threadsGetAll(wave?: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public threadsGetAll(wave?: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (wave !== undefined && wave !== null) { + queryParameters = queryParameters.set('wave', wave); + } + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/threads`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param threadsId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public threadsGetSingle(threadsId: number, observe?: 'body', reportProgress?: boolean): Observable; + public threadsGetSingle(threadsId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public threadsGetSingle(threadsId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public threadsGetSingle(threadsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (threadsId === null || threadsId === undefined) { + throw new Error('Required parameter threadsId was null or undefined when calling threadsGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/threads/${encodeURIComponent(String(threadsId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param threadsId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public threadsMarkVisited(threadsId: number, observe?: 'body', reportProgress?: boolean): Observable; + public threadsMarkVisited(threadsId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public threadsMarkVisited(threadsId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public threadsMarkVisited(threadsId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (threadsId === null || threadsId === undefined) { + throw new Error('Required parameter threadsId was null or undefined when calling threadsMarkVisited.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('put',`${this.basePath}/threads/${encodeURIComponent(String(threadsId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param usersId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public usersDeleteSingle(usersId: number, observe?: 'body', reportProgress?: boolean): Observable; + public usersDeleteSingle(usersId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public usersDeleteSingle(usersId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public usersDeleteSingle(usersId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (usersId === null || usersId === undefined) { + throw new Error('Required parameter usersId was null or undefined when calling usersDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/users/${encodeURIComponent(String(usersId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param filter + * @param sort + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public usersGetAll(filter?: string, sort?: string, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public usersGetAll(filter?: string, sort?: string, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public usersGetAll(filter?: string, sort?: string, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public usersGetAll(filter?: string, sort?: string, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (filter !== undefined && filter !== null) { + queryParameters = queryParameters.set('filter', filter); + } + if (sort !== undefined && sort !== null) { + queryParameters = queryParameters.set('sort', sort); + } + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/users`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param usersId + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public usersGetSingle(usersId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public usersGetSingle(usersId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public usersGetSingle(usersId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public usersGetSingle(usersId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (usersId === null || usersId === undefined) { + throw new Error('Required parameter usersId was null or undefined when calling usersGetSingle.'); + } + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/users/${encodeURIComponent(String(usersId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param usersId + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public usersGetSingleDiscordInvite(usersId: number, year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public usersGetSingleDiscordInvite(usersId: number, year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public usersGetSingleDiscordInvite(usersId: number, year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public usersGetSingleDiscordInvite(usersId: number, year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (usersId === null || usersId === undefined) { + throw new Error('Required parameter usersId was null or undefined when calling usersGetSingleDiscordInvite.'); + } + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/users/${encodeURIComponent(String(usersId))}/discord`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public wavesCreateNew(body: WaveCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public wavesCreateNew(body: WaveCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public wavesCreateNew(body: WaveCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public wavesCreateNew(body: WaveCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling wavesCreateNew.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/waves`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param waveId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public wavesDeleteSingle(waveId: number, observe?: 'body', reportProgress?: boolean): Observable; + public wavesDeleteSingle(waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public wavesDeleteSingle(waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public wavesDeleteSingle(waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (waveId === null || waveId === undefined) { + throw new Error('Required parameter waveId was null or undefined when calling wavesDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/waves/${encodeURIComponent(String(waveId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public wavesGetAll(year?: number, observe?: 'body', reportProgress?: boolean): Observable; + public wavesGetAll(year?: number, observe?: 'response', reportProgress?: boolean): Observable>; + public wavesGetAll(year?: number, observe?: 'events', reportProgress?: boolean): Observable>; + public wavesGetAll(year?: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + let headers = this.defaultHeaders; + if (year !== undefined && year !== null) { + headers = headers.set('year', String(year)); + } + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/waves`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param waveId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public wavesGetSingle(waveId: number, observe?: 'body', reportProgress?: boolean): Observable; + public wavesGetSingle(waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public wavesGetSingle(waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public wavesGetSingle(waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (waveId === null || waveId === undefined) { + throw new Error('Required parameter waveId was null or undefined when calling wavesGetSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/waves/${encodeURIComponent(String(waveId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param waveId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe?: 'body', reportProgress?: boolean): Observable; + public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public wavesUpdateSingle(body: WaveUpdateRequest, waveId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling wavesUpdateSingle.'); + } + + if (waveId === null || waveId === undefined) { + throw new Error('Required parameter waveId was null or undefined when calling wavesUpdateSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/waves/${encodeURIComponent(String(waveId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public yearsCreateNew(body: YearCreationRequest, observe?: 'body', reportProgress?: boolean): Observable; + public yearsCreateNew(body: YearCreationRequest, observe?: 'response', reportProgress?: boolean): Observable>; + public yearsCreateNew(body: YearCreationRequest, observe?: 'events', reportProgress?: boolean): Observable>; + public yearsCreateNew(body: YearCreationRequest, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling yearsCreateNew.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('post',`${this.basePath}/years`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param yearId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public yearsDeleteSingle(yearId: number, observe?: 'body', reportProgress?: boolean): Observable; + public yearsDeleteSingle(yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public yearsDeleteSingle(yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public yearsDeleteSingle(yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (yearId === null || yearId === undefined) { + throw new Error('Required parameter yearId was null or undefined when calling yearsDeleteSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('delete',`${this.basePath}/years/${encodeURIComponent(String(yearId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public yearsGetAll(observe?: 'body', reportProgress?: boolean): Observable; + public yearsGetAll(observe?: 'response', reportProgress?: boolean): Observable>; + public yearsGetAll(observe?: 'events', reportProgress?: boolean): Observable>; + public yearsGetAll(observe: any = 'body', reportProgress: boolean = false ): Observable { + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/years`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param yearId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public yearsGetSingle(yearId: number, observe?: 'body', reportProgress?: boolean): Observable; + public yearsGetSingle(yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public yearsGetSingle(yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public yearsGetSingle(yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (yearId === null || yearId === undefined) { + throw new Error('Required parameter yearId was null or undefined when calling yearsGetSingle.'); + } + + let headers = this.defaultHeaders; + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + ]; + + return this.httpClient.request('get',`${this.basePath}/years/${encodeURIComponent(String(yearId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * + * @param body + * @param yearId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe?: 'body', reportProgress?: boolean): Observable; + public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe?: 'response', reportProgress?: boolean): Observable>; + public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe?: 'events', reportProgress?: boolean): Observable>; + public yearsUpdateSingle(body: YearUpdateRequest, yearId: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling yearsUpdateSingle.'); + } + + if (yearId === null || yearId === undefined) { + throw new Error('Required parameter yearId was null or undefined when calling yearsUpdateSingle.'); + } + + let headers = this.defaultHeaders; + + // authentication (ksi) required + if (this.configuration.accessToken) { + const accessToken = typeof this.configuration.accessToken === 'function' + ? this.configuration.accessToken() + : this.configuration.accessToken; + headers = headers.set('Authorization', 'Bearer ' + accessToken); + } + + // to determine the Accept header + let httpHeaderAccepts: string[] = [ + 'application/json' + ]; + const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); + if (httpHeaderAcceptSelected != undefined) { + headers = headers.set('Accept', httpHeaderAcceptSelected); + } + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/years/${encodeURIComponent(String(yearId))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} \ No newline at end of file From 528e7950ec35cc582a8cc0b7520d926bc60f2037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Sat, 11 Jan 2025 10:00:26 +0100 Subject: [PATCH 4/5] refactor: cleanup --- src/app/services/tasks/tasks.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/tasks/tasks.service.ts b/src/app/services/tasks/tasks.service.ts index bd10db4b..7096b5bf 100644 --- a/src/app/services/tasks/tasks.service.ts +++ b/src/app/services/tasks/tasks.service.ts @@ -47,7 +47,7 @@ export class TasksService { ) { this.tasks$ = merge( backend.user$.pipe(map(() => this.year.selected)), - year.selected$, + year.selected$ ).pipe( mergeMap((year) => this.backend.http.tasksGetAll(year?.id)), mergeMap((response) => From 3884a4c8c8a0041ce23996d671a94b0de2bd84fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Sat, 11 Jan 2025 10:03:04 +0100 Subject: [PATCH 5/5] refactor: cleanup --- src/api/backend/api/default.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/backend/api/default.service.ts b/src/api/backend/api/default.service.ts index 3496a76a..4016a5ef 100644 --- a/src/api/backend/api/default.service.ts +++ b/src/api/backend/api/default.service.ts @@ -112,6 +112,8 @@ export class DefaultService { this.configuration = configuration; this.basePath = basePath || configuration.basePath || this.basePath; } + + this.basePath = this.basePath.replace(/\/+$/, ''); // remove trailing slash } /**