@silexpert/core 0.4.181 → 0.4.183

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 (77) hide show
  1. package/es/api/resources/Employee.d.ts +11 -0
  2. package/es/api/resources/Employee.d.ts.map +1 -0
  3. package/es/api/resources/Employee.js +22 -0
  4. package/es/api/resources/Employee.js.map +1 -0
  5. package/es/api/resources/Mail.d.ts +7 -1
  6. package/es/api/resources/Mail.d.ts.map +1 -1
  7. package/es/api/resources/Mail.js +29 -2
  8. package/es/api/resources/Mail.js.map +1 -1
  9. package/es/api/resources.d.ts +2 -0
  10. package/es/api/resources.d.ts.map +1 -1
  11. package/es/api/resources.js +2 -0
  12. package/es/api/resources.js.map +1 -1
  13. package/es/types/Enum/AccountType.js +24 -24
  14. package/es/types/Enum/AccountType.js.map +1 -1
  15. package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
  16. package/es/types/Enum/BrandComptalib.js +75 -0
  17. package/es/types/Enum/BrandComptalib.js.map +1 -1
  18. package/es/types/Enum/Contract.d.ts +11 -0
  19. package/es/types/Enum/Contract.d.ts.map +1 -0
  20. package/es/types/Enum/Contract.js +12 -0
  21. package/es/types/Enum/Contract.js.map +1 -0
  22. package/es/types/Interface/api/employee/QueryEmployeeSearch.d.ts +7 -0
  23. package/es/types/Interface/api/employee/QueryEmployeeSearch.d.ts.map +1 -0
  24. package/es/types/Interface/api/employee/QueryEmployeeSearch.js +42 -0
  25. package/es/types/Interface/api/employee/QueryEmployeeSearch.js.map +1 -0
  26. package/es/types/Interface/api/mail/QueryCountMail.d.ts +6 -0
  27. package/es/types/Interface/api/mail/QueryCountMail.d.ts.map +1 -0
  28. package/es/types/Interface/api/mail/QueryCountMail.js +34 -0
  29. package/es/types/Interface/api/mail/QueryCountMail.js.map +1 -0
  30. package/es/types/Interface/api/mail/QueryMail.js +1 -1
  31. package/es/types/Interface/api/mail/QueryMail.js.map +1 -1
  32. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +8 -0
  33. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
  34. package/es/types/Interface/api/mail/QueryPaginatedMail.js +55 -2
  35. package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  36. package/es/types/Interface/models/IMail.d.ts +3 -3
  37. package/es/types/Interface/models/IMail.d.ts.map +1 -1
  38. package/es/types/Interface/models/IMail.js.map +1 -1
  39. package/es/types/index.d.ts +4 -0
  40. package/es/types/index.d.ts.map +1 -1
  41. package/es/types/index.js +4 -0
  42. package/es/types/index.js.map +1 -1
  43. package/js/api/resources/Employee.js +42 -0
  44. package/js/api/resources/Employee.js.map +1 -0
  45. package/js/api/resources/Mail.js +65 -2
  46. package/js/api/resources/Mail.js.map +1 -1
  47. package/js/api/resources.js +4 -1
  48. package/js/api/resources.js.map +1 -1
  49. package/js/types/Enum/AccountType.js +24 -24
  50. package/js/types/Enum/AccountType.js.map +1 -1
  51. package/js/types/Enum/BrandComptalib.js +74 -0
  52. package/js/types/Enum/BrandComptalib.js.map +1 -1
  53. package/js/types/Enum/Contract.js +18 -0
  54. package/js/types/Enum/Contract.js.map +1 -0
  55. package/js/types/Interface/api/employee/QueryEmployeeSearch.js +49 -0
  56. package/js/types/Interface/api/employee/QueryEmployeeSearch.js.map +1 -0
  57. package/js/types/Interface/api/mail/QueryCountMail.js +35 -0
  58. package/js/types/Interface/api/mail/QueryCountMail.js.map +1 -0
  59. package/js/types/Interface/api/mail/QueryMail.js +1 -1
  60. package/js/types/Interface/api/mail/QueryMail.js.map +1 -1
  61. package/js/types/Interface/api/mail/QueryPaginatedMail.js +18 -1
  62. package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  63. package/js/types/index.js +48 -0
  64. package/js/types/index.js.map +1 -1
  65. package/package.json +1 -1
  66. package/ts/api/resources/Employee.ts +28 -0
  67. package/ts/api/resources/Mail.ts +62 -2
  68. package/ts/api/resources.ts +2 -0
  69. package/ts/types/Enum/AccountType.ts +25 -25
  70. package/ts/types/Enum/BrandComptalib.ts +75 -0
  71. package/ts/types/Enum/Contract.ts +10 -0
  72. package/ts/types/Interface/api/employee/QueryEmployeeSearch.ts +25 -0
  73. package/ts/types/Interface/api/mail/QueryCountMail.ts +25 -0
  74. package/ts/types/Interface/api/mail/QueryMail.ts +1 -1
  75. package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +46 -2
  76. package/ts/types/Interface/models/IMail.ts +3 -3
  77. package/ts/types/index.ts +4 -0
