@timardex/cluemart-shared 1.2.21 → 1.2.23

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.
Files changed (42) hide show
  1. package/dist/{ad-CMPlGS2z.d.mts → ad-BsEtu052.d.mts} +6 -0
  2. package/dist/{ad-CbnwOWnz.d.ts → ad-Dg1bpjxd.d.ts} +6 -0
  3. package/dist/{chunk-GATAI5T6.mjs → chunk-G5RI3IO2.mjs} +2 -2
  4. package/dist/{chunk-U6WFPNBJ.mjs → chunk-IVFHFNLY.mjs} +4 -1
  5. package/dist/chunk-IVFHFNLY.mjs.map +1 -0
  6. package/dist/enums/index.cjs +3 -0
  7. package/dist/enums/index.cjs.map +1 -1
  8. package/dist/enums/index.d.mts +4 -1
  9. package/dist/enums/index.d.ts +4 -1
  10. package/dist/enums/index.mjs +1 -1
  11. package/dist/formFields/index.cjs.map +1 -1
  12. package/dist/formFields/index.mjs +2 -2
  13. package/dist/graphql/index.cjs +72 -2
  14. package/dist/graphql/index.cjs.map +1 -1
  15. package/dist/graphql/index.d.mts +16 -3
  16. package/dist/graphql/index.d.ts +16 -3
  17. package/dist/graphql/index.mjs +71 -3
  18. package/dist/graphql/index.mjs.map +1 -1
  19. package/dist/hooks/index.cjs +3 -0
  20. package/dist/hooks/index.cjs.map +1 -1
  21. package/dist/hooks/index.d.mts +1 -1
  22. package/dist/hooks/index.d.ts +1 -1
  23. package/dist/hooks/index.mjs +2 -2
  24. package/dist/index.cjs +78 -4
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.mts +27 -4
  27. package/dist/index.d.ts +27 -4
  28. package/dist/index.mjs +76 -4
  29. package/dist/index.mjs.map +1 -1
  30. package/dist/{resourceActivities-C9cWAM6L.d.mts → resourceActivities-DDe473dL.d.mts} +3 -2
  31. package/dist/{resourceActivities-C04G4vFP.d.ts → resourceActivities-N7iowh1a.d.ts} +3 -2
  32. package/dist/types/index.cjs +3 -2
  33. package/dist/types/index.cjs.map +1 -1
  34. package/dist/types/index.d.mts +2 -2
  35. package/dist/types/index.d.ts +2 -2
  36. package/dist/types/index.mjs +3 -2
  37. package/dist/types/index.mjs.map +1 -1
  38. package/dist/utils/index.cjs.map +1 -1
  39. package/dist/utils/index.mjs +2 -2
  40. package/package.json +1 -1
  41. package/dist/chunk-U6WFPNBJ.mjs.map +0 -1
  42. /package/dist/{chunk-GATAI5T6.mjs.map → chunk-G5RI3IO2.mjs.map} +0 -0
package/dist/index.d.mts CHANGED
@@ -102,7 +102,10 @@ declare enum EnumUserLicence {
102
102
  }
103
103
  declare enum EnumUserRole {
104
104
  ADMIN = "admin",
105
- CUSTOMER = "customer"
105
+ CUSTOMER = "customer",
106
+ MARKETING = "marketing",
107
+ MODERATOR = "moderator",
108
+ SUPPORT = "support"
106
109
  }
107
110
  declare enum EnumSocialMedia {
108
111
  FACEBOOK = "facebook",
@@ -625,6 +628,12 @@ type UserActivity = {
625
628
  startDate: string;
626
629
  }[];
627
630
  };
631
+ present: {
632
+ events: {
633
+ resourceId: string;
634
+ startDate: string;
635
+ }[];
636
+ };
628
637
  };
