@timardex/cluemart-shared 1.4.23 → 1.4.25
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/{chunk-QA3VXTNQ.mjs → chunk-S6G7DNEV.mjs} +2 -2
- package/dist/{chunk-BD4OOWBW.mjs → chunk-Z6FJKHRH.mjs} +11 -1
- package/dist/chunk-Z6FJKHRH.mjs.map +1 -0
- package/dist/enums/index.cjs +11 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +9 -1
- package/dist/enums/index.d.ts +9 -1
- package/dist/enums/index.mjs +3 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/graphql/index.cjs +48 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +15 -2
- package/dist/graphql/index.d.ts +15 -2
- package/dist/graphql/index.mjs +47 -1
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +59 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.mjs +56 -0
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-oEQN2jZg.d.ts → resourceActivities-23xD5-eJ.d.ts} +15 -2
- package/dist/{resourceActivities-C97X-AAZ.d.mts → resourceActivities-B2B9oP6v.d.mts} +15 -2
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-BD4OOWBW.mjs.map +0 -1
- /package/dist/{chunk-QA3VXTNQ.mjs.map → chunk-S6G7DNEV.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -12,6 +12,14 @@ declare enum EnumInviteStatus {
|
|
|
12
12
|
UNAVAILABLE = "Unavailable",
|
|
13
13
|
WAITING = "Waiting"
|
|
14
14
|
}
|
|
15
|
+
declare enum EnumChatReportReason {
|
|
16
|
+
INAPPROPRIATE_CONTENT = "Inappropriate_Content",
|
|
17
|
+
HARASSMENT_OR_BULLYING = "Harassment_or_Bullying",
|
|
18
|
+
HATE_SPEECH = "Hate_Speech",
|
|
19
|
+
SPAM_OR_SCAM = "Spam_or_Scam",
|
|
20
|
+
VIOLENCE_OR_DANGEROUS_BEHAVIOR = "Violence_or_Dangerous_Behavior",
|
|
21
|
+
OTHER = "Other"
|
|
22
|
+
}
|
|
15
23
|
declare enum EnumChatType {
|
|
16
24
|
GROUP = "group",
|
|
17
25
|
PRIVATE = "private",
|
|
@@ -705,6 +713,19 @@ interface ChatType {
|
|
|
705
713
|
region: string | null;
|
|
706
714
|
updatedAt: Date | null;
|
|
707
715
|
}
|
|
716
|
+
interface ReportChatUser {
|
|
717
|
+
_id: string;
|
|
718
|
+
chatId: string;
|
|
719
|
+
createdAt: Date;
|
|
720
|
+
reason: {
|
|
721
|
+
reasonType: EnumChatReportReason;
|
|
722
|
+
details: string | null;
|
|
723
|
+
};
|
|
724
|
+
reportedUserId: string;
|
|
725
|
+
reporterUserId: string;
|
|
726
|
+
resolved: boolean;
|
|
727
|
+
updatedAt: Date | null;
|
|
728
|
+
}
|
|
708
729
|
|
|
709
730
|
type ContactUsFormData = {
|
|
710
731
|
email: string;
|
|
@@ -1374,6 +1395,11 @@ declare const useMarkChatMessagesSeen: () => {
|
|
|
1374
1395
|
};
|
|
1375
1396
|
}>>;
|
|
1376
1397
|
};
|
|
1398
|
+
declare const useReportChatUser: () => {
|
|
1399
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1400
|
+
loading: boolean;
|
|
1401
|
+
reportChatUser: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1402
|
+
};
|
|
1377
1403
|
|
|
1378
1404
|
declare const useGetChat: (_id: string) => {
|
|
1379
1405
|
chat: ChatType | undefined;
|
|
@@ -1404,6 +1430,14 @@ declare const useGetChatsByRegion: (region: string) => {
|
|
|
1404
1430
|
chatsByRegion: ChatType[];
|
|
1405
1431
|
}>>;
|
|
1406
1432
|
};
|
|
1433
|
+
declare const useGetReportedChatUsers: () => {
|
|
1434
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1435
|
+
loading: boolean;
|
|
1436
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1437
|
+
reportedChatUsers: ReportChatUser[];
|
|
1438
|
+
}>>;
|
|
1439
|
+
reportedChatUsers: ReportChatUser[];
|
|
1440
|
+
};
|
|
1407
1441
|
|
|
1408
1442
|
declare const useContactUs: () => {
|
|
1409
1443
|
contactUs: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
@@ -2391,4 +2425,4 @@ declare function normalizeUrl(url: string): string;
|
|
|
2391
2425
|
declare const licenseNiceNames: Record<EnumUserLicence, string>;
|
|
2392
2426
|
declare const cluemartSocialMedia: SocialMediaType[];
|
|
2393
2427
|
|
|
2394
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, 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 StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, type TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useTesterForm, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, 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 };
|
|
2428
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, 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 StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, type TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useTesterForm, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, 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
|
@@ -12,6 +12,14 @@ declare enum EnumInviteStatus {
|
|
|
12
12
|
UNAVAILABLE = "Unavailable",
|
|
13
13
|
WAITING = "Waiting"
|
|
14
14
|
}
|
|
15
|
+
declare enum EnumChatReportReason {
|
|
16
|
+
INAPPROPRIATE_CONTENT = "Inappropriate_Content",
|
|
17
|
+
HARASSMENT_OR_BULLYING = "Harassment_or_Bullying",
|
|
18
|
+
HATE_SPEECH = "Hate_Speech",
|
|
19
|
+
SPAM_OR_SCAM = "Spam_or_Scam",
|
|
20
|
+
VIOLENCE_OR_DANGEROUS_BEHAVIOR = "Violence_or_Dangerous_Behavior",
|
|
21
|
+
OTHER = "Other"
|
|
22
|
+
}
|
|
15
23
|
declare enum EnumChatType {
|
|
16
24
|
GROUP = "group",
|
|
17
25
|
PRIVATE = "private",
|
|
@@ -705,6 +713,19 @@ interface ChatType {
|
|
|
705
713
|
region: string | null;
|
|
706
714
|
updatedAt: Date | null;
|
|
707
715
|
}
|
|
716
|
+
interface ReportChatUser {
|
|
717
|
+
_id: string;
|
|
718
|
+
chatId: string;
|
|
719
|
+
createdAt: Date;
|
|
720
|
+
reason: {
|
|
721
|
+
reasonType: EnumChatReportReason;
|
|
722
|
+
details: string | null;
|
|
723
|
+
};
|
|
724
|
+
reportedUserId: string;
|
|
725
|
+
reporterUserId: string;
|
|
726
|
+
resolved: boolean;
|
|
727
|
+
updatedAt: Date | null;
|
|
728
|
+
}
|
|
708
729
|
|
|
709
730
|
type ContactUsFormData = {
|
|
710
731
|
email: string;
|
|
@@ -1374,6 +1395,11 @@ declare const useMarkChatMessagesSeen: () => {
|
|
|
1374
1395
|
};
|
|
1375
1396
|
}>>;
|
|
1376
1397
|
};
|
|
1398
|
+
declare const useReportChatUser: () => {
|
|
1399
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1400
|
+
loading: boolean;
|
|
1401
|
+
reportChatUser: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1402
|
+
};
|
|
1377
1403
|
|
|
1378
1404
|
declare const useGetChat: (_id: string) => {
|
|
1379
1405
|
chat: ChatType | undefined;
|
|
@@ -1404,6 +1430,14 @@ declare const useGetChatsByRegion: (region: string) => {
|
|
|
1404
1430
|
chatsByRegion: ChatType[];
|
|
1405
1431
|
}>>;
|
|
1406
1432
|
};
|
|
1433
|
+
declare const useGetReportedChatUsers: () => {
|
|
1434
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1435
|
+
loading: boolean;
|
|
1436
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1437
|
+
reportedChatUsers: ReportChatUser[];
|
|
1438
|
+
}>>;
|
|
1439
|
+
reportedChatUsers: ReportChatUser[];
|
|
1440
|
+
};
|
|
1407
1441
|
|
|
1408
1442
|
declare const useContactUs: () => {
|
|
1409
1443
|
contactUs: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
@@ -2391,4 +2425,4 @@ declare function normalizeUrl(url: string): string;
|
|
|
2391
2425
|
declare const licenseNiceNames: Record<EnumUserLicence, string>;
|
|
2392
2426
|
declare const cluemartSocialMedia: SocialMediaType[];
|
|
2393
2427
|
|
|
2394
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, 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 StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, type TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useTesterForm, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, 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 };
|
|
2428
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, 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 StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, type TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useTesterForm, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, 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
|
@@ -11,6 +11,15 @@ var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus2) => {
|
|
|
11
11
|
EnumInviteStatus2["WAITING"] = "Waiting";
|
|
12
12
|
return EnumInviteStatus2;
|
|
13
13
|
})(EnumInviteStatus || {});
|
|
14
|
+
var EnumChatReportReason = /* @__PURE__ */ ((EnumChatReportReason2) => {
|
|
15
|
+
EnumChatReportReason2["INAPPROPRIATE_CONTENT"] = "Inappropriate_Content";
|
|
16
|
+
EnumChatReportReason2["HARASSMENT_OR_BULLYING"] = "Harassment_or_Bullying";
|
|
17
|
+
EnumChatReportReason2["HATE_SPEECH"] = "Hate_Speech";
|
|
18
|
+
EnumChatReportReason2["SPAM_OR_SCAM"] = "Spam_or_Scam";
|
|
19
|
+
EnumChatReportReason2["VIOLENCE_OR_DANGEROUS_BEHAVIOR"] = "Violence_or_Dangerous_Behavior";
|
|
20
|
+
EnumChatReportReason2["OTHER"] = "Other";
|
|
21
|
+
return EnumChatReportReason2;
|
|
22
|
+
})(EnumChatReportReason || {});
|
|
14
23
|
var EnumChatType = /* @__PURE__ */ ((EnumChatType2) => {
|
|
15
24
|
EnumChatType2["GROUP"] = "group";
|
|
16
25
|
EnumChatType2["PRIVATE"] = "private";
|
|
@@ -3279,6 +3288,29 @@ var GET_CHATS_BY_REGION = gql7`
|
|
|
3279
3288
|
}
|
|
3280
3289
|
${CHAT_FIELDS_FRAGMENT}
|
|
3281
3290
|
`;
|
|
3291
|
+
var CHAT_REPORT_FIELDS_FRAGMENT = gql7`
|
|
3292
|
+
fragment ChatReportFields on ChatReportType {
|
|
3293
|
+
id
|
|
3294
|
+
chatId
|
|
3295
|
+
createdAt
|
|
3296
|
+
reason {
|
|
3297
|
+
reasonType
|
|
3298
|
+
details
|
|
3299
|
+
}
|
|
3300
|
+
reportedUserId
|
|
3301
|
+
reporterUserId
|
|
3302
|
+
resolved
|
|
3303
|
+
updatedAt
|
|
3304
|
+
}
|
|
3305
|
+
`;
|
|
3306
|
+
var GET_REPORTED_CHAT_USERS = gql7`
|
|
3307
|
+
query getReportedChatUsers {
|
|
3308
|
+
reportedChatUsers {
|
|
3309
|
+
...ChatReportFields
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
${CHAT_REPORT_FIELDS_FRAGMENT}
|
|
3313
|
+
`;
|
|
3282
3314
|
|
|
3283
3315
|
// src/graphql/mutations/chat.ts
|
|
3284
3316
|
var SEND_CHAT_MESSAGE_MUTATION = gql8`
|
|
@@ -3326,6 +3358,14 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = gql8`
|
|
|
3326
3358
|
}
|
|
3327
3359
|
${CHAT_FIELDS_FRAGMENT}
|
|
3328
3360
|
`;
|
|
3361
|
+
var REPORT_CHAT_USER_MUTATION = gql8`
|
|
3362
|
+
mutation reportChatUser($input: ReportChatUserInputType!) {
|
|
3363
|
+
reportChatUser(input: $input) {
|
|
3364
|
+
...ChatReportFields
|
|
3365
|
+
}
|
|
3366
|
+
}
|
|
3367
|
+
${CHAT_REPORT_FIELDS_FRAGMENT}
|
|
3368
|
+
`;
|
|
3329
3369
|
|
|
3330
3370
|
// src/graphql/hooks/chat/hooksMutation.ts
|
|
3331
3371
|
var useSendChatMessage = () => {
|
|
@@ -3411,6 +3451,12 @@ var useMarkChatMessagesSeen = () => {
|
|
|
3411
3451
|
});
|
|
3412
3452
|
return { error, loading, markChatMessagesSeen };
|
|
3413
3453
|
};
|
|
3454
|
+
var useReportChatUser = () => {
|
|
3455
|
+
const [reportChatUser, { loading, error }] = useMutation3(
|
|
3456
|
+
REPORT_CHAT_USER_MUTATION
|
|
3457
|
+
);
|
|
3458
|
+
return { error, loading, reportChatUser };
|
|
3459
|
+
};
|
|
3414
3460
|
|
|
3415
3461
|
// src/graphql/hooks/chat/hooksQuery.ts
|
|
3416
3462
|
import { useQuery, useSubscription } from "@apollo/client";
|
|
@@ -3462,6 +3508,13 @@ var useGetChatsByRegion = (region) => {
|
|
|
3462
3508
|
const chatsByRegion = data?.chatsByRegion || [];
|
|
3463
3509
|
return { chatsByRegion, error, loading, refetch };
|
|
3464
3510
|
};
|
|
3511
|
+
var useGetReportedChatUsers = () => {
|
|
3512
|
+
const { loading, error, data, refetch } = useQuery(GET_REPORTED_CHAT_USERS, {
|
|
3513
|
+
fetchPolicy: "network-only"
|
|
3514
|
+
});
|
|
3515
|
+
const reportedChatUsers = data?.reportedChatUsers || [];
|
|
3516
|
+
return { error, loading, refetch, reportedChatUsers };
|
|
3517
|
+
};
|
|
3465
3518
|
|
|
3466
3519
|
// src/graphql/hooks/contactUs.ts
|
|
3467
3520
|
import { useMutation as useMutation4 } from "@apollo/client";
|
|
@@ -7747,6 +7800,7 @@ export {
|
|
|
7747
7800
|
EnumAdStyle,
|
|
7748
7801
|
EnumAdType,
|
|
7749
7802
|
EnumBillingPeriod,
|
|
7803
|
+
EnumChatReportReason,
|
|
7750
7804
|
EnumChatType,
|
|
7751
7805
|
EnumEventDateStatus,
|
|
7752
7806
|
EnumEventType,
|
|
@@ -7905,6 +7959,7 @@ export {
|
|
|
7905
7959
|
useGetPostsByType,
|
|
7906
7960
|
useGetRelation,
|
|
7907
7961
|
useGetRelationByEventAndVendor,
|
|
7962
|
+
useGetReportedChatUsers,
|
|
7908
7963
|
useGetResourceActivity,
|
|
7909
7964
|
useGetResourceConnections,
|
|
7910
7965
|
useGetSubscriptionPlans,
|
|
@@ -7944,6 +7999,7 @@ export {
|
|
|
7944
7999
|
useRemoveUserGoingResource,
|
|
7945
8000
|
useRemoveUserInterestResource,
|
|
7946
8001
|
useRemoveUserPresentResource,
|
|
8002
|
+
useReportChatUser,
|
|
7947
8003
|
useRequestPasswordReset,
|
|
7948
8004
|
useRequestPasswordResetForm,
|
|
7949
8005
|
useResetPassword,
|