Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2023-08-19 16:55:52 +03:00
parent 0e18a63f10
commit 59e28e5a86
18 changed files with 801 additions and 804 deletions

View File

@@ -1,11 +1,8 @@
/* tslint:disable */
/* eslint-disable */
export interface Module {
created?: string;
id?: number;
last_version?: string;
last_check?: string;
name?: string;
package?: number;
updated?: string;
version?: string;
}

View File

@@ -360,150 +360,6 @@ export class PkgdashServiceService extends BaseService {
);
}
/** Path part for operation `packagesModules()` */
static readonly PackagesModulesPath = '/v1/packages/{id}/modules';
/**
* This method provides access to the full `HttpResponse`, allowing access to response headers.
* To access only the response body, use `packagesModules()` instead.
*
* This method doesn't expect any request body.
*/
packagesModules$Response(
params: {
id: number;
},
context?: HttpContext
): Observable<StrictHttpResponse<PackagesModulesRsp>> {
const rb = new RequestBuilder(this.rootUrl, PkgdashServiceService.PackagesModulesPath, 'get');
if (params) {
rb.path('id', params.id, {});
}
return this.http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<PackagesModulesRsp>;
})
);
}
/**
* This method provides access only to the response body.
* To access the full response (for headers, for example), `packagesModules$Response()` instead.
*
* This method doesn't expect any request body.
*/
packagesModules(
params: {
id: number;
},
context?: HttpContext
): Observable<PackagesModulesRsp> {
return this.packagesModules$Response(params, context).pipe(
map((r: StrictHttpResponse<PackagesModulesRsp>): PackagesModulesRsp => r.body)
);
}
/** Path part for operation `commentsList()` */
static readonly CommentsListPath = '/v1/packages/{package_id}/comments';
/**
* This method provides access to the full `HttpResponse`, allowing access to response headers.
* To access only the response body, use `commentsList()` instead.
*
* This method doesn't expect any request body.
*/
commentsList$Response(
params: {
package_id: number;
},
context?: HttpContext
): Observable<StrictHttpResponse<CommentsListRsp>> {
const rb = new RequestBuilder(this.rootUrl, PkgdashServiceService.CommentsListPath, 'get');
if (params) {
rb.path('package_id', params.package_id, {});
}
return this.http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<CommentsListRsp>;
})
);
}
/**
* This method provides access only to the response body.
* To access the full response (for headers, for example), `commentsList$Response()` instead.
*
* This method doesn't expect any request body.
*/
commentsList(
params: {
package_id: number;
},
context?: HttpContext
): Observable<CommentsListRsp> {
return this.commentsList$Response(params, context).pipe(
map((r: StrictHttpResponse<CommentsListRsp>): CommentsListRsp => r.body)
);
}
/** Path part for operation `commentsCreate()` */
static readonly CommentsCreatePath = '/v1/packages/{package_id}/comments';
/**
* This method provides access to the full `HttpResponse`, allowing access to response headers.
* To access only the response body, use `commentsCreate()` instead.
*
* This method sends `application/json` and handles request body of type `application/json`.
*/
commentsCreate$Response(
params: {
package_id: number;
body: CommentsCreateReq
},
context?: HttpContext
): Observable<StrictHttpResponse<CommentsCreateRsp>> {
const rb = new RequestBuilder(this.rootUrl, PkgdashServiceService.CommentsCreatePath, 'post');
if (params) {
rb.path('package_id', params.package_id, {});
rb.body(params.body, 'application/json');
}
return this.http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<CommentsCreateRsp>;
})
);
}
/**
* This method provides access only to the response body.
* To access the full response (for headers, for example), `commentsCreate$Response()` instead.
*
* This method sends `application/json` and handles request body of type `application/json`.
*/
commentsCreate(
params: {
package_id: number;
body: CommentsCreateReq
},
context?: HttpContext
): Observable<CommentsCreateRsp> {
return this.commentsCreate$Response(params, context).pipe(
map((r: StrictHttpResponse<CommentsCreateRsp>): CommentsCreateRsp => r.body)
);
}
/** Path part for operation `commentsDelete()` */
static readonly CommentsDeletePath = '/v1/packages/{package_id}/comments/{id}';
@@ -554,4 +410,151 @@ export class PkgdashServiceService extends BaseService {
);
}
/** Path part for operation `commentsList()` */
static readonly CommentsListPath = '/v1/packages/{package}/comments';
/**
* This method provides access to the full `HttpResponse`, allowing access to response headers.
* To access only the response body, use `commentsList()` instead.
*
* This method doesn't expect any request body.
*/
commentsList$Response(
params: {
package: string;
package_id?: number;
},
context?: HttpContext
): Observable<StrictHttpResponse<CommentsListRsp>> {
const rb = new RequestBuilder(this.rootUrl, PkgdashServiceService.CommentsListPath, 'get');
if (params) {
rb.path('package', params.package, {});
rb.query('package_id', params.package_id, {});
}
return this.http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<CommentsListRsp>;
})
);
}
/**
* This method provides access only to the response body.
* To access the full response (for headers, for example), `commentsList$Response()` instead.
*
* This method doesn't expect any request body.
*/
commentsList(
params: {
package: string;
package_id?: number;
},
context?: HttpContext
): Observable<CommentsListRsp> {
return this.commentsList$Response(params, context).pipe(
map((r: StrictHttpResponse<CommentsListRsp>): CommentsListRsp => r.body)
);
}
/** Path part for operation `commentsCreate()` */
static readonly CommentsCreatePath = '/v1/packages/{package}/comments';
/**
* This method provides access to the full `HttpResponse`, allowing access to response headers.
* To access only the response body, use `commentsCreate()` instead.
*
* This method sends `application/json` and handles request body of type `application/json`.
*/
commentsCreate$Response(
params: {
package: string;
body: CommentsCreateReq
},
context?: HttpContext
): Observable<StrictHttpResponse<CommentsCreateRsp>> {
const rb = new RequestBuilder(this.rootUrl, PkgdashServiceService.CommentsCreatePath, 'post');
if (params) {
rb.path('package', params.package, {});
rb.body(params.body, 'application/json');
}
return this.http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<CommentsCreateRsp>;
})
);
}
/**
* This method provides access only to the response body.
* To access the full response (for headers, for example), `commentsCreate$Response()` instead.
*
* This method sends `application/json` and handles request body of type `application/json`.
*/
commentsCreate(
params: {
package: string;
body: CommentsCreateReq
},
context?: HttpContext
): Observable<CommentsCreateRsp> {
return this.commentsCreate$Response(params, context).pipe(
map((r: StrictHttpResponse<CommentsCreateRsp>): CommentsCreateRsp => r.body)
);
}
/** Path part for operation `packagesModules()` */
static readonly PackagesModulesPath = '/v1/packages/{package}/modules';
/**
* This method provides access to the full `HttpResponse`, allowing access to response headers.
* To access only the response body, use `packagesModules()` instead.
*
* This method doesn't expect any request body.
*/
packagesModules$Response(
params: {
package: number;
},
context?: HttpContext
): Observable<StrictHttpResponse<PackagesModulesRsp>> {
const rb = new RequestBuilder(this.rootUrl, PkgdashServiceService.PackagesModulesPath, 'get');
if (params) {
rb.path('package', params.package, {});
}
return this.http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<PackagesModulesRsp>;
})
);
}
/**
* This method provides access only to the response body.
* To access the full response (for headers, for example), `packagesModules$Response()` instead.
*
* This method doesn't expect any request body.
*/
packagesModules(
params: {
package: number;
},
context?: HttpContext
): Observable<PackagesModulesRsp> {
return this.packagesModules$Response(params, context).pipe(
map((r: StrictHttpResponse<PackagesModulesRsp>): PackagesModulesRsp => r.body)
);
}
}