postnl-client 0.1.1 → 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
@@ -1432,12 +1432,12 @@ declare const locationSchema: z.ZodEffects<z.ZodObject<{
1432
1432
  Remark?: string | undefined;
1433
1433
  }>, {
1434
1434
  city?: string;
1435
- countrycode?: string;
1436
- houseNr?: number;
1437
- houseNrExt?: string;
1435
+ countryCode?: string;
1436
+ houseNumber?: number;
1437
+ houseNumberExtension?: string;
1438
1438
  remark?: string;
1439
1439
  street?: string;
1440
- zipcode?: string;
1440
+ postalCode?: string;
1441
1441
  }, {
1442
1442
  HouseNr?: unknown;
1443
1443
  Zipcode?: string | undefined;
@@ -1520,12 +1520,12 @@ declare const locationSchema: z.ZodEffects<z.ZodObject<{
1520
1520
  } | undefined;
1521
1521
  Address?: {
1522
1522
  city?: string;
1523
- countrycode?: string;
1524
- houseNr?: number;
1525
- houseNrExt?: string;
1523
+ countryCode?: string;
1524
+ houseNumber?: number;
1525
+ houseNumberExtension?: string;
1526
1526
  remark?: string;
1527
1527
  street?: string;
1528
- zipcode?: string;
1528
+ postalCode?: string;
1529
1529
  } | undefined;
1530
1530
  OpeningHours?: {
1531
1531
  monday?: string;
@@ -1577,12 +1577,12 @@ declare const locationSchema: z.ZodEffects<z.ZodObject<{
1577
1577
  }>, {
1578
1578
  address?: {
1579
1579
  city?: string;
1580
- countrycode?: string;
1581
- houseNr?: number;
1582
- houseNrExt?: string;
1580
+ countryCode?: string;
1581
+ houseNumber?: number;
1582
+ houseNumberExtension?: string;
1583
1583
  remark?: string;
1584
1584
  street?: string;
1585
- zipcode?: string;
1585
+ postalCode?: string;
1586
1586
  };
1587
1587
  deliveryOptions?: string[];
1588
1588
  distance?: number;
@@ -1667,12 +1667,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
1667
1667
  Remark?: string | undefined;
1668
1668
  }>, {
1669
1669
  city?: string;
1670
- countrycode?: string;
1671
- houseNr?: number;
1672
- houseNrExt?: string;
1670
+ countryCode?: string;
1671
+ houseNumber?: number;
1672
+ houseNumberExtension?: string;
1673
1673
  remark?: string;
1674
1674
  street?: string;
1675
- zipcode?: string;
1675
+ postalCode?: string;
1676
1676
  }, {
1677
1677
  HouseNr?: unknown;
1678
1678
  Zipcode?: string | undefined;
@@ -1755,12 +1755,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
1755
1755
  } | undefined;
1756
1756
  Address?: {
1757
1757
  city?: string;
1758
- countrycode?: string;
1759
- houseNr?: number;
1760
- houseNrExt?: string;
1758
+ countryCode?: string;
1759
+ houseNumber?: number;
1760
+ houseNumberExtension?: string;
1761
1761
  remark?: string;
1762
1762
  street?: string;
1763
- zipcode?: string;
1763
+ postalCode?: string;
1764
1764
  } | undefined;
1765
1765
  OpeningHours?: {
1766
1766
  monday?: string;
@@ -1812,12 +1812,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
1812
1812
  }>, {
1813
1813
  address?: {
1814
1814
  city?: string;
1815
- countrycode?: string;
1816
- houseNr?: number;
1817
- houseNrExt?: string;
1815
+ countryCode?: string;
1816
+ houseNumber?: number;
1817
+ houseNumberExtension?: string;
1818
1818
  remark?: string;
1819
1819
  street?: string;
1820
- zipcode?: string;
1820
+ postalCode?: string;
1821
1821
  };
1822
1822
  deliveryOptions?: string[];
1823
1823
  distance?: number;
@@ -1874,12 +1874,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
1874
1874
  }>, "many">, {
1875
1875
  address?: {
1876
1876
  city?: string;
1877
- countrycode?: string;
1878
- houseNr?: number;
1879
- houseNrExt?: string;
1877
+ countryCode?: string;
1878
+ houseNumber?: number;
1879
+ houseNumberExtension?: string;
1880
1880
  remark?: string;
1881
1881
  street?: string;
1882
- zipcode?: string;
1882
+ postalCode?: string;
1883
1883
  };
1884
1884
  deliveryOptions?: string[];
1885
1885
  distance?: number;
@@ -1907,12 +1907,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
1907
1907
  ResponseLocation: {
1908
1908
  address?: {
1909
1909
  city?: string;
1910
- countrycode?: string;
1911
- houseNr?: number;
1912
- houseNrExt?: string;
1910
+ countryCode?: string;
1911
+ houseNumber?: number;
1912
+ houseNumberExtension?: string;
1913
1913
  remark?: string;
1914
1914
  street?: string;
1915
- zipcode?: string;
1915
+ postalCode?: string;
1916
1916
  };
1917
1917
  deliveryOptions?: string[];
1918
1918
  distance?: number;
@@ -1941,12 +1941,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
1941
1941
  }>>, {
1942
1942
  address?: {
1943
1943
  city?: string;
1944
- countrycode?: string;
1945
- houseNr?: number;
1946
- houseNrExt?: string;
1944
+ countryCode?: string;
1945
+ houseNumber?: number;
1946
+ houseNumberExtension?: string;
1947
1947
  remark?: string;
1948
1948
  street?: string;
1949
- zipcode?: string;
1949
+ postalCode?: string;
1950
1950
  };
1951
1951
  deliveryOptions?: string[];
1952
1952
  distance?: number;
@@ -1976,12 +1976,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
1976
1976
  GetLocationsResult: {
1977
1977
  address?: {
1978
1978
  city?: string;
1979
- countrycode?: string;
1980
- houseNr?: number;
1981
- houseNrExt?: string;
1979
+ countryCode?: string;
1980
+ houseNumber?: number;
1981
+ houseNumberExtension?: string;
1982
1982
  remark?: string;
1983
1983
  street?: string;
1984
- zipcode?: string;
1984
+ postalCode?: string;
1985
1985
  };
1986
1986
  deliveryOptions?: string[];
1987
1987
  distance?: number;
@@ -2013,12 +2013,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
2013
2013
  locations: {
2014
2014
  address?: {
2015
2015
  city?: string;
2016
- countrycode?: string;
2017
- houseNr?: number;
2018
- houseNrExt?: string;
2016
+ countryCode?: string;
2017
+ houseNumber?: number;
2018
+ houseNumberExtension?: string;
2019
2019
  remark?: string;
2020
2020
  street?: string;
2021
- zipcode?: string;
2021
+ postalCode?: string;
2022
2022
  };
2023
2023
  deliveryOptions?: string[];
2024
2024
  distance?: number;
@@ -2077,12 +2077,12 @@ declare const locationLookupResponseSchema: z.ZodEffects<z.ZodObject<{
2077
2077
  Remark?: string | undefined;
2078
2078
  }>, {
2079
2079
  city?: string;
2080
- countrycode?: string;
2081
- houseNr?: number;
2082
- houseNrExt?: string;
2080
+ countryCode?: string;
2081
+ houseNumber?: number;
2082
+ houseNumberExtension?: string;
2083
2083
  remark?: string;
2084
2084
  street?: string;
2085
- zipcode?: string;
2085
+ postalCode?: string;
2086
2086
  }, {
2087
2087
  HouseNr?: unknown;
2088
2088
  Zipcode?: string | undefined;
@@ -2165,12 +2165,12 @@ declare const locationLookupResponseSchema: z.ZodEffects<z.ZodObject<{
2165
2165
  } | undefined;
2166
2166
  Address?: {
2167
2167
  city?: string;
2168
- countrycode?: string;
2169
- houseNr?: number;
2170
- houseNrExt?: string;
2168
+ countryCode?: string;
2169
+ houseNumber?: number;
2170
+ houseNumberExtension?: string;
2171
2171
  remark?: string;
2172
2172
  street?: string;
2173
- zipcode?: string;
2173
+ postalCode?: string;
2174
2174
  } | undefined;
2175
2175
  OpeningHours?: {
2176
2176
  monday?: string;
@@ -2222,12 +2222,12 @@ declare const locationLookupResponseSchema: z.ZodEffects<z.ZodObject<{
2222
2222
  }>, {
2223
2223
  address?: {
2224
2224
  city?: string;
2225
- countrycode?: string;
2226
- houseNr?: number;
2227
- houseNrExt?: string;
2225
+ countryCode?: string;
2226
+ houseNumber?: number;
2227
+ houseNumberExtension?: string;
2228
2228
  remark?: string;
2229
2229
  street?: string;
2230
- zipcode?: string;
2230
+ postalCode?: string;
2231
2231
  };
2232
2232
  deliveryOptions?: string[];
2233
2233
  distance?: number;
@@ -2286,12 +2286,12 @@ declare const locationLookupResponseSchema: z.ZodEffects<z.ZodObject<{
2286
2286
  ResponseLocation?: {
2287
2287
  address?: {
2288
2288
  city?: string;
2289
- countrycode?: string;
2290
- houseNr?: number;
2291
- houseNrExt?: string;
2289
+ countryCode?: string;
2290
+ houseNumber?: number;
2291
+ houseNumberExtension?: string;
2292
2292
  remark?: string;
2293
2293
  street?: string;
2294
- zipcode?: string;
2294
+ postalCode?: string;
2295
2295
  };
2296
2296
  deliveryOptions?: string[];
2297
2297
  distance?: number;
@@ -2351,12 +2351,12 @@ declare const locationLookupResponseSchema: z.ZodEffects<z.ZodObject<{
2351
2351
  }>>, {
2352
2352
  address?: {
2353
2353
  city?: string;
2354
- countrycode?: string;
2355
- houseNr?: number;
2356
- houseNrExt?: string;
2354
+ countryCode?: string;
2355
+ houseNumber?: number;
2356
+ houseNumberExtension?: string;
2357
2357
  remark?: string;
2358
2358
  street?: string;
2359
- zipcode?: string;
2359
+ postalCode?: string;
2360
2360
  };
2361
2361
  deliveryOptions?: string[];
2362
2362
  distance?: number;
@@ -2417,12 +2417,12 @@ declare const locationLookupResponseSchema: z.ZodEffects<z.ZodObject<{
2417
2417
  GetLocationsResult?: {
2418
2418
  address?: {
2419
2419
  city?: string;
2420
- countrycode?: string;
2421
- houseNr?: number;
2422
- houseNrExt?: string;
2420
+ countryCode?: string;
2421
+ houseNumber?: number;
2422
+ houseNumberExtension?: string;
2423
2423
  remark?: string;
2424
2424
  street?: string;
2425
- zipcode?: string;
2425
+ postalCode?: string;
2426
2426
  };
2427
2427
  deliveryOptions?: string[];
2428
2428
  distance?: number;
@@ -2485,12 +2485,12 @@ declare const locationLookupResponseSchema: z.ZodEffects<z.ZodObject<{
2485
2485
  location?: {
2486
2486
  address?: {
2487
2487
  city?: string;
2488
- countrycode?: string;
2489
- houseNr?: number;
2490
- houseNrExt?: string;
2488
+ countryCode?: string;
2489
+ houseNumber?: number;
2490
+ houseNumberExtension?: string;
2491
2491
  remark?: string;
2492
2492
  street?: string;
2493
- zipcode?: string;
2493
+ postalCode?: string;
2494
2494
  };
2495
2495
  deliveryOptions?: string[];
2496
2496
  distance?: number;
@@ -12746,6 +12746,4 @@ declare const ProductCode: {
12746
12746
  };
12747
12747
  type ProductCodeValue = (typeof ProductCode)[keyof typeof ProductCode];
12748
12748
 
12749
- declare const version = "0.1.0";
12750
-
12751
- export { type AddressCheckInput, AddressResource, AddressType, AssociatedDocumentType, type BarcodeLegacyInput, BarcodeResource, BarcodeType, type BarcodeV4Request, type BarcodeV4Response, Bundle, type CheckoutAddressInput, CheckoutCutOffDay, type CheckoutCutOffTimeInput, CheckoutCutOffType, CheckoutOption, type CheckoutRequestInput, CheckoutResource, type CheckoutResponse, CheckoutWarningOption, type ConfirmV4Request, type ConfirmingRequest, type ConfirmingResponse, ConsolidationMode, CountryCode, Currency, type DecodedLabel, DeliveryConfirmation, type DeliveryDateCalculateInput, DeliveryDateResource, type DeliveryDateResponse, DeliverydateOption, Duration, GuaranteedBefore, IGNORED_LOCATION_OPTIONS, type LabelLegacyOptions, LabelType, LabellingCurrency, type LabellingRequest, type LabellingResponse, type LabellingV4Request, Language, type Location, type LocationAreaInput, LocationDeliveryOption, type LocationLookupInput, type LocationLookupResponse, type LocationNearestByGeocodeInput, type LocationNearestInput, LocationResource, type LocationsResponse, MergeType, MinimalAgeCheck, NetworkType, OriginCountryCode, OutputType, PageOrientation, Positioning, PostNLApiError, PostNLAuthError, PostNLBadRequestError, PostNLClient, type PostNLClientOptions, PostNLError, PostNLMethodNotAllowedError, PostNLRateLimitError, PostNLServerError, PostNLTimeoutError, PostNLValidationError, type PostalcodeCheckAddress, PrintMethod, ProductCode, type ProductCodeValue, ReceiverType, Resolution, type ReturnGenerateRequest, ReturnOutputType, ReturnPeriod, ReturnPeriodV4, ReturnResource, ReturnShipmentTypeV4, type SentDateInput, type SentDateResponse, Service, type ShipmentPostResponse, ShipmentTypeLegacy, ShipmentTypeV4, type ShipmentV4Request, ShippingResource, type ShippingStatusResponse, type SignatureImage, type SignatureResponse, StatusLanguage, SustainabilityCode, type TimeframeGetInput, TimeframeOption, TimeframeResource, type TimeframeResponse, type TrackingByReferenceOptions, type TrackingOptions, TrackingResource, type UpdatedShipment, type UpdatedShipmentsOptions, type UpdatedShipmentsResponse, decodeBase64, labelContentType, toDecodedLabel, version };
12749
+ export { type AddressCheckInput, AddressResource, AddressType, AssociatedDocumentType, type BarcodeLegacyInput, BarcodeResource, BarcodeType, type BarcodeV4Request, type BarcodeV4Response, Bundle, type CheckoutAddressInput, CheckoutCutOffDay, type CheckoutCutOffTimeInput, CheckoutCutOffType, CheckoutOption, type CheckoutRequestInput, CheckoutResource, type CheckoutResponse, CheckoutWarningOption, type ConfirmV4Request, type ConfirmingRequest, type ConfirmingResponse, ConsolidationMode, CountryCode, Currency, type DecodedLabel, DeliveryConfirmation, type DeliveryDateCalculateInput, DeliveryDateResource, type DeliveryDateResponse, DeliverydateOption, Duration, GuaranteedBefore, IGNORED_LOCATION_OPTIONS, type LabelLegacyOptions, LabelType, LabellingCurrency, type LabellingRequest, type LabellingResponse, type LabellingV4Request, Language, type Location, type LocationAreaInput, LocationDeliveryOption, type LocationLookupInput, type LocationLookupResponse, type LocationNearestByGeocodeInput, type LocationNearestInput, LocationResource, type LocationsResponse, MergeType, MinimalAgeCheck, NetworkType, OriginCountryCode, OutputType, PageOrientation, Positioning, PostNLApiError, PostNLAuthError, PostNLBadRequestError, PostNLClient, type PostNLClientOptions, PostNLError, PostNLMethodNotAllowedError, PostNLRateLimitError, PostNLServerError, PostNLTimeoutError, PostNLValidationError, type PostalcodeCheckAddress, PrintMethod, ProductCode, type ProductCodeValue, ReceiverType, Resolution, type ReturnGenerateRequest, ReturnOutputType, ReturnPeriod, ReturnPeriodV4, ReturnResource, ReturnShipmentTypeV4, type SentDateInput, type SentDateResponse, Service, type ShipmentPostResponse, ShipmentTypeLegacy, ShipmentTypeV4, type ShipmentV4Request, ShippingResource, type ShippingStatusResponse, type SignatureImage, type SignatureResponse, StatusLanguage, SustainabilityCode, type TimeframeGetInput, TimeframeOption, TimeframeResource, type TimeframeResponse, type TrackingByReferenceOptions, type TrackingOptions, TrackingResource, type UpdatedShipment, type UpdatedShipmentsOptions, type UpdatedShipmentsResponse, decodeBase64, labelContentType, toDecodedLabel };
package/dist/index.d.ts CHANGED
@@ -1432,12 +1432,12 @@ declare const locationSchema: z.ZodEffects<z.ZodObject<{
1432
1432
  Remark?: string | undefined;
1433
1433
  }>, {
1434
1434
  city?: string;
1435
- countrycode?: string;
1436
- houseNr?: number;
1437
- houseNrExt?: string;
1435
+ countryCode?: string;
1436
+ houseNumber?: number;
1437
+ houseNumberExtension?: string;
1438
1438
  remark?: string;
1439
1439
  street?: string;
1440
- zipcode?: string;
1440
+ postalCode?: string;
1441
1441
  }, {
1442
1442
  HouseNr?: unknown;
1443
1443
  Zipcode?: string | undefined;
@@ -1520,12 +1520,12 @@ declare const locationSchema: z.ZodEffects<z.ZodObject<{
1520
1520
  } | undefined;
1521
1521
  Address?: {
1522
1522
  city?: string;
1523
- countrycode?: string;
1524
- houseNr?: number;
1525
- houseNrExt?: string;
1523
+ countryCode?: string;
1524
+ houseNumber?: number;
1525
+ houseNumberExtension?: string;
1526
1526
  remark?: string;
1527
1527
  street?: string;
1528
- zipcode?: string;
1528
+ postalCode?: string;
1529
1529
  } | undefined;
1530
1530
  OpeningHours?: {
1531
1531
  monday?: string;
@@ -1577,12 +1577,12 @@ declare const locationSchema: z.ZodEffects<z.ZodObject<{
1577
1577
  }>, {
1578
1578
  address?: {
1579
1579
  city?: string;
1580
- countrycode?: string;
1581
- houseNr?: number;
1582
- houseNrExt?: string;
1580
+ countryCode?: string;
1581
+ houseNumber?: number;
1582
+ houseNumberExtension?: string;
1583
1583
  remark?: string;
1584
1584
  street?: string;
1585
- zipcode?: string;
1585
+ postalCode?: string;
1586
1586
  };
1587
1587
  deliveryOptions?: string[];
1588
1588
  distance?: number;
@@ -1667,12 +1667,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
1667
1667
  Remark?: string | undefined;
1668
1668
  }>, {
1669
1669
  city?: string;
1670
- countrycode?: string;
1671
- houseNr?: number;
1672
- houseNrExt?: string;
1670
+ countryCode?: string;
1671
+ houseNumber?: number;
1672
+ houseNumberExtension?: string;
1673
1673
  remark?: string;
1674
1674
  street?: string;
1675
- zipcode?: string;
1675
+ postalCode?: string;
1676
1676
  }, {
1677
1677
  HouseNr?: unknown;
1678
1678
  Zipcode?: string | undefined;
@@ -1755,12 +1755,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
1755
1755
  } | undefined;
1756
1756
  Address?: {
1757
1757
  city?: string;
1758
- countrycode?: string;
1759
- houseNr?: number;
1760
- houseNrExt?: string;
1758
+ countryCode?: string;
1759
+ houseNumber?: number;
1760
+ houseNumberExtension?: string;
1761
1761
  remark?: string;
1762
1762
  street?: string;
1763
- zipcode?: string;
1763
+ postalCode?: string;
1764
1764
  } | undefined;
1765
1765
  OpeningHours?: {
1766
1766
  monday?: string;
@@ -1812,12 +1812,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
1812
1812
  }>, {
1813
1813
  address?: {
1814
1814
  city?: string;
1815
- countrycode?: string;
1816
- houseNr?: number;
1817
- houseNrExt?: string;
1815
+ countryCode?: string;
1816
+ houseNumber?: number;
1817
+ houseNumberExtension?: string;
1818
1818
  remark?: string;
1819
1819
  street?: string;
1820
- zipcode?: string;
1820
+ postalCode?: string;
1821
1821
  };
1822
1822
  deliveryOptions?: string[];
1823
1823
  distance?: number;
@@ -1874,12 +1874,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
1874
1874
  }>, "many">, {
1875
1875
  address?: {
1876
1876
  city?: string;
1877
- countrycode?: string;
1878
- houseNr?: number;
1879
- houseNrExt?: string;
1877
+ countryCode?: string;
1878
+ houseNumber?: number;
1879
+ houseNumberExtension?: string;
1880
1880
  remark?: string;
1881
1881
  street?: string;
1882
- zipcode?: string;
1882
+ postalCode?: string;
1883
1883
  };
1884
1884
  deliveryOptions?: string[];
1885
1885
  distance?: number;
@@ -1907,12 +1907,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
1907
1907
  ResponseLocation: {
1908
1908
  address?: {
1909
1909
  city?: string;
1910
- countrycode?: string;
1911
- houseNr?: number;
1912
- houseNrExt?: string;
1910
+ countryCode?: string;
1911
+ houseNumber?: number;
1912
+ houseNumberExtension?: string;
1913
1913
  remark?: string;
1914
1914
  street?: string;
1915
- zipcode?: string;
1915
+ postalCode?: string;
1916
1916
  };
1917
1917
  deliveryOptions?: string[];
1918
1918
  distance?: number;
@@ -1941,12 +1941,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
1941
1941
  }>>, {
1942
1942
  address?: {
1943
1943
  city?: string;
1944
- countrycode?: string;
1945
- houseNr?: number;
1946
- houseNrExt?: string;
1944
+ countryCode?: string;
1945
+ houseNumber?: number;
1946
+ houseNumberExtension?: string;
1947
1947
  remark?: string;
1948
1948
  street?: string;
1949
- zipcode?: string;
1949
+ postalCode?: string;
1950
1950
  };
1951
1951
  deliveryOptions?: string[];
1952
1952
  distance?: number;
@@ -1976,12 +1976,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
1976
1976
  GetLocationsResult: {
1977
1977
  address?: {
1978
1978
  city?: string;
1979
- countrycode?: string;
1980
- houseNr?: number;
1981
- houseNrExt?: string;
1979
+ countryCode?: string;
1980
+ houseNumber?: number;
1981
+ houseNumberExtension?: string;
1982
1982
  remark?: string;
1983
1983
  street?: string;
1984
- zipcode?: string;
1984
+ postalCode?: string;
1985
1985
  };
1986
1986
  deliveryOptions?: string[];
1987
1987
  distance?: number;
@@ -2013,12 +2013,12 @@ declare const locationsResponseSchema: z.ZodEffects<z.ZodObject<{
2013
2013
  locations: {
2014
2014
  address?: {
2015
2015
  city?: string;
2016
- countrycode?: string;
2017
- houseNr?: number;
2018
- houseNrExt?: string;
2016
+ countryCode?: string;
2017
+ houseNumber?: number;
2018
+ houseNumberExtension?: string;
2019
2019
  remark?: string;
2020
2020
  street?: string;
2021
- zipcode?: string;
2021
+ postalCode?: string;
2022
2022
  };
2023
2023
  deliveryOptions?: string[];
2024
2024
  distance?: number;
@@ -2077,12 +2077,12 @@ declare const locationLookupResponseSchema: z.ZodEffects<z.ZodObject<{
2077
2077
  Remark?: string | undefined;
2078
2078
  }>, {
2079
2079
  city?: string;
2080
- countrycode?: string;
2081
- houseNr?: number;
2082
- houseNrExt?: string;
2080
+ countryCode?: string;
2081
+ houseNumber?: number;
2082
+ houseNumberExtension?: string;
2083
2083
  remark?: string;
2084
2084
  street?: string;
2085
- zipcode?: string;
2085
+ postalCode?: string;
2086
2086
  }, {
2087
2087
  HouseNr?: unknown;
2088
2088
  Zipcode?: string | undefined;
@@ -2165,12 +2165,12 @@ declare const locationLookupResponseSchema: z.ZodEffects<z.ZodObject<{
2165
2165
  } | undefined;
2166
2166
  Address?: {
2167
2167
  city?: string;
2168
- countrycode?: string;
2169
- houseNr?: number;
2170
- houseNrExt?: string;
2168
+ countryCode?: string;
2169
+ houseNumber?: number;
2170
+ houseNumberExtension?: string;
2171
2171
  remark?: string;
2172
2172
  street?: string;
2173
- zipcode?: string;
2173
+ postalCode?: string;
2174
2174
  } | undefined;
2175
2175
  OpeningHours?: {
2176
2176
  monday?: string;
@@ -2222,12 +2222,12 @@ declare const locationLookupResponseSchema: z.ZodEffects<z.ZodObject<{
2222
2222
  }>, {
2223
2223
  address?: {
2224
2224
  city?: string;
2225
- countrycode?: string;
2226
- houseNr?: number;
2227
- houseNrExt?: string;
2225
+ countryCode?: string;
2226
+ houseNumber?: number;
2227
+ houseNumberExtension?: string;
2228
2228
  remark?: string;
2229
2229
  street?: string;
2230
- zipcode?: string;
2230
+ postalCode?: string;
2231
2231
  };
2232
2232
  deliveryOptions?: string[];
2233
2233
  distance?: number;
@@ -2286,12 +2286,12 @@ declare const locationLookupResponseSchema: z.ZodEffects<z.ZodObject<{
2286
2286
  ResponseLocation?: {
2287
2287
  address?: {
2288
2288
  city?: string;
2289
- countrycode?: string;
2290
- houseNr?: number;
2291
- houseNrExt?: string;
2289
+ countryCode?: string;
2290
+ houseNumber?: number;
2291
+ houseNumberExtension?: string;
2292
2292
  remark?: string;
2293
2293
  street?: string;
2294
- zipcode?: string;
2294
+ postalCode?: string;
2295
2295
  };
2296
2296
  deliveryOptions?: string[];
2297
2297
  distance?: number;
@@ -2351,12 +2351,12 @@ declare const locationLookupResponseSchema: z.ZodEffects<z.ZodObject<{
2351
2351
  }>>, {
2352
2352
  address?: {
2353
2353
  city?: string;
2354
- countrycode?: string;
2355
- houseNr?: number;
2356
- houseNrExt?: string;
2354
+ countryCode?: string;
2355
+ houseNumber?: number;
2356
+ houseNumberExtension?: string;
2357
2357
  remark?: string;
2358
2358
  street?: string;
2359
- zipcode?: string;
2359
+ postalCode?: string;
2360
2360
  };
2361
2361
  deliveryOptions?: string[];
2362
2362
  distance?: number;
@@ -2417,12 +2417,12 @@ declare const locationLookupResponseSchema: z.ZodEffects<z.ZodObject<{
2417
2417
  GetLocationsResult?: {
2418
2418
  address?: {
2419
2419
  city?: string;
2420
- countrycode?: string;
2421
- houseNr?: number;
2422
- houseNrExt?: string;
2420
+ countryCode?: string;
2421
+ houseNumber?: number;
2422
+ houseNumberExtension?: string;
2423
2423
  remark?: string;
2424
2424
  street?: string;
2425
- zipcode?: string;
2425
+ postalCode?: string;
2426
2426
  };
2427
2427
  deliveryOptions?: string[];
2428
2428
  distance?: number;
@@ -2485,12 +2485,12 @@ declare const locationLookupResponseSchema: z.ZodEffects<z.ZodObject<{
2485
2485
  location?: {
2486
2486
  address?: {
2487
2487
  city?: string;
2488
- countrycode?: string;
2489
- houseNr?: number;
2490
- houseNrExt?: string;
2488
+ countryCode?: string;
2489
+ houseNumber?: number;
2490
+ houseNumberExtension?: string;
2491
2491
  remark?: string;
2492
2492
  street?: string;
2493
- zipcode?: string;
2493
+ postalCode?: string;
2494
2494
  };
2495
2495
  deliveryOptions?: string[];
2496
2496
  distance?: number;
@@ -12746,6 +12746,4 @@ declare const ProductCode: {
12746
12746
  };
12747
12747
  type ProductCodeValue = (typeof ProductCode)[keyof typeof ProductCode];
12748
12748
 
12749
- declare const version = "0.1.0";
12750
-
12751
- export { type AddressCheckInput, AddressResource, AddressType, AssociatedDocumentType, type BarcodeLegacyInput, BarcodeResource, BarcodeType, type BarcodeV4Request, type BarcodeV4Response, Bundle, type CheckoutAddressInput, CheckoutCutOffDay, type CheckoutCutOffTimeInput, CheckoutCutOffType, CheckoutOption, type CheckoutRequestInput, CheckoutResource, type CheckoutResponse, CheckoutWarningOption, type ConfirmV4Request, type ConfirmingRequest, type ConfirmingResponse, ConsolidationMode, CountryCode, Currency, type DecodedLabel, DeliveryConfirmation, type DeliveryDateCalculateInput, DeliveryDateResource, type DeliveryDateResponse, DeliverydateOption, Duration, GuaranteedBefore, IGNORED_LOCATION_OPTIONS, type LabelLegacyOptions, LabelType, LabellingCurrency, type LabellingRequest, type LabellingResponse, type LabellingV4Request, Language, type Location, type LocationAreaInput, LocationDeliveryOption, type LocationLookupInput, type LocationLookupResponse, type LocationNearestByGeocodeInput, type LocationNearestInput, LocationResource, type LocationsResponse, MergeType, MinimalAgeCheck, NetworkType, OriginCountryCode, OutputType, PageOrientation, Positioning, PostNLApiError, PostNLAuthError, PostNLBadRequestError, PostNLClient, type PostNLClientOptions, PostNLError, PostNLMethodNotAllowedError, PostNLRateLimitError, PostNLServerError, PostNLTimeoutError, PostNLValidationError, type PostalcodeCheckAddress, PrintMethod, ProductCode, type ProductCodeValue, ReceiverType, Resolution, type ReturnGenerateRequest, ReturnOutputType, ReturnPeriod, ReturnPeriodV4, ReturnResource, ReturnShipmentTypeV4, type SentDateInput, type SentDateResponse, Service, type ShipmentPostResponse, ShipmentTypeLegacy, ShipmentTypeV4, type ShipmentV4Request, ShippingResource, type ShippingStatusResponse, type SignatureImage, type SignatureResponse, StatusLanguage, SustainabilityCode, type TimeframeGetInput, TimeframeOption, TimeframeResource, type TimeframeResponse, type TrackingByReferenceOptions, type TrackingOptions, TrackingResource, type UpdatedShipment, type UpdatedShipmentsOptions, type UpdatedShipmentsResponse, decodeBase64, labelContentType, toDecodedLabel, version };
12749
+ export { type AddressCheckInput, AddressResource, AddressType, AssociatedDocumentType, type BarcodeLegacyInput, BarcodeResource, BarcodeType, type BarcodeV4Request, type BarcodeV4Response, Bundle, type CheckoutAddressInput, CheckoutCutOffDay, type CheckoutCutOffTimeInput, CheckoutCutOffType, CheckoutOption, type CheckoutRequestInput, CheckoutResource, type CheckoutResponse, CheckoutWarningOption, type ConfirmV4Request, type ConfirmingRequest, type ConfirmingResponse, ConsolidationMode, CountryCode, Currency, type DecodedLabel, DeliveryConfirmation, type DeliveryDateCalculateInput, DeliveryDateResource, type DeliveryDateResponse, DeliverydateOption, Duration, GuaranteedBefore, IGNORED_LOCATION_OPTIONS, type LabelLegacyOptions, LabelType, LabellingCurrency, type LabellingRequest, type LabellingResponse, type LabellingV4Request, Language, type Location, type LocationAreaInput, LocationDeliveryOption, type LocationLookupInput, type LocationLookupResponse, type LocationNearestByGeocodeInput, type LocationNearestInput, LocationResource, type LocationsResponse, MergeType, MinimalAgeCheck, NetworkType, OriginCountryCode, OutputType, PageOrientation, Positioning, PostNLApiError, PostNLAuthError, PostNLBadRequestError, PostNLClient, type PostNLClientOptions, PostNLError, PostNLMethodNotAllowedError, PostNLRateLimitError, PostNLServerError, PostNLTimeoutError, PostNLValidationError, type PostalcodeCheckAddress, PrintMethod, ProductCode, type ProductCodeValue, ReceiverType, Resolution, type ReturnGenerateRequest, ReturnOutputType, ReturnPeriod, ReturnPeriodV4, ReturnResource, ReturnShipmentTypeV4, type SentDateInput, type SentDateResponse, Service, type ShipmentPostResponse, ShipmentTypeLegacy, ShipmentTypeV4, type ShipmentV4Request, ShippingResource, type ShippingStatusResponse, type SignatureImage, type SignatureResponse, StatusLanguage, SustainabilityCode, type TimeframeGetInput, TimeframeOption, TimeframeResource, type TimeframeResponse, type TrackingByReferenceOptions, type TrackingOptions, TrackingResource, type UpdatedShipment, type UpdatedShipmentsOptions, type UpdatedShipmentsResponse, decodeBase64, labelContentType, toDecodedLabel };
package/dist/index.js CHANGED
@@ -96,7 +96,7 @@ function extract(body) {
96
96
  const list = b.errors ?? b.Errors;
97
97
  if (Array.isArray(list) && list.length) {
98
98
  const f = list[0];
99
- const msg = f.ErrorMsg ?? f.Error ?? f.title ?? f.Description ?? f.detail ?? "error";
99
+ const msg = f.ErrorMsg ?? f.Description ?? f.Error ?? f.title ?? f.detail ?? "error";
100
100
  const code = f.ErrorNumber ?? f.Code ?? f.status;
101
101
  return { message: String(msg), code: code != null ? String(code) : void 0, detail: list };
102
102
  }
@@ -800,12 +800,12 @@ var addressSchema = z.object({
800
800
  }).transform(
801
801
  (a) => stripUndefined({
802
802
  city: a.City,
803
- countrycode: a.Countrycode,
804
- houseNr: a.HouseNr,
805
- houseNrExt: a.HouseNrExt,
803
+ countryCode: a.Countrycode,
804
+ houseNumber: a.HouseNr,
805
+ houseNumberExtension: a.HouseNrExt,
806
806
  remark: a.Remark,
807
807
  street: a.Street,
808
- zipcode: a.Zipcode
808
+ postalCode: a.Zipcode
809
809
  })
810
810
  );
811
811
  var day2 = pnlStringWrapped(z.string()).optional();
@@ -1958,9 +1958,6 @@ var ProductCode = {
1958
1958
  easyReturn: "4910"
1959
1959
  };
1960
1960
 
1961
- // src/index.ts
1962
- var version = "0.1.0";
1963
-
1964
- export { AddressResource, AddressType, AssociatedDocumentType, BarcodeResource, BarcodeType, Bundle, CheckoutCutOffDay, CheckoutCutOffType, CheckoutOption, CheckoutResource, CheckoutWarningOption, ConsolidationMode, CountryCode, Currency, DeliveryConfirmation, DeliveryDateResource, DeliverydateOption, Duration, GuaranteedBefore, IGNORED_LOCATION_OPTIONS, LabelType, LabellingCurrency, Language, LocationDeliveryOption, LocationResource, MergeType, MinimalAgeCheck, NetworkType, OriginCountryCode, OutputType, PageOrientation, Positioning, PostNLApiError, PostNLAuthError, PostNLBadRequestError, PostNLClient, PostNLError, PostNLMethodNotAllowedError, PostNLRateLimitError, PostNLServerError, PostNLTimeoutError, PostNLValidationError, PrintMethod, ProductCode, ReceiverType, Resolution, ReturnOutputType, ReturnPeriod, ReturnPeriodV4, ReturnResource, ReturnShipmentTypeV4, Service, ShipmentTypeLegacy, ShipmentTypeV4, ShippingResource, StatusLanguage, SustainabilityCode, TimeframeOption, TimeframeResource, TrackingResource, decodeBase64, labelContentType, toDecodedLabel, version };
1961
+ export { AddressResource, AddressType, AssociatedDocumentType, BarcodeResource, BarcodeType, Bundle, CheckoutCutOffDay, CheckoutCutOffType, CheckoutOption, CheckoutResource, CheckoutWarningOption, ConsolidationMode, CountryCode, Currency, DeliveryConfirmation, DeliveryDateResource, DeliverydateOption, Duration, GuaranteedBefore, IGNORED_LOCATION_OPTIONS, LabelType, LabellingCurrency, Language, LocationDeliveryOption, LocationResource, MergeType, MinimalAgeCheck, NetworkType, OriginCountryCode, OutputType, PageOrientation, Positioning, PostNLApiError, PostNLAuthError, PostNLBadRequestError, PostNLClient, PostNLError, PostNLMethodNotAllowedError, PostNLRateLimitError, PostNLServerError, PostNLTimeoutError, PostNLValidationError, PrintMethod, ProductCode, ReceiverType, Resolution, ReturnOutputType, ReturnPeriod, ReturnPeriodV4, ReturnResource, ReturnShipmentTypeV4, Service, ShipmentTypeLegacy, ShipmentTypeV4, ShippingResource, StatusLanguage, SustainabilityCode, TimeframeOption, TimeframeResource, TrackingResource, decodeBase64, labelContentType, toDecodedLabel };
1965
1962
  //# sourceMappingURL=index.js.map
1966
1963
  //# sourceMappingURL=index.js.map