@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.
- package/dist/cjs/api/resources/Transaction.d.ts +0 -1
- package/dist/cjs/api/resources/Transaction.d.ts.map +1 -1
- package/dist/cjs/api/resources/Transaction.js +0 -3
- package/dist/cjs/api/resources/Transaction.js.map +1 -1
- package/dist/cjs/types/Enum/SocietyApproval.js +6 -6
- package/dist/cjs/types/Enum/SocietyApproval.js.map +1 -1
- package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +0 -13
- package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +1 -14
- package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts +7 -6
- package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.js +1 -2
- package/dist/cjs/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
- package/dist/cjs/utils/societyApproval.d.ts.map +1 -1
- package/dist/cjs/utils/societyApproval.js +19 -22
- package/dist/cjs/utils/societyApproval.js.map +1 -1
- package/dist/mjs/api/resources/Transaction.d.ts +0 -1
- package/dist/mjs/api/resources/Transaction.d.ts.map +1 -1
- package/dist/mjs/api/resources/Transaction.js +0 -3
- package/dist/mjs/api/resources/Transaction.js.map +1 -1
- package/dist/mjs/types/Enum/SocietyApproval.js +6 -6
- package/dist/mjs/types/Enum/SocietyApproval.js.map +1 -1
- package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +0 -13
- package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +2 -16
- package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts +7 -6
- package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.js +7 -8
- package/dist/mjs/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
- package/dist/mjs/utils/societyApproval.d.ts.map +1 -1
- package/dist/mjs/utils/societyApproval.js +3 -6
- package/dist/mjs/utils/societyApproval.js.map +1 -1
- package/package.json +13 -11
- package/ts/api/resources/Transaction.ts +0 -3
- package/ts/types/Enum/SocietyApproval.ts +6 -6
- package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +2 -18
- package/ts/types/Interface/api/webmail/CreateMailFromLambda.ts +8 -7
- 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
|
-
|
|
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:
|
|
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?:
|
|
49
|
+
to?: AddressObject | AddressObject[];
|
|
50
50
|
|
|
51
51
|
@ApiPropertyOptional()
|
|
52
52
|
@IsObject()
|
|
53
53
|
@IsOptional()
|
|
54
|
-
from?:
|
|
54
|
+
from?: AddressObject;
|
|
55
55
|
|
|
56
56
|
@ApiPropertyOptional()
|
|
57
57
|
@IsOptional()
|
|
58
|
-
cc?:
|
|
58
|
+
cc?: AddressObject | AddressObject[];
|
|
59
59
|
|
|
60
60
|
@ApiPropertyOptional()
|
|
61
61
|
@IsOptional()
|
|
62
|
-
bcc?:
|
|
62
|
+
bcc?: AddressObject | AddressObject[];
|
|
63
|
+
|
|
63
64
|
@ApiPropertyOptional()
|
|
64
65
|
@IsObject()
|
|
65
66
|
@IsOptional()
|
|
66
|
-
replyTo?:
|
|
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
|
-
|
|
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)
|
|
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(),
|