phx-node 1.0.44 → 1.0.46
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/index.d.ts +3 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/constant/index.d.ts +20 -0
- package/dist/lib/constant/index.js +21 -1
- package/dist/lib/constant/index.js.map +1 -1
- package/dist/lib/helper.d.ts +4 -0
- package/dist/lib/helper.js +42 -1
- package/dist/lib/helper.js.map +1 -1
- package/dist/lib/types/tuition.d.ts +15 -0
- package/dist/lib/types/tuition.js +24 -0
- package/dist/lib/types/tuition.js.map +1 -0
- package/dist/module/grpc-client/grpc-client-system.service.d.ts +1 -1
- package/dist/module/grpc-client/grpc-client-system.service.js +6 -6
- package/dist/module/grpc-client/grpc-client-system.service.js.map +1 -1
- package/dist/module/grpc-client/grpc-client.service.d.ts +1 -1
- package/dist/module/grpc-client/grpc-client.service.js +3 -3
- package/dist/module/grpc-client/grpc-client.service.js.map +1 -1
- package/dist/module/helpers-service/tuition-helper-service/tuititon-formular-setting.service.d.ts +24 -0
- package/dist/module/helpers-service/tuition-helper-service/tuititon-formular-setting.service.js +158 -0
- package/dist/module/helpers-service/tuition-helper-service/tuititon-formular-setting.service.js.map +1 -0
- package/dist/module/hostname/env-public.service.js +2 -2
- package/dist/module/hostname/env-public.service.js.map +1 -1
- package/dist/module/hostname/hostname.service.js +4 -4
- package/dist/module/hostname/hostname.service.js.map +1 -1
- package/dist/phx.module.d.ts +2 -1
- package/dist/phx.module.js +4 -0
- package/dist/phx.module.js.map +1 -1
- package/dist/query/tuition/debt-record.d.ts +4 -0
- package/dist/query/tuition/debt-record.js +38 -0
- package/dist/query/tuition/debt-record.js.map +1 -0
- package/dist/query/tuition/setting-formula-promotion.d.ts +1 -0
- package/dist/query/tuition/setting-formula-promotion.js +23 -0
- package/dist/query/tuition/setting-formula-promotion.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/phx.module.d.ts
CHANGED
|
@@ -29,10 +29,11 @@ import { GetListNextSchoolYearServiceSystemV3 } from "./module/school-year-syste
|
|
|
29
29
|
import { GetSchoolYearServiceSystemV3 } from "./module/school-year-system-v3/schoolYear.service";
|
|
30
30
|
import { PHXEnvPublicService } from "./module/hostname/env-public.service";
|
|
31
31
|
import { PHXContextStorageService } from "./module/helpers-service/context-storage.service";
|
|
32
|
+
import { PHXSettingFormulaPromotion } from "./module/helpers-service/tuition-helper-service/tuititon-formular-setting.service";
|
|
32
33
|
export declare class PHXNestModule {
|
|
33
34
|
static register(): {
|
|
34
35
|
module: typeof PHXNestModule;
|
|
35
|
-
providers: (typeof
|
|
36
|
+
providers: (typeof PHXGrpcClientSystemService | 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 PHXCronjobManagerService | typeof PHXDevToolDataService | typeof PHXDateHelpers | typeof PHXGraphqlService | typeof PHXStudentInfoService | typeof GetSchoolYearService | typeof GetListActiveSchoolYearService | typeof GetActiveSchoolYearAndNextYearService | typeof GetListActiveSchoolYearAndNextYearService | typeof GetListNextSchoolYearService | typeof PHXGrpcClientService | typeof PHXStudentInfoServiceV3 | typeof GetActiveSchoolYearAndNextYearServiceV3 | typeof GetListActiveSchoolYearAndNextYearServiceV3 | typeof GetListActiveSchoolYearServiceV3 | typeof GetListNextSchoolYearServiceV3 | typeof GetSchoolYearServiceV3)[];
|
|
36
37
|
};
|
|
37
38
|
static forRoot(graphQlConfig?: GraphQlEnv): DynamicModule;
|
|
38
39
|
static forRootV2(graphQlConfig?: GraphQlV2Env): DynamicModule;
|
package/dist/phx.module.js
CHANGED
|
@@ -43,6 +43,7 @@ const listNextSchoolYear_service_2 = require("./module/school-year-system-v3/lis
|
|
|
43
43
|
const schoolYear_service_2 = require("./module/school-year-system-v3/schoolYear.service");
|
|
44
44
|
const env_public_service_1 = require("./module/hostname/env-public.service");
|
|
45
45
|
const context_storage_service_1 = require("./module/helpers-service/context-storage.service");
|
|
46
|
+
const tuititon_formular_setting_service_1 = require("./module/helpers-service/tuition-helper-service/tuititon-formular-setting.service");
|
|
46
47
|
let PHXNestModule = PHXNestModule_1 = class PHXNestModule {
|
|
47
48
|
static register() {
|
|
48
49
|
return {
|
|
@@ -77,6 +78,7 @@ let PHXNestModule = PHXNestModule_1 = class PHXNestModule {
|
|
|
77
78
|
hostname_service_1.PHXHostnameService,
|
|
78
79
|
env_public_service_1.PHXEnvPublicService,
|
|
79
80
|
context_storage_service_1.PHXContextStorageService,
|
|
81
|
+
tuititon_formular_setting_service_1.PHXSettingFormulaPromotion,
|
|
80
82
|
],
|
|
81
83
|
};
|
|
82
84
|
}
|
|
@@ -160,6 +162,7 @@ exports.PHXNestModule = PHXNestModule = PHXNestModule_1 = __decorate([
|
|
|
160
162
|
hostname_service_1.PHXHostnameService,
|
|
161
163
|
env_public_service_1.PHXEnvPublicService,
|
|
162
164
|
context_storage_service_1.PHXContextStorageService,
|
|
165
|
+
tuititon_formular_setting_service_1.PHXSettingFormulaPromotion,
|
|
163
166
|
],
|
|
164
167
|
exports: [
|
|
165
168
|
graphql_service_1.PHXGraphqlService,
|
|
@@ -191,6 +194,7 @@ exports.PHXNestModule = PHXNestModule = PHXNestModule_1 = __decorate([
|
|
|
191
194
|
hostname_service_1.PHXHostnameService,
|
|
192
195
|
env_public_service_1.PHXEnvPublicService,
|
|
193
196
|
context_storage_service_1.PHXContextStorageService,
|
|
197
|
+
tuititon_formular_setting_service_1.PHXSettingFormulaPromotion,
|
|
194
198
|
],
|
|
195
199
|
})
|
|
196
200
|
], PHXNestModule);
|
package/dist/phx.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phx.module.js","sourceRoot":"","sources":["../src/phx.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,gFAA+E;AAC/E,+DAA8D;AAC9D,kGAAkG;AAClG,kHAAiH;AACjH,0HAAyH;AACzH,gGAA+F;AAE/F,6CAA6D;AAC7D,wDAAoD;AACpD,qFAAmF;AACnF,8EAA0E;AAC1E,kFAAgF;AAChF,yCAA2C;AAC3C,2FAAwF;AACxF,yHAAwH;AACxH,iIAAgI;AAChI,yGAAyG;AACzG,uGAAsG;AACtG,uFAAsF;AACtF,gGAA6F;AAC7F,wFAAqF;AACrF,8FAA4F;AAC5F,0FAAiF;AACjF,qEAAmE;AACnE,+CAAkD;AAClD,gDAAoD;AACpD,yEAAwE;AACxE,yGAAqG;AACrG,4HAAmI;AACnI,oIAA2I;AAC3I,4GAAoH;AACpH,0GAAiH;AACjH,0FAAiG;AACjG,6EAA2E;AAC3E,8FAA4F;
|
|
1
|
+
{"version":3,"file":"phx.module.js","sourceRoot":"","sources":["../src/phx.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,gFAA+E;AAC/E,+DAA8D;AAC9D,kGAAkG;AAClG,kHAAiH;AACjH,0HAAyH;AACzH,gGAA+F;AAE/F,6CAA6D;AAC7D,wDAAoD;AACpD,qFAAmF;AACnF,8EAA0E;AAC1E,kFAAgF;AAChF,yCAA2C;AAC3C,2FAAwF;AACxF,yHAAwH;AACxH,iIAAgI;AAChI,yGAAyG;AACzG,uGAAsG;AACtG,uFAAsF;AACtF,gGAA6F;AAC7F,wFAAqF;AACrF,8FAA4F;AAC5F,0FAAiF;AACjF,qEAAmE;AACnE,+CAAkD;AAClD,gDAAoD;AACpD,yEAAwE;AACxE,yGAAqG;AACrG,4HAAmI;AACnI,oIAA2I;AAC3I,4GAAoH;AACpH,0GAAiH;AACjH,0FAAi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6CAAsB;YACtB,6CAAqB;YACrB,kDAAwB;YACxB,uCAAe;YACf,qCAAkB;YAClB,wCAAmB;YACnB,kDAAwB;YACxB,8DAA0B;SAC3B;KACF,CAAC;GACW,aAAa,CAiFzB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const PHXQueryListDetailFeeAdjustment = "\nlist_detail_fee_adjustment: tuition_fee_detail_adjustments(\n where: { deleted_at: { _is_null: true } }\n ) {\n tuition_fee_adjustment {\n total_fee\n fee_type_code\n tuition_fee_project_code {\n code: code_type_of_service\n }\n }\n}";
|
|
2
|
+
export declare const PHXQueryAdmissionTuition = "\ntuition_fee_detail_promotions(where: {deleted_at: {_is_null: true}, promotion_type: {_eq: ADMISSION_TUITION}}) {\n total_promo\n code: promotion_type\n}";
|
|
3
|
+
export declare const PHXQueryListDetailFeeAdjustmentBM = "list_detail_fee_adjustment: tuition_fee_detail_adjustment_by_months(\n where: { deleted_at: { _is_null: true } }\n ) {\n tuition_fee_adjustment {\n total_fee\n fee_type_code\n tuition_fee_project_code {\n code: code_type_of_service\n }\n }\n }";
|
|
4
|
+
export declare const PHXQueryAdmissionTuitionBM = "\ntuition_fee_detail_promotions: tuition_fee_detail_promotion_by_months(where: {deleted_at: {_is_null: true}, promotion_type: {_eq: ADMISSION_TUITION}}) {\n total_promo\n code: promotion_type\n}";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PHXQueryAdmissionTuitionBM = exports.PHXQueryListDetailFeeAdjustmentBM = exports.PHXQueryAdmissionTuition = exports.PHXQueryListDetailFeeAdjustment = void 0;
|
|
4
|
+
const tuition_1 = require("../../lib/types/tuition");
|
|
5
|
+
exports.PHXQueryListDetailFeeAdjustment = `
|
|
6
|
+
list_detail_fee_adjustment: tuition_fee_detail_adjustments(
|
|
7
|
+
where: { deleted_at: { _is_null: true } }
|
|
8
|
+
) {
|
|
9
|
+
tuition_fee_adjustment {
|
|
10
|
+
total_fee
|
|
11
|
+
fee_type_code
|
|
12
|
+
tuition_fee_project_code {
|
|
13
|
+
code: code_type_of_service
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}`;
|
|
17
|
+
exports.PHXQueryAdmissionTuition = `
|
|
18
|
+
tuition_fee_detail_promotions(where: {deleted_at: {_is_null: true}, promotion_type: {_eq: ${tuition_1.DETAIL_PROMO_TYPE.ADMISSION_TUITION}}}) {
|
|
19
|
+
total_promo
|
|
20
|
+
code: promotion_type
|
|
21
|
+
}`;
|
|
22
|
+
exports.PHXQueryListDetailFeeAdjustmentBM = `list_detail_fee_adjustment: tuition_fee_detail_adjustment_by_months(
|
|
23
|
+
where: { deleted_at: { _is_null: true } }
|
|
24
|
+
) {
|
|
25
|
+
tuition_fee_adjustment {
|
|
26
|
+
total_fee
|
|
27
|
+
fee_type_code
|
|
28
|
+
tuition_fee_project_code {
|
|
29
|
+
code: code_type_of_service
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}`;
|
|
33
|
+
exports.PHXQueryAdmissionTuitionBM = `
|
|
34
|
+
tuition_fee_detail_promotions: tuition_fee_detail_promotion_by_months(where: {deleted_at: {_is_null: true}, promotion_type: {_eq: ${tuition_1.DETAIL_PROMO_TYPE.ADMISSION_TUITION}}}) {
|
|
35
|
+
total_promo
|
|
36
|
+
code: promotion_type
|
|
37
|
+
}`;
|
|
38
|
+
//# sourceMappingURL=debt-record.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debt-record.js","sourceRoot":"","sources":["../../../src/query/tuition/debt-record.ts"],"names":[],"mappings":";;;AAAA,qDAA0D;AAG7C,QAAA,+BAA+B,GAAG;;;;;;;;;;;EAW7C,CAAC;AAGU,QAAA,wBAAwB,GAAG;4FACoD,2BAAiB,CAAC,iBAAiB;;;EAG7H,CAAC;AAIU,QAAA,iCAAiC,GAAG;;;;;;;;;;IAU7C,CAAC;AAGQ,QAAA,0BAA0B,GAAG;oIAC0F,2BAAiB,CAAC,iBAAiB;;;EAGrK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GET_SETTING_FORMULA_PROMOTION_QUERY = "\n query getSettingFormulaPromotion($code: String!, $setting_type: String!) {\n tuition_setting_formula_promotion(\n where: {\n deleted_at: { _is_null: true }\n code: { _eq: $code }\n is_active: { _eq: true }\n setting_type: { _eq: $setting_type }\n }\n ) {\n school_id\n list_setting_detail: tuition_setting_formula_promotion_details(\n where: { deleted_at: { _is_null: true }, is_active: { _eq: true } }\n ) {\n code\n }\n }\n }\n";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_SETTING_FORMULA_PROMOTION_QUERY = void 0;
|
|
4
|
+
exports.GET_SETTING_FORMULA_PROMOTION_QUERY = `
|
|
5
|
+
query getSettingFormulaPromotion($code: String!, $setting_type: String!) {
|
|
6
|
+
tuition_setting_formula_promotion(
|
|
7
|
+
where: {
|
|
8
|
+
deleted_at: { _is_null: true }
|
|
9
|
+
code: { _eq: $code }
|
|
10
|
+
is_active: { _eq: true }
|
|
11
|
+
setting_type: { _eq: $setting_type }
|
|
12
|
+
}
|
|
13
|
+
) {
|
|
14
|
+
school_id
|
|
15
|
+
list_setting_detail: tuition_setting_formula_promotion_details(
|
|
16
|
+
where: { deleted_at: { _is_null: true }, is_active: { _eq: true } }
|
|
17
|
+
) {
|
|
18
|
+
code
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
//# sourceMappingURL=setting-formula-promotion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setting-formula-promotion.js","sourceRoot":"","sources":["../../../src/query/tuition/setting-formula-promotion.ts"],"names":[],"mappings":";;;AAAa,QAAA,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;CAkBlD,CAAC"}
|