@studyportals/static-domain-data 7.0.0-1 → 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 (72) hide show
  1. package/cjs/src/countries/country-get-async.js +102 -0
  2. package/cjs/src/countries/country-id-chunk-mapping.js +235 -0
  3. package/cjs/src/countries/country-iso-chunk-mapping.js +235 -0
  4. package/cjs/src/currencies/currency-get-async.js +97 -0
  5. package/cjs/src/disciplines/chunks/subdisciplines-10.js +32 -0
  6. package/cjs/src/disciplines/chunks/subdisciplines-11.js +30 -0
  7. package/cjs/src/disciplines/chunks/subdisciplines-117.js +19 -0
  8. package/cjs/src/disciplines/chunks/subdisciplines-12.js +17 -0
  9. package/cjs/src/disciplines/chunks/subdisciplines-13.js +45 -0
  10. package/cjs/src/disciplines/chunks/subdisciplines-23.js +50 -0
  11. package/cjs/src/disciplines/chunks/subdisciplines-24.js +23 -0
  12. package/cjs/src/disciplines/chunks/subdisciplines-258.js +28 -0
  13. package/cjs/src/disciplines/chunks/subdisciplines-289.js +25 -0
  14. package/cjs/src/disciplines/chunks/subdisciplines-54.js +12 -0
  15. package/cjs/src/disciplines/chunks/subdisciplines-58.js +12 -0
  16. package/cjs/src/disciplines/chunks/subdisciplines-6.js +16 -0
  17. package/cjs/src/disciplines/chunks/subdisciplines-64.js +12 -0
  18. package/cjs/src/disciplines/chunks/subdisciplines-7.js +30 -0
  19. package/cjs/src/disciplines/chunks/subdisciplines-9.js +22 -0
  20. package/cjs/src/disciplines/discipline-get-subdiscipline-by-id-async.js +33 -0
  21. package/cjs/src/disciplines/discipline-get-subdisciplines-async.js +74 -0
  22. package/cjs/src/disciplines/i-sub-discipline-record.js +2 -0
  23. package/cjs/src/disciplines/subdiscipline-id-discipline-id-mapping.js +289 -0
  24. package/cjs/src/disciplines/subdisciplines.js +30 -283
  25. package/esm/src/countries/country-get-async.d.ts +4 -0
  26. package/esm/src/countries/country-get-async.js +75 -0
  27. package/esm/src/countries/country-id-chunk-mapping.d.ts +2 -0
  28. package/esm/src/countries/country-id-chunk-mapping.js +232 -0
  29. package/esm/src/countries/country-iso-chunk-mapping.d.ts +2 -0
  30. package/esm/src/countries/country-iso-chunk-mapping.js +232 -0
  31. package/esm/src/currencies/currency-get-async.d.ts +3 -0
  32. package/esm/src/currencies/currency-get-async.js +71 -0
  33. package/esm/src/disciplines/chunks/subdisciplines-10.d.ts +3 -0
  34. package/esm/src/disciplines/chunks/subdisciplines-10.js +29 -0
  35. package/esm/src/disciplines/chunks/subdisciplines-11.d.ts +3 -0
  36. package/esm/src/disciplines/chunks/subdisciplines-11.js +27 -0
  37. package/esm/src/disciplines/chunks/subdisciplines-117.d.ts +3 -0
  38. package/esm/src/disciplines/chunks/subdisciplines-117.js +16 -0
  39. package/esm/src/disciplines/chunks/subdisciplines-12.d.ts +3 -0
  40. package/esm/src/disciplines/chunks/subdisciplines-12.js +14 -0
  41. package/esm/src/disciplines/chunks/subdisciplines-13.d.ts +3 -0
  42. package/esm/src/disciplines/chunks/subdisciplines-13.js +42 -0
  43. package/esm/src/disciplines/chunks/subdisciplines-23.d.ts +3 -0
  44. package/esm/src/disciplines/chunks/subdisciplines-23.js +47 -0
  45. package/esm/src/disciplines/chunks/subdisciplines-24.d.ts +3 -0
  46. package/esm/src/disciplines/chunks/subdisciplines-24.js +20 -0
  47. package/esm/src/disciplines/chunks/subdisciplines-258.d.ts +3 -0
  48. package/esm/src/disciplines/chunks/subdisciplines-258.js +25 -0
  49. package/esm/src/disciplines/chunks/subdisciplines-289.d.ts +3 -0
  50. package/esm/src/disciplines/chunks/subdisciplines-289.js +22 -0
  51. package/esm/src/disciplines/chunks/subdisciplines-54.d.ts +3 -0
  52. package/esm/src/disciplines/chunks/subdisciplines-54.js +9 -0
  53. package/esm/src/disciplines/chunks/subdisciplines-58.d.ts +3 -0
  54. package/esm/src/disciplines/chunks/subdisciplines-58.js +9 -0
  55. package/esm/src/disciplines/chunks/subdisciplines-6.d.ts +3 -0
  56. package/esm/src/disciplines/chunks/subdisciplines-6.js +13 -0
  57. package/esm/src/disciplines/chunks/subdisciplines-64.d.ts +3 -0
  58. package/esm/src/disciplines/chunks/subdisciplines-64.js +9 -0
  59. package/esm/src/disciplines/chunks/subdisciplines-7.d.ts +3 -0
  60. package/esm/src/disciplines/chunks/subdisciplines-7.js +27 -0
  61. package/esm/src/disciplines/chunks/subdisciplines-9.d.ts +3 -0
  62. package/esm/src/disciplines/chunks/subdisciplines-9.js +19 -0
  63. package/esm/src/disciplines/discipline-get-subdiscipline-by-id-async.d.ts +3 -0
  64. package/esm/src/disciplines/discipline-get-subdiscipline-by-id-async.js +30 -0
  65. package/esm/src/disciplines/discipline-get-subdisciplines-async.d.ts +4 -0
  66. package/esm/src/disciplines/discipline-get-subdisciplines-async.js +47 -0
  67. package/esm/src/disciplines/i-sub-discipline-record.d.ts +1 -0
  68. package/esm/src/disciplines/i-sub-discipline-record.js +1 -0
  69. package/esm/src/disciplines/subdiscipline-id-discipline-id-mapping.d.ts +2 -0
  70. package/esm/src/disciplines/subdiscipline-id-discipline-id-mapping.js +286 -0
  71. package/esm/src/disciplines/subdisciplines.js +30 -283
  72. package/package.json +1 -1
