forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ONYXKEYS.js
executable file
·175 lines (125 loc) · 6.03 KB
/
ONYXKEYS.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/**
* This is a file containing constants for all the top level keys in our store
*/
export default {
// Holds information about the users account that is logging in
ACCOUNT: 'account',
// Boolean flag only true when first set
NVP_IS_FIRST_TIME_NEW_EXPENSIFY_USER: 'isFirstTimeNewExpensifyUser',
// Holds an array of client IDs which is used for multi-tabs on web in order to know
// which tab is the leader, and which ones are the followers
ACTIVE_CLIENTS: 'activeClients',
// Boolean flag set whenever the sidebar has loaded
IS_SIDEBAR_LOADED: 'isSidebarLoaded',
// Note: These are Persisted Requests - not all requests in the main queue as the key name might lead one to believe
PERSISTED_REQUESTS: 'networkRequestQueue',
// Stores current date
CURRENT_DATE: 'currentDate',
// Currently viewed reportID
CURRENTLY_VIEWED_REPORTID: 'currentlyViewedReportID',
// Credentials to authenticate the user
CREDENTIALS: 'credentials',
// Contains loading data for the IOU feature (IOUModal, IOUDetail, & IOUPreview Components)
IOU: 'iou',
// Keeps track if there is modal currently visible or not
MODAL: 'modal',
// Has information about the network status (offline/online)
NETWORK: 'network',
// Contains all the personalDetails the user has access to
PERSONAL_DETAILS: 'personalDetails',
// Contains a list of all currencies available to the user - user can
// select a currency based on the list
CURRENCY_LIST: 'currencyList',
// Indicates whether an update is available and ready to be installed.
UPDATE_AVAILABLE: 'updateAvailable',
// Indicates that a request to join a screen share with a GuidesPlus agent was received
SCREEN_SHARE_REQUEST: 'screenShareRequest',
// Saves the current country code which is displayed when the user types a phone number without
// an international code
COUNTRY_CODE: 'countryCode',
// Contains all the users settings for the Settings page and sub pages
USER: 'user',
// Contains metadata (partner, login, validation date) for all of the user's logins
LOGIN_LIST: 'loginList',
// Information about the current session (authToken, accountID, email, loading, error)
SESSION: 'session',
BETAS: 'betas',
// NVP keys
// Contains the user's payPalMe address
NVP_PAYPAL_ME_ADDRESS: 'nvp_paypalMeAddress',
// Contains the user preference for the LHN priority mode
NVP_PRIORITY_MODE: 'nvp_priorityMode',
// Contains the users's block expiration (if they have one)
NVP_BLOCKED_FROM_CONCIERGE: 'private_blockedFromConcierge',
// Plaid data (access tokens, bank accounts ...)
PLAID_DATA: 'plaidData',
// Token needed to initialize Plaid link
PLAID_LINK_TOKEN: 'plaidLinkToken',
// Collection Keys
COLLECTION: {
REPORT: 'report_',
REPORT_ACTIONS: 'reportActions_',
REPORT_DRAFT_COMMENT: 'reportDraftComment_',
REPORT_ACTIONS_DRAFTS: 'reportActionsDrafts_',
REPORT_USER_IS_TYPING: 'reportUserIsTyping_',
REPORT_IOUS: 'reportIOUs_',
POLICY: 'policy_',
REPORT_IS_COMPOSER_FULL_SIZE: 'reportIsComposerFullSize_',
POLICY_MEMBER_LIST: 'policyMemberList_',
},
// Indicates which locale should be used
NVP_PREFERRED_LOCALE: 'preferredLocale',
// List of transactionIDs in process of rejection
TRANSACTIONS_BEING_REJECTED: 'transactionsBeingRejected',
// User's Expensify Wallet
USER_WALLET: 'userWallet',
// Object containing Onfido SDK Token + applicantID
WALLET_ONFIDO: 'walletOnfido',
// Stores information about additional details form entry
WALLET_ADDITIONAL_DETAILS: 'walletAdditionalDetails',
// Stores values put into the additional details step of the wallet KYC flow
WALLET_ADDITIONAL_DETAILS_DRAFT: 'walletAdditionalDetailsDraft',
// Object containing Wallet terms step state
WALLET_TERMS: 'walletTerms',
// The user's bank accounts
BANK_ACCOUNT_LIST: 'bankAccountList',
// The user's credit cards
CARD_LIST: 'cardList',
// Stores information about the user's saved statements
WALLET_STATEMENT: 'walletStatement',
// Stores information about the active personal bank account being set up
PERSONAL_BANK_ACCOUNT: 'personalBankAccount',
// Stores information about the active reimbursement account being set up
REIMBURSEMENT_ACCOUNT: 'reimbursementAccount',
// Stores draft information about the active reimbursement account being set up
REIMBURSEMENT_ACCOUNT_DRAFT: 'reimbursementAccountDraft',
// Store preferred skintone for emoji
PREFERRED_EMOJI_SKIN_TONE: 'preferredEmojiSkinTone',
// Store frequently used emojis for this user
FREQUENTLY_USED_EMOJIS: 'frequentlyUsedEmojis',
// Stores Workspace ID that will be tied to reimbursement account during setup
REIMBURSEMENT_ACCOUNT_WORKSPACE_ID: 'reimbursementAccountWorkspaceID',
// Set when we are loading payment methods
IS_LOADING_PAYMENT_METHODS: 'isLoadingPaymentMethods',
// The number of minutes a user has to wait for a call.
INBOX_CALL_USER_WAIT_TIME: 'inboxCallUserWaitTime',
// Is report data loading?
IS_LOADING_REPORT_DATA: 'isLoadingReportData',
// Is policy data loading?
IS_LOADING_POLICY_DATA: 'isLoadingPolicyData',
// Are we loading the create policy room command
IS_LOADING_CREATE_POLICY_ROOM: 'isLoadingCratePolicyRoom',
// Is Keyboard shortcuts modal open?
IS_SHORTCUTS_MODAL_OPEN: 'isShortcutsModalOpen',
// Data related to user closing their account (loading status and error message)
CLOSE_ACCOUNT: 'closeAccount',
// Stores information about active wallet transfer amount, selectedAccountID, status, etc
WALLET_TRANSFER: 'walletTransfer',
// The policyID of the last workspace whose settings were accessed by the user
LAST_ACCESSED_WORKSPACE_POLICY_ID: 'lastAccessedWorkspacePolicyID',
// List of Form ids
FORMS: {
ADD_DEBIT_CARD_FORM: 'addDebitCardForm',
REQUEST_CALL_FORM: 'requestCallForm',
},
};