Skip to content

Commit 0f4c26a

Browse files
authored
Merge pull request #875 from Expensify/techievivek_add_more_constants
Add more constants since web-s has a constant file deleted
2 parents db41b3f + 913bfa4 commit 0f4c26a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

lib/CONST.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ const CONST = {
2525
*/
2626
ACH_DEFAULT_MAX_AMOUNT_LIMIT: 2000000,
2727

28+
/**
29+
* This is set in main.html and is derived from a PHP template variable
30+
* @type {String}
31+
*/
32+
URL_TO_SECURE_WEBSITE: '',
33+
2834
/**
2935
* IRS remimbursement rate for mileage
3036
* WARNING ! UPDATE THE PHP CONSTANT VERSION WHEN UPDATING THIS ONE
@@ -42,7 +48,9 @@ const CONST = {
4248

4349
COUNTRY: {
4450
US: 'US',
51+
MX: 'MX',
4552
AU: 'AU',
53+
CA: 'CA',
4654
UK: 'UK',
4755
NZ: 'NZ',
4856
},
@@ -447,6 +455,11 @@ const CONST = {
447455
MAX_AGE_SAME_COMMENT: 300,
448456

449457
SMARTREPORT_AGENT_EMAIL: '[email protected]',
458+
459+
/**
460+
* Email to submit smart reports to (alias for consistency)
461+
*/
462+
SMART_REPORT_AGENT_EMAIL: '[email protected]',
450463
},
451464

452465
/**
@@ -572,6 +585,23 @@ const CONST = {
572585
VERIFICATION_MAX_ATTEMPTS: 7,
573586
},
574587

588+
// The number of days that certain banks limit their transaction imports to
589+
// see https://stackoverflow.com/c/expensify/questions/1289/1290#1290 for more about this.
590+
// If a bank isn't on this list, we default to 90 days
591+
BANK_IMPORT_DAY_LIMITS: {
592+
'americanexpress.com': 30,
593+
'oauth.bankofamerica.com': 30,
594+
'oauth.capitalone.com': 90,
595+
'oauth.chase.com': 90,
596+
'discover.com': 30,
597+
'admin.pexcard.com': 30,
598+
svbdirect: 75,
599+
'oauth.wellsfargo.com': 30,
600+
},
601+
DEFAULT_BANK_IMPORT_DAYS: 90,
602+
PERSONAL_CARD_START_DATE_TOOLTIP:
603+
'Expensify will automatically import the earliest available transactions from this card. If a start date is selected, transactions with a posted date prior to this will not be included.',
604+
575605
/**
576606
* Emails that the user shouldn't be interacting with from the front-end interface
577607
* Trying to add these emails as a delegate, onto a policy, or as an approver is considered invalid

0 commit comments

Comments
 (0)