1 | export declare type URLProtocol = 'http' | 'https' | 'ftp' | string;
|
2 | export declare type UUIDVersion = 3 | 4 | 5 | '3' | '4' | '5' | 'all';
|
3 | export declare type IPVersion = 4 | 6;
|
4 | export declare type AlphaLocale = 'ar' | 'ar-AE' | 'ar-BH' | 'ar-DZ' | 'ar-EG' | 'ar-IQ' | 'ar-JO' | 'ar-KW' | 'ar-LB' | 'ar-LY' | 'ar-MA' | 'ar-QA' | 'ar-QM' | 'ar-SA' | 'ar-SD' | 'ar-SY' | 'ar-TN' | 'ar-YE' | 'az-AZ' | 'bg-BG' | 'cs-CZ' | 'da-DK' | 'de-DE' | 'el-GR' | 'en-AU' | 'en-GB' | 'en-HK' | 'en-IN' | 'en-NZ' | 'en-US' | 'en-ZA' | 'en-ZM' | 'es-ES' | 'fa-AF' | 'fa-IR' | 'fr-FR' | 'he' | 'hu-HU' | 'id-ID' | 'it-IT' | 'ku-IQ' | 'nb-NO' | 'nl-NL' | 'nn-NO' | 'pl-PL' | 'pt-BR' | 'pt-PT' | 'ru-RU' | 'sk-SK' | 'sl-SI' | 'sr-RS' | 'sr-RS@latin' | 'sv-SE' | 'th-TH' | 'tr-TR' | 'uk-UA' | 'vi-VN';
|
5 | export declare type AlphanumericLocale = 'ar' | 'ar-AE' | 'ar-BH' | 'ar-DZ' | 'ar-EG' | 'ar-IQ' | 'ar-JO' | 'ar-KW' | 'ar-LB' | 'ar-LY' | 'ar-MA' | 'ar-QA' | 'ar-QM' | 'ar-SA' | 'ar-SD' | 'ar-SY' | 'ar-TN' | 'ar-YE' | 'az-AZ' | 'bg-BG' | 'cs-CZ' | 'da-DK' | 'de-DE' | 'el-GR' | 'en-AU' | 'en-GB' | 'en-HK' | 'en-IN' | 'en-NZ' | 'en-US' | 'en-ZA' | 'en-ZM' | 'es-ES' | 'fa-AF' | 'fa-IR' | 'fr-FR' | 'fr-BE' | 'he' | 'hu-HU' | 'it-IT' | 'id-ID' | 'ku-IQ' | 'nb-NO' | 'nl-BE' | 'nl-NL' | 'nn-NO' | 'pl-PL' | 'pt-BR' | 'pt-PT' | 'ru-RU' | 'sk-SK' | 'sl-SI' | 'sr-RS' | 'sr-RS@latin' | 'sv-SE' | 'th-TH' | 'tr-TR' | 'uk-UA' | 'vi-VN';
|
6 | export declare type MobilePhoneLocale = 'any' | 'am-AM' | 'ar-AE' | 'ar-BH' | 'ar-DZ' | 'ar-EG' | 'ar-IQ' | 'ar-JO' | 'ar-KW' | 'ar-LB' | 'ar-LY' | 'ar-MA' | 'ar-OM' | 'ar-SA' | 'ar-SY' | 'ar-TN' | 'az-AZ' | 'be-BY' | 'bg-BG' | 'bn-BD' | 'bs-BA' | 'cs-CZ' | 'de-AT' | 'de-CH' | 'de-DE' | 'de-LU' | 'da-DK' | 'el-GR' | 'en-AU' | 'en-CA' | 'en-GB' | 'en-GG' | 'en-GH' | 'en-HK' | 'en-HN' | 'en-IE' | 'en-IN' | 'en-KE' | 'en-MT' | 'en-MU' | 'en-NG' | 'en-NZ' | 'en-PH' | 'en-PK' | 'en-RW' | 'en-SG' | 'en-SL' | 'en-TZ' | 'en-UG' | 'en-US' | 'en-ZA' | 'en-ZM' | 'en-ZW' | 'es-AR' | 'es-BO' | 'es-CL' | 'es-CO' | 'es-CR' | 'es-DO' | 'es-EC' | 'es-ES' | 'es-MX' | 'es-PA' | 'es-PE' | 'es-PY' | 'es-UY' | 'et-EE' | 'fa-IR' | 'fi-FI' | 'fj-FJ' | 'fo-FO' | 'fr-BE' | 'fr-CH' | 'fr-FR' | 'fr-GF' | 'fr-GP' | 'fr-MQ' | 'fr-RE' | 'ga-IE' | 'he-IL' | 'hu-HU' | 'id-ID' | 'it-CH' | 'it-IT' | 'it-SM' | 'ja-JP' | 'ka-GE' | 'kk-KZ' | 'kl-GL' | 'lt-LT' | 'lv-LV' | 'ms-MY' | 'mz-MZ' | 'nb-NO' | 'nl-NL' | 'ne-NP' | 'nn-NO' | 'pl-PL' | 'pt-AO' | 'pt-BR' | 'pt-PT' | 'ro-RO' | 'ru-RU' | 'sk-SK' | 'sl-SI' | 'sq-AL' | 'sr-RS' | 'sv-SE' | 'th-TH' | 'tr-TR' | 'uk-UA' | 'uz-Uz' | 'vi-VN' | 'zh-CN' | 'zh-HK' | 'zh-TW';
|
7 | export declare type PostalCodeLocale = 'any' | 'AD' | 'AT' | 'AU' | 'AZ' | 'BE' | 'BG' | 'BR' | 'BY' | 'CA' | 'CH' | 'CN' | 'CZ' | 'DE' | 'DK' | 'DO' | 'DZ' | 'EE' | 'ES' | 'FI' | 'FR' | 'GB' | 'GR' | 'HR' | 'HT' | 'HU' | 'ID' | 'IL' | 'IN' | 'IS' | 'IR' | 'IT' | 'JP' | 'KE' | 'KR' | 'LI' | 'LT' | 'LU' | 'LV' | 'MT' | 'MX' | 'MY' | 'NL' | 'NO' | 'NP' | 'NZ' | 'PL' | 'PR' | 'PT' | 'RO' | 'RU' | 'SA' | 'SE' | 'SG' | 'SI' | 'TH' | 'TN' | 'TW' | 'UA' | 'US' | 'ZA' | 'ZM';
|
8 | export declare type HashAlgorithm = 'md4' | 'md5' | 'sha1' | 'sha256' | 'sha384' | 'sha512' | 'ripemd128' | 'ripemd160' | 'tiger128' | 'tiger160' | 'tiger192' | 'crc32' | 'crc32b';
|
9 | export declare type IdentityCardLocale = 'any' | 'ar-LY' | 'ar-TN' | 'ES' | 'he-IL' | 'IN' | 'IT' | 'IR' | 'MZ' | 'NO' | 'zh-CN' | 'zh-TW';
|
10 | export declare type PassportCountryCode = 'AM' | 'AR' | 'AT' | 'AU' | 'BE' | 'BG' | 'BY' | 'BR' | 'CA' | 'CH' | 'CN' | 'CY' | 'CZ' | 'DE' | 'DK' | 'DZ' | 'EE' | 'ES' | 'FI' | 'FR' | 'GB' | 'GR' | 'HR' | 'HU' | 'IE' | 'IN' | 'IR' | 'IS' | 'IT' | 'JP' | 'KR' | 'LT' | 'LU' | 'LV' | 'LY' | 'MT' | 'MY' | 'MZ' | 'NL' | 'PO' | 'PT' | 'RO' | 'RU' | 'SE' | 'SL' | 'SK' | 'TR' | 'UA' | 'US';
|
11 | export declare type IsLicensePlateLocale = 'de-DE' | 'de-LI' | 'pt-BR' | 'pt-PT' | 'sq-AL' | 'any';
|
12 | export declare type TaxIDLocale = 'bg-BG' | 'cs-CZ' | 'de-AT' | 'de-DE' | 'dk-DK' | 'el-CY' | 'el-GR' | 'en-GB' | 'en-IE' | 'en-US' | 'es-ES' | 'et-EE' | 'fi-FI' | 'fr-BE' | 'fr-FR' | 'fr-LU' | 'hr-HR' | 'hu-HU' | 'it-IT' | 'lb-LU' | 'lt-LT' | 'lv-LV' | 'mt-MT' | 'nl-BE' | 'nl-NL' | 'pl-PL' | 'pt-BR' | 'pt-PT' | 'ro-RO' | 'sk-SK' | 'sl-SI' | 'sv-SE';
|
13 | export declare type VATCountryCode = 'GB' | 'IT';
|
14 | export interface MinMaxOptions {
|
15 | min?: number;
|
16 | max?: number;
|
17 | }
|
18 | export interface MinMaxExtendedOptions extends MinMaxOptions {
|
19 | lt?: number;
|
20 | gt?: number;
|
21 | }
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | export interface ContainsOptions {
|
29 | ignoreCase?: boolean;
|
30 | }
|
31 | export interface IsAlphaOptions {
|
32 | ignore?: string | string[] | RegExp;
|
33 | }
|
34 | export interface IsAlphanumericOptions {
|
35 | ignore?: string | RegExp;
|
36 | }
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | export interface IsBase64Options {
|
44 | urlSafe?: boolean;
|
45 | }
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 | export interface IsBooleanOptions {
|
53 | strict?: boolean;
|
54 | }
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 | export interface IsCurrencyOptions {
|
73 | symbol?: string;
|
74 | require_symbol?: boolean;
|
75 | allow_space_after_symbol?: boolean;
|
76 | symbol_after_digits?: boolean;
|
77 | allow_negatives?: boolean;
|
78 | parens_for_negatives?: boolean;
|
79 | negative_sign_before_digits?: boolean;
|
80 | negative_sign_after_digits?: boolean;
|
81 | allow_negative_sign_placeholder?: boolean;
|
82 | thousands_separator?: string;
|
83 | decimal_separator?: string;
|
84 | allow_decimal?: boolean;
|
85 | require_decimal?: boolean;
|
86 | digits_after_decimal?: number[];
|
87 | allow_space_after_digits?: boolean;
|
88 | }
|
89 |
|
90 |
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 | export interface IsDateOptions {
|
98 | format?: string;
|
99 | delimiters?: string[];
|
100 | strictMode?: boolean;
|
101 | }
|
102 | export interface IsDecimalOptions {
|
103 | decimal_digits?: string;
|
104 | force_decimal?: boolean;
|
105 | locale?: AlphanumericLocale;
|
106 | blacklisted_chars?: string;
|
107 | }
|
108 | export interface IsEmailOptions {
|
109 | allow_display_name?: boolean;
|
110 | allow_utf8_local_part?: boolean;
|
111 | require_tld?: boolean;
|
112 | ignore_max_length?: boolean;
|
113 | allow_ip_domain?: boolean;
|
114 | domain_specific_validation?: boolean;
|
115 | blacklisted_chars?: string;
|
116 | }
|
117 |
|
118 |
|
119 |
|
120 |
|
121 |
|
122 |
|
123 | export interface IsEmptyOptions {
|
124 | ignore_whitespace: boolean;
|
125 | }
|
126 | export interface IsFloatOptions extends MinMaxExtendedOptions {
|
127 | locale?: AlphanumericLocale;
|
128 | }
|
129 |
|
130 |
|
131 |
|
132 |
|
133 |
|
134 |
|
135 |
|
136 |
|
137 |
|
138 | export interface IsFQDNOptions {
|
139 | require_tld?: boolean;
|
140 | allow_underscores?: boolean;
|
141 | allow_trailing_dot?: boolean;
|
142 | allow_numeric_tld?: false;
|
143 | }
|
144 | export interface IsIntOptions extends MinMaxExtendedOptions {
|
145 | allow_leading_zeroes?: boolean;
|
146 | }
|
147 |
|
148 |
|
149 |
|
150 |
|
151 |
|
152 |
|
153 | export interface IsJSONOptions {
|
154 | allow_primitives?: boolean;
|
155 | }
|
156 |
|
157 |
|
158 |
|
159 |
|
160 |
|
161 |
|
162 | export interface IsLatLongOptions {
|
163 | checkDMS?: boolean;
|
164 | }
|
165 |
|
166 |
|
167 |
|
168 |
|
169 |
|
170 |
|
171 | export interface IsIMEIOptions {
|
172 | allow_hyphens?: boolean;
|
173 | }
|
174 |
|
175 |
|
176 |
|
177 |
|
178 |
|
179 |
|
180 |
|
181 | export interface IsISO8601Options {
|
182 | strict?: boolean;
|
183 | strictSeparator?: boolean;
|
184 | }
|
185 |
|
186 |
|
187 |
|
188 |
|
189 |
|
190 |
|
191 |
|
192 | export interface IsISSNOptions {
|
193 | case_sensitive?: boolean;
|
194 | require_hyphen?: boolean;
|
195 | }
|
196 |
|
197 |
|
198 |
|
199 |
|
200 |
|
201 |
|
202 |
|
203 |
|
204 | export interface IsMACAddressOptions {
|
205 | no_separators?: boolean;
|
206 | |
207 |
|
208 |
|
209 | no_colons?: boolean;
|
210 | }
|
211 | export interface IsMobilePhoneOptions {
|
212 | strictMode?: boolean;
|
213 | }
|
214 |
|
215 |
|
216 |
|
217 |
|
218 |
|
219 |
|
220 | export interface IsNumericOptions {
|
221 | no_symbols: boolean;
|
222 | locale?: AlphanumericLocale;
|
223 | }
|
224 |
|
225 |
|
226 |
|
227 |
|
228 |
|
229 |
|
230 |
|
231 |
|
232 |
|
233 |
|
234 |
|
235 |
|
236 |
|
237 |
|
238 |
|
239 |
|
240 |
|
241 | export interface IsStrongPasswordOptions {
|
242 | minLength?: number;
|
243 | minLowercase?: number;
|
244 | minUppercase?: number;
|
245 | minNumbers?: number;
|
246 | minSymbols?: number;
|
247 | returnScore?: boolean;
|
248 | pointsPerUnique?: number;
|
249 | pointsPerRepeat?: number;
|
250 | pointsForContainingLower?: number;
|
251 | pointsForContainingUpper?: number;
|
252 | pointsForContainingNumber?: number;
|
253 | pointsForContainingSymbol?: number;
|
254 | }
|
255 |
|
256 |
|
257 |
|
258 |
|
259 |
|
260 |
|
261 |
|
262 |
|
263 |
|
264 |
|
265 |
|
266 |
|
267 |
|
268 |
|
269 |
|
270 |
|
271 |
|
272 | export interface IsURLOptions {
|
273 | protocols?: URLProtocol[];
|
274 | require_tld?: boolean;
|
275 | require_protocol?: boolean;
|
276 | require_host?: boolean;
|
277 | require_port?: boolean;
|
278 | require_valid_protocol?: boolean;
|
279 | allow_underscores?: boolean;
|
280 | host_whitelist?: (string | RegExp)[];
|
281 | host_blacklist?: (string | RegExp)[];
|
282 | allow_trailing_dot?: boolean;
|
283 | allow_protocol_relative_urls?: boolean;
|
284 | disallow_auth?: boolean;
|
285 | validate_length?: boolean;
|
286 | }
|
287 | export interface NormalizeEmailOptions {
|
288 | all_lowercase?: boolean;
|
289 | gmail_lowercase?: boolean;
|
290 | gmail_remove_dots?: boolean;
|
291 | gmail_remove_subaddress?: boolean;
|
292 | gmail_convert_googlemaildotcom?: boolean;
|
293 | outlookdotcom_lowercase?: boolean;
|
294 | outlookdotcom_remove_subaddress?: boolean;
|
295 | yahoo_lowercase?: boolean;
|
296 | yahoo_remove_subaddress?: boolean;
|
297 | icloud_lowercase?: boolean;
|
298 | icloud_remove_subaddress?: boolean;
|
299 | }
|