@secrecy/lib 1.0.0-dev.9 → 1.0.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.
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/BaseClient.d.ts +111 -0
- package/dist/BaseClient.js +506 -0
- package/{lib → dist}/PopupTools.d.ts +4 -4
- package/dist/PopupTools.js +195 -0
- package/{lib → dist}/ZeusThunder.d.ts +0 -0
- package/dist/ZeusThunder.js +65 -0
- package/dist/cache.d.ts +6 -0
- package/dist/cache.js +4 -0
- package/dist/client/SecrecyAppClient.d.ts +17 -0
- package/dist/client/SecrecyAppClient.js +226 -0
- package/dist/client/SecrecyCloudClient.d.ts +89 -0
- package/dist/client/SecrecyCloudClient.js +1405 -0
- package/dist/client/SecrecyDbClient.d.ts +21 -0
- package/dist/client/SecrecyDbClient.js +177 -0
- package/dist/client/SecrecyMailClient.d.ts +42 -0
- package/dist/client/SecrecyMailClient.js +1022 -0
- package/dist/client/SecrecyPayClient.d.ts +28 -0
- package/dist/client/SecrecyPayClient.js +68 -0
- package/dist/client/SecrecyWalletClient.d.ts +30 -0
- package/dist/client/SecrecyWalletClient.js +73 -0
- package/{lib → dist}/client/convert/file.d.ts +3 -3
- package/dist/client/convert/file.js +33 -0
- package/dist/client/convert/mail.d.ts +3 -0
- package/dist/client/convert/mail.js +42 -0
- package/dist/client/convert/node.d.ts +9 -0
- package/dist/client/convert/node.js +87 -0
- package/{lib → dist}/client/helpers.d.ts +9 -4
- package/dist/client/helpers.js +119 -0
- package/dist/client/index.d.ts +34 -0
- package/dist/client/index.js +46 -0
- package/{lib → dist}/client/storage.d.ts +0 -0
- package/dist/client/storage.js +12 -0
- package/dist/client/types/File.d.ts +14 -0
- package/dist/client/types/File.js +3 -0
- package/dist/client/types/Inputs.d.ts +16 -0
- package/dist/client/types/Inputs.js +3 -0
- package/dist/client/types/Node.d.ts +56 -0
- package/dist/client/types/Node.js +3 -0
- package/dist/client/types/UserAppNotifications.d.ts +6 -0
- package/dist/client/types/UserAppNotifications.js +3 -0
- package/dist/client/types/UserAppSettings.d.ts +5 -0
- package/dist/client/types/UserAppSettings.js +3 -0
- package/{lib → dist}/client/types/index.d.ts +25 -59
- package/dist/client/types/index.js +8 -0
- package/dist/client/types/selectors.d.ts +400 -0
- package/dist/client/types/selectors.js +135 -0
- package/{lib → dist}/crypto/file.d.ts +2 -2
- package/dist/crypto/file.js +195 -0
- package/{lib → dist}/crypto/index.d.ts +0 -0
- package/dist/crypto/index.js +45 -0
- package/dist/error.d.ts +33 -0
- package/dist/error.js +3 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +10 -0
- package/{lib → dist}/minify/index.d.ts +0 -0
- package/dist/minify/index.js +23 -0
- package/{lib → dist}/minify/lz4.d.ts +0 -0
- package/dist/minify/lz4.js +539 -0
- package/{lib → dist}/sodium.d.ts +0 -0
- package/dist/sodium.js +6 -0
- package/{lib → dist}/utils/store-buddy.d.ts +1 -1
- package/dist/utils/store-buddy.js +58 -0
- package/{lib → dist}/utils/time.d.ts +0 -0
- package/dist/utils/time.js +12 -0
- package/{lib → dist/utils}/utils.d.ts +0 -0
- package/dist/utils/utils.js +47 -0
- package/{lib → dist}/worker/md5.d.ts +0 -0
- package/dist/worker/md5.js +24 -0
- package/{lib → dist}/worker/sodium.d.ts +0 -0
- package/dist/worker/sodium.js +118 -0
- package/{lib → dist}/worker/workerCodes.d.ts +0 -0
- package/dist/worker/workerCodes.js +255 -0
- package/{lib → dist}/zeus/const.d.ts +5 -0
- package/dist/zeus/const.js +1679 -0
- package/dist/zeus/index.d.ts +7941 -0
- package/dist/zeus/index.js +599 -0
- package/package.json +64 -54
- package/lib/BaseClient.d.ts +0 -266
- package/lib/BaseClient.js +0 -1332
- package/lib/PopupTools.js +0 -213
- package/lib/ZeusThunder.js +0 -115
- package/lib/cache.d.ts +0 -7
- package/lib/cache.js +0 -5
- package/lib/client/admin/index.d.ts +0 -10
- package/lib/client/admin/index.js +0 -145
- package/lib/client/convert/file.js +0 -39
- package/lib/client/convert/folder.d.ts +0 -8
- package/lib/client/convert/folder.js +0 -264
- package/lib/client/convert/mail.d.ts +0 -3
- package/lib/client/convert/mail.js +0 -46
- package/lib/client/convert/vFile.d.ts +0 -5
- package/lib/client/convert/vFile.js +0 -164
- package/lib/client/helpers.js +0 -116
- package/lib/client/index.d.ts +0 -169
- package/lib/client/index.js +0 -3803
- package/lib/client/storage.js +0 -12
- package/lib/client/types/File.d.ts +0 -21
- package/lib/client/types/File.js +0 -2
- package/lib/client/types/FilesOnUsersOnApplications.d.ts +0 -9
- package/lib/client/types/FilesOnUsersOnApplications.js +0 -2
- package/lib/client/types/Folder.d.ts +0 -68
- package/lib/client/types/Folder.js +0 -7
- package/lib/client/types/Inputs.d.ts +0 -21
- package/lib/client/types/Inputs.js +0 -2
- package/lib/client/types/UserAppNotifications.d.ts +0 -6
- package/lib/client/types/UserAppNotifications.js +0 -2
- package/lib/client/types/UserAppSettings.d.ts +0 -7
- package/lib/client/types/UserAppSettings.js +0 -2
- package/lib/client/types/VFile.d.ts +0 -62
- package/lib/client/types/VFile.js +0 -4
- package/lib/client/types/index.js +0 -9
- package/lib/client/types/queries.d.ts +0 -535
- package/lib/client/types/queries.js +0 -192
- package/lib/crypto/file.js +0 -291
- package/lib/crypto/index.js +0 -37
- package/lib/index.d.ts +0 -12
- package/lib/index.js +0 -41
- package/lib/minify/index.js +0 -28
- package/lib/minify/lz4.js +0 -633
- package/lib/sodium.js +0 -28
- package/lib/utils/store-buddy.js +0 -69
- package/lib/utils/time.js +0 -22
- package/lib/utils.js +0 -188
- package/lib/worker/__mock__/sodium.worker.d.ts +0 -19
- package/lib/worker/__mock__/sodium.worker.js +0 -57
- package/lib/worker/md5.js +0 -43
- package/lib/worker/sodium.js +0 -155
- package/lib/worker/workerCodes.js +0 -3
- package/lib/zeus/const.js +0 -1671
- package/lib/zeus/index.d.ts +0 -33302
- package/lib/zeus/index.js +0 -558
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
export declare const fileSelector: {
|
|
2
|
+
id: true;
|
|
3
|
+
size: true;
|
|
4
|
+
sizeBefore: true;
|
|
5
|
+
createdAt: true;
|
|
6
|
+
md5: true;
|
|
7
|
+
md5Encrypted: true;
|
|
8
|
+
access: {
|
|
9
|
+
key: true;
|
|
10
|
+
sharedBy: {
|
|
11
|
+
keyPair: {
|
|
12
|
+
pub: true;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const userSelector: {
|
|
18
|
+
id: true;
|
|
19
|
+
firstname: true;
|
|
20
|
+
lastname: true;
|
|
21
|
+
email: true;
|
|
22
|
+
publicKey: true;
|
|
23
|
+
};
|
|
24
|
+
export declare const nodeSelector: {
|
|
25
|
+
id: true;
|
|
26
|
+
isFavorite: true;
|
|
27
|
+
type: true;
|
|
28
|
+
createdAt: true;
|
|
29
|
+
deletedAt: true;
|
|
30
|
+
createdBy: {
|
|
31
|
+
user: {
|
|
32
|
+
id: true;
|
|
33
|
+
firstname: true;
|
|
34
|
+
lastname: true;
|
|
35
|
+
email: true;
|
|
36
|
+
publicKey: true;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
sizes: {
|
|
40
|
+
size: true;
|
|
41
|
+
sizeBefore: true;
|
|
42
|
+
};
|
|
43
|
+
updatedAt: true;
|
|
44
|
+
name: true;
|
|
45
|
+
access: {
|
|
46
|
+
rights: true;
|
|
47
|
+
isRoot: true;
|
|
48
|
+
nameKey: true;
|
|
49
|
+
sharedBy: {
|
|
50
|
+
keyPair: {
|
|
51
|
+
pub: true;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
userApp: {
|
|
55
|
+
user: {
|
|
56
|
+
id: true;
|
|
57
|
+
firstname: true;
|
|
58
|
+
lastname: true;
|
|
59
|
+
email: true;
|
|
60
|
+
publicKey: true;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
accesses: {
|
|
65
|
+
rights: true;
|
|
66
|
+
isRoot: true;
|
|
67
|
+
nameKey: true;
|
|
68
|
+
sharedBy: {
|
|
69
|
+
keyPair: {
|
|
70
|
+
pub: true;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
userApp: {
|
|
74
|
+
user: {
|
|
75
|
+
id: true;
|
|
76
|
+
firstname: true;
|
|
77
|
+
lastname: true;
|
|
78
|
+
email: true;
|
|
79
|
+
publicKey: true;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
breadcrumb: {
|
|
84
|
+
id: true;
|
|
85
|
+
name: true;
|
|
86
|
+
nameKey: true;
|
|
87
|
+
pubKey: true;
|
|
88
|
+
};
|
|
89
|
+
parentId: true;
|
|
90
|
+
currentFileId: true;
|
|
91
|
+
};
|
|
92
|
+
export declare const nodeFullSelector: {
|
|
93
|
+
parent: {
|
|
94
|
+
id: true;
|
|
95
|
+
isFavorite: true;
|
|
96
|
+
type: true;
|
|
97
|
+
createdAt: true;
|
|
98
|
+
deletedAt: true;
|
|
99
|
+
createdBy: {
|
|
100
|
+
user: {
|
|
101
|
+
id: true;
|
|
102
|
+
firstname: true;
|
|
103
|
+
lastname: true;
|
|
104
|
+
email: true;
|
|
105
|
+
publicKey: true;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
sizes: {
|
|
109
|
+
size: true;
|
|
110
|
+
sizeBefore: true;
|
|
111
|
+
};
|
|
112
|
+
updatedAt: true;
|
|
113
|
+
name: true;
|
|
114
|
+
access: {
|
|
115
|
+
rights: true;
|
|
116
|
+
isRoot: true;
|
|
117
|
+
nameKey: true;
|
|
118
|
+
sharedBy: {
|
|
119
|
+
keyPair: {
|
|
120
|
+
pub: true;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
userApp: {
|
|
124
|
+
user: {
|
|
125
|
+
id: true;
|
|
126
|
+
firstname: true;
|
|
127
|
+
lastname: true;
|
|
128
|
+
email: true;
|
|
129
|
+
publicKey: true;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
accesses: {
|
|
134
|
+
rights: true;
|
|
135
|
+
isRoot: true;
|
|
136
|
+
nameKey: true;
|
|
137
|
+
sharedBy: {
|
|
138
|
+
keyPair: {
|
|
139
|
+
pub: true;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
userApp: {
|
|
143
|
+
user: {
|
|
144
|
+
id: true;
|
|
145
|
+
firstname: true;
|
|
146
|
+
lastname: true;
|
|
147
|
+
email: true;
|
|
148
|
+
publicKey: true;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
breadcrumb: {
|
|
153
|
+
id: true;
|
|
154
|
+
name: true;
|
|
155
|
+
nameKey: true;
|
|
156
|
+
pubKey: true;
|
|
157
|
+
};
|
|
158
|
+
parentId: true;
|
|
159
|
+
currentFileId: true;
|
|
160
|
+
};
|
|
161
|
+
children: {
|
|
162
|
+
id: true;
|
|
163
|
+
isFavorite: true;
|
|
164
|
+
type: true;
|
|
165
|
+
createdAt: true;
|
|
166
|
+
deletedAt: true;
|
|
167
|
+
createdBy: {
|
|
168
|
+
user: {
|
|
169
|
+
id: true;
|
|
170
|
+
firstname: true;
|
|
171
|
+
lastname: true;
|
|
172
|
+
email: true;
|
|
173
|
+
publicKey: true;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
sizes: {
|
|
177
|
+
size: true;
|
|
178
|
+
sizeBefore: true;
|
|
179
|
+
};
|
|
180
|
+
updatedAt: true;
|
|
181
|
+
name: true;
|
|
182
|
+
access: {
|
|
183
|
+
rights: true;
|
|
184
|
+
isRoot: true;
|
|
185
|
+
nameKey: true;
|
|
186
|
+
sharedBy: {
|
|
187
|
+
keyPair: {
|
|
188
|
+
pub: true;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
userApp: {
|
|
192
|
+
user: {
|
|
193
|
+
id: true;
|
|
194
|
+
firstname: true;
|
|
195
|
+
lastname: true;
|
|
196
|
+
email: true;
|
|
197
|
+
publicKey: true;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
accesses: {
|
|
202
|
+
rights: true;
|
|
203
|
+
isRoot: true;
|
|
204
|
+
nameKey: true;
|
|
205
|
+
sharedBy: {
|
|
206
|
+
keyPair: {
|
|
207
|
+
pub: true;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
userApp: {
|
|
211
|
+
user: {
|
|
212
|
+
id: true;
|
|
213
|
+
firstname: true;
|
|
214
|
+
lastname: true;
|
|
215
|
+
email: true;
|
|
216
|
+
publicKey: true;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
breadcrumb: {
|
|
221
|
+
id: true;
|
|
222
|
+
name: true;
|
|
223
|
+
nameKey: true;
|
|
224
|
+
pubKey: true;
|
|
225
|
+
};
|
|
226
|
+
parentId: true;
|
|
227
|
+
currentFileId: true;
|
|
228
|
+
};
|
|
229
|
+
history: {
|
|
230
|
+
id: true;
|
|
231
|
+
size: true;
|
|
232
|
+
sizeBefore: true;
|
|
233
|
+
createdAt: true;
|
|
234
|
+
md5: true;
|
|
235
|
+
md5Encrypted: true;
|
|
236
|
+
access: {
|
|
237
|
+
key: true;
|
|
238
|
+
sharedBy: {
|
|
239
|
+
keyPair: {
|
|
240
|
+
pub: true;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
current: {
|
|
246
|
+
id: true;
|
|
247
|
+
size: true;
|
|
248
|
+
sizeBefore: true;
|
|
249
|
+
createdAt: true;
|
|
250
|
+
md5: true;
|
|
251
|
+
md5Encrypted: true;
|
|
252
|
+
access: {
|
|
253
|
+
key: true;
|
|
254
|
+
sharedBy: {
|
|
255
|
+
keyPair: {
|
|
256
|
+
pub: true;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
id: true;
|
|
262
|
+
isFavorite: true;
|
|
263
|
+
type: true;
|
|
264
|
+
createdAt: true;
|
|
265
|
+
deletedAt: true;
|
|
266
|
+
createdBy: {
|
|
267
|
+
user: {
|
|
268
|
+
id: true;
|
|
269
|
+
firstname: true;
|
|
270
|
+
lastname: true;
|
|
271
|
+
email: true;
|
|
272
|
+
publicKey: true;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
sizes: {
|
|
276
|
+
size: true;
|
|
277
|
+
sizeBefore: true;
|
|
278
|
+
};
|
|
279
|
+
updatedAt: true;
|
|
280
|
+
name: true;
|
|
281
|
+
access: {
|
|
282
|
+
rights: true;
|
|
283
|
+
isRoot: true;
|
|
284
|
+
nameKey: true;
|
|
285
|
+
sharedBy: {
|
|
286
|
+
keyPair: {
|
|
287
|
+
pub: true;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
userApp: {
|
|
291
|
+
user: {
|
|
292
|
+
id: true;
|
|
293
|
+
firstname: true;
|
|
294
|
+
lastname: true;
|
|
295
|
+
email: true;
|
|
296
|
+
publicKey: true;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
accesses: {
|
|
301
|
+
rights: true;
|
|
302
|
+
isRoot: true;
|
|
303
|
+
nameKey: true;
|
|
304
|
+
sharedBy: {
|
|
305
|
+
keyPair: {
|
|
306
|
+
pub: true;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
userApp: {
|
|
310
|
+
user: {
|
|
311
|
+
id: true;
|
|
312
|
+
firstname: true;
|
|
313
|
+
lastname: true;
|
|
314
|
+
email: true;
|
|
315
|
+
publicKey: true;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
breadcrumb: {
|
|
320
|
+
id: true;
|
|
321
|
+
name: true;
|
|
322
|
+
nameKey: true;
|
|
323
|
+
pubKey: true;
|
|
324
|
+
};
|
|
325
|
+
parentId: true;
|
|
326
|
+
currentFileId: true;
|
|
327
|
+
};
|
|
328
|
+
export declare const mailSelector: {
|
|
329
|
+
id: true;
|
|
330
|
+
type: true;
|
|
331
|
+
body: true;
|
|
332
|
+
subject: true;
|
|
333
|
+
openedAt: true;
|
|
334
|
+
createdAt: true;
|
|
335
|
+
deletedAt: true;
|
|
336
|
+
recipients: {
|
|
337
|
+
publicKey: false;
|
|
338
|
+
id: true;
|
|
339
|
+
firstname: true;
|
|
340
|
+
lastname: true;
|
|
341
|
+
email: true;
|
|
342
|
+
};
|
|
343
|
+
recipient: {
|
|
344
|
+
publicKey: false;
|
|
345
|
+
id: true;
|
|
346
|
+
firstname: true;
|
|
347
|
+
lastname: true;
|
|
348
|
+
email: true;
|
|
349
|
+
};
|
|
350
|
+
sender: {
|
|
351
|
+
id: true;
|
|
352
|
+
firstname: true;
|
|
353
|
+
lastname: true;
|
|
354
|
+
email: true;
|
|
355
|
+
publicKey: true;
|
|
356
|
+
};
|
|
357
|
+
mailIntegrity: {
|
|
358
|
+
id: true;
|
|
359
|
+
hash: true;
|
|
360
|
+
hashKey: true;
|
|
361
|
+
replyTo: {
|
|
362
|
+
id: true;
|
|
363
|
+
};
|
|
364
|
+
temporaryRecipients: {
|
|
365
|
+
email: true;
|
|
366
|
+
};
|
|
367
|
+
recipients: {
|
|
368
|
+
publicKey: false;
|
|
369
|
+
id: true;
|
|
370
|
+
firstname: true;
|
|
371
|
+
lastname: true;
|
|
372
|
+
email: true;
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
mailIntegrityDraft: {
|
|
376
|
+
id: true;
|
|
377
|
+
hash: true;
|
|
378
|
+
hashKey: true;
|
|
379
|
+
replyTo: {
|
|
380
|
+
id: true;
|
|
381
|
+
};
|
|
382
|
+
temporaryRecipients: {
|
|
383
|
+
email: true;
|
|
384
|
+
};
|
|
385
|
+
recipients: {
|
|
386
|
+
publicKey: false;
|
|
387
|
+
id: true;
|
|
388
|
+
firstname: true;
|
|
389
|
+
lastname: true;
|
|
390
|
+
email: true;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
files: {
|
|
394
|
+
fileKey: true;
|
|
395
|
+
filename: true;
|
|
396
|
+
file: {
|
|
397
|
+
id: true;
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
import { Selector } from "../../zeus/index.js";
|
|
5
|
+
export const fileSelector = Selector("File")({
|
|
6
|
+
id: true,
|
|
7
|
+
size: true,
|
|
8
|
+
sizeBefore: true,
|
|
9
|
+
createdAt: true,
|
|
10
|
+
md5: true,
|
|
11
|
+
md5Encrypted: true,
|
|
12
|
+
access: {
|
|
13
|
+
key: true,
|
|
14
|
+
sharedBy: {
|
|
15
|
+
keyPair: {
|
|
16
|
+
pub: true
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export const userSelector = Selector("User")({
|
|
22
|
+
id: true,
|
|
23
|
+
firstname: true,
|
|
24
|
+
lastname: true,
|
|
25
|
+
email: true,
|
|
26
|
+
publicKey: true
|
|
27
|
+
});
|
|
28
|
+
export const nodeSelector = Selector("Node")({
|
|
29
|
+
id: true,
|
|
30
|
+
isFavorite: true,
|
|
31
|
+
type: true,
|
|
32
|
+
createdAt: true,
|
|
33
|
+
deletedAt: true,
|
|
34
|
+
createdBy: {
|
|
35
|
+
user: userSelector
|
|
36
|
+
},
|
|
37
|
+
sizes: {
|
|
38
|
+
size: true,
|
|
39
|
+
sizeBefore: true
|
|
40
|
+
},
|
|
41
|
+
updatedAt: true,
|
|
42
|
+
name: true,
|
|
43
|
+
access: {
|
|
44
|
+
rights: true,
|
|
45
|
+
isRoot: true,
|
|
46
|
+
nameKey: true,
|
|
47
|
+
sharedBy: {
|
|
48
|
+
keyPair: {
|
|
49
|
+
pub: true
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
userApp: {
|
|
53
|
+
user: userSelector
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
accesses: {
|
|
57
|
+
rights: true,
|
|
58
|
+
isRoot: true,
|
|
59
|
+
nameKey: true,
|
|
60
|
+
sharedBy: {
|
|
61
|
+
keyPair: {
|
|
62
|
+
pub: true
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
userApp: {
|
|
66
|
+
user: userSelector
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
breadcrumb: {
|
|
70
|
+
id: true,
|
|
71
|
+
name: true,
|
|
72
|
+
nameKey: true,
|
|
73
|
+
pubKey: true
|
|
74
|
+
},
|
|
75
|
+
parentId: true,
|
|
76
|
+
currentFileId: true
|
|
77
|
+
});
|
|
78
|
+
export const nodeFullSelector = Selector("Node")(_objectSpread(_objectSpread({}, nodeSelector), {}, {
|
|
79
|
+
parent: nodeSelector,
|
|
80
|
+
children: nodeSelector,
|
|
81
|
+
history: fileSelector,
|
|
82
|
+
current: fileSelector
|
|
83
|
+
}));
|
|
84
|
+
export const mailSelector = Selector("Mail")({
|
|
85
|
+
id: true,
|
|
86
|
+
type: true,
|
|
87
|
+
body: true,
|
|
88
|
+
subject: true,
|
|
89
|
+
openedAt: true,
|
|
90
|
+
createdAt: true,
|
|
91
|
+
deletedAt: true,
|
|
92
|
+
recipients: _objectSpread(_objectSpread({}, userSelector), {}, {
|
|
93
|
+
publicKey: false
|
|
94
|
+
}),
|
|
95
|
+
recipient: _objectSpread(_objectSpread({}, userSelector), {}, {
|
|
96
|
+
publicKey: false
|
|
97
|
+
}),
|
|
98
|
+
sender: userSelector,
|
|
99
|
+
mailIntegrity: {
|
|
100
|
+
id: true,
|
|
101
|
+
hash: true,
|
|
102
|
+
hashKey: true,
|
|
103
|
+
replyTo: {
|
|
104
|
+
id: true
|
|
105
|
+
},
|
|
106
|
+
temporaryRecipients: {
|
|
107
|
+
email: true
|
|
108
|
+
},
|
|
109
|
+
recipients: _objectSpread(_objectSpread({}, userSelector), {}, {
|
|
110
|
+
publicKey: false
|
|
111
|
+
})
|
|
112
|
+
},
|
|
113
|
+
mailIntegrityDraft: {
|
|
114
|
+
id: true,
|
|
115
|
+
hash: true,
|
|
116
|
+
hashKey: true,
|
|
117
|
+
replyTo: {
|
|
118
|
+
id: true
|
|
119
|
+
},
|
|
120
|
+
temporaryRecipients: {
|
|
121
|
+
email: true
|
|
122
|
+
},
|
|
123
|
+
recipients: _objectSpread(_objectSpread({}, userSelector), {}, {
|
|
124
|
+
publicKey: false
|
|
125
|
+
})
|
|
126
|
+
},
|
|
127
|
+
files: {
|
|
128
|
+
fileKey: true,
|
|
129
|
+
filename: true,
|
|
130
|
+
file: {
|
|
131
|
+
id: true
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJTZWxlY3RvciIsImZpbGVTZWxlY3RvciIsImlkIiwic2l6ZSIsInNpemVCZWZvcmUiLCJjcmVhdGVkQXQiLCJtZDUiLCJtZDVFbmNyeXB0ZWQiLCJhY2Nlc3MiLCJrZXkiLCJzaGFyZWRCeSIsImtleVBhaXIiLCJwdWIiLCJ1c2VyU2VsZWN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
export declare const CHUNK_SIZE = 8192;
|
|
8
|
-
export
|
|
8
|
+
export type Progress = {
|
|
9
9
|
percent: number;
|
|
10
10
|
total: number;
|
|
11
11
|
current: number;
|