@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.
@@ -3822,6 +3822,18 @@ var import_client68 = require("@apollo/client");
3822
3822
 
3823
3823
  // src/graphql/queries/school.ts
3824
3824
  var import_client67 = require("@apollo/client");
3825
+ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client67.gql`
3826
+ fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
3827
+ _id
3828
+ avatar {
3829
+ ...ResourceImageFields
3830
+ }
3831
+ email
3832
+ firstName
3833
+ lastName
3834
+ }
3835
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3836
+ `;
3825
3837
  var SCHOOL = import_client67.gql`
3826
3838
  fragment SchoolFields on SchoolType {
3827
3839
  _id
@@ -3863,10 +3875,16 @@ var SCHOOL = import_client67.gql`
3863
3875
  var GET_SCHOOL = import_client67.gql`
3864
3876
  query getSchool($_id: ID!) {
3865
3877
  school(_id: $_id) {
3866
- ...SchoolFields
3878
+ school {
3879
+ ...SchoolFields
3880
+ }
3881
+ users {
3882
+ ...SchoolRegisteredUsersFields
3883
+ }
3867
3884
  }
3868
3885
  }
3869
3886
  ${SCHOOL}
3887
+ ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
3870
3888
  `;
3871
3889
  var GET_SCHOOLS = import_client67.gql`
3872
3890
  query getSchools {
@@ -3973,7 +3991,8 @@ var useGetSchool = (_id) => {
3973
3991
  error,
3974
3992
  loading,
3975
3993
  refetch,
3976
- school: data?.school || null
3994
+ school: data?.school || null,
3995
+ users: data?.users || []
3977
3996
  };
3978
3997
  };
3979
3998
  // Annotate the CommonJS export names for ESM import in node: