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.cjs +5 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +73 -75
- package/dist/index.d.ts +73 -75
- package/dist/index.js +6 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1435
|
+
countryCode?: string;
|
|
1436
|
+
houseNumber?: number;
|
|
1437
|
+
houseNumberExtension?: string;
|
|
1438
1438
|
remark?: string;
|
|
1439
1439
|
street?: string;
|
|
1440
|
-
|
|
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
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1523
|
+
countryCode?: string;
|
|
1524
|
+
houseNumber?: number;
|
|
1525
|
+
houseNumberExtension?: string;
|
|
1526
1526
|
remark?: string;
|
|
1527
1527
|
street?: string;
|
|
1528
|
-
|
|
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
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1580
|
+
countryCode?: string;
|
|
1581
|
+
houseNumber?: number;
|
|
1582
|
+
houseNumberExtension?: string;
|
|
1583
1583
|
remark?: string;
|
|
1584
1584
|
street?: string;
|
|
1585
|
-
|
|
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
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1670
|
+
countryCode?: string;
|
|
1671
|
+
houseNumber?: number;
|
|
1672
|
+
houseNumberExtension?: string;
|
|
1673
1673
|
remark?: string;
|
|
1674
1674
|
street?: string;
|
|
1675
|
-
|
|
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
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1758
|
+
countryCode?: string;
|
|
1759
|
+
houseNumber?: number;
|
|
1760
|
+
houseNumberExtension?: string;
|
|
1761
1761
|
remark?: string;
|
|
1762
1762
|
street?: string;
|
|
1763
|
-
|
|
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
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1815
|
+
countryCode?: string;
|
|
1816
|
+
houseNumber?: number;
|
|
1817
|
+
houseNumberExtension?: string;
|
|
1818
1818
|
remark?: string;
|
|
1819
1819
|
street?: string;
|
|
1820
|
-
|
|
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
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1877
|
+
countryCode?: string;
|
|
1878
|
+
houseNumber?: number;
|
|
1879
|
+
houseNumberExtension?: string;
|
|
1880
1880
|
remark?: string;
|
|
1881
1881
|
street?: string;
|
|
1882
|
-
|
|
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
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1910
|
+
countryCode?: string;
|
|
1911
|
+
houseNumber?: number;
|
|
1912
|
+
houseNumberExtension?: string;
|
|
1913
1913
|
remark?: string;
|
|
1914
1914
|
street?: string;
|
|
1915
|
-
|
|
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
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1944
|
+
countryCode?: string;
|
|
1945
|
+
houseNumber?: number;
|
|
1946
|
+
houseNumberExtension?: string;
|
|
1947
1947
|
remark?: string;
|
|
1948
1948
|
street?: string;
|
|
1949
|
-
|
|
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
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1979
|
+
countryCode?: string;
|
|
1980
|
+
houseNumber?: number;
|
|
1981
|
+
houseNumberExtension?: string;
|
|
1982
1982
|
remark?: string;
|
|
1983
1983
|
street?: string;
|
|
1984
|
-
|
|
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
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2016
|
+
countryCode?: string;
|
|
2017
|
+
houseNumber?: number;
|
|
2018
|
+
houseNumberExtension?: string;
|
|
2019
2019
|
remark?: string;
|
|
2020
2020
|
street?: string;
|
|
2021
|
-
|
|
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
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2080
|
+
countryCode?: string;
|
|
2081
|
+
houseNumber?: number;
|
|
2082
|
+
houseNumberExtension?: string;
|
|
2083
2083
|
remark?: string;
|
|
2084
2084
|
street?: string;
|
|
2085
|
-
|
|
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
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2168
|
+
countryCode?: string;
|
|
2169
|
+
houseNumber?: number;
|
|
2170
|
+
houseNumberExtension?: string;
|
|
2171
2171
|
remark?: string;
|
|
2172
2172
|
street?: string;
|
|
2173
|
-
|
|
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
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2225
|
+
countryCode?: string;
|
|
2226
|
+
houseNumber?: number;
|
|
2227
|
+
houseNumberExtension?: string;
|
|
2228
2228
|
remark?: string;
|
|
2229
2229
|
street?: string;
|
|
2230
|
-
|
|
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
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2289
|
+
countryCode?: string;
|
|
2290
|
+
houseNumber?: number;
|
|
2291
|
+
houseNumberExtension?: string;
|
|
2292
2292
|
remark?: string;
|
|
2293
2293
|
street?: string;
|
|
2294
|
-
|
|
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
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2354
|
+
countryCode?: string;
|
|
2355
|
+
houseNumber?: number;
|
|
2356
|
+
houseNumberExtension?: string;
|
|
2357
2357
|
remark?: string;
|
|
2358
2358
|
street?: string;
|
|
2359
|
-
|
|
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
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2420
|
+
countryCode?: string;
|
|
2421
|
+
houseNumber?: number;
|
|
2422
|
+
houseNumberExtension?: string;
|
|
2423
2423
|
remark?: string;
|
|
2424
2424
|
street?: string;
|
|
2425
|
-
|
|
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
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2488
|
+
countryCode?: string;
|
|
2489
|
+
houseNumber?: number;
|
|
2490
|
+
houseNumberExtension?: string;
|
|
2491
2491
|
remark?: string;
|
|
2492
2492
|
street?: string;
|
|
2493
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1435
|
+
countryCode?: string;
|
|
1436
|
+
houseNumber?: number;
|
|
1437
|
+
houseNumberExtension?: string;
|
|
1438
1438
|
remark?: string;
|
|
1439
1439
|
street?: string;
|
|
1440
|
-
|
|
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
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1523
|
+
countryCode?: string;
|
|
1524
|
+
houseNumber?: number;
|
|
1525
|
+
houseNumberExtension?: string;
|
|
1526
1526
|
remark?: string;
|
|
1527
1527
|
street?: string;
|
|
1528
|
-
|
|
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
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1580
|
+
countryCode?: string;
|
|
1581
|
+
houseNumber?: number;
|
|
1582
|
+
houseNumberExtension?: string;
|
|
1583
1583
|
remark?: string;
|
|
1584
1584
|
street?: string;
|
|
1585
|
-
|
|
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
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1670
|
+
countryCode?: string;
|
|
1671
|
+
houseNumber?: number;
|
|
1672
|
+
houseNumberExtension?: string;
|
|
1673
1673
|
remark?: string;
|
|
1674
1674
|
street?: string;
|
|
1675
|
-
|
|
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
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1758
|
+
countryCode?: string;
|
|
1759
|
+
houseNumber?: number;
|
|
1760
|
+
houseNumberExtension?: string;
|
|
1761
1761
|
remark?: string;
|
|
1762
1762
|
street?: string;
|
|
1763
|
-
|
|
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
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1815
|
+
countryCode?: string;
|
|
1816
|
+
houseNumber?: number;
|
|
1817
|
+
houseNumberExtension?: string;
|
|
1818
1818
|
remark?: string;
|
|
1819
1819
|
street?: string;
|
|
1820
|
-
|
|
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
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1877
|
+
countryCode?: string;
|
|
1878
|
+
houseNumber?: number;
|
|
1879
|
+
houseNumberExtension?: string;
|
|
1880
1880
|
remark?: string;
|
|
1881
1881
|
street?: string;
|
|
1882
|
-
|
|
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
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1910
|
+
countryCode?: string;
|
|
1911
|
+
houseNumber?: number;
|
|
1912
|
+
houseNumberExtension?: string;
|
|
1913
1913
|
remark?: string;
|
|
1914
1914
|
street?: string;
|
|
1915
|
-
|
|
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
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1944
|
+
countryCode?: string;
|
|
1945
|
+
houseNumber?: number;
|
|
1946
|
+
houseNumberExtension?: string;
|
|
1947
1947
|
remark?: string;
|
|
1948
1948
|
street?: string;
|
|
1949
|
-
|
|
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
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1979
|
+
countryCode?: string;
|
|
1980
|
+
houseNumber?: number;
|
|
1981
|
+
houseNumberExtension?: string;
|
|
1982
1982
|
remark?: string;
|
|
1983
1983
|
street?: string;
|
|
1984
|
-
|
|
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
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2016
|
+
countryCode?: string;
|
|
2017
|
+
houseNumber?: number;
|
|
2018
|
+
houseNumberExtension?: string;
|
|
2019
2019
|
remark?: string;
|
|
2020
2020
|
street?: string;
|
|
2021
|
-
|
|
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
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2080
|
+
countryCode?: string;
|
|
2081
|
+
houseNumber?: number;
|
|
2082
|
+
houseNumberExtension?: string;
|
|
2083
2083
|
remark?: string;
|
|
2084
2084
|
street?: string;
|
|
2085
|
-
|
|
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
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2168
|
+
countryCode?: string;
|
|
2169
|
+
houseNumber?: number;
|
|
2170
|
+
houseNumberExtension?: string;
|
|
2171
2171
|
remark?: string;
|
|
2172
2172
|
street?: string;
|
|
2173
|
-
|
|
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
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2225
|
+
countryCode?: string;
|
|
2226
|
+
houseNumber?: number;
|
|
2227
|
+
houseNumberExtension?: string;
|
|
2228
2228
|
remark?: string;
|
|
2229
2229
|
street?: string;
|
|
2230
|
-
|
|
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
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2289
|
+
countryCode?: string;
|
|
2290
|
+
houseNumber?: number;
|
|
2291
|
+
houseNumberExtension?: string;
|
|
2292
2292
|
remark?: string;
|
|
2293
2293
|
street?: string;
|
|
2294
|
-
|
|
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
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2354
|
+
countryCode?: string;
|
|
2355
|
+
houseNumber?: number;
|
|
2356
|
+
houseNumberExtension?: string;
|
|
2357
2357
|
remark?: string;
|
|
2358
2358
|
street?: string;
|
|
2359
|
-
|
|
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
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2420
|
+
countryCode?: string;
|
|
2421
|
+
houseNumber?: number;
|
|
2422
|
+
houseNumberExtension?: string;
|
|
2423
2423
|
remark?: string;
|
|
2424
2424
|
street?: string;
|
|
2425
|
-
|
|
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
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2488
|
+
countryCode?: string;
|
|
2489
|
+
houseNumber?: number;
|
|
2490
|
+
houseNumberExtension?: string;
|
|
2491
2491
|
remark?: string;
|
|
2492
2492
|
street?: string;
|
|
2493
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
804
|
-
|
|
805
|
-
|
|
803
|
+
countryCode: a.Countrycode,
|
|
804
|
+
houseNumber: a.HouseNr,
|
|
805
|
+
houseNumberExtension: a.HouseNrExt,
|
|
806
806
|
remark: a.Remark,
|
|
807
807
|
street: a.Street,
|
|
808
|
-
|
|
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
|
-
|
|
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
|