-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.ts
43 lines (39 loc) · 1.05 KB
/
user.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// https://developer.monday.com/api-reference/docs/users
import { BoardField, BoardSubscriberKind } from "./board";
import { NonEmptyArray } from "./generics";
import { WorkspaceField, WorkspaceSubscriberKind } from "./workspace";
export type UserField = {
country_code: string;
current_language: string;
email: string;
enabled: boolean;
id: number;
is_admin: boolean;
is_guest: boolean;
is_pending: boolean;
is_view_only: boolean;
is_verified: boolean;
location: string;
mobile_phone: string;
name: string;
phone: string;
photo_small: string;
photo_original: string;
photo_thumb: string;
photo_thumb_small: string;
photo_tiny: string;
sign_up_product_kind: string;
title: string;
url: string;
utc_hours_diff: number;
};
export type AddUserToBoardArgs = {
userIds: NonEmptyArray<UserField["id"]>;
boardId: number;
boardKind?: BoardSubscriberKind;
};
export type AddUserToWorkspaceArgs = {
userIds: NonEmptyArray<UserField["id"]>;
workspaceId: WorkspaceField["id"];
workspaceKind?: WorkspaceSubscriberKind;
};