@silexpert/core 0.4.210 → 0.4.213

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 (75) hide show
  1. package/es/api/resources/Society.d.ts +2 -1
  2. package/es/api/resources/Society.d.ts.map +1 -1
  3. package/es/api/resources/Society.js +3 -0
  4. package/es/api/resources/Society.js.map +1 -1
  5. package/es/api/resources/Task.js +1 -1
  6. package/es/api/resources/Task.js.map +1 -1
  7. package/es/types/Enum/InternalService.d.ts +0 -8
  8. package/es/types/Enum/InternalService.d.ts.map +1 -1
  9. package/es/types/Enum/InternalService.js +0 -8
  10. package/es/types/Enum/InternalService.js.map +1 -1
  11. package/es/types/Enum/MailAuto.d.ts +1 -0
  12. package/es/types/Enum/MailAuto.d.ts.map +1 -1
  13. package/es/types/Enum/MailAuto.js +1 -0
  14. package/es/types/Enum/MailAuto.js.map +1 -1
  15. package/es/types/Enum/NotificationType.d.ts +2 -2
  16. package/es/types/Enum/NotificationType.d.ts.map +1 -1
  17. package/es/types/Enum/NotificationType.js +2 -2
  18. package/es/types/Enum/NotificationType.js.map +1 -1
  19. package/es/types/Enum/TaskResponseType.d.ts +52 -120
  20. package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
  21. package/es/types/Enum/TaskResponseType.js +52 -121
  22. package/es/types/Enum/TaskResponseType.js.map +1 -1
  23. package/es/types/Interface/api/notification/CreateNotification.js +1 -1
  24. package/es/types/Interface/api/revision/ReadRevisionTransactionDetail.d.ts +1 -0
  25. package/es/types/Interface/api/revision/ReadRevisionTransactionDetail.d.ts.map +1 -1
  26. package/es/types/Interface/api/revision/ReadRevisionTransactionDetail.js.map +1 -1
  27. package/es/types/Interface/api/task/QueryPaginatedTask.js +1 -1
  28. package/es/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
  29. package/es/types/Interface/api/task/QueryStatsByRolesInCsv.js +1 -1
  30. package/es/types/Interface/api/task/QueryStatsByRolesInCsv.js.map +1 -1
  31. package/es/types/Interface/models/IMobileNotificationLog.d.ts +13 -0
  32. package/es/types/Interface/models/IMobileNotificationLog.d.ts.map +1 -0
  33. package/es/types/Interface/models/IMobileNotificationLog.js +2 -0
  34. package/es/types/Interface/models/IMobileNotificationLog.js.map +1 -0
  35. package/es/types/Interface/models/ISociety.d.ts +2 -1
  36. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  37. package/es/types/Interface/models/ISociety.js.map +1 -1
  38. package/es/types/index.d.ts +1 -0
  39. package/es/types/index.d.ts.map +1 -1
  40. package/es/types/index.js +1 -0
  41. package/es/types/index.js.map +1 -1
  42. package/js/api/resources/Society.js +4 -0
  43. package/js/api/resources/Society.js.map +1 -1
  44. package/js/api/resources/Task.js +1 -1
  45. package/js/api/resources/Task.js.map +1 -1
  46. package/js/types/Enum/InternalService.js +0 -8
  47. package/js/types/Enum/InternalService.js.map +1 -1
  48. package/js/types/Enum/MailAuto.js +1 -0
  49. package/js/types/Enum/MailAuto.js.map +1 -1
  50. package/js/types/Enum/NotificationType.js +2 -2
  51. package/js/types/Enum/NotificationType.js.map +1 -1
  52. package/js/types/Enum/TaskResponseType.js +52 -123
  53. package/js/types/Enum/TaskResponseType.js.map +1 -1
  54. package/js/types/Interface/api/notification/CreateNotification.js +1 -1
  55. package/js/types/Interface/api/task/QueryPaginatedTask.js +1 -1
  56. package/js/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
  57. package/js/types/Interface/api/task/QueryStatsByRolesInCsv.js +1 -1
  58. package/js/types/Interface/api/task/QueryStatsByRolesInCsv.js.map +1 -1
  59. package/js/types/Interface/models/IMobileNotificationLog.js +6 -0
  60. package/js/types/Interface/models/IMobileNotificationLog.js.map +1 -0
  61. package/js/types/index.js +12 -0
  62. package/js/types/index.js.map +1 -1
  63. package/package.json +1 -1
  64. package/ts/api/resources/Society.ts +4 -0
  65. package/ts/api/resources/Task.ts +1 -1
  66. package/ts/types/Enum/InternalService.ts +0 -8
  67. package/ts/types/Enum/MailAuto.ts +1 -0
  68. package/ts/types/Enum/NotificationType.ts +2 -2
  69. package/ts/types/Enum/TaskResponseType.ts +52 -120
  70. package/ts/types/Interface/api/revision/ReadRevisionTransactionDetail.ts +1 -0
  71. package/ts/types/Interface/api/task/QueryPaginatedTask.ts +1 -1
  72. package/ts/types/Interface/api/task/QueryStatsByRolesInCsv.ts +1 -1
  73. package/ts/types/Interface/models/IMobileNotificationLog.ts +14 -0
  74. package/ts/types/Interface/models/ISociety.ts +2 -1
  75. package/ts/types/index.ts +1 -0
