@excali-boards/boards-api-client 1.1.57 → 1.1.58
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 +12 -1
- package/dist/classes/groups.d.ts +1 -0
- package/package.json +49 -42
- package/prisma/schema/boards.prisma +4 -1
- package/prisma.config.ts +0 -0
package/dist/classes/boards.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare class APIBoards {
|
|
|
6
6
|
private web;
|
|
7
7
|
constructor(web: BoardsManager);
|
|
8
8
|
getBoards({ auth, categoryId, groupId, ...rest }: BoardsFunctionsInput['getBoards']): Promise<import("../types.js").WebResponse<GetBoardOutput[]>>;
|
|
9
|
-
getPersonalBoards({ auth, ...rest }: BoardsFunctionsInput['getPersonalBoards']): Promise<import("../types.js").WebResponse<PersonalBoardsOutput | null>>;
|
|
9
|
+
getPersonalBoards({ auth, ...rest }: BoardsFunctionsInput['getPersonalBoards']): Promise<import("../types.js").WebResponse<PersonalBoardsAdminOutput | PersonalBoardsOutput | null>>;
|
|
10
10
|
createPersonalBoard({ auth, body, ...rest }: BoardsFunctionsInput['createPersonalBoard']): Promise<import("../types.js").WebResponse<CreatePersonalBoardOutput>>;
|
|
11
11
|
getBoard({ auth, categoryId, groupId, boardId, ...rest }: BoardsFunctionsInput['getBoard']): Promise<import("../types.js").WebResponse<GetBoardOutput>>;
|
|
12
12
|
updateBoard({ auth, categoryId, groupId, boardId, body, ...rest }: BoardsFunctionsInput['updateBoard']): Promise<import("../types.js").WebResponse<string>>;
|
|
@@ -107,8 +107,19 @@ export type CreatePersonalBoardOutput = {
|
|
|
107
107
|
export type PersonalBoardsOutput = {
|
|
108
108
|
id: string;
|
|
109
109
|
name: string;
|
|
110
|
+
rootCategoryId: string | null;
|
|
111
|
+
owner: PersonalBoardOwnerOutput | null;
|
|
112
|
+
boards: PersonalBoardOutput[];
|
|
110
113
|
categories: PersonalCategoryOutput[];
|
|
111
114
|
};
|
|
115
|
+
export type PersonalBoardsAdminOutput = {
|
|
116
|
+
owners: PersonalBoardsOutput[];
|
|
117
|
+
};
|
|
118
|
+
export type PersonalBoardOwnerOutput = {
|
|
119
|
+
userId: string;
|
|
120
|
+
displayName: string;
|
|
121
|
+
avatarUrl: string | null;
|
|
122
|
+
};
|
|
112
123
|
export type PersonalCategoryOutput = {
|
|
113
124
|
id: string;
|
|
114
125
|
name: string;
|
package/dist/classes/groups.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,43 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
2
|
+
"version": "1.1.58",
|
|
3
|
+
"name": "@excali-boards/boards-api-client",
|
|
4
|
+
"description": "A simple API client for the Boards API.",
|
|
5
|
+
"repository": "https://github.com/Excali-Boards/boards-api-client",
|
|
6
|
+
"author": "Digital39999",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"ts": "pnpm install typescript --save-dev -g",
|
|
9
|
+
"init": "pnpm install && pnpm run build",
|
|
10
|
+
"build": "tsc --build",
|
|
11
|
+
"watch": "tsc --watch",
|
|
12
|
+
"lint": "eslint . --ext .ts",
|
|
13
|
+
"postinstall": "prisma generate",
|
|
14
|
+
"updates": "pnpm npm-check-updates -i --format group"
|
|
15
|
+
},
|
|
16
|
+
"main": "dist/index.js",
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
18
|
+
"license": "GPL-3.0",
|
|
19
|
+
"pnpm": {
|
|
20
|
+
"onlyBuiltDependencies": [
|
|
21
|
+
"@prisma/client",
|
|
22
|
+
"@prisma/engines",
|
|
23
|
+
"prisma"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"prisma/schema",
|
|
29
|
+
"prisma.config.ts",
|
|
30
|
+
"README.md",
|
|
31
|
+
"LICENSE"
|
|
32
|
+
],
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/node": "20.14.13",
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "6.18.0",
|
|
36
|
+
"@typescript-eslint/parser": "6.18.0",
|
|
37
|
+
"eslint": "8.56.0",
|
|
38
|
+
"typescript": "7.0.2"
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=20.2.0"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@prisma/client": "6.16.2",
|
|
45
|
+
"axios": "1.12.2",
|
|
46
|
+
"prisma": "6.16.2",
|
|
47
|
+
"ts-prisma": "1.3.3",
|
|
48
|
+
"zod": "4.1.9"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -5,7 +5,7 @@ model Group {
|
|
|
5
5
|
name String
|
|
6
6
|
index Int
|
|
7
7
|
|
|
8
|
-
personalOwnerId String?
|
|
8
|
+
personalOwnerId String? @unique
|
|
9
9
|
|
|
10
10
|
calCode String?
|
|
11
11
|
events Event[]
|
|
@@ -22,12 +22,15 @@ model Category {
|
|
|
22
22
|
|
|
23
23
|
name String
|
|
24
24
|
index Int
|
|
25
|
+
personalRoot Boolean @default(false)
|
|
25
26
|
|
|
26
27
|
groupId String
|
|
27
28
|
group Group @relation(fields: [groupId], references: [groupId], onDelete: Cascade)
|
|
28
29
|
|
|
29
30
|
boards Board[]
|
|
30
31
|
permissions CategoryPermission[]
|
|
32
|
+
|
|
33
|
+
@@index([groupId, personalRoot])
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
model Board {
|
package/prisma.config.ts
CHANGED
|
File without changes
|