629
638
  interface UserType {
630
639
  _id: string;
@@ -698,10 +707,11 @@ interface AdType extends AdFormData {
698
707
  }
699
708
 
700
709
  declare enum EnumActivity {
701
- VIEW = "VIEW",
710
+ FAVORITE = "FAVORITE",
702
711
  GOING = "GOING",
703
712
  INTERESTED = "INTERESTED",
704
- FAVORITE = "FAVORITE"
713
+ PRESENT = "PRESENT",
714
+ VIEW = "VIEW"
705
715
  }
706
716
  type ResourceActivityEntry = {
707
717
  activityType: EnumActivity;
@@ -1192,6 +1202,16 @@ declare const useRemoveUserGoingResource: () => {
1192
1202
  loading: boolean;
1193
1203
  removeUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1194
1204
  };
1205
+ declare const useAddUserPresentResource: () => {
1206
+ addUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1207
+ error: _apollo_client.ApolloError | undefined;
1208
+ loading: boolean;
1209
+ };
1210
+ declare const useRemoveUserPresentResource: () => {
1211
+ error: _apollo_client.ApolloError | undefined;
1212
+ loading: boolean;
1213
+ removeUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1214
+ };
1195
1215
 
1196
1216
  declare const useGetUsers: () => {
1197
1217
  error: _apollo_client.ApolloError | undefined;
@@ -1232,6 +1252,9 @@ declare const useGetUserActivities: () => {
1232
1252
  interested: {
1233
1253
  events: EventType[];
1234
1254
  };
1255
+ present: {
1256
+ events: EventType[];
1257
+ };
1235
1258
  };
1236
1259
  };
1237
1260
 
@@ -1473,4 +1496,4 @@ declare const availableRegionOptions: OptionItem[];
1473
1496
  declare const paymentMethodOptions: OptionItem[];
1474
1497
  declare function normalizeUrl(url: string): string;
1475
1498
 
1476
- 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 };
1499
+ 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, 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, 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
@@ -102,7 +102,10 @@ declare enum EnumUserLicence {
102
102
  }
103
103
  declare enum EnumUserRole {
104
104
  ADMIN = "admin",
105
- CUSTOMER = "customer"
105
+ CUSTOMER = "customer",
106
+ MARKETING = "marketing",
107
+ MODERATOR = "moderator",
108
+ SUPPORT = "support"
106
109
  }
107
110
  declare enum EnumSocialMedia {
108
111
  FACEBOOK = "facebook",
@@ -625,6 +628,12 @@ type UserActivity = {
625
628
  startDate: string;
626
629
  }[];
627
630
  };
631
+ present: {
632
+ events: {
633
+ resourceId: string;
634
+ startDate: string;
635
+ }[];
636
+ };
628
637
  };
