@becollective/utils 1.10.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.semaphore/utils.yml +1 -1
- package/index.ts +7 -0
- package/lib/FeatureFlag.d.ts +12 -0
- package/lib/FeatureFlag.js +51 -0
- package/lib/constants/allowedHtmlTags.d.ts +7 -0
- package/lib/constants/allowedHtmlTags.js +8 -0
- package/lib/constants/avatarColours.d.ts +35 -0
- package/lib/constants/avatarColours.js +36 -0
- package/lib/constants/countries.d.ts +253 -0
- package/lib/constants/countries.js +254 -0
- package/lib/constants/currencies.d.ts +29 -0
- package/lib/constants/currencies.js +36 -0
- package/lib/constants/customFields.d.ts +11 -0
- package/lib/constants/customFields.js +12 -0
- package/lib/constants/distancesUnits.d.ts +11 -0
- package/lib/constants/distancesUnits.js +13 -0
- package/lib/constants/groups.d.ts +13 -0
- package/lib/constants/groups.js +85 -0
- package/lib/constants/insuranceStatuses.d.ts +15 -0
- package/lib/constants/insuranceStatuses.js +7 -0
- package/lib/constants/insuranceTypes.d.ts +35 -0
- package/lib/constants/insuranceTypes.js +36 -0
- package/lib/constants/languages.d.ts +2 -0
- package/lib/constants/languages.js +194 -0
- package/lib/constants/locales.d.ts +119 -0
- package/lib/constants/locales.js +191 -0
- package/lib/constants/notifications.d.ts +47 -0
- package/lib/constants/notifications.js +31 -0
- package/lib/constants/opportunities.d.ts +72 -0
- package/lib/constants/opportunities.js +82 -0
- package/lib/constants/qualificationTypes.d.ts +4 -0
- package/lib/constants/qualificationTypes.js +18 -0
- package/lib/constants/rules.d.ts +13 -0
- package/lib/constants/rules.js +21 -0
- package/lib/constants/subscriptions.d.ts +9 -0
- package/lib/constants/subscriptions.js +10 -0
- package/lib/constants/surveys.d.ts +16 -0
- package/lib/constants/surveys.js +17 -0
- package/lib/constants.d.ts +1 -0
- package/lib/constants.js +76 -0
- package/lib/date-time.d.ts +28 -0
- package/lib/date-time.js +79 -0
- package/lib/forms.d.ts +1 -0
- package/lib/forms.js +728 -0
- package/lib/locality.d.ts +5 -0
- package/lib/locality.js +15 -0
- package/lib/money.d.ts +7 -0
- package/lib/money.js +32 -0
- package/lib/opportunity.d.ts +1 -0
- package/lib/opportunity.js +11 -0
- package/lib/opportunityUser.d.ts +8 -0
- package/lib/opportunityUser.js +29 -0
- package/lib/password.d.ts +8 -0
- package/lib/password.js +43 -0
- package/lib/rrule/date.d.ts +4 -0
- package/lib/rrule/date.js +30 -0
- package/lib/rrule/index.d.ts +2 -0
- package/lib/rrule/index.js +18 -0
- package/lib/rrule/parsing.d.ts +6 -0
- package/lib/rrule/parsing.js +130 -0
- package/lib/rrule/parsing.test.d.ts +1 -0
- package/lib/rrule/parsing.test.js +11 -0
- package/lib/rrule.d.ts +49 -0
- package/lib/rrule.js +303 -0
- package/lib/src/FeatureFlag.d.ts +12 -0
- package/lib/src/FeatureFlag.js +51 -0
- package/lib/src/date-time.d.ts +28 -0
- package/lib/src/date-time.js +79 -0
- package/lib/src/forms.d.ts +1 -0
- package/lib/src/forms.js +728 -0
- package/lib/src/locality.d.ts +5 -0
- package/lib/src/locality.js +15 -0
- package/lib/src/money.d.ts +7 -0
- package/lib/src/money.js +32 -0
- package/lib/src/opportunity.d.ts +1 -0
- package/lib/src/opportunity.js +11 -0
- package/lib/src/opportunityUser.d.ts +8 -0
- package/lib/src/opportunityUser.js +29 -0
- package/lib/src/password.d.ts +8 -0
- package/lib/src/password.js +43 -0
- package/package.json +15 -29
- package/src/FeatureFlag.ts +26 -10
- package/src/constants/allowedHtmlTags.ts +6 -0
- package/src/constants/avatarColours.ts +34 -0
- package/src/constants/countries.ts +252 -0
- package/src/constants/currencies.ts +33 -0
- package/src/constants/customFields.ts +10 -0
- package/src/constants/distancesUnits.ts +11 -0
- package/src/constants/groups.ts +83 -0
- package/src/constants/insuranceStatuses.ts +5 -0
- package/src/constants/insuranceTypes.ts +34 -0
- package/src/constants/languages.ts +192 -0
- package/src/constants/locales.ts +189 -0
- package/src/constants/notifications.ts +30 -0
- package/src/constants/opportunities.ts +84 -0
- package/src/constants/qualificationTypes.ts +17 -0
- package/src/constants/rules.ts +22 -0
- package/src/constants/subscriptions.ts +8 -0
- package/src/constants/surveys.ts +15 -0
- package/src/constants.ts +40 -0
- package/src/{date-time.js → date-time.ts} +18 -11
- package/src/forms.ts +807 -0
- package/src/{opportunityUser.js → opportunityUser.ts} +5 -1
- package/src/{password.js → password.ts} +2 -0
- package/src/rrule/date.ts +25 -0
- package/src/rrule/index.ts +2 -0
- package/src/rrule/parsing.ts +136 -0
- package/src/rrule.ts +367 -0
- package/tests/{date-time.test.js → date-time.test.ts} +48 -46
- package/tests/featureFlag.test.ts +36 -39
- package/tests/forms.test-data.json +43 -0
- package/tests/forms.test-schema.json +144 -0
- package/tests/forms.test-uischema.json +117 -0
- package/tests/forms.test.ts +674 -0
- package/tests/{money.test.js → money.test.ts} +2 -3
- package/tests/{password.test.js → password.test.ts} +7 -6
- package/tests/rrule/parsing.test.ts +12 -0
- package/tests/rrule.test.ts +625 -0
- package/tsconfig.json +15 -12
- package/bundle.js +0 -270
- package/index.js +0 -25
- package/rollup.config.js +0 -25
- /package/src/{locality.js → locality.ts} +0 -0
- /package/src/{money.js → money.ts} +0 -0
- /package/src/{opportunity.js → opportunity.ts} +0 -0
package/.semaphore/utils.yml
CHANGED
package/index.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { password } from './src/password';
|
|
2
|
+
export { isUnderSixteen, isUnderAge, getAge, datesByThemselves, getShiftText } from './src/date-time';
|
|
3
|
+
export { getCurrencyFromCurrencyCode, makeMoneyString } from './src/money';
|
|
4
|
+
export { readableOpportunityType } from './src/opportunity';
|
|
5
|
+
export { getTimeInfo } from './src/opportunityUser';
|
|
6
|
+
export { getHomeLocalityFromLocationList } from './src/locality';
|
|
7
|
+
export { FeatureFlag } from './src/FeatureFlag';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class FeatureFlag {
|
|
2
|
+
ttl: number;
|
|
3
|
+
expiry: number;
|
|
4
|
+
constructor(ttl?: any);
|
|
5
|
+
isFeatureActive(feature: string, options: {
|
|
6
|
+
env: string;
|
|
7
|
+
region?: string;
|
|
8
|
+
}): Promise<boolean>;
|
|
9
|
+
clearCache(): void;
|
|
10
|
+
setCacheTtl(ttl: number): void;
|
|
11
|
+
}
|
|
12
|
+
export default FeatureFlag;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FeatureFlag = void 0;
|
|
4
|
+
const cache = {
|
|
5
|
+
store: new Map(),
|
|
6
|
+
memoize: async (feature, options) => {
|
|
7
|
+
const stringified = JSON.stringify({ feature, options });
|
|
8
|
+
const response = cache.store.get(stringified);
|
|
9
|
+
if (response) {
|
|
10
|
+
return JSON.parse(response);
|
|
11
|
+
}
|
|
12
|
+
const fetchResponse = await fetchFeatureActive(feature, options);
|
|
13
|
+
cache.store.set(stringified, JSON.stringify(fetchResponse));
|
|
14
|
+
return fetchResponse;
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
const fetchFeatureActive = async (feature, options) => {
|
|
18
|
+
const getFlagByFeatureUrl = `https://lb-central.becollective.com/api/v2/feature-flags/${feature}`;
|
|
19
|
+
let isFeatureActive = false;
|
|
20
|
+
const featureFlags = await fetch(getFlagByFeatureUrl, { method: 'get' });
|
|
21
|
+
const json = await featureFlags.json();
|
|
22
|
+
const environments = json.Environments;
|
|
23
|
+
if (environments) {
|
|
24
|
+
isFeatureActive = environments.includes(options.env);
|
|
25
|
+
}
|
|
26
|
+
return isFeatureActive;
|
|
27
|
+
};
|
|
28
|
+
class FeatureFlag {
|
|
29
|
+
constructor(ttl) {
|
|
30
|
+
this.ttl = ttl || 1000 * 60 * 5; // default to 5 minutes
|
|
31
|
+
this.expiry = Date.now() + ttl;
|
|
32
|
+
}
|
|
33
|
+
async isFeatureActive(feature, options) {
|
|
34
|
+
// Lazy expiration upon function call
|
|
35
|
+
const now = Date.now();
|
|
36
|
+
if (now >= this.expiry) {
|
|
37
|
+
cache.store.clear();
|
|
38
|
+
this.expiry = now + this.ttl;
|
|
39
|
+
}
|
|
40
|
+
return cache.memoize(feature, options);
|
|
41
|
+
}
|
|
42
|
+
clearCache() {
|
|
43
|
+
cache.store.clear();
|
|
44
|
+
}
|
|
45
|
+
setCacheTtl(ttl) {
|
|
46
|
+
this.ttl = ttl;
|
|
47
|
+
this.expiry = Date.now() + ttl;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.FeatureFlag = FeatureFlag;
|
|
51
|
+
exports.default = FeatureFlag;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
allowedTags: ['b', 'i', 'em', 'strong', 'a', 'p', 'u', 'del', 'div', 'ins', 'li', 'ul', 'ol', 'br'],
|
|
5
|
+
allowedAttributes: {
|
|
6
|
+
a: ['href', 'target', 'rel'],
|
|
7
|
+
},
|
|
8
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
watusi: {
|
|
3
|
+
backgroundColour: string;
|
|
4
|
+
textColour: string;
|
|
5
|
+
};
|
|
6
|
+
hawkesBlue: {
|
|
7
|
+
backgroundColour: string;
|
|
8
|
+
textColour: string;
|
|
9
|
+
};
|
|
10
|
+
botticelli: {
|
|
11
|
+
backgroundColour: string;
|
|
12
|
+
textColour: string;
|
|
13
|
+
};
|
|
14
|
+
surfCrest: {
|
|
15
|
+
backgroundColour: string;
|
|
16
|
+
textColour: string;
|
|
17
|
+
};
|
|
18
|
+
quarterSpanishWhite: {
|
|
19
|
+
backgroundColour: string;
|
|
20
|
+
textColour: string;
|
|
21
|
+
};
|
|
22
|
+
buttermilk: {
|
|
23
|
+
backgroundColour: string;
|
|
24
|
+
textColour: string;
|
|
25
|
+
};
|
|
26
|
+
fog: {
|
|
27
|
+
backgroundColour: string;
|
|
28
|
+
textColour: string;
|
|
29
|
+
};
|
|
30
|
+
mabel: {
|
|
31
|
+
backgroundColour: string;
|
|
32
|
+
textColour: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
watusi: {
|
|
5
|
+
backgroundColour: '#f5d0b9',
|
|
6
|
+
textColour: '#845235',
|
|
7
|
+
},
|
|
8
|
+
hawkesBlue: {
|
|
9
|
+
backgroundColour: '#f6dae4',
|
|
10
|
+
textColour: '#8b4960',
|
|
11
|
+
},
|
|
12
|
+
botticelli: {
|
|
13
|
+
backgroundColour: '#cedde9',
|
|
14
|
+
textColour: '#46637d',
|
|
15
|
+
},
|
|
16
|
+
surfCrest: {
|
|
17
|
+
backgroundColour: '#c8d8c2',
|
|
18
|
+
textColour: '#49623f',
|
|
19
|
+
},
|
|
20
|
+
quarterSpanishWhite: {
|
|
21
|
+
backgroundColour: '#e9e0d2',
|
|
22
|
+
textColour: '#7a6114',
|
|
23
|
+
},
|
|
24
|
+
buttermilk: {
|
|
25
|
+
backgroundColour: '#f1e0ab',
|
|
26
|
+
textColour: '#635429',
|
|
27
|
+
},
|
|
28
|
+
fog: {
|
|
29
|
+
backgroundColour: '#e0d8ee',
|
|
30
|
+
textColour: '#625082',
|
|
31
|
+
},
|
|
32
|
+
mabel: {
|
|
33
|
+
backgroundColour: '#c1e6e5',
|
|
34
|
+
textColour: '#426968',
|
|
35
|
+
},
|
|
36
|
+
};
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
BD: string;
|
|
3
|
+
BE: string;
|
|
4
|
+
BF: string;
|
|
5
|
+
BG: string;
|
|
6
|
+
BA: string;
|
|
7
|
+
BB: string;
|
|
8
|
+
WF: string;
|
|
9
|
+
BL: string;
|
|
10
|
+
BM: string;
|
|
11
|
+
BN: string;
|
|
12
|
+
BO: string;
|
|
13
|
+
BH: string;
|
|
14
|
+
BI: string;
|
|
15
|
+
BJ: string;
|
|
16
|
+
BT: string;
|
|
17
|
+
JM: string;
|
|
18
|
+
BV: string;
|
|
19
|
+
BW: string;
|
|
20
|
+
WS: string;
|
|
21
|
+
BQ: string;
|
|
22
|
+
BR: string;
|
|
23
|
+
BS: string;
|
|
24
|
+
JE: string;
|
|
25
|
+
BY: string;
|
|
26
|
+
BZ: string;
|
|
27
|
+
RU: string;
|
|
28
|
+
RW: string;
|
|
29
|
+
RS: string;
|
|
30
|
+
TL: string;
|
|
31
|
+
RE: string;
|
|
32
|
+
TM: string;
|
|
33
|
+
TJ: string;
|
|
34
|
+
RO: string;
|
|
35
|
+
TK: string;
|
|
36
|
+
GW: string;
|
|
37
|
+
GU: string;
|
|
38
|
+
GT: string;
|
|
39
|
+
GS: string;
|
|
40
|
+
GR: string;
|
|
41
|
+
GQ: string;
|
|
42
|
+
GP: string;
|
|
43
|
+
JP: string;
|
|
44
|
+
GY: string;
|
|
45
|
+
GG: string;
|
|
46
|
+
GF: string;
|
|
47
|
+
GE: string;
|
|
48
|
+
GD: string;
|
|
49
|
+
GB: string;
|
|
50
|
+
GA: string;
|
|
51
|
+
SV: string;
|
|
52
|
+
GN: string;
|
|
53
|
+
GM: string;
|
|
54
|
+
GL: string;
|
|
55
|
+
GI: string;
|
|
56
|
+
GH: string;
|
|
57
|
+
OM: string;
|
|
58
|
+
TN: string;
|
|
59
|
+
JO: string;
|
|
60
|
+
HR: string;
|
|
61
|
+
HT: string;
|
|
62
|
+
HU: string;
|
|
63
|
+
HK: string;
|
|
64
|
+
HN: string;
|
|
65
|
+
HM: string;
|
|
66
|
+
VE: string;
|
|
67
|
+
PR: string;
|
|
68
|
+
PS: string;
|
|
69
|
+
PW: string;
|
|
70
|
+
PT: string;
|
|
71
|
+
SJ: string;
|
|
72
|
+
PY: string;
|
|
73
|
+
IQ: string;
|
|
74
|
+
PA: string;
|
|
75
|
+
PF: string;
|
|
76
|
+
PG: string;
|
|
77
|
+
PE: string;
|
|
78
|
+
PK: string;
|
|
79
|
+
PH: string;
|
|
80
|
+
PN: string;
|
|
81
|
+
PL: string;
|
|
82
|
+
PM: string;
|
|
83
|
+
ZM: string;
|
|
84
|
+
EH: string;
|
|
85
|
+
EE: string;
|
|
86
|
+
EG: string;
|
|
87
|
+
ZA: string;
|
|
88
|
+
EC: string;
|
|
89
|
+
IT: string;
|
|
90
|
+
VN: string;
|
|
91
|
+
SB: string;
|
|
92
|
+
ET: string;
|
|
93
|
+
SO: string;
|
|
94
|
+
ZW: string;
|
|
95
|
+
SA: string;
|
|
96
|
+
ES: string;
|
|
97
|
+
ER: string;
|
|
98
|
+
ME: string;
|
|
99
|
+
MD: string;
|
|
100
|
+
MG: string;
|
|
101
|
+
MF: string;
|
|
102
|
+
MA: string;
|
|
103
|
+
MC: string;
|
|
104
|
+
UZ: string;
|
|
105
|
+
MM: string;
|
|
106
|
+
ML: string;
|
|
107
|
+
MO: string;
|
|
108
|
+
MN: string;
|
|
109
|
+
MH: string;
|
|
110
|
+
MK: string;
|
|
111
|
+
MU: string;
|
|
112
|
+
MT: string;
|
|
113
|
+
MW: string;
|
|
114
|
+
MV: string;
|
|
115
|
+
MQ: string;
|
|
116
|
+
MP: string;
|
|
117
|
+
MS: string;
|
|
118
|
+
MR: string;
|
|
119
|
+
IM: string;
|
|
120
|
+
UG: string;
|
|
121
|
+
TZ: string;
|
|
122
|
+
MY: string;
|
|
123
|
+
MX: string;
|
|
124
|
+
IL: string;
|
|
125
|
+
FR: string;
|
|
126
|
+
IO: string;
|
|
127
|
+
SH: string;
|
|
128
|
+
FI: string;
|
|
129
|
+
FJ: string;
|
|
130
|
+
FK: string;
|
|
131
|
+
FM: string;
|
|
132
|
+
FO: string;
|
|
133
|
+
NI: string;
|
|
134
|
+
NL: string;
|
|
135
|
+
NO: string;
|
|
136
|
+
NA: string;
|
|
137
|
+
VU: string;
|
|
138
|
+
NC: string;
|
|
139
|
+
NE: string;
|
|
140
|
+
NF: string;
|
|
141
|
+
NG: string;
|
|
142
|
+
NZ: string;
|
|
143
|
+
NP: string;
|
|
144
|
+
NR: string;
|
|
145
|
+
NU: string;
|
|
146
|
+
CK: string;
|
|
147
|
+
XK: string;
|
|
148
|
+
CI: string;
|
|
149
|
+
CH: string;
|
|
150
|
+
CO: string;
|
|
151
|
+
CN: string;
|
|
152
|
+
CM: string;
|
|
153
|
+
CL: string;
|
|
154
|
+
CC: string;
|
|
155
|
+
CA: string;
|
|
156
|
+
CG: string;
|
|
157
|
+
CF: string;
|
|
158
|
+
CD: string;
|
|
159
|
+
CZ: string;
|
|
160
|
+
CY: string;
|
|
161
|
+
CX: string;
|
|
162
|
+
CR: string;
|
|
163
|
+
CW: string;
|
|
164
|
+
CV: string;
|
|
165
|
+
CU: string;
|
|
166
|
+
SZ: string;
|
|
167
|
+
SY: string;
|
|
168
|
+
SX: string;
|
|
169
|
+
KG: string;
|
|
170
|
+
KE: string;
|
|
171
|
+
SS: string;
|
|
172
|
+
SR: string;
|
|
173
|
+
KI: string;
|
|
174
|
+
KH: string;
|
|
175
|
+
KN: string;
|
|
176
|
+
KM: string;
|
|
177
|
+
ST: string;
|
|
178
|
+
SK: string;
|
|
179
|
+
KR: string;
|
|
180
|
+
SI: string;
|
|
181
|
+
KP: string;
|
|
182
|
+
KW: string;
|
|
183
|
+
SN: string;
|
|
184
|
+
SM: string;
|
|
185
|
+
SL: string;
|
|
186
|
+
SC: string;
|
|
187
|
+
KZ: string;
|
|
188
|
+
KY: string;
|
|
189
|
+
SG: string;
|
|
190
|
+
SE: string;
|
|
191
|
+
SD: string;
|
|
192
|
+
DO: string;
|
|
193
|
+
DM: string;
|
|
194
|
+
DJ: string;
|
|
195
|
+
DK: string;
|
|
196
|
+
VG: string;
|
|
197
|
+
DE: string;
|
|
198
|
+
YE: string;
|
|
199
|
+
DZ: string;
|
|
200
|
+
US: string;
|
|
201
|
+
UY: string;
|
|
202
|
+
YT: string;
|
|
203
|
+
UM: string;
|
|
204
|
+
LB: string;
|
|
205
|
+
LC: string;
|
|
206
|
+
LA: string;
|
|
207
|
+
TV: string;
|
|
208
|
+
TW: string;
|
|
209
|
+
TT: string;
|
|
210
|
+
TR: string;
|
|
211
|
+
LK: string;
|
|
212
|
+
LI: string;
|
|
213
|
+
LV: string;
|
|
214
|
+
TO: string;
|
|
215
|
+
LT: string;
|
|
216
|
+
LU: string;
|
|
217
|
+
LR: string;
|
|
218
|
+
LS: string;
|
|
219
|
+
TH: string;
|
|
220
|
+
TF: string;
|
|
221
|
+
TG: string;
|
|
222
|
+
TD: string;
|
|
223
|
+
TC: string;
|
|
224
|
+
LY: string;
|
|
225
|
+
VA: string;
|
|
226
|
+
VC: string;
|
|
227
|
+
AE: string;
|
|
228
|
+
AD: string;
|
|
229
|
+
AG: string;
|
|
230
|
+
AF: string;
|
|
231
|
+
AI: string;
|
|
232
|
+
VI: string;
|
|
233
|
+
IS: string;
|
|
234
|
+
IR: string;
|
|
235
|
+
AM: string;
|
|
236
|
+
AL: string;
|
|
237
|
+
AO: string;
|
|
238
|
+
AQ: string;
|
|
239
|
+
AS: string;
|
|
240
|
+
AR: string;
|
|
241
|
+
AU: string;
|
|
242
|
+
AT: string;
|
|
243
|
+
AW: string;
|
|
244
|
+
IN: string;
|
|
245
|
+
AX: string;
|
|
246
|
+
AZ: string;
|
|
247
|
+
IE: string;
|
|
248
|
+
ID: string;
|
|
249
|
+
UA: string;
|
|
250
|
+
QA: string;
|
|
251
|
+
MZ: string;
|
|
252
|
+
};
|
|
253
|
+
export default _default;
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
BD: 'Bangladesh',
|
|
5
|
+
BE: 'Belgium',
|
|
6
|
+
BF: 'Burkina Faso',
|
|
7
|
+
BG: 'Bulgaria',
|
|
8
|
+
BA: 'Bosnia and Herzegovina',
|
|
9
|
+
BB: 'Barbados',
|
|
10
|
+
WF: 'Wallis and Futuna',
|
|
11
|
+
BL: 'Saint Barthelemy',
|
|
12
|
+
BM: 'Bermuda',
|
|
13
|
+
BN: 'Brunei',
|
|
14
|
+
BO: 'Bolivia',
|
|
15
|
+
BH: 'Bahrain',
|
|
16
|
+
BI: 'Burundi',
|
|
17
|
+
BJ: 'Benin',
|
|
18
|
+
BT: 'Bhutan',
|
|
19
|
+
JM: 'Jamaica',
|
|
20
|
+
BV: 'Bouvet Island',
|
|
21
|
+
BW: 'Botswana',
|
|
22
|
+
WS: 'Samoa',
|
|
23
|
+
BQ: 'Bonaire, Saint Eustatius and Saba ',
|
|
24
|
+
BR: 'Brazil',
|
|
25
|
+
BS: 'Bahamas',
|
|
26
|
+
JE: 'Jersey',
|
|
27
|
+
BY: 'Belarus',
|
|
28
|
+
BZ: 'Belize',
|
|
29
|
+
RU: 'Russia',
|
|
30
|
+
RW: 'Rwanda',
|
|
31
|
+
RS: 'Serbia',
|
|
32
|
+
TL: 'East Timor',
|
|
33
|
+
RE: 'Reunion',
|
|
34
|
+
TM: 'Turkmenistan',
|
|
35
|
+
TJ: 'Tajikistan',
|
|
36
|
+
RO: 'Romania',
|
|
37
|
+
TK: 'Tokelau',
|
|
38
|
+
GW: 'Guinea-Bissau',
|
|
39
|
+
GU: 'Guam',
|
|
40
|
+
GT: 'Guatemala',
|
|
41
|
+
GS: 'South Georgia and the South Sandwich Islands',
|
|
42
|
+
GR: 'Greece',
|
|
43
|
+
GQ: 'Equatorial Guinea',
|
|
44
|
+
GP: 'Guadeloupe',
|
|
45
|
+
JP: 'Japan',
|
|
46
|
+
GY: 'Guyana',
|
|
47
|
+
GG: 'Guernsey',
|
|
48
|
+
GF: 'French Guiana',
|
|
49
|
+
GE: 'Georgia',
|
|
50
|
+
GD: 'Grenada',
|
|
51
|
+
GB: 'United Kingdom',
|
|
52
|
+
GA: 'Gabon',
|
|
53
|
+
SV: 'El Salvador',
|
|
54
|
+
GN: 'Guinea',
|
|
55
|
+
GM: 'Gambia',
|
|
56
|
+
GL: 'Greenland',
|
|
57
|
+
GI: 'Gibraltar',
|
|
58
|
+
GH: 'Ghana',
|
|
59
|
+
OM: 'Oman',
|
|
60
|
+
TN: 'Tunisia',
|
|
61
|
+
JO: 'Jordan',
|
|
62
|
+
HR: 'Croatia',
|
|
63
|
+
HT: 'Haiti',
|
|
64
|
+
HU: 'Hungary',
|
|
65
|
+
HK: 'Hong Kong',
|
|
66
|
+
HN: 'Honduras',
|
|
67
|
+
HM: 'Heard Island and McDonald Islands',
|
|
68
|
+
VE: 'Venezuela',
|
|
69
|
+
PR: 'Puerto Rico',
|
|
70
|
+
PS: 'Palestinian Territory',
|
|
71
|
+
PW: 'Palau',
|
|
72
|
+
PT: 'Portugal',
|
|
73
|
+
SJ: 'Svalbard and Jan Mayen',
|
|
74
|
+
PY: 'Paraguay',
|
|
75
|
+
IQ: 'Iraq',
|
|
76
|
+
PA: 'Panama',
|
|
77
|
+
PF: 'French Polynesia',
|
|
78
|
+
PG: 'Papua New Guinea',
|
|
79
|
+
PE: 'Peru',
|
|
80
|
+
PK: 'Pakistan',
|
|
81
|
+
PH: 'Philippines',
|
|
82
|
+
PN: 'Pitcairn',
|
|
83
|
+
PL: 'Poland',
|
|
84
|
+
PM: 'Saint Pierre and Miquelon',
|
|
85
|
+
ZM: 'Zambia',
|
|
86
|
+
EH: 'Western Sahara',
|
|
87
|
+
EE: 'Estonia',
|
|
88
|
+
EG: 'Egypt',
|
|
89
|
+
ZA: 'South Africa',
|
|
90
|
+
EC: 'Ecuador',
|
|
91
|
+
IT: 'Italy',
|
|
92
|
+
VN: 'Vietnam',
|
|
93
|
+
SB: 'Solomon Islands',
|
|
94
|
+
ET: 'Ethiopia',
|
|
95
|
+
SO: 'Somalia',
|
|
96
|
+
ZW: 'Zimbabwe',
|
|
97
|
+
SA: 'Saudi Arabia',
|
|
98
|
+
ES: 'Spain',
|
|
99
|
+
ER: 'Eritrea',
|
|
100
|
+
ME: 'Montenegro',
|
|
101
|
+
MD: 'Moldova',
|
|
102
|
+
MG: 'Madagascar',
|
|
103
|
+
MF: 'Saint Martin',
|
|
104
|
+
MA: 'Morocco',
|
|
105
|
+
MC: 'Monaco',
|
|
106
|
+
UZ: 'Uzbekistan',
|
|
107
|
+
MM: 'Myanmar',
|
|
108
|
+
ML: 'Mali',
|
|
109
|
+
MO: 'Macao',
|
|
110
|
+
MN: 'Mongolia',
|
|
111
|
+
MH: 'Marshall Islands',
|
|
112
|
+
MK: 'Macedonia',
|
|
113
|
+
MU: 'Mauritius',
|
|
114
|
+
MT: 'Malta',
|
|
115
|
+
MW: 'Malawi',
|
|
116
|
+
MV: 'Maldives',
|
|
117
|
+
MQ: 'Martinique',
|
|
118
|
+
MP: 'Northern Mariana Islands',
|
|
119
|
+
MS: 'Montserrat',
|
|
120
|
+
MR: 'Mauritania',
|
|
121
|
+
IM: 'Isle of Man',
|
|
122
|
+
UG: 'Uganda',
|
|
123
|
+
TZ: 'Tanzania',
|
|
124
|
+
MY: 'Malaysia',
|
|
125
|
+
MX: 'Mexico',
|
|
126
|
+
IL: 'Israel',
|
|
127
|
+
FR: 'France',
|
|
128
|
+
IO: 'British Indian Ocean Territory',
|
|
129
|
+
SH: 'Saint Helena',
|
|
130
|
+
FI: 'Finland',
|
|
131
|
+
FJ: 'Fiji',
|
|
132
|
+
FK: 'Falkland Islands',
|
|
133
|
+
FM: 'Micronesia',
|
|
134
|
+
FO: 'Faroe Islands',
|
|
135
|
+
NI: 'Nicaragua',
|
|
136
|
+
NL: 'Netherlands',
|
|
137
|
+
NO: 'Norway',
|
|
138
|
+
NA: 'Namibia',
|
|
139
|
+
VU: 'Vanuatu',
|
|
140
|
+
NC: 'New Caledonia',
|
|
141
|
+
NE: 'Niger',
|
|
142
|
+
NF: 'Norfolk Island',
|
|
143
|
+
NG: 'Nigeria',
|
|
144
|
+
NZ: 'New Zealand',
|
|
145
|
+
NP: 'Nepal',
|
|
146
|
+
NR: 'Nauru',
|
|
147
|
+
NU: 'Niue',
|
|
148
|
+
CK: 'Cook Islands',
|
|
149
|
+
XK: 'Kosovo',
|
|
150
|
+
CI: 'Ivory Coast',
|
|
151
|
+
CH: 'Switzerland',
|
|
152
|
+
CO: 'Colombia',
|
|
153
|
+
CN: 'China',
|
|
154
|
+
CM: 'Cameroon',
|
|
155
|
+
CL: 'Chile',
|
|
156
|
+
CC: 'Cocos Islands',
|
|
157
|
+
CA: 'Canada',
|
|
158
|
+
CG: 'Republic of the Congo',
|
|
159
|
+
CF: 'Central African Republic',
|
|
160
|
+
CD: 'Democratic Republic of the Congo',
|
|
161
|
+
CZ: 'Czech Republic',
|
|
162
|
+
CY: 'Cyprus',
|
|
163
|
+
CX: 'Christmas Island',
|
|
164
|
+
CR: 'Costa Rica',
|
|
165
|
+
CW: 'Curacao',
|
|
166
|
+
CV: 'Cape Verde',
|
|
167
|
+
CU: 'Cuba',
|
|
168
|
+
SZ: 'Swaziland',
|
|
169
|
+
SY: 'Syria',
|
|
170
|
+
SX: 'Sint Maarten',
|
|
171
|
+
KG: 'Kyrgyzstan',
|
|
172
|
+
KE: 'Kenya',
|
|
173
|
+
SS: 'South Sudan',
|
|
174
|
+
SR: 'Suriname',
|
|
175
|
+
KI: 'Kiribati',
|
|
176
|
+
KH: 'Cambodia',
|
|
177
|
+
KN: 'Saint Kitts and Nevis',
|
|
178
|
+
KM: 'Comoros',
|
|
179
|
+
ST: 'Sao Tome and Principe',
|
|
180
|
+
SK: 'Slovakia',
|
|
181
|
+
KR: 'South Korea',
|
|
182
|
+
SI: 'Slovenia',
|
|
183
|
+
KP: 'North Korea',
|
|
184
|
+
KW: 'Kuwait',
|
|
185
|
+
SN: 'Senegal',
|
|
186
|
+
SM: 'San Marino',
|
|
187
|
+
SL: 'Sierra Leone',
|
|
188
|
+
SC: 'Seychelles',
|
|
189
|
+
KZ: 'Kazakhstan',
|
|
190
|
+
KY: 'Cayman Islands',
|
|
191
|
+
SG: 'Singapore',
|
|
192
|
+
SE: 'Sweden',
|
|
193
|
+
SD: 'Sudan',
|
|
194
|
+
DO: 'Dominican Republic',
|
|
195
|
+
DM: 'Dominica',
|
|
196
|
+
DJ: 'Djibouti',
|
|
197
|
+
DK: 'Denmark',
|
|
198
|
+
VG: 'British Virgin Islands',
|
|
199
|
+
DE: 'Germany',
|
|
200
|
+
YE: 'Yemen',
|
|
201
|
+
DZ: 'Algeria',
|
|
202
|
+
US: 'United States',
|
|
203
|
+
UY: 'Uruguay',
|
|
204
|
+
YT: 'Mayotte',
|
|
205
|
+
UM: 'United States Minor Outlying Islands',
|
|
206
|
+
LB: 'Lebanon',
|
|
207
|
+
LC: 'Saint Lucia',
|
|
208
|
+
LA: 'Laos',
|
|
209
|
+
TV: 'Tuvalu',
|
|
210
|
+
TW: 'Taiwan',
|
|
211
|
+
TT: 'Trinidad and Tobago',
|
|
212
|
+
TR: 'Turkey',
|
|
213
|
+
LK: 'Sri Lanka',
|
|
214
|
+
LI: 'Liechtenstein',
|
|
215
|
+
LV: 'Latvia',
|
|
216
|
+
TO: 'Tonga',
|
|
217
|
+
LT: 'Lithuania',
|
|
218
|
+
LU: 'Luxembourg',
|
|
219
|
+
LR: 'Liberia',
|
|
220
|
+
LS: 'Lesotho',
|
|
221
|
+
TH: 'Thailand',
|
|
222
|
+
TF: 'French Southern Territories',
|
|
223
|
+
TG: 'Togo',
|
|
224
|
+
TD: 'Chad',
|
|
225
|
+
TC: 'Turks and Caicos Islands',
|
|
226
|
+
LY: 'Libya',
|
|
227
|
+
VA: 'Vatican',
|
|
228
|
+
VC: 'Saint Vincent and the Grenadines',
|
|
229
|
+
AE: 'United Arab Emirates',
|
|
230
|
+
AD: 'Andorra',
|
|
231
|
+
AG: 'Antigua and Barbuda',
|
|
232
|
+
AF: 'Afghanistan',
|
|
233
|
+
AI: 'Anguilla',
|
|
234
|
+
VI: 'U.S. Virgin Islands',
|
|
235
|
+
IS: 'Iceland',
|
|
236
|
+
IR: 'Iran',
|
|
237
|
+
AM: 'Armenia',
|
|
238
|
+
AL: 'Albania',
|
|
239
|
+
AO: 'Angola',
|
|
240
|
+
AQ: 'Antarctica',
|
|
241
|
+
AS: 'American Samoa',
|
|
242
|
+
AR: 'Argentina',
|
|
243
|
+
AU: 'Australia',
|
|
244
|
+
AT: 'Austria',
|
|
245
|
+
AW: 'Aruba',
|
|
246
|
+
IN: 'India',
|
|
247
|
+
AX: 'Aland Islands',
|
|
248
|
+
AZ: 'Azerbaijan',
|
|
249
|
+
IE: 'Ireland',
|
|
250
|
+
ID: 'Indonesia',
|
|
251
|
+
UA: 'Ukraine',
|
|
252
|
+
QA: 'Qatar',
|
|
253
|
+
MZ: 'Mozambique',
|
|
254
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
AUD: {
|
|
3
|
+
code: string;
|
|
4
|
+
name: string;
|
|
5
|
+
minorUnit: number;
|
|
6
|
+
symbol: any;
|
|
7
|
+
prefix: string;
|
|
8
|
+
};
|
|
9
|
+
NZD: {
|
|
10
|
+
code: string;
|
|
11
|
+
name: string;
|
|
12
|
+
minorUnit: number;
|
|
13
|
+
symbol: any;
|
|
14
|
+
prefix: string;
|
|
15
|
+
};
|
|
16
|
+
GBP: {
|
|
17
|
+
code: string;
|
|
18
|
+
name: string;
|
|
19
|
+
minorUnit: number;
|
|
20
|
+
symbol: any;
|
|
21
|
+
};
|
|
22
|
+
EUR: {
|
|
23
|
+
code: string;
|
|
24
|
+
name: string;
|
|
25
|
+
minorUnit: number;
|
|
26
|
+
symbol: any;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|