@timardex/cluemart-shared 1.2.15 → 1.2.17

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
@@ -608,6 +608,24 @@ type UserFormData = {
608
608
  termsAgreement?: TermsAgreement | null;
609
609
  };
610
610
  type CreateUserFormData = CreateFormData<UserFormData>;
611
+ type UserActivity = {
612
+ favourites: {
613
+ events: string[];
614
+ vendors: string[];
615
+ };
616
+ going: {
617
+ events: {
618
+ resourceId: string;
619
+ startDate: string;
620
+ }[];
621
+ };
622
+ interests: {
623
+ events: {
624
+ resourceId: string;
625
+ startDate: string;
626
+ }[];
627
+ };
628
+ };
611
629
  interface UserType {
612
630
  _id: string;
613
631
  active: boolean;
@@ -615,23 +633,20 @@ interface UserType {
615
633
  createdAt: string;
616
634
  deletedAt: string | null;
617
635
  email: string;
618
- isTester: boolean;
619
- favourites: {
620
- events: string[];
621
- vendors: string[];
622
- };
636
+ events: string[] | null;
623
637
  firstName: string;
638
+ isTester: boolean;
624
639
  lastName: string;
625
640
  licences: EnumUserLicence[] | null;
626
- events: string[] | null;
641
+ partners?: PartnerType[] | null;
627
642
  password: string;
628
643
  platform: EnumOSPlatform | null;
629
644
  preferredRegion: string;
630
- partners?: PartnerType[] | null;
631
645
  refreshToken: string | null;
632
646
  role: EnumUserRole;
633
647
  termsAgreement?: TermsAgreement | null;
634
648
  updatedAt: string;
649
+ userActivity: UserActivity | null;
635
650
  vendor: string | null;
636
651
  }
637
652
 
@@ -1152,6 +1167,26 @@ declare const useSelectPackage: () => {
1152
1167
  loading: boolean;
1153
1168
  selectPackage: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1154
1169
  };
1170
+ declare const useAddUserInterestResource: () => {
1171
+ addUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1172
+ error: _apollo_client.ApolloError | undefined;
1173
+ loading: boolean;
1174
+ };
1175
+ declare const useRemoveUserInterestResource: () => {
1176
+ error: _apollo_client.ApolloError | undefined;
1177
+ loading: boolean;
1178
+ removeUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1179
+ };
1180
+ declare const useAddUserGoingResource: () => {
1181
+ addUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1182
+ error: _apollo_client.ApolloError | undefined;
1183
+ loading: boolean;
1184
+ };
1185
+ declare const useRemoveUserGoingResource: () => {
1186
+ error: _apollo_client.ApolloError | undefined;
1187
+ loading: boolean;
1188
+ removeUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1189
+ };
1155
1190
 
1156
1191
  declare const useGetUsers: () => {
1157
1192
  error: _apollo_client.ApolloError | undefined;
@@ -1177,13 +1212,21 @@ declare const useGetUserVendors: () => {
1177
1212
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1178
1213
  userVendors: VendorType[];
1179
1214
  };
1180
- declare const useGetUserFavourites: () => {
1215
+ declare const useGetUserActivities: () => {
1181
1216
  error: _apollo_client.ApolloError | undefined;
1182
1217
  loading: boolean;
1183
1218
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1184
- userFavourites: {
1185
- events: EventType[];
1186
- vendors: VendorType[];
1219
+ userActivities: {
1220
+ favourites: {
1221
+ events: EventType[];
1222
+ vendors: VendorType[];
1223
+ };
1224
+ going: {
1225
+ events: EventType[];
1226
+ };
1227
+ interests: {
1228
+ events: EventType[];
1229
+ };
1187
1230
  };
1188
1231
  };
1189
1232
 
@@ -1425,4 +1468,4 @@ declare const availableRegionOptions: OptionItem[];
1425
1468
  declare const paymentMethodOptions: OptionItem[];
1426
1469
  declare function normalizeUrl(url: string): string;
1427
1470
 
1428
- 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 };
1471
+ 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, useAddUserGoingResource, useAddUserInterestResource, 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, 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 };
package/dist/index.d.ts CHANGED
@@ -608,6 +608,24 @@ type UserFormData = {
608
608
  termsAgreement?: TermsAgreement | null;
609
609
  };
610
610
  type CreateUserFormData = CreateFormData<UserFormData>;
611
+ type UserActivity = {
612
+ favourites: {
613
+ events: string[];
614
+ vendors: string[];
615
+ };
616
+ going: {
617
+ events: {
618
+ resourceId: string;
619
+ startDate: string;
620
+ }[];
621
+ };
622
+ interests: {
623
+ events: {
624
+ resourceId: string;
625
+ startDate: string;
626
+ }[];
627
+ };
628
+ };
611
629
  interface UserType {
612
630
  _id: string;
613
631
  active: boolean;
@@ -615,23 +633,20 @@ interface UserType {
615
633
  createdAt: string;
616
634
  deletedAt: string | null;
617
635
  email: string;
618
- isTester: boolean;
619
- favourites: {
620
- events: string[];
621
- vendors: string[];
622
- };
636
+ events: string[] | null;
623
637
  firstName: string;
638
+ isTester: boolean;
624
639
  lastName: string;
625
640
  licences: EnumUserLicence[] | null;
626
- events: string[] | null;
641
+ partners?: PartnerType[] | null;
627
642
  password: string;
628
643
  platform: EnumOSPlatform | null;
629
644
  preferredRegion: string;
630
- partners?: PartnerType[] | null;
631
645
  refreshToken: string | null;
632
646
  role: EnumUserRole;
633
647
  termsAgreement?: TermsAgreement | null;
634
648
  updatedAt: string;
649
+ userActivity: UserActivity | null;
635
650
  vendor: string | null;
636
651
  }
637
652
 
@@ -1152,6 +1167,26 @@ declare const useSelectPackage: () => {
1152
1167
  loading: boolean;
1153
1168
  selectPackage: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1154
1169
  };
1170
+ declare const useAddUserInterestResource: () => {
1171
+ addUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1172
+ error: _apollo_client.ApolloError | undefined;
1173
+ loading: boolean;
1174
+ };
1175
+ declare const useRemoveUserInterestResource: () => {
1176
+ error: _apollo_client.ApolloError | undefined;
1177
+ loading: boolean;
1178
+ removeUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1179
+ };
1180
+ declare const useAddUserGoingResource: () => {
1181
+ addUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1182
+ error: _apollo_client.ApolloError | undefined;
1183
+ loading: boolean;
1184
+ };
1185
+ declare const useRemoveUserGoingResource: () => {
1186
+ error: _apollo_client.ApolloError | undefined;
1187
+ loading: boolean;
1188
+ removeUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1189
+ };
1155
1190
 
1156
1191
  declare const useGetUsers: () => {
1157
1192
  error: _apollo_client.ApolloError | undefined;
@@ -1177,13 +1212,21 @@ declare const useGetUserVendors: () => {
1177
1212
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1178
1213
  userVendors: VendorType[];
1179
1214
  };
1180
- declare const useGetUserFavourites: () => {
1215
+ declare const useGetUserActivities: () => {
1181
1216
  error: _apollo_client.ApolloError | undefined;
1182
1217
  loading: boolean;
1183
1218
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1184
- userFavourites: {
1185
- events: EventType[];
1186
- vendors: VendorType[];
1219
+ userActivities: {
1220
+ favourites: {
1221
+ events: EventType[];
1222
+ vendors: VendorType[];
1223
+ };
1224
+ going: {
1225
+ events: EventType[];
1226
+ };
1227
+ interests: {
1228
+ events: EventType[];
1229
+ };
1187
1230
  };
1188
1231
  };
1189
1232
 
@@ -1425,4 +1468,4 @@ declare const availableRegionOptions: OptionItem[];
1425
1468
  declare const paymentMethodOptions: OptionItem[];
1426
1469
  declare function normalizeUrl(url: string): string;
1427
1470
 
1428
- 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 };
1471
+ 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, useAddUserGoingResource, useAddUserInterestResource, 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, 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 };
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 {
@@ -2899,14 +2919,26 @@ var GET_USER_VENDORS = gql11`
2899
2919
  }
2900
2920
  ${VENDOR}
2901
2921
  `;
2902
- var GET_USER_FAVOURITES = gql11`
2903
- query getUserFavourites {
2904
- userFavourites {
2905
- events {
2906
- ...EventFields
2922
+ var GET_USER_ACTIVITIES = gql11`
2923
+ query getUserActivities {
2924
+ userActivities {
2925
+ favourites {
2926
+ events {
2927
+ ...EventFields
2928
+ }
2929
+ vendors {
2930
+ ...VendorFields
2931
+ }
2907
2932
  }
2908
- vendors {
2909
- ...VendorFields
2933
+ interests {
2934
+ events {
2935
+ ...EventFields
2936
+ }
2937
+ }
2938
+ going {
2939
+ events {
2940
+ ...EventFields
2941
+ }
2910
2942
  }
2911
2943
  }
2912
2944
  }
@@ -4009,6 +4041,70 @@ var SELECT_PACKAGE_MUTATION = gql22`
4009
4041
  }
4010
4042
  }
4011
4043
  `;
4044
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = gql22`
4045
+ mutation addUserInterestResource(
4046
+ $resourceId: ID!
4047
+ $startDate: String!
4048
+ $userId: ID!
4049
+ ) {
4050
+ addUserInterestResource(
4051
+ resourceId: $resourceId
4052
+ startDate: $startDate
4053
+ userId: $userId
4054
+ ) {
4055
+ ...UserFields
4056
+ }
4057
+ }
4058
+ ${USER_FIELDS_FRAGMENT}
4059
+ `;
4060
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = gql22`
4061
+ mutation removeUserInterestResource(
4062
+ $resourceId: ID!
4063
+ $startDate: String!
4064
+ $userId: ID!
4065
+ ) {
4066
+ removeUserInterestResource(
4067
+ resourceId: $resourceId
4068
+ startDate: $startDate
4069
+ userId: $userId
4070
+ ) {
4071
+ ...UserFields
4072
+ }
4073
+ }
4074
+ ${USER_FIELDS_FRAGMENT}
4075
+ `;
4076
+ var ADD_USER_GOING_RESOURCE_MUTATION = gql22`
4077
+ mutation addUserGoingResource(
4078
+ $resourceId: ID!
4079
+ $startDate: String!
4080
+ $userId: ID!
4081
+ ) {
4082
+ addUserGoingResource(
4083
+ resourceId: $resourceId
4084
+ startDate: $startDate
4085
+ userId: $userId
4086
+ ) {
4087
+ ...UserFields
4088
+ }
4089
+ }
4090
+ ${USER_FIELDS_FRAGMENT}
4091
+ `;
4092
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = gql22`
4093
+ mutation removeUserGoingResource(
4094
+ $resourceId: ID!
4095
+ $startDate: String!
4096
+ $userId: ID!
4097
+ ) {
4098
+ removeUserGoingResource(
4099
+ resourceId: $resourceId
4100
+ startDate: $startDate
4101
+ userId: $userId
4102
+ ) {
4103
+ ...UserFields
4104
+ }
4105
+ }
4106
+ ${USER_FIELDS_FRAGMENT}
4107
+ `;
4012
4108
 
4013
4109
  // src/graphql/hooks/user/hooksMutation.ts
4014
4110
  var useCreateUser = () => {
@@ -4035,7 +4131,7 @@ var useAddUserFavouriteResource = () => {
4035
4131
  ADD_USER_FAVOURITE_RESOURCE_MUTATION,
4036
4132
  {
4037
4133
  awaitRefetchQueries: true,
4038
- refetchQueries: [{ query: GET_USER_FAVOURITES }]
4134
+ refetchQueries: [{ query: GET_USER_ACTIVITIES }]
4039
4135
  }
4040
4136
  );
4041
4137
  return { addUserFavouriteResource, error, loading };
@@ -4045,7 +4141,7 @@ var useRemoveUserFavouriteResource = () => {
4045
4141
  REMOVE_USER_FAVOURITE_RESOURCE_MUTATION,
4046
4142
  {
4047
4143
  awaitRefetchQueries: true,
4048
- refetchQueries: [{ query: GET_USER_FAVOURITES }]
4144
+ refetchQueries: [{ query: GET_USER_ACTIVITIES }]
4049
4145
  }
4050
4146
  );
4051
4147
  return { error, loading, removeUserFavouriteResource };
@@ -4068,6 +4164,46 @@ var useSelectPackage = () => {
4068
4164
  );
4069
4165
  return { error, loading, selectPackage };
4070
4166
  };
4167
+ var useAddUserInterestResource = () => {
4168
+ const [addUserInterestResource, { loading, error }] = useMutation12(
4169
+ ADD_USER_INTEREST_RESOURCE_MUTATION,
4170
+ {
4171
+ awaitRefetchQueries: true,
4172
+ refetchQueries: [{ query: GET_USER_ACTIVITIES }]
4173
+ }
4174
+ );
4175
+ return { addUserInterestResource, error, loading };
4176
+ };
4177
+ var useRemoveUserInterestResource = () => {
4178
+ const [removeUserInterestResource, { loading, error }] = useMutation12(
4179
+ REMOVE_USER_INTEREST_RESOURCE_MUTATION,
4180
+ {
4181
+ awaitRefetchQueries: true,
4182
+ refetchQueries: [{ query: GET_USER_ACTIVITIES }]
4183
+ }
4184
+ );
4185
+ return { error, loading, removeUserInterestResource };
4186
+ };
4187
+ var useAddUserGoingResource = () => {
4188
+ const [addUserGoingResource, { loading, error }] = useMutation12(
4189
+ ADD_USER_GOING_RESOURCE_MUTATION,
4190
+ {
4191
+ awaitRefetchQueries: true,
4192
+ refetchQueries: [{ query: GET_USER_ACTIVITIES }]
4193
+ }
4194
+ );
4195
+ return { addUserGoingResource, error, loading };
4196
+ };
4197
+ var useRemoveUserGoingResource = () => {
4198
+ const [removeUserGoingResource, { loading, error }] = useMutation12(
4199
+ REMOVE_USER_GOING_RESOURCE_MUTATION,
4200
+ {
4201
+ awaitRefetchQueries: true,
4202
+ refetchQueries: [{ query: GET_USER_ACTIVITIES }]
4203
+ }
4204
+ );
4205
+ return { error, loading, removeUserGoingResource };
4206
+ };
4071
4207
 
4072
4208
  // src/graphql/hooks/user/hooksQuery.ts
4073
4209
  import { useQuery as useQuery7 } from "@apollo/client";
@@ -4099,17 +4235,23 @@ var useGetUserVendors = () => {
4099
4235
  const userVendors = data?.userVendors;
4100
4236
  return { error, loading, refetch, userVendors };
4101
4237
  };
4102
- var useGetUserFavourites = () => {
4103
- const { loading, error, data, refetch } = useQuery7(GET_USER_FAVOURITES, {
4238
+ var useGetUserActivities = () => {
4239
+ const { loading, error, data, refetch } = useQuery7(GET_USER_ACTIVITIES, {
4104
4240
  fetchPolicy: "network-only"
4105
4241
  });
4106
- const events = data?.userFavourites.events;
4107
- const vendors = data?.userFavourites.vendors;
4108
- const userFavourites = {
4109
- events,
4110
- vendors
4242
+ const userActivities = {
4243
+ favourites: {
4244
+ events: data?.userActivities.favourites.events,
4245
+ vendors: data?.userActivities.favourites.vendors
4246
+ },
4247
+ going: {
4248
+ events: data?.userActivities.going.events
4249
+ },
4250
+ interests: {
4251
+ events: data?.userActivities.interests.events
4252
+ }
4111
4253
  };
4112
- return { error, loading, refetch, userFavourites };
4254
+ return { error, loading, refetch, userActivities };
4113
4255
  };
4114
4256
 
4115
4257
  // src/graphql/hooks/ad/hooksMutation.ts
@@ -5927,6 +6069,8 @@ export {
5927
6069
  useAdForm,
5928
6070
  useAddParticipantToChat,
5929
6071
  useAddUserFavouriteResource,
6072
+ useAddUserGoingResource,
6073
+ useAddUserInterestResource,
5930
6074
  useAdminUpdateResourceType,
5931
6075
  useContactUs,
5932
6076
  useContactUsForm,
@@ -5973,9 +6117,9 @@ export {
5973
6117
  useGetTester,
5974
6118
  useGetTesters,
5975
6119
  useGetUser,
6120
+ useGetUserActivities,
5976
6121
  useGetUserChats,
5977
6122
  useGetUserEvents,
5978
- useGetUserFavourites,
5979
6123
  useGetUserNotifications,
5980
6124
  useGetUserNotificationsSubscription,
5981
6125
  useGetUserVendors,
@@ -5996,6 +6140,8 @@ export {
5996
6140
  useRegisterForm,
5997
6141
  useRemoveParticipantFromChat,
5998
6142
  useRemoveUserFavouriteResource,
6143
+ useRemoveUserGoingResource,
6144
+ useRemoveUserInterestResource,
5999
6145
  useRequestPasswordReset,
6000
6146
  useRequestPasswordResetForm,
6001
6147
  useResetPassword,