@@ -2,121 +2,121 @@ export const AccountType = {
2
2
  DEPLACEMENTS: {
3
3
  id: 1,
4
4
  color: '#CCCCCC',
5
- icon: 'accountLogo/0616d627-840d-5034-9409-d7d99ce17917',
5
+ icon: 'TravelExpenses',
6
6
  },
7
7
  BANQUES: {
8
8
  id: 2,
9
9
  color: '#896FD3',
10
- icon: 'accountLogo/652d7313-aeb5-503e-8f7d-7d1268458fbc',
10
+ icon: 'BankFees',
11
11
  },
12
12
  DEPENSES_DIVERSES: {
13
13
  id: 3,
14
14
  color: '#DECC27',
15
- icon: 'accountLogo/58710fd7-ee94-588a-b788-7caa7d5d4016',
15
+ icon: 'MiscExpenses',
16
16
  },
17
17
  SOUS_TRAITANCES: {
18
18
  id: 4,
19
19
  color: '#A75F1C',
20
- icon: 'accountLogo/304551ee-263e-50b7-83b0-1a102e738f03',
20
+ icon: 'ServicesAndSubcontracting',
21
21
  },
22
22
  ACHAT_MARCHANDISES: {
23
23
  id: 5,
24
24
  color: '#FBD65C',
25
- icon: 'accountLogo/2dea54a3-cd5d-59fe-8862-fcd354fa4c4e',
25
+ icon: 'Buyings',
26
26
  },
27
27
  CHARGES_SOCIALES: {
28
28
  id: 6,
29
29
  color: '#009688',
30
- icon: 'accountLogo/679928ed-dba5-5634-b925-ec392037a32d',
30
+ icon: 'SalariesAndSocialCharges',
31
31
  },
32
32
  TAXES: {
33
33
  id: 8,
34
34
  color: '#26D395',
35
- icon: 'accountLogo/58710fd7-ee94-588a-b788-7caa7d5d4016',
35
+ icon: 'Taxes',
36
36
  },
37
37
  FONCTIONNEMENT: {
38
38
  id: 9,
39
39
  color: '#84908D',
40
- icon: 'accountLogo/89d397ad-3774-540c-b06d-a6b91e3f2946',
40
+ icon: 'FixedChargesAndSubscriptions',
41
41
  },
42
42
  RECETTES_PRODUCTION: {
43
43
  id: 10,
44
44
  color: '#26D395',
45
- icon: 'accountLogo/8d411d9d-eee4-56f7-a8ef-0529002c96ed',
45
+ icon: 'ProductionIncomes',
46
46
  },
47
47
  RECETTES_NEGOCE: {
48
48
  id: 11,
49
49
  color: '#26D395',
50
- icon: 'accountLogo/8d411d9d-eee4-56f7-a8ef-0529002c96ed',
50
+ icon: 'TradingIncomes',
51
51
  },
52
52
  RECETTES_DIVERSES: {
53
53
  id: 12,
54
54
  color: '#26D395',
55
- icon: 'accountLogo/8d411d9d-eee4-56f7-a8ef-0529002c96ed',
55
+ icon: 'MiscIncomes',
56
56
  },
57
57
  AUTRES: {
58
58
  id: 13,
59
59
  color: '#26D395',
60
- icon: 'accountLogo/f53f59a1-da0e-55a7-b176-baa0ee454794',
60
+ icon: 'Others',
61
61
  },
62
62
  ACHATS: {
63
63
  id: 14,
64
64
  color: '#FBD65C',
65
- icon: 'accountLogo/eca668d8-5fab-50eb-8131-eaa386e814fb',
65
+ icon: 'Buyings',
66
66
  },
67
67
  SALAIRES: {
68
68
  id: 15,
69
69
  color: '#9AACF8',
70
- icon: 'accountLogo/bb818b4c-39b9-5e17-840e-2321b78c318c',
70
+ icon: 'SalariesAndSocialCharges',
71
71
  },
72
72
  IMMOBILIER: {
73
73
  id: 16,
74
74
  color: '#C2C1C1',
75
- icon: 'accountLogo/f3546ef2-5b00-5067-9082-ef1cea96fa6b',
75
+ icon: 'RealEstate',
76
76
  },
77
77
  SERVICES: {
78
78
  id: 17,
79
79
  color: '#D260BC',
80
- icon: 'accountLogo/304551ee-263e-50b7-83b0-1a102e738f03',
80
+ icon: 'ServicesAndSubcontracting',
81
81
  },
82
82
  ABONNEMENTS: {
83
83
  id: 18,
84
84
  color: '#E74242',
85
- icon: 'accountLogo/06379552-c039-5c40-bd24-f9ef5676416c',
85
+ icon: 'FixedChargesAndSubscriptions',
86
86
  },
87
87
  DEPENSES_COURANTES: {
88
88
  id: 19,
89
89
  color: '#D08FDB',
90
- icon: 'accountLogo/89d397ad-3774-540c-b06d-a6b91e3f2946',
90
+ icon: 'MiscExpenses',
91
91
  },
92
92
  TRANSPORTS: {
93
93
  id: 20,
94
94
  color: '#FF9365',
95
- icon: 'accountLogo/0616d627-840d-5034-9409-d7d99ce17917',
95
+ icon: 'FreightTransport',
96
96
  },
97
97
  ADMINISTRATIF: {
98
98
  id: 21,
99
99
  color: '#60C0FE',
100
- icon: 'accountLogo/652d7313-aeb5-503e-8f7d-7d1268458fbc',
100
+ icon: 'Administrative',
101
101
  },
102
102
  PUBLICITES_ET_MISSIONS: {
103
103
  id: 22,
104
104
  color: '#FEA1A1',
105
- icon: 'accountLogo/4868f724-b7d4-5d23-ac16-5c52ab34c84d',
105
+ icon: 'AdvertisingCommunication',
106
106
  },
107
107
  DIVERS: {
108
108
  id: 23,
109
109
  color: '#26D395',
110
- icon: 'accountLogo/f53f59a1-da0e-55a7-b176-baa0ee454794',
110
+ icon: 'Others',
111
111
  },
112
112
  FINANCES: {
113
113
  id: 24,
114
114
  color: '#26D395',
115
- icon: 'accountLogo/5f4b746d-d2b3-53bb-8c97-8772a8becdf0',
115
+ icon: 'Finances',
116
116
  },
117
117
  IMMOBILISATIONS: {
118
118
  id: 25,
119
119
  color: '#CCCCCC',
120
- icon: 'accountLogo/43d187de-51ec-59b9-a72d-9a91b3afd10b',
120
+ icon: 'CapitalAssets',
121
121
  },
122
- };
122
+ };
@@ -197,4 +197,79 @@ export const BrandComptalib = [
197
197
  email: 'contact@comptalib.com',
198
198
  },
