phx-node 1.0.125 → 1.0.126

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,5 +1,5 @@
1
1
  export declare const querySchoolYear: (isAllTerm: boolean) => string;
2
2
  export declare const LIST_ACTIVE_SCHOOL_YEAR_QUERY = "\n query ListActiveSchoolYear {\n school_year(\n where: {\n start_at: { _lte: \"now\" }\n end_at: { _gte: \"now\" }\n deleted_at: { _is_null: true }\n }\n ) {\n id\n start_at\n end_at\n code\n name\n school_course {\n school {\n id\n programs(where: { deleted_at: { _is_null: true } }) {\n id\n code\n }\n educational_levels(where: { deleted_at: { _is_null: true } }) {\n id\n code\n }\n }\n }\n school_terms(\n where: { deleted_at: { _is_null: true } }\n order_by: { start_at: asc }\n ) {\n id\n start_at\n end_at\n coefficient\n code\n name\n }\n school_terms_aggregate(where: { deleted_at: { _is_null: true } }) {\n aggregate {\n count\n }\n }\n }\n }\n";
3
3
  export declare const ACTIVE_SCHOOL_YEAR_AND_NEXT_SCHOOL_YEAR_QUERY = "\n query ActiveAndNextSchoolYear(\n $startAt: timestamptz!\n $endAt: timestamptz!\n $school_id: Int!\n ) {\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_course {\n course_name\n id\n code\n }\n }\n }\n";
4
- export declare const LIST_ACTIVE_SCHOOL_YEAR_AND_NEXT_SCHOOL_YEAR_QUERY = "\nquery GetActiveAndNextSchoolYear($startAt: timestamptz, $endAt: timestamptz) {\n school_year(where: {deleted_at: {_is_null: true}, start_at: {_lte: $startAt}, end_at: {_gte: $endAt}}, order_by: {id: asc}) {\n id\n start_at\n end_at\n school_course {\n school {\n id\n programs(where: {deleted_at: {_is_null: true}}) {\n id\n code\n }\n educational_levels(where: {deleted_at: {_is_null: true}}) {\n id\n code\n }\n }\n }\n school_terms(where: {deleted_at: {_is_null: true}}, order_by: {start_at: asc}) {\n id\n start_at\n end_at\n coefficient\n }\n school_terms_aggregate(where: {deleted_at: {_is_null: true}}) {\n aggregate {\n count\n }\n }\n }\n}\n";
4
+ export declare const LIST_ACTIVE_SCHOOL_YEAR_AND_NEXT_SCHOOL_YEAR_QUERY = "\nquery GetActiveAndNextSchoolYear($startAt: timestamptz, $endAt: timestamptz) {\n school_year(where: {deleted_at: {_is_null: true}, start_at: {_lte: $startAt}, end_at: {_gte: $endAt}}, order_by: {id: asc}) {\n id\n start_at\n end_at\n name\n school_course {\n school {\n id\n programs(where: {deleted_at: {_is_null: true}}) {\n id\n code\n }\n educational_levels(where: {deleted_at: {_is_null: true}}) {\n id\n code\n }\n }\n }\n school_terms(where: {deleted_at: {_is_null: true}}, order_by: {start_at: asc}) {\n id\n start_at\n end_at\n coefficient\n }\n school_terms_aggregate(where: {deleted_at: {_is_null: true}}) {\n aggregate {\n count\n }\n }\n }\n}\n";
5
5
  export declare const LIST_NEXT_SCHOOL_YEAR_QUERY = "\n query ListNextSchoolYear($nextYearDate: timestamptz!) {\n school_year(\n where: {\n start_at: { _lte: $nextYearDate }\n end_at: { _gte: $nextYearDate }\n deleted_at: { _is_null: true }\n }\n ) {\n id\n start_at\n end_at\n school_course {\n school {\n id\n programs(where: { deleted_at: { _is_null: true } }) {\n id\n code\n }\n educational_levels(where: { deleted_at: { _is_null: true } }) {\n id\n code\n }\n }\n }\n school_terms(\n where: { deleted_at: { _is_null: true } }\n order_by: { start_at: asc }\n ) {\n id\n start_at\n end_at\n coefficient\n }\n school_terms_aggregate(where: { deleted_at: { _is_null: true } }) {\n aggregate {\n count\n }\n }\n }\n }\n";
@@ -108,6 +108,7 @@ query GetActiveAndNextSchoolYear($startAt: timestamptz, $endAt: timestamptz) {
108
108
  id
109
109
  start_at
110
110
  end_at
111
+ name
111
112
  school_course {
112
113
  school {
113
114
  id
@@ -1 +1 @@
1
- {"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/query/query.ts"],"names":[],"mappings":";;;AAAO,MAAM,eAAe,GAAG,CAAC,SAAkB,EAAE,EAAE,CAAC;;;;;;;;;;;;;;;8DAgB/C,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,oDACnB;;;;;;;;;;CAUL,CAAC;AA3BW,QAAA,eAAe,mBA2B1B;AAGW,QAAA,6BAA6B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6C5C,CAAC;AAGW,QAAA,6CAA6C,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B5D,CAAC;AAEW,QAAA,kDAAkD,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCjE,CAAC;AAGW,QAAA,2BAA2B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC1C,CAAC"}
1
+ {"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/query/query.ts"],"names":[],"mappings":";;;AAAO,MAAM,eAAe,GAAG,CAAC,SAAkB,EAAE,EAAE,CAAC;;;;;;;;;;;;;;;8DAgB/C,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,oDACnB;;;;;;;;;;CAUL,CAAC;AA3BW,QAAA,eAAe,mBA2B1B;AAGW,QAAA,6BAA6B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6C5C,CAAC;AAGW,QAAA,6CAA6C,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B5D,CAAC;AAEW,QAAA,kDAAkD,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCjE,CAAC;AAGW,QAAA,2BAA2B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC1C,CAAC"}