import { IQueryBuilderProps } from '../type/target';
export declare const GET_SELECT_QUERY = "\n  query getSelectQuery($schoolId: Int!, $schoolYearId: Int!) {\n    educational_level(order_by: { id: asc }, where: { deleted_at: { _is_null: true }, school_id: { _eq: $schoolId } }) {\n      id\n      name\n      code\n    }\n    grade(\n      order_by: { id: asc }\n      where: {\n        deleted_at: { _is_null: true }\n        school_id: { _eq: $schoolId }\n        educational_level: { deleted_at: { _is_null: true } }\n      }\n    ) {\n      id\n      name\n      code\n      educational_level_id\n    }\n    classroom(\n      order_by: { id: asc }\n      where: {\n        deleted_at: { _is_null: true }\n        school_id: { _eq: $schoolId }\n        grade: { educational_level: { deleted_at: { _is_null: true } } }\n        school_year_id: { _eq: $schoolYearId }\n      }\n    ) {\n      id\n      name\n      code\n      grade {\n        id\n        educational_level_id\n      }\n    }\n\n    department(where: { deleted_at: { _is_null: true }, school_id: { _eq: $schoolId } }) {\n      id\n      name\n    }\n  }\n";
export declare const queryListUserBuilder: ({ schoolId, schoolYearId, target }: IQueryBuilderProps) => string;
export declare const getTargetByIdQuery = "\n  query getTargetByIdQuery($id: uuid!) {\n    target_inform_target_by_pk(id: $id) {\n      target_by_roles(where: {deleted_at: {_is_null: true}}) {\n        role_code\n        target_educational_levels {\n          educational_level {\n            id\n            name\n            code\n          }\n        }\n        target_grades {\n          grade {\n            id\n            name\n            code\n          }\n        }\n        target_classrooms {\n          classroom {\n            id\n            name\n            code\n          }\n        }\n        target_users {\n          user {\n            id\n            name: full_name\n            phone: phone_number\n            email\n            profile_teacher {\n              user_code\n            } \n            profile_staff {\n              user_code\n            }\n          }\n        }\n      }\n    }\n  }\n";
export declare const GET_TARGET_BY_ROLE_QUERY = "\n  query getTargetByRoleQuery($id: uuid!) {\n    user_segment_target_by_pk(id: $id) {\n      school_year_id\n      target_by_roles(where: {deleted_at: {_is_null: true}}) {\n        role {\n          role_code\n        }\n        is_all\n        notify_with\n        target_educational_levels {\n          educational_level {\n            id\n            name\n            code\n          }\n        }\n        target_grades {\n          grade {\n            id\n            name\n            code\n          }\n        }\n        target_classrooms {\n          classroom {\n            id\n            name\n            code\n          }\n        }\n        target_departments {\n          department {\n            id\n            name\n          }\n        }\n        target_users {\n          user {\n            id\n            name: full_name\n            phone: phone_number\n            email\n            profile_student {\n              user_code\n              grade {\n                id\n                name\n              }\n              program_map_educational_level {\n                educational_level {\n                  code\n                  name\n                  id\n                }\n              }\n            }\n\n            profile_teacher {\n              user_code\n            }\n            profile_staff {\n              user_code\n            }\n            relationshipUsersByStudentId(\n              order_by: {created_at: desc}\n              where: {\n                deleted_at: {_is_null: true}\n                user: {deleted_at: {_is_null: true}}\n                userByStudentId: {deleted_at: {_is_null: true}}\n              }\n            ) {\n              parent_id\n              relationship_code\n              user {\n                gender\n                full_name\n                phone_number\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n";
export declare const GET_LIST_ROLE_QUERY = "\n  query getListRoleQuery($schoolId: Int!) {\n    role(where: {deleted_at: {_is_null: true}, school_id: {_eq: $schoolId}}) {\n      id\n      role_code\n    }\n  }\n";
export declare const GET_CLASSROOM_BY_USER_IDS = "\n  query getClassroomByUserIds($schoolYearId: Int!, $userIds: [Int!]!) {\n  classroom_student(\n    where: {\n      deleted_at: { _is_null: true }\n      user:{id:{_in:$userIds}}\n      classroom: {\n        deleted_at: { _is_null: true }\n        school_year_id: { _eq: $schoolYearId }\n      }\n    }\n  ) {\n    user{\n      id\n    }\n    classroom {\n      id\n      name\n      grade_id\n      grade {\n        id\n        educational_level_id\n      }\n      program_id\n      school_year_id\n      program {\n        name\n      }\n    }\n  }\n}\n";
export declare const FIND_STUDENT_BY_USER_CODE = "\nquery FindStudentByUserCodes($userCodes: [String!]!, $schoolId: Int!) {\n  allCoreStudentPublicProfileStudents(\n    filter: {\n      deletedAt: { isNull: true }\n      userCode: { in: $userCodes }\n      schoolId: { equalTo: $schoolId }\n    }\n  ) {\n    pageInfo {\n      endCursor\n      hasNextPage\n      hasPreviousPage\n      startCursor\n    }\n    nodes {\n      userCode\n      gradeId\n      studentId\n      coreStudentPublicGradeByGradeIdAndSchoolId {\n        name\n        id: rowId\n      }\n      coreStudentPublicUserByStudentIdAndSchoolId {\n        coreStudentPublicRelationshipUsersByStudentIdAndSchoolId(\n          filter: {\n            deletedAt: { isNull: true }\n            schoolId: { equalTo: $schoolId }\n            coreStudentPublicUserByParentIdAndSchoolId:  {\n               deletedAt:  {\n                  isNull: true\n               }\n               schoolId: { equalTo: $schoolId }\n            }\n          }\n        ) {\n          nodes {\n            parentId\n            relationshipCode\n            rowId\n          }\n        }\n      }\n      coreStudentPublicProgramMapEducationalLevelByProgramEducationalIdAndSchoolId {\n        coreStudentPublicEducationalLevelByEducationalLevelIdAndSchoolId {\n          code\n          name\n          id: rowId\n        }\n      }\n    }\n  }\n}\n\n";
export declare const FIND_STAFF_BY_USER_CODE = "\nquery FindStaffByUserCodes($userCodes: [String!]!, $schoolId: Int!) {\n  allCoreAdminPublicUsers(\n    filter: {\n      deletedAt: { isNull: true }\n      schoolId: { equalTo: $schoolId }\n      coreAdminPublicProfileStaffByStaffIdAndSchoolId: {\n        userCode: { in: $userCodes }\n        deletedAt: { isNull: true }\n        schoolId: { equalTo: $schoolId }\n      }\n    }\n  ) {\n    pageInfo {\n      endCursor\n      hasNextPage\n      hasPreviousPage\n      startCursor\n    }\n    nodes {\n      id: rowId\n      fullName\n      phoneNumber\n      emailSecondary\n      email\n      isUseEmailSecondary\n      coreAdminPublicProfileStaffByStaffIdAndSchoolId {\n        userCode\n      }\n    }\n  }\n}\n";
export declare const FIND_TEACHER_BY_USER_CODE = "\nquery FindTeacherByUserCodes($userCodes: [String!]!, $schoolId: Int!) {\n  allCoreAdminPublicProfileTeachers(\n    filter: {\n      deletedAt: { isNull: true }\n      userCode: { in: $userCodes }\n      schoolId: { equalTo: $schoolId }\n    }\n  ) {\n    pageInfo {\n      endCursor\n      hasNextPage\n      hasPreviousPage\n      startCursor\n    }\n    nodes {\n      userCode\n      coreAdminPublicEducationalLevelGroupByEducationalLevelGroupIdAndSchoolId {\n        id: rowId\n        name\n        schoolId\n      }\n      coreAdminPublicUserByTeacherIdAndSchoolId {\n        email\n        emailSecondary\n        fullName\n        id: rowId\n        phoneNumber\n        isUseEmailSecondary\n        isEmailValid\n        isEmailSecondaryValid\n      }\n    }\n  }\n}\n  ";
export declare const FIND_USER_INFO = "\n  query findUserInfo($ids: [Int!]!, $schoolId: Int!) {\n    allCoreAdminPublicUsers(\n      filter: {\n        rowId: {in: $ids}\n        deletedAt: {isNull: true}\n        schoolId: {equalTo: $schoolId}\n      }\n    ) {\n      nodes {\n        email\n        fullName\n        isEmailValid\n        isEmailSecondaryValid\n        isUseEmailSecondary\n        id: rowId\n      }\n    }\n  }\n";
export declare const FIND_CLASSROOM_BY_USER_IDS = "\n  query FindClassroomByUserIds($userIds: [Int!]!, $schoolYearId: Int!, $schoolId: Int!) {\n    allCoreAcademicPublicClassroomStudents(\n      filter: {\n        deletedAt: {isNull: true}\n        coreAcademicPublicClassroomByClassroomIdAndSchoolId: {\n          schoolYearId: {equalTo: $schoolYearId}\n        }\n        studentId: { in: $userIds }\n        schoolId: { equalTo: $schoolId }\n      }\n    ) {\n      nodes {\n        coreAcademicPublicClassroomByClassroomIdAndSchoolId {\n          name\n          rowId\n        }\n        studentId\n      }\n    }\n  }\n";
