@timardex/cluemart-shared 1.5.519 → 1.5.521
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-6FBQIZD5.mjs → chunk-7VBSTQWX.mjs} +37 -3
- package/dist/{chunk-6FBQIZD5.mjs.map → chunk-7VBSTQWX.mjs.map} +1 -1
- package/dist/{chunk-U3RFZUPB.mjs → chunk-LZ2KFVBV.mjs} +2 -2
- package/dist/{chunk-TZBKOYFM.mjs → chunk-RWA5G6NG.mjs} +1 -1
- package/dist/{chunk-TZBKOYFM.mjs.map → chunk-RWA5G6NG.mjs.map} +1 -1
- package/dist/{chunk-Z6YIR3MO.mjs → chunk-XEIQR6NA.mjs} +2 -2
- package/dist/formFields/index.mjs +3 -3
- package/dist/{game-BunlgBR3.d.mts → game-CC5mxG64.d.mts} +2 -0
- package/dist/{game-BkJDVMMI.d.ts → game-DhiKOr9_.d.ts} +2 -0
- package/dist/graphql/index.cjs +37 -2
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +10 -3
- package/dist/graphql/index.d.ts +10 -3
- package/dist/graphql/index.mjs +3 -1
- package/dist/hooks/index.cjs +27 -1
- 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 +37 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.mjs +36 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{post-DAYG3h_p.d.mts → post-BPefBhwH.d.mts} +8 -3
- package/dist/{post-B8c9JmOJ.d.ts → post-kS5CrR6f.d.ts} +8 -3
- 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-U3RFZUPB.mjs.map → chunk-LZ2KFVBV.mjs.map} +0 -0
- /package/dist/{chunk-Z6YIR3MO.mjs.map → chunk-XEIQR6NA.mjs.map} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-534WN2SR.mjs";
|
|
6
6
|
import {
|
|
7
7
|
gameScreenIdentifierList
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RWA5G6NG.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-LZ2KFVBV.mjs.map
|
|
@@ -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 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"]}
|
|
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 createdAt: Date;\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 _id: string;\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"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mapArrayToOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LZ2KFVBV.mjs";
|
|
4
4
|
import {
|
|
5
5
|
EnumFoodFlavor
|
|
6
6
|
} from "./chunk-534WN2SR.mjs";
|
|
@@ -1952,4 +1952,4 @@ export {
|
|
|
1952
1952
|
contactUsFields,
|
|
1953
1953
|
partnerBasicInfoFields
|
|
1954
1954
|
};
|
|
1955
|
-
//# sourceMappingURL=chunk-
|
|
1955
|
+
//# sourceMappingURL=chunk-XEIQR6NA.mjs.map
|
|
@@ -43,10 +43,10 @@ import {
|
|
|
43
43
|
vendorStallSize,
|
|
44
44
|
vendorStartDateFields,
|
|
45
45
|
vendorTable
|
|
46
|
-
} from "../chunk-
|
|
47
|
-
import "../chunk-
|
|
46
|
+
} from "../chunk-XEIQR6NA.mjs";
|
|
47
|
+
import "../chunk-LZ2KFVBV.mjs";
|
|
48
48
|
import "../chunk-534WN2SR.mjs";
|
|
49
|
-
import "../chunk-
|
|
49
|
+
import "../chunk-RWA5G6NG.mjs";
|
|
50
50
|
export {
|
|
51
51
|
availableCategories,
|
|
52
52
|
availableTagTypes,
|
|
@@ -112,6 +112,7 @@ declare enum EnumGameStatus {
|
|
|
112
112
|
GAME_STARTED = "GAME_STARTED"
|
|
113
113
|
}
|
|
114
114
|
type GameHistory = {
|
|
115
|
+
createdAt: Date;
|
|
115
116
|
gameDate: GameDate;
|
|
116
117
|
gameStatus: EnumGameStatus;
|
|
117
118
|
gameType: EnumGameType;
|
|
@@ -124,6 +125,7 @@ type GameDataType = {
|
|
|
124
125
|
[K in keyof GameDataMap]?: GameDataMap[K] | null;
|
|
125
126
|
};
|
|
126
127
|
type GameType = {
|
|
128
|
+
_id: string;
|
|
127
129
|
active: boolean;
|
|
128
130
|
createdAt: Date;
|
|
129
131
|
gameData: GameDataType;
|
|
@@ -112,6 +112,7 @@ declare enum EnumGameStatus {
|
|
|
112
112
|
GAME_STARTED = "GAME_STARTED"
|
|
113
113
|
}
|
|
114
114
|
type GameHistory = {
|
|
115
|
+
createdAt: Date;
|
|
115
116
|
gameDate: GameDate;
|
|
116
117
|
gameStatus: EnumGameStatus;
|
|
117
118
|
gameType: EnumGameType;
|
|
@@ -124,6 +125,7 @@ type GameDataType = {
|
|
|
124
125
|
[K in keyof GameDataMap]?: GameDataMap[K] | null;
|
|
125
126
|
};
|
|
126
127
|
type GameType = {
|
|
128
|
+
_id: string;
|
|
127
129
|
active: boolean;
|
|
128
130
|
createdAt: Date;
|
|
129
131
|
gameData: GameDataType;
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -126,6 +126,7 @@ __export(graphql_exports, {
|
|
|
126
126
|
useRemoveUserInterestResource: () => useRemoveUserInterestResource,
|
|
127
127
|
useRemoveUserPresentResource: () => useRemoveUserPresentResource,
|
|
128
128
|
useReportChatUser: () => useReportChatUser,
|
|
129
|
+
useRequestMarketingMaterial: () => useRequestMarketingMaterial,
|
|
129
130
|
useRequestPasswordReset: () => useRequestPasswordReset,
|
|
130
131
|
useResetPassword: () => useResetPassword,
|
|
131
132
|
useSearchEvents: () => useSearchEvents,
|
|
@@ -3388,6 +3389,7 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client55.gql`
|
|
|
3388
3389
|
`;
|
|
3389
3390
|
var GAME_HISTORY_FIELDS_FRAGMENT = import_client55.gql`
|
|
3390
3391
|
fragment GameHistoryFields on GameHistoryType {
|
|
3392
|
+
createdAt
|
|
3391
3393
|
gameDate {
|
|
3392
3394
|
...GameDateFields
|
|
3393
3395
|
}
|
|
@@ -3407,6 +3409,7 @@ var GAME_DATA_FIELDS_FRAGMENT = import_client55.gql`
|
|
|
3407
3409
|
`;
|
|
3408
3410
|
var GAME_FIELDS_FRAGMENT = import_client55.gql`
|
|
3409
3411
|
fragment GameFields on GameType {
|
|
3412
|
+
_id
|
|
3410
3413
|
active
|
|
3411
3414
|
createdAt
|
|
3412
3415
|
gameData {
|
|
@@ -3819,6 +3822,15 @@ var import_client68 = require("@apollo/client");
|
|
|
3819
3822
|
|
|
3820
3823
|
// src/graphql/queries/school.ts
|
|
3821
3824
|
var import_client67 = require("@apollo/client");
|
|
3825
|
+
var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client67.gql`
|
|
3826
|
+
fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
|
|
3827
|
+
_id
|
|
3828
|
+
avatar
|
|
3829
|
+
email
|
|
3830
|
+
firstName
|
|
3831
|
+
lastName
|
|
3832
|
+
}
|
|
3833
|
+
`;
|
|
3822
3834
|
var SCHOOL = import_client67.gql`
|
|
3823
3835
|
fragment SchoolFields on SchoolType {
|
|
3824
3836
|
_id
|
|
@@ -3860,10 +3872,16 @@ var SCHOOL = import_client67.gql`
|
|
|
3860
3872
|
var GET_SCHOOL = import_client67.gql`
|
|
3861
3873
|
query getSchool($_id: ID!) {
|
|
3862
3874
|
school(_id: $_id) {
|
|
3863
|
-
|
|
3875
|
+
school {
|
|
3876
|
+
...SchoolFields
|
|
3877
|
+
}
|
|
3878
|
+
users {
|
|
3879
|
+
...SchoolRegisteredUsersFields
|
|
3880
|
+
}
|
|
3864
3881
|
}
|
|
3865
3882
|
}
|
|
3866
3883
|
${SCHOOL}
|
|
3884
|
+
${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
|
|
3867
3885
|
`;
|
|
3868
3886
|
var GET_SCHOOLS = import_client67.gql`
|
|
3869
3887
|
query getSchools {
|
|
@@ -3896,6 +3914,15 @@ var DELETE_SCHOOL_MUTATION = import_client68.gql`
|
|
|
3896
3914
|
deleteSchool(_id: $_id)
|
|
3897
3915
|
}
|
|
3898
3916
|
`;
|
|
3917
|
+
var REQUEST_MARKETING_MATERIAL_MUTATION = import_client68.gql`
|
|
3918
|
+
mutation requestMarketingMaterial(
|
|
3919
|
+
$input: MarketingMaterialRequestInputType!
|
|
3920
|
+
) {
|
|
3921
|
+
requestMarketingMaterial(input: $input) {
|
|
3922
|
+
message
|
|
3923
|
+
}
|
|
3924
|
+
}
|
|
3925
|
+
`;
|
|
3899
3926
|
|
|
3900
3927
|
// src/graphql/hooks/school/hooksMutation.ts
|
|
3901
3928
|
var useCreateSchool = () => {
|
|
@@ -3928,6 +3955,12 @@ var useDeleteSchool = () => {
|
|
|
3928
3955
|
);
|
|
3929
3956
|
return { deleteSchool, error, loading };
|
|
3930
3957
|
};
|
|
3958
|
+
var useRequestMarketingMaterial = () => {
|
|
3959
|
+
const [requestMarketingMaterial, { loading, error }] = (0, import_client69.useMutation)(
|
|
3960
|
+
REQUEST_MARKETING_MATERIAL_MUTATION
|
|
3961
|
+
);
|
|
3962
|
+
return { error, loading, requestMarketingMaterial };
|
|
3963
|
+
};
|
|
3931
3964
|
|
|
3932
3965
|
// src/graphql/hooks/school/hooksQuery.ts
|
|
3933
3966
|
var import_client70 = require("@apollo/client");
|
|
@@ -3955,7 +3988,8 @@ var useGetSchool = (_id) => {
|
|
|
3955
3988
|
error,
|
|
3956
3989
|
loading,
|
|
3957
3990
|
refetch,
|
|
3958
|
-
school: data?.school || null
|
|
3991
|
+
school: data?.school || null,
|
|
3992
|
+
users: data?.users || []
|
|
3959
3993
|
};
|
|
3960
3994
|
};
|
|
3961
3995
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -4066,6 +4100,7 @@ var useGetSchool = (_id) => {
|
|
|
4066
4100
|
useRemoveUserInterestResource,
|
|
4067
4101
|
useRemoveUserPresentResource,
|
|
4068
4102
|
useReportChatUser,
|
|
4103
|
+
useRequestMarketingMaterial,
|
|
4069
4104
|
useRequestPasswordReset,
|
|
4070
4105
|
useResetPassword,
|
|
4071
4106
|
useSearchEvents,
|