namirasoft-core 1.0.0

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 (82) hide show
  1. package/dist/BaseDatabaseRow.d.ts +6 -0
  2. package/dist/BaseDatabaseRow.js +3 -0
  3. package/dist/BaseDatabaseRow.js.map +1 -0
  4. package/dist/BaseServer.d.ts +34 -0
  5. package/dist/BaseServer.js +83 -0
  6. package/dist/BaseServer.js.map +1 -0
  7. package/dist/ConvertService.d.ts +13 -0
  8. package/dist/ConvertService.js +64 -0
  9. package/dist/ConvertService.js.map +1 -0
  10. package/dist/Countries.d.ts +242 -0
  11. package/dist/Countries.js +487 -0
  12. package/dist/Countries.js.map +1 -0
  13. package/dist/Country.d.ts +11 -0
  14. package/dist/Country.js +24 -0
  15. package/dist/Country.js.map +1 -0
  16. package/dist/CountryOperation.d.ts +9 -0
  17. package/dist/CountryOperation.js +93 -0
  18. package/dist/CountryOperation.js.map +1 -0
  19. package/dist/ErrorOperation.d.ts +5 -0
  20. package/dist/ErrorOperation.js +15 -0
  21. package/dist/ErrorOperation.js.map +1 -0
  22. package/dist/HTTPError.d.ts +4 -0
  23. package/dist/HTTPError.js +11 -0
  24. package/dist/HTTPError.js.map +1 -0
  25. package/dist/IStorage.d.ts +5 -0
  26. package/dist/IStorage.js +7 -0
  27. package/dist/IStorage.js.map +1 -0
  28. package/dist/IStorageLocal.d.ts +6 -0
  29. package/dist/IStorageLocal.js +18 -0
  30. package/dist/IStorageLocal.js.map +1 -0
  31. package/dist/IStorageMemory.d.ts +9 -0
  32. package/dist/IStorageMemory.js +19 -0
  33. package/dist/IStorageMemory.js.map +1 -0
  34. package/dist/ObjectService.d.ts +7 -0
  35. package/dist/ObjectService.js +22 -0
  36. package/dist/ObjectService.js.map +1 -0
  37. package/dist/ParsedNameValue.d.ts +1 -0
  38. package/dist/ParsedNameValue.js +3 -0
  39. package/dist/ParsedNameValue.js.map +1 -0
  40. package/dist/PhoneOperation.d.ts +3 -0
  41. package/dist/PhoneOperation.js +34 -0
  42. package/dist/PhoneOperation.js.map +1 -0
  43. package/dist/SignOperation.d.ts +4 -0
  44. package/dist/SignOperation.js +20 -0
  45. package/dist/SignOperation.js.map +1 -0
  46. package/dist/StringOperation.d.ts +3 -0
  47. package/dist/StringOperation.js +13 -0
  48. package/dist/StringOperation.js.map +1 -0
  49. package/dist/TimeOperation.d.ts +58 -0
  50. package/dist/TimeOperation.js +224 -0
  51. package/dist/TimeOperation.js.map +1 -0
  52. package/dist/URLOperation.d.ts +13 -0
  53. package/dist/URLOperation.js +48 -0
  54. package/dist/URLOperation.js.map +1 -0
  55. package/dist/VersionOperation.d.ts +8 -0
  56. package/dist/VersionOperation.js +40 -0
  57. package/dist/VersionOperation.js.map +1 -0
  58. package/dist/index.d.ts +19 -0
  59. package/dist/index.js +36 -0
  60. package/dist/index.js.map +1 -0
  61. package/package.json +17 -0
  62. package/src/BaseDatabaseRow.ts +7 -0
  63. package/src/BaseServer.ts +73 -0
  64. package/src/ConvertService.ts +67 -0
  65. package/src/Countries.ts +487 -0
  66. package/src/Country.ts +22 -0
  67. package/src/CountryOperation.ts +99 -0
  68. package/src/ErrorOperation.ts +14 -0
  69. package/src/HTTPError.ts +9 -0
  70. package/src/IStorage.ts +6 -0
  71. package/src/IStorageLocal.ts +17 -0
  72. package/src/IStorageMemory.ts +18 -0
  73. package/src/ObjectService.ts +24 -0
  74. package/src/ParsedNameValue.ts +1 -0
  75. package/src/PhoneOperation.ts +9 -0
  76. package/src/SignOperation.ts +15 -0
  77. package/src/StringOperation.ts +11 -0
  78. package/src/TimeOperation.ts +263 -0
  79. package/src/URLOperation.ts +55 -0
  80. package/src/VersionOperation.ts +47 -0
  81. package/src/index.ts +19 -0
  82. package/tsconfig.json +30 -0
