@excali-boards/boards-api-client 1.1.50 → 1.1.51
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/classes/boards.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare class APIBoards {
|
|
|
8
8
|
getBoards({ auth, categoryId, groupId, ...rest }: BoardsFunctionsInput['getBoards']): Promise<import("../types").WebResponse<GetBoardOutput[]>>;
|
|
9
9
|
getBoard({ auth, categoryId, groupId, boardId, ...rest }: BoardsFunctionsInput['getBoard']): Promise<import("../types").WebResponse<GetBoardOutput>>;
|
|
10
10
|
updateBoard({ auth, categoryId, groupId, boardId, body, ...rest }: BoardsFunctionsInput['updateBoard']): Promise<import("../types").WebResponse<string>>;
|
|
11
|
+
moveBoard({ auth, categoryId, groupId, boardId, body, ...rest }: BoardsFunctionsInput['moveBoard']): Promise<import("../types").WebResponse<MoveBoardOutput>>;
|
|
11
12
|
scheduleBoardDeletion({ auth, categoryId, groupId, boardId, ...rest }: BoardsFunctionsInput['scheduleBoardDeletion']): Promise<import("../types").WebResponse<string>>;
|
|
12
13
|
forceDeleteBoard({ auth, categoryId, groupId, boardId, ...rest }: BoardsFunctionsInput['scheduleBoardDeletion']): Promise<import("../types").WebResponse<string>>;
|
|
13
14
|
cancelBoardDeletion({ auth, categoryId, groupId, boardId, ...rest }: BoardsFunctionsInput['cancelBoardDeletion']): Promise<import("../types").WebResponse<string>>;
|
|
@@ -33,6 +34,13 @@ export type BoardsFunctionsInput = WithHeaders<{
|
|
|
33
34
|
boardId: string;
|
|
34
35
|
body: NameInput;
|
|
35
36
|
};
|
|
37
|
+
'moveBoard': {
|
|
38
|
+
auth: string;
|
|
39
|
+
categoryId: string;
|
|
40
|
+
groupId: string;
|
|
41
|
+
boardId: string;
|
|
42
|
+
body: MoveBoardInput;
|
|
43
|
+
};
|
|
36
44
|
'scheduleBoardDeletion': {
|
|
37
45
|
auth: string;
|
|
38
46
|
categoryId: string;
|
|
@@ -79,3 +87,13 @@ export type GetBoardOutput = {
|
|
|
79
87
|
};
|
|
80
88
|
};
|
|
81
89
|
export type GetFileOutput = ReadableStream | Blob;
|
|
90
|
+
export type MoveBoardInput = {
|
|
91
|
+
targetCategoryId: string;
|
|
92
|
+
targetIndex?: number;
|
|
93
|
+
};
|
|
94
|
+
export type MoveBoardOutput = {
|
|
95
|
+
boardId: string;
|
|
96
|
+
categoryId: string;
|
|
97
|
+
groupId: string;
|
|
98
|
+
index: number;
|
|
99
|
+
};
|
package/dist/classes/boards.js
CHANGED
|
@@ -24,6 +24,12 @@ class APIBoards {
|
|
|
24
24
|
endpoint: this.web.qp(`/groups/${groupId}/categories/${categoryId}/boards/${boardId}`),
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
+
async moveBoard({ auth, categoryId, groupId, boardId, body, ...rest }) {
|
|
28
|
+
return await this.web.request({
|
|
29
|
+
method: 'POST', auth, body, ...rest,
|
|
30
|
+
endpoint: this.web.qp(`/groups/${groupId}/categories/${categoryId}/boards/${boardId}/move`),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
27
33
|
async scheduleBoardDeletion({ auth, categoryId, groupId, boardId, ...rest }) {
|
|
28
34
|
return await this.web.request({
|
|
29
35
|
method: 'DELETE', auth, ...rest,
|
|
@@ -9,6 +9,7 @@ export declare class APICategories {
|
|
|
9
9
|
getCategory({ auth, groupId, categoryId, ...rest }: CategoriesFunctionsInput['getCategory']): Promise<import("../types").WebResponse<GetCategoryOutput>>;
|
|
10
10
|
createBoardInCategory({ auth, groupId, categoryId, body, ...rest }: CategoriesFunctionsInput['createBoardInCategory']): Promise<import("../types").WebResponse<string>>;
|
|
11
11
|
updateCategory({ auth, groupId, categoryId, body, ...rest }: CategoriesFunctionsInput['updateCategory']): Promise<import("../types").WebResponse<string>>;
|
|
12
|
+
moveCategory({ auth, groupId, categoryId, body, ...rest }: CategoriesFunctionsInput['moveCategory']): Promise<import("../types").WebResponse<MoveCategoryOutput>>;
|
|
12
13
|
reorderBoardsInCategory({ auth, groupId, categoryId, body, ...rest }: CategoriesFunctionsInput['reorderBoards']): Promise<import("../types").WebResponse<string>>;
|
|
13
14
|
deleteCategory({ auth, groupId, categoryId, ...rest }: CategoriesFunctionsInput['deleteCategory']): Promise<import("../types").WebResponse<string>>;
|
|
14
15
|
}
|
|
@@ -34,6 +35,12 @@ export type CategoriesFunctionsInput = WithHeaders<{
|
|
|
34
35
|
categoryId: string;
|
|
35
36
|
body: NameInput;
|
|
36
37
|
};
|
|
38
|
+
'moveCategory': {
|
|
39
|
+
auth: string;
|
|
40
|
+
groupId: string;
|
|
41
|
+
categoryId: string;
|
|
42
|
+
body: MoveCategoryInput;
|
|
43
|
+
};
|
|
37
44
|
'reorderBoards': {
|
|
38
45
|
auth: string;
|
|
39
46
|
groupId: string;
|
|
@@ -55,3 +62,12 @@ export type GetCategoryOutput = {
|
|
|
55
62
|
category: SingleOutput;
|
|
56
63
|
boards: Omit<GetBoardOutput['board'], 'files'>[];
|
|
57
64
|
};
|
|
65
|
+
export type MoveCategoryInput = {
|
|
66
|
+
targetGroupId: string;
|
|
67
|
+
targetIndex?: number;
|
|
68
|
+
};
|
|
69
|
+
export type MoveCategoryOutput = {
|
|
70
|
+
categoryId: string;
|
|
71
|
+
groupId: string;
|
|
72
|
+
index: number;
|
|
73
|
+
};
|
|
@@ -32,6 +32,12 @@ class APICategories {
|
|
|
32
32
|
endpoint: this.web.qp(`/groups/${groupId}/categories/${categoryId}`),
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
+
async moveCategory({ auth, groupId, categoryId, body, ...rest }) {
|
|
36
|
+
return await this.web.request({
|
|
37
|
+
method: 'POST', auth, body, ...rest,
|
|
38
|
+
endpoint: this.web.qp(`/groups/${groupId}/categories/${categoryId}/move`),
|
|
39
|
+
});
|
|
40
|
+
}
|
|
35
41
|
async reorderBoardsInCategory({ auth, groupId, categoryId, body, ...rest }) {
|
|
36
42
|
return await this.web.request({
|
|
37
43
|
method: 'PUT', auth, body, ...rest,
|
package/package.json
CHANGED