@@ -0,0 +1,75 @@
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
+ import { countryIdChunkMapping } from "./country-id-chunk-mapping.js";
11
+ import { countryIsoChunkMapping } from "./country-iso-chunk-mapping.js";
12
+ const countriesByChunkCache = new Map();
13
+ const countryByIdCache = new Map();
14
+ const countryByIsoCodeCache = new Map();
15
+ const countryChunkLoaders = {
16
+ "a-f": () => import("./chunks/country-records-a-f.js"),
17
+ "g-l": () => import("./chunks/country-records-g-l.js"),
18
+ "m-r": () => import("./chunks/country-records-m-r.js"),
19
+ "s-z": () => import("./chunks/country-records-s-z.js"),
20
+ };
21
+ const getRecordsFromChunkModule = (chunk, chunkModule) => {
22
+ var _a, _b, _c, _d;
23
+ switch (chunk) {
24
+ case "a-f":
25
+ return (_a = chunkModule.countryRecordsAF) !== null && _a !== void 0 ? _a : [];
26
+ case "g-l":
27
+ return (_b = chunkModule.countryRecordsGL) !== null && _b !== void 0 ? _b : [];
28
+ case "m-r":
29
+ return (_c = chunkModule.countryRecordsMR) !== null && _c !== void 0 ? _c : [];
30
+ case "s-z":
31
+ return (_d = chunkModule.countryRecordsSZ) !== null && _d !== void 0 ? _d : [];
32
+ }
33
+ };
34
+ const loadCountryChunk = (chunk) => __awaiter(void 0, void 0, void 0, function* () {
35
+ if (countriesByChunkCache.has(chunk)) {
36
+ return countriesByChunkCache.get(chunk);
37
+ }
38
+ const chunkModule = yield countryChunkLoaders[chunk]();
39
+ const records = getRecordsFromChunkModule(chunk, chunkModule);
40
+ const countries = records.map(([id, name, isoCode]) => {
41
+ const country = { id, name };
42
+ countryByIdCache.set(id, country);
43
+ countryByIsoCodeCache.set(isoCode, country);
44
+ return country;
45
+ });
46
+ countriesByChunkCache.set(chunk, countries);
47
+ return countries;
48
+ });
49
+ const countryGetByIdAsync = (id) => __awaiter(void 0, void 0, void 0, function* () {
50
+ var _a;
51
+ const normalizedId = id.trim();
52
+ if (countryByIdCache.has(normalizedId)) {
53
+ return countryByIdCache.get(normalizedId);
54
+ }
55
+ const chunk = countryIdChunkMapping[normalizedId];
56
+ if (!chunk) {
57
+ return null;
58
+ }
59
+ yield loadCountryChunk(chunk);
60
+ return (_a = countryByIdCache.get(normalizedId)) !== null && _a !== void 0 ? _a : null;
61
+ });
62
+ const countryGetByIsoCodeAsync = (isoCode) => __awaiter(void 0, void 0, void 0, function* () {
63
+ var _a;
64
+ const normalizedIsoCode = isoCode.toUpperCase().trim();
65
+ if (countryByIsoCodeCache.has(normalizedIsoCode)) {
66
+ return countryByIsoCodeCache.get(normalizedIsoCode);
67
+ }
68
+ const chunk = countryIsoChunkMapping[normalizedIsoCode];
69
+ if (!chunk) {
70
+ return null;
71
+ }
72
+ yield loadCountryChunk(chunk);
73
+ return (_a = countryByIsoCodeCache.get(normalizedIsoCode)) !== null && _a !== void 0 ? _a : null;
74
+ });
75
+ export { countryGetByIdAsync, countryGetByIsoCodeAsync, };
@@ -0,0 +1,2 @@
1
+ declare const countryIdChunkMapping: Readonly<Record<string, string>>;
2
+ export { countryIdChunkMapping, };
@@ -0,0 +1,232 @@
1
+ const countryIdChunkMapping = {
2
+ "1": "m-r",
3
+ "2": "a-f",
4
+ "3": "a-f",
5
+ "4": "a-f",
6
+ "5": "a-f",
7
+ "6": "a-f",
8
+ "7": "a-f",
9
+ "8": "a-f",
10
+ "9": "a-f",
11
+ "10": "a-f",
12
+ "11": "g-l",
13
+ "12": "g-l",
14
+ "13": "g-l",
15
+ "14": "g-l",
16
+ "15": "g-l",
17
+ "16": "g-l",
18
+ "17": "g-l",
19
+ "18": "m-r",
20
+ "19": "m-r",
21
+ "20": "m-r",
22
+ "21": "m-r",
23
+ "22": "m-r",
24
+ "23": "s-z",
25
+ "24": "s-z",
26
+ "25": "g-l",
27
+ "26": "s-z",
28
+ "27": "s-z",
29
+ "28": "s-z",
30
+ "29": "s-z",
31
+ "30": "s-z",
32
+ "31": "s-z",
33
+ "33": "m-r",
34
+ "34": "g-l",
35
+ "35": "m-r",
36
+ "36": "m-r",
37
+ "37": "m-r",
38
+ "38": "a-f",
39
+ "39": "m-r",
40
+ "40": "a-f",
41
+ "41": "s-z",
42
+ "42": "a-f",
43
+ "43": "g-l",
44
+ "44": "a-f",
45
+ "45": "a-f",
46
+ "46": "a-f",
47
+ "47": "g-l",
48
+ "48": "s-z",
49
+ "49": "a-f",
50
+ "50": "a-f",
51
+ "51": "a-f",
52
+ "52": "a-f",
53
+ "53": "a-f",
54
+ "54": "a-f",
55
+ "55": "a-f",
56
+ "56": "a-f",
57
+ "57": "a-f",
58
+ "58": "a-f",
59
+ "59": "a-f",
60
+ "60": "a-f",
61
+ "61": "a-f",
62
+ "62": "a-f",
63
+ "63": "g-l",
64
+ "64": "g-l",
65
+ "65": "g-l",
66
+ "66": "g-l",
67
+ "67": "g-l",
68
+ "68": "g-l",
69
+ "69": "g-l",
70
+ "70": "m-r",
71
+ "71": "m-r",
72
+ "72": "m-r",
73
+ "74": "m-r",
74
+ "75": "m-r",
75
+ "76": "m-r",
76
+ "77": "s-z",
77
+ "78": "s-z",
78
+ "79": "s-z",
79
+ "80": "s-z",
80
+ "81": "s-z",
81
+ "82": "s-z",
82
+ "83": "s-z",
83
+ "84": "a-f",
84
+ "85": "a-f",
85
+ "86": "a-f",
86
+ "87": "a-f",
87
+ "88": "a-f",
88
+ "89": "a-f",
89
+ "90": "a-f",
90
+ "91": "g-l",
91
+ "92": "m-r",
92
+ "93": "m-r",
93
+ "94": "s-z",
94
+ "95": "s-z",
95
+ "96": "s-z",
96
+ "97": "a-f",
97
+ "98": "a-f",
98
+ "99": "a-f",
99
+ "100": "a-f",
100
+ "101": "a-f",
101
+ "102": "a-f",
102
+ "103": "a-f",
103
+ "104": "a-f",
104
+ "105": "a-f",
105
+ "106": "g-l",
106
+ "107": "g-l",
107
+ "108": "g-l",
108
+ "109": "g-l",
109
+ "110": "g-l",
110
+ "111": "g-l",
111
+ "112": "g-l",
112
+ "113": "g-l",
113
+ "114": "g-l",
114
+ "115": "g-l",
115
+ "116": "m-r",
116
+ "117": "s-z",
117
+ "118": "g-l",
118
+ "119": "g-l",
119
+ "120": "g-l",
120
+ "121": "g-l",
121
+ "122": "m-r",
122
+ "123": "m-r",
123
+ "124": "m-r",
124
+ "125": "m-r",
125
+ "126": "m-r",
126
+ "127": "m-r",
127
+ "128": "m-r",
128
+ "129": "m-r",
129
+ "130": "m-r",
130
+ "131": "m-r",
131
+ "132": "s-z",
132
+ "133": "s-z",
133
+ "134": "s-z",
134
+ "135": "s-z",
135
+ "136": "s-z",
136
+ "137": "s-z",
137
+ "138": "s-z",
138
+ "139": "s-z",
139
+ "140": "s-z",
140
+ "141": "s-z",
141
+ "142": "s-z",
142
+ "143": "s-z",
143
+ "144": "m-r",
144
+ "145": "a-f",
145
+ "146": "a-f",
146
+ "147": "a-f",
147
+ "148": "a-f",
148
+ "149": "a-f",
149
+ "150": "a-f",
150
+ "151": "a-f",
151
+ "152": "a-f",
152
+ "153": "a-f",
153
+ "154": "a-f",
154
+ "155": "a-f",
155
+ "156": "a-f",
156
+ "157": "a-f",
157
+ "158": "a-f",
158
+ "159": "a-f",
159
+ "160": "s-z",
160
+ "161": "a-f",
161
+ "162": "a-f",
162
+ "163": "a-f",
163
+ "164": "a-f",
164
+ "165": "g-l",
165
+ "166": "g-l",
166
+ "167": "g-l",
167
+ "168": "g-l",
168
+ "169": "g-l",
169
+ "170": "g-l",
170
+ "171": "g-l",
171
+ "172": "g-l",
172
+ "173": "g-l",
173
+ "174": "m-r",
174
+ "175": "m-r",
175
+ "176": "m-r",
176
+ "177": "m-r",
177
+ "178": "m-r",
178
+ "179": "m-r",
179
+ "180": "m-r",
180
+ "181": "m-r",
181
+ "182": "m-r",
182
+ "183": "m-r",
183
+ "184": "m-r",
184
+ "185": "m-r",
185
+ "186": "s-z",
186
+ "187": "s-z",
187
+ "188": "s-z",
188
+ "189": "s-z",
189
+ "190": "s-z",
190
+ "191": "s-z",
191
+ "192": "s-z",
192
+ "193": "a-f",
193
+ "194": "s-z",
194
+ "195": "s-z",
195
+ "196": "s-z",
196
+ "197": "s-z",
197
+ "198": "s-z",
198
+ "199": "s-z",
199
+ "200": "s-z",
200
+ "201": "a-f",
201
+ "202": "a-f",
202
+ "203": "a-f",
203
+ "204": "a-f",
204
+ "205": "a-f",
205
+ "206": "g-l",
206
+ "207": "g-l",
207
+ "208": "m-r",
208
+ "209": "m-r",
209
+ "210": "m-r",
210
+ "211": "m-r",
211
+ "212": "m-r",
212
+ "213": "m-r",
213
+ "214": "m-r",
214
+ "215": "m-r",
215
+ "216": "m-r",
216
+ "217": "s-z",
217
+ "218": "s-z",
218
+ "219": "s-z",
219
+ "220": "s-z",
220
+ "221": "s-z",
221
+ "222": "s-z",
222
+ "223": "s-z",
223
+ "224": "a-f",
224
+ "225": "a-f",
225
+ "226": "s-z",
226
+ "227": "a-f",
227
+ "229": "m-r",
228
+ "230": "g-l",
229
+ "232": "s-z",
230
+ "233": "a-f",
231
+ };
232
+ export { countryIdChunkMapping, };
@@ -0,0 +1,2 @@
1
+ declare const countryIsoChunkMapping: Readonly<Record<string, string>>;
2
+ export { countryIsoChunkMapping, };
@@ -0,0 +1,232 @@
1
+ const countryIsoChunkMapping = {
2
+ "AD": "a-f",
3
+ "AE": "s-z",
4
+ "AF": "a-f",
5
+ "AG": "a-f",
6
+ "AI": "a-f",
7
+ "AL": "a-f",
8
+ "AM": "a-f",
9
+ "AO": "a-f",
10
+ "AR": "a-f",
11
+ "AS": "a-f",
12
+ "AT": "a-f",
13
+ "AU": "a-f",
14
+ "AW": "a-f",
15
+ "AX": "a-f",
16
+ "AZ": "a-f",
17
+ "BA": "a-f",
18
+ "BB": "a-f",
19
+ "BD": "a-f",
20
+ "BE": "a-f",
21
+ "BF": "a-f",
22
+ "BG": "a-f",
23
+ "BH": "a-f",
24
+ "BI": "a-f",
25
+ "BJ": "a-f",
26
+ "BL": "s-z",
27
+ "BM": "a-f",
28
+ "BN": "a-f",
29
+ "BO": "a-f",
30
+ "BQ": "a-f",
31
+ "BR": "a-f",
32
+ "BS": "a-f",
33
+ "BT": "a-f",
34
+ "BW": "a-f",
35
+ "BY": "a-f",
36
+ "BZ": "a-f",
37
+ "CA": "a-f",
38
+ "CD": "a-f",
39
+ "CF": "a-f",
40
+ "CG": "a-f",
41
+ "CH": "s-z",
42
+ "CI": "a-f",
43
+ "CK": "a-f",
44
+ "CL": "a-f",
45
+ "CM": "a-f",
46
+ "CN": "a-f",
47
+ "CO": "a-f",
48
+ "CR": "a-f",
49
+ "CU": "a-f",
50
+ "CV": "a-f",
51
+ "CW": "a-f",
52
+ "CY": "a-f",
53
+ "CZ": "a-f",
54
+ "DE": "g-l",
55
+ "DJ": "a-f",
56
+ "DK": "a-f",
57
+ "DM": "a-f",
58
+ "DO": "a-f",
59
+ "DZ": "a-f",
60
+ "EC": "a-f",
61
+ "EE": "a-f",
62
+ "EG": "a-f",
63
+ "EH": "s-z",
64
+ "ER": "a-f",
65
+ "ES": "s-z",
66
+ "ET": "a-f",
67
+ "FI": "a-f",
68
+ "FJ": "a-f",
69
+ "FM": "m-r",
70
+ "FO": "a-f",
71
+ "FR": "a-f",
72
+ "GA": "g-l",
73
+ "GB": "s-z",
74
+ "GD": "g-l",
75
+ "GE": "g-l",
76
+ "GF": "a-f",
77
+ "GH": "g-l",
78
+ "GL": "g-l",
79
+ "GM": "g-l",
80
+ "GN": "g-l",
81
+ "GP": "g-l",
82
+ "GQ": "a-f",
83
+ "GR": "g-l",
84
+ "GT": "g-l",
85
+ "GU": "g-l",
86
+ "GW": "g-l",
87
+ "GY": "g-l",
88
+ "HK": "g-l",
89
+ "HN": "g-l",
90
+ "HR": "a-f",
91
+ "HT": "g-l",
92
+ "HU": "g-l",
93
+ "ID": "g-l",
94
+ "IE": "g-l",
95
+ "IL": "g-l",
96
+ "IM": "g-l",
97
+ "IN": "g-l",
98
+ "IQ": "g-l",
99
+ "IR": "g-l",
100
+ "IS": "g-l",
101
+ "IT": "g-l",
102
+ "JM": "g-l",
103
+ "JO": "g-l",
104
+ "JP": "g-l",
105
+ "KE": "g-l",
106
+ "KG": "g-l",
107
+ "KH": "a-f",
108
+ "KI": "g-l",
109
+ "KM": "a-f",
110
+ "KN": "s-z",
111
+ "KP": "m-r",
112
+ "KR": "s-z",
113
+ "KW": "g-l",
114
+ "KY": "a-f",
115
+ "KZ": "g-l",
116
+ "LA": "g-l",
117
+ "LB": "g-l",
118
+ "LC": "s-z",
119
+ "LI": "g-l",
120
+ "LK": "s-z",
121
+ "LR": "g-l",
122
+ "LS": "g-l",
123
+ "LT": "g-l",
124
+ "LU": "g-l",
125
+ "LV": "g-l",
126
+ "LY": "g-l",
127
+ "MA": "m-r",
128
+ "MC": "m-r",
129
+ "MD": "m-r",
130
+ "ME": "m-r",
131
+ "MG": "m-r",
132
+ "MH": "m-r",
133
+ "MK": "m-r",
134
+ "ML": "m-r",
135
+ "MM": "m-r",
136
+ "MN": "m-r",
137
+ "MO": "m-r",
138
+ "MP": "m-r",
139
+ "MQ": "m-r",
140
+ "MR": "m-r",
141
+ "MS": "m-r",
142
+ "MT": "m-r",
143
+ "MU": "m-r",
144
+ "MV": "m-r",
145
+ "MW": "m-r",
146
+ "MX": "m-r",
147
+ "MY": "m-r",
148
+ "MZ": "m-r",
149
+ "NA": "m-r",
150
+ "NC": "m-r",
151
+ "NE": "m-r",
152
+ "NG": "m-r",
153
+ "NI": "m-r",
154
+ "NL": "m-r",
155
+ "NO": "m-r",
156
+ "NP": "m-r",
157
+ "NR": "m-r",
158
+ "NU": "m-r",
159
+ "NZ": "m-r",
160
+ "OM": "m-r",
161
+ "PA": "m-r",
162
+ "PE": "m-r",
163
+ "PF": "a-f",
164
+ "PG": "m-r",
165
+ "PH": "m-r",
166
+ "PK": "m-r",
167
+ "PL": "m-r",
168
+ "PM": "s-z",
169
+ "PR": "m-r",
170
+ "PS": "m-r",
171
+ "PT": "m-r",
172
+ "PW": "m-r",
173
+ "PY": "m-r",
174
+ "QA": "m-r",
175
+ "RE": "m-r",
176
+ "RO": "m-r",
177
+ "RS": "s-z",
178
+ "RU": "m-r",
179
+ "RW": "m-r",
180
+ "SA": "s-z",
181
+ "SB": "s-z",
182
+ "SC": "s-z",
183
+ "SD": "s-z",
184
+ "SE": "s-z",
185
+ "SG": "s-z",
186
+ "SI": "s-z",
187
+ "SK": "s-z",
188
+ "SL": "s-z",
189
+ "SM": "s-z",
190
+ "SN": "s-z",
191
+ "SO": "s-z",
192
+ "SR": "s-z",
193
+ "SS": "s-z",
194
+ "ST": "s-z",
195
+ "SV": "a-f",
196
+ "SX": "s-z",
197
+ "SY": "s-z",
198
+ "SZ": "a-f",
199
+ "TC": "s-z",
200
+ "TD": "a-f",
201
+ "TG": "s-z",
202
+ "TH": "s-z",
203
+ "TJ": "s-z",
204
+ "TL": "s-z",
205
+ "TM": "s-z",
206
+ "TN": "s-z",
207
+ "TO": "s-z",
208
+ "TR": "s-z",
209
+ "TT": "s-z",
210
+ "TV": "s-z",
211
+ "TW": "s-z",
212
+ "TZ": "s-z",
213
+ "UA": "s-z",
214
+ "UG": "s-z",
215
+ "US": "s-z",
216
+ "UY": "s-z",
217
+ "UZ": "s-z",
218
+ "VC": "s-z",
219
+ "VE": "s-z",
220
+ "VG": "a-f",
221
+ "VI": "s-z",
222
+ "VN": "s-z",
223
+ "VU": "s-z",
224
+ "WS": "s-z",
225
+ "XC": "m-r",
226
+ "XK": "g-l",
227
+ "YE": "s-z",
228
+ "ZA": "s-z",
229
+ "ZM": "s-z",
230
+ "ZW": "s-z",
231
+ };
232
+ export { countryIsoChunkMapping, };
@@ -0,0 +1,3 @@
1
+ import { ICurrency } from "./i-currency";
2
+ declare const currencyGetByIsoAsync: (isoCode: string) => Promise<ICurrency | null>;
3
+ export { currencyGetByIsoAsync, };
@@ -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, };
@@ -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, };