@excali-boards/boards-api-client 1.1.58 → 1.1.59
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.js").WebResponse<GetBoardOutput[]>>;
|
|
9
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
|
+
createPersonalCategory({ auth, body, ...rest }: BoardsFunctionsInput['createPersonalCategory']): Promise<import("../types.js").WebResponse<CreatePersonalCategoryOutput>>;
|
|
11
12
|
getBoard({ auth, categoryId, groupId, boardId, ...rest }: BoardsFunctionsInput['getBoard']): Promise<import("../types.js").WebResponse<GetBoardOutput>>;
|
|
12
13
|
updateBoard({ auth, categoryId, groupId, boardId, body, ...rest }: BoardsFunctionsInput['updateBoard']): Promise<import("../types.js").WebResponse<string>>;
|
|
13
14
|
moveBoard({ auth, categoryId, groupId, boardId, body, ...rest }: BoardsFunctionsInput['moveBoard']): Promise<import("../types.js").WebResponse<MoveBoardOutput>>;
|
|
@@ -33,6 +34,10 @@ export type BoardsFunctionsInput = WithHeaders<{
|
|
|
33
34
|
categoryId?: string;
|
|
34
35
|
};
|
|
35
36
|
};
|
|
37
|
+
'createPersonalCategory': {
|
|
38
|
+
auth: string;
|
|
39
|
+
body: NameInput;
|
|
40
|
+
};
|
|
36
41
|
'getBoard': {
|
|
37
42
|
auth: string;
|
|
38
43
|
categoryId: string;
|
|
@@ -104,6 +109,11 @@ export type CreatePersonalBoardOutput = {
|
|
|
104
109
|
categoryId: string;
|
|
105
110
|
boardId: string;
|
|
106
111
|
};
|
|
112
|
+
export type CreatePersonalCategoryOutput = {
|
|
113
|
+
categoryId: string;
|
|
114
|
+
name: string;
|
|
115
|
+
backingCategoryId: string;
|
|
116
|
+
};
|
|
107
117
|
export type PersonalBoardsOutput = {
|
|
108
118
|
id: string;
|
|
109
119
|
name: string;
|
|
@@ -122,6 +132,7 @@ export type PersonalBoardOwnerOutput = {
|
|
|
122
132
|
};
|
|
123
133
|
export type PersonalCategoryOutput = {
|
|
124
134
|
id: string;
|
|
135
|
+
personalCategoryId?: string;
|
|
125
136
|
name: string;
|
|
126
137
|
boards: PersonalBoardOutput[];
|
|
127
138
|
};
|
package/dist/classes/boards.js
CHANGED
|
@@ -21,6 +21,12 @@ export class APIBoards {
|
|
|
21
21
|
endpoint: this.web.qp('/personal'),
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
+
async createPersonalCategory({ auth, body, ...rest }) {
|
|
25
|
+
return await this.web.request({
|
|
26
|
+
method: 'POST', auth, body, ...rest,
|
|
27
|
+
endpoint: this.web.qp('/personal/categories'),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
24
30
|
async getBoard({ auth, categoryId, groupId, boardId, ...rest }) {
|
|
25
31
|
return await this.web.request({
|
|
26
32
|
method: 'GET', auth, ...rest,
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.1.
|
|
2
|
+
"version": "1.1.59",
|
|
3
3
|
"name": "@excali-boards/boards-api-client",
|
|
4
4
|
"description": "A simple API client for the Boards API.",
|
|
5
5
|
"repository": "https://github.com/Excali-Boards/boards-api-client",
|
|
@@ -16,13 +16,6 @@
|
|
|
16
16
|
"main": "dist/index.js",
|
|
17
17
|
"types": "dist/index.d.ts",
|
|
18
18
|
"license": "GPL-3.0",
|
|
19
|
-
"pnpm": {
|
|
20
|
-
"onlyBuiltDependencies": [
|
|
21
|
-
"@prisma/client",
|
|
22
|
-
"@prisma/engines",
|
|
23
|
-
"prisma"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
19
|
"files": [
|
|
27
20
|
"dist",
|
|
28
21
|
"prisma/schema",
|
|
@@ -44,7 +37,6 @@
|
|
|
44
37
|
"@prisma/client": "6.16.2",
|
|
45
38
|
"axios": "1.12.2",
|
|
46
39
|
"prisma": "6.16.2",
|
|
47
|
-
"ts-prisma": "1.3.3",
|
|
48
40
|
"zod": "4.1.9"
|
|
49
41
|
}
|
|
50
42
|
}
|
|
@@ -2,35 +2,32 @@ model Group {
|
|
|
2
2
|
dbId String @id @default(uuid())
|
|
3
3
|
groupId String @unique
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
personalOwnerId String? @unique
|
|
5
|
+
name String
|
|
6
|
+
index Int
|
|
9
7
|
|
|
10
8
|
calCode String?
|
|
11
9
|
events Event[]
|
|
12
10
|
|
|
13
11
|
categories Category[]
|
|
14
|
-
|
|
12
|
+
permissions GroupPermission[]
|
|
13
|
+
personalWorkspace PersonalWorkspace?
|
|
15
14
|
|
|
16
|
-
@@index([personalOwnerId])
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
model Category {
|
|
20
18
|
dbId String @id @default(uuid())
|
|
21
19
|
categoryId String @unique
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
personalRoot Boolean @default(false)
|
|
21
|
+
name String
|
|
22
|
+
index Int
|
|
26
23
|
|
|
27
24
|
groupId String
|
|
28
25
|
group Group @relation(fields: [groupId], references: [groupId], onDelete: Cascade)
|
|
29
26
|
|
|
30
27
|
boards Board[]
|
|
31
|
-
|
|
28
|
+
permissions CategoryPermission[]
|
|
29
|
+
personalCategory PersonalCategory?
|
|
32
30
|
|
|
33
|
-
@@index([groupId, personalRoot])
|
|
34
31
|
}
|
|
35
32
|
|
|
36
33
|
model Board {
|
|
@@ -51,6 +48,7 @@ model Board {
|
|
|
51
48
|
category Category @relation(fields: [categoryId], references: [categoryId], onDelete: Cascade)
|
|
52
49
|
|
|
53
50
|
flashcardDeck FlashcardDeck?
|
|
51
|
+
personalBoard PersonalBoard?
|
|
54
52
|
|
|
55
53
|
files File[]
|
|
56
54
|
boardPermission BoardPermission[]
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
model PersonalWorkspace {
|
|
2
|
+
dbId String @id @default(uuid())
|
|
3
|
+
userId String @unique
|
|
4
|
+
groupId String @unique
|
|
5
|
+
|
|
6
|
+
user User @relation(fields: [userId], references: [userId], onDelete: Cascade)
|
|
7
|
+
group Group @relation(fields: [groupId], references: [groupId], onDelete: Cascade)
|
|
8
|
+
categories PersonalCategory[]
|
|
9
|
+
boards PersonalBoard[]
|
|
10
|
+
|
|
11
|
+
createdAt DateTime @default(now())
|
|
12
|
+
updatedAt DateTime @updatedAt
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
model PersonalCategory {
|
|
16
|
+
dbId String @id @default(uuid())
|
|
17
|
+
categoryId String @unique
|
|
18
|
+
workspaceId String
|
|
19
|
+
backingCategoryId String @unique
|
|
20
|
+
name String
|
|
21
|
+
index Int
|
|
22
|
+
|
|
23
|
+
workspace PersonalWorkspace @relation(fields: [workspaceId], references: [dbId], onDelete: Cascade)
|
|
24
|
+
backingCategory Category @relation(fields: [backingCategoryId], references: [categoryId], onDelete: Cascade)
|
|
25
|
+
boards PersonalBoard[]
|
|
26
|
+
|
|
27
|
+
@@index([workspaceId, index])
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
model PersonalBoard {
|
|
31
|
+
dbId String @id @default(uuid())
|
|
32
|
+
boardId String @unique
|
|
33
|
+
workspaceId String
|
|
34
|
+
categoryId String?
|
|
35
|
+
|
|
36
|
+
board Board @relation(fields: [boardId], references: [boardId], onDelete: Cascade)
|
|
37
|
+
workspace PersonalWorkspace @relation(fields: [workspaceId], references: [dbId], onDelete: Cascade)
|
|
38
|
+
category PersonalCategory? @relation(fields: [categoryId], references: [dbId], onDelete: SetNull)
|
|
39
|
+
|
|
40
|
+
@@index([workspaceId])
|
|
41
|
+
@@index([categoryId])
|
|
42
|
+
}
|