@timardex/cluemart-shared 1.2.22 → 1.2.24

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
@@ -484,6 +484,18 @@ type RegisterFormData = {
484
484
  termsAgreement?: TermsAgreement | null;
485
485
  };
486
486
  type CreateRegisterFormData = CreateFormData<RegisterFormData>;
487
+ type GoogleSignInFormData = {
488
+ idToken: string;
489
+ platform?: EnumOSPlatform;
490
+ scopes?: string[] | null;
491
+ };
492
+ type GoogleRegisterFormData = {
493
+ idToken: string;
494
+ platform?: EnumOSPlatform;
495
+ preferredRegion: string;
496
+ scopes?: string[] | null;
497
+ termsAgreement: TermsAgreement;
498
+ };
487
499
  type RequestPasswordResetFormData = {
488
500
  email: string;
489
501
  };
@@ -628,6 +640,12 @@ type UserActivity = {
628
640
  startDate: string;
629
641
  }[];
630
642
  };
643
+ present: {
644
+ events: {
645
+ resourceId: string;
646
+ startDate: string;
647
+ }[];
648
+ };
631
649
  };
632
650
  interface UserType {
633
651
  _id: string;
@@ -701,10 +719,11 @@ interface AdType extends AdFormData {
701
719
  }
702
720
 
703
721
  declare enum EnumActivity {
704
- VIEW = "VIEW",
722
+ FAVORITE = "FAVORITE",
705
723
  GOING = "GOING",
706
724
  INTERESTED = "INTERESTED",
707
- FAVORITE = "FAVORITE"
725
+ PRESENT = "PRESENT",
726
+ VIEW = "VIEW"
708
727
  }
709
728
  type ResourceActivityEntry = {
710
729
  activityType: EnumActivity;
@@ -806,6 +825,16 @@ declare const useLogin: () => {
806
825
  loading: boolean;
807
826
  login: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
808
827
  };
828
+ declare const useGoogleSignIn: () => {
829
+ error: _apollo_client.ApolloError | undefined;
830
+ loading: boolean;
831
+ googleSignIn: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
832
+ };
833
+ declare const useGoogleRegister: () => {
834
+ error: _apollo_client.ApolloError | undefined;
835
+ loading: boolean;
836
+ googleRegister: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
837
+ };
809
838
  declare const useLogout: () => {
810
839
  error: _apollo_client.ApolloError | undefined;
811
840
  loading: boolean;
@@ -1195,6 +1224,16 @@ declare const useRemoveUserGoingResource: () => {
1195
1224
  loading: boolean;
1196
1225
  removeUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1197
1226
  };
1227
+ declare const useAddUserPresentResource: () => {
1228
+ addUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1229
+ error: _apollo_client.ApolloError | undefined;
1230
+ loading: boolean;
1231
+ };
1232
+ declare const useRemoveUserPresentResource: () => {
1233
+ error: _apollo_client.ApolloError | undefined;
1234
+ loading: boolean;
1235
+ removeUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1236
+ };
1198
1237
 
1199
1238
  declare const useGetUsers: () => {
1200
1239
  error: _apollo_client.ApolloError | undefined;
@@ -1235,6 +1274,9 @@ declare const useGetUserActivities: () => {
1235
1274
  interested: {
1236
1275
  events: EventType[];
1237
1276
  };
1277
+ present: {
1278
+ events: EventType[];
1279
+ };
1238
1280
  };
1239
1281
  };
1240
1282
 
@@ -1476,4 +1518,4 @@ declare const availableRegionOptions: OptionItem[];
1476
1518
  declare const paymentMethodOptions: OptionItem[];
1477
1519
  declare function normalizeUrl(url: string): string;
1478
1520
 
1479
- export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TermsAgreement, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
1521
+ export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GoogleRegisterFormData, type GoogleSignInFormData, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TermsAgreement, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useGoogleRegister, useGoogleSignIn, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
package/dist/index.d.ts CHANGED
@@ -484,6 +484,18 @@ type RegisterFormData = {
484
484
  termsAgreement?: TermsAgreement | null;
485
485
  };
486
486
  type CreateRegisterFormData = CreateFormData<RegisterFormData>;
487
+ type GoogleSignInFormData = {
488
+ idToken: string;
489
+ platform?: EnumOSPlatform;
490
+ scopes?: string[] | null;
491
+ };
492
+ type GoogleRegisterFormData = {
493
+ idToken: string;
494
+ platform?: EnumOSPlatform;
495
+ preferredRegion: string;
496
+ scopes?: string[] | null;
497
+ termsAgreement: TermsAgreement;
498
+ };
487
499
  type RequestPasswordResetFormData = {
488
500
  email: string;
489
501
  };
@@ -628,6 +640,12 @@ type UserActivity = {
628
640
  startDate: string;
629
641
  }[];
630
642
  };
643
+ present: {
644
+ events: {
645
+ resourceId: string;
646
+ startDate: string;
647
+ }[];
648
+ };
631
649
  };
632
650
  interface UserType {
633
651
  _id: string;
@@ -701,10 +719,11 @@ interface AdType extends AdFormData {
701
719
  }
702
720
 
703
721
  declare enum EnumActivity {
704
- VIEW = "VIEW",
722
+ FAVORITE = "FAVORITE",
705
723
  GOING = "GOING",
706
724
  INTERESTED = "INTERESTED",
707
- FAVORITE = "FAVORITE"
725
+ PRESENT = "PRESENT",
726
+ VIEW = "VIEW"
708
727
  }
709
728
  type ResourceActivityEntry = {
710
729
  activityType: EnumActivity;
@@ -806,6 +825,16 @@ declare const useLogin: () => {
806
825
  loading: boolean;
807
826
  login: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
808
827
  };
828
+ declare const useGoogleSignIn: () => {
829
+ error: _apollo_client.ApolloError | undefined;
830
+ loading: boolean;
831
+ googleSignIn: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
832
+ };
833
+ declare const useGoogleRegister: () => {
834
+ error: _apollo_client.ApolloError | undefined;
835
+ loading: boolean;
836
+ googleRegister: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
837
+ };
809
838
  declare const useLogout: () => {
810
839
  error: _apollo_client.ApolloError | undefined;
811
840
  loading: boolean;
@@ -1195,6 +1224,16 @@ declare const useRemoveUserGoingResource: () => {
1195
1224
  loading: boolean;
1196
1225
  removeUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1197
1226
  };
1227
+ declare const useAddUserPresentResource: () => {
1228
+ addUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1229
+ error: _apollo_client.ApolloError | undefined;
1230
+ loading: boolean;
1231
+ };
1232
+ declare const useRemoveUserPresentResource: () => {
1233
+ error: _apollo_client.ApolloError | undefined;
1234
+ loading: boolean;
1235
+ removeUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1236
+ };
1198
1237
 
1199
1238
  declare const useGetUsers: () => {
1200
1239
  error: _apollo_client.ApolloError | undefined;
@@ -1235,6 +1274,9 @@ declare const useGetUserActivities: () => {
1235
1274
  interested: {
1236
1275
  events: EventType[];
1237
1276
  };
1277
+ present: {
1278
+ events: EventType[];
1279
+ };
1238
1280
  };
1239
1281
  };
1240
1282
 
@@ -1476,4 +1518,4 @@ declare const availableRegionOptions: OptionItem[];
1476
1518
  declare const paymentMethodOptions: OptionItem[];
1477
1519
  declare function normalizeUrl(url: string): string;
1478
1520
 
1479
- export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TermsAgreement, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
1521
+ export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GoogleRegisterFormData, type GoogleSignInFormData, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TermsAgreement, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useGoogleRegister, useGoogleSignIn, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
package/dist/index.mjs CHANGED
@@ -2033,13 +2033,19 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
2033
2033
  events
2034
2034
  vendors
2035
2035
  }
2036
+ going {
2037
+ events {
2038
+ resourceId
2039
+ startDate
2040
+ }
2041
+ }
2036
2042
  interested {
2037
2043
  events {
2038
2044
  resourceId
2039
2045
  startDate
2040
2046
  }
2041
2047
  }
2042
- going {
2048
+ present {
2043
2049
  events {
2044
2050
  resourceId
2045
2051
  startDate
@@ -2546,6 +2552,32 @@ var LOGIN_MUTATION = gql5`
2546
2552
  }
2547
2553
  ${USER_FIELDS_FRAGMENT}
2548
2554
  `;
2555
+ var GOOGLE_SIGN_IN_MUTATION = gql5`
2556
+ mutation googleSignIn($input: GoogleSignInInputType!) {
2557
+ googleSignIn(input: $input) {
2558
+ message
2559
+ refreshToken
2560
+ token
2561
+ user {
2562
+ ...UserFields
2563
+ }
2564
+ }
2565
+ }
2566
+ ${USER_FIELDS_FRAGMENT}
2567
+ `;
2568
+ var GOOGLE_REGISTER_MUTATION = gql5`
2569
+ mutation googleRegister($input: GoogleRegisterInputType!) {
2570
+ googleRegister(input: $input) {
2571
+ message
2572
+ refreshToken
2573
+ token
2574
+ user {
2575
+ ...UserFields
2576
+ }
2577
+ }
2578
+ }
2579
+ ${USER_FIELDS_FRAGMENT}
2580
+ `;
2549
2581
  var LOGOUT_MUTATION = gql5`
2550
2582
  mutation logout {
2551
2583
  logout {
@@ -2594,6 +2626,18 @@ var useLogin = () => {
2594
2626
  const [login, { loading, error }] = useMutation2(LOGIN_MUTATION);
2595
2627
  return { error, loading, login };
2596
2628
  };
2629
+ var useGoogleSignIn = () => {
2630
+ const [googleSignIn, { loading, error }] = useMutation2(
2631
+ GOOGLE_SIGN_IN_MUTATION
2632
+ );
2633
+ return { error, loading, googleSignIn };
2634
+ };
2635
+ var useGoogleRegister = () => {
2636
+ const [googleRegister, { loading, error }] = useMutation2(
2637
+ GOOGLE_REGISTER_MUTATION
2638
+ );
2639
+ return { error, loading, googleRegister };
2640
+ };
2597
2641
  var useLogout = () => {
2598
2642
  const [logout, { loading, error }] = useMutation2(LOGOUT_MUTATION);
2599
2643
  return { error, loading, logout };
@@ -2933,12 +2977,17 @@ var GET_USER_ACTIVITIES = gql11`
2933
2977
  ...VendorFields
2934
2978
  }
2935
2979
  }
2980
+ going {
2981
+ events {
2982
+ ...EventFields
2983
+ }
2984
+ }
2936
2985
  interested {
2937
2986
  events {
2938
2987
  ...EventFields
2939
2988
  }
2940
2989
  }
2941
- going {
2990
+ present {
2942
2991
  events {
2943
2992
  ...EventFields
2944
2993
  }
@@ -4108,6 +4157,38 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = gql22`
4108
4157
  }
4109
4158
  ${USER_FIELDS_FRAGMENT}
4110
4159
  `;
4160
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = gql22`
4161
+ mutation addUserPresentResource(
4162
+ $resourceId: ID!
4163
+ $startDate: String!
4164
+ $userId: ID!
4165
+ ) {
4166
+ addUserPresentResource(
4167
+ resourceId: $resourceId
4168
+ startDate: $startDate
4169
+ userId: $userId
4170
+ ) {
4171
+ ...UserFields
4172
+ }
4173
+ }
4174
+ ${USER_FIELDS_FRAGMENT}
4175
+ `;
4176
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = gql22`
4177
+ mutation removeUserPresentResource(
4178
+ $resourceId: ID!
4179
+ $startDate: String!
4180
+ $userId: ID!
4181
+ ) {
4182
+ removeUserPresentResource(
4183
+ resourceId: $resourceId
4184
+ startDate: $startDate
4185
+ userId: $userId
4186
+ ) {
4187
+ ...UserFields
4188
+ }
4189
+ }
4190
+ ${USER_FIELDS_FRAGMENT}
4191
+ `;
4111
4192
 
4112
4193
  // src/graphql/hooks/user/hooksMutation.ts
4113
4194
  var useCreateUser = () => {
@@ -4207,6 +4288,26 @@ var useRemoveUserGoingResource = () => {
4207
4288
  );
4208
4289
  return { error, loading, removeUserGoingResource };
4209
4290
  };
4291
+ var useAddUserPresentResource = () => {
4292
+ const [addUserPresentResource, { loading, error }] = useMutation12(
4293
+ ADD_USER_PRESENT_RESOURCE_MUTATION,
4294
+ {
4295
+ awaitRefetchQueries: true,
4296
+ refetchQueries: [{ query: GET_USER_ACTIVITIES }]
4297
+ }
4298
+ );
4299
+ return { addUserPresentResource, error, loading };
4300
+ };
4301
+ var useRemoveUserPresentResource = () => {
4302
+ const [removeUserPresentResource, { loading, error }] = useMutation12(
4303
+ REMOVE_USER_PRESENT_RESOURCE_MUTATION,
4304
+ {
4305
+ awaitRefetchQueries: true,
4306
+ refetchQueries: [{ query: GET_USER_ACTIVITIES }]
4307
+ }
4308
+ );
4309
+ return { error, loading, removeUserPresentResource };
4310
+ };
4210
4311
 
4211
4312
  // src/graphql/hooks/user/hooksQuery.ts
4212
4313
  import { useQuery as useQuery7 } from "@apollo/client";
@@ -4252,6 +4353,9 @@ var useGetUserActivities = () => {
4252
4353
  },
4253
4354
  interested: {
4254
4355
  events: data?.userActivities.interested.events
4356
+ },
4357
+ present: {
4358
+ events: data?.userActivities.present.events
4255
4359
  }
4256
4360
  };
4257
4361
  return { error, loading, refetch, userActivities };
@@ -6001,10 +6105,11 @@ var fonts = {
6001
6105
 
6002
6106
  // src/types/resourceActivities.ts
6003
6107
  var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
6004
- EnumActivity2["VIEW"] = "VIEW";
6108
+ EnumActivity2["FAVORITE"] = "FAVORITE";
6005
6109
  EnumActivity2["GOING"] = "GOING";
6006
6110
  EnumActivity2["INTERESTED"] = "INTERESTED";
6007
- EnumActivity2["FAVORITE"] = "FAVORITE";
6111
+ EnumActivity2["PRESENT"] = "PRESENT";
6112
+ EnumActivity2["VIEW"] = "VIEW";
6008
6113
  return EnumActivity2;
6009
6114
  })(EnumActivity || {});
6010
6115
  export {
@@ -6090,6 +6195,7 @@ export {
6090
6195
  useAddUserFavouriteResource,
6091
6196
  useAddUserGoingResource,
6092
6197
  useAddUserInterestResource,
6198
+ useAddUserPresentResource,
6093
6199
  useAdminUpdateResourceType,
6094
6200
  useContactUs,
6095
6201
  useContactUsForm,
@@ -6148,6 +6254,8 @@ export {
6148
6254
  useGetVendorRelations,
6149
6255
  useGetVendors,
6150
6256
  useGetVendorsByRegion,
6257
+ useGoogleRegister,
6258
+ useGoogleSignIn,
6151
6259
  useLocationSearch,
6152
6260
  useLogin,
6153
6261
  useLoginForm,
@@ -6161,6 +6269,7 @@ export {
6161
6269
  useRemoveUserFavouriteResource,
6162
6270
  useRemoveUserGoingResource,
6163
6271
  useRemoveUserInterestResource,
6272
+ useRemoveUserPresentResource,
6164
6273
  useRequestPasswordReset,
6165
6274
  useRequestPasswordResetForm,
6166
6275
  useResetPassword,