@studyportals/static-domain-data 7.0.0-2 → 7.0.0-4
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/cjs/src/countries/countries.js +231 -9
- package/cjs/src/countries/country-get-async.js +20 -4
- package/cjs/src/currencies/currencies.js +167 -8
- package/cjs/src/disciplines/discipline-get-parent-discipline.js +2 -6
- package/cjs/src/disciplines/subdisciplines.js +283 -30
- package/esm/src/countries/countries.js +231 -9
- package/esm/src/countries/country-get-async.js +20 -4
- package/esm/src/currencies/currencies.js +167 -8
- package/esm/src/disciplines/discipline-get-parent-discipline.js +2 -6
- package/esm/src/disciplines/subdisciplines.js +283 -30
- package/package.json +1 -1
- package/cjs/src/countries/country-id-chunk-mapping.js +0 -235
- package/cjs/src/countries/country-iso-chunk-mapping.js +0 -235
- package/esm/src/countries/country-id-chunk-mapping.d.ts +0 -2
- package/esm/src/countries/country-id-chunk-mapping.js +0 -232
- package/esm/src/countries/country-iso-chunk-mapping.d.ts +0 -2
- package/esm/src/countries/country-iso-chunk-mapping.js +0 -232
|
@@ -1,16 +1,238 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.countriesAll = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const country_records_m_r_js_1 = require("./chunks/country-records-m-r.js");
|
|
7
|
-
const country_records_s_z_js_1 = require("./chunks/country-records-s-z.js");
|
|
8
|
-
// This list is sorted alphabetically by country name. If you add a new country, please re-sort the list by chunk and by label.
|
|
4
|
+
// This list is sorted alphabetically by country name. If you add a new country, please re-sort the list using the following code:
|
|
5
|
+
// countryRecords.sort((a, b) => a[1].localeCompare(b[1]));
|
|
9
6
|
const countryRecords = [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
["97", "Afghanistan", "AF"],
|
|
8
|
+
["233", "Aland Islands", "AX"],
|
|
9
|
+
["42", "Albania", "AL"],
|
|
10
|
+
["145", "Algeria", "DZ"],
|
|
11
|
+
["201", "American Samoa", "AS"],
|
|
12
|
+
["44", "Andorra", "AD"],
|
|
13
|
+
["146", "Angola", "AO"],
|
|
14
|
+
["224", "Anguilla", "AI"],
|
|
15
|
+
["49", "Antigua and Barbuda", "AG"],
|
|
16
|
+
["84", "Argentina", "AR"],
|
|
17
|
+
["98", "Armenia", "AM"],
|
|
18
|
+
["50", "Aruba", "AW"],
|
|
19
|
+
["202", "Australia", "AU"],
|
|
20
|
+
["3", "Austria", "AT"],
|
|
21
|
+
["99", "Azerbaijan", "AZ"],
|
|
22
|
+
["51", "Bahamas", "BS"],
|
|
23
|
+
["100", "Bahrain", "BH"],
|
|
24
|
+
["101", "Bangladesh", "BD"],
|
|
25
|
+
["52", "Barbados", "BB"],
|
|
26
|
+
["45", "Belarus", "BY"],
|
|
27
|
+
["4", "Belgium", "BE"],
|
|
28
|
+
["53", "Belize", "BZ"],
|
|
29
|
+
["147", "Benin", "BJ"],
|
|
30
|
+
["54", "Bermuda", "BM"],
|
|
31
|
+
["102", "Bhutan", "BT"],
|
|
32
|
+
["85", "Bolivia", "BO"],
|
|
33
|
+
["227", "Bonaire, Sint Eustatius and Saba", "BQ"],
|
|
34
|
+
["40", "Bosnia and Herzegovina", "BA"],
|
|
35
|
+
["148", "Botswana", "BW"],
|
|
36
|
+
["86", "Brazil", "BR"],
|
|
37
|
+
["55", "British Virgin Islands", "VG"],
|
|
38
|
+
["103", "Brunei", "BN"],
|
|
39
|
+
["2", "Bulgaria", "BG"],
|
|
40
|
+
["149", "Burkina Faso", "BF"],
|
|
41
|
+
["150", "Burundi", "BI"],
|
|
42
|
+
["104", "Cambodia", "KH"],
|
|
43
|
+
["151", "Cameroon", "CM"],
|
|
44
|
+
["56", "Canada", "CA"],
|
|
45
|
+
["152", "Cape Verde", "CV"],
|
|
46
|
+
["57", "Cayman Islands", "KY"],
|
|
47
|
+
["153", "Central African Republic", "CF"],
|
|
48
|
+
["154", "Chad", "TD"],
|
|
49
|
+
["87", "Chile", "CL"],
|
|
50
|
+
["105", "China", "CN"],
|
|
51
|
+
["88", "Colombia", "CO"],
|
|
52
|
+
["155", "Comoros", "KM"],
|
|
53
|
+
["156", "Congo (Democratic Republic of the)", "CD"],
|
|
54
|
+
["157", "Congo (Republic of the)", "CG"],
|
|
55
|
+
["203", "Cook Islands", "CK"],
|
|
56
|
+
["58", "Costa Rica", "CR"],
|
|
57
|
+
["158", "Côte d'Ivoire", "CI"],
|
|
58
|
+
["38", "Croatia", "HR"],
|
|
59
|
+
["59", "Cuba", "CU"],
|
|
60
|
+
["225", "Curaçao", "CW"],
|
|
61
|
+
["5", "Cyprus", "CY"],
|
|
62
|
+
["7", "Czech Republic", "CZ"],
|
|
63
|
+
["6", "Denmark", "DK"],
|
|
64
|
+
["159", "Djibouti", "DJ"],
|
|
65
|
+
["60", "Dominica", "DM"],
|
|
66
|
+
["61", "Dominican Republic", "DO"],
|
|
67
|
+
["89", "Ecuador", "EC"],
|
|
68
|
+
["161", "Egypt", "EG"],
|
|
69
|
+
["62", "El Salvador", "SV"],
|
|
70
|
+
["162", "Equatorial Guinea", "GQ"],
|
|
71
|
+
["163", "Eritrea", "ER"],
|
|
72
|
+
["8", "Estonia", "EE"],
|
|
73
|
+
["193", "Eswatini", "SZ"],
|
|
74
|
+
["164", "Ethiopia", "ET"],
|
|
75
|
+
["46", "Faroe Islands", "FO"],
|
|
76
|
+
["204", "Fiji", "FJ"],
|
|
77
|
+
["9", "Finland", "FI"],
|
|
78
|
+
["10", "France", "FR"],
|
|
79
|
+
["90", "French Guiana", "GF"],
|
|
80
|
+
["205", "French Polynesia", "PF"],
|
|
81
|
+
["165", "Gabon", "GA"],
|
|
82
|
+
["166", "Gambia", "GM"],
|
|
83
|
+
["106", "Georgia", "GE"],
|
|
84
|
+
["11", "Germany", "DE"],
|
|
85
|
+
["167", "Ghana", "GH"],
|
|
86
|
+
["25", "Greece", "GR"],
|
|
87
|
+
["63", "Greenland", "GL"],
|
|
88
|
+
["64", "Grenada", "GD"],
|
|
89
|
+
["65", "Guadeloupe", "GP"],
|
|
90
|
+
["206", "Guam", "GU"],
|
|
91
|
+
["66", "Guatemala", "GT"],
|
|
92
|
+
["168", "Guinea", "GN"],
|
|
93
|
+
["169", "Guinea-Bissau", "GW"],
|
|
94
|
+
["91", "Guyana", "GY"],
|
|
95
|
+
["67", "Haiti", "HT"],
|
|
96
|
+
["68", "Honduras", "HN"],
|
|
97
|
+
["107", "Hong Kong (SAR)", "HK"],
|
|
98
|
+
["12", "Hungary", "HU"],
|
|
99
|
+
["13", "Iceland", "IS"],
|
|
100
|
+
["108", "India", "IN"],
|
|
101
|
+
["109", "Indonesia", "ID"],
|
|
102
|
+
["110", "Iran", "IR"],
|
|
103
|
+
["111", "Iraq", "IQ"],
|
|
104
|
+
["14", "Ireland", "IE"],
|
|
105
|
+
["43", "Isle of Man", "IM"],
|
|
106
|
+
["112", "Israel", "IL"],
|
|
107
|
+
["15", "Italy", "IT"],
|
|
108
|
+
["69", "Jamaica", "JM"],
|
|
109
|
+
["113", "Japan", "JP"],
|
|
110
|
+
["114", "Jordan", "JO"],
|
|
111
|
+
["115", "Kazakhstan", "KZ"],
|
|
112
|
+
["170", "Kenya", "KE"],
|
|
113
|
+
["207", "Kiribati", "KI"],
|
|
114
|
+
["230", "Kosovo", "XK"],
|
|
115
|
+
["118", "Kuwait", "KW"],
|
|
116
|
+
["119", "Kyrgyzstan", "KG"],
|
|
117
|
+
["120", "Laos", "LA"],
|
|
118
|
+
["16", "Latvia", "LV"],
|
|
119
|
+
["121", "Lebanon", "LB"],
|
|
120
|
+
["171", "Lesotho", "LS"],
|
|
121
|
+
["172", "Liberia", "LR"],
|
|
122
|
+
["173", "Libya", "LY"],
|
|
123
|
+
["47", "Liechtenstein", "LI"],
|
|
124
|
+
["17", "Lithuania", "LT"],
|
|
125
|
+
["34", "Luxembourg", "LU"],
|
|
126
|
+
["122", "Macao (SAR)", "MO"],
|
|
127
|
+
["174", "Madagascar", "MG"],
|
|
128
|
+
["175", "Malawi", "MW"],
|
|
129
|
+
["123", "Malaysia", "MY"],
|
|
130
|
+
["124", "Maldives", "MV"],
|
|
131
|
+
["176", "Mali", "ML"],
|
|
132
|
+
["35", "Malta", "MT"],
|
|
133
|
+
["208", "Marshall Islands", "MH"],
|
|
134
|
+
["70", "Martinique", "MQ"],
|
|
135
|
+
["177", "Mauritania", "MR"],
|
|
136
|
+
["178", "Mauritius", "MU"],
|
|
137
|
+
["71", "Mexico", "MX"],
|
|
138
|
+
["209", "Micronesia, Federated States of", "FM"],
|
|
139
|
+
["37", "Moldova", "MD"],
|
|
140
|
+
["36", "Monaco", "MC"],
|
|
141
|
+
["125", "Mongolia", "MN"],
|
|
142
|
+
["39", "Montenegro", "ME"],
|
|
143
|
+
["72", "Montserrat", "MS"],
|
|
144
|
+
["179", "Morocco", "MA"],
|
|
145
|
+
["180", "Mozambique", "MZ"],
|
|
146
|
+
["126", "Myanmar", "MM"],
|
|
147
|
+
["181", "Namibia", "NA"],
|
|
148
|
+
["210", "Nauru", "NR"],
|
|
149
|
+
["127", "Nepal", "NP"],
|
|
150
|
+
["1", "Netherlands", "NL"],
|
|
151
|
+
["211", "New Caledonia", "NC"],
|
|
152
|
+
["212", "New Zealand", "NZ"],
|
|
153
|
+
["74", "Nicaragua", "NI"],
|
|
154
|
+
["182", "Niger", "NE"],
|
|
155
|
+
["183", "Nigeria", "NG"],
|
|
156
|
+
["213", "Niue", "NU"],
|
|
157
|
+
["116", "North Korea", "KP"],
|
|
158
|
+
["18", "North Macedonia", "MK"],
|
|
159
|
+
["229", "Northern Cyprus, Turkish Republic of", "XC"],
|
|
160
|
+
["214", "Northern Mariana Islands", "MP"],
|
|
161
|
+
["19", "Norway", "NO"],
|
|
162
|
+
["128", "Oman", "OM"],
|
|
163
|
+
["129", "Pakistan", "PK"],
|
|
164
|
+
["215", "Palau", "PW"],
|
|
165
|
+
["144", "Palestinian Territory, Occupied", "PS"],
|
|
166
|
+
["75", "Panama", "PA"],
|
|
167
|
+
["216", "Papua New Guinea", "PG"],
|
|
168
|
+
["92", "Paraguay", "PY"],
|
|
169
|
+
["93", "Peru", "PE"],
|
|
170
|
+
["130", "Philippines", "PH"],
|
|
171
|
+
["20", "Poland", "PL"],
|
|
172
|
+
["21", "Portugal", "PT"],
|
|
173
|
+
["76", "Puerto Rico", "PR"],
|
|
174
|
+
["131", "Qatar", "QA"],
|
|
175
|
+
["184", "Réunion", "RE"],
|
|
176
|
+
["33", "Romania", "RO"],
|
|
177
|
+
["22", "Russia", "RU"],
|
|
178
|
+
["185", "Rwanda", "RW"],
|
|
179
|
+
["222", "Saint Barthélemy", "BL"],
|
|
180
|
+
["77", "Saint Kitts and Nevis", "KN"],
|
|
181
|
+
["78", "Saint Lucia", "LC"],
|
|
182
|
+
["79", "Saint Pierre and Miquelon", "PM"],
|
|
183
|
+
["80", "Saint Vincent and the Grenadines", "VC"],
|
|
184
|
+
["217", "Samoa", "WS"],
|
|
185
|
+
["48", "San Marino", "SM"],
|
|
186
|
+
["186", "São Tomé and Príncipe", "ST"],
|
|
187
|
+
["132", "Saudi Arabia", "SA"],
|
|
188
|
+
["187", "Senegal", "SN"],
|
|
189
|
+
["23", "Serbia", "RS"],
|
|
190
|
+
["188", "Seychelles", "SC"],
|
|
191
|
+
["189", "Sierra Leone", "SL"],
|
|
192
|
+
["133", "Singapore", "SG"],
|
|
193
|
+
["223", "Sint Maarten", "SX"],
|
|
194
|
+
["41", "Slovakia", "SK"],
|
|
195
|
+
["31", "Slovenia", "SI"],
|
|
196
|
+
["218", "Solomon Islands", "SB"],
|
|
197
|
+
["190", "Somalia", "SO"],
|
|
198
|
+
["191", "South Africa", "ZA"],
|
|
199
|
+
["117", "South Korea", "KR"],
|
|
200
|
+
["232", "South Sudan", "SS"],
|
|
201
|
+
["24", "Spain", "ES"],
|
|
202
|
+
["134", "Sri Lanka", "LK"],
|
|
203
|
+
["192", "Sudan", "SD"],
|
|
204
|
+
["94", "Suriname", "SR"],
|
|
205
|
+
["26", "Sweden", "SE"],
|
|
206
|
+
["27", "Switzerland", "CH"],
|
|
207
|
+
["135", "Syria", "SY"],
|
|
208
|
+
["136", "Taiwan", "TW"],
|
|
209
|
+
["137", "Tajikistan", "TJ"],
|
|
210
|
+
["194", "Tanzania", "TZ"],
|
|
211
|
+
["138", "Thailand", "TH"],
|
|
212
|
+
["160", "Timor-Leste", "TL"],
|
|
213
|
+
["195", "Togo", "TG"],
|
|
214
|
+
["219", "Tonga", "TO"],
|
|
215
|
+
["81", "Trinidad and Tobago", "TT"],
|
|
216
|
+
["196", "Tunisia", "TN"],
|
|
217
|
+
["28", "Turkey", "TR"],
|
|
218
|
+
["139", "Turkmenistan", "TM"],
|
|
219
|
+
["226", "Turks and Caicos Islands", "TC"],
|
|
220
|
+
["220", "Tuvalu", "TV"],
|
|
221
|
+
["197", "Uganda", "UG"],
|
|
222
|
+
["29", "Ukraine", "UA"],
|
|
223
|
+
["140", "United Arab Emirates", "AE"],
|
|
224
|
+
["30", "United Kingdom", "GB"],
|
|
225
|
+
["82", "United States", "US"],
|
|
226
|
+
["83", "United States Virgin Islands", "VI"],
|
|
227
|
+
["95", "Uruguay", "UY"],
|
|
228
|
+
["141", "Uzbekistan", "UZ"],
|
|
229
|
+
["221", "Vanuatu", "VU"],
|
|
230
|
+
["96", "Venezuela", "VE"],
|
|
231
|
+
["142", "Vietnam", "VN"],
|
|
232
|
+
["198", "Western Sahara", "EH"],
|
|
233
|
+
["143", "Yemen", "YE"],
|
|
234
|
+
["199", "Zambia", "ZM"],
|
|
235
|
+
["200", "Zimbabwe", "ZW"],
|
|
14
236
|
];
|
|
15
237
|
const countriesAll = countryRecords.map(([id, name]) => ({ id, name }));
|
|
16
238
|
exports.countriesAll = countriesAll;
|
|
@@ -33,8 +33,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33
33
|
};
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
35
|
exports.countryGetByIsoCodeAsync = exports.countryGetByIdAsync = void 0;
|
|
36
|
-
const
|
|
37
|
-
const country_iso_chunk_mapping_js_1 = require("./country-iso-chunk-mapping.js");
|
|
36
|
+
const country_get_iso_code_js_1 = require("./country-get-iso-code.js");
|
|
38
37
|
const countriesByChunkCache = new Map();
|
|
39
38
|
const countryByIdCache = new Map();
|
|
40
39
|
const countryByIsoCodeCache = new Map();
|
|
@@ -57,6 +56,22 @@ const getRecordsFromChunkModule = (chunk, chunkModule) => {
|
|
|
57
56
|
return (_d = chunkModule.countryRecordsSZ) !== null && _d !== void 0 ? _d : [];
|
|
58
57
|
}
|
|
59
58
|
};
|
|
59
|
+
const countryGetChunkByIsoCode = (isoCode) => {
|
|
60
|
+
const firstLetter = isoCode[0];
|
|
61
|
+
if (!firstLetter) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
if (firstLetter >= "A" && firstLetter <= "F") {
|
|
65
|
+
return "a-f";
|
|
66
|
+
}
|
|
67
|
+
if (firstLetter >= "G" && firstLetter <= "L") {
|
|
68
|
+
return "g-l";
|
|
69
|
+
}
|
|
70
|
+
if (firstLetter >= "M" && firstLetter <= "R") {
|
|
71
|
+
return "m-r";
|
|
72
|
+
}
|
|
73
|
+
return "s-z";
|
|
74
|
+
};
|
|
60
75
|
const loadCountryChunk = (chunk) => __awaiter(void 0, void 0, void 0, function* () {
|
|
61
76
|
if (countriesByChunkCache.has(chunk)) {
|
|
62
77
|
return countriesByChunkCache.get(chunk);
|
|
@@ -78,7 +93,8 @@ const countryGetByIdAsync = (id) => __awaiter(void 0, void 0, void 0, function*
|
|
|
78
93
|
if (countryByIdCache.has(normalizedId)) {
|
|
79
94
|
return countryByIdCache.get(normalizedId);
|
|
80
95
|
}
|
|
81
|
-
const
|
|
96
|
+
const isoCode = (0, country_get_iso_code_js_1.countryGetIsoCode)(normalizedId);
|
|
97
|
+
const chunk = isoCode ? countryGetChunkByIsoCode(isoCode) : null;
|
|
82
98
|
if (!chunk) {
|
|
83
99
|
return null;
|
|
84
100
|
}
|
|
@@ -92,7 +108,7 @@ const countryGetByIsoCodeAsync = (isoCode) => __awaiter(void 0, void 0, void 0,
|
|
|
92
108
|
if (countryByIsoCodeCache.has(normalizedIsoCode)) {
|
|
93
109
|
return countryByIsoCodeCache.get(normalizedIsoCode);
|
|
94
110
|
}
|
|
95
|
-
const chunk =
|
|
111
|
+
const chunk = countryGetChunkByIsoCode(normalizedIsoCode);
|
|
96
112
|
if (!chunk) {
|
|
97
113
|
return null;
|
|
98
114
|
}
|
|
@@ -1,15 +1,174 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.currenciesAll = void 0;
|
|
4
|
-
const currency_records_a_f_js_1 = require("./chunks/currency-records-a-f.js");
|
|
5
|
-
const currency_records_g_l_js_1 = require("./chunks/currency-records-g-l.js");
|
|
6
|
-
const currency_records_m_r_js_1 = require("./chunks/currency-records-m-r.js");
|
|
7
|
-
const currency_records_s_z_js_1 = require("./chunks/currency-records-s-z.js");
|
|
8
4
|
const currencyRecords = [
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
["AED", "United Arab Emirates Dirham"],
|
|
6
|
+
["AFN", "Afghan Afghani"],
|
|
7
|
+
["ALL", "Albanian Lek"],
|
|
8
|
+
["AMD", "Armenian Dram"],
|
|
9
|
+
["ANG", "Netherlands Antillean Guilder"],
|
|
10
|
+
["AOA", "Angolan Kwanza"],
|
|
11
|
+
["ARS", "Argentine Peso"],
|
|
12
|
+
["AUD", "Australian Dollar"],
|
|
13
|
+
["AWG", "Aruban Florin"],
|
|
14
|
+
["AZN", "Azerbaijani Manat"],
|
|
15
|
+
["BAM", "Bosnia-Herzegovina Convertible Mark"],
|
|
16
|
+
["BBD", "Barbadian Dollar"],
|
|
17
|
+
["BDT", "Bangladeshi Taka"],
|
|
18
|
+
["BGN", "Bulgarian Lev"],
|
|
19
|
+
["BHD", "Bahraini Dinar"],
|
|
20
|
+
["BIF", "Burundian Franc"],
|
|
21
|
+
["BMD", "Bermudan Dollar"],
|
|
22
|
+
["BND", "Brunei Dollar"],
|
|
23
|
+
["BOB", "Bolivian Boliviano"],
|
|
24
|
+
["BRL", "Brazilian Real"],
|
|
25
|
+
["BSD", "Bahamian Dollar"],
|
|
26
|
+
["BTC", "Bitcoin"],
|
|
27
|
+
["BTN", "Bhutanese Ngultrum"],
|
|
28
|
+
["BWP", "Botswanan Pula"],
|
|
29
|
+
["BYN", "New Belarusian Ruble"],
|
|
30
|
+
["BYR", "Belarusian Ruble"],
|
|
31
|
+
["BZD", "Belize Dollar"],
|
|
32
|
+
["CAD", "Canadian Dollar"],
|
|
33
|
+
["CDF", "Congolese Franc"],
|
|
34
|
+
["CHF", "Swiss Franc"],
|
|
35
|
+
["CLF", "Chilean Unit of Account (UF)"],
|
|
36
|
+
["CLP", "Chilean Peso"],
|
|
37
|
+
["CNY", "Chinese Yuan"],
|
|
38
|
+
["COP", "Colombian Peso"],
|
|
39
|
+
["CRC", "Costa Rican Colón"],
|
|
40
|
+
["CUC", "Cuban Convertible Peso"],
|
|
41
|
+
["CUP", "Cuban Peso"],
|
|
42
|
+
["CVE", "Cape Verdean Escudo"],
|
|
43
|
+
["CZK", "Czech Republic Koruna"],
|
|
44
|
+
["DJF", "Djiboutian Franc"],
|
|
45
|
+
["DKK", "Danish Krone"],
|
|
46
|
+
["DOP", "Dominican Peso"],
|
|
47
|
+
["DZD", "Algerian Dinar"],
|
|
48
|
+
["EGP", "Egyptian Pound"],
|
|
49
|
+
["ERN", "Eritrean Nakfa"],
|
|
50
|
+
["ETB", "Ethiopian Birr"],
|
|
51
|
+
["EUR", "Euro"],
|
|
52
|
+
["FJD", "Fijian Dollar"],
|
|
53
|
+
["FKP", "Falkland Islands Pound"],
|
|
54
|
+
["GBP", "British Pound Sterling"],
|
|
55
|
+
["GEL", "Georgian Lari"],
|
|
56
|
+
["GGP", "Guernsey Pound"],
|
|
57
|
+
["GHS", "Ghanaian Cedi"],
|
|
58
|
+
["GIP", "Gibraltar Pound"],
|
|
59
|
+
["GMD", "Gambian Dalasi"],
|
|
60
|
+
["GNF", "Guinean Franc"],
|
|
61
|
+
["GTQ", "Guatemalan Quetzal"],
|
|
62
|
+
["GYD", "Guyanaese Dollar"],
|
|
63
|
+
["HKD", "Hong Kong Dollar"],
|
|
64
|
+
["HNL", "Honduran Lempira"],
|
|
65
|
+
["HRK", "Croatian Kuna"],
|
|
66
|
+
["HTG", "Haitian Gourde"],
|
|
67
|
+
["HUF", "Hungarian Forint"],
|
|
68
|
+
["IDR", "Indonesian Rupiah"],
|
|
69
|
+
["ILS", "Israeli New Sheqel"],
|
|
70
|
+
["IMP", "Manx pound"],
|
|
71
|
+
["INR", "Indian Rupee"],
|
|
72
|
+
["IQD", "Iraqi Dinar"],
|
|
73
|
+
["IRR", "Iranian Rial"],
|
|
74
|
+
["ISK", "Icelandic Króna"],
|
|
75
|
+
["JEP", "Jersey Pound"],
|
|
76
|
+
["JMD", "Jamaican Dollar"],
|
|
77
|
+
["JOD", "Jordanian Dinar"],
|
|
78
|
+
["JPY", "Japanese Yen"],
|
|
79
|
+
["KES", "Kenyan Shilling"],
|
|
80
|
+
["KGS", "Kyrgystani Som"],
|
|
81
|
+
["KHR", "Cambodian Riel"],
|
|
82
|
+
["KMF", "Comorian Franc"],
|
|
83
|
+
["KPW", "North Korean Won"],
|
|
84
|
+
["KRW", "South Korean Won"],
|
|
85
|
+
["KWD", "Kuwaiti Dinar"],
|
|
86
|
+
["KYD", "Cayman Islands Dollar"],
|
|
87
|
+
["KZT", "Kazakhstani Tenge"],
|
|
88
|
+
["LAK", "Laotian Kip"],
|
|
89
|
+
["LBP", "Lebanese Pound"],
|
|
90
|
+
["LKR", "Sri Lankan Rupee"],
|
|
91
|
+
["LRD", "Liberian Dollar"],
|
|
92
|
+
["LSL", "Lesotho Loti"],
|
|
93
|
+
["LTL", "Lithuanian Litas"],
|
|
94
|
+
["LVL", "Latvian Lats"],
|
|
95
|
+
["LYD", "Libyan Dinar"],
|
|
96
|
+
["MAD", "Moroccan Dirham"],
|
|
97
|
+
["MDL", "Moldovan Leu"],
|
|
98
|
+
["MGA", "Malagasy Ariary"],
|
|
99
|
+
["MKD", "Macedonian Denar"],
|
|
100
|
+
["MMK", "Myanma Kyat"],
|
|
101
|
+
["MNT", "Mongolian Tugrik"],
|
|
102
|
+
["MOP", "Macanese Pataca"],
|
|
103
|
+
["MUR", "Mauritian Rupee"],
|
|
104
|
+
["MVR", "Maldivian Rufiyaa"],
|
|
105
|
+
["MWK", "Malawian Kwacha"],
|
|
106
|
+
["MXN", "Mexican Peso"],
|
|
107
|
+
["MYR", "Malaysian Ringgit"],
|
|
108
|
+
["MZN", "Mozambican Metical"],
|
|
109
|
+
["NAD", "Namibian Dollar"],
|
|
110
|
+
["NGN", "Nigerian Naira"],
|
|
111
|
+
["NIO", "Nicaraguan Córdoba"],
|
|
112
|
+
["NOK", "Norwegian Krone"],
|
|
113
|
+
["NPR", "Nepalese Rupee"],
|
|
114
|
+
["NZD", "New Zealand Dollar"],
|
|
115
|
+
["OMR", "Omani Rial"],
|
|
116
|
+
["PAB", "Panamanian Balboa"],
|
|
117
|
+
["PEN", "Peruvian Nuevo Sol"],
|
|
118
|
+
["PGK", "Papua New Guinean Kina"],
|
|
119
|
+
["PHP", "Philippine Peso"],
|
|
120
|
+
["PKR", "Pakistani Rupee"],
|
|
121
|
+
["PLN", "Polish Zloty"],
|
|
122
|
+
["PYG", "Paraguayan Guarani"],
|
|
123
|
+
["QAR", "Qatari Rial"],
|
|
124
|
+
["RON", "Romanian Leu"],
|
|
125
|
+
["RSD", "Serbian Dinar"],
|
|
126
|
+
["RUB", "Russian Ruble"],
|
|
127
|
+
["RWF", "Rwandan Franc"],
|
|
128
|
+
["SAR", "Saudi Riyal"],
|
|
129
|
+
["SBD", "Solomon Islands Dollar"],
|
|
130
|
+
["SCR", "Seychellois Rupee"],
|
|
131
|
+
["SDG", "Sudanese Pound"],
|
|
132
|
+
["SEK", "Swedish Krona"],
|
|
133
|
+
["SGD", "Singapore Dollar"],
|
|
134
|
+
["SHP", "Saint Helena Pound"],
|
|
135
|
+
["SLL", "Sierra Leonean Leone"],
|
|
136
|
+
["SOS", "Somali Shilling"],
|
|
137
|
+
["SRD", "Surinamese Dollar"],
|
|
138
|
+
["STD", "São Tomé and Príncipe Dobra"],
|
|
139
|
+
["SVC", "Salvadoran Colón"],
|
|
140
|
+
["SYP", "Syrian Pound"],
|
|
141
|
+
["SZL", "Swazi Lilangeni"],
|
|
142
|
+
["THB", "Thai Baht"],
|
|
143
|
+
["TJS", "Tajikistani Somoni"],
|
|
144
|
+
["TMT", "Turkmenistani Manat"],
|
|
145
|
+
["TND", "Tunisian Dinar"],
|
|
146
|
+
["TOP", "Tongan Paʻanga"],
|
|
147
|
+
["TRY", "Turkish Lira"],
|
|
148
|
+
["TTD", "Trinidad and Tobago Dollar"],
|
|
149
|
+
["TWD", "New Taiwan Dollar"],
|
|
150
|
+
["TZS", "Tanzanian Shilling"],
|
|
151
|
+
["UAH", "Ukrainian Hryvnia"],
|
|
152
|
+
["UGX", "Ugandan Shilling"],
|
|
153
|
+
["USD", "United States Dollar"],
|
|
154
|
+
["UYU", "Uruguayan Peso"],
|
|
155
|
+
["UZS", "Uzbekistan Som"],
|
|
156
|
+
["VEF", "Venezuelan Bolívar Fuerte"],
|
|
157
|
+
["VND", "Vietnamese Dong"],
|
|
158
|
+
["VUV", "Vanuatu Vatu"],
|
|
159
|
+
["WST", "Samoan Tala"],
|
|
160
|
+
["XAF", "CFA Franc BEAC"],
|
|
161
|
+
["XAG", "Silver (troy ounce)"],
|
|
162
|
+
["XAU", "Gold (troy ounce)"],
|
|
163
|
+
["XCD", "East Caribbean Dollar"],
|
|
164
|
+
["XDR", "Special Drawing Rights"],
|
|
165
|
+
["XOF", "CFA Franc BCEAO"],
|
|
166
|
+
["XPF", "CFP Franc"],
|
|
167
|
+
["YER", "Yemeni Rial"],
|
|
168
|
+
["ZAR", "South African Rand"],
|
|
169
|
+
["ZMK", "Zambian Kwacha (pre-2013)"],
|
|
170
|
+
["ZMW", "Zambian Kwacha"],
|
|
171
|
+
["ZWL", "Zimbabwean Dollar"],
|
|
13
172
|
];
|
|
14
173
|
const currenciesAll = currencyRecords.map(([iso, name]) => ({ iso, name }));
|
|
15
174
|
exports.currenciesAll = currenciesAll;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.subdisciplineGetParentId = void 0;
|
|
4
|
-
const
|
|
5
|
-
const subDisciplineParentMapping = subdisciplines_1.subdisciplinesAll.reduce((acc, subDiscipline) => {
|
|
6
|
-
acc[subDiscipline.id] = subDiscipline.disciplineId;
|
|
7
|
-
return acc;
|
|
8
|
-
}, {});
|
|
4
|
+
const subdiscipline_id_discipline_id_mapping_1 = require("./subdiscipline-id-discipline-id-mapping");
|
|
9
5
|
const subdisciplineGetParentId = (subDisciplineId) => {
|
|
10
|
-
return
|
|
6
|
+
return subdiscipline_id_discipline_id_mapping_1.subdisciplineIdDisciplineIdMapping[subDisciplineId] || null;
|
|
11
7
|
};
|
|
12
8
|
exports.subdisciplineGetParentId = subdisciplineGetParentId;
|