@parseapi/sdk 0.2.0 → 0.3.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 +26 -3
- package/dist/index.cjs +161 -101
- package/dist/index.d.cts +293 -122
- package/dist/index.d.ts +293 -122
- package/dist/index.js +161 -101
- package/package.json +13 -6
package/dist/index.d.ts
CHANGED
|
@@ -296,6 +296,10 @@ interface Iban {
|
|
|
296
296
|
checksum: string | null;
|
|
297
297
|
/** Bank identifier parsed from the number, not a name. */
|
|
298
298
|
bank: string | null;
|
|
299
|
+
/** Institution name from the national bank-code directory. Null when unsourced. */
|
|
300
|
+
bank_name: string | null;
|
|
301
|
+
/** BIC from that same directory. Null when unsourced or missing. */
|
|
302
|
+
bic: string | null;
|
|
299
303
|
/** Branch identifier when that country has one. */
|
|
300
304
|
branch: string | null;
|
|
301
305
|
account: string | null;
|
|
@@ -307,6 +311,8 @@ interface Npi {
|
|
|
307
311
|
/** Exists in the CMS NPPES registry. */
|
|
308
312
|
registered: boolean | null;
|
|
309
313
|
active: boolean | null;
|
|
314
|
+
/** Date CMS deactivated the NPI, YYYY-MM-DD. Null when still active. */
|
|
315
|
+
deactivated_at: string | null;
|
|
310
316
|
/** On the OIG exclusion list. */
|
|
311
317
|
excluded: boolean | null;
|
|
312
318
|
/** individual or organization. */
|
|
@@ -341,7 +347,7 @@ interface NpiDeep {
|
|
|
341
347
|
/** Enrollment rows. [] when medicare is false. */
|
|
342
348
|
enrollments?: NpiEnrollment[] | null;
|
|
343
349
|
}
|
|
344
|
-
interface
|
|
350
|
+
interface TariffMeasure {
|
|
345
351
|
/** Chapter 99 heading, dotted (9903.01.24). */
|
|
346
352
|
heading: string;
|
|
347
353
|
/** The measure text verbatim. */
|
|
@@ -353,15 +359,15 @@ interface HtsMeasure {
|
|
|
353
359
|
/** Expires, ISO YYYY-MM-DD. Null when open-ended. */
|
|
354
360
|
until: string | null;
|
|
355
361
|
}
|
|
356
|
-
interface
|
|
362
|
+
interface TariffDeep {
|
|
357
363
|
/** The origin country the measures were resolved for. */
|
|
358
364
|
origin?: string | null;
|
|
359
365
|
/** Composed ad valorem percent. Null when the components do not compose cleanly. */
|
|
360
366
|
effective_rate?: number | null;
|
|
361
367
|
/** Every Chapter 99 tariff measure that applies to this code from this origin. */
|
|
362
|
-
measures?:
|
|
368
|
+
measures?: TariffMeasure[] | null;
|
|
363
369
|
}
|
|
364
|
-
interface
|
|
370
|
+
interface Tariff {
|
|
365
371
|
/** Normalized code with dots (8471.30.01.00). */
|
|
366
372
|
hts: string;
|
|
367
373
|
/** The schedule line verbatim. */
|
|
@@ -378,18 +384,18 @@ interface Hts {
|
|
|
378
384
|
other: string | null;
|
|
379
385
|
/** The official release that answered (2026HTSRev17). */
|
|
380
386
|
revision: string;
|
|
381
|
-
deep?: Deep<
|
|
387
|
+
deep?: Deep<TariffDeep>;
|
|
382
388
|
}
|
|
383
|
-
interface
|
|
389
|
+
interface TariffSearchHit {
|
|
384
390
|
hts: string;
|
|
385
391
|
description: string;
|
|
386
392
|
general: string | null;
|
|
387
393
|
}
|
|
388
|
-
interface
|
|
394
|
+
interface TariffSearch {
|
|
389
395
|
q: string;
|
|
390
396
|
revision: string;
|
|
391
397
|
/** Up to 20 tariff lines, best match first. */
|
|
392
|
-
lines:
|
|
398
|
+
lines: TariffSearchHit[];
|
|
393
399
|
}
|
|
394
400
|
interface VinRecall {
|
|
395
401
|
/** Government campaign number. */
|
|
@@ -444,6 +450,8 @@ interface Phone {
|
|
|
444
450
|
/** NPA-derived state code (US/CA). */
|
|
445
451
|
state: string | null;
|
|
446
452
|
state_name: string | null;
|
|
453
|
+
/** Numbering-plan IANA zone. Null when the prefix covers more than one zone, or invalid. Not the handset. */
|
|
454
|
+
timezone: string | null;
|
|
447
455
|
national: string | null;
|
|
448
456
|
international: string | null;
|
|
449
457
|
/** Always empty. The metered proves are their own endpoints: carrier, caller, hlr. */
|
|
@@ -517,6 +525,21 @@ interface Domain {
|
|
|
517
525
|
available: boolean;
|
|
518
526
|
deep?: Deep<DomainDeep>;
|
|
519
527
|
}
|
|
528
|
+
/** Network identity for an autonomous system number. */
|
|
529
|
+
interface Asn {
|
|
530
|
+
asn: number;
|
|
531
|
+
name: string | null;
|
|
532
|
+
country: string | null;
|
|
533
|
+
country_name: string | null;
|
|
534
|
+
}
|
|
535
|
+
/** A normalized 48-bit address. Vendor names the registered assignment holder. */
|
|
536
|
+
interface Mac {
|
|
537
|
+
mac: string;
|
|
538
|
+
valid: boolean;
|
|
539
|
+
vendor: string | null;
|
|
540
|
+
local: boolean | null;
|
|
541
|
+
multicast: boolean | null;
|
|
542
|
+
}
|
|
520
543
|
interface Mx {
|
|
521
544
|
domain: string;
|
|
522
545
|
mx: MxRecord[];
|
|
@@ -869,6 +892,78 @@ interface EmojiSearch {
|
|
|
869
892
|
q: string;
|
|
870
893
|
emojis: Emoji[];
|
|
871
894
|
}
|
|
895
|
+
interface Address {
|
|
896
|
+
address: string | null;
|
|
897
|
+
valid: boolean;
|
|
898
|
+
registered: boolean | null;
|
|
899
|
+
number: string | null;
|
|
900
|
+
street: string | null;
|
|
901
|
+
unit: string | null;
|
|
902
|
+
city: string | null;
|
|
903
|
+
district: string | null;
|
|
904
|
+
district_name: string | null;
|
|
905
|
+
state: string | null;
|
|
906
|
+
state_name: string | null;
|
|
907
|
+
postal: string | null;
|
|
908
|
+
country: string | null;
|
|
909
|
+
country_name: string | null;
|
|
910
|
+
latitude: number | null;
|
|
911
|
+
longitude: number | null;
|
|
912
|
+
deep?: Record<string, unknown>;
|
|
913
|
+
}
|
|
914
|
+
interface AddressSuggestion {
|
|
915
|
+
address: string;
|
|
916
|
+
number: string | null;
|
|
917
|
+
street: string | null;
|
|
918
|
+
unit: string | null;
|
|
919
|
+
city: string | null;
|
|
920
|
+
state: string | null;
|
|
921
|
+
postal: string | null;
|
|
922
|
+
latitude: number | null;
|
|
923
|
+
longitude: number | null;
|
|
924
|
+
}
|
|
925
|
+
interface AddressSearch {
|
|
926
|
+
q: string;
|
|
927
|
+
postal?: string | null;
|
|
928
|
+
city?: string | null;
|
|
929
|
+
state?: string | null;
|
|
930
|
+
country?: string | null;
|
|
931
|
+
addresses: AddressSuggestion[];
|
|
932
|
+
}
|
|
933
|
+
interface CompanyCountry {
|
|
934
|
+
name: string | null;
|
|
935
|
+
blocs: string[];
|
|
936
|
+
tax: string | null;
|
|
937
|
+
}
|
|
938
|
+
interface CompanyDeep {
|
|
939
|
+
country: CompanyCountry | null;
|
|
940
|
+
postal: Postal | null;
|
|
941
|
+
city: City | null;
|
|
942
|
+
}
|
|
943
|
+
interface Company {
|
|
944
|
+
company: string | null;
|
|
945
|
+
valid: boolean;
|
|
946
|
+
registered: boolean | null;
|
|
947
|
+
country: string | null;
|
|
948
|
+
type: string | null;
|
|
949
|
+
name: string | null;
|
|
950
|
+
active: boolean | null;
|
|
951
|
+
activity: string | null;
|
|
952
|
+
address: string | null;
|
|
953
|
+
city: string | null;
|
|
954
|
+
state: string | null;
|
|
955
|
+
state_name: string | null;
|
|
956
|
+
postal: string | null;
|
|
957
|
+
country_name: string | null;
|
|
958
|
+
vat: string | null;
|
|
959
|
+
gst: boolean | null;
|
|
960
|
+
acn: string | null;
|
|
961
|
+
siren: string | null;
|
|
962
|
+
siege: boolean | null;
|
|
963
|
+
kind: string | null;
|
|
964
|
+
invoice: string | null;
|
|
965
|
+
deep?: Deep<CompanyDeep>;
|
|
966
|
+
}
|
|
872
967
|
|
|
873
968
|
/** Every non-2xx response from the API. Branch on `code`, never on `message`. */
|
|
874
969
|
declare class ParseAPIError extends Error {
|
|
@@ -882,146 +977,222 @@ declare class ParseAPIError extends Error {
|
|
|
882
977
|
readonly requestId: string | null;
|
|
883
978
|
constructor(status: number, code: string, message: string, docs: string | null, requestId: string | null);
|
|
884
979
|
}
|
|
980
|
+
interface RequestOptions {
|
|
981
|
+
/** Cancel this call, including any retry wait. */
|
|
982
|
+
signal?: AbortSignal;
|
|
983
|
+
/** Timeout for each attempt, in milliseconds. Overrides the client setting. */
|
|
984
|
+
timeoutMs?: number;
|
|
985
|
+
/** Explicit retry count. Paid attempts can each consume usage. */
|
|
986
|
+
retries?: number;
|
|
987
|
+
}
|
|
885
988
|
interface ParseAPIOptions {
|
|
886
989
|
/** Override https://api.parseapi.com (tests, canaries). Also read from PARSEAPI_BASE_URL. */
|
|
887
990
|
baseUrl?: string;
|
|
888
991
|
/** Per-attempt timeout in milliseconds. Default 10000. */
|
|
889
992
|
timeoutMs?: number;
|
|
890
|
-
/** Retries after the first attempt on network errors / 429 / 5xx. Default 2, 0
|
|
993
|
+
/** Retries after the first attempt on network errors / 429 / 5xx. Default 2 for ordinary calls, 0 for paid checks. An explicit count overrides both. */
|
|
891
994
|
retries?: number;
|
|
892
995
|
/** Custom fetch implementation (instrumentation, proxies). */
|
|
893
996
|
fetch?: typeof fetch;
|
|
894
997
|
}
|
|
998
|
+
type IpOptions = DeepOption & RequestOptions;
|
|
999
|
+
type IpSelfOptions = DeepOption & RequestOptions;
|
|
1000
|
+
type ContinentOptions = RequestOptions;
|
|
1001
|
+
type ContinentCountriesOptions = RequestOptions;
|
|
1002
|
+
type BlocOptions = RequestOptions;
|
|
1003
|
+
type BlocCountriesOptions = RequestOptions;
|
|
1004
|
+
type CountryOptions = RequestOptions;
|
|
1005
|
+
type CountryStatesOptions = RequestOptions;
|
|
1006
|
+
type StateOptions = {
|
|
1007
|
+
country?: string;
|
|
1008
|
+
} & RequestOptions;
|
|
1009
|
+
type StateDistrictsOptions = {
|
|
1010
|
+
country?: string;
|
|
1011
|
+
} & RequestOptions;
|
|
1012
|
+
type DistrictOptions = {
|
|
1013
|
+
country?: string;
|
|
1014
|
+
state?: string;
|
|
1015
|
+
} & RequestOptions;
|
|
1016
|
+
type CityOptions = {
|
|
1017
|
+
country?: string;
|
|
1018
|
+
state?: string;
|
|
1019
|
+
} & RequestOptions;
|
|
1020
|
+
type CityIdOptions = RequestOptions;
|
|
1021
|
+
type CitySearchOptions = {
|
|
1022
|
+
country?: string;
|
|
1023
|
+
state?: string;
|
|
1024
|
+
limit?: number;
|
|
1025
|
+
} & RequestOptions;
|
|
1026
|
+
type CityNearestOptions = RequestOptions;
|
|
1027
|
+
type CityNearbyOptions = {
|
|
1028
|
+
radius?: number;
|
|
1029
|
+
unit?: 'km' | 'mi';
|
|
1030
|
+
country?: string;
|
|
1031
|
+
state?: string;
|
|
1032
|
+
limit?: number;
|
|
1033
|
+
} & RequestOptions;
|
|
1034
|
+
type PostalOptions = {
|
|
1035
|
+
country?: string;
|
|
1036
|
+
} & RequestOptions;
|
|
1037
|
+
type PostalNearbyOptions = {
|
|
1038
|
+
country?: string;
|
|
1039
|
+
radius?: number;
|
|
1040
|
+
unit?: 'km' | 'mi';
|
|
1041
|
+
} & RequestOptions;
|
|
1042
|
+
type PostalDistanceOptions = {
|
|
1043
|
+
country?: string;
|
|
1044
|
+
} & RequestOptions;
|
|
1045
|
+
type AddressOptions = {
|
|
1046
|
+
country?: string;
|
|
1047
|
+
} & DeepOption & RequestOptions;
|
|
1048
|
+
type AddressSearchOptions = {
|
|
1049
|
+
country?: string;
|
|
1050
|
+
postal?: string;
|
|
1051
|
+
city?: string;
|
|
1052
|
+
state?: string;
|
|
1053
|
+
ip?: string;
|
|
1054
|
+
} & RequestOptions;
|
|
1055
|
+
type CompanyOptions = {
|
|
1056
|
+
country?: string;
|
|
1057
|
+
} & DeepOption & RequestOptions;
|
|
1058
|
+
type EmailOptions = DeepOption & RequestOptions;
|
|
1059
|
+
type VatOptions = {
|
|
1060
|
+
country?: string;
|
|
1061
|
+
from?: string;
|
|
1062
|
+
} & DeepOption & RequestOptions;
|
|
1063
|
+
type IbanOptions = {
|
|
1064
|
+
country?: string;
|
|
1065
|
+
} & RequestOptions;
|
|
1066
|
+
type NpiOptions = DeepOption & RequestOptions;
|
|
1067
|
+
type PhoneOptions = {
|
|
1068
|
+
country?: string;
|
|
1069
|
+
} & DeepOption & RequestOptions;
|
|
1070
|
+
type CarrierOptions = {
|
|
1071
|
+
country?: string;
|
|
1072
|
+
} & RequestOptions;
|
|
1073
|
+
type CallerOptions = {
|
|
1074
|
+
country?: string;
|
|
1075
|
+
} & RequestOptions;
|
|
1076
|
+
type HlrOptions = {
|
|
1077
|
+
country?: string;
|
|
1078
|
+
} & RequestOptions;
|
|
1079
|
+
type DomainOptions = DeepOption & RequestOptions;
|
|
1080
|
+
type AsnOptions = RequestOptions;
|
|
1081
|
+
type MacOptions = RequestOptions;
|
|
1082
|
+
type MxOptions = RequestOptions;
|
|
1083
|
+
type UseragentOptions = DeepOption & RequestOptions;
|
|
1084
|
+
type VinOptions = DeepOption & RequestOptions;
|
|
1085
|
+
type TariffOptions = {
|
|
1086
|
+
origin?: string;
|
|
1087
|
+
} & DeepOption & RequestOptions;
|
|
1088
|
+
type TariffSearchOptions = RequestOptions;
|
|
1089
|
+
type CurrencyOptions = RequestOptions;
|
|
1090
|
+
type CurrencyRateOptions = {
|
|
1091
|
+
date?: string;
|
|
1092
|
+
amount?: number;
|
|
1093
|
+
} & RequestOptions;
|
|
1094
|
+
type LanguageOptions = RequestOptions;
|
|
1095
|
+
type NameOptions = RequestOptions;
|
|
1096
|
+
type TimezoneOptions = {
|
|
1097
|
+
at?: string;
|
|
1098
|
+
to?: string;
|
|
1099
|
+
} & RequestOptions;
|
|
1100
|
+
type TimezoneAtOptions = {
|
|
1101
|
+
at?: string;
|
|
1102
|
+
} & RequestOptions;
|
|
1103
|
+
type DateOptions = {
|
|
1104
|
+
format?: 'mdy' | 'dmy';
|
|
1105
|
+
to?: string;
|
|
1106
|
+
} & RequestOptions;
|
|
1107
|
+
type DateTodayOptions = {
|
|
1108
|
+
to?: string;
|
|
1109
|
+
} & RequestOptions;
|
|
1110
|
+
type HolidayOptions = {
|
|
1111
|
+
year?: number;
|
|
1112
|
+
} & RequestOptions;
|
|
1113
|
+
type HolidayDateOptions = RequestOptions;
|
|
1114
|
+
type ElevationOptions = RequestOptions;
|
|
1115
|
+
type PointOptions = DeepOption & RequestOptions;
|
|
1116
|
+
type WeatherOptions = DeepOption & {
|
|
1117
|
+
date?: string;
|
|
1118
|
+
} & RequestOptions;
|
|
1119
|
+
type EmojiOptions = RequestOptions;
|
|
1120
|
+
type EmojiSearchOptions = {
|
|
1121
|
+
limit?: number;
|
|
1122
|
+
} & RequestOptions;
|
|
895
1123
|
interface DeepOption {
|
|
896
|
-
/** Request
|
|
1124
|
+
/** Request richer fields. Availability and usage depend on the endpoint. */
|
|
897
1125
|
deep?: boolean;
|
|
898
1126
|
}
|
|
899
1127
|
declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
|
|
900
|
-
ip: ((ip: string, opts?:
|
|
901
|
-
self: (opts?:
|
|
1128
|
+
ip: ((ip: string, opts?: IpOptions) => Promise<Ip>) & {
|
|
1129
|
+
self: (opts?: IpSelfOptions) => Promise<Ip>;
|
|
1130
|
+
};
|
|
1131
|
+
continent: ((code: string, opts?: ContinentOptions) => Promise<Continent>) & {
|
|
1132
|
+
countries: (code: string, opts?: ContinentCountriesOptions) => Promise<ContinentCountries>;
|
|
902
1133
|
};
|
|
903
|
-
|
|
904
|
-
countries: (code: string) => Promise<
|
|
1134
|
+
bloc: ((code: string, opts?: BlocOptions) => Promise<Bloc>) & {
|
|
1135
|
+
countries: (code: string, opts?: BlocCountriesOptions) => Promise<BlocCountries>;
|
|
905
1136
|
};
|
|
906
|
-
|
|
907
|
-
|
|
1137
|
+
country: ((code: string, opts?: CountryOptions) => Promise<Country>) & {
|
|
1138
|
+
states: (code: string, opts?: CountryStatesOptions) => Promise<CountryStates>;
|
|
908
1139
|
};
|
|
909
|
-
|
|
910
|
-
|
|
1140
|
+
state: ((code: string, opts?: StateOptions) => Promise<State>) & {
|
|
1141
|
+
districts: (code: string, opts?: StateDistrictsOptions) => Promise<StateDistricts>;
|
|
911
1142
|
};
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
1143
|
+
district: (code: string, opts?: DistrictOptions) => Promise<District>;
|
|
1144
|
+
city: ((name: string, opts?: CityOptions) => Promise<City>) & {
|
|
1145
|
+
id: (id: string, opts?: CityIdOptions) => Promise<City>;
|
|
1146
|
+
search: (query: string, opts?: CitySearchOptions) => Promise<CitySearch>;
|
|
1147
|
+
nearest: (lat: number, lon: number, opts?: CityNearestOptions) => Promise<CityNearest>;
|
|
1148
|
+
nearby: (name: string, opts?: CityNearbyOptions) => Promise<CityNearby>;
|
|
918
1149
|
};
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
}) => Promise<District>;
|
|
923
|
-
city: ((name: string, opts?: {
|
|
924
|
-
country?: string;
|
|
925
|
-
state?: string;
|
|
926
|
-
}) => Promise<City>) & {
|
|
927
|
-
id: (id: string) => Promise<City>;
|
|
928
|
-
search: (q: string, opts?: {
|
|
929
|
-
country?: string;
|
|
930
|
-
state?: string;
|
|
931
|
-
limit?: number;
|
|
932
|
-
}) => Promise<CitySearch>;
|
|
933
|
-
nearest: (lat: number, lon: number) => Promise<CityNearest>;
|
|
934
|
-
nearby: (name: string, opts?: {
|
|
935
|
-
radius?: number;
|
|
936
|
-
unit?: "km" | "mi";
|
|
937
|
-
country?: string;
|
|
938
|
-
state?: string;
|
|
939
|
-
limit?: number;
|
|
940
|
-
}) => Promise<CityNearby>;
|
|
1150
|
+
postal: ((code: string, opts?: PostalOptions) => Promise<Postal>) & {
|
|
1151
|
+
nearby: (code: string, opts?: PostalNearbyOptions) => Promise<PostalNearby>;
|
|
1152
|
+
distance: (from: string, to: string, opts?: PostalDistanceOptions) => Promise<PostalDistance>;
|
|
941
1153
|
};
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
}) => Promise<Postal>) & {
|
|
945
|
-
nearby: (code: string, opts?: {
|
|
946
|
-
country?: string;
|
|
947
|
-
radius?: number;
|
|
948
|
-
unit?: "km" | "mi";
|
|
949
|
-
}) => Promise<PostalNearby>;
|
|
950
|
-
distance: (from: string, to: string, opts?: {
|
|
951
|
-
country?: string;
|
|
952
|
-
}) => Promise<PostalDistance>;
|
|
1154
|
+
address: ((address: string, opts?: AddressOptions) => Promise<Address>) & {
|
|
1155
|
+
search: (query: string, opts?: AddressSearchOptions) => Promise<AddressSearch>;
|
|
953
1156
|
};
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
}) => Promise<Caller>;
|
|
972
|
-
hlr: (number: string, opts?: {
|
|
973
|
-
country?: string;
|
|
974
|
-
}) => Promise<Hlr>;
|
|
975
|
-
domain: (domain: string, opts?: DeepOption) => Promise<Domain>;
|
|
976
|
-
mx: (domain: string) => Promise<Mx>;
|
|
977
|
-
useragent: (ua: string, opts?: DeepOption) => Promise<Useragent>;
|
|
978
|
-
vin: (vin: string, opts?: DeepOption) => Promise<Vin>;
|
|
979
|
-
hts: ((code: string, opts?: {
|
|
980
|
-
origin?: string;
|
|
981
|
-
} & DeepOption) => Promise<Hts>) & {
|
|
982
|
-
search: (q: string) => Promise<HtsSearch>;
|
|
1157
|
+
company: (number: string, opts?: CompanyOptions) => Promise<Company>;
|
|
1158
|
+
email: (email: string, opts?: EmailOptions) => Promise<Email>;
|
|
1159
|
+
vat: (number: string, opts?: VatOptions) => Promise<Vat>;
|
|
1160
|
+
iban: (iban: string, opts?: IbanOptions) => Promise<Iban>;
|
|
1161
|
+
npi: (npi: string, opts?: NpiOptions) => Promise<Npi>;
|
|
1162
|
+
phone: (number: string, opts?: PhoneOptions) => Promise<Phone>;
|
|
1163
|
+
carrier: (number: string, opts?: CarrierOptions) => Promise<Carrier>;
|
|
1164
|
+
caller: (number: string, opts?: CallerOptions) => Promise<Caller>;
|
|
1165
|
+
hlr: (number: string, opts?: HlrOptions) => Promise<Hlr>;
|
|
1166
|
+
domain: (domain: string, opts?: DomainOptions) => Promise<Domain>;
|
|
1167
|
+
asn: (asn: string, opts?: AsnOptions) => Promise<Asn>;
|
|
1168
|
+
mac: (mac: string, opts?: MacOptions) => Promise<Mac>;
|
|
1169
|
+
mx: (domain: string, opts?: MxOptions) => Promise<Mx>;
|
|
1170
|
+
useragent: (ua: string, opts?: UseragentOptions) => Promise<Useragent>;
|
|
1171
|
+
vin: (vin: string, opts?: VinOptions) => Promise<Vin>;
|
|
1172
|
+
tariff: ((code: string, opts?: TariffOptions) => Promise<Tariff>) & {
|
|
1173
|
+
search: (query: string, opts?: TariffSearchOptions) => Promise<TariffSearch>;
|
|
983
1174
|
};
|
|
984
|
-
currency: ((code: string) => Promise<Currency>) & {
|
|
985
|
-
rate: (base: string, quote: string, opts?:
|
|
986
|
-
date?: string;
|
|
987
|
-
amount?: number;
|
|
988
|
-
}) => Promise<CurrencyRate>;
|
|
1175
|
+
currency: ((code: string, opts?: CurrencyOptions) => Promise<Currency>) & {
|
|
1176
|
+
rate: (base: string, quote: string, opts?: CurrencyRateOptions) => Promise<CurrencyRate>;
|
|
989
1177
|
};
|
|
990
|
-
language: (code: string) => Promise<Language>;
|
|
991
|
-
name: (name: string) => Promise<Name>;
|
|
992
|
-
timezone: {
|
|
993
|
-
(
|
|
994
|
-
at?: string;
|
|
995
|
-
to?: string;
|
|
996
|
-
}): Promise<Timezone>;
|
|
997
|
-
(lat: number, lon: number, opts?: {
|
|
998
|
-
at?: string;
|
|
999
|
-
}): Promise<Timezone>;
|
|
1178
|
+
language: (code: string, opts?: LanguageOptions) => Promise<Language>;
|
|
1179
|
+
name: (name: string, opts?: NameOptions) => Promise<Name>;
|
|
1180
|
+
timezone: ((id: string, opts?: TimezoneOptions) => Promise<Timezone>) & {
|
|
1181
|
+
at: (lat: number, lon: number, opts?: TimezoneAtOptions) => Promise<Timezone>;
|
|
1000
1182
|
};
|
|
1001
|
-
date: ((date: string, opts?: {
|
|
1002
|
-
|
|
1003
|
-
to?: string;
|
|
1004
|
-
}) => Promise<DateInfo>) & {
|
|
1005
|
-
today: (opts?: {
|
|
1006
|
-
to?: string;
|
|
1007
|
-
}) => Promise<DateInfo>;
|
|
1183
|
+
date: ((date: string, opts?: DateOptions) => Promise<DateInfo>) & {
|
|
1184
|
+
today: (opts?: DateTodayOptions) => Promise<DateInfo>;
|
|
1008
1185
|
};
|
|
1009
|
-
holiday: ((country: string, opts?: {
|
|
1010
|
-
|
|
1011
|
-
}) => Promise<HolidayYear>) & {
|
|
1012
|
-
date: (country: string, date: string) => Promise<HolidayDate>;
|
|
1186
|
+
holiday: ((country: string, opts?: HolidayOptions) => Promise<HolidayYear>) & {
|
|
1187
|
+
date: (country: string, date: string, opts?: HolidayDateOptions) => Promise<HolidayDate>;
|
|
1013
1188
|
};
|
|
1014
|
-
elevation: (lat: number, lon: number) => Promise<Elevation>;
|
|
1015
|
-
point: (lat: number, lon: number, opts?:
|
|
1016
|
-
weather: (lat: number, lon: number, opts?:
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
emoji: ((emoji: string) => Promise<Emoji>) & {
|
|
1020
|
-
search: (q: string, opts?: {
|
|
1021
|
-
limit?: number;
|
|
1022
|
-
}) => Promise<EmojiSearch>;
|
|
1189
|
+
elevation: (lat: number, lon: number, opts?: ElevationOptions) => Promise<Elevation>;
|
|
1190
|
+
point: (lat: number, lon: number, opts?: PointOptions) => Promise<Point>;
|
|
1191
|
+
weather: (lat: number, lon: number, opts?: WeatherOptions) => Promise<Weather>;
|
|
1192
|
+
emoji: ((emoji: string, opts?: EmojiOptions) => Promise<Emoji>) & {
|
|
1193
|
+
search: (query: string, opts?: EmojiSearchOptions) => Promise<EmojiSearch>;
|
|
1023
1194
|
};
|
|
1024
1195
|
};
|
|
1025
1196
|
type ParseAPIClient = ReturnType<typeof parseAPI>;
|
|
1026
1197
|
|
|
1027
|
-
export { type Bloc, type BlocCountries, type BlocCountryItem, type Caller, type Carrier, type City, type CityNearby, type CityNearest, type CitySearch, type Continent, type ContinentCountries, type ContinentCountryItem, type Country, type CountryStateItem, type CountryStates, type Currency, type CurrencyRate, type DateInfo, type Deep, type District, type Domain, type DomainDeep, type DomainRegistration, type Elevation, type Email, type EmailDeep, type Emoji, type EmojiSearch, type EmojiSkin, type Hlr, type Holiday, type HolidayDate, type
|
|
1198
|
+
export { type Address, type AddressOptions, type AddressSearch, type AddressSearchOptions, type AddressSuggestion, type Asn, type AsnOptions, type Bloc, type BlocCountries, type BlocCountriesOptions, type BlocCountryItem, type BlocOptions, type Caller, type CallerOptions, type Carrier, type CarrierOptions, type City, type CityIdOptions, type CityNearby, type CityNearbyOptions, type CityNearest, type CityNearestOptions, type CityOptions, type CitySearch, type CitySearchOptions, type Company, type CompanyCountry, type CompanyDeep, type CompanyOptions, type Continent, type ContinentCountries, type ContinentCountriesOptions, type ContinentCountryItem, type ContinentOptions, type Country, type CountryOptions, type CountryStateItem, type CountryStates, type CountryStatesOptions, type Currency, type CurrencyOptions, type CurrencyRate, type CurrencyRateOptions, type DateInfo, type DateOptions, type DateTodayOptions, type Deep, type District, type DistrictOptions, type Domain, type DomainDeep, type DomainOptions, type DomainRegistration, type Elevation, type ElevationOptions, type Email, type EmailDeep, type EmailOptions, type Emoji, type EmojiOptions, type EmojiSearch, type EmojiSearchOptions, type EmojiSkin, type Hlr, type HlrOptions, type Holiday, type HolidayDate, type HolidayDateOptions, type HolidayOptions, type HolidayYear, type Iban, type IbanOptions, type Ip, type IpDeep, type IpOptions, type IpSelfOptions, type Language, type LanguageOptions, type Mac, type MacOptions, type Mx, type MxOptions, type MxRecord, type Name, type NameOptions, type Npi, type NpiDeep, type NpiEnrollment, type NpiOptions, type ParseAPIClient, ParseAPIError, type ParseAPIOptions, type Phone, type PhoneOptions, type Point, type PointDeep, type PointOptions, type Postal, type PostalDistance, type PostalDistanceEnd, type PostalDistanceOptions, type PostalNearby, type PostalNearbyItem, type PostalNearbyOptions, type PostalOptions, type RequestOptions, type State, type StateDistrictItem, type StateDistricts, type StateDistrictsOptions, type StateOptions, type Tariff, type TariffDeep, type TariffMeasure, type TariffOptions, type TariffSearch, type TariffSearchHit, type TariffSearchOptions, type Timezone, type TimezoneAtOptions, type TimezoneConversionTarget, type TimezoneNextDst, type TimezoneOptions, type Useragent, type UseragentBrowserBrand, type UseragentBrowserDeep, type UseragentDeep, type UseragentDeviceDeep, type UseragentEngineDeep, type UseragentOptions, type UseragentOsDeep, type Vat, type VatAddress, type VatDeep, type VatOptions, type Vin, type VinDeep, type VinOptions, type VinRecall, type Weather, type WeatherAir, type WeatherAlert, type WeatherCurrent, type WeatherDay, type WeatherDeep, type WeatherForecastPeriod, type WeatherHistory, type WeatherHour, type WeatherMinute, type WeatherOptions, type WeatherSource, type WeatherStation, parseAPI };
|