@silexpert/core 0.4.264 → 0.4.266
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/Exercice.d.ts +1 -0
- package/es/api/resources/Exercice.d.ts.map +1 -1
- package/es/api/resources/Exercice.js +3 -0
- package/es/api/resources/Exercice.js.map +1 -1
- package/es/api/resources/Mail.js +2 -2
- package/es/api/resources/Mail.js.map +1 -1
- package/es/api/resources/Qonto.d.ts +6 -1
- package/es/api/resources/Qonto.d.ts.map +1 -1
- package/es/api/resources/Qonto.js +15 -0
- package/es/api/resources/Qonto.js.map +1 -1
- package/es/api/resources/User.d.ts +2 -2
- package/es/api/resources/User.d.ts.map +1 -1
- package/es/api/resources/User.js +2 -11
- package/es/api/resources/User.js.map +1 -1
- package/es/types/Enum/BrandClementine.d.ts +3 -1
- package/es/types/Enum/BrandClementine.d.ts.map +1 -1
- package/es/types/Enum/BrandClementine.js +3 -0
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/Role.d.ts +6 -11
- package/es/types/Enum/Role.d.ts.map +1 -1
- package/es/types/Enum/Role.js +15 -10
- package/es/types/Enum/Role.js.map +1 -1
- package/es/types/Enum/RoleDetail.d.ts +40 -56
- package/es/types/Enum/RoleDetail.d.ts.map +1 -1
- package/es/types/Enum/RoleDetail.js +120 -64
- package/es/types/Enum/RoleDetail.js.map +1 -1
- package/es/types/Enum/Rules.d.ts +2 -0
- package/es/types/Enum/Rules.d.ts.map +1 -0
- package/es/types/Enum/Rules.js +19 -0
- package/es/types/Enum/Rules.js.map +1 -0
- package/es/types/Enum/TaskResponseType.d.ts +0 -1
- package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/es/types/Enum/TaskResponseType.js +25 -3
- package/es/types/Enum/TaskResponseType.js.map +1 -1
- package/es/types/Enum/TimeCounterType.js +7 -7
- package/es/types/Enum/TimeCounterType.js.map +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts.map +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.js +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
- package/es/types/Interface/api/qonto/CreateImportation.d.ts +5 -0
- package/es/types/Interface/api/qonto/CreateImportation.d.ts.map +1 -0
- package/es/types/Interface/api/qonto/CreateImportation.js +26 -0
- package/es/types/Interface/api/qonto/CreateImportation.js.map +1 -0
- package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts +5 -0
- package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts.map +1 -0
- package/es/types/Interface/api/qonto/CreateQontoConnection.js +24 -0
- package/es/types/Interface/api/qonto/CreateQontoConnection.js.map +1 -0
- package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts +4 -0
- package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts.map +1 -0
- package/es/types/Interface/api/qonto/GetConnectionInformation.js +19 -0
- package/es/types/Interface/api/qonto/GetConnectionInformation.js.map +1 -0
- package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts +5 -0
- package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts.map +1 -0
- package/es/types/Interface/api/qonto/ProcessBankAccount.js +24 -0
- package/es/types/Interface/api/qonto/ProcessBankAccount.js.map +1 -0
- package/es/types/Interface/api/qonto/Query.d.ts +77 -0
- package/es/types/Interface/api/qonto/Query.d.ts.map +1 -0
- package/es/types/Interface/api/qonto/Query.js +2 -0
- package/es/types/Interface/api/qonto/Query.js.map +1 -0
- package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts +6 -0
- package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts.map +1 -0
- package/es/types/Interface/api/qonto/ReadCreateConnection.js +2 -0
- package/es/types/Interface/api/qonto/ReadCreateConnection.js.map +1 -0
- package/es/types/Interface/api/qonto/UpdateConnection.d.ts +4 -0
- package/es/types/Interface/api/qonto/UpdateConnection.d.ts.map +1 -0
- package/es/types/Interface/api/qonto/UpdateConnection.js +19 -0
- package/es/types/Interface/api/qonto/UpdateConnection.js.map +1 -0
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +1 -0
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.js +10 -1
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
- package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts +1 -0
- package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +1 -1
- package/es/types/Interface/api/user/QueryGetAllCollaborators.js +11 -1
- package/es/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
- package/es/types/Interface/models/IApiError.d.ts +1 -0
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +2 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IPrestationHistory.d.ts +13 -0
- package/es/types/Interface/models/IPrestationHistory.d.ts.map +1 -0
- package/es/types/Interface/models/IPrestationHistory.js +2 -0
- package/es/types/Interface/models/IPrestationHistory.js.map +1 -0
- package/es/types/index.d.ts +9 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +9 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/task.d.ts +1 -2
- package/es/utils/task.d.ts.map +1 -1
- package/es/utils/task.js +17 -20
- package/es/utils/task.js.map +1 -1
- package/es/utils/webmail.d.ts.map +1 -1
- package/es/utils/webmail.js +1 -4
- package/es/utils/webmail.js.map +1 -1
- package/js/api/resources/Exercice.js +4 -0
- package/js/api/resources/Exercice.js.map +1 -1
- package/js/api/resources/Mail.js +2 -2
- package/js/api/resources/Mail.js.map +1 -1
- package/js/api/resources/Qonto.js +22 -0
- package/js/api/resources/Qonto.js.map +1 -1
- package/js/api/resources/User.js +5 -3
- package/js/api/resources/User.js.map +1 -1
- package/js/types/Enum/BrandClementine.js +3 -0
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/Role.js +18 -13
- package/js/types/Enum/Role.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +142 -86
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Enum/Rules.js +7 -0
- package/js/types/Enum/Rules.js.map +1 -0
- package/js/types/Enum/TaskResponseType.js +24 -4
- package/js/types/Enum/TaskResponseType.js.map +1 -1
- package/js/types/Enum/TimeCounterType.js +7 -7
- package/js/types/Enum/TimeCounterType.js.map +1 -1
- package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -1
- package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
- package/js/types/Interface/api/mail/QueryPaginatedMail.js +1 -1
- package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
- package/js/types/Interface/api/qonto/CreateImportation.js +31 -0
- package/js/types/Interface/api/qonto/CreateImportation.js.map +1 -0
- package/js/types/Interface/api/qonto/CreateQontoConnection.js +31 -0
- package/js/types/Interface/api/qonto/CreateQontoConnection.js.map +1 -0
- package/js/types/Interface/api/qonto/GetConnectionInformation.js +29 -0
- package/js/types/Interface/api/qonto/GetConnectionInformation.js.map +1 -0
- package/js/types/Interface/api/qonto/ProcessBankAccount.js +31 -0
- package/js/types/Interface/api/qonto/ProcessBankAccount.js.map +1 -0
- package/js/types/Interface/api/qonto/Query.js +6 -0
- package/js/types/Interface/api/qonto/Query.js.map +1 -0
- package/js/types/Interface/api/qonto/ReadCreateConnection.js +6 -0
- package/js/types/Interface/api/qonto/ReadCreateConnection.js.map +1 -0
- package/js/types/Interface/api/qonto/UpdateConnection.js +29 -0
- package/js/types/Interface/api/qonto/UpdateConnection.js.map +1 -0
- package/js/types/Interface/api/user/ParamsGetAllCollaborators.js +6 -0
- package/js/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
- package/js/types/Interface/api/user/QueryGetAllCollaborators.js +8 -0
- package/js/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
- package/js/types/Interface/models/IApiError.js +3 -1
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/Interface/models/IPrestationHistory.js +6 -0
- package/js/types/Interface/models/IPrestationHistory.js.map +1 -0
- package/js/types/index.js +108 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/task.js +17 -21
- package/js/utils/task.js.map +1 -1
- package/js/utils/webmail.js +1 -3
- package/js/utils/webmail.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Exercice.ts +4 -0
- package/ts/api/resources/Mail.ts +2 -2
- package/ts/api/resources/Qonto.ts +26 -4
- package/ts/api/resources/User.ts +3 -12
- package/ts/types/Enum/BrandClementine.ts +3 -0
- package/ts/types/Enum/Role.ts +15 -10
- package/ts/types/Enum/RoleDetail.ts +120 -64
- package/ts/types/Enum/Rules.ts +18 -0
- package/ts/types/Enum/TaskResponseType.ts +25 -3
- package/ts/types/Enum/TimeCounterType.ts +7 -7
- package/ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts +1 -1
- package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +1 -1
- package/ts/types/Interface/api/qonto/CreateImportation.ts +14 -0
- package/ts/types/Interface/api/qonto/CreateQontoConnection.ts +12 -0
- package/ts/types/Interface/api/qonto/GetConnectionInformation.ts +8 -0
- package/ts/types/Interface/api/qonto/ProcessBankAccount.ts +12 -0
- package/ts/types/Interface/api/qonto/Query.ts +80 -0
- package/ts/types/Interface/api/qonto/ReadCreateConnection.ts +6 -0
- package/ts/types/Interface/api/qonto/UpdateConnection.ts +8 -0
- package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +9 -0
- package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +10 -1
- package/ts/types/Interface/models/IApiError.ts +3 -0
- package/ts/types/Interface/models/IPrestationHistory.ts +16 -0
- package/ts/types/index.ts +9 -0
- package/ts/utils/task.ts +17 -17
- package/ts/utils/webmail.ts +1 -3
|
@@ -5,4 +5,8 @@ export class Exercice extends Resource {
|
|
|
5
5
|
create(params: CreateExercice): Promise<IExercice> {
|
|
6
6
|
return this.axios.$post('/exercices', params);
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
getAllBySocietyId(id: number): Promise<IExercice[]> {
|
|
10
|
+
return this.axios.$get(`/societies/${id}/exercices`);
|
|
11
|
+
}
|
|
8
12
|
}
|
package/ts/api/resources/Mail.ts
CHANGED
|
@@ -87,7 +87,7 @@ export class Mail extends Resource {
|
|
|
87
87
|
idUser,
|
|
88
88
|
isProcessed: false,
|
|
89
89
|
isSent: false,
|
|
90
|
-
|
|
90
|
+
handlingManagerRoleMails: true,
|
|
91
91
|
},
|
|
92
92
|
});
|
|
93
93
|
}
|
|
@@ -166,7 +166,7 @@ export class Mail extends Resource {
|
|
|
166
166
|
...(cancelToken ? { cancelToken } : {}),
|
|
167
167
|
params: {
|
|
168
168
|
idUser,
|
|
169
|
-
|
|
169
|
+
handlingManagerRoleMails: true,
|
|
170
170
|
},
|
|
171
171
|
});
|
|
172
172
|
}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ProcessBankAccount,
|
|
3
|
+
CreateQontoConnection,
|
|
4
|
+
CreateImportation, GetConnectionInformation, GetQontoOrganization, IAccountingTransaction, IBankAccount, IBankConnection, ReadCreateConnection, UpdateConnection,
|
|
5
|
+
} from '../../types';
|
|
2
6
|
import { Resource } from '../Resource';
|
|
3
7
|
|
|
4
8
|
export class Qonto extends Resource {
|
|
5
|
-
delete(
|
|
6
|
-
idBankConnection: number,
|
|
7
|
-
): Promise<IBankAccount> {
|
|
9
|
+
delete(idBankConnection: number): Promise<IBankAccount> {
|
|
8
10
|
return this.axios.$delete(`qonto/${idBankConnection}`);
|
|
9
11
|
}
|
|
12
|
+
|
|
13
|
+
getInformation(queries: GetConnectionInformation): Promise<GetQontoOrganization> {
|
|
14
|
+
return this.axios.$get('connectors/qonto/connections', { params: queries });
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
importBankAccount(idBankAccount: number, payload: CreateImportation): Promise<IAccountingTransaction[]> {
|
|
18
|
+
return this.axios.$post(`connectors/qonto/${idBankAccount}/importation`, payload);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
processBankAccount(idBankConnection: number, payload: ProcessBankAccount): Promise<IBankAccount[]> {
|
|
22
|
+
return this.axios.$post(`connectors/qonto/connections/${idBankConnection}/bank-accounts`, payload);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
create(payload: CreateQontoConnection): Promise<ReadCreateConnection> {
|
|
26
|
+
return this.axios.$post('connectors/qonto/connections', payload);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
updateConnection(idBankConnection: number, payload: UpdateConnection): Promise<IBankConnection> {
|
|
30
|
+
return this.axios.$put(`connectors/qonto/connections/${idBankConnection}`, payload);
|
|
31
|
+
}
|
|
10
32
|
}
|
package/ts/api/resources/User.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
|
-
IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, QuerySocieties, ISociety, Role, TimeCounterType,
|
|
3
|
+
IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, QuerySocieties, ISociety, Role, TimeCounterType, QueryGetAllCollaborators,
|
|
4
4
|
} from '../../types';
|
|
5
5
|
|
|
6
6
|
export class User extends Resource {
|
|
@@ -25,29 +25,20 @@ export class User extends Resource {
|
|
|
25
25
|
allFromSociety(params: QueryGetAllFromSociety): Promise<IUser> {
|
|
26
26
|
return this.axios.$get('user/all-from-society', { params });
|
|
27
27
|
}
|
|
28
|
-
allCollaborators(): Promise<IUser> {
|
|
29
|
-
return this.axios.$get('user/all-collaborators');
|
|
28
|
+
allCollaborators(params: QueryGetAllCollaborators): Promise<IUser> {
|
|
29
|
+
return this.axios.$get('user/all-collaborators', { params });
|
|
30
30
|
}
|
|
31
31
|
allCollaboratorsByRolesFromTimeCounterType(idTimeCounterType: number): Promise<IUser> {
|
|
32
32
|
const timeCounterType = Object.values(TimeCounterType).find((tct) => tct.id === idTimeCounterType);
|
|
33
33
|
const rolesByDefault = [
|
|
34
|
-
Role.FRONT_MANAGER,
|
|
35
34
|
Role.FRONT_OFFICE,
|
|
36
35
|
Role.FRONT_OFFICE_EXPRESS,
|
|
37
|
-
Role.BACK_MANAGER,
|
|
38
|
-
Role.BACK_OFFICE,
|
|
39
|
-
Role.BACK_OFFICE_EXPRESS,
|
|
40
|
-
Role.VAT,
|
|
41
36
|
Role.SOCIAL,
|
|
42
37
|
Role.JURIDIC,
|
|
43
38
|
Role.HUMAN_RESSOURCES,
|
|
44
39
|
Role.FACTURATION,
|
|
45
|
-
Role.CHIEF_ACCOUNTANT,
|
|
46
|
-
Role.CUSTOMER_SUCCESS_MANAGER,
|
|
47
40
|
Role.CUSTOMER_SUCCESS,
|
|
48
|
-
Role.COMMERCIAL_MANAGER,
|
|
49
41
|
Role.COMMERCIAL,
|
|
50
|
-
Role.SUPERVISOR,
|
|
51
42
|
Role.MANAGER,
|
|
52
43
|
Role.EXPERT_ACCOUNTANT,
|
|
53
44
|
Role.DEVELOPER,
|
package/ts/types/Enum/Role.ts
CHANGED
|
@@ -2,36 +2,41 @@ export enum Role {
|
|
|
2
2
|
CLIENT = 1,
|
|
3
3
|
ADMIN = 2,
|
|
4
4
|
FRONT_OFFICE = 3,
|
|
5
|
+
ACCOUNTANT = 3,
|
|
5
6
|
COMMERCIAL = 9,
|
|
6
7
|
CUSTOMER_SUCCESS = 10,
|
|
7
8
|
SOCIAL = 11,
|
|
8
9
|
JURIDIC = 12,
|
|
9
|
-
CHIEF_ACCOUNTANT = 13,
|
|
10
|
-
SUPERVISOR = 14,
|
|
10
|
+
// CHIEF_ACCOUNTANT = 13,
|
|
11
|
+
// SUPERVISOR = 14,
|
|
11
12
|
FRONT_OFFICE_EXPRESS = 15,
|
|
12
13
|
SUPER_ADMIN = 16,
|
|
13
14
|
EXPERT_SUB_CONTRACTOR = 17,
|
|
14
15
|
MAINTAINER = 18,
|
|
15
16
|
MANAGER = 19,
|
|
16
17
|
EXPERT_ACCOUNTANT = 20,
|
|
17
|
-
MFA_PENDING = 21,
|
|
18
|
-
VAT = 22,
|
|
18
|
+
// MFA_PENDING = 21,
|
|
19
|
+
// VAT = 22,
|
|
19
20
|
CANDIDAT = 24,
|
|
20
21
|
DEVELOPER = 25,
|
|
21
22
|
API = 26,
|
|
22
|
-
BACK_OFFICE = 27,
|
|
23
|
-
BACK_OFFICE_EXPRESS = 28,
|
|
24
|
-
BACK_MANAGER = 30,
|
|
25
|
-
FRONT_MANAGER = 31,
|
|
26
|
-
CUSTOMER_SUCCESS_MANAGER = 32,
|
|
27
|
-
COMMERCIAL_MANAGER = 33,
|
|
23
|
+
// BACK_OFFICE = 27,
|
|
24
|
+
// BACK_OFFICE_EXPRESS = 28,
|
|
25
|
+
// BACK_MANAGER = 30,
|
|
26
|
+
// FRONT_MANAGER = 31,
|
|
27
|
+
// CUSTOMER_SUCCESS_MANAGER = 32,
|
|
28
|
+
// COMMERCIAL_MANAGER = 33,
|
|
28
29
|
FACTURATION = 34,
|
|
29
30
|
HUMAN_RESSOURCES = 35,
|
|
30
31
|
PARTNERED_ACCOUNTANT = 36,
|
|
32
|
+
SDR = 37,
|
|
31
33
|
FORECAST_MANAGER = 38,
|
|
32
34
|
TERMINATION_MANAGER = 39,
|
|
33
35
|
EXPRESS_MANAGER = 40,
|
|
34
36
|
CONFLICT_MANAGER = 41,
|
|
35
37
|
ATTESTATION_MANAGER = 42,
|
|
36
38
|
JURIDICAL_SUPPORT = 43,
|
|
39
|
+
INTERN = 44,
|
|
40
|
+
ALTERNATE = 45,
|
|
41
|
+
DIRECTOR = 46,
|
|
37
42
|
}
|
|
@@ -4,30 +4,35 @@ export const RoleDetail = {
|
|
|
4
4
|
name: 'Client',
|
|
5
5
|
colorPrimary: '#8765D0',
|
|
6
6
|
colorSecondary: '#DED7F6',
|
|
7
|
+
subRole: false,
|
|
7
8
|
},
|
|
8
9
|
ADMIN: {
|
|
9
10
|
id: 2,
|
|
10
11
|
name: 'Admin',
|
|
11
12
|
colorPrimary: '#8765D0',
|
|
12
13
|
colorSecondary: '#DED7F6',
|
|
14
|
+
subRole: false,
|
|
13
15
|
},
|
|
14
16
|
FRONT_OFFICE: {
|
|
15
17
|
id: 3,
|
|
16
18
|
name: 'Front Office',
|
|
17
19
|
colorPrimary: '#8765D0',
|
|
18
20
|
colorSecondary: '#DED7F6',
|
|
21
|
+
subRole: false,
|
|
19
22
|
},
|
|
20
23
|
COMMERCIAL: {
|
|
21
24
|
id: 9,
|
|
22
25
|
name: 'Commercial',
|
|
23
26
|
colorPrimary: '#8765D0',
|
|
24
27
|
colorSecondary: '#DED7F6',
|
|
28
|
+
subRole: false,
|
|
25
29
|
},
|
|
26
30
|
CUSTOMER_SUCCESS: {
|
|
27
31
|
id: 10,
|
|
28
32
|
name: 'Customer success',
|
|
29
33
|
colorPrimary: '#5894EF',
|
|
30
34
|
colorSecondary: '#DAEEFC',
|
|
35
|
+
subRole: false,
|
|
31
36
|
handledInUserSocietyPermissionTable: false,
|
|
32
37
|
},
|
|
33
38
|
SOCIAL: {
|
|
@@ -35,182 +40,233 @@ export const RoleDetail = {
|
|
|
35
40
|
name: 'Social',
|
|
36
41
|
colorPrimary: '#8765D0',
|
|
37
42
|
colorSecondary: '#DED7F6',
|
|
43
|
+
subRole: false,
|
|
38
44
|
},
|
|
39
45
|
JURIDIC: {
|
|
40
46
|
id: 12,
|
|
41
47
|
name: 'Juridique',
|
|
42
48
|
colorPrimary: '#8765D0',
|
|
43
49
|
colorSecondary: '#DED7F6',
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
subRole: false,
|
|
51
|
+
},
|
|
52
|
+
// CHIEF_ACCOUNTANT: {
|
|
53
|
+
// id: 13,
|
|
54
|
+
// name: 'Chef comptable',
|
|
55
|
+
// colorPrimary: '#8765D0',
|
|
56
|
+
// colorSecondary: '#DED7F6',
|
|
57
|
+
// subRole: false,
|
|
58
|
+
// },
|
|
59
|
+
// SUPERVISOR: {
|
|
60
|
+
// id: 14,
|
|
61
|
+
// name: 'Superviseur',
|
|
62
|
+
// colorPrimary: '#8765D0',
|
|
63
|
+
// colorSecondary: '#DED7F6',
|
|
64
|
+
// subRole: false,
|
|
65
|
+
// },
|
|
57
66
|
FRONT_OFFICE_EXPRESS: {
|
|
58
67
|
id: 15,
|
|
59
68
|
name: 'Front office express',
|
|
60
69
|
colorPrimary: '#8765D0',
|
|
61
70
|
colorSecondary: '#DED7F6',
|
|
71
|
+
subRole: false,
|
|
62
72
|
},
|
|
63
73
|
SUPER_ADMIN: {
|
|
64
74
|
id: 16,
|
|
65
75
|
name: 'Super admin',
|
|
66
76
|
colorPrimary: '#8765D0',
|
|
67
77
|
colorSecondary: '#DED7F6',
|
|
78
|
+
subRole: false,
|
|
68
79
|
},
|
|
69
80
|
EXPERT_SUB_CONTRACTOR: {
|
|
70
81
|
id: 17,
|
|
71
82
|
name: 'Expert sous-traitant',
|
|
72
83
|
colorPrimary: '#B5D33C',
|
|
73
84
|
colorSecondary: '#EEF4C3',
|
|
85
|
+
subRole: false,
|
|
74
86
|
},
|
|
75
87
|
MAINTAINER: {
|
|
76
88
|
id: 18,
|
|
77
89
|
name: 'Admin partenaire',
|
|
78
90
|
colorPrimary: '#8765D0',
|
|
79
91
|
colorSecondary: '#DED7F6',
|
|
92
|
+
subRole: false,
|
|
80
93
|
},
|
|
81
94
|
MANAGER: {
|
|
82
95
|
id: 19,
|
|
83
96
|
name: 'Manager',
|
|
84
97
|
colorPrimary: '#8765D0',
|
|
85
98
|
colorSecondary: '#DED7F6',
|
|
99
|
+
subRole: false,
|
|
86
100
|
},
|
|
87
101
|
EXPERT_ACCOUNTANT: {
|
|
88
102
|
id: 20,
|
|
89
103
|
name: 'Expert-comptable',
|
|
90
104
|
colorPrimary: '#B5D33C',
|
|
91
105
|
colorSecondary: '#EEF4C3',
|
|
106
|
+
subRole: false,
|
|
92
107
|
handledInUserSocietyPermissionTable: false,
|
|
93
108
|
},
|
|
94
|
-
MFA_PENDING: {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
109
|
+
// MFA_PENDING: {
|
|
110
|
+
// id: 21,
|
|
111
|
+
// name: 'Attente MFA',
|
|
112
|
+
// colorPrimary: '#8765D0',
|
|
113
|
+
// colorSecondary: '#DED7F6',
|
|
114
|
+
// subRole: false,
|
|
115
|
+
// },
|
|
116
|
+
// VAT: {
|
|
117
|
+
// id: 22,
|
|
118
|
+
// name: 'VAT',
|
|
119
|
+
// colorPrimary: '#8765D0',
|
|
120
|
+
// colorSecondary: '#DED7F6',
|
|
121
|
+
// subRole: false,
|
|
122
|
+
// },
|
|
106
123
|
CANDIDAT: {
|
|
107
124
|
id: 24,
|
|
108
125
|
name: 'Candidat',
|
|
109
126
|
colorPrimary: '#8765D0',
|
|
110
127
|
colorSecondary: '#DED7F6',
|
|
128
|
+
subRole: false,
|
|
111
129
|
},
|
|
112
130
|
DEVELOPER: {
|
|
113
131
|
id: 25,
|
|
114
132
|
name: 'Développeur',
|
|
115
133
|
colorPrimary: '#8765D0',
|
|
116
134
|
colorSecondary: '#DED7F6',
|
|
135
|
+
subRole: false,
|
|
117
136
|
},
|
|
118
137
|
API: {
|
|
119
138
|
id: 26,
|
|
120
139
|
name: 'API',
|
|
121
140
|
colorPrimary: '#8765D0',
|
|
122
141
|
colorSecondary: '#DED7F6',
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
},
|
|
142
|
+
subRole: false,
|
|
143
|
+
},
|
|
144
|
+
// BACK_OFFICE: {
|
|
145
|
+
// id: 27,
|
|
146
|
+
// name: 'Back office',
|
|
147
|
+
// colorPrimary: '#8765D0',
|
|
148
|
+
// colorSecondary: '#DED7F6',
|
|
149
|
+
// subRole: false,
|
|
150
|
+
// },
|
|
151
|
+
// BACK_OFFICE_EXPRESS: {
|
|
152
|
+
// id: 28,
|
|
153
|
+
// name: 'Back office express',
|
|
154
|
+
// colorPrimary: '#8765D0',
|
|
155
|
+
// colorSecondary: '#DED7F6',
|
|
156
|
+
// subRole: false,
|
|
157
|
+
// },
|
|
158
|
+
// BACK_MANAGER: {
|
|
159
|
+
// id: 30,
|
|
160
|
+
// name: 'Manager back',
|
|
161
|
+
// colorPrimary: '#8765D0',
|
|
162
|
+
// colorSecondary: '#DED7F6',
|
|
163
|
+
// subRole: false,
|
|
164
|
+
// handledInUserSocietyPermissionTable: false,
|
|
165
|
+
// },
|
|
166
|
+
// FRONT_MANAGER: {
|
|
167
|
+
// id: 31,
|
|
168
|
+
// name: 'Manager front',
|
|
169
|
+
// colorPrimary: '#8765D0',
|
|
170
|
+
// colorSecondary: '#DED7F6',
|
|
171
|
+
// subRole: false,
|
|
172
|
+
// },
|
|
173
|
+
// CUSTOMER_SUCCESS_MANAGER: {
|
|
174
|
+
// id: 32,
|
|
175
|
+
// name: 'Customer success manager',
|
|
176
|
+
// colorPrimary: '#5894EF',
|
|
177
|
+
// colorSecondary: '#DAEEFC',
|
|
178
|
+
// subRole: false,
|
|
179
|
+
// handledInUserSocietyPermissionTable: false,
|
|
180
|
+
// },
|
|
181
|
+
// COMMERCIAL_MANAGER: {
|
|
182
|
+
// id: 33,
|
|
183
|
+
// name: 'Manager commercial',
|
|
184
|
+
// colorPrimary: '#8765D0',
|
|
185
|
+
// colorSecondary: '#DED7F6',
|
|
186
|
+
// subRole: false,
|
|
187
|
+
// },
|
|
162
188
|
FACTURATION: {
|
|
163
189
|
id: 34,
|
|
164
190
|
name: 'Facturation',
|
|
165
191
|
colorPrimary: '#8765D0',
|
|
166
192
|
colorSecondary: '#DED7F6',
|
|
193
|
+
subRole: false,
|
|
167
194
|
},
|
|
168
195
|
HUMAN_RESSOURCES: {
|
|
169
196
|
id: 35,
|
|
170
197
|
name: 'Ressources humaines',
|
|
171
198
|
colorPrimary: '#8765D0',
|
|
172
199
|
colorSecondary: '#DED7F6',
|
|
200
|
+
subRole: false,
|
|
173
201
|
},
|
|
174
202
|
PARTNERED_ACCOUNTANT: {
|
|
175
203
|
id: 36,
|
|
176
204
|
name: 'Comptable partenaire',
|
|
177
205
|
colorPrimary: '#8765D0',
|
|
178
206
|
colorSecondary: '#DED7F6',
|
|
207
|
+
subRole: false,
|
|
179
208
|
},
|
|
180
209
|
FORECAST_MANAGER: {
|
|
181
210
|
id: 38,
|
|
182
211
|
name: 'Gestionnaire Prévisionnels',
|
|
183
212
|
colorPrimary: '#8765D0',
|
|
184
213
|
colorSecondary: '#DED7F6',
|
|
214
|
+
subRole: false,
|
|
185
215
|
},
|
|
186
216
|
TERMINATION_MANAGER: {
|
|
187
217
|
id: 39,
|
|
188
218
|
name: 'Gestionnaire Résiliations',
|
|
189
219
|
colorPrimary: '#8765D0',
|
|
190
220
|
colorSecondary: '#DED7F6',
|
|
221
|
+
subRole: false,
|
|
191
222
|
},
|
|
192
223
|
EXPRESS_MANAGER: {
|
|
193
224
|
id: 40,
|
|
194
225
|
name: 'Gestionnaire Express',
|
|
195
226
|
colorPrimary: '#8765D0',
|
|
196
227
|
colorSecondary: '#DED7F6',
|
|
228
|
+
subRole: false,
|
|
197
229
|
},
|
|
198
230
|
CONFLICT_MANAGER: {
|
|
199
231
|
id: 41,
|
|
200
232
|
name: 'Gestionnaire Conflits',
|
|
201
233
|
colorPrimary: '#8765D0',
|
|
202
234
|
colorSecondary: '#DED7F6',
|
|
235
|
+
subRole: false,
|
|
203
236
|
},
|
|
204
237
|
ATTESTATION_MANAGER: {
|
|
205
238
|
id: 42,
|
|
206
239
|
name: 'Gestionnaire Attestations',
|
|
207
240
|
colorPrimary: '#8765D0',
|
|
208
241
|
colorSecondary: '#DED7F6',
|
|
242
|
+
subRole: false,
|
|
209
243
|
},
|
|
210
244
|
JURIDICAL_SUPPORT: {
|
|
211
245
|
id: 43,
|
|
212
246
|
name: 'Support juridique',
|
|
213
247
|
colorPrimary: '#8765D0',
|
|
214
248
|
colorSecondary: '#DED7F6',
|
|
249
|
+
subRole: false,
|
|
250
|
+
},
|
|
251
|
+
INTERN: {
|
|
252
|
+
id: 44,
|
|
253
|
+
name: 'Stagiaire',
|
|
254
|
+
colorPrimary: '#FFF',
|
|
255
|
+
colorSecondary: '#FFF',
|
|
256
|
+
subRole: true,
|
|
257
|
+
},
|
|
258
|
+
ALTERNATE: {
|
|
259
|
+
id: 45,
|
|
260
|
+
name: 'Alternant',
|
|
261
|
+
colorPrimary: '#FFF',
|
|
262
|
+
colorSecondary: '#FFF',
|
|
263
|
+
subRole: true,
|
|
264
|
+
},
|
|
265
|
+
DIRECTOR: {
|
|
266
|
+
id: 46,
|
|
267
|
+
name: 'Directeur',
|
|
268
|
+
colorPrimary: '#FFF',
|
|
269
|
+
colorSecondary: '#FFF',
|
|
270
|
+
subRole: true,
|
|
215
271
|
},
|
|
216
272
|
};
|
|
@@ -31,7 +31,7 @@ export enum RoleAvailableForTask {
|
|
|
31
31
|
CUSTOMER_SUCCESS = Role.CUSTOMER_SUCCESS,
|
|
32
32
|
FRONT_OFFICE = Role.FRONT_OFFICE,
|
|
33
33
|
COMMERCIAL = Role.COMMERCIAL,
|
|
34
|
-
BACK_MANAGER = Role.BACK_MANAGER,
|
|
34
|
+
// BACK_MANAGER = Role.BACK_MANAGER,
|
|
35
35
|
EXPERT_ACCOUNTANT = Role.EXPERT_ACCOUNTANT,
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -142,7 +142,7 @@ export const TaskResponseType = {
|
|
|
142
142
|
{
|
|
143
143
|
id: 10,
|
|
144
144
|
label: 'Préparation d\'un bilan',
|
|
145
|
-
role: Role.
|
|
145
|
+
role: Role.MANAGER,
|
|
146
146
|
deadline: Deadline,
|
|
147
147
|
isForWholeRole: false,
|
|
148
148
|
backToClient: false,
|
|
@@ -150,6 +150,17 @@ export const TaskResponseType = {
|
|
|
150
150
|
responseType: null,
|
|
151
151
|
description: 'Controle de la DADS.',
|
|
152
152
|
},
|
|
153
|
+
{
|
|
154
|
+
id: 11,
|
|
155
|
+
label: 'Comptable express',
|
|
156
|
+
role: Role.FRONT_OFFICE_EXPRESS,
|
|
157
|
+
deadline: Deadline,
|
|
158
|
+
isForWholeRole: false,
|
|
159
|
+
backToClient: false,
|
|
160
|
+
goToCalendar: false,
|
|
161
|
+
responseType: null,
|
|
162
|
+
description: 'Est-ce que nous pouvons réaliser le bilan 2020 de ce client ?',
|
|
163
|
+
},
|
|
153
164
|
],
|
|
154
165
|
},
|
|
155
166
|
EXTERN: {
|
|
@@ -269,7 +280,7 @@ export const TaskResponseType = {
|
|
|
269
280
|
{
|
|
270
281
|
id: 14,
|
|
271
282
|
label: 'Litige dossier',
|
|
272
|
-
role: Role.
|
|
283
|
+
role: Role.MANAGER,
|
|
273
284
|
deadline: Deadline,
|
|
274
285
|
isForWholeRole: false,
|
|
275
286
|
backToClient: true,
|
|
@@ -277,6 +288,17 @@ export const TaskResponseType = {
|
|
|
277
288
|
responseType: ResponseType.MAIL,
|
|
278
289
|
description: 'Le client veut avoir une explication de bilan par le responsable comptable',
|
|
279
290
|
},
|
|
291
|
+
{
|
|
292
|
+
id: 15,
|
|
293
|
+
label: 'Comptable express',
|
|
294
|
+
role: Role.FRONT_OFFICE_EXPRESS,
|
|
295
|
+
deadline: Deadline,
|
|
296
|
+
isForWholeRole: false,
|
|
297
|
+
backToClient: true,
|
|
298
|
+
goToCalendar: false,
|
|
299
|
+
responseType: ResponseType.MAIL,
|
|
300
|
+
description: 'Bilan express à envoyer au SIE.',
|
|
301
|
+
},
|
|
280
302
|
],
|
|
281
303
|
|
|
282
304
|
},
|
|
@@ -5,25 +5,25 @@ export const TimeCounterType = {
|
|
|
5
5
|
id: 1,
|
|
6
6
|
label: 'OnBoarding',
|
|
7
7
|
aberrantTime: 60,
|
|
8
|
-
limitedRoles: [Role.FRONT_OFFICE
|
|
8
|
+
limitedRoles: [Role.FRONT_OFFICE],
|
|
9
9
|
},
|
|
10
10
|
VAT: {
|
|
11
11
|
id: 2,
|
|
12
12
|
label: 'TVA',
|
|
13
13
|
aberrantTime: 60,
|
|
14
|
-
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE
|
|
14
|
+
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
|
|
15
15
|
},
|
|
16
16
|
REVISION: {
|
|
17
17
|
id: 3,
|
|
18
18
|
label: 'Révision',
|
|
19
19
|
aberrantTime: 120,
|
|
20
|
-
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE
|
|
20
|
+
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
|
|
21
21
|
},
|
|
22
22
|
FOLDER_REVIEW: {
|
|
23
23
|
id: 4,
|
|
24
24
|
label: 'Revue dossier',
|
|
25
25
|
aberrantTime: 60,
|
|
26
|
-
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE
|
|
26
|
+
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
|
|
27
27
|
},
|
|
28
28
|
REPORTING: {
|
|
29
29
|
id: 5,
|
|
@@ -65,7 +65,7 @@ export const TimeCounterType = {
|
|
|
65
65
|
id: 11,
|
|
66
66
|
label: 'Prévisionnel',
|
|
67
67
|
aberrantTime: null,
|
|
68
|
-
limitedRoles: [Role.FRONT_OFFICE
|
|
68
|
+
limitedRoles: [Role.FRONT_OFFICE],
|
|
69
69
|
},
|
|
70
70
|
CERTIFICATE: {
|
|
71
71
|
id: 12,
|
|
@@ -77,7 +77,7 @@ export const TimeCounterType = {
|
|
|
77
77
|
id: 13,
|
|
78
78
|
label: 'Mission complémentaire',
|
|
79
79
|
aberrantTime: null,
|
|
80
|
-
limitedRoles: [Role.FRONT_OFFICE
|
|
80
|
+
limitedRoles: [Role.FRONT_OFFICE],
|
|
81
81
|
},
|
|
82
82
|
ORGANISATION: {
|
|
83
83
|
id: 14,
|
|
@@ -119,7 +119,7 @@ export const TimeCounterType = {
|
|
|
119
119
|
id: 20,
|
|
120
120
|
label: 'Bilan',
|
|
121
121
|
aberrantTime: 120,
|
|
122
|
-
limitedRoles: [Role.FRONT_OFFICE, Role.
|
|
122
|
+
limitedRoles: [Role.FRONT_OFFICE, Role.EXPERT_ACCOUNTANT],
|
|
123
123
|
},
|
|
124
124
|
PAYSLIP: {
|
|
125
125
|
id: 21,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IsDateString, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class CreateImportation {
|
|
5
|
+
@ApiPropertyOptional()
|
|
6
|
+
@IsOptional()
|
|
7
|
+
@IsDateString()
|
|
8
|
+
minDate?: string;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsDateString()
|
|
13
|
+
maxDate?: string ;
|
|
14
|
+
}
|