aq-fe-framework 0.1.687 → 0.1.689
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/IRole-Dr3_ACVn.d.mts +46 -0
- package/dist/{chunk-GMM6RIVS.mjs → chunk-AEZIAU63.mjs} +20 -6
- package/dist/{chunk-MNJNQRZU.mjs → chunk-K6S7R6LU.mjs} +1 -11
- package/dist/{chunk-42CBLK24.mjs → chunk-PL27DVOE.mjs} +1839 -1334
- package/dist/components/index.mjs +3 -3
- package/dist/core/index.mjs +3 -3
- package/dist/coreService/index.mjs +3 -3
- package/dist/enum/index.d.mts +1 -15
- package/dist/enum/index.mjs +3 -20
- package/dist/interfaces/index.d.mts +6 -1
- package/dist/modules-features/index.d.mts +25 -2
- package/dist/modules-features/index.mjs +13 -3
- package/dist/utils/index.d.mts +6 -3
- package/dist/utils/index.mjs +5 -3
- package/package.json +1 -1
- package/dist/IRole-DMQeBuXf.d.mts +0 -26
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { I as IBaseEntity } from './IBaseEntity-ChMy9RzQ.mjs';
|
|
2
|
+
|
|
3
|
+
interface IAcademicYear {
|
|
4
|
+
id?: number;
|
|
5
|
+
code?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
academicYearStart?: Date;
|
|
8
|
+
academicYearEnd?: Date;
|
|
9
|
+
administrativeYearStart?: Date;
|
|
10
|
+
administrativeYearEnd?: Date;
|
|
11
|
+
isEnabled?: boolean;
|
|
12
|
+
isCurrent?: boolean;
|
|
13
|
+
concurrencyStamp?: string;
|
|
14
|
+
note?: string;
|
|
15
|
+
}
|
|
16
|
+
type AcademicYearUpdateDto = Omit<IAcademicYear, 'academicYearStart' | 'academicYearEnd' | 'administrativeYearStart' | 'administrativeYearEnd'> & {
|
|
17
|
+
academicYearStart?: string | null;
|
|
18
|
+
academicYearEnd?: string | null;
|
|
19
|
+
administrativeYearStart?: string | null;
|
|
20
|
+
administrativeYearEnd?: string | null;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
interface IEmailConfig extends IBaseEntity {
|
|
24
|
+
emailModule?: number;
|
|
25
|
+
hostMailServer?: string;
|
|
26
|
+
outgoingPort?: number;
|
|
27
|
+
incomingPort?: number;
|
|
28
|
+
sll?: boolean;
|
|
29
|
+
userName?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface IRole extends IBaseEntity {
|
|
33
|
+
isCreate?: boolean;
|
|
34
|
+
isUpdate?: boolean;
|
|
35
|
+
isDelete?: boolean;
|
|
36
|
+
isRead?: boolean;
|
|
37
|
+
isPrint?: boolean;
|
|
38
|
+
isExport?: boolean;
|
|
39
|
+
pageId?: number;
|
|
40
|
+
roleId?: number;
|
|
41
|
+
userQuantity?: number;
|
|
42
|
+
isActive?: boolean | string;
|
|
43
|
+
aqModuleId?: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type { AcademicYearUpdateDto as A, IAcademicYear as I, IEmailConfig as a, IRole as b };
|
|
@@ -30,11 +30,24 @@ function utils_aq_mapDomainToEntity(domain) {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
// src/utils/
|
|
34
|
-
async function
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
// src/utils/utils_config_getBaseUrl.ts
|
|
34
|
+
async function utils_config_getBaseUrl({
|
|
35
|
+
configUrl = "/config.json"
|
|
36
|
+
} = {}) {
|
|
37
|
+
const res = await fetch(configUrl);
|
|
38
|
+
if (!res.ok) {
|
|
39
|
+
throw new Error("Kh\xF4ng th\u1EC3 t\u1EA3i c\u1EA5u h\xECnh runtime");
|
|
40
|
+
}
|
|
41
|
+
const config = await res.json();
|
|
42
|
+
return config.baseURL;
|
|
43
|
+
}
|
|
44
|
+
async function utils_config_getConfig(configKey, configUrl = "/config.json") {
|
|
45
|
+
const res = await fetch(configUrl);
|
|
46
|
+
if (!res.ok) {
|
|
47
|
+
throw new Error("Kh\xF4ng th\u1EC3 t\u1EA3i c\u1EA5u h\xECnh runtime");
|
|
48
|
+
}
|
|
49
|
+
const config = await res.json();
|
|
50
|
+
return config[configKey];
|
|
38
51
|
}
|
|
39
52
|
|
|
40
53
|
// src/utils/utils_converter.ts
|
|
@@ -453,7 +466,8 @@ export {
|
|
|
453
466
|
utils_pdf_download,
|
|
454
467
|
utils_aq_mapBaseEntityToDomain,
|
|
455
468
|
utils_aq_mapDomainToEntity,
|
|
456
|
-
|
|
469
|
+
utils_config_getBaseUrl,
|
|
470
|
+
utils_config_getConfig,
|
|
457
471
|
utils_converter_mapEnumToSelectData,
|
|
458
472
|
utils_converter_getLabelByValue,
|
|
459
473
|
utils_converter_getKeyByValue,
|
|
@@ -10,16 +10,6 @@ var enum_daysOfWeek = /* @__PURE__ */ ((enum_daysOfWeek2) => {
|
|
|
10
10
|
return enum_daysOfWeek2;
|
|
11
11
|
})(enum_daysOfWeek || {});
|
|
12
12
|
|
|
13
|
-
// src/enum/enum_emailConfigModule.ts
|
|
14
|
-
var enum_emailConfigModule = /* @__PURE__ */ ((enum_emailConfigModule2) => {
|
|
15
|
-
enum_emailConfigModule2[enum_emailConfigModule2["\u0110\xE0o t\u1EA1o"] = 1] = "\u0110\xE0o t\u1EA1o";
|
|
16
|
-
enum_emailConfigModule2[enum_emailConfigModule2["Tuy\u1EC3n sinh"] = 2] = "Tuy\u1EC3n sinh";
|
|
17
|
-
enum_emailConfigModule2[enum_emailConfigModule2["Sinh vi\xEAn"] = 3] = "Sinh vi\xEAn";
|
|
18
|
-
enum_emailConfigModule2[enum_emailConfigModule2["Kh\u1EA3o th\xED"] = 4] = "Kh\u1EA3o th\xED";
|
|
19
|
-
return enum_emailConfigModule2;
|
|
20
|
-
})(enum_emailConfigModule || {});
|
|
21
|
-
|
|
22
13
|
export {
|
|
23
|
-
enum_daysOfWeek
|
|
24
|
-
enum_emailConfigModule
|
|
14
|
+
enum_daysOfWeek
|
|
25
15
|
};
|