forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathONYXKEYS.js
executable file
·134 lines (96 loc) · 4.64 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
/**
* 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',
// A key that is set while we are still waiting for the initial round of reports to load. Once set it should not be
// false unless we sign out. If there are reports in storage when the app inits this will be `true`.
INITIAL_REPORT_DATA_LOADED: 'initialReportDataLoaded',
// Boolean flag set whenever we are waiting for the reconnection callbacks to finish.
IS_LOADING_AFTER_RECONNECT: 'isLoadingAfterReconnect',
// Boolean flag set whenever the sidebar has loaded
IS_SIDEBAR_LOADED: 'isSidebarLoaded',
NETWORK_REQUEST_QUEUE: 'networkRequestQueue',
// What the active route is for our navigator. Global route that determines what views to display.
CURRENT_URL: 'currentURL',
// 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',
// Contains the personalDetails of the user as well as their timezone
MY_PERSONAL_DETAILS: 'myPersonalDetails',
// 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 beinstalled.
UPDATE_AVAILABLE: 'updateAvailable',
// 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',
// 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',
// SDK token used to communicate with Plaid API
PLAID_LINK_TOKEN: 'plaidLinkToken',
// List of bank accounts returned by Plaid
PLAID_BANK_ACCOUNTS: 'plaidBankAccounts',
// 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_',
},
// 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',
// 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 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',
// Stores Workspace ID that will be tied to reimbursement account during setup
REIMBURSEMENT_ACCOUNT_WORKSPACE_ID: 'reimbursementAccountWorkspaceID',
};