@parseapi/sdk 0.2.1 → 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 +160 -100
- package/dist/index.d.cts +289 -122
- package/dist/index.d.ts +289 -122
- package/dist/index.js +160 -100
- 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;
|
|
@@ -343,7 +347,7 @@ interface NpiDeep {
|
|
|
343
347
|
/** Enrollment rows. [] when medicare is false. */
|
|
344
348
|
enrollments?: NpiEnrollment[] | null;
|
|
345
349
|
}
|
|
346
|
-
interface
|
|
350
|
+
interface TariffMeasure {
|
|
347
351
|
/** Chapter 99 heading, dotted (9903.01.24). */
|
|
348
352
|
heading: string;
|
|
349
353
|
/** The measure text verbatim. */
|
|
@@ -355,15 +359,15 @@ interface HtsMeasure {
|
|
|
355
359
|
/** Expires, ISO YYYY-MM-DD. Null when open-ended. */
|
|
356
360
|
until: string | null;
|
|
357
361
|
}
|
|
358
|
-
interface
|
|
362
|
+
interface TariffDeep {
|
|
359
363
|
/** The origin country the measures were resolved for. */
|
|
360
364
|
origin?: string | null;
|
|
361
365
|
/** Composed ad valorem percent. Null when the components do not compose cleanly. */
|
|
362
366
|
effective_rate?: number | null;
|
|
363
367
|
/** Every Chapter 99 tariff measure that applies to this code from this origin. */
|
|
364
|
-
measures?:
|
|
368
|
+
measures?: TariffMeasure[] | null;
|
|
365
369
|
}
|
|
366
|
-
interface
|
|
370
|
+
interface Tariff {
|
|
367
371
|
/** Normalized code with dots (8471.30.01.00). */
|
|
368
372
|
hts: string;
|
|
369
373
|
/** The schedule line verbatim. */
|
|
@@ -380,18 +384,18 @@ interface Hts {
|
|
|
380
384
|
other: string | null;
|
|
381
385
|
/** The official release that answered (2026HTSRev17). */
|
|
382
386
|
revision: string;
|
|
383
|
-
deep?: Deep<
|
|
387
|
+
deep?: Deep<TariffDeep>;
|
|
384
388
|
}
|
|
385
|
-
interface
|
|
389
|
+
interface TariffSearchHit {
|
|
386
390
|
hts: string;
|
|
387
391
|
description: string;
|
|
388
392
|
general: string | null;
|
|
389
393
|
}
|
|
390
|
-
interface
|
|
394
|
+
interface TariffSearch {
|
|
391
395
|
q: string;
|
|
392
396
|
revision: string;
|
|
393
397
|
/** Up to 20 tariff lines, best match first. */
|
|
394
|
-
lines:
|
|
398
|
+
lines: TariffSearchHit[];
|
|
395
399
|
}
|
|
396
400
|
interface VinRecall {
|
|
397
401
|
/** Government campaign number. */
|
|
@@ -521,6 +525,21 @@ interface Domain {
|
|
|
521
525
|
available: boolean;
|
|
522
526
|
deep?: Deep<DomainDeep>;
|
|
523
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
|
+
}
|
|
524
543
|
interface Mx {
|
|
525
544
|
domain: string;
|
|
526
545
|
mx: MxRecord[];
|
|
@@ -873,6 +892,78 @@ interface EmojiSearch {
|
|
|
873
892
|
q: string;
|
|
874
893
|
emojis: Emoji[];
|
|
875
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
|
+
}
|
|
876
967
|
|
|
877
968
|
/** Every non-2xx response from the API. Branch on `code`, never on `message`. */
|
|
878
969
|
declare class ParseAPIError extends Error {
|
|
@@ -886,146 +977,222 @@ declare class ParseAPIError extends Error {
|
|
|
886
977
|
readonly requestId: string | null;
|
|
887
978
|
constructor(status: number, code: string, message: string, docs: string | null, requestId: string | null);
|
|
888
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
|
+
}
|
|
889
988
|
interface ParseAPIOptions {
|
|
890
989
|
/** Override https://api.parseapi.com (tests, canaries). Also read from PARSEAPI_BASE_URL. */
|
|
891
990
|
baseUrl?: string;
|
|
892
991
|
/** Per-attempt timeout in milliseconds. Default 10000. */
|
|
893
992
|
timeoutMs?: number;
|
|
894
|
-
/** 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. */
|
|
895
994
|
retries?: number;
|
|
896
995
|
/** Custom fetch implementation (instrumentation, proxies). */
|
|
897
996
|
fetch?: typeof fetch;
|
|
898
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;
|
|
899
1123
|
interface DeepOption {
|
|
900
|
-
/** Request
|
|
1124
|
+
/** Request richer fields. Availability and usage depend on the endpoint. */
|
|
901
1125
|
deep?: boolean;
|
|
902
1126
|
}
|
|
903
1127
|
declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
|
|
904
|
-
ip: ((ip: string, opts?:
|
|
905
|
-
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>;
|
|
906
1133
|
};
|
|
907
|
-
|
|
908
|
-
countries: (code: string) => Promise<
|
|
1134
|
+
bloc: ((code: string, opts?: BlocOptions) => Promise<Bloc>) & {
|
|
1135
|
+
countries: (code: string, opts?: BlocCountriesOptions) => Promise<BlocCountries>;
|
|
909
1136
|
};
|
|
910
|
-
|
|
911
|
-
|
|
1137
|
+
country: ((code: string, opts?: CountryOptions) => Promise<Country>) & {
|
|
1138
|
+
states: (code: string, opts?: CountryStatesOptions) => Promise<CountryStates>;
|
|
912
1139
|
};
|
|
913
|
-
|
|
914
|
-
|
|
1140
|
+
state: ((code: string, opts?: StateOptions) => Promise<State>) & {
|
|
1141
|
+
districts: (code: string, opts?: StateDistrictsOptions) => Promise<StateDistricts>;
|
|
915
1142
|
};
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
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>;
|
|
922
1149
|
};
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
}) => Promise<District>;
|
|
927
|
-
city: ((name: string, opts?: {
|
|
928
|
-
country?: string;
|
|
929
|
-
state?: string;
|
|
930
|
-
}) => Promise<City>) & {
|
|
931
|
-
id: (id: string) => Promise<City>;
|
|
932
|
-
search: (q: string, opts?: {
|
|
933
|
-
country?: string;
|
|
934
|
-
state?: string;
|
|
935
|
-
limit?: number;
|
|
936
|
-
}) => Promise<CitySearch>;
|
|
937
|
-
nearest: (lat: number, lon: number) => Promise<CityNearest>;
|
|
938
|
-
nearby: (name: string, opts?: {
|
|
939
|
-
radius?: number;
|
|
940
|
-
unit?: "km" | "mi";
|
|
941
|
-
country?: string;
|
|
942
|
-
state?: string;
|
|
943
|
-
limit?: number;
|
|
944
|
-
}) => 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>;
|
|
945
1153
|
};
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
}) => Promise<Postal>) & {
|
|
949
|
-
nearby: (code: string, opts?: {
|
|
950
|
-
country?: string;
|
|
951
|
-
radius?: number;
|
|
952
|
-
unit?: "km" | "mi";
|
|
953
|
-
}) => Promise<PostalNearby>;
|
|
954
|
-
distance: (from: string, to: string, opts?: {
|
|
955
|
-
country?: string;
|
|
956
|
-
}) => Promise<PostalDistance>;
|
|
1154
|
+
address: ((address: string, opts?: AddressOptions) => Promise<Address>) & {
|
|
1155
|
+
search: (query: string, opts?: AddressSearchOptions) => Promise<AddressSearch>;
|
|
957
1156
|
};
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
}) => Promise<Caller>;
|
|
976
|
-
hlr: (number: string, opts?: {
|
|
977
|
-
country?: string;
|
|
978
|
-
}) => Promise<Hlr>;
|
|
979
|
-
domain: (domain: string, opts?: DeepOption) => Promise<Domain>;
|
|
980
|
-
mx: (domain: string) => Promise<Mx>;
|
|
981
|
-
useragent: (ua: string, opts?: DeepOption) => Promise<Useragent>;
|
|
982
|
-
vin: (vin: string, opts?: DeepOption) => Promise<Vin>;
|
|
983
|
-
tariff: ((code: string, opts?: {
|
|
984
|
-
origin?: string;
|
|
985
|
-
} & DeepOption) => Promise<Hts>) & {
|
|
986
|
-
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>;
|
|
987
1174
|
};
|
|
988
|
-
currency: ((code: string) => Promise<Currency>) & {
|
|
989
|
-
rate: (base: string, quote: string, opts?:
|
|
990
|
-
date?: string;
|
|
991
|
-
amount?: number;
|
|
992
|
-
}) => Promise<CurrencyRate>;
|
|
1175
|
+
currency: ((code: string, opts?: CurrencyOptions) => Promise<Currency>) & {
|
|
1176
|
+
rate: (base: string, quote: string, opts?: CurrencyRateOptions) => Promise<CurrencyRate>;
|
|
993
1177
|
};
|
|
994
|
-
language: (code: string) => Promise<Language>;
|
|
995
|
-
name: (name: string) => Promise<Name>;
|
|
996
|
-
timezone: {
|
|
997
|
-
(
|
|
998
|
-
at?: string;
|
|
999
|
-
to?: string;
|
|
1000
|
-
}): Promise<Timezone>;
|
|
1001
|
-
(lat: number, lon: number, opts?: {
|
|
1002
|
-
at?: string;
|
|
1003
|
-
}): 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>;
|
|
1004
1182
|
};
|
|
1005
|
-
date: ((date: string, opts?: {
|
|
1006
|
-
|
|
1007
|
-
to?: string;
|
|
1008
|
-
}) => Promise<DateInfo>) & {
|
|
1009
|
-
today: (opts?: {
|
|
1010
|
-
to?: string;
|
|
1011
|
-
}) => Promise<DateInfo>;
|
|
1183
|
+
date: ((date: string, opts?: DateOptions) => Promise<DateInfo>) & {
|
|
1184
|
+
today: (opts?: DateTodayOptions) => Promise<DateInfo>;
|
|
1012
1185
|
};
|
|
1013
|
-
holiday: ((country: string, opts?: {
|
|
1014
|
-
|
|
1015
|
-
}) => Promise<HolidayYear>) & {
|
|
1016
|
-
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>;
|
|
1017
1188
|
};
|
|
1018
|
-
elevation: (lat: number, lon: number) => Promise<Elevation>;
|
|
1019
|
-
point: (lat: number, lon: number, opts?:
|
|
1020
|
-
weather: (lat: number, lon: number, opts?:
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
emoji: ((emoji: string) => Promise<Emoji>) & {
|
|
1024
|
-
search: (q: string, opts?: {
|
|
1025
|
-
limit?: number;
|
|
1026
|
-
}) => 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>;
|
|
1027
1194
|
};
|
|
1028
1195
|
};
|
|
1029
1196
|
type ParseAPIClient = ReturnType<typeof parseAPI>;
|
|
1030
1197
|
|
|
1031
|
-
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 };
|