@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.
@@ -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;
@@ -70,6 +70,7 @@ export type GetGroupOutput = {
70
70
  })[];
71
71
  };
72
72
  export type GetAllSortedOutput = (SingleOutput & {
73
+ isPersonal: boolean;
73
74
  categories: (SingleOutput & {
74
75
  boards: (SingleOutput & {
75
76
  hasFlashcards: boolean;
package/package.json CHANGED
@@ -1,43 +1,50 @@
1
1
  {
2
- "version": "1.1.57",
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
- "main": "dist/index.js",
8
- "types": "dist/index.d.ts",
9
- "license": "GPL-3.0",
10
- "files": [
11
- "dist",
12
- "prisma/schema",
13
- "prisma.config.ts",
14
- "README.md",
15
- "LICENSE"
16
- ],
17
- "devDependencies": {
18
- "@types/node": "20.14.13",
19
- "@typescript-eslint/eslint-plugin": "6.18.0",
20
- "@typescript-eslint/parser": "6.18.0",
21
- "eslint": "8.56.0",
22
- "typescript": "7.0.2"
23
- },
24
- "engines": {
25
- "node": ">=20.2.0"
26
- },
27
- "dependencies": {
28
- "@prisma/client": "6.16.2",
29
- "axios": "1.12.2",
30
- "prisma": "6.16.2",
31
- "ts-prisma": "1.3.3",
32
- "zod": "4.1.9"
33
- },
34
- "scripts": {
35
- "ts": "pnpm install typescript --save-dev -g",
36
- "init": "pnpm install && pnpm run build",
37
- "build": "tsc --build",
38
- "watch": "tsc --watch",
39
- "lint": "eslint . --ext .ts",
40
- "postinstall": "prisma generate",
41
- "updates": "pnpm npm-check-updates -i --format group"
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