@myparcel/constants
Advanced tools
Comparing version 1.1.4 to 1.2.0
@@ -106,3 +106,4 @@ declare enum CarrierId { | ||
DigitalStamp = 4, | ||
Pallet = 5 | ||
Pallet = 5, | ||
SmallParcel = 6 | ||
} | ||
@@ -115,3 +116,4 @@ /** @see https://myparcelnl.github.io/api/#6_A_1 */ | ||
DigitalStamp = "digital_stamp", | ||
Pallet = "pallet" | ||
Pallet = "pallet", | ||
SmallParcel = "small_parcel" | ||
} | ||
@@ -127,2 +129,3 @@ type PackageTypeNameOrId = PackageTypeName | PackageTypeId; | ||
readonly pallet: PackageTypeId.Pallet; | ||
readonly small_parcel: PackageTypeId.SmallParcel; | ||
}; | ||
@@ -135,2 +138,3 @@ declare const PACKAGE_TYPE_IDS_TO_NAMES: { | ||
readonly 5: PackageTypeName.Pallet; | ||
readonly 6: PackageTypeName.SmallParcel; | ||
}; | ||
@@ -137,0 +141,0 @@ |
@@ -98,17 +98,19 @@ // src/types/carrier.ts | ||
// src/types/packageType.ts | ||
var PackageTypeId = /* @__PURE__ */ ((PackageTypeId3) => { | ||
PackageTypeId3[PackageTypeId3["Package"] = 1] = "Package"; | ||
PackageTypeId3[PackageTypeId3["Mailbox"] = 2] = "Mailbox"; | ||
PackageTypeId3[PackageTypeId3["Letter"] = 3] = "Letter"; | ||
PackageTypeId3[PackageTypeId3["DigitalStamp"] = 4] = "DigitalStamp"; | ||
PackageTypeId3[PackageTypeId3["Pallet"] = 5] = "Pallet"; | ||
return PackageTypeId3; | ||
var PackageTypeId = /* @__PURE__ */ ((PackageTypeId2) => { | ||
PackageTypeId2[PackageTypeId2["Package"] = 1] = "Package"; | ||
PackageTypeId2[PackageTypeId2["Mailbox"] = 2] = "Mailbox"; | ||
PackageTypeId2[PackageTypeId2["Letter"] = 3] = "Letter"; | ||
PackageTypeId2[PackageTypeId2["DigitalStamp"] = 4] = "DigitalStamp"; | ||
PackageTypeId2[PackageTypeId2["Pallet"] = 5] = "Pallet"; | ||
PackageTypeId2[PackageTypeId2["SmallParcel"] = 6] = "SmallParcel"; | ||
return PackageTypeId2; | ||
})(PackageTypeId || {}); | ||
var PackageTypeName = /* @__PURE__ */ ((PackageTypeName3) => { | ||
PackageTypeName3["Package"] = "package"; | ||
PackageTypeName3["Mailbox"] = "mailbox"; | ||
PackageTypeName3["Letter"] = "letter"; | ||
PackageTypeName3["DigitalStamp"] = "digital_stamp"; | ||
PackageTypeName3["Pallet"] = "pallet"; | ||
return PackageTypeName3; | ||
var PackageTypeName = /* @__PURE__ */ ((PackageTypeName2) => { | ||
PackageTypeName2["Package"] = "package"; | ||
PackageTypeName2["Mailbox"] = "mailbox"; | ||
PackageTypeName2["Letter"] = "letter"; | ||
PackageTypeName2["DigitalStamp"] = "digital_stamp"; | ||
PackageTypeName2["Pallet"] = "pallet"; | ||
PackageTypeName2["SmallParcel"] = "small_parcel"; | ||
return PackageTypeName2; | ||
})(PackageTypeName || {}); | ||
@@ -120,3 +122,4 @@ var PACKAGE_TYPE_NAMES_TO_IDS = { | ||
["digital_stamp" /* DigitalStamp */]: 4 /* DigitalStamp */, | ||
["pallet" /* Pallet */]: 5 /* Pallet */ | ||
["pallet" /* Pallet */]: 5 /* Pallet */, | ||
["small_parcel" /* SmallParcel */]: 6 /* SmallParcel */ | ||
}; | ||
@@ -128,3 +131,4 @@ var PACKAGE_TYPE_IDS_TO_NAMES = { | ||
[4 /* DigitalStamp */]: "digital_stamp" /* DigitalStamp */, | ||
[5 /* Pallet */]: "pallet" /* Pallet */ | ||
[5 /* Pallet */]: "pallet" /* Pallet */, | ||
[6 /* SmallParcel */]: "small_parcel" /* SmallParcel */ | ||
}; | ||
@@ -131,0 +135,0 @@ |
{ | ||
"name": "@myparcel/constants", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"description": "Collection of constant values for use with the MyParcel API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
125444
3618
0