@timardex/cluemart-shared 1.2.23 → 1.2.24

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.
@@ -21,6 +21,16 @@ declare const useLogin: () => {
21
21
  loading: boolean;
22
22
  login: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
23
23
  };
24
+ declare const useGoogleSignIn: () => {
25
+ error: _apollo_client.ApolloError | undefined;
26
+ loading: boolean;
27
+ googleSignIn: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
28
+ };
29
+ declare const useGoogleRegister: () => {
30
+ error: _apollo_client.ApolloError | undefined;
31
+ loading: boolean;
32
+ googleRegister: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
33
+ };
24
34
  declare const useLogout: () => {
25
35
  error: _apollo_client.ApolloError | undefined;
26
36
  loading: boolean;
@@ -520,4 +530,4 @@ declare const useGetResourceActivities: (resourceId: string, resourceType: EnumR
520
530
  resourceActivities: ResourceActivityType[];
521
531
  };
522
532
 
523
- export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, 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, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
533
+ export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, 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, useGoogleRegister, useGoogleSignIn, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
@@ -607,6 +607,32 @@ var LOGIN_MUTATION = gql5`
607
607
  }
608
608
  ${USER_FIELDS_FRAGMENT}
609
609
  `;
610
+ var GOOGLE_SIGN_IN_MUTATION = gql5`
611
+ mutation googleSignIn($input: GoogleSignInInputType!) {
612
+ googleSignIn(input: $input) {
613
+ message
614
+ refreshToken
615
+ token
616
+ user {
617
+ ...UserFields
618
+ }
619
+ }
620
+ }
621
+ ${USER_FIELDS_FRAGMENT}
622
+ `;
623
+ var GOOGLE_REGISTER_MUTATION = gql5`
624
+ mutation googleRegister($input: GoogleRegisterInputType!) {
625
+ googleRegister(input: $input) {
626
+ message
627
+ refreshToken
628
+ token
629
+ user {
630
+ ...UserFields
631
+ }
632
+ }
633
+ }
634
+ ${USER_FIELDS_FRAGMENT}
635
+ `;
610
636
  var LOGOUT_MUTATION = gql5`
611
637
  mutation logout {
612
638
  logout {
@@ -655,6 +681,18 @@ var useLogin = () => {
655
681
  const [login, { loading, error }] = useMutation2(LOGIN_MUTATION);
656
682
  return { error, loading, login };
657
683
  };
684
+ var useGoogleSignIn = () => {
685
+ const [googleSignIn, { loading, error }] = useMutation2(
686
+ GOOGLE_SIGN_IN_MUTATION
687
+ );
688
+ return { error, loading, googleSignIn };
689
+ };
690
+ var useGoogleRegister = () => {
691
+ const [googleRegister, { loading, error }] = useMutation2(
692
+ GOOGLE_REGISTER_MUTATION
693
+ );
694
+ return { error, loading, googleRegister };
695
+ };
658
696
  var useLogout = () => {
659
697
  const [logout, { loading, error }] = useMutation2(LOGOUT_MUTATION);
660
698
  return { error, loading, logout };
@@ -2667,6 +2705,8 @@ export {
2667
2705
  useGetVendorRelations,
2668
2706
  useGetVendors,
2669
2707
  useGetVendorsByRegion,
2708
+ useGoogleRegister,
2709
+ useGoogleSignIn,
2670
2710
  useLogin,
2671
2711
  useLogout,
2672
2712
  useMarkAllNotificationsRead,