@silexpert/core 0.4.184 → 0.4.186

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 (100) hide show
  1. package/es/api/resources/Employee.d.ts +4 -2
  2. package/es/api/resources/Employee.d.ts.map +1 -1
  3. package/es/api/resources/Employee.js +19 -1
  4. package/es/api/resources/Employee.js.map +1 -1
  5. package/es/api/resources/Mail.d.ts.map +1 -1
  6. package/es/api/resources/Mail.js +1 -1
  7. package/es/api/resources/Mail.js.map +1 -1
  8. package/es/api/resources/SheetMonthSchedule.js +1 -1
  9. package/es/api/resources/SheetMonthSchedule.js.map +1 -1
  10. package/es/api/resources/Society.d.ts +1 -0
  11. package/es/api/resources/Society.d.ts.map +1 -1
  12. package/es/api/resources/Society.js +3 -0
  13. package/es/api/resources/Society.js.map +1 -1
  14. package/es/api/resources/User.d.ts +3 -1
  15. package/es/api/resources/User.d.ts.map +1 -1
  16. package/es/api/resources/User.js +6 -0
  17. package/es/api/resources/User.js.map +1 -1
  18. package/es/types/Enum/BrandClementine.d.ts +46 -4
  19. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  20. package/es/types/Enum/BrandClementine.js +45 -0
  21. package/es/types/Enum/BrandClementine.js.map +1 -1
  22. package/es/types/Enum/BrandComptalib.js +20 -20
  23. package/es/types/Enum/BrandComptalib.js.map +1 -1
  24. package/es/types/Enum/BrandLegalstart.d.ts +15 -0
  25. package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
  26. package/es/types/Enum/BrandLegalstart.js +15 -0
  27. package/es/types/Enum/BrandLegalstart.js.map +1 -1
  28. package/es/types/Interface/api/employee/QueryCreateEmployee.d.ts +7 -0
  29. package/es/types/Interface/api/employee/QueryCreateEmployee.d.ts.map +1 -0
  30. package/es/types/Interface/api/employee/QueryCreateEmployee.js +2 -0
  31. package/es/types/Interface/api/employee/QueryCreateEmployee.js.map +1 -0
  32. package/es/types/Interface/api/mail/UpdateMailParams.d.ts +8 -0
  33. package/es/types/Interface/api/mail/UpdateMailParams.d.ts.map +1 -0
  34. package/es/types/Interface/api/mail/UpdateMailParams.js +2 -0
  35. package/es/types/Interface/api/mail/UpdateMailParams.js.map +1 -0
  36. package/es/types/Interface/api/user/QueryGetAllFromSociety.d.ts +5 -0
  37. package/es/types/Interface/api/user/QueryGetAllFromSociety.d.ts.map +1 -0
  38. package/es/types/Interface/api/user/QueryGetAllFromSociety.js +31 -0
  39. package/es/types/Interface/api/user/QueryGetAllFromSociety.js.map +1 -0
  40. package/es/types/Interface/api/webmail/CreateMailFromLambda.d.ts +0 -3
  41. package/es/types/Interface/api/webmail/CreateMailFromLambda.d.ts.map +1 -1
  42. package/es/types/Interface/api/webmail/CreateMailFromLambda.js +0 -5
  43. package/es/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
  44. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts +3 -0
  45. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts.map +1 -1
  46. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +22 -1
  47. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
  48. package/es/types/index.d.ts +4 -0
  49. package/es/types/index.d.ts.map +1 -1
  50. package/es/types/index.js +4 -0
  51. package/es/types/index.js.map +1 -1
  52. package/es/utils/webmail.d.ts.map +1 -1
  53. package/es/utils/webmail.js +15 -3
  54. package/es/utils/webmail.js.map +1 -1
  55. package/js/api/resources/Employee.js +25 -1
  56. package/js/api/resources/Employee.js.map +1 -1
  57. package/js/api/resources/Mail.js +2 -1
  58. package/js/api/resources/Mail.js.map +1 -1
  59. package/js/api/resources/SheetMonthSchedule.js +1 -1
  60. package/js/api/resources/SheetMonthSchedule.js.map +1 -1
  61. package/js/api/resources/Society.js +4 -0
  62. package/js/api/resources/Society.js.map +1 -1
  63. package/js/api/resources/User.js +10 -0
  64. package/js/api/resources/User.js.map +1 -1
  65. package/js/types/Enum/BrandClementine.js +45 -0
  66. package/js/types/Enum/BrandClementine.js.map +1 -1
  67. package/js/types/Enum/BrandComptalib.js +20 -20
  68. package/js/types/Enum/BrandComptalib.js.map +1 -1
  69. package/js/types/Enum/BrandLegalstart.js +15 -0
  70. package/js/types/Enum/BrandLegalstart.js.map +1 -1
  71. package/js/types/Interface/api/employee/QueryCreateEmployee.js +6 -0
  72. package/js/types/Interface/api/employee/QueryCreateEmployee.js.map +1 -0
  73. package/js/types/Interface/api/mail/UpdateMailParams.js +6 -0
  74. package/js/types/Interface/api/mail/UpdateMailParams.js.map +1 -0
  75. package/js/types/Interface/api/user/QueryGetAllFromSociety.js +39 -0
  76. package/js/types/Interface/api/user/QueryGetAllFromSociety.js.map +1 -0
  77. package/js/types/Interface/api/webmail/CreateMailFromLambda.js +0 -2
  78. package/js/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
  79. package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +8 -0
  80. package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
  81. package/js/types/index.js +48 -0
  82. package/js/types/index.js.map +1 -1
  83. package/js/utils/webmail.js +11 -3
  84. package/js/utils/webmail.js.map +1 -1
  85. package/package.json +1 -1
  86. package/ts/api/resources/Employee.ts +24 -3
  87. package/ts/api/resources/Mail.ts +1 -0
  88. package/ts/api/resources/SheetMonthSchedule.ts +1 -1
  89. package/ts/api/resources/Society.ts +3 -0
  90. package/ts/api/resources/User.ts +7 -1
  91. package/ts/types/Enum/BrandClementine.ts +45 -0
  92. package/ts/types/Enum/BrandComptalib.ts +20 -20
  93. package/ts/types/Enum/BrandLegalstart.ts +15 -0
  94. package/ts/types/Interface/api/employee/QueryCreateEmployee.ts +7 -0
  95. package/ts/types/Interface/api/mail/UpdateMailParams.ts +8 -0
  96. package/ts/types/Interface/api/user/QueryGetAllFromSociety.ts +19 -0
  97. package/ts/types/Interface/api/webmail/CreateMailFromLambda.ts +3 -3
  98. package/ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts +19 -1
  99. package/ts/types/index.ts +4 -0
  100. package/ts/utils/webmail.ts +11 -3
