@studyportals/static-domain-data 7.0.0-0 → 7.0.0-2

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.
Files changed (135) hide show
  1. package/cjs/src/continents/continent-country-mapping.js +21 -242
  2. package/cjs/src/continents/continent-iso-country-mapping.js +3 -2
  3. package/cjs/src/countries/chunks/country-records-a-f.js +80 -0
  4. package/cjs/src/countries/chunks/country-records-g-l.js +51 -0
  5. package/cjs/src/countries/chunks/country-records-m-r.js +59 -0
  6. package/cjs/src/countries/chunks/country-records-s-z.js +63 -0
  7. package/cjs/src/countries/countries.js +11 -919
  8. package/cjs/src/countries/country-bit-values-mapping.js +231 -229
  9. package/cjs/src/countries/country-get-async.js +102 -0
  10. package/cjs/src/countries/country-get-path.js +8 -234
  11. package/cjs/src/countries/country-id-chunk-mapping.js +235 -0
  12. package/cjs/src/countries/country-id-iso-code-mapping.js +10 -230
  13. package/cjs/src/countries/country-iso-chunk-mapping.js +235 -0
  14. package/cjs/src/countries/i-country-record.js +2 -0
  15. package/cjs/src/currencies/chunks/currency-records-a-f.js +55 -0
  16. package/cjs/src/currencies/chunks/currency-records-g-l.js +48 -0
  17. package/cjs/src/currencies/chunks/currency-records-m-r.js +38 -0
  18. package/cjs/src/currencies/chunks/currency-records-s-z.js +50 -0
  19. package/cjs/src/currencies/currencies.js +10 -669
  20. package/cjs/src/currencies/currency-get-async.js +97 -0
  21. package/cjs/src/currencies/currency-get-countries.js +16 -526
  22. package/cjs/src/currencies/currency-get-from-country.js +6 -4
  23. package/cjs/src/currencies/i-currency-record.js +2 -0
  24. package/cjs/src/disciplines/chunks/subdisciplines-10.js +32 -0
  25. package/cjs/src/disciplines/chunks/subdisciplines-11.js +30 -0
  26. package/cjs/src/disciplines/chunks/subdisciplines-117.js +19 -0
  27. package/cjs/src/disciplines/chunks/subdisciplines-12.js +17 -0
  28. package/cjs/src/disciplines/chunks/subdisciplines-13.js +45 -0
  29. package/cjs/src/disciplines/chunks/subdisciplines-23.js +50 -0
  30. package/cjs/src/disciplines/chunks/subdisciplines-24.js +23 -0
  31. package/cjs/src/disciplines/chunks/subdisciplines-258.js +28 -0
  32. package/cjs/src/disciplines/chunks/subdisciplines-289.js +25 -0
  33. package/cjs/src/disciplines/chunks/subdisciplines-54.js +12 -0
  34. package/cjs/src/disciplines/chunks/subdisciplines-58.js +12 -0
  35. package/cjs/src/disciplines/chunks/subdisciplines-6.js +16 -0
  36. package/cjs/src/disciplines/chunks/subdisciplines-64.js +12 -0
  37. package/cjs/src/disciplines/chunks/subdisciplines-7.js +30 -0
  38. package/cjs/src/disciplines/chunks/subdisciplines-9.js +22 -0
  39. package/cjs/src/disciplines/discipline-get-subdiscipline-by-id-async.js +33 -0
  40. package/cjs/src/disciplines/discipline-get-subdisciplines-async.js +74 -0
  41. package/cjs/src/disciplines/i-sub-discipline-record.js +2 -0
  42. package/cjs/src/disciplines/subdiscipline-id-discipline-id-mapping.js +289 -0
  43. package/cjs/src/disciplines/subdisciplines.js +32 -1416
  44. package/cjs/src/gpa/get-grade-by-grade-type.js +2 -25
  45. package/cjs/src/gpa/grade-data-by-type.js +57 -0
  46. package/esm/src/continents/continent-country-mapping.d.ts +1 -1
  47. package/esm/src/continents/continent-country-mapping.js +22 -243
  48. package/esm/src/continents/continent-iso-country-mapping.d.ts +2 -1
  49. package/esm/src/continents/continent-iso-country-mapping.js +2 -2
  50. package/esm/src/countries/chunks/country-records-a-f.d.ts +3 -0
  51. package/esm/src/countries/chunks/country-records-a-f.js +77 -0
  52. package/esm/src/countries/chunks/country-records-g-l.d.ts +3 -0
  53. package/esm/src/countries/chunks/country-records-g-l.js +48 -0
  54. package/esm/src/countries/chunks/country-records-m-r.d.ts +3 -0
  55. package/esm/src/countries/chunks/country-records-m-r.js +56 -0
  56. package/esm/src/countries/chunks/country-records-s-z.d.ts +3 -0
  57. package/esm/src/countries/chunks/country-records-s-z.js +60 -0
  58. package/esm/src/countries/countries.d.ts +1 -1
  59. package/esm/src/countries/countries.js +12 -920
  60. package/esm/src/countries/country-bit-values-mapping.d.ts +3 -2
  61. package/esm/src/countries/country-bit-values-mapping.js +231 -229
  62. package/esm/src/countries/country-get-async.d.ts +4 -0
  63. package/esm/src/countries/country-get-async.js +75 -0
  64. package/esm/src/countries/country-get-path.d.ts +1 -1
  65. package/esm/src/countries/country-get-path.js +9 -235
  66. package/esm/src/countries/country-id-chunk-mapping.d.ts +2 -0
  67. package/esm/src/countries/country-id-chunk-mapping.js +232 -0
  68. package/esm/src/countries/country-id-iso-code-mapping.d.ts +1 -1
  69. package/esm/src/countries/country-id-iso-code-mapping.js +11 -231
  70. package/esm/src/countries/country-iso-chunk-mapping.d.ts +2 -0
  71. package/esm/src/countries/country-iso-chunk-mapping.js +232 -0
  72. package/esm/src/countries/i-country-record.d.ts +1 -0
  73. package/esm/src/countries/i-country-record.js +1 -0
  74. package/esm/src/currencies/chunks/currency-records-a-f.d.ts +3 -0
  75. package/esm/src/currencies/chunks/currency-records-a-f.js +52 -0
  76. package/esm/src/currencies/chunks/currency-records-g-l.d.ts +3 -0
  77. package/esm/src/currencies/chunks/currency-records-g-l.js +45 -0
  78. package/esm/src/currencies/chunks/currency-records-m-r.d.ts +3 -0
  79. package/esm/src/currencies/chunks/currency-records-m-r.js +35 -0
  80. package/esm/src/currencies/chunks/currency-records-s-z.d.ts +3 -0
  81. package/esm/src/currencies/chunks/currency-records-s-z.js +47 -0
  82. package/esm/src/currencies/currencies.d.ts +1 -1
  83. package/esm/src/currencies/currencies.js +11 -670
  84. package/esm/src/currencies/currency-get-async.d.ts +3 -0
  85. package/esm/src/currencies/currency-get-async.js +71 -0
  86. package/esm/src/currencies/currency-get-countries.d.ts +1 -1
  87. package/esm/src/currencies/currency-get-countries.js +17 -527
  88. package/esm/src/currencies/currency-get-from-country.d.ts +1 -1
  89. package/esm/src/currencies/currency-get-from-country.js +7 -5
  90. package/esm/src/currencies/i-currency-record.d.ts +1 -0
  91. package/esm/src/currencies/i-currency-record.js +1 -0
  92. package/esm/src/disciplines/chunks/subdisciplines-10.d.ts +3 -0
  93. package/esm/src/disciplines/chunks/subdisciplines-10.js +29 -0
  94. package/esm/src/disciplines/chunks/subdisciplines-11.d.ts +3 -0
  95. package/esm/src/disciplines/chunks/subdisciplines-11.js +27 -0
  96. package/esm/src/disciplines/chunks/subdisciplines-117.d.ts +3 -0
  97. package/esm/src/disciplines/chunks/subdisciplines-117.js +16 -0
  98. package/esm/src/disciplines/chunks/subdisciplines-12.d.ts +3 -0
  99. package/esm/src/disciplines/chunks/subdisciplines-12.js +14 -0
  100. package/esm/src/disciplines/chunks/subdisciplines-13.d.ts +3 -0
  101. package/esm/src/disciplines/chunks/subdisciplines-13.js +42 -0
  102. package/esm/src/disciplines/chunks/subdisciplines-23.d.ts +3 -0
  103. package/esm/src/disciplines/chunks/subdisciplines-23.js +47 -0
  104. package/esm/src/disciplines/chunks/subdisciplines-24.d.ts +3 -0
  105. package/esm/src/disciplines/chunks/subdisciplines-24.js +20 -0
  106. package/esm/src/disciplines/chunks/subdisciplines-258.d.ts +3 -0
  107. package/esm/src/disciplines/chunks/subdisciplines-258.js +25 -0
  108. package/esm/src/disciplines/chunks/subdisciplines-289.d.ts +3 -0
  109. package/esm/src/disciplines/chunks/subdisciplines-289.js +22 -0
  110. package/esm/src/disciplines/chunks/subdisciplines-54.d.ts +3 -0
  111. package/esm/src/disciplines/chunks/subdisciplines-54.js +9 -0
  112. package/esm/src/disciplines/chunks/subdisciplines-58.d.ts +3 -0
  113. package/esm/src/disciplines/chunks/subdisciplines-58.js +9 -0
  114. package/esm/src/disciplines/chunks/subdisciplines-6.d.ts +3 -0
  115. package/esm/src/disciplines/chunks/subdisciplines-6.js +13 -0
  116. package/esm/src/disciplines/chunks/subdisciplines-64.d.ts +3 -0
  117. package/esm/src/disciplines/chunks/subdisciplines-64.js +9 -0
  118. package/esm/src/disciplines/chunks/subdisciplines-7.d.ts +3 -0
  119. package/esm/src/disciplines/chunks/subdisciplines-7.js +27 -0
  120. package/esm/src/disciplines/chunks/subdisciplines-9.d.ts +3 -0
  121. package/esm/src/disciplines/chunks/subdisciplines-9.js +19 -0
  122. package/esm/src/disciplines/discipline-get-subdiscipline-by-id-async.d.ts +3 -0
  123. package/esm/src/disciplines/discipline-get-subdiscipline-by-id-async.js +30 -0
  124. package/esm/src/disciplines/discipline-get-subdisciplines-async.d.ts +4 -0
  125. package/esm/src/disciplines/discipline-get-subdisciplines-async.js +47 -0
  126. package/esm/src/disciplines/i-sub-discipline-record.d.ts +1 -0
  127. package/esm/src/disciplines/i-sub-discipline-record.js +1 -0
  128. package/esm/src/disciplines/subdiscipline-id-discipline-id-mapping.d.ts +2 -0
  129. package/esm/src/disciplines/subdiscipline-id-discipline-id-mapping.js +286 -0
  130. package/esm/src/disciplines/subdisciplines.js +32 -1416
  131. package/esm/src/gpa/get-grade-by-grade-type.js +2 -2
  132. package/esm/src/gpa/grade-data-by-type.d.ts +4 -0
  133. package/esm/src/gpa/grade-data-by-type.js +54 -0
  134. package/esm/src/gpa/i-option.d.ts +1 -1
  135. package/package.json +1 -1
