@silexpert/core 0.4.258 → 0.4.261

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 (66) hide show
  1. package/es/types/Enum/BrandClementine.d.ts +3 -0
  2. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  3. package/es/types/Enum/BrandClementine.js +1 -0
  4. package/es/types/Enum/BrandClementine.js.map +1 -1
  5. package/es/types/Enum/InternalService.d.ts +6 -5
  6. package/es/types/Enum/InternalService.d.ts.map +1 -1
  7. package/es/types/Enum/InternalService.js +6 -5
  8. package/es/types/Enum/InternalService.js.map +1 -1
  9. package/es/types/Enum/TaskResponseType.d.ts +77 -228
  10. package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
  11. package/es/types/Enum/TaskResponseType.js +245 -279
  12. package/es/types/Enum/TaskResponseType.js.map +1 -1
  13. package/es/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts +1 -0
  14. package/es/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts.map +1 -1
  15. package/es/types/Interface/api/calendarEvent/updateCalendarEvent.js +4 -0
  16. package/es/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -1
  17. package/es/types/Interface/api/task/QueryCreateTask.d.ts +1 -0
  18. package/es/types/Interface/api/task/QueryCreateTask.d.ts.map +1 -1
  19. package/es/types/Interface/api/task/QueryCreateTask.js +5 -1
  20. package/es/types/Interface/api/task/QueryCreateTask.js.map +1 -1
  21. package/es/types/Interface/api/task/QueryPaginatedTask.js +1 -1
  22. package/es/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
  23. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts +4 -0
  24. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts.map +1 -1
  25. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +13 -0
  26. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
  27. package/es/types/Interface/models/ITask.d.ts +5 -0
  28. package/es/types/Interface/models/ITask.d.ts.map +1 -1
  29. package/es/types/Interface/models/ITask.js.map +1 -1
  30. package/es/types/Interface/models/ITaskAttachment.d.ts +12 -0
  31. package/es/types/Interface/models/ITaskAttachment.d.ts.map +1 -0
  32. package/es/types/Interface/models/ITaskAttachment.js +2 -0
  33. package/es/types/Interface/models/ITaskAttachment.js.map +1 -0
  34. package/es/types/index.d.ts +1 -0
  35. package/es/types/index.d.ts.map +1 -1
  36. package/es/types/index.js +1 -0
  37. package/es/types/index.js.map +1 -1
  38. package/js/types/Enum/BrandClementine.js +1 -0
  39. package/js/types/Enum/BrandClementine.js.map +1 -1
  40. package/js/types/Enum/InternalService.js +9 -5
  41. package/js/types/Enum/InternalService.js.map +1 -1
  42. package/js/types/Enum/TaskResponseType.js +225 -279
  43. package/js/types/Enum/TaskResponseType.js.map +1 -1
  44. package/js/types/Interface/api/calendarEvent/updateCalendarEvent.js +2 -0
  45. package/js/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -1
  46. package/js/types/Interface/api/task/QueryCreateTask.js +2 -0
  47. package/js/types/Interface/api/task/QueryCreateTask.js.map +1 -1
  48. package/js/types/Interface/api/task/QueryPaginatedTask.js +1 -1
  49. package/js/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
  50. package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +9 -1
  51. package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
  52. package/js/types/Interface/models/ITaskAttachment.js +6 -0
  53. package/js/types/Interface/models/ITaskAttachment.js.map +1 -0
  54. package/js/types/index.js +12 -0
  55. package/js/types/index.js.map +1 -1
  56. package/package.json +1 -1
  57. package/ts/types/Enum/BrandClementine.ts +1 -0
  58. package/ts/types/Enum/InternalService.ts +7 -5
  59. package/ts/types/Enum/TaskResponseType.ts +248 -279
  60. package/ts/types/Interface/api/calendarEvent/updateCalendarEvent.ts +3 -0
  61. package/ts/types/Interface/api/task/QueryCreateTask.ts +4 -1
  62. package/ts/types/Interface/api/task/QueryPaginatedTask.ts +1 -1
  63. package/ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts +10 -0
  64. package/ts/types/Interface/models/ITask.ts +5 -0
  65. package/ts/types/Interface/models/ITaskAttachment.ts +15 -0
  66. package/ts/types/index.ts +1 -0
