@exyconn/common 1.0.0 → 2.1.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.
- package/README.md +121 -36
- package/dist/client/index.d.mts +3 -2
- package/dist/client/index.d.ts +3 -2
- package/dist/client/index.js +5059 -231
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +4951 -232
- package/dist/client/index.mjs.map +1 -1
- package/dist/client/utils/index.d.mts +123 -1
- package/dist/client/utils/index.d.ts +123 -1
- package/dist/client/utils/index.js +207 -0
- package/dist/client/utils/index.js.map +1 -1
- package/dist/client/utils/index.mjs +204 -1
- package/dist/client/utils/index.mjs.map +1 -1
- package/dist/index-BcxL4_V4.d.ts +2946 -0
- package/dist/{index-iTKxFa78.d.ts → index-DEzgM15j.d.ts} +10 -2
- package/dist/{index-ClWtDfwk.d.ts → index-DNFVgQx8.d.ts} +544 -2
- package/dist/{index-CcrANHAQ.d.mts → index-DbV04Dx8.d.mts} +10 -2
- package/dist/{index-DSW6JfD-.d.mts → index-DfqEP6Oe.d.mts} +544 -2
- package/dist/index-bvvCev9Q.d.mts +2946 -0
- package/dist/index.d.mts +433 -7
- package/dist/index.d.ts +433 -7
- package/dist/index.js +6101 -220
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6083 -221
- package/dist/index.mjs.map +1 -1
- package/dist/server/index.d.mts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +197 -0
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +194 -2
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/utils/index.d.mts +73 -1
- package/dist/server/utils/index.d.ts +73 -1
- package/dist/server/utils/index.js +199 -0
- package/dist/server/utils/index.js.map +1 -1
- package/dist/server/utils/index.mjs +195 -1
- package/dist/server/utils/index.mjs.map +1 -1
- package/dist/shared/index.d.mts +1 -1
- package/dist/shared/index.d.ts +1 -1
- package/dist/shared/index.js +296 -0
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/index.mjs +274 -1
- package/dist/shared/index.mjs.map +1 -1
- package/package.json +41 -4
- package/dist/index-BNdT-2X4.d.ts +0 -229
- package/dist/index-Du0LLt9f.d.mts +0 -229
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { i as server } from './index-
|
|
2
|
-
|
|
3
|
-
export {
|
|
1
|
+
export { i as server } from './index-DbV04Dx8.mjs';
|
|
2
|
+
import { A as APPS, a as AppConfig, B as BRANDS, b as BrandColors, c as BrandIdentity, C as ContactInfo, L as LogoSet, S as SEOConfig, d as SocialLinks, e as createAppConfig, f as detectCurrentBrand, g as getAllBrandIds, h as getAllBrands$1, i as getAppConfigByDomain, j as getBrandByDomain$1, k as getBrandById, l as getLogo$1, m as getThemedLogo } from './index-bvvCev9Q.mjs';
|
|
3
|
+
export { n as client } from './index-bvvCev9Q.mjs';
|
|
4
|
+
export { i as shared } from './index-DfqEP6Oe.mjs';
|
|
4
5
|
import './server/response/index.mjs';
|
|
5
6
|
import 'express';
|
|
6
7
|
import './server/enums/index.mjs';
|
|
@@ -16,6 +17,7 @@ import './client/logger/index.mjs';
|
|
|
16
17
|
import './client/utils/index.mjs';
|
|
17
18
|
import './response.types-D--UhLJq.mjs';
|
|
18
19
|
import 'react';
|
|
20
|
+
import 'yup';
|
|
19
21
|
import 'date-fns';
|
|
20
22
|
import 'date-fns-tz';
|
|
21
23
|
|
|
@@ -35,6 +37,7 @@ interface Country {
|
|
|
35
37
|
name: string;
|
|
36
38
|
code: string;
|
|
37
39
|
code3: string;
|
|
40
|
+
flag?: string;
|
|
38
41
|
phoneCode: string;
|
|
39
42
|
currency: string;
|
|
40
43
|
currencySymbol: string;
|
|
@@ -43,7 +46,19 @@ interface Country {
|
|
|
43
46
|
timezone: string;
|
|
44
47
|
states: State[];
|
|
45
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Convert country code to emoji flag
|
|
51
|
+
* @param countryCode - ISO 3166-1 alpha-2 country code
|
|
52
|
+
* @returns Emoji flag string
|
|
53
|
+
*/
|
|
54
|
+
declare const codeToFlag: (countryCode: string) => string;
|
|
46
55
|
declare const countries: Country[];
|
|
56
|
+
/**
|
|
57
|
+
* Country with flag guaranteed (auto-generated from code if not set)
|
|
58
|
+
*/
|
|
59
|
+
interface CountryWithFlag extends Omit<Country, 'flag'> {
|
|
60
|
+
flag: string;
|
|
61
|
+
}
|
|
47
62
|
declare const getCountryByCode: (code: string) => Country | undefined;
|
|
48
63
|
declare const getCountryByName: (name: string) => Country | undefined;
|
|
49
64
|
declare const getStatesByCountry: (countryCode: string) => State[];
|
|
@@ -51,6 +66,20 @@ declare const getCitiesByState: (countryCode: string, stateCode: string) => City
|
|
|
51
66
|
declare const getAllCities: (countryCode: string) => City[];
|
|
52
67
|
declare const getCountriesByContinent: (continent: string) => Country[];
|
|
53
68
|
declare const searchCountries: (query: string) => Country[];
|
|
69
|
+
/**
|
|
70
|
+
* Get flag emoji for a country code
|
|
71
|
+
* @param countryCode - ISO 3166-1 alpha-2 country code
|
|
72
|
+
* @returns Emoji flag or the flag from country data
|
|
73
|
+
*/
|
|
74
|
+
declare const getFlag: (countryCode: string) => string;
|
|
75
|
+
/**
|
|
76
|
+
* Get country with auto-generated flag if not set
|
|
77
|
+
*/
|
|
78
|
+
declare const getCountryWithFlag: (code: string) => CountryWithFlag | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Get all countries with flags (auto-generate if missing)
|
|
81
|
+
*/
|
|
82
|
+
declare const getAllCountriesWithFlags: () => CountryWithFlag[];
|
|
54
83
|
|
|
55
84
|
/**
|
|
56
85
|
* Phone codes by country
|
|
@@ -99,6 +128,292 @@ declare const searchTimezones: (query: string) => Timezone[];
|
|
|
99
128
|
declare const getTimezonesByOffset: (offsetMinutes: number) => Timezone[];
|
|
100
129
|
declare const sortTimezonesByOffset: (ascending?: boolean) => Timezone[];
|
|
101
130
|
|
|
131
|
+
/**
|
|
132
|
+
* Common Regex Patterns
|
|
133
|
+
* Reusable validation patterns for various data types
|
|
134
|
+
*/
|
|
135
|
+
/** Basic email validation */
|
|
136
|
+
declare const EMAIL: RegExp;
|
|
137
|
+
/** RFC 5322 compliant email (more strict) */
|
|
138
|
+
declare const EMAIL_RFC5322: RegExp;
|
|
139
|
+
/** Email with common domains only (gmail, yahoo, outlook, etc.) */
|
|
140
|
+
declare const EMAIL_COMMON_DOMAINS: RegExp;
|
|
141
|
+
/** Minimum 8 characters */
|
|
142
|
+
declare const PASSWORD_MIN_8: RegExp;
|
|
143
|
+
/** Minimum 8 chars, at least one letter and one number */
|
|
144
|
+
declare const PASSWORD_ALPHANUMERIC: RegExp;
|
|
145
|
+
/** Medium: min 8 chars, uppercase, lowercase, number */
|
|
146
|
+
declare const PASSWORD_MEDIUM: RegExp;
|
|
147
|
+
/** Strong: min 8 chars, uppercase, lowercase, number, special char */
|
|
148
|
+
declare const PASSWORD_STRONG: RegExp;
|
|
149
|
+
/** Very Strong: min 12 chars, uppercase, lowercase, number, special char */
|
|
150
|
+
declare const PASSWORD_VERY_STRONG: RegExp;
|
|
151
|
+
/** International phone (with + prefix) */
|
|
152
|
+
declare const PHONE_INTERNATIONAL: RegExp;
|
|
153
|
+
/** US phone number */
|
|
154
|
+
declare const PHONE_US: RegExp;
|
|
155
|
+
/** India phone number (10 digits starting with 6-9) */
|
|
156
|
+
declare const PHONE_INDIA: RegExp;
|
|
157
|
+
/** UK phone number */
|
|
158
|
+
declare const PHONE_UK: RegExp;
|
|
159
|
+
/** Generic 10-digit phone */
|
|
160
|
+
declare const PHONE_10_DIGIT: RegExp;
|
|
161
|
+
/** Phone with optional country code */
|
|
162
|
+
declare const PHONE_WITH_CODE: RegExp;
|
|
163
|
+
/** US ZIP Code (5 digits or 5+4) */
|
|
164
|
+
declare const ZIP_US: RegExp;
|
|
165
|
+
/** India PIN Code (6 digits) */
|
|
166
|
+
declare const PIN_INDIA: RegExp;
|
|
167
|
+
/** UK Postal Code */
|
|
168
|
+
declare const POSTAL_UK: RegExp;
|
|
169
|
+
/** Canada Postal Code */
|
|
170
|
+
declare const POSTAL_CANADA: RegExp;
|
|
171
|
+
/** Germany PLZ (5 digits) */
|
|
172
|
+
declare const PLZ_GERMANY: RegExp;
|
|
173
|
+
/** Generic postal code (4-10 alphanumeric) */
|
|
174
|
+
declare const POSTAL_GENERIC: RegExp;
|
|
175
|
+
/** UUID v4 */
|
|
176
|
+
declare const UUID_V4: RegExp;
|
|
177
|
+
/** UUID any version */
|
|
178
|
+
declare const UUID: RegExp;
|
|
179
|
+
/** MongoDB ObjectId */
|
|
180
|
+
declare const MONGO_OBJECT_ID: RegExp;
|
|
181
|
+
/** CUID */
|
|
182
|
+
declare const CUID: RegExp;
|
|
183
|
+
/** CUID2 */
|
|
184
|
+
declare const CUID2: RegExp;
|
|
185
|
+
/** NanoID (default 21 chars) */
|
|
186
|
+
declare const NANOID: RegExp;
|
|
187
|
+
/** India Aadhaar (12 digits) */
|
|
188
|
+
declare const AADHAAR_INDIA: RegExp;
|
|
189
|
+
/** India PAN Card */
|
|
190
|
+
declare const PAN_INDIA: RegExp;
|
|
191
|
+
/** India GST Number */
|
|
192
|
+
declare const GST_INDIA: RegExp;
|
|
193
|
+
/** US SSN */
|
|
194
|
+
declare const SSN_US: RegExp;
|
|
195
|
+
/** India Driving License */
|
|
196
|
+
declare const DL_INDIA: RegExp;
|
|
197
|
+
/** India Vehicle Number */
|
|
198
|
+
declare const VEHICLE_INDIA: RegExp;
|
|
199
|
+
/** India IFSC Code */
|
|
200
|
+
declare const IFSC_INDIA: RegExp;
|
|
201
|
+
/** Basic URL (http/https) */
|
|
202
|
+
declare const URL_BASIC: RegExp;
|
|
203
|
+
/** URL with optional protocol */
|
|
204
|
+
declare const URL_OPTIONAL_PROTOCOL: RegExp;
|
|
205
|
+
/** Strict URL with protocol required */
|
|
206
|
+
declare const URL_STRICT: RegExp;
|
|
207
|
+
/** Domain only (no protocol) */
|
|
208
|
+
declare const DOMAIN: RegExp;
|
|
209
|
+
/** Subdomain */
|
|
210
|
+
declare const SUBDOMAIN: RegExp;
|
|
211
|
+
/** Localhost with optional port */
|
|
212
|
+
declare const LOCALHOST: RegExp;
|
|
213
|
+
/** URL slug (kebab-case) */
|
|
214
|
+
declare const SLUG: RegExp;
|
|
215
|
+
/** Username (alphanumeric, underscore, hyphen, 3-30 chars) */
|
|
216
|
+
declare const USERNAME: RegExp;
|
|
217
|
+
/** Username starting with letter */
|
|
218
|
+
declare const USERNAME_ALPHA_START: RegExp;
|
|
219
|
+
/** Handle (like Twitter @username) */
|
|
220
|
+
declare const HANDLE: RegExp;
|
|
221
|
+
/** Any credit card (13-19 digits) */
|
|
222
|
+
declare const CREDIT_CARD: RegExp;
|
|
223
|
+
/** Visa */
|
|
224
|
+
declare const VISA: RegExp;
|
|
225
|
+
/** Mastercard */
|
|
226
|
+
declare const MASTERCARD: RegExp;
|
|
227
|
+
/** American Express */
|
|
228
|
+
declare const AMEX: RegExp;
|
|
229
|
+
/** Discover */
|
|
230
|
+
declare const DISCOVER: RegExp;
|
|
231
|
+
/** CVV (3-4 digits) */
|
|
232
|
+
declare const CVV: RegExp;
|
|
233
|
+
/** Card expiry (MM/YY or MM/YYYY) */
|
|
234
|
+
declare const CARD_EXPIRY: RegExp;
|
|
235
|
+
/** ISO 8601 Date (YYYY-MM-DD) */
|
|
236
|
+
declare const DATE_ISO: RegExp;
|
|
237
|
+
/** Date DD/MM/YYYY */
|
|
238
|
+
declare const DATE_DMY: RegExp;
|
|
239
|
+
/** Date MM/DD/YYYY */
|
|
240
|
+
declare const DATE_MDY: RegExp;
|
|
241
|
+
/** Time HH:MM (24-hour) */
|
|
242
|
+
declare const TIME_24H: RegExp;
|
|
243
|
+
/** Time HH:MM:SS (24-hour) */
|
|
244
|
+
declare const TIME_24H_SECONDS: RegExp;
|
|
245
|
+
/** Time 12-hour with AM/PM */
|
|
246
|
+
declare const TIME_12H: RegExp;
|
|
247
|
+
/** ISO 8601 DateTime */
|
|
248
|
+
declare const DATETIME_ISO: RegExp;
|
|
249
|
+
/** IPv4 Address */
|
|
250
|
+
declare const IPV4: RegExp;
|
|
251
|
+
/** IPv6 Address */
|
|
252
|
+
declare const IPV6: RegExp;
|
|
253
|
+
/** MAC Address */
|
|
254
|
+
declare const MAC_ADDRESS: RegExp;
|
|
255
|
+
/** Image file extension */
|
|
256
|
+
declare const IMAGE_EXT: RegExp;
|
|
257
|
+
/** Video file extension */
|
|
258
|
+
declare const VIDEO_EXT: RegExp;
|
|
259
|
+
/** Audio file extension */
|
|
260
|
+
declare const AUDIO_EXT: RegExp;
|
|
261
|
+
/** Document file extension */
|
|
262
|
+
declare const DOCUMENT_EXT: RegExp;
|
|
263
|
+
/** Archive file extension */
|
|
264
|
+
declare const ARCHIVE_EXT: RegExp;
|
|
265
|
+
/** Safe filename */
|
|
266
|
+
declare const SAFE_FILENAME: RegExp;
|
|
267
|
+
/** Hex color (3 or 6 chars) */
|
|
268
|
+
declare const HEX_COLOR: RegExp;
|
|
269
|
+
/** Hex color with alpha (8 chars) */
|
|
270
|
+
declare const HEX_COLOR_ALPHA: RegExp;
|
|
271
|
+
/** RGB color */
|
|
272
|
+
declare const RGB_COLOR: RegExp;
|
|
273
|
+
/** RGBA color */
|
|
274
|
+
declare const RGBA_COLOR: RegExp;
|
|
275
|
+
/** HSL color */
|
|
276
|
+
declare const HSL_COLOR: RegExp;
|
|
277
|
+
/** Alphanumeric only */
|
|
278
|
+
declare const ALPHANUMERIC: RegExp;
|
|
279
|
+
/** Letters only */
|
|
280
|
+
declare const LETTERS_ONLY: RegExp;
|
|
281
|
+
/** Numbers only */
|
|
282
|
+
declare const NUMBERS_ONLY: RegExp;
|
|
283
|
+
/** Decimal number */
|
|
284
|
+
declare const DECIMAL: RegExp;
|
|
285
|
+
/** Positive integer */
|
|
286
|
+
declare const POSITIVE_INTEGER: RegExp;
|
|
287
|
+
/** Non-negative integer */
|
|
288
|
+
declare const NON_NEGATIVE_INTEGER: RegExp;
|
|
289
|
+
/** No whitespace */
|
|
290
|
+
declare const NO_WHITESPACE: RegExp;
|
|
291
|
+
/** No special characters */
|
|
292
|
+
declare const NO_SPECIAL_CHARS: RegExp;
|
|
293
|
+
/** Contains at least one uppercase */
|
|
294
|
+
declare const HAS_UPPERCASE: RegExp;
|
|
295
|
+
/** Contains at least one lowercase */
|
|
296
|
+
declare const HAS_LOWERCASE: RegExp;
|
|
297
|
+
/** Contains at least one digit */
|
|
298
|
+
declare const HAS_DIGIT: RegExp;
|
|
299
|
+
/** Contains at least one special character */
|
|
300
|
+
declare const HAS_SPECIAL: RegExp;
|
|
301
|
+
/** HTML tags */
|
|
302
|
+
declare const HTML_TAG: RegExp;
|
|
303
|
+
/** Emoji */
|
|
304
|
+
declare const EMOJI: RegExp;
|
|
305
|
+
/** Hashtag */
|
|
306
|
+
declare const HASHTAG: RegExp;
|
|
307
|
+
/** Mention (@username) */
|
|
308
|
+
declare const MENTION: RegExp;
|
|
309
|
+
/** JSON string */
|
|
310
|
+
declare const JSON_STRING: RegExp;
|
|
311
|
+
/** Base64 */
|
|
312
|
+
declare const BASE64: RegExp;
|
|
313
|
+
/** JWT Token */
|
|
314
|
+
declare const JWT: RegExp;
|
|
315
|
+
/** Semantic Version */
|
|
316
|
+
declare const SEMVER: RegExp;
|
|
317
|
+
/** Latitude */
|
|
318
|
+
declare const LATITUDE: RegExp;
|
|
319
|
+
/** Longitude */
|
|
320
|
+
declare const LONGITUDE: RegExp;
|
|
321
|
+
declare const REGEX: {
|
|
322
|
+
readonly EMAIL: RegExp;
|
|
323
|
+
readonly EMAIL_RFC5322: RegExp;
|
|
324
|
+
readonly EMAIL_COMMON_DOMAINS: RegExp;
|
|
325
|
+
readonly PASSWORD_MIN_8: RegExp;
|
|
326
|
+
readonly PASSWORD_ALPHANUMERIC: RegExp;
|
|
327
|
+
readonly PASSWORD_MEDIUM: RegExp;
|
|
328
|
+
readonly PASSWORD_STRONG: RegExp;
|
|
329
|
+
readonly PASSWORD_VERY_STRONG: RegExp;
|
|
330
|
+
readonly PHONE_INTERNATIONAL: RegExp;
|
|
331
|
+
readonly PHONE_US: RegExp;
|
|
332
|
+
readonly PHONE_INDIA: RegExp;
|
|
333
|
+
readonly PHONE_UK: RegExp;
|
|
334
|
+
readonly PHONE_10_DIGIT: RegExp;
|
|
335
|
+
readonly PHONE_WITH_CODE: RegExp;
|
|
336
|
+
readonly ZIP_US: RegExp;
|
|
337
|
+
readonly PIN_INDIA: RegExp;
|
|
338
|
+
readonly POSTAL_UK: RegExp;
|
|
339
|
+
readonly POSTAL_CANADA: RegExp;
|
|
340
|
+
readonly PLZ_GERMANY: RegExp;
|
|
341
|
+
readonly POSTAL_GENERIC: RegExp;
|
|
342
|
+
readonly UUID_V4: RegExp;
|
|
343
|
+
readonly UUID: RegExp;
|
|
344
|
+
readonly MONGO_OBJECT_ID: RegExp;
|
|
345
|
+
readonly CUID: RegExp;
|
|
346
|
+
readonly CUID2: RegExp;
|
|
347
|
+
readonly NANOID: RegExp;
|
|
348
|
+
readonly AADHAAR_INDIA: RegExp;
|
|
349
|
+
readonly PAN_INDIA: RegExp;
|
|
350
|
+
readonly GST_INDIA: RegExp;
|
|
351
|
+
readonly SSN_US: RegExp;
|
|
352
|
+
readonly DL_INDIA: RegExp;
|
|
353
|
+
readonly VEHICLE_INDIA: RegExp;
|
|
354
|
+
readonly IFSC_INDIA: RegExp;
|
|
355
|
+
readonly URL_BASIC: RegExp;
|
|
356
|
+
readonly URL_OPTIONAL_PROTOCOL: RegExp;
|
|
357
|
+
readonly URL_STRICT: RegExp;
|
|
358
|
+
readonly DOMAIN: RegExp;
|
|
359
|
+
readonly SUBDOMAIN: RegExp;
|
|
360
|
+
readonly LOCALHOST: RegExp;
|
|
361
|
+
readonly SLUG: RegExp;
|
|
362
|
+
readonly USERNAME: RegExp;
|
|
363
|
+
readonly USERNAME_ALPHA_START: RegExp;
|
|
364
|
+
readonly HANDLE: RegExp;
|
|
365
|
+
readonly CREDIT_CARD: RegExp;
|
|
366
|
+
readonly VISA: RegExp;
|
|
367
|
+
readonly MASTERCARD: RegExp;
|
|
368
|
+
readonly AMEX: RegExp;
|
|
369
|
+
readonly DISCOVER: RegExp;
|
|
370
|
+
readonly CVV: RegExp;
|
|
371
|
+
readonly CARD_EXPIRY: RegExp;
|
|
372
|
+
readonly DATE_ISO: RegExp;
|
|
373
|
+
readonly DATE_DMY: RegExp;
|
|
374
|
+
readonly DATE_MDY: RegExp;
|
|
375
|
+
readonly TIME_24H: RegExp;
|
|
376
|
+
readonly TIME_24H_SECONDS: RegExp;
|
|
377
|
+
readonly TIME_12H: RegExp;
|
|
378
|
+
readonly DATETIME_ISO: RegExp;
|
|
379
|
+
readonly IPV4: RegExp;
|
|
380
|
+
readonly IPV6: RegExp;
|
|
381
|
+
readonly MAC_ADDRESS: RegExp;
|
|
382
|
+
readonly IMAGE_EXT: RegExp;
|
|
383
|
+
readonly VIDEO_EXT: RegExp;
|
|
384
|
+
readonly AUDIO_EXT: RegExp;
|
|
385
|
+
readonly DOCUMENT_EXT: RegExp;
|
|
386
|
+
readonly ARCHIVE_EXT: RegExp;
|
|
387
|
+
readonly SAFE_FILENAME: RegExp;
|
|
388
|
+
readonly HEX_COLOR: RegExp;
|
|
389
|
+
readonly HEX_COLOR_ALPHA: RegExp;
|
|
390
|
+
readonly RGB_COLOR: RegExp;
|
|
391
|
+
readonly RGBA_COLOR: RegExp;
|
|
392
|
+
readonly HSL_COLOR: RegExp;
|
|
393
|
+
readonly ALPHANUMERIC: RegExp;
|
|
394
|
+
readonly LETTERS_ONLY: RegExp;
|
|
395
|
+
readonly NUMBERS_ONLY: RegExp;
|
|
396
|
+
readonly DECIMAL: RegExp;
|
|
397
|
+
readonly POSITIVE_INTEGER: RegExp;
|
|
398
|
+
readonly NON_NEGATIVE_INTEGER: RegExp;
|
|
399
|
+
readonly NO_WHITESPACE: RegExp;
|
|
400
|
+
readonly NO_SPECIAL_CHARS: RegExp;
|
|
401
|
+
readonly HAS_UPPERCASE: RegExp;
|
|
402
|
+
readonly HAS_LOWERCASE: RegExp;
|
|
403
|
+
readonly HAS_DIGIT: RegExp;
|
|
404
|
+
readonly HAS_SPECIAL: RegExp;
|
|
405
|
+
readonly HTML_TAG: RegExp;
|
|
406
|
+
readonly EMOJI: RegExp;
|
|
407
|
+
readonly HASHTAG: RegExp;
|
|
408
|
+
readonly MENTION: RegExp;
|
|
409
|
+
readonly JSON_STRING: RegExp;
|
|
410
|
+
readonly BASE64: RegExp;
|
|
411
|
+
readonly JWT: RegExp;
|
|
412
|
+
readonly SEMVER: RegExp;
|
|
413
|
+
readonly LATITUDE: RegExp;
|
|
414
|
+
readonly LONGITUDE: RegExp;
|
|
415
|
+
};
|
|
416
|
+
|
|
102
417
|
/**
|
|
103
418
|
* Company Logos for all 5 Exyconn projects
|
|
104
419
|
* Contains light and dark mode variants
|
|
@@ -127,34 +442,145 @@ declare const getLogo: (brandKey: string, mode: "light" | "dark", type?: "full"
|
|
|
127
442
|
declare const getAllBrands: () => CompanyBrand[];
|
|
128
443
|
declare const getAllBrandKeys: () => string[];
|
|
129
444
|
|
|
445
|
+
declare const index_AADHAAR_INDIA: typeof AADHAAR_INDIA;
|
|
446
|
+
declare const index_ALPHANUMERIC: typeof ALPHANUMERIC;
|
|
447
|
+
declare const index_AMEX: typeof AMEX;
|
|
448
|
+
declare const index_APPS: typeof APPS;
|
|
449
|
+
declare const index_ARCHIVE_EXT: typeof ARCHIVE_EXT;
|
|
450
|
+
declare const index_AUDIO_EXT: typeof AUDIO_EXT;
|
|
451
|
+
declare const index_AppConfig: typeof AppConfig;
|
|
452
|
+
declare const index_BASE64: typeof BASE64;
|
|
453
|
+
declare const index_BRANDS: typeof BRANDS;
|
|
454
|
+
declare const index_BrandColors: typeof BrandColors;
|
|
455
|
+
declare const index_BrandIdentity: typeof BrandIdentity;
|
|
456
|
+
declare const index_CARD_EXPIRY: typeof CARD_EXPIRY;
|
|
457
|
+
declare const index_CREDIT_CARD: typeof CREDIT_CARD;
|
|
458
|
+
declare const index_CUID: typeof CUID;
|
|
459
|
+
declare const index_CUID2: typeof CUID2;
|
|
460
|
+
declare const index_CVV: typeof CVV;
|
|
130
461
|
type index_City = City;
|
|
131
462
|
type index_CompanyBrand = CompanyBrand;
|
|
463
|
+
declare const index_ContactInfo: typeof ContactInfo;
|
|
132
464
|
type index_Country = Country;
|
|
465
|
+
type index_CountryWithFlag = CountryWithFlag;
|
|
133
466
|
type index_Currency = Currency;
|
|
467
|
+
declare const index_DATETIME_ISO: typeof DATETIME_ISO;
|
|
468
|
+
declare const index_DATE_DMY: typeof DATE_DMY;
|
|
469
|
+
declare const index_DATE_ISO: typeof DATE_ISO;
|
|
470
|
+
declare const index_DATE_MDY: typeof DATE_MDY;
|
|
471
|
+
declare const index_DECIMAL: typeof DECIMAL;
|
|
472
|
+
declare const index_DISCOVER: typeof DISCOVER;
|
|
473
|
+
declare const index_DL_INDIA: typeof DL_INDIA;
|
|
474
|
+
declare const index_DOCUMENT_EXT: typeof DOCUMENT_EXT;
|
|
475
|
+
declare const index_DOMAIN: typeof DOMAIN;
|
|
476
|
+
declare const index_EMAIL: typeof EMAIL;
|
|
477
|
+
declare const index_EMAIL_COMMON_DOMAINS: typeof EMAIL_COMMON_DOMAINS;
|
|
478
|
+
declare const index_EMAIL_RFC5322: typeof EMAIL_RFC5322;
|
|
479
|
+
declare const index_EMOJI: typeof EMOJI;
|
|
480
|
+
declare const index_GST_INDIA: typeof GST_INDIA;
|
|
481
|
+
declare const index_HANDLE: typeof HANDLE;
|
|
482
|
+
declare const index_HASHTAG: typeof HASHTAG;
|
|
483
|
+
declare const index_HAS_DIGIT: typeof HAS_DIGIT;
|
|
484
|
+
declare const index_HAS_LOWERCASE: typeof HAS_LOWERCASE;
|
|
485
|
+
declare const index_HAS_SPECIAL: typeof HAS_SPECIAL;
|
|
486
|
+
declare const index_HAS_UPPERCASE: typeof HAS_UPPERCASE;
|
|
487
|
+
declare const index_HEX_COLOR: typeof HEX_COLOR;
|
|
488
|
+
declare const index_HEX_COLOR_ALPHA: typeof HEX_COLOR_ALPHA;
|
|
489
|
+
declare const index_HSL_COLOR: typeof HSL_COLOR;
|
|
490
|
+
declare const index_HTML_TAG: typeof HTML_TAG;
|
|
491
|
+
declare const index_IFSC_INDIA: typeof IFSC_INDIA;
|
|
492
|
+
declare const index_IMAGE_EXT: typeof IMAGE_EXT;
|
|
493
|
+
declare const index_IPV4: typeof IPV4;
|
|
494
|
+
declare const index_IPV6: typeof IPV6;
|
|
495
|
+
declare const index_JSON_STRING: typeof JSON_STRING;
|
|
496
|
+
declare const index_JWT: typeof JWT;
|
|
497
|
+
declare const index_LATITUDE: typeof LATITUDE;
|
|
498
|
+
declare const index_LETTERS_ONLY: typeof LETTERS_ONLY;
|
|
499
|
+
declare const index_LOCALHOST: typeof LOCALHOST;
|
|
500
|
+
declare const index_LONGITUDE: typeof LONGITUDE;
|
|
134
501
|
type index_Logo = Logo;
|
|
502
|
+
declare const index_LogoSet: typeof LogoSet;
|
|
135
503
|
type index_LogoVariants = LogoVariants;
|
|
504
|
+
declare const index_MAC_ADDRESS: typeof MAC_ADDRESS;
|
|
505
|
+
declare const index_MASTERCARD: typeof MASTERCARD;
|
|
506
|
+
declare const index_MENTION: typeof MENTION;
|
|
507
|
+
declare const index_MONGO_OBJECT_ID: typeof MONGO_OBJECT_ID;
|
|
508
|
+
declare const index_NANOID: typeof NANOID;
|
|
509
|
+
declare const index_NON_NEGATIVE_INTEGER: typeof NON_NEGATIVE_INTEGER;
|
|
510
|
+
declare const index_NO_SPECIAL_CHARS: typeof NO_SPECIAL_CHARS;
|
|
511
|
+
declare const index_NO_WHITESPACE: typeof NO_WHITESPACE;
|
|
512
|
+
declare const index_NUMBERS_ONLY: typeof NUMBERS_ONLY;
|
|
513
|
+
declare const index_PAN_INDIA: typeof PAN_INDIA;
|
|
514
|
+
declare const index_PASSWORD_ALPHANUMERIC: typeof PASSWORD_ALPHANUMERIC;
|
|
515
|
+
declare const index_PASSWORD_MEDIUM: typeof PASSWORD_MEDIUM;
|
|
516
|
+
declare const index_PASSWORD_MIN_8: typeof PASSWORD_MIN_8;
|
|
517
|
+
declare const index_PASSWORD_STRONG: typeof PASSWORD_STRONG;
|
|
518
|
+
declare const index_PASSWORD_VERY_STRONG: typeof PASSWORD_VERY_STRONG;
|
|
519
|
+
declare const index_PHONE_10_DIGIT: typeof PHONE_10_DIGIT;
|
|
520
|
+
declare const index_PHONE_INDIA: typeof PHONE_INDIA;
|
|
521
|
+
declare const index_PHONE_INTERNATIONAL: typeof PHONE_INTERNATIONAL;
|
|
522
|
+
declare const index_PHONE_UK: typeof PHONE_UK;
|
|
523
|
+
declare const index_PHONE_US: typeof PHONE_US;
|
|
524
|
+
declare const index_PHONE_WITH_CODE: typeof PHONE_WITH_CODE;
|
|
525
|
+
declare const index_PIN_INDIA: typeof PIN_INDIA;
|
|
526
|
+
declare const index_PLZ_GERMANY: typeof PLZ_GERMANY;
|
|
527
|
+
declare const index_POSITIVE_INTEGER: typeof POSITIVE_INTEGER;
|
|
528
|
+
declare const index_POSTAL_CANADA: typeof POSTAL_CANADA;
|
|
529
|
+
declare const index_POSTAL_GENERIC: typeof POSTAL_GENERIC;
|
|
530
|
+
declare const index_POSTAL_UK: typeof POSTAL_UK;
|
|
136
531
|
type index_PhoneCode = PhoneCode;
|
|
532
|
+
declare const index_REGEX: typeof REGEX;
|
|
533
|
+
declare const index_RGBA_COLOR: typeof RGBA_COLOR;
|
|
534
|
+
declare const index_RGB_COLOR: typeof RGB_COLOR;
|
|
535
|
+
declare const index_SAFE_FILENAME: typeof SAFE_FILENAME;
|
|
536
|
+
declare const index_SEMVER: typeof SEMVER;
|
|
537
|
+
declare const index_SEOConfig: typeof SEOConfig;
|
|
538
|
+
declare const index_SLUG: typeof SLUG;
|
|
539
|
+
declare const index_SSN_US: typeof SSN_US;
|
|
540
|
+
declare const index_SUBDOMAIN: typeof SUBDOMAIN;
|
|
541
|
+
declare const index_SocialLinks: typeof SocialLinks;
|
|
137
542
|
type index_State = State;
|
|
543
|
+
declare const index_TIME_12H: typeof TIME_12H;
|
|
544
|
+
declare const index_TIME_24H: typeof TIME_24H;
|
|
545
|
+
declare const index_TIME_24H_SECONDS: typeof TIME_24H_SECONDS;
|
|
138
546
|
type index_Timezone = Timezone;
|
|
547
|
+
declare const index_URL_BASIC: typeof URL_BASIC;
|
|
548
|
+
declare const index_URL_OPTIONAL_PROTOCOL: typeof URL_OPTIONAL_PROTOCOL;
|
|
549
|
+
declare const index_URL_STRICT: typeof URL_STRICT;
|
|
550
|
+
declare const index_USERNAME: typeof USERNAME;
|
|
551
|
+
declare const index_USERNAME_ALPHA_START: typeof USERNAME_ALPHA_START;
|
|
552
|
+
declare const index_UUID: typeof UUID;
|
|
553
|
+
declare const index_UUID_V4: typeof UUID_V4;
|
|
554
|
+
declare const index_VEHICLE_INDIA: typeof VEHICLE_INDIA;
|
|
555
|
+
declare const index_VIDEO_EXT: typeof VIDEO_EXT;
|
|
556
|
+
declare const index_VISA: typeof VISA;
|
|
557
|
+
declare const index_ZIP_US: typeof ZIP_US;
|
|
139
558
|
declare const index_brands: typeof brands;
|
|
559
|
+
declare const index_codeToFlag: typeof codeToFlag;
|
|
140
560
|
declare const index_countries: typeof countries;
|
|
561
|
+
declare const index_createAppConfig: typeof createAppConfig;
|
|
141
562
|
declare const index_currencies: typeof currencies;
|
|
563
|
+
declare const index_detectCurrentBrand: typeof detectCurrentBrand;
|
|
142
564
|
declare const index_formatCurrency: typeof formatCurrency;
|
|
143
565
|
declare const index_formatCurrencyNative: typeof formatCurrencyNative;
|
|
566
|
+
declare const index_getAllBrandIds: typeof getAllBrandIds;
|
|
144
567
|
declare const index_getAllBrandKeys: typeof getAllBrandKeys;
|
|
145
|
-
declare const index_getAllBrands: typeof getAllBrands;
|
|
146
568
|
declare const index_getAllCities: typeof getAllCities;
|
|
569
|
+
declare const index_getAllCountriesWithFlags: typeof getAllCountriesWithFlags;
|
|
570
|
+
declare const index_getAppConfigByDomain: typeof getAppConfigByDomain;
|
|
147
571
|
declare const index_getBrand: typeof getBrand;
|
|
148
|
-
declare const
|
|
572
|
+
declare const index_getBrandById: typeof getBrandById;
|
|
149
573
|
declare const index_getCitiesByState: typeof getCitiesByState;
|
|
150
574
|
declare const index_getCountriesByContinent: typeof getCountriesByContinent;
|
|
151
575
|
declare const index_getCountryByCode: typeof getCountryByCode;
|
|
152
576
|
declare const index_getCountryByName: typeof getCountryByName;
|
|
577
|
+
declare const index_getCountryWithFlag: typeof getCountryWithFlag;
|
|
153
578
|
declare const index_getCurrencyByCode: typeof getCurrencyByCode;
|
|
154
|
-
declare const
|
|
579
|
+
declare const index_getFlag: typeof getFlag;
|
|
155
580
|
declare const index_getPhoneCodeByCountry: typeof getPhoneCodeByCountry;
|
|
156
581
|
declare const index_getPhoneCodesByPrefix: typeof getPhoneCodesByPrefix;
|
|
157
582
|
declare const index_getStatesByCountry: typeof getStatesByCountry;
|
|
583
|
+
declare const index_getThemedLogo: typeof getThemedLogo;
|
|
158
584
|
declare const index_getTimezoneByName: typeof getTimezoneByName;
|
|
159
585
|
declare const index_getTimezonesByOffset: typeof getTimezonesByOffset;
|
|
160
586
|
declare const index_phoneCodes: typeof phoneCodes;
|
|
@@ -165,7 +591,7 @@ declare const index_searchTimezones: typeof searchTimezones;
|
|
|
165
591
|
declare const index_sortTimezonesByOffset: typeof sortTimezonesByOffset;
|
|
166
592
|
declare const index_timezones: typeof timezones;
|
|
167
593
|
declare namespace index {
|
|
168
|
-
export { type index_City as City, type index_CompanyBrand as CompanyBrand, type index_Country as Country, type index_Currency as Currency, type index_Logo as Logo, type index_LogoVariants as LogoVariants, type index_PhoneCode as PhoneCode, type index_State as State, type index_Timezone as Timezone, index_brands as brands, index_countries as countries, index_currencies as currencies, index_formatCurrency as formatCurrency, index_formatCurrencyNative as formatCurrencyNative, index_getAllBrandKeys as getAllBrandKeys,
|
|
594
|
+
export { index_AADHAAR_INDIA as AADHAAR_INDIA, index_ALPHANUMERIC as ALPHANUMERIC, index_AMEX as AMEX, index_APPS as APPS, index_ARCHIVE_EXT as ARCHIVE_EXT, index_AUDIO_EXT as AUDIO_EXT, index_AppConfig as AppConfig, index_BASE64 as BASE64, index_BRANDS as BRANDS, index_BrandColors as BrandColors, index_BrandIdentity as BrandIdentity, index_CARD_EXPIRY as CARD_EXPIRY, index_CREDIT_CARD as CREDIT_CARD, index_CUID as CUID, index_CUID2 as CUID2, index_CVV as CVV, type index_City as City, type index_CompanyBrand as CompanyBrand, index_ContactInfo as ContactInfo, type index_Country as Country, type index_CountryWithFlag as CountryWithFlag, type index_Currency as Currency, index_DATETIME_ISO as DATETIME_ISO, index_DATE_DMY as DATE_DMY, index_DATE_ISO as DATE_ISO, index_DATE_MDY as DATE_MDY, index_DECIMAL as DECIMAL, index_DISCOVER as DISCOVER, index_DL_INDIA as DL_INDIA, index_DOCUMENT_EXT as DOCUMENT_EXT, index_DOMAIN as DOMAIN, index_EMAIL as EMAIL, index_EMAIL_COMMON_DOMAINS as EMAIL_COMMON_DOMAINS, index_EMAIL_RFC5322 as EMAIL_RFC5322, index_EMOJI as EMOJI, index_GST_INDIA as GST_INDIA, index_HANDLE as HANDLE, index_HASHTAG as HASHTAG, index_HAS_DIGIT as HAS_DIGIT, index_HAS_LOWERCASE as HAS_LOWERCASE, index_HAS_SPECIAL as HAS_SPECIAL, index_HAS_UPPERCASE as HAS_UPPERCASE, index_HEX_COLOR as HEX_COLOR, index_HEX_COLOR_ALPHA as HEX_COLOR_ALPHA, index_HSL_COLOR as HSL_COLOR, index_HTML_TAG as HTML_TAG, index_IFSC_INDIA as IFSC_INDIA, index_IMAGE_EXT as IMAGE_EXT, index_IPV4 as IPV4, index_IPV6 as IPV6, index_JSON_STRING as JSON_STRING, index_JWT as JWT, index_LATITUDE as LATITUDE, index_LETTERS_ONLY as LETTERS_ONLY, index_LOCALHOST as LOCALHOST, index_LONGITUDE as LONGITUDE, type index_Logo as Logo, index_LogoSet as LogoSet, type index_LogoVariants as LogoVariants, index_MAC_ADDRESS as MAC_ADDRESS, index_MASTERCARD as MASTERCARD, index_MENTION as MENTION, index_MONGO_OBJECT_ID as MONGO_OBJECT_ID, index_NANOID as NANOID, index_NON_NEGATIVE_INTEGER as NON_NEGATIVE_INTEGER, index_NO_SPECIAL_CHARS as NO_SPECIAL_CHARS, index_NO_WHITESPACE as NO_WHITESPACE, index_NUMBERS_ONLY as NUMBERS_ONLY, index_PAN_INDIA as PAN_INDIA, index_PASSWORD_ALPHANUMERIC as PASSWORD_ALPHANUMERIC, index_PASSWORD_MEDIUM as PASSWORD_MEDIUM, index_PASSWORD_MIN_8 as PASSWORD_MIN_8, index_PASSWORD_STRONG as PASSWORD_STRONG, index_PASSWORD_VERY_STRONG as PASSWORD_VERY_STRONG, index_PHONE_10_DIGIT as PHONE_10_DIGIT, index_PHONE_INDIA as PHONE_INDIA, index_PHONE_INTERNATIONAL as PHONE_INTERNATIONAL, index_PHONE_UK as PHONE_UK, index_PHONE_US as PHONE_US, index_PHONE_WITH_CODE as PHONE_WITH_CODE, index_PIN_INDIA as PIN_INDIA, index_PLZ_GERMANY as PLZ_GERMANY, index_POSITIVE_INTEGER as POSITIVE_INTEGER, index_POSTAL_CANADA as POSTAL_CANADA, index_POSTAL_GENERIC as POSTAL_GENERIC, index_POSTAL_UK as POSTAL_UK, type index_PhoneCode as PhoneCode, index_REGEX as REGEX, index_RGBA_COLOR as RGBA_COLOR, index_RGB_COLOR as RGB_COLOR, index_SAFE_FILENAME as SAFE_FILENAME, index_SEMVER as SEMVER, index_SEOConfig as SEOConfig, index_SLUG as SLUG, index_SSN_US as SSN_US, index_SUBDOMAIN as SUBDOMAIN, index_SocialLinks as SocialLinks, type index_State as State, index_TIME_12H as TIME_12H, index_TIME_24H as TIME_24H, index_TIME_24H_SECONDS as TIME_24H_SECONDS, type index_Timezone as Timezone, index_URL_BASIC as URL_BASIC, index_URL_OPTIONAL_PROTOCOL as URL_OPTIONAL_PROTOCOL, index_URL_STRICT as URL_STRICT, index_USERNAME as USERNAME, index_USERNAME_ALPHA_START as USERNAME_ALPHA_START, index_UUID as UUID, index_UUID_V4 as UUID_V4, index_VEHICLE_INDIA as VEHICLE_INDIA, index_VIDEO_EXT as VIDEO_EXT, index_VISA as VISA, index_ZIP_US as ZIP_US, index_brands as brands, index_codeToFlag as codeToFlag, index_countries as countries, index_createAppConfig as createAppConfig, index_currencies as currencies, index_detectCurrentBrand as detectCurrentBrand, index_formatCurrency as formatCurrency, index_formatCurrencyNative as formatCurrencyNative, index_getAllBrandIds as getAllBrandIds, index_getAllBrandKeys as getAllBrandKeys, getAllBrands$1 as getAllBrands, index_getAllCities as getAllCities, index_getAllCountriesWithFlags as getAllCountriesWithFlags, index_getAppConfigByDomain as getAppConfigByDomain, index_getBrand as getBrand, getBrandByDomain$1 as getBrandByDomain, index_getBrandById as getBrandById, index_getCitiesByState as getCitiesByState, index_getCountriesByContinent as getCountriesByContinent, index_getCountryByCode as getCountryByCode, index_getCountryByName as getCountryByName, index_getCountryWithFlag as getCountryWithFlag, index_getCurrencyByCode as getCurrencyByCode, index_getFlag as getFlag, getAllBrands as getLegacyAllBrands, getBrandByDomain as getLegacyBrandByDomain, getLogo as getLegacyLogo, getLogo$1 as getLogo, index_getPhoneCodeByCountry as getPhoneCodeByCountry, index_getPhoneCodesByPrefix as getPhoneCodesByPrefix, index_getStatesByCountry as getStatesByCountry, index_getThemedLogo as getThemedLogo, index_getTimezoneByName as getTimezoneByName, index_getTimezonesByOffset as getTimezonesByOffset, brands as legacyBrands, index_phoneCodes as phoneCodes, index_searchCountries as searchCountries, index_searchCurrencies as searchCurrencies, index_searchPhoneCodes as searchPhoneCodes, index_searchTimezones as searchTimezones, index_sortTimezonesByOffset as sortTimezonesByOffset, index_timezones as timezones };
|
|
169
595
|
}
|
|
170
596
|
|
|
171
597
|
export { index as data };
|