microboard-ui-temp 0.1.63 → 0.1.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -288547,6 +288547,7 @@ function removeAvatar() {
|
|
|
288547
288547
|
// src/shared/api/boards/index.ts
|
|
288548
288548
|
var exports_boards = {};
|
|
288549
288549
|
__export(exports_boards, {
|
|
288550
|
+
publishSnapshot: () => publishSnapshot,
|
|
288550
288551
|
manageAccess: () => manageAccess,
|
|
288551
288552
|
grantAccess: () => grantAccess,
|
|
288552
288553
|
getGrantedUsers: () => getGrantedUsers,
|
|
@@ -288681,6 +288682,17 @@ function manageAccess(boardId, manageAccess2) {
|
|
|
288681
288682
|
}
|
|
288682
288683
|
});
|
|
288683
288684
|
}
|
|
288685
|
+
async function publishSnapshot(HTMLSnapshot, snapshotUId, boardUId) {
|
|
288686
|
+
const { data } = await api.post("/media/snapshot", {
|
|
288687
|
+
snapshot: HTMLSnapshot,
|
|
288688
|
+
snapshotUId,
|
|
288689
|
+
boardUId
|
|
288690
|
+
});
|
|
288691
|
+
if (!data) {
|
|
288692
|
+
throw new Error;
|
|
288693
|
+
}
|
|
288694
|
+
return data;
|
|
288695
|
+
}
|
|
288684
288696
|
// src/shared/api/folders/index.ts
|
|
288685
288697
|
var exports_folders = {};
|
|
288686
288698
|
__export(exports_folders, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MessageResponse } from "../types";
|
|
1
2
|
import { type AccessKey, type AccessKeyPayload, type Board, type BoardPayload, type ClaimBoardsPayload, type GrantAccessPayload, type GrantedUser, type ManageAccessPayload } from "./types";
|
|
2
3
|
export declare function createBoard(body: BoardPayload): Promise<import("..").HTTPResponse<Board>>;
|
|
3
4
|
export declare function claimBoards(body: ClaimBoardsPayload): Promise<import("..").HTTPResponse<unknown>>;
|
|
@@ -11,3 +12,6 @@ export declare function deleteAccessKey(boardId: string, accessKey: string, auth
|
|
|
11
12
|
export declare function getGrantedUsers(boardId: string): Promise<import("..").HTTPResponse<GrantedUser[]>>;
|
|
12
13
|
export declare function grantAccess(boardId: string, users: GrantAccessPayload[]): Promise<import("..").HTTPResponse<unknown>>;
|
|
13
14
|
export declare function manageAccess(boardId: string, manageAccess: ManageAccessPayload): Promise<import("..").HTTPResponse<unknown>>;
|
|
15
|
+
export declare function publishSnapshot(HTMLSnapshot: string, snapshotUId: string, boardUId: string): Promise<MessageResponse & {
|
|
16
|
+
snapshotURI: string;
|
|
17
|
+
}>;
|