@timardex/cluemart-server-shared 1.0.131 → 1.0.132

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.
@@ -6734,9 +6734,13 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
6734
6734
  EnumNotificationResourceType22["DEACTIVATED_EVENT"] = "deactivated_event";
6735
6735
  EnumNotificationResourceType22["DEACTIVATED_PARTNER"] = "deactivated_partner";
6736
6736
  EnumNotificationResourceType22["DEACTIVATED_VENDOR"] = "deactivated_vendor";
6737
+ EnumNotificationResourceType22["DOWNGRADED_EVENT"] = "downgraded_event";
6738
+ EnumNotificationResourceType22["DOWNGRADED_PARTNER"] = "downgraded_partner";
6739
+ EnumNotificationResourceType22["DOWNGRADED_VENDOR"] = "downgraded_vendor";
6737
6740
  EnumNotificationResourceType22["DECLINED_EVENT"] = "declined_event";
6738
6741
  EnumNotificationResourceType22["DECLINED_PARTNER"] = "declined_partner";
6739
6742
  EnumNotificationResourceType22["DECLINED_VENDOR"] = "declined_vendor";
6743
+ EnumNotificationResourceType22["DAILY_CLUE_LETTER_AVAILABLE"] = "daily_clue_letter_available";
6740
6744
  EnumNotificationResourceType22["EVENT_INVITE_VENDOR"] = "event_invite_vendor";
6741
6745
  EnumNotificationResourceType22["EVENT_STARTING_SOON"] = "event_starting_soon";
6742
6746
  EnumNotificationResourceType22["EXPIRATION_REMINDER_EVENT"] = "expiration_reminder_event";
@@ -6748,11 +6752,11 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
6748
6752
  return EnumNotificationResourceType22;
6749
6753
  })(EnumNotificationResourceType || {});
6750
6754
  var EnumNotificationType = /* @__PURE__ */ ((EnumNotificationType22) => {
6755
+ EnumNotificationType22["CHAT"] = "chat";
6751
6756
  EnumNotificationType22["EVENT"] = "event";
6752
- EnumNotificationType22["VENDOR"] = "vendor";
6753
6757
  EnumNotificationType22["RELATION"] = "relation";
6754
- EnumNotificationType22["CHAT"] = "chat";
6755
6758
  EnumNotificationType22["SYSTEM"] = "system";
6759
+ EnumNotificationType22["VENDOR"] = "vendor";
6756
6760
  return EnumNotificationType22;
6757
6761
  })(EnumNotificationType || {});
6758
6762
  var EnumRegions = /* @__PURE__ */ ((EnumRegions22) => {
@@ -6820,6 +6824,17 @@ var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus22) => {
6820
6824
  EnumSubscriptionStatus22["TRIALING"] = "trialing";
6821
6825
  return EnumSubscriptionStatus22;
6822
6826
  })(EnumSubscriptionStatus || {});
6827
+ var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
6828
+ EnumGameType2["DAILY_CLUE"] = "dailyClue";
6829
+ return EnumGameType2;
6830
+ })(EnumGameType || {});
6831
+ var EnumGameStatus = /* @__PURE__ */ ((EnumGameStatus3) => {
6832
+ EnumGameStatus3["GAME_COMPLETED"] = "GAME_COMPLETED";
6833
+ EnumGameStatus3["GAME_IN_PROGRESS"] = "GAME_IN_PROGRESS";
6834
+ EnumGameStatus3["GAME_LEFT"] = "GAME_LEFT";
6835
+ EnumGameStatus3["GAME_STARTED"] = "GAME_STARTED";
6836
+ return EnumGameStatus3;
6837
+ })(EnumGameStatus || {});
6823
6838
  var dateFormat = "DD-MM-YYYY";
6824
6839
  var timeFormat = "HH:mm";
6825
6840
  dayjs.extend(customParseFormat);
@@ -9855,46 +9870,63 @@ var GAME_HISTORY_FIELDS_FRAGMENT = gql`
9855
9870
  }
9856
9871
  ${GAME_DATE_FIELDS_FRAGMENT}
9857
9872
  `;
9873
+ var GAME_DATA_FIELDS_FRAGMENT = gql`
9874
+ fragment GameDataFields on GameDataType {
9875
+ dailyClue {
9876
+ ...DailyClueGameDataFields
9877
+ }
9878
+ }
9879
+ ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
9880
+ `;
9858
9881
  var GAME_FIELDS_FRAGMENT = gql`
9859
9882
  fragment GameFields on GameType {
9860
- _id
9861
9883
  active
9862
9884
  createdAt
9863
- deletedAt
9864
9885
  gameData {
9865
- dailyClue {
9866
- ...DailyClueGameDataFields
9867
- }
9886
+ ...GameDataFields
9868
9887
  }
9869
9888
  gameHistory {
9870
9889
  ...GameHistoryFields
9871
9890
  }
9891
+ gameType
9872
9892
  updatedAt
9893
+ }
9894
+ ${GAME_DATA_FIELDS_FRAGMENT}
9895
+ ${GAME_HISTORY_FIELDS_FRAGMENT}
9896
+ `;
9897
+ var GAME_DOC_FIELDS_FRAGMENT = gql`
9898
+ fragment GameDocFields on GameDocType {
9899
+ _id
9900
+ active
9901
+ createdAt
9902
+ deletedAt
9903
+ games {
9904
+ ...GameFields
9905
+ }
9873
9906
  owner {
9874
9907
  ...OwnerFields
9875
9908
  }
9876
9909
  points
9910
+ updatedAt
9877
9911
  }
9878
- ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
9879
9912
  ${OWNER_FIELDS_FRAGMENT}
9880
- ${GAME_DATE_FIELDS_FRAGMENT}
9881
- ${GAME_HISTORY_FIELDS_FRAGMENT}
9913
+ ${GAME_FIELDS_FRAGMENT}
9882
9914
  `;
