phx-react 1.3.983 → 1.3.985
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/school-year-v3/index.d.ts +2 -2
- package/dist/cjs/query/school-year-v3/index.js +2 -2
- package/dist/cjs/query/school-year-v3/index.js.map +1 -1
- package/dist/cjs/utils/types/types.d.ts +8 -1
- package/dist/esm/query/school-year-v3/index.d.ts +2 -2
- package/dist/esm/query/school-year-v3/index.js +2 -2
- package/dist/esm/query/school-year-v3/index.js.map +1 -1
- package/dist/esm/utils/types/types.d.ts +8 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
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(where: {deleted_at: {_is_null: true}}) {\n id\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: { 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";
|
|
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: { 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 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,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
3
|
exports.querySchoolYearHocvuV3 = exports.getActiveAndNextSchoolYearV3 = exports.querySchoolYearV3 = void 0;
|
|
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(where: {deleted_at: {_is_null: true}}) {\n id\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: { 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";
|
|
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: { 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 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,
|
|
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,u1BAqC3C,CAAA;AAEY,QAAA,sBAAsB,GAAG,o0BAmCrC,CAAA"}
|
|
@@ -8,10 +8,17 @@ export interface ISchoolCourse {
|
|
|
8
8
|
code: string;
|
|
9
9
|
course_name: string;
|
|
10
10
|
}
|
|
11
|
+
export interface ISchoolMonth {
|
|
12
|
+
id: number;
|
|
13
|
+
name: string;
|
|
14
|
+
start_date: string;
|
|
15
|
+
end_date: string;
|
|
16
|
+
}
|
|
11
17
|
export interface ISchoolTerm {
|
|
12
18
|
id: number;
|
|
13
19
|
code: string;
|
|
14
20
|
name: string;
|
|
21
|
+
school_months: Array<ISchoolMonth>;
|
|
15
22
|
}
|
|
16
23
|
export interface ISchoolYear {
|
|
17
24
|
code: string;
|
|
@@ -20,7 +27,7 @@ export interface ISchoolYear {
|
|
|
20
27
|
name: string;
|
|
21
28
|
start_at: string;
|
|
22
29
|
school_course: ISchoolCourse;
|
|
23
|
-
school_terms: ISchoolTerm
|
|
30
|
+
school_terms: Array<ISchoolTerm>;
|
|
24
31
|
}
|
|
25
32
|
export type QueryOrPersistedId = {
|
|
26
33
|
query: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
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(where: {deleted_at: {_is_null: true}}) {\n id\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: { 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";
|
|
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: { 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 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
|
-
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(where: {deleted_at: {_is_null: true}}) {\n id\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: { 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";
|
|
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: { 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 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,
|
|
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,u1BAqC3C,CAAA;AAED,MAAM,CAAC,IAAM,sBAAsB,GAAG,o0BAmCrC,CAAA"}
|
|
@@ -8,10 +8,17 @@ export interface ISchoolCourse {
|
|
|
8
8
|
code: string;
|
|
9
9
|
course_name: string;
|
|
10
10
|
}
|
|
11
|
+
export interface ISchoolMonth {
|
|
12
|
+
id: number;
|
|
13
|
+
name: string;
|
|
14
|
+
start_date: string;
|
|
15
|
+
end_date: string;
|
|
16
|
+
}
|
|
11
17
|
export interface ISchoolTerm {
|
|
12
18
|
id: number;
|
|
13
19
|
code: string;
|
|
14
20
|
name: string;
|
|
21
|
+
school_months: Array<ISchoolMonth>;
|
|
15
22
|
}
|
|
16
23
|
export interface ISchoolYear {
|
|
17
24
|
code: string;
|
|
@@ -20,7 +27,7 @@ export interface ISchoolYear {
|
|
|
20
27
|
name: string;
|
|
21
28
|
start_at: string;
|
|
22
29
|
school_course: ISchoolCourse;
|
|
23
|
-
school_terms: ISchoolTerm
|
|
30
|
+
school_terms: Array<ISchoolTerm>;
|
|
24
31
|
}
|
|
25
32
|
export type QueryOrPersistedId = {
|
|
26
33
|
query: string;
|