@timardex/cluemart-shared 1.5.510 → 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-WYYQSPAX.mjs → chunk-TZBKOYFM.mjs} +1 -1
- package/dist/{chunk-WYYQSPAX.mjs.map → chunk-TZBKOYFM.mjs.map} +1 -1
- package/dist/{chunk-RY7AILFK.mjs → chunk-U3RFZUPB.mjs} +2 -2
- package/dist/{chunk-RQDZX76B.mjs → chunk-YHE6M5DD.mjs} +34 -17
- package/dist/{chunk-RQDZX76B.mjs.map → chunk-YHE6M5DD.mjs.map} +1 -1
- package/dist/{chunk-3SFKWCTZ.mjs → chunk-Z6YIR3MO.mjs} +2 -2
- package/dist/formFields/index.mjs +3 -3
- package/dist/{game-MJqjbMLC.d.ts → game-BkJDVMMI.d.ts} +16 -9
- package/dist/{game-DuJpk6t2.d.mts → game-BunlgBR3.d.mts} +16 -9
- package/dist/graphql/index.cjs +33 -16
- 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 +33 -16
- 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 +33 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +24 -17
- package/dist/index.d.ts +24 -17
- package/dist/index.mjs +33 -16
- package/dist/index.mjs.map +1 -1
- package/dist/{post-CZ1sHnKx.d.ts → post-CdBp2FwH.d.ts} +1 -1
- package/dist/{post-D3uHp75N.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-RY7AILFK.mjs.map → chunk-U3RFZUPB.mjs.map} +0 -0
- /package/dist/{chunk-3SFKWCTZ.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\
|
|
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;\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ACT;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
|
|
@@ -3239,46 +3239,63 @@ var GAME_HISTORY_FIELDS_FRAGMENT = gql29`
|
|
|
3239
3239
|
}
|
|
3240
3240
|
${GAME_DATE_FIELDS_FRAGMENT}
|
|
3241
3241
|
`;
|
|
3242
|
+
var GAME_DATA_FIELDS_FRAGMENT = gql29`
|
|
3243
|
+
fragment GameDataFields on GameDataType {
|
|
3244
|
+
dailyClue {
|
|
3245
|
+
...DailyClueGameDataFields
|
|
3246
|
+
}
|
|
3247
|
+
}
|
|
3248
|
+
${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
|
|
3249
|
+
`;
|
|
3242
3250
|
var GAME_FIELDS_FRAGMENT = gql29`
|
|
3243
3251
|
fragment GameFields on GameType {
|
|
3244
|
-
_id
|
|
3245
3252
|
active
|
|
3246
3253
|
createdAt
|
|
3247
|
-
deletedAt
|
|
3248
3254
|
gameData {
|
|
3249
|
-
|
|
3250
|
-
...DailyClueGameDataFields
|
|
3251
|
-
}
|
|
3255
|
+
...GameDataFields
|
|
3252
3256
|
}
|
|
3253
3257
|
gameHistory {
|
|
3254
3258
|
...GameHistoryFields
|
|
3255
3259
|
}
|
|
3260
|
+
gameType
|
|
3256
3261
|
updatedAt
|
|
3262
|
+
}
|
|
3263
|
+
${GAME_DATA_FIELDS_FRAGMENT}
|
|
3264
|
+
${GAME_HISTORY_FIELDS_FRAGMENT}
|
|
3265
|
+
`;
|
|
3266
|
+
var GAME_DOC_FIELDS_FRAGMENT = gql29`
|
|
3267
|
+
fragment GameDocFields on GameDocType {
|
|
3268
|
+
_id
|
|
3269
|
+
active
|
|
3270
|
+
createdAt
|
|
3271
|
+
deletedAt
|
|
3272
|
+
games {
|
|
3273
|
+
...GameFields
|
|
3274
|
+
}
|
|
3257
3275
|
owner {
|
|
3258
3276
|
...OwnerFields
|
|
3259
3277
|
}
|
|
3260
3278
|
points
|
|
3279
|
+
updatedAt
|
|
3261
3280
|
}
|
|
3262
|
-
${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
|
|
3263
3281
|
${OWNER_FIELDS_FRAGMENT}
|
|
3264
|
-
${
|
|
3265
|
-
${GAME_HISTORY_FIELDS_FRAGMENT}
|
|
3282
|
+
${GAME_FIELDS_FRAGMENT}
|
|
3266
3283
|
`;
|
|
3267
3284
|
var GET_GAMES = gql29`
|
|
3268
3285
|
query getGames {
|
|
3269
3286
|
games {
|
|
3270
|
-
...
|
|
3287
|
+
...GameDocFields
|
|
3271
3288
|
}
|
|
3272
3289
|
}
|
|
3273
|
-
${
|
|
3290
|
+
${GAME_DOC_FIELDS_FRAGMENT}
|
|
3274
3291
|
`;
|
|
3275
3292
|
var GET_GAME = gql29`
|
|
3276
3293
|
query getGame($_id: ID!) {
|
|
3277
3294
|
game(_id: $_id) {
|
|
3278
|
-
...
|
|
3295
|
+
...GameDocFields
|
|
3279
3296
|
}
|
|
3280
3297
|
}
|
|
3281
|
-
${
|
|
3298
|
+
${GAME_DOC_FIELDS_FRAGMENT}
|
|
3282
3299
|
`;
|
|
3283
3300
|
var GET_GAME_LEADERBOARD = gql29`
|
|
3284
3301
|
query getGameLeaderboard {
|
|
@@ -3538,10 +3555,10 @@ import { gql as gql34 } from "@apollo/client";
|
|
|
3538
3555
|
var START_GAME_MUTATION = gql34`
|
|
3539
3556
|
mutation startGame($input: BaseGameInputType!) {
|
|
3540
3557
|
startGame(input: $input) {
|
|
3541
|
-
...
|
|
3558
|
+
...GameDocFields
|
|
3542
3559
|
}
|
|
3543
3560
|
}
|
|
3544
|
-
${
|
|
3561
|
+
${GAME_DOC_FIELDS_FRAGMENT}
|
|
3545
3562
|
`;
|
|
3546
3563
|
var LEAVE_GAME_MUTATION = gql34`
|
|
3547
3564
|
mutation leaveGame($_id: ID!, $gameType: GameTypeEnumType!) {
|
|
@@ -3551,10 +3568,10 @@ var LEAVE_GAME_MUTATION = gql34`
|
|
|
3551
3568
|
var UPDATE_DAILY_CLUE_MUTATION = gql34`
|
|
3552
3569
|
mutation updateDailyClueGame($_id: ID!, $foundLetter: String!) {
|
|
3553
3570
|
updateDailyClueGame(_id: $_id, foundLetter: $foundLetter) {
|
|
3554
|
-
...
|
|
3571
|
+
...GameDocFields
|
|
3555
3572
|
}
|
|
3556
3573
|
}
|
|
3557
|
-
${
|
|
3574
|
+
${GAME_DOC_FIELDS_FRAGMENT}
|
|
3558
3575
|
`;
|
|
3559
3576
|
|
|
3560
3577
|
// src/graphql/hooks/game/hooksMutation.ts
|
|
@@ -3765,4 +3782,4 @@ export {
|
|
|
3765
3782
|
useGetGame,
|
|
3766
3783
|
useGetGameLeaderboard
|
|
3767
3784
|
};
|
|
3768
|
-
//# sourceMappingURL=chunk-
|
|
3785
|
+
//# sourceMappingURL=chunk-YHE6M5DD.mjs.map
|