phx-node 1.0.162 → 1.0.164
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/lib/constant/index.d.ts +3 -0
- package/dist/lib/constant/index.js +6 -2
- package/dist/lib/constant/index.js.map +1 -1
- package/dist/module/school-year-system-v3/listActiveShoolYear.service.d.ts +7 -1
- package/dist/module/school-year-system-v3/listActiveShoolYear.service.js +30 -4
- package/dist/module/school-year-system-v3/listActiveShoolYear.service.js.map +1 -1
- package/dist/phx.module.d.ts +1 -1
- package/dist/query/query.d.ts +1 -0
- package/dist/query/query.js +46 -1
- package/dist/query/query.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -37,3 +37,6 @@ export declare const SETTING_KEY_EARLY_MUST_PAY_CONDITION_ALL = "DEFAULT";
|
|
|
37
37
|
export declare const SETTING_KEY_EARLY_MUST_PAY_CONDITION_TUITION = "BY_PROJECT_HP";
|
|
38
38
|
export declare const LIST_DAY_OF_WEEK: string[];
|
|
39
39
|
export declare const HEADER_KEY_REQUIRED_SCHOOL_ID = "x-strict-tenant";
|
|
40
|
+
export declare enum SCHEMA_GROUP {
|
|
41
|
+
SHARED = "core-shared"
|
|
42
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HEADER_KEY_REQUIRED_SCHOOL_ID = exports.LIST_DAY_OF_WEEK = exports.SETTING_KEY_EARLY_MUST_PAY_CONDITION_TUITION = exports.SETTING_KEY_EARLY_MUST_PAY_CONDITION_ALL = exports.SETTING_KEY_EARLY_MUST_PAY_CONDITION = exports.SETTING_KEY_EARLY_PROMOTION_CONDITION_TUITION = exports.SETTING_KEY_EARLY_PROMOTION_CONDITION_ALL = exports.SETTING_KEY_EARLY_PROMOTION_CONDITION = exports.NOTIFICATION_TYPE_IMPORTANT = exports.LIMIT_RESPONSE_LIST_NOTIFICATION = exports.SETTING_KEY_EARLY_PROMOTION_TUITION_ADJUSTMENT = exports.SETTING_KEY_EARLY_PROMOTION_TUITION_SERVICE = exports.SETTING_KEY_EARLY_PROMOTION_TUITION_ADMISSION_SERVICE = exports.SETTING_KEY_EARLY_PROMOTION_TUITION_ADMISSION = exports.SETTING_KEY_EARLY_PROMOTION_TUITION_SENIORITY = exports.SETTING_KEY_EARLY_PROMOTION_TUITION_SCHOLARSHIP = exports.SETTING_KEY_EARLY_PROMOTION_TUITION_POLICY = exports.SETTING_KEY_EARLY_PROMOTION = exports.SETTING_KEY_LIMIT_BY_SIBLING_BY_FIRST_CHILD = exports.SETTING_KEY_LIMIT_BY_SIBLING_DEFAULT = exports.SETTING_KEY_LIMIT_BY_SIBLING = exports.SETTING_PROMOTION_SERVICE_TYPE = exports.SETTING_PROMOTION_TUITION_TYPE = exports.DETAIL_PROMO_TYPE_ADMISSION_SERVICE = exports.DETAIL_PROMO_TYPE_ADMISSION_TUITION = exports.DETAIL_PROMO_TYPE_SERVICE = exports.DETAIL_PROMO_TYPE_TUITION_SCHOLARSHIP = exports.DETAIL_PROMO_TYPE_TUITION_POLICY = exports.FEE_TYPE_DESC = exports.FEE_TYPE_ASC = exports.CODE_TUITION = exports.CODE_EAT_PROJECT = exports.envProd = exports.ROLE_STUDENT_CODE = exports.STUDENT_STATUS_POTENTIAL = exports.STUDENT_STATUS_STUDYING = exports.STUDENT_STATUS_TRANSFER = exports.GRAPHQL_ENV_V2 = exports.GRAPHQL_ENV = void 0;
|
|
3
|
+
exports.SCHEMA_GROUP = exports.HEADER_KEY_REQUIRED_SCHOOL_ID = exports.LIST_DAY_OF_WEEK = exports.SETTING_KEY_EARLY_MUST_PAY_CONDITION_TUITION = exports.SETTING_KEY_EARLY_MUST_PAY_CONDITION_ALL = exports.SETTING_KEY_EARLY_MUST_PAY_CONDITION = exports.SETTING_KEY_EARLY_PROMOTION_CONDITION_TUITION = exports.SETTING_KEY_EARLY_PROMOTION_CONDITION_ALL = exports.SETTING_KEY_EARLY_PROMOTION_CONDITION = exports.NOTIFICATION_TYPE_IMPORTANT = exports.LIMIT_RESPONSE_LIST_NOTIFICATION = exports.SETTING_KEY_EARLY_PROMOTION_TUITION_ADJUSTMENT = exports.SETTING_KEY_EARLY_PROMOTION_TUITION_SERVICE = exports.SETTING_KEY_EARLY_PROMOTION_TUITION_ADMISSION_SERVICE = exports.SETTING_KEY_EARLY_PROMOTION_TUITION_ADMISSION = exports.SETTING_KEY_EARLY_PROMOTION_TUITION_SENIORITY = exports.SETTING_KEY_EARLY_PROMOTION_TUITION_SCHOLARSHIP = exports.SETTING_KEY_EARLY_PROMOTION_TUITION_POLICY = exports.SETTING_KEY_EARLY_PROMOTION = exports.SETTING_KEY_LIMIT_BY_SIBLING_BY_FIRST_CHILD = exports.SETTING_KEY_LIMIT_BY_SIBLING_DEFAULT = exports.SETTING_KEY_LIMIT_BY_SIBLING = exports.SETTING_PROMOTION_SERVICE_TYPE = exports.SETTING_PROMOTION_TUITION_TYPE = exports.DETAIL_PROMO_TYPE_ADMISSION_SERVICE = exports.DETAIL_PROMO_TYPE_ADMISSION_TUITION = exports.DETAIL_PROMO_TYPE_SERVICE = exports.DETAIL_PROMO_TYPE_TUITION_SCHOLARSHIP = exports.DETAIL_PROMO_TYPE_TUITION_POLICY = exports.FEE_TYPE_DESC = exports.FEE_TYPE_ASC = exports.CODE_TUITION = exports.CODE_EAT_PROJECT = exports.envProd = exports.ROLE_STUDENT_CODE = exports.STUDENT_STATUS_POTENTIAL = exports.STUDENT_STATUS_STUDYING = exports.STUDENT_STATUS_TRANSFER = exports.GRAPHQL_ENV_V2 = exports.GRAPHQL_ENV = void 0;
|
|
4
4
|
exports.GRAPHQL_ENV = "GRAPHQL_ENV";
|
|
5
5
|
exports.GRAPHQL_ENV_V2 = "GRAPHQL_ENV_V2";
|
|
6
6
|
exports.STUDENT_STATUS_TRANSFER = 1;
|
|
@@ -47,5 +47,9 @@ exports.LIST_DAY_OF_WEEK = [
|
|
|
47
47
|
"Friday",
|
|
48
48
|
"Saturday",
|
|
49
49
|
];
|
|
50
|
-
exports.HEADER_KEY_REQUIRED_SCHOOL_ID =
|
|
50
|
+
exports.HEADER_KEY_REQUIRED_SCHOOL_ID = "x-strict-tenant";
|
|
51
|
+
var SCHEMA_GROUP;
|
|
52
|
+
(function (SCHEMA_GROUP) {
|
|
53
|
+
SCHEMA_GROUP["SHARED"] = "core-shared";
|
|
54
|
+
})(SCHEMA_GROUP || (exports.SCHEMA_GROUP = SCHEMA_GROUP = {}));
|
|
51
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/constant/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,aAAa,CAAC;AAC5B,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAGlC,QAAA,uBAAuB,GAAG,CAAC,CAAC;AAC5B,QAAA,uBAAuB,GAAG,CAAC,CAAC;AAC5B,QAAA,wBAAwB,GAAG,CAAC,CAAC;AAI7B,QAAA,iBAAiB,GAAG,IAAI,CAAC;AAEzB,QAAA,OAAO,GAAG,YAAY,CAAC;AAGvB,QAAA,gBAAgB,GAAG,IAAI,CAAC;AACxB,QAAA,YAAY,GAAG,IAAI,CAAC;AAGpB,QAAA,YAAY,GAAG,KAAK,CAAC;AACrB,QAAA,aAAa,GAAG,MAAM,CAAC;AAGvB,QAAA,gCAAgC,GAAG,gBAAgB,CAAC;AACpD,QAAA,qCAAqC,GAAG,qBAAqB,CAAC;AAC9D,QAAA,yBAAyB,GAAG,SAAS,CAAC;AACtC,QAAA,mCAAmC,GAAG,mBAAmB,CAAC;AAC1D,QAAA,mCAAmC,GAAG,mBAAmB,CAAC;AAG1D,QAAA,8BAA8B,GAAG,SAAS,CAAC;AAC3C,QAAA,8BAA8B,GAAG,SAAS,CAAC;AAG3C,QAAA,4BAA4B,GAAG,kBAAkB,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AAgB,GAAG;IAC9B,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,QAAQ;IACR,UAAU;CACX,CAAC;AACW,QAAA,6BAA6B,GAAG,iBAAiB,CAAC;AAE/D,IAAY,YAEX;AAFD,WAAY,YAAY;IACtB,sCAAsB,CAAA;AACxB,CAAC,EAFW,YAAY,4BAAZ,YAAY,QAEvB"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { PHXGrpcClientSystemServiceV6 } from "./../grpc-client/grpc-client-system-v6.service";
|
|
1
2
|
import { PHXGrpcClientSystemService } from "../grpc-client/grpc-client-system.service";
|
|
2
3
|
export declare class GetListActiveSchoolYearServiceSystemV3 {
|
|
3
4
|
private readonly grpcClientSystemService;
|
|
4
|
-
|
|
5
|
+
private readonly grpcClientSystemServiceV6;
|
|
6
|
+
constructor(grpcClientSystemService: PHXGrpcClientSystemService, grpcClientSystemServiceV6: PHXGrpcClientSystemServiceV6);
|
|
7
|
+
private logger;
|
|
5
8
|
private getSchoolYear;
|
|
6
9
|
get(hostname: string): Promise<any>;
|
|
10
|
+
getV2({ schoolId }: {
|
|
11
|
+
schoolId: number;
|
|
12
|
+
}): Promise<any>;
|
|
7
13
|
}
|
|
@@ -17,14 +17,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
17
17
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
+
var GetListActiveSchoolYearServiceSystemV3_1;
|
|
20
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
22
|
exports.GetListActiveSchoolYearServiceSystemV3 = void 0;
|
|
23
|
+
const grpc_client_system_v6_service_1 = require("./../grpc-client/grpc-client-system-v6.service");
|
|
22
24
|
const common_1 = require("@nestjs/common");
|
|
23
25
|
const grpc_client_system_service_1 = require("../grpc-client/grpc-client-system.service");
|
|
24
26
|
const query_1 = require("../../query/query");
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
const constant_1 = require("../../lib/constant");
|
|
28
|
+
let GetListActiveSchoolYearServiceSystemV3 = GetListActiveSchoolYearServiceSystemV3_1 = class GetListActiveSchoolYearServiceSystemV3 {
|
|
29
|
+
constructor(grpcClientSystemService, grpcClientSystemServiceV6) {
|
|
27
30
|
this.grpcClientSystemService = grpcClientSystemService;
|
|
31
|
+
this.grpcClientSystemServiceV6 = grpcClientSystemServiceV6;
|
|
32
|
+
this.logger = new common_1.Logger(GetListActiveSchoolYearServiceSystemV3_1.name);
|
|
28
33
|
}
|
|
29
34
|
getSchoolYear(hostname) {
|
|
30
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -50,10 +55,31 @@ let GetListActiveSchoolYearServiceSystemV3 = class GetListActiveSchoolYearServic
|
|
|
50
55
|
}
|
|
51
56
|
});
|
|
52
57
|
}
|
|
58
|
+
getV2(_a) {
|
|
59
|
+
return __awaiter(this, arguments, void 0, function* ({ schoolId }) {
|
|
60
|
+
try {
|
|
61
|
+
const { allCoreSharedPublicSchoolYears } = yield this.grpcClientSystemServiceV6.query({
|
|
62
|
+
query: query_1.LIST_ACTIVE_SCHOOL_YEAR_QUERY_V2,
|
|
63
|
+
variables: {
|
|
64
|
+
schoolId,
|
|
65
|
+
},
|
|
66
|
+
schemaGroup: constant_1.SCHEMA_GROUP.SHARED,
|
|
67
|
+
});
|
|
68
|
+
return allCoreSharedPublicSchoolYears;
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
this.logger.error(`error query get list current year v2: ${new Date()}-${error}`);
|
|
72
|
+
return {
|
|
73
|
+
nodes: [],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
53
78
|
};
|
|
54
79
|
exports.GetListActiveSchoolYearServiceSystemV3 = GetListActiveSchoolYearServiceSystemV3;
|
|
55
|
-
exports.GetListActiveSchoolYearServiceSystemV3 = GetListActiveSchoolYearServiceSystemV3 = __decorate([
|
|
80
|
+
exports.GetListActiveSchoolYearServiceSystemV3 = GetListActiveSchoolYearServiceSystemV3 = GetListActiveSchoolYearServiceSystemV3_1 = __decorate([
|
|
56
81
|
(0, common_1.Injectable)(),
|
|
57
|
-
__metadata("design:paramtypes", [grpc_client_system_service_1.PHXGrpcClientSystemService
|
|
82
|
+
__metadata("design:paramtypes", [grpc_client_system_service_1.PHXGrpcClientSystemService,
|
|
83
|
+
grpc_client_system_v6_service_1.PHXGrpcClientSystemServiceV6])
|
|
58
84
|
], GetListActiveSchoolYearServiceSystemV3);
|
|
59
85
|
//# sourceMappingURL=listActiveShoolYear.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listActiveShoolYear.service.js","sourceRoot":"","sources":["../../../src/module/school-year-system-v3/listActiveShoolYear.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"listActiveShoolYear.service.js","sourceRoot":"","sources":["../../../src/module/school-year-system-v3/listActiveShoolYear.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,kGAA8F;AAC9F,2CAAoD;AACpD,0FAAuF;AACvF,6CAGyB;AACzB,iDAAgD;AAMzC,IAAM,sCAAsC,8CAA5C,MAAM,sCAAsC;IACjD,YACmB,uBAAmD,EACnD,yBAAuD;QADvD,4BAAuB,GAAvB,uBAAuB,CAA4B;QACnD,8BAAyB,GAAzB,yBAAyB,CAA8B;QAGlE,WAAM,GAAG,IAAI,eAAM,CAAC,wCAAsC,CAAC,IAAI,CAAC,CAAC;IAFtE,CAAC;IAIU,aAAa,CAAC,QAAgB;;YAC1C,MAAM,GAAG,GAAQ,MAAM,IAAI,CAAC,uBAAuB,CAAC,KAAK,CAAC;gBACxD,KAAK,EAAE,qCAA6B;gBACpC,QAAQ;aACT,CAAC,CAAC;YACH,IAAI,GAAG;gBAAE,OAAO,GAAG,CAAC;;gBACf,OAAO,EAAE,CAAC;QACjB,CAAC;KAAA;IAEY,GAAG,CAAC,QAAgB;;YAC/B,IAAI,CAAC;gBACH,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;gBAC/C,OAAO,GAAG,CAAC;YACb,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,GAAG,CAAC,sCAAsC,IAAI,IAAI,EAAE,IAAI,KAAK,EAAE,CAAC,CAAC;gBACzE,OAAO;YACT,CAAC;QACH,CAAC;KAAA;IAEY,KAAK;6DAAC,EAAE,QAAQ,EAAwB;YACnD,IAAI,CAAC;gBACH,MAAM,EAAE,8BAA8B,EAAE,GACtC,MAAM,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAC;oBACzC,KAAK,EAAE,wCAAgC;oBACvC,SAAS,EAAE;wBACT,QAAQ;qBACT;oBACD,WAAW,EAAE,uBAAY,CAAC,MAAM;iBACjC,CAAC,CAAC;gBACL,OAAO,8BAA8B,CAAC;YACxC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,yCAAyC,IAAI,IAAI,EAAE,IAAI,KAAK,EAAE,CAC/D,CAAC;gBACF,OAAO;oBACL,KAAK,EAAE,EAAE;iBACV,CAAC;YACJ,CAAC;QACH,CAAC;KAAA;CACF,CAAA;AA/CY,wFAAsC;iDAAtC,sCAAsC;IADlD,IAAA,mBAAU,GAAE;qCAGiC,uDAA0B;QACxB,4DAA4B;GAH/D,sCAAsC,CA+ClD"}
|
package/dist/phx.module.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ import { PHXSchoolService } from "./module/school/school.service";
|
|
|
57
57
|
export declare class PHXNestModule {
|
|
58
58
|
static register(): {
|
|
59
59
|
module: typeof PHXNestModule;
|
|
60
|
-
providers: (typeof PHXGrpcClientSystemService | typeof PHXSettingFormulaPromotionV2 | typeof PHXConfigByHostNameService | typeof PHXTransactionContentService | typeof GetPrevCurrentNextYearsServiceSystem | typeof PHXGrpcClientService | typeof GetPrevCurrentNextYearsService | typeof PHXSchoolMonthClientService | typeof PHXSchoolMonthSystemService | typeof PHXSettingFormulaPromotion | typeof PHXContextStorageService | typeof GetSchoolYearServiceSystemV3 | typeof GetListNextSchoolYearServiceSystemV3 | typeof GetListActiveSchoolYearServiceSystemV3 | typeof GetListActiveSchoolYearAndNextYearServiceSystemV3 | typeof GetActiveSchoolYearAndNextYearServiceSystemV3 | typeof PHXStudentInfoServiceSystemV3 | typeof PHXHostnameService | typeof PHXEnvPublicService | typeof PHXGraphqlV2Service | typeof PHXCloneCronjob | typeof PHXGrpcClientSystemServiceV5 | typeof PHXCronjobManagerService | typeof PHXDevToolDataService | typeof PHXDateHelpers | typeof PHXGraphqlService | typeof PHXStudentInfoService | typeof ApiService | typeof GetSchoolYearService | typeof GetListActiveSchoolYearService | typeof GetActiveSchoolYearAndNextYearService | typeof GetListActiveSchoolYearAndNextYearService | typeof GetListNextSchoolYearService | typeof PHXStudentInfoServiceV3 | typeof GetActiveSchoolYearAndNextYearServiceV3 | typeof GetListActiveSchoolYearAndNextYearServiceV3 | typeof GetListActiveSchoolYearServiceV3 | typeof GetListNextSchoolYearServiceV3 | typeof GetSchoolYearServiceV3 | typeof PHXStatisticalNotificationByModuleService | typeof PHXNotificationByModuleService | typeof PHXUserDevicesService | typeof DepartmentManagerService | typeof GetActualWorkingHoursService | typeof PHXGetUserManagerByUserId | typeof PHXAllowExplanation | typeof PHXGetListDepartmentManager | typeof PHXSettingSiteService | typeof PHXPushNotificationService | typeof PHXGrpcClientServiceV5 | typeof PHXRedisService | typeof
|
|
60
|
+
providers: (typeof PHXGrpcClientSystemService | typeof PHXSettingFormulaPromotionV2 | typeof PHXConfigByHostNameService | typeof PHXTransactionContentService | typeof GetPrevCurrentNextYearsServiceSystem | typeof PHXGrpcClientService | typeof GetPrevCurrentNextYearsService | typeof PHXSchoolMonthClientService | typeof PHXSchoolMonthSystemService | typeof PHXSettingFormulaPromotion | typeof PHXContextStorageService | typeof GetSchoolYearServiceSystemV3 | typeof GetListNextSchoolYearServiceSystemV3 | typeof PHXGrpcClientSystemServiceV6 | typeof GetListActiveSchoolYearServiceSystemV3 | typeof GetListActiveSchoolYearAndNextYearServiceSystemV3 | typeof GetActiveSchoolYearAndNextYearServiceSystemV3 | typeof PHXStudentInfoServiceSystemV3 | typeof PHXHostnameService | typeof PHXEnvPublicService | typeof PHXGraphqlV2Service | typeof PHXCloneCronjob | typeof PHXGrpcClientSystemServiceV5 | typeof PHXCronjobManagerService | typeof PHXDevToolDataService | typeof PHXDateHelpers | typeof PHXGraphqlService | typeof PHXStudentInfoService | typeof ApiService | typeof GetSchoolYearService | typeof GetListActiveSchoolYearService | typeof GetActiveSchoolYearAndNextYearService | typeof GetListActiveSchoolYearAndNextYearService | typeof GetListNextSchoolYearService | typeof PHXStudentInfoServiceV3 | typeof GetActiveSchoolYearAndNextYearServiceV3 | typeof GetListActiveSchoolYearAndNextYearServiceV3 | typeof GetListActiveSchoolYearServiceV3 | typeof GetListNextSchoolYearServiceV3 | typeof GetSchoolYearServiceV3 | typeof PHXStatisticalNotificationByModuleService | typeof PHXNotificationByModuleService | typeof PHXUserDevicesService | typeof DepartmentManagerService | typeof GetActualWorkingHoursService | typeof PHXGetUserManagerByUserId | typeof PHXAllowExplanation | typeof PHXGetListDepartmentManager | typeof PHXSettingSiteService | typeof PHXPushNotificationService | typeof PHXGrpcClientServiceV5 | typeof PHXRedisService | typeof PHXGrpcClientServiceV6 | typeof PHXSchoolService)[];
|
|
61
61
|
};
|
|
62
62
|
static forRoot(graphQlConfig?: GraphQlEnv): DynamicModule;
|
|
63
63
|
static forRootV2(graphQlConfig?: GraphQlV2Env): DynamicModule;
|
package/dist/query/query.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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
|
+
export declare const LIST_ACTIVE_SCHOOL_YEAR_QUERY_V2 = "\n query MyQuery($schoolId: Int!) {\n allCoreSharedPublicSchoolYears(\n filter: {startAt: {lessThanOrEqualTo: \"now\"}, endAt: {greaterThanOrEqualTo: \"now\"}, deletedAt: {isNull: true}, schoolId: {equalTo: $schoolId}}\n ) {\n nodes {\n rowId\n startAt\n endAt\n code\n name\n coreSharedPublicSchoolCourseBySchoolCourseIdAndSchoolId {\n coreSharedPublicSchoolBySchoolId {\n rowId\n coreSharedPublicProgramsBySchoolId(filter: {deletedAt: {isNull: true}}) {\n nodes {\n rowId\n code\n }\n }\n coreSharedPublicEducationalLevelsBySchoolId(filter: {deletedAt: {isNull: true}}) {\n nodes {\n rowId\n code\n }\n }\n }\n }\n coreSharedPublicSchoolTermsBySchoolYearIdAndSchoolId(\n filter: {deletedAt: {isNull: true}}\n ) {\n nodes {\n rowId\n startAt\n endAt\n coefficient\n code\n name\n }\n totalCount\n }\n }\n }\n}\n";
|
|
3
4
|
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
5
|
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
6
|
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";
|
package/dist/query/query.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LIST_NEXT_SCHOOL_YEAR_QUERY = exports.LIST_ACTIVE_SCHOOL_YEAR_AND_NEXT_SCHOOL_YEAR_QUERY = exports.ACTIVE_SCHOOL_YEAR_AND_NEXT_SCHOOL_YEAR_QUERY = exports.LIST_ACTIVE_SCHOOL_YEAR_QUERY = exports.querySchoolYear = void 0;
|
|
3
|
+
exports.LIST_NEXT_SCHOOL_YEAR_QUERY = exports.LIST_ACTIVE_SCHOOL_YEAR_AND_NEXT_SCHOOL_YEAR_QUERY = exports.ACTIVE_SCHOOL_YEAR_AND_NEXT_SCHOOL_YEAR_QUERY = exports.LIST_ACTIVE_SCHOOL_YEAR_QUERY_V2 = exports.LIST_ACTIVE_SCHOOL_YEAR_QUERY = exports.querySchoolYear = void 0;
|
|
4
4
|
const querySchoolYear = (isAllTerm) => `
|
|
5
5
|
query MyQuery($school_id: Int!) {
|
|
6
6
|
school_year(
|
|
@@ -74,6 +74,51 @@ exports.LIST_ACTIVE_SCHOOL_YEAR_QUERY = `
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
`;
|
|
77
|
+
exports.LIST_ACTIVE_SCHOOL_YEAR_QUERY_V2 = `
|
|
78
|
+
query MyQuery($schoolId: Int!) {
|
|
79
|
+
allCoreSharedPublicSchoolYears(
|
|
80
|
+
filter: {startAt: {lessThanOrEqualTo: "now"}, endAt: {greaterThanOrEqualTo: "now"}, deletedAt: {isNull: true}, schoolId: {equalTo: $schoolId}}
|
|
81
|
+
) {
|
|
82
|
+
nodes {
|
|
83
|
+
rowId
|
|
84
|
+
startAt
|
|
85
|
+
endAt
|
|
86
|
+
code
|
|
87
|
+
name
|
|
88
|
+
coreSharedPublicSchoolCourseBySchoolCourseIdAndSchoolId {
|
|
89
|
+
coreSharedPublicSchoolBySchoolId {
|
|
90
|
+
rowId
|
|
91
|
+
coreSharedPublicProgramsBySchoolId(filter: {deletedAt: {isNull: true}}) {
|
|
92
|
+
nodes {
|
|
93
|
+
rowId
|
|
94
|
+
code
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
coreSharedPublicEducationalLevelsBySchoolId(filter: {deletedAt: {isNull: true}}) {
|
|
98
|
+
nodes {
|
|
99
|
+
rowId
|
|
100
|
+
code
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
coreSharedPublicSchoolTermsBySchoolYearIdAndSchoolId(
|
|
106
|
+
filter: {deletedAt: {isNull: true}}
|
|
107
|
+
) {
|
|
108
|
+
nodes {
|
|
109
|
+
rowId
|
|
110
|
+
startAt
|
|
111
|
+
endAt
|
|
112
|
+
coefficient
|
|
113
|
+
code
|
|
114
|
+
name
|
|
115
|
+
}
|
|
116
|
+
totalCount
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
`;
|
|
77
122
|
exports.ACTIVE_SCHOOL_YEAR_AND_NEXT_SCHOOL_YEAR_QUERY = `
|
|
78
123
|
query ActiveAndNextSchoolYear(
|
|
79
124
|
$startAt: timestamptz!
|
package/dist/query/query.js.map
CHANGED
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCjE,CAAC;AAGW,QAAA,2BAA2B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC1C,CAAC"}
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/query/query.ts"],"names":[],"mapp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