@timardex/cluemart-shared 1.2.17 → 1.2.19

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
@@ -619,7 +619,7 @@ type UserActivity = {
619
619
  startDate: string;
620
620
  }[];
621
621
  };
622
- interests: {
622
+ interested: {
623
623
  events: {
624
624
  resourceId: string;
625
625
  startDate: string;
@@ -697,28 +697,30 @@ interface AdType extends AdFormData {
697
697
  updatedAt: Date;
698
698
  }
699
699
 
700
- type ResourceViewEntry = {
700
+ declare enum EnumActivity {
701
+ VIEW = "VIEW",
702
+ GOING = "GOING",
703
+ INTERESTED = "INTERESTED"
704
+ }
705
+ type ResourceActivityEntry = {
706
+ activityType: EnumActivity;
701
707
  location: {
702
708
  type: "Point";
703
709
  coordinates: number[];
704
710
  } | null;
705
711
  userAgent: EnumOSPlatform;
706
- viewedAt: Date;
712
+ timestamp: Date;
707
713
  };
708
- type ResourceViewsType = {
714
+ type ResourceActivityType = {
709
715
  _id: string;
710
716
  resourceType: EnumResourceType;
711
717
  resourceId: string;
712
- views: ResourceViewEntry[];
718
+ activity: ResourceActivityEntry[];
713
719
  };
714
- type ResourceViewInputType = {
720
+ type ResourceActivityInputType = {
715
721
  resourceId: string;
716
722
  resourceType: string;
717
- views: Omit<ResourceViewEntry, "viewedAt" | "location"> & {
718
- location: {
719
- coordinates: number[];
720
- } | null;
721
- };
723
+ activity: Omit<ResourceActivityEntry, "timestamp">;
722
724
  };
723
725
 
724
726
  declare const vendorElectricity: {
@@ -1224,7 +1226,7 @@ declare const useGetUserActivities: () => {
1224
1226
  going: {
1225
1227
  events: EventType[];
1226
1228
  };
1227
- interests: {
1229
+ interested: {
1228
1230
  events: EventType[];
1229
1231
  };
1230
1232
  };
@@ -1271,17 +1273,17 @@ declare const useGetAdsByRegion: (region: string, status?: EnumAdStatus) => {
1271
1273
  }>>;
1272
1274
  };
1273
1275
 
1274
- declare const useCreateResourceViews: () => {
1275
- createResourceViews: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1276
+ declare const useCreateResourceActivity: () => {
1277
+ createResourceActivity: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1276
1278
  error: _apollo_client.ApolloError | undefined;
1277
1279
  loading: boolean;
1278
1280
  };
1279
1281
 
1280
- declare const useGetResourceViews: (resourceId: string, resourceType: EnumResourceType) => {
1282
+ declare const useGetResourceActivities: (resourceId: string, resourceType: EnumResourceType) => {
1281
1283
  error: _apollo_client.ApolloError | undefined;
1282
1284
  loading: boolean;
1283
1285
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1284
- resourceViews: ResourceViewsType[];
1286
+ resourceActivities: ResourceActivityType[];
1285
1287
  };
1286
1288
 
1287
1289
  interface PlacePrediction {
@@ -1468,4 +1470,4 @@ declare const availableRegionOptions: OptionItem[];
1468
1470
  declare const paymentMethodOptions: OptionItem[];
1469
1471
  declare function normalizeUrl(url: string): string;
1470
1472
 
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 };
1473
+ export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TermsAgreement, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
package/dist/index.d.ts CHANGED
@@ -619,7 +619,7 @@ type UserActivity = {
619
619
  startDate: string;
620
620
  }[];
621
621
  };
622
- interests: {
622
+ interested: {
623
623
  events: {
624
624
  resourceId: string;
625
625
  startDate: string;
@@ -697,28 +697,30 @@ interface AdType extends AdFormData {
697
697
  updatedAt: Date;
698
698
  }
699
699
 
700
- type ResourceViewEntry = {
700
+ declare enum EnumActivity {
701
+ VIEW = "VIEW",
702
+ GOING = "GOING",
703
+ INTERESTED = "INTERESTED"
704
+ }
705
+ type ResourceActivityEntry = {
706
+ activityType: EnumActivity;
701
707
  location: {
702
708
  type: "Point";
703
709
  coordinates: number[];
704
710
  } | null;
705
711
  userAgent: EnumOSPlatform;
706
- viewedAt: Date;
712
+ timestamp: Date;
707
713
  };
708
- type ResourceViewsType = {
714
+ type ResourceActivityType = {
709
715
  _id: string;
710
716
  resourceType: EnumResourceType;
711
717
  resourceId: string;
712
- views: ResourceViewEntry[];
718
+ activity: ResourceActivityEntry[];
713
719
  };
714
- type ResourceViewInputType = {
720
+ type ResourceActivityInputType = {
715
721
  resourceId: string;
716
722
  resourceType: string;
717
- views: Omit<ResourceViewEntry, "viewedAt" | "location"> & {
718
- location: {
719
- coordinates: number[];
720
- } | null;
721
- };
723
+ activity: Omit<ResourceActivityEntry, "timestamp">;
722
724
  };
723
725
 
724
726
  declare const vendorElectricity: {
@@ -1224,7 +1226,7 @@ declare const useGetUserActivities: () => {
1224
1226
  going: {
1225
1227
  events: EventType[];
1226
1228
  };
1227
- interests: {
1229
+ interested: {
1228
1230
  events: EventType[];
1229
1231
  };
1230
1232
  };
@@ -1271,17 +1273,17 @@ declare const useGetAdsByRegion: (region: string, status?: EnumAdStatus) => {
1271
1273
  }>>;
1272
1274
  };
1273
1275
 
1274
- declare const useCreateResourceViews: () => {
1275
- createResourceViews: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1276
+ declare const useCreateResourceActivity: () => {
1277
+ createResourceActivity: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1276
1278
  error: _apollo_client.ApolloError | undefined;
1277
1279
  loading: boolean;
1278
1280
  };
1279
1281
 
1280
- declare const useGetResourceViews: (resourceId: string, resourceType: EnumResourceType) => {
1282
+ declare const useGetResourceActivities: (resourceId: string, resourceType: EnumResourceType) => {
1281
1283
  error: _apollo_client.ApolloError | undefined;
1282
1284
  loading: boolean;
1283
1285
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1284
- resourceViews: ResourceViewsType[];
1286
+ resourceActivities: ResourceActivityType[];
1285
1287
  };
1286
1288
 
1287
1289
  interface PlacePrediction {
@@ -1468,4 +1470,4 @@ declare const availableRegionOptions: OptionItem[];
1468
1470
  declare const paymentMethodOptions: OptionItem[];
1469
1471
  declare function normalizeUrl(url: string): string;
1470
1472
 
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 };
1473
+ export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TermsAgreement, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
package/dist/index.mjs CHANGED
@@ -2030,7 +2030,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
2030
2030
  events
2031
2031
  vendors
2032
2032
  }
2033
- interests {
2033
+ interested {
2034
2034
  events {
2035
2035
  resourceId
2036
2036
  startDate
@@ -2930,7 +2930,7 @@ var GET_USER_ACTIVITIES = gql11`
2930
2930
  ...VendorFields
2931
2931
  }
2932
2932
  }
2933
- interests {
2933
+ interested {
2934
2934
  events {
2935
2935
  ...EventFields
2936
2936
  }
@@ -4247,8 +4247,8 @@ var useGetUserActivities = () => {
4247
4247
  going: {
4248
4248
  events: data?.userActivities.going.events
4249
4249
  },
4250
- interests: {
4251
- events: data?.userActivities.interests.events
4250
+ interested: {
4251
+ events: data?.userActivities.interested.events
4252
4252
  }
4253
4253
  };
4254
4254
  return { error, loading, refetch, userActivities };
@@ -4416,56 +4416,60 @@ var useGetAdsByRegion = (region, status) => {
4416
4416
  };
4417
4417
  };
4418
4418
 
4419
- // src/graphql/hooks/resourceViews/hooksMutation.ts
4419
+ // src/graphql/hooks/resourceActivities/hooksMutation.ts
4420
4420
  import { useMutation as useMutation14 } from "@apollo/client";
4421
4421
 
4422
- // src/graphql/mutations/resourceViews.ts
4422
+ // src/graphql/mutations/resourceActivities.ts
4423
4423
  import { gql as gql25 } from "@apollo/client";
4424
- var CREATE_RESOURCE_VIEWS_MUTATION = gql25`
4425
- mutation createResourceViews($input: ResourceViewsInputType!) {
4426
- createResourceViews(input: $input)
4424
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = gql25`
4425
+ mutation createResourceActivity($input: ResourceActivityInputType!) {
4426
+ createResourceActivity(input: $input)
4427
4427
  }
4428
4428
  `;
4429
4429
 
4430
- // src/graphql/hooks/resourceViews/hooksMutation.ts
4431
- var useCreateResourceViews = () => {
4432
- const [createResourceViews, { loading, error }] = useMutation14(
4433
- CREATE_RESOURCE_VIEWS_MUTATION
4430
+ // src/graphql/hooks/resourceActivities/hooksMutation.ts
4431
+ var useCreateResourceActivity = () => {
4432
+ const [createResourceActivity, { loading, error }] = useMutation14(
4433
+ CREATE_RESOURCE_ACTIVITY_MUTATION
4434
4434
  );
4435
- return { createResourceViews, error, loading };
4435
+ return { createResourceActivity, error, loading };
4436
4436
  };
4437
4437
 
4438
- // src/graphql/hooks/resourceViews/hooksQuery.ts
4438
+ // src/graphql/hooks/resourceActivities/hooksQuery.ts
4439
4439
  import { useQuery as useQuery9 } from "@apollo/client";
4440
4440
 
4441
- // src/graphql/queries/resourceViews.ts
4441
+ // src/graphql/queries/resourceActivities.ts
4442
4442
  import { gql as gql26 } from "@apollo/client";
4443
- var RESOURCE_VIEWS_FIELDS_FRAGMENT = gql26`
4444
- fragment ResourceViewsFields on ResourceViewsType {
4443
+ var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = gql26`
4444
+ fragment ResourceActivitiesFields on ResourceActivitiesType {
4445
4445
  resourceId
4446
4446
  resourceType
4447
- views {
4447
+ activity {
4448
+ activityType
4448
4449
  location {
4449
4450
  type
4450
4451
  coordinates
4451
4452
  }
4452
4453
  userAgent
4453
- viewedAt
4454
+ timestamp
4454
4455
  }
4455
4456
  }
4456
4457
  `;
4457
- var GET_RESOURCE_VIEWS = gql26`
4458
- query getResourceViews($resourceType: ResourceTypeEnum!, $resourceId: ID!) {
4459
- resourceViews(resourceType: $resourceType, resourceId: $resourceId) {
4460
- ...ResourceViewsFields
4458
+ var GET_RESOURCE_ACTIVITIES = gql26`
4459
+ query getResourceActivities(
4460
+ $resourceType: ResourceTypeEnum!
4461
+ $resourceId: ID!
4462
+ ) {
4463
+ resourceActivities(resourceType: $resourceType, resourceId: $resourceId) {
4464
+ ...ResourceActivitiesFields
4461
4465
  }
4462
4466
  }
4463
- ${RESOURCE_VIEWS_FIELDS_FRAGMENT}
4467
+ ${RESOURCE_ACTIVITIES_FIELDS_FRAGMENT}
4464
4468
  `;
4465
4469
 
4466
- // src/graphql/hooks/resourceViews/hooksQuery.ts
4467
- var useGetResourceViews = (resourceId, resourceType) => {
4468
- const { data, loading, error, refetch } = useQuery9(GET_RESOURCE_VIEWS, {
4470
+ // src/graphql/hooks/resourceActivities/hooksQuery.ts
4471
+ var useGetResourceActivities = (resourceId, resourceType) => {
4472
+ const { data, loading, error, refetch } = useQuery9(GET_RESOURCE_ACTIVITIES, {
4469
4473
  fetchPolicy: "network-only",
4470
4474
  variables: { resourceId, resourceType }
4471
4475
  });
@@ -4473,7 +4477,7 @@ var useGetResourceViews = (resourceId, resourceType) => {
4473
4477
  error,
4474
4478
  loading,
4475
4479
  refetch,
4476
- resourceViews: data?.resourceViews
4480
+ resourceActivities: data?.resourceActivities
4477
4481
  };
4478
4482
  };
4479
4483
 
@@ -5989,7 +5993,16 @@ var fonts = {
5989
5993
  fontWeight: "400"
5990
5994
  }
5991
5995
  };
5996
+
5997
+ // src/types/resourceActivities.ts
5998
+ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
5999
+ EnumActivity2["VIEW"] = "VIEW";
6000
+ EnumActivity2["GOING"] = "GOING";
6001
+ EnumActivity2["INTERESTED"] = "INTERESTED";
6002
+ return EnumActivity2;
6003
+ })(EnumActivity || {});
5992
6004
  export {
6005
+ EnumActivity,
5993
6006
  EnumAdShowOn,
5994
6007
  EnumAdStatus,
5995
6008
  EnumAdStyle,
@@ -6081,7 +6094,7 @@ export {
6081
6094
  useCreatePoster,
6082
6095
  useCreatePushToken,
6083
6096
  useCreateRelation,
6084
- useCreateResourceViews,
6097
+ useCreateResourceActivity,
6085
6098
  useCreateTester,
6086
6099
  useCreateUser,
6087
6100
  useCreateVendor,
@@ -6112,8 +6125,8 @@ export {
6112
6125
  useGetNotificationCountSubscription,
6113
6126
  useGetRelation,
6114
6127
  useGetRelationByEventAndVendor,
6128
+ useGetResourceActivities,
6115
6129
  useGetResourceConnections,
6116
- useGetResourceViews,
6117
6130
  useGetTester,
6118
6131
  useGetTesters,
6119
6132
  useGetUser,