@@ -0,0 +1,71 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ const currenciesByChunkCache = new Map();
11
+ const currencyByIsoCache = new Map();
12
+ const currencyChunkLoaders = {
13
+ "a-f": () => import("./chunks/currency-records-a-f.js"),
14
+ "g-l": () => import("./chunks/currency-records-g-l.js"),
15
+ "m-r": () => import("./chunks/currency-records-m-r.js"),
16
+ "s-z": () => import("./chunks/currency-records-s-z.js"),
17
+ };
18
+ const getRecordsFromChunkModule = (chunk, chunkModule) => {
19
+ var _a, _b, _c, _d;
20
+ switch (chunk) {
21
+ case "a-f":
22
+ return (_a = chunkModule.currencyRecordsAF) !== null && _a !== void 0 ? _a : [];
23
+ case "g-l":
24
+ return (_b = chunkModule.currencyRecordsGL) !== null && _b !== void 0 ? _b : [];
25
+ case "m-r":
26
+ return (_c = chunkModule.currencyRecordsMR) !== null && _c !== void 0 ? _c : [];
27
+ case "s-z":
28
+ return (_d = chunkModule.currencyRecordsSZ) !== null && _d !== void 0 ? _d : [];
29
+ }
30
+ };
31
+ const getCurrencyChunkByIso = (isoCode) => {
32
+ const firstLetter = isoCode[0];
33
+ if (firstLetter >= "A" && firstLetter <= "F") {
34
+ return "a-f";
35
+ }
36
+ if (firstLetter >= "G" && firstLetter <= "L") {
37
+ return "g-l";
38
+ }
39
+ if (firstLetter >= "M" && firstLetter <= "R") {
40
+ return "m-r";
41
+ }
42
+ return "s-z";
43
+ };
44
+ const loadCurrencyChunk = (chunk) => __awaiter(void 0, void 0, void 0, function* () {
45
+ if (currenciesByChunkCache.has(chunk)) {
46
+ return currenciesByChunkCache.get(chunk);
47
+ }
48
+ const chunkModule = yield currencyChunkLoaders[chunk]();
49
+ const records = getRecordsFromChunkModule(chunk, chunkModule);
50
+ const currencies = records.map(([iso, name]) => {
51
+ const currency = { iso, name };
52
+ currencyByIsoCache.set(iso, currency);
53
+ return currency;
54
+ });
55
+ currenciesByChunkCache.set(chunk, currencies);
56
+ return currencies;
57
+ });
58
+ const currencyGetByIsoAsync = (isoCode) => __awaiter(void 0, void 0, void 0, function* () {
59
+ var _a;
60
+ const normalizedIsoCode = isoCode.toUpperCase().trim();
61
+ if (!normalizedIsoCode) {
62
+ return null;
63
+ }
64
+ if (currencyByIsoCache.has(normalizedIsoCode)) {
65
+ return currencyByIsoCache.get(normalizedIsoCode);
66
+ }
67
+ const chunk = getCurrencyChunkByIso(normalizedIsoCode);
68
+ yield loadCurrencyChunk(chunk);
69
+ return (_a = currencyByIsoCache.get(normalizedIsoCode)) !== null && _a !== void 0 ? _a : null;
70
+ });
71
+ export { currencyGetByIsoAsync, };
@@ -1,2 +1,2 @@
1
1
  declare const currencyGetCountries: (iso: string) => readonly string[];
