@silexpert/core 0.4.207 → 0.4.208
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/Comment.d.ts +6 -0
- package/es/api/resources/Comment.d.ts.map +1 -0
- package/es/api/resources/Comment.js +7 -0
- package/es/api/resources/Comment.js.map +1 -0
- package/es/api/resources/Task.d.ts +16 -0
- package/es/api/resources/Task.d.ts.map +1 -0
- package/es/api/resources/Task.js +67 -0
- package/es/api/resources/Task.js.map +1 -0
- 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/InternalService.d.ts +31 -0
- package/es/types/Enum/InternalService.d.ts.map +1 -0
- package/es/types/Enum/InternalService.js +31 -0
- package/es/types/Enum/InternalService.js.map +1 -0
- package/es/types/Enum/TaskResponseType.d.ts +360 -0
- package/es/types/Enum/TaskResponseType.d.ts.map +1 -0
- package/es/types/Enum/TaskResponseType.js +362 -0
- package/es/types/Enum/TaskResponseType.js.map +1 -0
- package/es/types/Interface/api/task/QueryCountTask.d.ts +6 -0
- package/es/types/Interface/api/task/QueryCountTask.d.ts.map +1 -0
- package/es/types/Interface/api/task/QueryCountTask.js +32 -0
- package/es/types/Interface/api/task/QueryCountTask.js.map +1 -0
- package/es/types/Interface/api/task/QueryCreateTask.d.ts +8 -0
- package/es/types/Interface/api/task/QueryCreateTask.d.ts.map +1 -0
- package/es/types/Interface/api/task/QueryCreateTask.js +38 -0
- package/es/types/Interface/api/task/QueryCreateTask.js.map +1 -0
- package/es/types/Interface/api/task/QueryGetAllTask.d.ts +8 -0
- package/es/types/Interface/api/task/QueryGetAllTask.d.ts.map +1 -0
- package/es/types/Interface/api/task/QueryGetAllTask.js +52 -0
- package/es/types/Interface/api/task/QueryGetAllTask.js.map +1 -0
- package/es/types/Interface/api/task/QueryGetTask.d.ts +5 -0
- package/es/types/Interface/api/task/QueryGetTask.d.ts.map +1 -0
- package/es/types/Interface/api/task/QueryGetTask.js +31 -0
- package/es/types/Interface/api/task/QueryGetTask.js.map +1 -0
- package/es/types/Interface/api/task/QueryPaginatedTask.d.ts +20 -0
- package/es/types/Interface/api/task/QueryPaginatedTask.d.ts.map +1 -0
- package/es/types/Interface/api/task/QueryPaginatedTask.js +131 -0
- package/es/types/Interface/api/task/QueryPaginatedTask.js.map +1 -0
- package/es/types/Interface/api/task/QueryStatsByManager.d.ts +6 -0
- package/es/types/Interface/api/task/QueryStatsByManager.d.ts.map +1 -0
- package/es/types/Interface/api/task/QueryStatsByManager.js +2 -0
- package/es/types/Interface/api/task/QueryStatsByManager.js.map +1 -0
- package/es/types/Interface/api/task/QueryStatsByRolesInCsv.d.ts +7 -0
- package/es/types/Interface/api/task/QueryStatsByRolesInCsv.d.ts.map +1 -0
- package/es/types/Interface/api/task/QueryStatsByRolesInCsv.js +40 -0
- package/es/types/Interface/api/task/QueryStatsByRolesInCsv.js.map +1 -0
- package/es/types/Interface/api/task/QueryStatsByServiceInCsv.d.ts +5 -0
- package/es/types/Interface/api/task/QueryStatsByServiceInCsv.d.ts.map +1 -0
- package/es/types/Interface/api/task/QueryStatsByServiceInCsv.js +26 -0
- package/es/types/Interface/api/task/QueryStatsByServiceInCsv.js.map +1 -0
- package/es/types/Interface/api/task/QueryStatsByTaskTypeInCsv.d.ts +5 -0
- package/es/types/Interface/api/task/QueryStatsByTaskTypeInCsv.d.ts.map +1 -0
- package/es/types/Interface/api/task/QueryStatsByTaskTypeInCsv.js +26 -0
- package/es/types/Interface/api/task/QueryStatsByTaskTypeInCsv.js.map +1 -0
- package/es/types/Interface/models/ICalendarEvent.d.ts +3 -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/IComment.d.ts +3 -0
- package/es/types/Interface/models/IComment.d.ts.map +1 -1
- package/es/types/Interface/models/IComment.js.map +1 -1
- package/es/types/Interface/models/IMail.d.ts +3 -0
- package/es/types/Interface/models/IMail.d.ts.map +1 -1
- package/es/types/Interface/models/IMail.js.map +1 -1
- package/es/types/Interface/models/ITask.d.ts +33 -0
- package/es/types/Interface/models/ITask.d.ts.map +1 -0
- package/es/types/Interface/models/ITask.js +2 -0
- package/es/types/Interface/models/ITask.js.map +1 -0
- package/es/types/index.d.ts +12 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +12 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.d.ts.map +1 -1
- package/es/utils/index.js +1 -0
- package/es/utils/index.js.map +1 -1
- package/es/utils/task.d.ts +4 -0
- package/es/utils/task.d.ts.map +1 -0
- package/es/utils/task.js +41 -0
- package/es/utils/task.js.map +1 -0
- package/js/api/resources/Comment.js +18 -0
- package/js/api/resources/Comment.js.map +1 -0
- package/js/api/resources/Task.js +129 -0
- package/js/api/resources/Task.js.map +1 -0
- package/js/api/resources.js +7 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/InternalService.js +36 -0
- package/js/types/Enum/InternalService.js.map +1 -0
- package/js/types/Enum/TaskResponseType.js +371 -0
- package/js/types/Enum/TaskResponseType.js.map +1 -0
- package/js/types/Interface/api/task/QueryCountTask.js +33 -0
- package/js/types/Interface/api/task/QueryCountTask.js.map +1 -0
- package/js/types/Interface/api/task/QueryCreateTask.js +37 -0
- package/js/types/Interface/api/task/QueryCreateTask.js.map +1 -0
- package/js/types/Interface/api/task/QueryGetAllTask.js +45 -0
- package/js/types/Interface/api/task/QueryGetAllTask.js.map +1 -0
- package/js/types/Interface/api/task/QueryGetTask.js +37 -0
- package/js/types/Interface/api/task/QueryGetTask.js.map +1 -0
- package/js/types/Interface/api/task/QueryPaginatedTask.js +87 -0
- package/js/types/Interface/api/task/QueryPaginatedTask.js.map +1 -0
- package/js/types/Interface/api/task/QueryStatsByManager.js +6 -0
- package/js/types/Interface/api/task/QueryStatsByManager.js.map +1 -0
- package/js/types/Interface/api/task/QueryStatsByRolesInCsv.js +39 -0
- package/js/types/Interface/api/task/QueryStatsByRolesInCsv.js.map +1 -0
- package/js/types/Interface/api/task/QueryStatsByServiceInCsv.js +31 -0
- package/js/types/Interface/api/task/QueryStatsByServiceInCsv.js.map +1 -0
- package/js/types/Interface/api/task/QueryStatsByTaskTypeInCsv.js +31 -0
- package/js/types/Interface/api/task/QueryStatsByTaskTypeInCsv.js.map +1 -0
- package/js/types/Interface/models/ITask.js +6 -0
- package/js/types/Interface/models/ITask.js.map +1 -0
- package/js/types/index.js +144 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/index.js +12 -0
- package/js/utils/index.js.map +1 -1
- package/js/utils/task.js +48 -0
- package/js/utils/task.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/Comment.ts +10 -0
- package/ts/api/resources/Task.ts +68 -0
- package/ts/api/resources.ts +4 -0
- package/ts/types/Enum/InternalService.ts +30 -0
- package/ts/types/Enum/TaskResponseType.ts +361 -0
- package/ts/types/Interface/api/task/QueryCountTask.ts +23 -0
- package/ts/types/Interface/api/task/QueryCreateTask.ts +23 -0
- package/ts/types/Interface/api/task/QueryGetAllTask.ts +39 -0
- package/ts/types/Interface/api/task/QueryGetTask.ts +21 -0
- package/ts/types/Interface/api/task/QueryPaginatedTask.ts +100 -0
- package/ts/types/Interface/api/task/QueryStatsByManager.ts +5 -0
- package/ts/types/Interface/api/task/QueryStatsByRolesInCsv.ts +28 -0
- package/ts/types/Interface/api/task/QueryStatsByServiceInCsv.ts +16 -0
- package/ts/types/Interface/api/task/QueryStatsByTaskTypeInCsv.ts +16 -0
- package/ts/types/Interface/models/ICalendarEvent.ts +3 -0
- package/ts/types/Interface/models/IComment.ts +3 -0
- package/ts/types/Interface/models/IMail.ts +3 -0
- package/ts/types/Interface/models/ITask.ts +35 -0
- package/ts/types/index.ts +12 -0
- package/ts/utils/index.ts +1 -0
- package/ts/utils/task.ts +37 -0
package/ts/api/resources.ts
CHANGED
|
@@ -76,7 +76,9 @@ import { Checklist } from './resources/Checklist';
|
|
|
76
76
|
import { Lettering } from './resources/Lettering';
|
|
77
77
|
import { Notification } from './resources/Notification';
|
|
78
78
|
import { Mobile } from './resources/Mobile';
|
|
79
|
+
import { Task } from './resources/Task';
|
|
79
80
|
import { SocietyEvent } from './resources/SocietyEvent';
|
|
81
|
+
import { Comment } from './resources/Comment';
|
|
80
82
|
|
|
81
83
|
export const resources = {
|
|
82
84
|
simulation: Simulation,
|
|
@@ -158,4 +160,6 @@ export const resources = {
|
|
|
158
160
|
mobile: Mobile,
|
|
159
161
|
notification: Notification,
|
|
160
162
|
societyEvent: SocietyEvent,
|
|
163
|
+
task: Task,
|
|
164
|
+
comment: Comment,
|
|
161
165
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export const InternalService = {
|
|
2
|
+
COMMERCIAL: {
|
|
3
|
+
idRole: 9,
|
|
4
|
+
name: 'Commercial',
|
|
5
|
+
},
|
|
6
|
+
CUSTOMER_SUCCESS: {
|
|
7
|
+
idRole: 10,
|
|
8
|
+
name: 'Customer success',
|
|
9
|
+
},
|
|
10
|
+
SOCIAL: {
|
|
11
|
+
idRole: 11,
|
|
12
|
+
name: 'Social',
|
|
13
|
+
},
|
|
14
|
+
JURIDIQUE: {
|
|
15
|
+
idRole: 12,
|
|
16
|
+
name: 'Juridique',
|
|
17
|
+
},
|
|
18
|
+
FACTURATION: {
|
|
19
|
+
idRole: 34,
|
|
20
|
+
name: 'Facturation',
|
|
21
|
+
},
|
|
22
|
+
FRONT_OFFICE: {
|
|
23
|
+
idRole: 3,
|
|
24
|
+
name: 'Front office',
|
|
25
|
+
},
|
|
26
|
+
EXPERT_ACCOUNTANT: {
|
|
27
|
+
idRole: 20,
|
|
28
|
+
name: 'Expert comptable',
|
|
29
|
+
},
|
|
30
|
+
};
|
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
export enum ResponseType {
|
|
2
|
+
MAIL = 1,
|
|
3
|
+
CALL = 2,
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export enum StateTask {
|
|
7
|
+
TODO = 1,
|
|
8
|
+
DO = 2,
|
|
9
|
+
NOTDO = 3,
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const TaskResponseType = {
|
|
13
|
+
DEMANDE_ATTESTATION: {
|
|
14
|
+
id: 1,
|
|
15
|
+
label: 'Demande attestation',
|
|
16
|
+
responseType: ResponseType.MAIL,
|
|
17
|
+
min: 3,
|
|
18
|
+
max: 72,
|
|
19
|
+
default: 24,
|
|
20
|
+
weight: 2,
|
|
21
|
+
isExterne: true,
|
|
22
|
+
idMailAuto: null,
|
|
23
|
+
schedule: 15,
|
|
24
|
+
},
|
|
25
|
+
FAIRE_COURRIER: {
|
|
26
|
+
id: 2,
|
|
27
|
+
label: 'Faire courrier',
|
|
28
|
+
responseType: null,
|
|
29
|
+
min: 1,
|
|
30
|
+
max: 96,
|
|
31
|
+
default: 24,
|
|
32
|
+
weight: 4,
|
|
33
|
+
isExterne: false,
|
|
34
|
+
idMailAuto: null,
|
|
35
|
+
schedule: 30,
|
|
36
|
+
},
|
|
37
|
+
ACTIVER_ONGLET_SOCIAL: {
|
|
38
|
+
id: 3,
|
|
39
|
+
label: 'Activer l\'onglet social',
|
|
40
|
+
responseType: ResponseType.MAIL,
|
|
41
|
+
min: 3,
|
|
42
|
+
max: 72,
|
|
43
|
+
default: 24,
|
|
44
|
+
weight: 1,
|
|
45
|
+
isExterne: true,
|
|
46
|
+
idMailAuto: null,
|
|
47
|
+
schedule: 15,
|
|
48
|
+
},
|
|
49
|
+
SUPPORT_TECHNIQUE: {
|
|
50
|
+
id: 4,
|
|
51
|
+
label: 'Support technique',
|
|
52
|
+
responseType: ResponseType.CALL,
|
|
53
|
+
min: 0.5,
|
|
54
|
+
max: 48,
|
|
55
|
+
default: 24,
|
|
56
|
+
weight: 6,
|
|
57
|
+
isExterne: true,
|
|
58
|
+
idMailAuto: null,
|
|
59
|
+
schedule: 15,
|
|
60
|
+
},
|
|
61
|
+
SUIVI_BILAN: {
|
|
62
|
+
id: 5,
|
|
63
|
+
label: 'Suivi bilan',
|
|
64
|
+
responseType: null,
|
|
65
|
+
min: null,
|
|
66
|
+
max: null,
|
|
67
|
+
default: null,
|
|
68
|
+
weight: 9,
|
|
69
|
+
isExterne: true,
|
|
70
|
+
idMailAuto: null,
|
|
71
|
+
schedule: 30,
|
|
72
|
+
},
|
|
73
|
+
SUIVI_IS: {
|
|
74
|
+
id: 6,
|
|
75
|
+
label: 'Suivi IS',
|
|
76
|
+
responseType: null,
|
|
77
|
+
min: null,
|
|
78
|
+
max: null,
|
|
79
|
+
default: null,
|
|
80
|
+
weight: 6,
|
|
81
|
+
isExterne: true,
|
|
82
|
+
idMailAuto: null,
|
|
83
|
+
schedule: 15,
|
|
84
|
+
},
|
|
85
|
+
SUIVI_TVA: {
|
|
86
|
+
id: 7,
|
|
87
|
+
label: 'Suivi TVA',
|
|
88
|
+
responseType: null,
|
|
89
|
+
min: null,
|
|
90
|
+
max: null,
|
|
91
|
+
default: null,
|
|
92
|
+
weight: 6,
|
|
93
|
+
isExterne: true,
|
|
94
|
+
idMailAuto: null,
|
|
95
|
+
schedule: 15,
|
|
96
|
+
},
|
|
97
|
+
SUIVI_MISSIONS_COMPLEMENTAIRES: {
|
|
98
|
+
id: 8,
|
|
99
|
+
label: 'Suivi missions complémentaires',
|
|
100
|
+
responseType: null,
|
|
101
|
+
min: null,
|
|
102
|
+
max: null,
|
|
103
|
+
default: null,
|
|
104
|
+
weight: 6,
|
|
105
|
+
isExterne: true,
|
|
106
|
+
idMailAuto: null,
|
|
107
|
+
schedule: 30,
|
|
108
|
+
},
|
|
109
|
+
PV_AG_APPROBATION: {
|
|
110
|
+
id: 9,
|
|
111
|
+
label: 'Pv d\'AG/Approbation',
|
|
112
|
+
responseType: ResponseType.MAIL,
|
|
113
|
+
min: 3,
|
|
114
|
+
max: 72,
|
|
115
|
+
default: 24,
|
|
116
|
+
weight: 4,
|
|
117
|
+
isExterne: true,
|
|
118
|
+
idMailAuto: null,
|
|
119
|
+
schedule: 15,
|
|
120
|
+
},
|
|
121
|
+
DIVIDENDES: {
|
|
122
|
+
id: 10,
|
|
123
|
+
label: 'Dividendes',
|
|
124
|
+
responseType: ResponseType.MAIL,
|
|
125
|
+
min: 3,
|
|
126
|
+
max: 72,
|
|
127
|
+
default: 24,
|
|
128
|
+
weight: 6,
|
|
129
|
+
isExterne: true,
|
|
130
|
+
idMailAuto: null,
|
|
131
|
+
schedule: 15,
|
|
132
|
+
},
|
|
133
|
+
CREATION_SOCIETE: {
|
|
134
|
+
id: 11,
|
|
135
|
+
label: 'Creation société',
|
|
136
|
+
responseType: null,
|
|
137
|
+
min: null,
|
|
138
|
+
max: null,
|
|
139
|
+
default: null,
|
|
140
|
+
weight: 8,
|
|
141
|
+
isExterne: true,
|
|
142
|
+
idMailAuto: null,
|
|
143
|
+
schedule: 15,
|
|
144
|
+
},
|
|
145
|
+
QUESTIONS_JURIDIQUES: {
|
|
146
|
+
id: 12,
|
|
147
|
+
label: 'Questions juridiques',
|
|
148
|
+
responseType: ResponseType.CALL,
|
|
149
|
+
min: 0.5,
|
|
150
|
+
max: 48,
|
|
151
|
+
default: 24,
|
|
152
|
+
weight: 6,
|
|
153
|
+
isExterne: true,
|
|
154
|
+
idMailAuto: null,
|
|
155
|
+
schedule: 15,
|
|
156
|
+
},
|
|
157
|
+
BULLETIN_PAIE: {
|
|
158
|
+
id: 13,
|
|
159
|
+
label: 'Bulletin de paie',
|
|
160
|
+
responseType: ResponseType.MAIL,
|
|
161
|
+
min: 3,
|
|
162
|
+
max: 72,
|
|
163
|
+
default: 24,
|
|
164
|
+
weight: 2,
|
|
165
|
+
isExterne: true,
|
|
166
|
+
idMailAuto: null,
|
|
167
|
+
schedule: 15,
|
|
168
|
+
},
|
|
169
|
+
DECLARATIONS: {
|
|
170
|
+
id: 14,
|
|
171
|
+
label: 'Déclarations',
|
|
172
|
+
responseType: ResponseType.MAIL,
|
|
173
|
+
min: 3,
|
|
174
|
+
max: 72,
|
|
175
|
+
default: 24,
|
|
176
|
+
weight: 3,
|
|
177
|
+
isExterne: true,
|
|
178
|
+
idMailAuto: null,
|
|
179
|
+
schedule: 15,
|
|
180
|
+
},
|
|
181
|
+
EMBAUCHE: {
|
|
182
|
+
id: 15,
|
|
183
|
+
label: 'Embauche',
|
|
184
|
+
responseType: null,
|
|
185
|
+
min: null,
|
|
186
|
+
max: null,
|
|
187
|
+
default: null,
|
|
188
|
+
weight: 4,
|
|
189
|
+
isExterne: true,
|
|
190
|
+
idMailAuto: null,
|
|
191
|
+
schedule: 15,
|
|
192
|
+
},
|
|
193
|
+
QUESTIONS_SOCIALES: {
|
|
194
|
+
id: 16,
|
|
195
|
+
label: 'Questions sociales',
|
|
196
|
+
responseType: ResponseType.CALL,
|
|
197
|
+
min: 0.5,
|
|
198
|
+
max: 48,
|
|
199
|
+
default: 24,
|
|
200
|
+
weight: 5,
|
|
201
|
+
isExterne: true,
|
|
202
|
+
idMailAuto: null,
|
|
203
|
+
schedule: 15,
|
|
204
|
+
},
|
|
205
|
+
REFACTURATION: {
|
|
206
|
+
id: 17,
|
|
207
|
+
label: 'Refacturation',
|
|
208
|
+
responseType: null,
|
|
209
|
+
min: null,
|
|
210
|
+
max: null,
|
|
211
|
+
default: null,
|
|
212
|
+
weight: 5,
|
|
213
|
+
isExterne: true,
|
|
214
|
+
idMailAuto: null,
|
|
215
|
+
schedule: 15,
|
|
216
|
+
},
|
|
217
|
+
MAJ_INFO_FACTURATION: {
|
|
218
|
+
id: 18,
|
|
219
|
+
label: 'Mise à jour info facturation',
|
|
220
|
+
responseType: ResponseType.MAIL,
|
|
221
|
+
min: 3,
|
|
222
|
+
max: 72,
|
|
223
|
+
default: 24,
|
|
224
|
+
weight: 2,
|
|
225
|
+
isExterne: true,
|
|
226
|
+
idMailAuto: null,
|
|
227
|
+
schedule: 15,
|
|
228
|
+
},
|
|
229
|
+
FACTURES_MANQUANTES: {
|
|
230
|
+
id: 19,
|
|
231
|
+
label: 'Facture manquante',
|
|
232
|
+
responseType: ResponseType.MAIL,
|
|
233
|
+
min: 3,
|
|
234
|
+
max: 72,
|
|
235
|
+
default: 24,
|
|
236
|
+
weight: 2,
|
|
237
|
+
isExterne: true,
|
|
238
|
+
idMailAuto: null,
|
|
239
|
+
schedule: 15,
|
|
240
|
+
},
|
|
241
|
+
QUESTIONS_FACTURATIONS: {
|
|
242
|
+
id: 20,
|
|
243
|
+
label: 'Questions facturations',
|
|
244
|
+
responseType: null,
|
|
245
|
+
min: null,
|
|
246
|
+
max: null,
|
|
247
|
+
default: null,
|
|
248
|
+
weight: 4,
|
|
249
|
+
isExterne: true,
|
|
250
|
+
idMailAuto: null,
|
|
251
|
+
schedule: 15,
|
|
252
|
+
},
|
|
253
|
+
SUIVI_PROSPECT: {
|
|
254
|
+
id: 21,
|
|
255
|
+
label: 'Suivi prospect',
|
|
256
|
+
responseType: null,
|
|
257
|
+
min: 0.5,
|
|
258
|
+
max: 48,
|
|
259
|
+
default: 24,
|
|
260
|
+
weight: 3,
|
|
261
|
+
isExterne: true,
|
|
262
|
+
idMailAuto: null,
|
|
263
|
+
schedule: 15,
|
|
264
|
+
},
|
|
265
|
+
DOC_MANQUANT_CREA_DOSSIER: {
|
|
266
|
+
id: 22,
|
|
267
|
+
label: 'Document manquant pour création dossier',
|
|
268
|
+
responseType: ResponseType.MAIL,
|
|
269
|
+
min: 3,
|
|
270
|
+
max: 72,
|
|
271
|
+
default: 24,
|
|
272
|
+
weight: 2,
|
|
273
|
+
isExterne: false,
|
|
274
|
+
idMailAuto: null,
|
|
275
|
+
schedule: 15,
|
|
276
|
+
},
|
|
277
|
+
IMPORT_CSV: {
|
|
278
|
+
id: 23,
|
|
279
|
+
label: 'Faire import csv',
|
|
280
|
+
responseType: null,
|
|
281
|
+
min: 1,
|
|
282
|
+
max: 96,
|
|
283
|
+
default: 24,
|
|
284
|
+
weight: 9,
|
|
285
|
+
isExterne: false,
|
|
286
|
+
idMailAuto: null,
|
|
287
|
+
schedule: 30,
|
|
288
|
+
},
|
|
289
|
+
ARCHIVER_CLIENT: {
|
|
290
|
+
id: 24,
|
|
291
|
+
label: 'Archiver un client',
|
|
292
|
+
responseType: null,
|
|
293
|
+
min: 1,
|
|
294
|
+
max: 96,
|
|
295
|
+
default: 24,
|
|
296
|
+
weight: 1,
|
|
297
|
+
isExterne: false,
|
|
298
|
+
idMailAuto: null,
|
|
299
|
+
schedule: 15,
|
|
300
|
+
},
|
|
301
|
+
OD_SALAIRE: {
|
|
302
|
+
id: 25,
|
|
303
|
+
label: 'Passer les OD de salaire',
|
|
304
|
+
responseType: null,
|
|
305
|
+
min: 1,
|
|
306
|
+
max: 96,
|
|
307
|
+
default: 24,
|
|
308
|
+
weight: 1,
|
|
309
|
+
isExterne: false,
|
|
310
|
+
idMailAuto: null,
|
|
311
|
+
schedule: 15,
|
|
312
|
+
},
|
|
313
|
+
VERIFICATION_IMPAYE: {
|
|
314
|
+
id: 26,
|
|
315
|
+
label: 'Vérification impayé',
|
|
316
|
+
responseType: null,
|
|
317
|
+
min: 1,
|
|
318
|
+
max: 96,
|
|
319
|
+
default: 24,
|
|
320
|
+
weight: 2,
|
|
321
|
+
isExterne: false,
|
|
322
|
+
idMailAuto: null,
|
|
323
|
+
schedule: 15,
|
|
324
|
+
},
|
|
325
|
+
MODIFICATION_DIA_CLEMENTINIER: {
|
|
326
|
+
id: 27,
|
|
327
|
+
label: 'Modification Clémentinier/Dia',
|
|
328
|
+
responseType: null,
|
|
329
|
+
min: 1,
|
|
330
|
+
max: 96,
|
|
331
|
+
default: 24,
|
|
332
|
+
weight: 2,
|
|
333
|
+
isExterne: false,
|
|
334
|
+
idMailAuto: null,
|
|
335
|
+
schedule: 15,
|
|
336
|
+
},
|
|
337
|
+
RESILIATION: {
|
|
338
|
+
id: 28,
|
|
339
|
+
label: 'Résiliation',
|
|
340
|
+
responseType: ResponseType.CALL,
|
|
341
|
+
min: 0.5,
|
|
342
|
+
max: 48,
|
|
343
|
+
default: 24,
|
|
344
|
+
weight: 6,
|
|
345
|
+
isExterne: true,
|
|
346
|
+
idMailAuto: null,
|
|
347
|
+
schedule: 30,
|
|
348
|
+
},
|
|
349
|
+
QUESTIONS_COMPTABLES: {
|
|
350
|
+
id: 29,
|
|
351
|
+
label: 'Questions comptables',
|
|
352
|
+
responseType: ResponseType.CALL,
|
|
353
|
+
min: 0.5,
|
|
354
|
+
max: 48,
|
|
355
|
+
default: 24,
|
|
356
|
+
weight: 6,
|
|
357
|
+
isExterne: true,
|
|
358
|
+
idMailAuto: null,
|
|
359
|
+
schedule: 30,
|
|
360
|
+
},
|
|
361
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsInt, IsBoolean,
|
|
3
|
+
IsOptional,
|
|
4
|
+
} from 'class-validator';
|
|
5
|
+
|
|
6
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
7
|
+
|
|
8
|
+
export class QueryCountTask {
|
|
9
|
+
@ApiPropertyOptional()
|
|
10
|
+
@IsOptional()
|
|
11
|
+
@IsInt()
|
|
12
|
+
idUser?: number;
|
|
13
|
+
|
|
14
|
+
@ApiPropertyOptional()
|
|
15
|
+
@IsOptional()
|
|
16
|
+
@IsInt()
|
|
17
|
+
idRole?: number;
|
|
18
|
+
|
|
19
|
+
@ApiPropertyOptional()
|
|
20
|
+
@IsOptional()
|
|
21
|
+
@IsBoolean()
|
|
22
|
+
isLate?: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IsString, IsInt, IsDate } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class QueryCreateTask {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
idTaskType: number;
|
|
7
|
+
|
|
8
|
+
@ApiProperty()
|
|
9
|
+
@IsString()
|
|
10
|
+
description: string;
|
|
11
|
+
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
@IsInt()
|
|
14
|
+
idUserWhoCreated: number;
|
|
15
|
+
|
|
16
|
+
@ApiProperty()
|
|
17
|
+
@IsInt()
|
|
18
|
+
idSociety: number;
|
|
19
|
+
|
|
20
|
+
@ApiProperty()
|
|
21
|
+
@IsDate()
|
|
22
|
+
deadlineAt: Date;
|
|
23
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsOptional, IsString, IsIn, IsBoolean, IsInt,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
6
|
+
|
|
7
|
+
export class QueryGetAllTask {
|
|
8
|
+
@ApiPropertyOptional()
|
|
9
|
+
@IsOptional()
|
|
10
|
+
@IsBoolean()
|
|
11
|
+
@ToBoolean()
|
|
12
|
+
isProcessed?: boolean;
|
|
13
|
+
|
|
14
|
+
@ApiPropertyOptional()
|
|
15
|
+
@IsOptional()
|
|
16
|
+
@IsBoolean()
|
|
17
|
+
@ToBoolean()
|
|
18
|
+
isRefused?: boolean;
|
|
19
|
+
|
|
20
|
+
@ApiPropertyOptional()
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@IsInt()
|
|
23
|
+
idSociety?: number;
|
|
24
|
+
|
|
25
|
+
@ApiPropertyOptional()
|
|
26
|
+
@IsOptional()
|
|
27
|
+
@IsString({
|
|
28
|
+
each: true,
|
|
29
|
+
})
|
|
30
|
+
attributes?: string[];
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
@IsOptional()
|
|
34
|
+
@IsString({
|
|
35
|
+
each: true,
|
|
36
|
+
})
|
|
37
|
+
@IsIn(['society', 'comments', 'notification', 'mail', 'user', 'userWhoCreated', 'userWhoProcessed', 'userWhoRefused'], { each: true })
|
|
38
|
+
include?: string[];
|
|
39
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsOptional, IsString, IsIn,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryGetTask {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsString({
|
|
10
|
+
each: true,
|
|
11
|
+
})
|
|
12
|
+
attributes?: string[];
|
|
13
|
+
|
|
14
|
+
@ApiPropertyOptional()
|
|
15
|
+
@IsOptional()
|
|
16
|
+
@IsString({
|
|
17
|
+
each: true,
|
|
18
|
+
})
|
|
19
|
+
@IsIn(['society', 'comments', 'notification', 'mail', 'user', 'userWhoCreated', 'userWhoProcessed', 'userWhoRefused'], { each: true })
|
|
20
|
+
include?: string[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsBoolean, IsNumber, IsOptional, IsString, IsInt, IsDate, IsIn,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
6
|
+
|
|
7
|
+
export class QueryPaginatedTask {
|
|
8
|
+
@ApiPropertyOptional()
|
|
9
|
+
@IsOptional()
|
|
10
|
+
@IsInt()
|
|
11
|
+
idTaskType?: number;
|
|
12
|
+
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
@IsOptional()
|
|
15
|
+
@IsString()
|
|
16
|
+
search?: string;
|
|
17
|
+
|
|
18
|
+
@ApiPropertyOptional()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsInt()
|
|
21
|
+
state?: number;
|
|
22
|
+
|
|
23
|
+
@ApiPropertyOptional({ default: false })
|
|
24
|
+
@IsOptional()
|
|
25
|
+
@IsBoolean()
|
|
26
|
+
@ToBoolean()
|
|
27
|
+
isDeleted? = false;
|
|
28
|
+
|
|
29
|
+
@ApiPropertyOptional()
|
|
30
|
+
@IsOptional()
|
|
31
|
+
@IsString()
|
|
32
|
+
orderBy?: string = 'createdAt';
|
|
33
|
+
|
|
34
|
+
@ApiPropertyOptional()
|
|
35
|
+
@IsOptional()
|
|
36
|
+
@IsInt()
|
|
37
|
+
idUser?: number;
|
|
38
|
+
|
|
39
|
+
@ApiPropertyOptional({ description: 'user who terminate the task' })
|
|
40
|
+
@IsOptional()
|
|
41
|
+
@IsInt()
|
|
42
|
+
idUserWhoProcessed?: number;
|
|
43
|
+
|
|
44
|
+
@ApiPropertyOptional({ description: 'user who create the task' })
|
|
45
|
+
@IsOptional()
|
|
46
|
+
@IsInt()
|
|
47
|
+
idUserWhoCreated?: number;
|
|
48
|
+
|
|
49
|
+
@ApiPropertyOptional()
|
|
50
|
+
@IsOptional()
|
|
51
|
+
@IsInt()
|
|
52
|
+
idRole?: number;
|
|
53
|
+
|
|
54
|
+
@ApiPropertyOptional({ default: 25 })
|
|
55
|
+
@IsOptional()
|
|
56
|
+
@IsNumber()
|
|
57
|
+
limit?: number = 25;
|
|
58
|
+
|
|
59
|
+
@ApiPropertyOptional({ default: 1 })
|
|
60
|
+
@IsOptional()
|
|
61
|
+
@IsNumber()
|
|
62
|
+
page?: number = 1;
|
|
63
|
+
|
|
64
|
+
@ApiPropertyOptional()
|
|
65
|
+
@IsOptional()
|
|
66
|
+
@IsString({
|
|
67
|
+
each: true,
|
|
68
|
+
})
|
|
69
|
+
attributes?: string[];
|
|
70
|
+
|
|
71
|
+
@ApiPropertyOptional()
|
|
72
|
+
@IsOptional()
|
|
73
|
+
@IsDate()
|
|
74
|
+
startDate?: Date;
|
|
75
|
+
|
|
76
|
+
@ApiPropertyOptional()
|
|
77
|
+
@IsOptional()
|
|
78
|
+
@IsDate()
|
|
79
|
+
endDate?: Date;
|
|
80
|
+
|
|
81
|
+
@ApiPropertyOptional()
|
|
82
|
+
@IsOptional()
|
|
83
|
+
@IsBoolean()
|
|
84
|
+
@ToBoolean()
|
|
85
|
+
isLate?: boolean;
|
|
86
|
+
|
|
87
|
+
@ApiPropertyOptional()
|
|
88
|
+
@IsOptional()
|
|
89
|
+
@IsBoolean()
|
|
90
|
+
@ToBoolean()
|
|
91
|
+
isProcessed?: boolean;
|
|
92
|
+
|
|
93
|
+
@ApiPropertyOptional()
|
|
94
|
+
@IsOptional()
|
|
95
|
+
@IsString({
|
|
96
|
+
each: true,
|
|
97
|
+
})
|
|
98
|
+
@IsIn(['society', 'comments', 'notification', 'mail', 'user', 'userWhoCreated', 'userWhoProcessed', 'userWhoRefused'], { each: true })
|
|
99
|
+
include?: string[];
|
|
100
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsArray, IsDate, IsIn, IsOptional, IsString,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryStatsByRolesInCsv {
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
@IsArray()
|
|
9
|
+
idRoles: number[];
|
|
10
|
+
|
|
11
|
+
@ApiPropertyOptional()
|
|
12
|
+
@IsOptional()
|
|
13
|
+
@IsString({
|
|
14
|
+
each: true,
|
|
15
|
+
})
|
|
16
|
+
@IsIn(['averageDeadlineTimeByCreator', 'sumCreatedTaskByUser', 'sumReceivedTaskByUser', 'sumLateTaskByUser', 'averageProcessedTimeByUser', 'sumTaskByTaskType', 'averageDeadlineTimeByUser'], { each: true })
|
|
17
|
+
statistics?: string[];
|
|
18
|
+
|
|
19
|
+
@ApiPropertyOptional()
|
|
20
|
+
@IsOptional()
|
|
21
|
+
@IsDate()
|
|
22
|
+
startDate?: Date;
|
|
23
|
+
|
|
24
|
+
@ApiPropertyOptional()
|
|
25
|
+
@IsOptional()
|
|
26
|
+
@IsDate()
|
|
27
|
+
endDate?: Date;
|
|
28
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsDate, IsOptional,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryStatsByServiceInCsv {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsDate()
|
|
10
|
+
startDate?: Date;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsDate()
|
|
15
|
+
endDate?: Date;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsDate, IsOptional,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryStatsByTaskTypeInCsv {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsDate()
|
|
10
|
+
startDate?: Date;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsDate()
|
|
15
|
+
endDate?: Date;
|
|
16
|
+
}
|
|
@@ -3,6 +3,7 @@ import { IRoom } from './IRoom';
|
|
|
3
3
|
import { ISociety } from './ISociety';
|
|
4
4
|
import { IExercice } from './IExercice';
|
|
5
5
|
import { IUser } from './IUser';
|
|
6
|
+
import { ITask } from './ITask';
|
|
6
7
|
|
|
7
8
|
// calendarEvents
|
|
8
9
|
export interface ICalendarEvent {
|
|
@@ -21,6 +22,7 @@ export interface ICalendarEvent {
|
|
|
21
22
|
isDone: boolean;
|
|
22
23
|
callState: number | null;
|
|
23
24
|
idRecurrence: number | null;
|
|
25
|
+
idTask?: number;
|
|
24
26
|
idPlace: number | null;
|
|
25
27
|
createdAt?: Date | null;
|
|
26
28
|
updatedAt?: Date | null;
|
|
@@ -31,4 +33,5 @@ export interface ICalendarEvent {
|
|
|
31
33
|
society: ISociety;
|
|
32
34
|
exercice: IExercice;
|
|
33
35
|
calendarsEventsHasUsers: IUser[];
|
|
36
|
+
task?: ITask;
|
|
34
37
|
}
|