@timardex/cluemart-server-shared 1.0.141 → 1.0.143

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.mjs CHANGED
@@ -6753,22 +6753,24 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
6753
6753
  EnumNotificationResourceType22["CREATED_EVENT"] = "created_event";
6754
6754
  EnumNotificationResourceType22["CREATED_PARTNER"] = "created_partner";
6755
6755
  EnumNotificationResourceType22["CREATED_VENDOR"] = "created_vendor";
6756
+ EnumNotificationResourceType22["DAILY_CLUE_GAME"] = "daily_clue_game";
6756
6757
  EnumNotificationResourceType22["DEACTIVATED_EVENT"] = "deactivated_event";
6757
6758
  EnumNotificationResourceType22["DEACTIVATED_PARTNER"] = "deactivated_partner";
6758
6759
  EnumNotificationResourceType22["DEACTIVATED_VENDOR"] = "deactivated_vendor";
6759
- EnumNotificationResourceType22["DOWNGRADED_EVENT"] = "downgraded_event";
6760
- EnumNotificationResourceType22["DOWNGRADED_PARTNER"] = "downgraded_partner";
6761
- EnumNotificationResourceType22["DOWNGRADED_VENDOR"] = "downgraded_vendor";
6762
6760
  EnumNotificationResourceType22["DECLINED_EVENT"] = "declined_event";
6763
6761
  EnumNotificationResourceType22["DECLINED_PARTNER"] = "declined_partner";
6764
6762
  EnumNotificationResourceType22["DECLINED_VENDOR"] = "declined_vendor";
6765
- EnumNotificationResourceType22["DAILY_CLUE_GAME"] = "daily_clue_game";
6763
+ EnumNotificationResourceType22["DOWNGRADED_EVENT"] = "downgraded_event";
6764
+ EnumNotificationResourceType22["DOWNGRADED_PARTNER"] = "downgraded_partner";
6765
+ EnumNotificationResourceType22["DOWNGRADED_VENDOR"] = "downgraded_vendor";
6766
6766
  EnumNotificationResourceType22["EVENT_INVITE_VENDOR"] = "event_invite_vendor";
6767
6767
  EnumNotificationResourceType22["EVENT_STARTING_SOON"] = "event_starting_soon";
6768
6768
  EnumNotificationResourceType22["EXPIRATION_REMINDER_EVENT"] = "expiration_reminder_event";
6769
6769
  EnumNotificationResourceType22["EXPIRATION_REMINDER_PARTNER"] = "expiration_reminder_partner";
6770
6770
  EnumNotificationResourceType22["EXPIRATION_REMINDER_VENDOR"] = "expiration_reminder_vendor";
6771
6771
  EnumNotificationResourceType22["NEW_CHAT_MESSAGE"] = "new_chat_message";
6772
+ EnumNotificationResourceType22["NEW_POST_CREATED"] = "new_post_created";
6773
+ EnumNotificationResourceType22["REGISTERED_USER_BY_SCHOOL_CODE"] = "registered_user_by_school_code";
6772
6774
  EnumNotificationResourceType22["SYSTEM_ALERT"] = "system_alert";
6773
6775
  EnumNotificationResourceType22["VENDOR_APPLICATION_TO_EVENT"] = "vendor_application_to_event";
6774
6776
  return EnumNotificationResourceType22;
@@ -6846,6 +6848,100 @@ var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus22) => {
6846
6848
  EnumSubscriptionStatus22["TRIALING"] = "trialing";
6847
6849
  return EnumSubscriptionStatus22;
6848
6850
  })(EnumSubscriptionStatus || {});
