@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.
- package/dist/{chunk-CRZP6KYI.mjs → chunk-IMTMBZI7.mjs} +2 -2
- package/dist/{chunk-CPT4WZKU.mjs → chunk-L74HNX7U.mjs} +5 -5
- package/dist/chunk-L74HNX7U.mjs.map +1 -0
- package/dist/{chunk-LOABFNIJ.mjs → chunk-SBY5HTAP.mjs} +3 -20
- package/dist/chunk-SBY5HTAP.mjs.map +1 -0
- package/dist/{chunk-FICQ3PR5.mjs → chunk-UNLBGUZ6.mjs} +24 -2
- package/dist/chunk-UNLBGUZ6.mjs.map +1 -0
- package/dist/{chunk-UBAAAYJY.mjs → chunk-VG2GTCY7.mjs} +16 -8
- package/dist/{chunk-UBAAAYJY.mjs.map → chunk-VG2GTCY7.mjs.map} +1 -1
- package/dist/{game-1CSiEjlf.d.ts → dailyClue-BFo8YN7B.d.mts} +18 -61
- package/dist/{game-BPtE3yaQ.d.mts → dailyClue-BFo8YN7B.d.ts} +18 -61
- package/dist/formFields/index.cjs +1 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +15 -7
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +16 -8
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.mjs +5 -5
- package/dist/index.cjs +38 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +28 -18
- package/dist/index.d.ts +28 -18
- package/dist/index.mjs +38 -25
- package/dist/index.mjs.map +1 -1
- package/dist/{post-Lc5PrxY6.d.ts → post-DWRt-yGc.d.ts} +55 -4
- package/dist/{post-CY53UsA7.d.mts → post-DsOgFGgJ.d.mts} +55 -4
- package/dist/types/index.cjs +13 -8
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.mjs +7 -7
- package/dist/utils/index.cjs +4 -4
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-CPT4WZKU.mjs.map +0 -1
- package/dist/chunk-FICQ3PR5.mjs.map +0 -1
- package/dist/chunk-LOABFNIJ.mjs.map +0 -1
- /package/dist/{chunk-CRZP6KYI.mjs.map → chunk-IMTMBZI7.mjs.map} +0 -0
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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:
|
|
93
|
+
type DailyClueGameData = GlobalGameData & {
|
|
94
|
+
gameFields: DailyClueBaseGame;
|
|
93
95
|
lastFoundDate: Date | null;
|
|
94
|
-
points: number;
|
|
95
96
|
letterInfo: {
|
|
96
97
|
collected: string[] | null;
|
|
97
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
93
|
+
type DailyClueGameData = GlobalGameData & {
|
|
94
|
+
gameFields: DailyClueBaseGame;
|
|
93
95
|
lastFoundDate: Date | null;
|
|
94
|
-
points: number;
|
|
95
96
|
letterInfo: {
|
|
96
97
|
collected: string[] | null;
|
|
97
|
-
|
|
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
|
|
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 = [
|