199
199
  },
200
+ {
201
+ idTypeBrand: 4,
202
+ name: 'AEC54',
203
+ colors: {
204
+ primary: '#6900AE',
205
+ },
206
+ listPhones: {
207
+ contact: '03 83 25 82 20',
208
+ qualite: '03 83 25 82 20',
209
+ juridique: '03 83 25 82 20',
210
+ },
211
+ listMails: {
212
+ administratif: 'contact@aec-54.com',
213
+ app: 'contact@aec-54.com',
214
+ bonjour: 'contact@aec-54.com',
215
+ contact: 'contact@aec-54.com',
216
+ facturation: 'contact@aec-54.com',
217
+ feedback: 'contact@aec-54.com',
218
+ juridique: 'contact@aec-54.com',
219
+ informatique: 'contact@aec-54.com',
220
+ msd: 'contact@aec-54.com',
221
+ noreply: 'contact@aec-54.com',
222
+ qualite: 'contact@aec-54.com',
223
+ paiement: 'contact@aec-54.com',
224
+ social: 'contact@aec-54.com',
225
+ support: 'contact@aec-54.com',
226
+ tva: 'contact@aec-54.com',
227
+ wb: 'contact@aec-54.com',
228
+ },
229
+ companyInformation: {
230
+ ape: '6920Z',
231
+ bp: '',
232
+ city: 'Laxou',
233
+ montantCapital: '7 622',
234
+ nomRaisonSociale: 'AEC',
235
+ ECName: 'M. Jean-Louis BOICHÉ',
236
+ ECOrderCity: 'Nancy',
237
+ phone: '03 83 25 82 20',
238
+ postalAddress: '9 avenue du Rhin 54520 LAXOU',
239
+ rcs: '315 519 587',
240
+ statut: 'SARL',
241
+ zipCode: '54 520',
242
+ },
243
+ idPrestationsListAuthorized: [197, 205],
244
+ logoUrl: 'logo-aec.png',
245
+ miniLogoUrl: 'logo-aec.png',
246
+ hiddenPages: [],
247
+ recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
248
+ urlApp: 'https://app.aec-54.com/',
249
+ urlApi1: 'https://api.comptalib.com',
250
+ urlApi2: 'https://api-next.comptalib.com',
251
+ urlExpert: 'https://pro.comptalib.com',
252
+ urlClient: 'https://www.aec-54.com/',
253
+ bank: {
254
+ IBAN: '',
255
+ BIC: '',
256
+ Name: '',
257
+ Id: '',
258
+ },
259
+ internalInvoicing: {
260
+ statut: 'SARL',
261
+ name: 'AEC',
262
+ address: '9, avenue du Rhin',
263
+ zipCode: '54520',
264
+ city: 'LAXOU',
265
+ country: 'FRANCE',
266
+ montantCapital: '7 622',
267
+ siret: '31551958700069',
268
+ ape: '6920Z',
269
+ rcs: '315 519 587',
270
+ phone: '03 83 25 82 20',
271
+ vatIntracom: 'FR84315519587',
272
+ email: 'contact@aec-54.com',
273
+ },
274
+ },
200
275
  ];
