mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 04:51:49 +08:00
chore: prettier ignore file generated by napi-rs (#4661)
This commit is contained in:
Vendored
+30
-40
@@ -4,56 +4,46 @@
|
||||
/* auto-generated by NAPI-RS */
|
||||
|
||||
export interface BlobRow {
|
||||
key: string;
|
||||
data: Buffer;
|
||||
timestamp: Date;
|
||||
key: string
|
||||
data: Buffer
|
||||
timestamp: Date
|
||||
}
|
||||
export interface UpdateRow {
|
||||
id: number;
|
||||
timestamp: Date;
|
||||
data: Buffer;
|
||||
docId?: string;
|
||||
id: number
|
||||
timestamp: Date
|
||||
data: Buffer
|
||||
docId?: string
|
||||
}
|
||||
export interface InsertRow {
|
||||
docId?: string;
|
||||
data: Uint8Array;
|
||||
docId?: string
|
||||
data: Uint8Array
|
||||
}
|
||||
export enum ValidationResult {
|
||||
MissingTables = 0,
|
||||
MissingDocIdColumn = 1,
|
||||
MissingVersionColumn = 2,
|
||||
GeneralError = 3,
|
||||
Valid = 4,
|
||||
Valid = 4
|
||||
}
|
||||
export function verifyChallengeResponse(
|
||||
response: string,
|
||||
bits: number,
|
||||
resource: string
|
||||
): Promise<boolean>;
|
||||
export function mintChallengeResponse(
|
||||
resource: string,
|
||||
bits?: number | undefined | null
|
||||
): Promise<string>;
|
||||
export function verifyChallengeResponse(response: string, bits: number, resource: string): Promise<boolean>
|
||||
export function mintChallengeResponse(resource: string, bits?: number | undefined | null): Promise<string>
|
||||
export class SqliteConnection {
|
||||
constructor(path: string);
|
||||
connect(): Promise<void>;
|
||||
addBlob(key: string, blob: Uint8Array): Promise<void>;
|
||||
getBlob(key: string): Promise<BlobRow | null>;
|
||||
deleteBlob(key: string): Promise<void>;
|
||||
getBlobKeys(): Promise<Array<string>>;
|
||||
getUpdates(docId?: string | undefined | null): Promise<Array<UpdateRow>>;
|
||||
getUpdatesCount(docId?: string | undefined | null): Promise<number>;
|
||||
getAllUpdates(): Promise<Array<UpdateRow>>;
|
||||
insertUpdates(updates: Array<InsertRow>): Promise<void>;
|
||||
replaceUpdates(
|
||||
docId: string | undefined | null,
|
||||
updates: Array<InsertRow>
|
||||
): Promise<void>;
|
||||
initVersion(): Promise<void>;
|
||||
setVersion(version: number): Promise<void>;
|
||||
getMaxVersion(): Promise<number>;
|
||||
close(): Promise<void>;
|
||||
get isClose(): boolean;
|
||||
static validate(path: string): Promise<ValidationResult>;
|
||||
migrateAddDocId(): Promise<void>;
|
||||
constructor(path: string)
|
||||
connect(): Promise<void>
|
||||
addBlob(key: string, blob: Uint8Array): Promise<void>
|
||||
getBlob(key: string): Promise<BlobRow | null>
|
||||
deleteBlob(key: string): Promise<void>
|
||||
getBlobKeys(): Promise<Array<string>>
|
||||
getUpdates(docId?: string | undefined | null): Promise<Array<UpdateRow>>
|
||||
getUpdatesCount(docId?: string | undefined | null): Promise<number>
|
||||
getAllUpdates(): Promise<Array<UpdateRow>>
|
||||
insertUpdates(updates: Array<InsertRow>): Promise<void>
|
||||
replaceUpdates(docId: string | undefined | null, updates: Array<InsertRow>): Promise<void>
|
||||
initVersion(): Promise<void>
|
||||
setVersion(version: number): Promise<void>
|
||||
getMaxVersion(): Promise<number>
|
||||
close(): Promise<void>
|
||||
get isClose(): boolean
|
||||
static validate(path: string): Promise<ValidationResult>
|
||||
migrateAddDocId(): Promise<void>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user