@@ -194,7 +194,7 @@ export const BrandComptalib = [
194
194
  rcs: '891 501 181',
195
195
  phone: '03 83 93 14 14',
196
196
  vatIntracom: 'FR58891501181',
197
- email: 'contact@comptalib.com',
197
+ email: 'bonjour@comptalib.com',
198
198
  },
199
199
  },
200
200
  {
@@ -209,22 +209,22 @@ export const BrandComptalib = [
209
209
  juridique: '03 83 25 82 20',
210
210
  },
211
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',
212
+ administratif: 'bonjour@aec54.com',
213
+ app: 'bonjour@aec54.com',
214
+ bonjour: 'bonjour@aec54.com',
215
+ contact: 'bonjour@aec54.com',
216
+ facturation: 'bonjour@aec54.com',
217
+ feedback: 'bonjour@aec54.com',
218
+ juridique: 'bonjour@aec54.com',
219
+ informatique: 'bonjour@aec54.com',
220
+ msd: 'bonjour@aec54.com',
221
+ noreply: 'bonjour@aec54.com',
222
+ qualite: 'bonjour@aec54.com',
223
+ paiement: 'bonjour@aec54.com',
224
+ social: 'bonjour@aec54.com',
225
+ support: 'bonjour@aec54.com',
226
+ tva: 'bonjour@aec54.com',
227
+ wb: 'bonjour@aec54.com',
228
228
  },
