@timardex/cluemart-shared 1.4.82 → 1.4.83

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/index.d.mts CHANGED
@@ -959,6 +959,36 @@ interface PartnerType extends BaseResourceType {
959
959
  partnerType: EnumPartnerType;
960
960
  }
961
961
 
962
+ type GameInfo = {
963
+ dailyClue?: {
964
+ solution: string;
965
+ } | null;
966
+ };
967
+ type BaseGame = {
968
+ title: string;
969
+ gameType: EnumGameType;
970
+ gameInfo: GameInfo;
971
+ gameDate: DateTimeType;
972
+ };
973
+ type DailyClueGameData = BaseGame & {
974
+ collectedLetters?: string[];
975
+ lastFoundDate: string;
976
+ points: number;
977
+ streak: number;
978
+ };
979
+ type GameData = {
980
+ dailyClue?: DailyClueGameData | null;
981
+ };
982
+ type GameType = {
983
+ _id: string;
984
+ active: boolean;
985
+ createdAt: Date;
986
+ deletedAt: Date | null;
987
+ gameData: GameData | null;
988
+ updatedAt: Date | null;
989
+ owner: OwnerType;
990
+ };
991
+
962
992
  declare enum EnumPostType {
963
993
  DAILY_MEETS = "daily_meets",
964
994
  DAILY_TIPS = "daily_tips",
@@ -1000,14 +1030,7 @@ type PostContentList = {
1000
1030
  };
1001
1031
  };
1002
1032
  type PostContentGame = {
1003
- game: {
1004
- title: string;
1005
- gameType: EnumGameType;
1006
- gameInfo: {
1007
- dailyClue?: string | null;
1008
- };
1009
- gameEndDate: string;
1010
- };
1033
+ game: BaseGame;
1011
1034
  };
1012
1035
  type PostContentData = PostContentGame | PostContentTextarea | PostContentImage | PostContentVideo | PostContentList;
