@thisisagile/easy 8.1.0 → 8.2.3

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.
@@ -0,0 +1,255 @@
1
+ import { Enum, Id } from '../../types';
2
+ export declare class Country extends Enum {
3
+ private readonly lower;
4
+ static readonly AF: Country;
5
+ static readonly AX: Country;
6
+ static readonly AL: Country;
7
+ static readonly DZ: Country;
8
+ static readonly AS: Country;
9
+ static readonly AD: Country;
10
+ static readonly AO: Country;
11
+ static readonly AI: Country;
12
+ static readonly AQ: Country;
13
+ static readonly AG: Country;
14
+ static readonly AR: Country;
15
+ static readonly AM: Country;
16
+ static readonly AW: Country;
17
+ static readonly AU: Country;
18
+ static readonly AT: Country;
19
+ static readonly AZ: Country;
20
+ static readonly BS: Country;
21
+ static readonly BH: Country;
22
+ static readonly BD: Country;
23
+ static readonly BB: Country;
24
+ static readonly BY: Country;
25
+ static readonly BE: Country;
26
+ static readonly BZ: Country;
27
+ static readonly BJ: Country;
28
+ static readonly BM: Country;
29
+ static readonly BT: Country;
30
+ static readonly BO: Country;
31
+ static readonly BA: Country;
32
+ static readonly BW: Country;
33
+ static readonly BV: Country;
34
+ static readonly BR: Country;
35
+ static readonly IO: Country;
36
+ static readonly VG: Country;
37
+ static readonly BN: Country;
38
+ static readonly BG: Country;
39
+ static readonly BF: Country;
40
+ static readonly BI: Country;
41
+ static readonly KH: Country;
42
+ static readonly CM: Country;
43
+ static readonly CA: Country;
44
+ static readonly CV: Country;
45
+ static readonly BQ: Country;
46
+ static readonly KY: Country;
47
+ static readonly CF: Country;
48
+ static readonly TD: Country;
49
+ static readonly CL: Country;
50
+ static readonly CN: Country;
51
+ static readonly CX: Country;
52
+ static readonly CC: Country;
53
+ static readonly CO: Country;
54
+ static readonly KM: Country;
55
+ static readonly CG: Country;
56
+ static readonly CD: Country;
57
+ static readonly CK: Country;
58
+ static readonly CR: Country;
59
+ static readonly CI: Country;
60
+ static readonly HR: Country;
61
+ static readonly CU: Country;
62
+ static readonly CW: Country;
63
+ static readonly CY: Country;
64
+ static readonly CZ: Country;
65
+ static readonly DK: Country;
66
+ static readonly DJ: Country;
67
+ static readonly DM: Country;
68
+ static readonly DO: Country;
69
+ static readonly EC: Country;
70
+ static readonly EG: Country;
71
+ static readonly SV: Country;
72
+ static readonly GQ: Country;
73
+ static readonly ER: Country;
74
+ static readonly EE: Country;
75
+ static readonly SZ: Country;
76
+ static readonly ET: Country;
77
+ static readonly FK: Country;
78
+ static readonly FO: Country;
79
+ static readonly FJ: Country;
80
+ static readonly FI: Country;
81
+ static readonly FR: Country;
82
+ static readonly GF: Country;
83
+ static readonly PF: Country;
84
+ static readonly TF: Country;
85
+ static readonly GA: Country;
86
+ static readonly GM: Country;
87
+ static readonly GE: Country;
88
+ static readonly DE: Country;
89
+ static readonly GH: Country;
90
+ static readonly GI: Country;
91
+ static readonly GR: Country;
92
+ static readonly GL: Country;
93
+ static readonly GD: Country;
94
+ static readonly GP: Country;
95
+ static readonly GU: Country;
96
+ static readonly GT: Country;
97
+ static readonly GG: Country;
98
+ static readonly GN: Country;
99
+ static readonly GW: Country;
100
+ static readonly GY: Country;
101
+ static readonly HT: Country;
102
+ static readonly HM: Country;
103
+ static readonly HN: Country;
104
+ static readonly HK: Country;
105
+ static readonly HU: Country;
106
+ static readonly IS: Country;
107
+ static readonly IN: Country;
108
+ static readonly ID: Country;
109
+ static readonly IR: Country;
110
+ static readonly IQ: Country;
111
+ static readonly IE: Country;
112
+ static readonly IM: Country;
113
+ static readonly IL: Country;
114
+ static readonly IT: Country;
115
+ static readonly JM: Country;
116
+ static readonly JP: Country;
117
+ static readonly JE: Country;
118
+ static readonly JO: Country;
119
+ static readonly KZ: Country;
120
+ static readonly KE: Country;
121
+ static readonly KI: Country;
122
+ static readonly KW: Country;
123
+ static readonly KG: Country;
124
+ static readonly LA: Country;
125
+ static readonly LV: Country;
126
+ static readonly LB: Country;
127
+ static readonly LS: Country;
128
+ static readonly LR: Country;
129
+ static readonly LY: Country;
130
+ static readonly LI: Country;
131
+ static readonly LT: Country;
132
+ static readonly LU: Country;
133
+ static readonly MO: Country;
134
+ static readonly MG: Country;
135
+ static readonly MW: Country;
136
+ static readonly MY: Country;
137
+ static readonly MV: Country;
138
+ static readonly ML: Country;
139
+ static readonly MT: Country;
140
+ static readonly MH: Country;
141
+ static readonly MQ: Country;
142
+ static readonly MR: Country;
143
+ static readonly MU: Country;
144
+ static readonly YT: Country;
145
+ static readonly MX: Country;
146
+ static readonly FM: Country;
147
+ static readonly MD: Country;
148
+ static readonly MC: Country;
149
+ static readonly MN: Country;
150
+ static readonly ME: Country;
151
+ static readonly MS: Country;
152
+ static readonly MA: Country;
153
+ static readonly MZ: Country;
154
+ static readonly MM: Country;
155
+ static readonly NA: Country;
156
+ static readonly NR: Country;
157
+ static readonly NP: Country;
158
+ static readonly NL: Country;
159
+ static readonly NC: Country;
160
+ static readonly NZ: Country;
161
+ static readonly NI: Country;
162
+ static readonly NE: Country;
163
+ static readonly NG: Country;
164
+ static readonly NU: Country;
165
+ static readonly NF: Country;
166
+ static readonly KP: Country;
167
+ static readonly MK: Country;
168
+ static readonly MP: Country;
169
+ static readonly NO: Country;
170
+ static readonly OM: Country;
171
+ static readonly PK: Country;
172
+ static readonly PW: Country;
173
+ static readonly PS: Country;
174
+ static readonly PA: Country;
175
+ static readonly PG: Country;
176
+ static readonly PY: Country;
177
+ static readonly PE: Country;
178
+ static readonly PH: Country;
179
+ static readonly PN: Country;
180
+ static readonly PL: Country;
181
+ static readonly PT: Country;
182
+ static readonly PR: Country;
183
+ static readonly QA: Country;
184
+ static readonly RE: Country;
185
+ static readonly RO: Country;
186
+ static readonly RU: Country;
187
+ static readonly RW: Country;
188
+ static readonly WS: Country;
189
+ static readonly SM: Country;
190
+ static readonly ST: Country;
191
+ static readonly SA: Country;
192
+ static readonly SN: Country;
193
+ static readonly RS: Country;
194
+ static readonly SC: Country;
195
+ static readonly SL: Country;
196
+ static readonly SG: Country;
197
+ static readonly SX: Country;
198
+ static readonly SK: Country;
199
+ static readonly SI: Country;
200
+ static readonly SB: Country;
201
+ static readonly SO: Country;
202
+ static readonly ZA: Country;
203
+ static readonly GS: Country;
204
+ static readonly KR: Country;
205
+ static readonly SS: Country;
206
+ static readonly ES: Country;
207
+ static readonly LK: Country;
208
+ static readonly BL: Country;
209
+ static readonly SH: Country;
210
+ static readonly KN: Country;
211
+ static readonly LC: Country;
212
+ static readonly MF: Country;
213
+ static readonly PM: Country;
214
+ static readonly VC: Country;
215
+ static readonly SD: Country;
216
+ static readonly SR: Country;
217
+ static readonly SJ: Country;
218
+ static readonly SE: Country;
219
+ static readonly CH: Country;
220
+ static readonly SY: Country;
221
+ static readonly TW: Country;
222
+ static readonly TJ: Country;
223
+ static readonly TZ: Country;
224
+ static readonly TH: Country;
225
+ static readonly TL: Country;
226
+ static readonly TG: Country;
227
+ static readonly TK: Country;
228
+ static readonly TO: Country;
229
+ static readonly TT: Country;
230
+ static readonly TN: Country;
231
+ static readonly TR: Country;
232
+ static readonly TM: Country;
233
+ static readonly TC: Country;
234
+ static readonly TV: Country;
235
+ static readonly UM: Country;
236
+ static readonly VI: Country;
237
+ static readonly UG: Country;
238
+ static readonly UA: Country;
239
+ static readonly AE: Country;
240
+ static readonly GB: Country;
241
+ static readonly US: Country;
242
+ static readonly UY: Country;
243
+ static readonly UZ: Country;
244
+ static readonly VU: Country;
245
+ static readonly VA: Country;
246
+ static readonly VE: Country;
247
+ static readonly VN: Country;
248
+ static readonly WF: Country;
249
+ static readonly EH: Country;
250
+ static readonly YE: Country;
251
+ static readonly ZM: Country;
252
+ static readonly ZW: Country;
253
+ constructor(name: string, id: string, lower?: string);
254
+ equals<E extends Enum | Id>(other: E): boolean;
255
+ }
@@ -0,0 +1,264 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Country = void 0;
4
+ const types_1 = require("../../types");
5
+ class Country extends types_1.Enum {
6
+ constructor(name, id, lower = (0, types_1.text)(id).lower.toString()) {
7
+ super(name, id);
8
+ this.lower = lower;
9
+ }
10
+ equals(other) {
11
+ return this.lower === (0, types_1.text)((0, types_1.isEnum)(other) ? other.id : other).lower.toString();
12
+ }
13
+ }
14
+ exports.Country = Country;
15
+ Country.AF = new Country('Afghanistan', 'AF');
16
+ Country.AX = new Country('Åland Islands', 'AX');
17
+ Country.AL = new Country('Albania', 'AL');
18
+ Country.DZ = new Country('Algeria', 'DZ');
19
+ Country.AS = new Country('American Samoa', 'AS');
20
+ Country.AD = new Country('Andorra', 'AD');
21
+ Country.AO = new Country('Angola', 'AO');
22
+ Country.AI = new Country('Anguilla', 'AI');
23
+ Country.AQ = new Country('Antarctica', 'AQ');
24
+ Country.AG = new Country('Antigua & Barbuda', 'AG');
25
+ Country.AR = new Country('Argentina', 'AR');
26
+ Country.AM = new Country('Armenia', 'AM');
27
+ Country.AW = new Country('Aruba', 'AW');
28
+ Country.AU = new Country('Australia', 'AU');
29
+ Country.AT = new Country('Austria', 'AT');
30
+ Country.AZ = new Country('Azerbaijan', 'AZ');
31
+ Country.BS = new Country('Bahamas', 'BS');
32
+ Country.BH = new Country('Bahrain', 'BH');
33
+ Country.BD = new Country('Bangladesh', 'BD');
34
+ Country.BB = new Country('Barbados', 'BB');
35
+ Country.BY = new Country('Belarus', 'BY');
36
+ Country.BE = new Country('Belgium', 'BE');
37
+ Country.BZ = new Country('Belize', 'BZ');
38
+ Country.BJ = new Country('Benin', 'BJ');
39
+ Country.BM = new Country('Bermuda', 'BM');
40
+ Country.BT = new Country('Bhutan', 'BT');
41
+ Country.BO = new Country('Bolivia', 'BO');
42
+ Country.BA = new Country('Bosnia & Herzegovina', 'BA');
43
+ Country.BW = new Country('Botswana', 'BW');
44
+ Country.BV = new Country('Bouvet Island', 'BV');
45
+ Country.BR = new Country('Brazil', 'BR');
46
+ Country.IO = new Country('British Indian Ocean Territory', 'IO');
47
+ Country.VG = new Country('British Virgin Islands', 'VG');
48
+ Country.BN = new Country('Brunei', 'BN');
49
+ Country.BG = new Country('Bulgaria', 'BG');
50
+ Country.BF = new Country('Burkina Faso', 'BF');
51
+ Country.BI = new Country('Burundi', 'BI');
52
+ Country.KH = new Country('Cambodia', 'KH');
53
+ Country.CM = new Country('Cameroon', 'CM');
54
+ Country.CA = new Country('Canada', 'CA');
55
+ Country.CV = new Country('Cape Verde', 'CV');
56
+ Country.BQ = new Country('Caribbean Netherlands', 'BQ');
57
+ Country.KY = new Country('Cayman Islands', 'KY');
58
+ Country.CF = new Country('Central African Republic', 'CF');
59
+ Country.TD = new Country('Chad', 'TD');
60
+ Country.CL = new Country('Chile', 'CL');
61
+ Country.CN = new Country('China', 'CN');
62
+ Country.CX = new Country('Christmas Island', 'CX');
63
+ Country.CC = new Country('Cocos (Keeling) Islands', 'CC');
64
+ Country.CO = new Country('Colombia', 'CO');
65
+ Country.KM = new Country('Comoros', 'KM');
66
+ Country.CG = new Country('Congo - Brazzaville', 'CG');
67
+ Country.CD = new Country('Congo - Kinshasa', 'CD');
68
+ Country.CK = new Country('Cook Islands', 'CK');
69
+ Country.CR = new Country('Costa Rica', 'CR');
70
+ Country.CI = new Country('Côte d’Ivoire', 'CI');
71
+ Country.HR = new Country('Croatia', 'HR');
72
+ Country.CU = new Country('Cuba', 'CU');
73
+ Country.CW = new Country('Curaçao', 'CW');
74
+ Country.CY = new Country('Cyprus', 'CY');
75
+ Country.CZ = new Country('Czechia', 'CZ');
76
+ Country.DK = new Country('Denmark', 'DK');
77
+ Country.DJ = new Country('Djibouti', 'DJ');
78
+ Country.DM = new Country('Dominica', 'DM');
79
+ Country.DO = new Country('Dominican Republic', 'DO');
80
+ Country.EC = new Country('Ecuador', 'EC');
81
+ Country.EG = new Country('Egypt', 'EG');
82
+ Country.SV = new Country('El Salvador', 'SV');
83
+ Country.GQ = new Country('Equatorial Guinea', 'GQ');
84
+ Country.ER = new Country('Eritrea', 'ER');
85
+ Country.EE = new Country('Estonia', 'EE');
86
+ Country.SZ = new Country('Eswatini', 'SZ');
87
+ Country.ET = new Country('Ethiopia', 'ET');
88
+ Country.FK = new Country('Falkland Islands', 'FK');
89
+ Country.FO = new Country('Faroe Islands', 'FO');
90
+ Country.FJ = new Country('Fiji', 'FJ');
91
+ Country.FI = new Country('Finland', 'FI');
92
+ Country.FR = new Country('France', 'FR');
93
+ Country.GF = new Country('French Guiana', 'GF');
94
+ Country.PF = new Country('French Polynesia', 'PF');
95
+ Country.TF = new Country('French Southern Territories', 'TF');
96
+ Country.GA = new Country('Gabon', 'GA');
97
+ Country.GM = new Country('Gambia', 'GM');
98
+ Country.GE = new Country('Georgia', 'GE');
99
+ Country.DE = new Country('Germany', 'DE');
100
+ Country.GH = new Country('Ghana', 'GH');
101
+ Country.GI = new Country('Gibraltar', 'GI');
102
+ Country.GR = new Country('Greece', 'GR');
103
+ Country.GL = new Country('Greenland', 'GL');
104
+ Country.GD = new Country('Grenada', 'GD');
105
+ Country.GP = new Country('Guadeloupe', 'GP');
106
+ Country.GU = new Country('Guam', 'GU');
107
+ Country.GT = new Country('Guatemala', 'GT');
108
+ Country.GG = new Country('Guernsey', 'GG');
109
+ Country.GN = new Country('Guinea', 'GN');
110
+ Country.GW = new Country('Guinea-Bissau', 'GW');
111
+ Country.GY = new Country('Guyana', 'GY');
112
+ Country.HT = new Country('Haiti', 'HT');
113
+ Country.HM = new Country('Heard & McDonald Islands', 'HM');
114
+ Country.HN = new Country('Honduras', 'HN');
115
+ Country.HK = new Country('Hong Kong SAR China', 'HK');
116
+ Country.HU = new Country('Hungary', 'HU');
117
+ Country.IS = new Country('Iceland', 'IS');
118
+ Country.IN = new Country('India', 'IN');
119
+ Country.ID = new Country('Indonesia', 'ID');
120
+ Country.IR = new Country('Iran', 'IR');
121
+ Country.IQ = new Country('Iraq', 'IQ');
122
+ Country.IE = new Country('Ireland', 'IE');
123
+ Country.IM = new Country('Isle of Man', 'IM');
124
+ Country.IL = new Country('Israel', 'IL');
125
+ Country.IT = new Country('Italy', 'IT');
126
+ Country.JM = new Country('Jamaica', 'JM');
127
+ Country.JP = new Country('Japan', 'JP');
128
+ Country.JE = new Country('Jersey', 'JE');
129
+ Country.JO = new Country('Jordan', 'JO');
130
+ Country.KZ = new Country('Kazakhstan', 'KZ');
131
+ Country.KE = new Country('Kenya', 'KE');
132
+ Country.KI = new Country('Kiribati', 'KI');
133
+ Country.KW = new Country('Kuwait', 'KW');
134
+ Country.KG = new Country('Kyrgyzstan', 'KG');
135
+ Country.LA = new Country('Laos', 'LA');
136
+ Country.LV = new Country('Latvia', 'LV');
137
+ Country.LB = new Country('Lebanon', 'LB');
138
+ Country.LS = new Country('Lesotho', 'LS');
139
+ Country.LR = new Country('Liberia', 'LR');
140
+ Country.LY = new Country('Libya', 'LY');
141
+ Country.LI = new Country('Liechtenstein', 'LI');
142
+ Country.LT = new Country('Lithuania', 'LT');
143
+ Country.LU = new Country('Luxembourg', 'LU');
144
+ Country.MO = new Country('Macao SAR China', 'MO');
145
+ Country.MG = new Country('Madagascar', 'MG');
146
+ Country.MW = new Country('Malawi', 'MW');
147
+ Country.MY = new Country('Malaysia', 'MY');
148
+ Country.MV = new Country('Maldives', 'MV');
149
+ Country.ML = new Country('Mali', 'ML');
150
+ Country.MT = new Country('Malta', 'MT');
151
+ Country.MH = new Country('Marshall Islands', 'MH');
152
+ Country.MQ = new Country('Martinique', 'MQ');
153
+ Country.MR = new Country('Mauritania', 'MR');
154
+ Country.MU = new Country('Mauritius', 'MU');
155
+ Country.YT = new Country('Mayotte', 'YT');
156
+ Country.MX = new Country('Mexico', 'MX');
157
+ Country.FM = new Country('Micronesia', 'FM');
158
+ Country.MD = new Country('Moldova', 'MD');
159
+ Country.MC = new Country('Monaco', 'MC');
160
+ Country.MN = new Country('Mongolia', 'MN');
161
+ Country.ME = new Country('Montenegro', 'ME');
162
+ Country.MS = new Country('Montserrat', 'MS');
163
+ Country.MA = new Country('Morocco', 'MA');
164
+ Country.MZ = new Country('Mozambique', 'MZ');
165
+ Country.MM = new Country('Myanmar (Burma)', 'MM');
166
+ Country.NA = new Country('Namibia', 'NA');
167
+ Country.NR = new Country('Nauru', 'NR');
168
+ Country.NP = new Country('Nepal', 'NP');
169
+ Country.NL = new Country('Netherlands', 'NL');
170
+ Country.NC = new Country('New Caledonia', 'NC');
171
+ Country.NZ = new Country('New Zealand', 'NZ');
172
+ Country.NI = new Country('Nicaragua', 'NI');
173
+ Country.NE = new Country('Niger', 'NE');
174
+ Country.NG = new Country('Nigeria', 'NG');
175
+ Country.NU = new Country('Niue', 'NU');
176
+ Country.NF = new Country('Norfolk Island', 'NF');
177
+ Country.KP = new Country('North Korea', 'KP');
178
+ Country.MK = new Country('North Macedonia', 'MK');
179
+ Country.MP = new Country('Northern Mariana Islands', 'MP');
180
+ Country.NO = new Country('Norway', 'NO');
181
+ Country.OM = new Country('Oman', 'OM');
182
+ Country.PK = new Country('Pakistan', 'PK');
183
+ Country.PW = new Country('Palau', 'PW');
184
+ Country.PS = new Country('Palestinian Territories', 'PS');
185
+ Country.PA = new Country('Panama', 'PA');
186
+ Country.PG = new Country('Papua New Guinea', 'PG');
187
+ Country.PY = new Country('Paraguay', 'PY');
188
+ Country.PE = new Country('Peru', 'PE');
189
+ Country.PH = new Country('Philippines', 'PH');
190
+ Country.PN = new Country('Pitcairn Islands', 'PN');
191
+ Country.PL = new Country('Poland', 'PL');
192
+ Country.PT = new Country('Portugal', 'PT');
193
+ Country.PR = new Country('Puerto Rico', 'PR');
194
+ Country.QA = new Country('Qatar', 'QA');
195
+ Country.RE = new Country('Réunion', 'RE');
196
+ Country.RO = new Country('Romania', 'RO');
197
+ Country.RU = new Country('Russia', 'RU');
198
+ Country.RW = new Country('Rwanda', 'RW');
199
+ Country.WS = new Country('Samoa', 'WS');
200
+ Country.SM = new Country('San Marino', 'SM');
201
+ Country.ST = new Country('São Tomé & Príncipe', 'ST');
202
+ Country.SA = new Country('Saudi Arabia', 'SA');
203
+ Country.SN = new Country('Senegal', 'SN');
204
+ Country.RS = new Country('Serbia', 'RS');
205
+ Country.SC = new Country('Seychelles', 'SC');
206
+ Country.SL = new Country('Sierra Leone', 'SL');
207
+ Country.SG = new Country('Singapore', 'SG');
208
+ Country.SX = new Country('Sint Maarten', 'SX');
209
+ Country.SK = new Country('Slovakia', 'SK');
210
+ Country.SI = new Country('Slovenia', 'SI');
211
+ Country.SB = new Country('Solomon Islands', 'SB');
212
+ Country.SO = new Country('Somalia', 'SO');
213
+ Country.ZA = new Country('South Africa', 'ZA');
214
+ Country.GS = new Country('South Georgia & South Sandwich Islands', 'GS');
215
+ Country.KR = new Country('South Korea', 'KR');
216
+ Country.SS = new Country('South Sudan', 'SS');
217
+ Country.ES = new Country('Spain', 'ES');
218
+ Country.LK = new Country('Sri Lanka', 'LK');
219
+ Country.BL = new Country('St. Barthélemy', 'BL');
220
+ Country.SH = new Country('St. Helena', 'SH');
221
+ Country.KN = new Country('St. Kitts & Nevis', 'KN');
222
+ Country.LC = new Country('St. Lucia', 'LC');
223
+ Country.MF = new Country('St. Martin', 'MF');
224
+ Country.PM = new Country('St. Pierre & Miquelon', 'PM');
225
+ Country.VC = new Country('St. Vincent & Grenadines', 'VC');
226
+ Country.SD = new Country('Sudan', 'SD');
227
+ Country.SR = new Country('Suriname', 'SR');
228
+ Country.SJ = new Country('Svalbard & Jan Mayen', 'SJ');
229
+ Country.SE = new Country('Sweden', 'SE');
230
+ Country.CH = new Country('Switzerland', 'CH');
231
+ Country.SY = new Country('Syria', 'SY');
232
+ Country.TW = new Country('Taiwan', 'TW');
233
+ Country.TJ = new Country('Tajikistan', 'TJ');
234
+ Country.TZ = new Country('Tanzania', 'TZ');
235
+ Country.TH = new Country('Thailand', 'TH');
236
+ Country.TL = new Country('Timor-Leste', 'TL');
237
+ Country.TG = new Country('Togo', 'TG');
238
+ Country.TK = new Country('Tokelau', 'TK');
239
+ Country.TO = new Country('Tonga', 'TO');
240
+ Country.TT = new Country('Trinidad & Tobago', 'TT');
241
+ Country.TN = new Country('Tunisia', 'TN');
242
+ Country.TR = new Country('Turkey', 'TR');
243
+ Country.TM = new Country('Turkmenistan', 'TM');
244
+ Country.TC = new Country('Turks & Caicos Islands', 'TC');
245
+ Country.TV = new Country('Tuvalu', 'TV');
246
+ Country.UM = new Country('U.S. Outlying Islands', 'UM');
247
+ Country.VI = new Country('U.S. Virgin Islands', 'VI');
248
+ Country.UG = new Country('Uganda', 'UG');
249
+ Country.UA = new Country('Ukraine', 'UA');
250
+ Country.AE = new Country('United Arab Emirates', 'AE');
251
+ Country.GB = new Country('United Kingdom', 'GB');
252
+ Country.US = new Country('United States', 'US');
253
+ Country.UY = new Country('Uruguay', 'UY');
254
+ Country.UZ = new Country('Uzbekistan', 'UZ');
255
+ Country.VU = new Country('Vanuatu', 'VU');
256
+ Country.VA = new Country('Vatican City', 'VA');
257
+ Country.VE = new Country('Venezuela', 'VE');
258
+ Country.VN = new Country('Vietnam', 'VN');
259
+ Country.WF = new Country('Wallis & Futuna', 'WF');
260
+ Country.EH = new Country('Western Sahara', 'EH');
261
+ Country.YE = new Country('Yemen', 'YE');
262
+ Country.ZM = new Country('Zambia', 'ZM');
263
+ Country.ZW = new Country('Zimbabwe', 'ZW');
264
+ //# sourceMappingURL=Country.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Country.js","sourceRoot":"","sources":["../../../src/domain/enums/Country.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAErD,MAAa,OAAQ,SAAQ,YAAI;IA2P/B,YAAY,IAAY,EAAE,EAAU,EAAmB,QAAQ,IAAA,YAAI,EAAC,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE;QACtF,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QADqC,UAAK,GAAL,KAAK,CAA4B;IAExF,CAAC;IAED,MAAM,CAAsB,KAAQ;QAClC,OAAO,IAAI,CAAC,KAAK,KAAK,IAAA,YAAI,EAAC,IAAA,cAAM,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC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;AACxC,UAAE,GAAG,IAAI,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAClC,UAAE,GAAG,IAAI,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AACrC,UAAE,GAAG,IAAI,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAClC,UAAE,GAAG,IAAI,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;AACvC,UAAE,GAAG,IAAI,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;AACpC,UAAE,GAAG,IAAI,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAClC,UAAE,GAAG,IAAI,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;AAC1C,UAAE,GAAG,IAAI,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;AACzC,UAAE,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAChC,UAAE,GAAG,IAAI,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AACjC,UAAE,GAAG,IAAI,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
+ export * from './Country';
1
2
  export * from './Currency';
