@internxt/sdk 1.11.6 → 1.11.8
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { paths } from '../../schema';
|
|
2
|
-
import { SharingMeta } from '../share/types';
|
|
3
2
|
import { UserResumeData } from '../users/types';
|
|
4
3
|
export interface DriveFolderData {
|
|
5
4
|
id: number;
|
|
@@ -51,6 +50,8 @@ export interface DriveFileData {
|
|
|
51
50
|
}[];
|
|
52
51
|
uuid: string;
|
|
53
52
|
user?: UserResumeData;
|
|
53
|
+
creationTime?: string;
|
|
54
|
+
modificationTime?: string;
|
|
54
55
|
}
|
|
55
56
|
export interface Thumbnail {
|
|
56
57
|
id: number;
|
|
@@ -109,30 +110,7 @@ export interface FetchFolderContentResponse {
|
|
|
109
110
|
children: FolderChild[];
|
|
110
111
|
files: DriveFileData[];
|
|
111
112
|
}
|
|
112
|
-
export
|
|
113
|
-
bucket: string;
|
|
114
|
-
createdAt: string;
|
|
115
|
-
created_at: string;
|
|
116
|
-
deleted: boolean;
|
|
117
|
-
deletedAt: null;
|
|
118
|
-
encrypt_version: string;
|
|
119
|
-
fileId: string;
|
|
120
|
-
folderId: number;
|
|
121
|
-
folder_id: number;
|
|
122
|
-
folderUuid: string;
|
|
123
|
-
id: number;
|
|
124
|
-
name: string;
|
|
125
|
-
plain_name: string | null;
|
|
126
|
-
plainName?: string | null;
|
|
127
|
-
size: number;
|
|
128
|
-
type: string;
|
|
129
|
-
updatedAt: string;
|
|
130
|
-
status: string;
|
|
131
|
-
thumbnails: Array<Thumbnail>;
|
|
132
|
-
currentThumbnail: Thumbnail | null;
|
|
133
|
-
shares?: Array<ShareLink>;
|
|
134
|
-
uuid: string;
|
|
135
|
-
}
|
|
113
|
+
export type FileMeta = paths['/files/{uuid}/meta']['get']['responses']['200']['content']['application/json'];
|
|
136
114
|
export interface ShareLink {
|
|
137
115
|
id: string;
|
|
138
116
|
token: string;
|
|
@@ -177,59 +155,10 @@ export declare enum FileStatus {
|
|
|
177
155
|
TRASHED = "TRASHED",
|
|
178
156
|
DELETED = "DELETED"
|
|
179
157
|
}
|
|
180
|
-
export
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
name: string;
|
|
185
|
-
type: string;
|
|
186
|
-
size: bigint;
|
|
187
|
-
bucket: string;
|
|
188
|
-
folderId: number;
|
|
189
|
-
folder?: any;
|
|
190
|
-
folderUuid: string;
|
|
191
|
-
encryptVersion: string;
|
|
192
|
-
deleted: boolean;
|
|
193
|
-
deletedAt: Date | null;
|
|
194
|
-
removed: boolean;
|
|
195
|
-
removedAt: Date | null;
|
|
196
|
-
userId: number;
|
|
197
|
-
user?: any;
|
|
198
|
-
modificationTime: Date;
|
|
199
|
-
plainName: string;
|
|
200
|
-
createdAt: Date;
|
|
201
|
-
updatedAt: Date;
|
|
202
|
-
status: FileStatus;
|
|
203
|
-
shares?: ShareLink[];
|
|
204
|
-
thumbnails?: Thumbnail[];
|
|
205
|
-
sharings?: SharingMeta[];
|
|
206
|
-
}
|
|
207
|
-
export interface FetchPaginatedFolder {
|
|
208
|
-
id: number;
|
|
209
|
-
parentId: number;
|
|
210
|
-
parentUuid: string;
|
|
211
|
-
parent?: any;
|
|
212
|
-
name: string;
|
|
213
|
-
bucket: string;
|
|
214
|
-
userId: number;
|
|
215
|
-
uuid: string;
|
|
216
|
-
user?: any;
|
|
217
|
-
plainName: string;
|
|
218
|
-
encryptVersion: string;
|
|
219
|
-
deleted: boolean;
|
|
220
|
-
removed: boolean;
|
|
221
|
-
deletedAt: Date | null;
|
|
222
|
-
createdAt: Date;
|
|
223
|
-
updatedAt: Date;
|
|
224
|
-
removedAt: Date | null;
|
|
225
|
-
sharings?: SharingMeta[];
|
|
226
|
-
}
|
|
227
|
-
export interface FetchPaginatedFilesContent {
|
|
228
|
-
files: FetchPaginatedFile[];
|
|
229
|
-
}
|
|
230
|
-
export interface FetchPaginatedFoldersContent {
|
|
231
|
-
folders: FetchPaginatedFolder[];
|
|
232
|
-
}
|
|
158
|
+
export type FetchPaginatedFile = paths['/folders/content/{uuid}/files']['get']['responses']['200']['content']['application/json']['files'][0];
|
|
159
|
+
export type FetchPaginatedFolder = paths['/folders/content/{uuid}/folders']['get']['responses']['200']['content']['application/json']['folders'][0];
|
|
160
|
+
export type FetchPaginatedFilesContent = paths['/folders/content/{uuid}/files']['get']['responses']['200']['content']['application/json'];
|
|
161
|
+
export type FetchPaginatedFoldersContent = paths['/folders/content/{uuid}/folders']['get']['responses']['200']['content']['application/json'];
|
|
233
162
|
export interface FetchTrashContentResponse {
|
|
234
163
|
result: {
|
|
235
164
|
id: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { paths } from '../../schema';
|
|
1
2
|
import { ApiSecurity, ApiUrl, AppDetails } from '../../shared';
|
|
2
3
|
import { UserSettings } from '../../shared/types/userSettings';
|
|
3
4
|
import { ChangePasswordPayload, ChangePasswordPayloadNew, CheckChangeEmailExpirationResponse, FriendInvite, InitializeUserResponse, PreCreateUserResponse, Token, UpdateProfilePayload, UserPublicKeyResponse, UserPublicKeyWithCreationResponse, VerifyEmailChangeResponse } from './types';
|
|
@@ -22,10 +23,7 @@ export declare class Users {
|
|
|
22
23
|
/**
|
|
23
24
|
* Returns fresh data of the user
|
|
24
25
|
*/
|
|
25
|
-
refreshUser(): Promise<
|
|
26
|
-
user: UserSettings;
|
|
27
|
-
token: string;
|
|
28
|
-
}>;
|
|
26
|
+
refreshUser(): Promise<paths['/users/refresh']['get']['responses']['200']['content']['application/json']>;
|
|
29
27
|
/**
|
|
30
28
|
* Returns fresh avatar URL of the user
|
|
31
29
|
*/
|
|
@@ -110,7 +110,7 @@ var Users = /** @class */ (function () {
|
|
|
110
110
|
* Returns fresh data of the user
|
|
111
111
|
*/
|
|
112
112
|
Users.prototype.refreshUser = function () {
|
|
113
|
-
return this.client.get('/
|
|
113
|
+
return this.client.get('/users/refresh', this.headers());
|
|
114
114
|
};
|
|
115
115
|
/**
|
|
116
116
|
* Returns fresh avatar URL of the user
|