Skip to content

Commit

Permalink
update api client
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Oct 26, 2024
1 parent aa39217 commit d6644bc
Show file tree
Hide file tree
Showing 31 changed files with 192 additions and 849 deletions.
26 changes: 9 additions & 17 deletions webapp/src/app/core/modules/openapi/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,22 @@ api/leaderboard.service.ts
api/leaderboard.serviceInterface.ts
api/meta.service.ts
api/meta.serviceInterface.ts
api/pull-request.service.ts
api/pull-request.serviceInterface.ts
api/user.service.ts
api/user.serviceInterface.ts
configuration.ts
encoder.ts
git_push.sh
index.ts
model/issue-comment-dto.ts
model/issue-comment.ts
model/auth-user-info.ts
model/label-info.ts
model/leaderboard-entry.ts
model/meta-data-dto.ts
model/meta-data.ts
model/models.ts
model/pull-request-dto.ts
model/pull-request-label.ts
model/pull-request-review-comment.ts
model/pull-request-review-dto.ts
model/pull-request-review.ts
model/pull-request.ts
model/repository-dto.ts
model/repository.ts
model/user-dto.ts
model/user-info-dto.ts
model/user-profile-dto.ts
model/user.ts
model/pull-request-base-info.ts
model/pull-request-info.ts
model/pull-request-review-info.ts
model/repository-info.ts
model/user-info.ts
model/user-profile.ts
param.ts
variables.ts
10 changes: 5 additions & 5 deletions webapp/src/app/core/modules/openapi/api/admin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { UserInfoDto } from '../model/user-info-dto';
import { AuthUserInfo } from '../model/auth-user-info';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
Expand Down Expand Up @@ -158,9 +158,9 @@ export class AdminService implements AdminServiceInterface {
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getGretting(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<UserInfoDto>;
public getGretting(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<UserInfoDto>>;
public getGretting(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<UserInfoDto>>;
public getGretting(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AuthUserInfo>;
public getGretting(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AuthUserInfo>>;
public getGretting(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AuthUserInfo>>;
public getGretting(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarHeaders = this.defaultHeaders;
Expand Down Expand Up @@ -200,7 +200,7 @@ export class AdminService implements AdminServiceInterface {
}

let localVarPath = `/admin/me`;
return this.httpClient.request<UserInfoDto>('get', `${this.configuration.basePath}${localVarPath}`,
return this.httpClient.request<AuthUserInfo>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { HttpHeaders } from '@angular/comm

import { Observable } from 'rxjs';

import { UserInfoDto } from '../model/models';
import { AuthUserInfo } from '../model/models';


import { Configuration } from '../configuration';
Expand All @@ -34,6 +34,6 @@ export interface AdminServiceInterface {
*
*
*/
getGretting(extraHttpRequestParams?: any): Observable<UserInfoDto>;
getGretting(extraHttpRequestParams?: any): Observable<AuthUserInfo>;

}
5 changes: 1 addition & 4 deletions webapp/src/app/core/modules/openapi/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ export * from './leaderboard.serviceInterface';
export * from './meta.service';
import { MetaService } from './meta.service';
export * from './meta.serviceInterface';
export * from './pull-request.service';
import { PullRequestService } from './pull-request.service';
export * from './pull-request.serviceInterface';
export * from './user.service';
import { UserService } from './user.service';
export * from './user.serviceInterface';
export const APIS = [AdminService, LeaderboardService, MetaService, PullRequestService, UserService];
export const APIS = [AdminService, LeaderboardService, MetaService, UserService];
10 changes: 5 additions & 5 deletions webapp/src/app/core/modules/openapi/api/meta.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { MetaDataDTO } from '../model/meta-data-dto';
import { MetaData } from '../model/meta-data';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
Expand Down Expand Up @@ -99,9 +99,9 @@ export class MetaService implements MetaServiceInterface {
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getMetaData(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<MetaDataDTO>;
public getMetaData(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<MetaDataDTO>>;
public getMetaData(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<MetaDataDTO>>;
public getMetaData(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<MetaData>;
public getMetaData(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<MetaData>>;
public getMetaData(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<MetaData>>;
public getMetaData(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarHeaders = this.defaultHeaders;
Expand Down Expand Up @@ -141,7 +141,7 @@ export class MetaService implements MetaServiceInterface {
}

let localVarPath = `/meta`;
return this.httpClient.request<MetaDataDTO>('get', `${this.configuration.basePath}${localVarPath}`,
return this.httpClient.request<MetaData>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { HttpHeaders } from '@angular/comm

import { Observable } from 'rxjs';

import { MetaDataDTO } from '../model/models';
import { MetaData } from '../model/models';


import { Configuration } from '../configuration';
Expand All @@ -28,6 +28,6 @@ export interface MetaServiceInterface {
*
*
*/
getMetaData(extraHttpRequestParams?: any): Observable<MetaDataDTO>;
getMetaData(extraHttpRequestParams?: any): Observable<MetaData>;

}
224 changes: 0 additions & 224 deletions webapp/src/app/core/modules/openapi/api/pull-request.service.ts

This file was deleted.

Loading

0 comments on commit d6644bc

Please sign in to comment.