@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.
@@ -37,7 +37,7 @@ import {
37
37
  resourceRelationsSchema,
38
38
  termsAgreementSchema,
39
39
  userLicenseSchema
40
- } from "../chunk-FSEMFTFQ.mjs";
40
+ } from "../chunk-EM5UZAAN.mjs";
41
41
  import "../chunk-3QS3WKRC.mjs";
42
42
  export {
43
43
  APP_SETTINGS_ID,
@@ -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-ZR4TGWTS.mjs
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";