@secrecy/lib 1.0.0-dev.63 → 1.0.0-dev.65
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/dist/BaseClient-15fdf493.d.ts +351 -0
- package/dist/BaseClient.cjs +2 -0
- package/dist/BaseClient.cjs.map +1 -0
- package/dist/BaseClient.d.ts +16 -104
- package/dist/BaseClient.js +2 -482
- package/dist/BaseClient.js.map +1 -0
- package/dist/PopupTools.cjs +2 -0
- package/dist/PopupTools.cjs.map +1 -0
- package/dist/PopupTools.d.ts +5 -4
- package/dist/PopupTools.js +2 -216
- package/dist/PopupTools.js.map +1 -0
- package/dist/ZeusThunder.cjs +2 -0
- package/dist/ZeusThunder.cjs.map +1 -0
- package/dist/ZeusThunder.d.ts +6 -2
- package/dist/ZeusThunder.js +2 -79
- package/dist/ZeusThunder.js.map +1 -0
- package/dist/cache.cjs +2 -0
- package/dist/cache.cjs.map +1 -0
- package/dist/cache.d.ts +22 -4
- package/dist/cache.js +2 -4
- package/dist/cache.js.map +1 -0
- package/dist/chunk-5WPCTUWH.cjs +2 -0
- package/dist/chunk-5WPCTUWH.cjs.map +1 -0
- package/dist/chunk-KMTF2BZE.js +2 -0
- package/dist/chunk-KMTF2BZE.js.map +1 -0
- package/dist/client/SecrecyAppClient.cjs +2 -0
- package/dist/client/SecrecyAppClient.cjs.map +1 -0
- package/dist/client/SecrecyAppClient.d.ts +16 -17
- package/dist/client/SecrecyAppClient.js +2 -256
- package/dist/client/SecrecyAppClient.js.map +1 -0
- package/dist/client/SecrecyCloudClient.cjs +2 -0
- package/dist/client/SecrecyCloudClient.cjs.map +1 -0
- package/dist/client/SecrecyCloudClient.d.ts +16 -89
- package/dist/client/SecrecyCloudClient.js +2 -1627
- package/dist/client/SecrecyCloudClient.js.map +1 -0
- package/dist/client/SecrecyDbClient.cjs +2 -0
- package/dist/client/SecrecyDbClient.cjs.map +1 -0
- package/dist/client/SecrecyDbClient.d.ts +16 -21
- package/dist/client/SecrecyDbClient.js +2 -198
- package/dist/client/SecrecyDbClient.js.map +1 -0
- package/dist/client/SecrecyMailClient.cjs +2 -0
- package/dist/client/SecrecyMailClient.cjs.map +1 -0
- package/dist/client/SecrecyMailClient.d.ts +16 -42
- package/dist/client/SecrecyMailClient.js +2 -1187
- package/dist/client/SecrecyMailClient.js.map +1 -0
- package/dist/client/SecrecyPayClient.cjs +2 -0
- package/dist/client/SecrecyPayClient.cjs.map +1 -0
- package/dist/client/SecrecyPayClient.d.ts +16 -7
- package/dist/client/SecrecyPayClient.js +2 -37
- package/dist/client/SecrecyPayClient.js.map +1 -0
- package/dist/client/SecrecyWalletClient.cjs +2 -0
- package/dist/client/SecrecyWalletClient.cjs.map +1 -0
- package/dist/client/SecrecyWalletClient.d.ts +16 -30
- package/dist/client/SecrecyWalletClient.js +2 -76
- package/dist/client/SecrecyWalletClient.js.map +1 -0
- package/dist/client/convert/file.cjs +2 -0
- package/dist/client/convert/file.cjs.map +1 -0
- package/dist/client/convert/file.d.ts +11 -5
- package/dist/client/convert/file.js +2 -34
- package/dist/client/convert/file.js.map +1 -0
- package/dist/client/convert/mail.cjs +2 -0
- package/dist/client/convert/mail.cjs.map +1 -0
- package/dist/client/convert/mail.d.ts +13 -3
- package/dist/client/convert/mail.js +2 -48
- package/dist/client/convert/mail.js.map +1 -0
- package/dist/client/convert/node.cjs +2 -0
- package/dist/client/convert/node.cjs.map +1 -0
- package/dist/client/convert/node.d.ts +18 -9
- package/dist/client/convert/node.js +2 -100
- package/dist/client/convert/node.js.map +1 -0
- package/dist/client/helpers.cjs +2 -0
- package/dist/client/helpers.cjs.map +1 -0
- package/dist/client/helpers.d.ts +16 -28
- package/dist/client/helpers.js +2 -126
- package/dist/client/helpers.js.map +1 -0
- package/dist/client/index.cjs +2 -0
- package/dist/client/index.cjs.map +1 -0
- package/dist/client/index.d.ts +16 -34
- package/dist/client/index.js +2 -52
- package/dist/client/index.js.map +1 -0
- package/dist/client/storage.cjs +2 -0
- package/dist/client/storage.cjs.map +1 -0
- package/dist/client/storage.d.ts +6 -3
- package/dist/client/storage.js +2 -12
- package/dist/client/storage.js.map +1 -0
- package/dist/client/types/File.cjs +1 -0
- package/dist/client/types/File.cjs.map +1 -0
- package/dist/client/types/File.d.ts +9 -5
- package/dist/client/types/File.js +1 -3
- package/dist/client/types/File.js.map +1 -0
- package/dist/client/types/Inputs.cjs +1 -0
- package/dist/client/types/Inputs.cjs.map +1 -0
- package/dist/client/types/Inputs.d.ts +6 -4
- package/dist/client/types/Inputs.js +1 -3
- package/dist/client/types/Inputs.js.map +1 -0
- package/dist/client/types/Node.cjs +1 -0
- package/dist/client/types/Node.cjs.map +1 -0
- package/dist/client/types/Node.d.ts +9 -56
- package/dist/client/types/Node.js +1 -3
- package/dist/client/types/Node.js.map +1 -0
- package/dist/client/types/UserAppNotifications.cjs +1 -0
- package/dist/client/types/UserAppNotifications.cjs.map +1 -0
- package/dist/client/types/UserAppNotifications.d.ts +3 -1
- package/dist/client/types/UserAppNotifications.js +1 -3
- package/dist/client/types/UserAppNotifications.js.map +1 -0
- package/dist/client/types/UserAppSettings.cjs +1 -0
- package/dist/client/types/UserAppSettings.cjs.map +1 -0
- package/dist/client/types/UserAppSettings.d.ts +3 -1
- package/dist/client/types/UserAppSettings.js +1 -3
- package/dist/client/types/UserAppSettings.js.map +1 -0
- package/dist/client/types/index.cjs +2 -0
- package/dist/client/types/index.cjs.map +1 -0
- package/dist/client/types/index.d.ts +86 -30
- package/dist/client/types/index.js +2 -8
- package/dist/client/types/index.js.map +1 -0
- package/dist/client/types/selectors.cjs +2 -0
- package/dist/client/types/selectors.cjs.map +1 -0
- package/dist/client/types/selectors.d.ts +7 -5
- package/dist/client/types/selectors.js +2 -138
- package/dist/client/types/selectors.js.map +1 -0
- package/dist/crypto/file.cjs +2 -0
- package/dist/crypto/file.cjs.map +1 -0
- package/dist/crypto/file.d.ts +8 -6
- package/dist/crypto/file.js +2 -210
- package/dist/crypto/file.js.map +1 -0
- package/dist/crypto/index.cjs +2 -0
- package/dist/crypto/index.cjs.map +1 -0
- package/dist/crypto/index.d.ts +11 -9
- package/dist/crypto/index.js +2 -47
- package/dist/crypto/index.js.map +1 -0
- package/dist/error.cjs +1 -0
- package/dist/error.cjs.map +1 -0
- package/dist/error.d.ts +12 -10
- package/dist/error.js +1 -3
- package/dist/error.js.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +19 -11
- package/dist/index.js +2 -9
- package/dist/index.js.map +1 -0
- package/dist/minify/index.cjs +2 -0
- package/dist/minify/index.cjs.map +1 -0
- package/dist/minify/index.d.ts +4 -2
- package/dist/minify/index.js +2 -28
- package/dist/minify/index.js.map +1 -0
- package/dist/minify/lz4.cjs +3 -0
- package/dist/minify/lz4.cjs.map +1 -0
- package/dist/minify/lz4.d.ts +7 -5
- package/dist/minify/lz4.js +3 -627
- package/dist/minify/lz4.js.map +1 -0
- package/dist/sodium.cjs +2 -0
- package/dist/sodium.cjs.map +1 -0
- package/dist/sodium.d.ts +5 -3
- package/dist/sodium.js +2 -6
- package/dist/sodium.js.map +1 -0
- package/dist/utils/store-buddy.cjs +2 -0
- package/dist/utils/store-buddy.cjs.map +1 -0
- package/dist/utils/store-buddy.d.ts +4 -3
- package/dist/utils/store-buddy.js +2 -65
- package/dist/utils/store-buddy.js.map +1 -0
- package/dist/utils/time.cjs +2 -0
- package/dist/utils/time.cjs.map +1 -0
- package/dist/utils/time.d.ts +4 -2
- package/dist/utils/time.js +2 -14
- package/dist/utils/time.js.map +1 -0
- package/dist/utils/utils.cjs +2 -0
- package/dist/utils/utils.cjs.map +1 -0
- package/dist/utils/utils.d.ts +6 -4
- package/dist/utils/utils.js +2 -57
- package/dist/utils/utils.js.map +1 -0
- package/dist/worker/md5.cjs +2 -0
- package/dist/worker/md5.cjs.map +1 -0
- package/dist/worker/md5.d.ts +3 -1
- package/dist/worker/md5.js +2 -25
- package/dist/worker/md5.js.map +1 -0
- package/dist/worker/sodium.cjs +2 -0
- package/dist/worker/sodium.cjs.map +1 -0
- package/dist/worker/sodium.d.ts +6 -3
- package/dist/worker/sodium.js +2 -120
- package/dist/worker/sodium.js.map +1 -0
- package/dist/worker/workerCodes.cjs +254 -0
- package/dist/worker/workerCodes.cjs.map +1 -0
- package/dist/worker/workerCodes.d.ts +4 -2
- package/dist/worker/workerCodes.js +4 -5
- package/dist/worker/workerCodes.js.map +1 -0
- package/dist/zeus/const.cjs +2 -0
- package/dist/zeus/const.cjs.map +1 -0
- package/dist/zeus/const.d.ts +5 -3
- package/dist/zeus/const.js +2 -1286
- package/dist/zeus/const.js.map +1 -0
- package/dist/zeus/index.cjs +5 -0
- package/dist/zeus/index.cjs.map +1 -0
- package/dist/zeus/index.d.ts +80 -78
- package/dist/zeus/index.js +5 -687
- package/dist/zeus/index.js.map +1 -0
- package/package.json +27 -30
package/dist/client/storage.js
CHANGED
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const userAppSession = storeBuddy(`secrecy.user_app_session`, session).init(null);
|
|
4
|
-
const userAppKeys = storeBuddy(`secrecy.user_app_keys`, session).init(null);
|
|
5
|
-
const jwt = storeBuddy(`secrecy.jwt`, session).init(null);
|
|
6
|
-
return {
|
|
7
|
-
userAppKeys,
|
|
8
|
-
userAppSession,
|
|
9
|
-
jwt
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJzdG9yZUJ1ZGR5IiwiZ2V0U3RvcmFnZSIsInNlc3Npb24iLCJ1c2VyQXBwU2Vzc2lvbiIsImluaXQiLCJ1c2VyQXBwS2V5cyIsImp3dCJdLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jbGllbnQvc3RvcmFnZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IEtleVBhaXIgfSBmcm9tIFw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FFL0JFLE9BRitCLENBQVYsQ0FHckJFLElBSHFCLENBR2hCLElBSGdCLENBQXZCO0VBSUEsTUFBTUMsV0FBVyxHQUFHTCxVQUFVLENBQzNCLHVCQUQyQixFQUU1QkUsT0FGNEIsQ0FBVixDQUdsQkUsSUFIa0IsQ0FHYixJQUhhLENBQXBCO0VBSUEsTUFBTUUsR0FBRyxHQUFHTixVQUFVLENBQWlCLGFBQWpCLEVBQStCRSxPQUEvQixDQUFWLENBQWtERSxJQUFsRCxDQUF1RCxJQUF2RCxDQUFaO0VBQ0EsT0FBTztJQUFFQyxXQUFGO0lBQWVGLGNBQWY7SUFBK0JHO0VBQS9CLENBQVA7QUFDRCJ9
|
|
1
|
+
import"../chunk-KMTF2BZE.js";import{storeBuddy as r}from"../utils/store-buddy.js";function i(e){const t=r("secrecy.user_app_session",e).init(null),n=r("secrecy.user_app_keys",e).init(null),s=r("secrecy.jwt",e).init(null);return{userAppKeys:n,userAppSession:t,jwt:s}}export{i as getStorage};
|
|
2
|
+
//# sourceMappingURL=storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/client/storage.ts"],"sourcesContent":["import type { KeyPair } from \"../index.js\";\nimport type { StoreBuddy } from \"../utils/store-buddy.js\";\nimport { storeBuddy } from \"../utils/store-buddy.js\";\n\nexport function getStorage(session?: boolean | undefined): {\n userAppKeys: StoreBuddy<KeyPair | null>;\n userAppSession: StoreBuddy<string | null>;\n jwt: StoreBuddy<string | null>;\n} {\n const userAppSession = storeBuddy<string | null>(\n `secrecy.user_app_session`,\n session\n ).init(null);\n const userAppKeys = storeBuddy<KeyPair | null>(\n `secrecy.user_app_keys`,\n session\n ).init(null);\n const jwt = storeBuddy<string | null>(`secrecy.jwt`, session).init(null);\n return { userAppKeys, userAppSession, jwt };\n}\n"],"mappings":"6BAEA,OAAS,cAAAA,MAAkB,0BAEpB,SAASC,EAAWC,EAIzB,CACA,MAAMC,EAAiBH,EACrB,2BACAE,CACF,EAAE,KAAK,IAAI,EACLE,EAAcJ,EAClB,wBACAE,CACF,EAAE,KAAK,IAAI,EACLG,EAAML,EAA0B,cAAeE,CAAO,EAAE,KAAK,IAAI,EACvE,MAAO,CAAE,YAAAE,EAAa,eAAAD,EAAgB,IAAAE,CAAI,CAC5C","names":["storeBuddy","getStorage","session","userAppSession","userAppKeys","jwt"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";//# sourceMappingURL=File.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { InputType, GraphQLTypes } from '../../zeus/index.js';
|
|
2
|
+
import { fileSelector } from './selectors.js';
|
|
3
|
+
import '../../zeus/const.js';
|
|
4
|
+
|
|
5
|
+
declare type FileMetadata = {
|
|
4
6
|
id: string;
|
|
5
7
|
size: bigint;
|
|
6
8
|
sizeBefore: bigint;
|
|
@@ -8,7 +10,9 @@ export declare type FileMetadata = {
|
|
|
8
10
|
md5Encrypted: string;
|
|
9
11
|
createdAt: Date;
|
|
10
12
|
};
|
|
11
|
-
|
|
13
|
+
declare type InternalFile = FileMetadata & {
|
|
12
14
|
key: string;
|
|
13
15
|
};
|
|
14
|
-
|
|
16
|
+
declare type GQLFile = InputType<GraphQLTypes["File"], typeof fileSelector>;
|
|
17
|
+
|
|
18
|
+
export { FileMetadata, GQLFile, InternalFile };
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export {};
|
|
3
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9GaWxlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgR3JhcGhRTFR5cGVzLCBJbnB1dFR5cGUgfSBmcm9tIFwiLi4vLi4vemV1cy9pbmRleC5qc1wiO1xuaW1wb3J0IHR5cGUgeyBmaWxlU2VsZWN0b3IgfSBmcm9tIFwiLi9zZWxlY3RvcnMuanNcIjtcblxuZXhwb3J0IHR5cGUgRmlsZU1ldGFkYXRhID0ge1xuICBpZDogc3RyaW5nO1xuICBzaXplOiBiaWdpbnQ7XG4gIHNpemVCZWZvcmU6IGJpZ2ludDtcbiAgbWQ1OiBzdHJpbmc7XG4gIG1kNUVuY3J5cHRlZDogc3RyaW5nO1xuICBjcmVhdGVkQXQ6IERhdGU7XG59O1xuXG5leHBvcnQgdHlwZSBJbnRlcm5hbEZpbGUgPSBGaWxlTWV0YWRhdGEgJiB7XG4gIGtleTogc3RyaW5nO1xufTtcblxuZXhwb3J0IHR5cGUgR1FMRmlsZSA9IElucHV0VHlwZTxHcmFwaFFMVHlwZXNbXCJGaWxlXCJdLCB0eXBlb2YgZmlsZVNlbGVjdG9yPjtcbiJdLCJtYXBwaW5ncyI6IiJ9
|
|
1
|
+
//# sourceMappingURL=File.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";//# sourceMappingURL=Inputs.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
declare type ShareFileKeyInput = {
|
|
2
2
|
id: string;
|
|
3
3
|
key: string;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
declare type NameKeyInput = {
|
|
6
6
|
id: string;
|
|
7
7
|
nameKey: string;
|
|
8
8
|
files: ShareFileKeyInput[];
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
declare type ShareNodesInput = {
|
|
11
11
|
nodes: NameKeyInput[];
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
declare type ShareFileInHistoryInput = {
|
|
14
14
|
fileId: string;
|
|
15
15
|
users: ShareFileKeyInput[];
|
|
16
16
|
};
|
|
17
|
+
|
|
18
|
+
export { NameKeyInput, ShareFileInHistoryInput, ShareFileKeyInput, ShareNodesInput };
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export {};
|
|
3
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9JbnB1dHMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgU2hhcmVGaWxlS2V5SW5wdXQgPSB7XG4gIGlkOiBzdHJpbmc7XG4gIGtleTogc3RyaW5nO1xufTtcblxuZXhwb3J0IHR5cGUgTmFtZUtleUlucHV0ID0ge1xuICBpZDogc3RyaW5nO1xuICBuYW1lS2V5OiBzdHJpbmc7XG4gIGZpbGVzOiBTaGFyZUZpbGVLZXlJbnB1dFtdO1xufTtcblxuZXhwb3J0IHR5cGUgU2hhcmVOb2Rlc0lucHV0ID0ge1xuICBub2RlczogTmFtZUtleUlucHV0W107XG59O1xuXG5leHBvcnQgdHlwZSBTaGFyZUZpbGVJbkhpc3RvcnlJbnB1dCA9IHtcbiAgZmlsZUlkOiBzdHJpbmc7XG4gIHVzZXJzOiBTaGFyZUZpbGVLZXlJbnB1dFtdO1xufTtcbiJdLCJtYXBwaW5ncyI6IiJ9
|
|
1
|
+
//# sourceMappingURL=Inputs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";//# sourceMappingURL=Node.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,56 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
pub: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
userApp: {
|
|
14
|
-
user: PublicUser;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare type NodeBreadcrumbItem = {
|
|
18
|
-
id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
pubKey: string;
|
|
21
|
-
};
|
|
22
|
-
export declare type NodeSize = {
|
|
23
|
-
size: bigint;
|
|
24
|
-
sizeBefore: bigint;
|
|
25
|
-
};
|
|
26
|
-
declare type NameKey = {
|
|
27
|
-
nameKey?: string;
|
|
28
|
-
};
|
|
29
|
-
export declare type InternalNodeBreadcrumbItem = NodeBreadcrumbItem & NameKey;
|
|
30
|
-
export declare type Node<T extends NodeBreadcrumbItem = NodeBreadcrumbItem, U extends Record<string, unknown> = Record<string, unknown>> = {
|
|
31
|
-
id: string;
|
|
32
|
-
isFavorite: boolean;
|
|
33
|
-
type: NodeType;
|
|
34
|
-
createdAt: Date;
|
|
35
|
-
deletedAt: Date | null;
|
|
36
|
-
updatedAt: Date;
|
|
37
|
-
sizes: NodeSize;
|
|
38
|
-
name: string;
|
|
39
|
-
breadcrumb: T[];
|
|
40
|
-
createdBy: PublicUser;
|
|
41
|
-
access?: NodeAccess<U>;
|
|
42
|
-
users: [PublicUser, Rights][];
|
|
43
|
-
parentId: string | null;
|
|
44
|
-
currentFileId: string | null;
|
|
45
|
-
};
|
|
46
|
-
export declare type NodeFull<T extends NodeBreadcrumbItem = NodeBreadcrumbItem, U extends Record<string, unknown> = Record<string, unknown>, V extends FileMetadata = FileMetadata> = Node<T, U> & {
|
|
47
|
-
parent: Node<T, U> | null;
|
|
48
|
-
children: Node<T, U>[];
|
|
49
|
-
current?: V;
|
|
50
|
-
history: V[];
|
|
51
|
-
};
|
|
52
|
-
export declare type InternalNode = Node<InternalNodeBreadcrumbItem, NameKey>;
|
|
53
|
-
export declare type InternalNodeFull = NodeFull<InternalNodeBreadcrumbItem, NameKey, InternalFile>;
|
|
54
|
-
export declare type GQLNode = InputType<GraphQLTypes["Node"], typeof nodeSelector>;
|
|
55
|
-
export declare type GQLNodeFull = InputType<GraphQLTypes["Node"], typeof nodeFullSelector>;
|
|
56
|
-
export {};
|
|
1
|
+
import '../../zeus/index.js';
|
|
2
|
+
export { GQLNode, GQLNodeFull, InternalNode, InternalNodeBreadcrumbItem, InternalNodeFull, Node, NodeAccess, NodeBreadcrumbItem, NodeFull, NodeSize } from './index.js';
|
|
3
|
+
import './selectors.js';
|
|
4
|
+
import './File.js';
|
|
5
|
+
import '../../zeus/const.js';
|
|
6
|
+
import '../../crypto/index.js';
|
|
7
|
+
import './UserAppSettings.js';
|
|
8
|
+
import './UserAppNotifications.js';
|
|
9
|
+
import './Inputs.js';
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export {};
|
|
3
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9Ob2RlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgTm9kZVR5cGUsIFJpZ2h0cyB9IGZyb20gXCIuLi8uLi96ZXVzL2luZGV4LmpzXCI7XG5pbXBvcnQgdHlwZSB7IEZpbGVNZXRhZGF0YSwgSW50ZXJuYWxGaWxlLCBQdWJsaWNVc2VyIH0gZnJvbSBcIi4vaW5kZXguanNcIjtcbmltcG9ydCB0eXBlIHsgbm9kZUZ1bGxTZWxlY3Rvciwgbm9kZVNlbGVjdG9yIH0gZnJvbSBcIi4vc2VsZWN0b3JzLmpzXCI7XG5pbXBvcnQgdHlwZSB7IEdyYXBoUUxUeXBlcywgSW5wdXRUeXBlIH0gZnJvbSBcIi4uLy4uL3pldXMvaW5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BHcmFwaFFMVHlwZXNbXCJOb2RlXCJdLFxuICB0eXBlb2Ygbm9kZUZ1bGxTZWxlY3RvclxuPjtcbiJdLCJtYXBwaW5ncyI6IiJ9
|
|
1
|
+
//# sourceMappingURL=Node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";//# sourceMappingURL=UserAppNotifications.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export {};
|
|
3
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9Vc2VyQXBwTm90aWZpY2F0aW9ucy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBVc2VyQXBwTm90aWZpY2F0aW9ucyA9IHtcbiAgZW5hYmxlQWxsOiBib29sZWFuO1xuICBtYWlsOiBib29sZWFuO1xuICBjbG91ZDogYm9vbGVhbjtcbiAgZGlzYWJsZUFsbFVudGlsPzogRGF0ZTtcbn07XG4iXSwibWFwcGluZ3MiOiIifQ==
|
|
1
|
+
//# sourceMappingURL=UserAppNotifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";//# sourceMappingURL=UserAppSettings.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export {};
|
|
3
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9Vc2VyQXBwU2V0dGluZ3MudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgVXNlckFwcFNldHRpbmdzID0ge1xuICBjbG91ZE5vZGVEYXlzRm9yRGVsZXRlOiBudW1iZXI7XG4gIGhpc3RvcnlGaWxlRGF5c0ZvckRlbGV0ZT86IG51bWJlcjtcbiAgaGlzdG9yeU1heEZpbGVDb3VudDogbnVtYmVyO1xufTtcbiJdLCJtYXBwaW5ncyI6IiJ9
|
|
1
|
+
//# sourceMappingURL=UserAppSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _createStarExport(obj) { Object.keys(obj) .filter((key) => key !== "default" && key !== "__esModule") .forEach((key) => { if (exports.hasOwnProperty(key)) { return; } Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]}); }); }var _Filejs = require('./File.js'); _createStarExport(_Filejs);var _Nodejs = require('./Node.js'); _createStarExport(_Nodejs);var _UserAppSettingsjs = require('./UserAppSettings.js'); _createStarExport(_UserAppSettingsjs);var _UserAppNotificationsjs = require('./UserAppNotifications.js'); _createStarExport(_UserAppNotificationsjs);var _Inputsjs = require('./Inputs.js'); _createStarExport(_Inputsjs);
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/client/types/index.ts"],"names":[],"mappings":"AAGA,WAAc,YACd,WAAc,YACd,WAAc,uBACd,WAAc,4BACd,WAAc","sourcesContent":["import type { KeyPair } from \"../../index.js\";\nimport type { InputType, GraphQLTypes } from \"../../zeus/index.js\";\nimport type { mailSelector, userSelector } from \"./selectors.js\";\nexport * from \"./File.js\";\nexport * from \"./Node.js\";\nexport * from \"./UserAppSettings.js\";\nexport * from \"./UserAppNotifications.js\";\nexport * from \"./Inputs.js\";\n\nexport type SecrecyUserApp = {\n keys: KeyPair;\n jwt: string;\n uaSession: string;\n};\n\nexport interface FileContentPart {\n contentUrl: string;\n order: number;\n md5: string;\n}\n\nexport type FilePartResponse = {\n order: number;\n fields: Record<string, string>;\n url: string;\n};\n\nexport type MailFileInput = { id: string; name: string; fileKey: string };\n\nexport type MailIntegrity = {\n id: string;\n hash: string;\n hashKey: string;\n replyTo?: {\n id: string;\n };\n temporaryRecipients: TemporaryMailUser[];\n recipients: PublicUser[];\n};\n\nexport type MailIntegrityDraft = MailIntegrity & {\n recipients: PublicUser[];\n};\n\nexport type TemporaryMailUser = {\n email?: string;\n};\n\nexport type InternalWaitingReceivedMail = {\n sender: PublicUser;\n date: string;\n attachmentsCount: number;\n recipients: PublicUser[];\n temporaryRecipients: TemporaryMailUser[];\n};\n\nexport type WaitingReceivedMail = {\n id: string;\n sender: PublicUser;\n date: Date;\n attachmentsCount: number;\n recipients: PublicUser[];\n temporaryRecipients: TemporaryMailUser[];\n};\n\nexport type MailFile = {\n fileKey: string;\n filename: string;\n file: {\n id: string;\n };\n};\n\nexport type MailType = \"sent\" | \"received\" | \"draft\";\n\nexport type GQLMail = InputType<GraphQLTypes[\"Mail\"], typeof mailSelector>;\n\nexport type InternalReceivedMail = {\n user: {\n receivedMails: GQLMail[];\n };\n};\n\nexport type BaseMail = {\n type: MailType;\n id: string;\n mailIntegrityId: string;\n replyTo?: string;\n body: string;\n subject: string;\n createdAt: Date;\n deletedAt: Date | null;\n openedAt: Date | null;\n isAltered: boolean;\n recipients: Omit<PublicUser, \"publicKey\">[];\n temporaryRecipients: TemporaryMailUser[];\n files: { id: string; name: string; key: string }[];\n};\n\nexport type PublicUser = InputType<GraphQLTypes[\"User\"], typeof userSelector>;\n\nexport interface ReceivedMail extends BaseMail {\n type: \"received\";\n sender: PublicUser;\n}\n\nexport type InternalSentMail = {\n user: {\n sentMails: GQLMail[];\n };\n};\n\nexport type InternalDraftMails = {\n user: {\n draftMails: GQLMail[];\n };\n};\n\nexport interface SentMail extends BaseMail {\n type: \"sent\";\n}\n\nexport interface DraftMail extends BaseMail {\n type: \"draft\";\n}\n\nexport type Mail = DraftMail | SentMail | ReceivedMail;\n\nexport type MailRecipientInput = {\n body: string;\n subject: string;\n recipientId: string;\n files: MailFileInput[];\n};\n"]}
|
|
@@ -1,32 +1,86 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
|
|
1
|
+
import { Rights, NodeType, InputType, GraphQLTypes } from '../../zeus/index.js';
|
|
2
|
+
import { KeyPair } from '../../crypto/index.js';
|
|
3
|
+
import { nodeSelector, nodeFullSelector, mailSelector, userSelector } from './selectors.js';
|
|
4
|
+
import { FileMetadata, InternalFile } from './File.js';
|
|
5
|
+
export { FileMetadata, GQLFile, InternalFile } from './File.js';
|
|
6
|
+
export { UserAppSettings } from './UserAppSettings.js';
|
|
7
|
+
export { UserAppNotifications } from './UserAppNotifications.js';
|
|
8
|
+
export { NameKeyInput, ShareFileInHistoryInput, ShareFileKeyInput, ShareNodesInput } from './Inputs.js';
|
|
9
|
+
import '../../zeus/const.js';
|
|
10
|
+
|
|
11
|
+
declare type NodeAccess<T extends Record<string, unknown> = Record<string, unknown>> = T & {
|
|
12
|
+
rights: Rights;
|
|
13
|
+
isRoot: boolean;
|
|
14
|
+
sharedBy: {
|
|
15
|
+
keyPair?: {
|
|
16
|
+
pub: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
userApp: {
|
|
20
|
+
user: PublicUser;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
declare type NodeBreadcrumbItem = {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
pubKey: string;
|
|
27
|
+
};
|
|
28
|
+
declare type NodeSize = {
|
|
29
|
+
size: bigint;
|
|
30
|
+
sizeBefore: bigint;
|
|
31
|
+
};
|
|
32
|
+
declare type NameKey = {
|
|
33
|
+
nameKey?: string;
|
|
34
|
+
};
|
|
35
|
+
declare type InternalNodeBreadcrumbItem = NodeBreadcrumbItem & NameKey;
|
|
36
|
+
declare type Node<T extends NodeBreadcrumbItem = NodeBreadcrumbItem, U extends Record<string, unknown> = Record<string, unknown>> = {
|
|
37
|
+
id: string;
|
|
38
|
+
isFavorite: boolean;
|
|
39
|
+
type: NodeType;
|
|
40
|
+
createdAt: Date;
|
|
41
|
+
deletedAt: Date | null;
|
|
42
|
+
updatedAt: Date;
|
|
43
|
+
sizes: NodeSize;
|
|
44
|
+
name: string;
|
|
45
|
+
breadcrumb: T[];
|
|
46
|
+
createdBy: PublicUser;
|
|
47
|
+
access?: NodeAccess<U>;
|
|
48
|
+
users: [PublicUser, Rights][];
|
|
49
|
+
parentId: string | null;
|
|
50
|
+
currentFileId: string | null;
|
|
51
|
+
};
|
|
52
|
+
declare type NodeFull<T extends NodeBreadcrumbItem = NodeBreadcrumbItem, U extends Record<string, unknown> = Record<string, unknown>, V extends FileMetadata = FileMetadata> = Node<T, U> & {
|
|
53
|
+
parent: Node<T, U> | null;
|
|
54
|
+
children: Node<T, U>[];
|
|
55
|
+
current?: V;
|
|
56
|
+
history: V[];
|
|
57
|
+
};
|
|
58
|
+
declare type InternalNode = Node<InternalNodeBreadcrumbItem, NameKey>;
|
|
59
|
+
declare type InternalNodeFull = NodeFull<InternalNodeBreadcrumbItem, NameKey, InternalFile>;
|
|
60
|
+
declare type GQLNode = InputType<GraphQLTypes["Node"], typeof nodeSelector>;
|
|
61
|
+
declare type GQLNodeFull = InputType<GraphQLTypes["Node"], typeof nodeFullSelector>;
|
|
62
|
+
|
|
63
|
+
declare type SecrecyUserApp = {
|
|
10
64
|
keys: KeyPair;
|
|
11
65
|
jwt: string;
|
|
12
66
|
uaSession: string;
|
|
13
67
|
};
|
|
14
|
-
|
|
68
|
+
interface FileContentPart {
|
|
15
69
|
contentUrl: string;
|
|
16
70
|
order: number;
|
|
17
71
|
md5: string;
|
|
18
72
|
}
|
|
19
|
-
|
|
73
|
+
declare type FilePartResponse = {
|
|
20
74
|
order: number;
|
|
21
75
|
fields: Record<string, string>;
|
|
22
76
|
url: string;
|
|
23
77
|
};
|
|
24
|
-
|
|
78
|
+
declare type MailFileInput = {
|
|
25
79
|
id: string;
|
|
26
80
|
name: string;
|
|
27
81
|
fileKey: string;
|
|
28
82
|
};
|
|
29
|
-
|
|
83
|
+
declare type MailIntegrity = {
|
|
30
84
|
id: string;
|
|
31
85
|
hash: string;
|
|
32
86
|
hashKey: string;
|
|
@@ -36,20 +90,20 @@ export declare type MailIntegrity = {
|
|
|
36
90
|
temporaryRecipients: TemporaryMailUser[];
|
|
37
91
|
recipients: PublicUser[];
|
|
38
92
|
};
|
|
39
|
-
|
|
93
|
+
declare type MailIntegrityDraft = MailIntegrity & {
|
|
40
94
|
recipients: PublicUser[];
|
|
41
95
|
};
|
|
42
|
-
|
|
96
|
+
declare type TemporaryMailUser = {
|
|
43
97
|
email?: string;
|
|
44
98
|
};
|
|
45
|
-
|
|
99
|
+
declare type InternalWaitingReceivedMail = {
|
|
46
100
|
sender: PublicUser;
|
|
47
101
|
date: string;
|
|
48
102
|
attachmentsCount: number;
|
|
49
103
|
recipients: PublicUser[];
|
|
50
104
|
temporaryRecipients: TemporaryMailUser[];
|
|
51
105
|
};
|
|
52
|
-
|
|
106
|
+
declare type WaitingReceivedMail = {
|
|
53
107
|
id: string;
|
|
54
108
|
sender: PublicUser;
|
|
55
109
|
date: Date;
|
|
@@ -57,21 +111,21 @@ export declare type WaitingReceivedMail = {
|
|
|
57
111
|
recipients: PublicUser[];
|
|
58
112
|
temporaryRecipients: TemporaryMailUser[];
|
|
59
113
|
};
|
|
60
|
-
|
|
114
|
+
declare type MailFile = {
|
|
61
115
|
fileKey: string;
|
|
62
116
|
filename: string;
|
|
63
117
|
file: {
|
|
64
118
|
id: string;
|
|
65
119
|
};
|
|
66
120
|
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
121
|
+
declare type MailType = "sent" | "received" | "draft";
|
|
122
|
+
declare type GQLMail = InputType<GraphQLTypes["Mail"], typeof mailSelector>;
|
|
123
|
+
declare type InternalReceivedMail = {
|
|
70
124
|
user: {
|
|
71
125
|
receivedMails: GQLMail[];
|
|
72
126
|
};
|
|
73
127
|
};
|
|
74
|
-
|
|
128
|
+
declare type BaseMail = {
|
|
75
129
|
type: MailType;
|
|
76
130
|
id: string;
|
|
77
131
|
mailIntegrityId: string;
|
|
@@ -90,31 +144,33 @@ export declare type BaseMail = {
|
|
|
90
144
|
key: string;
|
|
91
145
|
}[];
|
|
92
146
|
};
|
|
93
|
-
|
|
94
|
-
|
|
147
|
+
declare type PublicUser = InputType<GraphQLTypes["User"], typeof userSelector>;
|
|
148
|
+
interface ReceivedMail extends BaseMail {
|
|
95
149
|
type: "received";
|
|
96
150
|
sender: PublicUser;
|
|
97
151
|
}
|
|
98
|
-
|
|
152
|
+
declare type InternalSentMail = {
|
|
99
153
|
user: {
|
|
100
154
|
sentMails: GQLMail[];
|
|
101
155
|
};
|
|
102
156
|
};
|
|
103
|
-
|
|
157
|
+
declare type InternalDraftMails = {
|
|
104
158
|
user: {
|
|
105
159
|
draftMails: GQLMail[];
|
|
106
160
|
};
|
|
107
161
|
};
|
|
108
|
-
|
|
162
|
+
interface SentMail extends BaseMail {
|
|
109
163
|
type: "sent";
|
|
110
164
|
}
|
|
111
|
-
|
|
165
|
+
interface DraftMail extends BaseMail {
|
|
112
166
|
type: "draft";
|
|
113
167
|
}
|
|
114
|
-
|
|
115
|
-
|
|
168
|
+
declare type Mail = DraftMail | SentMail | ReceivedMail;
|
|
169
|
+
declare type MailRecipientInput = {
|
|
116
170
|
body: string;
|
|
117
171
|
subject: string;
|
|
118
172
|
recipientId: string;
|
|
119
173
|
files: MailFileInput[];
|
|
120
174
|
};
|
|
175
|
+
|
|
176
|
+
export { BaseMail, DraftMail, FileContentPart, FilePartResponse, GQLMail, GQLNode, GQLNodeFull, InternalDraftMails, InternalNode, InternalNodeBreadcrumbItem, InternalNodeFull, InternalReceivedMail, InternalSentMail, InternalWaitingReceivedMail, Mail, MailFile, MailFileInput, MailIntegrity, MailIntegrityDraft, MailRecipientInput, MailType, Node, NodeAccess, NodeBreadcrumbItem, NodeFull, NodeSize, PublicUser, ReceivedMail, SecrecyUserApp, SentMail, TemporaryMailUser, WaitingReceivedMail };
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
export * from "./UserAppSettings.js";
|
|
4
|
-
export * from "./UserAppNotifications.js";
|
|
5
|
-
export * from "./Inputs.js";
|
|
6
|
-
export {};
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9pbmRleC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IEtleVBhaXIgfSBmcm9tIFwiLi4vLi4vaW5kZXguanNcIjtcbmltcG9ydCB0eXBlIHsgSW5wdXRUeXBlLCBHcmFwaFFMVHlwZXMgfSBmcm9tIFwiLi4vLi4vemV1cy9pbmRleC5qc1wiO1xuaW1wb3J0IHR5cGUgeyBtYWlsU2VsZWN0b3IsIHVzZXJTZWxlY3RvciB9IGZyb20gXCIuL3NlbGVjdG9ycy5qc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vRmlsZS5qc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vTm9kZS5qc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vVXNlckFwcFNldHRpbmdzLmpzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9Vc2VyQXBwTm90aWZpY2F0aW9ucy5qc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IHwgU2VudE1haWwgfCBSZWNlaXZlZE1haWw7XG5cbmV4cG9ydCB0eXBlIE1haWxSZWNpcGllbnRJbnB1dCA9IHtcbiAgYm9keTogc3RyaW5nO1xuICBzdWJqZWN0OiBzdHJpbmc7XG4gIHJlY2lwaWVudElkOiBzdHJpbmc7XG4gIGZpbGVzOiBNYWlsRmlsZUlucHV0W107XG59O1xuIl0sIm1hcHBpbmdzIjoiQUFHQSxjQUFjLFdBQWQ7QUFDQSxjQUFjLFdBQWQ7QUFDQSxjQUFjLHNCQUFkO0FBQ0EsY0FBYywyQkFBZDtBQUNBLGNBQWMsYUFBZCJ9
|
|
1
|
+
export*from"./File.js";export*from"./Node.js";export*from"./UserAppSettings.js";export*from"./UserAppNotifications.js";export*from"./Inputs.js";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/client/types/index.ts"],"sourcesContent":["import type { KeyPair } from \"../../index.js\";\nimport type { InputType, GraphQLTypes } from \"../../zeus/index.js\";\nimport type { mailSelector, userSelector } from \"./selectors.js\";\nexport * from \"./File.js\";\nexport * from \"./Node.js\";\nexport * from \"./UserAppSettings.js\";\nexport * from \"./UserAppNotifications.js\";\nexport * from \"./Inputs.js\";\n\nexport type SecrecyUserApp = {\n keys: KeyPair;\n jwt: string;\n uaSession: string;\n};\n\nexport interface FileContentPart {\n contentUrl: string;\n order: number;\n md5: string;\n}\n\nexport type FilePartResponse = {\n order: number;\n fields: Record<string, string>;\n url: string;\n};\n\nexport type MailFileInput = { id: string; name: string; fileKey: string };\n\nexport type MailIntegrity = {\n id: string;\n hash: string;\n hashKey: string;\n replyTo?: {\n id: string;\n };\n temporaryRecipients: TemporaryMailUser[];\n recipients: PublicUser[];\n};\n\nexport type MailIntegrityDraft = MailIntegrity & {\n recipients: PublicUser[];\n};\n\nexport type TemporaryMailUser = {\n email?: string;\n};\n\nexport type InternalWaitingReceivedMail = {\n sender: PublicUser;\n date: string;\n attachmentsCount: number;\n recipients: PublicUser[];\n temporaryRecipients: TemporaryMailUser[];\n};\n\nexport type WaitingReceivedMail = {\n id: string;\n sender: PublicUser;\n date: Date;\n attachmentsCount: number;\n recipients: PublicUser[];\n temporaryRecipients: TemporaryMailUser[];\n};\n\nexport type MailFile = {\n fileKey: string;\n filename: string;\n file: {\n id: string;\n };\n};\n\nexport type MailType = \"sent\" | \"received\" | \"draft\";\n\nexport type GQLMail = InputType<GraphQLTypes[\"Mail\"], typeof mailSelector>;\n\nexport type InternalReceivedMail = {\n user: {\n receivedMails: GQLMail[];\n };\n};\n\nexport type BaseMail = {\n type: MailType;\n id: string;\n mailIntegrityId: string;\n replyTo?: string;\n body: string;\n subject: string;\n createdAt: Date;\n deletedAt: Date | null;\n openedAt: Date | null;\n isAltered: boolean;\n recipients: Omit<PublicUser, \"publicKey\">[];\n temporaryRecipients: TemporaryMailUser[];\n files: { id: string; name: string; key: string }[];\n};\n\nexport type PublicUser = InputType<GraphQLTypes[\"User\"], typeof userSelector>;\n\nexport interface ReceivedMail extends BaseMail {\n type: \"received\";\n sender: PublicUser;\n}\n\nexport type InternalSentMail = {\n user: {\n sentMails: GQLMail[];\n };\n};\n\nexport type InternalDraftMails = {\n user: {\n draftMails: GQLMail[];\n };\n};\n\nexport interface SentMail extends BaseMail {\n type: \"sent\";\n}\n\nexport interface DraftMail extends BaseMail {\n type: \"draft\";\n}\n\nexport type Mail = DraftMail | SentMail | ReceivedMail;\n\nexport type MailRecipientInput = {\n body: string;\n subject: string;\n recipientId: string;\n files: MailFileInput[];\n};\n"],"mappings":"AAGA,WAAc,YACd,WAAc,YACd,WAAc,uBACd,WAAc,4BACd,WAAc","names":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5WPCTUWHcjs = require('../../chunk-5WPCTUWH.cjs');var _indexjs = require('../../zeus/index.js');const s=_indexjs.Selector.call(void 0, "File")({id:!0,size:!0,sizeBefore:!0,createdAt:!0,md5:!0,md5Encrypted:!0,access:{key:!0,sharedBy:{keyPair:{pub:!0}}}}),e= exports.userSelector =_indexjs.Selector.call(void 0, "User")({id:!0,firstname:!0,lastname:!0,email:!0,publicKey:!0}),i= exports.nodeSelector =_indexjs.Selector.call(void 0, "Node")({id:!0,isFavorite:!0,type:!0,createdAt:!0,deletedAt:!0,createdBy:{user:e},sizes:{size:!0,sizeBefore:!0},updatedAt:!0,name:!0,access:{rights:!0,isRoot:!0,nameKey:!0,sharedBy:{keyPair:{pub:!0}},userApp:{user:e}},accesses:{rights:!0,isRoot:!0,nameKey:!0,sharedBy:{keyPair:{pub:!0}},userApp:{user:e}},breadcrumb:{id:!0,name:!0,nameKey:!0,pubKey:!0},parentId:!0,currentFileId:!0}),c= exports.nodeFullSelector =_indexjs.Selector.call(void 0, "Node")(_chunk5WPCTUWHcjs.b.call(void 0, _chunk5WPCTUWHcjs.a.call(void 0, {},i),{parent:i,children:i,history:s,current:s})),d= exports.mailSelector =_indexjs.Selector.call(void 0, "Mail")({id:!0,type:!0,body:!0,subject:!0,openedAt:!0,createdAt:!0,deletedAt:!0,recipients:_chunk5WPCTUWHcjs.b.call(void 0, _chunk5WPCTUWHcjs.a.call(void 0, {},e),{publicKey:!1}),recipient:_chunk5WPCTUWHcjs.b.call(void 0, _chunk5WPCTUWHcjs.a.call(void 0, {},e),{publicKey:!1}),sender:e,mailIntegrity:{id:!0,hash:!0,hashKey:!0,replyTo:{id:!0},temporaryRecipients:{email:!0},recipients:_chunk5WPCTUWHcjs.b.call(void 0, _chunk5WPCTUWHcjs.a.call(void 0, {},e),{publicKey:!1})},mailIntegrityDraft:{id:!0,hash:!0,hashKey:!0,replyTo:{id:!0},temporaryRecipients:{email:!0},recipients:_chunk5WPCTUWHcjs.b.call(void 0, _chunk5WPCTUWHcjs.a.call(void 0, {},e),{publicKey:!1})},files:{fileKey:!0,filename:!0,file:{id:!0}}});exports.fileSelector = s; exports.mailSelector = d; exports.nodeFullSelector = c; exports.nodeSelector = i; exports.userSelector = e;
|
|
2
|
+
//# sourceMappingURL=selectors.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/client/types/selectors.ts"],"names":["Selector","fileSelector","userSelector","nodeSelector","nodeFullSelector","__spreadProps","__spreadValues","mailSelector"],"mappings":"oDAAA,OAAS,YAAAA,MAAgB,sBAElB,MAAMC,EAAeD,EAAS,MAAM,EAAE,CAC3C,GAAI,GACJ,KAAM,GACN,WAAY,GACZ,UAAW,GACX,IAAK,GACL,aAAc,GACd,OAAQ,CACN,IAAK,GACL,SAAU,CACR,QAAS,CACP,IAAK,EACP,CACF,CACF,CACF,CAAC,EAEYE,EAAeF,EAAS,MAAM,EAAE,CAC3C,GAAI,GACJ,UAAW,GACX,SAAU,GACV,MAAO,GACP,UAAW,EACb,CAAC,EAEYG,EAAeH,EAAS,MAAM,EAAE,CAC3C,GAAI,GACJ,WAAY,GACZ,KAAM,GACN,UAAW,GACX,UAAW,GACX,UAAW,CACT,KAAME,CACR,EACA,MAAO,CACL,KAAM,GACN,WAAY,EACd,EACA,UAAW,GACX,KAAM,GACN,OAAQ,CACN,OAAQ,GACR,OAAQ,GACR,QAAS,GACT,SAAU,CACR,QAAS,CACP,IAAK,EACP,CACF,EACA,QAAS,CACP,KAAMA,CACR,CACF,EACA,SAAU,CACR,OAAQ,GACR,OAAQ,GACR,QAAS,GACT,SAAU,CACR,QAAS,CACP,IAAK,EACP,CACF,EACA,QAAS,CACP,KAAMA,CACR,CACF,EACA,WAAY,CACV,GAAI,GACJ,KAAM,GACN,QAAS,GACT,OAAQ,EACV,EACA,SAAU,GACV,cAAe,EACjB,CAAC,EAEYE,EAAmBJ,EAAS,MAAM,EAAEK,EAAAC,EAAA,GAC5CH,GAD4C,CAE/C,OAAQA,EACR,SAAUA,EACV,QAASF,EACT,QAASA,CACX,EAAC,EAEYM,EAAeP,EAAS,MAAM,EAAE,CAC3C,GAAI,GACJ,KAAM,GACN,KAAM,GACN,QAAS,GACT,SAAU,GACV,UAAW,GACX,UAAW,GACX,WAAYK,EAAAC,EAAA,GACPJ,GADO,CAEV,UAAW,EACb,GACA,UAAWG,EAAAC,EAAA,GACNJ,GADM,CAET,UAAW,EACb,GACA,OAAQA,EACR,cAAe,CACb,GAAI,GACJ,KAAM,GACN,QAAS,GACT,QAAS,CACP,GAAI,EACN,EACA,oBAAqB,CACnB,MAAO,EACT,EACA,WAAYG,EAAAC,EAAA,GACPJ,GADO,CAEV,UAAW,EACb,EACF,EACA,mBAAoB,CAClB,GAAI,GACJ,KAAM,GACN,QAAS,GACT,QAAS,CACP,GAAI,EACN,EACA,oBAAqB,CACnB,MAAO,EACT,EACA,WAAYG,EAAAC,EAAA,GACPJ,GADO,CAEV,UAAW,EACb,EACF,EACA,MAAO,CACL,QAAS,GACT,SAAU,GACV,KAAM,CACJ,GAAI,EACN,CACF,CACF,CAAC","sourcesContent":["import { Selector } from \"../../zeus/index.js\";\n\nexport const fileSelector = Selector(\"File\")({\n id: true,\n size: true,\n sizeBefore: true,\n createdAt: true,\n md5: true,\n md5Encrypted: true,\n access: {\n key: true,\n sharedBy: {\n keyPair: {\n pub: true\n }\n }\n }\n});\n\nexport const userSelector = Selector(\"User\")({\n id: true,\n firstname: true,\n lastname: true,\n email: true,\n publicKey: true\n});\n\nexport const nodeSelector = Selector(\"Node\")({\n id: true,\n isFavorite: true,\n type: true,\n createdAt: true,\n deletedAt: true,\n createdBy: {\n user: userSelector\n },\n sizes: {\n size: true,\n sizeBefore: true\n },\n updatedAt: true,\n name: true,\n access: {\n rights: true,\n isRoot: true,\n nameKey: true,\n sharedBy: {\n keyPair: {\n pub: true\n }\n },\n userApp: {\n user: userSelector\n }\n },\n accesses: {\n rights: true,\n isRoot: true,\n nameKey: true,\n sharedBy: {\n keyPair: {\n pub: true\n }\n },\n userApp: {\n user: userSelector\n }\n },\n breadcrumb: {\n id: true,\n name: true,\n nameKey: true,\n pubKey: true\n },\n parentId: true,\n currentFileId: true\n});\n\nexport const nodeFullSelector = Selector(\"Node\")({\n ...nodeSelector,\n parent: nodeSelector,\n children: nodeSelector,\n history: fileSelector,\n current: fileSelector\n});\n\nexport const mailSelector = Selector(\"Mail\")({\n id: true,\n type: true,\n body: true,\n subject: true,\n openedAt: true,\n createdAt: true,\n deletedAt: true,\n recipients: {\n ...userSelector,\n publicKey: false\n },\n recipient: {\n ...userSelector,\n publicKey: false\n },\n sender: userSelector,\n mailIntegrity: {\n id: true,\n hash: true,\n hashKey: true,\n replyTo: {\n id: true\n },\n temporaryRecipients: {\n email: true\n },\n recipients: {\n ...userSelector,\n publicKey: false\n }\n },\n mailIntegrityDraft: {\n id: true,\n hash: true,\n hashKey: true,\n replyTo: {\n id: true\n },\n temporaryRecipients: {\n email: true\n },\n recipients: {\n ...userSelector,\n publicKey: false\n }\n },\n files: {\n fileKey: true,\n filename: true,\n file: {\n id: true\n }\n }\n});\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
declare const fileSelector: {
|
|
2
2
|
id: true;
|
|
3
3
|
size: true;
|
|
4
4
|
sizeBefore: true;
|
|
@@ -14,14 +14,14 @@ export declare const fileSelector: {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
declare const userSelector: {
|
|
18
18
|
id: true;
|
|
19
19
|
firstname: true;
|
|
20
20
|
lastname: true;
|
|
21
21
|
email: true;
|
|
22
22
|
publicKey: true;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
declare const nodeSelector: {
|
|
25
25
|
id: true;
|
|
26
26
|
isFavorite: true;
|
|
27
27
|
type: true;
|
|
@@ -89,7 +89,7 @@ export declare const nodeSelector: {
|
|
|
89
89
|
parentId: true;
|
|
90
90
|
currentFileId: true;
|
|
91
91
|
};
|
|
92
|
-
|
|
92
|
+
declare const nodeFullSelector: {
|
|
93
93
|
parent: {
|
|
94
94
|
id: true;
|
|
95
95
|
isFavorite: true;
|
|
@@ -325,7 +325,7 @@ export declare const nodeFullSelector: {
|
|
|
325
325
|
parentId: true;
|
|
326
326
|
currentFileId: true;
|
|
327
327
|
};
|
|
328
|
-
|
|
328
|
+
declare const mailSelector: {
|
|
329
329
|
id: true;
|
|
330
330
|
type: true;
|
|
331
331
|
body: true;
|
|
@@ -398,3 +398,5 @@ export declare const mailSelector: {
|
|
|
398
398
|
};
|
|
399
399
|
};
|
|
400
400
|
};
|
|
401
|
+
|
|
402
|
+
export { fileSelector, mailSelector, nodeFullSelector, nodeSelector, userSelector };
|