@silexpert/core 0.4.227 → 0.4.229
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/es/api/resources/CalendarEvent.d.ts +10 -0
- package/es/api/resources/CalendarEvent.d.ts.map +1 -0
- package/es/api/resources/CalendarEvent.js +19 -0
- package/es/api/resources/CalendarEvent.js.map +1 -0
- package/es/api/resources/TimeRecorder.d.ts +8 -0
- package/es/api/resources/TimeRecorder.d.ts.map +1 -0
- package/es/api/resources/TimeRecorder.js +13 -0
- package/es/api/resources/TimeRecorder.js.map +1 -0
- package/es/api/resources/User.d.ts +3 -1
- package/es/api/resources/User.d.ts.map +1 -1
- package/es/api/resources/User.js +31 -0
- package/es/api/resources/User.js.map +1 -1
- package/es/api/resources/WorkingSchedule.d.ts +2 -0
- package/es/api/resources/WorkingSchedule.d.ts.map +1 -1
- package/es/api/resources/WorkingSchedule.js +5 -0
- package/es/api/resources/WorkingSchedule.js.map +1 -1
- package/es/api/resources.d.ts +4 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +4 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/AbsenceType.d.ts +9 -0
- package/es/types/Enum/AbsenceType.d.ts.map +1 -0
- package/es/types/Enum/AbsenceType.js +10 -0
- package/es/types/Enum/AbsenceType.js.map +1 -0
- package/es/types/Enum/Role.d.ts +2 -1
- package/es/types/Enum/Role.d.ts.map +1 -1
- package/es/types/Enum/Role.js +1 -0
- package/es/types/Enum/Role.js.map +1 -1
- package/es/types/Enum/RoleDetail.d.ts +6 -0
- package/es/types/Enum/RoleDetail.d.ts.map +1 -1
- package/es/types/Enum/RoleDetail.js +6 -0
- package/es/types/Enum/RoleDetail.js.map +1 -1
- package/es/types/Enum/TimeCounterType.d.ts +118 -0
- package/es/types/Enum/TimeCounterType.d.ts.map +1 -0
- package/es/types/Enum/TimeCounterType.js +118 -0
- package/es/types/Enum/TimeCounterType.js.map +1 -0
- package/es/types/Interface/api/calendarEvent/createCalendarEvent.d.ts +3 -1
- package/es/types/Interface/api/calendarEvent/createCalendarEvent.d.ts.map +1 -1
- package/es/types/Interface/api/calendarEvent/createCalendarEvent.js +9 -1
- package/es/types/Interface/api/calendarEvent/createCalendarEvent.js.map +1 -1
- package/es/types/Interface/api/calendarEvent/createCalendarEventForUsers.d.ts +21 -0
- package/es/types/Interface/api/calendarEvent/createCalendarEventForUsers.d.ts.map +1 -0
- package/es/types/Interface/api/calendarEvent/createCalendarEventForUsers.js +85 -0
- package/es/types/Interface/api/calendarEvent/createCalendarEventForUsers.js.map +1 -0
- package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.d.ts +7 -0
- package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.d.ts.map +1 -0
- package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.js +29 -0
- package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +1 -0
- package/es/types/Interface/api/calendarEvent/queryCalendarEvent.d.ts +5 -0
- package/es/types/Interface/api/calendarEvent/queryCalendarEvent.d.ts.map +1 -0
- package/es/types/Interface/api/calendarEvent/queryCalendarEvent.js +31 -0
- package/es/types/Interface/api/calendarEvent/queryCalendarEvent.js.map +1 -0
- package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.d.ts +13 -0
- package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.d.ts.map +1 -0
- package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.js +2 -0
- package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.js.map +1 -0
- package/es/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts +20 -0
- package/es/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts.map +1 -0
- package/es/types/Interface/api/calendarEvent/updateCalendarEvent.js +81 -0
- package/es/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -0
- package/es/types/Interface/api/timeRecorder/QueryAttendance.d.ts +5 -0
- package/es/types/Interface/api/timeRecorder/QueryAttendance.d.ts.map +1 -0
- package/es/types/Interface/api/timeRecorder/QueryAttendance.js +26 -0
- package/es/types/Interface/api/timeRecorder/QueryAttendance.js.map +1 -0
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.d.ts +9 -0
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.d.ts.map +1 -0
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.js +50 -0
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.js.map +1 -0
- package/es/types/Interface/api/timeRecorder/ReadAttendanceHours.d.ts +5 -0
- package/es/types/Interface/api/timeRecorder/ReadAttendanceHours.d.ts.map +1 -0
- package/es/types/Interface/api/timeRecorder/ReadAttendanceHours.js +2 -0
- package/es/types/Interface/api/timeRecorder/ReadAttendanceHours.js.map +1 -0
- package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.d.ts +21 -0
- package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.d.ts.map +1 -0
- package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.js +2 -0
- package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.js.map +1 -0
- package/es/types/Interface/api/timeRecorder/ReadUsersNotConnected.d.ts +7 -0
- package/es/types/Interface/api/timeRecorder/ReadUsersNotConnected.d.ts.map +1 -0
- package/es/types/Interface/api/timeRecorder/ReadUsersNotConnected.js +2 -0
- package/es/types/Interface/api/timeRecorder/ReadUsersNotConnected.js.map +1 -0
- package/es/types/Interface/api/user/CollaboratorsByRoles.d.ts +6 -0
- package/es/types/Interface/api/user/CollaboratorsByRoles.d.ts.map +1 -0
- package/es/types/Interface/api/user/CollaboratorsByRoles.js +2 -0
- package/es/types/Interface/api/user/CollaboratorsByRoles.js.map +1 -0
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +3 -0
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.js +19 -1
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
- package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts +4 -0
- package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +1 -0
- package/es/types/Interface/api/user/QueryGetAllCollaborators.js +22 -0
- package/es/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -0
- package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts +4 -0
- package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts.map +1 -0
- package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +22 -0
- package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +1 -0
- package/es/types/Interface/api/workingSchedule/QueryDailyHour.d.ts +13 -0
- package/es/types/Interface/api/workingSchedule/QueryDailyHour.d.ts.map +1 -0
- package/es/types/Interface/api/workingSchedule/QueryDailyHour.js +2 -0
- package/es/types/Interface/api/workingSchedule/QueryDailyHour.js.map +1 -0
- package/es/types/Interface/enum/Date.d.ts +7 -0
- package/es/types/Interface/enum/Date.d.ts.map +1 -0
- package/es/types/Interface/enum/Date.js +2 -0
- package/es/types/Interface/enum/Date.js.map +1 -0
- package/es/types/Interface/models/IAbsenceRequest.d.ts +29 -0
- package/es/types/Interface/models/IAbsenceRequest.d.ts.map +1 -0
- package/es/types/Interface/models/IAbsenceRequest.js +2 -0
- package/es/types/Interface/models/IAbsenceRequest.js.map +1 -0
- package/es/types/Interface/models/IAbsenceRequestTime.d.ts +12 -0
- package/es/types/Interface/models/IAbsenceRequestTime.d.ts.map +1 -0
- package/es/types/Interface/models/IAbsenceRequestTime.js +2 -0
- package/es/types/Interface/models/IAbsenceRequestTime.js.map +1 -0
- package/es/types/Interface/models/ICalendarEvent.d.ts +2 -0
- package/es/types/Interface/models/ICalendarEvent.d.ts.map +1 -1
- package/es/types/Interface/models/ICalendarEvent.js.map +1 -1
- package/es/types/Interface/models/ITimeRecorder.d.ts +10 -0
- package/es/types/Interface/models/ITimeRecorder.d.ts.map +1 -0
- package/es/types/Interface/models/ITimeRecorder.js +2 -0
- package/es/types/Interface/models/ITimeRecorder.js.map +1 -0
- package/es/types/Interface/models/IUser.d.ts +1 -0
- package/es/types/Interface/models/IUser.d.ts.map +1 -1
- package/es/types/Interface/models/IUser.js.map +1 -1
- package/es/types/Interface/models/IWorkingSchedule.d.ts +6 -6
- package/es/types/Interface/models/IWorkingSchedule.d.ts.map +1 -1
- package/es/types/Interface/models/IWorkingSchedule.js.map +1 -1
- package/es/types/index.d.ts +20 -2
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +20 -2
- package/es/types/index.js.map +1 -1
- package/es/utils/webmail.d.ts.map +1 -1
- package/es/utils/webmail.js +3 -0
- package/es/utils/webmail.js.map +1 -1
- package/js/api/resources/CalendarEvent.js +38 -0
- package/js/api/resources/CalendarEvent.js.map +1 -0
- package/js/api/resources/TimeRecorder.js +32 -0
- package/js/api/resources/TimeRecorder.js.map +1 -0
- package/js/api/resources/User.js +18 -0
- package/js/api/resources/User.js.map +1 -1
- package/js/api/resources/WorkingSchedule.js +10 -0
- package/js/api/resources/WorkingSchedule.js.map +1 -1
- package/js/api/resources.js +6 -0
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/AbsenceType.js +16 -0
- package/js/types/Enum/AbsenceType.js.map +1 -0
- package/js/types/Enum/Role.js +1 -0
- package/js/types/Enum/Role.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +6 -0
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Enum/TimeCounterType.js +126 -0
- package/js/types/Enum/TimeCounterType.js.map +1 -0
- package/js/types/Interface/api/calendarEvent/createCalendarEvent.js +5 -1
- package/js/types/Interface/api/calendarEvent/createCalendarEvent.js.map +1 -1
- package/js/types/Interface/api/calendarEvent/createCalendarEventForUsers.js +61 -0
- package/js/types/Interface/api/calendarEvent/createCalendarEventForUsers.js.map +1 -0
- package/js/types/Interface/api/calendarEvent/getAllCalendarEvent.js +33 -0
- package/js/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +1 -0
- package/js/types/Interface/api/calendarEvent/queryCalendarEvent.js +37 -0
- package/js/types/Interface/api/calendarEvent/queryCalendarEvent.js.map +1 -0
- package/js/types/Interface/api/calendarEvent/readAllCalendarEvent.js +6 -0
- package/js/types/Interface/api/calendarEvent/readAllCalendarEvent.js.map +1 -0
- package/js/types/Interface/api/calendarEvent/updateCalendarEvent.js +59 -0
- package/js/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -0
- package/js/types/Interface/api/timeRecorder/QueryAttendance.js +31 -0
- package/js/types/Interface/api/timeRecorder/QueryAttendance.js.map +1 -0
- package/js/types/Interface/api/timeRecorder/QueryPaginatedDelays.js +43 -0
- package/js/types/Interface/api/timeRecorder/QueryPaginatedDelays.js.map +1 -0
- package/js/types/Interface/api/timeRecorder/ReadAttendanceHours.js +6 -0
- package/js/types/Interface/api/timeRecorder/ReadAttendanceHours.js.map +1 -0
- package/js/types/Interface/api/timeRecorder/ReadPaginatedDelays.js +6 -0
- package/js/types/Interface/api/timeRecorder/ReadPaginatedDelays.js.map +1 -0
- package/js/types/Interface/api/timeRecorder/ReadUsersNotConnected.js +6 -0
- package/js/types/Interface/api/timeRecorder/ReadUsersNotConnected.js.map +1 -0
- package/js/types/Interface/api/user/CollaboratorsByRoles.js +6 -0
- package/js/types/Interface/api/user/CollaboratorsByRoles.js.map +1 -0
- package/js/types/Interface/api/user/ParamsGetAllCollaborators.js +6 -0
- package/js/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
- package/js/types/Interface/api/user/QueryGetAllCollaborators.js +32 -0
- package/js/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -0
- package/js/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +32 -0
- package/js/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +1 -0
- package/js/types/Interface/{models/IAskAbsenceTimes.js → api/workingSchedule/QueryDailyHour.js} +1 -1
- package/js/types/Interface/api/workingSchedule/QueryDailyHour.js.map +1 -0
- package/js/types/Interface/{models/IAskAbsence.js → enum/Date.js} +1 -1
- package/js/types/Interface/enum/Date.js.map +1 -0
- package/js/types/Interface/models/IAbsenceRequest.js +6 -0
- package/js/types/Interface/models/IAbsenceRequest.js.map +1 -0
- package/js/types/Interface/models/IAbsenceRequestTime.js +6 -0
- package/js/types/Interface/models/IAbsenceRequestTime.js.map +1 -0
- package/js/types/Interface/models/ITimeRecorder.js +6 -0
- package/js/types/Interface/models/ITimeRecorder.js.map +1 -0
- package/js/types/index.js +222 -6
- package/js/types/index.js.map +1 -1
- package/js/utils/webmail.js +2 -0
- package/js/utils/webmail.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/CalendarEvent.ts +26 -0
- package/ts/api/resources/TimeRecorder.ts +18 -0
- package/ts/api/resources/User.ts +31 -2
- package/ts/api/resources/WorkingSchedule.ts +7 -0
- package/ts/api/resources.ts +4 -0
- package/ts/types/Enum/AbsenceType.ts +8 -0
- package/ts/types/Enum/Role.ts +1 -0
- package/ts/types/Enum/RoleDetail.ts +6 -0
- package/ts/types/Enum/TimeCounterType.ts +118 -0
- package/ts/types/Interface/api/calendarEvent/createCalendarEvent.ts +8 -2
- package/ts/types/Interface/api/calendarEvent/createCalendarEventForUsers.ts +57 -0
- package/ts/types/Interface/api/calendarEvent/getAllCalendarEvent.ts +15 -0
- package/ts/types/Interface/api/calendarEvent/queryCalendarEvent.ts +21 -0
- package/ts/types/Interface/api/calendarEvent/readAllCalendarEvent.ts +12 -0
- package/ts/types/Interface/api/calendarEvent/updateCalendarEvent.ts +54 -0
- package/ts/types/Interface/api/timeRecorder/QueryAttendance.ts +14 -0
- package/ts/types/Interface/api/timeRecorder/QueryPaginatedDelays.ts +36 -0
- package/ts/types/Interface/api/timeRecorder/ReadAttendanceHours.ts +4 -0
- package/ts/types/Interface/api/timeRecorder/ReadPaginatedDelays.ts +21 -0
- package/ts/types/Interface/api/timeRecorder/ReadUsersNotConnected.ts +6 -0
- package/ts/types/Interface/api/user/CollaboratorsByRoles.ts +6 -0
- package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +16 -0
- package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +11 -0
- package/ts/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.ts +11 -0
- package/ts/types/Interface/api/workingSchedule/QueryDailyHour.ts +12 -0
- package/ts/types/Interface/enum/Date.ts +6 -0
- package/ts/types/Interface/models/IAbsenceRequest.ts +32 -0
- package/ts/types/Interface/models/IAbsenceRequestTime.ts +15 -0
- package/ts/types/Interface/models/ICalendarEvent.ts +2 -0
- package/ts/types/Interface/models/ITimeRecorder.ts +10 -0
- package/ts/types/Interface/models/IUser.ts +1 -0
- package/ts/types/Interface/models/IWorkingSchedule.ts +6 -6
- package/ts/types/index.ts +20 -2
- package/ts/utils/webmail.ts +2 -0
- package/es/types/Interface/models/IAskAbsence.d.ts +0 -29
- package/es/types/Interface/models/IAskAbsence.d.ts.map +0 -1
- package/es/types/Interface/models/IAskAbsence.js +0 -2
- package/es/types/Interface/models/IAskAbsence.js.map +0 -1
- package/es/types/Interface/models/IAskAbsenceTimes.d.ts +0 -12
- package/es/types/Interface/models/IAskAbsenceTimes.d.ts.map +0 -1
- package/es/types/Interface/models/IAskAbsenceTimes.js +0 -2
- package/es/types/Interface/models/IAskAbsenceTimes.js.map +0 -1
- package/js/types/Interface/models/IAskAbsence.js.map +0 -1
- package/js/types/Interface/models/IAskAbsenceTimes.js.map +0 -1
- package/ts/types/Interface/models/IAskAbsence.ts +0 -32
- package/ts/types/Interface/models/IAskAbsenceTimes.ts +0 -15
package/ts/types/Enum/Role.ts
CHANGED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Role } from './Role';
|
|
2
|
+
|
|
3
|
+
export const TimeCounterType = {
|
|
4
|
+
ONBOARDING: {
|
|
5
|
+
id: 1,
|
|
6
|
+
label: 'OnBoarding',
|
|
7
|
+
aberrantTime: 60,
|
|
8
|
+
limitedRoles: [Role.FRONT_OFFICE],
|
|
9
|
+
},
|
|
10
|
+
VAT: {
|
|
11
|
+
id: 2,
|
|
12
|
+
label: 'TVA',
|
|
13
|
+
aberrantTime: 60,
|
|
14
|
+
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
|
|
15
|
+
},
|
|
16
|
+
REVISION: {
|
|
17
|
+
id: 3,
|
|
18
|
+
label: 'Révision',
|
|
19
|
+
aberrantTime: 120,
|
|
20
|
+
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
|
|
21
|
+
},
|
|
22
|
+
FOLDER_REVIEW: {
|
|
23
|
+
id: 4,
|
|
24
|
+
label: 'Revue dossier',
|
|
25
|
+
aberrantTime: 60,
|
|
26
|
+
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
|
|
27
|
+
},
|
|
28
|
+
REPORTING: {
|
|
29
|
+
id: 5,
|
|
30
|
+
label: 'Signalement',
|
|
31
|
+
aberrantTime: 60,
|
|
32
|
+
limitedRoles: [Role.CUSTOMER_SUCCESS],
|
|
33
|
+
},
|
|
34
|
+
SYNCHRONISATION: {
|
|
35
|
+
id: 6,
|
|
36
|
+
label: 'Synchronisation',
|
|
37
|
+
aberrantTime: 30,
|
|
38
|
+
limitedRoles: [Role.CUSTOMER_SUCCESS],
|
|
39
|
+
},
|
|
40
|
+
UNDER_SUPERVISION: {
|
|
41
|
+
id: 7,
|
|
42
|
+
label: 'En cours de supervision',
|
|
43
|
+
aberrantTime: 45,
|
|
44
|
+
limitedRoles: null,
|
|
45
|
+
},
|
|
46
|
+
CLIENT_CONTACT: {
|
|
47
|
+
id: 8,
|
|
48
|
+
label: 'Contact client (Appel/mail/chat)',
|
|
49
|
+
aberrantTime: null,
|
|
50
|
+
limitedRoles: null,
|
|
51
|
+
},
|
|
52
|
+
MEETING: {
|
|
53
|
+
id: 9,
|
|
54
|
+
label: 'Réunion',
|
|
55
|
+
aberrantTime: null,
|
|
56
|
+
limitedRoles: null,
|
|
57
|
+
},
|
|
58
|
+
FORMATION: {
|
|
59
|
+
id: 10,
|
|
60
|
+
label: 'Formation',
|
|
61
|
+
aberrantTime: null,
|
|
62
|
+
limitedRoles: null,
|
|
63
|
+
},
|
|
64
|
+
FORECAST: {
|
|
65
|
+
id: 11,
|
|
66
|
+
label: 'Prévisionnel',
|
|
67
|
+
aberrantTime: null,
|
|
68
|
+
limitedRoles: [Role.FRONT_OFFICE],
|
|
69
|
+
},
|
|
70
|
+
CERTIFICATE: {
|
|
71
|
+
id: 12,
|
|
72
|
+
label: 'Attestation',
|
|
73
|
+
aberrantTime: null,
|
|
74
|
+
limitedRoles: [Role.CUSTOMER_SUCCESS],
|
|
75
|
+
},
|
|
76
|
+
COMPLEMENTARY_MISSION: {
|
|
77
|
+
id: 13,
|
|
78
|
+
label: 'Mission complémentaire',
|
|
79
|
+
aberrantTime: null,
|
|
80
|
+
limitedRoles: [Role.FRONT_OFFICE],
|
|
81
|
+
},
|
|
82
|
+
ORGANISATION: {
|
|
83
|
+
id: 14,
|
|
84
|
+
label: 'Organisation',
|
|
85
|
+
aberrantTime: null,
|
|
86
|
+
limitedRoles: null,
|
|
87
|
+
},
|
|
88
|
+
INTERNAL_ADVICE: {
|
|
89
|
+
id: 15,
|
|
90
|
+
label: 'Conseil interne',
|
|
91
|
+
aberrantTime: null,
|
|
92
|
+
limitedRoles: null,
|
|
93
|
+
},
|
|
94
|
+
LAB: {
|
|
95
|
+
id: 16,
|
|
96
|
+
label: 'LAB',
|
|
97
|
+
aberrantTime: null,
|
|
98
|
+
limitedRoles: [Role.EXPERT_ACCOUNTANT],
|
|
99
|
+
},
|
|
100
|
+
SUPERVISION: {
|
|
101
|
+
id: 17,
|
|
102
|
+
label: 'Supervision',
|
|
103
|
+
aberrantTime: null,
|
|
104
|
+
limitedRoles: [Role.EXPERT_ACCOUNTANT, Role.MANAGER],
|
|
105
|
+
},
|
|
106
|
+
MAIL_PROCESSING: {
|
|
107
|
+
id: 18,
|
|
108
|
+
label: 'Traitement des courriers',
|
|
109
|
+
aberrantTime: null,
|
|
110
|
+
limitedRoles: [Role.CUSTOMER_SUCCESS],
|
|
111
|
+
},
|
|
112
|
+
SUPPORT_PROCESSING: {
|
|
113
|
+
id: 19,
|
|
114
|
+
label: 'Traitement support',
|
|
115
|
+
aberrantTime: null,
|
|
116
|
+
limitedRoles: [Role.CUSTOMER_SUCCESS],
|
|
117
|
+
},
|
|
118
|
+
};
|
|
@@ -7,8 +7,8 @@ export class createCalendarEvent {
|
|
|
7
7
|
@ApiProperty()
|
|
8
8
|
dateStart: Date;
|
|
9
9
|
|
|
10
|
-
@
|
|
11
|
-
dateEnd
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
dateEnd?: Date;
|
|
12
12
|
|
|
13
13
|
@ApiProperty()
|
|
14
14
|
comment: string;
|
|
@@ -31,6 +31,9 @@ export class createCalendarEvent {
|
|
|
31
31
|
@ApiPropertyOptional()
|
|
32
32
|
idType?: number;
|
|
33
33
|
|
|
34
|
+
@ApiPropertyOptional()
|
|
35
|
+
idTimeCounterType?: number;
|
|
36
|
+
|
|
34
37
|
@ApiPropertyOptional()
|
|
35
38
|
typeComptable?: number;
|
|
36
39
|
|
|
@@ -45,4 +48,7 @@ export class createCalendarEvent {
|
|
|
45
48
|
|
|
46
49
|
@ApiPropertyOptional()
|
|
47
50
|
idPlace?: number;
|
|
51
|
+
|
|
52
|
+
@ApiPropertyOptional()
|
|
53
|
+
validatedAt?: Date;
|
|
48
54
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
2
|
+
|
|
3
|
+
export class CreateCalendarEventForUsers {
|
|
4
|
+
@ApiProperty()
|
|
5
|
+
title: string;
|
|
6
|
+
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
dateStart: Date;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
dateEnd?: Date;
|
|
12
|
+
|
|
13
|
+
@ApiProperty()
|
|
14
|
+
comment: string;
|
|
15
|
+
|
|
16
|
+
@ApiPropertyOptional()
|
|
17
|
+
idRoom?: number;
|
|
18
|
+
|
|
19
|
+
@ApiProperty()
|
|
20
|
+
createdBy: number;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
idColor?: number;
|
|
24
|
+
|
|
25
|
+
@ApiProperty()
|
|
26
|
+
idSociety: number;
|
|
27
|
+
|
|
28
|
+
@ApiPropertyOptional()
|
|
29
|
+
idExercice?: number;
|
|
30
|
+
|
|
31
|
+
@ApiPropertyOptional()
|
|
32
|
+
idType?: number;
|
|
33
|
+
|
|
34
|
+
@ApiPropertyOptional()
|
|
35
|
+
idTimeCounterType?: number;
|
|
36
|
+
|
|
37
|
+
@ApiPropertyOptional()
|
|
38
|
+
typeComptable?: number;
|
|
39
|
+
|
|
40
|
+
@ApiProperty()
|
|
41
|
+
isDone: boolean;
|
|
42
|
+
|
|
43
|
+
@ApiPropertyOptional()
|
|
44
|
+
callState?: number;
|
|
45
|
+
|
|
46
|
+
@ApiPropertyOptional()
|
|
47
|
+
idRecurrence?: number;
|
|
48
|
+
|
|
49
|
+
@ApiPropertyOptional()
|
|
50
|
+
idPlace?: number;
|
|
51
|
+
|
|
52
|
+
@ApiPropertyOptional()
|
|
53
|
+
validatedAt?: Date;
|
|
54
|
+
|
|
55
|
+
@ApiProperty()
|
|
56
|
+
idUsers: Array<number>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
|
|
2
|
+
|
|
3
|
+
export class GetAllCalendarEvent {
|
|
4
|
+
@ApiProperty()
|
|
5
|
+
idUser: number;
|
|
6
|
+
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
startDate: Date;
|
|
9
|
+
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
endDate: Date;
|
|
12
|
+
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
isValidated?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsIn, IsOptional, IsString,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiPropertyOptional } from '../../../../utils/decorators';
|
|
5
|
+
|
|
6
|
+
export class QueryCalendarEvent {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsString({
|
|
10
|
+
each: true,
|
|
11
|
+
})
|
|
12
|
+
@IsIn(['room', 'createdBy', 'color', 'society', 'exercice', 'task'], { each: true })
|
|
13
|
+
include?: string[];
|
|
14
|
+
|
|
15
|
+
@ApiPropertyOptional()
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsString({
|
|
18
|
+
each: true,
|
|
19
|
+
})
|
|
20
|
+
attributes?: string[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
2
|
+
|
|
3
|
+
export class UpdateCalendarEvent {
|
|
4
|
+
@ApiPropertyOptional()
|
|
5
|
+
title?: string;
|
|
6
|
+
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
dateStart?: Date;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
dateEnd?: Date;
|
|
12
|
+
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
comment?: string;
|
|
15
|
+
|
|
16
|
+
@ApiPropertyOptional()
|
|
17
|
+
idRoom?: number;
|
|
18
|
+
|
|
19
|
+
@ApiPropertyOptional()
|
|
20
|
+
createdBy?: number;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
idColor?: number;
|
|
24
|
+
|
|
25
|
+
@ApiPropertyOptional()
|
|
26
|
+
idSociety?: number;
|
|
27
|
+
|
|
28
|
+
@ApiPropertyOptional()
|
|
29
|
+
idExercice?: number;
|
|
30
|
+
|
|
31
|
+
@ApiPropertyOptional()
|
|
32
|
+
idType?: number;
|
|
33
|
+
|
|
34
|
+
@ApiPropertyOptional()
|
|
35
|
+
idTimeCounterType?: number;
|
|
36
|
+
|
|
37
|
+
@ApiPropertyOptional()
|
|
38
|
+
typeComptable?: number;
|
|
39
|
+
|
|
40
|
+
@ApiPropertyOptional()
|
|
41
|
+
isDone?: boolean;
|
|
42
|
+
|
|
43
|
+
@ApiPropertyOptional()
|
|
44
|
+
callState?: number;
|
|
45
|
+
|
|
46
|
+
@ApiPropertyOptional()
|
|
47
|
+
idRecurrence?: number;
|
|
48
|
+
|
|
49
|
+
@ApiPropertyOptional()
|
|
50
|
+
idPlace?: number;
|
|
51
|
+
|
|
52
|
+
@ApiPropertyOptional()
|
|
53
|
+
validatedAt?: Date;
|
|
54
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IsString, IsDateString } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class QueryAttendance {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsString()
|
|
7
|
+
@IsDateString()
|
|
8
|
+
startDate: string;
|
|
9
|
+
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
@IsString()
|
|
12
|
+
@IsDateString()
|
|
13
|
+
endDate: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsString, IsDateString, IsOptional, IsNumber, IsArray,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryPaginatedDelays {
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
@IsString()
|
|
9
|
+
@IsDateString()
|
|
10
|
+
startDate: string;
|
|
11
|
+
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
@IsString()
|
|
14
|
+
@IsDateString()
|
|
15
|
+
endDate: string;
|
|
16
|
+
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsString()
|
|
20
|
+
search?: string;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsArray()
|
|
25
|
+
idUser?: number[];
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional({ default: 25 })
|
|
28
|
+
@IsOptional()
|
|
29
|
+
@IsNumber()
|
|
30
|
+
limit?: number;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional({ default: 1 })
|
|
33
|
+
@IsOptional()
|
|
34
|
+
@IsNumber()
|
|
35
|
+
page?: number;
|
|
36
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface Delay {
|
|
2
|
+
date: string;
|
|
3
|
+
sumDelays?: number;
|
|
4
|
+
sumForgottenDisconnections?: number;
|
|
5
|
+
sumRealWorkingHours: string;
|
|
6
|
+
sumTheoricalWorkingHours: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DelaysByDay {
|
|
9
|
+
Monday?: Delay;
|
|
10
|
+
Tuesday?: Delay;
|
|
11
|
+
Wednesday?: Delay;
|
|
12
|
+
Thursday?: Delay;
|
|
13
|
+
Friday?: Delay;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ReadPaginatedDelays {
|
|
17
|
+
idUser: number;
|
|
18
|
+
firstname: string;
|
|
19
|
+
lastname: string;
|
|
20
|
+
days: DelaysByDay
|
|
21
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
IsNumber,
|
|
2
3
|
IsOptional, IsString,
|
|
3
4
|
} from 'class-validator';
|
|
4
5
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
@@ -10,4 +11,19 @@ export class ParamsGetAllCollaborators {
|
|
|
10
11
|
each: true,
|
|
11
12
|
})
|
|
12
13
|
attributes?: string[];
|
|
14
|
+
|
|
15
|
+
@ApiPropertyOptional()
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsString()
|
|
18
|
+
search?: string;
|
|
19
|
+
|
|
20
|
+
@ApiPropertyOptional()
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@IsNumber()
|
|
23
|
+
idRoles?: number[];
|
|
24
|
+
|
|
25
|
+
@ApiPropertyOptional()
|
|
26
|
+
@IsOptional()
|
|
27
|
+
@IsNumber()
|
|
28
|
+
idUser?: number[];
|
|
13
29
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface DailyHour {
|
|
2
|
+
from: number;
|
|
3
|
+
to: number;
|
|
4
|
+
class?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SpecialHours {
|
|
7
|
+
1?: DailyHour | DailyHour[];
|
|
8
|
+
2?: DailyHour | DailyHour[];
|
|
9
|
+
3?: DailyHour | DailyHour[];
|
|
10
|
+
4?: DailyHour | DailyHour[];
|
|
11
|
+
5?: DailyHour | DailyHour[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IUser } from './IUser';
|
|
2
|
+
import { IAbsenceType } from './IAbsenceType';
|
|
3
|
+
import { IFile } from './IFile';
|
|
4
|
+
import { IAbsenceRequestTime } from './IAbsenceRequestTime';
|
|
5
|
+
|
|
6
|
+
// absenceRequest
|
|
7
|
+
export interface IAbsenceRequest {
|
|
8
|
+
id?: number;
|
|
9
|
+
validService?: Date | null;
|
|
10
|
+
validRh?: Date | null;
|
|
11
|
+
motifAsk?: string | null;
|
|
12
|
+
commentResponse?: string | null;
|
|
13
|
+
dateStartHoliday?: Date | null;
|
|
14
|
+
dateEndHoliday?: Date | null;
|
|
15
|
+
refused?: boolean | null;
|
|
16
|
+
isSolidarite?: boolean;
|
|
17
|
+
idTypeAbsence?: number | null;
|
|
18
|
+
idUserAsk?: number | null;
|
|
19
|
+
idUserValidRh?: number | null;
|
|
20
|
+
idUserValidService?: number | null;
|
|
21
|
+
idFile?: number | null;
|
|
22
|
+
createdAt?: Date | null;
|
|
23
|
+
updatedAt?: Date | null;
|
|
24
|
+
|
|
25
|
+
// Associations
|
|
26
|
+
userDemand?: IUser;
|
|
27
|
+
userValidRh?: IUser;
|
|
28
|
+
userValidService?: IUser;
|
|
29
|
+
typeAbsence?: IAbsenceType;
|
|
30
|
+
file?: IFile;
|
|
31
|
+
absenceRequestTimes?: IAbsenceRequestTime[];
|
|
32
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IAbsenceRequest } from './IAbsenceRequest';
|
|
2
|
+
|
|
3
|
+
// absenceRequestTime
|
|
4
|
+
export interface IAbsenceRequestTime {
|
|
5
|
+
id?: number;
|
|
6
|
+
type: number;
|
|
7
|
+
idAbsenceRequest?: number | null;
|
|
8
|
+
startDate: Date | null;
|
|
9
|
+
endDate: Date | null;
|
|
10
|
+
createdAt?: Date | null;
|
|
11
|
+
updatedAt?: Date | null;
|
|
12
|
+
|
|
13
|
+
// Associations
|
|
14
|
+
absenceRequest?: IAbsenceRequest;
|
|
15
|
+
}
|
|
@@ -18,12 +18,14 @@ export interface ICalendarEvent {
|
|
|
18
18
|
idSociety: number | null;
|
|
19
19
|
idExercice: number | null;
|
|
20
20
|
idType: number | null;
|
|
21
|
+
idTimeCounterType: number | null;
|
|
21
22
|
typeComptable: number | null;
|
|
22
23
|
isDone: boolean;
|
|
23
24
|
callState: number | null;
|
|
24
25
|
idRecurrence: number | null;
|
|
25
26
|
idTask?: number;
|
|
26
27
|
idPlace: number | null;
|
|
28
|
+
validatedAt?: Date | null;
|
|
27
29
|
createdAt?: Date | null;
|
|
28
30
|
updatedAt?: Date | null;
|
|
29
31
|
|
|
@@ -4,13 +4,13 @@ import { IEmployee } from './IEmployee';
|
|
|
4
4
|
// workingSchedule
|
|
5
5
|
export interface IWorkingSchedule {
|
|
6
6
|
id?: number;
|
|
7
|
-
morningStart
|
|
8
|
-
morningEnd
|
|
9
|
-
afternoonStart
|
|
10
|
-
afternoonEnd
|
|
7
|
+
morningStart?: Date | null;
|
|
8
|
+
morningEnd?: Date | null;
|
|
9
|
+
afternoonStart?: Date | null;
|
|
10
|
+
afternoonEnd?: Date | null;
|
|
11
11
|
idDay: number;
|
|
12
|
-
idEmployee
|
|
13
|
-
idUser
|
|
12
|
+
idEmployee?: number | null;
|
|
13
|
+
idUser?: number | null;
|
|
14
14
|
createdAt?: Date | null;
|
|
15
15
|
updatedAt?: Date | null;
|
|
16
16
|
|