@timardex/cluemart-shared 1.5.550 → 1.5.552

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 (47) hide show
  1. package/dist/{chunk-CRZP6KYI.mjs → chunk-IMTMBZI7.mjs} +2 -2
  2. package/dist/{chunk-CPT4WZKU.mjs → chunk-L74HNX7U.mjs} +5 -5
  3. package/dist/chunk-L74HNX7U.mjs.map +1 -0
  4. package/dist/{chunk-LOABFNIJ.mjs → chunk-SBY5HTAP.mjs} +3 -20
  5. package/dist/chunk-SBY5HTAP.mjs.map +1 -0
  6. package/dist/{chunk-FICQ3PR5.mjs → chunk-UNLBGUZ6.mjs} +24 -2
  7. package/dist/chunk-UNLBGUZ6.mjs.map +1 -0
  8. package/dist/{chunk-UBAAAYJY.mjs → chunk-VG2GTCY7.mjs} +16 -8
  9. package/dist/{chunk-UBAAAYJY.mjs.map → chunk-VG2GTCY7.mjs.map} +1 -1
  10. package/dist/{game-1CSiEjlf.d.ts → dailyClue-BFo8YN7B.d.mts} +18 -61
  11. package/dist/{game-BPtE3yaQ.d.mts → dailyClue-BFo8YN7B.d.ts} +18 -61
  12. package/dist/formFields/index.cjs +1 -1
  13. package/dist/formFields/index.cjs.map +1 -1
  14. package/dist/formFields/index.mjs +3 -3
  15. package/dist/graphql/index.cjs +15 -7
  16. package/dist/graphql/index.cjs.map +1 -1
  17. package/dist/graphql/index.d.mts +2 -2
  18. package/dist/graphql/index.d.ts +2 -2
  19. package/dist/graphql/index.mjs +1 -1
  20. package/dist/hooks/index.cjs +16 -8
  21. package/dist/hooks/index.cjs.map +1 -1
  22. package/dist/hooks/index.d.mts +2 -2
  23. package/dist/hooks/index.d.ts +2 -2
  24. package/dist/hooks/index.mjs +5 -5
  25. package/dist/index.cjs +38 -25
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +28 -18
  28. package/dist/index.d.ts +28 -18
  29. package/dist/index.mjs +38 -25
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/{post-Lc5PrxY6.d.ts → post-DWRt-yGc.d.ts} +55 -4
  32. package/dist/{post-CY53UsA7.d.mts → post-DsOgFGgJ.d.mts} +55 -4
  33. package/dist/types/index.cjs +13 -8
  34. package/dist/types/index.cjs.map +1 -1
  35. package/dist/types/index.d.mts +2 -2
  36. package/dist/types/index.d.ts +2 -2
  37. package/dist/types/index.mjs +7 -7
  38. package/dist/utils/index.cjs +4 -4
  39. package/dist/utils/index.cjs.map +1 -1
  40. package/dist/utils/index.d.mts +1 -1
  41. package/dist/utils/index.d.ts +1 -1
  42. package/dist/utils/index.mjs +2 -2
  43. package/package.json +1 -1
  44. package/dist/chunk-CPT4WZKU.mjs.map +0 -1
  45. package/dist/chunk-FICQ3PR5.mjs.map +0 -1
  46. package/dist/chunk-LOABFNIJ.mjs.map +0 -1
  47. /package/dist/{chunk-CRZP6KYI.mjs.map → chunk-IMTMBZI7.mjs.map} +0 -0
@@ -1,4 +1,15 @@
1
- import { y as OwnerType } from './global-CDqmjLH1.js';
1
+ declare enum EnumGameType {
2
+ DAILY_CLUE = "dailyClue"
3
+ }
4
+ type GameDate = {
5
+ startDate: Date;
6
+ endDate: Date;
7
+ };
8
+ declare const gameTypeToDisplayName: Record<EnumGameType, string>;
9
+ type GlobalGameData = {
10
+ points: number;
11
+ streak: number;
12
+ };
2
13
 
3
14
  declare const gameScreenIdentifierList: readonly [{
4
15
  readonly clue: "Where your actions turn into a timeline.";
@@ -75,74 +86,20 @@ declare const gameScreenIdentifierList: readonly [{
75
86
  }];
76
87
  type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
77
88
  type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
78
- declare enum EnumGameType {
79
- DAILY_CLUE = "dailyClue"
80
- }
81
- declare const gameTypeToDisplayName: Record<EnumGameType, string>;
82
- type GameDate = {
83
- startDate: Date;
84
- endDate: Date;
85
- };
86
- type BaseGame = {
89
+ type DailyClueBaseGame = {
87
90
  gameDate: GameDate;
88
91
  gameSolution: string;
89
- gameType: EnumGameType;
90
92
  };
91
- type DailyClueGameData = {
92
- gameFields: BaseGame;
93
+ type DailyClueGameData = GlobalGameData & {
94
+ gameFields: DailyClueBaseGame;
93
95
  lastFoundDate: Date | null;
94
- points: number;
95
96
  letterInfo: {
96
97
  collected: string[] | null;
97
- shuffled: string[];
98
- todaysLetter: string | null;
98
+ solutionShuffled: string[];
99
99
  todaysClue: GamePlacementClue | null;
100
+ todaysLetter: string | null;
100
101
  todaysPlacement: GamePlacement | null;
101
102
  };
102
- streak: number;
103
- };
104
- declare enum EnumGameStatus {
105
- GAME_COMPLETED = "GAME_COMPLETED",
106
- GAME_IN_PROGRESS = "GAME_IN_PROGRESS",
107
- GAME_LEFT = "GAME_LEFT",
108
- GAME_STARTED = "GAME_STARTED"
109
- }
110
- type GameHistory = {
111
- createdAt: Date;
112
- gameDate: GameDate;
113
- gameStatus: EnumGameStatus;
114
- gameType: EnumGameType;
115
- pointsEarned: number;
116
- };
117
- type GameDataMap = {
118
- [EnumGameType.DAILY_CLUE]: DailyClueGameData;
119
- };
120
- type GameDataType = {
121
- [K in keyof GameDataMap]?: GameDataMap[K] | null;
122
- };
123
- type GameType = {
124
- _id: string;
125
- active: boolean;
126
- createdAt: Date;
127
- gameData: GameDataType;
128
- gameHistory: GameHistory[] | null;
129
- gameType: EnumGameType;
130
- updatedAt: Date | null;
131
- };
132
- type GameDocType = {
133
- _id: string;
134
- active: boolean;
135
- createdAt: Date;
136
- deletedAt: Date | null;
137
- games: GameType[] | null;
138
- owner: OwnerType;
139
- points: number;
140
- updatedAt: Date | null;
141
- };
142
- type GameLeaderboard = {
143
- gameHistory: GameHistory[] | null;
144
- overallPoints: number;
145
- owner: OwnerType;
146
103
  };
147
104
 
148
- export { type BaseGame as B, type DailyClueGameData as D, EnumGameStatus as E, type GameDocType as G, type GameLeaderboard as a, EnumGameType as b, type GameDate as c, type GameHistory as d, type GamePlacement as e, type GamePlacementClue as f, type GameType as g, gameScreenIdentifierList as h, gameTypeToDisplayName as i };
105
+ export { type DailyClueBaseGame as D, EnumGameType as E, type GameDate as G, type DailyClueGameData as a, type GamePlacement as b, type GamePlacementClue as c, type GlobalGameData as d, gameTypeToDisplayName as e, gameScreenIdentifierList as g };
@@ -1,4 +1,15 @@
1
- import { y as OwnerType } from './global-ClbRuePq.mjs';
1
+ declare enum EnumGameType {
2
+ DAILY_CLUE = "dailyClue"
3
+ }
4
+ type GameDate = {
5
+ startDate: Date;
6
+ endDate: Date;
7
+ };
8
+ declare const gameTypeToDisplayName: Record<EnumGameType, string>;
9
+ type GlobalGameData = {
10
+ points: number;
11
+ streak: number;
12
+ };
2
13
 
3
14
  declare const gameScreenIdentifierList: readonly [{
4
15
  readonly clue: "Where your actions turn into a timeline.";
@@ -75,74 +86,20 @@ declare const gameScreenIdentifierList: readonly [{
75
86
  }];
76
87
  type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
77
88
  type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
78
- declare enum EnumGameType {
79
- DAILY_CLUE = "dailyClue"
80
- }
81
- declare const gameTypeToDisplayName: Record<EnumGameType, string>;
82
- type GameDate = {
83
- startDate: Date;
84
- endDate: Date;
85
- };
86
- type BaseGame = {
89
+ type DailyClueBaseGame = {
87
90
  gameDate: GameDate;
88
91
  gameSolution: string;
89
- gameType: EnumGameType;
90
92
  };
91
- type DailyClueGameData = {
92
- gameFields: BaseGame;
93
+ type DailyClueGameData = GlobalGameData & {
94
+ gameFields: DailyClueBaseGame;
93
95
  lastFoundDate: Date | null;
94
- points: number;
95
96
  letterInfo: {
96
97
  collected: string[] | null;
97
- shuffled: string[];
98
- todaysLetter: string | null;
98
+ solutionShuffled: string[];
99
99
  todaysClue: GamePlacementClue | null;
100
+ todaysLetter: string | null;
100
101
  todaysPlacement: GamePlacement | null;
101
102
  };
102
- streak: number;
103
- };
104
- declare enum EnumGameStatus {
105
- GAME_COMPLETED = "GAME_COMPLETED",
106
- GAME_IN_PROGRESS = "GAME_IN_PROGRESS",
107
- GAME_LEFT = "GAME_LEFT",
108
- GAME_STARTED = "GAME_STARTED"
109
- }
110
- type GameHistory = {
111
- createdAt: Date;
112
- gameDate: GameDate;
113
- gameStatus: EnumGameStatus;
114
- gameType: EnumGameType;
115
- pointsEarned: number;
116
- };
117
- type GameDataMap = {
118
- [EnumGameType.DAILY_CLUE]: DailyClueGameData;
119
- };
120
- type GameDataType = {
121
- [K in keyof GameDataMap]?: GameDataMap[K] | null;
122
- };
123
- type GameType = {
124
- _id: string;
125
- active: boolean;
126
- createdAt: Date;
127
- gameData: GameDataType;
128
- gameHistory: GameHistory[] | null;
129
- gameType: EnumGameType;
130
- updatedAt: Date | null;
131
- };
132
- type GameDocType = {
133
- _id: string;
134
- active: boolean;
135
- createdAt: Date;
136
- deletedAt: Date | null;
137
- games: GameType[] | null;
138
- owner: OwnerType;
139
- points: number;
140
- updatedAt: Date | null;
141
- };
142
- type GameLeaderboard = {
143
- gameHistory: GameHistory[] | null;
144
- overallPoints: number;
145
- owner: OwnerType;
146
103
  };
147
104
 
148
- export { type BaseGame as B, type DailyClueGameData as D, EnumGameStatus as E, type GameDocType as G, type GameLeaderboard as a, EnumGameType as b, type GameDate as c, type GameHistory as d, type GamePlacement as e, type GamePlacementClue as f, type GameType as g, gameScreenIdentifierList as h, gameTypeToDisplayName as i };
105
+ export { type DailyClueBaseGame as D, EnumGameType as E, type GameDate as G, type DailyClueGameData as a, type GamePlacement as b, type GamePlacementClue as c, type GlobalGameData as d, gameTypeToDisplayName as e, gameScreenIdentifierList as g };
@@ -324,7 +324,7 @@ var EnumRegions = /* @__PURE__ */ ((EnumRegions2) => {
324
324
  return EnumRegions2;
325
325
  })(EnumRegions || {});
326
326
 
327
- // src/types/game.ts
327
+ // src/types/game/dailyClue.ts
328
328
  var OBJECT_ID_PATH_SEGMENT = "[a-f0-9]{24}";
329
329
  var OBJECT_ID_PATH_SEGMENT_END = `${OBJECT_ID_PATH_SEGMENT}$`;
330
330
  var gameScreenIdentifierList = [