@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.
@@ -3822,6 +3822,15 @@ 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
+ email
3830
+ firstName
3831
+ lastName
3832
+ }
3833
+ `;
3825
3834
  var SCHOOL = import_client67.gql`
3826
3835
  fragment SchoolFields on SchoolType {
3827
3836
  _id
@@ -3863,10 +3872,16 @@ var SCHOOL = import_client67.gql`
3863
3872
  var GET_SCHOOL = import_client67.gql`
3864
3873
  query getSchool($_id: ID!) {
3865
3874
  school(_id: $_id) {
3866
- ...SchoolFields
3875
+ school {
3876
+ ...SchoolFields
3877
+ }
3878
+ users {
3879
+ ...SchoolRegisteredUsersFields
3880
+ }
3867
3881
  }
3868
3882
  }
3869
3883
  ${SCHOOL}
3884
+ ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
3870
3885
  `;
3871
3886
  var GET_SCHOOLS = import_client67.gql`
3872
3887
  query getSchools {
@@ -3973,7 +3988,8 @@ var useGetSchool = (_id) => {
3973
3988
  error,
3974
3989
  loading,
3975
3990
  refetch,
3976
- school: data?.school || null
3991
+ school: data?.school || null,
3992
+ users: data?.users || []
3977
3993
  };
3978
3994
  };
3979
3995
  // Annotate the CommonJS export names for ESM import in node: