@parseapi/sdk 1.12.5 → 1.12.6
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 +14 -7
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +59 -21
- package/dist/index.d.ts +59 -21
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -106,6 +106,15 @@ names. IDs, native-name fields, numeric facts, Date input `format`, and
|
|
|
106
106
|
input `locale` retain their meaning. Omitting `lang` preserves the existing
|
|
107
107
|
behavior and does not inherit a previous request's choice.
|
|
108
108
|
|
|
109
|
+
## ISO identifiers
|
|
110
|
+
|
|
111
|
+
Country uses `iso_alpha3` and `iso_numeric`, State uses the full
|
|
112
|
+
`iso_subdivision` code such as `US-CA`, Language uses `iso_alpha3`, and Currency
|
|
113
|
+
uses `iso_numeric`. Primary `country`, `state`, `language` and `currency` codes
|
|
114
|
+
keep their meaning. Results retain the selected API contract's exact keys,
|
|
115
|
+
values, nulls and nesting. Earlier server contracts retain their earlier ISO
|
|
116
|
+
spellings. Use the existing lookup methods for each resource.
|
|
117
|
+
|
|
109
118
|
## Calls
|
|
110
119
|
|
|
111
120
|
Search the company directory, then refetch an ID you have chosen:
|
|
@@ -271,9 +280,7 @@ Source deep adds `standard_offset`, `standard_offset_seconds`, signed `dst_offse
|
|
|
271
280
|
|
|
272
281
|
## Place statistics and optional detail
|
|
273
282
|
|
|
274
|
-
Country Core contains the everyday reference: `name`, `name_full`, `name_local`, demonym and country
|
|
275
|
-
|
|
276
|
-
Read `name_full` from current responses. The older `full_name` type member remains available for earlier payloads; responses are returned as received, with null values preserved. Historical Deep fields remain readable in earlier responses; they are not added to the current wire result.
|
|
283
|
+
Country Core contains the everyday reference: `name`, `name_full`, `name_local`, demonym, `iso_alpha3` and `iso_numeric` country identifiers, continent, region and subregion, currency, calling code, `flag`, language and timezone codes, borders, bloc memberships and `capital: { name, lat, lon }`. Paid Deep adds specialist detail, including population, total area and national statistics. `gdp_usd` and `gdp_per_capita_usd` are current US dollars; `population_growth_percent`, `urban_population_percent` and `internet_users_percent` use a 0–100 percent scale (growth can be negative or exceed 100). GDP per person and these three percentages round once to two decimals in the API response. `elevation_average` is average terrain elevation in meters; `lowest_point.elevation` and `highest_point.elevation` keep their point-specific meaning. Unknown stays null and a known zero stays zero. Country tax references are grouped once as `deep.tax: { name, rate }`; the rate remains a percentage. Read capital from the Core object and read the tax name and rate from the Deep tax object.
|
|
277
284
|
|
|
278
285
|
Australian postal lookups include core `localities` with suburb choices (`city`, `state`, `state_name`) on every plan. Null or an omitted field means unknown, while `[]` means the reviewed reference has no eligible choices. `city` stays null when the source is ambiguous, even if there is only one eligible choice. Let the user select their suburb and keep manual entry available. These are geographic choices, not mailing-address verification. [G-NAF source, adaptations and licence](https://parseapi.com/legal/attribution#postal-au).
|
|
279
286
|
|
|
@@ -432,14 +439,14 @@ The ordinary `Domain` type represents unknown availability as `null`. The existi
|
|
|
432
439
|
## Stack API
|
|
433
440
|
|
|
434
441
|
```typescript
|
|
435
|
-
import type {
|
|
442
|
+
import type { Stack } from '@parseapi/sdk';
|
|
436
443
|
|
|
437
|
-
const result:
|
|
444
|
+
const result: Stack = await parse.stack("example.com");
|
|
438
445
|
```
|
|
439
446
|
|
|
440
|
-
Pass a public hostname without a scheme, path, port or IP address. Stack checks static homepage HTML and response headers. It returns the checked URL, original `checked_at` time and eight technology arrays.
|
|
447
|
+
Pass a public hostname without a scheme, path, port or IP address. Stack checks static homepage HTML and response headers. It returns the checked URL, original `checked_at` time and eight technology arrays. The existing `stack()` method returns this `Stack` model.
|
|
441
448
|
|
|
442
|
-
`cms`, `servers`, `frameworks`, `ecommerce`, `analytics`, `chat`, `payments` and `hosting` are arrays because a site can use several technologies in each category. Each entry contains `technology`, `name` and nullable `version`. Technology codes are open strings. A successful check uses empty arrays for categories with no matches. When no HTML page could be checked, `checked_at` and all categories are null. Unknown or conflicting versions are null.
|
|
449
|
+
`cms`, `servers`, `frameworks`, `ecommerce`, `analytics`, `chat`, `payments` and `hosting` are arrays because a site can use several technologies in each category. Each entry contains `technology`, `name` and nullable `version`. Technology codes are open strings. A successful check uses empty arrays for categories with no matches. When no HTML page could be checked, `checked_at` and all categories are null. Unknown or conflicting versions are null. Detections describe the checked homepage.
|
|
443
450
|
|
|
444
451
|
Successful checks may be reused for up to 24 hours. `pretty` optionally formats the wire JSON. Stack uses your plan's request allowance and API version 2.0.0 selected by this client.
|
|
445
452
|
|
package/dist/index.cjs
CHANGED
|
@@ -448,7 +448,7 @@ var EmojiCatalog = class {
|
|
|
448
448
|
};
|
|
449
449
|
|
|
450
450
|
// src/index.ts
|
|
451
|
-
var VERSION = "1.12.
|
|
451
|
+
var VERSION = "1.12.6";
|
|
452
452
|
var API_VERSION = "2.0.0";
|
|
453
453
|
var DEFAULT_BASE_URL = "https://api.parseapi.com";
|
|
454
454
|
var DEFAULT_TIMEOUT_MS = 1e4;
|
|
@@ -750,7 +750,7 @@ function parseAPI(apiKey, options = {}) {
|
|
|
750
750
|
caller: (number, opts) => request(`/caller/${enc(number)}`, { country: opts?.country }, void 0, opts),
|
|
751
751
|
/** Look up phone status at the last check. Live means assigned and connected means reachable at that check. Cached results may be returned. Null means unconfirmed. Deep adds network diagnostics within the same metered lookup. No automatic retries by default. */
|
|
752
752
|
hlr: (number, opts) => request(`/hlr/${enc(number)}`, { country: opts?.country, ...deepQuery(opts) }, void 0, opts),
|
|
753
|
-
/** Identify
|
|
753
|
+
/** Identify technologies in static homepage HTML and response headers. */
|
|
754
754
|
stack: (domain, opts) => request(`/stack/${enc(domain)}`, { ...deepQuery(opts), pretty: opts?.pretty }, void 0, opts),
|
|
755
755
|
/** Check registration: available is true, false or null when unknown. Paid Deep adds available registration details. */
|
|
756
756
|
domain: (domain, opts) => request(`/domain/${enc(domain)}`, deepQuery(opts), void 0, opts),
|
package/dist/index.d.cts
CHANGED
|
@@ -72,7 +72,13 @@ interface Country {
|
|
|
72
72
|
deep?: Deep<CountryDeep>;
|
|
73
73
|
/** IANA timezones used by the country. */
|
|
74
74
|
timezones: string[] | null;
|
|
75
|
+
/** ISO 3166-1 alpha-3 country code. */
|
|
76
|
+
iso_alpha3?: string | null;
|
|
77
|
+
/** ISO 3166-1 numeric country code. */
|
|
78
|
+
iso_numeric?: number | null;
|
|
79
|
+
/** @deprecated Older servers use iso3. Read iso_alpha3 on the current contract. */
|
|
75
80
|
iso3?: string | null;
|
|
81
|
+
/** @deprecated Older servers use numeric. Read iso_numeric on the current contract. */
|
|
76
82
|
numeric?: number | null;
|
|
77
83
|
/** Official long name. */
|
|
78
84
|
name_full?: string | null;
|
|
@@ -114,9 +120,14 @@ interface State {
|
|
|
114
120
|
country_name: string | null;
|
|
115
121
|
latitude: number | null;
|
|
116
122
|
longitude: number | null;
|
|
117
|
-
timezone: string | null;
|
|
118
123
|
timezones: string[];
|
|
119
|
-
|
|
124
|
+
/** Full ISO 3166-2 subdivision code, including its country prefix. */
|
|
125
|
+
iso_subdivision?: string | null;
|
|
126
|
+
/** @deprecated Legacy candidate spelling. Read iso_subdivision on the current contract. */
|
|
127
|
+
iso?: string | null;
|
|
128
|
+
fips: string | null;
|
|
129
|
+
area_codes: string[] | null;
|
|
130
|
+
capital: StateCapital;
|
|
120
131
|
deep?: Deep<StateDeep>;
|
|
121
132
|
}
|
|
122
133
|
interface StateDistrictItem {
|
|
@@ -147,7 +158,6 @@ interface District {
|
|
|
147
158
|
country_name: string | null;
|
|
148
159
|
latitude: number | null;
|
|
149
160
|
longitude: number | null;
|
|
150
|
-
timezone: string | null;
|
|
151
161
|
timezones: string[];
|
|
152
162
|
deep?: Deep<DistrictDeep>;
|
|
153
163
|
}
|
|
@@ -349,11 +359,6 @@ interface Stack {
|
|
|
349
359
|
url: string;
|
|
350
360
|
/** Time of the check, or null when no HTML page could be checked. */
|
|
351
361
|
checked_at: string | null;
|
|
352
|
-
scope: 'homepage' | 'site';
|
|
353
|
-
/** Number of successfully checked HTML pages. */
|
|
354
|
-
pages: number;
|
|
355
|
-
/** True for homepage-only or incomplete bounded checks; null when no HTML page could be checked. False never guarantees every page was visited. */
|
|
356
|
-
partial: boolean | null;
|
|
357
362
|
/** Collections are null when no HTML page could be checked and empty when no matches were found. */
|
|
358
363
|
cms: StackTechnology[] | null;
|
|
359
364
|
servers: StackTechnology[] | null;
|
|
@@ -478,6 +483,11 @@ interface Language {
|
|
|
478
483
|
script: string | null;
|
|
479
484
|
direction: 'ltr' | 'rtl' | string;
|
|
480
485
|
deep?: Deep<LanguageDeep>;
|
|
486
|
+
/** ISO 639-3 language code. */
|
|
487
|
+
iso_alpha3?: string | null;
|
|
488
|
+
/** @deprecated Older servers use iso3. Read iso_alpha3 on the current contract. */
|
|
489
|
+
iso3?: string | null;
|
|
490
|
+
countries?: string[] | null;
|
|
481
491
|
}
|
|
482
492
|
/** A parsed person name. Junk input returns valid: false, never an error. Gender comes from dictionary data and is null when the data does not decide. */
|
|
483
493
|
interface Name {
|
|
@@ -1191,7 +1201,9 @@ interface CountryDeep {
|
|
|
1191
1201
|
urban_population?: number | null;
|
|
1192
1202
|
/** Share of population using the internet, from 0 to 100. */
|
|
1193
1203
|
internet_users?: number | null;
|
|
1204
|
+
/** @deprecated Older deep contract. Current ISO identifiers live in Core. */
|
|
1194
1205
|
iso3: string;
|
|
1206
|
+
/** @deprecated Older deep contract. Current iso_numeric lives in Core. */
|
|
1195
1207
|
numeric: number;
|
|
1196
1208
|
full_name: string | null;
|
|
1197
1209
|
demonym: string | null;
|
|
@@ -1252,18 +1264,19 @@ interface CountryElevationPoint {
|
|
|
1252
1264
|
elevation: number;
|
|
1253
1265
|
}
|
|
1254
1266
|
interface StateDeep {
|
|
1267
|
+
/** @deprecated Older deep contract. Read Core iso_subdivision on the current contract. */
|
|
1268
|
+
iso_3166_2?: string | null;
|
|
1255
1269
|
population: number | null;
|
|
1256
1270
|
/** @deprecated No longer returned. Retained for source compatibility. */
|
|
1257
1271
|
population_period?: string | null;
|
|
1258
1272
|
/** Total area in km2. */
|
|
1259
1273
|
area: number | null;
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
tax_rate: number | null;
|
|
1274
|
+
tax: StateTax;
|
|
1275
|
+
/** @deprecated Historical Deep read members. */
|
|
1276
|
+
fips?: string | null;
|
|
1277
|
+
capital?: string | null;
|
|
1278
|
+
area_codes?: string[];
|
|
1279
|
+
tax_rate?: number | null;
|
|
1267
1280
|
}
|
|
1268
1281
|
interface DistrictDeep {
|
|
1269
1282
|
population: number | null;
|
|
@@ -1355,8 +1368,10 @@ interface HlrDeep {
|
|
|
1355
1368
|
mnc: string | null;
|
|
1356
1369
|
}
|
|
1357
1370
|
interface LanguageDeep {
|
|
1358
|
-
|
|
1359
|
-
|
|
1371
|
+
/** @deprecated Older deep contract. Read Core iso_alpha3 on the current contract. */
|
|
1372
|
+
iso3?: string | null;
|
|
1373
|
+
/** @deprecated Older deep contract. Current country associations live in Core. */
|
|
1374
|
+
countries?: string[] | null;
|
|
1360
1375
|
}
|
|
1361
1376
|
interface NameDeep {
|
|
1362
1377
|
gender: 'male' | 'female' | null;
|
|
@@ -1604,6 +1619,29 @@ interface CityNearbyCoordinates extends CityCollection {
|
|
|
1604
1619
|
radius: number;
|
|
1605
1620
|
unit: string;
|
|
1606
1621
|
}
|
|
1622
|
+
/** Minimal related records returned in Company Core. Rich Deep records stay separate. */
|
|
1623
|
+
interface CompanyIndustryReference {
|
|
1624
|
+
type: string;
|
|
1625
|
+
code: string;
|
|
1626
|
+
}
|
|
1627
|
+
interface CompanyPhoneReference {
|
|
1628
|
+
number: string;
|
|
1629
|
+
country?: string | null;
|
|
1630
|
+
e164?: string | null;
|
|
1631
|
+
}
|
|
1632
|
+
interface CompanyEmailReference {
|
|
1633
|
+
address: string;
|
|
1634
|
+
}
|
|
1635
|
+
interface StateTax {
|
|
1636
|
+
name: string | null;
|
|
1637
|
+
/** Reference rate in percent. Choose the geographic scope for the task. */
|
|
1638
|
+
rate: number | null;
|
|
1639
|
+
}
|
|
1640
|
+
interface StateCapital {
|
|
1641
|
+
name: string | null;
|
|
1642
|
+
lat: number | null;
|
|
1643
|
+
lon: number | null;
|
|
1644
|
+
}
|
|
1607
1645
|
|
|
1608
1646
|
/** Every non-2xx response from the API. Branch on `code`, never on `message`. */
|
|
1609
1647
|
declare class ParseAPIError extends Error {
|
|
@@ -1873,8 +1911,8 @@ interface DomainResult {
|
|
|
1873
1911
|
available: boolean | null;
|
|
1874
1912
|
deep?: Deep<DomainResultDeep>;
|
|
1875
1913
|
}
|
|
1876
|
-
/**
|
|
1877
|
-
type StackResult =
|
|
1914
|
+
/** Alias for the current Stack response. */
|
|
1915
|
+
type StackResult = Stack;
|
|
1878
1916
|
|
|
1879
1917
|
interface EmojiCatalogLookupOptions {
|
|
1880
1918
|
deep?: boolean;
|
|
@@ -2279,7 +2317,7 @@ declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
|
|
|
2279
2317
|
caller: (number: string, opts?: CallerOptions) => Promise<Caller>;
|
|
2280
2318
|
/** Look up phone status at the last check. Live means assigned and connected means reachable at that check. Cached results may be returned. Null means unconfirmed. Deep adds network diagnostics within the same metered lookup. No automatic retries by default. */
|
|
2281
2319
|
hlr: (number: string, opts?: HlrOptions) => Promise<Hlr>;
|
|
2282
|
-
/** Identify
|
|
2320
|
+
/** Identify technologies in static homepage HTML and response headers. */
|
|
2283
2321
|
stack: (domain: string, opts?: StackOptions) => Promise<Stack>;
|
|
2284
2322
|
/** Check registration: available is true, false or null when unknown. Paid Deep adds available registration details. */
|
|
2285
2323
|
domain: (domain: string, opts?: DomainOptions) => Promise<Domain>;
|
|
@@ -2431,4 +2469,4 @@ interface CityNearbyCall {
|
|
|
2431
2469
|
(name: string, opts: CityNearbyOptions): Promise<CityNearby | CityCollection>;
|
|
2432
2470
|
}
|
|
2433
2471
|
|
|
2434
|
-
export { type Address, type AddressOptions, type AddressSearch, type AddressSearchOptions, type AddressSuggestion, type AgentTask, type AgentTaskInput, type AgentTaskLookupInput, type AgentTaskResult, type Asn, type AsnOptions, BULK_CHECKS, type Bin, type BinOptions, ParseAPIError as BulkAPIError, type BulkClient, type BulkClientOptions, type BulkJob, type BulkPreview, type BulkPreviewInput, type BulkQuote, type BulkRequestOptions, type BulkResult, type BulkStartInput, type BulkStatus, type BulkUpload, type BulkUploadInput, type Caller, type CallerOptions, type Card, type CardDeep, type CardOptions, type Carrier, type CarrierDeep, type CarrierOptions, type City, type CityAmbiguityCandidate, type CityAncestorsOptions, type CityCollection, type CityCollectionFilters, type CityDeep, type CityDistance, type CityDistanceOptions, type CityGrain, type CityIdCall, type CityIdOptions, type CityList, type CityListOptions, type CityLookupCall, type CityMatch, type CityNearby, type CityNearbyCall, type CityNearbyCoordinates, type CityNearbyCoordinatesOptions, type CityNearbyOptions, type CityNearest, type CityNearestCall, type CityNearestOptions, type CityOptions, type CityPagingOptions, type CityParent, type CityRelations, type CityRelationsOptions, type CityResource, type CityResponseOptions, type CityScopeOptions, type CitySearch, type CitySearchCall, type CitySearchOptions, type CitySort, type Company, type CompanyCandidate, type CompanyCountry, type CompanyCoverage, type CompanyCoverageOptions, type CompanyDeep, type CompanyEmailAddress, type CompanyIdOptions, type CompanyMatch, type CompanyOptions, type CompanyPhoneNumber, type CompanyProfile, type CompanyProfileAddress, type CompanyProfileDeep, type CompanyProfileDomain, type CompanyProfileEmail, type CompanyProfileEmployees, type CompanyProfileFounding, type CompanyProfileIdentifier, type CompanyProfileIndustry, type CompanyProfileJurisdiction, type CompanyProfileListing, type CompanyProfilePhone, type CompanyProfileRegistration, type CompanyProfileRegistrationAddress, type CompanyProfileRegistrationLegalForm, type CompanyProfileSource, type CompanyProfileWebsite, type CompanySearch, type CompanySearchOptions, type CompanySocialProfile, type Continent, type ContinentCountries, type ContinentCountriesOptions, type ContinentCountryItem, type ContinentOptions, type Country, type CountryCapital, type CountryDeep, type CountryElevationPoint, type CountryEmergency, type CountryOptions, type CountryStateItem, type CountryStates, type CountryStatesOptions, type CountryTax, type DateInfo, type DateInfoDeep, type DateOptions, type DateTodayOptions, type Deep, type District, type DistrictDeep, type DistrictOptions, type Dns, type DnsOptions, type DnsRecord, type Domain, type DomainDeep, type DomainOptions, type DomainRegistration, type DomainRegistrationResult, type DomainResult, type DomainResultDeep, type Elevation, type ElevationLocations, type ElevationOptions, type Email, type EmailDeep, type EmailOptions, type Emoji, type EmojiArtwork, type EmojiArtworkSource, type EmojiBrowse, type EmojiBrowseOptions, EmojiCatalog, type EmojiCatalogConvertOptions, type EmojiCatalogData, EmojiCatalogError, type EmojiCatalogLocalization, type EmojiCatalogLookupOptions, type EmojiCatalogOptions, type EmojiCatalogParseOptions, type EmojiCatalogRegexOptions, type EmojiCatalogScope, type EmojiCatalogSearchFacts, type EmojiCatalogSearchOptions, type EmojiCategories, type EmojiCategory, type EmojiConversion, type EmojiConvertOptions, type EmojiDeep, type EmojiMetadata, type EmojiNativeSearchFacts, type EmojiNotice, type EmojiOptions, type EmojiParse, type EmojiParseOptions, type EmojiPosition, type EmojiSearch, type EmojiSearchOptions, type EmojiShortcodeSourceMetadata, type EmojiSkin, type EmojiSource, type EmojiUnresolved, type EmojiVariant, type Hlr, type HlrDeep, type HlrOptions, type Holiday, type HolidayDate, type HolidayDateOptions, type HolidayOptions, type HolidayYear, type Industry, type IndustryChild, type IndustryCorrection, type IndustryDeep, type IndustryExclusion, type IndustryMatch, type IndustryOptions, type IndustrySearch, type IndustrySearchItem, type IndustrySearchOptions, type Ip, type IpDeep, type IpOptions, type IpSelfOptions, type Language, type LanguageDeep, type LanguageOption, type LanguageOptions, type Mx, type MxOptions, type MxRecord, type Naics, type NaicsChild, type NaicsCorrection, type NaicsDeep, type NaicsExclusion, type NaicsMatch, type NaicsOptions, type NaicsSearch, type NaicsSearchItem, type NaicsSearchOptions, type Name, type NameDeep, type NameOptions, type ParseAPIClient, ParseAPIError, type ParseAPIOptions, type Phone, type PhoneDeep, type PhoneOptions, type Point, type PointCity, type PointDeep, type PointOptions, type Postal, type PostalDeep, type PostalDistance, type PostalDistanceEnd, type PostalDistanceOptions, type PostalLocality, type PostalMetro, type PostalMetrosDeep, type PostalNearby, type PostalNearbyItem, type PostalNearbyOptions, type PostalOptions, type Preflight, type PreflightCost, type PreflightEmailCapacity, type PreflightOperation, type PreflightOperationEstimate, type PreflightPooledCapacity, type PreflightSpendCapacity, type PreflightTask, type PropertyTax, type RequestOptions, type Stack, type StackOptions, type StackResult, type StackTechnology, type State, type StateDeep, type StateDistrictDeep, type StateDistrictItem, type StateDistricts, type StateDistrictsOptions, type StateOptions, type Time, type TimeAtOptions, type TimeLocation, type TimeLocationCandidate, type TimeLocationInput, type TimeOptions, type TimeResolution, type TimeResolutionAlternative, type TimeSeason, type TimeTransition, type TimeTransitionState, type TimeZoneEntry, type TimeZones, type TimeZonesOptions, type Timezone, type TimezoneAtOptions, type TimezoneConversionTarget, type TimezoneConversionTargetDeep, type TimezoneDeep, type TimezoneNextDst, type TimezoneOptions, type Useragent, type UseragentBrowserBrand, type UseragentBrowserDeep, type UseragentDeep, type UseragentDeviceDeep, type UseragentEngineDeep, type UseragentOptions, type UseragentOsDeep, type Weather, type WeatherAir, type WeatherAlert, type WeatherCurrent, type WeatherCurrentDeep, type WeatherDay, type WeatherDeep, type WeatherForecastPeriod, type WeatherHistory, type WeatherHour, type WeatherMinute, type WeatherOptions, type WeatherStation, createBulkClient, parseAPI };
|
|
2472
|
+
export { type Address, type AddressOptions, type AddressSearch, type AddressSearchOptions, type AddressSuggestion, type AgentTask, type AgentTaskInput, type AgentTaskLookupInput, type AgentTaskResult, type Asn, type AsnOptions, BULK_CHECKS, type Bin, type BinOptions, ParseAPIError as BulkAPIError, type BulkClient, type BulkClientOptions, type BulkJob, type BulkPreview, type BulkPreviewInput, type BulkQuote, type BulkRequestOptions, type BulkResult, type BulkStartInput, type BulkStatus, type BulkUpload, type BulkUploadInput, type Caller, type CallerOptions, type Card, type CardDeep, type CardOptions, type Carrier, type CarrierDeep, type CarrierOptions, type City, type CityAmbiguityCandidate, type CityAncestorsOptions, type CityCollection, type CityCollectionFilters, type CityDeep, type CityDistance, type CityDistanceOptions, type CityGrain, type CityIdCall, type CityIdOptions, type CityList, type CityListOptions, type CityLookupCall, type CityMatch, type CityNearby, type CityNearbyCall, type CityNearbyCoordinates, type CityNearbyCoordinatesOptions, type CityNearbyOptions, type CityNearest, type CityNearestCall, type CityNearestOptions, type CityOptions, type CityPagingOptions, type CityParent, type CityRelations, type CityRelationsOptions, type CityResource, type CityResponseOptions, type CityScopeOptions, type CitySearch, type CitySearchCall, type CitySearchOptions, type CitySort, type Company, type CompanyCandidate, type CompanyCountry, type CompanyCoverage, type CompanyCoverageOptions, type CompanyDeep, type CompanyEmailAddress, type CompanyEmailReference, type CompanyIdOptions, type CompanyIndustryReference, type CompanyMatch, type CompanyOptions, type CompanyPhoneNumber, type CompanyPhoneReference, type CompanyProfile, type CompanyProfileAddress, type CompanyProfileDeep, type CompanyProfileDomain, type CompanyProfileEmail, type CompanyProfileEmployees, type CompanyProfileFounding, type CompanyProfileIdentifier, type CompanyProfileIndustry, type CompanyProfileJurisdiction, type CompanyProfileListing, type CompanyProfilePhone, type CompanyProfileRegistration, type CompanyProfileRegistrationAddress, type CompanyProfileRegistrationLegalForm, type CompanyProfileSource, type CompanyProfileWebsite, type CompanySearch, type CompanySearchOptions, type CompanySocialProfile, type Continent, type ContinentCountries, type ContinentCountriesOptions, type ContinentCountryItem, type ContinentOptions, type Country, type CountryCapital, type CountryDeep, type CountryElevationPoint, type CountryEmergency, type CountryOptions, type CountryStateItem, type CountryStates, type CountryStatesOptions, type CountryTax, type DateInfo, type DateInfoDeep, type DateOptions, type DateTodayOptions, type Deep, type District, type DistrictDeep, type DistrictOptions, type Dns, type DnsOptions, type DnsRecord, type Domain, type DomainDeep, type DomainOptions, type DomainRegistration, type DomainRegistrationResult, type DomainResult, type DomainResultDeep, type Elevation, type ElevationLocations, type ElevationOptions, type Email, type EmailDeep, type EmailOptions, type Emoji, type EmojiArtwork, type EmojiArtworkSource, type EmojiBrowse, type EmojiBrowseOptions, EmojiCatalog, type EmojiCatalogConvertOptions, type EmojiCatalogData, EmojiCatalogError, type EmojiCatalogLocalization, type EmojiCatalogLookupOptions, type EmojiCatalogOptions, type EmojiCatalogParseOptions, type EmojiCatalogRegexOptions, type EmojiCatalogScope, type EmojiCatalogSearchFacts, type EmojiCatalogSearchOptions, type EmojiCategories, type EmojiCategory, type EmojiConversion, type EmojiConvertOptions, type EmojiDeep, type EmojiMetadata, type EmojiNativeSearchFacts, type EmojiNotice, type EmojiOptions, type EmojiParse, type EmojiParseOptions, type EmojiPosition, type EmojiSearch, type EmojiSearchOptions, type EmojiShortcodeSourceMetadata, type EmojiSkin, type EmojiSource, type EmojiUnresolved, type EmojiVariant, type Hlr, type HlrDeep, type HlrOptions, type Holiday, type HolidayDate, type HolidayDateOptions, type HolidayOptions, type HolidayYear, type Industry, type IndustryChild, type IndustryCorrection, type IndustryDeep, type IndustryExclusion, type IndustryMatch, type IndustryOptions, type IndustrySearch, type IndustrySearchItem, type IndustrySearchOptions, type Ip, type IpDeep, type IpOptions, type IpSelfOptions, type Language, type LanguageDeep, type LanguageOption, type LanguageOptions, type Mx, type MxOptions, type MxRecord, type Naics, type NaicsChild, type NaicsCorrection, type NaicsDeep, type NaicsExclusion, type NaicsMatch, type NaicsOptions, type NaicsSearch, type NaicsSearchItem, type NaicsSearchOptions, type Name, type NameDeep, type NameOptions, type ParseAPIClient, ParseAPIError, type ParseAPIOptions, type Phone, type PhoneDeep, type PhoneOptions, type Point, type PointCity, type PointDeep, type PointOptions, type Postal, type PostalDeep, type PostalDistance, type PostalDistanceEnd, type PostalDistanceOptions, type PostalLocality, type PostalMetro, type PostalMetrosDeep, type PostalNearby, type PostalNearbyItem, type PostalNearbyOptions, type PostalOptions, type Preflight, type PreflightCost, type PreflightEmailCapacity, type PreflightOperation, type PreflightOperationEstimate, type PreflightPooledCapacity, type PreflightSpendCapacity, type PreflightTask, type PropertyTax, type RequestOptions, type Stack, type StackOptions, type StackResult, type StackTechnology, type State, type StateCapital, type StateDeep, type StateDistrictDeep, type StateDistrictItem, type StateDistricts, type StateDistrictsOptions, type StateOptions, type StateTax, type Time, type TimeAtOptions, type TimeLocation, type TimeLocationCandidate, type TimeLocationInput, type TimeOptions, type TimeResolution, type TimeResolutionAlternative, type TimeSeason, type TimeTransition, type TimeTransitionState, type TimeZoneEntry, type TimeZones, type TimeZonesOptions, type Timezone, type TimezoneAtOptions, type TimezoneConversionTarget, type TimezoneConversionTargetDeep, type TimezoneDeep, type TimezoneNextDst, type TimezoneOptions, type Useragent, type UseragentBrowserBrand, type UseragentBrowserDeep, type UseragentDeep, type UseragentDeviceDeep, type UseragentEngineDeep, type UseragentOptions, type UseragentOsDeep, type Weather, type WeatherAir, type WeatherAlert, type WeatherCurrent, type WeatherCurrentDeep, type WeatherDay, type WeatherDeep, type WeatherForecastPeriod, type WeatherHistory, type WeatherHour, type WeatherMinute, type WeatherOptions, type WeatherStation, createBulkClient, parseAPI };
|
package/dist/index.d.ts
CHANGED
|
@@ -72,7 +72,13 @@ interface Country {
|
|
|
72
72
|
deep?: Deep<CountryDeep>;
|
|
73
73
|
/** IANA timezones used by the country. */
|
|
74
74
|
timezones: string[] | null;
|
|
75
|
+
/** ISO 3166-1 alpha-3 country code. */
|
|
76
|
+
iso_alpha3?: string | null;
|
|
77
|
+
/** ISO 3166-1 numeric country code. */
|
|
78
|
+
iso_numeric?: number | null;
|
|
79
|
+
/** @deprecated Older servers use iso3. Read iso_alpha3 on the current contract. */
|
|
75
80
|
iso3?: string | null;
|
|
81
|
+
/** @deprecated Older servers use numeric. Read iso_numeric on the current contract. */
|
|
76
82
|
numeric?: number | null;
|
|
77
83
|
/** Official long name. */
|
|
78
84
|
name_full?: string | null;
|
|
@@ -114,9 +120,14 @@ interface State {
|
|
|
114
120
|
country_name: string | null;
|
|
115
121
|
latitude: number | null;
|
|
116
122
|
longitude: number | null;
|
|
117
|
-
timezone: string | null;
|
|
118
123
|
timezones: string[];
|
|
119
|
-
|
|
124
|
+
/** Full ISO 3166-2 subdivision code, including its country prefix. */
|
|
125
|
+
iso_subdivision?: string | null;
|
|
126
|
+
/** @deprecated Legacy candidate spelling. Read iso_subdivision on the current contract. */
|
|
127
|
+
iso?: string | null;
|
|
128
|
+
fips: string | null;
|
|
129
|
+
area_codes: string[] | null;
|
|
130
|
+
capital: StateCapital;
|
|
120
131
|
deep?: Deep<StateDeep>;
|
|
121
132
|
}
|
|
122
133
|
interface StateDistrictItem {
|
|
@@ -147,7 +158,6 @@ interface District {
|
|
|
147
158
|
country_name: string | null;
|
|
148
159
|
latitude: number | null;
|
|
149
160
|
longitude: number | null;
|
|
150
|
-
timezone: string | null;
|
|
151
161
|
timezones: string[];
|
|
152
162
|
deep?: Deep<DistrictDeep>;
|
|
153
163
|
}
|
|
@@ -349,11 +359,6 @@ interface Stack {
|
|
|
349
359
|
url: string;
|
|
350
360
|
/** Time of the check, or null when no HTML page could be checked. */
|
|
351
361
|
checked_at: string | null;
|
|
352
|
-
scope: 'homepage' | 'site';
|
|
353
|
-
/** Number of successfully checked HTML pages. */
|
|
354
|
-
pages: number;
|
|
355
|
-
/** True for homepage-only or incomplete bounded checks; null when no HTML page could be checked. False never guarantees every page was visited. */
|
|
356
|
-
partial: boolean | null;
|
|
357
362
|
/** Collections are null when no HTML page could be checked and empty when no matches were found. */
|
|
358
363
|
cms: StackTechnology[] | null;
|
|
359
364
|
servers: StackTechnology[] | null;
|
|
@@ -478,6 +483,11 @@ interface Language {
|
|
|
478
483
|
script: string | null;
|
|
479
484
|
direction: 'ltr' | 'rtl' | string;
|
|
480
485
|
deep?: Deep<LanguageDeep>;
|
|
486
|
+
/** ISO 639-3 language code. */
|
|
487
|
+
iso_alpha3?: string | null;
|
|
488
|
+
/** @deprecated Older servers use iso3. Read iso_alpha3 on the current contract. */
|
|
489
|
+
iso3?: string | null;
|
|
490
|
+
countries?: string[] | null;
|
|
481
491
|
}
|
|
482
492
|
/** A parsed person name. Junk input returns valid: false, never an error. Gender comes from dictionary data and is null when the data does not decide. */
|
|
483
493
|
interface Name {
|
|
@@ -1191,7 +1201,9 @@ interface CountryDeep {
|
|
|
1191
1201
|
urban_population?: number | null;
|
|
1192
1202
|
/** Share of population using the internet, from 0 to 100. */
|
|
1193
1203
|
internet_users?: number | null;
|
|
1204
|
+
/** @deprecated Older deep contract. Current ISO identifiers live in Core. */
|
|
1194
1205
|
iso3: string;
|
|
1206
|
+
/** @deprecated Older deep contract. Current iso_numeric lives in Core. */
|
|
1195
1207
|
numeric: number;
|
|
1196
1208
|
full_name: string | null;
|
|
1197
1209
|
demonym: string | null;
|
|
@@ -1252,18 +1264,19 @@ interface CountryElevationPoint {
|
|
|
1252
1264
|
elevation: number;
|
|
1253
1265
|
}
|
|
1254
1266
|
interface StateDeep {
|
|
1267
|
+
/** @deprecated Older deep contract. Read Core iso_subdivision on the current contract. */
|
|
1268
|
+
iso_3166_2?: string | null;
|
|
1255
1269
|
population: number | null;
|
|
1256
1270
|
/** @deprecated No longer returned. Retained for source compatibility. */
|
|
1257
1271
|
population_period?: string | null;
|
|
1258
1272
|
/** Total area in km2. */
|
|
1259
1273
|
area: number | null;
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
tax_rate: number | null;
|
|
1274
|
+
tax: StateTax;
|
|
1275
|
+
/** @deprecated Historical Deep read members. */
|
|
1276
|
+
fips?: string | null;
|
|
1277
|
+
capital?: string | null;
|
|
1278
|
+
area_codes?: string[];
|
|
1279
|
+
tax_rate?: number | null;
|
|
1267
1280
|
}
|
|
1268
1281
|
interface DistrictDeep {
|
|
1269
1282
|
population: number | null;
|
|
@@ -1355,8 +1368,10 @@ interface HlrDeep {
|
|
|
1355
1368
|
mnc: string | null;
|
|
1356
1369
|
}
|
|
1357
1370
|
interface LanguageDeep {
|
|
1358
|
-
|
|
1359
|
-
|
|
1371
|
+
/** @deprecated Older deep contract. Read Core iso_alpha3 on the current contract. */
|
|
1372
|
+
iso3?: string | null;
|
|
1373
|
+
/** @deprecated Older deep contract. Current country associations live in Core. */
|
|
1374
|
+
countries?: string[] | null;
|
|
1360
1375
|
}
|
|
1361
1376
|
interface NameDeep {
|
|
1362
1377
|
gender: 'male' | 'female' | null;
|
|
@@ -1604,6 +1619,29 @@ interface CityNearbyCoordinates extends CityCollection {
|
|
|
1604
1619
|
radius: number;
|
|
1605
1620
|
unit: string;
|
|
1606
1621
|
}
|
|
1622
|
+
/** Minimal related records returned in Company Core. Rich Deep records stay separate. */
|
|
1623
|
+
interface CompanyIndustryReference {
|
|
1624
|
+
type: string;
|
|
1625
|
+
code: string;
|
|
1626
|
+
}
|
|
1627
|
+
interface CompanyPhoneReference {
|
|
1628
|
+
number: string;
|
|
1629
|
+
country?: string | null;
|
|
1630
|
+
e164?: string | null;
|
|
1631
|
+
}
|
|
1632
|
+
interface CompanyEmailReference {
|
|
1633
|
+
address: string;
|
|
1634
|
+
}
|
|
1635
|
+
interface StateTax {
|
|
1636
|
+
name: string | null;
|
|
1637
|
+
/** Reference rate in percent. Choose the geographic scope for the task. */
|
|
1638
|
+
rate: number | null;
|
|
1639
|
+
}
|
|
1640
|
+
interface StateCapital {
|
|
1641
|
+
name: string | null;
|
|
1642
|
+
lat: number | null;
|
|
1643
|
+
lon: number | null;
|
|
1644
|
+
}
|
|
1607
1645
|
|
|
1608
1646
|
/** Every non-2xx response from the API. Branch on `code`, never on `message`. */
|
|
1609
1647
|
declare class ParseAPIError extends Error {
|
|
@@ -1873,8 +1911,8 @@ interface DomainResult {
|
|
|
1873
1911
|
available: boolean | null;
|
|
1874
1912
|
deep?: Deep<DomainResultDeep>;
|
|
1875
1913
|
}
|
|
1876
|
-
/**
|
|
1877
|
-
type StackResult =
|
|
1914
|
+
/** Alias for the current Stack response. */
|
|
1915
|
+
type StackResult = Stack;
|
|
1878
1916
|
|
|
1879
1917
|
interface EmojiCatalogLookupOptions {
|
|
1880
1918
|
deep?: boolean;
|
|
@@ -2279,7 +2317,7 @@ declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
|
|
|
2279
2317
|
caller: (number: string, opts?: CallerOptions) => Promise<Caller>;
|
|
2280
2318
|
/** Look up phone status at the last check. Live means assigned and connected means reachable at that check. Cached results may be returned. Null means unconfirmed. Deep adds network diagnostics within the same metered lookup. No automatic retries by default. */
|
|
2281
2319
|
hlr: (number: string, opts?: HlrOptions) => Promise<Hlr>;
|
|
2282
|
-
/** Identify
|
|
2320
|
+
/** Identify technologies in static homepage HTML and response headers. */
|
|
2283
2321
|
stack: (domain: string, opts?: StackOptions) => Promise<Stack>;
|
|
2284
2322
|
/** Check registration: available is true, false or null when unknown. Paid Deep adds available registration details. */
|
|
2285
2323
|
domain: (domain: string, opts?: DomainOptions) => Promise<Domain>;
|
|
@@ -2431,4 +2469,4 @@ interface CityNearbyCall {
|
|
|
2431
2469
|
(name: string, opts: CityNearbyOptions): Promise<CityNearby | CityCollection>;
|
|
2432
2470
|
}
|
|
2433
2471
|
|
|
2434
|
-
export { type Address, type AddressOptions, type AddressSearch, type AddressSearchOptions, type AddressSuggestion, type AgentTask, type AgentTaskInput, type AgentTaskLookupInput, type AgentTaskResult, type Asn, type AsnOptions, BULK_CHECKS, type Bin, type BinOptions, ParseAPIError as BulkAPIError, type BulkClient, type BulkClientOptions, type BulkJob, type BulkPreview, type BulkPreviewInput, type BulkQuote, type BulkRequestOptions, type BulkResult, type BulkStartInput, type BulkStatus, type BulkUpload, type BulkUploadInput, type Caller, type CallerOptions, type Card, type CardDeep, type CardOptions, type Carrier, type CarrierDeep, type CarrierOptions, type City, type CityAmbiguityCandidate, type CityAncestorsOptions, type CityCollection, type CityCollectionFilters, type CityDeep, type CityDistance, type CityDistanceOptions, type CityGrain, type CityIdCall, type CityIdOptions, type CityList, type CityListOptions, type CityLookupCall, type CityMatch, type CityNearby, type CityNearbyCall, type CityNearbyCoordinates, type CityNearbyCoordinatesOptions, type CityNearbyOptions, type CityNearest, type CityNearestCall, type CityNearestOptions, type CityOptions, type CityPagingOptions, type CityParent, type CityRelations, type CityRelationsOptions, type CityResource, type CityResponseOptions, type CityScopeOptions, type CitySearch, type CitySearchCall, type CitySearchOptions, type CitySort, type Company, type CompanyCandidate, type CompanyCountry, type CompanyCoverage, type CompanyCoverageOptions, type CompanyDeep, type CompanyEmailAddress, type CompanyIdOptions, type CompanyMatch, type CompanyOptions, type CompanyPhoneNumber, type CompanyProfile, type CompanyProfileAddress, type CompanyProfileDeep, type CompanyProfileDomain, type CompanyProfileEmail, type CompanyProfileEmployees, type CompanyProfileFounding, type CompanyProfileIdentifier, type CompanyProfileIndustry, type CompanyProfileJurisdiction, type CompanyProfileListing, type CompanyProfilePhone, type CompanyProfileRegistration, type CompanyProfileRegistrationAddress, type CompanyProfileRegistrationLegalForm, type CompanyProfileSource, type CompanyProfileWebsite, type CompanySearch, type CompanySearchOptions, type CompanySocialProfile, type Continent, type ContinentCountries, type ContinentCountriesOptions, type ContinentCountryItem, type ContinentOptions, type Country, type CountryCapital, type CountryDeep, type CountryElevationPoint, type CountryEmergency, type CountryOptions, type CountryStateItem, type CountryStates, type CountryStatesOptions, type CountryTax, type DateInfo, type DateInfoDeep, type DateOptions, type DateTodayOptions, type Deep, type District, type DistrictDeep, type DistrictOptions, type Dns, type DnsOptions, type DnsRecord, type Domain, type DomainDeep, type DomainOptions, type DomainRegistration, type DomainRegistrationResult, type DomainResult, type DomainResultDeep, type Elevation, type ElevationLocations, type ElevationOptions, type Email, type EmailDeep, type EmailOptions, type Emoji, type EmojiArtwork, type EmojiArtworkSource, type EmojiBrowse, type EmojiBrowseOptions, EmojiCatalog, type EmojiCatalogConvertOptions, type EmojiCatalogData, EmojiCatalogError, type EmojiCatalogLocalization, type EmojiCatalogLookupOptions, type EmojiCatalogOptions, type EmojiCatalogParseOptions, type EmojiCatalogRegexOptions, type EmojiCatalogScope, type EmojiCatalogSearchFacts, type EmojiCatalogSearchOptions, type EmojiCategories, type EmojiCategory, type EmojiConversion, type EmojiConvertOptions, type EmojiDeep, type EmojiMetadata, type EmojiNativeSearchFacts, type EmojiNotice, type EmojiOptions, type EmojiParse, type EmojiParseOptions, type EmojiPosition, type EmojiSearch, type EmojiSearchOptions, type EmojiShortcodeSourceMetadata, type EmojiSkin, type EmojiSource, type EmojiUnresolved, type EmojiVariant, type Hlr, type HlrDeep, type HlrOptions, type Holiday, type HolidayDate, type HolidayDateOptions, type HolidayOptions, type HolidayYear, type Industry, type IndustryChild, type IndustryCorrection, type IndustryDeep, type IndustryExclusion, type IndustryMatch, type IndustryOptions, type IndustrySearch, type IndustrySearchItem, type IndustrySearchOptions, type Ip, type IpDeep, type IpOptions, type IpSelfOptions, type Language, type LanguageDeep, type LanguageOption, type LanguageOptions, type Mx, type MxOptions, type MxRecord, type Naics, type NaicsChild, type NaicsCorrection, type NaicsDeep, type NaicsExclusion, type NaicsMatch, type NaicsOptions, type NaicsSearch, type NaicsSearchItem, type NaicsSearchOptions, type Name, type NameDeep, type NameOptions, type ParseAPIClient, ParseAPIError, type ParseAPIOptions, type Phone, type PhoneDeep, type PhoneOptions, type Point, type PointCity, type PointDeep, type PointOptions, type Postal, type PostalDeep, type PostalDistance, type PostalDistanceEnd, type PostalDistanceOptions, type PostalLocality, type PostalMetro, type PostalMetrosDeep, type PostalNearby, type PostalNearbyItem, type PostalNearbyOptions, type PostalOptions, type Preflight, type PreflightCost, type PreflightEmailCapacity, type PreflightOperation, type PreflightOperationEstimate, type PreflightPooledCapacity, type PreflightSpendCapacity, type PreflightTask, type PropertyTax, type RequestOptions, type Stack, type StackOptions, type StackResult, type StackTechnology, type State, type StateDeep, type StateDistrictDeep, type StateDistrictItem, type StateDistricts, type StateDistrictsOptions, type StateOptions, type Time, type TimeAtOptions, type TimeLocation, type TimeLocationCandidate, type TimeLocationInput, type TimeOptions, type TimeResolution, type TimeResolutionAlternative, type TimeSeason, type TimeTransition, type TimeTransitionState, type TimeZoneEntry, type TimeZones, type TimeZonesOptions, type Timezone, type TimezoneAtOptions, type TimezoneConversionTarget, type TimezoneConversionTargetDeep, type TimezoneDeep, type TimezoneNextDst, type TimezoneOptions, type Useragent, type UseragentBrowserBrand, type UseragentBrowserDeep, type UseragentDeep, type UseragentDeviceDeep, type UseragentEngineDeep, type UseragentOptions, type UseragentOsDeep, type Weather, type WeatherAir, type WeatherAlert, type WeatherCurrent, type WeatherCurrentDeep, type WeatherDay, type WeatherDeep, type WeatherForecastPeriod, type WeatherHistory, type WeatherHour, type WeatherMinute, type WeatherOptions, type WeatherStation, createBulkClient, parseAPI };
|
|
2472
|
+
export { type Address, type AddressOptions, type AddressSearch, type AddressSearchOptions, type AddressSuggestion, type AgentTask, type AgentTaskInput, type AgentTaskLookupInput, type AgentTaskResult, type Asn, type AsnOptions, BULK_CHECKS, type Bin, type BinOptions, ParseAPIError as BulkAPIError, type BulkClient, type BulkClientOptions, type BulkJob, type BulkPreview, type BulkPreviewInput, type BulkQuote, type BulkRequestOptions, type BulkResult, type BulkStartInput, type BulkStatus, type BulkUpload, type BulkUploadInput, type Caller, type CallerOptions, type Card, type CardDeep, type CardOptions, type Carrier, type CarrierDeep, type CarrierOptions, type City, type CityAmbiguityCandidate, type CityAncestorsOptions, type CityCollection, type CityCollectionFilters, type CityDeep, type CityDistance, type CityDistanceOptions, type CityGrain, type CityIdCall, type CityIdOptions, type CityList, type CityListOptions, type CityLookupCall, type CityMatch, type CityNearby, type CityNearbyCall, type CityNearbyCoordinates, type CityNearbyCoordinatesOptions, type CityNearbyOptions, type CityNearest, type CityNearestCall, type CityNearestOptions, type CityOptions, type CityPagingOptions, type CityParent, type CityRelations, type CityRelationsOptions, type CityResource, type CityResponseOptions, type CityScopeOptions, type CitySearch, type CitySearchCall, type CitySearchOptions, type CitySort, type Company, type CompanyCandidate, type CompanyCountry, type CompanyCoverage, type CompanyCoverageOptions, type CompanyDeep, type CompanyEmailAddress, type CompanyEmailReference, type CompanyIdOptions, type CompanyIndustryReference, type CompanyMatch, type CompanyOptions, type CompanyPhoneNumber, type CompanyPhoneReference, type CompanyProfile, type CompanyProfileAddress, type CompanyProfileDeep, type CompanyProfileDomain, type CompanyProfileEmail, type CompanyProfileEmployees, type CompanyProfileFounding, type CompanyProfileIdentifier, type CompanyProfileIndustry, type CompanyProfileJurisdiction, type CompanyProfileListing, type CompanyProfilePhone, type CompanyProfileRegistration, type CompanyProfileRegistrationAddress, type CompanyProfileRegistrationLegalForm, type CompanyProfileSource, type CompanyProfileWebsite, type CompanySearch, type CompanySearchOptions, type CompanySocialProfile, type Continent, type ContinentCountries, type ContinentCountriesOptions, type ContinentCountryItem, type ContinentOptions, type Country, type CountryCapital, type CountryDeep, type CountryElevationPoint, type CountryEmergency, type CountryOptions, type CountryStateItem, type CountryStates, type CountryStatesOptions, type CountryTax, type DateInfo, type DateInfoDeep, type DateOptions, type DateTodayOptions, type Deep, type District, type DistrictDeep, type DistrictOptions, type Dns, type DnsOptions, type DnsRecord, type Domain, type DomainDeep, type DomainOptions, type DomainRegistration, type DomainRegistrationResult, type DomainResult, type DomainResultDeep, type Elevation, type ElevationLocations, type ElevationOptions, type Email, type EmailDeep, type EmailOptions, type Emoji, type EmojiArtwork, type EmojiArtworkSource, type EmojiBrowse, type EmojiBrowseOptions, EmojiCatalog, type EmojiCatalogConvertOptions, type EmojiCatalogData, EmojiCatalogError, type EmojiCatalogLocalization, type EmojiCatalogLookupOptions, type EmojiCatalogOptions, type EmojiCatalogParseOptions, type EmojiCatalogRegexOptions, type EmojiCatalogScope, type EmojiCatalogSearchFacts, type EmojiCatalogSearchOptions, type EmojiCategories, type EmojiCategory, type EmojiConversion, type EmojiConvertOptions, type EmojiDeep, type EmojiMetadata, type EmojiNativeSearchFacts, type EmojiNotice, type EmojiOptions, type EmojiParse, type EmojiParseOptions, type EmojiPosition, type EmojiSearch, type EmojiSearchOptions, type EmojiShortcodeSourceMetadata, type EmojiSkin, type EmojiSource, type EmojiUnresolved, type EmojiVariant, type Hlr, type HlrDeep, type HlrOptions, type Holiday, type HolidayDate, type HolidayDateOptions, type HolidayOptions, type HolidayYear, type Industry, type IndustryChild, type IndustryCorrection, type IndustryDeep, type IndustryExclusion, type IndustryMatch, type IndustryOptions, type IndustrySearch, type IndustrySearchItem, type IndustrySearchOptions, type Ip, type IpDeep, type IpOptions, type IpSelfOptions, type Language, type LanguageDeep, type LanguageOption, type LanguageOptions, type Mx, type MxOptions, type MxRecord, type Naics, type NaicsChild, type NaicsCorrection, type NaicsDeep, type NaicsExclusion, type NaicsMatch, type NaicsOptions, type NaicsSearch, type NaicsSearchItem, type NaicsSearchOptions, type Name, type NameDeep, type NameOptions, type ParseAPIClient, ParseAPIError, type ParseAPIOptions, type Phone, type PhoneDeep, type PhoneOptions, type Point, type PointCity, type PointDeep, type PointOptions, type Postal, type PostalDeep, type PostalDistance, type PostalDistanceEnd, type PostalDistanceOptions, type PostalLocality, type PostalMetro, type PostalMetrosDeep, type PostalNearby, type PostalNearbyItem, type PostalNearbyOptions, type PostalOptions, type Preflight, type PreflightCost, type PreflightEmailCapacity, type PreflightOperation, type PreflightOperationEstimate, type PreflightPooledCapacity, type PreflightSpendCapacity, type PreflightTask, type PropertyTax, type RequestOptions, type Stack, type StackOptions, type StackResult, type StackTechnology, type State, type StateCapital, type StateDeep, type StateDistrictDeep, type StateDistrictItem, type StateDistricts, type StateDistrictsOptions, type StateOptions, type StateTax, type Time, type TimeAtOptions, type TimeLocation, type TimeLocationCandidate, type TimeLocationInput, type TimeOptions, type TimeResolution, type TimeResolutionAlternative, type TimeSeason, type TimeTransition, type TimeTransitionState, type TimeZoneEntry, type TimeZones, type TimeZonesOptions, type Timezone, type TimezoneAtOptions, type TimezoneConversionTarget, type TimezoneConversionTargetDeep, type TimezoneDeep, type TimezoneNextDst, type TimezoneOptions, type Useragent, type UseragentBrowserBrand, type UseragentBrowserDeep, type UseragentDeep, type UseragentDeviceDeep, type UseragentEngineDeep, type UseragentOptions, type UseragentOsDeep, type Weather, type WeatherAir, type WeatherAlert, type WeatherCurrent, type WeatherCurrentDeep, type WeatherDay, type WeatherDeep, type WeatherForecastPeriod, type WeatherHistory, type WeatherHour, type WeatherMinute, type WeatherOptions, type WeatherStation, createBulkClient, parseAPI };
|
package/dist/index.js
CHANGED
|
@@ -416,7 +416,7 @@ var EmojiCatalog = class {
|
|
|
416
416
|
};
|
|
417
417
|
|
|
418
418
|
// src/index.ts
|
|
419
|
-
var VERSION = "1.12.
|
|
419
|
+
var VERSION = "1.12.6";
|
|
420
420
|
var API_VERSION = "2.0.0";
|
|
421
421
|
var DEFAULT_BASE_URL = "https://api.parseapi.com";
|
|
422
422
|
var DEFAULT_TIMEOUT_MS = 1e4;
|
|
@@ -718,7 +718,7 @@ function parseAPI(apiKey, options = {}) {
|
|
|
718
718
|
caller: (number, opts) => request(`/caller/${enc(number)}`, { country: opts?.country }, void 0, opts),
|
|
719
719
|
/** Look up phone status at the last check. Live means assigned and connected means reachable at that check. Cached results may be returned. Null means unconfirmed. Deep adds network diagnostics within the same metered lookup. No automatic retries by default. */
|
|
720
720
|
hlr: (number, opts) => request(`/hlr/${enc(number)}`, { country: opts?.country, ...deepQuery(opts) }, void 0, opts),
|
|
721
|
-
/** Identify
|
|
721
|
+
/** Identify technologies in static homepage HTML and response headers. */
|
|
722
722
|
stack: (domain, opts) => request(`/stack/${enc(domain)}`, { ...deepQuery(opts), pretty: opts?.pretty }, void 0, opts),
|
|
723
723
|
/** Check registration: available is true, false or null when unknown. Paid Deep adds available registration details. */
|
|
724
724
|
domain: (domain, opts) => request(`/domain/${enc(domain)}`, deepQuery(opts), void 0, opts),
|