@@ -1,25 +1,20 @@
1
+ import { Role } from './Role';
2
+
1
3
  export const ResponseType = {
2
4
  MAIL: {
3
5
  id: 1,
4
- min: 3,
5
- max: 72,
6
- default: 24,
7
6
  label: 'Mail',
8
7
  },
9
8
  CALL: {
10
9
  id: 2,
11
- min: 0.5,
12
- max: 48,
13
- default: 24,
14
10
  label: 'Appel',
15
11
  },
16
- INTERN_ACTIVITY: {
17
- id: 3,
18
- min: 1,
19
- max: 96,
20
- default: 24,
21
- label: 'Activité Interne',
22
- },
12
+ };
13
+
14
+ export const Deadline = {
15
+ min: 24,
16
+ default: 120,
17
+ max: 120,
23
18
  };
24
19
 
25
20
  export enum StateTask {
@@ -30,274 +25,248 @@ export enum StateTask {
30
25
  }
31
26
 
32
27
  export const TaskResponseType = {
33
- DEMANDE_ATTESTATION: {
28
+ INTERN: {
34
29
  id: 1,
35
- label: 'Demande attestation',
36
- responseType: ResponseType.INTERN_ACTIVITY.id,
37
- weight: 2,
38
- isExterne: true,
39
- idMailAuto: null,
40
- schedule: 15,
30
+ label: 'Interne',
31
+ types: [
32
+ {
33
+ id: 1,
34
+ label: 'Social',
35
+ role: Role.SOCIAL,
36
+ deadline: Deadline,
37
+ isForWholeRole: true,
38
+ backToClient: false,
39
+ goToCalendar: false,
40
+ responseType: null,
41
+ description: 'Passer des OD.',
42
+ },
43
+ {
44
+ id: 2,
45
+ label: 'Facturation',
46
+ role: Role.FACTURATION,
47
+ deadline: Deadline,
48
+ isForWholeRole: true,
49
+ backToClient: false,
50
+ goToCalendar: false,
51
+ responseType: null,
52
+ description: 'Est-ce que la facturation du dossier est à jour ?',
53
+ },
54
+ {
55
+ id: 3,
56
+ label: 'Juridique',
57
+ role: Role.JURIDIC,
58
+ deadline: Deadline,
59
+ isForWholeRole: true,
60
+ backToClient: false,
61
+ goToCalendar: false,
62
+ responseType: null,
63
+ description: 'Pouvez-vous remettre le PV AG dans la GED ?',
64
+ },
65
+ {
66
+ id: 4,
67
+ label: 'Administratif',
68
+ role: Role.CUSTOMER_SUCCESS,
69
+ deadline: Deadline,
70
+ isForWholeRole: true,
71
+ backToClient: false,
72
+ goToCalendar: false,
73
+ responseType: null,
74
+ description: 'Pouvez-vous archiver le dossier ?',
75
+ },
76
+ {
77
+ id: 5,
78
+ label: 'Comptable',
79
+ role: Role.FRONT_OFFICE,
80
+ deadline: Deadline,
81
+ isForWholeRole: false,
82
+ backToClient: false,
83
+ goToCalendar: false,
84
+ responseType: null,
85
+ description: 'Comment annoter une facture d\'achat SFR ?',
86
+ },
87
+ {
88
+ id: 6,
89
+ label: 'Archivage',
90
+ role: Role.CUSTOMER_SUCCESS,
91
+ deadline: Deadline,
92
+ isForWholeRole: true,
93
+ backToClient: false,
94
+ goToCalendar: false,
95
+ responseType: null,
96
+ description: 'Pouvez-vous archiver le dossier (liquidation terminée) ?',
97
+ },
98
+ {
99
+ id: 7,
100
+ label: 'Commercial',
101
+ role: Role.COMMERCIAL,
102
+ deadline: Deadline,
103
+ isForWholeRole: true,
104
+ backToClient: true,
105
+ goToCalendar: false,
106
+ responseType: ResponseType.MAIL,
107
+ description: 'Client XX veut créer une nouvelle société.',
108
+ },
109
+ {
110
+ id: 8,
111
+ label: 'Refacturation',
112
+ role: Role.FACTURATION,
113
+ deadline: Deadline,
114
+ isForWholeRole: true,
115
+ backToClient: true,
116
+ goToCalendar: false,
117
+ responseType: ResponseType.MAIL,
118
+ description: 'Bilan 2021 à refaire : à refacturer svp.',
119
+ },
120
+ {
121
+ id: 9,
122
+ label: 'Facturation client',
123
+ role: Role.FACTURATION,
124
+ deadline: Deadline,
125
+ isForWholeRole: true,
126
+ backToClient: true,
127
+ goToCalendar: false,
128
+ responseType: ResponseType.MAIL,
129
+ description: 'Pouvez-vous intégrer les paiements du client dans la facturation ?',
130
+ },
131
+ {
132
+ id: 10,
133
+ label: 'Préparation d\'un bilan',
134
+ role: Role.BACK_MANAGER,
135
+ deadline: Deadline,
136
+ isForWholeRole: false,
137
+ backToClient: false,
138
+ goToCalendar: true,
139
+ responseType: null,
140
+ description: 'Controle de la DADS.',
141
+ },
142
+ ],
41
143
  },
42
- FAIRE_COURRIER: {
144
+ EXTERN: {
43
145
  id: 2,
44
- label: 'Faire courrier',
45
- responseType: ResponseType.INTERN_ACTIVITY.id,
46
- weight: 4,
47
- isExterne: false,
48
- idMailAuto: null,
49
- schedule: 30,
50
- },
51
- ACTIVER_ONGLET_SOCIAL: {
52
- id: 3,
53
- label: 'Activer l\'onglet social',
54
- responseType: ResponseType.MAIL.id,
55
- weight: 1,
56
- isExterne: true,
57
- idMailAuto: null,
58
- schedule: 15,
59
- },
60
- SUPPORT_TECHNIQUE: {
61
- id: 4,
62
- label: 'Support technique',
63
- responseType: ResponseType.CALL.id,
64
- weight: 6,
65
- isExterne: true,
66
- idMailAuto: null,
67
- schedule: 15,
68
- },
69
- SUIVI_BILAN: {
70
- id: 5,
71
- label: 'Suivi bilan',
72
- responseType: ResponseType.INTERN_ACTIVITY.id,
73
- weight: 9,
74
- isExterne: true,
75
- idMailAuto: null,
76
- schedule: 30,
77
- },
78
- SUIVI_IS: {
79
- id: 6,
80
- label: 'Suivi IS',
81
- responseType: ResponseType.INTERN_ACTIVITY.id,
82
- weight: 6,
83
- isExterne: true,
84
- idMailAuto: null,
85
- schedule: 15,
86
- },
87
- SUIVI_TVA: {
88
- id: 7,
89
- label: 'Suivi TVA',
90
- responseType: ResponseType.INTERN_ACTIVITY.id,
91
- weight: 6,
92
- isExterne: true,
93
- idMailAuto: null,
94
- schedule: 15,
95
- },
96
- SUIVI_MISSIONS_COMPLEMENTAIRES: {
97
- id: 8,
98
- label: 'Suivi missions complémentaires',
99
- responseType: ResponseType.INTERN_ACTIVITY.id,
100
- weight: 6,
101
- isExterne: true,
102
- idMailAuto: null,
103
- schedule: 30,
104
- },
105
- // PV_AG_APPROBATION: {
106
- // id: 9,
107
- // label: 'Pv d\'AG/Approbation',
108
- // responseType: ResponseType.INTERN_ACTIVITY.id,
109
- // weight: 4,
110
- // isExterne: true,
111
- // idMailAuto: null,
112
- // schedule: 15,
113
- // },
114
- // DIVIDENDES: {
115
- // id: 10,
116
- // label: 'Dividendes',
117
- // responseType: ResponseType.INTERN_ACTIVITY.id,
118
- // weight: 6,
119
- // isExterne: true,
120
- // idMailAuto: null,
121
- // schedule: 15,
122
- // },
123
- // CREATION_SOCIETE: {
124
- // id: 11,
125
- // label: 'Creation société',
126
- // responseType: ResponseType.INTERN_ACTIVITY.id,
127
- // weight: 8,
128
- // isExterne: true,
129
- // idMailAuto: null,
130
- // schedule: 15,
131
- // },
132
- QUESTIONS_JURIDIQUES: {
133
- id: 12,
134
- label: 'Questions juridiques',
135
- responseType: ResponseType.INTERN_ACTIVITY.id,
136
- weight: 6,
137
- isExterne: true,
138
- idMailAuto: null,
139
- schedule: 15,
140
- },
141
- // BULLETIN_PAIE: {
142
- // id: 13,
143
- // label: 'Bulletin de paie',
144
- // responseType: ResponseType.MAIL.id,
145
- // weight: 2,
146
- // isExterne: true,
147
- // idMailAuto: null,
148
- // schedule: 15,
149
- // },
150
- // DECLARATIONS: {
151
- // id: 14,
152
- // label: 'Déclarations',
153
- // responseType: ResponseType.MAIL.id,
154
- // weight: 3,
155
- // isExterne: true,
156
- // idMailAuto: null,
157
- // schedule: 15,
158
- // },
159
- // EMBAUCHE: {
160
- // id: 15,
161
- // label: 'Embauche',
162
- // responseType: ResponseType.INTERN_ACTIVITY.id,
163
- // weight: 4,
164
- // isExterne: true,
165
- // idMailAuto: null,
166
- // schedule: 15,
167
- // },
168
- QUESTIONS_SOCIALES: {
169
- id: 16,
170
- label: 'Questions sociales',
171
- responseType: ResponseType.INTERN_ACTIVITY.id,
172
- weight: 5,
173
- isExterne: true,
174
- idMailAuto: null,
175
- schedule: 15,
176
- },
177
- REFACTURATION: {
178
- id: 17,
179
- label: 'Refacturation',
180
- responseType: ResponseType.INTERN_ACTIVITY.id,
181
- weight: 5,
182
- isExterne: true,
183
- idMailAuto: null,
184
- schedule: 15,
185
- },
186
- MAJ_INFO_FACTURATION: {
187
- id: 18,
188
- label: 'Mise à jour info facturation',
189
- responseType: ResponseType.MAIL.id,
190
- weight: 2,
191
- isExterne: true,
192
- idMailAuto: null,
193
- schedule: 15,
194
- },
195
- FACTURES_MANQUANTES: {
196
- id: 19,
197
- label: 'Facture manquante',
198
- responseType: ResponseType.MAIL.id,
199
- weight: 2,
200
- isExterne: true,
201
- idMailAuto: null,
202
- schedule: 15,
203
- },
204
- QUESTIONS_FACTURATIONS: {
205
- id: 20,
206
- label: 'Questions facturations',
207
- responseType: ResponseType.INTERN_ACTIVITY.id,
208
- weight: 4,
209
- isExterne: true,
210
- idMailAuto: null,
211
- schedule: 15,
212
- },
213
- SUIVI_PROSPECT: {
214
- id: 21,
215
- label: 'Suivi prospect',
216
- responseType: ResponseType.INTERN_ACTIVITY.id,
217
- weight: 3,
218
- isExterne: true,
219
- idMailAuto: null,
220
- schedule: 15,
221
- },
222
- DOC_MANQUANT_CREA_DOSSIER: {
223
- id: 22,
224
- label: 'Document manquant pour création dossier',
225
- responseType: ResponseType.MAIL.id,
226
- weight: 2,
227
- isExterne: false,
228
- idMailAuto: null,
229
- schedule: 15,
230
- },
231
- IMPORT_CSV: {
232
- id: 23,
233
- label: 'Faire import csv',
234
- responseType: ResponseType.INTERN_ACTIVITY.id,
235
- weight: 9,
236
- isExterne: false,
237
- idMailAuto: null,
238
- schedule: 30,
239
- },
240
- ARCHIVER_CLIENT: {
241
- id: 24,
242
- label: 'Archiver un client',
243
- responseType: ResponseType.INTERN_ACTIVITY.id,
244
- weight: 1,
245
- isExterne: false,
246
- idMailAuto: null,
247
- schedule: 15,
248
- },
249
- OD_SALAIRE: {
250
- id: 25,
251
- label: 'Passer les OD de salaire',
252
- responseType: ResponseType.INTERN_ACTIVITY.id,
253
- weight: 1,
254
- isExterne: false,
255
- idMailAuto: null,
256
- schedule: 15,
257
- },
258
- VERIFICATION_IMPAYE: {
259
- id: 26,
260
- label: 'Vérification impayé',
261
- responseType: ResponseType.INTERN_ACTIVITY.id,
262
- weight: 2,
263
- isExterne: false,
264
- idMailAuto: null,
265
- schedule: 15,
266
- },
267
- MODIFICATION_DIA_CLEMENTINIER: {
268
- id: 27,
269
- label: 'Modification Clémentinier/Dia',
270
- responseType: ResponseType.INTERN_ACTIVITY.id,
271
- weight: 2,
272
- isExterne: false,
273
- idMailAuto: null,
274
- schedule: 15,
275
- },
276
- RESILIATION: {
277
- id: 28,
278
- label: 'Résiliation',
279
- responseType: ResponseType.INTERN_ACTIVITY.id,
280
- weight: 6,
281
- isExterne: true,
282
- idMailAuto: null,
283
- schedule: 30,
284
- },
285
- QUESTIONS_COMPTABLES: {
286
- id: 29,
287
- label: 'Questions comptables',
288
- responseType: ResponseType.CALL.id,
289
- weight: 6,
290
- isExterne: true,
291
- idMailAuto: null,
292
- schedule: 30,
293
- },
294
- RELATION_CLIENT: {
295
- id: 30,
296
- label: 'Relation client',
297
- responseType: ResponseType.INTERN_ACTIVITY.id,
298
- weight: 6,
299
- isExterne: true,
300
- idMailAuto: null,
301
- schedule: 30,
146
+ label: 'Externe',
147
+ types: [
148
+ {
149
+ id: 1,
150
+ label: 'Social',
151
+ role: Role.SOCIAL,
152
+ deadline: Deadline,
153
+ isForWholeRole: false,
154
+ backToClient: true,
155
+ goToCalendar: true,
156
+ responseType: ResponseType.MAIL,
157
+ description: 'Prise de salaire par le président faire BP.',
158
+ },
159
+ {
160
+ id: 3,
161
+ label: 'Juridique',
162
+ role: Role.JURIDIC,
163
+ deadline: Deadline,
164
+ isForWholeRole: false,
165
+ backToClient: true,
166
+ goToCalendar: true,
167
+ responseType: ResponseType.MAIL,
168
+ description: 'Demande de convention CC.',
169
+ },
170
+ {
171
+ id: 4,
172
+ label: 'Administratif',
173
+ role: Role.CUSTOMER_SUCCESS,
174
+ deadline: Deadline,
175
+ isForWholeRole: false,
176
+ backToClient: true,
177
+ goToCalendar: true,
178
+ responseType: ResponseType.MAIL,
179
+ description: 'Courrier à faire.',
180
+ },
181
+ {
182
+ id: 5,
183
+ label: 'Comptable',
184
+ role: Role.FRONT_OFFICE,
185
+ deadline: Deadline,
186
+ isForWholeRole: false,
187
+ backToClient: true,
188
+ goToCalendar: true,
189
+ responseType: ResponseType.MAIL,
190
+ description: 'Le client a besoin de la TVA du mois de Septembre 2022 ?',
191
+ },
192
+ {
193
+ id: 7,
194
+ label: 'Commercial',
195
+ role: Role.COMMERCIAL,
196
+ deadline: Deadline,
197
+ isForWholeRole: false,
198
+ backToClient: false,
199
+ goToCalendar: false,
200
+ responseType: null,
201
+ description: 'Documents manquant pour validation facturation.',
202
+ },
203
+ {
204
+ id: 9,
205
+ label: 'Impayés',
206
+ role: Role.CUSTOMER_SUCCESS,
207
+ deadline: Deadline,
208
+ isForWholeRole: false,
209
+ backToClient: true,
210
+ goToCalendar: false,
211
+ responseType: ResponseType.MAIL,
212
+ description: 'Resiliation du client car 6 mois d\'impayés.',
213
+ },
214
+ {
215
+ id: 10,
216
+ label: 'Application',
217
+ role: Role.CUSTOMER_SUCCESS,
218
+ deadline: Deadline,
219
+ isForWholeRole: false,
220
+ backToClient: true,
221
+ goToCalendar: true,
222
+ responseType: ResponseType.MAIL,
223
+ description: 'Prendre RDV myclementine pour explication plateforme.',
224
+ },
225
+ {
226
+ id: 11,
227
+ label: 'Expert comptable gestion conflit',
228
+ role: Role.EXPERT_ACCOUNTANT,
229
+ deadline: Deadline,
230
+ isForWholeRole: false,
231
+ backToClient: true,
232
+ goToCalendar: true,
233
+ responseType: ResponseType.MAIL,
234
+ description: 'RDV client refus bilan, prendre RDV.',
235
+ },
236
+ {
237
+ id: 12,
238
+ label: 'Expert comptable demande de conseil',
239
+ role: Role.EXPERT_ACCOUNTANT,
240
+ deadline: Deadline,
241
+ isForWholeRole: false,
242
+ backToClient: true,
243
+ goToCalendar: true,
244
+ responseType: ResponseType.MAIL,
245
+ description: 'RDV client réintégration fiscale - conseil.',
246
+ },
247
+ {
248
+ id: 13,
249
+ label: 'Expert comptable calendly',
250
+ role: Role.EXPERT_ACCOUNTANT,
251
+ deadline: Deadline,
252
+ isForWholeRole: false,
253
+ backToClient: true,
254
+ goToCalendar: true,
255
+ responseType: ResponseType.MAIL,
256
+ description: 'Prendre RDV Clementine.',
257
+ },
258
+ {
259
+ id: 14,
260
+ label: 'Litige dossier',
261
+ role: Role.BACK_MANAGER,
262
+ deadline: Deadline,
263
+ isForWholeRole: false,
264
+ backToClient: true,
265
+ goToCalendar: true,
266
+ responseType: ResponseType.MAIL,
267
+ description: 'Le client veut avoir une explication de bilan par le responsable comptable',
268
+ },
269
+ ],
270
+
302
271
  },
303
272
  };
@@ -34,6 +34,9 @@ export class UpdateCalendarEvent {
34
34
  @ApiPropertyOptional()
35
35
  idTimeCounterType?: number;
36
36
 
37
+ @ApiPropertyOptional()
38
+ idUser?: number;
39
+
37
40
  @ApiPropertyOptional()
38
41
  typeComptable?: number;
39
42
 
@@ -1,7 +1,10 @@
1
1
  import { IsString, IsInt, IsDate } from 'class-validator';
2
- import { ApiProperty } from '../../../../utils';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
 
4
4
  export class QueryCreateTask {
5
+ @ApiPropertyOptional()
6
+ isIntern: boolean;
7
+
5
8
  @ApiProperty()
6
9
  idTaskType: number;
7
10
 
@@ -95,6 +95,6 @@ export class QueryPaginatedTask {
95
95
  @IsString({
96
96
  each: true,
97
97
  })
98
- @IsIn(['society', 'comments', 'notification', 'mail', 'user', 'userWhoCreated', 'userWhoProcessed', 'userWhoRefused', 'mailAutoSentForLate'], { each: true })
98
+ @IsIn(['society', 'comments', 'notification', 'mail', 'user', 'userWhoCreated', 'userWhoProcessed', 'userWhoRefused', 'mailAutoSentForLate', 'taskAttachment'], { each: true })
99
99
  include?: string[];
100
100
  }
@@ -40,6 +40,16 @@ export class CreateAttachmentParams {
40
40
  @IsArray()
41
41
  files?: TFile[];
42
42
  }
43
+ export class CreateAttachmentParamsForTask {
44
+ @ApiProperty()
45
+ @IsNumber()
46
+ idTask: number;
47
+
48
+ @ApiPropertyOptional()
49
+ @IsOptional()
50
+ @IsArray()
51
+ files?: TFile[];
52
+ }
43
53
  export class MigrateParams {
44
54
  @ApiProperty({ default: 50 })
45
55
  @IsNumber()
@@ -5,9 +5,12 @@ import { INotification } from './INotification';
5
5
  import { IRole } from './IRole';
6
6
  import { ISociety } from './ISociety';
7
7
  import { IUser } from './IUser';
8
+ import { TFile } from '../api/file/TFile';
9
+ import { ITaskAttachment } from './ITaskAttachment';
8
10
 
9
11
  export interface ITask {
10
12
  id?: number,
13
+ isIntern?: boolean | null,
11
14
  idTaskType: number,
12
15
  idUserWhoCreated: number,
13
16
  idSociety: number,
@@ -20,6 +23,7 @@ export interface ITask {
20
23
  idUserWhoRefused?: number,
21
24
  processedAt?: Date,
22
25
  responseType?: number,
26
+ files?: TFile[],
23
27
 
24
28
  // Associations
25
29
  userWhoCreated?: IUser;
@@ -32,4 +36,5 @@ export interface ITask {
32
36
  comments?: IComment[];
33
37
  mail?: IMail;
34
38
  notifications?: INotification[];
39
+ attachments?: ITaskAttachment[];
35
40
  }
@@ -0,0 +1,15 @@
1
+ import { IFile } from './IFile';
2
+ import { ITask } from './ITask';
3
+
4
+ // taskAttachment
5
+ export interface ITaskAttachment {
6
+ id?: number;
7
+ idFile: number;
8
+ idTask: number;
9
+ createdAt?: Date | null;
10
+ updatedAt?: Date | null;
11
+
12
+ // Associations
13
+ task?: ITask;
14
+ file?: IFile;
15
+ }
package/ts/types/index.ts CHANGED
@@ -269,6 +269,7 @@ export * from './Interface/models/IVatDeclarationCertificate';
269
269
  export * from './Interface/models/IVatDeclarationSocietyDetail';
270
270
  export * from './Interface/models/IMail';
271
271
  export * from './Interface/models/IMailAttachment';
272
+ export * from './Interface/models/ITaskAttachment';
272
273
  export * from './Interface/models/IMailContent';
273
274
  export * from './Interface/models/IWebMail';
274
275
  export * from './Interface/models/IWebMailAttachment';