@silexpert/core 1.2.87 → 1.2.88

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 (73) hide show
  1. package/dist/cjs/types/Enum/AbsenceType.d.ts +2 -1
  2. package/dist/cjs/types/Enum/AbsenceType.d.ts.map +1 -1
  3. package/dist/cjs/types/Enum/AbsenceType.js +5 -0
  4. package/dist/cjs/types/Enum/AbsenceType.js.map +1 -1
  5. package/dist/cjs/types/Enum/BrandAnytime.js +1 -1
  6. package/dist/cjs/types/Enum/BrandAnytime.js.map +1 -1
  7. package/dist/cjs/types/Enum/BrandClementine.js +5 -5
  8. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  9. package/dist/cjs/types/Enum/EnglishLevel.d.ts +13 -0
  10. package/dist/cjs/types/Enum/EnglishLevel.d.ts.map +1 -0
  11. package/dist/cjs/types/Enum/EnglishLevel.js +21 -0
  12. package/dist/cjs/types/Enum/EnglishLevel.js.map +1 -0
  13. package/dist/cjs/types/Enum/Log.js +15 -15
  14. package/dist/cjs/types/Enum/Log.js.map +1 -1
  15. package/dist/cjs/types/Interface/api/collaboraterDetail/CreateCollaboraterDetail.d.ts +28 -0
  16. package/dist/cjs/types/Interface/api/collaboraterDetail/CreateCollaboraterDetail.d.ts.map +1 -0
  17. package/dist/cjs/types/Interface/api/collaboraterDetail/CreateCollaboraterDetail.js +143 -0
  18. package/dist/cjs/types/Interface/api/collaboraterDetail/CreateCollaboraterDetail.js.map +1 -0
  19. package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.d.ts +1 -0
  20. package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.d.ts.map +1 -1
  21. package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.js +6 -0
  22. package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.js.map +1 -1
  23. package/dist/cjs/types/Interface/models/ICollaboraterDetail.d.ts +2 -0
  24. package/dist/cjs/types/Interface/models/ICollaboraterDetail.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/models/ICollaboraterDetail.js.map +1 -1
  26. package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
  27. package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
  28. package/dist/cjs/types/index.d.ts +2 -0
  29. package/dist/cjs/types/index.d.ts.map +1 -1
  30. package/dist/cjs/types/index.js +2 -0
  31. package/dist/cjs/types/index.js.map +1 -1
  32. package/dist/mjs/types/Enum/AbsenceType.d.ts +2 -1
  33. package/dist/mjs/types/Enum/AbsenceType.d.ts.map +1 -1
  34. package/dist/mjs/types/Enum/AbsenceType.js +5 -0
  35. package/dist/mjs/types/Enum/AbsenceType.js.map +1 -1
  36. package/dist/mjs/types/Enum/BrandAnytime.js +1 -1
  37. package/dist/mjs/types/Enum/BrandAnytime.js.map +1 -1
  38. package/dist/mjs/types/Enum/BrandClementine.js +5 -5
  39. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  40. package/dist/mjs/types/Enum/EnglishLevel.d.ts +13 -0
  41. package/dist/mjs/types/Enum/EnglishLevel.d.ts.map +1 -0
  42. package/dist/mjs/types/Enum/EnglishLevel.js +18 -0
  43. package/dist/mjs/types/Enum/EnglishLevel.js.map +1 -0
  44. package/dist/mjs/types/Enum/Log.js +15 -15
  45. package/dist/mjs/types/Enum/Log.js.map +1 -1
  46. package/dist/mjs/types/Interface/api/collaboraterDetail/CreateCollaboraterDetail.d.ts +28 -0
  47. package/dist/mjs/types/Interface/api/collaboraterDetail/CreateCollaboraterDetail.d.ts.map +1 -0
  48. package/dist/mjs/types/Interface/api/collaboraterDetail/CreateCollaboraterDetail.js +160 -0
  49. package/dist/mjs/types/Interface/api/collaboraterDetail/CreateCollaboraterDetail.js.map +1 -0
  50. package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.d.ts +1 -0
  51. package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.d.ts.map +1 -1
  52. package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.js +7 -0
  53. package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.js.map +1 -1
  54. package/dist/mjs/types/Interface/models/ICollaboraterDetail.d.ts +2 -0
  55. package/dist/mjs/types/Interface/models/ICollaboraterDetail.d.ts.map +1 -1
  56. package/dist/mjs/types/Interface/models/ICollaboraterDetail.js.map +1 -1
  57. package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
  58. package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
  59. package/dist/mjs/types/index.d.ts +2 -0
  60. package/dist/mjs/types/index.d.ts.map +1 -1
  61. package/dist/mjs/types/index.js +2 -0
  62. package/dist/mjs/types/index.js.map +1 -1
  63. package/package.json +1 -1
  64. package/ts/types/Enum/AbsenceType.ts +5 -0
  65. package/ts/types/Enum/BrandAnytime.ts +1 -1
  66. package/ts/types/Enum/BrandClementine.ts +5 -5
  67. package/ts/types/Enum/EnglishLevel.ts +17 -0
  68. package/ts/types/Enum/Log.ts +15 -15
  69. package/ts/types/Interface/api/collaboraterDetail/CreateCollaboraterDetail.ts +109 -0
  70. package/ts/types/Interface/api/society/QueryPaginatedSociety.ts +5 -0
  71. package/ts/types/Interface/models/ICollaboraterDetail.ts +2 -0
  72. package/ts/types/Interface/models/IUser.ts +1 -0
  73. package/ts/types/index.ts +2 -0
