forked from MrRefactoring/jira.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserDetails.ts
51 lines (50 loc) · 2.29 KB
/
userDetails.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
44
45
46
47
48
49
50
51
import { AvatarUrls } from './avatarUrls';
/**
* User details permitted by the user's Atlassian Account privacy settings. However, be aware of these exceptions:*
*
* - User record deleted from Atlassian: This occurs as the result of a right to be forgotten request. In this case,
* `displayName` provides an indication and other parameters have default values or are blank (for example, email is
* blank).
* - User record corrupted: This occurs as a results of events such as a server import and can only happen to deleted
* users. In this case, `accountId` returns _unknown_ and all other parameters have fallback values.
* - User record unavailable: This usually occurs due to an internal service outage. In this case, all parameters have
* fallback values.
*/
export interface UserDetails {
/** The URL of the user. */
self?: string;
/**
* This property is no longer available and will be removed from the documentation soon. See the [deprecation
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
* for details.
*/
name?: string;
/**
* This property is no longer available and will be removed from the documentation soon. See the [deprecation
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
* for details.
*/
key?: string;
/**
* The account ID of the user, which uniquely identifies the user across all Atlassian products. For example,
* _5b10ac8d82e05b22cc7d4ef5_.
*/
accountId?: string;
/** The email address of the user. Depending on the user’s privacy settings, this may be returned as null. */
emailAddress?: string;
avatarUrls?: AvatarUrls;
/** The display name of the user. Depending on the user’s privacy settings, this may return an alternative value. */
displayName?: string;
/** Whether the user is active. */
active?: boolean;
/**
* The time zone specified in the user's profile. Depending on the user’s privacy settings, this may be returned as
* null.
*/
timeZone?: string;
/**
* The type of account represented by this user. This will be one of 'atlassian' (normal users), 'app' (application
* user) or 'customer' (Jira Service Desk customer user)
*/
accountType?: string;
}