@timardex/cluemart-shared 1.2.16 → 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
@@ -613,13 +613,13 @@ type UserActivity = {
613
613
  events: string[];
614
614
  vendors: string[];
615
615
  };
616
- interests: {
616
+ going: {
617
617
  events: {
618
618
  resourceId: string;
619
619
  startDate: string;
620
620
  }[];
621
621
  };
622
- going: {
622
+ interests: {
623
623
  events: {
624
624
  resourceId: string;
625
625
  startDate: string;
@@ -633,20 +633,20 @@ interface UserType {
633
633
  createdAt: string;
634
634
  deletedAt: string | null;
635
635
  email: string;
636
- isTester: boolean;
637
- userActivity: UserActivity | null;
636
+ events: string[] | null;
638
637
  firstName: string;
638
+ isTester: boolean;
639
639
  lastName: string;
640
640
  licences: EnumUserLicence[] | null;
641
- events: string[] | null;
641
+ partners?: PartnerType[] | null;
642
642
  password: string;
643
643
  platform: EnumOSPlatform | null;
644
644
  preferredRegion: string;
645
- partners?: PartnerType[] | null;
646
645
  refreshToken: string | null;
647
646
  role: EnumUserRole;
648
647
  termsAgreement?: TermsAgreement | null;
649
648
  updatedAt: string;
649
+ userActivity: UserActivity | null;
650
650
  vendor: string | null;
651
651
  }
652
652
 
@@ -1167,6 +1167,26 @@ declare const useSelectPackage: () => {
1167
1167
  loading: boolean;
1168
1168
  selectPackage: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1169
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
+ };
1170
1190
 
1171
1191
  declare const useGetUsers: () => {
1172
1192
  error: _apollo_client.ApolloError | undefined;
@@ -1197,8 +1217,16 @@ declare const useGetUserActivities: () => {
1197
1217
  loading: boolean;
1198
1218
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1199
1219
  userActivities: {
1200
- events: EventType[];
1201
- vendors: VendorType[];
1220
+ favourites: {
1221
+ events: EventType[];
1222
+ vendors: VendorType[];
1223
+ };
1224
+ going: {
1225
+ events: EventType[];
1226
+ };
1227
+ interests: {
1228
+ events: EventType[];
1229
+ };
1202
1230
  };
1203
1231
  };
1204
1232
 
@@ -1440,4 +1468,4 @@ declare const availableRegionOptions: OptionItem[];
1440
1468
  declare const paymentMethodOptions: OptionItem[];
1441
1469
  declare function normalizeUrl(url: string): string;
1442
1470
 
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 };
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
@@ -613,13 +613,13 @@ type UserActivity = {
613
613
  events: string[];
614
614
  vendors: string[];
615
615
  };
616
- interests: {
616
+ going: {
617
617
  events: {
618
618
  resourceId: string;
619
619
  startDate: string;
620
620
  }[];
621
621
  };
622
- going: {
622
+ interests: {
623
623
  events: {
624
624
  resourceId: string;
625
625
  startDate: string;
@@ -633,20 +633,20 @@ interface UserType {
633
633
  createdAt: string;
634
634
  deletedAt: string | null;
635
635
  email: string;
636
- isTester: boolean;
637
- userActivity: UserActivity | null;
636
+ events: string[] | null;
638
637
  firstName: string;
638
+ isTester: boolean;
639
639
  lastName: string;
640
640
  licences: EnumUserLicence[] | null;
641
- events: string[] | null;
641
+ partners?: PartnerType[] | null;
642
642
  password: string;
643
643
  platform: EnumOSPlatform | null;
644
644
  preferredRegion: string;
645
- partners?: PartnerType[] | null;
646
645
  refreshToken: string | null;
647
646
  role: EnumUserRole;
648
647
  termsAgreement?: TermsAgreement | null;
649
648
  updatedAt: string;
649
+ userActivity: UserActivity | null;
650
650
  vendor: string | null;
651
651
  }
652
652
 
@@ -1167,6 +1167,26 @@ declare const useSelectPackage: () => {
1167
1167
  loading: boolean;
1168
1168
  selectPackage: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1169
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
+ };
1170
1190
 
1171
1191
  declare const useGetUsers: () => {
1172
1192
  error: _apollo_client.ApolloError | undefined;
@@ -1197,8 +1217,16 @@ declare const useGetUserActivities: () => {
1197
1217
  loading: boolean;
1198
1218
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1199
1219
  userActivities: {
1200
- events: EventType[];
1201
- vendors: VendorType[];
1220
+ favourites: {
1221
+ events: EventType[];
1222
+ vendors: VendorType[];
1223
+ };
1224
+ going: {
1225
+ events: EventType[];
1226
+ };
1227
+ interests: {
1228
+ events: EventType[];
1229
+ };
1202
1230
  };
1203
1231
  };
1204
1232
 
@@ -1440,4 +1468,4 @@ declare const availableRegionOptions: OptionItem[];
1440
1468
  declare const paymentMethodOptions: OptionItem[];
1441
1469
  declare function normalizeUrl(url: string): string;
1442
1470
 
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 };
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
@@ -4041,6 +4041,70 @@ var SELECT_PACKAGE_MUTATION = gql22`
4041
4041
  }
4042
4042
  }
4043
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
+ `;
4044
4108
 
4045
4109
  // src/graphql/hooks/user/hooksMutation.ts
4046
4110
  var useCreateUser = () => {
@@ -4100,6 +4164,46 @@ var useSelectPackage = () => {
4100
4164
  );
4101
4165
  return { error, loading, selectPackage };
4102
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
+ };
4103
4207
 
4104
4208
  // src/graphql/hooks/user/hooksQuery.ts
4105
4209
  import { useQuery as useQuery7 } from "@apollo/client";
@@ -4135,11 +4239,17 @@ var useGetUserActivities = () => {
4135
4239
  const { loading, error, data, refetch } = useQuery7(GET_USER_ACTIVITIES, {
4136
4240
  fetchPolicy: "network-only"
4137
4241
  });
4138
- const events = data?.userActivities.events;
4139
- const vendors = data?.userActivities.vendors;
4140
4242
  const userActivities = {
4141
- events,
4142
- vendors
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
+ }
4143
4253
  };
4144
4254
  return { error, loading, refetch, userActivities };
4145
4255
  };
@@ -5959,6 +6069,8 @@ export {
5959
6069
  useAdForm,
5960
6070
  useAddParticipantToChat,
5961
6071
  useAddUserFavouriteResource,
6072
+ useAddUserGoingResource,
6073
+ useAddUserInterestResource,
5962
6074
  useAdminUpdateResourceType,
5963
6075
  useContactUs,
5964
6076
  useContactUsForm,
@@ -6028,6 +6140,8 @@ export {
6028
6140
  useRegisterForm,
6029
6141
  useRemoveParticipantFromChat,
6030
6142
  useRemoveUserFavouriteResource,
6143
+ useRemoveUserGoingResource,
6144
+ useRemoveUserInterestResource,
6031
6145
  useRequestPasswordReset,
6032
6146
  useRequestPasswordResetForm,
6033
6147
  useResetPassword,