phx-react 1.3.735 → 1.3.737
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/components/Func/clientMutationDataCenterV3.js +5 -3
- package/dist/cjs/components/Func/clientMutationDataCenterV3.js.map +1 -1
- package/dist/cjs/components/Func/clientQueryDataCenterV3.js +5 -3
- package/dist/cjs/components/Func/clientQueryDataCenterV3.js.map +1 -1
- 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/esm/components/Func/clientMutationDataCenterV3.js +5 -3
- package/dist/esm/components/Func/clientMutationDataCenterV3.js.map +1 -1
- package/dist/esm/components/Func/clientQueryDataCenterV3.js +5 -3
- package/dist/esm/components/Func/clientQueryDataCenterV3.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/package.json +1 -1
|
@@ -21,12 +21,14 @@ function PHXClientMutationDataCenterV3(_a) {
|
|
|
21
21
|
return [4 /*yield*/, axios_1["default"].post("".concat(urlApiGateway, "/mutation"), {
|
|
22
22
|
source: 'dashboard',
|
|
23
23
|
query: query,
|
|
24
|
-
variables: variables
|
|
24
|
+
variables: variables,
|
|
25
|
+
headers: {
|
|
26
|
+
hostname: 'data-center'
|
|
27
|
+
}
|
|
25
28
|
}, {
|
|
26
29
|
headers: {
|
|
27
30
|
'Content-Type': 'application/json',
|
|
28
|
-
Authorization: 'Bearer' + ' ' + authTokenInfo.token
|
|
29
|
-
hostname: 'data-center'
|
|
31
|
+
Authorization: 'Bearer' + ' ' + authTokenInfo.token
|
|
30
32
|
}
|
|
31
33
|
})];
|
|
32
34
|
case 2:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientMutationDataCenterV3.js","sourceRoot":"","sources":["../../../../src/components/Func/clientMutationDataCenterV3.ts"],"names":[],"mappings":";;;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AAa,cAAW,EAC3B;4BACE,MAAM,EAAE,WAAW;4BACnB,KAAK,EAAE,KAAK;4BACZ,SAAS,WAAA;4BACT,OAAO,EAAE;gCACP,QAAQ,EAAE,aAAa;6BACxB;yBACF,EACD;4BACE,OAAO,EAAE;gCACP,cAAc,EAAE,kBAAkB;gCAClC,aAAa,EAAE,QAAQ,GAAG,GAAG,GAAG,aAAa,CAAC,KAAK;6BACpD;yBACF,CACF,EAAA;;oBAhBD,cAAc,GAAG,SAgBhB,CAAA;;;;oBAED,MAAM,IAAI,KAAK,CAAC,4BAA4B,GAAG,OAAK,CAAC,OAAO,CAAC,CAAA;;oBAGzD,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,IAAI,OAAO,CAAA,EAAzB,wBAAyB;oBAC3B,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,cAAc,EAAA;;;;CACtB;AA5CD,mDA4CC"}
|
|
@@ -21,12 +21,14 @@ function PHXClientQueryDataCenterV3(_a) {
|
|
|
21
21
|
return [4 /*yield*/, axios_1["default"].post("".concat(urlApiGateway, "/query"), {
|
|
22
22
|
source: 'dashboard',
|
|
23
23
|
query: query,
|
|
24
|
-
variables: variables
|
|
24
|
+
variables: variables,
|
|
25
|
+
headers: {
|
|
26
|
+
hostname: 'data-center'
|
|
27
|
+
}
|
|
25
28
|
}, {
|
|
26
29
|
headers: {
|
|
27
30
|
'Content-Type': 'application/json',
|
|
28
|
-
Authorization: 'Bearer' + ' ' + authTokenInfo.token
|
|
29
|
-
hostname: 'data-center'
|
|
31
|
+
Authorization: 'Bearer' + ' ' + authTokenInfo.token
|
|
30
32
|
}
|
|
31
33
|
})];
|
|
32
34
|
case 2:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientQueryDataCenterV3.js","sourceRoot":"","sources":["../../../../src/components/Func/clientQueryDataCenterV3.ts"],"names":[],"mappings":";;;AAAA,yDAA8C;AAC9C,wDAAyB;AACzB,gEAA+B;AAC/B,mDAAkD;AAElD,SAA8B,0BAA0B,CAAC,EAQxD;QAPC,KAAK,WAAA,EACL,SAAS,eAAA,EACT,eAAc,EAAd,OAAO,mBAAG,IAAI,KAAA;;;;;;oBAMR,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAE7B,aAAa,GAAG,IAAA,wBAAM,EAAC,yBAAyB,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAA;oBACtF,aAAa,GAAG,sBAAO,CAAC,GAAG,CAAC,sBAAU,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,sBAAO,CAAC,GAAG,CAAC,sBAAU,CAAW,CAAC,CAAA;;;;oBAG9E,qBAAM,kBAAK,CAAC,IAAI,CAC5B,UAAG,aAAa,WAAQ,EACxB;4BACE,MAAM,EAAE,WAAW;4BACnB,KAAK,EAAE,KAAK;4BACZ,SAAS,WAAA;
|
|
1
|
+
{"version":3,"file":"clientQueryDataCenterV3.js","sourceRoot":"","sources":["../../../../src/components/Func/clientQueryDataCenterV3.ts"],"names":[],"mappings":";;;AAAA,yDAA8C;AAC9C,wDAAyB;AACzB,gEAA+B;AAC/B,mDAAkD;AAElD,SAA8B,0BAA0B,CAAC,EAQxD;QAPC,KAAK,WAAA,EACL,SAAS,eAAA,EACT,eAAc,EAAd,OAAO,mBAAG,IAAI,KAAA;;;;;;oBAMR,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAE7B,aAAa,GAAG,IAAA,wBAAM,EAAC,yBAAyB,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAA;oBACtF,aAAa,GAAG,sBAAO,CAAC,GAAG,CAAC,sBAAU,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,sBAAO,CAAC,GAAG,CAAC,sBAAU,CAAW,CAAC,CAAA;;;;oBAG9E,qBAAM,kBAAK,CAAC,IAAI,CAC5B,UAAG,aAAa,WAAQ,EACxB;4BACE,MAAM,EAAE,WAAW;4BACnB,KAAK,EAAE,KAAK;4BACZ,SAAS,WAAA;4BACT,OAAO,EAAE;gCACP,QAAQ,EAAE,aAAa;6BACxB;yBACF,EACD;4BACE,OAAO,EAAE;gCACP,cAAc,EAAE,kBAAkB;gCAClC,aAAa,EAAE,QAAQ,GAAG,GAAG,GAAG,aAAa,CAAC,KAAK;6BACpD;yBACF,CACF,EAAA;;oBAhBD,WAAW,GAAG,SAgBb,CAAA;;;;oBAED,MAAM,IAAI,KAAK,CAAC,4BAA4B,GAAG,OAAK,CAAC,OAAO,CAAC,CAAA;;oBAGzD,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,IAAI,OAAO,CAAA,EAAzB,wBAAyB;oBAC3B,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,WAAW,EAAA;;;;CACnB;AA5CD,gDA4CC"}
|
|
@@ -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_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";
|
|
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 }\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";
|
|
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 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: string;
|
|
7
7
|
export declare const queryGetProfileV3 = "\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";
|
package/dist/cjs/query/index.js
CHANGED
|
@@ -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_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";
|
|
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 }\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";
|
|
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 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.queryGetProfileV3 = "\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
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,2wEAsF/C,CAAA;AAEY,QAAA,mBAAmB,GAAG,unFAoGlC,CAAA;AAEY,QAAA,iBAAiB,GAAG,wHAOhC,CAAA;AAEY,QAAA,6BAA6B,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,2wEAsF/C,CAAA;AAEY,QAAA,mBAAmB,GAAG,unFAoGlC,CAAA;AAEY,QAAA,iBAAiB,GAAG,wHAOhC,CAAA;AAEY,QAAA,6BAA6B,GAAG,mzBAkC5C,CAAA;AAEY,QAAA,aAAa,GAAG,kfAcoD,6BAAiB,oEAKjG,CAAA;AAEY,QAAA,iBAAiB,GAAG,wiBAqBhC,CAAA"}
|
|
@@ -19,12 +19,14 @@ export default function PHXClientMutationDataCenterV3(_a) {
|
|
|
19
19
|
return [4 /*yield*/, axios.post("".concat(urlApiGateway, "/mutation"), {
|
|
20
20
|
source: 'dashboard',
|
|
21
21
|
query: query,
|
|
22
|
-
variables: variables
|
|
22
|
+
variables: variables,
|
|
23
|
+
headers: {
|
|
24
|
+
hostname: 'data-center'
|
|
25
|
+
}
|
|
23
26
|
}, {
|
|
24
27
|
headers: {
|
|
25
28
|
'Content-Type': 'application/json',
|
|
26
|
-
Authorization: 'Bearer' + ' ' + authTokenInfo.token
|
|
27
|
-
hostname: 'data-center'
|
|
29
|
+
Authorization: 'Bearer' + ' ' + authTokenInfo.token
|
|
28
30
|
}
|
|
29
31
|
})];
|
|
30
32
|
case 2:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientMutationDataCenterV3.js","sourceRoot":"","sources":["../../../../src/components/Func/clientMutationDataCenterV3.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,OAAO,MAAM,WAAW,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I,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAW,CAAC,CAAA;;;;oBAG3E,qBAAM,KAAK,CAAC,IAAI,CAC/B,UAAG,aAAa,cAAW,EAC3B;4BACE,MAAM,EAAE,WAAW;4BACnB,KAAK,EAAE,KAAK;4BACZ,SAAS,WAAA;4BACT,OAAO,EAAE;gCACP,QAAQ,EAAE,aAAa;6BACxB;yBACF,EACD;4BACE,OAAO,EAAE;gCACP,cAAc,EAAE,kBAAkB;gCAClC,aAAa,EAAE,QAAQ,GAAG,GAAG,GAAG,aAAa,CAAC,KAAK;6BACpD;yBACF,CACF,EAAA;;oBAhBD,cAAc,GAAG,SAgBhB,CAAA;;;;oBAED,MAAM,IAAI,KAAK,CAAC,4BAA4B,GAAG,OAAK,CAAC,OAAO,CAAC,CAAA;;oBAGzD,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,IAAI,OAAO,CAAA,EAAzB,wBAAyB;oBAC3B,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,cAAc,EAAA;;;;CACtB"}
|
|
@@ -19,12 +19,14 @@ export default function PHXClientQueryDataCenterV3(_a) {
|
|
|
19
19
|
return [4 /*yield*/, axios.post("".concat(urlApiGateway, "/query"), {
|
|
20
20
|
source: 'dashboard',
|
|
21
21
|
query: query,
|
|
22
|
-
variables: variables
|
|
22
|
+
variables: variables,
|
|
23
|
+
headers: {
|
|
24
|
+
hostname: 'data-center'
|
|
25
|
+
}
|
|
23
26
|
}, {
|
|
24
27
|
headers: {
|
|
25
28
|
'Content-Type': 'application/json',
|
|
26
|
-
Authorization: 'Bearer' + ' ' + authTokenInfo.token
|
|
27
|
-
hostname: 'data-center'
|
|
29
|
+
Authorization: 'Bearer' + ' ' + authTokenInfo.token
|
|
28
30
|
}
|
|
29
31
|
})];
|
|
30
32
|
case 2:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientQueryDataCenterV3.js","sourceRoot":"","sources":["../../../../src/components/Func/clientQueryDataCenterV3.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAElD,MAAM,CAAC,OAAO,UAAgB,0BAA0B,CAAC,EAQxD;QAPC,KAAK,WAAA,EACL,SAAS,eAAA,EACT,eAAc,EAAd,OAAO,mBAAG,IAAI,KAAA;;;;;;oBAMR,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAE7B,aAAa,GAAG,MAAM,CAAC,yBAAyB,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAA;oBACtF,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAW,CAAC,CAAA;;;;oBAG9E,qBAAM,KAAK,CAAC,IAAI,CAC5B,UAAG,aAAa,WAAQ,EACxB;4BACE,MAAM,EAAE,WAAW;4BACnB,KAAK,EAAE,KAAK;4BACZ,SAAS,WAAA;
|
|
1
|
+
{"version":3,"file":"clientQueryDataCenterV3.js","sourceRoot":"","sources":["../../../../src/components/Func/clientQueryDataCenterV3.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,OAAO,MAAM,WAA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CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,WAAW,EAAA;;;;CACnB"}
|
|
@@ -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_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";
|
|
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 }\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";
|
|
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 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: string;
|
|
7
7
|
export declare const queryGetProfileV3 = "\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";
|
package/dist/esm/query/index.js
CHANGED
|
@@ -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_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";
|
|
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 }\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";
|
|
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 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 queryGetProfileV3 = "\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";
|
|
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,2wEAsF/C,CAAA;AAED,MAAM,CAAC,IAAM,mBAAmB,GAAG,unFAoGlC,CAAA;AAED,MAAM,CAAC,IAAM,iBAAiB,GAAG,wHAOhC,CAAA;AAED,MAAM,CAAC,IAAM,6BAA6B,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,2wEAsF/C,CAAA;AAED,MAAM,CAAC,IAAM,mBAAmB,GAAG,unFAoGlC,CAAA;AAED,MAAM,CAAC,IAAM,iBAAiB,GAAG,wHAOhC,CAAA;AAED,MAAM,CAAC,IAAM,6BAA6B,GAAG,mzBAkC5C,CAAA;AAED,MAAM,CAAC,IAAM,aAAa,GAAG,kfAcoD,iBAAiB,oEAKjG,CAAA;AAED,MAAM,CAAC,IAAM,iBAAiB,GAAG,wiBAqBhC,CAAA"}
|