@parseapi/sdk 1.11.3 → 1.11.4

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 CHANGED
@@ -74,7 +74,7 @@ const country = await parse.country('DE', { lang: 'fr' });
74
74
  ```
75
75
 
76
76
  Only supported display fields change. Missing translations keep their source
77
- names. IDs, native-name fields, numeric facts, Date input `format`, and Measure
77
+ names. IDs, native-name fields, numeric facts, Date input `format`, and
78
78
  input `locale` retain their meaning. Omitting `lang` preserves the existing
79
79
  behavior and does not inherit a previous request's choice.
80
80
 
@@ -167,7 +167,6 @@ await parse.point(36.0726, -79.792);
167
167
  await parse.weather(40.7128, -74.006);
168
168
  await parse.domain('example.com');
169
169
  await parse.asn('AS13335');
170
- await parse.mac('00:1B:63:84:45:E6');
171
170
  await parse.mx('example.com');
172
171
  await parse.dns('example.com');
173
172
  await parse.dns('_dmarc.example.com', { type: 'TXT' });
@@ -240,19 +239,6 @@ Timezone discovery accepts country, IANA area, exact signed offset, abbreviation
240
239
 
241
240
  Source deep adds `standard_offset`, `standard_offset_seconds`, signed `dst_offset_seconds` and `season`. Seasonal adjustments can be negative. `season` describes the current DST-flag interval, or the next within 400 days, with actual before/after transition facts and signed `change_seconds`. Unknown boundaries remain null. These fields are optional and nullable, and destination deep stays compact.
242
241
 
243
- ## Measurements
244
-
245
- ```ts
246
- const result = await parse.measure('5 ft 11 in', { to: 'cm' });
247
- const units = await parse.measure.units({ unit: 'm' });
248
- ```
249
-
250
- `amount` is a decimal string, such as `"180.34"`. Without `to`, the API returns the canonical unit for the measurement type. Pass `locale` for number formatting and `system` (`us` or `imperial`) when a customary unit needs context. Ambiguous input returns `valid: false`, a `reason`, and available `choices`. Invalid or incompatible target units use the normal API error.
251
-
252
- Successful HTTP JSON contains `measure`, `valid`, `type`, `amount`, and `unit`. Invalid input adds `reason`. `choices` appears only when unit alternatives are available. The typed client keeps `reason` readable as `null` and `choices` as `[]` when omitted, while JSON serialization retains the API response shape.
253
-
254
- Unit discovery accepts optional `query`, `type`, and `unit` filters. `unit` selects compatible targets. Omit the filters for the reviewed catalog. Both operations use pooled requests.
255
-
256
242
  ## Place statistics and optional detail
257
243
 
258
244
  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).
@@ -291,7 +277,7 @@ Choose enrichment for the question you need answered.
291
277
  | IP | Richer IP fields included with a paid plan. No separate check meter. |
292
278
  | Domain | Registration dates, registrar, status and DNSSEC, included with a paid plan. Use `dns` for DNS records and `mx` for mail routing. |
293
279
  | Email | A metered mailbox check with deliverability, catch-all, status, reason and address hints, using included email checks or enabled on-demand usage. |
294
- | Phone, Time, Date, Currency, Language, Emoji, Point | Optional detail in the same pooled request on every plan. |
280
+ | Phone, Time, Date, Language, Emoji, Point | Optional detail in the same pooled request on every plan. |
295
281
  | Country, State, District, City, Postal | The place profile on paid plans, including demographic and tax facts where held. |
296
282
  | Name, Industry | Name evidence or the industry definition profile on paid plans. |
297
283
  | Company (national number) | The complete product detail bag on paid plans. |
package/dist/index.cjs CHANGED
@@ -285,7 +285,7 @@ var EmojiCatalog = class {
285
285
  };
286
286
 
287
287
  // src/index.ts
288
- var VERSION = "1.11.3";
288
+ var VERSION = "1.11.4";
289
289
  var API_VERSION = "2.0.0";
290
290
  var DEFAULT_BASE_URL = "https://api.parseapi.com";
291
291
  var DEFAULT_TIMEOUT_MS = 1e4;
@@ -613,7 +613,6 @@ function parseAPI(apiKey, options = {}) {
613
613
  /** Check whether a domain is registered. Deep adds registration dates, registrar, status and DNSSEC on paid plans. */
614
614
  domain: (domain, opts) => request(`/domain/${enc(domain)}`, deepQuery(opts), void 0, opts),
615
615
  asn: (asn, opts) => request(`/asn/${enc(asn)}`, void 0, void 0, opts),
616
- mac: (mac, opts) => request(`/mac/${enc(mac)}`, void 0, void 0, opts),
617
616
  /** Look up a 2-11 digit card prefix. Keep leading zeros in the input string. */
618
617
  card: async (bin, opts) => {
619
618
  if (typeof bin !== "string" || bin.length > 64 || !/^[0-9]{2,11}$/.test(bin.replace(/[ \t\r\n-]/g, ""))) {
@@ -621,19 +620,6 @@ function parseAPI(apiKey, options = {}) {
621
620
  }
622
621
  return request(`/card/${enc(bin)}`, deepQuery(opts), void 0, opts);
623
622
  },
624
- /** Parse a measurement or convert it to `to`. Without `to`, use its type's canonical unit. Invalid input is plain data with `valid: false`. */
625
- measure: Object.assign(
626
- async (measure, opts) => {
627
- const result = await request(`/measure/${enc(measure)}`, { to: opts?.to, locale: opts?.locale, system: opts?.system }, void 0, opts);
628
- if (!Object.prototype.hasOwnProperty.call(result, "reason")) Object.defineProperty(result, "reason", { value: null, writable: true, configurable: true });
629
- if (!Object.prototype.hasOwnProperty.call(result, "choices")) Object.defineProperty(result, "choices", { value: [], writable: true, configurable: true });
630
- return result;
631
- },
632
- {
633
- /** Discover reviewed units. Pass `unit` to find compatible conversion targets. */
634
- units: (opts) => request("/measure/units", { q: opts?.query, type: opts?.type, unit: opts?.unit }, void 0, opts)
635
- }
636
- ),
637
623
  /** Look up DNS records with TTLs. Type selects the question and may include its CNAME chain. Pooled on every plan. */
638
624
  dns: (domain, opts) => request(`/dns/${enc(domain)}`, { type: opts?.type }, void 0, opts),
639
625
  mx: (domain, opts) => request(`/mx/${enc(domain)}`, void 0, void 0, opts),
@@ -642,15 +628,6 @@ function parseAPI(apiKey, options = {}) {
642
628
  industry,
643
629
  /** Compatibility name for industry. */
644
630
  naics: industry,
645
- currency: Object.assign(
646
- (code, opts) => request(`/currency/${enc(code)}`, deepQuery(opts), void 0, opts),
647
- {
648
- rate: (base, quote, opts) => request(`/currency/${enc(base)}/${enc(quote)}`, {
649
- date: opts?.date,
650
- amount: opts?.amount
651
- }, void 0, opts)
652
- }
653
- ),
654
631
  language: (code, opts) => request(`/language/${enc(code)}`, deepQuery(opts), void 0, opts),
655
632
  name: (name, opts) => request(`/name/${enc(name)}`, { country: opts?.country, ...deepQuery(opts), name_locale: opts?.name_locale }, void 0, opts),
656
633
  /** Current local time, UTC by default. With to or targets, offsetless at is source wall time. */
package/dist/index.d.cts CHANGED
@@ -8,31 +8,6 @@
8
8
  type Deep<T> = Partial<{
9
9
  [K in keyof T]: T[K] | null;
10
10
  }>;
11
- interface MeasureChoice {
12
- unit: string;
13
- name: string;
14
- }
15
- /** A parsed measurement. Amount is a decimal string, preserving the API's precision. */
16
- interface Measure {
17
- measure: string;
18
- valid: boolean;
19
- type: string | null;
20
- amount: string | null;
21
- unit: string | null;
22
- /** Failure reason. Omitted wire fields remain readable as null. */
23
- reason: string | null;
24
- /** Unit alternatives. Omitted wire fields remain readable as an empty array. */
25
- choices: MeasureChoice[];
26
- }
27
- interface MeasureUnit {
28
- unit: string;
29
- name: string;
30
- type: string;
31
- aliases: string[];
32
- }
33
- interface MeasureUnits {
34
- units: MeasureUnit[];
35
- }
36
11
  interface IpDeep {
37
12
  state: string;
38
13
  city: string;
@@ -378,14 +353,6 @@ interface Asn {
378
353
  country: string | null;
379
354
  country_name: string | null;
380
355
  }
381
- /** A normalized 48-bit address. Vendor names the registered assignment holder. */
382
- interface Mac {
383
- mac: string;
384
- valid: boolean;
385
- vendor: string | null;
386
- local: boolean | null;
387
- multicast: boolean | null;
388
- }
389
356
  /** Network identity from reviewed prefix rules; null means unknown or ambiguous. */
390
357
  interface Card {
391
358
  bin: string;
@@ -464,14 +431,6 @@ interface Useragent {
464
431
  mobile: boolean;
465
432
  deep?: Deep<UseragentDeep>;
466
433
  }
467
- interface Currency {
468
- currency: string;
469
- name: string;
470
- symbol: string | null;
471
- symbol_native: string | null;
472
- digits: number | null;
473
- deep?: Deep<CurrencyDeep>;
474
- }
475
434
  /** One language by BCP 47 shortest code (en) or ISO 639-3 (eng). Codes are lowercase. */
476
435
  interface Language {
477
436
  language: string;
@@ -492,17 +451,6 @@ interface Name {
492
451
  suffix: string | null;
493
452
  deep?: Deep<NameDeep>;
494
453
  }
495
- interface CurrencyRate {
496
- base: string;
497
- quote: string;
498
- rate: number;
499
- date: string;
500
- /** With amount= only: echo of the amount asked. */
501
- amount?: number;
502
- /** With amount= only: amount times rate, rounded to the quote currency minor-unit digits. */
503
- converted?: number;
504
- source?: string;
505
- }
506
454
  interface TimezoneNextDst {
507
455
  at: string;
508
456
  dst: boolean;
@@ -1350,11 +1298,6 @@ interface HlrDeep {
1350
1298
  mcc: string | null;
1351
1299
  mnc: string | null;
1352
1300
  }
1353
- interface CurrencyDeep {
1354
- numeric: number | null;
1355
- name_plural: string | null;
1356
- countries: string[];
1357
- }
1358
1301
  interface LanguageDeep {
1359
1302
  iso3: string | null;
1360
1303
  countries: string[];
@@ -1992,20 +1935,8 @@ type StackOptions = {
1992
1935
  } & DeepOption & RequestOptions;
1993
1936
  type DomainOptions = DeepOption & RequestOptions;
1994
1937
  type AsnOptions = LanguageOption & RequestOptions;
1995
- type MacOptions = RequestOptions;
1996
1938
  /** Request controls for a card-prefix reference lookup. */
1997
1939
  type CardOptions = DeepOption & RequestOptions;
1998
- /** Parse a measurement, optionally converting it. Locale and system resolve explicit ambiguity. */
1999
- type MeasureOptions = {
2000
- to?: string;
2001
- locale?: string;
2002
- system?: 'us' | 'imperial';
2003
- } & RequestOptions;
2004
- type MeasureUnitsOptions = LanguageOption & {
2005
- query?: string;
2006
- type?: string;
2007
- unit?: string;
2008
- } & RequestOptions;
2009
1940
  /** Published DNS records. Omit type to check all ten supported types. Values retain DNS presentation syntax. */
2010
1941
  type DnsOptions = {
2011
1942
  type?: string;
@@ -2018,11 +1949,6 @@ type IndustryOptions = DeepOption & RequestOptions;
2018
1949
  type IndustrySearchOptions = {
2019
1950
  limit?: number;
2020
1951
  } & DeepOption & RequestOptions;
2021
- type CurrencyOptions = LanguageOption & DeepOption & RequestOptions;
2022
- type CurrencyRateOptions = {
2023
- date?: string;
2024
- amount?: number;
2025
- } & RequestOptions;
2026
1952
  type LanguageOptions = LanguageOption & DeepOption & RequestOptions;
2027
1953
  /** Country scopes paid deep gender evidence. Name locale selects formatting rules without changing parsing. */
2028
1954
  type NameOptions = {
@@ -2204,14 +2130,8 @@ declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
2204
2130
  /** Check whether a domain is registered. Deep adds registration dates, registrar, status and DNSSEC on paid plans. */
2205
2131
  domain: (domain: string, opts?: DomainOptions) => Promise<Domain>;
2206
2132
  asn: (asn: string, opts?: AsnOptions) => Promise<Asn>;
2207
- mac: (mac: string, opts?: MacOptions) => Promise<Mac>;
2208
2133
  /** Look up a 2-11 digit card prefix. Keep leading zeros in the input string. */
2209
2134
  card: (bin: string, opts?: CardOptions) => Promise<Card>;
2210
- /** Parse a measurement or convert it to `to`. Without `to`, use its type's canonical unit. Invalid input is plain data with `valid: false`. */
2211
- measure: ((measure: string, opts?: MeasureOptions) => Promise<Measure>) & {
2212
- /** Discover reviewed units. Pass `unit` to find compatible conversion targets. */
2213
- units: (opts?: MeasureUnitsOptions) => Promise<MeasureUnits>;
2214
- };
2215
2135
  /** Look up DNS records with TTLs. Type selects the question and may include its CNAME chain. Pooled on every plan. */
2216
2136
  dns: (domain: string, opts?: DnsOptions) => Promise<Dns>;
2217
2137
  mx: (domain: string, opts?: MxOptions) => Promise<Mx>;
@@ -2224,9 +2144,6 @@ declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
2224
2144
  naics: ((code: string, opts?: IndustryOptions) => Promise<Industry>) & {
2225
2145
  search: (query: string, opts?: IndustrySearchOptions) => Promise<IndustrySearch>;
2226
2146
  };
2227
- currency: ((code: string, opts?: CurrencyOptions) => Promise<Currency>) & {
2228
- rate: (base: string, quote: string, opts?: CurrencyRateOptions) => Promise<CurrencyRate>;
2229
- };
2230
2147
  language: (code: string, opts?: LanguageOptions) => Promise<Language>;
2231
2148
  name: (name: string, opts?: NameOptions) => Promise<Name>;
2232
2149
  /** Current local time, UTC by default. With to or targets, offsetless at is source wall time. */
@@ -2358,4 +2275,4 @@ interface CityNearbyCall {
2358
2275
  (name: string, opts: CityNearbyOptions): Promise<CityNearby | CityCollection>;
2359
2276
  }
2360
2277
 
2361
- export { type Address, type AddressOptions, type AddressSearch, type AddressSearchOptions, type AddressSuggestion, type AgentTask, type AgentTaskInput, type AgentTaskLookupInput, type AgentTaskResult, type Asn, type AsnOptions, type Bin, type BinOptions, 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 CountryDeep, type CountryElevationPoint, type CountryEmergency, type CountryOptions, type CountryStateItem, type CountryStates, type CountryStatesOptions, type Currency, type CurrencyDeep, type CurrencyOptions, type CurrencyRate, type CurrencyRateOptions, 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 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 Mac, type MacOptions, type Measure, type MeasureChoice, type MeasureOptions, type MeasureUnit, type MeasureUnits, type MeasureUnitsOptions, 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 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, parseAPI };
2278
+ export { type Address, type AddressOptions, type AddressSearch, type AddressSearchOptions, type AddressSuggestion, type AgentTask, type AgentTaskInput, type AgentTaskLookupInput, type AgentTaskResult, type Asn, type AsnOptions, type Bin, type BinOptions, 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 CountryDeep, type CountryElevationPoint, type CountryEmergency, type CountryOptions, type CountryStateItem, type CountryStates, type CountryStatesOptions, 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 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 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, parseAPI };
package/dist/index.d.ts CHANGED
@@ -8,31 +8,6 @@
8
8
  type Deep<T> = Partial<{
9
9
  [K in keyof T]: T[K] | null;
10
10
  }>;
11
- interface MeasureChoice {
12
- unit: string;
13
- name: string;
14
- }
15
- /** A parsed measurement. Amount is a decimal string, preserving the API's precision. */
16
- interface Measure {
17
- measure: string;
18
- valid: boolean;
19
- type: string | null;
20
- amount: string | null;
21
- unit: string | null;
22
- /** Failure reason. Omitted wire fields remain readable as null. */
23
- reason: string | null;
24
- /** Unit alternatives. Omitted wire fields remain readable as an empty array. */
25
- choices: MeasureChoice[];
26
- }
27
- interface MeasureUnit {
28
- unit: string;
29
- name: string;
30
- type: string;
31
- aliases: string[];
32
- }
33
- interface MeasureUnits {
34
- units: MeasureUnit[];
35
- }
36
11
  interface IpDeep {
37
12
  state: string;
38
13
  city: string;
@@ -378,14 +353,6 @@ interface Asn {
378
353
  country: string | null;
379
354
  country_name: string | null;
380
355
  }
381
- /** A normalized 48-bit address. Vendor names the registered assignment holder. */
382
- interface Mac {
383
- mac: string;
384
- valid: boolean;
385
- vendor: string | null;
386
- local: boolean | null;
387
- multicast: boolean | null;
388
- }
389
356
  /** Network identity from reviewed prefix rules; null means unknown or ambiguous. */
390
357
  interface Card {
391
358
  bin: string;
@@ -464,14 +431,6 @@ interface Useragent {
464
431
  mobile: boolean;
465
432
  deep?: Deep<UseragentDeep>;
466
433
  }
467
- interface Currency {
468
- currency: string;
469
- name: string;
470
- symbol: string | null;
471
- symbol_native: string | null;
472
- digits: number | null;
473
- deep?: Deep<CurrencyDeep>;
474
- }
475
434
  /** One language by BCP 47 shortest code (en) or ISO 639-3 (eng). Codes are lowercase. */
476
435
  interface Language {
477
436
  language: string;
@@ -492,17 +451,6 @@ interface Name {
492
451
  suffix: string | null;
493
452
  deep?: Deep<NameDeep>;
494
453
  }
495
- interface CurrencyRate {
496
- base: string;
497
- quote: string;
498
- rate: number;
499
- date: string;
500
- /** With amount= only: echo of the amount asked. */
501
- amount?: number;
502
- /** With amount= only: amount times rate, rounded to the quote currency minor-unit digits. */
503
- converted?: number;
504
- source?: string;
505
- }
506
454
  interface TimezoneNextDst {
507
455
  at: string;
508
456
  dst: boolean;
@@ -1350,11 +1298,6 @@ interface HlrDeep {
1350
1298
  mcc: string | null;
1351
1299
  mnc: string | null;
1352
1300
  }
1353
- interface CurrencyDeep {
1354
- numeric: number | null;
1355
- name_plural: string | null;
1356
- countries: string[];
1357
- }
1358
1301
  interface LanguageDeep {
1359
1302
  iso3: string | null;
1360
1303
  countries: string[];
@@ -1992,20 +1935,8 @@ type StackOptions = {
1992
1935
  } & DeepOption & RequestOptions;
1993
1936
  type DomainOptions = DeepOption & RequestOptions;
1994
1937
  type AsnOptions = LanguageOption & RequestOptions;
1995
- type MacOptions = RequestOptions;
1996
1938
  /** Request controls for a card-prefix reference lookup. */
1997
1939
  type CardOptions = DeepOption & RequestOptions;
1998
- /** Parse a measurement, optionally converting it. Locale and system resolve explicit ambiguity. */
1999
- type MeasureOptions = {
2000
- to?: string;
2001
- locale?: string;
2002
- system?: 'us' | 'imperial';
2003
- } & RequestOptions;
2004
- type MeasureUnitsOptions = LanguageOption & {
2005
- query?: string;
2006
- type?: string;
2007
- unit?: string;
2008
- } & RequestOptions;
2009
1940
  /** Published DNS records. Omit type to check all ten supported types. Values retain DNS presentation syntax. */
2010
1941
  type DnsOptions = {
2011
1942
  type?: string;
@@ -2018,11 +1949,6 @@ type IndustryOptions = DeepOption & RequestOptions;
2018
1949
  type IndustrySearchOptions = {
2019
1950
  limit?: number;
2020
1951
  } & DeepOption & RequestOptions;
2021
- type CurrencyOptions = LanguageOption & DeepOption & RequestOptions;
2022
- type CurrencyRateOptions = {
2023
- date?: string;
2024
- amount?: number;
2025
- } & RequestOptions;
2026
1952
  type LanguageOptions = LanguageOption & DeepOption & RequestOptions;
2027
1953
  /** Country scopes paid deep gender evidence. Name locale selects formatting rules without changing parsing. */
2028
1954
  type NameOptions = {
@@ -2204,14 +2130,8 @@ declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
2204
2130
  /** Check whether a domain is registered. Deep adds registration dates, registrar, status and DNSSEC on paid plans. */
2205
2131
  domain: (domain: string, opts?: DomainOptions) => Promise<Domain>;
2206
2132
  asn: (asn: string, opts?: AsnOptions) => Promise<Asn>;
2207
- mac: (mac: string, opts?: MacOptions) => Promise<Mac>;
2208
2133
  /** Look up a 2-11 digit card prefix. Keep leading zeros in the input string. */
2209
2134
  card: (bin: string, opts?: CardOptions) => Promise<Card>;
2210
- /** Parse a measurement or convert it to `to`. Without `to`, use its type's canonical unit. Invalid input is plain data with `valid: false`. */
2211
- measure: ((measure: string, opts?: MeasureOptions) => Promise<Measure>) & {
2212
- /** Discover reviewed units. Pass `unit` to find compatible conversion targets. */
2213
- units: (opts?: MeasureUnitsOptions) => Promise<MeasureUnits>;
2214
- };
2215
2135
  /** Look up DNS records with TTLs. Type selects the question and may include its CNAME chain. Pooled on every plan. */
2216
2136
  dns: (domain: string, opts?: DnsOptions) => Promise<Dns>;
2217
2137
  mx: (domain: string, opts?: MxOptions) => Promise<Mx>;
@@ -2224,9 +2144,6 @@ declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
2224
2144
  naics: ((code: string, opts?: IndustryOptions) => Promise<Industry>) & {
2225
2145
  search: (query: string, opts?: IndustrySearchOptions) => Promise<IndustrySearch>;
2226
2146
  };
2227
- currency: ((code: string, opts?: CurrencyOptions) => Promise<Currency>) & {
2228
- rate: (base: string, quote: string, opts?: CurrencyRateOptions) => Promise<CurrencyRate>;
2229
- };
2230
2147
  language: (code: string, opts?: LanguageOptions) => Promise<Language>;
2231
2148
  name: (name: string, opts?: NameOptions) => Promise<Name>;
2232
2149
  /** Current local time, UTC by default. With to or targets, offsetless at is source wall time. */
@@ -2358,4 +2275,4 @@ interface CityNearbyCall {
2358
2275
  (name: string, opts: CityNearbyOptions): Promise<CityNearby | CityCollection>;
2359
2276
  }
2360
2277
 
2361
- export { type Address, type AddressOptions, type AddressSearch, type AddressSearchOptions, type AddressSuggestion, type AgentTask, type AgentTaskInput, type AgentTaskLookupInput, type AgentTaskResult, type Asn, type AsnOptions, type Bin, type BinOptions, 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 CountryDeep, type CountryElevationPoint, type CountryEmergency, type CountryOptions, type CountryStateItem, type CountryStates, type CountryStatesOptions, type Currency, type CurrencyDeep, type CurrencyOptions, type CurrencyRate, type CurrencyRateOptions, 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 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 Mac, type MacOptions, type Measure, type MeasureChoice, type MeasureOptions, type MeasureUnit, type MeasureUnits, type MeasureUnitsOptions, 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 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, parseAPI };
2278
+ export { type Address, type AddressOptions, type AddressSearch, type AddressSearchOptions, type AddressSuggestion, type AgentTask, type AgentTaskInput, type AgentTaskLookupInput, type AgentTaskResult, type Asn, type AsnOptions, type Bin, type BinOptions, 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 CountryDeep, type CountryElevationPoint, type CountryEmergency, type CountryOptions, type CountryStateItem, type CountryStates, type CountryStatesOptions, 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 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 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, parseAPI };
package/dist/index.js CHANGED
@@ -256,7 +256,7 @@ var EmojiCatalog = class {
256
256
  };
257
257
 
258
258
  // src/index.ts
259
- var VERSION = "1.11.3";
259
+ var VERSION = "1.11.4";
260
260
  var API_VERSION = "2.0.0";
261
261
  var DEFAULT_BASE_URL = "https://api.parseapi.com";
262
262
  var DEFAULT_TIMEOUT_MS = 1e4;
@@ -584,7 +584,6 @@ function parseAPI(apiKey, options = {}) {
584
584
  /** Check whether a domain is registered. Deep adds registration dates, registrar, status and DNSSEC on paid plans. */
585
585
  domain: (domain, opts) => request(`/domain/${enc(domain)}`, deepQuery(opts), void 0, opts),
586
586
  asn: (asn, opts) => request(`/asn/${enc(asn)}`, void 0, void 0, opts),
587
- mac: (mac, opts) => request(`/mac/${enc(mac)}`, void 0, void 0, opts),
588
587
  /** Look up a 2-11 digit card prefix. Keep leading zeros in the input string. */
589
588
  card: async (bin, opts) => {
590
589
  if (typeof bin !== "string" || bin.length > 64 || !/^[0-9]{2,11}$/.test(bin.replace(/[ \t\r\n-]/g, ""))) {
@@ -592,19 +591,6 @@ function parseAPI(apiKey, options = {}) {
592
591
  }
593
592
  return request(`/card/${enc(bin)}`, deepQuery(opts), void 0, opts);
594
593
  },
595
- /** Parse a measurement or convert it to `to`. Without `to`, use its type's canonical unit. Invalid input is plain data with `valid: false`. */
596
- measure: Object.assign(
597
- async (measure, opts) => {
598
- const result = await request(`/measure/${enc(measure)}`, { to: opts?.to, locale: opts?.locale, system: opts?.system }, void 0, opts);
599
- if (!Object.prototype.hasOwnProperty.call(result, "reason")) Object.defineProperty(result, "reason", { value: null, writable: true, configurable: true });
600
- if (!Object.prototype.hasOwnProperty.call(result, "choices")) Object.defineProperty(result, "choices", { value: [], writable: true, configurable: true });
601
- return result;
602
- },
603
- {
604
- /** Discover reviewed units. Pass `unit` to find compatible conversion targets. */
605
- units: (opts) => request("/measure/units", { q: opts?.query, type: opts?.type, unit: opts?.unit }, void 0, opts)
606
- }
607
- ),
608
594
  /** Look up DNS records with TTLs. Type selects the question and may include its CNAME chain. Pooled on every plan. */
609
595
  dns: (domain, opts) => request(`/dns/${enc(domain)}`, { type: opts?.type }, void 0, opts),
610
596
  mx: (domain, opts) => request(`/mx/${enc(domain)}`, void 0, void 0, opts),
@@ -613,15 +599,6 @@ function parseAPI(apiKey, options = {}) {
613
599
  industry,
614
600
  /** Compatibility name for industry. */
615
601
  naics: industry,
616
- currency: Object.assign(
617
- (code, opts) => request(`/currency/${enc(code)}`, deepQuery(opts), void 0, opts),
618
- {
619
- rate: (base, quote, opts) => request(`/currency/${enc(base)}/${enc(quote)}`, {
620
- date: opts?.date,
621
- amount: opts?.amount
622
- }, void 0, opts)
623
- }
624
- ),
625
602
  language: (code, opts) => request(`/language/${enc(code)}`, deepQuery(opts), void 0, opts),
626
603
  name: (name, opts) => request(`/name/${enc(name)}`, { country: opts?.country, ...deepQuery(opts), name_locale: opts?.name_locale }, void 0, opts),
627
604
  /** Current local time, UTC by default. With to or targets, offsetless at is source wall time. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parseapi/sdk",
3
- "version": "1.11.3",
3
+ "version": "1.11.4",
4
4
  "description": "Official ParseAPI client for Node and TypeScript. One key, minimal JSON, fast.",
5
5
  "keywords": [
6
6
  "parseapi",
@@ -10,7 +10,6 @@
10
10
  "phone validation",
11
11
  "postal",
12
12
  "timezone",
13
- "currency",
14
13
  "weather"
15
14
  ],
16
15
  "license": "MIT",