@timardex/cluemart-server-shared 1.0.177 → 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/{chunk-FSEMFTFQ.mjs → chunk-EM5UZAAN.mjs} +6 -2
- package/dist/chunk-EM5UZAAN.mjs.map +1 -0
- package/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +5 -1
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +6 -1
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +2 -1
- package/dist/service/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-FSEMFTFQ.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -6741,6 +6741,8 @@ var EnumOSPlatform = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
|
6741
6741
|
})(EnumOSPlatform || {});
|
|
6742
6742
|
var EnumRelationResource = /* @__PURE__ */ ((EnumRelationResource22) => {
|
|
6743
6743
|
EnumRelationResource22["EVENT_INVITE_VENDOR"] = "event_invite_vendor";
|
|
6744
|
+
EnumRelationResource22["EVENT_UPDATE_RELATION_TO_VENDOR"] = "event_update_relation_to_vendor";
|
|
6745
|
+
EnumRelationResource22["VENDOR_UPDATE_RELATION_TO_EVENT"] = "vendor_update_relation_to_event";
|
|
6744
6746
|
EnumRelationResource22["VENDOR_APPLICATION_TO_EVENT"] = "vendor_application_to_event";
|
|
6745
6747
|
return EnumRelationResource22;
|
|
6746
6748
|
})(EnumRelationResource || {});
|
|
@@ -6766,6 +6768,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
6766
6768
|
EnumNotificationResourceType22["DOWNGRADED_VENDOR"] = "downgraded_vendor";
|
|
6767
6769
|
EnumNotificationResourceType22["EVENT_INVITE_VENDOR"] = "event_invite_vendor";
|
|
6768
6770
|
EnumNotificationResourceType22["EVENT_STARTING_SOON"] = "event_starting_soon";
|
|
6771
|
+
EnumNotificationResourceType22["EVENT_UPDATE_RELATION_TO_VENDOR"] = "event_update_relation_to_vendor";
|
|
6769
6772
|
EnumNotificationResourceType22["EXPIRATION_REMINDER_EVENT"] = "expiration_reminder_event";
|
|
6770
6773
|
EnumNotificationResourceType22["EXPIRATION_REMINDER_PARTNER"] = "expiration_reminder_partner";
|
|
6771
6774
|
EnumNotificationResourceType22["EXPIRATION_REMINDER_VENDOR"] = "expiration_reminder_vendor";
|
|
@@ -6774,6 +6777,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
6774
6777
|
EnumNotificationResourceType22["REGISTERED_USER_BY_SCHOOL_CODE"] = "registered_user_by_school_code";
|
|
6775
6778
|
EnumNotificationResourceType22["SYSTEM_ALERT"] = "system_alert";
|
|
6776
6779
|
EnumNotificationResourceType22["VENDOR_APPLICATION_TO_EVENT"] = "vendor_application_to_event";
|
|
6780
|
+
EnumNotificationResourceType22["VENDOR_UPDATE_RELATION_TO_EVENT"] = "vendor_update_relation_to_event";
|
|
6777
6781
|
return EnumNotificationResourceType22;
|
|
6778
6782
|
})(EnumNotificationResourceType || {});
|
|
6779
6783
|
var EnumNotificationType = /* @__PURE__ */ ((EnumNotificationType22) => {
|
|
@@ -11895,7 +11899,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
11895
11899
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
11896
11900
|
var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
|
|
11897
11901
|
|
|
11898
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
11902
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-JMOGW4IX.mjs
|
|
11899
11903
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
11900
11904
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
11901
11905
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -12714,6 +12718,7 @@ var connectToDatabase = async ({
|
|
|
12714
12718
|
// src/service/saveNotificationsInDb.ts
|
|
12715
12719
|
async function saveNotificationsInDb(payload) {
|
|
12716
12720
|
const { data, message, title, type, userIds } = payload;
|
|
12721
|
+
console.log("NOTIFICATION DATA", JSON.stringify(payload, null, 2));
|
|
12717
12722
|
try {
|
|
12718
12723
|
const notifications = userIds.map((userId) => ({
|
|
12719
12724
|
data,
|