3434 connect settingsaccountsemails to the backend (#3584)

* wip

* wip

* update sync settings

* fix key in map

* connect email visibility to backend

* finished

* improve typing
This commit is contained in:
bosiraphael
2024-01-22 18:29:14 +01:00
committed by GitHub
parent 062bbd57a3
commit 6aad59d0be
13 changed files with 137 additions and 68 deletions

View File

@ -0,0 +1,15 @@
import { MessageChannel } from './MessageChannel';
type MessageChannelConnection = { edges: [MessageChannelEdge] };
type MessageChannelEdge = { node: MessageChannel };
export type ConnectedAccount = {
id: string;
handle: string;
provider: string;
accessToken: string;
refreshToken: string;
accountOwnerId: string;
lastSyncHistoryId: string;
messageChannels: MessageChannelConnection;
};

View File

@ -1,6 +1,6 @@
import { InboxSettingsVisibilityValue } from '@/settings/accounts/components/SettingsAccountsInboxSettingsVisibilitySection';
export type Account = {
export type MessageChannel = {
id: string;
handle: string;
isContactAutoCreationEnabled?: boolean;