@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.d.mts CHANGED
@@ -1326,7 +1326,9 @@ declare function getVendorResourceInfo(userId: ObjectId, vendorId: ObjectId): Pr
1326
1326
  declare enum LicenceExpiryDate {
1327
1327
  ONE_YEAR = "1 year",
1328
1328
  ONE_MONTH = "1 month",
1329
- TWO_MONTHS = "2 months"
1329
+ TWO_MONTHS = "2 months",
1330
+ THREE_MONTHS = "3 months",
1331
+ SIX_MONTHS = "6 months"
1330
1332
  }
1331
1333
  declare enum LicenceCategory {
1332
1334
  EVENT = "event",
package/dist/index.d.ts CHANGED
@@ -1326,7 +1326,9 @@ declare function getVendorResourceInfo(userId: ObjectId, vendorId: ObjectId): Pr
1326
1326
  declare enum LicenceExpiryDate {
1327
1327
  ONE_YEAR = "1 year",
1328
1328
  ONE_MONTH = "1 month",
1329
- TWO_MONTHS = "2 months"
1329
+ TWO_MONTHS = "2 months",
1330
+ THREE_MONTHS = "3 months",
1331
+ SIX_MONTHS = "6 months"
1330
1332
  }
1331
1333
  declare enum LicenceCategory {
1332
1334
  EVENT = "event",
package/dist/index.mjs CHANGED
@@ -3564,6 +3564,8 @@ var LicenceExpiryDate = /* @__PURE__ */ ((LicenceExpiryDate2) => {
3564
3564
  LicenceExpiryDate2["ONE_YEAR"] = "1 year";
3565
3565
  LicenceExpiryDate2["ONE_MONTH"] = "1 month";
3566
3566
  LicenceExpiryDate2["TWO_MONTHS"] = "2 months";
3567
+ LicenceExpiryDate2["THREE_MONTHS"] = "3 months";
3568
+ LicenceExpiryDate2["SIX_MONTHS"] = "6 months";
3567
3569
  return LicenceExpiryDate2;
3568
3570
  })(LicenceExpiryDate || {});
3569
3571
  var LicenceCategory = /* @__PURE__ */ ((LicenceCategory2) => {
@@ -3649,7 +3651,9 @@ function createLicenceObject(expiryDate, licenceType) {
3649
3651
  const expiryDateMapping = {
3650
3652
  ["1 year" /* ONE_YEAR */]: today.add(1, "year").endOf("day").toDate(),
3651
3653
  ["1 month" /* ONE_MONTH */]: today.add(1, "month").endOf("day").toDate(),
3652
- ["2 months" /* TWO_MONTHS */]: today.add(2, "month").endOf("day").toDate()
3654
+ ["2 months" /* TWO_MONTHS */]: today.add(2, "month").endOf("day").toDate(),
3655
+ ["3 months" /* THREE_MONTHS */]: today.add(3, "month").endOf("day").toDate(),
3656
+ ["6 months" /* SIX_MONTHS */]: today.add(6, "month").endOf("day").toDate()
3653
3657
  };
3654
3658
  const licenceObject = {
3655
3659
  expiryDate: expiryDateMapping[expiryDate],