629
638
  interface UserType {
630
639
  _id: string;
@@ -698,10 +707,11 @@ interface AdType extends AdFormData {
698
707
  }
699
708
 
700
709
  declare enum EnumActivity {
701
- VIEW = "VIEW",
710
+ FAVORITE = "FAVORITE",
702
711
  GOING = "GOING",
703
712
  INTERESTED = "INTERESTED",
704
- FAVORITE = "FAVORITE"
713
+ PRESENT = "PRESENT",
714
+ VIEW = "VIEW"
705
715
  }
706
716
  type ResourceActivityEntry = {
707
717
  activityType: EnumActivity;
@@ -1192,6 +1202,16 @@ declare const useRemoveUserGoingResource: () => {
1192
1202
  loading: boolean;
1193
1203
  removeUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1194
1204
  };
1205
+ declare const useAddUserPresentResource: () => {
1206
+ addUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1207
+ error: _apollo_client.ApolloError | undefined;
1208
+ loading: boolean;
1209
+ };
1210
+ declare const useRemoveUserPresentResource: () => {
1211
+ error: _apollo_client.ApolloError | undefined;
1212
+ loading: boolean;
1213
+ removeUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1214
+ };
1195
1215
 
1196
1216
  declare const useGetUsers: () => {
1197
1217
  error: _apollo_client.ApolloError | undefined;
@@ -1232,6 +1252,9 @@ declare const useGetUserActivities: () => {
1232
1252
  interested: {
1233
1253
  events: EventType[];
1234
1254
  };
1255
+ present: {
1256
+ events: EventType[];
1257
+ };
1235
1258
  };
1236
1259
  };
1237
1260
 
@@ -1473,4 +1496,4 @@ declare const availableRegionOptions: OptionItem[];
1473
1496
  declare const paymentMethodOptions: OptionItem[];
1474
1497
  declare function normalizeUrl(url: string): string;
1475
1498
 
1476
- 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 };
1499
+ 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, 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, 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
@@ -115,6 +115,9 @@ var EnumUserLicence = /* @__PURE__ */ ((EnumUserLicence2) => {
115
115
  var EnumUserRole = /* @__PURE__ */ ((EnumUserRole2) => {
116
116
  EnumUserRole2["ADMIN"] = "admin";
117
117
  EnumUserRole2["CUSTOMER"] = "customer";
118
+ EnumUserRole2["MARKETING"] = "marketing";
119
+ EnumUserRole2["MODERATOR"] = "moderator";
120
+ EnumUserRole2["SUPPORT"] = "support";
118
121
  return EnumUserRole2;
119
122
  })(EnumUserRole || {});
120
123
  var EnumSocialMedia = /* @__PURE__ */ ((EnumSocialMedia2) => {
@@ -2030,13 +2033,19 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
2030
2033
  events
2031
2034
  vendors
2032
2035
  }
2036
+ going {
2037
+ events {
2038
+ resourceId
2039
+ startDate
2040
+ }
2041
+ }
2033
2042
  interested {
2034
2043
  events {
2035
2044
  resourceId
2036
2045
  startDate
2037
2046
  }
2038
2047
  }
2039
- going {
2048
+ present {
2040
2049
  events {
2041
2050
  resourceId
2042
2051
  startDate
@@ -2930,12 +2939,17 @@ var GET_USER_ACTIVITIES = gql11`
2930
2939
  ...VendorFields
2931
2940
  }
2932
2941
  }
2942
+ going {
2943
+ events {
2944
+ ...EventFields
2945
+ }
2946
+ }
2933
2947
  interested {
2934
2948
  events {
2935
2949
  ...EventFields
2936
2950
  }
2937
2951
  }
2938
- going {
2952
+ present {
2939
2953
  events {
2940
2954
  ...EventFields
2941
2955
  }
@@ -4105,6 +4119,38 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = gql22`
4105
4119
  }
4106
4120
  ${USER_FIELDS_FRAGMENT}
4107
4121
  `;
4122
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = gql22`
4123
+ mutation addUserPresentResource(
4124
+ $resourceId: ID!
4125
+ $startDate: String!
4126
+ $userId: ID!
4127
+ ) {
4128
+ addUserPresentResource(
4129
+ resourceId: $resourceId
4130
+ startDate: $startDate
4131
+ userId: $userId
4132
+ ) {
4133
+ ...UserFields
4134
+ }
4135
+ }
4136
+ ${USER_FIELDS_FRAGMENT}
4137
+ `;
4138
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = gql22`
4139
+ mutation removeUserPresentResource(
4140
+ $resourceId: ID!
4141
+ $startDate: String!
4142
+ $userId: ID!
4143
+ ) {
4144
+ removeUserPresentResource(
4145
+ resourceId: $resourceId
4146
+ startDate: $startDate
4147
+ userId: $userId
4148
+ ) {
4149
+ ...UserFields
4150
+ }
4151
+ }
4152
+ ${USER_FIELDS_FRAGMENT}
4153
+ `;
4108
4154
 
4109
4155
  // src/graphql/hooks/user/hooksMutation.ts
4110
4156
  var useCreateUser = () => {
@@ -4204,6 +4250,26 @@ var useRemoveUserGoingResource = () => {
4204
4250
  );
4205
4251
  return { error, loading, removeUserGoingResource };
4206
4252
  };
4253
+ var useAddUserPresentResource = () => {
4254
+ const [addUserPresentResource, { loading, error }] = useMutation12(
4255
+ ADD_USER_PRESENT_RESOURCE_MUTATION,
4256
+ {
4257
+ awaitRefetchQueries: true,
4258
+ refetchQueries: [{ query: GET_USER_ACTIVITIES }]
4259
+ }
4260
+ );
4261
+ return { addUserPresentResource, error, loading };
4262
+ };
4263
+ var useRemoveUserPresentResource = () => {
4264
+ const [removeUserPresentResource, { loading, error }] = useMutation12(
4265
+ REMOVE_USER_PRESENT_RESOURCE_MUTATION,
4266
+ {
4267
+ awaitRefetchQueries: true,
4268
+ refetchQueries: [{ query: GET_USER_ACTIVITIES }]
4269
+ }
4270
+ );
4271
+ return { error, loading, removeUserPresentResource };
4272
+ };
4207
4273
 
4208
4274
  // src/graphql/hooks/user/hooksQuery.ts
4209
4275
  import { useQuery as useQuery7 } from "@apollo/client";
@@ -4249,6 +4315,9 @@ var useGetUserActivities = () => {
4249
4315
  },
4250
4316
  interested: {
4251
4317
  events: data?.userActivities.interested.events
4318
+ },
4319
+ present: {
4320
+ events: data?.userActivities.present.events
4252
4321
  }
4253
4322
  };
4254
4323
  return { error, loading, refetch, userActivities };
@@ -5998,10 +6067,11 @@ var fonts = {
5998
6067
 
5999
6068
  // src/types/resourceActivities.ts
6000
6069
  var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
6001
- EnumActivity2["VIEW"] = "VIEW";
6070
+ EnumActivity2["FAVORITE"] = "FAVORITE";
6002
6071
  EnumActivity2["GOING"] = "GOING";
6003
6072
  EnumActivity2["INTERESTED"] = "INTERESTED";
6004
- EnumActivity2["FAVORITE"] = "FAVORITE";
6073
+ EnumActivity2["PRESENT"] = "PRESENT";
6074
+ EnumActivity2["VIEW"] = "VIEW";
6005
6075
  return EnumActivity2;
6006
6076
  })(EnumActivity || {});
6007
6077
  export {
@@ -6087,6 +6157,7 @@ export {
6087
6157
  useAddUserFavouriteResource,
6088
6158
  useAddUserGoingResource,
6089
6159
  useAddUserInterestResource,
6160
+ useAddUserPresentResource,
6090
6161
  useAdminUpdateResourceType,
6091
6162
  useContactUs,
6092
6163
  useContactUsForm,
@@ -6158,6 +6229,7 @@ export {
6158
6229
  useRemoveUserFavouriteResource,
6159
6230
  useRemoveUserGoingResource,
6160
6231
  useRemoveUserInterestResource,
6232
+ useRemoveUserPresentResource,
6161
6233
  useRequestPasswordReset,
6162
6234
  useRequestPasswordResetForm,
6163
6235
  useResetPassword,