@burdenoff/microfe-files 2026.525.2 → 2026.527.1

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.
Files changed (221) hide show
  1. package/dist/files/components/ActionMenu.js +3 -1
  2. package/dist/files/components/ActionMenu.js.map +1 -1
  3. package/dist/files/components/ContextMenu.js +16 -112
  4. package/dist/files/components/ContextMenu.js.map +1 -1
  5. package/dist/files/components/CopyDialog.js +8 -0
  6. package/dist/files/components/CopyDialog.js.map +1 -1
  7. package/dist/files/components/EmptyState.js +2 -0
  8. package/dist/files/components/EmptyState.js.map +1 -1
  9. package/dist/files/components/FileBrowser.js +6 -1
  10. package/dist/files/components/FileBrowser.js.map +1 -1
  11. package/dist/files/components/FileCard.js +4 -0
  12. package/dist/files/components/FileCard.js.map +1 -1
  13. package/dist/files/components/FileInfoPanel.js +2 -0
  14. package/dist/files/components/FileInfoPanel.js.map +1 -1
  15. package/dist/files/components/FileListItem.js +6 -0
  16. package/dist/files/components/FileListItem.js.map +1 -1
  17. package/dist/files/components/FilePreviewModal.js +9 -3
  18. package/dist/files/components/FilePreviewModal.js.map +1 -1
  19. package/dist/files/components/FileVersionPanel.js +5 -0
  20. package/dist/files/components/FileVersionPanel.js.map +1 -1
  21. package/dist/files/components/FolderCard.js +3 -0
  22. package/dist/files/components/FolderCard.js.map +1 -1
  23. package/dist/files/components/MoveDialog.js +8 -0
  24. package/dist/files/components/MoveDialog.js.map +1 -1
  25. package/dist/files/components/SearchBar.js +4 -0
  26. package/dist/files/components/SearchBar.js.map +1 -1
  27. package/dist/files/components/ShareDialog.js +109 -104
  28. package/dist/files/components/ShareDialog.js.map +1 -1
  29. package/dist/files/components/TabBar.js +1 -0
  30. package/dist/files/components/TabBar.js.map +1 -1
  31. package/dist/files/components/Toast.js +1 -0
  32. package/dist/files/components/Toast.js.map +1 -1
  33. package/dist/files/components/UploadQueue.js +5 -0
  34. package/dist/files/components/UploadQueue.js.map +1 -1
  35. package/dist/files/components/contextMenuItems.js +103 -0
  36. package/dist/files/components/contextMenuItems.js.map +1 -0
  37. package/dist/files/components/viewers/AudioPlayer.js +4 -1
  38. package/dist/files/components/viewers/AudioPlayer.js.map +1 -1
  39. package/dist/files/components/viewers/CodeViewer.js +2 -0
  40. package/dist/files/components/viewers/CodeViewer.js.map +1 -1
  41. package/dist/files/components/viewers/ImageViewer.js +4 -0
  42. package/dist/files/components/viewers/ImageViewer.js.map +1 -1
  43. package/dist/files/components/viewers/PDFViewer.js +2 -0
  44. package/dist/files/components/viewers/PDFViewer.js.map +1 -1
  45. package/dist/files/components/viewers/TextViewer.js +4 -2
  46. package/dist/files/components/viewers/TextViewer.js.map +1 -1
  47. package/dist/files/components/viewers/VideoPlayer.js +5 -1
  48. package/dist/files/components/viewers/VideoPlayer.js.map +1 -1
  49. package/dist/files/hooks/useBatchOperations.js.map +1 -1
  50. package/dist/files/hooks/useFileVersions.js.map +1 -1
  51. package/dist/files/pages/BrowserPage.js +18 -2
  52. package/dist/files/pages/BrowserPage.js.map +1 -1
  53. package/dist/files/pages/ShareAccessPage.js +6 -5
  54. package/dist/files/pages/ShareAccessPage.js.map +1 -1
  55. package/dist/files/utils/index.js +1 -1
  56. package/dist/files/utils/index.js.map +1 -1
  57. package/dist/files/utils/thumbnail.js.map +1 -1
  58. package/dist/files.js +2 -1
  59. package/dist/translations/en.js +259 -0
  60. package/dist/translations/en.js.map +1 -0
  61. package/package.json +1 -4
  62. package/dist/config/index.d.ts +0 -33
  63. package/dist/config/index.d.ts.map +0 -1
  64. package/dist/dev/main.d.ts +0 -1
  65. package/dist/dev/main.d.ts.map +0 -1
  66. package/dist/files/FilesRoot.d.ts +0 -31
  67. package/dist/files/FilesRoot.d.ts.map +0 -1
  68. package/dist/files/FilesRoutes.d.ts +0 -12
  69. package/dist/files/FilesRoutes.d.ts.map +0 -1
  70. package/dist/files/components/ActionMenu.d.ts +0 -19
  71. package/dist/files/components/ActionMenu.d.ts.map +0 -1
  72. package/dist/files/components/ConfirmDialog.d.ts +0 -14
  73. package/dist/files/components/ConfirmDialog.d.ts.map +0 -1
  74. package/dist/files/components/ContextMenu.d.ts +0 -59
  75. package/dist/files/components/ContextMenu.d.ts.map +0 -1
  76. package/dist/files/components/CopyDialog.d.ts +0 -12
  77. package/dist/files/components/CopyDialog.d.ts.map +0 -1
  78. package/dist/files/components/EmptyState.d.ts +0 -8
  79. package/dist/files/components/EmptyState.d.ts.map +0 -1
  80. package/dist/files/components/FileBrowser.d.ts +0 -37
  81. package/dist/files/components/FileBrowser.d.ts.map +0 -1
  82. package/dist/files/components/FileCard.d.ts +0 -30
  83. package/dist/files/components/FileCard.d.ts.map +0 -1
  84. package/dist/files/components/FileInfoPanel.d.ts +0 -9
  85. package/dist/files/components/FileInfoPanel.d.ts.map +0 -1
  86. package/dist/files/components/FileListItem.d.ts +0 -29
  87. package/dist/files/components/FileListItem.d.ts.map +0 -1
  88. package/dist/files/components/FilePreviewModal.d.ts +0 -17
  89. package/dist/files/components/FilePreviewModal.d.ts.map +0 -1
  90. package/dist/files/components/FileVersionPanel.d.ts +0 -9
  91. package/dist/files/components/FileVersionPanel.d.ts.map +0 -1
  92. package/dist/files/components/FolderCard.d.ts +0 -34
  93. package/dist/files/components/FolderCard.d.ts.map +0 -1
  94. package/dist/files/components/MoveDialog.d.ts +0 -12
  95. package/dist/files/components/MoveDialog.d.ts.map +0 -1
  96. package/dist/files/components/SearchBar.d.ts +0 -13
  97. package/dist/files/components/SearchBar.d.ts.map +0 -1
  98. package/dist/files/components/ShareDialog.d.ts +0 -24
  99. package/dist/files/components/ShareDialog.d.ts.map +0 -1
  100. package/dist/files/components/TabBar.d.ts +0 -14
  101. package/dist/files/components/TabBar.d.ts.map +0 -1
  102. package/dist/files/components/Toast.d.ts +0 -14
  103. package/dist/files/components/Toast.d.ts.map +0 -1
  104. package/dist/files/components/UploadQueue.d.ts +0 -21
  105. package/dist/files/components/UploadQueue.d.ts.map +0 -1
  106. package/dist/files/components/index.d.ts +0 -43
  107. package/dist/files/components/index.d.ts.map +0 -1
  108. package/dist/files/components/viewers/AudioPlayer.d.ts +0 -8
  109. package/dist/files/components/viewers/AudioPlayer.d.ts.map +0 -1
  110. package/dist/files/components/viewers/CodeViewer.d.ts +0 -16
  111. package/dist/files/components/viewers/CodeViewer.d.ts.map +0 -1
  112. package/dist/files/components/viewers/ImageViewer.d.ts +0 -8
  113. package/dist/files/components/viewers/ImageViewer.d.ts.map +0 -1
  114. package/dist/files/components/viewers/PDFViewer.d.ts +0 -15
  115. package/dist/files/components/viewers/PDFViewer.d.ts.map +0 -1
  116. package/dist/files/components/viewers/TextViewer.d.ts +0 -8
  117. package/dist/files/components/viewers/TextViewer.d.ts.map +0 -1
  118. package/dist/files/components/viewers/VideoPlayer.d.ts +0 -8
  119. package/dist/files/components/viewers/VideoPlayer.d.ts.map +0 -1
  120. package/dist/files/components/viewers/index.d.ts +0 -7
  121. package/dist/files/components/viewers/index.d.ts.map +0 -1
  122. package/dist/files/components/viewers/index.js +0 -6
  123. package/dist/files/graphql-types.d.ts +0 -317
  124. package/dist/files/graphql-types.d.ts.map +0 -1
  125. package/dist/files/hooks/useBatchOperations.d.ts +0 -32
  126. package/dist/files/hooks/useBatchOperations.d.ts.map +0 -1
  127. package/dist/files/hooks/useBinItems.d.ts +0 -11
  128. package/dist/files/hooks/useBinItems.d.ts.map +0 -1
  129. package/dist/files/hooks/useBrowsePage.d.ts +0 -18
  130. package/dist/files/hooks/useBrowsePage.d.ts.map +0 -1
  131. package/dist/files/hooks/useCopyFile.d.ts +0 -14
  132. package/dist/files/hooks/useCopyFile.d.ts.map +0 -1
  133. package/dist/files/hooks/useCreateFolder.d.ts +0 -14
  134. package/dist/files/hooks/useCreateFolder.d.ts.map +0 -1
  135. package/dist/files/hooks/useCreateFolderShare.d.ts +0 -16
  136. package/dist/files/hooks/useCreateFolderShare.d.ts.map +0 -1
  137. package/dist/files/hooks/useCreateShare.d.ts +0 -16
  138. package/dist/files/hooks/useCreateShare.d.ts.map +0 -1
  139. package/dist/files/hooks/useDeleteFile.d.ts +0 -9
  140. package/dist/files/hooks/useDeleteFile.d.ts.map +0 -1
  141. package/dist/files/hooks/useDeleteFolder.d.ts +0 -10
  142. package/dist/files/hooks/useDeleteFolder.d.ts.map +0 -1
  143. package/dist/files/hooks/useDragDrop.d.ts +0 -31
  144. package/dist/files/hooks/useDragDrop.d.ts.map +0 -1
  145. package/dist/files/hooks/useFileVersions.d.ts +0 -52
  146. package/dist/files/hooks/useFileVersions.d.ts.map +0 -1
  147. package/dist/files/hooks/useFiles.d.ts +0 -18
  148. package/dist/files/hooks/useFiles.d.ts.map +0 -1
  149. package/dist/files/hooks/useFolder.d.ts +0 -7
  150. package/dist/files/hooks/useFolder.d.ts.map +0 -1
  151. package/dist/files/hooks/useFolderPath.d.ts +0 -2
  152. package/dist/files/hooks/useFolderPath.d.ts.map +0 -1
  153. package/dist/files/hooks/useFoldersQuery.d.ts +0 -7
  154. package/dist/files/hooks/useFoldersQuery.d.ts.map +0 -1
  155. package/dist/files/hooks/useKeyboardNavigation.d.ts +0 -17
  156. package/dist/files/hooks/useKeyboardNavigation.d.ts.map +0 -1
  157. package/dist/files/hooks/useMoveFile.d.ts +0 -10
  158. package/dist/files/hooks/useMoveFile.d.ts.map +0 -1
  159. package/dist/files/hooks/useMoveFolder.d.ts +0 -10
  160. package/dist/files/hooks/useMoveFolder.d.ts.map +0 -1
  161. package/dist/files/hooks/usePermanentlyDeleteFile.d.ts +0 -9
  162. package/dist/files/hooks/usePermanentlyDeleteFile.d.ts.map +0 -1
  163. package/dist/files/hooks/usePermanentlyDeleteFolder.d.ts +0 -9
  164. package/dist/files/hooks/usePermanentlyDeleteFolder.d.ts.map +0 -1
  165. package/dist/files/hooks/useRecentFiles.d.ts +0 -10
  166. package/dist/files/hooks/useRecentFiles.d.ts.map +0 -1
  167. package/dist/files/hooks/useRenameFile.d.ts +0 -10
  168. package/dist/files/hooks/useRenameFile.d.ts.map +0 -1
  169. package/dist/files/hooks/useRenameFolder.d.ts +0 -10
  170. package/dist/files/hooks/useRenameFolder.d.ts.map +0 -1
  171. package/dist/files/hooks/useRestoreFile.d.ts +0 -9
  172. package/dist/files/hooks/useRestoreFile.d.ts.map +0 -1
  173. package/dist/files/hooks/useRestoreFolder.d.ts +0 -9
  174. package/dist/files/hooks/useRestoreFolder.d.ts.map +0 -1
  175. package/dist/files/hooks/useSearch.d.ts +0 -15
  176. package/dist/files/hooks/useSearch.d.ts.map +0 -1
  177. package/dist/files/hooks/useStarredItems.d.ts +0 -10
  178. package/dist/files/hooks/useStarredItems.d.ts.map +0 -1
  179. package/dist/files/hooks/useToast.d.ts +0 -11
  180. package/dist/files/hooks/useToast.d.ts.map +0 -1
  181. package/dist/files/hooks/useToggleStar.d.ts +0 -10
  182. package/dist/files/hooks/useToggleStar.d.ts.map +0 -1
  183. package/dist/files/hooks/useUploadFile.d.ts +0 -25
  184. package/dist/files/hooks/useUploadFile.d.ts.map +0 -1
  185. package/dist/files/index.d.ts +0 -29
  186. package/dist/files/index.d.ts.map +0 -1
  187. package/dist/files/pages/BrowserPage.d.ts +0 -5
  188. package/dist/files/pages/BrowserPage.d.ts.map +0 -1
  189. package/dist/files/pages/ShareAccessPage.d.ts +0 -2
  190. package/dist/files/pages/ShareAccessPage.d.ts.map +0 -1
  191. package/dist/files/providers/FilesProvider.d.ts +0 -25
  192. package/dist/files/providers/FilesProvider.d.ts.map +0 -1
  193. package/dist/files/store/filesStore.d.ts +0 -99
  194. package/dist/files/store/filesStore.d.ts.map +0 -1
  195. package/dist/files/types.d.ts +0 -266
  196. package/dist/files/types.d.ts.map +0 -1
  197. package/dist/files/utils/events.d.ts +0 -6
  198. package/dist/files/utils/events.d.ts.map +0 -1
  199. package/dist/files/utils/i18n.d.ts +0 -5
  200. package/dist/files/utils/i18n.d.ts.map +0 -1
  201. package/dist/files/utils/index.d.ts +0 -74
  202. package/dist/files/utils/index.d.ts.map +0 -1
  203. package/dist/files/utils/thumbnail.d.ts +0 -5
  204. package/dist/files/utils/thumbnail.d.ts.map +0 -1
  205. package/dist/files.d.ts +0 -2
  206. package/dist/generated/global-operations.d.ts +0 -2
  207. package/dist/generated/global-operations.d.ts.map +0 -1
  208. package/dist/generated/global-types.d.ts +0 -23527
  209. package/dist/generated/global-types.d.ts.map +0 -1
  210. package/dist/generated/wspace-operations.d.ts +0 -2706
  211. package/dist/generated/wspace-operations.d.ts.map +0 -1
  212. package/dist/generated/wspace-types.d.ts +0 -57851
  213. package/dist/generated/wspace-types.d.ts.map +0 -1
  214. package/dist/index.d.ts +0 -30
  215. package/dist/index.d.ts.map +0 -1
  216. package/dist/shared/types/index.d.ts +0 -101
  217. package/dist/shared/types/index.d.ts.map +0 -1
  218. package/dist/translations/en.d.ts +0 -315
  219. package/dist/translations/en.d.ts.map +0 -1
  220. package/dist/utils/nativeBridge.d.ts +0 -3
  221. package/dist/utils/nativeBridge.d.ts.map +0 -1
