@excali-boards/boards-api-client 1.1.53 → 1.1.54

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,6 +6,8 @@ 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>>;
10
+ createPersonalBoard({ auth, body, ...rest }: BoardsFunctionsInput['createPersonalBoard']): Promise<import("../types.js").WebResponse<CreatePersonalBoardOutput>>;
9
11
  getBoard({ auth, categoryId, groupId, boardId, ...rest }: BoardsFunctionsInput['getBoard']): Promise<import("../types.js").WebResponse<GetBoardOutput>>;
10
12
  updateBoard({ auth, categoryId, groupId, boardId, body, ...rest }: BoardsFunctionsInput['updateBoard']): Promise<import("../types.js").WebResponse<string>>;
11
13
  moveBoard({ auth, categoryId, groupId, boardId, body, ...rest }: BoardsFunctionsInput['moveBoard']): Promise<import("../types.js").WebResponse<MoveBoardOutput>>;
@@ -21,6 +23,16 @@ export type BoardsFunctionsInput = WithHeaders<{
21
23
  categoryId: string;
22
24
  groupId: string;
23
25
  };
26
+ 'getPersonalBoards': {
27
+ auth: string;
28
+ };
29
+ 'createPersonalBoard': {
30
+ auth: string;
31
+ body: NameInput & {
32
+ type: BoardType;
33
+ categoryId?: string;
34
+ };
35
+ };
24
36
  'getBoard': {
25
37
  auth: string;
26
38
  categoryId: string;
@@ -87,6 +99,29 @@ export type GetBoardOutput = {
87
99
  };
88
100
  };
89
101
  export type GetFileOutput = ReadableStream | Blob;
102
+ export type CreatePersonalBoardOutput = {
103
+ groupId: string;
104
+ categoryId: string;
105
+ boardId: string;
106
+ };
107
+ export type PersonalBoardsOutput = {
108
+ id: string;
109
+ name: string;
110
+ categories: PersonalCategoryOutput[];
111
+ };
112
+ export type PersonalCategoryOutput = {
113
+ id: string;
114
+ name: string;
115
+ boards: PersonalBoardOutput[];
116
+ };
117
+ export type PersonalBoardOutput = {
118
+ id: string;
119
+ name: string;
120
+ type: BoardType;
121
+ index: number;
122
+ totalSizeBytes: number;
123
+ scheduledForDeletion: Date | null;
124
+ };
90
125
  export type MoveBoardInput = {
91
126
  targetCategoryId: string;
92
127
  targetIndex?: number;
@@ -9,6 +9,18 @@ export class APIBoards {
9
9
  endpoint: this.web.qp(`/groups/${groupId}/categories/${categoryId}`),
10
10
  });
11
11
  }
12
+ async getPersonalBoards({ auth, ...rest }) {
13
+ return await this.web.request({
14
+ method: 'GET', auth, ...rest,
15
+ endpoint: this.web.qp('/personal-boards'),
16
+ });
17
+ }
18
+ async createPersonalBoard({ auth, body, ...rest }) {
19
+ return await this.web.request({
20
+ method: 'POST', auth, body, ...rest,
21
+ endpoint: this.web.qp('/personal-boards'),
22
+ });
23
+ }
12
24
  async getBoard({ auth, categoryId, groupId, boardId, ...rest }) {
13
25
  return await this.web.request({
14
26
  method: 'GET', auth, ...rest,
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.53",
2
+ "version": "1.1.54",
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",
@@ -40,4 +40,4 @@
40
40
  "ts-prisma": "1.3.3",
41
41
  "zod": "4.1.9"
42
42
  }
43
- }
43
+ }
@@ -5,11 +5,15 @@ model Group {
5
5
  name String
6
6
  index Int
7
7
 
8
+ personalOwnerId String?
9
+
8
10
  calCode String?
9
11
  events Event[]
10
12
 
11
13
  categories Category[]
12
14
  permissions GroupPermission[]
15
+
16
+ @@index([personalOwnerId])
13
17
  }
14
18
 
15
19
  model Category {