@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.
Files changed (241) hide show
  1. package/es/api/resources/CalendarEvent.d.ts +10 -0
  2. package/es/api/resources/CalendarEvent.d.ts.map +1 -0
  3. package/es/api/resources/CalendarEvent.js +19 -0
  4. package/es/api/resources/CalendarEvent.js.map +1 -0
  5. package/es/api/resources/TimeRecorder.d.ts +8 -0
  6. package/es/api/resources/TimeRecorder.d.ts.map +1 -0
  7. package/es/api/resources/TimeRecorder.js +13 -0
  8. package/es/api/resources/TimeRecorder.js.map +1 -0
  9. package/es/api/resources/User.d.ts +3 -1
  10. package/es/api/resources/User.d.ts.map +1 -1
  11. package/es/api/resources/User.js +31 -0
  12. package/es/api/resources/User.js.map +1 -1
  13. package/es/api/resources/WorkingSchedule.d.ts +2 -0
  14. package/es/api/resources/WorkingSchedule.d.ts.map +1 -1
  15. package/es/api/resources/WorkingSchedule.js +5 -0
  16. package/es/api/resources/WorkingSchedule.js.map +1 -1
  17. package/es/api/resources.d.ts +4 -0
  18. package/es/api/resources.d.ts.map +1 -1
  19. package/es/api/resources.js +4 -0
  20. package/es/api/resources.js.map +1 -1
  21. package/es/types/Enum/AbsenceType.d.ts +9 -0
  22. package/es/types/Enum/AbsenceType.d.ts.map +1 -0
  23. package/es/types/Enum/AbsenceType.js +10 -0
  24. package/es/types/Enum/AbsenceType.js.map +1 -0
  25. package/es/types/Enum/Role.d.ts +2 -1
  26. package/es/types/Enum/Role.d.ts.map +1 -1
  27. package/es/types/Enum/Role.js +1 -0
  28. package/es/types/Enum/Role.js.map +1 -1
  29. package/es/types/Enum/RoleDetail.d.ts +6 -0
  30. package/es/types/Enum/RoleDetail.d.ts.map +1 -1
  31. package/es/types/Enum/RoleDetail.js +6 -0
  32. package/es/types/Enum/RoleDetail.js.map +1 -1
  33. package/es/types/Enum/TimeCounterType.d.ts +118 -0
  34. package/es/types/Enum/TimeCounterType.d.ts.map +1 -0
  35. package/es/types/Enum/TimeCounterType.js +118 -0
  36. package/es/types/Enum/TimeCounterType.js.map +1 -0
  37. package/es/types/Interface/api/calendarEvent/createCalendarEvent.d.ts +3 -1
  38. package/es/types/Interface/api/calendarEvent/createCalendarEvent.d.ts.map +1 -1
  39. package/es/types/Interface/api/calendarEvent/createCalendarEvent.js +9 -1
  40. package/es/types/Interface/api/calendarEvent/createCalendarEvent.js.map +1 -1
  41. package/es/types/Interface/api/calendarEvent/createCalendarEventForUsers.d.ts +21 -0
  42. package/es/types/Interface/api/calendarEvent/createCalendarEventForUsers.d.ts.map +1 -0
  43. package/es/types/Interface/api/calendarEvent/createCalendarEventForUsers.js +85 -0
  44. package/es/types/Interface/api/calendarEvent/createCalendarEventForUsers.js.map +1 -0
  45. package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.d.ts +7 -0
  46. package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.d.ts.map +1 -0
  47. package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.js +29 -0
  48. package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +1 -0
  49. package/es/types/Interface/api/calendarEvent/queryCalendarEvent.d.ts +5 -0
  50. package/es/types/Interface/api/calendarEvent/queryCalendarEvent.d.ts.map +1 -0
  51. package/es/types/Interface/api/calendarEvent/queryCalendarEvent.js +31 -0
  52. package/es/types/Interface/api/calendarEvent/queryCalendarEvent.js.map +1 -0
  53. package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.d.ts +13 -0
  54. package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.d.ts.map +1 -0
  55. package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.js +2 -0
  56. package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.js.map +1 -0
  57. package/es/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts +20 -0
  58. package/es/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts.map +1 -0
  59. package/es/types/Interface/api/calendarEvent/updateCalendarEvent.js +81 -0
  60. package/es/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -0
  61. package/es/types/Interface/api/timeRecorder/QueryAttendance.d.ts +5 -0
  62. package/es/types/Interface/api/timeRecorder/QueryAttendance.d.ts.map +1 -0
  63. package/es/types/Interface/api/timeRecorder/QueryAttendance.js +26 -0
  64. package/es/types/Interface/api/timeRecorder/QueryAttendance.js.map +1 -0
  65. package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.d.ts +9 -0
  66. package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.d.ts.map +1 -0
  67. package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.js +50 -0
  68. package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.js.map +1 -0
  69. package/es/types/Interface/api/timeRecorder/ReadAttendanceHours.d.ts +5 -0
  70. package/es/types/Interface/api/timeRecorder/ReadAttendanceHours.d.ts.map +1 -0
  71. package/es/types/Interface/api/timeRecorder/ReadAttendanceHours.js +2 -0
  72. package/es/types/Interface/api/timeRecorder/ReadAttendanceHours.js.map +1 -0
  73. package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.d.ts +21 -0
  74. package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.d.ts.map +1 -0
  75. package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.js +2 -0
  76. package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.js.map +1 -0
  77. package/es/types/Interface/api/timeRecorder/ReadUsersNotConnected.d.ts +7 -0
  78. package/es/types/Interface/api/timeRecorder/ReadUsersNotConnected.d.ts.map +1 -0
  79. package/es/types/Interface/api/timeRecorder/ReadUsersNotConnected.js +2 -0
  80. package/es/types/Interface/api/timeRecorder/ReadUsersNotConnected.js.map +1 -0
  81. package/es/types/Interface/api/user/CollaboratorsByRoles.d.ts +6 -0
  82. package/es/types/Interface/api/user/CollaboratorsByRoles.d.ts.map +1 -0
  83. package/es/types/Interface/api/user/CollaboratorsByRoles.js +2 -0
  84. package/es/types/Interface/api/user/CollaboratorsByRoles.js.map +1 -0
  85. package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +3 -0
  86. package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
  87. package/es/types/Interface/api/user/ParamsGetAllCollaborators.js +19 -1
  88. package/es/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  89. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts +4 -0
  90. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +1 -0
  91. package/es/types/Interface/api/user/QueryGetAllCollaborators.js +22 -0
  92. package/es/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -0
  93. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts +4 -0
  94. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts.map +1 -0
  95. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +22 -0
  96. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +1 -0
  97. package/es/types/Interface/api/workingSchedule/QueryDailyHour.d.ts +13 -0
  98. package/es/types/Interface/api/workingSchedule/QueryDailyHour.d.ts.map +1 -0
  99. package/es/types/Interface/api/workingSchedule/QueryDailyHour.js +2 -0
  100. package/es/types/Interface/api/workingSchedule/QueryDailyHour.js.map +1 -0
  101. package/es/types/Interface/enum/Date.d.ts +7 -0
  102. package/es/types/Interface/enum/Date.d.ts.map +1 -0
  103. package/es/types/Interface/enum/Date.js +2 -0
  104. package/es/types/Interface/enum/Date.js.map +1 -0
  105. package/es/types/Interface/models/IAbsenceRequest.d.ts +29 -0
  106. package/es/types/Interface/models/IAbsenceRequest.d.ts.map +1 -0
  107. package/es/types/Interface/models/IAbsenceRequest.js +2 -0
  108. package/es/types/Interface/models/IAbsenceRequest.js.map +1 -0
  109. package/es/types/Interface/models/IAbsenceRequestTime.d.ts +12 -0
  110. package/es/types/Interface/models/IAbsenceRequestTime.d.ts.map +1 -0
  111. package/es/types/Interface/models/IAbsenceRequestTime.js +2 -0
  112. package/es/types/Interface/models/IAbsenceRequestTime.js.map +1 -0
  113. package/es/types/Interface/models/ICalendarEvent.d.ts +2 -0
  114. package/es/types/Interface/models/ICalendarEvent.d.ts.map +1 -1
  115. package/es/types/Interface/models/ICalendarEvent.js.map +1 -1
  116. package/es/types/Interface/models/ITimeRecorder.d.ts +10 -0
  117. package/es/types/Interface/models/ITimeRecorder.d.ts.map +1 -0
  118. package/es/types/Interface/models/ITimeRecorder.js +2 -0
  119. package/es/types/Interface/models/ITimeRecorder.js.map +1 -0
  120. package/es/types/Interface/models/IUser.d.ts +1 -0
  121. package/es/types/Interface/models/IUser.d.ts.map +1 -1
  122. package/es/types/Interface/models/IUser.js.map +1 -1
  123. package/es/types/Interface/models/IWorkingSchedule.d.ts +6 -6
  124. package/es/types/Interface/models/IWorkingSchedule.d.ts.map +1 -1
  125. package/es/types/Interface/models/IWorkingSchedule.js.map +1 -1
  126. package/es/types/index.d.ts +20 -2
  127. package/es/types/index.d.ts.map +1 -1
  128. package/es/types/index.js +20 -2
  129. package/es/types/index.js.map +1 -1
  130. package/es/utils/webmail.d.ts.map +1 -1
  131. package/es/utils/webmail.js +3 -0
  132. package/es/utils/webmail.js.map +1 -1
  133. package/js/api/resources/CalendarEvent.js +38 -0
  134. package/js/api/resources/CalendarEvent.js.map +1 -0
  135. package/js/api/resources/TimeRecorder.js +32 -0
  136. package/js/api/resources/TimeRecorder.js.map +1 -0
  137. package/js/api/resources/User.js +18 -0
  138. package/js/api/resources/User.js.map +1 -1
  139. package/js/api/resources/WorkingSchedule.js +10 -0
  140. package/js/api/resources/WorkingSchedule.js.map +1 -1
  141. package/js/api/resources.js +6 -0
  142. package/js/api/resources.js.map +1 -1
  143. package/js/types/Enum/AbsenceType.js +16 -0
  144. package/js/types/Enum/AbsenceType.js.map +1 -0
  145. package/js/types/Enum/Role.js +1 -0
  146. package/js/types/Enum/Role.js.map +1 -1
  147. package/js/types/Enum/RoleDetail.js +6 -0
  148. package/js/types/Enum/RoleDetail.js.map +1 -1
  149. package/js/types/Enum/TimeCounterType.js +126 -0
  150. package/js/types/Enum/TimeCounterType.js.map +1 -0
  151. package/js/types/Interface/api/calendarEvent/createCalendarEvent.js +5 -1
  152. package/js/types/Interface/api/calendarEvent/createCalendarEvent.js.map +1 -1
  153. package/js/types/Interface/api/calendarEvent/createCalendarEventForUsers.js +61 -0
  154. package/js/types/Interface/api/calendarEvent/createCalendarEventForUsers.js.map +1 -0
  155. package/js/types/Interface/api/calendarEvent/getAllCalendarEvent.js +33 -0
  156. package/js/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +1 -0
  157. package/js/types/Interface/api/calendarEvent/queryCalendarEvent.js +37 -0
  158. package/js/types/Interface/api/calendarEvent/queryCalendarEvent.js.map +1 -0
  159. package/js/types/Interface/api/calendarEvent/readAllCalendarEvent.js +6 -0
  160. package/js/types/Interface/api/calendarEvent/readAllCalendarEvent.js.map +1 -0
  161. package/js/types/Interface/api/calendarEvent/updateCalendarEvent.js +59 -0
  162. package/js/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -0
  163. package/js/types/Interface/api/timeRecorder/QueryAttendance.js +31 -0
  164. package/js/types/Interface/api/timeRecorder/QueryAttendance.js.map +1 -0
  165. package/js/types/Interface/api/timeRecorder/QueryPaginatedDelays.js +43 -0
  166. package/js/types/Interface/api/timeRecorder/QueryPaginatedDelays.js.map +1 -0
  167. package/js/types/Interface/api/timeRecorder/ReadAttendanceHours.js +6 -0
  168. package/js/types/Interface/api/timeRecorder/ReadAttendanceHours.js.map +1 -0
  169. package/js/types/Interface/api/timeRecorder/ReadPaginatedDelays.js +6 -0
  170. package/js/types/Interface/api/timeRecorder/ReadPaginatedDelays.js.map +1 -0
  171. package/js/types/Interface/api/timeRecorder/ReadUsersNotConnected.js +6 -0
  172. package/js/types/Interface/api/timeRecorder/ReadUsersNotConnected.js.map +1 -0
  173. package/js/types/Interface/api/user/CollaboratorsByRoles.js +6 -0
  174. package/js/types/Interface/api/user/CollaboratorsByRoles.js.map +1 -0
  175. package/js/types/Interface/api/user/ParamsGetAllCollaborators.js +6 -0
  176. package/js/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  177. package/js/types/Interface/api/user/QueryGetAllCollaborators.js +32 -0
  178. package/js/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -0
  179. package/js/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +32 -0
  180. package/js/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +1 -0
  181. package/js/types/Interface/{models/IAskAbsenceTimes.js → api/workingSchedule/QueryDailyHour.js} +1 -1
  182. package/js/types/Interface/api/workingSchedule/QueryDailyHour.js.map +1 -0
  183. package/js/types/Interface/{models/IAskAbsence.js → enum/Date.js} +1 -1
  184. package/js/types/Interface/enum/Date.js.map +1 -0
  185. package/js/types/Interface/models/IAbsenceRequest.js +6 -0
  186. package/js/types/Interface/models/IAbsenceRequest.js.map +1 -0
  187. package/js/types/Interface/models/IAbsenceRequestTime.js +6 -0
  188. package/js/types/Interface/models/IAbsenceRequestTime.js.map +1 -0
  189. package/js/types/Interface/models/ITimeRecorder.js +6 -0
  190. package/js/types/Interface/models/ITimeRecorder.js.map +1 -0
  191. package/js/types/index.js +222 -6
  192. package/js/types/index.js.map +1 -1
  193. package/js/utils/webmail.js +2 -0
  194. package/js/utils/webmail.js.map +1 -1
  195. package/package.json +1 -1
  196. package/ts/api/resources/CalendarEvent.ts +26 -0
  197. package/ts/api/resources/TimeRecorder.ts +18 -0
  198. package/ts/api/resources/User.ts +31 -2
  199. package/ts/api/resources/WorkingSchedule.ts +7 -0
  200. package/ts/api/resources.ts +4 -0
  201. package/ts/types/Enum/AbsenceType.ts +8 -0
  202. package/ts/types/Enum/Role.ts +1 -0
  203. package/ts/types/Enum/RoleDetail.ts +6 -0
  204. package/ts/types/Enum/TimeCounterType.ts +118 -0
  205. package/ts/types/Interface/api/calendarEvent/createCalendarEvent.ts +8 -2
  206. package/ts/types/Interface/api/calendarEvent/createCalendarEventForUsers.ts +57 -0
  207. package/ts/types/Interface/api/calendarEvent/getAllCalendarEvent.ts +15 -0
  208. package/ts/types/Interface/api/calendarEvent/queryCalendarEvent.ts +21 -0
  209. package/ts/types/Interface/api/calendarEvent/readAllCalendarEvent.ts +12 -0
  210. package/ts/types/Interface/api/calendarEvent/updateCalendarEvent.ts +54 -0
  211. package/ts/types/Interface/api/timeRecorder/QueryAttendance.ts +14 -0
  212. package/ts/types/Interface/api/timeRecorder/QueryPaginatedDelays.ts +36 -0
  213. package/ts/types/Interface/api/timeRecorder/ReadAttendanceHours.ts +4 -0
  214. package/ts/types/Interface/api/timeRecorder/ReadPaginatedDelays.ts +21 -0
  215. package/ts/types/Interface/api/timeRecorder/ReadUsersNotConnected.ts +6 -0
  216. package/ts/types/Interface/api/user/CollaboratorsByRoles.ts +6 -0
  217. package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +16 -0
  218. package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +11 -0
  219. package/ts/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.ts +11 -0
  220. package/ts/types/Interface/api/workingSchedule/QueryDailyHour.ts +12 -0
  221. package/ts/types/Interface/enum/Date.ts +6 -0
  222. package/ts/types/Interface/models/IAbsenceRequest.ts +32 -0
  223. package/ts/types/Interface/models/IAbsenceRequestTime.ts +15 -0
  224. package/ts/types/Interface/models/ICalendarEvent.ts +2 -0
  225. package/ts/types/Interface/models/ITimeRecorder.ts +10 -0
  226. package/ts/types/Interface/models/IUser.ts +1 -0
  227. package/ts/types/Interface/models/IWorkingSchedule.ts +6 -6
  228. package/ts/types/index.ts +20 -2
  229. package/ts/utils/webmail.ts +2 -0
  230. package/es/types/Interface/models/IAskAbsence.d.ts +0 -29
  231. package/es/types/Interface/models/IAskAbsence.d.ts.map +0 -1
  232. package/es/types/Interface/models/IAskAbsence.js +0 -2
  233. package/es/types/Interface/models/IAskAbsence.js.map +0 -1
  234. package/es/types/Interface/models/IAskAbsenceTimes.d.ts +0 -12
  235. package/es/types/Interface/models/IAskAbsenceTimes.d.ts.map +0 -1
  236. package/es/types/Interface/models/IAskAbsenceTimes.js +0 -2
  237. package/es/types/Interface/models/IAskAbsenceTimes.js.map +0 -1
  238. package/js/types/Interface/models/IAskAbsence.js.map +0 -1
  239. package/js/types/Interface/models/IAskAbsenceTimes.js.map +0 -1
  240. package/ts/types/Interface/models/IAskAbsence.ts +0 -32
  241. package/ts/types/Interface/models/IAskAbsenceTimes.ts +0 -15
