@timardex/cluemart-shared 1.5.520 → 1.5.521

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.
@@ -3664,6 +3664,15 @@ import { gql as gql36 } from "@apollo/client";
3664
3664
 
3665
3665
  // src/graphql/queries/school.ts
3666
3666
  import { gql as gql35 } from "@apollo/client";
3667
+ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql35`
3668
+ fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
3669
+ _id
3670
+ avatar
3671
+ email
3672
+ firstName
3673
+ lastName
3674
+ }
3675
+ `;
3667
3676
  var SCHOOL = gql35`
3668
3677
  fragment SchoolFields on SchoolType {
3669
3678
  _id
@@ -3705,10 +3714,16 @@ var SCHOOL = gql35`
3705
3714
  var GET_SCHOOL = gql35`
3706
3715
  query getSchool($_id: ID!) {
3707
3716
  school(_id: $_id) {
3708
- ...SchoolFields
3717
+ school {
3718
+ ...SchoolFields
3719
+ }
3720
+ users {
3721
+ ...SchoolRegisteredUsersFields
3722
+ }
3709
3723
  }
3710
3724
  }
3711
3725
  ${SCHOOL}
3726
+ ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
3712
3727
  `;
3713
3728
  var GET_SCHOOLS = gql35`
3714
3729
  query getSchools {
@@ -3815,7 +3830,8 @@ var useGetSchool = (_id) => {
3815
3830
  error,
3816
3831
  loading,
3817
3832
  refetch,
3818
- school: data?.school || null
3833
+ school: data?.school || null,
3834
+ users: data?.users || []
3819
3835
  };
3820
3836
  };
3821
3837
 
@@ -3954,4 +3970,4 @@ export {
3954
3970
  useGetSchools,
3955
3971
  useGetSchool
3956
3972
  };
3957
- //# sourceMappingURL=chunk-6ZSNB2Y7.mjs.map
3973
+ //# sourceMappingURL=chunk-7VBSTQWX.mjs.map