@parseapi/sdk 0.2.1 → 0.3.1
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 +304 -122
- package/dist/index.d.ts +304 -122
- package/dist/index.js +160 -100
- package/package.json +13 -6
package/dist/index.d.ts
CHANGED
|
@@ -198,6 +198,16 @@ interface CityNearby {
|
|
|
198
198
|
unit: string;
|
|
199
199
|
nearby: CityNearest[];
|
|
200
200
|
}
|
|
201
|
+
/** An area's share of ZIP addresses, with category shares measured independently. */
|
|
202
|
+
interface PostalMetro {
|
|
203
|
+
code: string;
|
|
204
|
+
name: string;
|
|
205
|
+
type: string;
|
|
206
|
+
share: number | null;
|
|
207
|
+
residential_share: number | null;
|
|
208
|
+
business_share: number | null;
|
|
209
|
+
other_share: number | null;
|
|
210
|
+
}
|
|
201
211
|
interface Postal {
|
|
202
212
|
postal: string;
|
|
203
213
|
city: string | null;
|
|
@@ -224,6 +234,8 @@ interface Postal {
|
|
|
224
234
|
timezone: string | null;
|
|
225
235
|
currency: string | null;
|
|
226
236
|
neighbors: string[];
|
|
237
|
+
/** Missing/null is unknown; [] is an observed result outside all covered areas. */
|
|
238
|
+
metros?: PostalMetro[] | null;
|
|
227
239
|
}
|
|
228
240
|
interface PostalNearbyItem {
|
|
229
241
|
postal: string;
|
|
@@ -232,17 +244,20 @@ interface PostalNearbyItem {
|
|
|
232
244
|
country: string;
|
|
233
245
|
distance: number;
|
|
234
246
|
distance_mi: number;
|
|
247
|
+
metros?: PostalMetro[] | null;
|
|
235
248
|
}
|
|
236
249
|
interface PostalNearby {
|
|
237
250
|
postal: string;
|
|
238
251
|
country: string;
|
|
239
252
|
radius: number;
|
|
240
253
|
unit: string;
|
|
254
|
+
metros?: PostalMetro[] | null;
|
|
241
255
|
nearby: PostalNearbyItem[];
|
|
242
256
|
}
|
|
243
257
|
interface PostalDistanceEnd {
|
|
244
258
|
postal: string;
|
|
245
259
|
city: string | null;
|
|
260
|
+
metros?: PostalMetro[] | null;
|
|
246
261
|
}
|
|
247
262
|
interface PostalDistance {
|
|
248
263
|
country: string;
|
|
@@ -296,6 +311,10 @@ interface Iban {
|
|
|
296
311
|
checksum: string | null;
|
|
297
312
|
/** Bank identifier parsed from the number, not a name. */
|
|
298
313
|
bank: string | null;
|
|
314
|
+
/** Institution name from the national bank-code directory. Null when unsourced. */
|
|
315
|
+
bank_name: string | null;
|
|
316
|
+
/** BIC from that same directory. Null when unsourced or missing. */
|
|
317
|
+
bic: string | null;
|
|
299
318
|
/** Branch identifier when that country has one. */
|
|
300
319
|
branch: string | null;
|
|
301
320
|
account: string | null;
|
|
@@ -343,7 +362,7 @@ interface NpiDeep {
|
|
|
343
362
|
/** Enrollment rows. [] when medicare is false. */
|
|
344
363
|
enrollments?: NpiEnrollment[] | null;
|
|
345
364
|
}
|
|
346
|
-
interface
|
|
365
|
+
interface TariffMeasure {
|
|
347
366
|
/** Chapter 99 heading, dotted (9903.01.24). */
|
|
348
367
|
heading: string;
|
|
349
368
|
/** The measure text verbatim. */
|
|
@@ -355,15 +374,15 @@ interface HtsMeasure {
|
|
|
355
374
|
/** Expires, ISO YYYY-MM-DD. Null when open-ended. */
|
|
356
375
|
until: string | null;
|
|
357
376
|
}
|
|
358
|
-
interface
|
|
377
|
+
interface TariffDeep {
|
|
359
378
|
/** The origin country the measures were resolved for. */
|
|
360
379
|
origin?: string | null;
|
|
361
380
|
/** Composed ad valorem percent. Null when the components do not compose cleanly. */
|
|
362
381
|
effective_rate?: number | null;
|
|
363
382
|
/** Every Chapter 99 tariff measure that applies to this code from this origin. */
|
|
364
|
-
measures?:
|
|
383
|
+
measures?: TariffMeasure[] | null;
|
|
365
384
|
}
|
|
366
|
-
interface
|
|
385
|
+
interface Tariff {
|
|
367
386
|
/** Normalized code with dots (8471.30.01.00). */
|
|
368
387
|
hts: string;
|
|
369
388
|
/** The schedule line verbatim. */
|
|
@@ -380,18 +399,18 @@ interface Hts {
|
|
|
380
399
|
other: string | null;
|
|
381
400
|
/** The official release that answered (2026HTSRev17). */
|
|
382
401
|
revision: string;
|
|
383
|
-
deep?: Deep<
|
|
402
|
+
deep?: Deep<TariffDeep>;
|
|
384
403
|
}
|
|
385
|
-
interface
|
|
404
|
+
interface TariffSearchHit {
|
|
386
405
|
hts: string;
|
|
387
406
|
description: string;
|
|
388
407
|
general: string | null;
|
|
389
408
|
}
|
|
390
|
-
interface
|
|
409
|
+
interface TariffSearch {
|
|
391
410
|
q: string;
|
|
392
411
|
revision: string;
|
|
393
412
|
/** Up to 20 tariff lines, best match first. */
|
|
394
|
-
lines:
|
|
413
|
+
lines: TariffSearchHit[];
|
|
395
414
|
}
|
|
396
415
|
interface VinRecall {
|
|
397
416
|
/** Government campaign number. */
|
|
@@ -521,6 +540,21 @@ interface Domain {
|
|
|
521
540
|
available: boolean;
|
|
522
541
|
deep?: Deep<DomainDeep>;
|
|
523
542
|
}
|
|
543
|
+
/** Network identity for an autonomous system number. */
|
|
544
|
+
interface Asn {
|
|
545
|
+
asn: number;
|
|
546
|
+
name: string | null;
|
|
547
|
+
country: string | null;
|
|
548
|
+
country_name: string | null;
|
|
549
|
+
}
|
|
550
|
+
/** A normalized 48-bit address. Vendor names the registered assignment holder. */
|
|
551
|
+
interface Mac {
|
|
552
|
+
mac: string;
|
|
553
|
+
valid: boolean;
|
|
554
|
+
vendor: string | null;
|
|
555
|
+
local: boolean | null;
|
|
556
|
+
multicast: boolean | null;
|
|
557
|
+
}
|
|
524
558
|
interface Mx {
|
|
525
559
|
domain: string;
|
|
526
560
|
mx: MxRecord[];
|
|
@@ -873,6 +907,78 @@ interface EmojiSearch {
|
|
|
873
907
|
q: string;
|
|
874
908
|
emojis: Emoji[];
|
|
875
909
|
}
|
|
910
|
+
interface Address {
|
|
911
|
+
address: string | null;
|
|
912
|
+
valid: boolean;
|
|
913
|
+
registered: boolean | null;
|
|
914
|
+
number: string | null;
|
|
915
|
+
street: string | null;
|
|
916
|
+
unit: string | null;
|
|
917
|
+
city: string | null;
|
|
918
|
+
district: string | null;
|
|
919
|
+
district_name: string | null;
|
|
920
|
+
state: string | null;
|
|
921
|
+
state_name: string | null;
|
|
922
|
+
postal: string | null;
|
|
923
|
+
country: string | null;
|
|
924
|
+
country_name: string | null;
|
|
925
|
+
latitude: number | null;
|
|
926
|
+
longitude: number | null;
|
|
927
|
+
deep?: Record<string, unknown>;
|
|
928
|
+
}
|
|
929
|
+
interface AddressSuggestion {
|
|
930
|
+
address: string;
|
|
931
|
+
number: string | null;
|
|
932
|
+
street: string | null;
|
|
933
|
+
unit: string | null;
|
|
934
|
+
city: string | null;
|
|
935
|
+
state: string | null;
|
|
936
|
+
postal: string | null;
|
|
937
|
+
latitude: number | null;
|
|
938
|
+
longitude: number | null;
|
|
939
|
+
}
|
|
940
|
+
interface AddressSearch {
|
|
941
|
+
q: string;
|
|
942
|
+
postal?: string | null;
|
|
943
|
+
city?: string | null;
|
|
944
|
+
state?: string | null;
|
|
945
|
+
country?: string | null;
|
|
946
|
+
addresses: AddressSuggestion[];
|
|
947
|
+
}
|
|
948
|
+
interface CompanyCountry {
|
|
949
|
+
name: string | null;
|
|
950
|
+
blocs: string[];
|
|
951
|
+
tax: string | null;
|
|
952
|
+
}
|
|
953
|
+
interface CompanyDeep {
|
|
954
|
+
country: CompanyCountry | null;
|
|
955
|
+
postal: Postal | null;
|
|
956
|
+
city: City | null;
|
|
957
|
+
}
|
|
958
|
+
interface Company {
|
|
959
|
+
company: string | null;
|
|
960
|
+
valid: boolean;
|
|
961
|
+
registered: boolean | null;
|
|
962
|
+
country: string | null;
|
|
963
|
+
type: string | null;
|
|
964
|
+
name: string | null;
|
|
965
|
+
active: boolean | null;
|
|
966
|
+
activity: string | null;
|
|
967
|
+
address: string | null;
|
|
968
|
+
city: string | null;
|
|
969
|
+
state: string | null;
|
|
970
|
+
state_name: string | null;
|
|
971
|
+
postal: string | null;
|
|
972
|
+
country_name: string | null;
|
|
973
|
+
vat: string | null;
|
|
974
|
+
gst: boolean | null;
|
|
975
|
+
acn: string | null;
|
|
976
|
+
siren: string | null;
|
|
977
|
+
siege: boolean | null;
|
|
978
|
+
kind: string | null;
|
|
979
|
+
invoice: string | null;
|
|
980
|
+
deep?: Deep<CompanyDeep>;
|
|
981
|
+
}
|
|
876
982
|
|
|
877
983
|
/** Every non-2xx response from the API. Branch on `code`, never on `message`. */
|
|
878
984
|
declare class ParseAPIError extends Error {
|
|
@@ -886,146 +992,222 @@ declare class ParseAPIError extends Error {
|
|
|
886
992
|
readonly requestId: string | null;
|
|
887
993
|
constructor(status: number, code: string, message: string, docs: string | null, requestId: string | null);
|
|
888
994
|
}
|
|
995
|
+
interface RequestOptions {
|
|
996
|
+
/** Cancel this call, including any retry wait. */
|
|
997
|
+
signal?: AbortSignal;
|
|
998
|
+
/** Timeout for each attempt, in milliseconds. Overrides the client setting. */
|
|
999
|
+
timeoutMs?: number;
|
|
1000
|
+
/** Explicit retry count. Paid attempts can each consume usage. */
|
|
1001
|
+
retries?: number;
|
|
1002
|
+
}
|
|
889
1003
|
interface ParseAPIOptions {
|
|
890
1004
|
/** Override https://api.parseapi.com (tests, canaries). Also read from PARSEAPI_BASE_URL. */
|
|
891
1005
|
baseUrl?: string;
|
|
892
1006
|
/** Per-attempt timeout in milliseconds. Default 10000. */
|
|
893
1007
|
timeoutMs?: number;
|
|
894
|
-
/** Retries after the first attempt on network errors / 429 / 5xx. Default 2, 0
|
|
1008
|
+
/** 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
1009
|
retries?: number;
|
|
896
1010
|
/** Custom fetch implementation (instrumentation, proxies). */
|
|
897
1011
|
fetch?: typeof fetch;
|
|
898
1012
|
}
|
|
1013
|
+
type IpOptions = DeepOption & RequestOptions;
|
|
1014
|
+
type IpSelfOptions = DeepOption & RequestOptions;
|
|
1015
|
+
type ContinentOptions = RequestOptions;
|
|
1016
|
+
type ContinentCountriesOptions = RequestOptions;
|
|
1017
|
+
type BlocOptions = RequestOptions;
|
|
1018
|
+
type BlocCountriesOptions = RequestOptions;
|
|
1019
|
+
type CountryOptions = RequestOptions;
|
|
1020
|
+
type CountryStatesOptions = RequestOptions;
|
|
1021
|
+
type StateOptions = {
|
|
1022
|
+
country?: string;
|
|
1023
|
+
} & RequestOptions;
|
|
1024
|
+
type StateDistrictsOptions = {
|
|
1025
|
+
country?: string;
|
|
1026
|
+
} & RequestOptions;
|
|
1027
|
+
type DistrictOptions = {
|
|
1028
|
+
country?: string;
|
|
1029
|
+
state?: string;
|
|
1030
|
+
} & RequestOptions;
|
|
1031
|
+
type CityOptions = {
|
|
1032
|
+
country?: string;
|
|
1033
|
+
state?: string;
|
|
1034
|
+
} & RequestOptions;
|
|
1035
|
+
type CityIdOptions = RequestOptions;
|
|
1036
|
+
type CitySearchOptions = {
|
|
1037
|
+
country?: string;
|
|
1038
|
+
state?: string;
|
|
1039
|
+
limit?: number;
|
|
1040
|
+
} & RequestOptions;
|
|
1041
|
+
type CityNearestOptions = RequestOptions;
|
|
1042
|
+
type CityNearbyOptions = {
|
|
1043
|
+
radius?: number;
|
|
1044
|
+
unit?: 'km' | 'mi';
|
|
1045
|
+
country?: string;
|
|
1046
|
+
state?: string;
|
|
1047
|
+
limit?: number;
|
|
1048
|
+
} & RequestOptions;
|
|
1049
|
+
type PostalOptions = {
|
|
1050
|
+
country?: string;
|
|
1051
|
+
} & RequestOptions;
|
|
1052
|
+
type PostalNearbyOptions = {
|
|
1053
|
+
country?: string;
|
|
1054
|
+
radius?: number;
|
|
1055
|
+
unit?: 'km' | 'mi';
|
|
1056
|
+
} & RequestOptions;
|
|
1057
|
+
type PostalDistanceOptions = {
|
|
1058
|
+
country?: string;
|
|
1059
|
+
} & RequestOptions;
|
|
1060
|
+
type AddressOptions = {
|
|
1061
|
+
country?: string;
|
|
1062
|
+
} & DeepOption & RequestOptions;
|
|
1063
|
+
type AddressSearchOptions = {
|
|
1064
|
+
country?: string;
|
|
1065
|
+
postal?: string;
|
|
1066
|
+
city?: string;
|
|
1067
|
+
state?: string;
|
|
1068
|
+
ip?: string;
|
|
1069
|
+
} & RequestOptions;
|
|
1070
|
+
type CompanyOptions = {
|
|
1071
|
+
country?: string;
|
|
1072
|
+
} & DeepOption & RequestOptions;
|
|
1073
|
+
type EmailOptions = DeepOption & RequestOptions;
|
|
1074
|
+
type VatOptions = {
|
|
1075
|
+
country?: string;
|
|
1076
|
+
from?: string;
|
|
1077
|
+
} & DeepOption & RequestOptions;
|
|
1078
|
+
type IbanOptions = {
|
|
1079
|
+
country?: string;
|
|
1080
|
+
} & RequestOptions;
|
|
1081
|
+
type NpiOptions = DeepOption & RequestOptions;
|
|
1082
|
+
type PhoneOptions = {
|
|
1083
|
+
country?: string;
|
|
1084
|
+
} & DeepOption & RequestOptions;
|
|
1085
|
+
type CarrierOptions = {
|
|
1086
|
+
country?: string;
|
|
1087
|
+
} & RequestOptions;
|
|
1088
|
+
type CallerOptions = {
|
|
1089
|
+
country?: string;
|
|
1090
|
+
} & RequestOptions;
|
|
1091
|
+
type HlrOptions = {
|
|
1092
|
+
country?: string;
|
|
1093
|
+
} & RequestOptions;
|
|
1094
|
+
type DomainOptions = DeepOption & RequestOptions;
|
|
1095
|
+
type AsnOptions = RequestOptions;
|
|
1096
|
+
type MacOptions = RequestOptions;
|
|
1097
|
+
type MxOptions = RequestOptions;
|
|
1098
|
+
type UseragentOptions = DeepOption & RequestOptions;
|
|
1099
|
+
type VinOptions = DeepOption & RequestOptions;
|
|
1100
|
+
type TariffOptions = {
|
|
1101
|
+
origin?: string;
|
|
1102
|
+
} & DeepOption & RequestOptions;
|
|
1103
|
+
type TariffSearchOptions = RequestOptions;
|
|
1104
|
+
type CurrencyOptions = RequestOptions;
|
|
1105
|
+
type CurrencyRateOptions = {
|
|
1106
|
+
date?: string;
|
|
1107
|
+
amount?: number;
|
|
1108
|
+
} & RequestOptions;
|
|
1109
|
+
type LanguageOptions = RequestOptions;
|
|
1110
|
+
type NameOptions = RequestOptions;
|
|
1111
|
+
type TimezoneOptions = {
|
|
1112
|
+
at?: string;
|
|
1113
|
+
to?: string;
|
|
1114
|
+
} & RequestOptions;
|
|
1115
|
+
type TimezoneAtOptions = {
|
|
1116
|
+
at?: string;
|
|
1117
|
+
} & RequestOptions;
|
|
1118
|
+
type DateOptions = {
|
|
1119
|
+
format?: 'mdy' | 'dmy';
|
|
1120
|
+
to?: string;
|
|
1121
|
+
} & RequestOptions;
|
|
1122
|
+
type DateTodayOptions = {
|
|
1123
|
+
to?: string;
|
|
1124
|
+
} & RequestOptions;
|
|
1125
|
+
type HolidayOptions = {
|
|
1126
|
+
year?: number;
|
|
1127
|
+
} & RequestOptions;
|
|
1128
|
+
type HolidayDateOptions = RequestOptions;
|
|
1129
|
+
type ElevationOptions = RequestOptions;
|
|
1130
|
+
type PointOptions = DeepOption & RequestOptions;
|
|
1131
|
+
type WeatherOptions = DeepOption & {
|
|
1132
|
+
date?: string;
|
|
1133
|
+
} & RequestOptions;
|
|
1134
|
+
type EmojiOptions = RequestOptions;
|
|
1135
|
+
type EmojiSearchOptions = {
|
|
1136
|
+
limit?: number;
|
|
1137
|
+
} & RequestOptions;
|
|
899
1138
|
interface DeepOption {
|
|
900
|
-
/** Request
|
|
1139
|
+
/** Request richer fields. Availability and usage depend on the endpoint. */
|
|
901
1140
|
deep?: boolean;
|
|
902
1141
|
}
|
|
903
1142
|
declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
|
|
904
|
-
ip: ((ip: string, opts?:
|
|
905
|
-
self: (opts?:
|
|
1143
|
+
ip: ((ip: string, opts?: IpOptions) => Promise<Ip>) & {
|
|
1144
|
+
self: (opts?: IpSelfOptions) => Promise<Ip>;
|
|
1145
|
+
};
|
|
1146
|
+
continent: ((code: string, opts?: ContinentOptions) => Promise<Continent>) & {
|
|
1147
|
+
countries: (code: string, opts?: ContinentCountriesOptions) => Promise<ContinentCountries>;
|
|
906
1148
|
};
|
|
907
|
-
|
|
908
|
-
countries: (code: string) => Promise<
|
|
1149
|
+
bloc: ((code: string, opts?: BlocOptions) => Promise<Bloc>) & {
|
|
1150
|
+
countries: (code: string, opts?: BlocCountriesOptions) => Promise<BlocCountries>;
|
|
909
1151
|
};
|
|
910
|
-
|
|
911
|
-
|
|
1152
|
+
country: ((code: string, opts?: CountryOptions) => Promise<Country>) & {
|
|
1153
|
+
states: (code: string, opts?: CountryStatesOptions) => Promise<CountryStates>;
|
|
912
1154
|
};
|
|
913
|
-
|
|
914
|
-
|
|
1155
|
+
state: ((code: string, opts?: StateOptions) => Promise<State>) & {
|
|
1156
|
+
districts: (code: string, opts?: StateDistrictsOptions) => Promise<StateDistricts>;
|
|
915
1157
|
};
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
1158
|
+
district: (code: string, opts?: DistrictOptions) => Promise<District>;
|
|
1159
|
+
city: ((name: string, opts?: CityOptions) => Promise<City>) & {
|
|
1160
|
+
id: (id: string, opts?: CityIdOptions) => Promise<City>;
|
|
1161
|
+
search: (query: string, opts?: CitySearchOptions) => Promise<CitySearch>;
|
|
1162
|
+
nearest: (lat: number, lon: number, opts?: CityNearestOptions) => Promise<CityNearest>;
|
|
1163
|
+
nearby: (name: string, opts?: CityNearbyOptions) => Promise<CityNearby>;
|
|
922
1164
|
};
|
|
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>;
|
|
1165
|
+
postal: ((code: string, opts?: PostalOptions) => Promise<Postal>) & {
|
|
1166
|
+
nearby: (code: string, opts?: PostalNearbyOptions) => Promise<PostalNearby>;
|
|
1167
|
+
distance: (from: string, to: string, opts?: PostalDistanceOptions) => Promise<PostalDistance>;
|
|
945
1168
|
};
|
|
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>;
|
|
1169
|
+
address: ((address: string, opts?: AddressOptions) => Promise<Address>) & {
|
|
1170
|
+
search: (query: string, opts?: AddressSearchOptions) => Promise<AddressSearch>;
|
|
957
1171
|
};
|
|
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>;
|
|
1172
|
+
company: (number: string, opts?: CompanyOptions) => Promise<Company>;
|
|
1173
|
+
email: (email: string, opts?: EmailOptions) => Promise<Email>;
|
|
1174
|
+
vat: (number: string, opts?: VatOptions) => Promise<Vat>;
|
|
1175
|
+
iban: (iban: string, opts?: IbanOptions) => Promise<Iban>;
|
|
1176
|
+
npi: (npi: string, opts?: NpiOptions) => Promise<Npi>;
|
|
1177
|
+
phone: (number: string, opts?: PhoneOptions) => Promise<Phone>;
|
|
1178
|
+
carrier: (number: string, opts?: CarrierOptions) => Promise<Carrier>;
|
|
1179
|
+
caller: (number: string, opts?: CallerOptions) => Promise<Caller>;
|
|
1180
|
+
hlr: (number: string, opts?: HlrOptions) => Promise<Hlr>;
|
|
1181
|
+
domain: (domain: string, opts?: DomainOptions) => Promise<Domain>;
|
|
1182
|
+
asn: (asn: string, opts?: AsnOptions) => Promise<Asn>;
|
|
1183
|
+
mac: (mac: string, opts?: MacOptions) => Promise<Mac>;
|
|
1184
|
+
mx: (domain: string, opts?: MxOptions) => Promise<Mx>;
|
|
1185
|
+
useragent: (ua: string, opts?: UseragentOptions) => Promise<Useragent>;
|
|
1186
|
+
vin: (vin: string, opts?: VinOptions) => Promise<Vin>;
|
|
1187
|
+
tariff: ((code: string, opts?: TariffOptions) => Promise<Tariff>) & {
|
|
1188
|
+
search: (query: string, opts?: TariffSearchOptions) => Promise<TariffSearch>;
|
|
987
1189
|
};
|
|
988
|
-
currency: ((code: string) => Promise<Currency>) & {
|
|
989
|
-
rate: (base: string, quote: string, opts?:
|
|
990
|
-
date?: string;
|
|
991
|
-
amount?: number;
|
|
992
|
-
}) => Promise<CurrencyRate>;
|
|
1190
|
+
currency: ((code: string, opts?: CurrencyOptions) => Promise<Currency>) & {
|
|
1191
|
+
rate: (base: string, quote: string, opts?: CurrencyRateOptions) => Promise<CurrencyRate>;
|
|
993
1192
|
};
|
|
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>;
|
|
1193
|
+
language: (code: string, opts?: LanguageOptions) => Promise<Language>;
|
|
1194
|
+
name: (name: string, opts?: NameOptions) => Promise<Name>;
|
|
1195
|
+
timezone: ((id: string, opts?: TimezoneOptions) => Promise<Timezone>) & {
|
|
1196
|
+
at: (lat: number, lon: number, opts?: TimezoneAtOptions) => Promise<Timezone>;
|
|
1004
1197
|
};
|
|
1005
|
-
date: ((date: string, opts?: {
|
|
1006
|
-
|
|
1007
|
-
to?: string;
|
|
1008
|
-
}) => Promise<DateInfo>) & {
|
|
1009
|
-
today: (opts?: {
|
|
1010
|
-
to?: string;
|
|
1011
|
-
}) => Promise<DateInfo>;
|
|
1198
|
+
date: ((date: string, opts?: DateOptions) => Promise<DateInfo>) & {
|
|
1199
|
+
today: (opts?: DateTodayOptions) => Promise<DateInfo>;
|
|
1012
1200
|
};
|
|
1013
|
-
holiday: ((country: string, opts?: {
|
|
1014
|
-
|
|
1015
|
-
}) => Promise<HolidayYear>) & {
|
|
1016
|
-
date: (country: string, date: string) => Promise<HolidayDate>;
|
|
1201
|
+
holiday: ((country: string, opts?: HolidayOptions) => Promise<HolidayYear>) & {
|
|
1202
|
+
date: (country: string, date: string, opts?: HolidayDateOptions) => Promise<HolidayDate>;
|
|
1017
1203
|
};
|
|
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>;
|
|
1204
|
+
elevation: (lat: number, lon: number, opts?: ElevationOptions) => Promise<Elevation>;
|
|
1205
|
+
point: (lat: number, lon: number, opts?: PointOptions) => Promise<Point>;
|
|
1206
|
+
weather: (lat: number, lon: number, opts?: WeatherOptions) => Promise<Weather>;
|
|
1207
|
+
emoji: ((emoji: string, opts?: EmojiOptions) => Promise<Emoji>) & {
|
|
1208
|
+
search: (query: string, opts?: EmojiSearchOptions) => Promise<EmojiSearch>;
|
|
1027
1209
|
};
|
|
1028
1210
|
};
|
|
1029
1211
|
type ParseAPIClient = ReturnType<typeof parseAPI>;
|
|
1030
1212
|
|
|
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
|
|
1213
|
+
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 PostalMetro, 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 };
|