@timardex/cluemart-shared 1.5.711 → 1.5.712

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.d.mts CHANGED
@@ -1217,7 +1217,10 @@ type GameHistory = Pick<BaseGameType, "gameTitle" | "gameType" | "gameTypeId"> &
1217
1217
  createdAt: Date;
1218
1218
  gameDate: GameDate;
1219
1219
  gameStatus: EnumGameStatus;
1220
+ /** Per-event delta. Not persisted for overallGamePoints (computed at read time). */
1220
1221
  pointsEarned: number;
1222
+ /** Running total for this game instance; computed at read time, not stored in Mongo. */
1223
+ overallGamePoints?: number;
1221
1224
  };
1222
1225
  type GameDataMap = {
1223
1226
  [EnumGameType.DAILY_CLUE]: DailyClueGameData;
package/dist/index.d.ts CHANGED
@@ -1217,7 +1217,10 @@ type GameHistory = Pick<BaseGameType, "gameTitle" | "gameType" | "gameTypeId"> &
1217
1217
  createdAt: Date;
1218
1218
  gameDate: GameDate;
1219
1219
  gameStatus: EnumGameStatus;
1220
+ /** Per-event delta. Not persisted for overallGamePoints (computed at read time). */
1220
1221
  pointsEarned: number;
1222
+ /** Running total for this game instance; computed at read time, not stored in Mongo. */
1223
+ overallGamePoints?: number;
1221
1224
  };
1222
1225
  type GameDataMap = {
1223
1226
  [EnumGameType.DAILY_CLUE]: DailyClueGameData;
package/dist/index.mjs CHANGED
@@ -3945,7 +3945,10 @@ var useUpdateEvent = () => {
3945
3945
  {
3946
3946
  query: GET_EVENT,
3947
3947
  variables: { _id: eventId }
3948
- // Pass the eventId for refetching
3948
+ },
3949
+ {
3950
+ query: GET_EVENT_INFO,
3951
+ variables: { eventId }
3949
3952
  }
3950
3953
  ];
3951
3954
  }
@@ -3993,12 +3996,13 @@ var useUpdateEventInfo = () => {
3993
3996
  {
3994
3997
  query: GET_EVENT_INFO,
3995
3998
  variables: { eventId }
3996
- // Pass the eventId for refetching
3997
3999
  },
3998
4000
  {
3999
4001
  query: GET_EVENT,
4000
4002
  variables: { _id: eventId }
4001
- // Pass the eventId for refetching
4003
+ },
4004
+ {
4005
+ query: GET_USER_EVENTS
4002
4006
  }
4003
4007
  ];
4004
4008
  }
@@ -6099,6 +6103,7 @@ var GAME_HISTORY_FIELDS_FRAGMENT = gql35`
6099
6103
  gameTitle
6100
6104
  gameType
6101
6105
  gameTypeId
6106
+ overallGamePoints
6102
6107
  pointsEarned
6103
6108
  }
6104
6109
  ${GAME_DATE_FIELDS_FRAGMENT}