1013
1036
  type PostContentFormData = {
@@ -1072,25 +1095,6 @@ interface GoogleImportedMarket extends EventListItemType {
1072
1095
  website?: string;
1073
1096
  }
1074
1097
 
1075
- type DailyClueGameData = {
1076
- lastFoundDate: string;
1077
- streak: number;
1078
- points: number;
1079
- collectedLetters?: string[];
1080
- gameEndDate: string;
1081
- };
1082
- type GameType = {
1083
- _id: string;
1084
- active: boolean;
1085
- createdAt: Date;
1086
- deletedAt: Date | null;
1087
- gameData: {
1088
- dailyClue?: DailyClueGameData | null;
1089
- } | null;
1090
- updatedAt: Date | null;
1091
- owner: OwnerType;
1092
- };
1093
-
1094
1098
  declare const vendorElectricity: {
1095
1099
  details: FormField;
1096
1100
  isRequired: FormField;
@@ -2373,4 +2377,4 @@ declare const cluemartSocialMedia: SocialMediaType[];
2373
2377
  declare const IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
2374
2378
  declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
2375
2379
 
2376
- export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameType, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, IOS_URL, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, type RefundPolicy, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetEventsByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, 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, useEventForm, useEventInfoForm, 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, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
2380
+ export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseGame, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameData, type GameType, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, IOS_URL, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, type RefundPolicy, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetEventsByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, 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, useEventForm, useEventInfoForm, 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, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
package/dist/index.d.ts CHANGED
@@ -959,6 +959,36 @@ interface PartnerType extends BaseResourceType {
959
959
  partnerType: EnumPartnerType;
960
960
  }
961
961
 
962
+ type GameInfo = {
963
+ dailyClue?: {
964
+ solution: string;
965
+ } | null;
966
+ };
967
+ type BaseGame = {
968
+ title: string;
969
+ gameType: EnumGameType;
970
+ gameInfo: GameInfo;
971
+ gameDate: DateTimeType;
972
+ };
973
+ type DailyClueGameData = BaseGame & {
974
+ collectedLetters?: string[];
975
+ lastFoundDate: string;
976
+ points: number;
977
+ streak: number;
978
+ };
979
+ type GameData = {
980
+ dailyClue?: DailyClueGameData | null;
981
+ };
982
+ type GameType = {
983
+ _id: string;
984
+ active: boolean;
985
+ createdAt: Date;
986
+ deletedAt: Date | null;
987
+ gameData: GameData | null;
988
+ updatedAt: Date | null;
989
+ owner: OwnerType;
990
+ };
991
+
962
992
  declare enum EnumPostType {
963
993
  DAILY_MEETS = "daily_meets",
964
994
  DAILY_TIPS = "daily_tips",
@@ -1000,14 +1030,7 @@ type PostContentList = {
1000
1030
  };
1001
1031
  };
1002
1032
  type PostContentGame = {
1003
- game: {
1004
- title: string;
1005
- gameType: EnumGameType;
1006
- gameInfo: {
1007
- dailyClue?: string | null;
1008
- };
1009
- gameEndDate: string;
1010
- };
1033
+ game: BaseGame;
1011
1034
  };
1012
1035
  type PostContentData = PostContentGame | PostContentTextarea | PostContentImage | PostContentVideo | PostContentList;
1013
1036
  type PostContentFormData = {
@@ -1072,25 +1095,6 @@ interface GoogleImportedMarket extends EventListItemType {
1072
1095
  website?: string;
1073
1096
  }
1074
1097
 
1075
- type DailyClueGameData = {
1076
- lastFoundDate: string;
1077
- streak: number;
1078
- points: number;
1079
- collectedLetters?: string[];
1080
- gameEndDate: string;
1081
- };
1082
- type GameType = {
1083
- _id: string;
1084
- active: boolean;
1085
- createdAt: Date;
1086
- deletedAt: Date | null;
1087
- gameData: {
1088
- dailyClue?: DailyClueGameData | null;
1089
- } | null;
1090
- updatedAt: Date | null;
1091
- owner: OwnerType;
1092
- };
1093
-
1094
1098
  declare const vendorElectricity: {
1095
1099
  details: FormField;
1096
1100
  isRequired: FormField;
@@ -2373,4 +2377,4 @@ declare const cluemartSocialMedia: SocialMediaType[];
2373
2377
  declare const IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
2374
2378
  declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
2375
2379
 
2376
- export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameType, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, IOS_URL, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, type RefundPolicy, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetEventsByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, 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, useEventForm, useEventInfoForm, 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, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
2380
+ export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseGame, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameData, type GameType, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, IOS_URL, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, type RefundPolicy, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetEventsByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, 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, useEventForm, useEventInfoForm, 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, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
package/dist/index.mjs CHANGED
@@ -2391,8 +2391,8 @@ var TERMS_AGREEMENT_FIELDS_FRAGMENT = gql2`
2391
2391
  timestamp
2392
2392
  }
2393
2393
  `;
2394
- var EVENT_DATETIME_FIELDS_FRAGMENT = gql2`
2395
- fragment EventDateTimeFields on EventDateTimeType {
2394
+ var DATETIME_FIELDS_FRAGMENT = gql2`
2395
+ fragment DateTimeFields on DateTimeType {
2396
2396
  dateStatus
2397
2397
  endDate
2398
2398
  endTime
@@ -2411,7 +2411,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
2411
2411
  events {
2412
2412
  resourceId
2413
2413
  dateTime {
2414
- ...EventDateTimeFields
2414
+ ...DateTimeFields
2415
2415
  }
2416
2416
  }
2417
2417
  }
@@ -2419,7 +2419,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
2419
2419
  events {
2420
2420
  resourceId
2421
2421
  dateTime {
2422
- ...EventDateTimeFields
2422
+ ...DateTimeFields
2423
2423
  }
2424
2424
  }
2425
2425
  }
@@ -2427,12 +2427,12 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
2427
2427
  events {
2428
2428
  resourceId
2429
2429
  dateTime {
2430
- ...EventDateTimeFields
2430
+ ...DateTimeFields
2431
2431
  }
2432
2432
  }
2433
2433
  }
2434
2434
  }
2435
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
2435
+ ${DATETIME_FIELDS_FRAGMENT}
2436
2436
  `;
2437
2437
  var USER_FIELDS_FRAGMENT = gql2`
2438
2438
  fragment UserFields on UserType {
@@ -2542,7 +2542,7 @@ var EVENT_LIST_ITEM = gql2`
2542
2542
  }
2543
2543
  createdAt
2544
2544
  dateTime {
2545
- ...EventDateTimeFields
2545
+ ...DateTimeFields
2546
2546
  }
2547
2547
  deletedAt
2548
2548
  description
@@ -2570,7 +2570,7 @@ var EVENT_LIST_ITEM = gql2`
2570
2570
  reviewCount
2571
2571
  updatedAt
2572
2572
  }
2573
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
2573
+ ${DATETIME_FIELDS_FRAGMENT}
2574
2574
  ${LOCATION_FIELDS_FRAGMENT}
2575
2575
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2576
2576
  ${RELATION_DATES_FRAGMENT}
@@ -2630,7 +2630,7 @@ var EVENT = gql3`
2630
2630
  ...ContactDetailsFields
2631
2631
  }
2632
2632
  dateTime {
2633
- ...EventDateTimeFields
2633
+ ...DateTimeFields
2634
2634
  }
2635
2635
  description
2636
2636
  deletedAt
@@ -2675,7 +2675,7 @@ var EVENT = gql3`
2675
2675
  }
