Changeset View
Changeset View
Standalone View
Standalone View
native/schema/CommCoreModuleSchema.js
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | export interface Spec extends TurboModule { | ||||
+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; | ||||
+reportDBOperationsFailure: () => void; | +reportDBOperationsFailure: () => void; | ||||
+generateNonce: () => Promise<string>; | +generateNonce: () => Promise<string>; | ||||
+registerUser: ( | |||||
username: string, | |||||
password: string, | |||||
keyPayload: string, | |||||
keyPayloadSignature: string, | |||||
contentPrekey: string, | |||||
contentPrekeySignature: string, | |||||
notifPrekey: string, | |||||
notifPrekeySignature: string, | |||||
contentOneTimeKeys: $ReadOnlyArray<string>, | |||||
notifOneTimeKeys: $ReadOnlyArray<string>, | |||||
) => Promise<string>; | |||||
} | } | ||||
export default (TurboModuleRegistry.getEnforcing<Spec>( | export default (TurboModuleRegistry.getEnforcing<Spec>( | ||||
'CommTurboModule', | 'CommTurboModule', | ||||
): Spec); | ): Spec); |