229
229
  companyInformation: {
230
230
  ape: '6920Z',
@@ -245,11 +245,11 @@ export const BrandComptalib = [
245
245
  miniLogoUrl: 'logo-aec.png',
246
246
  hiddenPages: [],
247
247
  recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
248
- urlApp: 'https://app.aec-54.com/',
248
+ urlApp: 'https://app.aec54.com/',
249
249
  urlApi1: 'https://api.comptalib.com',
250
250
  urlApi2: 'https://api-next.comptalib.com',
251
251
  urlExpert: 'https://pro.comptalib.com',
252
- urlClient: 'https://www.aec-54.com/',
252
+ urlClient: 'https://www.aec54.com/',
253
253
  bank: {
254
254
  IBAN: '',
255
255
  BIC: '',
@@ -269,7 +269,7 @@ export const BrandComptalib = [
269
269
  rcs: '315 519 587',
270
270
  phone: '03 83 25 82 20',
271
271
  vatIntracom: 'FR84315519587',
272
- email: 'contact@aec-54.com',
272
+ email: 'bonjour@aec54.com',
273
273
  },
274
274
  },
275
275
  ];
@@ -58,5 +58,20 @@ export const BrandLegalstart = [
58
58
  Name: 'Expertise Choix B',
59
59
  Id: 'FR91ZZZ617135',
60
60
  },
61
+ internalInvoicing: {
62
+ statut: 'SAS',
63
+ name: 'EXPERTISE CHOIX B',
64
+ address: '9, avenue du Rhin',
65
+ zipCode: '54520',
66
+ city: 'LAXOU',
67
+ country: 'FRANCE',
68
+ montantCapital: '500 000',
69
+ siret: '752566687',
70
+ ape: '6920Z',
71
+ rcs: '752 566 687',
72
+ phone: '03 83 93 14 14',
73
+ vatIntracom: 'FR47752566687',
74
+ email: 'facturation@compta-clementine.fr',
75
+ },
61
76
  },
62
77
  ];
