@ideal-postcodes/sdk 0.4.0 → 0.6.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.
@@ -532,11 +532,11 @@ type ConfigResponse = {
532
532
  */
533
533
  type Config = {
534
534
  /**
535
- * Timestamp for when the config was created
535
+ * Timestamp for when the config was last updated
536
536
  */
537
537
  updatedAt: string;
538
538
  /**
539
- * Timestamp for when the config was updated
539
+ * Timestamp for when the config was created
540
540
  */
541
541
  createdAt: string;
542
542
  /**
@@ -586,22 +586,36 @@ type LicenseeResponse = {
586
586
  };
587
587
  /**
588
588
  * Licensee
589
- *
590
- * Licensee object which can be defined by user
591
589
  */
592
- type LicenseeEditable = {
590
+ type Licensee = {
591
+ /**
592
+ * An immutable ID provided for every licensee. Primarily used for paginated list requests.
593
+ *
594
+ */
595
+ id: string;
596
+ /**
597
+ * Uniquely identifies a licensee for a key.
598
+ *
599
+ * Required to perform paid lookups for a specific licensee. Typically begins `sl_`.
600
+ *
601
+ */
602
+ key: string;
603
+ /**
604
+ * Timestamp for when the licensee was created
605
+ */
606
+ createdAt: string;
593
607
  /**
594
608
  * Licensee individual or organisation name
595
609
  */
596
- name?: string;
610
+ name: string;
597
611
  /**
598
612
  * Licensee's first, second and third line address as well as post town concatenated by commas
599
613
  */
600
- address?: string;
614
+ address: string;
601
615
  /**
602
616
  * Licensee's postcode
603
617
  */
604
- postcode?: string;
618
+ postcode: string;
605
619
  /**
606
620
  * A list of allowed URLs. An empty list disables the check.
607
621
  *
@@ -610,43 +624,54 @@ type LicenseeEditable = {
610
624
  * - `https://www.example.com` allows one site. Scheme and host must match
611
625
  * - `*.example.com` allows the domain and all its subdomains
612
626
  */
613
- whitelist?: Array<string>;
614
- daily?: {
627
+ whitelist: Array<string>;
628
+ daily: {
615
629
  /**
616
630
  * The maximum number of lookups this licensee can perform in a day. `null` indicates the limit is not active
617
631
  */
618
- limit?: number | null;
632
+ limit: number | null;
633
+ /**
634
+ * The number of lookups performed by the licensee on the day represented by `licensees.daily.updatedAt`
635
+ */
636
+ count: number;
637
+ /**
638
+ * The timestamp when the limit was last used.
639
+ */
640
+ updatedAt: string;
619
641
  };
620
642
  };
621
643
  /**
622
644
  * Licensee
645
+ *
646
+ * Licensee object which can be defined by user
623
647
  */
624
- type Licensee = LicenseeEditable & {
648
+ type LicenseeEditable = {
625
649
  /**
626
- * An immutable ID provided for every licensee. Primarily used for paginated list requests.
627
- *
650
+ * Licensee individual or organisation name
628
651
  */
629
- id: string;
652
+ name?: string;
630
653
  /**
631
- * Uniquely identifies a licensee for a key.
632
- *
633
- * Required to perform paid lookups for a specific licensee. Typically begins `sl_`.
634
- *
654
+ * Licensee's first, second and third line address as well as post town concatenated by commas
635
655
  */
636
- key: string;
656
+ address?: string;
637
657
  /**
638
- * Timestamp for when the licensee was created
658
+ * Licensee's postcode
639
659
  */
640
- createdAt: string;
641
- daily: {
642
- /**
643
- * The number of lookups performed by the licensee on the day represented by `licensees.daily.updatedAt`
644
- */
645
- count: number;
660
+ postcode?: string;
661
+ /**
662
+ * A list of allowed URLs. An empty list disables the check.
663
+ *
664
+ * A request is allowed when its `Origin` or `Referer` header matches an entry. Use one of these formats:
665
+ *
666
+ * - `https://www.example.com` allows one site. Scheme and host must match
667
+ * - `*.example.com` allows the domain and all its subdomains
668
+ */
669
+ whitelist?: Array<string>;
670
+ daily?: {
646
671
  /**
647
- * The timestamp when the limit was last used.
672
+ * The maximum number of lookups this licensee can perform in a day. `null` indicates the limit is not active
648
673
  */
649
- updatedAt: string;
674
+ limit?: number | null;
650
675
  };
651
676
  };
652
677
  /**
@@ -657,11 +682,11 @@ type LicenseesResponse = {
657
682
  * List of licensees
658
683
  */
659
684
  result: {
660
- licensees?: Array<Licensee>;
685
+ licensees: Array<Licensee>;
661
686
  /**
662
687
  * Returns true if there are more licensees listed after the maximum number of results as implied by `limit`
663
688
  */
664
- hasMore?: boolean;
689
+ hasMore: boolean;
665
690
  };
666
691
  message: "Success";
667
692
  code: 2000;
@@ -843,7 +868,7 @@ type Place = {
843
868
  /**
844
869
  * Place Identifier
845
870
  *
846
- * Global unique internally generated identifier for a place
871
+ * Globally unique internally generated identifier for a place
847
872
  */
848
873
  id: string;
849
874
  /**
@@ -1159,7 +1184,7 @@ type SwtAddress = {
1159
1184
  /**
1160
1185
  * Address Identifier
1161
1186
  *
1162
- * Global unique internally generated identifier for an address
1187
+ * Globally unique internally generated identifier for an address
1163
1188
  */
1164
1189
  type Id = string;
1165
1190
  /**
@@ -8455,7 +8480,7 @@ type ApiKeyDetailsEditable = {
8455
8480
  /**
8456
8481
  * API Key Dataset Availability
8457
8482
  *
8458
- * Indicates which datasets are available and added by default to the address responses
8483
+ * Datasets you can switch on or off for this key. Datasets set by your plan (`paf`, `mr`, `nyb`, `ecad`, `ecaf`) cannot be changed here: sending one with a different value returns a 400.
8459
8484
  */
8460
8485
  datasets?: {
8461
8486
  /**
@@ -8965,7 +8990,7 @@ type ApiKey = {
8965
8990
  * - Daily limit has been reached on the key
8966
8991
  * - Daily individual limit has been reached
8967
8992
  * - Key is not being used via an authorised URL
8968
- * - (Sublicensed key only) Key has a valid licensee attached
8993
+ * - (Sublicensed key only) Key has no valid licensee attached
8969
8994
  * - (Sublicensed key only) Key is not being used via an authorised URL specified by licensee
8970
8995
  *
8971
8996
  */
@@ -9320,21 +9345,10 @@ type EndParam = number;
9320
9345
  *
9321
9346
  */
9322
9347
  type StartParam = number;
9323
- /**
9324
- * **Management Key**
9325
- *
9326
- * A secret key used to manage your account and API Keys. It was previously called the user token.
9327
- *
9328
- * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
9329
- *
9330
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
9331
- *
9332
- */
9333
- type UserTokenParam = string;
9334
9348
  /**
9335
9349
  * **API Key**
9336
9350
  *
9337
- * The API Key to retrieve. Begins `ak_`.
9351
+ * The API Key. Begins `ak_`.
9338
9352
  *
9339
9353
  */
9340
9354
  type ApiKeyPathParam = string;
@@ -9482,7 +9496,7 @@ type KeyAvailabilityData = {
9482
9496
  /**
9483
9497
  * **API Key**
9484
9498
  *
9485
- * The API Key to retrieve. Begins `ak_`.
9499
+ * The API Key. Begins `ak_`.
9486
9500
  *
9487
9501
  */
9488
9502
  key: string;
@@ -9514,24 +9528,12 @@ type KeyDetailsData = {
9514
9528
  /**
9515
9529
  * **API Key**
9516
9530
  *
9517
- * The API Key to retrieve. Begins `ak_`.
9531
+ * The API Key. Begins `ak_`.
9518
9532
  *
9519
9533
  */
9520
9534
  key: string;
9521
9535
  };
9522
- query?: {
9523
- /**
9524
- * **Management Key**
9525
- *
9526
- * A secret key used to manage your account and API Keys. It was previously called the user token.
9527
- *
9528
- * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
9529
- *
9530
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
9531
- *
9532
- */
9533
- user_token?: string;
9534
- };
9536
+ query?: never;
9535
9537
  url: "/keys/{key}/details";
9536
9538
  };
9537
9539
  type KeyDetailsErrors = {
@@ -9558,24 +9560,12 @@ type UpdateKeyDetailsData = {
9558
9560
  /**
9559
9561
  * **API Key**
9560
9562
  *
9561
- * The API Key to retrieve. Begins `ak_`.
9563
+ * The API Key. Begins `ak_`.
9562
9564
  *
9563
9565
  */
9564
9566
  key: string;
9565
9567
  };
9566
- query?: {
9567
- /**
9568
- * **Management Key**
9569
- *
9570
- * A secret key used to manage your account and API Keys. It was previously called the user token.
9571
- *
9572
- * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
9573
- *
9574
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
9575
- *
9576
- */
9577
- user_token?: string;
9578
- };
9568
+ query?: never;
9579
9569
  url: "/keys/{key}/details";
9580
9570
  };
9581
9571
  type UpdateKeyDetailsErrors = {
@@ -9602,23 +9592,12 @@ type KeyUsageData = {
9602
9592
  /**
9603
9593
  * **API Key**
9604
9594
  *
9605
- * The API Key to retrieve. Begins `ak_`.
9595
+ * The API Key. Begins `ak_`.
9606
9596
  *
9607
9597
  */
9608
9598
  key: string;
9609
9599
  };
9610
9600
  query?: {
9611
- /**
9612
- * **Management Key**
9613
- *
9614
- * A secret key used to manage your account and API Keys. It was previously called the user token.
9615
- *
9616
- * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
9617
- *
9618
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
9619
- *
9620
- */
9621
- user_token?: string;
9622
9601
  /**
9623
9602
  * **Start Timestamp**
9624
9603
  *
@@ -9674,23 +9653,12 @@ type KeyLogsData = {
9674
9653
  /**
9675
9654
  * **API Key**
9676
9655
  *
9677
- * The API Key to retrieve. Begins `ak_`.
9656
+ * The API Key. Begins `ak_`.
9678
9657
  *
9679
9658
  */
9680
9659
  key: string;
9681
9660
  };
9682
9661
  query?: {
9683
- /**
9684
- * **Management Key**
9685
- *
9686
- * A secret key used to manage your account and API Keys. It was previously called the user token.
9687
- *
9688
- * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
9689
- *
9690
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
9691
- *
9692
- */
9693
- user_token?: string;
9694
9662
  /**
9695
9663
  * **Start Timestamp**
9696
9664
  *
@@ -10522,7 +10490,7 @@ type ListLicenseesData = {
10522
10490
  /**
10523
10491
  * **API Key**
10524
10492
  *
10525
- * The API Key to retrieve. Begins `ak_`.
10493
+ * The API Key. Begins `ak_`.
10526
10494
  *
10527
10495
  */
10528
10496
  key: string;
@@ -10532,17 +10500,6 @@ type ListLicenseesData = {
10532
10500
  * ID of the licensee after which to list results
10533
10501
  */
10534
10502
  starting_after?: number;
10535
- /**
10536
- * **Management Key**
10537
- *
10538
- * A secret key used to manage your account and API Keys. It was previously called the user token.
10539
- *
10540
- * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10541
- *
10542
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10543
- *
10544
- */
10545
- user_token?: string;
10546
10503
  /**
10547
10504
  * **Limit**
10548
10505
  *
@@ -10579,24 +10536,12 @@ type CreateLicenseeData = {
10579
10536
  /**
10580
10537
  * **API Key**
10581
10538
  *
10582
- * The API Key to retrieve. Begins `ak_`.
10539
+ * The API Key. Begins `ak_`.
10583
10540
  *
10584
10541
  */
10585
10542
  key: string;
10586
10543
  };
10587
- query?: {
10588
- /**
10589
- * **Management Key**
10590
- *
10591
- * A secret key used to manage your account and API Keys. It was previously called the user token.
10592
- *
10593
- * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10594
- *
10595
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10596
- *
10597
- */
10598
- user_token?: string;
10599
- };
10544
+ query?: never;
10600
10545
  url: "/keys/{key}/licensees";
10601
10546
  };
10602
10547
  type CreateLicenseeErrors = {
@@ -10619,7 +10564,7 @@ type DeleteLicenseeData = {
10619
10564
  /**
10620
10565
  * **API Key**
10621
10566
  *
10622
- * The API Key to retrieve. Begins `ak_`.
10567
+ * The API Key. Begins `ak_`.
10623
10568
  *
10624
10569
  */
10625
10570
  key: string;
@@ -10631,19 +10576,7 @@ type DeleteLicenseeData = {
10631
10576
  */
10632
10577
  licensee: string;
10633
10578
  };
10634
- query?: {
10635
- /**
10636
- * **Management Key**
10637
- *
10638
- * A secret key used to manage your account and API Keys. It was previously called the user token.
10639
- *
10640
- * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10641
- *
10642
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10643
- *
10644
- */
10645
- user_token?: string;
10646
- };
10579
+ query?: never;
10647
10580
  url: "/keys/{key}/licensees/{licensee}";
10648
10581
  };
10649
10582
  type DeleteLicenseeErrors = {
@@ -10674,7 +10607,7 @@ type RetrieveLicenseeData = {
10674
10607
  /**
10675
10608
  * **API Key**
10676
10609
  *
10677
- * The API Key to retrieve. Begins `ak_`.
10610
+ * The API Key. Begins `ak_`.
10678
10611
  *
10679
10612
  */
10680
10613
  key: string;
@@ -10686,19 +10619,7 @@ type RetrieveLicenseeData = {
10686
10619
  */
10687
10620
  licensee: string;
10688
10621
  };
10689
- query?: {
10690
- /**
10691
- * **Management Key**
10692
- *
10693
- * A secret key used to manage your account and API Keys. It was previously called the user token.
10694
- *
10695
- * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10696
- *
10697
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10698
- *
10699
- */
10700
- user_token?: string;
10701
- };
10622
+ query?: never;
10702
10623
  url: "/keys/{key}/licensees/{licensee}";
10703
10624
  };
10704
10625
  type RetrieveLicenseeErrors = {
@@ -10721,7 +10642,7 @@ type UpdateLicenseeData = {
10721
10642
  /**
10722
10643
  * **API Key**
10723
10644
  *
10724
- * The API Key to retrieve. Begins `ak_`.
10645
+ * The API Key. Begins `ak_`.
10725
10646
  *
10726
10647
  */
10727
10648
  key: string;
@@ -10733,19 +10654,7 @@ type UpdateLicenseeData = {
10733
10654
  */
10734
10655
  licensee: string;
10735
10656
  };
10736
- query?: {
10737
- /**
10738
- * **Management Key**
10739
- *
10740
- * A secret key used to manage your account and API Keys. It was previously called the user token.
10741
- *
10742
- * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10743
- *
10744
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10745
- *
10746
- */
10747
- user_token?: string;
10748
- };
10657
+ query?: never;
10749
10658
  url: "/keys/{key}/licensees/{licensee}";
10750
10659
  };
10751
10660
  type UpdateLicenseeErrors = {
@@ -10768,7 +10677,7 @@ type RegenerateLicenseeKeyData = {
10768
10677
  /**
10769
10678
  * **API Key**
10770
10679
  *
10771
- * The API Key to retrieve. Begins `ak_`.
10680
+ * The API Key. Begins `ak_`.
10772
10681
  *
10773
10682
  */
10774
10683
  key: string;
@@ -10780,19 +10689,7 @@ type RegenerateLicenseeKeyData = {
10780
10689
  */
10781
10690
  licensee: string;
10782
10691
  };
10783
- query?: {
10784
- /**
10785
- * **Management Key**
10786
- *
10787
- * A secret key used to manage your account and API Keys. It was previously called the user token.
10788
- *
10789
- * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10790
- *
10791
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10792
- *
10793
- */
10794
- user_token?: string;
10795
- };
10692
+ query?: never;
10796
10693
  url: "/keys/{key}/licensees/{licensee}/regenerate-key";
10797
10694
  };
10798
10695
  type RegenerateLicenseeKeyErrors = {
@@ -10815,24 +10712,12 @@ type ListConfigsData = {
10815
10712
  /**
10816
10713
  * **API Key**
10817
10714
  *
10818
- * The API Key to retrieve. Begins `ak_`.
10715
+ * The API Key. Begins `ak_`.
10819
10716
  *
10820
10717
  */
10821
10718
  key: string;
10822
10719
  };
10823
- query?: {
10824
- /**
10825
- * **Management Key**
10826
- *
10827
- * A secret key used to manage your account and API Keys. It was previously called the user token.
10828
- *
10829
- * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10830
- *
10831
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10832
- *
10833
- */
10834
- user_token?: string;
10835
- };
10720
+ query?: never;
10836
10721
  url: "/keys/{key}/configs";
10837
10722
  };
10838
10723
  type ListConfigsErrors = {
@@ -10855,24 +10740,12 @@ type CreateConfigData = {
10855
10740
  /**
10856
10741
  * **API Key**
10857
10742
  *
10858
- * The API Key to retrieve. Begins `ak_`.
10743
+ * The API Key. Begins `ak_`.
10859
10744
  *
10860
10745
  */
10861
10746
  key: string;
10862
10747
  };
10863
- query?: {
10864
- /**
10865
- * **Management Key**
10866
- *
10867
- * A secret key used to manage your account and API Keys. It was previously called the user token.
10868
- *
10869
- * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10870
- *
10871
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10872
- *
10873
- */
10874
- user_token?: string;
10875
- };
10748
+ query?: never;
10876
10749
  url: "/keys/{key}/configs";
10877
10750
  };
10878
10751
  type CreateConfigErrors = {
@@ -10895,7 +10768,7 @@ type DeleteConfigData = {
10895
10768
  /**
10896
10769
  * **API Key**
10897
10770
  *
10898
- * The API Key to retrieve. Begins `ak_`.
10771
+ * The API Key. Begins `ak_`.
10899
10772
  *
10900
10773
  */
10901
10774
  key: string;
@@ -10907,19 +10780,7 @@ type DeleteConfigData = {
10907
10780
  */
10908
10781
  config: string;
10909
10782
  };
10910
- query?: {
10911
- /**
10912
- * **Management Key**
10913
- *
10914
- * A secret key used to manage your account and API Keys. It was previously called the user token.
10915
- *
10916
- * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10917
- *
10918
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10919
- *
10920
- */
10921
- user_token?: string;
10922
- };
10783
+ query?: never;
10923
10784
  url: "/keys/{key}/configs/{config}";
10924
10785
  };
10925
10786
  type DeleteConfigErrors = {
@@ -10954,7 +10815,7 @@ type RetrieveConfigData = {
10954
10815
  /**
10955
10816
  * **API Key**
10956
10817
  *
10957
- * The API Key to retrieve. Begins `ak_`.
10818
+ * The API Key. Begins `ak_`.
10958
10819
  *
10959
10820
  */
10960
10821
  key: string;
@@ -10993,7 +10854,7 @@ type UpdateConfigData = {
10993
10854
  /**
10994
10855
  * **API Key**
10995
10856
  *
10996
- * The API Key to retrieve. Begins `ak_`.
10857
+ * The API Key. Begins `ak_`.
10997
10858
  *
10998
10859
  */
10999
10860
  key: string;
@@ -11005,19 +10866,7 @@ type UpdateConfigData = {
11005
10866
  */
11006
10867
  config: string;
11007
10868
  };
11008
- query?: {
11009
- /**
11010
- * **Management Key**
11011
- *
11012
- * A secret key used to manage your account and API Keys. It was previously called the user token.
11013
- *
11014
- * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
11015
- *
11016
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
11017
- *
11018
- */
11019
- user_token?: string;
11020
- };
10869
+ query?: never;
11021
10870
  url: "/keys/{key}/configs/{config}";
11022
10871
  };
11023
10872
  type UpdateConfigErrors = {
@@ -11136,4 +10985,4 @@ type PhoneNumberValidationResponses = {
11136
10985
  };
11137
10986
  type PhoneNumberValidationResponse = PhoneNumberValidationResponses[keyof PhoneNumberValidationResponses];
11138
10987
 
11139
- export type { BiasPostcodeSectorParam as $, AddressListItem as A, ApiKeyIndividualLimit as B, Client as C, ApiKeyMonthlyLimit as D, ApiKeyNotifications as E, FindAddressData as F, ApiKeyParam as G, ApiKeyPathParam as H, ApiKeyResponse as I, ApiKeyUsageResponse as J, AutocompleteResponse as K, AvailableContexts as L, BanAddress as M, BevAddress as N, BiasCityParam as O, PostcodesData as P, BiasCountryIsoParam as Q, ResolveAddressResponse as R, BiasCountryParam as S, BiasIpParam as T, BiasLonLatParam as U, BiasPostalCode2Param as V, BiasPostalCode3Param as W, BiasPostalCodeParam as X, BiasPostcodeAreaParam as Y, BiasPostcodeOutwardParam as Z, BiasPostcodeParam as _, FindAddressResponse as a, FindPlaceError as a$, BiasPosttownParam as a0, BiasStateCodeParam as a1, BiasStateParam as a2, BiasThoroughfareParam as a3, BoxParam as a4, CannarAddress as a5, Carrier as a6, CityParam as a7, CleanseResponse as a8, ClientOptions as a9, DeleteConfigError as aA, DeleteConfigErrors as aB, DeleteConfigResponse as aC, DeleteConfigResponses as aD, DeleteLicenseeData as aE, DeleteLicenseeError as aF, DeleteLicenseeErrors as aG, DeleteLicenseeResponse as aH, DeleteLicenseeResponses as aI, Eastings as aJ, EcadAddress as aK, EcafAddress as aL, EircBase as aM, Email as aN, EmailResponse as aO, EmailValidationData as aP, EmailValidationError as aQ, EmailValidationErrors as aR, EmailValidationResponse as aS, EmailValidationResponses as aT, EndParam as aU, ErrorResponse as aV, FilterParam as aW, FindAddressError as aX, FindAddressErrors as aY, FindAddressResponses as aZ, FindPlaceData as a_, Config as aa, ConfigNewParam as ab, ConfigParam as ac, ConfigResponse as ad, ConfigUpdateParam as ae, ConfigsResponse as af, Context as ag, ContextParam as ah, Country as ai, CountryIso as aj, CountryIso2 as ak, CountryIsoParam as al, CountryParam as am, CreateConfigData as an, CreateConfigError as ao, CreateConfigErrors as ap, CreateConfigResponse as aq, CreateConfigResponses as ar, CreateLicenseeData as as, CreateLicenseeError as at, CreateLicenseeErrors as au, CreateLicenseeResponse as av, CreateLicenseeResponses as aw, Dataset as ax, DatasetParam as ay, DeleteConfigData as az, AbAddress as b, NybAddress as b$, FindPlaceErrors as b0, FindPlaceResponse as b1, FindPlaceResponses as b2, FodbosaAddress as b3, GbrCleanseMatch as b4, GbrCleanseNoMatch as b5, GbrResolveAddressResponse as b6, GeonamesPlace as b7, GnafAddress as b8, HereAddress as b9, KeyUsageResult as bA, Language as bB, Latitude as bC, Licensee as bD, LicenseeEditable as bE, LicenseeParam as bF, LicenseePathParam as bG, LicenseeResponse as bH, LicenseesResponse as bI, LimitParam as bJ, ListConfigsData as bK, ListConfigsError as bL, ListConfigsErrors as bM, ListConfigsResponse as bN, ListConfigsResponses as bO, ListLicenseesData as bP, ListLicenseesError as bQ, ListLicenseesErrors as bR, ListLicenseesResponse as bS, ListLicenseesResponses as bT, Longitude as bU, MoisAddress as bV, MrAddress as bW, NativeRecord as bX, NoContext as bY, Northings as bZ, NotFoundResponse as b_, Id as ba, InvalidPhoneNumber as bb, IsBusinessParam as bc, IsPoboxParam as bd, KadasterAddress as be, KartverketAddress as bf, KeyAvailabilityData as bg, KeyAvailabilityError as bh, KeyAvailabilityErrors as bi, KeyAvailabilityResponse as bj, KeyAvailabilityResponses as bk, KeyDetailsData as bl, KeyDetailsError as bm, KeyDetailsErrors as bn, KeyDetailsResponse as bo, KeyDetailsResponses as bp, KeyLogsData as bq, KeyLogsError as br, KeyLogsErrors as bs, KeyLogsResponse as bt, KeyLogsResponses as bu, KeyUsageData as bv, KeyUsageError as bw, KeyUsageErrors as bx, KeyUsageResponse as by, KeyUsageResponses as bz, AbpAddress as c, StateParam as c$, PafAddress as c0, PafRecordBase as c1, PafaAddress as c2, PafwAddress as c3, PageParam as c4, PhoneNumber as c5, PhoneNumberResponse as c6, PhoneNumberValidationData as c7, PhoneNumberValidationError as c8, PhoneNumberValidationErrors as c9, RegenerateLicenseeKeyErrors as cA, RegenerateLicenseeKeyResponse as cB, RegenerateLicenseeKeyResponses as cC, ResolveAddressData as cD, ResolveAddressError as cE, ResolveAddressErrors as cF, ResolveAddressResponses as cG, ResolvePlaceData as cH, ResolvePlaceError as cI, ResolvePlaceErrors as cJ, ResolvePlaceResponse as cK, ResolvePlaceResponse2 as cL, ResolvePlaceResponses as cM, RetrieveConfigData as cN, RetrieveConfigError as cO, RetrieveConfigErrors as cP, RetrieveConfigResponse as cQ, RetrieveConfigResponses as cR, RetrieveLicenseeData as cS, RetrieveLicenseeError as cT, RetrieveLicenseeErrors as cU, RetrieveLicenseeResponse as cV, RetrieveLicenseeResponses as cW, SdfiAddress as cX, SmallUserParam as cY, StartParam as cZ, StateCodeParam as c_, PhoneNumberValidationResponse as ca, PhoneNumberValidationResponses as cb, Place as cc, PlaceCountryIso as cd, PlaceDescriptiveName as ce, PlaceId as cf, PlaceName as cg, PlaceResponse as ch, PlaceSuggestion as ci, PostTownParam as cj, PostalCode2Param as ck, PostalCode3Param as cl, PostalCodeParam as cm, PostcodeAreaParam as cn, PostcodeNotFoundResponse as co, PostcodeOutwardParam as cp, PostcodeParam as cq, PostcodeResponse as cr, PostcodeSectorParam as cs, PostcodeTypeParam as ct, PostcodesError as cu, PostcodesErrors as cv, PostcodesResponse as cw, PostcodesResponses as cx, RegenerateLicenseeKeyData as cy, RegenerateLicenseeKeyError as cz, Address as d, SwtAddress as d0, TagsParam as d1, UkAddressSuggestion as d2, UnknownEmail as d3, UpdateConfigData as d4, UpdateConfigError as d5, UpdateConfigErrors as d6, UpdateConfigResponse as d7, UpdateConfigResponses as d8, UpdateKeyDetailsData as d9, UpdateKeyDetailsError as da, UpdateKeyDetailsErrors as db, UpdateKeyDetailsResponse as dc, UpdateKeyDetailsResponses as dd, UpdateLicenseeData as de, UpdateLicenseeError as df, UpdateLicenseeErrors as dg, UpdateLicenseeResponse as dh, UpdateLicenseeResponses as di, UprnParam as dj, UpujpAddress as dk, UserTokenParam as dl, UspsAddress as dm, TDataShape as dn, Options as dp, RequestResult as dq, AddressCleanseData as e, AddressCleanseError as f, AddressCleanseErrors as g, AddressCleanseResponse as h, AddressCleanseResponses as i, AddressLatitudeParam as j, AddressLongitudeParam as k, AddressResponse as l, AddressSuggestion as m, AddressesData as n, AddressesError as o, AddressesErrors as p, AddressesResponse as q, AddressesResponses as r, ApiKey as s, ApiKeyAutomatedTopup as t, ApiKeyCurrentPurchase as u, ApiKeyDailyLimit as v, ApiKeyDatasets as w, ApiKeyDetails as x, ApiKeyDetailsEditable as y, ApiKeyDetailsResponse as z };
10988
+ export type { BiasPostcodeSectorParam as $, AddressListItem as A, ApiKeyIndividualLimit as B, Client as C, ApiKeyMonthlyLimit as D, ApiKeyNotifications as E, FindAddressData as F, ApiKeyParam as G, ApiKeyPathParam as H, ApiKeyResponse as I, ApiKeyUsageResponse as J, AutocompleteResponse as K, AvailableContexts as L, BanAddress as M, BevAddress as N, BiasCityParam as O, PostcodesData as P, BiasCountryIsoParam as Q, ResolveAddressResponse as R, BiasCountryParam as S, BiasIpParam as T, BiasLonLatParam as U, BiasPostalCode2Param as V, BiasPostalCode3Param as W, BiasPostalCodeParam as X, BiasPostcodeAreaParam as Y, BiasPostcodeOutwardParam as Z, BiasPostcodeParam as _, FindAddressResponse as a, FindPlaceError as a$, BiasPosttownParam as a0, BiasStateCodeParam as a1, BiasStateParam as a2, BiasThoroughfareParam as a3, BoxParam as a4, CannarAddress as a5, Carrier as a6, CityParam as a7, CleanseResponse as a8, ClientOptions as a9, DeleteConfigError as aA, DeleteConfigErrors as aB, DeleteConfigResponse as aC, DeleteConfigResponses as aD, DeleteLicenseeData as aE, DeleteLicenseeError as aF, DeleteLicenseeErrors as aG, DeleteLicenseeResponse as aH, DeleteLicenseeResponses as aI, Eastings as aJ, EcadAddress as aK, EcafAddress as aL, EircBase as aM, Email as aN, EmailResponse as aO, EmailValidationData as aP, EmailValidationError as aQ, EmailValidationErrors as aR, EmailValidationResponse as aS, EmailValidationResponses as aT, EndParam as aU, ErrorResponse as aV, FilterParam as aW, FindAddressError as aX, FindAddressErrors as aY, FindAddressResponses as aZ, FindPlaceData as a_, Config as aa, ConfigNewParam as ab, ConfigParam as ac, ConfigResponse as ad, ConfigUpdateParam as ae, ConfigsResponse as af, Context as ag, ContextParam as ah, Country as ai, CountryIso as aj, CountryIso2 as ak, CountryIsoParam as al, CountryParam as am, CreateConfigData as an, CreateConfigError as ao, CreateConfigErrors as ap, CreateConfigResponse as aq, CreateConfigResponses as ar, CreateLicenseeData as as, CreateLicenseeError as at, CreateLicenseeErrors as au, CreateLicenseeResponse as av, CreateLicenseeResponses as aw, Dataset as ax, DatasetParam as ay, DeleteConfigData as az, AbAddress as b, NybAddress as b$, FindPlaceErrors as b0, FindPlaceResponse as b1, FindPlaceResponses as b2, FodbosaAddress as b3, GbrCleanseMatch as b4, GbrCleanseNoMatch as b5, GbrResolveAddressResponse as b6, GeonamesPlace as b7, GnafAddress as b8, HereAddress as b9, KeyUsageResult as bA, Language as bB, Latitude as bC, Licensee as bD, LicenseeEditable as bE, LicenseeParam as bF, LicenseePathParam as bG, LicenseeResponse as bH, LicenseesResponse as bI, LimitParam as bJ, ListConfigsData as bK, ListConfigsError as bL, ListConfigsErrors as bM, ListConfigsResponse as bN, ListConfigsResponses as bO, ListLicenseesData as bP, ListLicenseesError as bQ, ListLicenseesErrors as bR, ListLicenseesResponse as bS, ListLicenseesResponses as bT, Longitude as bU, MoisAddress as bV, MrAddress as bW, NativeRecord as bX, NoContext as bY, Northings as bZ, NotFoundResponse as b_, Id as ba, InvalidPhoneNumber as bb, IsBusinessParam as bc, IsPoboxParam as bd, KadasterAddress as be, KartverketAddress as bf, KeyAvailabilityData as bg, KeyAvailabilityError as bh, KeyAvailabilityErrors as bi, KeyAvailabilityResponse as bj, KeyAvailabilityResponses as bk, KeyDetailsData as bl, KeyDetailsError as bm, KeyDetailsErrors as bn, KeyDetailsResponse as bo, KeyDetailsResponses as bp, KeyLogsData as bq, KeyLogsError as br, KeyLogsErrors as bs, KeyLogsResponse as bt, KeyLogsResponses as bu, KeyUsageData as bv, KeyUsageError as bw, KeyUsageErrors as bx, KeyUsageResponse as by, KeyUsageResponses as bz, AbpAddress as c, StateParam as c$, PafAddress as c0, PafRecordBase as c1, PafaAddress as c2, PafwAddress as c3, PageParam as c4, PhoneNumber as c5, PhoneNumberResponse as c6, PhoneNumberValidationData as c7, PhoneNumberValidationError as c8, PhoneNumberValidationErrors as c9, RegenerateLicenseeKeyErrors as cA, RegenerateLicenseeKeyResponse as cB, RegenerateLicenseeKeyResponses as cC, ResolveAddressData as cD, ResolveAddressError as cE, ResolveAddressErrors as cF, ResolveAddressResponses as cG, ResolvePlaceData as cH, ResolvePlaceError as cI, ResolvePlaceErrors as cJ, ResolvePlaceResponse as cK, ResolvePlaceResponse2 as cL, ResolvePlaceResponses as cM, RetrieveConfigData as cN, RetrieveConfigError as cO, RetrieveConfigErrors as cP, RetrieveConfigResponse as cQ, RetrieveConfigResponses as cR, RetrieveLicenseeData as cS, RetrieveLicenseeError as cT, RetrieveLicenseeErrors as cU, RetrieveLicenseeResponse as cV, RetrieveLicenseeResponses as cW, SdfiAddress as cX, SmallUserParam as cY, StartParam as cZ, StateCodeParam as c_, PhoneNumberValidationResponse as ca, PhoneNumberValidationResponses as cb, Place as cc, PlaceCountryIso as cd, PlaceDescriptiveName as ce, PlaceId as cf, PlaceName as cg, PlaceResponse as ch, PlaceSuggestion as ci, PostTownParam as cj, PostalCode2Param as ck, PostalCode3Param as cl, PostalCodeParam as cm, PostcodeAreaParam as cn, PostcodeNotFoundResponse as co, PostcodeOutwardParam as cp, PostcodeParam as cq, PostcodeResponse as cr, PostcodeSectorParam as cs, PostcodeTypeParam as ct, PostcodesError as cu, PostcodesErrors as cv, PostcodesResponse as cw, PostcodesResponses as cx, RegenerateLicenseeKeyData as cy, RegenerateLicenseeKeyError as cz, Address as d, SwtAddress as d0, TagsParam as d1, UkAddressSuggestion as d2, UnknownEmail as d3, UpdateConfigData as d4, UpdateConfigError as d5, UpdateConfigErrors as d6, UpdateConfigResponse as d7, UpdateConfigResponses as d8, UpdateKeyDetailsData as d9, UpdateKeyDetailsError as da, UpdateKeyDetailsErrors as db, UpdateKeyDetailsResponse as dc, UpdateKeyDetailsResponses as dd, UpdateLicenseeData as de, UpdateLicenseeError as df, UpdateLicenseeErrors as dg, UpdateLicenseeResponse as dh, UpdateLicenseeResponses as di, UprnParam as dj, UpujpAddress as dk, UspsAddress as dl, TDataShape as dm, Options as dn, RequestResult as dp, AddressCleanseData as e, AddressCleanseError as f, AddressCleanseErrors as g, AddressCleanseResponse as h, AddressCleanseResponses as i, AddressLatitudeParam as j, AddressLongitudeParam as k, AddressResponse as l, AddressSuggestion as m, AddressesData as n, AddressesError as o, AddressesErrors as p, AddressesResponse as q, AddressesResponses as r, ApiKey as s, ApiKeyAutomatedTopup as t, ApiKeyCurrentPurchase as u, ApiKeyDailyLimit as v, ApiKeyDatasets as w, ApiKeyDetails as x, ApiKeyDetailsEditable as y, ApiKeyDetailsResponse as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ideal-postcodes/sdk",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "Fetch-based, treeshakable TypeScript SDK for api.ideal-postcodes.co.uk",
5
5
  "author": {
6
6
  "name": "Ideal Postcodes",
@@ -63,7 +63,8 @@
63
63
  }
64
64
  },
65
65
  "files": [
66
- "dist"
66
+ "dist",
67
+ "CHANGELOG.md"
67
68
  ],
68
69
  "engines": {
69
70
  "node": ">=22"
@@ -82,8 +83,8 @@
82
83
  "access": "public"
83
84
  },
84
85
  "peerDependencies": {
85
- "@tanstack/preact-query": "^5.100.11",
86
- "@tanstack/react-query": "^5.100.11"
86
+ "@tanstack/preact-query": "^5.91.0",
87
+ "@tanstack/react-query": "^5.91.0"
87
88
  },
88
89
  "peerDependenciesMeta": {
89
90
  "@tanstack/preact-query": {
@@ -96,12 +97,12 @@
96
97
  "devDependencies": {
97
98
  "@arethetypeswrong/cli": "0.18.5",
98
99
  "@hey-api/openapi-ts": "0.97.3",
99
- "@iddqdhq/jsutil": "8.1.2",
100
+ "@iddqdhq/jsutil": "8.1.3",
100
101
  "@iddqdhq/sdk-scripts": "0.0.1",
101
102
  "@iddqdhq/test-config": "0.0.0",
102
103
  "@iddqdhq/tsconfig-base": "0.0.0",
103
104
  "@iddqdhq/tsup-config": "0.0.0",
104
- "@ideal-postcodes/openapi": "5.1.1",
105
+ "@ideal-postcodes/openapi": "5.1.2",
105
106
  "@size-limit/esbuild": "14.0.0",
106
107
  "@size-limit/file": "14.0.0",
107
108
  "@tanstack/preact-query": "5.100.11",