@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.
@@ -6732,22 +6732,24 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
6732
6732
  EnumNotificationResourceType22["CREATED_EVENT"] = "created_event";
6733
6733
  EnumNotificationResourceType22["CREATED_PARTNER"] = "created_partner";
6734
6734
  EnumNotificationResourceType22["CREATED_VENDOR"] = "created_vendor";
6735
+ EnumNotificationResourceType22["DAILY_CLUE_GAME"] = "daily_clue_game";
6735
6736
  EnumNotificationResourceType22["DEACTIVATED_EVENT"] = "deactivated_event";
6736
6737
  EnumNotificationResourceType22["DEACTIVATED_PARTNER"] = "deactivated_partner";
6737
6738
  EnumNotificationResourceType22["DEACTIVATED_VENDOR"] = "deactivated_vendor";
6738
- EnumNotificationResourceType22["DOWNGRADED_EVENT"] = "downgraded_event";
6739
- EnumNotificationResourceType22["DOWNGRADED_PARTNER"] = "downgraded_partner";
6740
- EnumNotificationResourceType22["DOWNGRADED_VENDOR"] = "downgraded_vendor";
6741
6739
  EnumNotificationResourceType22["DECLINED_EVENT"] = "declined_event";
6742
6740
  EnumNotificationResourceType22["DECLINED_PARTNER"] = "declined_partner";
6743
6741
  EnumNotificationResourceType22["DECLINED_VENDOR"] = "declined_vendor";
6744
- EnumNotificationResourceType22["DAILY_CLUE_GAME"] = "daily_clue_game";
6742
+ EnumNotificationResourceType22["DOWNGRADED_EVENT"] = "downgraded_event";
6743
+ EnumNotificationResourceType22["DOWNGRADED_PARTNER"] = "downgraded_partner";
6744
+ EnumNotificationResourceType22["DOWNGRADED_VENDOR"] = "downgraded_vendor";
6745
6745
  EnumNotificationResourceType22["EVENT_INVITE_VENDOR"] = "event_invite_vendor";
6746
6746
  EnumNotificationResourceType22["EVENT_STARTING_SOON"] = "event_starting_soon";
6747
6747
  EnumNotificationResourceType22["EXPIRATION_REMINDER_EVENT"] = "expiration_reminder_event";
6748
6748
  EnumNotificationResourceType22["EXPIRATION_REMINDER_PARTNER"] = "expiration_reminder_partner";
6749
6749
  EnumNotificationResourceType22["EXPIRATION_REMINDER_VENDOR"] = "expiration_reminder_vendor";
6750
6750
  EnumNotificationResourceType22["NEW_CHAT_MESSAGE"] = "new_chat_message";
6751
+ EnumNotificationResourceType22["NEW_POST_CREATED"] = "new_post_created";
6752
+ EnumNotificationResourceType22["REGISTERED_USER_BY_SCHOOL_CODE"] = "registered_user_by_school_code";
6751
6753
  EnumNotificationResourceType22["SYSTEM_ALERT"] = "system_alert";
6752
6754
  EnumNotificationResourceType22["VENDOR_APPLICATION_TO_EVENT"] = "vendor_application_to_event";
6753
6755
  return EnumNotificationResourceType22;
@@ -6825,6 +6827,100 @@ var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus22) => {
6825
6827
  EnumSubscriptionStatus22["TRIALING"] = "trialing";
6826
6828
  return EnumSubscriptionStatus22;
6827
6829
  })(EnumSubscriptionStatus || {});
