@timardex/cluemart-shared 1.5.511 → 1.5.512
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-LJJCZVW4.mjs → chunk-TZBKOYFM.mjs} +1 -1
- package/dist/{chunk-LJJCZVW4.mjs.map → chunk-TZBKOYFM.mjs.map} +1 -1
- package/dist/{chunk-FTEZFZZW.mjs → chunk-U3RFZUPB.mjs} +2 -2
- package/dist/{chunk-2GSMGPKT.mjs → chunk-YHE6M5DD.mjs} +24 -18
- package/dist/{chunk-2GSMGPKT.mjs.map → chunk-YHE6M5DD.mjs.map} +1 -1
- package/dist/{chunk-OMXMDHJ3.mjs → chunk-Z6YIR3MO.mjs} +2 -2
- package/dist/formFields/index.mjs +3 -3
- package/dist/{game-PMt_jT_7.d.ts → game-BkJDVMMI.d.ts} +6 -6
- package/dist/{game-65XFYqKi.d.mts → game-BunlgBR3.d.mts} +6 -6
- package/dist/graphql/index.cjs +23 -17
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +10 -10
- package/dist/graphql/index.d.ts +10 -10
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +23 -17
- 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 +4 -4
- package/dist/index.cjs +23 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.mjs +23 -17
- package/dist/index.mjs.map +1 -1
- package/dist/{post-fnGzMU9c.d.ts → post-CdBp2FwH.d.ts} +1 -1
- package/dist/{post-BJHPePwy.d.mts → post-DHlHtpG9.d.mts} +1 -1
- 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 +1 -1
- 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-FTEZFZZW.mjs.map → chunk-U3RFZUPB.mjs.map} +0 -0
- /package/dist/{chunk-OMXMDHJ3.mjs.map → chunk-Z6YIR3MO.mjs.map} +0 -0
|
@@ -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\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
|
|
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 GameDataType = {\n [K in keyof GameDataMap]?: GameDataMap[K] | null;\n};\n\nexport type GameType = {\n active: boolean;\n createdAt: Date;\n gameData: GameDataType;\n gameHistory: GameHistory[] | null;\n gameType: EnumGameType;\n updatedAt: Date | null;\n};\n\nexport type GameDocType = {\n _id: string;\n active: boolean;\n createdAt: Date;\n deletedAt: Date | null;\n games: GameType[] | 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"]}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-534WN2SR.mjs";
|
|
6
6
|
import {
|
|
7
7
|
gameScreenIdentifierList
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TZBKOYFM.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-
|
|
272
|
+
//# sourceMappingURL=chunk-U3RFZUPB.mjs.map
|
|
@@ -3241,12 +3241,18 @@ var GAME_HISTORY_FIELDS_FRAGMENT = gql29`
|
|
|
3241
3241
|
`;
|
|
3242
3242
|
var GAME_DATA_FIELDS_FRAGMENT = gql29`
|
|
3243
3243
|
fragment GameDataFields on GameDataType {
|
|
3244
|
+
dailyClue {
|
|
3245
|
+
...DailyClueGameDataFields
|
|
3246
|
+
}
|
|
3247
|
+
}
|
|
3248
|
+
${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
|
|
3249
|
+
`;
|
|
3250
|
+
var GAME_FIELDS_FRAGMENT = gql29`
|
|
3251
|
+
fragment GameFields on GameType {
|
|
3244
3252
|
active
|
|
3245
3253
|
createdAt
|
|
3246
3254
|
gameData {
|
|
3247
|
-
|
|
3248
|
-
...DailyClueGameDataFields
|
|
3249
|
-
}
|
|
3255
|
+
...GameDataFields
|
|
3250
3256
|
}
|
|
3251
3257
|
gameHistory {
|
|
3252
3258
|
...GameHistoryFields
|
|
@@ -3254,17 +3260,17 @@ var GAME_DATA_FIELDS_FRAGMENT = gql29`
|
|
|
3254
3260
|
gameType
|
|
3255
3261
|
updatedAt
|
|
3256
3262
|
}
|
|
3257
|
-
${
|
|
3263
|
+
${GAME_DATA_FIELDS_FRAGMENT}
|
|
3258
3264
|
${GAME_HISTORY_FIELDS_FRAGMENT}
|
|
3259
3265
|
`;
|
|
3260
|
-
var
|
|
3261
|
-
fragment
|
|
3266
|
+
var GAME_DOC_FIELDS_FRAGMENT = gql29`
|
|
3267
|
+
fragment GameDocFields on GameDocType {
|
|
3262
3268
|
_id
|
|
3263
3269
|
active
|
|
3264
3270
|
createdAt
|
|
3265
3271
|
deletedAt
|
|
3266
|
-
|
|
3267
|
-
...
|
|
3272
|
+
games {
|
|
3273
|
+
...GameFields
|
|
3268
3274
|
}
|
|
3269
3275
|
owner {
|
|
3270
3276
|
...OwnerFields
|
|
@@ -3273,23 +3279,23 @@ var GAME_FIELDS_FRAGMENT = gql29`
|
|
|
3273
3279
|
updatedAt
|
|
3274
3280
|
}
|
|
3275
3281
|
${OWNER_FIELDS_FRAGMENT}
|
|
3276
|
-
${
|
|
3282
|
+
${GAME_FIELDS_FRAGMENT}
|
|
3277
3283
|
`;
|
|
3278
3284
|
var GET_GAMES = gql29`
|
|
3279
3285
|
query getGames {
|
|
3280
3286
|
games {
|
|
3281
|
-
...
|
|
3287
|
+
...GameDocFields
|
|
3282
3288
|
}
|
|
3283
3289
|
}
|
|
3284
|
-
${
|
|
3290
|
+
${GAME_DOC_FIELDS_FRAGMENT}
|
|
3285
3291
|
`;
|
|
3286
3292
|
var GET_GAME = gql29`
|
|
3287
3293
|
query getGame($_id: ID!) {
|
|
3288
3294
|
game(_id: $_id) {
|
|
3289
|
-
...
|
|
3295
|
+
...GameDocFields
|
|
3290
3296
|
}
|
|
3291
3297
|
}
|
|
3292
|
-
${
|
|
3298
|
+
${GAME_DOC_FIELDS_FRAGMENT}
|
|
3293
3299
|
`;
|
|
3294
3300
|
var GET_GAME_LEADERBOARD = gql29`
|
|
3295
3301
|
query getGameLeaderboard {
|
|
@@ -3549,10 +3555,10 @@ import { gql as gql34 } from "@apollo/client";
|
|
|
3549
3555
|
var START_GAME_MUTATION = gql34`
|
|
3550
3556
|
mutation startGame($input: BaseGameInputType!) {
|
|
3551
3557
|
startGame(input: $input) {
|
|
3552
|
-
...
|
|
3558
|
+
...GameDocFields
|
|
3553
3559
|
}
|
|
3554
3560
|
}
|
|
3555
|
-
${
|
|
3561
|
+
${GAME_DOC_FIELDS_FRAGMENT}
|
|
3556
3562
|
`;
|
|
3557
3563
|
var LEAVE_GAME_MUTATION = gql34`
|
|
3558
3564
|
mutation leaveGame($_id: ID!, $gameType: GameTypeEnumType!) {
|
|
@@ -3562,10 +3568,10 @@ var LEAVE_GAME_MUTATION = gql34`
|
|
|
3562
3568
|
var UPDATE_DAILY_CLUE_MUTATION = gql34`
|
|
3563
3569
|
mutation updateDailyClueGame($_id: ID!, $foundLetter: String!) {
|
|
3564
3570
|
updateDailyClueGame(_id: $_id, foundLetter: $foundLetter) {
|
|
3565
|
-
...
|
|
3571
|
+
...GameDocFields
|
|
3566
3572
|
}
|
|
3567
3573
|
}
|
|
3568
|
-
${
|
|
3574
|
+
${GAME_DOC_FIELDS_FRAGMENT}
|
|
3569
3575
|
`;
|
|
3570
3576
|
|
|
3571
3577
|
// src/graphql/hooks/game/hooksMutation.ts
|
|
@@ -3776,4 +3782,4 @@ export {
|
|
|
3776
3782
|
useGetGame,
|
|
3777
3783
|
useGetGameLeaderboard
|
|
3778
3784
|
};
|
|
3779
|
-
//# sourceMappingURL=chunk-
|
|
3785
|
+
//# sourceMappingURL=chunk-YHE6M5DD.mjs.map
|