mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 05:25:00 +02:00
Server Backup Client interface (#1813)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -19,7 +19,9 @@ import type {
|
||||
Class,
|
||||
ClientConnection,
|
||||
Doc,
|
||||
DocChunk,
|
||||
DocumentQuery,
|
||||
Domain,
|
||||
FindOptions,
|
||||
FindResult,
|
||||
Ref,
|
||||
@@ -127,6 +129,18 @@ class Connection implements ClientConnection {
|
||||
tx (tx: Tx): Promise<TxResult> {
|
||||
return this.sendRequest('tx', tx)
|
||||
}
|
||||
|
||||
loadChunk (domain: Domain, idx?: number): Promise<DocChunk> {
|
||||
return this.sendRequest('loadChunk', domain, idx)
|
||||
}
|
||||
|
||||
closeChunk (idx: number): Promise<void> {
|
||||
return this.sendRequest('closeChunk', idx)
|
||||
}
|
||||
|
||||
loadDocs (domain: Domain, docs: Ref<Doc>[]): Promise<Doc[]> {
|
||||
return this.sendRequest('loadDocs', domain, docs)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user