phx-react 1.3.1256 → 1.3.1257

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.
@@ -2,6 +2,6 @@ export declare const getUserInfo = "\n query MyQuery($userId: Int) {\n users
2
2
  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";
3
3
  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";
4
4
  export declare const getCampaignNameV3 = "\n query MyQuery($id: Int!) {\n admissions_campaigns_by_pk(id: $id) {\n id\n campaign_name\n }\n }\n";
5
- export declare const GET_PERMISSION_DETAIL_USER_V3 = "\n query GetUserPermission($id: Int, $school_id: Int) {\n permission_user(\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(\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";
5
+ 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";
6
6
  export declare const GET_SCHOOL_V3 = "\n query GetSchool($group_id: Int, $school_name_id: Int, $user_id: Int) {\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 users(where: { id: { _eq: $user_id } }) {\n id\n full_name\n email\n avatar\n }\n setting_site(where: { deleted_at: { _is_null: true }, key_setting: { _eq: \"appearance\" } }) {\n value_setting\n key_setting\n }\n }\n";
7
7
  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";
@@ -6,7 +6,7 @@ exports.getUserInfo = "\n query MyQuery($userId: Int) {\n users(where: { id:
6
6
  exports.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";
7
7
  exports.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";
8
8
  exports.getCampaignNameV3 = "\n query MyQuery($id: Int!) {\n admissions_campaigns_by_pk(id: $id) {\n id\n campaign_name\n }\n }\n";
9
- exports.GET_PERMISSION_DETAIL_USER_V3 = "\n query GetUserPermission($id: Int, $school_id: Int) {\n permission_user(\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(\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";
9
+ exports.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";
10
10
  exports.GET_SCHOOL_V3 = "\n query GetSchool($group_id: Int, $school_name_id: Int, $user_id: Int) {\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 users(where: { id: { _eq: $user_id } }) {\n id\n full_name\n email\n avatar\n }\n setting_site(where: { deleted_at: { _is_null: true }, key_setting: { _eq: \"".concat(constants_1.KEY_QUERY_SETTING, "\" } }) {\n value_setting\n key_setting\n }\n }\n");
11
11
  exports.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";
12
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/query/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsD;AAEzC,QAAA,WAAW,GAAG,knBA+B1B,CAAA;AAEY,QAAA,gCAAgC,GAAG,w0EAwF/C,CAAA;AAEY,QAAA,mBAAmB,GAAG,unFAoGlC,CAAA;AAEY,QAAA,iBAAiB,GAAG,wHAOhC,CAAA;AAEY,QAAA,6BAA6B,GAAG,22BAmC5C,CAAA;AAEY,QAAA,aAAa,GAAG,kfAcoD,6BAAiB,oEAKjG,CAAA;AAEY,QAAA,sBAAsB,GAAG,mmBA6BrC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/query/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsD;AAEzC,QAAA,WAAW,GAAG,knBA+B1B,CAAA;AAEY,QAAA,gCAAgC,GAAG,w0EAwF/C,CAAA;AAEY,QAAA,mBAAmB,GAAG,unFAoGlC,CAAA;AAEY,QAAA,iBAAiB,GAAG,wHAOhC,CAAA;AAEY,QAAA,6BAA6B,GAAG,i6BAmC5C,CAAA;AAEY,QAAA,aAAa,GAAG,kfAcoD,6BAAiB,oEAKjG,CAAA;AAEY,QAAA,sBAAsB,GAAG,mmBA6BrC,CAAA"}
@@ -2,6 +2,6 @@ export declare const getUserInfo = "\n query MyQuery($userId: Int) {\n users
2
2
  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";
3
3
  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";
4
4
  export declare const getCampaignNameV3 = "\n query MyQuery($id: Int!) {\n admissions_campaigns_by_pk(id: $id) {\n id\n campaign_name\n }\n }\n";
5
- export declare const GET_PERMISSION_DETAIL_USER_V3 = "\n query GetUserPermission($id: Int, $school_id: Int) {\n permission_user(\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(\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";
5
+ 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";
6
6
  export declare const GET_SCHOOL_V3 = "\n query GetSchool($group_id: Int, $school_name_id: Int, $user_id: Int) {\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 users(where: { id: { _eq: $user_id } }) {\n id\n full_name\n email\n avatar\n }\n setting_site(where: { deleted_at: { _is_null: true }, key_setting: { _eq: \"appearance\" } }) {\n value_setting\n key_setting\n }\n }\n";
7
7
  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";
@@ -3,7 +3,7 @@ export var getUserInfo = "\n query MyQuery($userId: Int) {\n users(where: {
3
3
  export var 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";
4
4
  export var 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";
5
5
  export var getCampaignNameV3 = "\n query MyQuery($id: Int!) {\n admissions_campaigns_by_pk(id: $id) {\n id\n campaign_name\n }\n }\n";
6
- export var GET_PERMISSION_DETAIL_USER_V3 = "\n query GetUserPermission($id: Int, $school_id: Int) {\n permission_user(\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(\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";
6
+ export var 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";
7
7
  export var GET_SCHOOL_V3 = "\n query GetSchool($group_id: Int, $school_name_id: Int, $user_id: Int) {\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 users(where: { id: { _eq: $user_id } }) {\n id\n full_name\n email\n avatar\n }\n setting_site(where: { deleted_at: { _is_null: true }, key_setting: { _eq: \"".concat(KEY_QUERY_SETTING, "\" } }) {\n value_setting\n key_setting\n }\n }\n");
8
8
  export var 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";
9
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtD,MAAM,CAAC,IAAM,WAAW,GAAG,knBA+B1B,CAAA;AAED,MAAM,CAAC,IAAM,gCAAgC,GAAG,w0EAwF/C,CAAA;AAED,MAAM,CAAC,IAAM,mBAAmB,GAAG,unFAoGlC,CAAA;AAED,MAAM,CAAC,IAAM,iBAAiB,GAAG,wHAOhC,CAAA;AAED,MAAM,CAAC,IAAM,6BAA6B,GAAG,22BAmC5C,CAAA;AAED,MAAM,CAAC,IAAM,aAAa,GAAG,kfAcoD,iBAAiB,oEAKjG,CAAA;AAED,MAAM,CAAC,IAAM,sBAAsB,GAAG,mmBA6BrC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtD,MAAM,CAAC,IAAM,WAAW,GAAG,knBA+B1B,CAAA;AAED,MAAM,CAAC,IAAM,gCAAgC,GAAG,w0EAwF/C,CAAA;AAED,MAAM,CAAC,IAAM,mBAAmB,GAAG,unFAoGlC,CAAA;AAED,MAAM,CAAC,IAAM,iBAAiB,GAAG,wHAOhC,CAAA;AAED,MAAM,CAAC,IAAM,6BAA6B,GAAG,i6BAmC5C,CAAA;AAED,MAAM,CAAC,IAAM,aAAa,GAAG,kfAcoD,iBAAiB,oEAKjG,CAAA;AAED,MAAM,CAAC,IAAM,sBAAsB,GAAG,mmBA6BrC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phx-react",
3
- "version": "1.3.1256",
3
+ "version": "1.3.1257",
4
4
  "description": "PHX REACT",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",