@timardex/cluemart-server-shared 1.0.303 → 1.0.304

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
@@ -72,6 +72,7 @@ __export(index_exports, {
72
72
  findAffiliateByPromoCode: () => findAffiliateByPromoCode,
73
73
  findEventOrImportedMarketById: () => findEventOrImportedMarketById,
74
74
  getSubscriptionRewardPeriodBounds: () => getSubscriptionRewardPeriodBounds,
75
+ isValidObjectId: () => isValidObjectId,
75
76
  locationGeoSchema: () => locationGeoSchema,
76
77
  locationsSchema: () => locationsSchema,
77
78
  mapVendorLicenceToSubscriptionRewardType: () => mapVendorLicenceToSubscriptionRewardType,
@@ -11082,6 +11083,9 @@ async function updateVendorBasedOnUserLicense(userId, licenceType) {
11082
11083
 
11083
11084
  // src/service/objectIdToString.ts
11084
11085
  var import_mongoose33 = __toESM(require("mongoose"));
11086
+ function isValidObjectId(value) {
11087
+ return import_mongoose33.default.Types.ObjectId.isValid(value);
11088
+ }
11085
11089
  function convertObjectIdsToStrings(obj) {
11086
11090
  if (obj === null || obj === void 0) {
11087
11091
  return obj;
@@ -11311,6 +11315,7 @@ function updateRelationDatesToUnavailable(relationDates, eventDateTime) {
11311
11315
  findAffiliateByPromoCode,
11312
11316
  findEventOrImportedMarketById,
11313
11317
  getSubscriptionRewardPeriodBounds,
11318
+ isValidObjectId,
11314
11319
  locationGeoSchema,
11315
11320
  locationsSchema,
11316
11321
  mapVendorLicenceToSubscriptionRewardType,