@timardex/cluemart-shared 1.5.520 → 1.5.522

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,18 @@ 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
+ ...ResourceImageFields
3672
+ }
3673
+ email
3674
+ firstName
3675
+ lastName
3676
+ }
3677
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3678
+ `;
3667
3679
  var SCHOOL = gql35`
3668
3680
  fragment SchoolFields on SchoolType {
3669
3681
  _id
@@ -3705,10 +3717,16 @@ var SCHOOL = gql35`
3705
3717
  var GET_SCHOOL = gql35`
3706
3718
  query getSchool($_id: ID!) {
3707
3719
  school(_id: $_id) {
3708
- ...SchoolFields
3720
+ school {
3721
+ ...SchoolFields
3722
+ }
3723
+ users {
3724
+ ...SchoolRegisteredUsersFields
3725
+ }
3709
3726
  }
3710
3727
  }
3711
3728
  ${SCHOOL}
3729
+ ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
3712
3730
  `;
3713
3731
  var GET_SCHOOLS = gql35`
3714
3732
  query getSchools {
@@ -3815,7 +3833,8 @@ var useGetSchool = (_id) => {
3815
3833
  error,
3816
3834
  loading,
3817
3835
  refetch,
3818
- school: data?.school || null
3836
+ school: data?.school || null,
3837
+ users: data?.users || []
3819
3838
  };
3820
3839
  };
3821
3840
 
@@ -3954,4 +3973,4 @@ export {
3954
3973
  useGetSchools,
3955
3974
  useGetSchool
3956
3975
  };
3957
- //# sourceMappingURL=chunk-6ZSNB2Y7.mjs.map
3976
+ //# sourceMappingURL=chunk-5Y3LQWZ5.mjs.map