Skip to content

Commit 440eee7

Browse files
author
cesnietor
committed
rebase
1 parent 6f765f8 commit 440eee7

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

api/embedded_spec.go

Lines changed: 14 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web-app/src/api/consoleApi.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,8 @@ export interface MaxShareLinkExpResponse {
15371537
exp: number;
15381538
}
15391539

1540+
export type SelectedSAs = string[];
1541+
15401542
export type QueryParamsType = Record<string | number, any>;
15411543
export type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
15421544

@@ -2177,14 +2179,15 @@ export class Api<
21772179
*/
21782180
downloadMultipleObjects: (
21792181
bucketName: string,
2180-
objectList: string[],
2182+
objectList: SelectedUsers,
21812183
params: RequestParams = {},
21822184
) =>
21832185
this.request<File, ApiError>({
21842186
path: `/buckets/${bucketName}/objects/download-multiple`,
21852187
method: "POST",
21862188
body: objectList,
21872189
secure: true,
2190+
type: ContentType.Json,
21882191
...params,
21892192
}),
21902193

@@ -3088,14 +3091,15 @@ export class Api<
30883091
* @secure
30893092
*/
30903093
deleteMultipleServiceAccounts: (
3091-
selectedSA: string[],
3094+
selectedSA: SelectedSAs,
30923095
params: RequestParams = {},
30933096
) =>
30943097
this.request<void, ApiError>({
30953098
path: `/service-accounts/delete-multi`,
30963099
method: "DELETE",
30973100
body: selectedSA,
30983101
secure: true,
3102+
type: ContentType.Json,
30993103
...params,
31003104
}),
31013105

0 commit comments

Comments
 (0)