Skip to content

Commit cb7dd43

Browse files
authored
Update api.ts, add transferBlockRef API
1 parent 6a6d7e2 commit cb7dd43

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: src/api.ts

+10
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,16 @@ export async function getChildBlocks(id: BlockId): Promise<ChildBlock[]> {
241241
return request(url, data);
242242
}
243243

244+
export async function transferBlockRef(fromID: BlockId, toID: BlockId, refIDs: BlockId[]) {
245+
let data = {
246+
fromID: fromID,
247+
toID: toID,
248+
refIDs: refIDs
249+
}
250+
let url = '/api/block/transferBlockRef';
251+
return request(url, data);
252+
}
253+
244254
// **************************************** Attributes ****************************************
245255
export async function setBlockAttrs(id: BlockId, attrs: { [key: string]: string }) {
246256
let data = {

0 commit comments

Comments
 (0)