6851
+ var OBJECT_ID_PATH_SEGMENT = "[a-f0-9]{24}";
6852
+ var OBJECT_ID_PATH_SEGMENT_END = `${OBJECT_ID_PATH_SEGMENT}$`;
6853
+ var gameScreenIdentifierList = [
6854
+ {
6855
+ clue: "Where your actions turn into a timeline.",
6856
+ id: "activities",
6857
+ match: "/profile/activities"
6858
+ },
6859
+ {
6860
+ clue: "Where conversations happen without speaking.",
6861
+ id: "chat",
6862
+ match: "/profile/chat"
6863
+ },
6864
+ {
6865
+ clue: "The place to redefine who you are.",
6866
+ id: "edit-profile",
6867
+ match: "/profile/edit-profile"
6868
+ },
6869
+ {
6870
+ clue: "A single moment worth showing up for.",
6871
+ id: "single-event",
6872
+ match: new RegExp(`^/events/${OBJECT_ID_PATH_SEGMENT_END}`)
6873
+ },
6874
+ {
6875
+ clue: "What\u2019s happening around you, right now.",
6876
+ id: "events-near-me",
6877
+ match: "/events/events-near-me"
6878
+ },
6879
+ {
6880
+ clue: "A collection of things worth attending.",
6881
+ id: "events",
6882
+ match: "/events"
6883
+ },
6884
+ {
6885
+ clue: "What\u2019s happening in a wider area \u2014 not just nearby.",
6886
+ id: "events-region",
6887
+ match: /^\/events\/region\/[^/]+$/
6888
+ },
6889
+ {
6890
+ clue: "Where fun becomes a challenge.",
6891
+ id: "games",
6892
+ match: "/games"
6893
+ },
6894
+ {
6895
+ clue: "Your starting point for everything.",
6896
+ id: "home",
6897
+ match: "/"
6898
+ },
6899
+ {
6900
+ clue: "Where the app whispers what you shouldn\u2019t miss.",
6901
+ id: "notifications",
6902
+ match: "/notifications"
6903
+ },
6904
+ {
6905
+ clue: "Where you fine-tune your experience.",
6906
+ id: "options",
6907
+ match: "/options"
6908
+ },
6909
+ {
6910
+ clue: "An organisation or creator supporting the community.",
6911
+ id: "single-partner",
6912
+ match: new RegExp(`^/partners/${OBJECT_ID_PATH_SEGMENT_END}`)
6913
+ },
6914
+ {
6915
+ clue: "Organisations and creators supporting the community.",
6916
+ id: "partners",
6917
+ match: "/partners"
6918
+ },
6919
+ {
6920
+ clue: "A single published post in full view.",
6921
+ id: "single-visitor-post",
6922
+ match: new RegExp(`^/visitors/post/${OBJECT_ID_PATH_SEGMENT_END}`)
6923
+ },
6924
+ {
6925
+ clue: "Your identity, on display.",
6926
+ id: "profile",
6927
+ match: "/profile"
6928
+ },
6929
+ {
6930
+ clue: "One stallholder offering something valuable.",
6931
+ id: "single-vendor",
6932
+ match: new RegExp(`^/vendors/${OBJECT_ID_PATH_SEGMENT_END}`)
6933
+ },
6934
+ {
6935
+ clue: "Where every stallholder waits under the right category.",
6936
+ id: "vendors",
6937
+ match: "/vendors"
6938
+ },
6939
+ {
6940
+ clue: "Where you browse articles and posts from around the platform.",
6941
+ id: "visitors",
6942
+ match: "/visitors"
6943
+ }
6944
+ ];
6849
6945
  var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
6850
6946
  EnumGameType2["DAILY_CLUE"] = "dailyClue";
6851
6947
  return EnumGameType2;
@@ -10861,7 +10957,16 @@ var schoolSchema = create$3().shape({
10861
10957
  });
10862
10958
  var PKG = "@timardex/cluemart-shared";
10863
10959
  var IMAGE_EXTENSION = ".webp";
10864
- var posterIds = ["poster1", "poster2", "poster3"];
10960
+ var posterIds = [
10961
+ "mini-market1",
10962
+ "mini-market2",
10963
+ "mini-market3",
10964
+ "mini-market4",
10965
+ "mini-market5",
10966
+ "poster1",
10967
+ "poster2",
10968
+ "poster3"
10969
+ ];
10865
10970
  var posterFiles = Object.fromEntries(
10866
10971
  posterIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
10867
10972
  );
@@ -11635,7 +11740,7 @@ schema4.index({ isRead: 1, userId: 1 });
11635
11740
  schema4.index({ createdAt: -1, userId: 1 });
11636
11741
  var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
11637
11742
 
11638
- // node_modules/@timardex/cluemart-shared/dist/chunk-73ULMQM6.mjs
11743
+ // node_modules/@timardex/cluemart-shared/dist/chunk-ZR4TGWTS.mjs
11639
11744
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
11640
11745
  EnumOSPlatform22["ANDROID"] = "android";
11641
11746
  EnumOSPlatform22["IOS"] = "ios";
@@ -12283,7 +12388,8 @@ import mongoose20 from "mongoose";
12283
12388
  var MongooseSchema20 = mongoose20.Schema;
12284
12389
  var schema15 = new MongooseSchema20(
12285
12390
  {
12286
- active: { default: false, required: true, type: Boolean },
12391
+ // New schools are active by default
12392
+ active: { default: true, required: true, type: Boolean },
12287
12393
  contactDetails: { required: false, type: ContactDetailsSchema },
12288
12394
  deletedAt: { default: null, required: false, type: Date },
12289
12395
  location: {