9883
9915
  var GET_GAMES = gql`
9884
9916
  query getGames {
9885
9917
  games {
9886
- ...GameFields
9918
+ ...GameDocFields
9887
9919
  }
9888
9920
  }
9889
- ${GAME_FIELDS_FRAGMENT}
9921
+ ${GAME_DOC_FIELDS_FRAGMENT}
9890
9922
  `;
9891
9923
  var GET_GAME = gql`
9892
9924
  query getGame($_id: ID!) {
9893
9925
  game(_id: $_id) {
9894
- ...GameFields
9926
+ ...GameDocFields
9895
9927
  }
9896
9928
  }
9897
- ${GAME_FIELDS_FRAGMENT}
9929
+ ${GAME_DOC_FIELDS_FRAGMENT}
9898
9930
  `;
9899
9931
  var GET_GAME_LEADERBOARD = gql`
9900
9932
  query getGameLeaderboard {
@@ -10057,10 +10089,10 @@ var GET_APP_SETTINGS = gql`
10057
10089
  var START_GAME_MUTATION = gql`
10058
10090
  mutation startGame($input: BaseGameInputType!) {
10059
10091
  startGame(input: $input) {
10060
- ...GameFields
10092
+ ...GameDocFields
10061
10093
  }
10062
10094
  }
10063
- ${GAME_FIELDS_FRAGMENT}
10095
+ ${GAME_DOC_FIELDS_FRAGMENT}
10064
10096
  `;
10065
10097
  var LEAVE_GAME_MUTATION = gql`
10066
10098
  mutation leaveGame($_id: ID!, $gameType: GameTypeEnumType!) {
@@ -10070,10 +10102,10 @@ var LEAVE_GAME_MUTATION = gql`
10070
10102
  var UPDATE_DAILY_CLUE_MUTATION = gql`
10071
10103
  mutation updateDailyClueGame($_id: ID!, $foundLetter: String!) {
10072
10104
  updateDailyClueGame(_id: $_id, foundLetter: $foundLetter) {
10073
- ...GameFields
10105
+ ...GameDocFields
10074
10106
  }
10075
10107
  }
10076
- ${GAME_FIELDS_FRAGMENT}
10108
+ ${GAME_DOC_FIELDS_FRAGMENT}
10077
10109
  `;
10078
10110
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
10079
10111
  var nzbnRegex = /^94\d{11}$/;
@@ -10698,16 +10730,6 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
10698
10730
  EnumActivity2["VIEW"] = "VIEW";
10699
10731
  return EnumActivity2;
10700
10732
  })(EnumActivity || {});
10701
- var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
10702
- EnumGameType2["DAILY_CLUE"] = "dailyClue";
10703
- return EnumGameType2;
10704
- })(EnumGameType || {});
10705
- var EnumGameStatus = /* @__PURE__ */ ((EnumGameStatus2) => {
10706
- EnumGameStatus2["GAME_COMPLETED"] = "GAME_COMPLETED";
10707
- EnumGameStatus2["GAME_LEFT"] = "GAME_LEFT";
10708
- EnumGameStatus2["GAME_IN_PROGRESS"] = "GAME_IN_PROGRESS";
10709
- return EnumGameStatus2;
10710
- })(EnumGameStatus || {});
10711
10733
 
10712
10734
  // src/mongoose/Ad.ts
10713
10735
  import mongoose from "mongoose";
@@ -11403,7 +11425,7 @@ schema4.index({ isRead: 1, userId: 1 });
11403
11425
  schema4.index({ createdAt: -1, userId: 1 });
11404
11426
  var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
11405
11427
 
11406
- // node_modules/@timardex/cluemart-shared/dist/chunk-USQKKCIA.mjs
11428
+ // node_modules/@timardex/cluemart-shared/dist/chunk-534WN2SR.mjs
11407
11429
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
11408
11430
  EnumOSPlatform22["ANDROID"] = "android";
11409
11431
  EnumOSPlatform22["IOS"] = "ios";
@@ -12012,12 +12034,24 @@ var gameHistorySchema = new MongooseSchema19(
12012
12034
  },
12013
12035
  { _id: false }
12014
12036
  );
12037
+ var gameTypeSchema = new MongooseSchema19(
12038
+ {
12039
+ active: { default: true, required: true, type: Boolean },
12040
+ gameData: gameDataDefinition,
12041
+ gameHistory: { default: [], required: true, type: [gameHistorySchema] },
12042
+ gameType: {
12043
+ enum: Object.values(EnumGameType),
12044
+ required: true,
12045
+ type: String
12046
+ }
12047
+ },
12048
+ { _id: false, timestamps: true }
12049
+ );
12015
12050
  var schema14 = new MongooseSchema19(
12016
12051
  {
12017
12052
  active: { default: false, required: true, type: Boolean },
12018
12053
  deletedAt: { default: null, required: false, type: Date },
12019
- gameData: gameDataDefinition,
12020
- gameHistory: { default: [], required: true, type: [gameHistorySchema] },
12054
+ games: { default: [], required: false, type: [gameTypeSchema] },
12021
12055
  owner: {
12022
12056
  required: true,
12023
12057
  type: OwnerTypeSchema
@@ -12092,4 +12126,4 @@ react/cjs/react.development.js:
12092
12126
  * LICENSE file in the root directory of this source tree.
12093
12127
  *)
12094
12128
  */
12095
- //# sourceMappingURL=chunk-6WUH4RWX.mjs.map
12129
+ //# sourceMappingURL=chunk-OBW4LAAG.mjs.map