@isvalid-dev/sdk 0.2.1 → 0.4.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 +51 -1
- package/dist/index.cjs +121 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +504 -1
- package/dist/index.d.ts +504 -1
- package/dist/index.js +121 -2
- package/dist/index.js.map +1 -1
- package/package.json +37 -4
package/dist/index.d.cts
CHANGED
|
@@ -205,10 +205,32 @@ type MacResponse = {
|
|
|
205
205
|
isLocal: boolean;
|
|
206
206
|
isBroadcast: boolean;
|
|
207
207
|
};
|
|
208
|
+
type NetPortResponse = {
|
|
209
|
+
valid: false;
|
|
210
|
+
} | {
|
|
211
|
+
valid: true;
|
|
212
|
+
port: number;
|
|
213
|
+
range: string;
|
|
214
|
+
wellKnown: boolean;
|
|
215
|
+
serviceName: string | null;
|
|
216
|
+
protocol: string | null;
|
|
217
|
+
description: string | null;
|
|
218
|
+
};
|
|
219
|
+
type NetPortListItem = {
|
|
220
|
+
port: number;
|
|
221
|
+
serviceName: string;
|
|
222
|
+
protocol: string;
|
|
223
|
+
description: string;
|
|
224
|
+
};
|
|
208
225
|
|
|
226
|
+
interface NetPortNamespace {
|
|
227
|
+
(value: string): Promise<NetPortResponse>;
|
|
228
|
+
list(): Promise<NetPortListItem[]>;
|
|
229
|
+
}
|
|
209
230
|
interface NetNamespace {
|
|
210
231
|
ip(value: string): Promise<IpResponse>;
|
|
211
232
|
mac(value: string): Promise<MacResponse>;
|
|
233
|
+
port: NetPortNamespace;
|
|
212
234
|
}
|
|
213
235
|
|
|
214
236
|
type PeselResponse = {
|
|
@@ -277,6 +299,46 @@ type KrsResponse = {
|
|
|
277
299
|
number: string;
|
|
278
300
|
krs?: KrsLookup;
|
|
279
301
|
};
|
|
302
|
+
type CeidgResponse = {
|
|
303
|
+
valid: false;
|
|
304
|
+
} | {
|
|
305
|
+
valid: true;
|
|
306
|
+
nip: string;
|
|
307
|
+
ceidg?: {
|
|
308
|
+
checked: boolean;
|
|
309
|
+
found?: boolean;
|
|
310
|
+
reason?: string;
|
|
311
|
+
status?: string | null;
|
|
312
|
+
firstName?: string | null;
|
|
313
|
+
lastName?: string | null;
|
|
314
|
+
businessName?: string | null;
|
|
315
|
+
regon?: string | null;
|
|
316
|
+
city?: string | null;
|
|
317
|
+
postalCode?: string | null;
|
|
318
|
+
street?: string | null;
|
|
319
|
+
houseNumber?: string | null;
|
|
320
|
+
flatNumber?: string | null;
|
|
321
|
+
startDate?: string | null;
|
|
322
|
+
pkd?: string[];
|
|
323
|
+
primaryPkd?: string | null;
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
type PkdResponse = {
|
|
327
|
+
valid: false;
|
|
328
|
+
error?: string;
|
|
329
|
+
} | {
|
|
330
|
+
valid: true;
|
|
331
|
+
code: string;
|
|
332
|
+
name: string;
|
|
333
|
+
section: string;
|
|
334
|
+
sectionName: string;
|
|
335
|
+
division: string;
|
|
336
|
+
divisionName: string | null;
|
|
337
|
+
group: string;
|
|
338
|
+
groupName: string | null;
|
|
339
|
+
class: string;
|
|
340
|
+
className: string | null;
|
|
341
|
+
};
|
|
280
342
|
|
|
281
343
|
interface PlNamespace {
|
|
282
344
|
pesel(value: string): Promise<PeselResponse>;
|
|
@@ -286,6 +348,10 @@ interface PlNamespace {
|
|
|
286
348
|
krs(value: string, opts?: {
|
|
287
349
|
lookup?: boolean;
|
|
288
350
|
}): Promise<KrsResponse>;
|
|
351
|
+
ceidg(value: string, opts?: {
|
|
352
|
+
lookup?: boolean;
|
|
353
|
+
}): Promise<CeidgResponse>;
|
|
354
|
+
pkd(value: string): Promise<PkdResponse>;
|
|
289
355
|
}
|
|
290
356
|
|
|
291
357
|
type CnpjResponse = {
|
|
@@ -368,6 +434,245 @@ interface GbNamespace {
|
|
|
368
434
|
sortCode(value: string): Promise<SortCodeResponse>;
|
|
369
435
|
}
|
|
370
436
|
|
|
437
|
+
type HsCodeResponse = {
|
|
438
|
+
valid: false;
|
|
439
|
+
code?: string;
|
|
440
|
+
level?: string;
|
|
441
|
+
error?: string;
|
|
442
|
+
} | {
|
|
443
|
+
valid: true;
|
|
444
|
+
code: string;
|
|
445
|
+
level: string;
|
|
446
|
+
description: string;
|
|
447
|
+
formatted: string;
|
|
448
|
+
chapter?: {
|
|
449
|
+
code: string;
|
|
450
|
+
description: string;
|
|
451
|
+
} | null;
|
|
452
|
+
heading?: {
|
|
453
|
+
code: string;
|
|
454
|
+
description: string;
|
|
455
|
+
} | null;
|
|
456
|
+
};
|
|
457
|
+
interface HsCodeListItem {
|
|
458
|
+
code: string;
|
|
459
|
+
level: string;
|
|
460
|
+
description: string;
|
|
461
|
+
}
|
|
462
|
+
type HsCodeListResponse = HsCodeListItem[];
|
|
463
|
+
|
|
464
|
+
interface HsCodeNamespace {
|
|
465
|
+
(value: string): Promise<HsCodeResponse>;
|
|
466
|
+
list(opts?: {
|
|
467
|
+
chapter?: string;
|
|
468
|
+
level?: string;
|
|
469
|
+
}): Promise<HsCodeListResponse>;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
type Gs1PrefixResponse = {
|
|
473
|
+
valid: false;
|
|
474
|
+
prefix?: string;
|
|
475
|
+
error?: string;
|
|
476
|
+
} | {
|
|
477
|
+
valid: true;
|
|
478
|
+
prefix: string;
|
|
479
|
+
country: string;
|
|
480
|
+
inputType?: string;
|
|
481
|
+
};
|
|
482
|
+
interface Gs1PrefixListItem {
|
|
483
|
+
rangeStart: string;
|
|
484
|
+
rangeEnd: string;
|
|
485
|
+
country: string;
|
|
486
|
+
}
|
|
487
|
+
type Gs1PrefixListResponse = Gs1PrefixListItem[];
|
|
488
|
+
|
|
489
|
+
interface Gs1PrefixNamespace {
|
|
490
|
+
(value: string): Promise<Gs1PrefixResponse>;
|
|
491
|
+
list(): Promise<Gs1PrefixListResponse>;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
type IndustryResponse = {
|
|
495
|
+
valid: false;
|
|
496
|
+
error?: string;
|
|
497
|
+
suggestedSystem?: string;
|
|
498
|
+
} | {
|
|
499
|
+
valid: true;
|
|
500
|
+
system: string;
|
|
501
|
+
edition: string;
|
|
502
|
+
code: string;
|
|
503
|
+
description: string;
|
|
504
|
+
level: string;
|
|
505
|
+
parent: string | null;
|
|
506
|
+
hierarchy: Array<{
|
|
507
|
+
code: string;
|
|
508
|
+
description: string;
|
|
509
|
+
}>;
|
|
510
|
+
};
|
|
511
|
+
interface IndustryListItem {
|
|
512
|
+
code: string;
|
|
513
|
+
level: string;
|
|
514
|
+
parent: string | null;
|
|
515
|
+
description: string;
|
|
516
|
+
}
|
|
517
|
+
type IndustryListResponse = IndustryListItem[];
|
|
518
|
+
|
|
519
|
+
interface IndustryNamespace {
|
|
520
|
+
(value: string, opts?: {
|
|
521
|
+
system?: string;
|
|
522
|
+
}): Promise<IndustryResponse>;
|
|
523
|
+
list(opts: {
|
|
524
|
+
system: string;
|
|
525
|
+
level?: string;
|
|
526
|
+
parent?: string;
|
|
527
|
+
}): Promise<IndustryListResponse>;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
type TimezoneResponse = {
|
|
531
|
+
valid: false;
|
|
532
|
+
} | {
|
|
533
|
+
valid: true;
|
|
534
|
+
timezone: string;
|
|
535
|
+
region: string | null;
|
|
536
|
+
utcOffset: string;
|
|
537
|
+
abbreviation: string | null;
|
|
538
|
+
isDST: boolean;
|
|
539
|
+
};
|
|
540
|
+
type TimezoneListItem = {
|
|
541
|
+
timezone: string;
|
|
542
|
+
region: string | null;
|
|
543
|
+
utcOffset: string;
|
|
544
|
+
abbreviation: string | null;
|
|
545
|
+
isDST: boolean;
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
interface TimezoneNamespace {
|
|
549
|
+
(value: string): Promise<TimezoneResponse>;
|
|
550
|
+
list(opts?: {
|
|
551
|
+
region?: string;
|
|
552
|
+
}): Promise<TimezoneListItem[]>;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
type MimeTypeResponse = {
|
|
556
|
+
valid: false;
|
|
557
|
+
type?: string;
|
|
558
|
+
subtype?: string;
|
|
559
|
+
} | {
|
|
560
|
+
valid: true;
|
|
561
|
+
mime: string;
|
|
562
|
+
type: string;
|
|
563
|
+
subtype: string;
|
|
564
|
+
extensions: string[];
|
|
565
|
+
compressible: boolean | null;
|
|
566
|
+
charset: string | null;
|
|
567
|
+
source: string | null;
|
|
568
|
+
};
|
|
569
|
+
type MimeTypeExtResponse = {
|
|
570
|
+
valid: false;
|
|
571
|
+
extension?: string;
|
|
572
|
+
} | {
|
|
573
|
+
valid: true;
|
|
574
|
+
extension: string;
|
|
575
|
+
mimeTypes: Array<{
|
|
576
|
+
mime: string;
|
|
577
|
+
type: string;
|
|
578
|
+
subtype: string;
|
|
579
|
+
extensions: string[];
|
|
580
|
+
compressible: boolean | null;
|
|
581
|
+
charset: string | null;
|
|
582
|
+
source: string | null;
|
|
583
|
+
}>;
|
|
584
|
+
};
|
|
585
|
+
type MimeTypeListItem = {
|
|
586
|
+
mime: string;
|
|
587
|
+
type: string;
|
|
588
|
+
subtype: string;
|
|
589
|
+
extensions: string[];
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
interface MimeTypeNamespace {
|
|
593
|
+
(value: string): Promise<MimeTypeResponse>;
|
|
594
|
+
ext(value: string): Promise<MimeTypeExtResponse>;
|
|
595
|
+
list(opts?: {
|
|
596
|
+
type?: string;
|
|
597
|
+
}): Promise<MimeTypeListItem[]>;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
type HttpStatusResponse = {
|
|
601
|
+
valid: false;
|
|
602
|
+
} | {
|
|
603
|
+
valid: true;
|
|
604
|
+
code: number;
|
|
605
|
+
reasonPhrase: string;
|
|
606
|
+
category: string;
|
|
607
|
+
};
|
|
608
|
+
type HttpStatusListItem = {
|
|
609
|
+
code: number;
|
|
610
|
+
reasonPhrase: string;
|
|
611
|
+
category: string;
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
interface HttpStatusNamespace {
|
|
615
|
+
(value: string): Promise<HttpStatusResponse>;
|
|
616
|
+
list(): Promise<HttpStatusListItem[]>;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
type SwiftMtResponse = {
|
|
620
|
+
valid: false;
|
|
621
|
+
} | {
|
|
622
|
+
valid: true;
|
|
623
|
+
type: string;
|
|
624
|
+
category: number;
|
|
625
|
+
group: string;
|
|
626
|
+
description: string;
|
|
627
|
+
};
|
|
628
|
+
type SwiftMtListItem = {
|
|
629
|
+
type: string;
|
|
630
|
+
category: number;
|
|
631
|
+
group: string;
|
|
632
|
+
description: string;
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
interface SwiftMtNamespace {
|
|
636
|
+
(value: string): Promise<SwiftMtResponse>;
|
|
637
|
+
list(opts?: {
|
|
638
|
+
category?: number;
|
|
639
|
+
}): Promise<SwiftMtListItem[]>;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
type LocodeResponse = {
|
|
643
|
+
valid: false;
|
|
644
|
+
} | {
|
|
645
|
+
valid: true;
|
|
646
|
+
locode: string;
|
|
647
|
+
country: string;
|
|
648
|
+
location: string;
|
|
649
|
+
name: string | null;
|
|
650
|
+
nameAscii: string | null;
|
|
651
|
+
subdivision: string | null;
|
|
652
|
+
functions: string[];
|
|
653
|
+
iata: string | null;
|
|
654
|
+
coordinates: string | null;
|
|
655
|
+
found: boolean;
|
|
656
|
+
};
|
|
657
|
+
type LocodeListItem = {
|
|
658
|
+
locode: string;
|
|
659
|
+
country: string;
|
|
660
|
+
location: string;
|
|
661
|
+
name: string;
|
|
662
|
+
nameAscii: string;
|
|
663
|
+
subdivision: string | null;
|
|
664
|
+
functions: string[];
|
|
665
|
+
iata: string | null;
|
|
666
|
+
coordinates: string | null;
|
|
667
|
+
};
|
|
668
|
+
|
|
669
|
+
interface LocodeNamespace {
|
|
670
|
+
(value: string): Promise<LocodeResponse>;
|
|
671
|
+
list(opts: {
|
|
672
|
+
country: string;
|
|
673
|
+
}): Promise<LocodeListItem[]>;
|
|
674
|
+
}
|
|
675
|
+
|
|
371
676
|
type EmailResponse = {
|
|
372
677
|
valid: false;
|
|
373
678
|
} | {
|
|
@@ -713,6 +1018,172 @@ type CreditCardResponse = {
|
|
|
713
1018
|
valid: true;
|
|
714
1019
|
type: string;
|
|
715
1020
|
};
|
|
1021
|
+
type CasResponse = {
|
|
1022
|
+
valid: false;
|
|
1023
|
+
error?: string;
|
|
1024
|
+
} | {
|
|
1025
|
+
valid: true;
|
|
1026
|
+
formatted: string;
|
|
1027
|
+
};
|
|
1028
|
+
type EoriResponse = {
|
|
1029
|
+
valid: false;
|
|
1030
|
+
countryCode?: string;
|
|
1031
|
+
country?: string;
|
|
1032
|
+
error?: string;
|
|
1033
|
+
} | {
|
|
1034
|
+
valid: true;
|
|
1035
|
+
countryCode: string;
|
|
1036
|
+
country: string;
|
|
1037
|
+
identifier: string;
|
|
1038
|
+
formatted: string;
|
|
1039
|
+
ec?: {
|
|
1040
|
+
checked: boolean;
|
|
1041
|
+
valid?: boolean;
|
|
1042
|
+
statusDescr?: string | null;
|
|
1043
|
+
name?: string | null;
|
|
1044
|
+
street?: string | null;
|
|
1045
|
+
postalCode?: string | null;
|
|
1046
|
+
city?: string | null;
|
|
1047
|
+
reason?: string;
|
|
1048
|
+
};
|
|
1049
|
+
};
|
|
1050
|
+
type OrcidResponse = {
|
|
1051
|
+
valid: false;
|
|
1052
|
+
error?: string;
|
|
1053
|
+
} | {
|
|
1054
|
+
valid: true;
|
|
1055
|
+
formatted: string;
|
|
1056
|
+
uri: string;
|
|
1057
|
+
profile?: {
|
|
1058
|
+
found: boolean;
|
|
1059
|
+
givenNames?: string | null;
|
|
1060
|
+
familyName?: string | null;
|
|
1061
|
+
organization?: string | null;
|
|
1062
|
+
reason?: string;
|
|
1063
|
+
};
|
|
1064
|
+
};
|
|
1065
|
+
type DoiResponse = {
|
|
1066
|
+
valid: false;
|
|
1067
|
+
error?: string;
|
|
1068
|
+
} | {
|
|
1069
|
+
valid: true;
|
|
1070
|
+
doi: string;
|
|
1071
|
+
prefix: string;
|
|
1072
|
+
suffix: string;
|
|
1073
|
+
registrantCode: string;
|
|
1074
|
+
registrant?: string;
|
|
1075
|
+
url: string;
|
|
1076
|
+
metadata?: {
|
|
1077
|
+
found: boolean;
|
|
1078
|
+
title?: string | null;
|
|
1079
|
+
authors?: string[] | null;
|
|
1080
|
+
publisher?: string | null;
|
|
1081
|
+
type?: string | null;
|
|
1082
|
+
issued?: unknown;
|
|
1083
|
+
reason?: string;
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
type BarcodeResponse = {
|
|
1087
|
+
valid: false;
|
|
1088
|
+
error?: string;
|
|
1089
|
+
} | {
|
|
1090
|
+
valid: true;
|
|
1091
|
+
type: string;
|
|
1092
|
+
data: string;
|
|
1093
|
+
hasCheckDigit?: boolean;
|
|
1094
|
+
checkDigitValid?: boolean | null;
|
|
1095
|
+
encoding?: string;
|
|
1096
|
+
indicator?: string;
|
|
1097
|
+
length?: number;
|
|
1098
|
+
};
|
|
1099
|
+
type Base64Response = {
|
|
1100
|
+
valid: false;
|
|
1101
|
+
error?: string;
|
|
1102
|
+
} | {
|
|
1103
|
+
valid: true;
|
|
1104
|
+
variant: 'standard' | 'url-safe' | 'ambiguous';
|
|
1105
|
+
isPadded: boolean;
|
|
1106
|
+
decodedLength: number;
|
|
1107
|
+
};
|
|
1108
|
+
type EthAddressResponse = {
|
|
1109
|
+
valid: false;
|
|
1110
|
+
} | {
|
|
1111
|
+
valid: true;
|
|
1112
|
+
address: string;
|
|
1113
|
+
isChecksumValid: boolean;
|
|
1114
|
+
};
|
|
1115
|
+
type CronResponse = {
|
|
1116
|
+
valid: false;
|
|
1117
|
+
} | {
|
|
1118
|
+
valid: true;
|
|
1119
|
+
expression: string;
|
|
1120
|
+
fields: number;
|
|
1121
|
+
hasSeconds: boolean;
|
|
1122
|
+
humanReadable: string | null;
|
|
1123
|
+
nextRun: string;
|
|
1124
|
+
nextRuns: string[];
|
|
1125
|
+
};
|
|
1126
|
+
type DomainResponse = {
|
|
1127
|
+
valid: false;
|
|
1128
|
+
} | {
|
|
1129
|
+
valid: true;
|
|
1130
|
+
domain: string;
|
|
1131
|
+
tld: string;
|
|
1132
|
+
sld: string | null;
|
|
1133
|
+
isIDN: boolean;
|
|
1134
|
+
dnsValid: boolean;
|
|
1135
|
+
hasA: boolean;
|
|
1136
|
+
hasAAAA: boolean;
|
|
1137
|
+
};
|
|
1138
|
+
type RegexResponse = {
|
|
1139
|
+
valid: false;
|
|
1140
|
+
error?: string;
|
|
1141
|
+
} | {
|
|
1142
|
+
valid: true;
|
|
1143
|
+
pattern: string;
|
|
1144
|
+
flags: string | null;
|
|
1145
|
+
namedGroups: string[];
|
|
1146
|
+
};
|
|
1147
|
+
type DunsResponse = {
|
|
1148
|
+
valid: false;
|
|
1149
|
+
} | {
|
|
1150
|
+
valid: true;
|
|
1151
|
+
formatted: string;
|
|
1152
|
+
duns?: {
|
|
1153
|
+
checked: boolean;
|
|
1154
|
+
found?: boolean;
|
|
1155
|
+
reason?: string;
|
|
1156
|
+
name?: string | null;
|
|
1157
|
+
countryCode?: string | null;
|
|
1158
|
+
city?: string | null;
|
|
1159
|
+
region?: string | null;
|
|
1160
|
+
postalCode?: string | null;
|
|
1161
|
+
street?: string | null;
|
|
1162
|
+
isActive?: boolean | null;
|
|
1163
|
+
};
|
|
1164
|
+
};
|
|
1165
|
+
type TimestampResponse = {
|
|
1166
|
+
valid: false;
|
|
1167
|
+
} | {
|
|
1168
|
+
valid: true;
|
|
1169
|
+
type: 'datetime' | 'date' | 'week' | 'ordinal' | 'duration' | 'interval';
|
|
1170
|
+
date?: string;
|
|
1171
|
+
time?: string;
|
|
1172
|
+
utcOffset?: string | null;
|
|
1173
|
+
utc?: string | null;
|
|
1174
|
+
week?: string;
|
|
1175
|
+
ordinal?: string;
|
|
1176
|
+
years?: number;
|
|
1177
|
+
months?: number;
|
|
1178
|
+
weeks?: number;
|
|
1179
|
+
days?: number;
|
|
1180
|
+
hours?: number;
|
|
1181
|
+
minutes?: number;
|
|
1182
|
+
seconds?: number;
|
|
1183
|
+
totalSeconds?: number;
|
|
1184
|
+
start?: Record<string, unknown>;
|
|
1185
|
+
end?: Record<string, unknown>;
|
|
1186
|
+
};
|
|
716
1187
|
|
|
717
1188
|
declare class IsValidError extends Error {
|
|
718
1189
|
readonly status: number;
|
|
@@ -754,6 +1225,14 @@ declare class IsValid {
|
|
|
754
1225
|
readonly in: InNamespace;
|
|
755
1226
|
readonly us: UsNamespace;
|
|
756
1227
|
readonly gb: GbNamespace;
|
|
1228
|
+
readonly hsCode: HsCodeNamespace;
|
|
1229
|
+
readonly gs1Prefix: Gs1PrefixNamespace;
|
|
1230
|
+
readonly industry: IndustryNamespace;
|
|
1231
|
+
readonly timezone: TimezoneNamespace;
|
|
1232
|
+
readonly mimeType: MimeTypeNamespace;
|
|
1233
|
+
readonly httpStatus: HttpStatusNamespace;
|
|
1234
|
+
readonly swiftMt: SwiftMtNamespace;
|
|
1235
|
+
readonly locode: LocodeNamespace;
|
|
757
1236
|
constructor(config: IsValidConfig);
|
|
758
1237
|
email(value: string, opts?: {
|
|
759
1238
|
checkMx?: boolean;
|
|
@@ -802,7 +1281,31 @@ declare class IsValid {
|
|
|
802
1281
|
gln(value: string): Promise<GlnResponse>;
|
|
803
1282
|
qr(value: string): Promise<QrResponse>;
|
|
804
1283
|
creditCard(number: string): Promise<CreditCardResponse>;
|
|
1284
|
+
cas(value: string): Promise<CasResponse>;
|
|
1285
|
+
eori(value: string, opts?: {
|
|
1286
|
+
check?: boolean;
|
|
1287
|
+
}): Promise<EoriResponse>;
|
|
1288
|
+
orcid(value: string, opts?: {
|
|
1289
|
+
lookup?: boolean;
|
|
1290
|
+
}): Promise<OrcidResponse>;
|
|
1291
|
+
doi(value: string, opts?: {
|
|
1292
|
+
lookup?: boolean;
|
|
1293
|
+
}): Promise<DoiResponse>;
|
|
1294
|
+
barcode(value: string, opts?: {
|
|
1295
|
+
type?: string;
|
|
1296
|
+
}): Promise<BarcodeResponse>;
|
|
1297
|
+
base64(value: string): Promise<Base64Response>;
|
|
1298
|
+
ethAddress(value: string): Promise<EthAddressResponse>;
|
|
1299
|
+
cron(value: string): Promise<CronResponse>;
|
|
1300
|
+
domain(value: string): Promise<DomainResponse>;
|
|
1301
|
+
regex(pattern: string, opts?: {
|
|
1302
|
+
flags?: string;
|
|
1303
|
+
}): Promise<RegexResponse>;
|
|
1304
|
+
duns(value: string, opts?: {
|
|
1305
|
+
lookup?: boolean;
|
|
1306
|
+
}): Promise<DunsResponse>;
|
|
1307
|
+
timestamp(value: string): Promise<TimestampResponse>;
|
|
805
1308
|
}
|
|
806
1309
|
declare function createClient(config: IsValidConfig): IsValid;
|
|
807
1310
|
|
|
808
|
-
export { type AbaResponse, type AbnResponse, type AuNamespace, type BicResponse, type BooleanResponse, type BrNamespace, type BtcAddressResponse, type CfiResponse, type CnpjResponse, type ColorResponse, type ContainerCodeResponse, type CountryListItem, type CountryNamespace, type CountryResponse, type CpfResponse, type CreditCardResponse, type CurrencyListItem, type CurrencyNamespace, type CurrencyResponse, type CusipResponse, type DateResponse, type DtiResponse, type EanResponse, type EmailResponse, type EsNamespace, type GbNamespace, type GlnResponse, type GpsResponse, type GstinResponse, type IataAirlineListItem, type IataAirlineNamespace, type IataAirlineResponse, type IataAirportResponse, type IataFlightResponse, type IataNamespace, type IbanResponse, type ImeiResponse, type InNamespace, type InvalidResponse, type IpResponse, IsValid, IsValidAuthError, type IsValidConfig, IsValidError, IsValidRateLimitError, type IsbnResponse, type IsinResponse, type IssnResponse, type JwtResponse, type KrsAddress, type KrsLookup, type KrsResponse, type LanguageListItem, type LanguageNamespace, type LanguageResponse, type LeiEntity, type LeiLou, type LeiLouItem, type LeiLousResponse, type LeiNamespace, type LeiResponse, type LeiSearchOptions, type LeiSearchResponse, type LeiSearchResult, type MacResponse, type MicResponse, type NetNamespace, type NifResponse, type NpiResponse, type NutsResponse, type PeselResponse, type PhoneResponse, type PlNamespace, type PostalCodeResponse, type QrResponse, type RegonLookup, type RegonResponse, type RetryConfig, type SemverResponse, type SortCodeResponse, type SsccResponse, type UrlResponse, type UsNamespace, type UuidResponse, type VatResponse, type VinResponse, createClient };
|
|
1311
|
+
export { type AbaResponse, type AbnResponse, type AuNamespace, type BarcodeResponse, type Base64Response, type BicResponse, type BooleanResponse, type BrNamespace, type BtcAddressResponse, type CasResponse, type CeidgResponse, type CfiResponse, type CnpjResponse, type ColorResponse, type ContainerCodeResponse, type CountryListItem, type CountryNamespace, type CountryResponse, type CpfResponse, type CreditCardResponse, type CronResponse, type CurrencyListItem, type CurrencyNamespace, type CurrencyResponse, type CusipResponse, type DateResponse, type DoiResponse, type DomainResponse, type DtiResponse, type DunsResponse, type EanResponse, type EmailResponse, type EoriResponse, type EsNamespace, type EthAddressResponse, type GbNamespace, type GlnResponse, type GpsResponse, type Gs1PrefixListItem, type Gs1PrefixListResponse, type Gs1PrefixNamespace, type Gs1PrefixResponse, type GstinResponse, type HsCodeListItem, type HsCodeListResponse, type HsCodeNamespace, type HsCodeResponse, type HttpStatusListItem, type HttpStatusNamespace, type HttpStatusResponse, type IataAirlineListItem, type IataAirlineNamespace, type IataAirlineResponse, type IataAirportResponse, type IataFlightResponse, type IataNamespace, type IbanResponse, type ImeiResponse, type InNamespace, type IndustryListItem, type IndustryListResponse, type IndustryNamespace, type IndustryResponse, type InvalidResponse, type IpResponse, IsValid, IsValidAuthError, type IsValidConfig, IsValidError, IsValidRateLimitError, type IsbnResponse, type IsinResponse, type IssnResponse, type JwtResponse, type KrsAddress, type KrsLookup, type KrsResponse, type LanguageListItem, type LanguageNamespace, type LanguageResponse, type LeiEntity, type LeiLou, type LeiLouItem, type LeiLousResponse, type LeiNamespace, type LeiResponse, type LeiSearchOptions, type LeiSearchResponse, type LeiSearchResult, type LocodeListItem, type LocodeNamespace, type LocodeResponse, type MacResponse, type MicResponse, type MimeTypeExtResponse, type MimeTypeListItem, type MimeTypeNamespace, type MimeTypeResponse, type NetNamespace, type NetPortListItem, type NetPortNamespace, type NetPortResponse, type NifResponse, type NpiResponse, type NutsResponse, type OrcidResponse, type PeselResponse, type PhoneResponse, type PkdResponse, type PlNamespace, type PostalCodeResponse, type QrResponse, type RegexResponse, type RegonLookup, type RegonResponse, type RetryConfig, type SemverResponse, type SortCodeResponse, type SsccResponse, type SwiftMtListItem, type SwiftMtNamespace, type SwiftMtResponse, type TimestampResponse, type TimezoneListItem, type TimezoneNamespace, type TimezoneResponse, type UrlResponse, type UsNamespace, type UuidResponse, type VatResponse, type VinResponse, createClient };
|