@@ -1,7 +1,26 @@
1
- export enum ResponseType {
2
- MAIL = 1,
3
- CALL = 2,
4
- }
1
+ export const ResponseType = {
2
+ MAIL: {
3
+ id: 1,
4
+ min: 3,
5
+ max: 72,
6
+ default: 24,
7
+ label: 'Mail',
8
+ },
9
+ CALL: {
10
+ id: 2,
11
+ min: 0.5,
12
+ max: 48,
13
+ default: 24,
14
+ label: 'Appel',
15
+ },
16
+ INTERN_ACTIVITY: {
17
+ id: 3,
18
+ min: 1,
19
+ max: 96,
20
+ default: 24,
21
+ label: 'Activitée Interne',
22
+ },
23
+ };
5
24
 
6
25
  export enum StateTask {
7
26
  TODO = 1,
@@ -13,10 +32,7 @@ export const TaskResponseType = {
13
32
  DEMANDE_ATTESTATION: {
14
33
  id: 1,
15
34
  label: 'Demande attestation',
16
- responseType: ResponseType.MAIL,
17
- min: 3,
18
- max: 72,
19
- default: 24,
35
+ responseType: ResponseType.MAIL.id,
20
36
  weight: 2,
21
37
  isExterne: true,
22
38
  idMailAuto: null,
@@ -25,10 +41,7 @@ export const TaskResponseType = {
25
41
  FAIRE_COURRIER: {
26
42
  id: 2,
27
43
  label: 'Faire courrier',
28
- responseType: null,
29
- min: 1,
30
- max: 96,
31
- default: 24,
44
+ responseType: ResponseType.INTERN_ACTIVITY.id,
32
45
  weight: 4,
33
46
  isExterne: false,
34
47
  idMailAuto: null,
@@ -37,10 +50,7 @@ export const TaskResponseType = {
37
50
  ACTIVER_ONGLET_SOCIAL: {
38
51
  id: 3,
39
52
  label: 'Activer l\'onglet social',
40
- responseType: ResponseType.MAIL,
41
- min: 3,
42
- max: 72,
43
- default: 24,
53
+ responseType: ResponseType.MAIL.id,
44
54
  weight: 1,
45
55
  isExterne: true,
46
56
  idMailAuto: null,
@@ -49,10 +59,7 @@ export const TaskResponseType = {
49
59
  SUPPORT_TECHNIQUE: {
50
60
  id: 4,
51
61
  label: 'Support technique',
52
- responseType: ResponseType.CALL,
53
- min: 0.5,
54
- max: 48,
55
- default: 24,
62
+ responseType: ResponseType.CALL.id,
56
63
  weight: 6,
57
64
  isExterne: true,
58
65
  idMailAuto: null,
@@ -61,10 +68,7 @@ export const TaskResponseType = {
61
68
  SUIVI_BILAN: {
62
69
  id: 5,
63
70
  label: 'Suivi bilan',
64
- responseType: null,
65
- min: null,
66
- max: null,
67
- default: null,
71
+ responseType: ResponseType.INTERN_ACTIVITY.id,
68
72
  weight: 9,
69
73
  isExterne: true,
70
74
  idMailAuto: null,
@@ -73,10 +77,7 @@ export const TaskResponseType = {
73
77
  SUIVI_IS: {
74
78
  id: 6,
75
79
  label: 'Suivi IS',
76
- responseType: null,
77
- min: null,
78
- max: null,
79
- default: null,
80
+ responseType: ResponseType.INTERN_ACTIVITY.id,
80
81
  weight: 6,
81
82
  isExterne: true,
82
83
  idMailAuto: null,
@@ -85,10 +86,7 @@ export const TaskResponseType = {
85
86
  SUIVI_TVA: {
86
87
  id: 7,
87
88
  label: 'Suivi TVA',
88
- responseType: null,
89
- min: null,
90
- max: null,
91
- default: null,
89
+ responseType: ResponseType.INTERN_ACTIVITY.id,
92
90
  weight: 6,
93
91
  isExterne: true,
94
92
  idMailAuto: null,
@@ -97,10 +95,7 @@ export const TaskResponseType = {
97
95
  SUIVI_MISSIONS_COMPLEMENTAIRES: {
98
96
  id: 8,
99
97
  label: 'Suivi missions complémentaires',
100
- responseType: null,
101
- min: null,
102
- max: null,
103
- default: null,
98
+ responseType: ResponseType.INTERN_ACTIVITY.id,
104
99
  weight: 6,
105
100
  isExterne: true,
106
101
  idMailAuto: null,
@@ -109,10 +104,7 @@ export const TaskResponseType = {
109
104
  PV_AG_APPROBATION: {
110
105
  id: 9,
111
106
  label: 'Pv d\'AG/Approbation',
112
- responseType: ResponseType.MAIL,
113
- min: 3,
114
- max: 72,
115
- default: 24,
107
+ responseType: ResponseType.MAIL.id,
116
108
  weight: 4,
117
109
  isExterne: true,
118
110
  idMailAuto: null,
@@ -121,10 +113,7 @@ export const TaskResponseType = {
121
113
  DIVIDENDES: {
122
114
  id: 10,
123
115
  label: 'Dividendes',
124
- responseType: ResponseType.MAIL,
125
- min: 3,
126
- max: 72,
127
- default: 24,
116
+ responseType: ResponseType.MAIL.id,
128
117
  weight: 6,
129
118
  isExterne: true,
130
119
  idMailAuto: null,
@@ -133,10 +122,7 @@ export const TaskResponseType = {
133
122
  CREATION_SOCIETE: {
134
123
  id: 11,
135
124
  label: 'Creation société',
136
- responseType: null,
137
- min: null,
138
- max: null,
139
- default: null,
125
+ responseType: ResponseType.INTERN_ACTIVITY.id,
140
126
  weight: 8,
141
127
  isExterne: true,
142
128
  idMailAuto: null,
@@ -145,10 +131,7 @@ export const TaskResponseType = {
145
131
  QUESTIONS_JURIDIQUES: {
146
132
  id: 12,
147
133
  label: 'Questions juridiques',
148
- responseType: ResponseType.CALL,
149
- min: 0.5,
150
- max: 48,
151
- default: 24,
134
+ responseType: ResponseType.CALL.id,
152
135
  weight: 6,
153
136
  isExterne: true,
154
137
  idMailAuto: null,
@@ -157,10 +140,7 @@ export const TaskResponseType = {
157
140
  BULLETIN_PAIE: {
158
141
  id: 13,
159
142
  label: 'Bulletin de paie',
160
- responseType: ResponseType.MAIL,
161
- min: 3,
162
- max: 72,
163
- default: 24,
143
+ responseType: ResponseType.MAIL.id,
164
144
  weight: 2,
165
145
  isExterne: true,
166
146
  idMailAuto: null,
@@ -169,10 +149,7 @@ export const TaskResponseType = {
169
149
  DECLARATIONS: {
170
150
  id: 14,
171
151
  label: 'Déclarations',
172
- responseType: ResponseType.MAIL,
173
- min: 3,
174
- max: 72,
175
- default: 24,
152
+ responseType: ResponseType.MAIL.id,
176
153
  weight: 3,
177
154
  isExterne: true,
178
155
  idMailAuto: null,
@@ -181,10 +158,7 @@ export const TaskResponseType = {
181
158
  EMBAUCHE: {
182
159
  id: 15,
183
160
  label: 'Embauche',
184
- responseType: null,
185
- min: null,
186
- max: null,
187
- default: null,
161
+ responseType: ResponseType.INTERN_ACTIVITY.id,
188
162
  weight: 4,
189
163
  isExterne: true,
190
164
  idMailAuto: null,
@@ -193,10 +167,7 @@ export const TaskResponseType = {
193
167
  QUESTIONS_SOCIALES: {
194
168
  id: 16,
195
169
  label: 'Questions sociales',
196
- responseType: ResponseType.CALL,
197
- min: 0.5,
198
- max: 48,
199
- default: 24,
170
+ responseType: ResponseType.CALL.id,
200
171
  weight: 5,
201
172
  isExterne: true,
202
173
  idMailAuto: null,
@@ -205,10 +176,7 @@ export const TaskResponseType = {
205
176
  REFACTURATION: {
206
177
  id: 17,
207
178
  label: 'Refacturation',
208
- responseType: null,
209
- min: null,
210
- max: null,
211
- default: null,
179
+ responseType: ResponseType.INTERN_ACTIVITY.id,
212
180
  weight: 5,
213
181
  isExterne: true,
214
182
  idMailAuto: null,
@@ -217,10 +185,7 @@ export const TaskResponseType = {
217
185
  MAJ_INFO_FACTURATION: {
218
186
  id: 18,
219
187
  label: 'Mise à jour info facturation',
220
- responseType: ResponseType.MAIL,
221
- min: 3,
222
- max: 72,
223
- default: 24,
188
+ responseType: ResponseType.MAIL.id,
224
189
  weight: 2,
225
190
  isExterne: true,
226
191
  idMailAuto: null,
@@ -229,10 +194,7 @@ export const TaskResponseType = {
229
194
  FACTURES_MANQUANTES: {
230
195
  id: 19,
231
196
  label: 'Facture manquante',
232
- responseType: ResponseType.MAIL,
233
- min: 3,
234
- max: 72,
235
- default: 24,
197
+ responseType: ResponseType.MAIL.id,
236
198
  weight: 2,
237
199
  isExterne: true,
238
200
  idMailAuto: null,
@@ -241,10 +203,7 @@ export const TaskResponseType = {
241
203
  QUESTIONS_FACTURATIONS: {
242
204
  id: 20,
243
205
  label: 'Questions facturations',
244
- responseType: null,
245
- min: null,
246
- max: null,
247
- default: null,
206
+ responseType: ResponseType.INTERN_ACTIVITY.id,
248
207
  weight: 4,
249
208
  isExterne: true,
250
209
  idMailAuto: null,
@@ -253,10 +212,7 @@ export const TaskResponseType = {
253
212
  SUIVI_PROSPECT: {
254
213
  id: 21,
255
214
  label: 'Suivi prospect',
256
- responseType: null,
257
- min: 0.5,
258
- max: 48,
259
- default: 24,
215
+ responseType: ResponseType.INTERN_ACTIVITY.id,
260
216
  weight: 3,
261
217
  isExterne: true,
262
218
  idMailAuto: null,
@@ -265,10 +221,7 @@ export const TaskResponseType = {
265
221
  DOC_MANQUANT_CREA_DOSSIER: {
266
222
  id: 22,
267
223
  label: 'Document manquant pour création dossier',
268
- responseType: ResponseType.MAIL,
269
- min: 3,
270
- max: 72,
271
- default: 24,
224
+ responseType: ResponseType.MAIL.id,
272
225
  weight: 2,
273
226
  isExterne: false,
274
227
  idMailAuto: null,
@@ -277,10 +230,7 @@ export const TaskResponseType = {
277
230
  IMPORT_CSV: {
278
231
  id: 23,
279
232
  label: 'Faire import csv',
280
- responseType: null,
281
- min: 1,
282
- max: 96,
283
- default: 24,
233
+ responseType: ResponseType.INTERN_ACTIVITY.id,
284
234
  weight: 9,
285
235
  isExterne: false,
286
236
  idMailAuto: null,
@@ -289,10 +239,7 @@ export const TaskResponseType = {
289
239
  ARCHIVER_CLIENT: {
290
240
  id: 24,
291
241
  label: 'Archiver un client',
292
- responseType: null,
293
- min: 1,
294
- max: 96,
295
- default: 24,
242
+ responseType: ResponseType.INTERN_ACTIVITY.id,
296
243
  weight: 1,
297
244
  isExterne: false,
298
245
  idMailAuto: null,
@@ -301,10 +248,7 @@ export const TaskResponseType = {
301
248
  OD_SALAIRE: {
302
249
  id: 25,
303
250
  label: 'Passer les OD de salaire',
304
- responseType: null,
305
- min: 1,
306
- max: 96,
307
- default: 24,
251
+ responseType: ResponseType.INTERN_ACTIVITY.id,
308
252
  weight: 1,
309
253
  isExterne: false,
310
254
  idMailAuto: null,
@@ -313,10 +257,7 @@ export const TaskResponseType = {
313
257
  VERIFICATION_IMPAYE: {
314
258
  id: 26,
315
259
  label: 'Vérification impayé',
316
- responseType: null,
317
- min: 1,
318
- max: 96,
319
- default: 24,
260
+ responseType: ResponseType.INTERN_ACTIVITY.id,
320
261
  weight: 2,
321
262
  isExterne: false,
322
263
  idMailAuto: null,
@@ -325,10 +266,7 @@ export const TaskResponseType = {
325
266
  MODIFICATION_DIA_CLEMENTINIER: {
326
267
  id: 27,
327
268
  label: 'Modification Clémentinier/Dia',
328
- responseType: null,
329
- min: 1,
330
- max: 96,
331
- default: 24,
269
+ responseType: ResponseType.INTERN_ACTIVITY.id,
332
270
  weight: 2,
333
271
  isExterne: false,
334
272
  idMailAuto: null,
@@ -337,10 +275,7 @@ export const TaskResponseType = {
337
275
  RESILIATION: {
338
276
  id: 28,
339
277
  label: 'Résiliation',
340
- responseType: ResponseType.CALL,
341
- min: 0.5,
342
- max: 48,
343
- default: 24,
278
+ responseType: ResponseType.CALL.id,
344
279
  weight: 6,
345
280
  isExterne: true,
346
281
  idMailAuto: null,
@@ -349,10 +284,7 @@ export const TaskResponseType = {
349
284
  QUESTIONS_COMPTABLES: {
350
285
  id: 29,
351
286
  label: 'Questions comptables',
352
- responseType: ResponseType.CALL,
353
- min: 0.5,
354
- max: 48,
355
- default: 24,
287
+ responseType: ResponseType.CALL.id,
356
288
  weight: 6,
357
289
  isExterne: true,
358
290
  idMailAuto: null,
@@ -2,6 +2,7 @@ import { IFile } from '../../..';
2
2
 
3
3
  export interface ReadRevisionTransactionDetail {
4
4
  id: number;
5
+ invoiceNumber: string | null;
5
6
  label: string | null;
6
7
  reference: string | null;
7
8
  dateValue: Date;
@@ -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'], { each: true })
98
+ @IsIn(['society', 'comments', 'notification', 'mail', 'user', 'userWhoCreated', 'userWhoProcessed', 'userWhoRefused', 'mailAutoSentForLate'], { each: true })
99
99
  include?: string[];
100
100
  }
@@ -13,7 +13,7 @@ export class QueryStatsByRolesInCsv {
13
13
  @IsString({
14
14
  each: true,
15
15
  })
16
- @IsIn(['averageDeadlineTimeByCreator', 'sumCreatedTaskByUser', 'sumReceivedTaskByUser', 'sumLateTaskByUser', 'averageProcessedTimeByUser', 'sumTaskByTaskType', 'averageDeadlineTimeByUser'], { each: true })
16
+ @IsIn(['averageDeadlineTimeByCreator', 'sumCreatedTaskByUser', 'sumReceivedTaskByUser', 'sumLateTaskByUser', 'sumRefusedTaskByUser', 'averageProcessedTimeByUser', 'sumTaskByTaskType', 'averageDeadlineTimeByUser'], { each: true })
17
17
  statistics?: string[];
18
18
 
19
19
  @ApiPropertyOptional()
@@ -0,0 +1,14 @@
1
+ import { NotificationType } from '../../Enum/NotificationType';
2
+
3
+ export interface IMobileNotificationLog {
4
+ id: number;
5
+ idType: NotificationType;
6
+ lastSent: Date | null;
7
+ nextSend: Date | null;
8
+ success: boolean;
9
+ error: string | null;
10
+ idSociety: number;
11
+ createdAt?: Date | null;
12
+ updatedAt?: Date | null;
13
+
14
+ }
@@ -48,7 +48,7 @@ import { ISms } from './ISms';
48
48
  import { IUser } from './IUser';
49
49
  import { ISocietyEvent } from './ISocietyEvent';
50
50
  import {
51
- ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety,
51
+ ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail,
52
52
  } from '../..';
53
53
  import { IBrandType } from './IBrandType';
54
54
 
@@ -202,4 +202,5 @@ export interface ISociety {
202
202
  partneredAccountantCompaniesServices: IPartneredAccountantCompanyService[];
203
203
  partneredAccountantRelated: IPartneredAccountantToSociety;
204
204
  events: ISocietyEvent[];
205
+ mails: IMail[];
205
206
  }
package/ts/types/index.ts CHANGED
@@ -305,6 +305,7 @@ export * from './Interface/models/INafCode';
305
305
  export * from './Interface/models/IMobile';
306
306
  export * from './Interface/models/ISocietyEvent';
307
307
  export * from './Interface/models/ITask';
308
+ export * from './Interface/models/IMobileNotificationLog';
308
309
 
309
310
  // Forms
310
311
  export * from './Form/FormAuthenticate';