-
Notifications
You must be signed in to change notification settings - Fork 0
/
permanent.ts
48 lines (44 loc) · 993 Bytes
/
permanent.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import type APIClient from "../../../client"
/**
* FileDeletePermanent
* @date 2/1/2024 - 8:16:35 PM
*
* @export
* @class FileDeletePermanent
* @typedef {FileDeletePermanent}
*/
export class FileDeletePermanent {
private readonly apiClient: APIClient
/**
* Creates an instance of FileDeletePermanent.
* @date 2/1/2024 - 8:16:39 PM
*
* @constructor
* @public
* @param {{ apiClient: APIClient }} param0
* @param {APIClient} param0.apiClient
*/
public constructor({ apiClient }: { apiClient: APIClient }) {
this.apiClient = apiClient
}
/**
* Delete a file permanently.
* @date 2/9/2024 - 7:13:10 PM
*
* @public
* @async
* @param {{ uuid: string }} param0
* @param {string} param0.uuid
* @returns {Promise<void>}
*/
public async fetch({ uuid }: { uuid: string }): Promise<void> {
await this.apiClient.request({
method: "POST",
endpoint: "/v3/file/delete/permanent",
data: {
uuid
}
})
}
}
export default FileDeletePermanent