@silexpert/core 1.3.204-update-2 → 1.3.204

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 (40) hide show
  1. package/dist/cjs/api/resources/Transaction.d.ts +0 -1
  2. package/dist/cjs/api/resources/Transaction.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Transaction.js +0 -3
  4. package/dist/cjs/api/resources/Transaction.js.map +1 -1
  5. package/dist/cjs/types/Enum/SocietyApproval.js +6 -6
  6. package/dist/cjs/types/Enum/SocietyApproval.js.map +1 -1
  7. package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +0 -13
  8. package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
  9. package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +1 -14
  10. package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
  11. package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts +7 -6
  12. package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts.map +1 -1
  13. package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.js +1 -2
  14. package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
  15. package/dist/cjs/utils/societyApproval.d.ts.map +1 -1
  16. package/dist/cjs/utils/societyApproval.js +19 -22
  17. package/dist/cjs/utils/societyApproval.js.map +1 -1
  18. package/dist/mjs/api/resources/Transaction.d.ts +0 -1
  19. package/dist/mjs/api/resources/Transaction.d.ts.map +1 -1
  20. package/dist/mjs/api/resources/Transaction.js +0 -3
  21. package/dist/mjs/api/resources/Transaction.js.map +1 -1
  22. package/dist/mjs/types/Enum/SocietyApproval.js +6 -6
  23. package/dist/mjs/types/Enum/SocietyApproval.js.map +1 -1
  24. package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +0 -13
  25. package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
  26. package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +2 -16
  27. package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
  28. package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts +7 -6
  29. package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts.map +1 -1
  30. package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.js +7 -8
  31. package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
  32. package/dist/mjs/utils/societyApproval.d.ts.map +1 -1
  33. package/dist/mjs/utils/societyApproval.js +3 -6
  34. package/dist/mjs/utils/societyApproval.js.map +1 -1
  35. package/package.json +13 -11
  36. package/ts/api/resources/Transaction.ts +0 -3
  37. package/ts/types/Enum/SocietyApproval.ts +6 -6
  38. package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +2 -18
  39. package/ts/types/Interface/api/webmail/CreateMailFromLambda.ts +8 -7
  40. package/ts/utils/societyApproval.ts +3 -10
@@ -1,5 +1,5 @@
1
1
  import { IsArray, IsDate, IsIn, IsNotEmpty, IsObject, IsOptional, IsString } from 'class-validator';
2
- // import { AddressObject, HeaderLines } from 'mailparser';
2
+ import { AddressObject, HeaderLines } from 'mailparser';
3
3
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
4
4
 
5
5
  export class CreateMailFromLambda {
@@ -15,7 +15,7 @@ export class CreateMailFromLambda {
15
15
  @ApiProperty()
16
16
  @IsArray()
17
17
  @IsNotEmpty()
18
- headerLines: any; // HeaderLines;
18
+ headerLines: HeaderLines;
19
19
 
20
20
  @ApiProperty()
21
21
  html: string | false;
@@ -46,24 +46,25 @@ export class CreateMailFromLambda {
46
46
 
47
47
  @ApiPropertyOptional()
48
48
  @IsOptional()
49
- to?: any; // AddressObject | AddressObject[];
49
+ to?: AddressObject | AddressObject[];
50
50
 
51
51
  @ApiPropertyOptional()
52
52
  @IsObject()
53
53
  @IsOptional()
54
- from?: any; // AddressObject;
54
+ from?: AddressObject;
55
55
 
56
56
  @ApiPropertyOptional()
57
57
  @IsOptional()
58
- cc?: any; // AddressObject | AddressObject[];
58
+ cc?: AddressObject | AddressObject[];
59
59
 
60
60
  @ApiPropertyOptional()
61
61
  @IsOptional()
62
- bcc?: any; // AddressObject | AddressObject[];
62
+ bcc?: AddressObject | AddressObject[];
63
+
63
64
  @ApiPropertyOptional()
64
65
  @IsObject()
65
66
  @IsOptional()
66
- replyTo?: any; // AddressObject;
67
+ replyTo?: AddressObject;
67
68
 
68
69
  @ApiPropertyOptional()
69
70
  @IsString()
@@ -81,15 +81,8 @@ export function getApprovalDocumentInfos(
81
81
  * @returns L'objet de données formaté pour le template
82
82
  */
83
83
  export function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any> {
84
- const yearInText = convertNumberToLetter(
85
- +dayjs(existingApproval?.generatingDatas?.approvalDate || null).format('YYYY'),
86
- ).toLowerCase();
87
- const dayAndMonthInText = `${convertNumberToLetter(+dayjs(existingApproval?.generatingDatas?.approvalDate || null).format('D'))} ${dayjs(
88
- existingApproval?.generatingDatas?.approvalDate || null,
89
- )
90
- .locale('fr')
91
- .format('MMMM')
92
- .toLowerCase()}`;
84
+ const yearInText = convertNumberToLetter(+dayjs().format('YYYY')).toLowerCase();
85
+ const dayAndMonthInText = `${convertNumberToLetter(+dayjs().format('D'))} ${dayjs().locale('fr').format('MMMM').toLowerCase()}`;
93
86
  const brand = getBrand();
94
87
  return {
95
88
  // Variables globales
@@ -138,7 +131,7 @@ export function buildApprovalTemplateData(existingApproval: ISocietyApproval, st
138
131
  ...existingApproval?.exercice?.society,
139
132
  cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),
140
133
  siren: existingApproval?.exercice?.society?.siret
141
- ? siretToSiren(existingApproval.exercice.society.siret)?.replace(/(\d{3})(\d{3})(\d{3})/, '$1 $2 $3') ?? null
134
+ ? siretToSiren(existingApproval.exercice.society.siret)
142
135
  : null,
143
136
  },
144
137
  endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),