@timardex/cluemart-shared 1.5.510 → 1.5.511

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.
Files changed (38) hide show
  1. package/dist/{chunk-RQDZX76B.mjs → chunk-2GSMGPKT.mjs} +19 -8
  2. package/dist/{chunk-RQDZX76B.mjs.map → chunk-2GSMGPKT.mjs.map} +1 -1
  3. package/dist/{chunk-RY7AILFK.mjs → chunk-FTEZFZZW.mjs} +2 -2
  4. package/dist/{chunk-WYYQSPAX.mjs → chunk-LJJCZVW4.mjs} +1 -1
  5. package/dist/{chunk-WYYQSPAX.mjs.map → chunk-LJJCZVW4.mjs.map} +1 -1
  6. package/dist/{chunk-3SFKWCTZ.mjs → chunk-OMXMDHJ3.mjs} +2 -2
  7. package/dist/formFields/index.mjs +3 -3
  8. package/dist/{game-DuJpk6t2.d.mts → game-65XFYqKi.d.mts} +16 -9
  9. package/dist/{game-MJqjbMLC.d.ts → game-PMt_jT_7.d.ts} +16 -9
  10. package/dist/graphql/index.cjs +18 -7
  11. package/dist/graphql/index.cjs.map +1 -1
  12. package/dist/graphql/index.d.mts +2 -2
  13. package/dist/graphql/index.d.ts +2 -2
  14. package/dist/graphql/index.mjs +1 -1
  15. package/dist/hooks/index.cjs +18 -7
  16. package/dist/hooks/index.cjs.map +1 -1
  17. package/dist/hooks/index.d.mts +2 -2
  18. package/dist/hooks/index.d.ts +2 -2
  19. package/dist/hooks/index.mjs +4 -4
  20. package/dist/index.cjs +18 -7
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.mts +16 -9
  23. package/dist/index.d.ts +16 -9
  24. package/dist/index.mjs +18 -7
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/{post-D3uHp75N.d.mts → post-BJHPePwy.d.mts} +1 -1
  27. package/dist/{post-CZ1sHnKx.d.ts → post-fnGzMU9c.d.ts} +1 -1
  28. package/dist/types/index.cjs.map +1 -1
  29. package/dist/types/index.d.mts +2 -2
  30. package/dist/types/index.d.ts +2 -2
  31. package/dist/types/index.mjs +1 -1
  32. package/dist/utils/index.cjs.map +1 -1
  33. package/dist/utils/index.d.mts +1 -1
  34. package/dist/utils/index.d.ts +1 -1
  35. package/dist/utils/index.mjs +2 -2
  36. package/package.json +1 -1
  37. /package/dist/{chunk-RY7AILFK.mjs.map → chunk-FTEZFZZW.mjs.map} +0 -0
  38. /package/dist/{chunk-3SFKWCTZ.mjs.map → chunk-OMXMDHJ3.mjs.map} +0 -0
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-534WN2SR.mjs";
6
6
  import {
7
7
  gameScreenIdentifierList
8
- } from "./chunk-WYYQSPAX.mjs";
8
+ } from "./chunk-LJJCZVW4.mjs";
9
9
 
10
10
  // src/utils/date.ts
11
11
  import dayjs from "dayjs";
@@ -269,4 +269,4 @@ export {
269
269
  IOS_URL,
270
270
  ANDROID_URL
271
271
  };
272
- //# sourceMappingURL=chunk-RY7AILFK.mjs.map
272
+ //# sourceMappingURL=chunk-FTEZFZZW.mjs.map
@@ -117,4 +117,4 @@ export {
117
117
  gameTypeToDisplayName,
118
118
  EnumGameStatus
119
119
  };
120
- //# sourceMappingURL=chunk-WYYQSPAX.mjs.map
120
+ //# sourceMappingURL=chunk-LJJCZVW4.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/types/game.ts"],"sourcesContent":["import { OwnerType } from \"./global\";\n\nexport const gameScreenIdentifierList = [\n {\n clue: \"Where your actions turn into a timeline.\",\n id: \"activities\",\n match: \"/profile/activities\",\n },\n {\n clue: \"Where conversations happen without speaking.\",\n id: \"chat\",\n match: \"/profile/chat\",\n },\n {\n clue: \"The place to redefine who you are.\",\n id: \"edit-profile\",\n match: \"/profile/edit-profile\",\n },\n {\n clue: \"A single moment worth showing up for.\",\n id: \"single-event\",\n match: /^\\/events\\/[a-f0-9]{24}$/,\n },\n {\n clue: \"What’s happening around you, right now.\",\n id: \"events-near-me\",\n match: \"/events/events-near-me\",\n },\n {\n clue: \"A collection of things worth attending.\",\n id: \"events\",\n match: \"/events\",\n },\n {\n clue: \"What’s happening in a wider area—not just nearby.\",\n id: \"events-region\",\n match: /^\\/events\\/region\\/[^/]+$/,\n },\n {\n clue: \"Where you go to find something specific.\",\n id: \"events-search\",\n match: \"/events/search\",\n },\n {\n clue: \"Where fun becomes a challenge.\",\n id: \"games\",\n match: \"/games\",\n },\n {\n clue: \"Your starting point for everything.\",\n id: \"home\",\n match: \"/\",\n },\n {\n clue: \"Where the app taps you on the shoulder.\",\n id: \"notifications\",\n match: \"/notifications\",\n },\n {\n clue: \"Where you fine-tune your experience.\",\n id: \"options\",\n match: \"/options\",\n },\n {\n clue: \"A single collaborator in the ecosystem.\",\n id: \"single-partner\",\n match: /^\\/partners\\/[a-f0-9]{24}$/,\n },\n {\n clue: \"The network behind the scenes.\",\n id: \"partners\",\n match: \"/partners\",\n },\n {\n clue: \"Where you share something with everyone.\",\n id: \"single-visitor-post\",\n match: /^\\/visitors\\/posts\\/[a-f0-9]{24}$/,\n },\n {\n clue: \"Your identity, on display.\",\n id: \"profile\",\n match: \"/profile\",\n },\n {\n clue: \"One provider offering something valuable.\",\n id: \"single-vendor\",\n match: /^\\/vendors\\/[a-f0-9]{24}$/,\n },\n {\n clue: \"A marketplace of providers.\",\n id: \"vendors\",\n match: \"/vendors\",\n },\n {\n clue: \"People who stopped by to see you.\",\n id: \"visitors\",\n match: \"/visitors\",\n },\n] as const;\n\nexport type GamePlacement = (typeof gameScreenIdentifierList)[number][\"id\"];\nexport type GamePlacementClue =\n (typeof gameScreenIdentifierList)[number][\"clue\"];\n\nexport enum EnumGameType {\n DAILY_CLUE = \"dailyClue\",\n}\n\nexport const gameTypeToDisplayName: Record<EnumGameType, string> = {\n [EnumGameType.DAILY_CLUE]: \"Daily Clue\",\n};\n\nexport type GameDate = {\n startDate: Date;\n endDate: Date;\n};\n\nexport type BaseGame = {\n gameDate: GameDate;\n gameSolution: string;\n gameType: EnumGameType;\n};\n\nexport type DailyClueGameData = {\n gameFields: BaseGame;\n lastFoundDate: Date | null;\n points: number;\n letterInfo: {\n collected: string[] | null; // The letters the user has found, e.g. [\"C\", \"L\", \"U\"]\n shuffled: string[]; // The letters of the solution, but shuffled, e.g. [\"L\", \"C\", \"U\"]\n todaysLetter: string | null; // The letter the user has to find today, e.g. \"C\"\n todaysClue: GamePlacementClue | null; // The clue for user to find the letter, e.g. related to {todaysPlacement}\n todaysPlacement: GamePlacement | null; // The screen where the user has to find the clue, e.g. \"HomeScreen\"\n };\n // User has found the clue 3 days in a row, this is incrementing if the user finds the clue and decrements if user misses a day\n streak: number;\n};\n\ntype GameDataMap = {\n [EnumGameType.DAILY_CLUE]: DailyClueGameData;\n};\nexport type GameData = {\n [K in keyof GameDataMap]?: GameDataMap[K] | null;\n};\n\nexport enum EnumGameStatus {\n GAME_COMPLETED = \"GAME_COMPLETED\",\n GAME_IN_PROGRESS = \"GAME_IN_PROGRESS\",\n GAME_LEFT = \"GAME_LEFT\",\n GAME_STARTED = \"GAME_STARTED\",\n}\n\nexport type GameHistory = {\n gameDate: GameDate;\n gameStatus: EnumGameStatus;\n gameType: EnumGameType;\n pointsEarned: number;\n};\n\nexport type GameType = {\n _id: string;\n active: boolean;\n createdAt: Date;\n deletedAt: Date | null;\n gameData: GameData | null;\n gameHistory: GameHistory[] | null;\n owner: OwnerType;\n points: number;\n updatedAt: Date | null;\n};\n\nexport type GameLeaderboard = {\n gameHistory: GameHistory[] | null;\n overallPoints: number;\n owner: OwnerType;\n};\n"],"mappings":";AAEO,IAAM,2BAA2B;AAAA,EACtC;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AACF;AAMO,IAAK,eAAL,kBAAKA,kBAAL;AACL,EAAAA,cAAA,gBAAa;AADH,SAAAA;AAAA,GAAA;AAIL,IAAM,wBAAsD;AAAA,EACjE,CAAC,4BAAuB,GAAG;AAC7B;AAmCO,IAAK,iBAAL,kBAAKC,oBAAL;AACL,EAAAA,gBAAA,oBAAiB;AACjB,EAAAA,gBAAA,sBAAmB;AACnB,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,kBAAe;AAJL,SAAAA;AAAA,GAAA;","names":["EnumGameType","EnumGameStatus"]}
1
+ {"version":3,"sources":["../src/types/game.ts"],"sourcesContent":["import { OwnerType } from \"./global\";\n\nexport const gameScreenIdentifierList = [\n {\n clue: \"Where your actions turn into a timeline.\",\n id: \"activities\",\n match: \"/profile/activities\",\n },\n {\n clue: \"Where conversations happen without speaking.\",\n id: \"chat\",\n match: \"/profile/chat\",\n },\n {\n clue: \"The place to redefine who you are.\",\n id: \"edit-profile\",\n match: \"/profile/edit-profile\",\n },\n {\n clue: \"A single moment worth showing up for.\",\n id: \"single-event\",\n match: /^\\/events\\/[a-f0-9]{24}$/,\n },\n {\n clue: \"What’s happening around you, right now.\",\n id: \"events-near-me\",\n match: \"/events/events-near-me\",\n },\n {\n clue: \"A collection of things worth attending.\",\n id: \"events\",\n match: \"/events\",\n },\n {\n clue: \"What’s happening in a wider area—not just nearby.\",\n id: \"events-region\",\n match: /^\\/events\\/region\\/[^/]+$/,\n },\n {\n clue: \"Where you go to find something specific.\",\n id: \"events-search\",\n match: \"/events/search\",\n },\n {\n clue: \"Where fun becomes a challenge.\",\n id: \"games\",\n match: \"/games\",\n },\n {\n clue: \"Your starting point for everything.\",\n id: \"home\",\n match: \"/\",\n },\n {\n clue: \"Where the app taps you on the shoulder.\",\n id: \"notifications\",\n match: \"/notifications\",\n },\n {\n clue: \"Where you fine-tune your experience.\",\n id: \"options\",\n match: \"/options\",\n },\n {\n clue: \"A single collaborator in the ecosystem.\",\n id: \"single-partner\",\n match: /^\\/partners\\/[a-f0-9]{24}$/,\n },\n {\n clue: \"The network behind the scenes.\",\n id: \"partners\",\n match: \"/partners\",\n },\n {\n clue: \"Where you share something with everyone.\",\n id: \"single-visitor-post\",\n match: /^\\/visitors\\/posts\\/[a-f0-9]{24}$/,\n },\n {\n clue: \"Your identity, on display.\",\n id: \"profile\",\n match: \"/profile\",\n },\n {\n clue: \"One provider offering something valuable.\",\n id: \"single-vendor\",\n match: /^\\/vendors\\/[a-f0-9]{24}$/,\n },\n {\n clue: \"A marketplace of providers.\",\n id: \"vendors\",\n match: \"/vendors\",\n },\n {\n clue: \"People who stopped by to see you.\",\n id: \"visitors\",\n match: \"/visitors\",\n },\n] as const;\n\nexport type GamePlacement = (typeof gameScreenIdentifierList)[number][\"id\"];\nexport type GamePlacementClue =\n (typeof gameScreenIdentifierList)[number][\"clue\"];\n\nexport enum EnumGameType {\n DAILY_CLUE = \"dailyClue\",\n}\n\nexport const gameTypeToDisplayName: Record<EnumGameType, string> = {\n [EnumGameType.DAILY_CLUE]: \"Daily Clue\",\n};\n\nexport type GameDate = {\n startDate: Date;\n endDate: Date;\n};\n\nexport type BaseGame = {\n gameDate: GameDate;\n gameSolution: string;\n gameType: EnumGameType;\n};\n\nexport type DailyClueGameData = {\n gameFields: BaseGame;\n lastFoundDate: Date | null;\n points: number;\n letterInfo: {\n collected: string[] | null; // The letters the user has found, e.g. [\"C\", \"L\", \"U\"]\n shuffled: string[]; // The letters of the solution, but shuffled, e.g. [\"L\", \"C\", \"U\"]\n todaysLetter: string | null; // The letter the user has to find today, e.g. \"C\"\n todaysClue: GamePlacementClue | null; // The clue for user to find the letter, e.g. related to {todaysPlacement}\n todaysPlacement: GamePlacement | null; // The screen where the user has to find the clue, e.g. \"HomeScreen\"\n };\n // User has found the clue 3 days in a row, this is incrementing if the user finds the clue and decrements if user misses a day\n streak: number;\n};\n\nexport enum EnumGameStatus {\n GAME_COMPLETED = \"GAME_COMPLETED\",\n GAME_IN_PROGRESS = \"GAME_IN_PROGRESS\",\n GAME_LEFT = \"GAME_LEFT\",\n GAME_STARTED = \"GAME_STARTED\",\n}\n\nexport type GameHistory = {\n gameDate: GameDate;\n gameStatus: EnumGameStatus;\n gameType: EnumGameType;\n pointsEarned: number;\n};\n\ntype GameDataMap = {\n [EnumGameType.DAILY_CLUE]: DailyClueGameData;\n};\ntype GameDataMapType = {\n [K in keyof GameDataMap]?: GameDataMap[K] | null;\n};\n\nexport type GameDataType = {\n active: boolean;\n createdAt: Date;\n gameData: GameDataMapType;\n gameHistory: GameHistory[] | null;\n gameType: EnumGameType;\n updatedAt: Date | null;\n};\n\nexport type GameType = {\n _id: string;\n active: boolean;\n createdAt: Date;\n deletedAt: Date | null;\n game: GameDataType[] | null;\n owner: OwnerType;\n points: number;\n updatedAt: Date | null;\n};\n\nexport type GameLeaderboard = {\n gameHistory: GameHistory[] | null;\n overallPoints: number;\n owner: OwnerType;\n};\n"],"mappings":";AAEO,IAAM,2BAA2B;AAAA,EACtC;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AACF;AAMO,IAAK,eAAL,kBAAKA,kBAAL;AACL,EAAAA,cAAA,gBAAa;AADH,SAAAA;AAAA,GAAA;AAIL,IAAM,wBAAsD;AAAA,EACjE,CAAC,4BAAuB,GAAG;AAC7B;AA4BO,IAAK,iBAAL,kBAAKC,oBAAL;AACL,EAAAA,gBAAA,oBAAiB;AACjB,EAAAA,gBAAA,sBAAmB;AACnB,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,kBAAe;AAJL,SAAAA;AAAA,GAAA;","names":["EnumGameType","EnumGameStatus"]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mapArrayToOptions
3
- } from "./chunk-RY7AILFK.mjs";
3
+ } from "./chunk-FTEZFZZW.mjs";
4
4
  import {
5
5
  EnumFoodFlavor
6
6
  } from "./chunk-534WN2SR.mjs";
