Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / redux-shared-store / sharedReducers.ts
blob70b855deba50bb5f250cf8ed11688107f38e7956
1 import {
2     addressKeysReducer,
3     addressesReducer,
4     domainsReducer,
5     groupMembersReducer,
6     groupMembershipsReducer,
7     groupsReducer,
8     inactiveKeysReducer,
9     memberReducer,
10     membersReducer,
11     organizationKeyReducer,
12     organizationReducer,
13     organizationThemeSlice,
14     paymentStatusReducer,
15     plansReducer,
16     protonDomainsReducer,
17     scheduleCallReducer,
18     securityCheckupSlice,
19     subscriptionReducer,
20     userInvitationsReducer,
21     userKeysReducer,
22     userReducer,
23     userSettingsReducer,
24     vpnServersCountReducer,
25     welcomeFlagsReducer,
26 } from '@proton/account';
27 import { featuresReducer } from '@proton/features';
28 import {
29     categoriesReducer,
30     contactEmailsReducer,
31     contactReducer,
32     contactsReducer,
33     importerConfigReducer,
34     mailSettingsReducer,
35 } from '@proton/mail';
36 import { selectPersistModel } from '@proton/redux-utilities';
38 export const sharedReducers = {
39     ...userReducer,
40     ...userKeysReducer,
41     ...plansReducer,
42     ...addressesReducer,
43     ...addressKeysReducer,
44     inactiveKeys: inactiveKeysReducer,
45     ...userSettingsReducer,
46     ...mailSettingsReducer,
47     ...subscriptionReducer,
48     ...paymentStatusReducer,
49     ...organizationReducer,
50     ...organizationKeyReducer,
51     ...protonDomainsReducer,
52     ...domainsReducer,
53     organizationTheme: organizationThemeSlice.reducer,
54     ...userInvitationsReducer,
55     ...contactReducer,
56     ...contactsReducer,
57     ...contactEmailsReducer,
58     ...categoriesReducer,
59     ...importerConfigReducer,
60     ...vpnServersCountReducer,
61     ...welcomeFlagsReducer,
62     ...memberReducer,
63     ...membersReducer,
64     ...scheduleCallReducer,
65     ...groupsReducer,
66     ...groupMembersReducer,
67     ...groupMembershipsReducer,
68     securityCheckup: securityCheckupSlice.reducer,
69     features: featuresReducer.reducer,
72 export const sharedPersistReducer: Partial<{ [key in keyof typeof sharedReducers]: any }> = {
73     user: selectPersistModel,
74     addresses: selectPersistModel,
75     userSettings: selectPersistModel,
76     mailSettings: selectPersistModel,
77     subscription: selectPersistModel,
78     contacts: selectPersistModel,
79     contactEmails: selectPersistModel,
80     plans: selectPersistModel,
81     categories: selectPersistModel,
82     organization: selectPersistModel,
83     userInvitations: selectPersistModel,
84     vpnServersCount: selectPersistModel,
85     protonDomains: selectPersistModel,
86     domains: selectPersistModel,
87     features: (state: any) => state,