@@ -1,317 +0,0 @@
1
- /**
2
- * File and Folder Types
3
- *
4
- * NOTE: Generated types now exist in `src/generated/wspace-types.ts` via graphql-codegen.
5
- * This file is kept for backward compatibility with hooks that reference these local types.
6
- * Prefer importing from `src/generated/wspace-types.ts` for new code.
7
- */
8
- export declare enum FileStatus {
9
- ACTIVE = "ACTIVE",
10
- ARCHIVED = "ARCHIVED",
11
- DELETED = "DELETED"
12
- }
13
- export declare enum FileVisibility {
14
- PUBLIC = "PUBLIC",
15
- PRIVATE = "PRIVATE",
16
- WORKSPACE = "WORKSPACE"
17
- }
18
- export declare enum FolderStatus {
19
- ACTIVE = "ACTIVE",
20
- ARCHIVED = "ARCHIVED",
21
- DELETED = "DELETED"
22
- }
23
- export declare enum UploadType {
24
- DIRECT = "DIRECT",
25
- MULTIPART = "MULTIPART",
26
- RESUMABLE = "RESUMABLE"
27
- }
28
- export declare enum UploadStatus {
29
- IN_PROGRESS = "IN_PROGRESS",
30
- COMPLETED = "COMPLETED",
31
- FINALIZED = "FINALIZED",
32
- FAILED = "FAILED",
33
- EXPIRED = "EXPIRED",
34
- ABORTED = "ABORTED"
35
- }
36
- export declare enum LockType {
37
- OPTIMISTIC = "OPTIMISTIC",
38
- PESSIMISTIC = "PESSIMISTIC",
39
- SHARED = "SHARED"
40
- }
41
- export declare enum PermissionType {
42
- VIEW = "VIEW",
43
- DOWNLOAD = "DOWNLOAD",
44
- EDIT = "EDIT",
45
- DELETE = "DELETE",
46
- SHARE = "SHARE",
47
- MANAGE = "MANAGE"
48
- }
49
- export interface User {
50
- id: string;
51
- email: string;
52
- name: string | null;
53
- }
54
- export interface File {
55
- id: string;
56
- name: string;
57
- workspaceId: string;
58
- mimeType: string;
59
- extension: string;
60
- size: string;
61
- s3Key: string;
62
- s3Bucket: string;
63
- sha256Hash: string | null;
64
- description: string | null;
65
- status: FileStatus;
66
- visibility: FileVisibility;
67
- folderId: string | null;
68
- folder: Folder | null;
69
- uploadedById: string;
70
- uploadedBy: User;
71
- createdAt: Date | string;
72
- updatedAt: Date | string;
73
- }
74
- export interface Folder {
75
- id: string;
76
- name: string;
77
- description: string | null;
78
- workspaceId: string;
79
- parentFolderId: string | null;
80
- path: string;
81
- status: FolderStatus;
82
- createdById: string;
83
- createdBy: User;
84
- createdAt: Date | string;
85
- updatedAt: Date | string;
86
- }
87
- export interface PaginationInput {
88
- limit?: number;
89
- cursor?: string;
90
- }
91
- export interface FileFilterInput {
92
- workspaceId?: string;
93
- folderId?: string | null;
94
- mimeType?: string[];
95
- extensions?: string[];
96
- uploadedBy?: string[];
97
- status?: FileStatus[];
98
- visibility?: FileVisibility[];
99
- search?: string;
100
- }
101
- export interface FileSortInput {
102
- field: "name" | "size" | "createdAt" | "updatedAt";
103
- direction: "asc" | "desc";
104
- }
105
- export interface FolderFilterInput {
106
- workspaceId?: string;
107
- parentFolderId?: string | null;
108
- status?: FolderStatus[];
109
- search?: string;
110
- }
111
- export interface FolderSortInput {
112
- field: "name" | "createdAt" | "updatedAt";
113
- direction: "asc" | "desc";
114
- }
115
- export interface PaginatedFilesResult {
116
- files: File[];
117
- total: number;
118
- page: number;
119
- limit: number;
120
- hasMore: boolean;
121
- }
122
- export interface PaginatedFoldersResult {
123
- folders: Folder[];
124
- total: number;
125
- page: number;
126
- limit: number;
127
- hasMore: boolean;
128
- }
129
- export interface FolderTree {
130
- id: string;
131
- name: string;
132
- path: string;
133
- children: FolderTree[];
134
- fileCount: number;
135
- folderCount: number;
136
- }
137
- export interface FolderPath {
138
- id: string;
139
- name: string;
140
- path: string;
141
- }
142
- export interface FolderWithContents {
143
- folder: Folder;
144
- files: File[];
145
- subfolders: Folder[];
146
- totalFiles: number;
147
- totalSubfolders: number;
148
- }
149
- export interface CreateFileInput {
150
- name: string;
151
- workspaceId: string;
152
- mimeType: string;
153
- extension: string;
154
- size: string;
155
- s3Key: string;
156
- s3Bucket: string;
157
- sha256Hash?: string;
158
- description?: string;
159
- visibility?: FileVisibility;
160
- folderId?: string;
161
- }
162
- export interface UpdateFileInput {
163
- id: string;
164
- name?: string;
165
- description?: string;
166
- visibility?: FileVisibility;
167
- folderId?: string;
168
- }
169
- export interface MoveFileInput {
170
- id: string;
171
- targetFolderId: string | null;
172
- }
173
- export interface CreateFolderInput {
174
- name: string;
175
- description?: string;
176
- parentFolderId?: string;
177
- }
178
- export interface UpdateFolderInput {
179
- id: string;
180
- name?: string;
181
- description?: string;
182
- }
183
- export interface MoveFolderInput {
184
- id: string;
185
- targetParentFolderId: string | null;
186
- }
187
- export interface UploadSession {
188
- id: string;
189
- workspaceId: string;
190
- fileId: string | null;
191
- uploadId: string;
192
- fileName: string;
193
- fileSize: string;
194
- mimeType: string;
195
- partSize: number;
196
- totalParts: number;
197
- uploadedParts: number;
198
- uploadType: UploadType;
199
- status: UploadStatus;
200
- s3Key: string | null;
201
- s3Bucket: string | null;
202
- expiresAt: Date | string;
203
- startedById: string;
204
- startedAt: Date | string;
205
- completedAt: Date | string | null;
206
- updatedAt: Date | string;
207
- }
208
- export interface InitiateUploadInput {
209
- workspaceId: string;
210
- fileName: string;
211
- fileSize: string;
212
- mimeType: string;
213
- folderId?: string;
214
- uploadType?: UploadType;
215
- }
216
- export interface RegisterUploadedPartInput {
217
- sessionId: string;
218
- partNumber: number;
219
- etag: string;
220
- size: number;
221
- }
222
- export interface CompleteUploadInput {
223
- sessionId: string;
224
- sha256Hash?: string;
225
- }
226
- export interface FileLock {
227
- id: string;
228
- fileId: string;
229
- lockType: LockType;
230
- lockedById: string;
231
- lockedBy: User;
232
- reason: string | null;
233
- isActive: boolean;
234
- autoRelease: boolean;
235
- expiresAt: Date | string;
236
- releasedAt: Date | string | null;
237
- releasedById: string | null;
238
- createdAt: Date | string;
239
- }
240
- export interface AcquireLockInput {
241
- fileId: string;
242
- lockType: LockType;
243
- reason?: string;
244
- durationMinutes?: number;
245
- }
246
- export interface ExtendLockInput {
247
- lockId: string;
248
- additionalMinutes: number;
249
- }
250
- export interface FilePermission {
251
- id: string;
252
- fileId: string;
253
- subjectType: string;
254
- subjectId: string;
255
- permissionType: PermissionType;
256
- isInherited: boolean;
257
- inheritedFrom: string | null;
258
- expiresAt: Date | string | null;
259
- grantedById: string;
260
- grantedBy: User;
261
- grantedAt: Date | string;
262
- }
263
- export interface GrantFilePermissionInput {
264
- fileId: string;
265
- subjectType: string;
266
- subjectId: string;
267
- permissionType: PermissionType;
268
- expiresAt?: Date | string;
269
- }
270
- export interface BatchDownload {
271
- id: string;
272
- workspaceId: string;
273
- fileIds: string[];
274
- archiveName: string;
275
- downloadUrl: string;
276
- archiveSize: number;
277
- fileCount: number;
278
- status: string;
279
- expiresAt: Date | string;
280
- createdById: string;
281
- createdAt: Date | string;
282
- }
283
- export interface CreateBatchDownloadInput {
284
- workspaceId: string;
285
- fileIds: string[];
286
- archiveName?: string;
287
- preserveFolderStructure?: boolean;
288
- }
289
- export interface ContentSearchResult {
290
- file: File;
291
- highlights: string[];
292
- rank: number;
293
- }
294
- export interface SearchFilesInput {
295
- workspaceId: string;
296
- query: string;
297
- filters?: Partial<FileFilterInput>;
298
- pagination?: PaginationInput;
299
- sort?: FileSortInput;
300
- }
301
- export interface StorageUsage {
302
- used: string;
303
- total: string;
304
- percentage: number;
305
- }
306
- export interface UploadFileInput {
307
- workspaceId: string;
308
- file: File;
309
- folderId?: string;
310
- description?: string;
311
- visibility?: FileVisibility;
312
- }
313
- export interface MoveFilesInput {
314
- fileIds: string[];
315
- targetFolderId: string | null;
316
- }
317
- //# sourceMappingURL=graphql-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graphql-types.d.ts","sourceRoot":"","sources":["../../src/files/graphql-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,SAAS,cAAc;CACxB;AAED,oBAAY,YAAY;IACtB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,oBAAY,QAAQ;IAClB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,oBAAY,cAAc;IACxB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAGD,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CA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,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B"}
@@ -1,32 +0,0 @@
1
- export declare const useBulkDelete: () => {
2
- mutateAsync: (ids: string[]) => Promise<any>;
3
- isPending: boolean;
4
- error: import('@apollo/client').ErrorLike | undefined;
5
- };
6
- export declare const useBulkMove: () => {
7
- mutateAsync: (input: {
8
- ids: string[];
9
- targetFolderId: string | null;
10
- }) => Promise<any>;
11
- isPending: boolean;
12
- error: import('@apollo/client').ErrorLike | undefined;
13
- };
14
- export declare const useBulkUpdateVisibility: () => {
15
- mutateAsync: (input: {
16
- ids: string[];
17
- visibility: string;
18
- }) => Promise<any>;
19
- isPending: boolean;
20
- error: import('@apollo/client').ErrorLike | undefined;
21
- };
22
- export declare const useBulkPermanentlyDeleteFiles: () => {
23
- mutateAsync: (ids: string[]) => Promise<any>;
24
- isPending: boolean;
25
- error: import('@apollo/client').ErrorLike | undefined;
26
- };
27
- export declare const useBulkPermanentlyDeleteFolders: () => {
28
- mutateAsync: (ids: string[]) => Promise<any>;
29
- isPending: boolean;
30
- error: import('@apollo/client').ErrorLike | undefined;
31
- };
32
- //# sourceMappingURL=useBatchOperations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBatchOperations.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useBatchOperations.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,aAAa;uBAOG,MAAM,EAAE;;;CAUpC,CAAC;AAEF,eAAO,MAAM,WAAW;yBAMO;QACzB,GAAG,EAAE,MAAM,EAAE,CAAC;QACd,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;KAC/B;;;CAaJ,CAAC;AAEF,eAAO,MAAM,uBAAuB;yBAOL;QAAE,GAAG,EAAE,MAAM,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE;;;CAanE,CAAC;AAEF,eAAO,MAAM,6BAA6B;uBAOb,MAAM,EAAE;;;CAUpC,CAAC;AAEF,eAAO,MAAM,+BAA+B;uBAOf,MAAM,EAAE;;;CAUpC,CAAC"}
@@ -1,11 +0,0 @@
1
- import { FileItem, FolderItem } from '../types';
2
- export declare const useBinItems: (options?: {
3
- skip?: boolean;
4
- }) => {
5
- files: FileItem[];
6
- folders: FolderItem[];
7
- isLoading: boolean;
8
- error: Error | null;
9
- refetch: () => Promise<void>;
10
- };
11
- //# sourceMappingURL=useBinItems.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBinItems.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useBinItems.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAErD,eAAO,MAAM,WAAW,GAAI,UAAU;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE;;;;WA+CpC,KAAK,GAAG,IAAI;;CAG/B,CAAC"}
@@ -1,18 +0,0 @@
1
- type BrowsePageOptions = {
2
- folderId?: string;
3
- pageSize?: number;
4
- skip?: boolean;
5
- };
6
- export declare const useBrowsePage: ({ folderId, pageSize, skip, }: BrowsePageOptions) => {
7
- data: {
8
- filesList: any;
9
- foldersList: any;
10
- folderPath: any;
11
- currentFolder: any;
12
- } | undefined;
13
- loading: boolean;
14
- error: import('@apollo/client').ErrorLike | undefined;
15
- refetch: (variables?: any) => Promise<import("@apollo/client").ApolloClient.QueryResult<Types.GetFilesFolderBrowsePageQuery>>;
16
- };
17
- export {};
18
- //# sourceMappingURL=useBrowsePage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBrowsePage.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useBrowsePage.ts"],"names":[],"mappings":"AAMA,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,+BAI3B,iBAAiB;;;;;;;;;;CA0CnB,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Copy File Hook
3
- */
4
- export interface CopyFileInput {
5
- id: string;
6
- targetFolderId?: string | null;
7
- newName?: string;
8
- }
9
- export declare const useCopyFile: () => {
10
- mutateAsync: ({ id, targetFolderId, newName }: CopyFileInput) => Promise<any>;
11
- isPending: boolean;
12
- error: import('@apollo/client').ErrorLike | undefined;
13
- };
14
- //# sourceMappingURL=useCopyFile.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCopyFile.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useCopyFile.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,WAAW;mDAWiC,aAAa;;;CAarE,CAAC"}
@@ -1,14 +0,0 @@
1
- export interface CreateFolderInput {
2
- name: string;
3
- description?: string;
4
- parentFolderId?: string;
5
- visibility?: string;
6
- color?: string;
7
- icon?: string;
8
- }
9
- export declare const useCreateFolder: () => {
10
- mutateAsync: (input: CreateFolderInput) => Promise<any>;
11
- isPending: boolean;
12
- error: import('@apollo/client').ErrorLike | undefined;
13
- };
14
- //# sourceMappingURL=useCreateFolder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCreateFolder.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useCreateFolder.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,eAAe;yBAWG,iBAAiB;;;CAU/C,CAAC"}
@@ -1,16 +0,0 @@
1
- export interface CreateFolderShareInput {
2
- folderId: string;
3
- shareType: "PUBLIC_LINK" | "EMAIL_INVITE" | "GROUP_SHARE";
4
- accessLevel: "VIEW" | "COMMENT" | "DOWNLOAD" | "EDIT";
5
- expiresAt?: string;
6
- password?: string;
7
- maxDownloads?: number;
8
- invitedEmail?: string;
9
- invitedUserIds?: string[];
10
- }
11
- export declare const useCreateFolderShare: () => {
12
- mutateAsync: (input: CreateFolderShareInput) => Promise<any>;
13
- isPending: boolean;
14
- error: import('@apollo/client').ErrorLike | undefined;
15
- };
16
- //# sourceMappingURL=useCreateFolderShare.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCreateFolderShare.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useCreateFolderShare.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,aAAa,GAAG,cAAc,GAAG,aAAa,CAAC;IAC1D,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,eAAO,MAAM,oBAAoB;yBAKF,sBAAsB;;;CAUpD,CAAC"}
@@ -1,16 +0,0 @@
1
- export interface CreateShareInput {
2
- fileId: string;
3
- shareType: "PUBLIC_LINK" | "EMAIL_INVITE" | "GROUP_SHARE";
4
- accessLevel: "VIEW" | "COMMENT" | "DOWNLOAD" | "EDIT";
5
- expiresAt?: string;
6
- password?: string;
7
- maxDownloads?: number;
8
- invitedEmail?: string;
9
- invitedUserIds?: string[];
10
- }
11
- export declare const useCreateShare: () => {
12
- mutateAsync: (input: CreateShareInput) => Promise<any>;
13
- isPending: boolean;
14
- error: import('@apollo/client').ErrorLike | undefined;
15
- };
16
- //# sourceMappingURL=useCreateShare.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCreateShare.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useCreateShare.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,aAAa,GAAG,cAAc,GAAG,aAAa,CAAC;IAC1D,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc;yBAMI,gBAAgB;;;CAU9C,CAAC"}
@@ -1,9 +0,0 @@
1
- export interface DeleteFileInput {
2
- id: string;
3
- }
4
- export declare const useDeleteFile: () => {
5
- mutateAsync: ({ id }: DeleteFileInput) => Promise<any>;
6
- isPending: boolean;
7
- error: import('@apollo/client').ErrorLike | undefined;
8
- };
9
- //# sourceMappingURL=useDeleteFile.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDeleteFile.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useDeleteFile.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,aAAa;0BAYM,eAAe;;;CAS9C,CAAC"}
@@ -1,10 +0,0 @@
1
- export interface DeleteFolderInput {
2
- id: string;
3
- recursive?: boolean;
4
- }
5
- export declare const useDeleteFolder: () => {
6
- mutateAsync: ({ id, recursive }: DeleteFolderInput) => Promise<any>;
7
- isPending: boolean;
8
- error: import('@apollo/client').ErrorLike | undefined;
9
- };
10
- //# sourceMappingURL=useDeleteFolder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDeleteFolder.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useDeleteFolder.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,eAAe;qCAasB,iBAAiB;;;CASlE,CAAC"}
@@ -1,31 +0,0 @@
1
- import { FileItem, FolderItem } from '../types';
2
- export type DragOperation = "move" | "copy";
3
- export interface DragData {
4
- type: "file" | "folder";
5
- item: FileItem | FolderItem;
6
- operation: DragOperation;
7
- }
8
- export interface DropData {
9
- type: "file" | "folder";
10
- item: FileItem | FolderItem;
11
- }
12
- export interface UseDragDropOptions {
13
- onMoveFile?: (fileId: string, targetFolderId: string) => Promise<void>;
14
- onMoveFolder?: (folderId: string, targetFolderId: string) => Promise<void>;
15
- onCopyFile?: (fileId: string, targetFolderId: string) => Promise<void>;
16
- onCopyFolder?: (folderId: string, targetFolderId: string) => Promise<void>;
17
- }
18
- export interface UseDragDropReturn {
19
- draggedItem: DragData | null;
20
- dropTarget: DropData | null;
21
- isDragging: boolean;
22
- isDropTargetActive: boolean;
23
- startDrag: (data: DragData) => void;
24
- endDrag: () => void;
25
- setDropTarget: (data: DropData | null) => void;
26
- handleDrop: (targetFolderId: string) => Promise<void>;
27
- }
28
- export declare const useDragDrop: (options?: UseDragDropOptions) => UseDragDropReturn;
29
- export declare const getDragOperation: (event: React.DragEvent) => DragOperation;
30
- export declare const canDropOnFolder: (draggedItem: DragData | null, targetFolder: FolderItem) => boolean;
31
- //# sourceMappingURL=useDragDrop.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDragDrop.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useDragDrop.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAErD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC;IACxB,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC5B,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC;IACxB,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvE,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvE,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5E;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,OAAO,CAAC;IACpB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,SAAS,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,UAAU,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACvD;AAED,eAAO,MAAM,WAAW,GACtB,UAAS,kBAAuB,KAC/B,iBAqDF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,KAAK,CAAC,SAAS,KAAG,aAEzD,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,aAAa,QAAQ,GAAG,IAAI,EAC5B,cAAc,UAAU,KACvB,OAUF,CAAC"}
@@ -1,52 +0,0 @@
1
- /**
2
- * Hook to fetch all versions for a file
3
- */
4
- export declare const useFileVersions: (_fileId: string, _enabled?: boolean) => {
5
- data: any;
6
- isLoading: boolean;
7
- error: Error | null;
8
- refetch: (variables?: any) => Promise<import("@apollo/client").ApolloClient.QueryResult<Types.GetFileVersionsQuery>>;
9
- };
10
- /**
11
- * Hook to create a new file version
12
- */
13
- export declare const useCreateFileVersion: () => {
14
- mutateAsync: (input: {
15
- fileId: string;
16
- versionLabel?: string;
17
- changeMessage?: string;
18
- isMajorVersion?: boolean;
19
- }) => Promise<any>;
20
- isPending: boolean;
21
- error: import('@apollo/client').ErrorLike | undefined;
22
- };
23
- /**
24
- * Hook to restore a previous version
25
- */
26
- export declare const useRestoreFileVersion: () => {
27
- mutateAsync: (input: {
28
- versionId: string;
29
- createNewVersion?: boolean;
30
- changeMessage?: string;
31
- }) => Promise<any>;
32
- isPending: boolean;
33
- error: import('@apollo/client').ErrorLike | undefined;
34
- };
35
- /**
36
- * Hook to delete a specific version
37
- */
38
- export declare const useDeleteFileVersion: () => {
39
- mutateAsync: (versionId: string) => Promise<any>;
40
- isPending: boolean;
41
- error: import('@apollo/client').ErrorLike | undefined;
42
- };
43
- /**
44
- * Hook to get download URL for a specific version
45
- */
46
- export declare const useVersionDownloadUrl: (_versionId?: string, _expiresIn?: number) => {
47
- data: any;
48
- isLoading: boolean;
49
- error: import('@apollo/client').ErrorLike | undefined;
50
- getDownloadUrl: (versionId?: string | undefined, expiresIn?: number | undefined) => Promise<any>;
51
- };
52
- //# sourceMappingURL=useFileVersions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFileVersions.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useFileVersions.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,EAAE,WAAU,OAAc;;;;;CAexE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;yBAOF;QACzB,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B;;;CAUJ,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;yBAOH;QACzB,SAAS,EAAE,MAAM,CAAC;QAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB;;;CAgBJ,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;6BAOE,MAAM;;;CAUxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAChC,aAAa,MAAM,EACnB,aAAa,MAAM;;;;;CAqBpB,CAAC"}
@@ -1,18 +0,0 @@
1
- import { FileFilterInput, FileSortInput, PaginationInput } from '../graphql-types';
2
- /**
3
- * Fetch a single file by ID
4
- */
5
- export declare const useFile: (fileId: string, options?: {
6
- skip?: boolean;
7
- }) => import("@apollo/client/react").useQuery.Result<Types.GetFileQuery, Types.GetFileQueryVariables, "empty" | "complete" | "streaming", Types.GetFileQueryVariables>;
8
- /**
9
- * Fetch files in a workspace with filtering, sorting, and pagination
10
- */
11
- export declare const useFiles: (params: {
12
- folderId?: string;
13
- filter?: FileFilterInput;
14
- sort?: FileSortInput;
15
- pagination?: PaginationInput;
16
- skip?: boolean;
17
- }) => import("@apollo/client/react").useQuery.Result<Types.GetFilesQuery, Types.GetFilesQueryVariables, "empty" | "complete" | "streaming", Types.GetFilesQueryVariables>;
18
- //# sourceMappingURL=useFiles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFiles.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useFiles.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACb,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,QAAQ,MAAM,EAAE,UAAU;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,qKAKnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,QAAQ;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,wKAUA,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Folder Hook
3
- *
4
- * Uses useGetFolderQuery to fetch a single folder by ID.
5
- */
6
- export declare const useFolder: (folderId?: string) => import("@apollo/client/react").useQuery.Result<Types.GetFolderQuery, Types.GetFolderQueryVariables, "empty" | "complete" | "streaming", Types.GetFolderQueryVariables>;
7
- //# sourceMappingURL=useFolder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFolder.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useFolder.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,SAAS,GAAI,WAAW,MAAM,2KAK1C,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const useFolderPath: (folderId?: string) => import("@apollo/client/react").useQuery.Result<Types.GetFolderPathQuery, Types.GetFolderPathQueryVariables, "empty" | "complete" | "streaming", Types.GetFolderPathQueryVariables>;
2
- //# sourceMappingURL=useFolderPath.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFolderPath.d.ts","sourceRoot":"","sources":["../../../src/files/hooks/useFolderPath.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,GAAI,WAAW,MAAM,uLAK9C,CAAC"}