curtain-web-api 1.0.63 → 1.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,48 @@ export interface SiteProperties {
8
8
  expiry_duration_options: number[];
9
9
  default_expiry_duration_months: number;
10
10
  }
11
+ export interface CurtainChunkedUploadStatus {
12
+ id: string;
13
+ filename?: string;
14
+ offset: number;
15
+ created_at: string;
16
+ status: number;
17
+ completed_at?: string;
18
+ original_filename?: string;
19
+ mime_type?: string;
20
+ file_size?: number;
21
+ upload_session_id?: string;
22
+ }
23
+ export interface CurtainChunkedUploadRequest {
24
+ file: File | Blob;
25
+ filename?: string;
26
+ upload_session_id?: string;
27
+ description?: string;
28
+ curtain_type?: string;
29
+ permanent?: boolean;
30
+ encrypted?: boolean;
31
+ expiry_duration?: number;
32
+ enable?: boolean;
33
+ }
34
+ export interface CurtainChunkedUploadResponse {
35
+ id: string;
36
+ filename: string;
37
+ offset: number;
38
+ }
39
+ export interface CurtainChunkedUploadCompletionRequest {
40
+ md5?: string;
41
+ description?: string;
42
+ curtain_type?: string;
43
+ permanent?: boolean;
44
+ encrypted?: boolean;
45
+ expiry_duration?: number;
46
+ enable?: boolean;
47
+ }
48
+ export interface CurtainChunkedUploadCompletionResponse {
49
+ curtain?: any;
50
+ message?: string;
51
+ error?: string;
52
+ }
11
53
  export declare class CurtainWebAPI {
12
54
  loginURL: string;
13
55
  logoutURL: string;
@@ -73,4 +115,18 @@ export declare class CurtainWebAPI {
73
115
  getKinaseLibraryProxy(sequence: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
74
116
  getJobResult(job_id: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
75
117
  getDataCiteFile(datacite_id: number): Promise<import("axios").AxiosResponse<any, any, {}>>;
118
+ uploadCurtainChunk(request: CurtainChunkedUploadRequest, uploadId?: string, offset?: number, totalSize?: number): Promise<import("axios").AxiosResponse<CurtainChunkedUploadResponse, any, {}>>;
119
+ getCurtainUploadStatus(uploadId: string): Promise<import("axios").AxiosResponse<CurtainChunkedUploadStatus, any, {}>>;
120
+ completeCurtainUpload(uploadId: string, request?: CurtainChunkedUploadCompletionRequest): Promise<import("axios").AxiosResponse<CurtainChunkedUploadCompletionResponse, any, {}>>;
121
+ cancelCurtainUpload(uploadId: string): Promise<import("axios").AxiosResponse<void, any, {}>>;
122
+ uploadCurtainFileInChunks(file: File, chunkSize?: number, options?: {
123
+ description?: string;
124
+ curtain_type?: string;
125
+ permanent?: boolean;
126
+ encrypted?: boolean;
127
+ expiry_duration?: number;
128
+ enable?: boolean;
129
+ upload_session_id?: string;
130
+ onProgress?: (progress: number) => void;
131
+ }): Promise<CurtainChunkedUploadCompletionResponse>;
76
132
  }