Changeset View
Changeset View
Standalone View
Standalone View
native/schema/CommCoreModuleSchema.js
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | export interface Spec extends TurboModule { | ||||
) => Promise<void>; | ) => Promise<void>; | ||||
+processThreadStoreOperationsSync: ( | +processThreadStoreOperationsSync: ( | ||||
operations: $ReadOnlyArray<ClientDBThreadStoreOperation>, | operations: $ReadOnlyArray<ClientDBThreadStoreOperation>, | ||||
) => void; | ) => void; | ||||
+initializeCryptoAccount: (userId: string) => Promise<string>; | +initializeCryptoAccount: (userId: string) => Promise<string>; | ||||
+getUserPublicKey: () => Promise<ClientPublicKeys>; | +getUserPublicKey: () => Promise<ClientPublicKeys>; | ||||
+getUserOneTimeKeys: () => Promise<string>; | +getUserOneTimeKeys: () => Promise<string>; | ||||
+getCodeVersion: () => number; | +getCodeVersion: () => number; | ||||
+terminate: () => void; | |||||
+setNotifyToken: (token: string) => Promise<void>; | +setNotifyToken: (token: string) => Promise<void>; | ||||
+clearNotifyToken: () => Promise<void>; | +clearNotifyToken: () => Promise<void>; | ||||
+setCurrentUserID: (userID: string) => Promise<void>; | +setCurrentUserID: (userID: string) => Promise<void>; | ||||
+getCurrentUserID: () => Promise<string>; | +getCurrentUserID: () => Promise<string>; | ||||
+setDeviceID: (deviceType: string) => Promise<string>; | +setDeviceID: (deviceType: string) => Promise<string>; | ||||
+getDeviceID: () => Promise<string>; | +getDeviceID: () => Promise<string>; | ||||
+clearSensitiveData: () => Promise<void>; | +clearSensitiveData: () => Promise<void>; | ||||
+checkIfDatabaseNeedsDeletion: () => boolean; | +checkIfDatabaseNeedsDeletion: () => boolean; | ||||
} | } | ||||
export default (TurboModuleRegistry.getEnforcing<Spec>( | export default (TurboModuleRegistry.getEnforcing<Spec>( | ||||
'CommTurboModule', | 'CommTurboModule', | ||||
): Spec); | ): Spec); |