2
3
  export * from './Locale';
@@ -10,6 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./Country"), exports);
13
14
  __exportStar(require("./Currency"), exports);
14
15
  __exportStar(require("./Locale"), exports);
15
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,2CAAyB"}
@@ -22,12 +22,12 @@ class Enum {
22
22
  static byId(id, alt) {
23
23
  return ((0, Meta_1.meta)(this)
24
24
  .values()
25
- .first((e) => (0, exports.isEnum)(e) && e.id === id) ?? (0, Get_1.ofGet)(alt));
25
+ .first((e) => (0, exports.isEnum)(e) && e.equals(id)) ?? (0, Get_1.ofGet)(alt));
26
26
  }
27
27
  static byIds(ids) {
28
28
  return (0, Meta_1.meta)(this)
29
29
  .values()
30
- .filter((e) => (0, exports.isEnum)(e) && ids?.includes(e.id));
30
+ .filter((e) => (0, exports.isEnum)(e) && ids?.some(i => e.equals(i)));
31
31
  }
32
32
  static filter(p, params) {
33
33
  return this.all().filter(p, params);
@@ -1 +1 @@
1
- {"version":3,"file":"Enum.js","sourceRoot":"","sources":["../../src/types/Enum.ts"],"names":[],"mappings":";;;AAEA,+BAA6B;AAC7B,iCAA8B;AAC9B,6BAAiC;AAGjC,+BAAmC;AAEnC,MAAsB,IAAI;IACxB,YAA+B,IAAY,EAAW,KAAS,IAAI,CAAC,WAAW,EAAE,EAAW,OAAe,EAAE,CAAC,QAAQ,EAAE;QAAzF,SAAI,GAAJ,IAAI,CAAQ;QAAW,OAAE,GAAF,EAAE,CAAyB;QAAW,SAAI,GAAJ,IAAI,CAAwB;IAAG,CAAC;IAE5H,IAAI,OAAO;QACT,OAAO,IAAA,cAAS,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,GAAG;QACR,OAAO,IAAA,WAAI,EAAC,IAAI,CAAC;aACd,MAAM,EAAK;aACX,MAAM,CAAC,CAAC,CAAU,EAAE,EAAE,CAAC,IAAA,cAAM,EAAC,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,IAAI,CAAiB,EAAM,EAAE,GAAqB;QACvD,OAA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,OAAO,IAAI,CAAC,GAAG,EAAK,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IACzC,CAAC;IAED,MAAM,CAAsB,KAAQ;QAClC,OAAO,IAAI,CAAC,EAAE,KAAK,CAAC,IAAA,cAAM,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACxD,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;IAC5B,CAAC;CACF;AA1CD,oBA0CC;AAEM,MAAM,MAAM,GAAG,CAAC,CAAW,EAAa,EAAE,CAAC,IAAA,cAAS,EAAC,CAAC,CAAC,IAAI,CAAC,YAAY,IAAI,IAAI,IAAA,UAAI,EAAO,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAA9G,QAAA,MAAM,UAAwG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thisisagile/easy",
3
- "version": "8.1.0",
3
+ "version": "8.2.3",
4
4
  "description": "Straightforward library for building domain-driven microservice architectures",
5
5
  "author": "Sander Hoogendoorn",
6
6
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "access": "public"
32
32
  },
33
33
  "devDependencies": {
34
- "@thisisagile/easy-test": "8.1.0",
34
+ "@thisisagile/easy-test": "8.2.3",
35
35
  "@types/form-urlencoded": "^4.4.0",
36
36
  "@types/jsonwebtoken": "^8.5.6",
37
37
  "@types/validator": "^13.7.0"
@@ -0,0 +1,261 @@
1
+ import { Enum, Id, isEnum, text } from '../../types';
2
+
3
+ export class Country extends Enum {
4
+ static readonly AF = new Country('Afghanistan', 'AF');
5
+ static readonly AX = new Country('Åland Islands', 'AX');
6
+ static readonly AL = new Country('Albania', 'AL');
7
+ static readonly DZ = new Country('Algeria', 'DZ');
8
+ static readonly AS = new Country('American Samoa', 'AS');
9
+ static readonly AD = new Country('Andorra', 'AD');
10
+ static readonly AO = new Country('Angola', 'AO');
11
+ static readonly AI = new Country('Anguilla', 'AI');
12
+ static readonly AQ = new Country('Antarctica', 'AQ');
13
+ static readonly AG = new Country('Antigua & Barbuda', 'AG');
14
+ static readonly AR = new Country('Argentina', 'AR');
15
+ static readonly AM = new Country('Armenia', 'AM');
16
+ static readonly AW = new Country('Aruba', 'AW');
17
+ static readonly AU = new Country('Australia', 'AU');
18
+ static readonly AT = new Country('Austria', 'AT');
19
+ static readonly AZ = new Country('Azerbaijan', 'AZ');
20
+ static readonly BS = new Country('Bahamas', 'BS');
21
+ static readonly BH = new Country('Bahrain', 'BH');
22
+ static readonly BD = new Country('Bangladesh', 'BD');
23
+ static readonly BB = new Country('Barbados', 'BB');
24
+ static readonly BY = new Country('Belarus', 'BY');
25
+ static readonly BE = new Country('Belgium', 'BE');
26
+ static readonly BZ = new Country('Belize', 'BZ');
27
+ static readonly BJ = new Country('Benin', 'BJ');
28
+ static readonly BM = new Country('Bermuda', 'BM');
29
+ static readonly BT = new Country('Bhutan', 'BT');
30
+ static readonly BO = new Country('Bolivia', 'BO');
31
+ static readonly BA = new Country('Bosnia & Herzegovina', 'BA');
32
+ static readonly BW = new Country('Botswana', 'BW');
33
+ static readonly BV = new Country('Bouvet Island', 'BV');
34
+ static readonly BR = new Country('Brazil', 'BR');
35
+ static readonly IO = new Country('British Indian Ocean Territory', 'IO');
36
+ static readonly VG = new Country('British Virgin Islands', 'VG');
37
+ static readonly BN = new Country('Brunei', 'BN');
38
+ static readonly BG = new Country('Bulgaria', 'BG');
39
+ static readonly BF = new Country('Burkina Faso', 'BF');
40
+ static readonly BI = new Country('Burundi', 'BI');
41
+ static readonly KH = new Country('Cambodia', 'KH');
42
+ static readonly CM = new Country('Cameroon', 'CM');
43
+ static readonly CA = new Country('Canada', 'CA');
44
+ static readonly CV = new Country('Cape Verde', 'CV');
45
+ static readonly BQ = new Country('Caribbean Netherlands', 'BQ');
46
+ static readonly KY = new Country('Cayman Islands', 'KY');
47
+ static readonly CF = new Country('Central African Republic', 'CF');
48
+ static readonly TD = new Country('Chad', 'TD');
49
+ static readonly CL = new Country('Chile', 'CL');
50
+ static readonly CN = new Country('China', 'CN');
51
+ static readonly CX = new Country('Christmas Island', 'CX');
52
+ static readonly CC = new Country('Cocos (Keeling) Islands', 'CC');
53
+ static readonly CO = new Country('Colombia', 'CO');
54
+ static readonly KM = new Country('Comoros', 'KM');
55
+ static readonly CG = new Country('Congo - Brazzaville', 'CG');
56
+ static readonly CD = new Country('Congo - Kinshasa', 'CD');
57
+ static readonly CK = new Country('Cook Islands', 'CK');
58
+ static readonly CR = new Country('Costa Rica', 'CR');
59
+ static readonly CI = new Country('Côte d’Ivoire', 'CI');
60
+ static readonly HR = new Country('Croatia', 'HR');
61
+ static readonly CU = new Country('Cuba', 'CU');
62
+ static readonly CW = new Country('Curaçao', 'CW');
63
+ static readonly CY = new Country('Cyprus', 'CY');
64
+ static readonly CZ = new Country('Czechia', 'CZ');
65
+ static readonly DK = new Country('Denmark', 'DK');
66
+ static readonly DJ = new Country('Djibouti', 'DJ');
67
+ static readonly DM = new Country('Dominica', 'DM');
68
+ static readonly DO = new Country('Dominican Republic', 'DO');
69
+ static readonly EC = new Country('Ecuador', 'EC');
70
+ static readonly EG = new Country('Egypt', 'EG');
71
+ static readonly SV = new Country('El Salvador', 'SV');
72
+ static readonly GQ = new Country('Equatorial Guinea', 'GQ');
73
+ static readonly ER = new Country('Eritrea', 'ER');
74
+ static readonly EE = new Country('Estonia', 'EE');
75
+ static readonly SZ = new Country('Eswatini', 'SZ');
76
+ static readonly ET = new Country('Ethiopia', 'ET');
77
+ static readonly FK = new Country('Falkland Islands', 'FK');
78
+ static readonly FO = new Country('Faroe Islands', 'FO');
79
+ static readonly FJ = new Country('Fiji', 'FJ');
80
+ static readonly FI = new Country('Finland', 'FI');
81
+ static readonly FR = new Country('France', 'FR');
82
+ static readonly GF = new Country('French Guiana', 'GF');
83
+ static readonly PF = new Country('French Polynesia', 'PF');
84
+ static readonly TF = new Country('French Southern Territories', 'TF');
85
+ static readonly GA = new Country('Gabon', 'GA');
86
+ static readonly GM = new Country('Gambia', 'GM');
87
+ static readonly GE = new Country('Georgia', 'GE');
88
+ static readonly DE = new Country('Germany', 'DE');
89
+ static readonly GH = new Country('Ghana', 'GH');
90
+ static readonly GI = new Country('Gibraltar', 'GI');
91
+ static readonly GR = new Country('Greece', 'GR');
92
+ static readonly GL = new Country('Greenland', 'GL');
93
+ static readonly GD = new Country('Grenada', 'GD');
94
+ static readonly GP = new Country('Guadeloupe', 'GP');
95
+ static readonly GU = new Country('Guam', 'GU');
96
+ static readonly GT = new Country('Guatemala', 'GT');
97
+ static readonly GG = new Country('Guernsey', 'GG');
98
+ static readonly GN = new Country('Guinea', 'GN');
99
+ static readonly GW = new Country('Guinea-Bissau', 'GW');
100
+ static readonly GY = new Country('Guyana', 'GY');
101
+ static readonly HT = new Country('Haiti', 'HT');
102
+ static readonly HM = new Country('Heard & McDonald Islands', 'HM');
103
+ static readonly HN = new Country('Honduras', 'HN');
104
+ static readonly HK = new Country('Hong Kong SAR China', 'HK');
105
+ static readonly HU = new Country('Hungary', 'HU');
106
+ static readonly IS = new Country('Iceland', 'IS');
107
+ static readonly IN = new Country('India', 'IN');
108
+ static readonly ID = new Country('Indonesia', 'ID');
109
+ static readonly IR = new Country('Iran', 'IR');
110
+ static readonly IQ = new Country('Iraq', 'IQ');
111
+ static readonly IE = new Country('Ireland', 'IE');
112
+ static readonly IM = new Country('Isle of Man', 'IM');
113
+ static readonly IL = new Country('Israel', 'IL');
114
+ static readonly IT = new Country('Italy', 'IT');
115
+ static readonly JM = new Country('Jamaica', 'JM');
116
+ static readonly JP = new Country('Japan', 'JP');
117
+ static readonly JE = new Country('Jersey', 'JE');
118
+ static readonly JO = new Country('Jordan', 'JO');
119
+ static readonly KZ = new Country('Kazakhstan', 'KZ');
120
+ static readonly KE = new Country('Kenya', 'KE');
121
+ static readonly KI = new Country('Kiribati', 'KI');
122
+ static readonly KW = new Country('Kuwait', 'KW');
123
+ static readonly KG = new Country('Kyrgyzstan', 'KG');
124
+ static readonly LA = new Country('Laos', 'LA');
125
+ static readonly LV = new Country('Latvia', 'LV');
126
+ static readonly LB = new Country('Lebanon', 'LB');
127
+ static readonly LS = new Country('Lesotho', 'LS');
128
+ static readonly LR = new Country('Liberia', 'LR');
129
+ static readonly LY = new Country('Libya', 'LY');
130
+ static readonly LI = new Country('Liechtenstein', 'LI');
131
+ static readonly LT = new Country('Lithuania', 'LT');
132
+ static readonly LU = new Country('Luxembourg', 'LU');
133
+ static readonly MO = new Country('Macao SAR China', 'MO');
134
+ static readonly MG = new Country('Madagascar', 'MG');
135
+ static readonly MW = new Country('Malawi', 'MW');
136
+ static readonly MY = new Country('Malaysia', 'MY');
137
+ static readonly MV = new Country('Maldives', 'MV');
138
+ static readonly ML = new Country('Mali', 'ML');
139
+ static readonly MT = new Country('Malta', 'MT');
140
+ static readonly MH = new Country('Marshall Islands', 'MH');
141
+ static readonly MQ = new Country('Martinique', 'MQ');
142
+ static readonly MR = new Country('Mauritania', 'MR');
143
+ static readonly MU = new Country('Mauritius', 'MU');
144
+ static readonly YT = new Country('Mayotte', 'YT');
145
+ static readonly MX = new Country('Mexico', 'MX');
146
+ static readonly FM = new Country('Micronesia', 'FM');
147
+ static readonly MD = new Country('Moldova', 'MD');
148
+ static readonly MC = new Country('Monaco', 'MC');
149
+ static readonly MN = new Country('Mongolia', 'MN');
150
+ static readonly ME = new Country('Montenegro', 'ME');
151
+ static readonly MS = new Country('Montserrat', 'MS');
152
+ static readonly MA = new Country('Morocco', 'MA');
153
+ static readonly MZ = new Country('Mozambique', 'MZ');
154
+ static readonly MM = new Country('Myanmar (Burma)', 'MM');
155
+ static readonly NA = new Country('Namibia', 'NA');
156
+ static readonly NR = new Country('Nauru', 'NR');
157
+ static readonly NP = new Country('Nepal', 'NP');
158
+ static readonly NL = new Country('Netherlands', 'NL');
159
+ static readonly NC = new Country('New Caledonia', 'NC');
160
+ static readonly NZ = new Country('New Zealand', 'NZ');
161
+ static readonly NI = new Country('Nicaragua', 'NI');
162
+ static readonly NE = new Country('Niger', 'NE');
163
+ static readonly NG = new Country('Nigeria', 'NG');
164
+ static readonly NU = new Country('Niue', 'NU');
165
+ static readonly NF = new Country('Norfolk Island', 'NF');
166
+ static readonly KP = new Country('North Korea', 'KP');
167
+ static readonly MK = new Country('North Macedonia', 'MK');
168
+ static readonly MP = new Country('Northern Mariana Islands', 'MP');
169
+ static readonly NO = new Country('Norway', 'NO');
170
+ static readonly OM = new Country('Oman', 'OM');
171
+ static readonly PK = new Country('Pakistan', 'PK');
172
+ static readonly PW = new Country('Palau', 'PW');
173
+ static readonly PS = new Country('Palestinian Territories', 'PS');
174
+ static readonly PA = new Country('Panama', 'PA');
175
+ static readonly PG = new Country('Papua New Guinea', 'PG');
176
+ static readonly PY = new Country('Paraguay', 'PY');
177
+ static readonly PE = new Country('Peru', 'PE');
178
+ static readonly PH = new Country('Philippines', 'PH');
179
+ static readonly PN = new Country('Pitcairn Islands', 'PN');
180
+ static readonly PL = new Country('Poland', 'PL');
181
+ static readonly PT = new Country('Portugal', 'PT');
182
+ static readonly PR = new Country('Puerto Rico', 'PR');
183
+ static readonly QA = new Country('Qatar', 'QA');
184
+ static readonly RE = new Country('Réunion', 'RE');
185
+ static readonly RO = new Country('Romania', 'RO');
186
+ static readonly RU = new Country('Russia', 'RU');
187
+ static readonly RW = new Country('Rwanda', 'RW');
188
+ static readonly WS = new Country('Samoa', 'WS');
189
+ static readonly SM = new Country('San Marino', 'SM');
190
+ static readonly ST = new Country('São Tomé & Príncipe', 'ST');
191
+ static readonly SA = new Country('Saudi Arabia', 'SA');
192
+ static readonly SN = new Country('Senegal', 'SN');
193
+ static readonly RS = new Country('Serbia', 'RS');
194
+ static readonly SC = new Country('Seychelles', 'SC');
195
+ static readonly SL = new Country('Sierra Leone', 'SL');
196
+ static readonly SG = new Country('Singapore', 'SG');
197
+ static readonly SX = new Country('Sint Maarten', 'SX');
198
+ static readonly SK = new Country('Slovakia', 'SK');
199
+ static readonly SI = new Country('Slovenia', 'SI');
200
+ static readonly SB = new Country('Solomon Islands', 'SB');
201
+ static readonly SO = new Country('Somalia', 'SO');
202
+ static readonly ZA = new Country('South Africa', 'ZA');
203
+ static readonly GS = new Country('South Georgia & South Sandwich Islands', 'GS');
204
+ static readonly KR = new Country('South Korea', 'KR');
205
+ static readonly SS = new Country('South Sudan', 'SS');
206
+ static readonly ES = new Country('Spain', 'ES');
207
+ static readonly LK = new Country('Sri Lanka', 'LK');
208
+ static readonly BL = new Country('St. Barthélemy', 'BL');
209
+ static readonly SH = new Country('St. Helena', 'SH');
210
+ static readonly KN = new Country('St. Kitts & Nevis', 'KN');
211
+ static readonly LC = new Country('St. Lucia', 'LC');
212
+ static readonly MF = new Country('St. Martin', 'MF');
213
+ static readonly PM = new Country('St. Pierre & Miquelon', 'PM');
214
+ static readonly VC = new Country('St. Vincent & Grenadines', 'VC');
215
+ static readonly SD = new Country('Sudan', 'SD');
216
+ static readonly SR = new Country('Suriname', 'SR');
217
+ static readonly SJ = new Country('Svalbard & Jan Mayen', 'SJ');
218
+ static readonly SE = new Country('Sweden', 'SE');
219
+ static readonly CH = new Country('Switzerland', 'CH');
220
+ static readonly SY = new Country('Syria', 'SY');
221
+ static readonly TW = new Country('Taiwan', 'TW');
222
+ static readonly TJ = new Country('Tajikistan', 'TJ');
223
+ static readonly TZ = new Country('Tanzania', 'TZ');
224
+ static readonly TH = new Country('Thailand', 'TH');
225
+ static readonly TL = new Country('Timor-Leste', 'TL');
226
+ static readonly TG = new Country('Togo', 'TG');
227
+ static readonly TK = new Country('Tokelau', 'TK');
228
+ static readonly TO = new Country('Tonga', 'TO');
229
+ static readonly TT = new Country('Trinidad & Tobago', 'TT');
230
+ static readonly TN = new Country('Tunisia', 'TN');
231
+ static readonly TR = new Country('Turkey', 'TR');
232
+ static readonly TM = new Country('Turkmenistan', 'TM');
233
+ static readonly TC = new Country('Turks & Caicos Islands', 'TC');
234
+ static readonly TV = new Country('Tuvalu', 'TV');
235
+ static readonly UM = new Country('U.S. Outlying Islands', 'UM');
236
+ static readonly VI = new Country('U.S. Virgin Islands', 'VI');
237
+ static readonly UG = new Country('Uganda', 'UG');
238
+ static readonly UA = new Country('Ukraine', 'UA');
239
+ static readonly AE = new Country('United Arab Emirates', 'AE');
240
+ static readonly GB = new Country('United Kingdom', 'GB');
241
+ static readonly US = new Country('United States', 'US');
242
+ static readonly UY = new Country('Uruguay', 'UY');
243
+ static readonly UZ = new Country('Uzbekistan', 'UZ');
244
+ static readonly VU = new Country('Vanuatu', 'VU');
245
+ static readonly VA = new Country('Vatican City', 'VA');
246
+ static readonly VE = new Country('Venezuela', 'VE');
247
+ static readonly VN = new Country('Vietnam', 'VN');
248
+ static readonly WF = new Country('Wallis & Futuna', 'WF');
249
+ static readonly EH = new Country('Western Sahara', 'EH');
250
+ static readonly YE = new Country('Yemen', 'YE');
251
+ static readonly ZM = new Country('Zambia', 'ZM');
252
+ static readonly ZW = new Country('Zimbabwe', 'ZW');
253
+
254
+ constructor(name: string, id: string, private readonly lower = text(id).lower.toString()) {
255
+ super(name, id);
256
+ }
257
+
258
+ equals<E extends Enum | Id>(other: E): boolean {
259
+ return this.lower === text(isEnum(other) ? other.id : other).lower.toString();
260
+ }
261
+ }
@@ -0,0 +1,251 @@
1
+ {
2
+ "AF": "Afghanistan",
3
+ "AX": "\u00c5land Islands",
4
+ "AL": "Albania",
5
+ "DZ": "Algeria",
6
+ "AS": "American Samoa",
7
+ "AD": "Andorra",
8
+ "AO": "Angola",
9
+ "AI": "Anguilla",
10
+ "AQ": "Antarctica",
11
+ "AG": "Antigua & Barbuda",
12
+ "AR": "Argentina",
13
+ "AM": "Armenia",
14
+ "AW": "Aruba",
15
+ "AU": "Australia",
16
+ "AT": "Austria",
17
+ "AZ": "Azerbaijan",
18
+ "BS": "Bahamas",
19
+ "BH": "Bahrain",
20
+ "BD": "Bangladesh",
21
+ "BB": "Barbados",
22
+ "BY": "Belarus",
23
+ "BE": "Belgium",
24
+ "BZ": "Belize",
25
+ "BJ": "Benin",
26
+ "BM": "Bermuda",
27
+ "BT": "Bhutan",
28
+ "BO": "Bolivia",
29
+ "BA": "Bosnia & Herzegovina",
30
+ "BW": "Botswana",
31
+ "BV": "Bouvet Island",
32
+ "BR": "Brazil",
33
+ "IO": "British Indian Ocean Territory",
34
+ "VG": "British Virgin Islands",
35
+ "BN": "Brunei",
36
+ "BG": "Bulgaria",
37
+ "BF": "Burkina Faso",
38
+ "BI": "Burundi",
39
+ "KH": "Cambodia",
40
+ "CM": "Cameroon",
41
+ "CA": "Canada",
42
+ "CV": "Cape Verde",
43
+ "BQ": "Caribbean Netherlands",
44
+ "KY": "Cayman Islands",
45
+ "CF": "Central African Republic",
46
+ "TD": "Chad",
47
+ "CL": "Chile",
48
+ "CN": "China",
49
+ "CX": "Christmas Island",
50
+ "CC": "Cocos (Keeling) Islands",
51
+ "CO": "Colombia",
52
+ "KM": "Comoros",
53
+ "CG": "Congo - Brazzaville",
54
+ "CD": "Congo - Kinshasa",
55
+ "CK": "Cook Islands",
56
+ "CR": "Costa Rica",
57
+ "CI": "C\u00f4te d\u2019Ivoire",
58
+ "HR": "Croatia",
59
+ "CU": "Cuba",
60
+ "CW": "Cura\u00e7ao",
61
+ "CY": "Cyprus",
62
+ "CZ": "Czechia",
63
+ "DK": "Denmark",
64
+ "DJ": "Djibouti",
65
+ "DM": "Dominica",
66
+ "DO": "Dominican Republic",
67
+ "EC": "Ecuador",
68
+ "EG": "Egypt",
69
+ "SV": "El Salvador",
70
+ "GQ": "Equatorial Guinea",
71
+ "ER": "Eritrea",
72
+ "EE": "Estonia",
73
+ "SZ": "Eswatini",
74
+ "ET": "Ethiopia",
75
+ "FK": "Falkland Islands",
76
+ "FO": "Faroe Islands",
77
+ "FJ": "Fiji",
78
+ "FI": "Finland",
79
+ "FR": "France",
80
+ "GF": "French Guiana",
81
+ "PF": "French Polynesia",
82
+ "TF": "French Southern Territories",
83
+ "GA": "Gabon",
84
+ "GM": "Gambia",
85
+ "GE": "Georgia",
86
+ "DE": "Germany",
87
+ "GH": "Ghana",
88
+ "GI": "Gibraltar",
89
+ "GR": "Greece",
90
+ "GL": "Greenland",
91
+ "GD": "Grenada",
92
+ "GP": "Guadeloupe",
93
+ "GU": "Guam",
94
+ "GT": "Guatemala",
95
+ "GG": "Guernsey",
96
+ "GN": "Guinea",
97
+ "GW": "Guinea-Bissau",
98
+ "GY": "Guyana",
99
+ "HT": "Haiti",
100
+ "HM": "Heard & McDonald Islands",
101
+ "HN": "Honduras",
102
+ "HK": "Hong Kong SAR China",
103
+ "HU": "Hungary",
104
+ "IS": "Iceland",
105
+ "IN": "India",
106
+ "ID": "Indonesia",
107
+ "IR": "Iran",
108
+ "IQ": "Iraq",
109
+ "IE": "Ireland",
110
+ "IM": "Isle of Man",
111
+ "IL": "Israel",
112
+ "IT": "Italy",
113
+ "JM": "Jamaica",
114
+ "JP": "Japan",
115
+ "JE": "Jersey",
116
+ "JO": "Jordan",
117
+ "KZ": "Kazakhstan",
118
+ "KE": "Kenya",
119
+ "KI": "Kiribati",
120
+ "KW": "Kuwait",
121
+ "KG": "Kyrgyzstan",
122
+ "LA": "Laos",
123
+ "LV": "Latvia",
124
+ "LB": "Lebanon",
125
+ "LS": "Lesotho",
126
+ "LR": "Liberia",
127
+ "LY": "Libya",
128
+ "LI": "Liechtenstein",
129
+ "LT": "Lithuania",
130
+ "LU": "Luxembourg",
131
+ "MO": "Macao SAR China",
132
+ "MG": "Madagascar",
133
+ "MW": "Malawi",
134
+ "MY": "Malaysia",
135
+ "MV": "Maldives",
136
+ "ML": "Mali",
137
+ "MT": "Malta",
138
+ "MH": "Marshall Islands",
139
+ "MQ": "Martinique",
140
+ "MR": "Mauritania",
141
+ "MU": "Mauritius",
142
+ "YT": "Mayotte",
143
+ "MX": "Mexico",
144
+ "FM": "Micronesia",
145
+ "MD": "Moldova",
146
+ "MC": "Monaco",
147
+ "MN": "Mongolia",
148
+ "ME": "Montenegro",
149
+ "MS": "Montserrat",
150
+ "MA": "Morocco",
151
+ "MZ": "Mozambique",
152
+ "MM": "Myanmar (Burma)",
153
+ "NA": "Namibia",
154
+ "NR": "Nauru",
155
+ "NP": "Nepal",
156
+ "NL": "Netherlands",
157
+ "NC": "New Caledonia",
158
+ "NZ": "New Zealand",
159
+ "NI": "Nicaragua",
160
+ "NE": "Niger",
161
+ "NG": "Nigeria",
162
+ "NU": "Niue",
163
+ "NF": "Norfolk Island",
164
+ "KP": "North Korea",
165
+ "MK": "North Macedonia",
166
+ "MP": "Northern Mariana Islands",
167
+ "NO": "Norway",
168
+ "OM": "Oman",
169
+ "PK": "Pakistan",
170
+ "PW": "Palau",
171
+ "PS": "Palestinian Territories",
172
+ "PA": "Panama",
173
+ "PG": "Papua New Guinea",
174
+ "PY": "Paraguay",
175
+ "PE": "Peru",
176
+ "PH": "Philippines",
177
+ "PN": "Pitcairn Islands",
178
+ "PL": "Poland",
179
+ "PT": "Portugal",
180
+ "PR": "Puerto Rico",
181
+ "QA": "Qatar",
182
+ "RE": "R\u00e9union",
183
+ "RO": "Romania",
184
+ "RU": "Russia",
185
+ "RW": "Rwanda",
186
+ "WS": "Samoa",
187
+ "SM": "San Marino",
188
+ "ST": "S\u00e3o Tom\u00e9 & Pr\u00edncipe",
189
+ "SA": "Saudi Arabia",
190
+ "SN": "Senegal",
191
+ "RS": "Serbia",
192
+ "SC": "Seychelles",
193
+ "SL": "Sierra Leone",
194
+ "SG": "Singapore",
195
+ "SX": "Sint Maarten",
196
+ "SK": "Slovakia",
197
+ "SI": "Slovenia",
198
+ "SB": "Solomon Islands",
199
+ "SO": "Somalia",
200
+ "ZA": "South Africa",
201
+ "GS": "South Georgia & South Sandwich Islands",
202
+ "KR": "South Korea",
203
+ "SS": "South Sudan",
204
+ "ES": "Spain",
205
+ "LK": "Sri Lanka",
206
+ "BL": "St. Barth\u00e9lemy",
207
+ "SH": "St. Helena",
208
+ "KN": "St. Kitts & Nevis",
209
+ "LC": "St. Lucia",
210
+ "MF": "St. Martin",
211
+ "PM": "St. Pierre & Miquelon",
212
+ "VC": "St. Vincent & Grenadines",
213
+ "SD": "Sudan",
214
+ "SR": "Suriname",
215
+ "SJ": "Svalbard & Jan Mayen",
216
+ "SE": "Sweden",
217
+ "CH": "Switzerland",
218
+ "SY": "Syria",
219
+ "TW": "Taiwan",
220
+ "TJ": "Tajikistan",
221
+ "TZ": "Tanzania",
222
+ "TH": "Thailand",
223
+ "TL": "Timor-Leste",
224
+ "TG": "Togo",
225
+ "TK": "Tokelau",
226
+ "TO": "Tonga",
227
+ "TT": "Trinidad & Tobago",
228
+ "TN": "Tunisia",
229
+ "TR": "Turkey",
230
+ "TM": "Turkmenistan",
231
+ "TC": "Turks & Caicos Islands",
232
+ "TV": "Tuvalu",
233
+ "UM": "U.S. Outlying Islands",
234
+ "VI": "U.S. Virgin Islands",
235
+ "UG": "Uganda",
236
+ "UA": "Ukraine",
237
+ "AE": "United Arab Emirates",
238
+ "GB": "United Kingdom",
239
+ "US": "United States",
240
+ "UY": "Uruguay",
241
+ "UZ": "Uzbekistan",
242
+ "VU": "Vanuatu",
243
+ "VA": "Vatican City",
244
+ "VE": "Venezuela",
245
+ "VN": "Vietnam",
246
+ "WF": "Wallis & Futuna",
247
+ "EH": "Western Sahara",
248
+ "YE": "Yemen",
249
+ "ZM": "Zambia",
250
+ "ZW": "Zimbabwe"
251
+ }
@@ -1,2 +1,3 @@
1
+ export * from './Country';
1
2
  export * from './Currency';
2
3
  export * from './Locale';
package/src/types/Enum.ts CHANGED
@@ -24,14 +24,14 @@ export abstract class Enum implements Validatable {
24
24
  return (
25
25
  meta(this)
26
26
  .values<E>()
27
- .first((e: unknown) => isEnum(e) && e.id === id) ?? ofGet(alt)
27
+ .first((e: unknown) => isEnum(e) && e.equals(id)) ?? ofGet(alt)
28
28
  );
29
29
  }
30
30
 
31
31
  static byIds<T extends Enum>(ids?: Id[]): List<T> {
32
32
  return meta(this)
33
33
  .values<T>()
34
- .filter((e: unknown) => isEnum(e) && ids?.includes(e.id));
34
+ .filter((e: unknown) => isEnum(e) && ids?.some(i => e.equals(i)));
35
35
  }
36
36
 
37
37
  static filter<E extends Enum>(p: (value: E, index: number, array: E[]) => unknown, params?: unknown): List<E> {