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 CHANGED
@@ -98,7 +98,7 @@ function extract(body) {
98
98
  const list = b.errors ?? b.Errors;
99
99
  if (Array.isArray(list) && list.length) {
100
100
  const f = list[0];
101
- const msg = f.ErrorMsg ?? f.Error ?? f.title ?? f.Description ?? f.detail ?? "error";
101
+ const msg = f.ErrorMsg ?? f.Description ?? f.Error ?? f.title ?? f.detail ?? "error";
102
102
  const code = f.ErrorNumber ?? f.Code ?? f.status;
103
103
  return { message: String(msg), code: code != null ? String(code) : void 0, detail: list };
104
104
  }
@@ -802,12 +802,12 @@ var addressSchema = zod.z.object({
802
802
  }).transform(
803
803
  (a) => stripUndefined({
804
804
  city: a.City,
805
- countrycode: a.Countrycode,
806
- houseNr: a.HouseNr,
807
- houseNrExt: a.HouseNrExt,
805
+ countryCode: a.Countrycode,
806
+ houseNumber: a.HouseNr,
807
+ houseNumberExtension: a.HouseNrExt,
808
808
  remark: a.Remark,
809
809
  street: a.Street,
810
- zipcode: a.Zipcode
810
+ postalCode: a.Zipcode
811
811
  })
812
812
  );
813
813
  var day2 = pnlStringWrapped(zod.z.string()).optional();
@@ -1960,9 +1960,6 @@ var ProductCode = {
1960
1960
  easyReturn: "4910"
1961
1961
  };
1962
1962
 
1963
- // src/index.ts
1964
- var version = "0.1.0";
1965
-
1966
1963
  exports.AddressResource = AddressResource;
1967
1964
  exports.AddressType = AddressType;
1968
1965
  exports.AssociatedDocumentType = AssociatedDocumentType;
@@ -2026,6 +2023,5 @@ exports.TrackingResource = TrackingResource;
2026
2023
  exports.decodeBase64 = decodeBase64;
2027
2024
  exports.labelContentType = labelContentType;
2028
2025
  exports.toDecodedLabel = toDecodedLabel;
2029
- exports.version = version;
2030
2026
  //# sourceMappingURL=index.cjs.map
2031
2027
  //# sourceMappingURL=index.cjs.map