2676
2676
  updatedAt
2677
2677
  }
2678
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
2678
+ ${DATETIME_FIELDS_FRAGMENT}
2679
2679
  ${LOCATION_FIELDS_FRAGMENT}
2680
2680
  ${OWNER_FIELDS_FRAGMENT}
2681
2681
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
@@ -2903,14 +2903,14 @@ var VENDOR_INFO = gql4`
2903
2903
  var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = gql4`
2904
2904
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
2905
2905
  dateTime {
2906
- ...EventDateTimeFields
2906
+ ...DateTimeFields
2907
2907
  }
2908
2908
  eventId
2909
2909
  location {
2910
2910
  ...LocationFields
2911
2911
  }
2912
2912
  }
2913
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
2913
+ ${DATETIME_FIELDS_FRAGMENT}
2914
2914
  ${LOCATION_FIELDS_FRAGMENT}
2915
2915
  `;
2916
2916
  var UNREGISTERED_VENDOR = gql4`
@@ -5466,19 +5466,79 @@ var useSearchPartners = (search, region) => {
5466
5466
  import { useMutation as useMutation16 } from "@apollo/client";
5467
5467
 
5468
5468
  // src/graphql/mutations/post.ts
5469
- import { gql as gql30 } from "@apollo/client";
5469
+ import { gql as gql31 } from "@apollo/client";
5470
5470
 
5471
5471
  // src/graphql/queries/post.ts
5472
+ import { gql as gql30 } from "@apollo/client";
5473
+
5474
+ // src/graphql/queries/game.ts
5472
5475
  import { gql as gql29 } from "@apollo/client";
5473
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql29`
5476
+ var BASE_GAME_FIELDS_FRAGMENT = gql29`
5477
+ fragment BaseGameFields on BaseGameType {
5478
+ title
5479
+ gameType
5480
+ gameInfo {
5481
+ dailyClue {
5482
+ solution
5483
+ }
5484
+ }
5485
+ gameDate {
5486
+ ...DateTimeFields
5487
+ }
5488
+ }
5489
+ ${DATETIME_FIELDS_FRAGMENT}
5490
+ `;
5491
+ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql29`
5492
+ fragment DailyClueGameDataFields on DailyClueGameDataType {
5493
+ ...BaseGameFields
5494
+ collectedLetters
5495
+ lastFoundDate
5496
+ points
5497
+ streak
5498
+ }
5499
+ ${BASE_GAME_FIELDS_FRAGMENT}
5500
+ `;
5501
+ var GAME_FIELDS_FRAGMENT = gql29`
5502
+ fragment GameFields on GameType {
5503
+ _id
5504
+ active
5505
+ createdAt
5506
+ deletedAt
5507
+ gameData {
5508
+ dailyClue {
5509
+ ...DailyClueGameDataFields
5510
+ }
5511
+ }
5512
+ updatedAt
5513
+ owner {
5514
+ ...OwnerFields
5515
+ }
5516
+ }
5517
+ ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
5518
+ ${OWNER_FIELDS_FRAGMENT}
5519
+ `;
5520
+ var GET_GAMES = gql29`
5521
+ query getGames($userId: ID) {
5522
+ games(userId: $userId) {
5523
+ ...GameFields
5524
+ }
5525
+ }
5526
+ ${GAME_FIELDS_FRAGMENT}
5527
+ `;
5528
+ var GET_GAME = gql29`
5529
+ query getGame($_id: ID!) {
5530
+ game(_id: $_id) {
5531
+ ...GameFields
5532
+ }
5533
+ }
5534
+ ${GAME_FIELDS_FRAGMENT}
5535
+ `;
5536
+
5537
+ // src/graphql/queries/post.ts
5538
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql30`
5474
5539
  fragment PostContentDataFields on PostContentData {
5475
5540
  game {
5476
- title
5477
- gameType
5478
- gameInfo {
5479
- dailyClue
5480
- }
5481
- gameEndDate
5541
+ ...BaseGameFields
5482
5542
  }
5483
5543
  textarea {
5484
5544
  title
@@ -5499,8 +5559,9 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql29`
5499
5559
  }
5500
5560
  }
5501
5561
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5562
+ ${BASE_GAME_FIELDS_FRAGMENT}
5502
5563
  `;
5503
- var POST_CONTENT_FIELDS_FRAGMENT = gql29`
5564
+ var POST_CONTENT_FIELDS_FRAGMENT = gql30`
5504
5565
  fragment PostContentFields on PostContentType {
5505
5566
  contentData {
5506
5567
  ...PostContentDataFields
@@ -5510,7 +5571,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = gql29`
5510
5571
  }
5511
5572
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
5512
5573
  `;
5513
- var POST_FIELDS_FRAGMENT = gql29`
5574
+ var POST_FIELDS_FRAGMENT = gql30`
5514
5575
  fragment PostFields on PostType {
5515
5576
  _id
5516
5577
  active
@@ -5535,7 +5596,7 @@ var POST_FIELDS_FRAGMENT = gql29`
5535
5596
  ${POST_CONTENT_FIELDS_FRAGMENT}
5536
5597
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5537
5598
  `;
5538
- var GET_POSTS = gql29`
5599
+ var GET_POSTS = gql30`
5539
5600
  query getPosts {
5540
5601
  posts {
5541
5602
  ...PostFields
@@ -5543,7 +5604,7 @@ var GET_POSTS = gql29`
5543
5604
  }
5544
5605
  ${POST_FIELDS_FRAGMENT}
5545
5606
  `;
5546
- var GET_POST = gql29`
5607
+ var GET_POST = gql30`
5547
5608
  query getPost($_id: ID!) {
5548
5609
  post(_id: $_id) {
5549
5610
  ...PostFields
@@ -5551,7 +5612,7 @@ var GET_POST = gql29`
5551
5612
  }
5552
5613
  ${POST_FIELDS_FRAGMENT}
5553
5614
  `;
5554
- var GET_POSTS_BY_TYPE = gql29`
5615
+ var GET_POSTS_BY_TYPE = gql30`
5555
5616
  query getPostsByType($postType: PostTypeEnum!) {
5556
5617
  postsByType(postType: $postType) {
5557
5618
  ...PostFields
@@ -5561,7 +5622,7 @@ var GET_POSTS_BY_TYPE = gql29`
5561
5622
  `;
5562
5623
 
5563
5624
  // src/graphql/mutations/post.ts
5564
- var CREATE_POST_MUTATION = gql30`
5625
+ var CREATE_POST_MUTATION = gql31`
5565
5626
  mutation createPost($input: PostInputType!) {
5566
5627
  createPost(input: $input) {
5567
5628
  ...PostFields
@@ -5569,7 +5630,7 @@ var CREATE_POST_MUTATION = gql30`
5569
5630
  }
5570
5631
  ${POST_FIELDS_FRAGMENT}
5571
5632
  `;
5572
- var UPDATE_POST_MUTATION = gql30`
5633
+ var UPDATE_POST_MUTATION = gql31`
5573
5634
  mutation updatePost($_id: ID!, $input: PostInputType!) {
5574
5635
  updatePost(_id: $_id, input: $input) {
5575
5636
  ...PostFields
@@ -5577,7 +5638,7 @@ var UPDATE_POST_MUTATION = gql30`
5577
5638
  }
5578
5639
  ${POST_FIELDS_FRAGMENT}
5579
5640
  `;
5580
- var DELETE_POST_MUTATION = gql30`
5641
+ var DELETE_POST_MUTATION = gql31`
5581
5642
  mutation deletePost($_id: ID!) {
5582
5643
  deletePost(_id: $_id)
5583
5644
  }
@@ -5635,20 +5696,20 @@ var useGetPostsByType = (postType) => {
5635
5696
  import { useMutation as useMutation17 } from "@apollo/client";
5636
5697
 
5637
5698
  // src/graphql/mutations/appSettings.ts
5638
- import { gql as gql31 } from "@apollo/client";
5639
- var UPDATE_APP_SETTINGS_MUTATION = gql31`
5699
+ import { gql as gql32 } from "@apollo/client";
5700
+ var UPDATE_APP_SETTINGS_MUTATION = gql32`
5640
5701
  mutation updateAppSettings($input: AppSettingsInputType!) {
5641
5702
  updateAppSettings(input: $input)
5642
5703
  }
5643
5704
  `;
5644
- var CRAWL_GOOGLE_MARKETS_MUTATION = gql31`
5705
+ var CRAWL_GOOGLE_MARKETS_MUTATION = gql32`
5645
5706
  mutation crawlGoogleMarkets {
5646
5707
  crawlGoogleMarkets {
5647
5708
  message
5648
5709
  }
5649
5710
  }
5650
5711
  `;
5651
- var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = gql31`
5712
+ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = gql32`
5652
5713
  mutation updateGoogleImportedMarkets {
5653
5714
  updateGoogleImportedMarkets {
5654
5715
  message
@@ -5657,8 +5718,8 @@ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = gql31`
5657
5718
  `;
5658
5719
 
5659
5720
  // src/graphql/queries/appSettings.ts
5660
- import { gql as gql32 } from "@apollo/client";
5661
- var APP_SETTINGS_FIELDS_FRAGMENT = gql32`
5721
+ import { gql as gql33 } from "@apollo/client";
5722
+ var APP_SETTINGS_FIELDS_FRAGMENT = gql33`
5662
5723
  fragment AppSettingsFields on AppSettingsType {
5663
5724
  _id
5664
5725
  appVersion
@@ -5668,7 +5729,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql32`
5668
5729
  updatedAt
5669
5730
  }
5670
5731
  `;
5671
- var GET_APP_SETTINGS = gql32`
5732
+ var GET_APP_SETTINGS = gql33`
5672
5733
  query getAppSettings {
5673
5734
  appSettings {
5674
5735
  ...AppSettingsFields
@@ -5712,55 +5773,6 @@ import { useMutation as useMutation18 } from "@apollo/client";
5712
5773
 
5713
5774
  // src/graphql/mutations/game.ts
5714
5775
  import { gql as gql34 } from "@apollo/client";
5715
-
5716
- // src/graphql/queries/game.ts
5717
- import { gql as gql33 } from "@apollo/client";
5718
- var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql33`
5719
- fragment DailyClueGameDataFields on DailyClueGameDataType {
5720
- lastFoundDate
5721
- streak
5722
- points
5723
- collectedLetters
5724
- gameEndDate
5725
- }
5726
- `;
5727
- var GAME_FIELDS_FRAGMENT = gql33`
5728
- fragment GameFields on GameType {
5729
- _id
5730
- active
5731
- createdAt
5732
- deletedAt
5733
- gameData {
5734
- dailyClue {
5735
- ...DailyClueGameDataFields
5736
- }
5737
- }
5738
- updatedAt
5739
- owner {
5740
- ...OwnerFields
5741
- }
5742
- }
5743
- ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
5744
- ${OWNER_FIELDS_FRAGMENT}
5745
- `;
5746
- var GET_GAMES = gql33`
5747
- query getGames($userId: ID) {
5748
- games(userId: $userId) {
5749
- ...GameFields
5750
- }
5751
- }
5752
- ${GAME_FIELDS_FRAGMENT}
5753
- `;
5754
- var GET_GAME = gql33`
5755
- query getGame($_id: ID!) {
5756
- game(_id: $_id) {
5757
- ...GameFields
5758
- }
5759
- }
5760
- ${GAME_FIELDS_FRAGMENT}
5761
- `;
5762
-
5763
- // src/graphql/mutations/game.ts
5764
5776
  var START_GAME_MUTATION = gql34`
5765
5777
  mutation startGame($input: GameInputType!) {
5766
5778
  startGame(input: $input) {
@@ -5772,10 +5784,9 @@ var START_GAME_MUTATION = gql34`
5772
5784
  var LEAVE_GAME_MUTATION = gql34`
5773
5785
  mutation leaveGame($_id: ID!) {
5774
5786
  leaveGame(_id: $_id) {
5775
- ...GameFields
5787
+ userId
5776
5788
  }
5777
5789
  }
5778
- ${GAME_FIELDS_FRAGMENT}
5779
5790
  `;
5780
5791
 
5781
5792
  // src/graphql/hooks/game/hooksMutation.ts