@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/{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 +2 -2
- package/dist/chunk-FSEMFTFQ.mjs.map +0 -1
package/dist/mongoose/index.mjs
CHANGED
package/dist/service/index.cjs
CHANGED
|
@@ -6786,6 +6786,8 @@ var EnumOSPlatform = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
|
6786
6786
|
})(EnumOSPlatform || {});
|
|
6787
6787
|
var EnumRelationResource = /* @__PURE__ */ ((EnumRelationResource22) => {
|
|
6788
6788
|
EnumRelationResource22["EVENT_INVITE_VENDOR"] = "event_invite_vendor";
|
|
6789
|
+
EnumRelationResource22["EVENT_UPDATE_RELATION_TO_VENDOR"] = "event_update_relation_to_vendor";
|
|
6790
|
+
EnumRelationResource22["VENDOR_UPDATE_RELATION_TO_EVENT"] = "vendor_update_relation_to_event";
|
|
6789
6791
|
EnumRelationResource22["VENDOR_APPLICATION_TO_EVENT"] = "vendor_application_to_event";
|
|
6790
6792
|
return EnumRelationResource22;
|
|
6791
6793
|
})(EnumRelationResource || {});
|
|
@@ -6811,6 +6813,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
6811
6813
|
EnumNotificationResourceType22["DOWNGRADED_VENDOR"] = "downgraded_vendor";
|
|
6812
6814
|
EnumNotificationResourceType22["EVENT_INVITE_VENDOR"] = "event_invite_vendor";
|
|
6813
6815
|
EnumNotificationResourceType22["EVENT_STARTING_SOON"] = "event_starting_soon";
|
|
6816
|
+
EnumNotificationResourceType22["EVENT_UPDATE_RELATION_TO_VENDOR"] = "event_update_relation_to_vendor";
|
|
6814
6817
|
EnumNotificationResourceType22["EXPIRATION_REMINDER_EVENT"] = "expiration_reminder_event";
|
|
6815
6818
|
EnumNotificationResourceType22["EXPIRATION_REMINDER_PARTNER"] = "expiration_reminder_partner";
|
|
6816
6819
|
EnumNotificationResourceType22["EXPIRATION_REMINDER_VENDOR"] = "expiration_reminder_vendor";
|
|
@@ -6819,6 +6822,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
6819
6822
|
EnumNotificationResourceType22["REGISTERED_USER_BY_SCHOOL_CODE"] = "registered_user_by_school_code";
|
|
6820
6823
|
EnumNotificationResourceType22["SYSTEM_ALERT"] = "system_alert";
|
|
6821
6824
|
EnumNotificationResourceType22["VENDOR_APPLICATION_TO_EVENT"] = "vendor_application_to_event";
|
|
6825
|
+
EnumNotificationResourceType22["VENDOR_UPDATE_RELATION_TO_EVENT"] = "vendor_update_relation_to_event";
|
|
6822
6826
|
return EnumNotificationResourceType22;
|
|
6823
6827
|
})(EnumNotificationResourceType || {});
|
|
6824
6828
|
var EnumNotificationType = /* @__PURE__ */ ((EnumNotificationType22) => {
|
|
@@ -11283,6 +11287,7 @@ var NotificationModel = import_mongoose2.default.models.Notification || import_m
|
|
|
11283
11287
|
// src/service/saveNotificationsInDb.ts
|
|
11284
11288
|
async function saveNotificationsInDb(payload) {
|
|
11285
11289
|
const { data, message, title, type, userIds } = payload;
|
|
11290
|
+
console.log("NOTIFICATION DATA", JSON.stringify(payload, null, 2));
|
|
11286
11291
|
try {
|
|
11287
11292
|
const notifications = userIds.map((userId) => ({
|
|
11288
11293
|
data,
|
|
@@ -11306,7 +11311,7 @@ async function saveNotificationsInDb(payload) {
|
|
|
11306
11311
|
// src/service/sendPushNotifications.ts
|
|
11307
11312
|
var import_expo_server_sdk = require("expo-server-sdk");
|
|
11308
11313
|
|
|
11309
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
11314
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-JMOGW4IX.mjs
|
|
11310
11315
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
11311
11316
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
11312
11317
|
EnumOSPlatform22["IOS"] = "ios";
|