@excali-boards/boards-api-client 1.1.67 → 1.1.68
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/personal.d.ts +15 -23
- package/dist/classes/personal.js +32 -8
- package/package.json +1 -1
- package/prisma/generated/edge.js +3 -3
- package/prisma/generated/index.d.ts +40 -56
- package/prisma/generated/index.js +3 -3
- package/prisma/generated/package.json +1 -1
- package/prisma/generated/schema.prisma +4 -4
- package/prisma/generated/wasm.js +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BoardType, NameInput } from '../external/types.js';
|
|
2
|
-
import type { GetBoardOutput } from './boards.js';
|
|
1
|
+
import { BoardInput, BoardType, NameInput, SingleOutput } from '../external/types.js';
|
|
3
2
|
import { BoardsManager } from '../core/manager.js';
|
|
3
|
+
import type { GetBoardOutput } from './boards.js';
|
|
4
4
|
import { WithHeaders } from '../types.js';
|
|
5
5
|
export declare class APIPersonal {
|
|
6
6
|
private web;
|
|
@@ -15,41 +15,38 @@ export declare class APIPersonal {
|
|
|
15
15
|
getPersonalBoard({ auth, userId, categoryId, boardId, ...rest }: PersonalFunctionsInput['getPersonalBoard']): Promise<import("../types.js").WebResponse<GetBoardOutput>>;
|
|
16
16
|
}
|
|
17
17
|
export type PersonalFunctionsInput = WithHeaders<{
|
|
18
|
-
getPersonalBoards: {
|
|
18
|
+
'getPersonalBoards': {
|
|
19
19
|
auth: string;
|
|
20
20
|
};
|
|
21
|
-
getAllPersonalBoards: {
|
|
21
|
+
'getAllPersonalBoards': {
|
|
22
22
|
auth: string;
|
|
23
23
|
};
|
|
24
|
-
getPersonalWorkspace: {
|
|
24
|
+
'getPersonalWorkspace': {
|
|
25
25
|
auth: string;
|
|
26
26
|
userId: string;
|
|
27
27
|
};
|
|
28
|
-
getPersonalCategoryBoards: {
|
|
28
|
+
'getPersonalCategoryBoards': {
|
|
29
29
|
auth: string;
|
|
30
30
|
userId: string;
|
|
31
31
|
categoryId: string;
|
|
32
32
|
};
|
|
33
|
-
createPersonalBoard: {
|
|
33
|
+
'createPersonalBoard': {
|
|
34
34
|
auth: string;
|
|
35
|
-
body:
|
|
36
|
-
type: BoardType;
|
|
35
|
+
body: BoardInput & {
|
|
37
36
|
categoryId?: string;
|
|
38
37
|
};
|
|
39
38
|
};
|
|
40
|
-
createPersonalBoardInCategory: {
|
|
39
|
+
'createPersonalBoardInCategory': {
|
|
41
40
|
auth: string;
|
|
42
41
|
userId: string;
|
|
43
42
|
categoryId: string;
|
|
44
|
-
body:
|
|
45
|
-
type: BoardType;
|
|
46
|
-
};
|
|
43
|
+
body: BoardInput;
|
|
47
44
|
};
|
|
48
|
-
createPersonalCategory: {
|
|
45
|
+
'createPersonalCategory': {
|
|
49
46
|
auth: string;
|
|
50
47
|
body: NameInput;
|
|
51
48
|
};
|
|
52
|
-
getPersonalBoard: {
|
|
49
|
+
'getPersonalBoard': {
|
|
53
50
|
auth: string;
|
|
54
51
|
userId: string;
|
|
55
52
|
categoryId: string;
|
|
@@ -81,22 +78,17 @@ export type PersonalBoardsAdminOutput = {
|
|
|
81
78
|
owners: PersonalBoardsOutput[];
|
|
82
79
|
};
|
|
83
80
|
export type PersonalBoardOwnerOutput = {
|
|
81
|
+
email: string;
|
|
84
82
|
userId: string;
|
|
85
83
|
displayName: string;
|
|
86
|
-
email: string;
|
|
87
84
|
avatarUrl: string | null;
|
|
88
85
|
};
|
|
89
|
-
export type PersonalCategoryOutput = {
|
|
90
|
-
id: string;
|
|
91
|
-
name: string;
|
|
86
|
+
export type PersonalCategoryOutput = Pick<SingleOutput, 'id' | 'name'> & {
|
|
92
87
|
boards: PersonalBoardOutput[];
|
|
93
88
|
};
|
|
94
|
-
export type PersonalBoardOutput = {
|
|
95
|
-
id: string;
|
|
89
|
+
export type PersonalBoardOutput = Pick<SingleOutput, 'id' | 'name' | 'index'> & {
|
|
96
90
|
categoryId: string;
|
|
97
|
-
name: string;
|
|
98
91
|
type: BoardType;
|
|
99
|
-
index: number;
|
|
100
92
|
totalSizeBytes: number;
|
|
101
93
|
scheduledForDeletion: Date | null;
|
|
102
94
|
};
|
package/dist/classes/personal.js
CHANGED
|
@@ -4,27 +4,51 @@ export class APIPersonal {
|
|
|
4
4
|
this.web = web;
|
|
5
5
|
}
|
|
6
6
|
async getPersonalBoards({ auth, ...rest }) {
|
|
7
|
-
return await this.web.request({
|
|
7
|
+
return await this.web.request({
|
|
8
|
+
method: 'GET', auth, ...rest,
|
|
9
|
+
endpoint: this.web.qp('/personal'),
|
|
10
|
+
});
|
|
8
11
|
}
|
|
9
12
|
async getAllPersonalBoards({ auth, ...rest }) {
|
|
10
|
-
return await this.web.request({
|
|
13
|
+
return await this.web.request({
|
|
14
|
+
method: 'GET', auth, ...rest,
|
|
15
|
+
endpoint: this.web.qp('/all/personal'),
|
|
16
|
+
});
|
|
11
17
|
}
|
|
12
18
|
async getPersonalWorkspace({ auth, userId, ...rest }) {
|
|
13
|
-
return await this.web.request({
|
|
19
|
+
return await this.web.request({
|
|
20
|
+
method: 'GET', auth, ...rest,
|
|
21
|
+
endpoint: this.web.qp(`/personal/${userId}`),
|
|
22
|
+
});
|
|
14
23
|
}
|
|
15
24
|
async getPersonalCategoryBoards({ auth, userId, categoryId, ...rest }) {
|
|
16
|
-
return await this.web.request({
|
|
25
|
+
return await this.web.request({
|
|
26
|
+
method: 'GET', auth, ...rest,
|
|
27
|
+
endpoint: this.web.qp(`/personal/${userId}/categories/${categoryId}/boards`),
|
|
28
|
+
});
|
|
17
29
|
}
|
|
18
30
|
async createPersonalBoard({ auth, body, ...rest }) {
|
|
19
|
-
return await this.web.request({
|
|
31
|
+
return await this.web.request({
|
|
32
|
+
method: 'POST', auth, body, ...rest,
|
|
33
|
+
endpoint: this.web.qp('/personal'),
|
|
34
|
+
});
|
|
20
35
|
}
|
|
21
36
|
async createPersonalBoardInCategory({ auth, userId, categoryId, body, ...rest }) {
|
|
22
|
-
return await this.web.request({
|
|
37
|
+
return await this.web.request({
|
|
38
|
+
method: 'POST', auth, body, ...rest,
|
|
39
|
+
endpoint: this.web.qp(`/personal/${userId}/categories/${categoryId}/boards`),
|
|
40
|
+
});
|
|
23
41
|
}
|
|
24
42
|
async createPersonalCategory({ auth, body, ...rest }) {
|
|
25
|
-
return await this.web.request({
|
|
43
|
+
return await this.web.request({
|
|
44
|
+
method: 'POST', auth, body, ...rest,
|
|
45
|
+
endpoint: this.web.qp('/personal/categories'),
|
|
46
|
+
});
|
|
26
47
|
}
|
|
27
48
|
async getPersonalBoard({ auth, userId, categoryId, boardId, ...rest }) {
|
|
28
|
-
return await this.web.request({
|
|
49
|
+
return await this.web.request({
|
|
50
|
+
method: 'GET', auth, ...rest,
|
|
51
|
+
endpoint: this.web.qp(`/personal/${userId}/categories/${categoryId}/boards/${boardId}`),
|
|
52
|
+
});
|
|
29
53
|
}
|
|
30
54
|
}
|
package/package.json
CHANGED