@@ -0,0 +1,7 @@
1
+ import { IEmployee } from '../../models/IEmployee';
2
+ import { TFile } from '../file/TFile';
3
+
4
+ export interface CreateEmployee extends Omit<IEmployee, 'dpaeFile' | 'contractFile'>{
5
+ dpaeFile?: TFile;
6
+ contractFile?: TFile;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { IMail } from '../../models/IMail';
2
+ import { TFile } from '../file/TFile';
3
+
4
+ export interface UpdateMailParams extends IMail{
5
+ files?: TFile[];
6
+ textPlain?: string;
7
+ textHtml?: string;
8
+ }
@@ -0,0 +1,19 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class QueryGetAllFromSociety {
4
+ @ApiProperty({
5
+ description: 'id of the specified society',
6
+ required: true,
7
+ type: Number,
8
+ example: 100,
9
+ })
10
+ idSociety: number;
11
+
12
+ @ApiProperty({
13
+ description: 'array of roles id needed to return list of users',
14
+ required: true,
15
+ type: Array,
16
+ example: [1, 13],
17
+ })
18
+ roles: number[];
19
+ }
@@ -7,9 +7,9 @@ import {
7
7
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
8
8
 
9
9
  export class CreateMailFromLambda {
10
- @ApiProperty()
11
- @IsArray()
12
- attachments: { [key: string]: any }[];
10
+ // @ApiProperty()
11
+ // @IsArray()
12
+ // attachments: { [key: string]: any }[];
13
13
 
14
14
  @ApiProperty()
15
15
  @IsObject()
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  IsArray,
3
- IsNumber, IsOptional, IsString,
3
+ IsNumber, IsOptional, IsString, IsInt,
4
4
  } from 'class-validator';
5
5
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
6
6
  import { TFile } from '../file/TFile';
@@ -44,4 +44,22 @@ export class MigrateParams {
44
44
  @ApiProperty({ default: 50 })
45
45
  @IsNumber()
46
46
  limit: number;
47
+
48
+ @ApiPropertyOptional()
49
+ @IsOptional()
50
+ @IsNumber()
51
+ startId?: number;
52
+
53
+ @ApiPropertyOptional()
54
+ @IsOptional()
55
+ @IsNumber()
56
+ endId?: number;
57
+
58
+ @ApiPropertyOptional()
59
+ @IsOptional()
60
+ @IsArray()
61
+ @IsInt({
62
+ each: true,
63
+ })
64
+ listIdToForceImport?: number;
47
65
  }
package/ts/types/index.ts CHANGED
@@ -404,6 +404,7 @@ export * from './Enum/WebmailType';
404
404
  export * from './Enum/WebmailFlag';
405
405
  export * from './Enum/MailFlag';
406
406
  export * from './Enum/Contract';
407
+ export * from './Enum/SalariesType';
407
408
 
408
409
  // Interfaces API
409
410
  export * from './Interface/api/jeDeclare/ReadJeDeclare';
@@ -434,6 +435,7 @@ export * from './Interface/api/accountingTransaction/GetTransactionsBetweenDates
434
435
  export * from './Interface/api/accountingTransaction/QueryBankAccountSum';
435
436
  export * from './Interface/api/user/QueryConfirm';
436
437
  export * from './Interface/api/user/QuerySocieties';
438
+ export * from './Interface/api/user/QueryGetAllFromSociety';
437
439
  export * from './Interface/api/user/QueryResendConfirmationLink';
438
440
  export * from './Interface/api/user/CreateUser';
439
441
  export * from './Interface/api/user/CreateCoworker';
@@ -454,6 +456,7 @@ export * from './Interface/api/mail/QueryGetAnsweringTimeByUser';
454
456
  export * from './Interface/api/mail/QueryCountMail';
455
457
  export * from './Interface/api/mail/UpdateMail';
456
458
  export * from './Interface/api/mail/CreateMailParams';
459
+ export * from './Interface/api/mail/UpdateMailParams';
457
460
  export * from './Interface/api/society/LegalFormSiren';
458
461
  export * from './Interface/api/society/QuerySociety';
459
462
  export * from './Interface/api/society/QueryPaginatedSociety';
@@ -529,6 +532,7 @@ export * from './Interface/api/promoCode/ReadDefaultPaginationPromoCode';
529
532
  export * from './Interface/api/bankAccount/QueryBankAccount';
530
533
  export * from './Interface/api/log/QueryLogPagination';
531
534
  export * from './Interface/api/employee/QueryEmployeeSearch';
535
+ export * from './Interface/api/employee/QueryCreateEmployee';
532
536
 
533
537
  // export * from './Interface/api/survey/QuerySurvey';
534
538
  export * from './Interface/api/survey/ReadSurvey';
@@ -2,12 +2,20 @@ import { Role } from '../types/Enum/Role';
2
2
 
3
3
  const getIdRoleUsedForEmail = (listRoles: number[]): number => {
4
4
  let idRole = Role.CUSTOMER_SUCCESS;
5
- if (listRoles.includes(Role.FRONT_OFFICE) || listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {
5
+ if (listRoles.includes(Role.FRONT_OFFICE)) {
6
6
  idRole = Role.FRONT_OFFICE;
7
- } else if (listRoles.includes(Role.BACK_OFFICE) || listRoles.includes(Role.BACK_OFFICE_EXPRESS)) {
8
- idRole = Role.BACK_OFFICE;
7
+ } else if (listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {
8
+ idRole = Role.FRONT_OFFICE_EXPRESS;
9
+ } else if (listRoles.includes(Role.COMMERCIAL) || listRoles.includes(Role.COMMERCIAL_MANAGER)) {
10
+ idRole = Role.COMMERCIAL;
11
+ } else if (listRoles.includes(Role.EXPERT_ACCOUNTANT)) {
12
+ idRole = Role.EXPERT_ACCOUNTANT;
9
13
  } else if (listRoles.includes(Role.MANAGER)) {
10
14
  idRole = Role.MANAGER;
15
+ } else if (listRoles.includes(Role.SOCIAL)) {
16
+ idRole = Role.SOCIAL;
17
+ } else if (listRoles.includes(Role.JURIDIC)) {
18
+ idRole = Role.JURIDIC;
11
19
  }
12
20
  return idRole;
13
21
  };