@@ -0,0 +1,10 @@
1
+ export enum ContractTypeEnum {
2
+ TEMPORARY_CONTRACT_ACTIVITY = 1,
3
+ TEMPORARY_CONTRACT_LEARNING = 2,
4
+ TEMPORARY_CONTRACT_REPLACMENT = 3,
5
+ TEMPORARY_CONTRACT_EXTRA = 4,
6
+ TEMPORARY_CONTRACT_PRO = 5,
7
+ TEMPORARY_CONTRACT_USAGE = 6,
8
+ PERMANENT_CONTRACT = 7,
9
+ INTERNSHIP = 8,
10
+ }
@@ -0,0 +1,25 @@
1
+ import {
2
+ IsNumber, IsOptional, IsString,
3
+ } from 'class-validator';
4
+ import { ApiProperty } from '../../../..';
5
+ import { ApiPropertyOptional } from '../../../../utils';
6
+
7
+ export class QueryEmployeeSearch {
8
+ @ApiPropertyOptional()
9
+ @IsOptional()
10
+ isPaginate? = false;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsString()
14
+ @IsOptional()
15
+ search?: string;
16
+
17
+ // Interface paginate
18
+ @ApiProperty({ default: 25 })
19
+ @IsNumber()
20
+ limit?: number = 25;
21
+
22
+ @ApiProperty({ default: 1 })
23
+ @IsNumber()
24
+ page?: number = 1;
25
+ }
@@ -0,0 +1,25 @@
1
+ import {
2
+ IsBoolean,
3
+ IsInt,
4
+ IsOptional,
5
+ } from 'class-validator';
6
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
7
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
8
+
9
+ export class QueryCountMail {
10
+ @ApiProperty()
11
+ @IsInt()
12
+ idUser: number;
13
+
14
+ @ApiPropertyOptional()
15
+ @IsOptional()
16
+ @IsBoolean()
17
+ @ToBoolean()
18
+ withoutSociety?: boolean;
19
+
20
+ @ApiPropertyOptional()
21
+ @IsOptional()
22
+ @IsBoolean()
23
+ @ToBoolean()
24
+ isSent?: boolean;
25
+ }
@@ -9,7 +9,7 @@ export class QueryMail {
9
9
  @IsString({
10
10
  each: true,
11
11
  })
12
- @IsIn(['society', 'mailContent', 'mailAttachment'], { each: true })
12
+ @IsIn(['society', 'mailContent', 'mailAttachment', 'userWhoFlagged'], { each: true })
13
13
  include?: string[];
14
14
 
15
15
  @ApiPropertyOptional()
@@ -1,5 +1,5 @@
1
1
  import {
2
- IsBoolean, IsIn, IsNumber, IsOptional, IsString, IsArray,
2
+ IsBoolean, IsIn, IsNumber, IsOptional, IsString, IsArray, IsInt,
3
3
  } from 'class-validator';
4
4
  import { ApiPropertyOptional } from '../../../../utils';
5
5
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
@@ -22,7 +22,7 @@ export class QueryPaginatedMail {
22
22
  @IsString({
23
23
  each: true,
24
24
  })
25
- @IsIn(['society', 'mailContent', 'mailAttachment'], { each: true })
25
+ @IsIn(['society', 'mailContent', 'mailAttachment', 'userWhoFlagged'], { each: true })
26
26
  include?: string[];
27
27
 
28
28
  @ApiPropertyOptional()
@@ -33,6 +33,50 @@ export class QueryPaginatedMail {
33
33
  })
34
34
  attributes?: string[];
35
35
 
36
+ @ApiPropertyOptional()
37
+ @IsOptional()
38
+ @IsString()
39
+ orderBy?: string = 'date';
40
+
41
+ @ApiPropertyOptional()
42
+ @IsOptional()
43
+ @IsBoolean()
44
+ @ToBoolean()
45
+ isSent?: boolean;
46
+
47
+ @ApiPropertyOptional()
48
+ @IsOptional()
49
+ @IsBoolean()
50
+ @ToBoolean()
51
+ isProcessed?: boolean;
52
+
53
+ @ApiPropertyOptional()
54
+ @IsOptional()
55
+ @IsBoolean()
56
+ @ToBoolean()
57
+ isDeleted?: boolean;
58
+
59
+ @ApiPropertyOptional()
60
+ @IsOptional()
61
+ @IsBoolean()
62
+ @ToBoolean()
63
+ isDraft?: boolean;
64
+
65
+ @ApiPropertyOptional()
66
+ @IsOptional()
67
+ @IsInt()
68
+ idUser?: number;
69
+
70
+ @ApiPropertyOptional()
71
+ @IsOptional()
72
+ @IsInt()
73
+ idUserWhoFlagged?: number;
74
+
75
+ @ApiPropertyOptional()
76
+ @IsOptional()
77
+ @IsInt()
78
+ idUserWhoAnswered?: number;
79
+
36
80
  @ApiPropertyOptional({ default: 25 })
37
81
  @IsOptional()
38
82
  @IsNumber()
@@ -43,9 +43,9 @@ export interface IMail {
43
43
  deletedAt?: Date;
44
44
 
45
45
  // Associations
46
- webmailFlagUser?: IUser;
47
- webmailAnswerUser?: IUser;
48
- webmailSender?: IUser;
46
+ mailSender?: IUser;
47
+ mailUserWhoAnswered?: IUser;
48
+ mailUserWhoFlagged?: IUser;
49
49
  role?: IRole;
50
50
  exercice?: IExercice;
51
51
  society?: ISociety;
package/ts/types/index.ts CHANGED
@@ -315,6 +315,7 @@ export * from './Enum/RegistrationSource';
315
315
  export * from './Enum/Log';
316
316
  export * from './Enum/Quality';
317
317
  export * from './Enum/Role';
318
+ export * from './Enum/RoleDetail';
318
319
  export * from './Enum/Simulation';
319
320
  export * from './Enum/Country';
320
321
  export * from './Enum/ComptaType';
@@ -402,6 +403,7 @@ export * from './Enum/BudgetInsight';
402
403
  export * from './Enum/WebmailType';
403
404
  export * from './Enum/WebmailFlag';
404
405
  export * from './Enum/MailFlag';
406
+ export * from './Enum/Contract';
405
407
 
406
408
  // Interfaces API
407
409
  export * from './Interface/api/jeDeclare/ReadJeDeclare';
@@ -447,6 +449,7 @@ export * from './Interface/api/cerfa/ReadCerfa';
447
449
  export * from './Interface/api/customerProviderOperation/CreateCustomerProviderOperation';
448
450
  export * from './Interface/api/mail/QueryMail';
449
451
  export * from './Interface/api/mail/QueryPaginatedMail';
452
+ export * from './Interface/api/mail/QueryCountMail';
450
453
  export * from './Interface/api/mail/UpdateMail';
451
454
  export * from './Interface/api/mail/CreateMailParams';
452
455
  export * from './Interface/api/society/LegalFormSiren';
@@ -523,6 +526,7 @@ export * from './Interface/api/promoCode/CreateDefaultPromoCode';
523
526
  export * from './Interface/api/promoCode/ReadDefaultPaginationPromoCode';
524
527
  export * from './Interface/api/bankAccount/QueryBankAccount';
525
528
  export * from './Interface/api/log/QueryLogPagination';
529
+ export * from './Interface/api/employee/QueryEmployeeSearch';
526
530
 
527
531
  // export * from './Interface/api/survey/QuerySurvey';
528
532
  export * from './Interface/api/survey/ReadSurvey';