2
- export { currencyGetCountries };
2
+ export { currencyGetCountries, };
@@ -1,529 +1,19 @@
1
- const idsOfCountriesByCurrencyIso = new Map();
2
- idsOfCountriesByCurrencyIso.set("AED", [
3
- "140"
4
- ]);
5
- idsOfCountriesByCurrencyIso.set("AFN", [
6
- "97"
7
- ]);
8
- idsOfCountriesByCurrencyIso.set("AMD", [
9
- "98"
10
- ]);
11
- idsOfCountriesByCurrencyIso.set("ANG", [
12
- "223",
13
- "225"
14
- ]);
15
- idsOfCountriesByCurrencyIso.set("AOA", [
16
- "146"
17
- ]);
18
- idsOfCountriesByCurrencyIso.set("ARS", [
19
- "84"
20
- ]);
21
- idsOfCountriesByCurrencyIso.set("AUD", [
22
- "202",
23
- "207",
24
- "208",
25
- "210",
26
- "220"
27
- ]);
28
- idsOfCountriesByCurrencyIso.set("AWG", [
29
- "50"
30
- ]);
31
- idsOfCountriesByCurrencyIso.set("AZN", [
32
- "99"
33
- ]);
34
- idsOfCountriesByCurrencyIso.set("BBD", [
35
- "52"
36
- ]);
37
- idsOfCountriesByCurrencyIso.set("BDT", [
38
- "101"
39
- ]);
40
- idsOfCountriesByCurrencyIso.set("BGN", [
41
- "2"
42
- ]);
43
- idsOfCountriesByCurrencyIso.set("BHD", [
44
- "100"
45
- ]);
46
- idsOfCountriesByCurrencyIso.set("BIF", [
47
- "150"
48
- ]);
49
- idsOfCountriesByCurrencyIso.set("BMD", [
50
- "54"
51
- ]);
52
- idsOfCountriesByCurrencyIso.set("BND", [
53
- "103"
54
- ]);
55
- idsOfCountriesByCurrencyIso.set("BOB", [
56
- "85"
57
- ]);
58
- idsOfCountriesByCurrencyIso.set("BRL", [
59
- "86"
60
- ]);
61
- idsOfCountriesByCurrencyIso.set("BSD", [
62
- "51"
63
- ]);
64
- idsOfCountriesByCurrencyIso.set("BTN", [
65
- "102"
66
- ]);
67
- idsOfCountriesByCurrencyIso.set("BWP", [
68
- "148",
69
- "200"
70
- ]);
71
- idsOfCountriesByCurrencyIso.set("BYR", [
72
- "45"
73
- ]);
74
- idsOfCountriesByCurrencyIso.set("BZD", [
75
- "53"
76
- ]);
77
- idsOfCountriesByCurrencyIso.set("CAD", [
78
- "56"
79
- ]);
80
- idsOfCountriesByCurrencyIso.set("CDF", [
81
- "156"
82
- ]);
83
- idsOfCountriesByCurrencyIso.set("CHF", [
84
- "27",
85
- "47"
86
- ]);
87
- idsOfCountriesByCurrencyIso.set("CLP", [
88
- "87"
89
- ]);
90
- idsOfCountriesByCurrencyIso.set("CNY", [
91
- "105"
92
- ]);
93
- idsOfCountriesByCurrencyIso.set("COP", [
94
- "88"
95
- ]);
96
- idsOfCountriesByCurrencyIso.set("CRC", [
97
- "58"
98
- ]);
99
- idsOfCountriesByCurrencyIso.set("CUC", [
100
- "59"
101
- ]);
102
- idsOfCountriesByCurrencyIso.set("CVE", [
103
- "152"
104
- ]);
105
- idsOfCountriesByCurrencyIso.set("CZK", [
106
- "7"
107
- ]);
108
- idsOfCountriesByCurrencyIso.set("DJF", [
109
- "159"
110
- ]);
111
- idsOfCountriesByCurrencyIso.set("DKK", [
112
- "6",
113
- "63"
114
- ]);
115
- idsOfCountriesByCurrencyIso.set("DOP", [
116
- "61"
117
- ]);
118
- idsOfCountriesByCurrencyIso.set("DZD", [
119
- "145"
120
- ]);
121
- idsOfCountriesByCurrencyIso.set("EGP", [
122
- "161"
123
- ]);
124
- idsOfCountriesByCurrencyIso.set("ERN", [
125
- "163"
126
- ]);
127
- idsOfCountriesByCurrencyIso.set("ETB", [
128
- "164"
129
- ]);
130
- idsOfCountriesByCurrencyIso.set("EUR", [
131
- "1",
132
- "3",
133
- "4",
134
- "5",
135
- "8",
136
- "9",
137
- "10",
138
- "11",
139
- "14",
140
- "15",
141
- "21",
142
- "24",
143
- "25",
144
- "31",
145
- "34",
146
- "35",
147
- "36",
148
- "37",
149
- "38",
150
- "39",
151
- "40",
152
- "41",
153
- "42",
154
- "43",
155
- "44",
156
- "48",
157
- "65",
158
- "70",
159
- "79",
160
- "184",
161
- "222",
162
- "230"
163
- ]);
164
- idsOfCountriesByCurrencyIso.set("FJD", [
165
- "204"
166
- ]);
167
- idsOfCountriesByCurrencyIso.set("GBP", [
168
- "30"
169
- ]);
170
- idsOfCountriesByCurrencyIso.set("GEL", [
171
- "106"
172
- ]);
173
- idsOfCountriesByCurrencyIso.set("GHS", [
174
- "167"
175
- ]);
176
- idsOfCountriesByCurrencyIso.set("GMD", [
177
- "166"
178
- ]);
179
- idsOfCountriesByCurrencyIso.set("GNF", [
180
- "90",
181
- "168"
182
- ]);
183
- idsOfCountriesByCurrencyIso.set("GTQ", [
184
- "66"
185
- ]);
186
- idsOfCountriesByCurrencyIso.set("GYD", [
187
- "91"
188
- ]);
189
- idsOfCountriesByCurrencyIso.set("HKD", [
190
- "107"
191
- ]);
192
- idsOfCountriesByCurrencyIso.set("HNL", [
193
- "68"
194
- ]);
195
- idsOfCountriesByCurrencyIso.set("HTG", [
196
- "67"
197
- ]);
198
- idsOfCountriesByCurrencyIso.set("HUF", [
199
- "12"
200
- ]);
201
- idsOfCountriesByCurrencyIso.set("IDR", [
202
- "109"
203
- ]);
204
- idsOfCountriesByCurrencyIso.set("ILS", [
205
- "112",
206
- "144"
207
- ]);
208
- idsOfCountriesByCurrencyIso.set("INR", [
209
- "108"
210
- ]);
211
- idsOfCountriesByCurrencyIso.set("IQD", [
212
- "111"
213
- ]);
214
- idsOfCountriesByCurrencyIso.set("IRR", [
215
- "110"
216
- ]);
217
- idsOfCountriesByCurrencyIso.set("ISK", [
218
- "13"
219
- ]);
220
- idsOfCountriesByCurrencyIso.set("JMD", [
221
- "69"
222
- ]);
223
- idsOfCountriesByCurrencyIso.set("JOD", [
224
- "114"
225
- ]);
226
- idsOfCountriesByCurrencyIso.set("JPY", [
227
- "113"
228
- ]);
229
- idsOfCountriesByCurrencyIso.set("KES", [
230
- "170"
231
- ]);
232
- idsOfCountriesByCurrencyIso.set("KGS", [
233
- "119"
234
- ]);
235
- idsOfCountriesByCurrencyIso.set("KHR", [
236
- "104"
237
- ]);
238
- idsOfCountriesByCurrencyIso.set("KMF", [
239
- "155"
240
- ]);
241
- idsOfCountriesByCurrencyIso.set("KPW", [
242
- "116"
243
- ]);
244
- idsOfCountriesByCurrencyIso.set("KRW", [
245
- "117"
246
- ]);
247
- idsOfCountriesByCurrencyIso.set("KWD", [
248
- "118"
249
- ]);
250
- idsOfCountriesByCurrencyIso.set("KYD", [
251
- "57"
252
- ]);
253
- idsOfCountriesByCurrencyIso.set("KZT", [
254
- "115"
255
- ]);
256
- idsOfCountriesByCurrencyIso.set("LAK", [
257
- "120"
258
- ]);
259
- idsOfCountriesByCurrencyIso.set("LBP", [
260
- "121"
261
- ]);
262
- idsOfCountriesByCurrencyIso.set("LKR", [
263
- "134"
264
- ]);
265
- idsOfCountriesByCurrencyIso.set("LRD", [
266
- "172"
267
- ]);
268
- idsOfCountriesByCurrencyIso.set("LSL", [
269
- "171"
270
- ]);
271
- idsOfCountriesByCurrencyIso.set("LTL", [
272
- "17"
273
- ]);
274
- idsOfCountriesByCurrencyIso.set("LVL", [
275
- "16"
276
- ]);
277
- idsOfCountriesByCurrencyIso.set("LYD", [
278
- "173"
279
- ]);
280
- idsOfCountriesByCurrencyIso.set("MAD", [
281
- "179",
282
- "198"
283
- ]);
284
- idsOfCountriesByCurrencyIso.set("MGA", [
285
- "174"
286
- ]);
287
- idsOfCountriesByCurrencyIso.set("MKD", [
288
- "18"
289
- ]);
290
- idsOfCountriesByCurrencyIso.set("MMK", [
291
- "126"
292
- ]);
293
- idsOfCountriesByCurrencyIso.set("MNT", [
294
- "125"
295
- ]);
296
- idsOfCountriesByCurrencyIso.set("MOP", [
297
- "122"
298
- ]);
299
- idsOfCountriesByCurrencyIso.set("MRO", [
300
- "177"
301
- ]);
302
- idsOfCountriesByCurrencyIso.set("MUR", [
303
- "178"
304
- ]);
305
- idsOfCountriesByCurrencyIso.set("MVR", [
306
- "124"
307
- ]);
308
- idsOfCountriesByCurrencyIso.set("MWK", [
309
- "175"
310
- ]);
311
- idsOfCountriesByCurrencyIso.set("MXN", [
312
- "71"
313
- ]);
314
- idsOfCountriesByCurrencyIso.set("MYR", [
315
- "123"
316
- ]);
317
- idsOfCountriesByCurrencyIso.set("MZN", [
318
- "180"
319
- ]);
320
- idsOfCountriesByCurrencyIso.set("NAD", [
321
- "181"
322
- ]);
323
- idsOfCountriesByCurrencyIso.set("NGN", [
324
- "183"
325
- ]);
326
- idsOfCountriesByCurrencyIso.set("NIO", [
327
- "74"
328
- ]);
329
- idsOfCountriesByCurrencyIso.set("NOK", [
330
- "19"
331
- ]);
332
- idsOfCountriesByCurrencyIso.set("NPR", [
333
- "127"
334
- ]);
335
- idsOfCountriesByCurrencyIso.set("NZD", [
336
- "203",
337
- "212",
338
- "213"
339
- ]);
340
- idsOfCountriesByCurrencyIso.set("OMR", [
341
- "128"
342
- ]);
343
- idsOfCountriesByCurrencyIso.set("PAB", [
344
- "75"
345
- ]);
346
- idsOfCountriesByCurrencyIso.set("PEN", [
347
- "93"
348
- ]);
349
- idsOfCountriesByCurrencyIso.set("PGK", [
350
- "216"
351
- ]);
352
- idsOfCountriesByCurrencyIso.set("PHP", [
353
- "130"
354
- ]);
355
- idsOfCountriesByCurrencyIso.set("PKR", [
356
- "129"
357
- ]);
358
- idsOfCountriesByCurrencyIso.set("PLN", [
359
- "20"
360
- ]);
361
- idsOfCountriesByCurrencyIso.set("PYG", [
362
- "92"
363
- ]);
364
- idsOfCountriesByCurrencyIso.set("QAR", [
365
- "131"
366
- ]);
367
- idsOfCountriesByCurrencyIso.set("RON", [
368
- "33"
369
- ]);
370
- idsOfCountriesByCurrencyIso.set("RSD", [
371
- "23"
372
- ]);
373
- idsOfCountriesByCurrencyIso.set("RUB", [
374
- "22"
375
- ]);
376
- idsOfCountriesByCurrencyIso.set("RWF", [
377
- "185"
378
- ]);
379
- idsOfCountriesByCurrencyIso.set("SAR", [
380
- "132"
381
- ]);
382
- idsOfCountriesByCurrencyIso.set("SBD", [
383
- "218"
384
- ]);
385
- idsOfCountriesByCurrencyIso.set("SCR", [
386
- "188"
387
- ]);
388
- idsOfCountriesByCurrencyIso.set("SDG", [
389
- "192",
390
- "232"
391
- ]);
392
- idsOfCountriesByCurrencyIso.set("SEK", [
393
- "26"
394
- ]);
395
- idsOfCountriesByCurrencyIso.set("SGD", [
396
- "133"
397
- ]);
398
- idsOfCountriesByCurrencyIso.set("SLL", [
399
- "189"
400
- ]);
401
- idsOfCountriesByCurrencyIso.set("SOS", [
402
- "190"
403
- ]);
404
- idsOfCountriesByCurrencyIso.set("SRD", [
405
- "94"
406
- ]);
407
- idsOfCountriesByCurrencyIso.set("STD", [
408
- "186"
409
- ]);
410
- idsOfCountriesByCurrencyIso.set("SVC", [
411
- "62"
412
- ]);
413
- idsOfCountriesByCurrencyIso.set("SYP", [
414
- "135"
415
- ]);
416
- idsOfCountriesByCurrencyIso.set("SZL", [
417
- "193"
418
- ]);
419
- idsOfCountriesByCurrencyIso.set("THB", [
420
- "138"
421
- ]);
422
- idsOfCountriesByCurrencyIso.set("TJS", [
423
- "137"
424
- ]);
425
- idsOfCountriesByCurrencyIso.set("TMT", [
426
- "139"
427
- ]);
428
- idsOfCountriesByCurrencyIso.set("TND", [
429
- "196"
430
- ]);
431
- idsOfCountriesByCurrencyIso.set("TOP", [
432
- "219"
433
- ]);
434
- idsOfCountriesByCurrencyIso.set("TRY", [
435
- "28",
436
- "229"
437
- ]);
438
- idsOfCountriesByCurrencyIso.set("TTD", [
439
- "81"
440
- ]);
441
- idsOfCountriesByCurrencyIso.set("TWD", [
442
- "136"
443
- ]);
444
- idsOfCountriesByCurrencyIso.set("TZS", [
445
- "194"
446
- ]);
447
- idsOfCountriesByCurrencyIso.set("UAH", [
448
- "29"
449
- ]);
450
- idsOfCountriesByCurrencyIso.set("UGX", [
451
- "197"
452
- ]);
453
- idsOfCountriesByCurrencyIso.set("USD", [
454
- "55",
455
- "76",
456
- "82",
457
- "83",
458
- "89",
459
- "160",
460
- "201",
461
- "206",
462
- "209",
463
- "214",
464
- "215",
465
- "226",
466
- "227"
467
- ]);
468
- idsOfCountriesByCurrencyIso.set("UYU", [
469
- "95"
470
- ]);
471
- idsOfCountriesByCurrencyIso.set("UZS", [
472
- "141"
473
- ]);
474
- idsOfCountriesByCurrencyIso.set("VEF", [
475
- "96"
476
- ]);
477
- idsOfCountriesByCurrencyIso.set("VND", [
478
- "142"
479
- ]);
480
- idsOfCountriesByCurrencyIso.set("VUV", [
481
- "221"
482
- ]);
483
- idsOfCountriesByCurrencyIso.set("WST", [
484
- "217"
485
- ]);
486
- idsOfCountriesByCurrencyIso.set("XAF", [
487
- "151",
488
- "153",
489
- "154",
490
- "157",
491
- "162",
492
- "165"
493
- ]);
494
- idsOfCountriesByCurrencyIso.set("XCD", [
495
- "49",
496
- "60",
497
- "64",
498
- "72",
499
- "77",
500
- "78",
501
- "80",
502
- "224"
503
- ]);
504
- idsOfCountriesByCurrencyIso.set("XOF", [
505
- "147",
506
- "149",
507
- "158",
508
- "169",
509
- "176",
510
- "182",
511
- "187",
512
- "195"
513
- ]);
514
- idsOfCountriesByCurrencyIso.set("XPF", [
515
- "205",
516
- "211"
517
- ]);
518
- idsOfCountriesByCurrencyIso.set("YER", [
519
- "143"
520
- ]);
521
- idsOfCountriesByCurrencyIso.set("ZAR", [
522
- "191"
523
- ]);
524
- idsOfCountriesByCurrencyIso.set("ZMK", [
525
- "199"
526
- ]);
1
+ import { countryGetIdFromIsoCode } from "../countries/country-get-id-from-iso-code.js";
2
+ import { currencyIsoCountryIsoMapping } from "./currency-iso-country-iso-mapping.js";
3
+ const mutableIdsOfCountriesByCurrencyIso = new Map();
4
+ for (const { countryIso, currencyIso } of currencyIsoCountryIsoMapping) {
5
+ const countryId = countryGetIdFromIsoCode(countryIso);
6
+ if (!countryId) {
7
+ continue;
8
+ }
9
+ if (mutableIdsOfCountriesByCurrencyIso.has(currencyIso)) {
10
+ mutableIdsOfCountriesByCurrencyIso.get(currencyIso).push(countryId);
11
+ }
12
+ else {
13
+ mutableIdsOfCountriesByCurrencyIso.set(currencyIso, [countryId]);
14
+ }
15
+ }
16
+ const idsOfCountriesByCurrencyIso = new Map([...mutableIdsOfCountriesByCurrencyIso.entries()].map(([currencyIso, countryIds]) => [currencyIso, countryIds]));
527
17
  const currencyGetCountries = (iso) => {
528
18
  const isoNormalized = iso.toUpperCase();
529
19
  if (idsOfCountriesByCurrencyIso.has(isoNormalized)) {
@@ -531,4 +21,4 @@ const currencyGetCountries = (iso) => {
531
21
  }
532
22
  return [];
533
23
  };
534
- export { currencyGetCountries };
24
+ export { currencyGetCountries, };
@@ -1,3 +1,3 @@
1
1
  import { ICurrency } from "./i-currency";
2
2
  declare const currencyGetFromCountry: (countryIso: string) => ICurrency | undefined;
3
- export { currencyGetFromCountry };
3
+ export { currencyGetFromCountry, };
@@ -1,11 +1,13 @@
1
1
  import { currenciesAll } from "./currencies";
2
2
  import { currencyIsoCountryIsoMapping } from "./currency-iso-country-iso-mapping";
3
+ const currencyByIso = new Map(currenciesAll.map((currency) => [currency.iso, currency]));
4
+ const currencyIsoByCountryIso = new Map(currencyIsoCountryIsoMapping.map(({ countryIso, currencyIso }) => [countryIso, currencyIso]));
5
+ const fallbackCurrency = currencyByIso.get("EUR");
3
6
  const currencyGetFromCountry = (countryIso) => {
4
- var _a;
5
- const currencyIso = (_a = currencyIsoCountryIsoMapping.find(i => i.countryIso === countryIso)) === null || _a === void 0 ? void 0 : _a.currencyIso;
7
+ const currencyIso = currencyIsoByCountryIso.get(countryIso);
6
8
  if (currencyIso) {
7
- return currenciesAll.find((c) => currencyIso === c.iso);
9
+ return currencyByIso.get(currencyIso);
8
10
  }
9
- return currenciesAll.find((c) => c.iso === "EUR");
11
+ return fallbackCurrency;
10
12
  };
11
- export { currencyGetFromCountry };
13
+ export { currencyGetFromCountry, };
@@ -0,0 +1 @@
1
+ export type ICurrencyRecord = readonly [iso: string, name: string];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { ISubDisciplineRecord } from "../i-sub-discipline-record";
2
+ declare const subDisciplineRecords: readonly ISubDisciplineRecord[];
3
+ export { subDisciplineRecords, };
@@ -0,0 +1,29 @@
1
+ const subDisciplineRecords = [
2
+ ["31", "Biomedical Science", "10"],
3
+ ["335", "Clinical Psychology", "10"],
4
+ ["228", "Complementary & Alternative Medicine", "10"],
5
+ ["100", "Dentistry", "10"],
6
+ ["368", "Epidemiology", "10"],
7
+ ["361", "Gerontology", "10"],
8
+ ["229", "Healthcare Administration", "10"],
9
+ ["230", "Health Sciences", "10"],
10
+ ["92", "Medicine", "10"],
11
+ ["372", "Immunology", "10"],
12
+ ["343", "Kinesiology", "10"],
13
+ ["346", "Medical Imaging", "10"],
14
+ ["231", "Midwifery", "10"],
15
+ ["113", "Nursing", "10"],
16
+ ["131", "Nutrition & Dietetics", "10"],
17
+ ["351", "Occupational Health and Safety", "10"],
18
+ ["106", "Pharmacy", "10"],
19
+ ["369", "Physiology", "10"],
20
+ ["105", "Physiotherapy", "10"],
21
+ ["90", "Public Health", "10"],
22
+ ["344", "Speech Pathology", "10"],
23
+ ["107", "Veterinary Medicine", "10"],
24
+ ["378", "Optometry", "10"],
25
+ ["383", "Occupational Therapy", "10"],
26
+ ["384", "Pathology", "10"],
27
+ ["407", "Prosthetics and Orthotics", "10"],
28
+ ];
29
+ export { subDisciplineRecords, };
@@ -0,0 +1,3 @@
1
+ import type { ISubDisciplineRecord } from "../i-sub-discipline-record";
2
+ declare const subDisciplineRecords: readonly ISubDisciplineRecord[];
3
+ export { subDisciplineRecords, };