@timardex/cluemart-shared 1.4.78 → 1.4.80
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-KYDS4REE.mjs → chunk-2VZKL2X6.mjs} +2 -2
- package/dist/{chunk-4LT5GOOP.mjs → chunk-AOPQ64JU.mjs} +3 -3
- package/dist/{chunk-FL4P2WWM.mjs → chunk-HU2XPJFC.mjs} +3 -2
- package/dist/{chunk-FL4P2WWM.mjs.map → chunk-HU2XPJFC.mjs.map} +1 -1
- package/dist/{chunk-SSNWS3V4.mjs → chunk-T6D7HTHH.mjs} +143 -2
- package/dist/chunk-T6D7HTHH.mjs.map +1 -0
- package/dist/{chunk-USQKKCIA.mjs → chunk-VE6JFCH2.mjs} +8 -2
- package/dist/{chunk-USQKKCIA.mjs.map → chunk-VE6JFCH2.mjs.map} +1 -1
- package/dist/enums/index.cjs +7 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +5 -1
- package/dist/enums/index.d.ts +5 -1
- package/dist/enums/index.mjs +3 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +145 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +47 -3
- package/dist/graphql/index.d.ts +47 -3
- package/dist/graphql/index.mjs +10 -2
- package/dist/hooks/index.cjs +86 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +5 -5
- package/dist/index.cjs +154 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +83 -3
- package/dist/index.d.ts +83 -3
- package/dist/index.mjs +149 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{post-DZF3nYKf.d.mts → post-7mWg32YL.d.mts} +17 -4
- package/dist/{post-DdErP7-k.d.ts → post-Bf93S2HP.d.ts} +17 -4
- package/dist/{resourceActivities-CqrscA5x.d.mts → resourceActivities-5kKwlOry.d.mts} +21 -2
- package/dist/{resourceActivities-2FaGRW-i.d.ts → resourceActivities-Bf_CX38O.d.ts} +21 -2
- package/dist/types/index.cjs +2 -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.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-SSNWS3V4.mjs.map +0 -1
- /package/dist/{chunk-KYDS4REE.mjs.map → chunk-2VZKL2X6.mjs.map} +0 -0
- /package/dist/{chunk-4LT5GOOP.mjs.map → chunk-AOPQ64JU.mjs.map} +0 -0
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.mjs';
|
|
3
|
-
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-
|
|
3
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType, G as GameType } from '../resourceActivities-5kKwlOry.mjs';
|
|
4
4
|
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-MMBYi34A.mjs';
|
|
5
|
-
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-
|
|
5
|
+
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-7mWg32YL.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
|
@@ -985,4 +985,48 @@ declare const useGetAppSettings: () => {
|
|
|
985
985
|
}>>;
|
|
986
986
|
};
|
|
987
987
|
|
|
988
|
-
|
|
988
|
+
declare const useStartGame: () => {
|
|
989
|
+
error: _apollo_client.ApolloError | undefined;
|
|
990
|
+
loading: boolean;
|
|
991
|
+
startGame: (options?: _apollo_client.MutationFunctionOptions<{
|
|
992
|
+
startGame: {
|
|
993
|
+
_id: string;
|
|
994
|
+
};
|
|
995
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
996
|
+
startGame: {
|
|
997
|
+
_id: string;
|
|
998
|
+
};
|
|
999
|
+
}>>;
|
|
1000
|
+
};
|
|
1001
|
+
declare const useLeaveGame: () => {
|
|
1002
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1003
|
+
leaveGame: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1004
|
+
leaveGame: {
|
|
1005
|
+
userId: string;
|
|
1006
|
+
};
|
|
1007
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1008
|
+
leaveGame: {
|
|
1009
|
+
userId: string;
|
|
1010
|
+
};
|
|
1011
|
+
}>>;
|
|
1012
|
+
loading: boolean;
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
declare const useGetGames: (userId?: string) => {
|
|
1016
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1017
|
+
games: GameType[];
|
|
1018
|
+
loading: boolean;
|
|
1019
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1020
|
+
games: GameType[];
|
|
1021
|
+
}>>;
|
|
1022
|
+
};
|
|
1023
|
+
declare const useGetGame: (_id: string) => {
|
|
1024
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1025
|
+
game: GameType | null;
|
|
1026
|
+
loading: boolean;
|
|
1027
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1028
|
+
game: GameType | null;
|
|
1029
|
+
}>>;
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
export { type UseGetEventsByRegionOptions, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.js';
|
|
3
|
-
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-
|
|
3
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType, G as GameType } from '../resourceActivities-Bf_CX38O.js';
|
|
4
4
|
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-B0WdAD-8.js';
|
|
5
|
-
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-
|
|
5
|
+
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-Bf93S2HP.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
|
@@ -985,4 +985,48 @@ declare const useGetAppSettings: () => {
|
|
|
985
985
|
}>>;
|
|
986
986
|
};
|
|
987
987
|
|
|
988
|
-
|
|
988
|
+
declare const useStartGame: () => {
|
|
989
|
+
error: _apollo_client.ApolloError | undefined;
|
|
990
|
+
loading: boolean;
|
|
991
|
+
startGame: (options?: _apollo_client.MutationFunctionOptions<{
|
|
992
|
+
startGame: {
|
|
993
|
+
_id: string;
|
|
994
|
+
};
|
|
995
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
996
|
+
startGame: {
|
|
997
|
+
_id: string;
|
|
998
|
+
};
|
|
999
|
+
}>>;
|
|
1000
|
+
};
|
|
1001
|
+
declare const useLeaveGame: () => {
|
|
1002
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1003
|
+
leaveGame: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1004
|
+
leaveGame: {
|
|
1005
|
+
userId: string;
|
|
1006
|
+
};
|
|
1007
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1008
|
+
leaveGame: {
|
|
1009
|
+
userId: string;
|
|
1010
|
+
};
|
|
1011
|
+
}>>;
|
|
1012
|
+
loading: boolean;
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
declare const useGetGames: (userId?: string) => {
|
|
1016
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1017
|
+
games: GameType[];
|
|
1018
|
+
loading: boolean;
|
|
1019
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1020
|
+
games: GameType[];
|
|
1021
|
+
}>>;
|
|
1022
|
+
};
|
|
1023
|
+
declare const useGetGame: (_id: string) => {
|
|
1024
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1025
|
+
game: GameType | null;
|
|
1026
|
+
loading: boolean;
|
|
1027
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1028
|
+
game: GameType | null;
|
|
1029
|
+
}>>;
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
export { type UseGetEventsByRegionOptions, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
package/dist/graphql/index.mjs
CHANGED
|
@@ -52,6 +52,8 @@ import {
|
|
|
52
52
|
useGetEvents,
|
|
53
53
|
useGetEventsByRegion,
|
|
54
54
|
useGetEventsNearMe,
|
|
55
|
+
useGetGame,
|
|
56
|
+
useGetGames,
|
|
55
57
|
useGetNotificationCount,
|
|
56
58
|
useGetNotificationCountSubscription,
|
|
57
59
|
useGetPartner,
|
|
@@ -84,6 +86,7 @@ import {
|
|
|
84
86
|
useGetVendorRelations,
|
|
85
87
|
useGetVendors,
|
|
86
88
|
useGetVendorsByRegion,
|
|
89
|
+
useLeaveGame,
|
|
87
90
|
useLogin,
|
|
88
91
|
useLogout,
|
|
89
92
|
useMarkAllNotificationsRead,
|
|
@@ -105,6 +108,7 @@ import {
|
|
|
105
108
|
useSelectPackage,
|
|
106
109
|
useSelectStandardPackage,
|
|
107
110
|
useSendChatMessage,
|
|
111
|
+
useStartGame,
|
|
108
112
|
useToggleChatMessageLike,
|
|
109
113
|
useUpdateAd,
|
|
110
114
|
useUpdateAppSettings,
|
|
@@ -120,8 +124,8 @@ import {
|
|
|
120
124
|
useUpdateVendor,
|
|
121
125
|
useUpdateVendorInfo,
|
|
122
126
|
useValidateVerificationToken
|
|
123
|
-
} from "../chunk-
|
|
124
|
-
import "../chunk-
|
|
127
|
+
} from "../chunk-T6D7HTHH.mjs";
|
|
128
|
+
import "../chunk-VE6JFCH2.mjs";
|
|
125
129
|
export {
|
|
126
130
|
useAddParticipantToChat,
|
|
127
131
|
useAddUserFavouriteResource,
|
|
@@ -176,6 +180,8 @@ export {
|
|
|
176
180
|
useGetEvents,
|
|
177
181
|
useGetEventsByRegion,
|
|
178
182
|
useGetEventsNearMe,
|
|
183
|
+
useGetGame,
|
|
184
|
+
useGetGames,
|
|
179
185
|
useGetNotificationCount,
|
|
180
186
|
useGetNotificationCountSubscription,
|
|
181
187
|
useGetPartner,
|
|
@@ -208,6 +214,7 @@ export {
|
|
|
208
214
|
useGetVendorRelations,
|
|
209
215
|
useGetVendors,
|
|
210
216
|
useGetVendorsByRegion,
|
|
217
|
+
useLeaveGame,
|
|
211
218
|
useLogin,
|
|
212
219
|
useLogout,
|
|
213
220
|
useMarkAllNotificationsRead,
|
|
@@ -229,6 +236,7 @@ export {
|
|
|
229
236
|
useSelectPackage,
|
|
230
237
|
useSelectStandardPackage,
|
|
231
238
|
useSendChatMessage,
|
|
239
|
+
useStartGame,
|
|
232
240
|
useToggleChatMessageLike,
|
|
233
241
|
useUpdateAd,
|
|
234
242
|
useUpdateAppSettings,
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -2306,12 +2306,14 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
|
|
|
2306
2306
|
email
|
|
2307
2307
|
events
|
|
2308
2308
|
firstName
|
|
2309
|
+
games
|
|
2309
2310
|
isTester
|
|
2310
2311
|
lastName
|
|
2311
2312
|
licences {
|
|
2312
2313
|
...LicenceFields
|
|
2313
2314
|
}
|
|
2314
2315
|
partner
|
|
2316
|
+
points
|
|
2315
2317
|
platform
|
|
2316
2318
|
preferredRegion
|
|
2317
2319
|
promoCodes
|
|
@@ -4046,6 +4048,14 @@ var import_client56 = require("@apollo/client");
|
|
|
4046
4048
|
var import_client55 = require("@apollo/client");
|
|
4047
4049
|
var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client55.gql`
|
|
4048
4050
|
fragment PostContentDataFields on PostContentData {
|
|
4051
|
+
game {
|
|
4052
|
+
title
|
|
4053
|
+
gameType
|
|
4054
|
+
gameInfo {
|
|
4055
|
+
dailyClue
|
|
4056
|
+
}
|
|
4057
|
+
gameEndDate
|
|
4058
|
+
}
|
|
4049
4059
|
textarea {
|
|
4050
4060
|
title
|
|
4051
4061
|
data
|
|
@@ -4201,14 +4211,89 @@ var GET_APP_SETTINGS = import_client60.gql`
|
|
|
4201
4211
|
// src/graphql/hooks/appSettings/hooksQuery.ts
|
|
4202
4212
|
var import_client62 = require("@apollo/client");
|
|
4203
4213
|
|
|
4214
|
+
// src/graphql/hooks/game/hooksMutation.ts
|
|
4215
|
+
var import_client65 = require("@apollo/client");
|
|
4216
|
+
|
|
4217
|
+
// src/graphql/mutations/game.ts
|
|
4218
|
+
var import_client64 = require("@apollo/client");
|
|
4219
|
+
|
|
4220
|
+
// src/graphql/queries/game.ts
|
|
4221
|
+
var import_client63 = require("@apollo/client");
|
|
4222
|
+
var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client63.gql`
|
|
4223
|
+
fragment DailyClueGameDataFields on DailyClueGameDataType {
|
|
4224
|
+
lastFoundDate
|
|
4225
|
+
streak
|
|
4226
|
+
points
|
|
4227
|
+
collectedLetters
|
|
4228
|
+
gameEndDate
|
|
4229
|
+
}
|
|
4230
|
+
`;
|
|
4231
|
+
var GAME_FIELDS_FRAGMENT = import_client63.gql`
|
|
4232
|
+
fragment GameFields on GameType {
|
|
4233
|
+
_id
|
|
4234
|
+
active
|
|
4235
|
+
createdAt
|
|
4236
|
+
deletedAt
|
|
4237
|
+
gameData {
|
|
4238
|
+
dailyClue {
|
|
4239
|
+
...DailyClueGameDataFields
|
|
4240
|
+
}
|
|
4241
|
+
}
|
|
4242
|
+
updatedAt
|
|
4243
|
+
owner {
|
|
4244
|
+
...OwnerFields
|
|
4245
|
+
}
|
|
4246
|
+
}
|
|
4247
|
+
${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
|
|
4248
|
+
${OWNER_FIELDS_FRAGMENT}
|
|
4249
|
+
`;
|
|
4250
|
+
var GET_GAMES = import_client63.gql`
|
|
4251
|
+
query getGames($userId: ID) {
|
|
4252
|
+
games(userId: $userId) {
|
|
4253
|
+
...GameFields
|
|
4254
|
+
}
|
|
4255
|
+
}
|
|
4256
|
+
${GAME_FIELDS_FRAGMENT}
|
|
4257
|
+
`;
|
|
4258
|
+
var GET_GAME = import_client63.gql`
|
|
4259
|
+
query getGame($_id: ID!) {
|
|
4260
|
+
game(_id: $_id) {
|
|
4261
|
+
...GameFields
|
|
4262
|
+
}
|
|
4263
|
+
}
|
|
4264
|
+
${GAME_FIELDS_FRAGMENT}
|
|
4265
|
+
`;
|
|
4266
|
+
|
|
4267
|
+
// src/graphql/mutations/game.ts
|
|
4268
|
+
var START_GAME_MUTATION = import_client64.gql`
|
|
4269
|
+
mutation startGame($input: GameInputType!) {
|
|
4270
|
+
startGame(input: $input) {
|
|
4271
|
+
...GameFields
|
|
4272
|
+
}
|
|
4273
|
+
}
|
|
4274
|
+
${GAME_FIELDS_FRAGMENT}
|
|
4275
|
+
`;
|
|
4276
|
+
var LEAVE_GAME_MUTATION = import_client64.gql`
|
|
4277
|
+
mutation leaveGame($_id: ID!) {
|
|
4278
|
+
leaveGame(_id: $_id) {
|
|
4279
|
+
...GameFields
|
|
4280
|
+
}
|
|
4281
|
+
}
|
|
4282
|
+
${GAME_FIELDS_FRAGMENT}
|
|
4283
|
+
`;
|
|
4284
|
+
|
|
4285
|
+
// src/graphql/hooks/game/hooksQuery.ts
|
|
4286
|
+
var import_client66 = require("@apollo/client");
|
|
4287
|
+
|
|
4204
4288
|
// src/types/post.ts
|
|
4205
4289
|
var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
|
|
4206
4290
|
EnumPostType2["DAILY_MEETS"] = "daily_meets";
|
|
4207
4291
|
EnumPostType2["DAILY_TIPS"] = "daily_tips";
|
|
4208
|
-
EnumPostType2["
|
|
4292
|
+
EnumPostType2["DAILY_GAMES"] = "daily_games";
|
|
4209
4293
|
return EnumPostType2;
|
|
4210
4294
|
})(EnumPostType || {});
|
|
4211
4295
|
var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
|
|
4296
|
+
EnumPostContentType2["GAME"] = "game";
|
|
4212
4297
|
EnumPostContentType2["IMAGE"] = "image";
|
|
4213
4298
|
EnumPostContentType2["LIST"] = "list";
|
|
4214
4299
|
EnumPostContentType2["TEXTAREA"] = "textarea";
|