@timardex/cluemart-server-shared 2.1.1 → 2.1.2
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 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/dist/service/index.cjs +5 -1
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +3 -1
- package/dist/service/index.d.ts +3 -1
- package/dist/service/index.mjs +5 -1
- package/dist/service/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -3609,6 +3609,8 @@ var LicenceExpiryDate = /* @__PURE__ */ ((LicenceExpiryDate2) => {
|
|
|
3609
3609
|
LicenceExpiryDate2["ONE_YEAR"] = "1 year";
|
|
3610
3610
|
LicenceExpiryDate2["ONE_MONTH"] = "1 month";
|
|
3611
3611
|
LicenceExpiryDate2["TWO_MONTHS"] = "2 months";
|
|
3612
|
+
LicenceExpiryDate2["THREE_MONTHS"] = "3 months";
|
|
3613
|
+
LicenceExpiryDate2["SIX_MONTHS"] = "6 months";
|
|
3612
3614
|
return LicenceExpiryDate2;
|
|
3613
3615
|
})(LicenceExpiryDate || {});
|
|
3614
3616
|
var LicenceCategory = /* @__PURE__ */ ((LicenceCategory2) => {
|
|
@@ -3694,7 +3696,9 @@ function createLicenceObject(expiryDate, licenceType) {
|
|
|
3694
3696
|
const expiryDateMapping = {
|
|
3695
3697
|
["1 year" /* ONE_YEAR */]: today.add(1, "year").endOf("day").toDate(),
|
|
3696
3698
|
["1 month" /* ONE_MONTH */]: today.add(1, "month").endOf("day").toDate(),
|
|
3697
|
-
["2 months" /* TWO_MONTHS */]: today.add(2, "month").endOf("day").toDate()
|
|
3699
|
+
["2 months" /* TWO_MONTHS */]: today.add(2, "month").endOf("day").toDate(),
|
|
3700
|
+
["3 months" /* THREE_MONTHS */]: today.add(3, "month").endOf("day").toDate(),
|
|
3701
|
+
["6 months" /* SIX_MONTHS */]: today.add(6, "month").endOf("day").toDate()
|
|
3698
3702
|
};
|
|
3699
3703
|
const licenceObject = {
|
|
3700
3704
|
expiryDate: expiryDateMapping[expiryDate],
|