@studyportals/static-domain-data 7.0.0-0 → 7.0.0-1
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/continents/continent-country-mapping.js +21 -242
- package/cjs/src/continents/continent-iso-country-mapping.js +3 -2
- package/cjs/src/countries/chunks/country-records-a-f.js +80 -0
- package/cjs/src/countries/chunks/country-records-g-l.js +51 -0
- package/cjs/src/countries/chunks/country-records-m-r.js +59 -0
- package/cjs/src/countries/chunks/country-records-s-z.js +63 -0
- package/cjs/src/countries/countries.js +11 -919
- package/cjs/src/countries/country-bit-values-mapping.js +231 -229
- package/cjs/src/countries/country-get-path.js +8 -234
- package/cjs/src/countries/country-id-iso-code-mapping.js +10 -230
- package/cjs/src/countries/i-country-record.js +2 -0
- package/cjs/src/currencies/chunks/currency-records-a-f.js +55 -0
- package/cjs/src/currencies/chunks/currency-records-g-l.js +48 -0
- package/cjs/src/currencies/chunks/currency-records-m-r.js +38 -0
- package/cjs/src/currencies/chunks/currency-records-s-z.js +50 -0
- package/cjs/src/currencies/currencies.js +10 -669
- package/cjs/src/currencies/currency-get-countries.js +16 -526
- package/cjs/src/currencies/currency-get-from-country.js +6 -4
- package/cjs/src/currencies/i-currency-record.js +2 -0
- package/cjs/src/disciplines/subdisciplines.js +285 -1416
- package/cjs/src/gpa/get-grade-by-grade-type.js +2 -25
- package/cjs/src/gpa/grade-data-by-type.js +57 -0
- package/esm/src/continents/continent-country-mapping.d.ts +1 -1
- package/esm/src/continents/continent-country-mapping.js +22 -243
- package/esm/src/continents/continent-iso-country-mapping.d.ts +2 -1
- package/esm/src/continents/continent-iso-country-mapping.js +2 -2
- package/esm/src/countries/chunks/country-records-a-f.d.ts +3 -0
- package/esm/src/countries/chunks/country-records-a-f.js +77 -0
- package/esm/src/countries/chunks/country-records-g-l.d.ts +3 -0
- package/esm/src/countries/chunks/country-records-g-l.js +48 -0
- package/esm/src/countries/chunks/country-records-m-r.d.ts +3 -0
- package/esm/src/countries/chunks/country-records-m-r.js +56 -0
- package/esm/src/countries/chunks/country-records-s-z.d.ts +3 -0
- package/esm/src/countries/chunks/country-records-s-z.js +60 -0
- package/esm/src/countries/countries.d.ts +1 -1
- package/esm/src/countries/countries.js +12 -920
- package/esm/src/countries/country-bit-values-mapping.d.ts +3 -2
- package/esm/src/countries/country-bit-values-mapping.js +231 -229
- package/esm/src/countries/country-get-path.d.ts +1 -1
- package/esm/src/countries/country-get-path.js +9 -235
- package/esm/src/countries/country-id-iso-code-mapping.d.ts +1 -1
- package/esm/src/countries/country-id-iso-code-mapping.js +11 -231
- package/esm/src/countries/i-country-record.d.ts +1 -0
- package/esm/src/countries/i-country-record.js +1 -0
- package/esm/src/currencies/chunks/currency-records-a-f.d.ts +3 -0
- package/esm/src/currencies/chunks/currency-records-a-f.js +52 -0
- package/esm/src/currencies/chunks/currency-records-g-l.d.ts +3 -0
- package/esm/src/currencies/chunks/currency-records-g-l.js +45 -0
- package/esm/src/currencies/chunks/currency-records-m-r.d.ts +3 -0
- package/esm/src/currencies/chunks/currency-records-m-r.js +35 -0
- package/esm/src/currencies/chunks/currency-records-s-z.d.ts +3 -0
- package/esm/src/currencies/chunks/currency-records-s-z.js +47 -0
- package/esm/src/currencies/currencies.d.ts +1 -1
- package/esm/src/currencies/currencies.js +11 -670
- package/esm/src/currencies/currency-get-countries.d.ts +1 -1
- package/esm/src/currencies/currency-get-countries.js +17 -527
- package/esm/src/currencies/currency-get-from-country.d.ts +1 -1
- package/esm/src/currencies/currency-get-from-country.js +7 -5
- package/esm/src/currencies/i-currency-record.d.ts +1 -0
- package/esm/src/currencies/i-currency-record.js +1 -0
- package/esm/src/disciplines/subdisciplines.js +285 -1416
- package/esm/src/gpa/get-grade-by-grade-type.js +2 -2
- package/esm/src/gpa/grade-data-by-type.d.ts +4 -0
- package/esm/src/gpa/grade-data-by-type.js +54 -0
- package/esm/src/gpa/i-option.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,32 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
exports.getGradesByGradeType = void 0;
|
|
27
|
-
const
|
|
4
|
+
const grade_data_by_type_1 = require("./grade-data-by-type");
|
|
28
5
|
const getGradesByGradeType = (gradeType) => {
|
|
29
|
-
const gradeData =
|
|
6
|
+
const gradeData = grade_data_by_type_1.gradeDataByType[gradeType];
|
|
30
7
|
return gradeData;
|
|
31
8
|
};
|
|
32
9
|
exports.getGradesByGradeType = getGradesByGradeType;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.gradeDataByType = void 0;
|
|
4
|
+
const ae_percentage_1 = require("./data/ae_percentage");
|
|
5
|
+
const au_common_1 = require("./data/au_common");
|
|
6
|
+
const bd_percentage_1 = require("./data/bd_percentage");
|
|
7
|
+
const ca_letters_1 = require("./data/ca_letters");
|
|
8
|
+
const ca_percentage_1 = require("./data/ca_percentage");
|
|
9
|
+
const de_common_1 = require("./data/de_common");
|
|
10
|
+
const eg_percentage_1 = require("./data/eg_percentage");
|
|
11
|
+
const id_numeric_1 = require("./data/id_numeric");
|
|
12
|
+
const in_percentage_1 = require("./data/in_percentage");
|
|
13
|
+
const ir_numeric_1 = require("./data/ir_numeric");
|
|
14
|
+
const it_numeric_1 = require("./data/it_numeric");
|
|
15
|
+
const ke_percentage_1 = require("./data/ke_percentage");
|
|
16
|
+
const ng_letters_1 = require("./data/ng_letters");
|
|
17
|
+
const ng_percentage_1 = require("./data/ng_percentage");
|
|
18
|
+
const nl_numeric_1 = require("./data/nl_numeric");
|
|
19
|
+
const ph_numeric_1 = require("./data/ph_numeric");
|
|
20
|
+
const pk_percentage_1 = require("./data/pk_percentage");
|
|
21
|
+
const self_assessment_grade_1 = require("./data/self_assessment_grade");
|
|
22
|
+
const tr_common_1 = require("./data/tr_common");
|
|
23
|
+
const uk_hounours_1 = require("./data/uk_hounours");
|
|
24
|
+
const uk_postgraduate_common_1 = require("./data/uk_postgraduate_common");
|
|
25
|
+
const us_letter_1 = require("./data/us_letter");
|
|
26
|
+
const us_numeric_1 = require("./data/us_numeric");
|
|
27
|
+
const us_percentage_1 = require("./data/us_percentage");
|
|
28
|
+
const za_percentage_1 = require("./data/za_percentage");
|
|
29
|
+
const grade_type_enum_1 = require("./grade-type.enum");
|
|
30
|
+
const gradeDataByType = {
|
|
31
|
+
[grade_type_enum_1.GradeType.SELF_ASSESSMENT_GRADE]: self_assessment_grade_1.self_assessment_grade,
|
|
32
|
+
[grade_type_enum_1.GradeType.US_PERCENTAGE]: us_percentage_1.us_percentage,
|
|
33
|
+
[grade_type_enum_1.GradeType.US_LETTER]: us_letter_1.us_letter,
|
|
34
|
+
[grade_type_enum_1.GradeType.UK_HONOURS]: uk_hounours_1.uk_honours,
|
|
35
|
+
[grade_type_enum_1.GradeType.UK_POSTGRADUATE_COMMON]: uk_postgraduate_common_1.uk_postgraduate_common,
|
|
36
|
+
[grade_type_enum_1.GradeType.US_NUMERIC]: us_numeric_1.us_numeric,
|
|
37
|
+
[grade_type_enum_1.GradeType.NL_NUMERIC]: nl_numeric_1.nl_numeric,
|
|
38
|
+
[grade_type_enum_1.GradeType.AU_COMMON]: au_common_1.au_common,
|
|
39
|
+
[grade_type_enum_1.GradeType.IN_PERCENTAGE]: in_percentage_1.in_percentage,
|
|
40
|
+
[grade_type_enum_1.GradeType.NG_PERCENTAGE]: ng_percentage_1.ng_percentage,
|
|
41
|
+
[grade_type_enum_1.GradeType.NG_LETTERS]: ng_letters_1.ng_letters,
|
|
42
|
+
[grade_type_enum_1.GradeType.PK_PERCENTAGE]: pk_percentage_1.pk_percentage,
|
|
43
|
+
[grade_type_enum_1.GradeType.CA_PERCENTAGE]: ca_percentage_1.ca_percentage,
|
|
44
|
+
[grade_type_enum_1.GradeType.CA_LETTERS]: ca_letters_1.ca_letters,
|
|
45
|
+
[grade_type_enum_1.GradeType.DE_COMMON]: de_common_1.de_common,
|
|
46
|
+
[grade_type_enum_1.GradeType.TR_COMMON]: tr_common_1.tr_common,
|
|
47
|
+
[grade_type_enum_1.GradeType.IR_NUMERIC]: ir_numeric_1.ir_numeric,
|
|
48
|
+
[grade_type_enum_1.GradeType.BD_PERCENTAGE]: bd_percentage_1.bd_percentage,
|
|
49
|
+
[grade_type_enum_1.GradeType.IT_NUMERIC]: it_numeric_1.it_numeric,
|
|
50
|
+
[grade_type_enum_1.GradeType.PH_NUMERIC]: ph_numeric_1.ph_numeric,
|
|
51
|
+
[grade_type_enum_1.GradeType.ID_NUMERIC]: id_numeric_1.id_numeric,
|
|
52
|
+
[grade_type_enum_1.GradeType.KE_PERCENTAGE]: ke_percentage_1.ke_percentage,
|
|
53
|
+
[grade_type_enum_1.GradeType.ZA_PERCENTAGE]: za_percentage_1.za_percentage,
|
|
54
|
+
[grade_type_enum_1.GradeType.AE_PERCENTAGE]: ae_percentage_1.ae_percentage,
|
|
55
|
+
[grade_type_enum_1.GradeType.EG_PERCENTAGE]: eg_percentage_1.eg_percentage,
|
|
56
|
+
};
|
|
57
|
+
exports.gradeDataByType = gradeDataByType;
|
|
@@ -2,4 +2,4 @@ type ContinentId = string;
|
|
|
2
2
|
type CountryId = string;
|
|
3
3
|
declare const continentsForCountry: (countryId: CountryId) => ContinentId[] | undefined;
|
|
4
4
|
declare const countriesForContinent: (continentId: ContinentId) => CountryId[];
|
|
5
|
-
export { continentsForCountry, countriesForContinent };
|
|
5
|
+
export { continentsForCountry, countriesForContinent, };
|
|
@@ -1,248 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
["19", ["1"]],
|
|
21
|
-
["20", ["1"]],
|
|
22
|
-
["21", ["1"]],
|
|
23
|
-
["22", ["1"]],
|
|
24
|
-
["23", ["1"]],
|
|
25
|
-
["24", ["1"]],
|
|
26
|
-
["25", ["1"]],
|
|
27
|
-
["26", ["1"]],
|
|
28
|
-
["27", ["1"]],
|
|
29
|
-
["28", ["1", "9"]],
|
|
30
|
-
["29", ["1"]],
|
|
31
|
-
["30", ["1"]],
|
|
32
|
-
["31", ["1"]],
|
|
33
|
-
// 32 not valid
|
|
34
|
-
["33", ["1"]],
|
|
35
|
-
["34", ["1"]],
|
|
36
|
-
["35", ["1"]],
|
|
37
|
-
["36", ["1"]],
|
|
38
|
-
["37", ["1"]],
|
|
39
|
-
["38", ["1"]],
|
|
40
|
-
["39", ["1"]],
|
|
41
|
-
["40", ["1"]],
|
|
42
|
-
["41", ["1"]],
|
|
43
|
-
["42", ["1"]],
|
|
44
|
-
["43", ["1"]],
|
|
45
|
-
["44", ["1"]],
|
|
46
|
-
["45", ["1"]],
|
|
47
|
-
["46", ["1"]],
|
|
48
|
-
["47", ["1"]],
|
|
49
|
-
["48", ["1"]],
|
|
50
|
-
["49", ["11"]],
|
|
51
|
-
["50", ["11"]],
|
|
52
|
-
["51", ["11"]],
|
|
53
|
-
["52", ["11"]],
|
|
54
|
-
["53", ["11"]],
|
|
55
|
-
["54", ["11"]],
|
|
56
|
-
["55", ["11"]],
|
|
57
|
-
["56", ["11"]],
|
|
58
|
-
["57", ["11"]],
|
|
59
|
-
["58", ["11"]],
|
|
60
|
-
["59", ["11"]],
|
|
61
|
-
["60", ["11"]],
|
|
62
|
-
["61", ["11"]],
|
|
63
|
-
["62", ["11"]],
|
|
64
|
-
["63", ["11"]],
|
|
65
|
-
["64", ["11"]],
|
|
66
|
-
["65", ["11"]],
|
|
67
|
-
["66", ["11"]],
|
|
68
|
-
["67", ["11"]],
|
|
69
|
-
["68", ["11"]],
|
|
70
|
-
["69", ["11"]],
|
|
71
|
-
["70", ["11"]],
|
|
72
|
-
["71", ["11"]],
|
|
73
|
-
["72", ["11"]],
|
|
74
|
-
// 73 not valid
|
|
75
|
-
["74", ["11"]],
|
|
76
|
-
["75", ["11"]],
|
|
77
|
-
["76", ["11"]],
|
|
78
|
-
["77", ["11"]],
|
|
79
|
-
["78", ["11"]],
|
|
80
|
-
["79", ["11"]],
|
|
81
|
-
["80", ["11"]],
|
|
82
|
-
["81", ["11"]],
|
|
83
|
-
["82", ["11"]],
|
|
84
|
-
["83", ["11"]],
|
|
85
|
-
["84", ["13"]],
|
|
86
|
-
["85", ["13"]],
|
|
87
|
-
["86", ["13"]],
|
|
88
|
-
["87", ["13"]],
|
|
89
|
-
["88", ["11", "13"]],
|
|
90
|
-
["89", ["13"]],
|
|
91
|
-
["90", ["11", "13"]],
|
|
92
|
-
["91", ["11", "13"]],
|
|
93
|
-
["92", ["13"]],
|
|
94
|
-
["93", ["13"]],
|
|
95
|
-
["94", ["11", "13"]],
|
|
96
|
-
["95", ["13"]],
|
|
97
|
-
["96", ["11", "13"]],
|
|
98
|
-
["97", ["9"]],
|
|
99
|
-
["98", ["1", "9"]],
|
|
100
|
-
["99", ["9"]],
|
|
101
|
-
["100", ["9"]],
|
|
102
|
-
["101", ["9"]],
|
|
103
|
-
["102", ["9"]],
|
|
104
|
-
["103", ["9"]],
|
|
105
|
-
["104", ["9"]],
|
|
106
|
-
["105", ["9"]],
|
|
107
|
-
["106", ["9"]],
|
|
108
|
-
["107", ["9"]],
|
|
109
|
-
["108", ["9"]],
|
|
110
|
-
["109", ["9"]],
|
|
111
|
-
["110", ["9"]],
|
|
112
|
-
["111", ["9"]],
|
|
113
|
-
["112", ["9"]],
|
|
114
|
-
["113", ["9"]],
|
|
115
|
-
["114", ["9"]],
|
|
116
|
-
["115", ["9"]],
|
|
117
|
-
["116", ["9"]],
|
|
118
|
-
["117", ["9"]],
|
|
119
|
-
["118", ["9"]],
|
|
120
|
-
["119", ["9"]],
|
|
121
|
-
["120", ["9"]],
|
|
122
|
-
["121", ["9"]],
|
|
123
|
-
["122", ["9"]],
|
|
124
|
-
["123", ["9"]],
|
|
125
|
-
["124", ["9"]],
|
|
126
|
-
["125", ["9"]],
|
|
127
|
-
["126", ["9"]],
|
|
128
|
-
["127", ["9"]],
|
|
129
|
-
["128", ["9"]],
|
|
130
|
-
["129", ["9"]],
|
|
131
|
-
["130", ["9"]],
|
|
132
|
-
["131", ["9"]],
|
|
133
|
-
["132", ["9"]],
|
|
134
|
-
["133", ["9"]],
|
|
135
|
-
["134", ["9"]],
|
|
136
|
-
["135", ["9"]],
|
|
137
|
-
["136", ["9"]],
|
|
138
|
-
["137", ["9"]],
|
|
139
|
-
["138", ["9"]],
|
|
140
|
-
["139", ["9"]],
|
|
141
|
-
["140", ["9"]],
|
|
142
|
-
["141", ["9"]],
|
|
143
|
-
["142", ["9"]],
|
|
144
|
-
["143", ["9"]],
|
|
145
|
-
["144", ["9"]],
|
|
146
|
-
["145", ["10"]],
|
|
147
|
-
["146", ["10"]],
|
|
148
|
-
["147", ["10"]],
|
|
149
|
-
["148", ["10"]],
|
|
150
|
-
["149", ["10"]],
|
|
151
|
-
["150", ["10"]],
|
|
152
|
-
["151", ["10"]],
|
|
153
|
-
["152", ["10"]],
|
|
154
|
-
["153", ["10"]],
|
|
155
|
-
["154", ["10"]],
|
|
156
|
-
["155", ["10"]],
|
|
157
|
-
["156", ["10"]],
|
|
158
|
-
["157", ["10"]],
|
|
159
|
-
["158", ["10"]],
|
|
160
|
-
["159", ["10"]],
|
|
161
|
-
["160", ["9"]],
|
|
162
|
-
["161", ["10"]],
|
|
163
|
-
["162", ["10"]],
|
|
164
|
-
["163", ["10"]],
|
|
165
|
-
["164", ["10"]],
|
|
166
|
-
["165", ["10"]],
|
|
167
|
-
["166", ["10"]],
|
|
168
|
-
["167", ["10"]],
|
|
169
|
-
["168", ["10"]],
|
|
170
|
-
["169", ["10"]],
|
|
171
|
-
["170", ["10"]],
|
|
172
|
-
["171", ["10"]],
|
|
173
|
-
["172", ["10"]],
|
|
174
|
-
["173", ["10"]],
|
|
175
|
-
["174", ["10"]],
|
|
176
|
-
["175", ["10"]],
|
|
177
|
-
["176", ["10"]],
|
|
178
|
-
["177", ["10"]],
|
|
179
|
-
["178", ["10"]],
|
|
180
|
-
["179", ["10"]],
|
|
181
|
-
["180", ["10"]],
|
|
182
|
-
["181", ["10"]],
|
|
183
|
-
["182", ["10"]],
|
|
184
|
-
["183", ["10"]],
|
|
185
|
-
["184", ["10"]],
|
|
186
|
-
["185", ["10"]],
|
|
187
|
-
["186", ["10"]],
|
|
188
|
-
["187", ["10"]],
|
|
189
|
-
["188", ["10"]],
|
|
190
|
-
["189", ["10"]],
|
|
191
|
-
["190", ["10"]],
|
|
192
|
-
["191", ["10"]],
|
|
193
|
-
["192", ["10"]],
|
|
194
|
-
["193", ["10"]],
|
|
195
|
-
["194", ["10"]],
|
|
196
|
-
["195", ["10"]],
|
|
197
|
-
["196", ["10"]],
|
|
198
|
-
["197", ["10"]],
|
|
199
|
-
["198", ["10"]],
|
|
200
|
-
["199", ["10"]],
|
|
201
|
-
["200", ["10"]],
|
|
202
|
-
["201", ["12"]],
|
|
203
|
-
["202", ["12"]],
|
|
204
|
-
["203", ["12"]],
|
|
205
|
-
["204", ["12"]],
|
|
206
|
-
["205", ["12"]],
|
|
207
|
-
["206", ["12"]],
|
|
208
|
-
["207", ["12"]],
|
|
209
|
-
["208", ["12"]],
|
|
210
|
-
["209", ["12"]],
|
|
211
|
-
["210", ["12"]],
|
|
212
|
-
["211", ["12"]],
|
|
213
|
-
["212", ["12"]],
|
|
214
|
-
["213", ["12"]],
|
|
215
|
-
["214", ["12"]],
|
|
216
|
-
["215", ["12"]],
|
|
217
|
-
["216", ["12"]],
|
|
218
|
-
["217", ["12"]],
|
|
219
|
-
["218", ["12"]],
|
|
220
|
-
["219", ["12"]],
|
|
221
|
-
["220", ["12"]],
|
|
222
|
-
["221", ["12"]],
|
|
223
|
-
["222", ["11"]],
|
|
224
|
-
["223", ["11"]],
|
|
225
|
-
["224", ["11"]],
|
|
226
|
-
["225", ["11"]],
|
|
227
|
-
["226", ["11"]],
|
|
228
|
-
["227", ["11"]],
|
|
229
|
-
// 228 not valid
|
|
230
|
-
["229", ["1"]],
|
|
231
|
-
["230", ["1"]],
|
|
232
|
-
// 231 not valid
|
|
233
|
-
["232", ["10"]],
|
|
234
|
-
["233", ["1"]]
|
|
235
|
-
]);
|
|
1
|
+
import { countryGetIdFromIsoCode } from "../countries/country-get-id-from-iso-code";
|
|
2
|
+
import { countryIsoContinentMapping } from "./continent-iso-country-mapping";
|
|
3
|
+
const countryContinentMapping = new Map();
|
|
4
|
+
const countriesByContinentId = new Map();
|
|
5
|
+
for (const [countryIsoCode, continentIds] of countryIsoContinentMapping.entries()) {
|
|
6
|
+
const countryId = countryGetIdFromIsoCode(countryIsoCode);
|
|
7
|
+
if (!countryId) {
|
|
8
|
+
continue;
|
|
9
|
+
}
|
|
10
|
+
countryContinentMapping.set(countryId, continentIds);
|
|
11
|
+
for (const continentId of continentIds) {
|
|
12
|
+
if (countriesByContinentId.has(continentId)) {
|
|
13
|
+
countriesByContinentId.get(continentId).push(countryId);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
countriesByContinentId.set(continentId, [countryId]);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
236
20
|
const continentsForCountry = (countryId) => {
|
|
237
21
|
return countryContinentMapping.get(countryId);
|
|
238
22
|
};
|
|
239
23
|
const countriesForContinent = (continentId) => {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
if (continents.includes(continentId)) {
|
|
243
|
-
countries.push(country);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
return countries;
|
|
24
|
+
var _a;
|
|
25
|
+
return (_a = countriesByContinentId.get(continentId)) !== null && _a !== void 0 ? _a : [];
|
|
247
26
|
};
|
|
248
|
-
export { continentsForCountry, countriesForContinent };
|
|
27
|
+
export { continentsForCountry, countriesForContinent, };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
declare const countryIsoContinentMapping: Map<string, string[]>;
|
|
1
2
|
declare const continentsForCountryIso: (isoCode: string) => string[] | undefined;
|
|
2
3
|
declare const countriesForContinent: (continentId: string) => string[];
|
|
3
|
-
export { continentsForCountryIso, countriesForContinent };
|
|
4
|
+
export { countryIsoContinentMapping, continentsForCountryIso, countriesForContinent, };
|
|
@@ -227,7 +227,7 @@ const countryIsoContinentMapping = new Map([
|
|
|
227
227
|
["XC", ["1"]],
|
|
228
228
|
["XK", ["1"]],
|
|
229
229
|
["SS", ["10"]],
|
|
230
|
-
["AX", ["1"]]
|
|
230
|
+
["AX", ["1"]],
|
|
231
231
|
]);
|
|
232
232
|
const continentsForCountryIso = (isoCode) => {
|
|
233
233
|
return countryIsoContinentMapping.get(isoCode);
|
|
@@ -241,4 +241,4 @@ const countriesForContinent = (continentId) => {
|
|
|
241
241
|
}
|
|
242
242
|
return countries;
|
|
243
243
|
};
|
|
244
|
-
export { continentsForCountryIso, countriesForContinent };
|
|
244
|
+
export { countryIsoContinentMapping, continentsForCountryIso, countriesForContinent, };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
const countryRecordsAF = [
|
|
2
|
+
["97", "Afghanistan", "AF"],
|
|
3
|
+
["233", "Aland Islands", "AX"],
|
|
4
|
+
["42", "Albania", "AL"],
|
|
5
|
+
["145", "Algeria", "DZ"],
|
|
6
|
+
["201", "American Samoa", "AS"],
|
|
7
|
+
["44", "Andorra", "AD"],
|
|
8
|
+
["146", "Angola", "AO"],
|
|
9
|
+
["224", "Anguilla", "AI"],
|
|
10
|
+
["49", "Antigua and Barbuda", "AG"],
|
|
11
|
+
["84", "Argentina", "AR"],
|
|
12
|
+
["98", "Armenia", "AM"],
|
|
13
|
+
["50", "Aruba", "AW"],
|
|
14
|
+
["202", "Australia", "AU"],
|
|
15
|
+
["3", "Austria", "AT"],
|
|
16
|
+
["99", "Azerbaijan", "AZ"],
|
|
17
|
+
["51", "Bahamas", "BS"],
|
|
18
|
+
["100", "Bahrain", "BH"],
|
|
19
|
+
["101", "Bangladesh", "BD"],
|
|
20
|
+
["52", "Barbados", "BB"],
|
|
21
|
+
["45", "Belarus", "BY"],
|
|
22
|
+
["4", "Belgium", "BE"],
|
|
23
|
+
["53", "Belize", "BZ"],
|
|
24
|
+
["147", "Benin", "BJ"],
|
|
25
|
+
["54", "Bermuda", "BM"],
|
|
26
|
+
["102", "Bhutan", "BT"],
|
|
27
|
+
["85", "Bolivia", "BO"],
|
|
28
|
+
["227", "Bonaire, Sint Eustatius and Saba", "BQ"],
|
|
29
|
+
["40", "Bosnia and Herzegovina", "BA"],
|
|
30
|
+
["148", "Botswana", "BW"],
|
|
31
|
+
["86", "Brazil", "BR"],
|
|
32
|
+
["55", "British Virgin Islands", "VG"],
|
|
33
|
+
["103", "Brunei", "BN"],
|
|
34
|
+
["2", "Bulgaria", "BG"],
|
|
35
|
+
["149", "Burkina Faso", "BF"],
|
|
36
|
+
["150", "Burundi", "BI"],
|
|
37
|
+
["104", "Cambodia", "KH"],
|
|
38
|
+
["151", "Cameroon", "CM"],
|
|
39
|
+
["56", "Canada", "CA"],
|
|
40
|
+
["152", "Cape Verde", "CV"],
|
|
41
|
+
["57", "Cayman Islands", "KY"],
|
|
42
|
+
["153", "Central African Republic", "CF"],
|
|
43
|
+
["154", "Chad", "TD"],
|
|
44
|
+
["87", "Chile", "CL"],
|
|
45
|
+
["105", "China", "CN"],
|
|
46
|
+
["88", "Colombia", "CO"],
|
|
47
|
+
["155", "Comoros", "KM"],
|
|
48
|
+
["156", "Congo (Democratic Republic of the)", "CD"],
|
|
49
|
+
["157", "Congo (Republic of the)", "CG"],
|
|
50
|
+
["203", "Cook Islands", "CK"],
|
|
51
|
+
["58", "Costa Rica", "CR"],
|
|
52
|
+
["158", "Côte d'Ivoire", "CI"],
|
|
53
|
+
["38", "Croatia", "HR"],
|
|
54
|
+
["59", "Cuba", "CU"],
|
|
55
|
+
["225", "Curaçao", "CW"],
|
|
56
|
+
["5", "Cyprus", "CY"],
|
|
57
|
+
["7", "Czech Republic", "CZ"],
|
|
58
|
+
["6", "Denmark", "DK"],
|
|
59
|
+
["159", "Djibouti", "DJ"],
|
|
60
|
+
["60", "Dominica", "DM"],
|
|
61
|
+
["61", "Dominican Republic", "DO"],
|
|
62
|
+
["89", "Ecuador", "EC"],
|
|
63
|
+
["161", "Egypt", "EG"],
|
|
64
|
+
["62", "El Salvador", "SV"],
|
|
65
|
+
["162", "Equatorial Guinea", "GQ"],
|
|
66
|
+
["163", "Eritrea", "ER"],
|
|
67
|
+
["8", "Estonia", "EE"],
|
|
68
|
+
["193", "Eswatini", "SZ"],
|
|
69
|
+
["164", "Ethiopia", "ET"],
|
|
70
|
+
["46", "Faroe Islands", "FO"],
|
|
71
|
+
["204", "Fiji", "FJ"],
|
|
72
|
+
["9", "Finland", "FI"],
|
|
73
|
+
["10", "France", "FR"],
|
|
74
|
+
["90", "French Guiana", "GF"],
|
|
75
|
+
["205", "French Polynesia", "PF"],
|
|
76
|
+
];
|
|
77
|
+
export { countryRecordsAF, };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const countryRecordsGL = [
|
|
2
|
+
["165", "Gabon", "GA"],
|
|
3
|
+
["166", "Gambia", "GM"],
|
|
4
|
+
["106", "Georgia", "GE"],
|
|
5
|
+
["11", "Germany", "DE"],
|
|
6
|
+
["167", "Ghana", "GH"],
|
|
7
|
+
["25", "Greece", "GR"],
|
|
8
|
+
["63", "Greenland", "GL"],
|
|
9
|
+
["64", "Grenada", "GD"],
|
|
10
|
+
["65", "Guadeloupe", "GP"],
|
|
11
|
+
["206", "Guam", "GU"],
|
|
12
|
+
["66", "Guatemala", "GT"],
|
|
13
|
+
["168", "Guinea", "GN"],
|
|
14
|
+
["169", "Guinea-Bissau", "GW"],
|
|
15
|
+
["91", "Guyana", "GY"],
|
|
16
|
+
["67", "Haiti", "HT"],
|
|
17
|
+
["68", "Honduras", "HN"],
|
|
18
|
+
["107", "Hong Kong (SAR)", "HK"],
|
|
19
|
+
["12", "Hungary", "HU"],
|
|
20
|
+
["13", "Iceland", "IS"],
|
|
21
|
+
["108", "India", "IN"],
|
|
22
|
+
["109", "Indonesia", "ID"],
|
|
23
|
+
["110", "Iran", "IR"],
|
|
24
|
+
["111", "Iraq", "IQ"],
|
|
25
|
+
["14", "Ireland", "IE"],
|
|
26
|
+
["43", "Isle of Man", "IM"],
|
|
27
|
+
["112", "Israel", "IL"],
|
|
28
|
+
["15", "Italy", "IT"],
|
|
29
|
+
["69", "Jamaica", "JM"],
|
|
30
|
+
["113", "Japan", "JP"],
|
|
31
|
+
["114", "Jordan", "JO"],
|
|
32
|
+
["115", "Kazakhstan", "KZ"],
|
|
33
|
+
["170", "Kenya", "KE"],
|
|
34
|
+
["207", "Kiribati", "KI"],
|
|
35
|
+
["230", "Kosovo", "XK"],
|
|
36
|
+
["118", "Kuwait", "KW"],
|
|
37
|
+
["119", "Kyrgyzstan", "KG"],
|
|
38
|
+
["120", "Laos", "LA"],
|
|
39
|
+
["16", "Latvia", "LV"],
|
|
40
|
+
["121", "Lebanon", "LB"],
|
|
41
|
+
["171", "Lesotho", "LS"],
|
|
42
|
+
["172", "Liberia", "LR"],
|
|
43
|
+
["173", "Libya", "LY"],
|
|
44
|
+
["47", "Liechtenstein", "LI"],
|
|
45
|
+
["17", "Lithuania", "LT"],
|
|
46
|
+
["34", "Luxembourg", "LU"],
|
|
47
|
+
];
|
|
48
|
+
export { countryRecordsGL, };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
const countryRecordsMR = [
|
|
2
|
+
["122", "Macao (SAR)", "MO"],
|
|
3
|
+
["174", "Madagascar", "MG"],
|
|
4
|
+
["175", "Malawi", "MW"],
|
|
5
|
+
["123", "Malaysia", "MY"],
|
|
6
|
+
["124", "Maldives", "MV"],
|
|
7
|
+
["176", "Mali", "ML"],
|
|
8
|
+
["35", "Malta", "MT"],
|
|
9
|
+
["208", "Marshall Islands", "MH"],
|
|
10
|
+
["70", "Martinique", "MQ"],
|
|
11
|
+
["177", "Mauritania", "MR"],
|
|
12
|
+
["178", "Mauritius", "MU"],
|
|
13
|
+
["71", "Mexico", "MX"],
|
|
14
|
+
["209", "Micronesia, Federated States of", "FM"],
|
|
15
|
+
["37", "Moldova", "MD"],
|
|
16
|
+
["36", "Monaco", "MC"],
|
|
17
|
+
["125", "Mongolia", "MN"],
|
|
18
|
+
["39", "Montenegro", "ME"],
|
|
19
|
+
["72", "Montserrat", "MS"],
|
|
20
|
+
["179", "Morocco", "MA"],
|
|
21
|
+
["180", "Mozambique", "MZ"],
|
|
22
|
+
["126", "Myanmar", "MM"],
|
|
23
|
+
["181", "Namibia", "NA"],
|
|
24
|
+
["210", "Nauru", "NR"],
|
|
25
|
+
["127", "Nepal", "NP"],
|
|
26
|
+
["1", "Netherlands", "NL"],
|
|
27
|
+
["211", "New Caledonia", "NC"],
|
|
28
|
+
["212", "New Zealand", "NZ"],
|
|
29
|
+
["74", "Nicaragua", "NI"],
|
|
30
|
+
["182", "Niger", "NE"],
|
|
31
|
+
["183", "Nigeria", "NG"],
|
|
32
|
+
["213", "Niue", "NU"],
|
|
33
|
+
["116", "North Korea", "KP"],
|
|
34
|
+
["18", "North Macedonia", "MK"],
|
|
35
|
+
["229", "Northern Cyprus, Turkish Republic of", "XC"],
|
|
36
|
+
["214", "Northern Mariana Islands", "MP"],
|
|
37
|
+
["19", "Norway", "NO"],
|
|
38
|
+
["128", "Oman", "OM"],
|
|
39
|
+
["129", "Pakistan", "PK"],
|
|
40
|
+
["215", "Palau", "PW"],
|
|
41
|
+
["144", "Palestinian Territory, Occupied", "PS"],
|
|
42
|
+
["75", "Panama", "PA"],
|
|
43
|
+
["216", "Papua New Guinea", "PG"],
|
|
44
|
+
["92", "Paraguay", "PY"],
|
|
45
|
+
["93", "Peru", "PE"],
|
|
46
|
+
["130", "Philippines", "PH"],
|
|
47
|
+
["20", "Poland", "PL"],
|
|
48
|
+
["21", "Portugal", "PT"],
|
|
49
|
+
["76", "Puerto Rico", "PR"],
|
|
50
|
+
["131", "Qatar", "QA"],
|
|
51
|
+
["184", "Réunion", "RE"],
|
|
52
|
+
["33", "Romania", "RO"],
|
|
53
|
+
["22", "Russia", "RU"],
|
|
54
|
+
["185", "Rwanda", "RW"],
|
|
55
|
+
];
|
|
56
|
+
export { countryRecordsMR, };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
const countryRecordsSZ = [
|
|
2
|
+
["222", "Saint Barthélemy", "BL"],
|
|
3
|
+
["77", "Saint Kitts and Nevis", "KN"],
|
|
4
|
+
["78", "Saint Lucia", "LC"],
|
|
5
|
+
["79", "Saint Pierre and Miquelon", "PM"],
|
|
6
|
+
["80", "Saint Vincent and the Grenadines", "VC"],
|
|
7
|
+
["217", "Samoa", "WS"],
|
|
8
|
+
["48", "San Marino", "SM"],
|
|
9
|
+
["186", "São Tomé and Príncipe", "ST"],
|
|
10
|
+
["132", "Saudi Arabia", "SA"],
|
|
11
|
+
["187", "Senegal", "SN"],
|
|
12
|
+
["23", "Serbia", "RS"],
|
|
13
|
+
["188", "Seychelles", "SC"],
|
|
14
|
+
["189", "Sierra Leone", "SL"],
|
|
15
|
+
["133", "Singapore", "SG"],
|
|
16
|
+
["223", "Sint Maarten", "SX"],
|
|
17
|
+
["41", "Slovakia", "SK"],
|
|
18
|
+
["31", "Slovenia", "SI"],
|
|
19
|
+
["218", "Solomon Islands", "SB"],
|
|
20
|
+
["190", "Somalia", "SO"],
|
|
21
|
+
["191", "South Africa", "ZA"],
|
|
22
|
+
["117", "South Korea", "KR"],
|
|
23
|
+
["232", "South Sudan", "SS"],
|
|
24
|
+
["24", "Spain", "ES"],
|
|
25
|
+
["134", "Sri Lanka", "LK"],
|
|
26
|
+
["192", "Sudan", "SD"],
|
|
27
|
+
["94", "Suriname", "SR"],
|
|
28
|
+
["26", "Sweden", "SE"],
|
|
29
|
+
["27", "Switzerland", "CH"],
|
|
30
|
+
["135", "Syria", "SY"],
|
|
31
|
+
["136", "Taiwan", "TW"],
|
|
32
|
+
["137", "Tajikistan", "TJ"],
|
|
33
|
+
["194", "Tanzania", "TZ"],
|
|
34
|
+
["138", "Thailand", "TH"],
|
|
35
|
+
["160", "Timor-Leste", "TL"],
|
|
36
|
+
["195", "Togo", "TG"],
|
|
37
|
+
["219", "Tonga", "TO"],
|
|
38
|
+
["81", "Trinidad and Tobago", "TT"],
|
|
39
|
+
["196", "Tunisia", "TN"],
|
|
40
|
+
["28", "Turkey", "TR"],
|
|
41
|
+
["139", "Turkmenistan", "TM"],
|
|
42
|
+
["226", "Turks and Caicos Islands", "TC"],
|
|
43
|
+
["220", "Tuvalu", "TV"],
|
|
44
|
+
["197", "Uganda", "UG"],
|
|
45
|
+
["29", "Ukraine", "UA"],
|
|
46
|
+
["140", "United Arab Emirates", "AE"],
|
|
47
|
+
["30", "United Kingdom", "GB"],
|
|
48
|
+
["82", "United States", "US"],
|
|
49
|
+
["83", "United States Virgin Islands", "VI"],
|
|
50
|
+
["95", "Uruguay", "UY"],
|
|
51
|
+
["141", "Uzbekistan", "UZ"],
|
|
52
|
+
["221", "Vanuatu", "VU"],
|
|
53
|
+
["96", "Venezuela", "VE"],
|
|
54
|
+
["142", "Vietnam", "VN"],
|
|
55
|
+
["198", "Western Sahara", "EH"],
|
|
56
|
+
["143", "Yemen", "YE"],
|
|
57
|
+
["199", "Zambia", "ZM"],
|
|
58
|
+
["200", "Zimbabwe", "ZW"],
|
|
59
|
+
];
|
|
60
|
+
export { countryRecordsSZ, };
|