@timardex/cluemart-shared 1.4.84 → 1.4.86

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
@@ -956,23 +956,28 @@ interface PartnerType extends BaseResourceType {
956
956
  }
957
957
 
958
958
  declare enum EnumGameType {
959
- DAILY_CLUE = "daily_clue",
960
- DAILY_REWARD = "daily_reward"
959
+ DAILY_CLUE = "dailyClue"
961
960
  }
962
961
  type BaseGame = {
963
- gameDate: DateTimeType;
962
+ gameDate: {
963
+ endDate: Date;
964
+ startDate: Date;
965
+ };
964
966
  gameSolution: string;
965
967
  gameType: EnumGameType;
966
968
  title: string;
967
969
  };
968
970
  type DailyClueGameData = BaseGame & {
969
971
  collectedLetters?: string[];
970
- lastFoundDate?: string | null;
972
+ lastFoundDate?: Date | null;
971
973
  points: number;
972
974
  streak: number;
973
975
  };
976
+ type GameDataMap = {
977
+ [EnumGameType.DAILY_CLUE]: DailyClueGameData;
978
+ };
974
979
  type GameData = {
975
- dailyClue?: DailyClueGameData | null;
980
+ [K in keyof GameDataMap]?: GameDataMap[K] | null;
976
981
  };
977
982
  type GameType = {
978
983
  _id: string;
package/dist/index.d.ts CHANGED
@@ -956,23 +956,28 @@ interface PartnerType extends BaseResourceType {
956
956
  }
957
957
 
958
958
  declare enum EnumGameType {
959
- DAILY_CLUE = "daily_clue",
960
- DAILY_REWARD = "daily_reward"
959
+ DAILY_CLUE = "dailyClue"
961
960
  }
962
961
  type BaseGame = {
963
- gameDate: DateTimeType;
962
+ gameDate: {
963
+ endDate: Date;
964
+ startDate: Date;
965
+ };
964
966
  gameSolution: string;
965
967
  gameType: EnumGameType;
966
968
  title: string;
967
969
  };
968
970
  type DailyClueGameData = BaseGame & {
969
971
  collectedLetters?: string[];
970
- lastFoundDate?: string | null;
972
+ lastFoundDate?: Date | null;
971
973
  points: number;
972
974
  streak: number;
973
975
  };
976
+ type GameDataMap = {
977
+ [EnumGameType.DAILY_CLUE]: DailyClueGameData;
978
+ };
974
979
  type GameData = {
975
- dailyClue?: DailyClueGameData | null;
980
+ [K in keyof GameDataMap]?: GameDataMap[K] | null;
976
981
  };
977
982
  type GameType = {
978
983
  _id: string;
package/dist/index.mjs CHANGED
@@ -7657,8 +7657,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
7657
7657
 
7658
7658
  // src/types/game.ts
7659
7659
  var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
7660
- EnumGameType2["DAILY_CLUE"] = "daily_clue";
7661
- EnumGameType2["DAILY_REWARD"] = "daily_reward";
7660
+ EnumGameType2["DAILY_CLUE"] = "dailyClue";
7662
7661
  return EnumGameType2;
7663
7662
  })(EnumGameType || {});
7664
7663
  export {