@timardex/cluemart-shared 1.2.14 → 1.2.16

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
@@ -348,8 +348,10 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
348
348
  deletedAt: string | null;
349
349
  owner: OwnerType;
350
350
  posterUsage?: PosterUsageType | null;
351
- relationDates?: RelationDate[] | null;
352
- relationIds: string[] | null;
351
+ relations: {
352
+ relationId: string | null;
353
+ relationDates: RelationDate[] | null;
354
+ }[] | null;
353
355
  updatedAt: string;
354
356
  };
355
357
  type LocationType = {
@@ -606,6 +608,24 @@ type UserFormData = {
606
608
  termsAgreement?: TermsAgreement | null;
607
609
  };
608
610
  type CreateUserFormData = CreateFormData<UserFormData>;
611
+ type UserActivity = {
612
+ favourites: {
613
+ events: string[];
614
+ vendors: string[];
615
+ };
616
+ interests: {
617
+ events: {
618
+ resourceId: string;
619
+ startDate: string;
620
+ }[];
621
+ };
622
+ going: {
623
+ events: {
624
+ resourceId: string;
625
+ startDate: string;
626
+ }[];
627
+ };
628
+ };
609
629
  interface UserType {
610
630
  _id: string;
611
631
  active: boolean;
@@ -614,10 +634,7 @@ interface UserType {
614
634
  deletedAt: string | null;
615
635
  email: string;
616
636
  isTester: boolean;
617
- favourites: {
618
- events: string[];
619
- vendors: string[];
620
- };
637
+ userActivity: UserActivity | null;
621
638
  firstName: string;
622
639
  lastName: string;
623
640
  licences: EnumUserLicence[] | null;
@@ -1175,11 +1192,11 @@ declare const useGetUserVendors: () => {
1175
1192
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1176
1193
  userVendors: VendorType[];
1177
1194
  };
1178
- declare const useGetUserFavourites: () => {
1195
+ declare const useGetUserActivities: () => {
1179
1196
  error: _apollo_client.ApolloError | undefined;
1180
1197
  loading: boolean;
1181
1198
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1182
- userFavourites: {
1199
+ userActivities: {
1183
1200
  events: EventType[];
1184
1201
  vendors: VendorType[];
1185
1202
  };
@@ -1423,4 +1440,4 @@ declare const availableRegionOptions: OptionItem[];
1423
1440
  declare const paymentMethodOptions: OptionItem[];
1424
1441
  declare function normalizeUrl(url: string): string;
1425
1442
 
1426
- 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, 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 ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewInputType, type ResourceViewsType, 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 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, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, 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, useGetResourceConnections, useGetResourceViews, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserEvents, useGetUserFavourites, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, 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 };
1443
+ 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, 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 ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewInputType, type ResourceViewsType, 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, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, 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, useGetResourceConnections, useGetResourceViews, 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, 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
@@ -348,8 +348,10 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
348
348
  deletedAt: string | null;
349
349
  owner: OwnerType;
350
350
  posterUsage?: PosterUsageType | null;
351
- relationDates?: RelationDate[] | null;
352
- relationIds: string[] | null;
351
+ relations: {
352
+ relationId: string | null;
353
+ relationDates: RelationDate[] | null;
354
+ }[] | null;
353
355
  updatedAt: string;
354
356
  };
355
357
  type LocationType = {
@@ -606,6 +608,24 @@ type UserFormData = {
606
608
  termsAgreement?: TermsAgreement | null;
607
609
  };
608
610
  type CreateUserFormData = CreateFormData<UserFormData>;
611
+ type UserActivity = {
612
+ favourites: {
613
+ events: string[];
614
+ vendors: string[];
615
+ };
616
+ interests: {
617
+ events: {
618
+ resourceId: string;
619
+ startDate: string;
620
+ }[];
621
+ };
622
+ going: {
623
+ events: {
624
+ resourceId: string;
625
+ startDate: string;
626
+ }[];
627
+ };
628
+ };
609
629
  interface UserType {
610
630
  _id: string;
611
631
  active: boolean;
@@ -614,10 +634,7 @@ interface UserType {
614
634
  deletedAt: string | null;
615
635
  email: string;
616
636
  isTester: boolean;
617
- favourites: {
618
- events: string[];
619
- vendors: string[];
620
- };
637
+ userActivity: UserActivity | null;
621
638
  firstName: string;
622
639
  lastName: string;
623
640
  licences: EnumUserLicence[] | null;
@@ -1175,11 +1192,11 @@ declare const useGetUserVendors: () => {
1175
1192
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1176
1193
  userVendors: VendorType[];
1177
1194
  };
1178
- declare const useGetUserFavourites: () => {
1195
+ declare const useGetUserActivities: () => {
1179
1196
  error: _apollo_client.ApolloError | undefined;
1180
1197
  loading: boolean;
1181
1198
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1182
- userFavourites: {
1199
+ userActivities: {
1183
1200
  events: EventType[];
1184
1201
  vendors: VendorType[];
1185
1202
  };
@@ -1423,4 +1440,4 @@ declare const availableRegionOptions: OptionItem[];
1423
1440
  declare const paymentMethodOptions: OptionItem[];
1424
1441
  declare function normalizeUrl(url: string): string;
1425
1442
 
1426
- 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, 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 ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewInputType, type ResourceViewsType, 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 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, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, 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, useGetResourceConnections, useGetResourceViews, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserEvents, useGetUserFavourites, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, 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 };
1443
+ 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, 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 ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewInputType, type ResourceViewsType, 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, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, 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, useGetResourceConnections, useGetResourceViews, 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, 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
@@ -2024,6 +2024,26 @@ var TERMS_AGREEMENT_FIELDS_FRAGMENT = gql2`
2024
2024
  timestamp
2025
2025
  }
2026
2026
  `;
2027
+ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
2028
+ fragment UserActivityFields on UserActivityType {
2029
+ favourites {
2030
+ events
2031
+ vendors
2032
+ }
2033
+ interests {
2034
+ events {
2035
+ resourceId
2036
+ startDate
2037
+ }
2038
+ }
2039
+ going {
2040
+ events {
2041
+ resourceId
2042
+ startDate
2043
+ }
2044
+ }
2045
+ }
2046
+ `;
2027
2047
  var USER_FIELDS_FRAGMENT = gql2`
2028
2048
  fragment UserFields on UserType {
2029
2049
  _id
@@ -2035,10 +2055,6 @@ var USER_FIELDS_FRAGMENT = gql2`
2035
2055
  deletedAt
2036
2056
  email
2037
2057
  isTester
2038
- favourites {
2039
- events
2040
- vendors
2041
- }
2042
2058
  firstName
2043
2059
  lastName
2044
2060
  licences
@@ -2053,12 +2069,16 @@ var USER_FIELDS_FRAGMENT = gql2`
2053
2069
  termsAgreement {
2054
2070
  ...TermsAgreementFields
2055
2071
  }
2072
+ userActivity {
2073
+ ...UserActivityFields
2074
+ }
2056
2075
  vendor
2057
2076
  updatedAt
2058
2077
  }
2059
2078
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2060
2079
  ${PARTNER_FIELDS_FRAGMENT}
2061
2080
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2081
+ ${USER_ACTIVITY_FIELDS_FRAGMENT}
2062
2082
  `;
2063
2083
  var STALL_TYPE_FIELDS_FRAGMENT = gql2`
2064
2084
  fragment StallTypeFields on StallTypeType {
@@ -2188,9 +2208,11 @@ var EVENT = gql3`
2188
2208
  ...PosterUsageFields
2189
2209
  }
2190
2210
  region
2191
- relationIds
2192
- relationDates {
2193
- ...RelationDates
2211
+ relations {
2212
+ relationId
2213
+ relationDates {
2214
+ ...RelationDates
2215
+ }
2194
2216
  }
2195
2217
  socialMedia {
2196
2218
  ...SocialMediaFields
@@ -2346,9 +2368,11 @@ var VENDOR = gql4`
2346
2368
  ...PosterUsageFields
2347
2369
  }
2348
2370
  region
2349
- relationIds
2350
- relationDates {
2351
- ...RelationDates
2371
+ relations {
2372
+ relationId
2373
+ relationDates {
2374
+ ...RelationDates
2375
+ }
2352
2376
  }
2353
2377
  socialMedia {
2354
2378
  ...SocialMediaFields
@@ -2895,14 +2919,26 @@ var GET_USER_VENDORS = gql11`
2895
2919
  }
2896
2920
  ${VENDOR}
2897
2921
  `;
2898
- var GET_USER_FAVOURITES = gql11`
2899
- query getUserFavourites {
2900
- userFavourites {
2901
- events {
2902
- ...EventFields
2922
+ var GET_USER_ACTIVITIES = gql11`
2923
+ query getUserActivities {
2924
+ userActivities {
2925
+ favourites {
2926
+ events {
2927
+ ...EventFields
2928
+ }
2929
+ vendors {
2930
+ ...VendorFields
2931
+ }
2903
2932
  }
2904
- vendors {
2905
- ...VendorFields
2933
+ interests {
2934
+ events {
2935
+ ...EventFields
2936
+ }
2937
+ }
2938
+ going {
2939
+ events {
2940
+ ...EventFields
2941
+ }
2906
2942
  }
2907
2943
  }
2908
2944
  }
@@ -4031,7 +4067,7 @@ var useAddUserFavouriteResource = () => {
4031
4067
  ADD_USER_FAVOURITE_RESOURCE_MUTATION,
4032
4068
  {
4033
4069
  awaitRefetchQueries: true,
4034
- refetchQueries: [{ query: GET_USER_FAVOURITES }]
4070
+ refetchQueries: [{ query: GET_USER_ACTIVITIES }]
4035
4071
  }
4036
4072
  );
4037
4073
  return { addUserFavouriteResource, error, loading };
@@ -4041,7 +4077,7 @@ var useRemoveUserFavouriteResource = () => {
4041
4077
  REMOVE_USER_FAVOURITE_RESOURCE_MUTATION,
4042
4078
  {
4043
4079
  awaitRefetchQueries: true,
4044
- refetchQueries: [{ query: GET_USER_FAVOURITES }]
4080
+ refetchQueries: [{ query: GET_USER_ACTIVITIES }]
4045
4081
  }
4046
4082
  );
4047
4083
  return { error, loading, removeUserFavouriteResource };
@@ -4095,17 +4131,17 @@ var useGetUserVendors = () => {
4095
4131
  const userVendors = data?.userVendors;
4096
4132
  return { error, loading, refetch, userVendors };
4097
4133
  };
4098
- var useGetUserFavourites = () => {
4099
- const { loading, error, data, refetch } = useQuery7(GET_USER_FAVOURITES, {
4134
+ var useGetUserActivities = () => {
4135
+ const { loading, error, data, refetch } = useQuery7(GET_USER_ACTIVITIES, {
4100
4136
  fetchPolicy: "network-only"
4101
4137
  });
4102
- const events = data?.userFavourites.events;
4103
- const vendors = data?.userFavourites.vendors;
4104
- const userFavourites = {
4138
+ const events = data?.userActivities.events;
4139
+ const vendors = data?.userActivities.vendors;
4140
+ const userActivities = {
4105
4141
  events,
4106
4142
  vendors
4107
4143
  };
4108
- return { error, loading, refetch, userFavourites };
4144
+ return { error, loading, refetch, userActivities };
4109
4145
  };
4110
4146
 
4111
4147
  // src/graphql/hooks/ad/hooksMutation.ts
@@ -5969,9 +6005,9 @@ export {
5969
6005
  useGetTester,
5970
6006
  useGetTesters,
5971
6007
  useGetUser,
6008
+ useGetUserActivities,
5972
6009
  useGetUserChats,
5973
6010
  useGetUserEvents,
5974
- useGetUserFavourites,
5975
6011
  useGetUserNotifications,
5976
6012
  useGetUserNotificationsSubscription,
5977
6013
  useGetUserVendors,