Remove more unused APIs (#3537)
* Remove more unused APIs * prettier * Fix Test * Fix tests * Remove SSO Integreation * fix tests * lint
This commit is contained in:
@@ -111,19 +111,6 @@ export interface ApiError {
|
||||
detailedMessage?: string;
|
||||
}
|
||||
|
||||
export interface User {
|
||||
accessKey?: string;
|
||||
policy?: string[];
|
||||
memberOf?: string[];
|
||||
status?: string;
|
||||
hasPolicy?: boolean;
|
||||
}
|
||||
|
||||
export interface ListUsersResponse {
|
||||
/** list of resulting users */
|
||||
users?: User[];
|
||||
}
|
||||
|
||||
export interface MakeBucketsResponse {
|
||||
bucketName?: string;
|
||||
}
|
||||
@@ -139,21 +126,12 @@ export interface LoginResponse {
|
||||
}
|
||||
|
||||
export interface LoginDetails {
|
||||
loginStrategy?:
|
||||
| "form"
|
||||
| "redirect"
|
||||
| "service-account"
|
||||
| "redirect-service-account";
|
||||
loginStrategy?: "form" | "service-account" | "redirect-service-account";
|
||||
redirectRules?: RedirectRule[];
|
||||
isK8S?: boolean;
|
||||
animatedLogin?: boolean;
|
||||
}
|
||||
|
||||
export interface LoginOauth2AuthRequest {
|
||||
state: string;
|
||||
code: string;
|
||||
}
|
||||
|
||||
export interface LoginRequest {
|
||||
accessKey?: string;
|
||||
secretKey?: string;
|
||||
@@ -275,10 +253,6 @@ export interface PutObjectTagsRequest {
|
||||
tags?: any;
|
||||
}
|
||||
|
||||
export interface PutBucketTagsRequest {
|
||||
tags?: any;
|
||||
}
|
||||
|
||||
export interface DeleteFile {
|
||||
path?: string;
|
||||
versionID?: string;
|
||||
@@ -611,26 +585,6 @@ export class Api<
|
||||
type: ContentType.Json,
|
||||
...params,
|
||||
}),
|
||||
|
||||
/**
|
||||
* No description
|
||||
*
|
||||
* @tags Auth
|
||||
* @name LoginOauth2Auth
|
||||
* @summary Identity Provider oauth2 callback endpoint.
|
||||
* @request POST:/login/oauth2/auth
|
||||
*/
|
||||
loginOauth2Auth: (
|
||||
body: LoginOauth2AuthRequest,
|
||||
params: RequestParams = {},
|
||||
) =>
|
||||
this.request<void, ApiError>({
|
||||
path: `/login/oauth2/auth`,
|
||||
method: "POST",
|
||||
body: body,
|
||||
type: ContentType.Json,
|
||||
...params,
|
||||
}),
|
||||
};
|
||||
logout = {
|
||||
/**
|
||||
@@ -1003,29 +957,6 @@ export class Api<
|
||||
...params,
|
||||
}),
|
||||
|
||||
/**
|
||||
* No description
|
||||
*
|
||||
* @tags Bucket
|
||||
* @name PutBucketTags
|
||||
* @summary Put Bucket's tags
|
||||
* @request PUT:/buckets/{bucket_name}/tags
|
||||
* @secure
|
||||
*/
|
||||
putBucketTags: (
|
||||
bucketName: string,
|
||||
body: PutBucketTagsRequest,
|
||||
params: RequestParams = {},
|
||||
) =>
|
||||
this.request<void, ApiError>({
|
||||
path: `/buckets/${encodeURIComponent(bucketName)}/tags`,
|
||||
method: "PUT",
|
||||
body: body,
|
||||
secure: true,
|
||||
type: ContentType.Json,
|
||||
...params,
|
||||
}),
|
||||
|
||||
/**
|
||||
* No description
|
||||
*
|
||||
@@ -1129,40 +1060,6 @@ export class Api<
|
||||
...params,
|
||||
}),
|
||||
};
|
||||
users = {
|
||||
/**
|
||||
* No description
|
||||
*
|
||||
* @tags User
|
||||
* @name ListUsers
|
||||
* @summary List Users
|
||||
* @request GET:/users
|
||||
* @secure
|
||||
*/
|
||||
listUsers: (
|
||||
query?: {
|
||||
/**
|
||||
* @format int32
|
||||
* @default 0
|
||||
*/
|
||||
offset?: number;
|
||||
/**
|
||||
* @format int32
|
||||
* @default 20
|
||||
*/
|
||||
limit?: number;
|
||||
},
|
||||
params: RequestParams = {},
|
||||
) =>
|
||||
this.request<ListUsersResponse, ApiError>({
|
||||
path: `/users`,
|
||||
method: "GET",
|
||||
query: query,
|
||||
secure: true,
|
||||
format: "json",
|
||||
...params,
|
||||
}),
|
||||
};
|
||||
admin = {
|
||||
/**
|
||||
* No description
|
||||
|
||||
@@ -75,7 +75,6 @@ const Login = () => {
|
||||
let loginComponent;
|
||||
|
||||
switch (loginStrategy.loginStrategy) {
|
||||
case loginStrategyType.redirect:
|
||||
case loginStrategyType.form: {
|
||||
let redirectItems: RedirectRule[] = [];
|
||||
|
||||
|
||||
@@ -238,7 +238,9 @@ export const objectBrowserWSMiddleware = (
|
||||
}
|
||||
break;
|
||||
case "socket/OBDisconnect":
|
||||
objectsWS.close();
|
||||
if (objectsWS) {
|
||||
objectsWS.close();
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user