@silexpert/core 1.2.85 → 1.2.86
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/assets/laposteDistributors.json +1 -1
- package/dist/cjs/api/resources/Equipment.d.ts +1 -5
- package/dist/cjs/api/resources/Equipment.d.ts.map +1 -1
- package/dist/cjs/api/resources/Equipment.js +2 -10
- package/dist/cjs/api/resources/Equipment.js.map +1 -1
- package/dist/cjs/api/resources/TimeRecorder.d.ts +2 -2
- package/dist/cjs/api/resources/TimeRecorder.d.ts.map +1 -1
- package/dist/cjs/api/resources/TimeRecorder.js +2 -2
- package/dist/cjs/api/resources/TimeRecorder.js.map +1 -1
- package/dist/cjs/api/resources/User.d.ts +2 -1
- package/dist/cjs/api/resources/User.d.ts.map +1 -1
- package/dist/cjs/api/resources/User.js +3 -0
- package/dist/cjs/api/resources/User.js.map +1 -1
- package/dist/cjs/types/Enum/Brevo.d.ts +3 -1
- package/dist/cjs/types/Enum/Brevo.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Brevo.js +2 -0
- package/dist/cjs/types/Enum/Brevo.js.map +1 -1
- package/dist/cjs/types/Enum/Country.d.ts +0 -4
- package/dist/cjs/types/Enum/Country.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Country.js +1 -6441
- package/dist/cjs/types/Enum/Country.js.map +1 -1
- package/dist/cjs/types/Enum/EquipmentType.d.ts +5 -1
- package/dist/cjs/types/Enum/EquipmentType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/EquipmentType.js +5 -0
- package/dist/cjs/types/Enum/EquipmentType.js.map +1 -1
- package/dist/cjs/types/Enum/LegalForm.js +4 -4
- package/dist/cjs/types/Enum/LegalForm.js.map +1 -1
- package/dist/cjs/types/Enum/Log.js +15 -15
- package/dist/cjs/types/Enum/Log.js.map +1 -1
- package/dist/cjs/types/Enum/Phone.js +2 -2
- package/dist/cjs/types/Enum/Phone.js.map +1 -1
- package/dist/cjs/types/Enum/RegistrationSource.d.ts +294 -1
- package/dist/cjs/types/Enum/RegistrationSource.d.ts.map +1 -1
- package/dist/cjs/types/Enum/RegistrationSource.js +294 -1
- package/dist/cjs/types/Enum/RegistrationSource.js.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +4 -0
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/cjs/types/Interface/api/timeRecorder/Query.d.ts +1 -1
- package/dist/cjs/types/Interface/api/timeRecorder/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/timeRecorder/Query.js +5 -5
- package/dist/cjs/types/Interface/api/timeRecorder/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/RegisterProspect.d.ts +74 -0
- package/dist/cjs/types/Interface/api/user/RegisterProspect.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/user/RegisterProspect.js +190 -0
- package/dist/cjs/types/Interface/api/user/RegisterProspect.js.map +1 -0
- package/dist/cjs/types/Interface/models/IAnalyticsUtm.d.ts +1 -1
- package/dist/cjs/types/Interface/models/IAnalyticsUtm.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IAnalyticsUtm.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -1
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/Equipment.d.ts +1 -5
- package/dist/mjs/api/resources/Equipment.d.ts.map +1 -1
- package/dist/mjs/api/resources/Equipment.js +1 -14
- package/dist/mjs/api/resources/Equipment.js.map +1 -1
- package/dist/mjs/api/resources/TimeRecorder.d.ts +2 -2
- package/dist/mjs/api/resources/TimeRecorder.d.ts.map +1 -1
- package/dist/mjs/api/resources/TimeRecorder.js +2 -2
- package/dist/mjs/api/resources/TimeRecorder.js.map +1 -1
- package/dist/mjs/api/resources/User.d.ts +2 -1
- package/dist/mjs/api/resources/User.d.ts.map +1 -1
- package/dist/mjs/api/resources/User.js +3 -0
- package/dist/mjs/api/resources/User.js.map +1 -1
- package/dist/mjs/types/Enum/Brevo.d.ts +3 -1
- package/dist/mjs/types/Enum/Brevo.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Brevo.js +2 -0
- package/dist/mjs/types/Enum/Brevo.js.map +1 -1
- package/dist/mjs/types/Enum/Country.d.ts +0 -4
- package/dist/mjs/types/Enum/Country.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Country.js +0 -6440
- package/dist/mjs/types/Enum/Country.js.map +1 -1
- package/dist/mjs/types/Enum/EquipmentType.d.ts +5 -1
- package/dist/mjs/types/Enum/EquipmentType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/EquipmentType.js +5 -0
- package/dist/mjs/types/Enum/EquipmentType.js.map +1 -1
- package/dist/mjs/types/Enum/LegalForm.js +4 -4
- package/dist/mjs/types/Enum/LegalForm.js.map +1 -1
- package/dist/mjs/types/Enum/Log.js +15 -15
- package/dist/mjs/types/Enum/Log.js.map +1 -1
- package/dist/mjs/types/Enum/Phone.js +2 -2
- package/dist/mjs/types/Enum/Phone.js.map +1 -1
- package/dist/mjs/types/Enum/RegistrationSource.d.ts +294 -1
- package/dist/mjs/types/Enum/RegistrationSource.d.ts.map +1 -1
- package/dist/mjs/types/Enum/RegistrationSource.js +293 -0
- package/dist/mjs/types/Enum/RegistrationSource.js.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +4 -0
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/mjs/types/Interface/api/timeRecorder/Query.d.ts +1 -1
- package/dist/mjs/types/Interface/api/timeRecorder/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/timeRecorder/Query.js +3 -3
- package/dist/mjs/types/Interface/api/timeRecorder/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/RegisterProspect.d.ts +74 -0
- package/dist/mjs/types/Interface/api/user/RegisterProspect.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/user/RegisterProspect.js +214 -0
- package/dist/mjs/types/Interface/api/user/RegisterProspect.js.map +1 -0
- package/dist/mjs/types/Interface/models/IAnalyticsUtm.d.ts +1 -1
- package/dist/mjs/types/Interface/models/IAnalyticsUtm.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IAnalyticsUtm.js.map +1 -1
- package/dist/mjs/types/index.d.ts +1 -1
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -1
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Equipment.ts +1 -15
- package/ts/api/resources/TimeRecorder.ts +3 -3
- package/ts/api/resources/User.ts +5 -0
- package/ts/types/Enum/Brevo.ts +2 -0
- package/ts/types/Enum/Country.ts +0 -6441
- package/ts/types/Enum/EquipmentType.ts +5 -0
- package/ts/types/Enum/LegalForm.ts +4 -4
- package/ts/types/Enum/Log.ts +15 -15
- package/ts/types/Enum/Phone.ts +2 -2
- package/ts/types/Enum/RegistrationSource.ts +294 -0
- package/ts/types/Interface/api/config/ConfigType.ts +5 -0
- package/ts/types/Interface/api/timeRecorder/Query.ts +1 -1
- package/ts/types/Interface/api/user/RegisterProspect.ts +183 -0
- package/ts/types/Interface/models/IAnalyticsUtm.ts +1 -1
- package/ts/types/index.ts +1 -1
- package/assets/nationalities.json +0 -1
- package/dist/cjs/types/Enum/RegistrationSourceDetail.d.ts +0 -195
- package/dist/cjs/types/Enum/RegistrationSourceDetail.d.ts.map +0 -1
- package/dist/cjs/types/Enum/RegistrationSourceDetail.js +0 -198
- package/dist/cjs/types/Enum/RegistrationSourceDetail.js.map +0 -1
- package/dist/mjs/types/Enum/RegistrationSourceDetail.d.ts +0 -195
- package/dist/mjs/types/Enum/RegistrationSourceDetail.d.ts.map +0 -1
- package/dist/mjs/types/Enum/RegistrationSourceDetail.js +0 -195
- package/dist/mjs/types/Enum/RegistrationSourceDetail.js.map +0 -1
- package/ts/types/Enum/RegistrationSourceDetail.ts +0 -194
|
@@ -12,6 +12,7 @@ export enum EquipmentType {
|
|
|
12
12
|
BADGE = 11,
|
|
13
13
|
CALCULATOR = 12,
|
|
14
14
|
USB_HUB = 13,
|
|
15
|
+
NUMPAD = 14,
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export const EquipmentTypeDetail = [
|
|
@@ -67,4 +68,8 @@ export const EquipmentTypeDetail = [
|
|
|
67
68
|
id: EquipmentType.USB_HUB,
|
|
68
69
|
label: 'Hub USB',
|
|
69
70
|
},
|
|
71
|
+
{
|
|
72
|
+
id: EquipmentType.NUMPAD,
|
|
73
|
+
label: 'Pavé numérique',
|
|
74
|
+
},
|
|
70
75
|
] as const;
|
|
@@ -110,7 +110,7 @@ export const LegalForm: LegalFormType = {
|
|
|
110
110
|
diaCode: 13,
|
|
111
111
|
hideVat: false,
|
|
112
112
|
individual: false,
|
|
113
|
-
pappersLabel:
|
|
113
|
+
pappersLabel: 'GIE, groupement d\'intérêt économique',
|
|
114
114
|
},
|
|
115
115
|
SELARL: {
|
|
116
116
|
id: LegalFormTypeEnum.SELARL,
|
|
@@ -119,7 +119,7 @@ export const LegalForm: LegalFormType = {
|
|
|
119
119
|
diaCode: 12213,
|
|
120
120
|
hideVat: false,
|
|
121
121
|
individual: false,
|
|
122
|
-
pappersLabel:
|
|
122
|
+
pappersLabel: 'SERL, société d\'exercice libéral à responsabilité limitée',
|
|
123
123
|
},
|
|
124
124
|
ASSOCIATION: {
|
|
125
125
|
id: LegalFormTypeEnum.ASSOCIATION,
|
|
@@ -146,7 +146,7 @@ export const LegalForm: LegalFormType = {
|
|
|
146
146
|
diaCode: 12221,
|
|
147
147
|
hideVat: false,
|
|
148
148
|
individual: false,
|
|
149
|
-
pappersLabel:
|
|
149
|
+
pappersLabel: 'SA à conseil d\'administration (s.a.i.)',
|
|
150
150
|
},
|
|
151
151
|
SNC: {
|
|
152
152
|
id: LegalFormTypeEnum.SNC,
|
|
@@ -206,7 +206,7 @@ export const LegalForm: LegalFormType = {
|
|
|
206
206
|
diaCode: null,
|
|
207
207
|
hideVat: false,
|
|
208
208
|
individual: false,
|
|
209
|
-
pappersLabel:
|
|
209
|
+
pappersLabel: 'SCP d\'avocats',
|
|
210
210
|
},
|
|
211
211
|
SOCIETE_CIVILE: {
|
|
212
212
|
id: LegalFormTypeEnum.SOCIETE_CIVILE,
|
package/ts/types/Enum/Log.ts
CHANGED
|
@@ -81,7 +81,7 @@ export const LogTypeDetail = {
|
|
|
81
81
|
put: 'a modifié',
|
|
82
82
|
delete: 'a supprimé',
|
|
83
83
|
},
|
|
84
|
-
message:
|
|
84
|
+
message: 'l\'IS',
|
|
85
85
|
},
|
|
86
86
|
BALANCESHEET: {
|
|
87
87
|
id: LogType.BALANCESHEET,
|
|
@@ -93,7 +93,7 @@ export const LogTypeDetail = {
|
|
|
93
93
|
put: 'a modifié',
|
|
94
94
|
delete: 'a supprimé',
|
|
95
95
|
},
|
|
96
|
-
message:
|
|
96
|
+
message: 'l\'état d\'un bilan',
|
|
97
97
|
},
|
|
98
98
|
SUPERVISION: {
|
|
99
99
|
id: LogType.SUPERVISION,
|
|
@@ -217,11 +217,11 @@ export const LogTypeDetail = {
|
|
|
217
217
|
color: 'grey darken-2',
|
|
218
218
|
icon: null,
|
|
219
219
|
actions: {
|
|
220
|
-
post:
|
|
220
|
+
post: 's\'est connecté',
|
|
221
221
|
put: 'a modifié',
|
|
222
222
|
delete: 'a supprimé',
|
|
223
223
|
},
|
|
224
|
-
message:
|
|
224
|
+
message: 'avec l\'IP %ip%',
|
|
225
225
|
},
|
|
226
226
|
PAUSE: {
|
|
227
227
|
id: LogType.PAUSE,
|
|
@@ -280,7 +280,7 @@ export const LogTypeDetail = {
|
|
|
280
280
|
put: 'a modifié',
|
|
281
281
|
delete: 'a supprimé',
|
|
282
282
|
},
|
|
283
|
-
message:
|
|
283
|
+
message: 'd\'un fichier',
|
|
284
284
|
},
|
|
285
285
|
PAUSE_END: {
|
|
286
286
|
id: LogType.PAUSE_END,
|
|
@@ -314,7 +314,7 @@ export const LogTypeDetail = {
|
|
|
314
314
|
put: 'a modifié',
|
|
315
315
|
delete: 'a supprimé',
|
|
316
316
|
},
|
|
317
|
-
message:
|
|
317
|
+
message: '%societyName% avec pour id %societyId% avec l\'utilisateur %user%, email : %mail%',
|
|
318
318
|
},
|
|
319
319
|
REGULATION_DELETE: {
|
|
320
320
|
id: LogType.REGULATION_DELETE,
|
|
@@ -326,7 +326,7 @@ export const LogTypeDetail = {
|
|
|
326
326
|
put: 'a modifié',
|
|
327
327
|
delete: 'a supprimé',
|
|
328
328
|
},
|
|
329
|
-
message:
|
|
329
|
+
message: 'une régule d\'un montant de %amount% €',
|
|
330
330
|
},
|
|
331
331
|
TERMINATION: {
|
|
332
332
|
id: LogType.TERMINATION,
|
|
@@ -375,7 +375,7 @@ export const LogTypeDetail = {
|
|
|
375
375
|
delete: 'a supprimé',
|
|
376
376
|
},
|
|
377
377
|
message:
|
|
378
|
-
|
|
378
|
+
'le paiement INPI lié à la prestation %prestation% pour l\'exercice %dateStart%-%dateEnd% et ayant le numéros de dossier %file%',
|
|
379
379
|
},
|
|
380
380
|
VALIDATE_CALENDAR: {
|
|
381
381
|
id: LogType.VALIDATE_CALENDAR,
|
|
@@ -387,7 +387,7 @@ export const LogTypeDetail = {
|
|
|
387
387
|
put: 'a modifié',
|
|
388
388
|
delete: 'a supprimé',
|
|
389
389
|
},
|
|
390
|
-
message:
|
|
390
|
+
message: 'l\'agenda pour le collaborateur, %user%, à la date du %date%',
|
|
391
391
|
},
|
|
392
392
|
INACTIVITY: {
|
|
393
393
|
id: LogType.INACTIVITY,
|
|
@@ -411,7 +411,7 @@ export const LogTypeDetail = {
|
|
|
411
411
|
put: 'a validé',
|
|
412
412
|
delete: 'a supprimé',
|
|
413
413
|
},
|
|
414
|
-
message:
|
|
414
|
+
message: 'un paiement social (%payment%) d\'une valeur de %amount% €',
|
|
415
415
|
},
|
|
416
416
|
CONSTITUTION: {
|
|
417
417
|
id: LogType.CONSTITUTION,
|
|
@@ -423,7 +423,7 @@ export const LogTypeDetail = {
|
|
|
423
423
|
put: 'a modifié',
|
|
424
424
|
delete: 'a supprimé',
|
|
425
425
|
},
|
|
426
|
-
message:
|
|
426
|
+
message: 'l\'état de la constitution en: %state%',
|
|
427
427
|
},
|
|
428
428
|
APPROBATION: {
|
|
429
429
|
id: LogType.APPROBATION,
|
|
@@ -435,7 +435,7 @@ export const LogTypeDetail = {
|
|
|
435
435
|
put: 'a validé',
|
|
436
436
|
delete: 'a supprimé',
|
|
437
437
|
},
|
|
438
|
-
message:
|
|
438
|
+
message: 'l\'approbation de compte',
|
|
439
439
|
},
|
|
440
440
|
ACCEPTATION: {
|
|
441
441
|
id: LogType.ACCEPTATION,
|
|
@@ -447,7 +447,7 @@ export const LogTypeDetail = {
|
|
|
447
447
|
put: 'a modifié',
|
|
448
448
|
delete: 'a supprimé',
|
|
449
449
|
},
|
|
450
|
-
message:
|
|
450
|
+
message: 'l\'acceptation de la mission',
|
|
451
451
|
},
|
|
452
452
|
IP: {
|
|
453
453
|
id: LogType.IP,
|
|
@@ -459,7 +459,7 @@ export const LogTypeDetail = {
|
|
|
459
459
|
put: 'a modifié',
|
|
460
460
|
delete: 'a supprimé',
|
|
461
461
|
},
|
|
462
|
-
message:
|
|
462
|
+
message: 'l\'ip du collaborateur %firstname% %lastname%',
|
|
463
463
|
},
|
|
464
464
|
TYPE_CLIENT: {
|
|
465
465
|
id: LogType.TYPE_CLIENT,
|
|
@@ -503,7 +503,7 @@ export const LogTypeDetail = {
|
|
|
503
503
|
color: 'grey darken-2',
|
|
504
504
|
icon: null,
|
|
505
505
|
actions: {
|
|
506
|
-
post:
|
|
506
|
+
post: 's\'est connecté en tant que',
|
|
507
507
|
put: 'a modifié',
|
|
508
508
|
delete: 'a supprimé',
|
|
509
509
|
},
|
package/ts/types/Enum/Phone.ts
CHANGED
|
@@ -362,7 +362,7 @@ export const PhonePrefix = {
|
|
|
362
362
|
CÔTEDIVOIRE: {
|
|
363
363
|
id: 47,
|
|
364
364
|
prefix: '+225',
|
|
365
|
-
text:
|
|
365
|
+
text: '+225 (Côte d\'Ivoire)',
|
|
366
366
|
},
|
|
367
367
|
CUBA: {
|
|
368
368
|
id: 49,
|
|
@@ -952,7 +952,7 @@ export const PhonePrefix = {
|
|
|
952
952
|
UNITEDSTATESOFAMERICA: {
|
|
953
953
|
id: 189,
|
|
954
954
|
prefix: '+1',
|
|
955
|
-
text:
|
|
955
|
+
text: '+1 (États-Unis d\'Amérique)',
|
|
956
956
|
},
|
|
957
957
|
URUGUAY: {
|
|
958
958
|
id: 190,
|
|
@@ -1,9 +1,303 @@
|
|
|
1
1
|
export enum RegistrationSource {
|
|
2
2
|
INCOMING_CALL = 2,
|
|
3
|
+
APPEL_SORTANT = 3,
|
|
4
|
+
FORMULAIRE = 4,
|
|
5
|
+
WEBSTIM = 5,
|
|
6
|
+
FACEBOOK = 6,
|
|
7
|
+
RECOMMANDATION_DIRECTION = 7,
|
|
8
|
+
RECOMMANDATION_COMPTABLE = 8,
|
|
9
|
+
RECOMMANDATION_CLIENT = 9,
|
|
10
|
+
BOUCHE_A_OREILLE = 10,
|
|
11
|
+
B2B_02 = 11,
|
|
12
|
+
B2B_03 = 12,
|
|
13
|
+
B2B_M = 13,
|
|
14
|
+
B2B = 14,
|
|
15
|
+
ADS_MOBILE = 15,
|
|
16
|
+
ADS_08 = 16,
|
|
17
|
+
ADS_HOME = 17,
|
|
18
|
+
ADS_DESK = 18,
|
|
19
|
+
ADS_10 = 19,
|
|
20
|
+
ADS_LP_04 = 20,
|
|
21
|
+
ADS_LP_05 = 21,
|
|
22
|
+
ADS_LP_06 = 22,
|
|
23
|
+
ADS_LP_08 = 23,
|
|
24
|
+
ADS_LP_09 = 24,
|
|
25
|
+
ADS_LP_11 = 25,
|
|
26
|
+
JPL = 26,
|
|
27
|
+
FIZEO = 27,
|
|
28
|
+
SALON_ENT_2016 = 28,
|
|
3
29
|
CHAT = 29,
|
|
30
|
+
RELATION_PRESSE = 30,
|
|
31
|
+
MANAGEO = 31,
|
|
4
32
|
COMPANEO = 32,
|
|
33
|
+
VIACOM = 33,
|
|
34
|
+
STATUT_EXPRESS = 34,
|
|
35
|
+
CCM = 35,
|
|
36
|
+
SALON_SME = 36,
|
|
37
|
+
LPBACK = 37,
|
|
38
|
+
LPPAIE = 38,
|
|
39
|
+
LPCREA = 39,
|
|
40
|
+
SDE_NANTES = 40,
|
|
41
|
+
FORM_CREATION = 41,
|
|
42
|
+
FORM_MYFRUCTU = 42,
|
|
43
|
+
FORM_ASSISTANCE = 43,
|
|
44
|
+
FORM_COMPTABACK = 44,
|
|
45
|
+
FORM_PAIE = 45,
|
|
46
|
+
FORM_FORMATION = 46,
|
|
47
|
+
MAILING = 47,
|
|
48
|
+
CREATION_STATUTS_ONLINE = 48,
|
|
5
49
|
REFERRAL_PROSPECT = 49,
|
|
50
|
+
HENRY_SCHEIN = 50,
|
|
51
|
+
FREEMIUM_MYCLE = 51,
|
|
52
|
+
HELLOPRO = 52,
|
|
53
|
+
PRESTATIONS_COMPLEMENTAIRES = 53,
|
|
54
|
+
SOS_COMPTA = 54,
|
|
55
|
+
MYCLE_FREEMIUM_MOBILE = 55,
|
|
56
|
+
WEBINAR_FRENCHWEB = 56,
|
|
57
|
+
COMPTA_PRO = 57,
|
|
58
|
+
COMPTA_ENTREPRISE = 58,
|
|
59
|
+
CAPTAINCONTRAT = 59,
|
|
60
|
+
BASE_CO = 60,
|
|
61
|
+
PROSPECTS_GENERES_VIA_LES_FORMULAIRES_AUTOMATIQUES = 61,
|
|
62
|
+
COMPTACLEMENTINE_NET = 62,
|
|
63
|
+
LEGALSTART = 63,
|
|
64
|
+
SALON_SDE = 64,
|
|
65
|
+
TECHNICONTACT = 65,
|
|
66
|
+
BLOG = 66,
|
|
67
|
+
COMPTASTART = 67,
|
|
68
|
+
CHAT_EN_LIGNE_FERME = 68,
|
|
69
|
+
SALON_SILECO = 69,
|
|
6
70
|
ONLINE_SUBSCRIPTION = 70,
|
|
71
|
+
COMPTASTART_SOUSCRIPTION_DIRECT = 71,
|
|
72
|
+
START_OF_SERVICES = 72,
|
|
73
|
+
POPUP_RAPPEL = 73,
|
|
74
|
+
POPUP_RAPPEL_FERMETURE = 74,
|
|
75
|
+
BOUTIQUE_MARSEILLE = 75,
|
|
7
76
|
NEWSLETTER = 76,
|
|
77
|
+
LIVRE_BLANC = 77,
|
|
78
|
+
COMPTASTART_EARLY = 78,
|
|
79
|
+
COMPTALIB = 79,
|
|
80
|
+
COOVER_LEAD = 80,
|
|
81
|
+
FRANCE_RELANCE = 81,
|
|
82
|
+
AGENCE_91M2 = 82,
|
|
83
|
+
CCM_PERFORMANCE = 83,
|
|
84
|
+
PARTENAIRES = 84,
|
|
85
|
+
KANDBAZ = 85,
|
|
8
86
|
PARTNERED_ACCOUNTANT = 90,
|
|
87
|
+
ORMATION_CSE = 91,
|
|
88
|
+
WHATSAPP = 92,
|
|
89
|
+
GOW_BUSINESS = 93,
|
|
90
|
+
AXELIUM_CONSEIL = 94,
|
|
91
|
+
SUMUP = 95,
|
|
92
|
+
GESCOM_GRATUITE = 100,
|
|
93
|
+
SHINE = 101,
|
|
94
|
+
GO_ENTREPRENEUR_MSD = 102,
|
|
95
|
+
GO_ENTREPRENEUR_LL = 103,
|
|
96
|
+
GO_ENTREPRENEUR_VW = 104,
|
|
97
|
+
GO_ENTREPRENEUR_MG = 105,
|
|
98
|
+
GO_ENTREPRENEUR_CK = 106,
|
|
99
|
+
FACEBOOK_2 = 107,
|
|
100
|
+
POURCENTAGE_ARNAUD_L = 108,
|
|
101
|
+
FORM_ADWORDS = 109,
|
|
102
|
+
LES_TRICOLORES = 110,
|
|
103
|
+
LEGALPLACE = 111,
|
|
104
|
+
LE_COMPTABLE_FRANCAIS = 112,
|
|
105
|
+
KLEMS = 113,
|
|
106
|
+
CALENDLY = 114,
|
|
107
|
+
LINKEDIN = 115,
|
|
9
108
|
}
|
|
109
|
+
|
|
110
|
+
export const RegistrationSourceDetail = {
|
|
111
|
+
INCOMING_CALL: {
|
|
112
|
+
id: RegistrationSource.INCOMING_CALL,
|
|
113
|
+
name: 'Appel Entrant',
|
|
114
|
+
alias: 'appel entrant',
|
|
115
|
+
color: '#FF654F',
|
|
116
|
+
},
|
|
117
|
+
FORM: {
|
|
118
|
+
id: RegistrationSource.FORMULAIRE,
|
|
119
|
+
name: 'Formulaire',
|
|
120
|
+
alias: 'formulaire',
|
|
121
|
+
color: '#5C9CFF',
|
|
122
|
+
},
|
|
123
|
+
MANAGEMENT_RECOMMENDATION: {
|
|
124
|
+
id: RegistrationSource.RECOMMANDATION_DIRECTION,
|
|
125
|
+
name: 'Recommandation direction',
|
|
126
|
+
alias: 'recommandation direction',
|
|
127
|
+
color: '#540AB2',
|
|
128
|
+
},
|
|
129
|
+
ACCOUNTANT_RECOMMANDATION: {
|
|
130
|
+
id: RegistrationSource.RECOMMANDATION_COMPTABLE,
|
|
131
|
+
name: 'Recommandation comptable',
|
|
132
|
+
alias: 'recommandation comptable',
|
|
133
|
+
color: '#FFB44F',
|
|
134
|
+
},
|
|
135
|
+
ACCOUNTANT_CUSTOMER: {
|
|
136
|
+
id: RegistrationSource.RECOMMANDATION_CLIENT,
|
|
137
|
+
name: 'Recommandation client',
|
|
138
|
+
alias: 'Recommandation client',
|
|
139
|
+
color: '#A45CFF',
|
|
140
|
+
},
|
|
141
|
+
CHAT: {
|
|
142
|
+
id: RegistrationSource.CHAT,
|
|
143
|
+
name: 'Chat',
|
|
144
|
+
alias: 'Chat',
|
|
145
|
+
color: null,
|
|
146
|
+
},
|
|
147
|
+
STATUS_ONLINE_CREATION: {
|
|
148
|
+
id: RegistrationSource.CREATION_STATUTS_ONLINE,
|
|
149
|
+
name: 'Creation Statuts online',
|
|
150
|
+
alias: 'creation_status_online',
|
|
151
|
+
color: null,
|
|
152
|
+
},
|
|
153
|
+
SPONSORSHIP: {
|
|
154
|
+
id: RegistrationSource.REFERRAL_PROSPECT,
|
|
155
|
+
name: 'Prospect parrainage',
|
|
156
|
+
alias: 'prospect_parrainage',
|
|
157
|
+
color: null,
|
|
158
|
+
},
|
|
159
|
+
SOS_COMPTA: {
|
|
160
|
+
id: RegistrationSource.SOS_COMPTA,
|
|
161
|
+
name: 'Sos Compta',
|
|
162
|
+
alias: 'sos-compta',
|
|
163
|
+
color: '#EF8145',
|
|
164
|
+
},
|
|
165
|
+
LEGALSTART: {
|
|
166
|
+
id: RegistrationSource.LEGALSTART,
|
|
167
|
+
name: 'LegalStart',
|
|
168
|
+
alias: 'LegalS',
|
|
169
|
+
color: '#06b877',
|
|
170
|
+
},
|
|
171
|
+
COMPTASTART: {
|
|
172
|
+
id: RegistrationSource.COMPTASTART,
|
|
173
|
+
name: 'ComptaStart',
|
|
174
|
+
alias: 'ComptaStart',
|
|
175
|
+
color: '#15907F',
|
|
176
|
+
},
|
|
177
|
+
ONLINE_SUBSCRIPTION: {
|
|
178
|
+
id: RegistrationSource.ONLINE_SUBSCRIPTION,
|
|
179
|
+
name: 'Souscription en ligne',
|
|
180
|
+
alias: 'souscriptionOnline',
|
|
181
|
+
color: '#2C666E',
|
|
182
|
+
},
|
|
183
|
+
START_OF_SERVICES: {
|
|
184
|
+
id: RegistrationSource.START_OF_SERVICES,
|
|
185
|
+
name: 'Start of Services ',
|
|
186
|
+
alias: 'Start of Services',
|
|
187
|
+
color: '#123456',
|
|
188
|
+
},
|
|
189
|
+
REMINDER_POPUP: {
|
|
190
|
+
id: RegistrationSource.POPUP_RAPPEL,
|
|
191
|
+
name: 'Popup rappel',
|
|
192
|
+
alias: 'popup-rappel',
|
|
193
|
+
color: '#FA8072',
|
|
194
|
+
},
|
|
195
|
+
POPUP_REMINDER_CLOSING: {
|
|
196
|
+
id: RegistrationSource.POPUP_RAPPEL_FERMETURE,
|
|
197
|
+
name: 'Popup rappel fermeture',
|
|
198
|
+
alias: 'popup-rappel-fermeture',
|
|
199
|
+
color: '#FA8072',
|
|
200
|
+
},
|
|
201
|
+
MARSEILLE: {
|
|
202
|
+
id: RegistrationSource.BOUTIQUE_MARSEILLE,
|
|
203
|
+
name: 'Boutique Marseille',
|
|
204
|
+
alias: 'boutique-marseille',
|
|
205
|
+
color: '#8dcccc',
|
|
206
|
+
},
|
|
207
|
+
NEWSLETTER: {
|
|
208
|
+
id: RegistrationSource.NEWSLETTER,
|
|
209
|
+
name: 'Newsletter',
|
|
210
|
+
alias: 'newsletter',
|
|
211
|
+
color: '#a81397',
|
|
212
|
+
},
|
|
213
|
+
WHITE_BOOK: {
|
|
214
|
+
id: RegistrationSource.LIVRE_BLANC,
|
|
215
|
+
name: 'Livre blanc',
|
|
216
|
+
alias: 'livre blanc',
|
|
217
|
+
color: '#FFFFFF',
|
|
218
|
+
},
|
|
219
|
+
COMPTASTART_EARLY: {
|
|
220
|
+
id: RegistrationSource.COMPTASTART_EARLY,
|
|
221
|
+
name: 'Comptastart early',
|
|
222
|
+
alias: 'comptastart-early',
|
|
223
|
+
color: '#68D5F2',
|
|
224
|
+
},
|
|
225
|
+
COMPTALIB: {
|
|
226
|
+
id: RegistrationSource.COMPTALIB,
|
|
227
|
+
name: 'Comptalib',
|
|
228
|
+
alias: 'comptalib',
|
|
229
|
+
color: '#FF654F',
|
|
230
|
+
},
|
|
231
|
+
COOVER_LEAD: {
|
|
232
|
+
id: RegistrationSource.COOVER_LEAD,
|
|
233
|
+
name: 'Coover Lead',
|
|
234
|
+
alias: 'Coover Lead',
|
|
235
|
+
color: '#CCCCCC',
|
|
236
|
+
},
|
|
237
|
+
FRANCE_RELANCE: {
|
|
238
|
+
id: RegistrationSource.FRANCE_RELANCE,
|
|
239
|
+
name: 'France-relance',
|
|
240
|
+
alias: 'francerelance',
|
|
241
|
+
color: '#ff7e3c',
|
|
242
|
+
},
|
|
243
|
+
'91M2': {
|
|
244
|
+
id: RegistrationSource.AGENCE_91M2,
|
|
245
|
+
name: '91m2',
|
|
246
|
+
alias: '91m2',
|
|
247
|
+
color: '#FF67CF',
|
|
248
|
+
},
|
|
249
|
+
CCM_PERFORMANCE: {
|
|
250
|
+
id: RegistrationSource.CCM_PERFORMANCE,
|
|
251
|
+
name: 'CCM Performance',
|
|
252
|
+
alias: 'ccm-performance',
|
|
253
|
+
color: '#e53935',
|
|
254
|
+
},
|
|
255
|
+
PARTNERS: {
|
|
256
|
+
id: RegistrationSource.PARTENAIRES,
|
|
257
|
+
name: 'Partenaires',
|
|
258
|
+
alias: 'partenaires',
|
|
259
|
+
color: '#FF5733',
|
|
260
|
+
},
|
|
261
|
+
KANDBAZ: {
|
|
262
|
+
id: RegistrationSource.KANDBAZ,
|
|
263
|
+
name: 'Kandbaz',
|
|
264
|
+
alias: 'kandbaz',
|
|
265
|
+
color: '#F58A0B',
|
|
266
|
+
},
|
|
267
|
+
PARTNERED_ACCOUNTANT: {
|
|
268
|
+
id: RegistrationSource.PARTNERED_ACCOUNTANT,
|
|
269
|
+
name: 'Expert-Comptable Partenaire',
|
|
270
|
+
alias: 'expert-comptable-partenaire',
|
|
271
|
+
color: '#86dfaa',
|
|
272
|
+
},
|
|
273
|
+
CSE_FORMATION: {
|
|
274
|
+
id: RegistrationSource.ORMATION_CSE,
|
|
275
|
+
name: 'Formation CSE',
|
|
276
|
+
alias: 'formation-cse',
|
|
277
|
+
color: '#86dfaa',
|
|
278
|
+
},
|
|
279
|
+
WHATSAPP: {
|
|
280
|
+
id: RegistrationSource.WHATSAPP,
|
|
281
|
+
name: 'WHATSAPP',
|
|
282
|
+
alias: 'WHATSAPP',
|
|
283
|
+
color: '#128c7e',
|
|
284
|
+
},
|
|
285
|
+
GOWBUSINESS: {
|
|
286
|
+
id: RegistrationSource.GOW_BUSINESS,
|
|
287
|
+
name: 'GOW BUSINESS',
|
|
288
|
+
alias: 'GOWBUSINESS',
|
|
289
|
+
color: '#128c7e',
|
|
290
|
+
},
|
|
291
|
+
AXELIUM_CONSEIL: {
|
|
292
|
+
id: RegistrationSource.AXELIUM_CONSEIL,
|
|
293
|
+
name: 'AXELIUM CONSEIL',
|
|
294
|
+
alias: 'AXELIUM CONSEIL',
|
|
295
|
+
color: '#ff7e3c',
|
|
296
|
+
},
|
|
297
|
+
SUMUP: {
|
|
298
|
+
id: RegistrationSource.SUMUP,
|
|
299
|
+
name: 'SUMUP',
|
|
300
|
+
alias: 'SUMUP',
|
|
301
|
+
color: '#ff7e3c',
|
|
302
|
+
},
|
|
303
|
+
};
|
|
@@ -47,6 +47,7 @@ export interface ConfigType {
|
|
|
47
47
|
sharper: LambdaInfos;
|
|
48
48
|
chartizer: LambdaInfos;
|
|
49
49
|
authentication: Authentication;
|
|
50
|
+
recaptcha: Recaptcha;
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
export interface Authentication {
|
|
@@ -337,3 +338,7 @@ export interface Echo {
|
|
|
337
338
|
accountid: string;
|
|
338
339
|
apikey: string;
|
|
339
340
|
}
|
|
341
|
+
|
|
342
|
+
export interface Recaptcha {
|
|
343
|
+
secret: string;
|
|
344
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { IsEmail, IsEnum, IsNotEmpty, IsNumber, IsOptional, IsString, ValidateNested } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { Activity } from '../../../Enum/Activity';
|
|
4
|
+
import { Civility } from '../../../Enum/Civility';
|
|
5
|
+
import { IAnalyticsUtm } from '../../models/IAnalyticsUtm';
|
|
6
|
+
import { LegalFormTypeEnum } from '../../../Enum/LegalForm';
|
|
7
|
+
|
|
8
|
+
export interface ProspectInfo {
|
|
9
|
+
idCivility?: Civility;
|
|
10
|
+
firstname?: string;
|
|
11
|
+
lastname?: string;
|
|
12
|
+
email: string;
|
|
13
|
+
phone?: string;
|
|
14
|
+
prefix?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ProspectSocietyInfo {
|
|
18
|
+
name?: string;
|
|
19
|
+
idActivity?: Activity;
|
|
20
|
+
idLegalForm?: LegalFormTypeEnum;
|
|
21
|
+
zipCode?: string;
|
|
22
|
+
turnover?: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface ReferalProgram {
|
|
26
|
+
email: string;
|
|
27
|
+
lastname: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface RegisterProspect {
|
|
31
|
+
user: ProspectInfo,
|
|
32
|
+
society?: ProspectSocietyInfo,
|
|
33
|
+
referralProgram?: ReferalProgram,
|
|
34
|
+
recaptcha?: string;
|
|
35
|
+
token?: string;
|
|
36
|
+
idSource: number;
|
|
37
|
+
idTypeBrand: number;
|
|
38
|
+
analyticsUtm?: Omit<IAnalyticsUtm, 'idSociety'>;
|
|
39
|
+
comment?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
class ProspectInfoBody implements ProspectInfo {
|
|
43
|
+
@ApiPropertyOptional()
|
|
44
|
+
@IsOptional()
|
|
45
|
+
@IsEnum(Civility)
|
|
46
|
+
idCivility?: Civility;
|
|
47
|
+
|
|
48
|
+
@ApiPropertyOptional()
|
|
49
|
+
@IsOptional()
|
|
50
|
+
@IsString()
|
|
51
|
+
firstname?: string;
|
|
52
|
+
|
|
53
|
+
@ApiPropertyOptional()
|
|
54
|
+
@IsOptional()
|
|
55
|
+
@IsString()
|
|
56
|
+
lastname?: string;
|
|
57
|
+
|
|
58
|
+
@ApiProperty()
|
|
59
|
+
@IsString()
|
|
60
|
+
@IsEmail()
|
|
61
|
+
email: string;
|
|
62
|
+
|
|
63
|
+
@ApiPropertyOptional()
|
|
64
|
+
@IsOptional()
|
|
65
|
+
@IsString()
|
|
66
|
+
phone?: string;
|
|
67
|
+
|
|
68
|
+
@ApiPropertyOptional()
|
|
69
|
+
@IsOptional()
|
|
70
|
+
@IsString()
|
|
71
|
+
prefix?: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
class ProspectSocietyInfoBody implements ProspectSocietyInfo {
|
|
75
|
+
@ApiPropertyOptional()
|
|
76
|
+
@IsOptional()
|
|
77
|
+
@IsString()
|
|
78
|
+
name?: string;
|
|
79
|
+
|
|
80
|
+
@ApiPropertyOptional()
|
|
81
|
+
@IsOptional()
|
|
82
|
+
@IsEnum(Activity)
|
|
83
|
+
idActivity?: Activity;
|
|
84
|
+
|
|
85
|
+
@ApiPropertyOptional()
|
|
86
|
+
@IsOptional()
|
|
87
|
+
@IsEnum(LegalFormTypeEnum)
|
|
88
|
+
idLegalForm?: LegalFormTypeEnum;
|
|
89
|
+
|
|
90
|
+
@ApiPropertyOptional()
|
|
91
|
+
@IsOptional()
|
|
92
|
+
@IsString()
|
|
93
|
+
zipCode?: string;
|
|
94
|
+
|
|
95
|
+
@ApiPropertyOptional()
|
|
96
|
+
@IsOptional()
|
|
97
|
+
@IsNumber()
|
|
98
|
+
turnover?: number;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
class ReferalProgramBody implements ReferalProgram {
|
|
102
|
+
@ApiProperty()
|
|
103
|
+
@IsString()
|
|
104
|
+
@IsEmail()
|
|
105
|
+
email: string;
|
|
106
|
+
|
|
107
|
+
@ApiProperty()
|
|
108
|
+
@IsString()
|
|
109
|
+
lastname: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
class AnalyticsUtmBody implements Omit<IAnalyticsUtm, 'idSociety'> {
|
|
113
|
+
@ApiPropertyOptional()
|
|
114
|
+
@IsOptional()
|
|
115
|
+
@IsNumber()
|
|
116
|
+
id?: number;
|
|
117
|
+
|
|
118
|
+
@ApiProperty()
|
|
119
|
+
@IsString()
|
|
120
|
+
source: string | null;
|
|
121
|
+
|
|
122
|
+
@ApiProperty()
|
|
123
|
+
@IsString()
|
|
124
|
+
medium: string | null;
|
|
125
|
+
|
|
126
|
+
@ApiProperty()
|
|
127
|
+
@IsString()
|
|
128
|
+
campaign: string | null;
|
|
129
|
+
|
|
130
|
+
@ApiProperty()
|
|
131
|
+
@IsString()
|
|
132
|
+
term: string | null;
|
|
133
|
+
|
|
134
|
+
@ApiProperty()
|
|
135
|
+
@IsString()
|
|
136
|
+
content: string | null;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export class RegisterProspectBody implements RegisterProspect {
|
|
140
|
+
@ApiProperty()
|
|
141
|
+
@IsNumber()
|
|
142
|
+
idSource: number;
|
|
143
|
+
|
|
144
|
+
@ApiProperty()
|
|
145
|
+
@IsNumber()
|
|
146
|
+
idTypeBrand: number;
|
|
147
|
+
|
|
148
|
+
@ApiPropertyOptional()
|
|
149
|
+
@IsOptional()
|
|
150
|
+
@IsString()
|
|
151
|
+
@IsNotEmpty()
|
|
152
|
+
recaptcha?: string;
|
|
153
|
+
|
|
154
|
+
@ApiPropertyOptional()
|
|
155
|
+
@IsOptional()
|
|
156
|
+
@IsString()
|
|
157
|
+
@IsNotEmpty()
|
|
158
|
+
token?: string;
|
|
159
|
+
|
|
160
|
+
@ApiProperty()
|
|
161
|
+
@ValidateNested()
|
|
162
|
+
user: ProspectInfoBody;
|
|
163
|
+
|
|
164
|
+
@ApiPropertyOptional()
|
|
165
|
+
@IsOptional()
|
|
166
|
+
@ValidateNested()
|
|
167
|
+
society?: ProspectSocietyInfoBody;
|
|
168
|
+
|
|
169
|
+
@ApiPropertyOptional()
|
|
170
|
+
@IsOptional()
|
|
171
|
+
@ValidateNested()
|
|
172
|
+
referralProgram?: ReferalProgramBody;
|
|
173
|
+
|
|
174
|
+
@ApiPropertyOptional()
|
|
175
|
+
@IsOptional()
|
|
176
|
+
@ValidateNested()
|
|
177
|
+
analyticsUtm?: AnalyticsUtmBody;
|
|
178
|
+
|
|
179
|
+
@ApiPropertyOptional()
|
|
180
|
+
@IsOptional()
|
|
181
|
+
@IsString()
|
|
182
|
+
comment?: string;
|
|
183
|
+
}
|