6830
+ var OBJECT_ID_PATH_SEGMENT = "[a-f0-9]{24}";
6831
+ var OBJECT_ID_PATH_SEGMENT_END = `${OBJECT_ID_PATH_SEGMENT}$`;
6832
+ var gameScreenIdentifierList = [
6833
+ {
6834
+ clue: "Where your actions turn into a timeline.",
6835
+ id: "activities",
6836
+ match: "/profile/activities"
6837
+ },
6838
+ {
6839
+ clue: "Where conversations happen without speaking.",
6840
+ id: "chat",
6841
+ match: "/profile/chat"
6842
+ },
6843
+ {
6844
+ clue: "The place to redefine who you are.",
6845
+ id: "edit-profile",
6846
+ match: "/profile/edit-profile"
6847
+ },
6848
+ {
6849
+ clue: "A single moment worth showing up for.",
6850
+ id: "single-event",
6851
+ match: new RegExp(`^/events/${OBJECT_ID_PATH_SEGMENT_END}`)
6852
+ },
6853
+ {
6854
+ clue: "What\u2019s happening around you, right now.",
6855
+ id: "events-near-me",
6856
+ match: "/events/events-near-me"
6857
+ },
6858
+ {
6859
+ clue: "A collection of things worth attending.",
6860
+ id: "events",
6861
+ match: "/events"
6862
+ },
6863
+ {
6864
+ clue: "What\u2019s happening in a wider area \u2014 not just nearby.",
6865
+ id: "events-region",
6866
+ match: /^\/events\/region\/[^/]+$/
6867
+ },
6868
+ {
6869
+ clue: "Where fun becomes a challenge.",
6870
+ id: "games",
6871
+ match: "/games"
6872
+ },
6873
+ {
6874
+ clue: "Your starting point for everything.",
6875
+ id: "home",
6876
+ match: "/"
6877
+ },
6878
+ {
6879
+ clue: "Where the app whispers what you shouldn\u2019t miss.",
6880
+ id: "notifications",
6881
+ match: "/notifications"
6882
+ },
6883
+ {
6884
+ clue: "Where you fine-tune your experience.",
6885
+ id: "options",
6886
+ match: "/options"
6887
+ },
6888
+ {
6889
+ clue: "An organisation or creator supporting the community.",
6890
+ id: "single-partner",
6891
+ match: new RegExp(`^/partners/${OBJECT_ID_PATH_SEGMENT_END}`)
6892
+ },
6893
+ {
6894
+ clue: "Organisations and creators supporting the community.",
6895
+ id: "partners",
6896
+ match: "/partners"
6897
+ },
6898
+ {
6899
+ clue: "A single published post in full view.",
6900
+ id: "single-visitor-post",
6901
+ match: new RegExp(`^/visitors/post/${OBJECT_ID_PATH_SEGMENT_END}`)
6902
+ },
6903
+ {
6904
+ clue: "Your identity, on display.",
6905
+ id: "profile",
6906
+ match: "/profile"
6907
+ },
6908
+ {
6909
+ clue: "One stallholder offering something valuable.",
6910
+ id: "single-vendor",
6911
+ match: new RegExp(`^/vendors/${OBJECT_ID_PATH_SEGMENT_END}`)
6912
+ },
6913
+ {
6914
+ clue: "Where every stallholder waits under the right category.",
6915
+ id: "vendors",
6916
+ match: "/vendors"
6917
+ },
6918
+ {
6919
+ clue: "Where you browse articles and posts from around the platform.",
6920
+ id: "visitors",
6921
+ match: "/visitors"
6922
+ }
6923
+ ];
6828
6924
  var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
6829
6925
  EnumGameType2["DAILY_CLUE"] = "dailyClue";
6830
6926
  return EnumGameType2;
@@ -10840,7 +10936,16 @@ var schoolSchema = create$3().shape({
10840
10936
  });
10841
10937
  var PKG = "@timardex/cluemart-shared";
10842
10938
  var IMAGE_EXTENSION = ".webp";
10843
- var posterIds = ["poster1", "poster2", "poster3"];
10939
+ var posterIds = [
10940
+ "mini-market1",
10941
+ "mini-market2",
10942
+ "mini-market3",
10943
+ "mini-market4",
10944
+ "mini-market5",
10945
+ "poster1",
10946
+ "poster2",
10947
+ "poster3"
10948
+ ];
10844
10949
  var posterFiles = Object.fromEntries(
10845
10950
  posterIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
10846
10951
  );
@@ -11614,7 +11719,7 @@ schema4.index({ isRead: 1, userId: 1 });
11614
11719
  schema4.index({ createdAt: -1, userId: 1 });
11615
11720
  var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
11616
11721
 
11617
- // node_modules/@timardex/cluemart-shared/dist/chunk-73ULMQM6.mjs
11722
+ // node_modules/@timardex/cluemart-shared/dist/chunk-ZR4TGWTS.mjs
11618
11723
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
11619
11724
  EnumOSPlatform22["ANDROID"] = "android";
11620
11725
  EnumOSPlatform22["IOS"] = "ios";
@@ -12262,7 +12367,8 @@ import mongoose20 from "mongoose";
12262
12367
  var MongooseSchema20 = mongoose20.Schema;
12263
12368
  var schema15 = new MongooseSchema20(
12264
12369
  {
12265
- active: { default: false, required: true, type: Boolean },
12370
+ // New schools are active by default
12371
+ active: { default: true, required: true, type: Boolean },
12266
12372
  contactDetails: { required: false, type: ContactDetailsSchema },
12267
12373
  deletedAt: { default: null, required: false, type: Date },
12268
12374
  location: {
@@ -12352,4 +12458,4 @@ react/cjs/react.development.js:
12352
12458
  * LICENSE file in the root directory of this source tree.
12353
12459
  *)
12354
12460
  */
12355
- //# sourceMappingURL=chunk-7PPWLIUD.mjs.map
12461
+ //# sourceMappingURL=chunk-FA5DXWVE.mjs.map