phx-uikit 1.0.43 → 1.0.44

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.
@@ -1,8 +1,8 @@
1
- export declare const GET_SCHOOL: import("@apollo/client").DocumentNode;
1
+ export declare const GET_SCHOOL: string;
2
2
  export declare const getCampaignName: import("@apollo/client").DocumentNode;
3
- export declare const GET_PERMISSION_DETAIL_USER: import("@apollo/client").DocumentNode;
3
+ export declare const GET_PERMISSION_DETAIL_USER = "\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 }\n }\n permission_role(\n where: {\n deleted_at: { _is_null: true }\n is_active: { _eq: 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 }\n id\n }\n }\n";
4
4
  export declare const querySchoolYear: import("@apollo/client").DocumentNode;
5
5
  export declare const getActiveAndNextSchoolYear: import("@apollo/client").DocumentNode;
6
6
  export declare const getTuitionDebtRecordByUserCode: import("@apollo/client").DocumentNode;
7
- export declare const querySearchGlobal: import("@apollo/client").DocumentNode;
8
- export declare const queryGetProfile: import("@apollo/client").DocumentNode;
7
+ export declare const querySearchGlobal = "\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
+ export declare const queryGetProfile = "\n query QueryGetProfile($user_id: Int!, $school_id: Int!) {\n profile_staff(\n where: {\n staff_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true }, school_id: { _eq: $school_id } }\n }\n ) {\n is_quit_job\n }\n profile_teacher(\n where: {\n teacher_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n is_quit_job\n }\n }\n";
@@ -1,13 +1,13 @@
1
1
  import { __makeTemplateObject } from "tslib";
2
2
  import { gql } from '@apollo/client';
3
3
  import { KEY_QUERY_SETTING } from '../utils/constants';
