@timardex/cluemart-server-shared 1.0.128 → 1.0.130

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.
@@ -9837,12 +9837,24 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
9837
9837
  collected
9838
9838
  shuffled
9839
9839
  todaysLetter
9840
+ todaysClue
9840
9841
  todaysPlacement
9841
9842
  }
9842
9843
  streak
9843
9844
  }
9844
9845
  ${BASE_GAME_FIELDS_FRAGMENT}
9845
9846
  `;
9847
+ var GAME_HISTORY_FIELDS_FRAGMENT = gql`
9848
+ fragment GameHistoryFields on GameHistoryType {
9849
+ gameDate {
9850
+ ...GameDateFields
9851
+ }
9852
+ gameStatus
9853
+ gameType
9854
+ pointsEarned
9855
+ }
9856
+ ${GAME_DATE_FIELDS_FRAGMENT}
9857
+ `;
9846
9858
  var GAME_FIELDS_FRAGMENT = gql`
9847
9859
  fragment GameFields on GameType {
9848
9860
  _id
@@ -9855,11 +9867,7 @@ var GAME_FIELDS_FRAGMENT = gql`
9855
9867
  }
9856
9868
  }
9857
9869
  gameHistory {
9858
- gameDate {
9859
- ...GameDateFields
9860
- }
9861
- gameType
9862
- pointsEarned
9870
+ ...GameHistoryFields
9863
9871
  }
9864
9872
  updatedAt
9865
9873
  owner {
@@ -9870,6 +9878,7 @@ var GAME_FIELDS_FRAGMENT = gql`
9870
9878
  ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
9871
9879
  ${OWNER_FIELDS_FRAGMENT}
9872
9880
  ${GAME_DATE_FIELDS_FRAGMENT}
9881
+ ${GAME_HISTORY_FIELDS_FRAGMENT}
9873
9882
  `;
9874
9883
  var GET_GAMES = gql`
9875
9884
  query getGames {
@@ -9887,6 +9896,21 @@ var GET_GAME = gql`
9887
9896
  }
9888
9897
  ${GAME_FIELDS_FRAGMENT}
9889
9898
  `;
9899
+ var GET_GAME_LEADERBOARD = gql`
9900
+ query getGameLeaderboard {
9901
+ gameLeaderboard {
9902
+ gameHistory {
9903
+ ...GameHistoryFields
9904
+ }
9905
+ overallPoints
9906
+ owner {
9907
+ ...OwnerFields
9908
+ }
9909
+ }
9910
+ }
9911
+ ${OWNER_FIELDS_FRAGMENT}
9912
+ ${GAME_HISTORY_FIELDS_FRAGMENT}
9913
+ `;
9890
9914
  var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql`
9891
9915
  fragment PostContentDataFields on PostContentData {
9892
9916
  game {
@@ -10678,6 +10702,11 @@ var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
10678
10702
  EnumGameType2["DAILY_CLUE"] = "dailyClue";
10679
10703
  return EnumGameType2;
10680
10704
  })(EnumGameType || {});
10705
+ var EnumGameStatus = /* @__PURE__ */ ((EnumGameStatus2) => {
10706
+ EnumGameStatus2["GAME_COMPLETED"] = "GAME_COMPLETED";
10707
+ EnumGameStatus2["GAME_LEFT"] = "GAME_LEFT";
10708
+ return EnumGameStatus2;
10709
+ })(EnumGameStatus || {});
10681
10710
 
10682
10711
  // src/mongoose/Ad.ts
10683
10712
  import mongoose from "mongoose";
@@ -11968,6 +11997,11 @@ var gameDataDefinition = Object.fromEntries(
11968
11997
  var gameHistorySchema = new MongooseSchema19(
11969
11998
  {
11970
11999
  gameDate: { required: true, type: schemaGameDate },
12000
+ gameStatus: {
12001
+ enum: Object.values(EnumGameStatus),
12002
+ required: true,
12003
+ type: String
12004
+ },
11971
12005
  gameType: {
11972
12006
  enum: Object.values(EnumGameType),
11973
12007
  required: true,
@@ -12057,4 +12091,4 @@ react/cjs/react.development.js:
12057
12091
  * LICENSE file in the root directory of this source tree.
12058
12092
  *)
12059
12093
  */
12060
- //# sourceMappingURL=chunk-BBLLCZKM.mjs.map
12094
+ //# sourceMappingURL=chunk-YFZVVTXN.mjs.map