@excali-boards/boards-api-client 1.1.56 → 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
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/dist/external/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BoardRole, CategoryRole, GroupRole } from './vars.js';
|
|
2
|
-
import { BoardType } from '../../prisma/generated/default.js';
|
|
2
|
+
import type { BoardType } from '../../prisma/generated/default.js';
|
|
3
3
|
export type UserRole = BoardRole | CategoryRole | GroupRole | GlobalRole;
|
|
4
4
|
export declare enum GlobalRole {
|
|
5
5
|
Developer = "Developer"
|
package/dist/external/vars.d.ts
CHANGED
package/dist/external/vars.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Prisma } from '../../prisma/generated/default.js';
|
|
2
1
|
import { GlobalRole } from './types.js';
|
|
3
2
|
export const DBUserSelectArgs = {
|
|
4
3
|
select: {
|
|
@@ -16,7 +15,9 @@ export const DBUserSelectArgs = {
|
|
|
16
15
|
loginMethods: { select: { platform: true, platformEmail: true } },
|
|
17
16
|
},
|
|
18
17
|
};
|
|
19
|
-
|
|
18
|
+
// `satisfies` retains the precise selection type without loading Prisma's
|
|
19
|
+
// generated runtime into consumers of the API-client barrel export.
|
|
20
|
+
export const DBUserPartial = DBUserSelectArgs;
|
|
20
21
|
export var Platforms;
|
|
21
22
|
(function (Platforms) {
|
|
22
23
|
Platforms["Google"] = "Google";
|
package/package.json
CHANGED
|
@@ -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 {
|