@silexpert/core 0.4.179 → 0.4.181
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/es/api/resources/Mail.d.ts +2 -0
- package/es/api/resources/Mail.d.ts.map +1 -1
- package/es/api/resources/Mail.js +6 -0
- package/es/api/resources/Mail.js.map +1 -1
- package/es/types/Enum/BalanceSheet.js +1 -1
- package/es/types/Enum/BalanceSheet.js.map +1 -1
- package/es/types/Enum/MailFlag.d.ts +4 -1
- package/es/types/Enum/MailFlag.d.ts.map +1 -1
- package/es/types/Enum/MailFlag.js +3 -0
- package/es/types/Enum/MailFlag.js.map +1 -1
- package/es/types/Enum/RoleDetail.d.ts +177 -0
- package/es/types/Enum/RoleDetail.d.ts.map +1 -0
- package/es/types/Enum/RoleDetail.js +177 -0
- package/es/types/Enum/RoleDetail.js.map +1 -0
- package/es/types/Enum/SendInBlueList.d.ts +3 -1
- package/es/types/Enum/SendInBlueList.d.ts.map +1 -1
- package/es/types/Enum/SendInBlueList.js +2 -0
- package/es/types/Enum/SendInBlueList.js.map +1 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts +2 -2
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts.map +1 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js +2 -4
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
- package/es/types/Interface/api/mail/CreateMailParams.d.ts +8 -0
- package/es/types/Interface/api/mail/CreateMailParams.d.ts.map +1 -0
- package/es/types/Interface/api/mail/CreateMailParams.js +2 -0
- package/es/types/Interface/api/mail/CreateMailParams.js.map +1 -0
- package/es/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.d.ts +1 -0
- package/es/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.d.ts.map +1 -1
- package/es/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js.map +1 -1
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts +3 -1
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts.map +1 -1
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +8 -3
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
- package/es/types/index.d.ts +1 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +1 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.d.ts.map +1 -1
- package/es/utils/index.js +1 -0
- package/es/utils/index.js.map +1 -1
- package/es/utils/webmail.d.ts +3 -0
- package/es/utils/webmail.d.ts.map +1 -0
- package/es/utils/webmail.js +16 -0
- package/es/utils/webmail.js.map +1 -0
- package/js/api/resources/Mail.js +8 -0
- package/js/api/resources/Mail.js.map +1 -1
- package/js/types/Enum/BalanceSheet.js +1 -1
- package/js/types/Enum/BalanceSheet.js.map +1 -1
- package/js/types/Enum/MailFlag.js +3 -0
- package/js/types/Enum/MailFlag.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +182 -0
- package/js/types/Enum/RoleDetail.js.map +1 -0
- package/js/types/Enum/SendInBlueList.js +2 -0
- package/js/types/Enum/SendInBlueList.js.map +1 -1
- package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js +2 -2
- package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
- package/js/types/Interface/api/mail/CreateMailParams.js +6 -0
- package/js/types/Interface/api/mail/CreateMailParams.js.map +1 -0
- package/js/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js.map +1 -1
- package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +3 -1
- package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
- package/js/types/index.js +12 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/index.js +12 -0
- package/js/utils/index.js.map +1 -1
- package/js/utils/webmail.js +25 -0
- package/js/utils/webmail.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/Mail.ts +8 -0
- package/ts/types/Enum/BalanceSheet.ts +1 -1
- package/ts/types/Enum/MailFlag.ts +3 -0
- package/ts/types/Enum/RoleDetail.ts +176 -0
- package/ts/types/Enum/SendInBlueList.ts +2 -0
- package/ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts +4 -6
- package/ts/types/Interface/api/mail/CreateMailParams.ts +8 -0
- package/ts/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.ts +1 -0
- package/ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts +9 -3
- package/ts/types/index.ts +1 -0
- package/ts/utils/index.ts +1 -0
- package/ts/utils/webmail.ts +17 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
export const RoleDetail = {
|
|
2
|
+
CLIENT: {
|
|
3
|
+
id: 1,
|
|
4
|
+
name: 'Client',
|
|
5
|
+
colorPrimary: '#8765D0',
|
|
6
|
+
colorSecondary: '#DED7F6',
|
|
7
|
+
},
|
|
8
|
+
ADMIN: {
|
|
9
|
+
id: 2,
|
|
10
|
+
name: 'Admin',
|
|
11
|
+
colorPrimary: '#8765D0',
|
|
12
|
+
colorSecondary: '#DED7F6',
|
|
13
|
+
},
|
|
14
|
+
FRONT_OFFICE: {
|
|
15
|
+
id: 3,
|
|
16
|
+
name: 'Front Office',
|
|
17
|
+
colorPrimary: '#8765D0',
|
|
18
|
+
colorSecondary: '#DED7F6',
|
|
19
|
+
},
|
|
20
|
+
COMMERCIAL: {
|
|
21
|
+
id: 9,
|
|
22
|
+
name: 'Commercial',
|
|
23
|
+
colorPrimary: '#8765D0',
|
|
24
|
+
colorSecondary: '#DED7F6',
|
|
25
|
+
},
|
|
26
|
+
CUSTOMER_SUCCESS: {
|
|
27
|
+
id: 10,
|
|
28
|
+
name: 'Customer success',
|
|
29
|
+
colorPrimary: '#5894EF',
|
|
30
|
+
colorSecondary: '#DAEEFC',
|
|
31
|
+
},
|
|
32
|
+
SOCIAL: {
|
|
33
|
+
id: 11,
|
|
34
|
+
name: 'Social',
|
|
35
|
+
colorPrimary: '#8765D0',
|
|
36
|
+
colorSecondary: '#DED7F6',
|
|
37
|
+
},
|
|
38
|
+
JURIDIC: {
|
|
39
|
+
id: 12,
|
|
40
|
+
name: 'Juridique',
|
|
41
|
+
colorPrimary: '#8765D0',
|
|
42
|
+
colorSecondary: '#DED7F6',
|
|
43
|
+
},
|
|
44
|
+
CHIEF_ACCOUNTANT: {
|
|
45
|
+
id: 13,
|
|
46
|
+
name: 'Chef comptable',
|
|
47
|
+
colorPrimary: '#8765D0',
|
|
48
|
+
colorSecondary: '#DED7F6',
|
|
49
|
+
},
|
|
50
|
+
SUPERVISOR: {
|
|
51
|
+
id: 14,
|
|
52
|
+
name: 'Superviseur',
|
|
53
|
+
colorPrimary: '#8765D0',
|
|
54
|
+
colorSecondary: '#DED7F6',
|
|
55
|
+
},
|
|
56
|
+
FRONT_OFFICE_EXPRESS: {
|
|
57
|
+
id: 15,
|
|
58
|
+
name: 'Front office express',
|
|
59
|
+
colorPrimary: '#8765D0',
|
|
60
|
+
colorSecondary: '#DED7F6',
|
|
61
|
+
},
|
|
62
|
+
SUPER_ADMIN: {
|
|
63
|
+
id: 16,
|
|
64
|
+
name: 'Super admin',
|
|
65
|
+
colorPrimary: '#8765D0',
|
|
66
|
+
colorSecondary: '#DED7F6',
|
|
67
|
+
},
|
|
68
|
+
EXPERT_SUB_CONTRACTOR: {
|
|
69
|
+
id: 17,
|
|
70
|
+
name: 'Expert sous-traitant',
|
|
71
|
+
colorPrimary: '#B5D33C',
|
|
72
|
+
colorSecondary: '#EEF4C3',
|
|
73
|
+
},
|
|
74
|
+
MAINTAINER: {
|
|
75
|
+
id: 18,
|
|
76
|
+
name: 'Admin partenaire',
|
|
77
|
+
colorPrimary: '#8765D0',
|
|
78
|
+
colorSecondary: '#DED7F6',
|
|
79
|
+
},
|
|
80
|
+
MANAGER: {
|
|
81
|
+
id: 19,
|
|
82
|
+
name: 'Manager',
|
|
83
|
+
colorPrimary: '#8765D0',
|
|
84
|
+
colorSecondary: '#DED7F6',
|
|
85
|
+
},
|
|
86
|
+
EXPERT_ACCOUNTANT: {
|
|
87
|
+
id: 20,
|
|
88
|
+
name: 'Expert-comptable',
|
|
89
|
+
colorPrimary: '#B5D33C',
|
|
90
|
+
colorSecondary: '#EEF4C3',
|
|
91
|
+
},
|
|
92
|
+
MFA_PENDING: {
|
|
93
|
+
id: 21,
|
|
94
|
+
name: 'Attente MFA',
|
|
95
|
+
colorPrimary: '#8765D0',
|
|
96
|
+
colorSecondary: '#DED7F6',
|
|
97
|
+
},
|
|
98
|
+
VAT: {
|
|
99
|
+
id: 22,
|
|
100
|
+
name: 'VAT',
|
|
101
|
+
colorPrimary: '#8765D0',
|
|
102
|
+
colorSecondary: '#DED7F6',
|
|
103
|
+
},
|
|
104
|
+
CANDIDAT: {
|
|
105
|
+
id: 24,
|
|
106
|
+
name: 'Candidat',
|
|
107
|
+
colorPrimary: '#8765D0',
|
|
108
|
+
colorSecondary: '#DED7F6',
|
|
109
|
+
},
|
|
110
|
+
DEVELOPER: {
|
|
111
|
+
id: 25,
|
|
112
|
+
name: 'Développeur',
|
|
113
|
+
colorPrimary: '#8765D0',
|
|
114
|
+
colorSecondary: '#DED7F6',
|
|
115
|
+
},
|
|
116
|
+
API: {
|
|
117
|
+
id: 26,
|
|
118
|
+
name: 'API',
|
|
119
|
+
colorPrimary: '#8765D0',
|
|
120
|
+
colorSecondary: '#DED7F6',
|
|
121
|
+
},
|
|
122
|
+
BACK_OFFICE: {
|
|
123
|
+
id: 27,
|
|
124
|
+
name: 'Back office',
|
|
125
|
+
colorPrimary: '#8765D0',
|
|
126
|
+
colorSecondary: '#DED7F6',
|
|
127
|
+
},
|
|
128
|
+
BACK_OFFICE_EXPRESS: {
|
|
129
|
+
id: 28,
|
|
130
|
+
name: 'Back office express',
|
|
131
|
+
colorPrimary: '#8765D0',
|
|
132
|
+
colorSecondary: '#DED7F6',
|
|
133
|
+
},
|
|
134
|
+
BACK_MANAGER: {
|
|
135
|
+
id: 30,
|
|
136
|
+
name: 'Manager back',
|
|
137
|
+
colorPrimary: '#8765D0',
|
|
138
|
+
colorSecondary: '#DED7F6',
|
|
139
|
+
},
|
|
140
|
+
FRONT_MANAGER: {
|
|
141
|
+
id: 31,
|
|
142
|
+
name: 'Manager front',
|
|
143
|
+
colorPrimary: '#8765D0',
|
|
144
|
+
colorSecondary: '#DED7F6',
|
|
145
|
+
},
|
|
146
|
+
CUSTOMER_SUCCESS_MANAGER: {
|
|
147
|
+
id: 32,
|
|
148
|
+
name: 'Customer success manager',
|
|
149
|
+
colorPrimary: '#5894EF',
|
|
150
|
+
colorSecondary: '#DAEEFC',
|
|
151
|
+
},
|
|
152
|
+
COMMERCIAL_MANAGER: {
|
|
153
|
+
id: 33,
|
|
154
|
+
name: 'Manager commercial',
|
|
155
|
+
colorPrimary: '#8765D0',
|
|
156
|
+
colorSecondary: '#DED7F6',
|
|
157
|
+
},
|
|
158
|
+
FACTURATION: {
|
|
159
|
+
id: 34,
|
|
160
|
+
name: 'Facturation',
|
|
161
|
+
colorPrimary: '#8765D0',
|
|
162
|
+
colorSecondary: '#DED7F6',
|
|
163
|
+
},
|
|
164
|
+
HUMAN_RESSOURCES: {
|
|
165
|
+
id: 35,
|
|
166
|
+
name: 'Ressources humaines',
|
|
167
|
+
colorPrimary: '#8765D0',
|
|
168
|
+
colorSecondary: '#DED7F6',
|
|
169
|
+
},
|
|
170
|
+
PARTNERED_ACCOUNTANT: {
|
|
171
|
+
id: 36,
|
|
172
|
+
name: 'Comptable partenaire',
|
|
173
|
+
colorPrimary: '#8765D0',
|
|
174
|
+
colorSecondary: '#DED7F6',
|
|
175
|
+
},
|
|
176
|
+
};
|
|
@@ -11,17 +11,15 @@ export class QueryGeneralLedger {
|
|
|
11
11
|
@ApiProperty()
|
|
12
12
|
dateEnd: string;
|
|
13
13
|
|
|
14
|
-
@
|
|
14
|
+
@ApiProperty()
|
|
15
15
|
@IsInt()
|
|
16
16
|
@Min(1)
|
|
17
|
-
|
|
18
|
-
limit?: number;
|
|
17
|
+
limit: number;
|
|
19
18
|
|
|
20
|
-
@
|
|
19
|
+
@ApiProperty()
|
|
21
20
|
@IsInt()
|
|
22
21
|
@Min(1)
|
|
23
|
-
|
|
24
|
-
page?: number;
|
|
22
|
+
page: number;
|
|
25
23
|
|
|
26
24
|
@ApiPropertyOptional({ default: true })
|
|
27
25
|
@IsBoolean()
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
IsArray,
|
|
3
|
+
IsNumber, IsOptional, IsString,
|
|
3
4
|
} from 'class-validator';
|
|
4
5
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
6
|
+
import { TFile } from '../file/TFile';
|
|
5
7
|
|
|
6
8
|
export class PostAttachmentEmailFromLambdaParams {
|
|
7
9
|
@ApiProperty()
|
|
@@ -10,7 +12,6 @@ export class PostAttachmentEmailFromLambdaParams {
|
|
|
10
12
|
|
|
11
13
|
@ApiProperty()
|
|
12
14
|
@IsString()
|
|
13
|
-
// @IsMimeType() -> désactivé car pose pb avec certaines PJ ayant un mimetype comme 'image/*'
|
|
14
15
|
mime: string;
|
|
15
16
|
|
|
16
17
|
@ApiPropertyOptional()
|
|
@@ -29,10 +30,15 @@ export class CreateAttachmentOldWebmail extends PostAttachmentEmailFromLambdaPar
|
|
|
29
30
|
@IsNumber()
|
|
30
31
|
idMail: number;
|
|
31
32
|
}
|
|
32
|
-
export class CreateAttachmentParams
|
|
33
|
+
export class CreateAttachmentParams {
|
|
33
34
|
@ApiProperty()
|
|
34
35
|
@IsNumber()
|
|
35
36
|
idMail: number;
|
|
37
|
+
|
|
38
|
+
@ApiPropertyOptional()
|
|
39
|
+
@IsOptional()
|
|
40
|
+
@IsArray()
|
|
41
|
+
files?: TFile[];
|
|
36
42
|
}
|
|
37
43
|
export class MigrateParams {
|
|
38
44
|
@ApiProperty({ default: 50 })
|
package/ts/types/index.ts
CHANGED
|
@@ -448,6 +448,7 @@ export * from './Interface/api/customerProviderOperation/CreateCustomerProviderO
|
|
|
448
448
|
export * from './Interface/api/mail/QueryMail';
|
|
449
449
|
export * from './Interface/api/mail/QueryPaginatedMail';
|
|
450
450
|
export * from './Interface/api/mail/UpdateMail';
|
|
451
|
+
export * from './Interface/api/mail/CreateMailParams';
|
|
451
452
|
export * from './Interface/api/society/LegalFormSiren';
|
|
452
453
|
export * from './Interface/api/society/QuerySociety';
|
|
453
454
|
export * from './Interface/api/society/QueryPaginatedSociety';
|
package/ts/utils/index.ts
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Role } from '../types/Enum/Role';
|
|
2
|
+
|
|
3
|
+
const getIdRoleUsedForEmail = (listRoles: number[]): number => {
|
|
4
|
+
let idRole = Role.CUSTOMER_SUCCESS;
|
|
5
|
+
if (listRoles.includes(Role.FRONT_OFFICE) || listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {
|
|
6
|
+
idRole = Role.FRONT_OFFICE;
|
|
7
|
+
} else if (listRoles.includes(Role.BACK_OFFICE) || listRoles.includes(Role.BACK_OFFICE_EXPRESS)) {
|
|
8
|
+
idRole = Role.BACK_OFFICE;
|
|
9
|
+
} else if (listRoles.includes(Role.MANAGER)) {
|
|
10
|
+
idRole = Role.MANAGER;
|
|
11
|
+
}
|
|
12
|
+
return idRole;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
getIdRoleUsedForEmail,
|
|
17
|
+
};
|