constants.ts 2.45 KB
Newer Older
1
export const COURSEFIELDS_RECEIVED = 'COURSEFIELDS_RECEIVED';
2
export const COURSEFIELDS_SELECTED_SAVE = 'COURSEFIELDS_SELECTED_SAVE';
3

4
5
export const SECTORFIELDS_RECEIVED = 'SECTORFIELDS_RECEIVED';
export const SECTORFIELDS_SELECTED_SAVE = 'SECTORFIELDS_SELECTED_SAVE';
6
export const SECTORFIELDS_INIT = 'SECTORFIELDS_INIT';
7

8
9
export const REGIONSCHOOLS_RECEIVED = 'REGIONSCHOOLS_RECEIVED';
export const REGIONSCHOOLS_SELECTED_SAVE = 'REGIONSCHOOLS_SELECTED_SAVE';
10
export const REGIONSCHOOLS_ORDER_SAVE = 'REGIONSCHOOLS_ORDER_SAVE';
11
export const REGIONSCHOOLS_INIT = 'REGIONSCHOOLS_INIT';
12

13
14
export const SECTORCOURSES_RECEIVED = 'SECTORCOURSES_RECEIVED';
export const SECTORCOURSES_SELECTED_SAVE = 'SECTORCOURSES_SELECTED_SAVE';
15
export const SECTORCOURSES_INIT = 'SECTORCOURSES_INIT';
16

17
18
export const STUDENTDATAFIELDS_RECEIVED = 'STUDENTDATAFIELDS_RECEIVED';
export const STUDENTDATAFIELDS_SAVE = 'STUDENTDATAFIELDS_SAVE';
19

Open Source Developer's avatar
Open Source Developer committed
20
export const EPALCLASSES_SAVE = 'EPALCLASSES_SAVE';
Open Source Developer's avatar
a    
Open Source Developer committed
21

22
export const LOGININFO_SAVE = 'LOGININFO_SAVE';
Open Source Developer's avatar
Open Source Developer committed
23

Open Source Developer's avatar
Open Source Developer committed
24
25
26
27
export const LOGININFO_RECEIVED = 'LOGININFO_RECEIVED';

export const USERINFOS_RECEIVED = 'USERINFOS_RECEIVED';
export const USERINFO_SELECTED_SAVE = 'USERINFO_SELECTED_SAVE';
28

29
export const LOGININFO_INIT = 'LOGININFO_INIT';
30

31
export const CRITERIA_RECEIVED = 'CRITERIA_RECEIVED';
32
33
export const CRITERIA_SAVE = 'CRITERIA_SAVE';

34
35
36
37
//export const VALID_NAMES_PATTERN = '[Α-ΩΆΈΉΊΎΌΏα-ωάέήίύόώ ]*$';
export const VALID_NAMES_PATTERN = '[A-Za-zΑ-ΩΆΈΉΊΎΌΏα-ωάέήίύόώ ]*$';
export const VALID_ADDRESS_PATTERN = '[0-9A-Za-zΑ-ΩΆΈΉΊΎΌΏα-ωάέήίύόώ ]*$';
export const VALID_ADDRESSTK_PATTERN = '[0-9 ]*$';
38
export const VALID_DIGITS_PATTERN = '[0-9]*$';
39

40
export const VALID_EMAIL_PATTERN = '[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}';
41
42
43
44
45
46
47
48
49

//YYYY-MM-DD FULL
//export const VALID_DATE_PATTERN = '(?:19|20)[0-9]{2}/(?:(?:0[1-9]|1[0-2])/(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))';

//MM-DD-YYYY FULL
//export const VALID_DATE_PATTERN = '(?:(?:0[1-9]|1[0-2])[\/\\-. ]?(?:0[1-9]|[12][0-9])|(?:(?:0[13-9]|1[0-2])[\/\\-. ]?30)|(?:(?:0[13578]|1[02])[\/\\-. ]?31))[\/\\-. ]?(?:19|20)[0-9]{2}';

//DD-MM-YYYY
export const VALID_DATE_PATTERN = '([1-9]|0[1-9]|[12][0-9]|3[01])[- /.]([1-9]|0[1-9]|1[012])[- /.](19|20)[0-9][0-9]';
50
51
52

export const SCHOOL_ROLE = 'director';
export const STUDENT_ROLE = 'student';
53
54
55
export const PDE_ROLE = 'pde';
export const DIDE_ROLE = 'dide';
export const MINISTRY_ROLE = 'minister';