Changeset View
Changeset View
Standalone View
Standalone View
native/schema/CommCoreModuleSchema.js
Show All 19 Lines | |||||
type ClientDBStore = { | type ClientDBStore = { | ||||
+messages: $ReadOnlyArray<ClientDBMessageInfo>, | +messages: $ReadOnlyArray<ClientDBMessageInfo>, | ||||
+drafts: $ReadOnlyArray<ClientDBDraftInfo>, | +drafts: $ReadOnlyArray<ClientDBDraftInfo>, | ||||
+threads: $ReadOnlyArray<ClientDBThreadInfo>, | +threads: $ReadOnlyArray<ClientDBThreadInfo>, | ||||
}; | }; | ||||
type ClientPublicKeys = { | type ClientPublicKeys = { | ||||
+primaryIdentityPublicKeys: { | |||||
+ed25519: string, | |||||
+curve25519: string, | +curve25519: string, | ||||
}, | |||||
+notificationIdentityPublicKeys: { | |||||
+ed25519: string, | +ed25519: string, | ||||
+curve25519: string, | |||||
}, | |||||
}; | }; | ||||
export interface Spec extends TurboModule { | export interface Spec extends TurboModule { | ||||
+getDraft: (key: string) => Promise<string>; | +getDraft: (key: string) => Promise<string>; | ||||
+updateDraft: (key: string, text: string) => Promise<boolean>; | +updateDraft: (key: string, text: string) => Promise<boolean>; | ||||
+moveDraft: (oldKey: string, newKey: string) => Promise<boolean>; | +moveDraft: (oldKey: string, newKey: string) => Promise<boolean>; | ||||
+getClientDBStore: () => Promise<ClientDBStore>; | +getClientDBStore: () => Promise<ClientDBStore>; | ||||
+removeAllDrafts: () => Promise<void>; | +removeAllDrafts: () => Promise<void>; | ||||
Show All 36 Lines |