-
Notifications
You must be signed in to change notification settings - Fork 2.9k
/
reportPropTypes.js
70 lines (49 loc) · 2.14 KB
/
reportPropTypes.js
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import _ from 'underscore';
import PropTypes from 'prop-types';
import CONST from '../CONST';
export default PropTypes.shape({
/** The specific type of chat */
chatType: PropTypes.oneOf(['', ..._.values(CONST.REPORT.CHAT_TYPE)]),
/** Whether there is an outstanding amount in IOU */
hasOutstandingIOU: PropTypes.bool,
/** List of icons for report participants */
icons: PropTypes.arrayOf(PropTypes.string),
/** Are we loading more report actions? */
isLoadingMoreReportActions: PropTypes.bool,
/** Flag to check if the report actions data are loading */
isLoadingReportActions: PropTypes.bool,
/** Whether the user is not an admin of policyExpenseChat chat */
isOwnPolicyExpenseChat: PropTypes.bool,
/** Indicates if the report is pinned to the LHN or not */
isPinned: PropTypes.bool,
/** The email of the last message's actor */
lastActorEmail: PropTypes.string,
/** The text of the last message on the report */
lastMessageText: PropTypes.string,
/** The time of the last message on the report */
lastVisibleActionCreated: PropTypes.string,
/** The last time the report was visited */
lastReadTime: PropTypes.string,
/** The current user's notification preference for this report */
notificationPreference: PropTypes.oneOfType([
// Some old reports have numbers for the notification preference
PropTypes.number,
PropTypes.string,
]),
/** The policy name to use for an archived report */
oldPolicyName: PropTypes.string,
/** The email address of the report owner */
ownerEmail: PropTypes.string,
/** List of primarylogins of participants of the report */
participants: PropTypes.arrayOf(PropTypes.string),
/** Linked policy's ID */
policyID: PropTypes.string,
/** Name of the report */
reportName: PropTypes.string,
/** ID of the report */
reportID: PropTypes.string,
/** The state that the report is currently in */
stateNum: PropTypes.oneOf(_.values(CONST.REPORT.STATE_NUM)),
/** The status of the current report */
statusNum: PropTypes.oneOf(_.values(CONST.REPORT.STATUS)),
});