@parseapi/sdk 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -46,6 +46,22 @@ interface ContinentCountries {
46
46
  continent: string;
47
47
  countries: ContinentCountryItem[];
48
48
  }
49
+ interface Bloc {
50
+ bloc: string;
51
+ name: string;
52
+ /** Current member count. An entity fact, not a list-length field. */
53
+ members: number;
54
+ }
55
+ interface BlocCountryItem {
56
+ country: string;
57
+ name: string;
58
+ emoji?: string | null;
59
+ calling_code?: string | null;
60
+ }
61
+ interface BlocCountries {
62
+ bloc: string;
63
+ countries: BlocCountryItem[];
64
+ }
49
65
  interface Country {
50
66
  country: string;
51
67
  iso3: string;
@@ -70,6 +86,8 @@ interface Country {
70
86
  emoji: string | null;
71
87
  languages: string[];
72
88
  borders: string[];
89
+ /** Bloc memberships (EU, SCHENGEN, NATO, ...). Empty when none. */
90
+ blocs: string[];
73
91
  }
74
92
  interface CountryStateItem {
75
93
  state: string;
@@ -90,8 +108,16 @@ interface State {
90
108
  latitude: number | null;
91
109
  longitude: number | null;
92
110
  population: number | null;
111
+ /** Total area in km2. */
93
112
  area: number | null;
94
113
  timezone: string | null;
114
+ timezones: string[];
115
+ iso_3166_2: string | null;
116
+ fips: string | null;
117
+ capital: string | null;
118
+ area_codes: string[];
119
+ tax: string | null;
120
+ tax_rate: number | null;
95
121
  }
96
122
  interface StateDistrictItem {
97
123
  district: string;
@@ -116,18 +142,39 @@ interface District {
116
142
  latitude: number | null;
117
143
  longitude: number | null;
118
144
  population: number | null;
145
+ /** Total area in km2 (land + water, or the official total). */
146
+ area: number | null;
147
+ /** Land area in km2. Null when the source publishes total only. */
119
148
  land_area: number | null;
149
+ /** Water area in km2. Null when the source publishes total only. */
120
150
  water_area: number | null;
151
+ seat: string | null;
152
+ timezone: string | null;
153
+ timezones: string[];
121
154
  }
122
155
  interface City {
123
156
  name: string;
124
157
  local_name: string | null;
158
+ type: string | null;
159
+ /** What this city is the capital of: country, state, or null. */
160
+ capital_of: 'country' | 'state' | null;
125
161
  state: string | null;
126
162
  state_name: string | null;
163
+ district: string | null;
164
+ district_name: string | null;
127
165
  country: string;
166
+ country_name: string | null;
128
167
  latitude: number | null;
129
168
  longitude: number | null;
169
+ elevation: number | null;
170
+ elevation_ft: number | null;
130
171
  population: number | null;
172
+ /** Total area in km2 (land + water, or the official total). */
173
+ area: number | null;
174
+ /** Land area in km2. Null when the source publishes total only. */
175
+ land_area: number | null;
176
+ /** Water area in km2. Null when the source publishes total only. */
177
+ water_area: number | null;
131
178
  timezone: string | null;
132
179
  /** Minted parse id (`city_` + 12 chars). Stable pin via `/city/id/{id}`. */
133
180
  id: string;
@@ -143,6 +190,14 @@ interface CitySearch {
143
190
  state?: string;
144
191
  cities: City[];
145
192
  }
193
+ interface CityNearby {
194
+ city: string;
195
+ state: string | null;
196
+ country: string;
197
+ radius: number;
198
+ unit: string;
199
+ nearby: CityNearest[];
200
+ }
146
201
  interface Postal {
147
202
  postal: string;
148
203
  city: string | null;
@@ -154,11 +209,18 @@ interface Postal {
154
209
  state_name: string | null;
155
210
  state_name_local: string | null;
156
211
  country: string;
212
+ country_name: string | null;
157
213
  latitude: number | null;
158
214
  longitude: number | null;
159
215
  elevation: number | null;
160
216
  elevation_ft: number | null;
161
217
  population: number | null;
218
+ /** Total area in km2. Null when the source has no water split. */
219
+ area: number | null;
220
+ /** Land area in km2. Null where the source has none. */
221
+ land_area: number | null;
222
+ /** Water area in km2. Null where the source has none. */
223
+ water_area: number | null;
162
224
  timezone: string | null;
163
225
  currency: string | null;
164
226
  neighbors: string[];
@@ -203,22 +265,230 @@ interface Email {
203
265
  disposable: boolean;
204
266
  deep?: Deep<EmailDeep>;
205
267
  }
206
- interface PhoneDeep {
207
- type: 'mobile' | 'landline' | 'voip' | 'toll_free' | 'unknown';
208
- carrier: string | null;
209
- /** Carrier is a known burner number app. Null when carrier is unknown. */
210
- burner: boolean | null;
268
+ interface VatAddress {
269
+ street: string | null;
270
+ city: string | null;
271
+ postal: string | null;
272
+ country: string | null;
273
+ }
274
+ interface VatDeep {
275
+ registered: boolean | null;
276
+ name: string | null;
277
+ address: VatAddress | null;
278
+ consultation: string | null;
279
+ /** Registry timestamp of this check, ISO. */
280
+ consulted_at: string | null;
281
+ }
282
+ interface Vat {
283
+ vat: string | null;
284
+ valid: boolean;
285
+ country: string | null;
286
+ from?: string;
287
+ deep?: Deep<VatDeep>;
288
+ }
289
+ interface Iban {
290
+ iban: string | null;
291
+ valid: boolean;
292
+ country: string | null;
293
+ /** Print form in groups of four, for display. Null when invalid. */
294
+ formatted: string | null;
295
+ /** Two check digits as a string, keeping a leading zero. */
296
+ checksum: string | null;
297
+ /** Bank identifier parsed from the number, not a name. */
298
+ bank: string | null;
299
+ /** Branch identifier when that country has one. */
300
+ branch: string | null;
301
+ account: string | null;
302
+ }
303
+ interface Npi {
304
+ /** Normalized 10-digit NPI. Invalid input still echoes the fold. */
305
+ npi: string | null;
306
+ valid: boolean;
307
+ /** Exists in the CMS NPPES registry. */
308
+ registered: boolean | null;
309
+ active: boolean | null;
310
+ /** On the OIG exclusion list. */
311
+ excluded: boolean | null;
312
+ /** individual or organization. */
313
+ type: string | null;
314
+ name: string | null;
315
+ first: string | null;
316
+ last: string | null;
317
+ credential: string | null;
318
+ specialty: string | null;
319
+ /** NUCC taxonomy code. */
320
+ taxonomy: string | null;
321
+ address: string | null;
211
322
  city: string | null;
212
323
  state: string | null;
213
324
  state_name: string | null;
325
+ postal: string | null;
326
+ country: string | null;
327
+ phone: string | null;
328
+ deep?: Deep<NpiDeep>;
329
+ }
330
+ interface NpiEnrollment {
331
+ /** part_a, part_b, practitioner, dme, order_refer, mdpp. Null when the code is unknown. */
332
+ type: string | null;
333
+ specialty: string | null;
334
+ state: string | null;
335
+ }
336
+ interface NpiDeep {
337
+ /** In the published Medicare FFS enrollment extract. */
338
+ medicare?: boolean | null;
339
+ /** On the CMS opt-out affidavit list. Matched by NPI only. */
340
+ opt_out?: boolean | null;
341
+ /** Enrollment rows. [] when medicare is false. */
342
+ enrollments?: NpiEnrollment[] | null;
343
+ }
344
+ interface HtsMeasure {
345
+ /** Chapter 99 heading, dotted (9903.01.24). */
346
+ heading: string;
347
+ /** The measure text verbatim. */
348
+ description: string;
349
+ /** The rate string verbatim ("The duty provided in the applicable subheading + 10%"). */
350
+ rate: string | null;
351
+ /** Effective from, ISO YYYY-MM-DD. Null when the schedule states none. */
352
+ from: string | null;
353
+ /** Expires, ISO YYYY-MM-DD. Null when open-ended. */
354
+ until: string | null;
355
+ }
356
+ interface HtsDeep {
357
+ /** The origin country the measures were resolved for. */
358
+ origin?: string | null;
359
+ /** Composed ad valorem percent. Null when the components do not compose cleanly. */
360
+ effective_rate?: number | null;
361
+ /** Every Chapter 99 tariff measure that applies to this code from this origin. */
362
+ measures?: HtsMeasure[] | null;
363
+ }
364
+ interface Hts {
365
+ /** Normalized code with dots (8471.30.01.00). */
366
+ hts: string;
367
+ /** The schedule line verbatim. */
368
+ description: string;
369
+ /** Parent descriptions from the schedule outline, outermost first. */
370
+ lineage: string[];
371
+ /** Units of quantity (No., kg). */
372
+ units: string[];
373
+ /** Column 1 general rate, verbatim. */
374
+ general: string | null;
375
+ /** Column 1 special rate, verbatim. */
376
+ special: string | null;
377
+ /** Column 2 rate, verbatim. */
378
+ other: string | null;
379
+ /** The official release that answered (2026HTSRev17). */
380
+ revision: string;
381
+ deep?: Deep<HtsDeep>;
382
+ }
383
+ interface HtsSearchHit {
384
+ hts: string;
385
+ description: string;
386
+ general: string | null;
387
+ }
388
+ interface HtsSearch {
389
+ q: string;
390
+ revision: string;
391
+ /** Up to 20 tariff lines, best match first. */
392
+ lines: HtsSearchHit[];
393
+ }
394
+ interface VinRecall {
395
+ /** Government campaign number. */
396
+ campaign: string;
397
+ /** Report date, ISO YYYY-MM-DD. */
398
+ date: string | null;
399
+ component: string | null;
400
+ /** The filed summary verbatim. */
401
+ summary: string | null;
402
+ }
403
+ interface VinDeep {
404
+ /** Open recall campaigns for the decoded vehicle. [] when none, null when the registry did not answer. */
405
+ recalls?: VinRecall[] | null;
406
+ }
407
+ interface Vin {
408
+ /** Normalized VIN, uppercase, no spaces. Invalid input still echoes the fold. */
409
+ vin: string | null;
410
+ valid: boolean;
411
+ year: number | null;
412
+ make: string | null;
413
+ model: string | null;
414
+ trim: string | null;
415
+ series: string | null;
416
+ /** Body style (sedan, coupe, suv, pickup). */
417
+ body: string | null;
418
+ /** Vehicle type (passenger car, truck, motorcycle, bus, trailer). */
419
+ type: string | null;
420
+ doors: number | null;
421
+ cylinders: number | null;
422
+ /** Engine displacement in liters. */
423
+ displacement: number | null;
424
+ fuel: string | null;
425
+ horsepower: number | null;
426
+ /** fwd, rwd, awd, 4wd. */
427
+ drive: string | null;
428
+ /** automatic, manual, cvt. */
429
+ transmission: string | null;
430
+ manufacturer: string | null;
431
+ plant_city: string | null;
432
+ plant_state: string | null;
433
+ plant_country: string | null;
434
+ /** Gross vehicle weight rating class as filed. */
435
+ gvwr: string | null;
436
+ deep?: Deep<VinDeep>;
214
437
  }
215
438
  interface Phone {
216
439
  phone: string | null;
217
440
  valid: boolean;
218
441
  country: string | null;
442
+ /** What the numbering plan can see. Never voip (that is the carrier field's word). Null when invalid. */
443
+ type: 'mobile' | 'landline' | 'toll_free' | 'unknown' | null;
444
+ /** NPA-derived state code (US/CA). */
445
+ state: string | null;
446
+ state_name: string | null;
219
447
  national: string | null;
220
448
  international: string | null;
221
- deep?: Deep<PhoneDeep>;
449
+ /** Always empty. The metered proves are their own endpoints: carrier, caller, hlr. */
450
+ deep?: Record<string, never>;
451
+ }
452
+ interface Carrier {
453
+ phone: string | null;
454
+ valid: boolean;
455
+ country: string | null;
456
+ /** The network's word, including voip. Null when invalid. */
457
+ type: 'mobile' | 'landline' | 'voip' | 'toll_free' | 'unknown' | null;
458
+ /** Current carrier display name. Null when the probe had no answer. */
459
+ carrier: string | null;
460
+ /** Carrier is a known burner number app. Null when carrier is unknown. */
461
+ burner: boolean | null;
462
+ /** Issuing rate-center city. */
463
+ city: string | null;
464
+ state: string | null;
465
+ state_name: string | null;
466
+ }
467
+ interface Caller {
468
+ phone: string | null;
469
+ valid: boolean;
470
+ country: string | null;
471
+ /** CNAM record verbatim (all-caps telco artifact). Null when no record, outside NANP, or invalid. */
472
+ caller: string | null;
473
+ }
474
+ interface Hlr {
475
+ phone: string | null;
476
+ valid: boolean;
477
+ country: string | null;
478
+ /** Assigned to a subscriber. Null when invalid. */
479
+ live: boolean | null;
480
+ /** Handset reachable right now. Null means unconfirmed, never no. */
481
+ connected: boolean | null;
482
+ /** The six network extras fill on live HLR dips only. Null elsewhere (NANP, failover). */
483
+ roaming: boolean | null;
484
+ roaming_network: string | null;
485
+ /** ISO2, uppercase. */
486
+ roaming_country: string | null;
487
+ /** Current serving network name. */
488
+ network: string | null;
489
+ original_network: string | null;
490
+ mcc: string | null;
491
+ mnc: string | null;
222
492
  }
223
493
  interface MxRecord {
224
494
  priority: number;
@@ -332,6 +602,10 @@ interface CurrencyRate {
332
602
  quote: string;
333
603
  rate: number;
334
604
  date: string;
605
+ /** With amount= only: echo of the amount asked. */
606
+ amount?: number;
607
+ /** With amount= only: amount times rate, rounded to the quote currency minor-unit digits. */
608
+ converted?: number;
335
609
  source?: string;
336
610
  }
337
611
  interface TimezoneNextDst {
@@ -350,6 +624,49 @@ interface Timezone {
350
624
  offset_minutes: number | null;
351
625
  dst: boolean | null;
352
626
  next_dst: TimezoneNextDst | null;
627
+ /** With to= only: the resolved wall time in the from zone, ISO with its UTC offset. */
628
+ at?: string;
629
+ /** With to= only: the other zone at the same instant. to.at is the converted time. */
630
+ to?: TimezoneConversionTarget;
631
+ }
632
+ /** The other side of a timezone conversion. `at` is the converted wall time. */
633
+ interface TimezoneConversionTarget {
634
+ timezone: string;
635
+ name: string | null;
636
+ abbreviation: string | null;
637
+ offset: string;
638
+ offset_minutes: number;
639
+ dst: boolean;
640
+ at: string;
641
+ }
642
+ /**
643
+ * Calendar facts for one date. Junk or ambiguous input returns valid: false,
644
+ * never an error. `to` and `days` appear only when a to= date was passed.
645
+ */
646
+ interface DateInfo {
647
+ date: string;
648
+ valid: boolean;
649
+ year: number | null;
650
+ month: number | null;
651
+ month_name: string | null;
652
+ day: number | null;
653
+ /** ISO weekday, Monday 1 to Sunday 7. */
654
+ weekday: number | null;
655
+ weekday_name: string | null;
656
+ /** ISO 8601 week number. */
657
+ week: number | null;
658
+ /** The year that ISO week belongs to. Differs from year around January 1. */
659
+ week_year: number | null;
660
+ day_of_year: number | null;
661
+ quarter: number | null;
662
+ leap: boolean | null;
663
+ days_in_month: number | null;
664
+ /** Unix time at midnight UTC of that date, seconds. */
665
+ unix: number | null;
666
+ /** With to= only: the other date, normalized ISO. */
667
+ to?: string;
668
+ /** With to= only: signed days to the other date. Future positive. */
669
+ days?: number | null;
353
670
  }
354
671
  interface Holiday {
355
672
  date: string;
@@ -418,13 +735,79 @@ interface WeatherAlert {
418
735
  onset: string | null;
419
736
  expires: string | null;
420
737
  }
738
+ interface WeatherHour {
739
+ at: string | null;
740
+ daytime: boolean | null;
741
+ temperature: number | null;
742
+ temperature_f: number | null;
743
+ feels_like: number | null;
744
+ feels_like_f: number | null;
745
+ humidity: number | null;
746
+ precipitation_chance: number | null;
747
+ wind_speed: number | null;
748
+ wind_speed_mph: number | null;
749
+ wind_gust: number | null;
750
+ wind_gust_mph: number | null;
751
+ wind_direction: number | null;
752
+ condition: string | null;
753
+ condition_name: string | null;
754
+ condition_emoji: string | null;
755
+ }
756
+ interface WeatherMinute {
757
+ at: string;
758
+ precipitation: number | null;
759
+ precipitation_in: number | null;
760
+ type: string | null;
761
+ }
762
+ interface WeatherDay {
763
+ date: string;
764
+ high: number | null;
765
+ high_f: number | null;
766
+ low: number | null;
767
+ low_f: number | null;
768
+ precipitation_chance: number | null;
769
+ condition: string | null;
770
+ condition_name: string | null;
771
+ condition_emoji: string | null;
772
+ sunrise: string | null;
773
+ sunset: string | null;
774
+ moon_phase: string | null;
775
+ moon_phase_name: string | null;
776
+ moon_phase_emoji: string | null;
777
+ }
778
+ interface WeatherAir {
779
+ aqi: number | null;
780
+ aqi_name: string | null;
781
+ pm2_5: number | null;
782
+ pm10: number | null;
783
+ }
784
+ interface WeatherHistory {
785
+ date: string;
786
+ high: number | null;
787
+ high_f: number | null;
788
+ low: number | null;
789
+ low_f: number | null;
790
+ precipitation: number | null;
791
+ precipitation_in: number | null;
792
+ wind_max: number | null;
793
+ wind_max_mph: number | null;
794
+ sunrise: string | null;
795
+ sunset: string | null;
796
+ moon_phase: string | null;
797
+ moon_phase_name: string | null;
798
+ moon_phase_emoji: string | null;
799
+ }
421
800
  interface WeatherDeep {
422
- forecast: WeatherForecastPeriod[];
423
- alerts: WeatherAlert[];
801
+ forecast: WeatherForecastPeriod[] | null;
802
+ alerts: WeatherAlert[] | null;
803
+ minutes: WeatherMinute[] | null;
804
+ hours: WeatherHour[] | null;
805
+ days: WeatherDay[] | null;
806
+ air: WeatherAir | null;
807
+ /** Only present when the call carried ?date=. */
808
+ history?: WeatherHistory | null;
424
809
  }
425
- interface Weather {
426
- latitude: number;
427
- longitude: number;
810
+ interface WeatherCurrent {
428
811
  temperature: number | null;
429
812
  temperature_f: number | null;
430
813
  feels_like: number | null;
@@ -445,12 +828,23 @@ interface Weather {
445
828
  condition_name: string | null;
446
829
  condition_emoji: string | null;
447
830
  observed_at: string | null;
448
- station: string;
449
- station_name: string | null;
450
- station_distance: number;
451
- station_distance_mi: number;
452
- source: string;
453
- source_name: string | null;
831
+ }
832
+ interface WeatherStation {
833
+ id: string;
834
+ name: string | null;
835
+ distance: number | null;
836
+ distance_mi: number | null;
837
+ }
838
+ interface WeatherSource {
839
+ id: string;
840
+ name: string | null;
841
+ }
842
+ interface Weather {
843
+ latitude: number;
844
+ longitude: number;
845
+ current: WeatherCurrent;
846
+ station: WeatherStation | null;
847
+ source: WeatherSource;
454
848
  deep?: Deep<WeatherDeep>;
455
849
  }
456
850
  interface EmojiSkin {
@@ -509,18 +903,22 @@ declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
509
903
  continent: ((code: string) => Promise<Continent>) & {
510
904
  countries: (code: string) => Promise<ContinentCountries>;
511
905
  };
906
+ bloc: ((code: string) => Promise<Bloc>) & {
907
+ countries: (code: string) => Promise<BlocCountries>;
908
+ };
512
909
  country: ((code: string) => Promise<Country>) & {
513
910
  states: (code: string) => Promise<CountryStates>;
514
911
  };
515
- state: ((code: string, opts: {
516
- country: string;
912
+ state: ((code: string, opts?: {
913
+ country?: string;
517
914
  }) => Promise<State>) & {
518
- districts: (code: string, opts: {
519
- country: string;
915
+ districts: (code: string, opts?: {
916
+ country?: string;
520
917
  }) => Promise<StateDistricts>;
521
918
  };
522
919
  district: (code: string, opts?: {
523
920
  country?: string;
921
+ state?: string;
524
922
  }) => Promise<District>;
525
923
  city: ((name: string, opts?: {
526
924
  country?: string;
@@ -533,39 +931,81 @@ declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
533
931
  limit?: number;
534
932
  }) => Promise<CitySearch>;
535
933
  nearest: (lat: number, lon: number) => Promise<CityNearest>;
934
+ nearby: (name: string, opts?: {
935
+ radius?: number;
936
+ unit?: "km" | "mi";
937
+ country?: string;
938
+ state?: string;
939
+ limit?: number;
940
+ }) => Promise<CityNearby>;
536
941
  };
537
- postal: ((code: string, opts: {
538
- country: string;
942
+ postal: ((code: string, opts?: {
943
+ country?: string;
539
944
  }) => Promise<Postal>) & {
540
- nearby: (code: string, opts: {
541
- country: string;
945
+ nearby: (code: string, opts?: {
946
+ country?: string;
542
947
  radius?: number;
543
948
  unit?: "km" | "mi";
544
949
  }) => Promise<PostalNearby>;
545
- distance: (from: string, to: string, opts: {
546
- country: string;
950
+ distance: (from: string, to: string, opts?: {
951
+ country?: string;
547
952
  }) => Promise<PostalDistance>;
548
953
  };
549
954
  email: (email: string, opts?: DeepOption) => Promise<Email>;
955
+ vat: (number: string, opts?: {
956
+ country?: string;
957
+ from?: string;
958
+ } & DeepOption) => Promise<Vat>;
959
+ iban: (iban: string, opts?: {
960
+ country?: string;
961
+ }) => Promise<Iban>;
962
+ npi: (npi: string, opts?: DeepOption) => Promise<Npi>;
550
963
  phone: (number: string, opts?: {
551
964
  country?: string;
552
965
  } & DeepOption) => Promise<Phone>;
966
+ carrier: (number: string, opts?: {
967
+ country?: string;
968
+ }) => Promise<Carrier>;
969
+ caller: (number: string, opts?: {
970
+ country?: string;
971
+ }) => Promise<Caller>;
972
+ hlr: (number: string, opts?: {
973
+ country?: string;
974
+ }) => Promise<Hlr>;
553
975
  domain: (domain: string, opts?: DeepOption) => Promise<Domain>;
554
976
  mx: (domain: string) => Promise<Mx>;
555
977
  useragent: (ua: string, opts?: DeepOption) => Promise<Useragent>;
978
+ vin: (vin: string, opts?: DeepOption) => Promise<Vin>;
979
+ hts: ((code: string, opts?: {
980
+ origin?: string;
981
+ } & DeepOption) => Promise<Hts>) & {
982
+ search: (q: string) => Promise<HtsSearch>;
983
+ };
556
984
  currency: ((code: string) => Promise<Currency>) & {
557
- rate: (base: string, quote: string) => Promise<CurrencyRate>;
985
+ rate: (base: string, quote: string, opts?: {
986
+ date?: string;
987
+ amount?: number;
988
+ }) => Promise<CurrencyRate>;
558
989
  };
559
990
  language: (code: string) => Promise<Language>;
560
991
  name: (name: string) => Promise<Name>;
561
992
  timezone: {
562
993
  (id: string, opts?: {
563
994
  at?: string;
995
+ to?: string;
564
996
  }): Promise<Timezone>;
565
997
  (lat: number, lon: number, opts?: {
566
998
  at?: string;
567
999
  }): Promise<Timezone>;
568
1000
  };
1001
+ date: ((date: string, opts?: {
1002
+ format?: "mdy" | "dmy";
1003
+ to?: string;
1004
+ }) => Promise<DateInfo>) & {
1005
+ today: (opts?: {
1006
+ to?: string;
1007
+ }) => Promise<DateInfo>;
1008
+ };
569
1009
  holiday: ((country: string, opts?: {
570
1010
  year?: number;
571
1011
  }) => Promise<HolidayYear>) & {
@@ -573,7 +1013,9 @@ declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
573
1013
  };
574
1014
  elevation: (lat: number, lon: number) => Promise<Elevation>;
575
1015
  point: (lat: number, lon: number, opts?: DeepOption) => Promise<Point>;
576
- weather: (lat: number, lon: number, opts?: DeepOption) => Promise<Weather>;
1016
+ weather: (lat: number, lon: number, opts?: DeepOption & {
1017
+ date?: string;
1018
+ }) => Promise<Weather>;
577
1019
  emoji: ((emoji: string) => Promise<Emoji>) & {
578
1020
  search: (q: string, opts?: {
579
1021
  limit?: number;
@@ -582,4 +1024,4 @@ declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
582
1024
  };
583
1025
  type ParseAPIClient = ReturnType<typeof parseAPI>;
584
1026
 
585
- export { type City, type CityNearest, type CitySearch, type Continent, type ContinentCountries, type ContinentCountryItem, type Country, type CountryStateItem, type CountryStates, type Currency, type CurrencyRate, type Deep, type District, type Domain, type DomainDeep, type DomainRegistration, type Elevation, type Email, type EmailDeep, type Emoji, type EmojiSearch, type EmojiSkin, type Holiday, type HolidayDate, type HolidayYear, type Ip, type IpDeep, type Language, type Mx, type MxRecord, type Name, type ParseAPIClient, ParseAPIError, type ParseAPIOptions, type Phone, type PhoneDeep, type Point, type PointDeep, type Postal, type PostalDistance, type PostalDistanceEnd, type PostalNearby, type PostalNearbyItem, type State, type StateDistrictItem, type StateDistricts, type Timezone, type TimezoneNextDst, type Useragent, type UseragentBrowserBrand, type UseragentBrowserDeep, type UseragentDeep, type UseragentDeviceDeep, type UseragentEngineDeep, type UseragentOsDeep, type Weather, type WeatherAlert, type WeatherDeep, type WeatherForecastPeriod, parseAPI };
1027
+ export { type Bloc, type BlocCountries, type BlocCountryItem, type Caller, type Carrier, type City, type CityNearby, type CityNearest, type CitySearch, type Continent, type ContinentCountries, type ContinentCountryItem, type Country, type CountryStateItem, type CountryStates, type Currency, type CurrencyRate, type DateInfo, type Deep, type District, type Domain, type DomainDeep, type DomainRegistration, type Elevation, type Email, type EmailDeep, type Emoji, type EmojiSearch, type EmojiSkin, type Hlr, type Holiday, type HolidayDate, type HolidayYear, type Hts, type HtsDeep, type HtsMeasure, type HtsSearch, type HtsSearchHit, type Iban, type Ip, type IpDeep, type Language, type Mx, type MxRecord, type Name, type Npi, type NpiDeep, type NpiEnrollment, type ParseAPIClient, ParseAPIError, type ParseAPIOptions, type Phone, type Point, type PointDeep, type Postal, type PostalDistance, type PostalDistanceEnd, type PostalNearby, type PostalNearbyItem, type State, type StateDistrictItem, type StateDistricts, type Timezone, type TimezoneConversionTarget, type TimezoneNextDst, type Useragent, type UseragentBrowserBrand, type UseragentBrowserDeep, type UseragentDeep, type UseragentDeviceDeep, type UseragentEngineDeep, type UseragentOsDeep, type Vat, type VatAddress, type VatDeep, type Vin, type VinDeep, type VinRecall, type Weather, type WeatherAir, type WeatherAlert, type WeatherCurrent, type WeatherDay, type WeatherDeep, type WeatherForecastPeriod, type WeatherHistory, type WeatherHour, type WeatherMinute, type WeatherSource, type WeatherStation, parseAPI };