4
- export var GET_SCHOOL = gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\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: \"", "\" } }) {\n value_setting\n key_setting\n }\n }\n"], ["\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: \"", "\" } }) {\n value_setting\n key_setting\n }\n }\n"])), KEY_QUERY_SETTING);
5
- export var getCampaignName = gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query MyQuery($id: Int!) {\n admissions_campaigns_by_pk(id: $id) {\n id\n campaign_name\n }\n }\n"], ["\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 = gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\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 }\n }\n permission_role(\n where: {\n deleted_at: { _is_null: true }\n is_active: { _eq: 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 }\n id\n }\n }\n"], ["\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 }\n }\n permission_role(\n where: {\n deleted_at: { _is_null: true }\n is_active: { _eq: 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 }\n id\n }\n }\n"])));
7
- export var querySchoolYear = gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query MyQuery($school_id: Int!, $gte: timestamptz!, $lte: timestamptz!) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n school_course: { school_id: { _eq: $school_id } }\n end_at: { _gte: $gte }\n start_at: { _lte: $lte }\n }\n ) {\n id\n name\n code\n start_at\n end_at\n school_terms(where: { deleted_at: { _is_null: true } }) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n current_term: school_terms(\n where: { deleted_at: { _is_null: true }, end_at: { _gte: $gte }, start_at: { _lte: $lte } }\n ) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n }\n }\n"], ["\n query MyQuery($school_id: Int!, $gte: timestamptz!, $lte: timestamptz!) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n school_course: { school_id: { _eq: $school_id } }\n end_at: { _gte: $gte }\n start_at: { _lte: $lte }\n }\n ) {\n id\n name\n code\n start_at\n end_at\n school_terms(where: { deleted_at: { _is_null: true } }) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n current_term: school_terms(\n where: { deleted_at: { _is_null: true }, end_at: { _gte: $gte }, start_at: { _lte: $lte } }\n ) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n }\n }\n"])));
8
- export var getActiveAndNextSchoolYear = gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n query GetActiveAndNextSchoolYear($startAt: timestamptz, $endAt: timestamptz, $school_id: Int) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n start_at: { _lte: $startAt }\n end_at: { _gte: $endAt }\n school_course: { school_id: { _eq: $school_id } }\n }\n order_by: { id: asc }\n ) {\n code\n end_at\n id\n name\n start_at\n school_terms(where: { deleted_at: { _is_null: true } }, order_by: { id: asc }) {\n name\n code\n id\n }\n school_course {\n course_name\n id\n code\n }\n }\n }\n"], ["\n query GetActiveAndNextSchoolYear($startAt: timestamptz, $endAt: timestamptz, $school_id: Int) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n start_at: { _lte: $startAt }\n end_at: { _gte: $endAt }\n school_course: { school_id: { _eq: $school_id } }\n }\n order_by: { id: asc }\n ) {\n code\n end_at\n id\n name\n start_at\n school_terms(where: { deleted_at: { _is_null: true } }, order_by: { id: asc }) {\n name\n code\n id\n }\n school_course {\n course_name\n id\n code\n }\n }\n }\n"])));
9
- export var getTuitionDebtRecordByUserCode = gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n query GetTuitionDebtRecordByUserCode($user_code: String, $school_year_id: Int, $school_id: Int) {\n tuition_fee_debt_record(\n order_by: { school_term_id: 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 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: { month_id: 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 status\n school_month {\n name\n }\n user_code\n }\n }\n"], ["\n query GetTuitionDebtRecordByUserCode($user_code: String, $school_year_id: Int, $school_id: Int) {\n tuition_fee_debt_record(\n order_by: { school_term_id: 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 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: { month_id: 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 status\n school_month {\n name\n }\n user_code\n }\n }\n"])));
10
- export var querySearchGlobal = gql(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\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"], ["\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"])));
11
- export var queryGetProfile = gql(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n query QueryGetProfile($user_id: Int!, $school_id: Int!) {\n profile_staff(\n where: {\n staff_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true }, school_id: { _eq: $school_id } }\n }\n ) {\n is_quit_job\n }\n profile_teacher(\n where: {\n teacher_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n is_quit_job\n }\n }\n"], ["\n query QueryGetProfile($user_id: Int!, $school_id: Int!) {\n profile_staff(\n where: {\n staff_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true }, school_id: { _eq: $school_id } }\n }\n ) {\n is_quit_job\n }\n profile_teacher(\n where: {\n teacher_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n is_quit_job\n }\n }\n"])));
12
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
4
+ export var GET_SCHOOL = "\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");
5
+ export var getCampaignName = gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query MyQuery($id: Int!) {\n admissions_campaigns_by_pk(id: $id) {\n id\n campaign_name\n }\n }\n"], ["\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 = "\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 }\n }\n permission_role(\n where: {\n deleted_at: { _is_null: true }\n is_active: { _eq: 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 }\n id\n }\n }\n";
7
+ export var querySchoolYear = gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query MyQuery($school_id: Int!, $gte: timestamptz!, $lte: timestamptz!) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n school_course: { school_id: { _eq: $school_id } }\n end_at: { _gte: $gte }\n start_at: { _lte: $lte }\n }\n ) {\n id\n name\n code\n start_at\n end_at\n school_terms(where: { deleted_at: { _is_null: true } }) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n current_term: school_terms(\n where: { deleted_at: { _is_null: true }, end_at: { _gte: $gte }, start_at: { _lte: $lte } }\n ) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n }\n }\n"], ["\n query MyQuery($school_id: Int!, $gte: timestamptz!, $lte: timestamptz!) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n school_course: { school_id: { _eq: $school_id } }\n end_at: { _gte: $gte }\n start_at: { _lte: $lte }\n }\n ) {\n id\n name\n code\n start_at\n end_at\n school_terms(where: { deleted_at: { _is_null: true } }) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n current_term: school_terms(\n where: { deleted_at: { _is_null: true }, end_at: { _gte: $gte }, start_at: { _lte: $lte } }\n ) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n }\n }\n"])));
8
+ export var getActiveAndNextSchoolYear = gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query GetActiveAndNextSchoolYear($startAt: timestamptz, $endAt: timestamptz, $school_id: Int) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n start_at: { _lte: $startAt }\n end_at: { _gte: $endAt }\n school_course: { school_id: { _eq: $school_id } }\n }\n order_by: { id: asc }\n ) {\n code\n end_at\n id\n name\n start_at\n school_terms(where: { deleted_at: { _is_null: true } }, order_by: { id: asc }) {\n name\n code\n id\n }\n school_course {\n course_name\n id\n code\n }\n }\n }\n"], ["\n query GetActiveAndNextSchoolYear($startAt: timestamptz, $endAt: timestamptz, $school_id: Int) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n start_at: { _lte: $startAt }\n end_at: { _gte: $endAt }\n school_course: { school_id: { _eq: $school_id } }\n }\n order_by: { id: asc }\n ) {\n code\n end_at\n id\n name\n start_at\n school_terms(where: { deleted_at: { _is_null: true } }, order_by: { id: asc }) {\n name\n code\n id\n }\n school_course {\n course_name\n id\n code\n }\n }\n }\n"])));
9
+ export var getTuitionDebtRecordByUserCode = gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query GetTuitionDebtRecordByUserCode($user_code: String, $school_year_id: Int, $school_id: Int) {\n tuition_fee_debt_record(\n order_by: { school_term_id: 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 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: { month_id: 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 status\n school_month {\n name\n }\n user_code\n }\n }\n"], ["\n query GetTuitionDebtRecordByUserCode($user_code: String, $school_year_id: Int, $school_id: Int) {\n tuition_fee_debt_record(\n order_by: { school_term_id: 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 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: { month_id: 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 status\n school_month {\n name\n }\n user_code\n }\n }\n"])));
10
+ export var querySearchGlobal = "\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";
11
+ export var queryGetProfile = "\n query QueryGetProfile($user_id: Int!, $school_id: Int!) {\n profile_staff(\n where: {\n staff_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true }, school_id: { _eq: $school_id } }\n }\n ) {\n is_quit_job\n }\n profile_teacher(\n where: {\n teacher_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n is_quit_job\n }\n }\n";
12
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
13
13
  //# sourceMappingURL=gql.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../src/query/gql.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtD,MAAM,CAAC,IAAM,UAAU,GAAG,GAAG,gnBAAA,0eAcoD,EAAiB,iEAKjG,KALgF,iBAAiB,CAKjG,CAAA;AAED,MAAM,CAAC,IAAM,eAAe,GAAG,GAAG,2LAAA,wHAOjC,IAAA,CAAA;AACD,MAAM,CAAC,IAAM,0BAA0B,GAAG,GAAG,g1BAAA,6wBAgC5C,IAAA,CAAA;AACD,MAAM,CAAC,IAAM,eAAe,GAAG,GAAG,61BAAA,0xBAmCjC,IAAA,CAAA;AACD,MAAM,CAAC,IAAM,0BAA0B,GAAG,GAAG,0sBAAA,uoBA4B5C,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,8BAA8B,GAAG,GAAG,80EAAA,2wEAsFhD,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,iBAAiB,GAAG,GAAG,0rFAAA,unFAoGnC,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,eAAe,GAAG,GAAG,2mBAAA,wiBAqBjC,IAAA,CAAA"}
1
+ {"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../src/query/gql.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtD,MAAM,CAAC,IAAM,UAAU,GAAG,kfAcuD,iBAAiB,oEAKjG,CAAA;AAED,MAAM,CAAC,IAAM,eAAe,GAAG,GAAG,2LAAA,wHAOjC,IAAA,CAAA;AACD,MAAM,CAAC,IAAM,0BAA0B,GAAG,6wBAgCzC,CAAA;AACD,MAAM,CAAC,IAAM,eAAe,GAAG,GAAG,61BAAA,0xBAmCjC,IAAA,CAAA;AACD,MAAM,CAAC,IAAM,0BAA0B,GAAG,GAAG,0sBAAA,uoBA4B5C,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,8BAA8B,GAAG,GAAG,80EAAA,2wEAsFhD,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,iBAAiB,GAAG,unFAoGhC,CAAA;AAED,MAAM,CAAC,IAAM,eAAe,GAAG,wiBAqB9B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phx-uikit",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "description": "PHX REACT",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",