@timardex/cluemart-shared 1.3.11 → 1.3.13
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/graphql/index.cjs +17 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +10 -2
- package/dist/graphql/index.d.ts +10 -2
- package/dist/graphql/index.mjs +16 -0
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +25 -17
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +25 -17
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +42 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.mjs +41 -17
- package/dist/index.mjs.map +1 -1
- package/dist/{post-Df5kAhEE.d.ts → post-CL2oI3Yl.d.ts} +1 -1
- package/dist/{post-tVcpbEDX.d.mts → post-CifJA7KI.d.mts} +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/graphql/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _apollo_client from '@apollo/client';
|
|
|
2
2
|
import { EnumResourceType } from '../enums/index.mjs';
|
|
3
3
|
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CJRTZROh.mjs';
|
|
4
4
|
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserLicenceType } from '../global-O7RsWypG.mjs';
|
|
5
|
-
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType } from '../post-
|
|
5
|
+
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType } from '../post-CifJA7KI.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
|
@@ -805,5 +805,13 @@ declare const useGetPost: (postId: string) => {
|
|
|
805
805
|
post: PostType;
|
|
806
806
|
}>>;
|
|
807
807
|
};
|
|
808
|
+
declare const useGetPostsByType: (postType: EnumPostType) => {
|
|
809
|
+
error: _apollo_client.ApolloError | undefined;
|
|
810
|
+
loading: boolean;
|
|
811
|
+
postsByType: PostType[];
|
|
812
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
813
|
+
postsByType: PostType[];
|
|
814
|
+
}>>;
|
|
815
|
+
};
|
|
808
816
|
|
|
809
|
-
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
|
817
|
+
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _apollo_client from '@apollo/client';
|
|
|
2
2
|
import { EnumResourceType } from '../enums/index.js';
|
|
3
3
|
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CVwxvGeC.js';
|
|
4
4
|
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserLicenceType } from '../global-DSwmP6sp.js';
|
|
5
|
-
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType } from '../post-
|
|
5
|
+
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType } from '../post-CL2oI3Yl.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
|
@@ -805,5 +805,13 @@ declare const useGetPost: (postId: string) => {
|
|
|
805
805
|
post: PostType;
|
|
806
806
|
}>>;
|
|
807
807
|
};
|
|
808
|
+
declare const useGetPostsByType: (postType: EnumPostType) => {
|
|
809
|
+
error: _apollo_client.ApolloError | undefined;
|
|
810
|
+
loading: boolean;
|
|
811
|
+
postsByType: PostType[];
|
|
812
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
813
|
+
postsByType: PostType[];
|
|
814
|
+
}>>;
|
|
815
|
+
};
|
|
808
816
|
|
|
809
|
-
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
|
817
|
+
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
package/dist/graphql/index.mjs
CHANGED
|
@@ -2964,6 +2964,14 @@ var GET_POST = gql31`
|
|
|
2964
2964
|
}
|
|
2965
2965
|
${POST_FIELDS_FRAGMENT}
|
|
2966
2966
|
`;
|
|
2967
|
+
var GET_POSTS_BY_TYPE = gql31`
|
|
2968
|
+
query getPostsByType($postType: PostTypeEnum!) {
|
|
2969
|
+
postsByType(postType: $postType) {
|
|
2970
|
+
...PostFields
|
|
2971
|
+
}
|
|
2972
|
+
}
|
|
2973
|
+
${POST_FIELDS_FRAGMENT}
|
|
2974
|
+
`;
|
|
2967
2975
|
|
|
2968
2976
|
// src/graphql/mutations/post.ts
|
|
2969
2977
|
var CREATE_POST_MUTATION = gql32`
|
|
@@ -3024,6 +3032,13 @@ var useGetPost = (postId) => {
|
|
|
3024
3032
|
});
|
|
3025
3033
|
return { error, loading, post: data?.post || null, refetch };
|
|
3026
3034
|
};
|
|
3035
|
+
var useGetPostsByType = (postType) => {
|
|
3036
|
+
const { data, loading, error, refetch } = useQuery12(GET_POSTS_BY_TYPE, {
|
|
3037
|
+
skip: !postType,
|
|
3038
|
+
variables: { postType }
|
|
3039
|
+
});
|
|
3040
|
+
return { error, loading, postsByType: data?.postsByType || [], refetch };
|
|
3041
|
+
};
|
|
3027
3042
|
export {
|
|
3028
3043
|
useAddParticipantToChat,
|
|
3029
3044
|
useAddUserFavouriteResource,
|
|
@@ -3078,6 +3093,7 @@ export {
|
|
|
3078
3093
|
useGetPartnersByRegion,
|
|
3079
3094
|
useGetPost,
|
|
3080
3095
|
useGetPosts,
|
|
3096
|
+
useGetPostsByType,
|
|
3081
3097
|
useGetRelation,
|
|
3082
3098
|
useGetRelationByEventAndVendor,
|
|
3083
3099
|
useGetResourceActivities,
|