@@ -0,0 +1,8 @@
1
+ export enum AbsenceType {
2
+ DAY_OFF = 1,
3
+ RTT = 2,
4
+ HOUR_CHANGE = 3,
5
+ ABSENCE = 4,
6
+ OVERTIME = 5,
7
+ REMOTE = 6,
8
+ }
@@ -33,4 +33,5 @@ export enum Role {
33
33
  EXPRESS_MANAGER = 40,
34
34
  CONFLICT_MANAGER = 41,
35
35
  ATTESTATION_MANAGER = 42,
36
+ JURIDICAL_SUPPORT = 43,
36
37
  }
@@ -207,4 +207,10 @@ export const RoleDetail = {
207
207
  colorPrimary: '#8765D0',
208
208
  colorSecondary: '#DED7F6',
209
209
  },
210
+ JURIDICAL_SUPPORT: {
211
+ id: 43,
212
+ name: 'Support juridique',
213
+ colorPrimary: '#8765D0',
214
+ colorSecondary: '#DED7F6',
215
+ },
210
216
  };
@@ -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
- @ApiProperty()
11
- dateEnd: Date;
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,12 @@
1
+ export interface ReadAllCalendarEvent {
2
+ id: number,
3
+ title: string,
4
+ start: string,
5
+ end: string,
6
+ content: string,
7
+ idTimeCounterType?: number
8
+ validatedAt?: Date,
9
+ deletable?: boolean,
10
+ resizable?: boolean,
11
+ draggable?: boolean,
12
+ }
@@ -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,4 @@
1
+ export interface ReadAttendanceHours {
2
+ idUser: number;
3
+ datas: any[];
4
+ }
@@ -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
+ }
@@ -0,0 +1,6 @@
1
+ export interface ReadUsersNotConnected {
2
+ idUser: number;
3
+ firstname: string;
4
+ lastname: string;
5
+ theoreticalHour: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { IUser } from '../../models/IUser';
2
+
3
+ export interface CollaboratorsByRoles {
4
+ idRole: number,
5
+ members: IUser[]
6
+ }
@@ -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,11 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class QueryGetAllCollaborators {
4
+ @ApiProperty({
5
+ description: 'filtering users id',
6
+ required: false,
7
+ type: [Number],
8
+ example: [1, 13],
9
+ })
10
+ idUser?: number[];
11
+ }
@@ -0,0 +1,11 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class QueryGetAllCollaboratorsByRoles {
4
+ @ApiProperty({
5
+ description: 'roles used for group users',
6
+ required: true,
7
+ type: [Number],
8
+ example: [1, 13],
9
+ })
10
+ idRoles: number[];
11
+ }
@@ -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,6 @@
1
+ export interface DateRange {
2
+ start: string;
3
+ end: string;
4
+ from?: number;
5
+ to?: number;
6
+ }
@@ -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
 
@@ -0,0 +1,10 @@
1
+ // TimeRecorder alias of pointeuseRh
2
+ export interface ITimeRecorder {
3
+ id?: number;
4
+ date: Date;
5
+ startTime?: string | null;
6
+ endTime?: string | null;
7
+ idUser: number;
8
+ createdAt?: Date | null;
9
+ updatedAt?: Date | null;
10
+ }
@@ -67,6 +67,7 @@ export interface IUser {
67
67
  startOnboarding?: Date | null;
68
68
  societyByDefault?: number | null;
69
69
  longAbsence?: boolean | null;
70
+ isDailyContract?: boolean | null;
70
71
  internationalPhone?: string | null;
71
72
  isThemeLight?: boolean;
72
73
  createdAt?: Date | null;
@@ -4,13 +4,13 @@ import { IEmployee } from './IEmployee';
4
4
  // workingSchedule
5
5
  export interface IWorkingSchedule {
6
6
  id?: number;
7
- morningStart: Date | null;
8
- morningEnd: Date | null;
9
- afternoonStart: Date | null;
10
- afternoonEnd: Date | null;
7
+ morningStart?: Date | null;
8
+ morningEnd?: Date | null;
9
+ afternoonStart?: Date | null;
10
+ afternoonEnd?: Date | null;
11
11
  idDay: number;
12
- idEmployee: number | null;
13
- idUser: number | null;
12
+ idEmployee?: number | null;
13
+ idUser?: number | null;
14
14
  createdAt?: Date | null;
15
15
  updatedAt?: Date | null;
16
16