@zeroin.earth/appwrite-graphql 0.15.5 → 0.15.6

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.mjs CHANGED
@@ -643,7 +643,7 @@ function useDeleteIdentity() {
643
643
  if (errors) {
644
644
  throw errors;
645
645
  }
646
- return data.accountDeleteIdentity ?? { status: false };
646
+ return data?.accountDeleteIdentity ?? { status: false };
647
647
  }
648
648
  });
649
649
  return { ...queryResult };
@@ -704,7 +704,7 @@ function useDeleteSession() {
704
704
  if (errors) {
705
705
  throw errors;
706
706
  }
707
- return data.accountDeleteSession;
707
+ return data?.accountDeleteSession ?? { status: false };
708
708
  }
709
709
  });
710
710
  return { ...queryResult };
@@ -731,7 +731,7 @@ function useDeleteSessions() {
731
731
  if (errors) {
732
732
  throw errors;
733
733
  }
734
- return data.accountDeleteSessions;
734
+ return data?.accountDeleteSessions ?? { status: false };
735
735
  }
736
736
  });
737
737
  return { ...queryResult };
@@ -984,7 +984,7 @@ function useLogout() {
984
984
  if (errors) {
985
985
  throw errors;
986
986
  }
987
- return data?.accountDeleteSession;
987
+ return data?.accountDeleteSession ?? { status: false };
988
988
  },
989
989
  onSuccess: async () => {
990
990
  queryClient2.setQueryData(["appwrite"], null);
@@ -1327,7 +1327,7 @@ function useUpdateMfaChallenge() {
1327
1327
  if (errors) {
1328
1328
  throw errors;
1329
1329
  }
1330
- return data.accountUpdateMfaChallenge;
1330
+ return data?.accountUpdateMfaChallenge ?? { status: false };
1331
1331
  }
1332
1332
  });
1333
1333
  return { ...queryResult };
@@ -1415,7 +1415,7 @@ function useUpdatePassword() {
1415
1415
  if (errors) {
1416
1416
  throw errors;
1417
1417
  }
1418
- return data.accountUpdatePassword;
1418
+ return data?.accountUpdatePassword;
1419
1419
  }
1420
1420
  });
1421
1421
  return { ...queryResult };