@@ -1952,4 +1952,4 @@ export {
1952
1952
  contactUsFields,
1953
1953
  partnerBasicInfoFields
1954
1954
  };
1955
- //# sourceMappingURL=chunk-3SFKWCTZ.mjs.map
1955
+ //# sourceMappingURL=chunk-OMXMDHJ3.mjs.map
@@ -43,10 +43,10 @@ import {
43
43
  vendorStallSize,
44
44
  vendorStartDateFields,
45
45
  vendorTable
46
- } from "../chunk-3SFKWCTZ.mjs";
47
- import "../chunk-RY7AILFK.mjs";
46
+ } from "../chunk-OMXMDHJ3.mjs";
47
+ import "../chunk-FTEZFZZW.mjs";
48
48
  import "../chunk-534WN2SR.mjs";
49
- import "../chunk-WYYQSPAX.mjs";
49
+ import "../chunk-LJJCZVW4.mjs";
50
50
  export {
51
51
  availableCategories,
52
52
  availableTagTypes,
@@ -105,12 +105,6 @@ type DailyClueGameData = {
105
105
  };
106
106
  streak: number;
107
107
  };
108
- type GameDataMap = {
109
- [EnumGameType.DAILY_CLUE]: DailyClueGameData;
110
- };
111
- type GameData = {
112
- [K in keyof GameDataMap]?: GameDataMap[K] | null;
113
- };
114
108
  declare enum EnumGameStatus {
115
109
  GAME_COMPLETED = "GAME_COMPLETED",
116
110
  GAME_IN_PROGRESS = "GAME_IN_PROGRESS",
@@ -123,13 +117,26 @@ type GameHistory = {
123
117
  gameType: EnumGameType;
124
118
  pointsEarned: number;
125
119
  };
120
+ type GameDataMap = {
121
+ [EnumGameType.DAILY_CLUE]: DailyClueGameData;
122
+ };
123
+ type GameDataMapType = {
124
+ [K in keyof GameDataMap]?: GameDataMap[K] | null;
125
+ };
126
+ type GameDataType = {
127
+ active: boolean;
128
+ createdAt: Date;
129
+ gameData: GameDataMapType;
130
+ gameHistory: GameHistory[] | null;
131
+ gameType: EnumGameType;
132
+ updatedAt: Date | null;
133
+ };
126
134
  type GameType = {
127
135
  _id: string;
128
136
  active: boolean;
129
137
  createdAt: Date;
130
138
  deletedAt: Date | null;
131
- gameData: GameData | null;
132
- gameHistory: GameHistory[] | null;
139
+ game: GameDataType[] | null;
133
140
  owner: OwnerType;
134
141
  points: number;
135
142
  updatedAt: Date | null;
@@ -140,4 +147,4 @@ type GameLeaderboard = {
140
147
  owner: OwnerType;
141
148
  };
142
149
 
143
- export { type BaseGame as B, type DailyClueGameData as D, EnumGameStatus as E, type GameType as G, type GameLeaderboard as a, EnumGameType as b, type GameData as c, type GameDate as d, type GameHistory as e, type GamePlacement as f, type GamePlacementClue as g, gameScreenIdentifierList as h, gameTypeToDisplayName as i };
150
+ export { type BaseGame as B, type DailyClueGameData as D, EnumGameStatus as E, type GameType as G, type GameLeaderboard as a, EnumGameType as b, type GameDataType as c, type GameDate as d, type GameHistory as e, type GamePlacement as f, type GamePlacementClue as g, gameScreenIdentifierList as h, gameTypeToDisplayName as i };
@@ -105,12 +105,6 @@ type DailyClueGameData = {
105
105
  };
106
106
  streak: number;
107
107
  };
108
- type GameDataMap = {
109
- [EnumGameType.DAILY_CLUE]: DailyClueGameData;
110
- };
111
- type GameData = {
112
- [K in keyof GameDataMap]?: GameDataMap[K] | null;
113
- };
114
108
  declare enum EnumGameStatus {
115
109
  GAME_COMPLETED = "GAME_COMPLETED",
116
110
  GAME_IN_PROGRESS = "GAME_IN_PROGRESS",
@@ -123,13 +117,26 @@ type GameHistory = {
123
117
  gameType: EnumGameType;
124
118
  pointsEarned: number;
125
119
  };
120
+ type GameDataMap = {
121
+ [EnumGameType.DAILY_CLUE]: DailyClueGameData;
122
+ };
123
+ type GameDataMapType = {
124
+ [K in keyof GameDataMap]?: GameDataMap[K] | null;
125
+ };
126
+ type GameDataType = {
127
+ active: boolean;
128
+ createdAt: Date;
129
+ gameData: GameDataMapType;
130
+ gameHistory: GameHistory[] | null;
131
+ gameType: EnumGameType;
132
+ updatedAt: Date | null;
133
+ };
126
134
  type GameType = {
127
135
  _id: string;
128
136
  active: boolean;
129
137
  createdAt: Date;
130
138
  deletedAt: Date | null;
131
- gameData: GameData | null;
132
- gameHistory: GameHistory[] | null;
139
+ game: GameDataType[] | null;
133
140
  owner: OwnerType;
134
141
  points: number;
135
142
  updatedAt: Date | null;
@@ -140,4 +147,4 @@ type GameLeaderboard = {
140
147
  owner: OwnerType;
141
148
  };
142
149
 
143
- export { type BaseGame as B, type DailyClueGameData as D, EnumGameStatus as E, type GameType as G, type GameLeaderboard as a, EnumGameType as b, type GameData as c, type GameDate as d, type GameHistory as e, type GamePlacement as f, type GamePlacementClue as g, gameScreenIdentifierList as h, gameTypeToDisplayName as i };
150
+ export { type BaseGame as B, type DailyClueGameData as D, EnumGameStatus as E, type GameType as G, type GameLeaderboard as a, EnumGameType as b, type GameDataType as c, type GameDate as d, type GameHistory as e, type GamePlacement as f, type GamePlacementClue as g, gameScreenIdentifierList as h, gameTypeToDisplayName as i };
@@ -3391,12 +3391,10 @@ var GAME_HISTORY_FIELDS_FRAGMENT = import_client55.gql`
3391
3391
  }
3392
3392
  ${GAME_DATE_FIELDS_FRAGMENT}
3393
3393
  `;
3394
- var GAME_FIELDS_FRAGMENT = import_client55.gql`
3395
- fragment GameFields on GameType {
3396
- _id
3394
+ var GAME_DATA_FIELDS_FRAGMENT = import_client55.gql`
3395
+ fragment GameDataFields on GameDataType {
3397
3396
  active
3398
3397
  createdAt
3399
- deletedAt
3400
3398
  gameData {
3401
3399
  dailyClue {
3402
3400
  ...DailyClueGameDataFields
@@ -3405,16 +3403,29 @@ var GAME_FIELDS_FRAGMENT = import_client55.gql`
3405
3403
  gameHistory {
3406
3404
  ...GameHistoryFields
3407
3405
  }
3406
+ gameType
3408
3407
  updatedAt
3408
+ }
3409
+ ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
3410
+ ${GAME_HISTORY_FIELDS_FRAGMENT}
3411
+ `;
3412
+ var GAME_FIELDS_FRAGMENT = import_client55.gql`
3413
+ fragment GameFields on GameType {
3414
+ _id
3415
+ active
3416
+ createdAt
3417
+ deletedAt
3418
+ game {
3419
+ ...GameDataFields
3420
+ }
3409
3421
  owner {
3410
3422
  ...OwnerFields
3411
3423
  }
3412
3424
  points
3425
+ updatedAt
3413
3426
  }
3414
- ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
3415
3427
  ${OWNER_FIELDS_FRAGMENT}
3416
- ${GAME_DATE_FIELDS_FRAGMENT}
3417
- ${GAME_HISTORY_FIELDS_FRAGMENT}
3428
+ ${GAME_DATA_FIELDS_FRAGMENT}
3418
3429
  `;
3419
3430
  var GET_GAMES = import_client55.gql`
3420
3431
  query getGames {