@@ -0,0 +1,6 @@
1
+ export type BaseDatabaseRow = {
2
+ id: number;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+ deletedAt: string;
6
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BaseDatabaseRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseDatabaseRow.js","sourceRoot":"","sources":["../src/BaseDatabaseRow.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
1
+ import { AxiosRequestConfig, AxiosResponse } from "axios";
2
+ import { ParsedNameValue } from "./ParsedNameValue";
3
+ export declare abstract class BaseServer {
4
+ protected domain: string;
5
+ constructor(domain: string);
6
+ protected abstract onBeforeRequest<ReqData = any>(url: string, config?: AxiosRequestConfig<ReqData>): void;
7
+ protected abstract onAfterRequest<ResData = any>(url: string, response: AxiosResponse<ResData>): void;
8
+ protected abstract onError(error: Error): void;
9
+ private request;
10
+ protected get<ResData = any, ReqData = any>(sub: string, query?: {
11
+ [name: string]: ParsedNameValue;
12
+ }, config?: AxiosRequestConfig<ReqData>): Promise<{
13
+ response: AxiosResponse<ResData>;
14
+ data: ResData;
15
+ }>;
16
+ protected post<ResData = any, ReqData = any>(sub: string, query?: {
17
+ [name: string]: ParsedNameValue;
18
+ }, data?: ReqData, config?: AxiosRequestConfig<ReqData>, sign_header?: string, sign_key?: string): Promise<{
19
+ response: AxiosResponse<ResData>;
20
+ data: ResData;
21
+ }>;
22
+ protected put<ResData = any, ReqData = any>(sub: string, query?: {
23
+ [name: string]: ParsedNameValue;
24
+ }, data?: ReqData, config?: AxiosRequestConfig<ReqData>, sign_header?: string, sign_key?: string): Promise<{
25
+ response: AxiosResponse<ResData>;
26
+ data: ResData;
27
+ }>;
28
+ protected delete<ResData = any, ReqData = any>(sub: string, query?: {
29
+ [name: string]: ParsedNameValue;
30
+ }, config?: AxiosRequestConfig<ReqData>, sign_header?: string, sign_key?: string): Promise<{
31
+ response: AxiosResponse<ResData>;
32
+ data: ResData;
33
+ }>;
34
+ }
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.BaseServer = void 0;
16
+ const axios_1 = __importDefault(require("axios"));
17
+ const SignOperation_1 = require("./SignOperation");
18
+ const URLOperation_1 = require("./URLOperation");
19
+ const ErrorOperation_1 = require("./ErrorOperation");
20
+ class BaseServer {
21
+ constructor(domain) {
22
+ this.domain = "";
23
+ this.domain = domain;
24
+ }
25
+ request(onRequest, sub, query, data, config, sign_header, sign_key) {
26
+ var _a;
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ let url = URLOperation_1.URLOperation.getLink(this.domain, sub, query);
29
+ if (!config)
30
+ config = { headers: {} };
31
+ if (sign_header)
32
+ if (sign_key)
33
+ if (data)
34
+ if (config === null || config === void 0 ? void 0 : config.headers)
35
+ config.headers[sign_header] = SignOperation_1.SignOperation.sign(sign_key, data);
36
+ try {
37
+ this.onBeforeRequest(url, config);
38
+ let response = yield onRequest(url, data, config);
39
+ this.onAfterRequest(url, response);
40
+ return { response, data: response.data };
41
+ }
42
+ catch (error) {
43
+ if (error instanceof Error) {
44
+ this.onError(error);
45
+ if (axios_1.default.isAxiosError(error))
46
+ if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data)
47
+ ErrorOperation_1.ErrorOperation.throwHTTP(error.response.status, error.response.data);
48
+ }
49
+ throw error;
50
+ }
51
+ });
52
+ }
53
+ get(sub, query, config) {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ return yield this.request((url, _, config) => __awaiter(this, void 0, void 0, function* () {
56
+ return yield axios_1.default.get(url, config);
57
+ }), sub, query, undefined, config);
58
+ });
59
+ }
60
+ post(sub, query, data, config, sign_header, sign_key) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ return yield this.request((url, data, config) => __awaiter(this, void 0, void 0, function* () {
63
+ return yield axios_1.default.post(url, data, config);
64
+ }), sub, query, data, config, sign_header, sign_key);
65
+ });
66
+ }
67
+ put(sub, query, data, config, sign_header, sign_key) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ return yield this.request((url, data, config) => __awaiter(this, void 0, void 0, function* () {
70
+ return yield axios_1.default.put(url, data, config);
71
+ }), sub, query, data, config, sign_header, sign_key);
72
+ });
73
+ }
74
+ delete(sub, query, config, sign_header, sign_key) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ return yield this.request((url, _, config) => __awaiter(this, void 0, void 0, function* () {
77
+ return yield axios_1.default.delete(url, config);
78
+ }), sub, query, undefined, config, sign_header, sign_key);
79
+ });
80
+ }
81
+ }
82
+ exports.BaseServer = BaseServer;
83
+ //# sourceMappingURL=BaseServer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseServer.js","sourceRoot":"","sources":["../src/BaseServer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAAiE;AACjE,mDAAgD;AAChD,iDAA8C;AAC9C,qDAAkD;AAGlD,MAAsB,UAAU;IAG5B,YAAY,MAAc;QADhB,WAAM,GAAW,EAAE,CAAC;QAG1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAIa,OAAO,CAA+B,SAA6G,EAAE,GAAW,EAAE,KAA2C,EAAE,IAAc,EAAE,MAAoC,EAAE,WAAoB,EAAE,QAAiB;;;YAEtT,IAAI,GAAG,GAAW,2BAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,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CAAC,CAAC;QAC7D,CAAC;KAAA;CACJ;AAlED,gCAkEC"}
@@ -0,0 +1,13 @@
1
+ export declare abstract class ConvertService {
2
+ abstract getNullString(): string | null;
3
+ getString(_default?: string): string;
4
+ getNullInt(): number | null;
5
+ getInt(_default?: number): number;
6
+ getNullFloat(): number | null;
7
+ getFloat(_default?: number): number;
8
+ getNullBoolean(): boolean | null;
9
+ getBoolean(_default?: boolean): boolean;
10
+ getStringArray(delimiter?: string): string[];
11
+ getIntArray(delimiter?: string): number[];
12
+ getFloatArray(delimiter?: string): number[];
13
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConvertService = void 0;
4
+ class ConvertService {
5
+ getString(_default = "") {
6
+ var _a;
7
+ return (_a = this.getNullString()) !== null && _a !== void 0 ? _a : _default;
8
+ }
9
+ getNullInt() {
10
+ let str = this.getString();
11
+ if (str == null)
12
+ return null;
13
+ let ans = parseInt(str);
14
+ if (isNaN(ans))
15
+ return null;
16
+ return ans;
17
+ }
18
+ getInt(_default = 0) {
19
+ var _a;
20
+ return (_a = this.getNullInt()) !== null && _a !== void 0 ? _a : _default;
21
+ }
22
+ getNullFloat() {
23
+ let str = this.getString();
24
+ if (str == null)
25
+ return null;
26
+ let ans = parseFloat(str);
27
+ if (isNaN(ans))
28
+ return null;
29
+ return ans;
30
+ }
31
+ getFloat(_default = 0) {
32
+ var _a;
33
+ return (_a = this.getNullFloat()) !== null && _a !== void 0 ? _a : _default;
34
+ }
35
+ getNullBoolean() {
36
+ let str = this.getString();
37
+ if (str == null)
38
+ return null;
39
+ let ans = str.toLowerCase();
40
+ if (ans == "true")
41
+ return true;
42
+ if (ans == "false")
43
+ return false;
44
+ return null;
45
+ }
46
+ getBoolean(_default = false) {
47
+ var _a;
48
+ return (_a = this.getNullBoolean()) !== null && _a !== void 0 ? _a : _default;
49
+ }
50
+ getStringArray(delimiter = ",") {
51
+ let ans = this.getString("").split(delimiter);
52
+ ans = ans.map(v => `${v}`);
53
+ ans = ans.filter(x => x);
54
+ return ans;
55
+ }
56
+ getIntArray(delimiter = ",") {
57
+ return this.getStringArray(delimiter).map(x => parseInt(x)).filter(x => !isNaN(x));
58
+ }
59
+ getFloatArray(delimiter = ",") {
60
+ return this.getStringArray(delimiter).map(x => parseFloat(x)).filter(x => !isNaN(x));
61
+ }
62
+ }
63
+ exports.ConvertService = ConvertService;
64
+ //# sourceMappingURL=ConvertService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConvertService.js","sourceRoot":"","sources":["../src/ConvertService.ts"],"names":[],"mappings":";;;AAAA,MAAsB,cAAc;IAGhC,SAAS,CAAC,WAAmB,EAAE;;QAE3B,OAAO,MAAA,IAAI,CAAC,aAAa,EAAE,mCAAI,QAAQ,CAAC;IAC5C,CAAC;IACD,UAAU;QAEN,IAAI,GAAG,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAC3B,IAAI,GAAG,IAAI,IAAI;YACX,OAAO,IAAI,CAAC;QAChB,IAAI,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;QACxB,IAAI,KAAK,CAAC,GAAG,CAAC;YACV,OAAO,IAAI,CAAC;QAChB,OAAO,GAAG,CAAC;IACf,CAAC;IACD,MAAM,CAAC,WAAmB,CAAC;;QAEvB,OAAO,MAAA,IAAI,CAAC,UAAU,EAAE,mCAAI,QAAQ,CAAC;IACzC,CAAC;IACD,YAAY;QAER,IAAI,GAAG,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAC3B,IAAI,GAAG,IAAI,IAAI;YACX,OAAO,IAAI,CAAC;QAChB,IAAI,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,KAAK,CAAC,GAAG,CAAC;YACV,OAAO,IAAI,CAAC;QAChB,OAAO,GAAG,CAAC;IACf,CAAC;IACD,QAAQ,CAAC,WAAmB,CAAC;;QAEzB,OAAO,MAAA,IAAI,CAAC,YAAY,EAA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C,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACzF,CAAC;CACJ;AAlED,wCAkEC"}
@@ -0,0 +1,242 @@
1
+ import { Country } from "./Country";
2
+ export declare class Countries {
3
+ static Afghanistan: Country;
4
+ static Albania: Country;
5
+ static Algeria: Country;
6
+ static American_Samoa: Country;
7
+ static Andorra: Country;
8
+ static Angola: Country;
9
+ static Anguilla: Country;
10
+ static Antarctica: Country;
11
+ static Antigua_and_Barbuda: Country;
12
+ static Argentina: Country;
13
+ static Armenia: Country;
14
+ static Aruba: Country;
15
+ static Australia: Country;
16
+ static Austria: Country;
17
+ static Azerbaijan: Country;
18
+ static Bahamas: Country;
19
+ static Bahrain: Country;
20
+ static Bangladesh: Country;
21
+ static Barbados: Country;
22
+ static Belarus: Country;
23
+ static Belgium: Country;
24
+ static Belize: Country;
25
+ static Benin: Country;
26
+ static Bermuda: Country;
27
+ static Bhutan: Country;
28
+ static Bolivia: Country;
29
+ static Bosnia_and_Herzegovina: Country;
30
+ static Botswana: Country;
31
+ static Brazil: Country;
32
+ static British_Virgin_Islands: Country;
33
+ static Brunei: Country;
34
+ static Bulgaria: Country;
35
+ static Burkina_Faso: Country;
36
+ static Burma_Myanmar: Country;
37
+ static Burundi: Country;
38
+ static Cambodia: Country;
39
+ static Cameroon: Country;
40
+ static Canada: Country;
41
+ static Cape_Verde: Country;
42
+ static Cayman_Islands: Country;
43
+ static Central_African_Republic: Country;
44
+ static Chad: Country;
45
+ static Chile: Country;
46
+ static China: Country;
47
+ static Christmas_Island: Country;
48
+ static Cocos_Keeling_Islands: Country;
49
+ static Colombia: Country;
50
+ static Comoros: Country;
51
+ static Cook_Islands: Country;
52
+ static Costa_Rica: Country;
53
+ static Croatia: Country;
54
+ static Cuba: Country;
55
+ static Curacao: Country;
56
+ static Cyprus: Country;
57
+ static Czech_Republic: Country;
58
+ static Democratic_Republic_of_the_Congo: Country;
59
+ static Denmark: Country;
60
+ static Djibouti: Country;
61
+ static Dominica: Country;
62
+ static Dominican_Republic: Country;
63
+ static Ecuador: Country;
64
+ static Egypt: Country;
65
+ static El_Salvador: Country;
66
+ static Equatorial_Guinea: Country;
67
+ static Eritrea: Country;
68
+ static Estonia: Country;
69
+ static Ethiopia: Country;
70
+ static Falkland_Islands: Country;
71
+ static Faroe_Islands: Country;
72
+ static Fiji: Country;
73
+ static Finland: Country;
74
+ static France: Country;
75
+ static French_Polynesia: Country;
76
+ static French_Guiana: Country;
77
+ static Gabon: Country;
78
+ static Gambia: Country;
79
+ static Georgia: Country;
80
+ static Germany: Country;
81
+ static Ghana: Country;
82
+ static Gibraltar: Country;
83
+ static Greece: Country;
84
+ static Greenland: Country;
85
+ static Grenada: Country;
86
+ static Guam: Country;
87
+ static Guadeloupe: Country;
88
+ static Guatemala: Country;
89
+ static Guinea: Country;
90
+ static Guinea_Bissau: Country;
91
+ static Guyana: Country;
92
+ static Haiti: Country;
93
+ static Holy_See_Vatican_City: Country;
94
+ static Honduras: Country;
95
+ static Hong_Kong: Country;
96
+ static Hungary: Country;
97
+ static Iceland: Country;
98
+ static India: Country;
99
+ static Indonesia: Country;
100
+ static Iran: Country;
101
+ static Iraq: Country;
102
+ static Ireland: Country;
103
+ static Isle_of_Man: Country;
104
+ static Israel: Country;
105
+ static Italy: Country;
106
+ static Ivory_Coast: Country;
107
+ static Jamaica: Country;
108
+ static Japan: Country;
109
+ static Jordan: Country;
110
+ static Kazakhstan: Country;
111
+ static Kenya: Country;
112
+ static Kiribati: Country;
113
+ static Kosovo: Country;
114
+ static Kuwait: Country;
115
+ static Kyrgyzstan: Country;
116
+ static Laos: Country;
117
+ static Latvia: Country;
118
+ static Lebanon: Country;
119
+ static Lesotho: Country;
120
+ static Liberia: Country;
121
+ static Libya: Country;
122
+ static Liechtenstein: Country;
123
+ static Lithuania: Country;
124
+ static Luxembourg: Country;
125
+ static Macau: Country;
126
+ static Macedonia: Country;
127
+ static Madagascar: Country;
128
+ static Malawi: Country;
129
+ static Malaysia: Country;
130
+ static Maldives: Country;
131
+ static Mali: Country;
132
+ static Malta: Country;
133
+ static Marshall_Islands: Country;
134
+ static Martinique: Country;
135
+ static Mauritania: Country;
136
+ static Mauritius: Country;
137
+ static Mayotte: Country;
138
+ static Mexico: Country;
139
+ static Micronesia: Country;
140
+ static Moldova: Country;
141
+ static Monaco: Country;
142
+ static Mongolia: Country;
143
+ static Montenegro: Country;
144
+ static Montserrat: Country;
145
+ static Morocco: Country;
146
+ static Mozambique: Country;
147
+ static Namibia: Country;
148
+ static Nauru: Country;
149
+ static Nepal: Country;
150
+ static Netherlands: Country;
151
+ static Netherlands_Antilles: Country;
152
+ static Bonaire_Sint_Eustatius_and_Saba: Country;
153
+ static New_Caledonia: Country;
154
+ static New_Zealand: Country;
155
+ static Nicaragua: Country;
156
+ static Niger: Country;
157
+ static Nigeria: Country;
158
+ static Niue: Country;
159
+ static Norfolk_Island: Country;
160
+ static North_Korea: Country;
161
+ static Northern_Mariana_Islands: Country;
162
+ static Norway: Country;
163
+ static Oman: Country;
164
+ static Pakistan: Country;
165
+ static Palau: Country;
166
+ static Panama: Country;
167
+ static Papua_New_Guinea: Country;
168
+ static Paraguay: Country;
169
+ static Peru: Country;
170
+ static Philippines: Country;
171
+ static Pitcairn_Islands: Country;
172
+ static Poland: Country;
173
+ static Portugal: Country;
174
+ static Puerto_Rico: Country;
175
+ static Qatar: Country;
176
+ static Republic_of_the_Congo: Country;
177
+ static Réunion: Country;
178
+ static Romania: Country;
179
+ static Russia: Country;
180
+ static Rwanda: Country;
181
+ static Saint_Barthelemy: Country;
182
+ static Saint_Helena: Country;
183
+ static Saint_Kitts_and_Nevis: Country;
184
+ static Saint_Lucia: Country;
185
+ static Saint_Martin: Country;
186
+ static Saint_Pierre_and_Miquelon: Country;
187
+ static Saint_Vincent_and_the_Grenadines: Country;
188
+ static Samoa: Country;
189
+ static San_Marino: Country;
190
+ static Sao_Tome_and_Principe: Country;
191
+ static Saudi_Arabia: Country;
192
+ static Senegal: Country;
193
+ static Serbia: Country;
194
+ static Seychelles: Country;
195
+ static Sierra_Leone: Country;
196
+ static Singapore: Country;
197
+ static Slovakia: Country;
198
+ static Slovenia: Country;
199
+ static Solomon_Islands: Country;
200
+ static Somalia: Country;
201
+ static South_Africa: Country;
202
+ static South_Korea: Country;
203
+ static Spain: Country;
204
+ static Sri_Lanka: Country;
205
+ static Sudan: Country;
206
+ static Suriname: Country;
207
+ static Swaziland: Country;
208
+ static Sweden: Country;
209
+ static Switzerland: Country;
210
+ static Syria: Country;
211
+ static Taiwan: Country;
212
+ static Tajikistan: Country;
213
+ static Tanzania: Country;
214
+ static Thailand: Country;
215
+ static Timor_Leste: Country;
216
+ static Togo: Country;
217
+ static Tokelau: Country;
218
+ static Tonga: Country;
219
+ static Trinidad_and_Tobago: Country;
220
+ static Tunisia: Country;
221
+ static Turkey: Country;
222
+ static Turkmenistan: Country;
223
+ static Turks_and_Caicos_Islands: Country;
224
+ static Tuvalu: Country;
225
+ static Uganda: Country;
226
+ static Ukraine: Country;
227
+ static United_Arab_Emirates: Country;
228
+ static United_Kingdom: Country;
229
+ static United_States: Country;
230
+ static Uruguay: Country;
231
+ static US_Virgin_Islands: Country;
232
+ static Uzbekistan: Country;
233
+ static Vanuatu: Country;
234
+ static Venezuela: Country;
235
+ static Vietnam: Country;
236
+ static Wallis_and_Futuna: Country;
237
+ static West_Bank: Country;
238
+ static Yemen: Country;
239
+ static Zambia: Country;
240
+ static Zimbabwe: Country;
241
+ static getAll(): Country[];
242
+ }