Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / testing / builders / address.ts
blobdae9e69a8106a8d438c050a4a06c695e12615abe
1 import { Address, AddressKey } from '@proton/shared/lib/interfaces';
3 export const buildAddress = (value?: Partial<Address>): Address => {
4     return {
5         CatchAll: false,
6         ID: 'YC-yr6jeFLCSwO5DuGBxGYMSHesNSgl3FcIZ-ITJtvTu2w6gBAmGnufX8Hnl0TK4P5p2VOPJ3kVcjHBSj9hQKw==',
7         DomainID: 'l8vWAXHBQmv0u7OVtPbcqMa4iwQaBqowINSQjPrxAr-Da8fVPKUkUcqAq30_BCxj1X0nW70HQRmAa-rIvzmKUA==',
8         Email: 'jovan@proton.me',
9         Status: 0,
10         Type: 2,
11         Receive: 0,
12         Send: 0,
13         DisplayName: 'Jovan',
14         Signature: '<div>pred&gt;&lt;posle</div>',
15         Order: 37,
16         Priority: 37,
17         HasKeys: 1,
18         Keys: [
19             {
20                 ID: 'Rw8hqmbcdWaSfNy2lxbJ54xDlwFvUtYbyTK4YPva6Gw_WWQ6yMOvOsRF_a-v5ddOP2fsTv-vX-ZM0R_JdKSUGg==',
21                 Primary: 1,
22                 Flags: 3,
23                 Fingerprint: '6afee2a00d36edbf42f7f28c332d35bb9d2fce91',
24                 Fingerprints: ['6afee2a00d36edbf42f7f28c332d35bb9d2fce91', 'a28a3964196a4fe0a0dcb7f10ffa6f0097158327'],
25                 PublicKey:
26                     '-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: ProtonMail\n\nxsBNBFrPQ8MBCACI3P2NU+79ShFa9pmdXHHvjR9pMa7p/PzGBqb8psH5ZTbA\ntPUECvBNsdGvH6/WwhijwphZuNufe6h3t1fPfnE01oM9i3DLZaOgIC9/Iose\nOkhA0OkHGScpuI4YqtFu6hYyVqxV5X5DruJhrC2dkp2M8eEhn/ZuWFa5VxaZ\nA3XJYbM8NLqr5fR1nlFnAug3FGfqQweTDvVvOKDUSkvi6pbRGdaB5LlaB5gX\npBd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vzpElNAf+\nMcUpuiSnz6REc5WOEow3Ti9OF1kBgN5wvGGlZmOj+XkDnQZqpPdLn+wMyhU7\n0hXHE0z9qkPSWRNqzJdIMeQ+kX/ML5dw368SXX1v/udviqPEvu9nhoMsQw7S\naSt/vPjPjwVMIn8s4BTzYYtBzDnzqFF5xgzPIKZQtheLxcQqS8BA2oUkviNy\nsoSHnW63fIgV48GDGP7XMBi3MtSSngLRQUjVmbhAP3mbyrGxMyWwrxaOj1wg\nCJu2HCNVKwIy7EgKdT2D+jBfa0scDVPTkQAxAVw2JnMYeoqWAebqJXSKDAZ5\nU+5l/+i8l586tFJmg6sfC8pJYoSQsvQ4JManm5YjgA==\n=Gxhi\n-----END PGP PUBLIC KEY BLOCK-----\n',
27                 Active: 1,
28                 Version: 3,
29                 PrivateKey:
30                     '-----BEGIN PGP PRIVATE KEY BLOCK-----\nVersion: ProtonMail\n\nxcMGBFrPQ8MBCACI3P2NU+79ShFa9pmdXHHvjR9pMa7p/PzGBqb8psH5ZTbA\ntPUECvBNsdGvH6/WwhijwphZuNufe6h3t1fPfnE01oM9i3DLZaOgIC9/Iose\nOkhA0OkHGScpuI4YqtFu6hYyVqxV5X5DruJhrC2dkp2M8eEhn/ZuWFa5VxaZ\nA3XJYbM8NLqr5fR1nlFnAug3FGfqQweTDvVvOKDUSkvi6pbRGdaB5LlaB5gX\npBdCVaGdoHEE/c3pnXgJLKtOClufEpyzTIc4CwoKizwXjHUxD9DM2S9Tt5Ce\nBcyZ9zqnmuey6d2sE2/Dh+KtF0HQkHHVGWiuya3dmeD2GXBftG3c07UfABEB\nAAH+CQMI5T7OMjFa84ZgpN3ZCHLO0oOxv091UU1inLCyDSN9omjSgkGLN2z0\ni4geeJcPvjsVSCAcUm51aW1j1JZPwOPdvu9MaUCRn7/9Uq0K+LtcPZlMJzJE\nmxe09CgxJSjaKEF2mMpySLAArGd8k/ZixOTe1xERPZKl0z7vkKXSYAtpzUgV\n+tQdQJRLDMSJY5qc30AF1d4wv8K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iRa+bzmmE0W6lPX\nPgm5COKkRmfovDtgOoUffvBi9aEG6BgxtkXY1r1H2Jf2mmqKBPNJirzVdvJ5\neEO1TdgnHLu8caXeofBQgoBa5ObfolpSIMFLsBWVD8kPr4jBPKifbF+3SjZ9\n15lhyQa+AE/Z0+7HL/xdQ5V81cGZiUvmpv0thZE80x8j2dMrovWyPc5bD/gW\n0xDZlZAy++fAd66aYSPjFaSlJ+/TFmWoeyMPe0cxYvY5c7o9dZPzWUJ/UeQe\n99J4AcvL3ORCg/TowGVcvWDvE9ib4D3ZjcP+sPhhidmqjAjw9yTbaCHLyx6n\nfA5hwdPFO9vCGnBVwarx7Dqyjr02ICxzpIHicPqeBimrT52XKTPo9TP+a767\nyVrRZf0C08jWkR128bfSivn2axlgj/B6Pj8NW27WlEC8\n=odVa\n-----END PGP MESSAGE-----\n',
32                 Signature:
33                     '-----BEGIN PGP SIGNATURE-----\nVersion: ProtonMail\n\nwsBzBAEBCAAGBQJhl45HACEJEMO1ZjhE3f0jFiEEmo5cq93ZoSWYGoi3w7Vm\nOETd/SMGMwgAhM/J/ZniEw+eXk9zOPYSuk7muhG/OOVj42RqXNM151Dhe3qA\ncUg4KX1RahoMWEIasegw062xtancNwpE9xm0yO4/UaccVe6x3sucIGRcIlUR\nxEMsu843sl5G00m6ajras3QNCaKm7AcPatiQqL1aVTbIuVR/lF/TSo29BsA6\nMfC7LObXLP8zU89/88u879gW+Vsfnt9m/lRSPEU2bgEVCGWvSP3huoExH938\nHgWRtTd+ySe+CaGCPFL0YjYdBL6nQi4oQRcQTXWJkG+DFbISR6AaRBLyxxMt\nDlCl8izyvBov0jYeoblyeEFDsTU2Fy8OnYGgYP/LITK71t0KkimPcw==\n=U6I7\n-----END PGP SIGNATURE-----\n',
34             } as AddressKey,
35         ],
36         SignedKeyList: null,
37         ProtonMX: true,
38         ConfirmationState: 1,
39         Permissions: 7,
40         ...value,
41     };