@timardex/cluemart-server-shared 1.0.176 → 1.0.178

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
@@ -6802,6 +6802,8 @@ var EnumOSPlatform = /* @__PURE__ */ ((EnumOSPlatform22) => {
6802
6802
  })(EnumOSPlatform || {});
6803
6803
  var EnumRelationResource = /* @__PURE__ */ ((EnumRelationResource22) => {
6804
6804
  EnumRelationResource22["EVENT_INVITE_VENDOR"] = "event_invite_vendor";
6805
+ EnumRelationResource22["EVENT_UPDATE_RELATION_TO_VENDOR"] = "event_update_relation_to_vendor";
6806
+ EnumRelationResource22["VENDOR_UPDATE_RELATION_TO_EVENT"] = "vendor_update_relation_to_event";
6805
6807
  EnumRelationResource22["VENDOR_APPLICATION_TO_EVENT"] = "vendor_application_to_event";
6806
6808
  return EnumRelationResource22;
6807
6809
  })(EnumRelationResource || {});
@@ -6827,6 +6829,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
6827
6829
  EnumNotificationResourceType22["DOWNGRADED_VENDOR"] = "downgraded_vendor";
6828
6830
  EnumNotificationResourceType22["EVENT_INVITE_VENDOR"] = "event_invite_vendor";
6829
6831
  EnumNotificationResourceType22["EVENT_STARTING_SOON"] = "event_starting_soon";
6832
+ EnumNotificationResourceType22["EVENT_UPDATE_RELATION_TO_VENDOR"] = "event_update_relation_to_vendor";
6830
6833
  EnumNotificationResourceType22["EXPIRATION_REMINDER_EVENT"] = "expiration_reminder_event";
6831
6834
  EnumNotificationResourceType22["EXPIRATION_REMINDER_PARTNER"] = "expiration_reminder_partner";
6832
6835
  EnumNotificationResourceType22["EXPIRATION_REMINDER_VENDOR"] = "expiration_reminder_vendor";
@@ -6835,6 +6838,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
6835
6838
  EnumNotificationResourceType22["REGISTERED_USER_BY_SCHOOL_CODE"] = "registered_user_by_school_code";
6836
6839
  EnumNotificationResourceType22["SYSTEM_ALERT"] = "system_alert";
6837
6840
  EnumNotificationResourceType22["VENDOR_APPLICATION_TO_EVENT"] = "vendor_application_to_event";
6841
+ EnumNotificationResourceType22["VENDOR_UPDATE_RELATION_TO_EVENT"] = "vendor_update_relation_to_event";
6838
6842
  return EnumNotificationResourceType22;
6839
6843
  })(EnumNotificationResourceType || {});
6840
6844
  var EnumNotificationType = /* @__PURE__ */ ((EnumNotificationType22) => {
@@ -11956,7 +11960,7 @@ schema4.index({ isRead: 1, userId: 1 });
11956
11960
  schema4.index({ createdAt: -1, userId: 1 });
11957
11961
  var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
11958
11962
 
11959
- // node_modules/@timardex/cluemart-shared/dist/chunk-ZR4TGWTS.mjs
11963
+ // node_modules/@timardex/cluemart-shared/dist/chunk-JMOGW4IX.mjs
11960
11964
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
11961
11965
  EnumOSPlatform22["ANDROID"] = "android";
11962
11966
  EnumOSPlatform22["IOS"] = "ios";
@@ -12775,6 +12779,7 @@ var connectToDatabase = async ({
12775
12779
  // src/service/saveNotificationsInDb.ts
12776
12780
  async function saveNotificationsInDb(payload) {
12777
12781
  const { data, message, title, type, userIds } = payload;
12782
+ console.log("NOTIFICATION DATA", JSON.stringify(payload, null, 2));
12778
12783
  try {
12779
12784
  const notifications = userIds.map((userId) => ({
12780
12785
  data,