phx-react 1.3.1026 → 1.3.1027
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/cjs/query/index.d.ts +1 -1
- package/dist/cjs/query/index.js +1 -1
- package/dist/cjs/query/index.js.map +1 -1
- package/dist/cjs/query/school-year-v3/index.d.ts +1 -1
- package/dist/cjs/query/school-year-v3/index.js +1 -1
- package/dist/cjs/query/school-year-v3/index.js.map +1 -1
- package/dist/esm/query/index.d.ts +1 -1
- package/dist/esm/query/index.js +1 -1
- package/dist/esm/query/index.js.map +1 -1
- package/dist/esm/query/school-year-v3/index.d.ts +1 -1
- package/dist/esm/query/school-year-v3/index.js +1 -1
- package/dist/esm/query/school-year-v3/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
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";
|
|
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: {
|
|
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
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";
|
package/dist/cjs/query/index.js
CHANGED
|
@@ -3,7 +3,7 @@ exports.__esModule = true;
|
|
|
3
3
|
exports.QUERY_GET_PROFILE_USER = exports.GET_SCHOOL_V3 = exports.GET_PERMISSION_DETAIL_USER_V3 = exports.getCampaignNameV3 = exports.querySearchGlobalV3 = exports.getTuitionDebtRecordByUserCodeV3 = exports.getUserInfo = void 0;
|
|
4
4
|
var constants_1 = require("../utils/constants");
|
|
5
5
|
exports.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";
|
|
6
|
-
exports.getTuitionDebtRecordByUserCodeV3 = "\n query GetTuitionDebtRecordByUserCode($user_code: String, $school_year_id: Int, $school_id: Int) {\n tuition_fee_debt_record(\n order_by: {
|
|
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
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";
|
|
@@ -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,
|
|
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,yjBA2BrC,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const querySchoolYearV3 = "\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 school_months(\n order_by: {start_date: asc}\n where: {deleted_at: {_is_null: true}}\n ) {\n id\n name\n start_date\n end_date\n }\n }\n }\n }\n";
|
|
2
|
-
export declare const getActiveAndNextSchoolYearV3 = "\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: {
|
|
2
|
+
export declare const getActiveAndNextSchoolYearV3 = "\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: { start_at: 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: { start_at: asc }) {\n name\n code\n id\n school_months(\n order_by: {start_date: asc}\n where: {deleted_at: {_is_null: true}}\n ) {\n id\n name\n start_date\n end_date\n }\n }\n school_course {\n course_name\n id\n code\n }\n }\n }\n";
|
|
3
3
|
export declare const querySchoolYearHocvuV3 = "\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 hoc_vu_start_at\n hoc_vu_end_at\n }\n current_term: school_terms(\n where: { deleted_at: { _is_null: true }, hoc_vu_end_at: { _gte: $gte }, hoc_vu_start_at: { _lte: $lte } }\n ) {\n id\n code\n name\n coefficient\n hoc_vu_start_at\n hoc_vu_end_at\n }\n }\n }\n";
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
exports.__esModule = true;
|
|
3
3
|
exports.querySchoolYearHocvuV3 = exports.getActiveAndNextSchoolYearV3 = exports.querySchoolYearV3 = void 0;
|
|
4
4
|
exports.querySchoolYearV3 = "\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 school_months(\n order_by: {start_date: asc}\n where: {deleted_at: {_is_null: true}}\n ) {\n id\n name\n start_date\n end_date\n }\n }\n }\n }\n";
|
|
5
|
-
exports.getActiveAndNextSchoolYearV3 = "\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: {
|
|
5
|
+
exports.getActiveAndNextSchoolYearV3 = "\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: { start_at: 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: { start_at: asc }) {\n name\n code\n id\n school_months(\n order_by: {start_date: asc}\n where: {deleted_at: {_is_null: true}}\n ) {\n id\n name\n start_date\n end_date\n }\n }\n school_course {\n course_name\n id\n code\n }\n }\n }\n";
|
|
6
6
|
exports.querySchoolYearHocvuV3 = "\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 hoc_vu_start_at\n hoc_vu_end_at\n }\n current_term: school_terms(\n where: { deleted_at: { _is_null: true }, hoc_vu_end_at: { _gte: $gte }, hoc_vu_start_at: { _lte: $lte } }\n ) {\n id\n code\n name\n coefficient\n hoc_vu_start_at\n hoc_vu_end_at\n }\n }\n }\n";
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/query/school-year-v3/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,0+BA4ChC,CAAA;AAEY,QAAA,4BAA4B,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/query/school-year-v3/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,0+BA4ChC,CAAA;AAEY,QAAA,4BAA4B,GAAG,m2BAqC3C,CAAA;AAEY,QAAA,sBAAsB,GAAG,o0BAmCrC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
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";
|
|
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: {
|
|
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
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";
|
package/dist/esm/query/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KEY_QUERY_SETTING } from '../utils/constants';
|
|
2
2
|
export var 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";
|
|
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: {
|
|
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
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";
|
|
@@ -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,
|
|
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,yjBA2BrC,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const querySchoolYearV3 = "\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 school_months(\n order_by: {start_date: asc}\n where: {deleted_at: {_is_null: true}}\n ) {\n id\n name\n start_date\n end_date\n }\n }\n }\n }\n";
|
|
2
|
-
export declare const getActiveAndNextSchoolYearV3 = "\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: {
|
|
2
|
+
export declare const getActiveAndNextSchoolYearV3 = "\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: { start_at: 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: { start_at: asc }) {\n name\n code\n id\n school_months(\n order_by: {start_date: asc}\n where: {deleted_at: {_is_null: true}}\n ) {\n id\n name\n start_date\n end_date\n }\n }\n school_course {\n course_name\n id\n code\n }\n }\n }\n";
|
|
3
3
|
export declare const querySchoolYearHocvuV3 = "\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 hoc_vu_start_at\n hoc_vu_end_at\n }\n current_term: school_terms(\n where: { deleted_at: { _is_null: true }, hoc_vu_end_at: { _gte: $gte }, hoc_vu_start_at: { _lte: $lte } }\n ) {\n id\n code\n name\n coefficient\n hoc_vu_start_at\n hoc_vu_end_at\n }\n }\n }\n";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export var querySchoolYearV3 = "\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 school_months(\n order_by: {start_date: asc}\n where: {deleted_at: {_is_null: true}}\n ) {\n id\n name\n start_date\n end_date\n }\n }\n }\n }\n";
|
|
2
|
-
export var getActiveAndNextSchoolYearV3 = "\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: {
|
|
2
|
+
export var getActiveAndNextSchoolYearV3 = "\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: { start_at: 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: { start_at: asc }) {\n name\n code\n id\n school_months(\n order_by: {start_date: asc}\n where: {deleted_at: {_is_null: true}}\n ) {\n id\n name\n start_date\n end_date\n }\n }\n school_course {\n course_name\n id\n code\n }\n }\n }\n";
|
|
3
3
|
export var querySchoolYearHocvuV3 = "\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 hoc_vu_start_at\n hoc_vu_end_at\n }\n current_term: school_terms(\n where: { deleted_at: { _is_null: true }, hoc_vu_end_at: { _gte: $gte }, hoc_vu_start_at: { _lte: $lte } }\n ) {\n id\n code\n name\n coefficient\n hoc_vu_start_at\n hoc_vu_end_at\n }\n }\n }\n";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/query/school-year-v3/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,iBAAiB,GAAG,0+BA4ChC,CAAA;AAED,MAAM,CAAC,IAAM,4BAA4B,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/query/school-year-v3/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,iBAAiB,GAAG,0+BA4ChC,CAAA;AAED,MAAM,CAAC,IAAM,4BAA4B,GAAG,m2BAqC3C,CAAA;AAED,MAAM,CAAC,IAAM,sBAAsB,GAAG,o0BAmCrC,CAAA"}
|