export declare const getUserInfo = "\n  query MyQuery($userId: Int) {\n    users(where: { id: { _eq: $userId } }) {\n      id\n      email\n      phone_number\n      full_name\n      school_id\n      school {\n        educational_levels(where: { deleted_at: { _is_null: true } }) {\n          code\n        }\n        school_name_id\n        email\n        id\n        phone\n        name\n        school_name {\n          name\n          group_id\n        }\n      }\n      user_roles(where: { is_active: { _eq: true }, deleted_at: { _is_null: true } }) {\n        role_id\n        role {\n          name\n          role_code\n        }\n      }\n    }\n  }\n";
export declare const getTuitionDebtRecordByUserCodeV3 = "\n  query GetTuitionDebtRecordByUserCode($user_code: String, $school_year_id: Int, $school_id: Int) {\n    tuition_fee_debt_record(\n      order_by: { school_term: {start_at: asc} }\n      where: {\n        deleted_at: { _is_null: true }\n        school_id: { _eq: $school_id }\n        user_code: { _eq: $user_code }\n        school_term: { school_year_id: { _eq: $school_year_id } }\n      }\n    ) {\n      total_promotion_service\n      total_payment\n      total_promotion_tuition_policy\n      total_promotion_tuition_scholar_ship\n      total_promotion_tuition_seniority\n      total_promotion_early\n      total_promotion_admission\n      total_required_service\n      total_not_required_service\n      total_tuition\n      last_period_debt_balance\n      last_period_credit_balance\n      status\n      last_credit_balance\n      last_debt_balance\n      total_refund\n      total_adjustment_refund\n      total_adjustment_additional\n      id\n      is_locked\n      status\n      school_term {\n        school_year {\n          name\n          code\n        }\n        name\n        code\n        coefficient\n        id\n      }\n      profile_student {\n        tuition_notice_delivered_emails(order_by: { created_at: desc }) {\n          link_pdf_cdn\n          tuition_notice_campaign {\n            school_term_id\n          }\n        }\n      }\n      user_code\n    }\n    tuition_fee_debt_record_by_month(\n      order_by: { school_month: {start_date: asc} }\n      where: {\n        deleted_at: { _is_null: true }\n        school_id: { _eq: $school_id }\n        user_code: { _eq: $user_code }\n        school_month: { school_term: { school_year_id: { _eq: $school_year_id } } }\n      }\n    ) {\n      total_promotion_service\n      total_payment\n      total_promotion_tuition_policy\n      total_promotion_tuition_scholar_ship\n      total_promotion_tuition_seniority\n      total_promotion_early\n      total_promotion_admission\n      total_required_service\n      total_not_required_service\n      total_tuition\n      last_period_debt_balance\n      last_period_credit_balance\n      status\n      last_credit_balance\n      last_debt_balance\n      total_refund\n      total_adjustment_refund\n      total_adjustment_additional\n      id\n      is_locked\n      status\n      school_month {\n        name\n      }\n      user_code\n    }\n  }\n";
export declare const querySearchGlobalV3 = "\n  query QuerySearchGlobal($school_id: Int, $searchValue: String) {\n    profile_student(\n      where: {\n        _or: [\n          { user_code: { _eq: $searchValue } }\n          { user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true }, full_name: { _eq: $searchValue } } }\n        ]\n      }\n    ) {\n      user_code\n      user {\n        id\n        user_roles(where: { deleted_at: { _is_null: true }, user: { deleted_at: { _is_null: true } } }) {\n          role {\n            name\n            role_code\n          }\n        }\n        classroom_students {\n          classroom {\n            name\n          }\n        }\n        id\n        full_name\n      }\n    }\n\n    profile_parent(\n      where: {\n        _or: [\n          { user: { email: { _eq: $searchValue } } }\n          { user: { full_name: { _eq: $searchValue } } }\n          { user: { phone_number: { _eq: $searchValue } } }\n        ]\n        deleted_at: { _is_null: true }\n        user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n      }\n    ) {\n      user {\n        id\n        full_name\n        user_roles(where: { deleted_at: { _is_null: true }, user: { deleted_at: { _is_null: true } } }) {\n          role {\n            name\n            role_code\n          }\n        }\n        relationship_users(\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          userByStudentId {\n            full_name\n          }\n        }\n      }\n    }\n\n    profile_teacher(\n      where: {\n        _or: [\n          { user_code: { _eq: $searchValue } }\n          { user: { email: { _eq: $searchValue } } }\n          { user: { full_name: { _eq: $searchValue } } }\n          { user: { phone_number: { _eq: $searchValue } } }\n        ]\n        deleted_at: { _is_null: true }\n        user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n      }\n    ) {\n      user {\n        id\n        full_name\n        email\n        phone_number\n        user_roles(where: { deleted_at: { _is_null: true }, user: { deleted_at: { _is_null: true } } }) {\n          role {\n            name\n            role_code\n          }\n        }\n        relationship_users(\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          userByStudentId {\n            full_name\n          }\n        }\n      }\n    }\n  }\n";
export declare const getCampaignNameV3 = "\n  query MyQuery($id: Int!) {\n    admissions_campaigns_by_pk(id: $id) {\n      id\n      campaign_name\n    }\n  }\n";
export declare const GET_PERMISSION_DETAIL_USER_V3 = "\n  query GetUserPermission($id: Int, $school_id: Int) {\n    permission_user:permission_user_permission(\n      where: {\n        deleted_at: { _is_null: true }\n        is_active: { _eq: true }\n        school_id: { _eq: $school_id }\n        user_id: { _eq: $id }\n        permission: { deleted_at: { _is_null: true } }\n      }\n    ) {\n      permission {\n        code\n        is_action\n      }\n    }\n    permission_role:permission_role_permission(\n      where: {\n        deleted_at: { _is_null: true }\n        is_active: { _eq: true }\n        permission: { deleted_at: { _is_null: true } }\n        role: {\n          school_id: { _eq: $school_id }\n          deleted_at: { _is_null: true }\n          user_roles: { deleted_at: { _is_null: true }, is_active: { _eq: true }, user_id: { _eq: $id } }\n        }\n      }\n    ) {\n      permission {\n        code\n        is_action\n      }\n      id\n    }\n  }\n";
export declare const GET_SCHOOL_V3 = "\n  query GetSchool($group_id: Int, $school_name_id: Int, $email: String!) {\n    school_name(where: { group_id: { _eq: $group_id }, deleted_at: { _is_null: true }, id: { _eq: $school_name_id } }) {\n      schools(where: { deleted_at: { _is_null: true } }) {\n        id\n        name\n      }\n    }\n    school(\n      where: {\n        users: {\n          _or: [{deleted_at: {_is_null: true}}, {login_k12: {_eq: true}}]\n          email: {_eq: $email}\n        }\n      }\n    ) {\n      id\n      name\n      school_name {\n        id\n        group_id\n      }\n      users(where: {email: {_eq: $email}}) {\n        id\n      }\n    }\n    setting_site(where: {deleted_at: { _is_null: true }, key_setting: { _eq: \"appearance\" } }) {\n      value_setting\n      school_id\n    }\n  }\n";
export declare const GET_CROSS_SCHOOL_ACCESS_V3 = "\n  query GetCrossSchoolAccess($userIds: [Int!]) {\n    allCoreSharedPermissionCrossSchoolAccesses(\n      filter: {\n        userId: { in: $userIds }\n        deletedAt: { isNull: true }\n      }\n    ) {\n      nodes {\n        userId\n        schoolId\n        coreSharedPublicSchoolBySchoolId {\n          id\n          rowId\n          name\n          coreSharedPublicSchoolNameBySchoolNameIdAndSchoolId {\n            id\n            rowId\n            groupId\n          }\n        }\n      }\n    }\n  }\n";
export declare const QUERY_GET_PROFILE_USER = "\n  query MyQuery($user_id: Int!) {\n      users_by_pk(id: $user_id) {\n        avatar\n        email\n        full_name\n        user_avatar {\n          size_small\n        }\n        user_roles(where: {is_active: {_eq: true}, deleted_at: {_is_null: true}}) {\n          role_id\n          role {\n            id\n            name\n            role_code\n            is_admin\n            is_master_role\n          }\n        }\n        profile_staff {\n          is_quit_job\n          user_code\n        }\n        profile_teacher {\n          is_quit_job\n          user_code\n        }\n      }\n    }\n";