@@ -91,7 +91,7 @@ export const BrandAnytime: Brand[] = [
91
91
  rcs: '752 566 687',
92
92
  phone: '03 83 93 14 14',
93
93
  vatIntracom: 'FR47752566687',
94
- email: 'facturation@compta-clementine.fr',
94
+ email: 'facturation@clementine.fr',
95
95
  },
96
96
  webmail: {
97
97
  domains: ['@compta-clementine.fr', '@clementine.fr'],
@@ -96,7 +96,7 @@ export const BrandClementine: Brand[] = [
96
96
  rcs: '752 566 687',
97
97
  phone: '03 83 93 14 14',
98
98
  vatIntracom: 'FR47752566687',
99
- email: 'facturation@compta-clementine.fr',
99
+ email: 'facturation@clementine.fr',
100
100
  },
101
101
  webmail: {
102
102
  domains: ['@compta-clementine.fr', '@clementine.fr'],
@@ -195,7 +195,7 @@ export const BrandClementine: Brand[] = [
195
195
  rcs: '752 566 687',
196
196
  phone: '03 83 93 14 14',
197
197
  vatIntracom: 'FR47752566687',
198
- email: 'facturation@compta-clementine.fr',
198
+ email: 'facturation@clementine.fr',
199
199
  },
200
200
  },
201
201
  {
@@ -229,7 +229,7 @@ export const BrandClementine: Brand[] = [
229
229
  rcs: '752 566 687',
230
230
  phone: '03 83 93 14 14',
231
231
  vatIntracom: 'FR47752566687',
232
- email: 'facturation@compta-clementine.fr',
232
+ email: 'facturation@clementine.fr',
233
233
  },
234
234
  },
235
235
  {
@@ -263,7 +263,7 @@ export const BrandClementine: Brand[] = [
263
263
  rcs: '752 566 687',
264
264
  phone: '03 83 93 14 14',
265
265
  vatIntracom: 'FR47752566687',
266
- email: 'facturation@compta-clementine.fr',
266
+ email: 'facturation@clementine.fr',
267
267
  },
268
268
  },
269
269
  {
@@ -344,7 +344,7 @@ export const BrandClementine: Brand[] = [
344
344
  rcs: '752 566 687',
345
345
  phone: '03 83 93 14 14',
346
346
  vatIntracom: 'FR47752566687',
347
- email: 'facturation@compta-clementine.fr',
347
+ email: 'facturation@clementine.fr',
348
348
  },
349
349
  salesContractConfig: SalesContractKlems,
350
350
  caarl: {
@@ -0,0 +1,17 @@
1
+ export enum EnglishLevel {
2
+ NONE = 0,
3
+ BEGINNER = 1,
4
+ INTERMEDIATE = 2,
5
+ FLUENT = 3,
6
+ ADVANCED = 4,
7
+ BILINGUAL = 5
8
+ }
9
+
10
+ export const EnglishLevelDetails = [
11
+ { value: EnglishLevel.NONE, label: '0 - Ne parle pas anglais' },
12
+ { value: EnglishLevel.BEGINNER, label: '1 - Débutant' },
13
+ { value: EnglishLevel.INTERMEDIATE, label: '2 - Intermédiaire' },
14
+ { value: EnglishLevel.FLUENT, label: '3 - Courant' },
15
+ { value: EnglishLevel.ADVANCED, label: '4 - Avancé' },
16
+ { value: EnglishLevel.BILINGUAL, label: '5 - Bilingue' }
17
+ ];
@@ -81,7 +81,7 @@ export const LogTypeDetail = {
81
81
  put: 'a modifié',
82
82
  delete: 'a supprimé',
83
83
  },
84
- message: 'l\'IS',
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: 'l\'état d\'un bilan',
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: 's\'est connecté',
220
+ post: "s'est connecté",
221
221
  put: 'a modifié',
222
222
  delete: 'a supprimé',
223
223
  },
224
- message: 'avec l\'IP %ip%',
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: 'd\'un fichier',
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: '%societyName% avec pour id %societyId% avec l\'utilisateur %user%, email : %mail%',
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: 'une régule d\'un montant de %amount% €',
329
+ message: "une régule d'un montant de %amount% €. Commentaire: %comment%",
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
- 'le paiement INPI lié à la prestation %prestation% pour l\'exercice %dateStart%-%dateEnd% et ayant le numéros de dossier %file%',
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: 'l\'agenda pour le collaborateur, %user%, à la date du %date%',
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: 'un paiement social (%payment%) d\'une valeur de %amount% €',
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: 'l\'état de la constitution en: %state%',
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: 'l\'approbation de compte',
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: 'l\'acceptation de la mission',
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: 'l\'ip du collaborateur %firstname% %lastname%',
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: 's\'est connecté en tant que',
506
+ post: "s'est connecté en tant que",
507
507
  put: 'a modifié',
508
508
  delete: 'a supprimé',
509
509
  },
@@ -0,0 +1,109 @@
1
+ import { IsBoolean, IsDate, IsEmail, IsEnum, IsInt, IsNotEmpty, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { ICollaboraterDetail } from '../../models/ICollaboraterDetail';
4
+ import { MaritalStatus } from '../../../Enum/MaritalStatus';
5
+ import { CountryId, NationalityId } from '../../../Enum/Country';
6
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
7
+ import { EnglishLevel } from '../../../Enum/EnglishLevel';
8
+
9
+ export class CreateCollaboraterDetail implements Omit<ICollaboraterDetail, 'id'> {
10
+ @ApiProperty()
11
+ @IsInt()
12
+ idUser: number;
13
+
14
+ @ApiProperty()
15
+ @IsEnum(MaritalStatus)
16
+ idMaritalStatus: MaritalStatus;
17
+
18
+ @ApiProperty()
19
+ @IsEnum(NationalityId)
20
+ idNationality: NationalityId;
21
+
22
+ @ApiProperty()
23
+ @IsEnum(CountryId)
24
+ idCountryOfBirth: CountryId;
25
+
26
+ @ApiPropertyOptional()
27
+ @IsOptional()
28
+ @IsString()
29
+ @IsNotEmpty()
30
+ maidenName?: string | null;
31
+
32
+ @ApiProperty()
33
+ @IsDate()
34
+ birthdate: Date;
35
+
36
+ @ApiProperty()
37
+ @IsString()
38
+ @IsNotEmpty()
39
+ socialSecurityNumber: string;
40
+
41
+ @ApiProperty()
42
+ @IsString()
43
+ @IsNotEmpty()
44
+ cityOfBirth: string;
45
+
46
+ @ApiProperty()
47
+ @IsString()
48
+ @IsNotEmpty()
49
+ address: string;
50
+
51
+ @ApiProperty()
52
+ @IsString()
53
+ @IsNotEmpty()
54
+ city: string;
55
+
56
+ @ApiProperty()
57
+ @IsString()
58
+ @IsNotEmpty()
59
+ zipCode: string;
60
+
61
+ @ApiPropertyOptional()
62
+ @IsOptional()
63
+ @IsInt()
64
+ degree?: number | null;
65
+
66
+ @ApiProperty()
67
+ @IsInt()
68
+ dependentChildren: number;
69
+
70
+ @ApiProperty()
71
+ @IsString()
72
+ @IsNotEmpty()
73
+ phone: string;
74
+
75
+ @ApiProperty()
76
+ @IsString()
77
+ @IsEmail()
78
+ email: string;
79
+
80
+ @ApiProperty()
81
+ @IsString()
82
+ @IsNotEmpty()
83
+ emergencyPersonLastname: string;
84
+
85
+ @ApiProperty()
86
+ @IsString()
87
+ @IsNotEmpty()
88
+ emergencyPersonFirstname: string;
89
+
90
+ @ApiProperty()
91
+ @IsString()
92
+ @IsNotEmpty()
93
+ emergencyPersonPhone: string;
94
+
95
+ @ApiProperty()
96
+ @IsBoolean()
97
+ @ToBoolean()
98
+ hasTicketRestaurant: boolean;
99
+
100
+ @ApiProperty()
101
+ @IsBoolean()
102
+ @ToBoolean()
103
+ hasRqth: boolean;
104
+
105
+ @ApiPropertyOptional()
106
+ @IsOptional()
107
+ @IsEnum(EnglishLevel)
108
+ englishLevel?: EnglishLevel | null;
109
+ }
@@ -3,6 +3,11 @@ import { ApiPropertyOptional } from '../../../../utils';
3
3
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
 
5
5
  export class QueryPaginatedSociety {
6
+ @ApiPropertyOptional()
7
+ @IsOptional()
8
+ @IsInt()
9
+ id?: number;
10
+
6
11
  @ApiPropertyOptional()
7
12
  @IsOptional()
8
13
  @IsString()
@@ -1,3 +1,4 @@
1
+ import { EnglishLevel } from '../../Enum/EnglishLevel';
1
2
  import { IUser } from './IUser';
2
3
 
3
4
  export interface ICollaboraterDetail {
@@ -22,6 +23,7 @@ export interface ICollaboraterDetail {
22
23
  emergencyPersonPhone: string;
23
24
  hasTicketRestaurant: boolean;
24
25
  hasRqth: boolean;
26
+ englishLevel?: EnglishLevel | null;
25
27
  createdAt?: Date | null;
26
28
  updatedAt?: Date | null;
27
29
 
@@ -97,6 +97,7 @@ export interface IUser {
97
97
  streetNumber?: string | null;
98
98
  address?: string;
99
99
  zipCodeBirth?: string;
100
+ //@deprecated Use cityOfBirth instead
100
101
  birthPlace?: string;
101
102
  departmentBirth?: string;
102
103
  idCountryBirth?: number;
package/ts/types/index.ts CHANGED
@@ -572,6 +572,7 @@ export * from './Enum/ReasonNotSubscribed';
572
572
  export * from './Enum/QualificationLead';
573
573
  export * from './Enum/Template';
574
574
  export * from './Enum/Marketing';
575
+ export * from './Enum/EnglishLevel';
575
576
 
576
577
  // Interfaces API
577
578
  export * from './Interface/api/exercice/ReadExercice';
@@ -894,6 +895,7 @@ export * from './Interface/api/humanResourceLibrary/QueryHumanResourceLibrary';
894
895
  export * from './Interface/api/humanResourceLibrary/CreateHumanResourceLibrary';
895
896
  export * from './Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary';
896
897
  export * from './Interface/api/report/ExternalReport';
898
+ export * from './Interface/api/collaboraterDetail/CreateCollaboraterDetail';
897
899
 
898
900
  export * from './Interface/api/library/QueryLibrary';
899
901
  export * from './Interface/api/library/ReadLibraryFile';