@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.
- package/dist/{chunk-6ZSNB2Y7.mjs → chunk-7VBSTQWX.mjs} +19 -3
- package/dist/{chunk-6ZSNB2Y7.mjs.map → chunk-7VBSTQWX.mjs.map} +1 -1
- package/dist/graphql/index.cjs +18 -2
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -1
- package/dist/graphql/index.d.ts +3 -1
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +16 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +18 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +18 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{post-B8Gk54ul.d.mts → post-BPefBhwH.d.mts} +3 -2
- package/dist/{post-6SB9oo7r.d.ts → post-kS5CrR6f.d.ts} +3 -2
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/graphql/index.cjs
CHANGED
|
@@ -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
|
-
|
|
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:
|