@timardex/cluemart-shared 1.5.741 → 1.5.742
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/{ad-CqfSmtG_.d.ts → ad-DTOtubs3.d.ts} +1 -1
- package/dist/{ad-sgD-lSbO.d.mts → ad-DpwV6VZX.d.mts} +1 -1
- package/dist/{chunk-7JDAKGGH.mjs → chunk-64ZADXXH.mjs} +2 -2
- package/dist/{chunk-VPYYAF3L.mjs → chunk-K5OWNJY5.mjs} +3 -3
- package/dist/chunk-K5OWNJY5.mjs.map +1 -0
- package/dist/{chunk-L5BYCXXP.mjs → chunk-KXQLOILF.mjs} +2 -2
- package/dist/{chunk-7VNXO63T.mjs → chunk-LNIT5OS3.mjs} +1 -1
- package/dist/chunk-LNIT5OS3.mjs.map +1 -0
- package/dist/{chunk-3AI2ROPT.mjs → chunk-TIXEG66V.mjs} +19 -1
- package/dist/chunk-TIXEG66V.mjs.map +1 -0
- package/dist/{contactUs-DA3p41Uq.d.ts → contactUs-BK5MKYPx.d.ts} +1 -1
- package/dist/{contactUs-B6lQQq-x.d.mts → contactUs-CRypzI-A.d.mts} +1 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/{global-BEUzBSyY.d.mts → global-q9JjONd1.d.mts} +280 -1
- package/dist/{global-585slmSH.d.ts → global-vWzQNI8w.d.ts} +280 -1
- package/dist/graphql/index.cjs +18 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -4
- package/dist/graphql/index.d.ts +3 -4
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +18 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -4
- package/dist/hooks/index.d.ts +3 -4
- package/dist/hooks/index.mjs +5 -5
- package/dist/index.cjs +19 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +904 -900
- package/dist/index.d.ts +904 -900
- package/dist/index.mjs +19 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-CZqXBve8.d.mts → resourceActivities-CpjJeH23.d.mts} +1 -1
- package/dist/{resourceActivities-CjJdhVR7.d.ts → resourceActivities-DtxRUlrT.d.ts} +1 -1
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/sharing/index.mjs +3 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +5 -6
- package/dist/types/index.d.ts +5 -6
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +1 -2
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-3AI2ROPT.mjs.map +0 -1
- package/dist/chunk-7VNXO63T.mjs.map +0 -1
- package/dist/chunk-VPYYAF3L.mjs.map +0 -1
- package/dist/post-CdLrXuH1.d.mts +0 -279
- package/dist/post-D6n4Vszs.d.ts +0 -279
- /package/dist/{chunk-7JDAKGGH.mjs.map → chunk-64ZADXXH.mjs.map} +0 -0
- /package/dist/{chunk-L5BYCXXP.mjs.map → chunk-KXQLOILF.mjs.map} +0 -0
package/dist/post-CdLrXuH1.d.mts
DELETED
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
import { EnumResourceType } from './enums/index.mjs';
|
|
2
|
-
import { z as OwnerType, Y as ResourceImageType, u as CreateFormData } from './global-BEUzBSyY.mjs';
|
|
3
|
-
|
|
4
|
-
declare enum EnumGameType {
|
|
5
|
-
DAILY_CLUE = "dailyClue",
|
|
6
|
-
MINI_QUIZ = "miniQuiz",
|
|
7
|
-
ODD_ONE_OUT = "oddOneOut"
|
|
8
|
-
}
|
|
9
|
-
type GameDate = {
|
|
10
|
-
startDate: Date;
|
|
11
|
-
endDate: Date;
|
|
12
|
-
};
|
|
13
|
-
declare const gameTypeToDisplayName: Record<EnumGameType, string>;
|
|
14
|
-
type GlobalGameData = {
|
|
15
|
-
points: number;
|
|
16
|
-
streak: number;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
declare const gameScreenIdentifierList: readonly [{
|
|
20
|
-
readonly clue: "Where your actions turn into a timeline.";
|
|
21
|
-
readonly id: "activities";
|
|
22
|
-
readonly match: "/profile/activities";
|
|
23
|
-
}, {
|
|
24
|
-
readonly clue: "Where conversations happen without speaking.";
|
|
25
|
-
readonly id: "chat";
|
|
26
|
-
readonly match: "/profile/chat";
|
|
27
|
-
}, {
|
|
28
|
-
readonly clue: "The place to redefine who you are.";
|
|
29
|
-
readonly id: "edit-profile";
|
|
30
|
-
readonly match: "/profile/edit-profile";
|
|
31
|
-
}, {
|
|
32
|
-
readonly clue: "A single moment worth showing up for.";
|
|
33
|
-
readonly id: "single-event";
|
|
34
|
-
readonly match: RegExp;
|
|
35
|
-
}, {
|
|
36
|
-
readonly clue: "What’s happening around you, right now.";
|
|
37
|
-
readonly id: "events-near-me";
|
|
38
|
-
readonly match: "/events/events-near-me";
|
|
39
|
-
}, {
|
|
40
|
-
readonly clue: "Where events appear as pins on a map.";
|
|
41
|
-
readonly id: "events-map";
|
|
42
|
-
readonly match: "/events/events-map";
|
|
43
|
-
}, {
|
|
44
|
-
readonly clue: "A collection of events worth attending.";
|
|
45
|
-
readonly id: "events";
|
|
46
|
-
readonly match: "/events";
|
|
47
|
-
}, {
|
|
48
|
-
readonly clue: "What’s happening in a wider area — not just nearby.";
|
|
49
|
-
readonly id: "events-region";
|
|
50
|
-
readonly match: RegExp;
|
|
51
|
-
}, {
|
|
52
|
-
readonly clue: "Where fun becomes a challenge.";
|
|
53
|
-
readonly id: "games";
|
|
54
|
-
readonly match: "/games";
|
|
55
|
-
}, {
|
|
56
|
-
readonly clue: "Your starting point for everything.";
|
|
57
|
-
readonly id: "home";
|
|
58
|
-
readonly match: "/";
|
|
59
|
-
}, {
|
|
60
|
-
readonly clue: "Where the app whispers what you shouldn’t miss.";
|
|
61
|
-
readonly id: "notifications";
|
|
62
|
-
readonly match: "/notifications";
|
|
63
|
-
}, {
|
|
64
|
-
readonly clue: "Where you fine-tune your experience.";
|
|
65
|
-
readonly id: "options";
|
|
66
|
-
readonly match: "/options";
|
|
67
|
-
}, {
|
|
68
|
-
readonly clue: "An organisation or creator supporting the community.";
|
|
69
|
-
readonly id: "single-partner";
|
|
70
|
-
readonly match: RegExp;
|
|
71
|
-
}, {
|
|
72
|
-
readonly clue: "Organisations and creators supporting the community.";
|
|
73
|
-
readonly id: "partners";
|
|
74
|
-
readonly match: "/partners";
|
|
75
|
-
}, {
|
|
76
|
-
readonly clue: "A single published post in full view.";
|
|
77
|
-
readonly id: "single-visitor-post";
|
|
78
|
-
readonly match: RegExp;
|
|
79
|
-
}, {
|
|
80
|
-
readonly clue: "Your identity, on display.";
|
|
81
|
-
readonly id: "profile";
|
|
82
|
-
readonly match: "/profile";
|
|
83
|
-
}, {
|
|
84
|
-
readonly clue: "One stallholder offering something valuable.";
|
|
85
|
-
readonly id: "single-vendor";
|
|
86
|
-
readonly match: RegExp;
|
|
87
|
-
}, {
|
|
88
|
-
readonly clue: "Where every stallholder waits under the right category.";
|
|
89
|
-
readonly id: "vendors";
|
|
90
|
-
readonly match: "/vendors";
|
|
91
|
-
}, {
|
|
92
|
-
readonly clue: "Where you browse articles and posts from around the platform.";
|
|
93
|
-
readonly id: "visitors";
|
|
94
|
-
readonly match: "/visitors";
|
|
95
|
-
}];
|
|
96
|
-
type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
|
|
97
|
-
type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
|
|
98
|
-
type DailyClueBaseGame = {
|
|
99
|
-
gameDate: GameDate;
|
|
100
|
-
gameSolution: string;
|
|
101
|
-
};
|
|
102
|
-
type DailyClueGameData = GlobalGameData & {
|
|
103
|
-
gameFields: DailyClueBaseGame;
|
|
104
|
-
lastFoundDate: Date | null;
|
|
105
|
-
letterInfo: {
|
|
106
|
-
collected: string[] | null;
|
|
107
|
-
solutionShuffled: string[];
|
|
108
|
-
todaysClue: GamePlacementClue | null;
|
|
109
|
-
todaysLetter: string | null;
|
|
110
|
-
todaysPlacement: GamePlacement | null;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
type PuzzleAnswer = {
|
|
115
|
-
answerId: string;
|
|
116
|
-
answer: string;
|
|
117
|
-
correct: boolean;
|
|
118
|
-
};
|
|
119
|
-
type PuzzleQuestion = {
|
|
120
|
-
answers: PuzzleAnswer[];
|
|
121
|
-
question: string;
|
|
122
|
-
questionId: string;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* Stores only the answerId and the questionId of the selected answer.
|
|
126
|
-
*/
|
|
127
|
-
type PuzzleAnsweredQuestion = {
|
|
128
|
-
selectedAnswerId: string;
|
|
129
|
-
questionId: string;
|
|
130
|
-
};
|
|
131
|
-
type PuzzleBaseGame = {
|
|
132
|
-
questions: PuzzleQuestion[];
|
|
133
|
-
};
|
|
134
|
-
type PuzzleGameData = GlobalGameData & {
|
|
135
|
-
gameFields: PuzzleBaseGame;
|
|
136
|
-
/**
|
|
137
|
-
* Stores user answers only.
|
|
138
|
-
* Never store correctness from client.
|
|
139
|
-
*/
|
|
140
|
-
answeredQuestions: PuzzleAnsweredQuestion[];
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
type BaseGameMap = {
|
|
144
|
-
[EnumGameType.DAILY_CLUE]: DailyClueBaseGame;
|
|
145
|
-
[EnumGameType.MINI_QUIZ]: PuzzleBaseGame;
|
|
146
|
-
[EnumGameType.ODD_ONE_OUT]: PuzzleBaseGame;
|
|
147
|
-
};
|
|
148
|
-
type BaseGameType = {
|
|
149
|
-
gameType: EnumGameType;
|
|
150
|
-
gameTypeId: string;
|
|
151
|
-
gameTitle: string;
|
|
152
|
-
} & {
|
|
153
|
-
[K in keyof BaseGameMap]?: BaseGameMap[K] | null;
|
|
154
|
-
};
|
|
155
|
-
declare enum EnumGameStatus {
|
|
156
|
-
GAME_COMPLETED = "GAME_COMPLETED",
|
|
157
|
-
GAME_IN_PROGRESS = "GAME_IN_PROGRESS",
|
|
158
|
-
GAME_LEFT = "GAME_LEFT",
|
|
159
|
-
GAME_STARTED = "GAME_STARTED"
|
|
160
|
-
}
|
|
161
|
-
type GameHistory = Pick<BaseGameType, "gameTitle" | "gameType" | "gameTypeId"> & {
|
|
162
|
-
createdAt: Date;
|
|
163
|
-
gameDate: GameDate;
|
|
164
|
-
gameStatus: EnumGameStatus;
|
|
165
|
-
/** Per-event delta. Not persisted for overallGamePoints (computed at read time). */
|
|
166
|
-
pointsEarned: number;
|
|
167
|
-
/** Running total for this game instance; computed at read time, not stored in Mongo. */
|
|
168
|
-
overallGamePoints?: number;
|
|
169
|
-
};
|
|
170
|
-
type GameDataMap = {
|
|
171
|
-
[EnumGameType.DAILY_CLUE]: DailyClueGameData;
|
|
172
|
-
[EnumGameType.MINI_QUIZ]: PuzzleGameData;
|
|
173
|
-
[EnumGameType.ODD_ONE_OUT]: PuzzleGameData;
|
|
174
|
-
};
|
|
175
|
-
type GameDataType = {
|
|
176
|
-
[K in keyof GameDataMap]?: GameDataMap[K] | null;
|
|
177
|
-
};
|
|
178
|
-
type GameType = Pick<BaseGameType, "gameTitle" | "gameType" | "gameTypeId"> & {
|
|
179
|
-
_id: string;
|
|
180
|
-
active: boolean;
|
|
181
|
-
createdAt: Date;
|
|
182
|
-
gameData: GameDataType;
|
|
183
|
-
gameHistory: GameHistory[] | null;
|
|
184
|
-
updatedAt: Date | null;
|
|
185
|
-
};
|
|
186
|
-
type GameDocType = {
|
|
187
|
-
_id: string;
|
|
188
|
-
active: boolean;
|
|
189
|
-
createdAt: Date;
|
|
190
|
-
deletedAt: Date | null;
|
|
191
|
-
games: GameType[] | null;
|
|
192
|
-
owner: OwnerType;
|
|
193
|
-
points: number;
|
|
194
|
-
updatedAt: Date | null;
|
|
195
|
-
};
|
|
196
|
-
type GameLeaderboard = {
|
|
197
|
-
gameHistory: GameHistory[] | null;
|
|
198
|
-
overallPoints: number;
|
|
199
|
-
owner: OwnerType;
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
declare enum EnumPostType {
|
|
203
|
-
MARKET_FACES = "market_faces",
|
|
204
|
-
CLUE_BITES = "clue_bites",
|
|
205
|
-
PLAY_AND_WIN = "play_and_win"
|
|
206
|
-
}
|
|
207
|
-
declare enum EnumPostContentType {
|
|
208
|
-
GAME = "game",
|
|
209
|
-
IMAGE = "image",
|
|
210
|
-
LIST = "list",
|
|
211
|
-
TEXTAREA = "textarea",
|
|
212
|
-
VIDEO = "video"
|
|
213
|
-
}
|
|
214
|
-
type PostFileInput = {
|
|
215
|
-
source: File;
|
|
216
|
-
title?: string;
|
|
217
|
-
};
|
|
218
|
-
type PostContentTextarea = {
|
|
219
|
-
textarea: {
|
|
220
|
-
title?: string;
|
|
221
|
-
data: string;
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
type PostContentImage = {
|
|
225
|
-
images: ResourceImageType[] | null;
|
|
226
|
-
imagesUpload?: PostFileInput[] | null;
|
|
227
|
-
};
|
|
228
|
-
type PostContentVideo = {
|
|
229
|
-
video: {
|
|
230
|
-
source: string;
|
|
231
|
-
title?: string;
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
type PostContentList = {
|
|
235
|
-
list: {
|
|
236
|
-
title?: string;
|
|
237
|
-
items: {
|
|
238
|
-
text: string;
|
|
239
|
-
}[];
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
type PostContentGame = {
|
|
243
|
-
game: BaseGameType;
|
|
244
|
-
};
|
|
245
|
-
type PostContentData = PostContentGame | PostContentTextarea | PostContentImage | PostContentVideo | PostContentList;
|
|
246
|
-
type PostContentFormData = {
|
|
247
|
-
contentData?: PostContentData | null;
|
|
248
|
-
contentOrder?: number | null;
|
|
249
|
-
contentType?: EnumPostContentType | null;
|
|
250
|
-
};
|
|
251
|
-
interface PostFormData {
|
|
252
|
-
active: boolean;
|
|
253
|
-
caption: string;
|
|
254
|
-
content: PostContentFormData[];
|
|
255
|
-
cover?: ResourceImageType | null;
|
|
256
|
-
coverUpload?: PostFileInput | null;
|
|
257
|
-
postType: EnumPostType;
|
|
258
|
-
resource?: {
|
|
259
|
-
resourceId: string;
|
|
260
|
-
resourceType: EnumResourceType;
|
|
261
|
-
resourceRegion: string;
|
|
262
|
-
} | null;
|
|
263
|
-
tags?: string[] | null;
|
|
264
|
-
title: string;
|
|
265
|
-
notifyUsers?: boolean | null;
|
|
266
|
-
}
|
|
267
|
-
type CreatePostFormData = CreateFormData<PostFormData>;
|
|
268
|
-
type PostContentType = Omit<PostContentFormData, "contentData"> & {
|
|
269
|
-
contentData: Omit<PostContentData, "imagesUpload">;
|
|
270
|
-
};
|
|
271
|
-
type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
|
|
272
|
-
_id: string;
|
|
273
|
-
content: PostContentType[];
|
|
274
|
-
createdAt: Date;
|
|
275
|
-
deletedAt: Date | null;
|
|
276
|
-
updatedAt: Date | null;
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
export { type PuzzleQuestion as A, type BaseGameMap as B, type CreatePostFormData as C, type DailyClueBaseGame as D, EnumPostType as E, gameScreenIdentifierList as F, type GameDocType as G, gameTypeToDisplayName as H, type PostType as P, type GameLeaderboard as a, type PostFormData as b, type BaseGameType as c, type DailyClueGameData as d, EnumGameStatus as e, EnumGameType as f, EnumPostContentType as g, type GameDate as h, type GameHistory as i, type GamePlacement as j, type GamePlacementClue as k, type GameType as l, type GlobalGameData as m, type PostContentData as n, type PostContentFormData as o, type PostContentGame as p, type PostContentImage as q, type PostContentList as r, type PostContentTextarea as s, type PostContentType as t, type PostContentVideo as u, type PostFileInput as v, type PuzzleAnswer as w, type PuzzleAnsweredQuestion as x, type PuzzleBaseGame as y, type PuzzleGameData as z };
|
package/dist/post-D6n4Vszs.d.ts
DELETED
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
import { EnumResourceType } from './enums/index.js';
|
|
2
|
-
import { z as OwnerType, Y as ResourceImageType, u as CreateFormData } from './global-585slmSH.js';
|
|
3
|
-
|
|
4
|
-
declare enum EnumGameType {
|
|
5
|
-
DAILY_CLUE = "dailyClue",
|
|
6
|
-
MINI_QUIZ = "miniQuiz",
|
|
7
|
-
ODD_ONE_OUT = "oddOneOut"
|
|
8
|
-
}
|
|
9
|
-
type GameDate = {
|
|
10
|
-
startDate: Date;
|
|
11
|
-
endDate: Date;
|
|
12
|
-
};
|
|
13
|
-
declare const gameTypeToDisplayName: Record<EnumGameType, string>;
|
|
14
|
-
type GlobalGameData = {
|
|
15
|
-
points: number;
|
|
16
|
-
streak: number;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
declare const gameScreenIdentifierList: readonly [{
|
|
20
|
-
readonly clue: "Where your actions turn into a timeline.";
|
|
21
|
-
readonly id: "activities";
|
|
22
|
-
readonly match: "/profile/activities";
|
|
23
|
-
}, {
|
|
24
|
-
readonly clue: "Where conversations happen without speaking.";
|
|
25
|
-
readonly id: "chat";
|
|
26
|
-
readonly match: "/profile/chat";
|
|
27
|
-
}, {
|
|
28
|
-
readonly clue: "The place to redefine who you are.";
|
|
29
|
-
readonly id: "edit-profile";
|
|
30
|
-
readonly match: "/profile/edit-profile";
|
|
31
|
-
}, {
|
|
32
|
-
readonly clue: "A single moment worth showing up for.";
|
|
33
|
-
readonly id: "single-event";
|
|
34
|
-
readonly match: RegExp;
|
|
35
|
-
}, {
|
|
36
|
-
readonly clue: "What’s happening around you, right now.";
|
|
37
|
-
readonly id: "events-near-me";
|
|
38
|
-
readonly match: "/events/events-near-me";
|
|
39
|
-
}, {
|
|
40
|
-
readonly clue: "Where events appear as pins on a map.";
|
|
41
|
-
readonly id: "events-map";
|
|
42
|
-
readonly match: "/events/events-map";
|
|
43
|
-
}, {
|
|
44
|
-
readonly clue: "A collection of events worth attending.";
|
|
45
|
-
readonly id: "events";
|
|
46
|
-
readonly match: "/events";
|
|
47
|
-
}, {
|
|
48
|
-
readonly clue: "What’s happening in a wider area — not just nearby.";
|
|
49
|
-
readonly id: "events-region";
|
|
50
|
-
readonly match: RegExp;
|
|
51
|
-
}, {
|
|
52
|
-
readonly clue: "Where fun becomes a challenge.";
|
|
53
|
-
readonly id: "games";
|
|
54
|
-
readonly match: "/games";
|
|
55
|
-
}, {
|
|
56
|
-
readonly clue: "Your starting point for everything.";
|
|
57
|
-
readonly id: "home";
|
|
58
|
-
readonly match: "/";
|
|
59
|
-
}, {
|
|
60
|
-
readonly clue: "Where the app whispers what you shouldn’t miss.";
|
|
61
|
-
readonly id: "notifications";
|
|
62
|
-
readonly match: "/notifications";
|
|
63
|
-
}, {
|
|
64
|
-
readonly clue: "Where you fine-tune your experience.";
|
|
65
|
-
readonly id: "options";
|
|
66
|
-
readonly match: "/options";
|
|
67
|
-
}, {
|
|
68
|
-
readonly clue: "An organisation or creator supporting the community.";
|
|
69
|
-
readonly id: "single-partner";
|
|
70
|
-
readonly match: RegExp;
|
|
71
|
-
}, {
|
|
72
|
-
readonly clue: "Organisations and creators supporting the community.";
|
|
73
|
-
readonly id: "partners";
|
|
74
|
-
readonly match: "/partners";
|
|
75
|
-
}, {
|
|
76
|
-
readonly clue: "A single published post in full view.";
|
|
77
|
-
readonly id: "single-visitor-post";
|
|
78
|
-
readonly match: RegExp;
|
|
79
|
-
}, {
|
|
80
|
-
readonly clue: "Your identity, on display.";
|
|
81
|
-
readonly id: "profile";
|
|
82
|
-
readonly match: "/profile";
|
|
83
|
-
}, {
|
|
84
|
-
readonly clue: "One stallholder offering something valuable.";
|
|
85
|
-
readonly id: "single-vendor";
|
|
86
|
-
readonly match: RegExp;
|
|
87
|
-
}, {
|
|
88
|
-
readonly clue: "Where every stallholder waits under the right category.";
|
|
89
|
-
readonly id: "vendors";
|
|
90
|
-
readonly match: "/vendors";
|
|
91
|
-
}, {
|
|
92
|
-
readonly clue: "Where you browse articles and posts from around the platform.";
|
|
93
|
-
readonly id: "visitors";
|
|
94
|
-
readonly match: "/visitors";
|
|
95
|
-
}];
|
|
96
|
-
type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
|
|
97
|
-
type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
|
|
98
|
-
type DailyClueBaseGame = {
|
|
99
|
-
gameDate: GameDate;
|
|
100
|
-
gameSolution: string;
|
|
101
|
-
};
|
|
102
|
-
type DailyClueGameData = GlobalGameData & {
|
|
103
|
-
gameFields: DailyClueBaseGame;
|
|
104
|
-
lastFoundDate: Date | null;
|
|
105
|
-
letterInfo: {
|
|
106
|
-
collected: string[] | null;
|
|
107
|
-
solutionShuffled: string[];
|
|
108
|
-
todaysClue: GamePlacementClue | null;
|
|
109
|
-
todaysLetter: string | null;
|
|
110
|
-
todaysPlacement: GamePlacement | null;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
type PuzzleAnswer = {
|
|
115
|
-
answerId: string;
|
|
116
|
-
answer: string;
|
|
117
|
-
correct: boolean;
|
|
118
|
-
};
|
|
119
|
-
type PuzzleQuestion = {
|
|
120
|
-
answers: PuzzleAnswer[];
|
|
121
|
-
question: string;
|
|
122
|
-
questionId: string;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* Stores only the answerId and the questionId of the selected answer.
|
|
126
|
-
*/
|
|
127
|
-
type PuzzleAnsweredQuestion = {
|
|
128
|
-
selectedAnswerId: string;
|
|
129
|
-
questionId: string;
|
|
130
|
-
};
|
|
131
|
-
type PuzzleBaseGame = {
|
|
132
|
-
questions: PuzzleQuestion[];
|
|
133
|
-
};
|
|
134
|
-
type PuzzleGameData = GlobalGameData & {
|
|
135
|
-
gameFields: PuzzleBaseGame;
|
|
136
|
-
/**
|
|
137
|
-
* Stores user answers only.
|
|
138
|
-
* Never store correctness from client.
|
|
139
|
-
*/
|
|
140
|
-
answeredQuestions: PuzzleAnsweredQuestion[];
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
type BaseGameMap = {
|
|
144
|
-
[EnumGameType.DAILY_CLUE]: DailyClueBaseGame;
|
|
145
|
-
[EnumGameType.MINI_QUIZ]: PuzzleBaseGame;
|
|
146
|
-
[EnumGameType.ODD_ONE_OUT]: PuzzleBaseGame;
|
|
147
|
-
};
|
|
148
|
-
type BaseGameType = {
|
|
149
|
-
gameType: EnumGameType;
|
|
150
|
-
gameTypeId: string;
|
|
151
|
-
gameTitle: string;
|
|
152
|
-
} & {
|
|
153
|
-
[K in keyof BaseGameMap]?: BaseGameMap[K] | null;
|
|
154
|
-
};
|
|
155
|
-
declare enum EnumGameStatus {
|
|
156
|
-
GAME_COMPLETED = "GAME_COMPLETED",
|
|
157
|
-
GAME_IN_PROGRESS = "GAME_IN_PROGRESS",
|
|
158
|
-
GAME_LEFT = "GAME_LEFT",
|
|
159
|
-
GAME_STARTED = "GAME_STARTED"
|
|
160
|
-
}
|
|
161
|
-
type GameHistory = Pick<BaseGameType, "gameTitle" | "gameType" | "gameTypeId"> & {
|
|
162
|
-
createdAt: Date;
|
|
163
|
-
gameDate: GameDate;
|
|
164
|
-
gameStatus: EnumGameStatus;
|
|
165
|
-
/** Per-event delta. Not persisted for overallGamePoints (computed at read time). */
|
|
166
|
-
pointsEarned: number;
|
|
167
|
-
/** Running total for this game instance; computed at read time, not stored in Mongo. */
|
|
168
|
-
overallGamePoints?: number;
|
|
169
|
-
};
|
|
170
|
-
type GameDataMap = {
|
|
171
|
-
[EnumGameType.DAILY_CLUE]: DailyClueGameData;
|
|
172
|
-
[EnumGameType.MINI_QUIZ]: PuzzleGameData;
|
|
173
|
-
[EnumGameType.ODD_ONE_OUT]: PuzzleGameData;
|
|
174
|
-
};
|
|
175
|
-
type GameDataType = {
|
|
176
|
-
[K in keyof GameDataMap]?: GameDataMap[K] | null;
|
|
177
|
-
};
|
|
178
|
-
type GameType = Pick<BaseGameType, "gameTitle" | "gameType" | "gameTypeId"> & {
|
|
179
|
-
_id: string;
|
|
180
|
-
active: boolean;
|
|
181
|
-
createdAt: Date;
|
|
182
|
-
gameData: GameDataType;
|
|
183
|
-
gameHistory: GameHistory[] | null;
|
|
184
|
-
updatedAt: Date | null;
|
|
185
|
-
};
|
|
186
|
-
type GameDocType = {
|
|
187
|
-
_id: string;
|
|
188
|
-
active: boolean;
|
|
189
|
-
createdAt: Date;
|
|
190
|
-
deletedAt: Date | null;
|
|
191
|
-
games: GameType[] | null;
|
|
192
|
-
owner: OwnerType;
|
|
193
|
-
points: number;
|
|
194
|
-
updatedAt: Date | null;
|
|
195
|
-
};
|
|
196
|
-
type GameLeaderboard = {
|
|
197
|
-
gameHistory: GameHistory[] | null;
|
|
198
|
-
overallPoints: number;
|
|
199
|
-
owner: OwnerType;
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
declare enum EnumPostType {
|
|
203
|
-
MARKET_FACES = "market_faces",
|
|
204
|
-
CLUE_BITES = "clue_bites",
|
|
205
|
-
PLAY_AND_WIN = "play_and_win"
|
|
206
|
-
}
|
|
207
|
-
declare enum EnumPostContentType {
|
|
208
|
-
GAME = "game",
|
|
209
|
-
IMAGE = "image",
|
|
210
|
-
LIST = "list",
|
|
211
|
-
TEXTAREA = "textarea",
|
|
212
|
-
VIDEO = "video"
|
|
213
|
-
}
|
|
214
|
-
type PostFileInput = {
|
|
215
|
-
source: File;
|
|
216
|
-
title?: string;
|
|
217
|
-
};
|
|
218
|
-
type PostContentTextarea = {
|
|
219
|
-
textarea: {
|
|
220
|
-
title?: string;
|
|
221
|
-
data: string;
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
type PostContentImage = {
|
|
225
|
-
images: ResourceImageType[] | null;
|
|
226
|
-
imagesUpload?: PostFileInput[] | null;
|
|
227
|
-
};
|
|
228
|
-
type PostContentVideo = {
|
|
229
|
-
video: {
|
|
230
|
-
source: string;
|
|
231
|
-
title?: string;
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
type PostContentList = {
|
|
235
|
-
list: {
|
|
236
|
-
title?: string;
|
|
237
|
-
items: {
|
|
238
|
-
text: string;
|
|
239
|
-
}[];
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
type PostContentGame = {
|
|
243
|
-
game: BaseGameType;
|
|
244
|
-
};
|
|
245
|
-
type PostContentData = PostContentGame | PostContentTextarea | PostContentImage | PostContentVideo | PostContentList;
|
|
246
|
-
type PostContentFormData = {
|
|
247
|
-
contentData?: PostContentData | null;
|
|
248
|
-
contentOrder?: number | null;
|
|
249
|
-
contentType?: EnumPostContentType | null;
|
|
250
|
-
};
|
|
251
|
-
interface PostFormData {
|
|
252
|
-
active: boolean;
|
|
253
|
-
caption: string;
|
|
254
|
-
content: PostContentFormData[];
|
|
255
|
-
cover?: ResourceImageType | null;
|
|
256
|
-
coverUpload?: PostFileInput | null;
|
|
257
|
-
postType: EnumPostType;
|
|
258
|
-
resource?: {
|
|
259
|
-
resourceId: string;
|
|
260
|
-
resourceType: EnumResourceType;
|
|
261
|
-
resourceRegion: string;
|
|
262
|
-
} | null;
|
|
263
|
-
tags?: string[] | null;
|
|
264
|
-
title: string;
|
|
265
|
-
notifyUsers?: boolean | null;
|
|
266
|
-
}
|
|
267
|
-
type CreatePostFormData = CreateFormData<PostFormData>;
|
|
268
|
-
type PostContentType = Omit<PostContentFormData, "contentData"> & {
|
|
269
|
-
contentData: Omit<PostContentData, "imagesUpload">;
|
|
270
|
-
};
|
|
271
|
-
type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
|
|
272
|
-
_id: string;
|
|
273
|
-
content: PostContentType[];
|
|
274
|
-
createdAt: Date;
|
|
275
|
-
deletedAt: Date | null;
|
|
276
|
-
updatedAt: Date | null;
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
export { type PuzzleQuestion as A, type BaseGameMap as B, type CreatePostFormData as C, type DailyClueBaseGame as D, EnumPostType as E, gameScreenIdentifierList as F, type GameDocType as G, gameTypeToDisplayName as H, type PostType as P, type GameLeaderboard as a, type PostFormData as b, type BaseGameType as c, type DailyClueGameData as d, EnumGameStatus as e, EnumGameType as f, EnumPostContentType as g, type GameDate as h, type GameHistory as i, type GamePlacement as j, type GamePlacementClue as k, type GameType as l, type GlobalGameData as m, type PostContentData as n, type PostContentFormData as o, type PostContentGame as p, type PostContentImage as q, type PostContentList as r, type PostContentTextarea as s, type PostContentType as t, type PostContentVideo as u, type PostFileInput as v, type PuzzleAnswer as w, type PuzzleAnsweredQuestion as x, type PuzzleBaseGame as y, type PuzzleGameData as z };
|
|
File without changes
|
|
File without changes
|