@excali-boards/boards-api-client 1.1.50 → 1.1.52
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/admin.d.ts +6 -3
- package/dist/classes/admin.js +1 -5
- package/dist/classes/analytics.d.ts +5 -5
- package/dist/classes/analytics.js +1 -5
- package/dist/classes/auth.d.ts +48 -0
- package/dist/classes/auth.js +12 -0
- package/dist/classes/boards.d.ts +26 -8
- package/dist/classes/boards.js +7 -5
- package/dist/classes/calendar.d.ts +6 -6
- package/dist/classes/calendar.js +1 -5
- package/dist/classes/categories.d.ts +25 -7
- package/dist/classes/categories.js +7 -5
- package/dist/classes/files.d.ts +3 -3
- package/dist/classes/files.js +1 -5
- package/dist/classes/flashcards.d.ts +10 -10
- package/dist/classes/flashcards.js +1 -5
- package/dist/classes/groups.d.ts +15 -11
- package/dist/classes/groups.js +1 -5
- package/dist/classes/invites.d.ts +7 -7
- package/dist/classes/invites.js +1 -5
- package/dist/classes/metrics.d.ts +2 -2
- package/dist/classes/metrics.js +1 -5
- package/dist/classes/permissions.d.ts +4 -4
- package/dist/classes/permissions.js +1 -5
- package/dist/classes/sessions.d.ts +6 -5
- package/dist/classes/sessions.js +1 -5
- package/dist/classes/users.d.ts +3 -3
- package/dist/classes/users.js +1 -5
- package/dist/classes/utils.d.ts +1 -1
- package/dist/classes/utils.js +1 -5
- package/dist/core/manager.d.ts +3 -1
- package/dist/core/manager.js +35 -40
- package/dist/core/utils.js +4 -10
- package/dist/external/types.d.ts +11 -0
- package/dist/external/types.js +2 -5
- package/dist/external/vars.js +15 -18
- package/dist/index.d.ts +1 -0
- package/dist/index.js +20 -35
- package/dist/src/classes/admin.d.ts +23 -0
- package/dist/src/classes/admin.js +20 -0
- package/dist/src/classes/analytics.d.ts +62 -0
- package/dist/src/classes/analytics.js +38 -0
- package/dist/src/classes/auth.d.ts +48 -0
- package/dist/src/classes/auth.js +12 -0
- package/dist/src/classes/boards.d.ts +99 -0
- package/dist/src/classes/boards.js +62 -0
- package/dist/src/classes/calendar.d.ts +84 -0
- package/dist/src/classes/calendar.js +45 -0
- package/dist/src/classes/categories.d.ts +75 -0
- package/dist/src/classes/categories.js +50 -0
- package/dist/src/classes/files.d.ts +45 -0
- package/dist/src/classes/files.js +31 -0
- package/dist/src/classes/flashcards.d.ts +120 -0
- package/dist/src/classes/flashcards.js +68 -0
- package/dist/src/classes/groups.d.ts +80 -0
- package/dist/src/classes/groups.js +62 -0
- package/dist/src/classes/invites.d.ts +116 -0
- package/dist/src/classes/invites.js +50 -0
- package/dist/src/classes/metrics.d.ts +31 -0
- package/dist/src/classes/metrics.js +20 -0
- package/dist/src/classes/permissions.d.ts +48 -0
- package/dist/src/classes/permissions.js +32 -0
- package/dist/src/classes/sessions.d.ts +61 -0
- package/dist/src/classes/sessions.js +38 -0
- package/dist/src/classes/users.d.ts +37 -0
- package/dist/src/classes/users.js +26 -0
- package/dist/src/classes/utils.d.ts +19 -0
- package/dist/src/classes/utils.js +16 -0
- package/dist/src/core/manager.d.ts +44 -0
- package/dist/src/core/manager.js +92 -0
- package/dist/src/core/utils.d.ts +9 -0
- package/dist/src/core/utils.js +52 -0
- package/dist/src/external/types.d.ts +87 -0
- package/dist/src/external/types.js +4 -0
- package/dist/src/external/vars.d.ts +99 -0
- package/dist/src/external/vars.js +65 -0
- package/dist/src/index.d.ts +20 -0
- package/dist/src/index.js +20 -0
- package/dist/src/types.d.ts +61 -0
- package/dist/src/types.js +1 -0
- package/dist/types.js +1 -2
- package/package.json +2 -2
- package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/classes/admin.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { Paginated, WithHeaders } from '../types';
|
|
2
2
|
import { BoardsManager } from '../core/manager';
|
|
3
|
-
import { AllRooms } from '../external/types';
|
|
3
|
+
import { AllRooms, RecentlyActiveRoom } from '../external/types';
|
|
4
4
|
import { GetUsersOutput } from './users';
|
|
5
5
|
export declare class APIAdmin {
|
|
6
6
|
private web;
|
|
7
7
|
constructor(web: BoardsManager);
|
|
8
|
-
getUsers({ auth, page, limit, ...rest }: AdminFunctionsInput['getUsers']): Promise<import("
|
|
9
|
-
getActiveRooms({ auth, ...rest }: AdminFunctionsInput['getActiveRooms']): Promise<import("
|
|
8
|
+
getUsers({ auth, page, limit, ...rest }: AdminFunctionsInput['getUsers']): Promise<import("..").WebResponse<Paginated<GetUsersOutput>>>;
|
|
9
|
+
getActiveRooms({ auth, ...rest }: AdminFunctionsInput['getActiveRooms']): Promise<import("..").WebResponse<{
|
|
10
|
+
rooms: AllRooms;
|
|
11
|
+
recentlyActiveRooms: RecentlyActiveRoom[];
|
|
12
|
+
}>>;
|
|
10
13
|
}
|
|
11
14
|
export type AdminFunctionsInput = WithHeaders<{
|
|
12
15
|
'getUsers': {
|
package/dist/classes/admin.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APIAdmin = void 0;
|
|
4
1
|
// Data.
|
|
5
|
-
class APIAdmin {
|
|
2
|
+
export class APIAdmin {
|
|
6
3
|
web;
|
|
7
4
|
constructor(web) {
|
|
8
5
|
this.web = web;
|
|
@@ -21,4 +18,3 @@ class APIAdmin {
|
|
|
21
18
|
});
|
|
22
19
|
}
|
|
23
20
|
}
|
|
24
|
-
exports.APIAdmin = APIAdmin;
|
|
@@ -3,11 +3,11 @@ import { WithHeaders } from '../types';
|
|
|
3
3
|
export declare class APIAnalytics {
|
|
4
4
|
private web;
|
|
5
5
|
constructor(web: BoardsManager);
|
|
6
|
-
getGlobalAnalytics({ auth, ...rest }: AnalyticsFunctionsInput['getGlobalAnalytics']): Promise<import("
|
|
7
|
-
getUserAnalytics({ auth, ...rest }: AnalyticsFunctionsInput['getUserAnalytics']): Promise<import("
|
|
8
|
-
getBoardAnalytics({ auth, boardId, categoryId, groupId, ...rest }: AnalyticsFunctionsInput['getBoardAnalytics']): Promise<import("
|
|
9
|
-
getCategoryAnalytics({ auth, categoryId, groupId, ...rest }: AnalyticsFunctionsInput['getCategoryAnalytics']): Promise<import("
|
|
10
|
-
getGroupAnalytics({ auth, groupId, ...rest }: AnalyticsFunctionsInput['getGroupAnalytics']): Promise<import("
|
|
6
|
+
getGlobalAnalytics({ auth, ...rest }: AnalyticsFunctionsInput['getGlobalAnalytics']): Promise<import("..").WebResponse<UserBoardActivityWithUser[]>>;
|
|
7
|
+
getUserAnalytics({ auth, ...rest }: AnalyticsFunctionsInput['getUserAnalytics']): Promise<import("..").WebResponse<UserBoardActivityWithBoard[]>>;
|
|
8
|
+
getBoardAnalytics({ auth, boardId, categoryId, groupId, ...rest }: AnalyticsFunctionsInput['getBoardAnalytics']): Promise<import("..").WebResponse<UserBoardActivityWithUser[]>>;
|
|
9
|
+
getCategoryAnalytics({ auth, categoryId, groupId, ...rest }: AnalyticsFunctionsInput['getCategoryAnalytics']): Promise<import("..").WebResponse<UserBoardActivityWithUser[]>>;
|
|
10
|
+
getGroupAnalytics({ auth, groupId, ...rest }: AnalyticsFunctionsInput['getGroupAnalytics']): Promise<import("..").WebResponse<UserBoardActivityWithUser[]>>;
|
|
11
11
|
}
|
|
12
12
|
export type AnalyticsFunctionsInput = WithHeaders<{
|
|
13
13
|
'getGlobalAnalytics': {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APIAnalytics = void 0;
|
|
4
1
|
// Data.
|
|
5
|
-
class APIAnalytics {
|
|
2
|
+
export class APIAnalytics {
|
|
6
3
|
web;
|
|
7
4
|
constructor(web) {
|
|
8
5
|
this.web = web;
|
|
@@ -39,4 +36,3 @@ class APIAnalytics {
|
|
|
39
36
|
});
|
|
40
37
|
}
|
|
41
38
|
}
|
|
42
|
-
exports.APIAnalytics = APIAnalytics;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { BoardsManager } from '../core/manager';
|
|
2
|
+
import { CreateSessionInput } from './sessions';
|
|
3
|
+
import { DBUserPartialType } from '../external/vars';
|
|
4
|
+
import { WithHeaders } from '../types';
|
|
5
|
+
export declare class APIAuth {
|
|
6
|
+
private web;
|
|
7
|
+
constructor(web: BoardsManager);
|
|
8
|
+
authenticate({ auth, body, ...rest }: AuthFunctionsInput['authenticate']): Promise<import("..").WebResponse<{
|
|
9
|
+
avatarUrl: string | null;
|
|
10
|
+
boardPermissions: {
|
|
11
|
+
boardId: string;
|
|
12
|
+
role: import("prisma/generated").$Enums.BoardRole;
|
|
13
|
+
}[];
|
|
14
|
+
categoryPermissions: {
|
|
15
|
+
categoryId: string;
|
|
16
|
+
role: import("prisma/generated").$Enums.CategoryRole;
|
|
17
|
+
}[];
|
|
18
|
+
displayName: string;
|
|
19
|
+
email: string;
|
|
20
|
+
groupPermissions: {
|
|
21
|
+
groupId: string;
|
|
22
|
+
role: import("prisma/generated").$Enums.GroupRole;
|
|
23
|
+
}[];
|
|
24
|
+
invitedBy: string | null;
|
|
25
|
+
loginMethods: {
|
|
26
|
+
platform: import("prisma/generated").$Enums.Platforms;
|
|
27
|
+
platformEmail: string;
|
|
28
|
+
}[];
|
|
29
|
+
mainGroupId: string | null;
|
|
30
|
+
mainLoginType: import("prisma/generated").$Enums.Platforms;
|
|
31
|
+
registrationMethod: import("prisma/generated").$Enums.RegistrationMethod;
|
|
32
|
+
userId: string;
|
|
33
|
+
}>>;
|
|
34
|
+
}
|
|
35
|
+
export type AuthFunctionsInput = WithHeaders<{
|
|
36
|
+
'authenticate': {
|
|
37
|
+
auth: string;
|
|
38
|
+
body: CreateSessionInput & {
|
|
39
|
+
refreshProfile?: boolean;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}>;
|
|
43
|
+
export type AuthOutput = DBUserPartialType & {
|
|
44
|
+
sessions: {
|
|
45
|
+
dbId: string;
|
|
46
|
+
lastUsed: Date;
|
|
47
|
+
}[];
|
|
48
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export class APIAuth {
|
|
2
|
+
web;
|
|
3
|
+
constructor(web) {
|
|
4
|
+
this.web = web;
|
|
5
|
+
}
|
|
6
|
+
async authenticate({ auth, body, ...rest }) {
|
|
7
|
+
return await this.web.request({
|
|
8
|
+
method: 'POST', auth, body, ...rest,
|
|
9
|
+
endpoint: this.web.qp('/auth/authenticate'),
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
package/dist/classes/boards.d.ts
CHANGED
|
@@ -5,14 +5,15 @@ import { WithHeaders } from '../types';
|
|
|
5
5
|
export declare class APIBoards {
|
|
6
6
|
private web;
|
|
7
7
|
constructor(web: BoardsManager);
|
|
8
|
-
getBoards({ auth, categoryId, groupId, ...rest }: BoardsFunctionsInput['getBoards']): Promise<import("
|
|
9
|
-
getBoard({ auth, categoryId, groupId, boardId, ...rest }: BoardsFunctionsInput['getBoard']): Promise<import("
|
|
10
|
-
updateBoard({ auth, categoryId, groupId, boardId, body, ...rest }: BoardsFunctionsInput['updateBoard']): Promise<import("
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
getBoards({ auth, categoryId, groupId, ...rest }: BoardsFunctionsInput['getBoards']): Promise<import("..").WebResponse<GetBoardOutput[]>>;
|
|
9
|
+
getBoard({ auth, categoryId, groupId, boardId, ...rest }: BoardsFunctionsInput['getBoard']): Promise<import("..").WebResponse<GetBoardOutput>>;
|
|
10
|
+
updateBoard({ auth, categoryId, groupId, boardId, body, ...rest }: BoardsFunctionsInput['updateBoard']): Promise<import("..").WebResponse<string>>;
|
|
11
|
+
moveBoard({ auth, categoryId, groupId, boardId, body, ...rest }: BoardsFunctionsInput['moveBoard']): Promise<import("..").WebResponse<MoveBoardOutput>>;
|
|
12
|
+
scheduleBoardDeletion({ auth, categoryId, groupId, boardId, ...rest }: BoardsFunctionsInput['scheduleBoardDeletion']): Promise<import("..").WebResponse<string>>;
|
|
13
|
+
forceDeleteBoard({ auth, categoryId, groupId, boardId, ...rest }: BoardsFunctionsInput['scheduleBoardDeletion']): Promise<import("..").WebResponse<string>>;
|
|
14
|
+
cancelBoardDeletion({ auth, categoryId, groupId, boardId, ...rest }: BoardsFunctionsInput['cancelBoardDeletion']): Promise<import("..").WebResponse<string>>;
|
|
15
|
+
getBoardRoomData({ auth, categoryId, groupId, boardId, ...rest }: BoardsFunctionsInput['getRoomData']): Promise<import("..").WebResponse<AllRooms>>;
|
|
16
|
+
kickUserFromRoom({ auth, categoryId, groupId, boardId, userId, ...rest }: BoardsFunctionsInput['kickUserFromRoom']): Promise<import("..").WebResponse<string>>;
|
|
16
17
|
}
|
|
17
18
|
export type BoardsFunctionsInput = WithHeaders<{
|
|
18
19
|
'getBoards': {
|
|
@@ -33,6 +34,13 @@ export type BoardsFunctionsInput = WithHeaders<{
|
|
|
33
34
|
boardId: string;
|
|
34
35
|
body: NameInput;
|
|
35
36
|
};
|
|
37
|
+
'moveBoard': {
|
|
38
|
+
auth: string;
|
|
39
|
+
categoryId: string;
|
|
40
|
+
groupId: string;
|
|
41
|
+
boardId: string;
|
|
42
|
+
body: MoveBoardInput;
|
|
43
|
+
};
|
|
36
44
|
'scheduleBoardDeletion': {
|
|
37
45
|
auth: string;
|
|
38
46
|
categoryId: string;
|
|
@@ -79,3 +87,13 @@ export type GetBoardOutput = {
|
|
|
79
87
|
};
|
|
80
88
|
};
|
|
81
89
|
export type GetFileOutput = ReadableStream | Blob;
|
|
90
|
+
export type MoveBoardInput = {
|
|
91
|
+
targetCategoryId: string;
|
|
92
|
+
targetIndex?: number;
|
|
93
|
+
};
|
|
94
|
+
export type MoveBoardOutput = {
|
|
95
|
+
boardId: string;
|
|
96
|
+
categoryId: string;
|
|
97
|
+
groupId: string;
|
|
98
|
+
index: number;
|
|
99
|
+
};
|
package/dist/classes/boards.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APIBoards = void 0;
|
|
4
|
-
class APIBoards {
|
|
1
|
+
export class APIBoards {
|
|
5
2
|
web;
|
|
6
3
|
constructor(web) {
|
|
7
4
|
this.web = web;
|
|
@@ -24,6 +21,12 @@ class APIBoards {
|
|
|
24
21
|
endpoint: this.web.qp(`/groups/${groupId}/categories/${categoryId}/boards/${boardId}`),
|
|
25
22
|
});
|
|
26
23
|
}
|
|
24
|
+
async moveBoard({ auth, categoryId, groupId, boardId, body, ...rest }) {
|
|
25
|
+
return await this.web.request({
|
|
26
|
+
method: 'POST', auth, body, ...rest,
|
|
27
|
+
endpoint: this.web.qp(`/groups/${groupId}/categories/${categoryId}/boards/${boardId}/move`),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
27
30
|
async scheduleBoardDeletion({ auth, categoryId, groupId, boardId, ...rest }) {
|
|
28
31
|
return await this.web.request({
|
|
29
32
|
method: 'DELETE', auth, ...rest,
|
|
@@ -57,4 +60,3 @@ class APIBoards {
|
|
|
57
60
|
});
|
|
58
61
|
}
|
|
59
62
|
}
|
|
60
|
-
exports.APIBoards = APIBoards;
|
|
@@ -4,12 +4,12 @@ import { WithHeaders } from '../types';
|
|
|
4
4
|
export declare class APICalendar {
|
|
5
5
|
private web;
|
|
6
6
|
constructor(web: BoardsManager);
|
|
7
|
-
getCalendar({ auth, groupId, ...rest }: CalendarFunctionsInput['getCalendar']): Promise<import("
|
|
8
|
-
getHolidays({ auth, countryCode, year, ...rest }: CalendarFunctionsInput['getHolidays']): Promise<import("
|
|
9
|
-
updateGroupCalendarCode({ auth, groupId, calCode, ...rest }: CalendarFunctionsInput['updateGroupCalendarCode']): Promise<import("
|
|
10
|
-
createEvent({ auth, groupId, event, ...rest }: CalendarFunctionsInput['createEvent']): Promise<import("
|
|
11
|
-
updateEvent({ auth, groupId, eventId, event, ...rest }: CalendarFunctionsInput['updateEvent']): Promise<import("
|
|
12
|
-
deleteEvent({ auth, groupId, eventId, ...rest }: CalendarFunctionsInput['deleteEvent']): Promise<import("
|
|
7
|
+
getCalendar({ auth, groupId, ...rest }: CalendarFunctionsInput['getCalendar']): Promise<import("..").WebResponse<GetCalendarResponse>>;
|
|
8
|
+
getHolidays({ auth, countryCode, year, ...rest }: CalendarFunctionsInput['getHolidays']): Promise<import("..").WebResponse<FormattedHoliday[]>>;
|
|
9
|
+
updateGroupCalendarCode({ auth, groupId, calCode, ...rest }: CalendarFunctionsInput['updateGroupCalendarCode']): Promise<import("..").WebResponse<string>>;
|
|
10
|
+
createEvent({ auth, groupId, event, ...rest }: CalendarFunctionsInput['createEvent']): Promise<import("..").WebResponse<string>>;
|
|
11
|
+
updateEvent({ auth, groupId, eventId, event, ...rest }: CalendarFunctionsInput['updateEvent']): Promise<import("..").WebResponse<string>>;
|
|
12
|
+
deleteEvent({ auth, groupId, eventId, ...rest }: CalendarFunctionsInput['deleteEvent']): Promise<import("..").WebResponse<string>>;
|
|
13
13
|
}
|
|
14
14
|
export type CalendarFunctionsInput = WithHeaders<{
|
|
15
15
|
'getCalendar': {
|
package/dist/classes/calendar.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APICalendar = void 0;
|
|
4
|
-
class APICalendar {
|
|
1
|
+
export class APICalendar {
|
|
5
2
|
web;
|
|
6
3
|
constructor(web) {
|
|
7
4
|
this.web = web;
|
|
@@ -46,4 +43,3 @@ class APICalendar {
|
|
|
46
43
|
});
|
|
47
44
|
}
|
|
48
45
|
}
|
|
49
|
-
exports.APICalendar = APICalendar;
|
|
@@ -5,12 +5,13 @@ import { WithHeaders } from '../types';
|
|
|
5
5
|
export declare class APICategories {
|
|
6
6
|
private web;
|
|
7
7
|
constructor(web: BoardsManager);
|
|
8
|
-
getCategories({ auth, groupId, ...rest }: CategoriesFunctionsInput['getCategories']): Promise<import("
|
|
9
|
-
getCategory({ auth, groupId, categoryId, ...rest }: CategoriesFunctionsInput['getCategory']): Promise<import("
|
|
10
|
-
createBoardInCategory({ auth, groupId, categoryId, body, ...rest }: CategoriesFunctionsInput['createBoardInCategory']): Promise<import("
|
|
11
|
-
updateCategory({ auth, groupId, categoryId, body, ...rest }: CategoriesFunctionsInput['updateCategory']): Promise<import("
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
getCategories({ auth, groupId, ...rest }: CategoriesFunctionsInput['getCategories']): Promise<import("..").WebResponse<GetCategoriesOutput>>;
|
|
9
|
+
getCategory({ auth, groupId, categoryId, ...rest }: CategoriesFunctionsInput['getCategory']): Promise<import("..").WebResponse<GetCategoryOutput>>;
|
|
10
|
+
createBoardInCategory({ auth, groupId, categoryId, body, ...rest }: CategoriesFunctionsInput['createBoardInCategory']): Promise<import("..").WebResponse<string>>;
|
|
11
|
+
updateCategory({ auth, groupId, categoryId, body, ...rest }: CategoriesFunctionsInput['updateCategory']): Promise<import("..").WebResponse<string>>;
|
|
12
|
+
moveCategory({ auth, groupId, categoryId, body, ...rest }: CategoriesFunctionsInput['moveCategory']): Promise<import("..").WebResponse<MoveCategoryOutput>>;
|
|
13
|
+
reorderBoardsInCategory({ auth, groupId, categoryId, body, ...rest }: CategoriesFunctionsInput['reorderBoards']): Promise<import("..").WebResponse<string>>;
|
|
14
|
+
deleteCategory({ auth, groupId, categoryId, ...rest }: CategoriesFunctionsInput['deleteCategory']): Promise<import("..").WebResponse<string>>;
|
|
14
15
|
}
|
|
15
16
|
export type CategoriesFunctionsInput = WithHeaders<{
|
|
16
17
|
'getCategories': {
|
|
@@ -26,7 +27,9 @@ export type CategoriesFunctionsInput = WithHeaders<{
|
|
|
26
27
|
auth: string;
|
|
27
28
|
groupId: string;
|
|
28
29
|
categoryId: string;
|
|
29
|
-
body: BoardInput
|
|
30
|
+
body: BoardInput & {
|
|
31
|
+
copyPermissionsFromBoardId?: string;
|
|
32
|
+
};
|
|
30
33
|
};
|
|
31
34
|
'updateCategory': {
|
|
32
35
|
auth: string;
|
|
@@ -34,6 +37,12 @@ export type CategoriesFunctionsInput = WithHeaders<{
|
|
|
34
37
|
categoryId: string;
|
|
35
38
|
body: NameInput;
|
|
36
39
|
};
|
|
40
|
+
'moveCategory': {
|
|
41
|
+
auth: string;
|
|
42
|
+
groupId: string;
|
|
43
|
+
categoryId: string;
|
|
44
|
+
body: MoveCategoryInput;
|
|
45
|
+
};
|
|
37
46
|
'reorderBoards': {
|
|
38
47
|
auth: string;
|
|
39
48
|
groupId: string;
|
|
@@ -55,3 +64,12 @@ export type GetCategoryOutput = {
|
|
|
55
64
|
category: SingleOutput;
|
|
56
65
|
boards: Omit<GetBoardOutput['board'], 'files'>[];
|
|
57
66
|
};
|
|
67
|
+
export type MoveCategoryInput = {
|
|
68
|
+
targetGroupId: string;
|
|
69
|
+
targetIndex?: number;
|
|
70
|
+
};
|
|
71
|
+
export type MoveCategoryOutput = {
|
|
72
|
+
categoryId: string;
|
|
73
|
+
groupId: string;
|
|
74
|
+
index: number;
|
|
75
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APICategories = void 0;
|
|
4
1
|
// Data.
|
|
5
|
-
class APICategories {
|
|
2
|
+
export class APICategories {
|
|
6
3
|
web;
|
|
7
4
|
constructor(web) {
|
|
8
5
|
this.web = web;
|
|
@@ -32,6 +29,12 @@ class APICategories {
|
|
|
32
29
|
endpoint: this.web.qp(`/groups/${groupId}/categories/${categoryId}`),
|
|
33
30
|
});
|
|
34
31
|
}
|
|
32
|
+
async moveCategory({ auth, groupId, categoryId, body, ...rest }) {
|
|
33
|
+
return await this.web.request({
|
|
34
|
+
method: 'POST', auth, body, ...rest,
|
|
35
|
+
endpoint: this.web.qp(`/groups/${groupId}/categories/${categoryId}/move`),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
35
38
|
async reorderBoardsInCategory({ auth, groupId, categoryId, body, ...rest }) {
|
|
36
39
|
return await this.web.request({
|
|
37
40
|
method: 'PUT', auth, body, ...rest,
|
|
@@ -45,4 +48,3 @@ class APICategories {
|
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
|
-
exports.APICategories = APICategories;
|
package/dist/classes/files.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import { WithHeaders } from '../types';
|
|
|
3
3
|
export declare class APIFiles {
|
|
4
4
|
private web;
|
|
5
5
|
constructor(web: BoardsManager);
|
|
6
|
-
uploadBase64Files({ auth, boardId, files, ...rest }: FilesFunctionsInput['uploadBase64Files']): Promise<import("
|
|
7
|
-
uploadRawFiles({ auth, boardId, files, ...rest }: FilesFunctionsInput['uploadRawFiles']): Promise<import("
|
|
8
|
-
deleteFiles({ auth, boardId, fileIds, ...rest }: FilesFunctionsInput['deleteFiles']): Promise<import("
|
|
6
|
+
uploadBase64Files({ auth, boardId, files, ...rest }: FilesFunctionsInput['uploadBase64Files']): Promise<import("..").WebResponse<FileUploadResponse>>;
|
|
7
|
+
uploadRawFiles({ auth, boardId, files, ...rest }: FilesFunctionsInput['uploadRawFiles']): Promise<import("..").WebResponse<FileUploadResponse>>;
|
|
8
|
+
deleteFiles({ auth, boardId, fileIds, ...rest }: FilesFunctionsInput['deleteFiles']): Promise<import("..").WebResponse<string>>;
|
|
9
9
|
}
|
|
10
10
|
export type FilesFunctionsInput = WithHeaders<{
|
|
11
11
|
'uploadBase64Files': {
|
package/dist/classes/files.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APIFiles = void 0;
|
|
4
|
-
class APIFiles {
|
|
1
|
+
export class APIFiles {
|
|
5
2
|
web;
|
|
6
3
|
constructor(web) {
|
|
7
4
|
this.web = web;
|
|
@@ -32,4 +29,3 @@ class APIFiles {
|
|
|
32
29
|
});
|
|
33
30
|
}
|
|
34
31
|
}
|
|
35
|
-
exports.APIFiles = APIFiles;
|
|
@@ -4,16 +4,16 @@ import { WithHeaders } from '../types';
|
|
|
4
4
|
export declare class APIFlashcards {
|
|
5
5
|
private web;
|
|
6
6
|
constructor(web: BoardsManager);
|
|
7
|
-
getDeck({ auth, groupId, categoryId, boardId, ...rest }: FlashcardsFunctionsInput['getDeck']): Promise<import("
|
|
8
|
-
initializeDeck({ auth, groupId, categoryId, boardId, ...rest }: FlashcardsFunctionsInput['initializeDeck']): Promise<import("
|
|
9
|
-
destroyDeck({ auth, groupId, categoryId, boardId, ...rest }: FlashcardsFunctionsInput['destroyDeck']): Promise<import("
|
|
10
|
-
createCards({ auth, groupId, categoryId, boardId, body, ...rest }: FlashcardsFunctionsInput['createCards']): Promise<import("
|
|
11
|
-
updateCards({ auth, groupId, categoryId, boardId, body, ...rest }: FlashcardsFunctionsInput['updateCards']): Promise<import("
|
|
12
|
-
deleteCards({ auth, groupId, categoryId, boardId, body, ...rest }: FlashcardsFunctionsInput['deleteCards']): Promise<import("
|
|
13
|
-
overrideCards({ auth, groupId, categoryId, boardId, body, ...rest }: FlashcardsFunctionsInput['overrideCards']): Promise<import("
|
|
14
|
-
updateProgress({ auth, groupId, categoryId, boardId, body, ...rest }: FlashcardsFunctionsInput['updateProgress']): Promise<import("
|
|
15
|
-
resetProgress({ auth, groupId, categoryId, boardId, ...rest }: FlashcardsFunctionsInput['resetProgress']): Promise<import("
|
|
16
|
-
reorderCards({ auth, groupId, categoryId, boardId, body, ...rest }: FlashcardsFunctionsInput['reorderCards']): Promise<import("
|
|
7
|
+
getDeck({ auth, groupId, categoryId, boardId, ...rest }: FlashcardsFunctionsInput['getDeck']): Promise<import("..").WebResponse<FlashcardDeckResponse>>;
|
|
8
|
+
initializeDeck({ auth, groupId, categoryId, boardId, ...rest }: FlashcardsFunctionsInput['initializeDeck']): Promise<import("..").WebResponse<string>>;
|
|
9
|
+
destroyDeck({ auth, groupId, categoryId, boardId, ...rest }: FlashcardsFunctionsInput['destroyDeck']): Promise<import("..").WebResponse<string>>;
|
|
10
|
+
createCards({ auth, groupId, categoryId, boardId, body, ...rest }: FlashcardsFunctionsInput['createCards']): Promise<import("..").WebResponse<string>>;
|
|
11
|
+
updateCards({ auth, groupId, categoryId, boardId, body, ...rest }: FlashcardsFunctionsInput['updateCards']): Promise<import("..").WebResponse<string>>;
|
|
12
|
+
deleteCards({ auth, groupId, categoryId, boardId, body, ...rest }: FlashcardsFunctionsInput['deleteCards']): Promise<import("..").WebResponse<string>>;
|
|
13
|
+
overrideCards({ auth, groupId, categoryId, boardId, body, ...rest }: FlashcardsFunctionsInput['overrideCards']): Promise<import("..").WebResponse<string>>;
|
|
14
|
+
updateProgress({ auth, groupId, categoryId, boardId, body, ...rest }: FlashcardsFunctionsInput['updateProgress']): Promise<import("..").WebResponse<string>>;
|
|
15
|
+
resetProgress({ auth, groupId, categoryId, boardId, ...rest }: FlashcardsFunctionsInput['resetProgress']): Promise<import("..").WebResponse<string>>;
|
|
16
|
+
reorderCards({ auth, groupId, categoryId, boardId, body, ...rest }: FlashcardsFunctionsInput['reorderCards']): Promise<import("..").WebResponse<string>>;
|
|
17
17
|
}
|
|
18
18
|
export type FlashcardsFunctionsInput = WithHeaders<{
|
|
19
19
|
getDeck: {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APIFlashcards = void 0;
|
|
4
1
|
// Data.
|
|
5
|
-
class APIFlashcards {
|
|
2
|
+
export class APIFlashcards {
|
|
6
3
|
web;
|
|
7
4
|
constructor(web) {
|
|
8
5
|
this.web = web;
|
|
@@ -69,4 +66,3 @@ class APIFlashcards {
|
|
|
69
66
|
});
|
|
70
67
|
}
|
|
71
68
|
}
|
|
72
|
-
exports.APIFlashcards = APIFlashcards;
|
package/dist/classes/groups.d.ts
CHANGED
|
@@ -4,15 +4,15 @@ import { WithHeaders } from '../types';
|
|
|
4
4
|
export declare class APIGroups {
|
|
5
5
|
private web;
|
|
6
6
|
constructor(web: BoardsManager);
|
|
7
|
-
getAllSorted({ auth, ...rest }: GroupsFunctionsInput['getAllSorted']): Promise<import("
|
|
8
|
-
getGroups({ auth, ...rest }: GroupsFunctionsInput['getGroups']): Promise<import("
|
|
9
|
-
getGroup({ auth, groupId, ...rest }: GroupsFunctionsInput['getGroup']): Promise<import("
|
|
10
|
-
createGroup({ auth, body, ...rest }: GroupsFunctionsInput['createGroup']): Promise<import("
|
|
11
|
-
createCategoryInGroup({ auth, groupId, body, ...rest }: GroupsFunctionsInput['createCategoryInGroup']): Promise<import("
|
|
12
|
-
updateGroup({ auth, groupId, body, ...rest }: GroupsFunctionsInput['updateGroup']): Promise<import("
|
|
13
|
-
reorderGroups({ auth, body, ...rest }: GroupsFunctionsInput['reorderGroups']): Promise<import("
|
|
14
|
-
reorderCategoriesInGroup({ auth, groupId, body, ...rest }: GroupsFunctionsInput['reorderCategoriesInGroup']): Promise<import("
|
|
15
|
-
deleteGroup({ auth, groupId, ...rest }: GroupsFunctionsInput['deleteGroup']): Promise<import("
|
|
7
|
+
getAllSorted({ auth, ...rest }: GroupsFunctionsInput['getAllSorted']): Promise<import("..").WebResponse<GetAllSortedOutput>>;
|
|
8
|
+
getGroups({ auth, ...rest }: GroupsFunctionsInput['getGroups']): Promise<import("..").WebResponse<GetGroupsOutput>>;
|
|
9
|
+
getGroup({ auth, groupId, ...rest }: GroupsFunctionsInput['getGroup']): Promise<import("..").WebResponse<GetGroupOutput>>;
|
|
10
|
+
createGroup({ auth, body, ...rest }: GroupsFunctionsInput['createGroup']): Promise<import("..").WebResponse<string>>;
|
|
11
|
+
createCategoryInGroup({ auth, groupId, body, ...rest }: GroupsFunctionsInput['createCategoryInGroup']): Promise<import("..").WebResponse<string>>;
|
|
12
|
+
updateGroup({ auth, groupId, body, ...rest }: GroupsFunctionsInput['updateGroup']): Promise<import("..").WebResponse<string>>;
|
|
13
|
+
reorderGroups({ auth, body, ...rest }: GroupsFunctionsInput['reorderGroups']): Promise<import("..").WebResponse<string>>;
|
|
14
|
+
reorderCategoriesInGroup({ auth, groupId, body, ...rest }: GroupsFunctionsInput['reorderCategoriesInGroup']): Promise<import("..").WebResponse<string>>;
|
|
15
|
+
deleteGroup({ auth, groupId, ...rest }: GroupsFunctionsInput['deleteGroup']): Promise<import("..").WebResponse<string>>;
|
|
16
16
|
}
|
|
17
17
|
export type GroupsFunctionsInput = WithHeaders<{
|
|
18
18
|
'getAllSorted': {
|
|
@@ -27,12 +27,16 @@ export type GroupsFunctionsInput = WithHeaders<{
|
|
|
27
27
|
};
|
|
28
28
|
'createGroup': {
|
|
29
29
|
auth: string;
|
|
30
|
-
body: NameInput
|
|
30
|
+
body: NameInput & {
|
|
31
|
+
copyPermissionsFromGroupId?: string;
|
|
32
|
+
};
|
|
31
33
|
};
|
|
32
34
|
'createCategoryInGroup': {
|
|
33
35
|
auth: string;
|
|
34
36
|
groupId: string;
|
|
35
|
-
body: NameInput
|
|
37
|
+
body: NameInput & {
|
|
38
|
+
copyPermissionsFromCategoryId?: string;
|
|
39
|
+
};
|
|
36
40
|
};
|
|
37
41
|
'updateGroup': {
|
|
38
42
|
auth: string;
|
package/dist/classes/groups.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APIGroups = void 0;
|
|
4
1
|
// Data.
|
|
5
|
-
class APIGroups {
|
|
2
|
+
export class APIGroups {
|
|
6
3
|
web;
|
|
7
4
|
constructor(web) {
|
|
8
5
|
this.web = web;
|
|
@@ -63,4 +60,3 @@ class APIGroups {
|
|
|
63
60
|
});
|
|
64
61
|
}
|
|
65
62
|
}
|
|
66
|
-
exports.APIGroups = APIGroups;
|
|
@@ -6,13 +6,13 @@ import { WithHeaders } from '../types';
|
|
|
6
6
|
export declare class APIInvites {
|
|
7
7
|
private web;
|
|
8
8
|
constructor(web: BoardsManager);
|
|
9
|
-
getUserInvites({ auth, ...rest }: InvitesFunctionsInput['getUserInvites']): Promise<import("
|
|
10
|
-
getResourceInvites({ auth, query, ...rest }: InvitesFunctionsInput['getResourceInvites']): Promise<import("
|
|
11
|
-
getInviteDetails({ auth, code, ...rest }: InvitesFunctionsInput['getInviteDetails']): Promise<import("
|
|
12
|
-
createInvite({ auth, body, ...rest }: InvitesFunctionsInput['createInvite']): Promise<import("
|
|
13
|
-
useInvite({ auth, code, ...rest }: InvitesFunctionsInput['useInvite']): Promise<import("
|
|
14
|
-
renewInvite({ auth, code, ...rest }: InvitesFunctionsInput['renewInvite']): Promise<import("
|
|
15
|
-
revokeInvite({ auth, code, ...rest }: InvitesFunctionsInput['revokeInvite']): Promise<import("
|
|
9
|
+
getUserInvites({ auth, ...rest }: InvitesFunctionsInput['getUserInvites']): Promise<import("..").WebResponse<GetUserInvitesOutput>>;
|
|
10
|
+
getResourceInvites({ auth, query, ...rest }: InvitesFunctionsInput['getResourceInvites']): Promise<import("..").WebResponse<GetResourceInvitesOutput>>;
|
|
11
|
+
getInviteDetails({ auth, code, ...rest }: InvitesFunctionsInput['getInviteDetails']): Promise<import("..").WebResponse<InviteDetails>>;
|
|
12
|
+
createInvite({ auth, body, ...rest }: InvitesFunctionsInput['createInvite']): Promise<import("..").WebResponse<CreateInviteOutput>>;
|
|
13
|
+
useInvite({ auth, code, ...rest }: InvitesFunctionsInput['useInvite']): Promise<import("..").WebResponse<UseInviteOutput>>;
|
|
14
|
+
renewInvite({ auth, code, ...rest }: InvitesFunctionsInput['renewInvite']): Promise<import("..").WebResponse<RenewInviteOutput>>;
|
|
15
|
+
revokeInvite({ auth, code, ...rest }: InvitesFunctionsInput['revokeInvite']): Promise<import("..").WebResponse<string>>;
|
|
16
16
|
}
|
|
17
17
|
export type InvitesFunctionsInput = WithHeaders<{
|
|
18
18
|
'getUserInvites': {
|
package/dist/classes/invites.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APIInvites = void 0;
|
|
4
1
|
// Data.
|
|
5
|
-
class APIInvites {
|
|
2
|
+
export class APIInvites {
|
|
6
3
|
web;
|
|
7
4
|
constructor(web) {
|
|
8
5
|
this.web = web;
|
|
@@ -51,4 +48,3 @@ class APIInvites {
|
|
|
51
48
|
});
|
|
52
49
|
}
|
|
53
50
|
}
|
|
54
|
-
exports.APIInvites = APIInvites;
|
|
@@ -3,8 +3,8 @@ import { WithHeaders } from '../types';
|
|
|
3
3
|
export declare class APIMetrics {
|
|
4
4
|
private web;
|
|
5
5
|
constructor(web: BoardsManager);
|
|
6
|
-
getMetrics({ auth, ...rest }: MetricsFunctionsInput['getMetrics']): Promise<import("
|
|
7
|
-
getStatus({ auth, ...rest }: MetricsFunctionsInput['getStatus']): Promise<import("
|
|
6
|
+
getMetrics({ auth, ...rest }: MetricsFunctionsInput['getMetrics']): Promise<import("..").WebResponse<string>>;
|
|
7
|
+
getStatus({ auth, ...rest }: MetricsFunctionsInput['getStatus']): Promise<import("..").WebResponse<SystemStatus>>;
|
|
8
8
|
}
|
|
9
9
|
export type MetricsFunctionsInput = WithHeaders<{
|
|
10
10
|
'getMetrics': {
|
package/dist/classes/metrics.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APIMetrics = void 0;
|
|
4
1
|
// Data.
|
|
5
|
-
class APIMetrics {
|
|
2
|
+
export class APIMetrics {
|
|
6
3
|
web;
|
|
7
4
|
constructor(web) {
|
|
8
5
|
this.web = web;
|
|
@@ -21,4 +18,3 @@ class APIMetrics {
|
|
|
21
18
|
});
|
|
22
19
|
}
|
|
23
20
|
}
|
|
24
|
-
exports.APIMetrics = APIMetrics;
|
|
@@ -5,10 +5,10 @@ import { WithHeaders } from '../types';
|
|
|
5
5
|
export declare class APIPermissions {
|
|
6
6
|
private web;
|
|
7
7
|
constructor(web: BoardsManager);
|
|
8
|
-
viewPermissions({ auth, query, ...rest }: PermissionsFunctionsInput['viewPermissions']): Promise<import("
|
|
9
|
-
viewAllPermissions({ auth, userIds, ...rest }: PermissionsFunctionsInput['viewAllPermissions']): Promise<import("
|
|
10
|
-
grantPermissions({ auth, body, ...rest }: PermissionsFunctionsInput['grantPermissions']): Promise<import("
|
|
11
|
-
revokePermissions({ auth, body, ...rest }: PermissionsFunctionsInput['revokePermissions']): Promise<import("
|
|
8
|
+
viewPermissions({ auth, query, ...rest }: PermissionsFunctionsInput['viewPermissions']): Promise<import("..").WebResponse<PermUser[]>>;
|
|
9
|
+
viewAllPermissions({ auth, userIds, ...rest }: PermissionsFunctionsInput['viewAllPermissions']): Promise<import("..").WebResponse<Record<string, PermUser>>>;
|
|
10
|
+
grantPermissions({ auth, body, ...rest }: PermissionsFunctionsInput['grantPermissions']): Promise<import("..").WebResponse<string>>;
|
|
11
|
+
revokePermissions({ auth, body, ...rest }: PermissionsFunctionsInput['revokePermissions']): Promise<import("..").WebResponse<string>>;
|
|
12
12
|
}
|
|
13
13
|
export type PermissionsFunctionsInput = WithHeaders<{
|
|
14
14
|
'viewPermissions': {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APIPermissions = void 0;
|
|
4
1
|
// Data.
|
|
5
|
-
class APIPermissions {
|
|
2
|
+
export class APIPermissions {
|
|
6
3
|
web;
|
|
7
4
|
constructor(web) {
|
|
8
5
|
this.web = web;
|
|
@@ -33,4 +30,3 @@ class APIPermissions {
|
|
|
33
30
|
});
|
|
34
31
|
}
|
|
35
32
|
}
|
|
36
|
-
exports.APIPermissions = APIPermissions;
|
|
@@ -4,11 +4,11 @@ import { WithHeaders } from '../types';
|
|
|
4
4
|
export declare class APISessions {
|
|
5
5
|
private web;
|
|
6
6
|
constructor(web: BoardsManager);
|
|
7
|
-
createSession({ auth, body, ...rest }: SessionsFunctionsInput['createSession']): Promise<import("
|
|
8
|
-
getAllSessions({ auth, ...rest }: SessionsFunctionsInput['getAllSessions']): Promise<import("
|
|
9
|
-
deleteSession({ auth, dbId, ...rest }: SessionsFunctionsInput['deleteSession']): Promise<import("
|
|
10
|
-
deleteAllSessions({ auth, ...rest }: SessionsFunctionsInput['deleteAllSessions']): Promise<import("
|
|
11
|
-
rotateLinkedSession({ auth, body, ...rest }: SessionsFunctionsInput['rotateLinkedSession']): Promise<import("
|
|
7
|
+
createSession({ auth, body, ...rest }: SessionsFunctionsInput['createSession']): Promise<import("..").WebResponse<CreateSessionOutput>>;
|
|
8
|
+
getAllSessions({ auth, ...rest }: SessionsFunctionsInput['getAllSessions']): Promise<import("..").WebResponse<SessionsOutput>>;
|
|
9
|
+
deleteSession({ auth, dbId, ...rest }: SessionsFunctionsInput['deleteSession']): Promise<import("..").WebResponse<string>>;
|
|
10
|
+
deleteAllSessions({ auth, ...rest }: SessionsFunctionsInput['deleteAllSessions']): Promise<import("..").WebResponse<string>>;
|
|
11
|
+
rotateLinkedSession({ auth, body, ...rest }: SessionsFunctionsInput['rotateLinkedSession']): Promise<import("..").WebResponse<string>>;
|
|
12
12
|
}
|
|
13
13
|
export type SessionsFunctionsInput = WithHeaders<{
|
|
14
14
|
'createSession': {
|
|
@@ -38,6 +38,7 @@ export type CreateSessionInput = {
|
|
|
38
38
|
displayName: string;
|
|
39
39
|
avatarUrl?: string | null;
|
|
40
40
|
currentUserId?: string;
|
|
41
|
+
refreshProfile?: boolean;
|
|
41
42
|
};
|
|
42
43
|
export type CreateSessionOutput = {
|
|
43
44
|
token: string;
|
package/dist/classes/sessions.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APISessions = void 0;
|
|
4
1
|
// Data.
|
|
5
|
-
class APISessions {
|
|
2
|
+
export class APISessions {
|
|
6
3
|
web;
|
|
7
4
|
constructor(web) {
|
|
8
5
|
this.web = web;
|
|
@@ -39,4 +36,3 @@ class APISessions {
|
|
|
39
36
|
});
|
|
40
37
|
}
|
|
41
38
|
}
|
|
42
|
-
exports.APISessions = APISessions;
|
package/dist/classes/users.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ import { WithHeaders } from '../types';
|
|
|
5
5
|
export declare class APIUsers {
|
|
6
6
|
private web;
|
|
7
7
|
constructor(web: BoardsManager);
|
|
8
|
-
getUser({ auth, userId, ...rest }: UsersFunctionsInput['getCurrentUser']): Promise<import("
|
|
9
|
-
updateUser({ auth, userId, body, ...rest }: UsersFunctionsInput['updateUser']): Promise<import("
|
|
10
|
-
deleteAccount({ auth, userId, ...rest }: UsersFunctionsInput['deleteAccount']): Promise<import("
|
|
8
|
+
getUser({ auth, userId, ...rest }: UsersFunctionsInput['getCurrentUser']): Promise<import("..").WebResponse<GetUsersOutput>>;
|
|
9
|
+
updateUser({ auth, userId, body, ...rest }: UsersFunctionsInput['updateUser']): Promise<import("..").WebResponse<string>>;
|
|
10
|
+
deleteAccount({ auth, userId, ...rest }: UsersFunctionsInput['deleteAccount']): Promise<import("..").WebResponse<void>>;
|
|
11
11
|
}
|
|
12
12
|
export type UsersFunctionsInput = WithHeaders<{
|
|
13
13
|
'getCurrentUser': {
|