@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.
@@ -432,7 +432,9 @@ declare function getVendorResourceInfo(userId: ObjectId, vendorId: ObjectId): Pr
432
432
  declare enum LicenceExpiryDate {
433
433
  ONE_YEAR = "1 year",
434
434
  ONE_MONTH = "1 month",
435
- TWO_MONTHS = "2 months"
435
+ TWO_MONTHS = "2 months",
436
+ THREE_MONTHS = "3 months",
437
+ SIX_MONTHS = "6 months"
436
438
  }
437
439
  declare enum LicenceCategory {
438
440
  EVENT = "event",
@@ -432,7 +432,9 @@ declare function getVendorResourceInfo(userId: ObjectId, vendorId: ObjectId): Pr
432
432
  declare enum LicenceExpiryDate {
433
433
  ONE_YEAR = "1 year",
434
434
  ONE_MONTH = "1 month",
435
- TWO_MONTHS = "2 months"
435
+ TWO_MONTHS = "2 months",
436
+ THREE_MONTHS = "3 months",
437
+ SIX_MONTHS = "6 months"
436
438
  }
437
439
  declare enum LicenceCategory {
438
440
  EVENT = "event",
@@ -1040,6 +1040,8 @@ var LicenceExpiryDate = /* @__PURE__ */ ((LicenceExpiryDate2) => {
1040
1040
  LicenceExpiryDate2["ONE_YEAR"] = "1 year";
1041
1041
  LicenceExpiryDate2["ONE_MONTH"] = "1 month";
1042
1042
  LicenceExpiryDate2["TWO_MONTHS"] = "2 months";
1043
+ LicenceExpiryDate2["THREE_MONTHS"] = "3 months";
1044
+ LicenceExpiryDate2["SIX_MONTHS"] = "6 months";
1043
1045
  return LicenceExpiryDate2;
1044
1046
  })(LicenceExpiryDate || {});
1045
1047
  var LicenceCategory = /* @__PURE__ */ ((LicenceCategory2) => {
@@ -1125,7 +1127,9 @@ function createLicenceObject(expiryDate, licenceType) {
1125
1127
  const expiryDateMapping = {
1126
1128
  ["1 year" /* ONE_YEAR */]: today.add(1, "year").endOf("day").toDate(),
1127
1129
  ["1 month" /* ONE_MONTH */]: today.add(1, "month").endOf("day").toDate(),
1128
- ["2 months" /* TWO_MONTHS */]: today.add(2, "month").endOf("day").toDate()
1130
+ ["2 months" /* TWO_MONTHS */]: today.add(2, "month").endOf("day").toDate(),
1131
+ ["3 months" /* THREE_MONTHS */]: today.add(3, "month").endOf("day").toDate(),
1132
+ ["6 months" /* SIX_MONTHS */]: today.add(6, "month").endOf("day").toDate()
1129
1133
  };
1130
1134
  const licenceObject = {
1131
1135
  expiryDate: expiryDateMapping[expiryDate],