@silexpert/core 0.4.247 → 0.4.249
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/Loan.d.ts +2 -1
- package/es/api/resources/Loan.d.ts.map +1 -1
- package/es/api/resources/Loan.js +3 -0
- package/es/api/resources/Loan.js.map +1 -1
- package/es/api/resources/Revision.d.ts +2 -1
- package/es/api/resources/Revision.d.ts.map +1 -1
- package/es/api/resources/Revision.js +2 -2
- package/es/api/resources/Revision.js.map +1 -1
- package/es/types/Enum/PrestationOption.d.ts +27 -0
- package/es/types/Enum/PrestationOption.d.ts.map +1 -0
- package/es/types/Enum/PrestationOption.js +27 -0
- package/es/types/Enum/PrestationOption.js.map +1 -0
- package/es/types/Enum/TimeCounterType.d.ts +48 -0
- package/es/types/Enum/TimeCounterType.d.ts.map +1 -1
- package/es/types/Enum/TimeCounterType.js +54 -6
- package/es/types/Enum/TimeCounterType.js.map +1 -1
- package/es/types/Interface/api/mail/CreateMailParams.d.ts +1 -0
- package/es/types/Interface/api/mail/CreateMailParams.d.ts.map +1 -1
- package/es/types/Interface/api/mail/CreateMailParams.js.map +1 -1
- package/es/types/Interface/models/IChecklist.d.ts +2 -0
- package/es/types/Interface/models/IChecklist.d.ts.map +1 -1
- package/es/types/Interface/models/IChecklist.js.map +1 -1
- package/es/types/Interface/models/IMailRelation.d.ts +12 -0
- package/es/types/Interface/models/IMailRelation.d.ts.map +1 -0
- package/es/types/Interface/models/IMailRelation.js +2 -0
- package/es/types/Interface/models/IMailRelation.js.map +1 -0
- package/es/types/Interface/models/IPrestationOption.d.ts +10 -0
- package/es/types/Interface/models/IPrestationOption.d.ts.map +1 -0
- package/es/types/Interface/models/IPrestationOption.js +2 -0
- package/es/types/Interface/models/IPrestationOption.js.map +1 -0
- package/es/types/index.d.ts +3 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +3 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/Loan.js +4 -0
- package/js/api/resources/Loan.js.map +1 -1
- package/js/api/resources/Revision.js +5 -3
- package/js/api/resources/Revision.js.map +1 -1
- package/js/types/Enum/PrestationOption.js +32 -0
- package/js/types/Enum/PrestationOption.js.map +1 -0
- package/js/types/Enum/TimeCounterType.js +54 -6
- package/js/types/Enum/TimeCounterType.js.map +1 -1
- package/js/types/Interface/models/IMailRelation.js +6 -0
- package/js/types/Interface/models/IMailRelation.js.map +1 -0
- package/js/types/Interface/models/IPrestationOption.js +6 -0
- package/js/types/Interface/models/IPrestationOption.js.map +1 -0
- package/js/types/index.js +36 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Loan.ts +7 -1
- package/ts/api/resources/Revision.ts +3 -2
- package/ts/types/Enum/PrestationOption.ts +26 -0
- package/ts/types/Enum/TimeCounterType.ts +54 -6
- package/ts/types/Interface/api/mail/CreateMailParams.ts +1 -0
- package/ts/types/Interface/models/IChecklist.ts +2 -0
- package/ts/types/Interface/models/IMailRelation.ts +15 -0
- package/ts/types/Interface/models/IPrestationOption.ts +13 -0
- package/ts/types/index.ts +3 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CancelToken } from 'axios';
|
|
1
2
|
import { Resource } from '../Resource';
|
|
2
3
|
import {
|
|
3
4
|
BasePaginate, QueryRevisionMergeIntoAccount, QueryRevision, QueryRevisionAccount, ReadRevision, ReadRevisionAccount,
|
|
@@ -18,8 +19,8 @@ export class Revision extends Resource {
|
|
|
18
19
|
return this.axios.$get('/revisions/accounts/paginate', { params });
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
getPaginateTransactionsByAccount(idAccount: number, params: QueryRevisionAccount): Promise<BasePaginate<ReadRevisionAccount>> {
|
|
22
|
-
return this.axios.$get(`/revisions/accounts/${idAccount}`, { params });
|
|
22
|
+
getPaginateTransactionsByAccount(idAccount: number, params: QueryRevisionAccount, cancelToken?: CancelToken): Promise<BasePaginate<ReadRevisionAccount>> {
|
|
23
|
+
return this.axios.$get(`/revisions/accounts/${idAccount}`, { ...(cancelToken ? { cancelToken } : {}), params });
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
getTransactionById(idAccountingTransaction: number): Promise<ReadRevisionTransactionDetail> {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const PrestationOption = {
|
|
2
|
+
BUSINESS_PLAN_OPTION_1: {
|
|
3
|
+
id: 1,
|
|
4
|
+
name: 'Option 1',
|
|
5
|
+
description: 'Version supplémentaire établie demandée suite à des modifications du questionnaire',
|
|
6
|
+
price: 99,
|
|
7
|
+
},
|
|
8
|
+
BUSINESS_PLAN_OPTION_2: {
|
|
9
|
+
id: 2,
|
|
10
|
+
name: 'Option 2',
|
|
11
|
+
description: 'Prévisionnel sur 60 mois',
|
|
12
|
+
price: 139,
|
|
13
|
+
},
|
|
14
|
+
BUSINESS_PLAN_OPTION_3: {
|
|
15
|
+
id: 3,
|
|
16
|
+
name: 'Option 3',
|
|
17
|
+
description: 'Aide au choix du statut juridique, fiscal et social',
|
|
18
|
+
price: 99,
|
|
19
|
+
},
|
|
20
|
+
BUSINESS_PLAN_OPTION_4: {
|
|
21
|
+
id: 4,
|
|
22
|
+
name: 'Option 4',
|
|
23
|
+
description: 'Prévisionnel express en 8 jours ouvrables après retour questionnaire rempli de 35 questions simples',
|
|
24
|
+
price: 99,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -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, Role.BACK_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, Role.BACK_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, Role.BACK_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, Role.BACK_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, Role.BACK_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, Role.BACK_OFFICE],
|
|
81
81
|
},
|
|
82
82
|
ORGANISATION: {
|
|
83
83
|
id: 14,
|
|
@@ -115,4 +115,52 @@ export const TimeCounterType = {
|
|
|
115
115
|
aberrantTime: null,
|
|
116
116
|
limitedRoles: [Role.CUSTOMER_SUCCESS],
|
|
117
117
|
},
|
|
118
|
+
BILAN: {
|
|
119
|
+
id: 20,
|
|
120
|
+
label: 'Bilan',
|
|
121
|
+
aberrantTime: 120,
|
|
122
|
+
limitedRoles: [Role.FRONT_OFFICE, Role.BACK_MANAGER, Role.FRONT_MANAGER, Role.BACK_MANAGER, Role.EXPERT_ACCOUNTANT],
|
|
123
|
+
},
|
|
124
|
+
PAYSLIP: {
|
|
125
|
+
id: 21,
|
|
126
|
+
label: 'Bulletin de paie/DSN',
|
|
127
|
+
aberrantTime: 30,
|
|
128
|
+
limitedRoles: [Role.SOCIAL],
|
|
129
|
+
},
|
|
130
|
+
SOCIAL_PARAMETER: {
|
|
131
|
+
id: 22,
|
|
132
|
+
label: 'Paramétrage social',
|
|
133
|
+
aberrantTime: 40,
|
|
134
|
+
limitedRoles: [Role.SOCIAL],
|
|
135
|
+
},
|
|
136
|
+
WORK_CONTRACT: {
|
|
137
|
+
id: 23,
|
|
138
|
+
label: 'Contrat de travail',
|
|
139
|
+
aberrantTime: 60,
|
|
140
|
+
limitedRoles: [Role.SOCIAL],
|
|
141
|
+
},
|
|
142
|
+
DPAE: {
|
|
143
|
+
id: 24,
|
|
144
|
+
label: 'DPAE',
|
|
145
|
+
aberrantTime: 25,
|
|
146
|
+
limitedRoles: [Role.SOCIAL],
|
|
147
|
+
},
|
|
148
|
+
FACTURATION: {
|
|
149
|
+
id: 25,
|
|
150
|
+
label: 'Facturation',
|
|
151
|
+
aberrantTime: 180,
|
|
152
|
+
limitedRoles: null,
|
|
153
|
+
},
|
|
154
|
+
LEGAL_DOCUMENT: {
|
|
155
|
+
id: 26,
|
|
156
|
+
label: 'Rédaction documents juridiques',
|
|
157
|
+
aberrantTime: 30,
|
|
158
|
+
limitedRoles: [Role.JURIDIC],
|
|
159
|
+
},
|
|
160
|
+
INFOGREFFE: {
|
|
161
|
+
id: 27,
|
|
162
|
+
label: 'Dépôt infogreffe ou autre',
|
|
163
|
+
aberrantTime: 15,
|
|
164
|
+
limitedRoles: [Role.JURIDIC],
|
|
165
|
+
},
|
|
118
166
|
};
|
|
@@ -3,6 +3,7 @@ import { IUser } from './IUser';
|
|
|
3
3
|
import { IExercice } from './IExercice';
|
|
4
4
|
import { ICustomerTva } from './ICustomerTva';
|
|
5
5
|
import { ChecklistTypeEnum } from '../../Enum/ChecklistType';
|
|
6
|
+
import { IMailRelation } from '../..';
|
|
6
7
|
|
|
7
8
|
// checklist
|
|
8
9
|
export interface IChecklist {
|
|
@@ -25,4 +26,5 @@ export interface IChecklist {
|
|
|
25
26
|
checklistHasOneSupervisor?: IUser;
|
|
26
27
|
exercice?: IExercice;
|
|
27
28
|
checklistHasOneCustomerVat?: ICustomerTva;
|
|
29
|
+
mailRelation?: IMailRelation[];
|
|
28
30
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IChecklist } from './IChecklist';
|
|
2
|
+
import { IMail } from './IMail';
|
|
3
|
+
|
|
4
|
+
// jobs
|
|
5
|
+
export interface IMailRelation {
|
|
6
|
+
id?: number;
|
|
7
|
+
idChecklist?: number | null;
|
|
8
|
+
idMail: number;
|
|
9
|
+
createdAt?: Date | null;
|
|
10
|
+
updatedAt?: Date | null;
|
|
11
|
+
|
|
12
|
+
// Associations
|
|
13
|
+
checklist?: IChecklist;
|
|
14
|
+
mail?: IMail;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IPrestation } from './IPrestation';
|
|
2
|
+
|
|
3
|
+
// prestationsOptions
|
|
4
|
+
export interface IPrestationOption {
|
|
5
|
+
id?: number;
|
|
6
|
+
idPrestation: number;
|
|
7
|
+
idOption: number;
|
|
8
|
+
createdAt?: Date | null;
|
|
9
|
+
updatedAt?: Date | null;
|
|
10
|
+
|
|
11
|
+
// Associations
|
|
12
|
+
prestation?: IPrestation;
|
|
13
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -109,6 +109,7 @@ export * from './Interface/models/ILogBi';
|
|
|
109
109
|
export * from './Interface/models/ILog';
|
|
110
110
|
export * from './Interface/models/IMailSociety';
|
|
111
111
|
export * from './Interface/models/IMailAuto';
|
|
112
|
+
export * from './Interface/models/IMailRelation';
|
|
112
113
|
export * from './Interface/models/IMailAutoType';
|
|
113
114
|
export * from './Interface/models/IMonth';
|
|
114
115
|
export * from './Interface/models/INationality';
|
|
@@ -144,6 +145,7 @@ export * from './Interface/models/IPhonePrefixChild';
|
|
|
144
145
|
export * from './Interface/models/IPrestation';
|
|
145
146
|
export * from './Interface/models/IPrestationComplementary';
|
|
146
147
|
export * from './Interface/models/IPrestationList';
|
|
148
|
+
export * from './Interface/models/IPrestationOption';
|
|
147
149
|
export * from './Interface/models/IProcedure';
|
|
148
150
|
export * from './Interface/models/IProduct';
|
|
149
151
|
export * from './Interface/models/IQuality';
|
|
@@ -325,6 +327,7 @@ export * from './Enum/Quality';
|
|
|
325
327
|
export * from './Enum/AbsenceType';
|
|
326
328
|
export * from './Enum/Role';
|
|
327
329
|
export * from './Enum/RoleDetail';
|
|
330
|
+
export * from './Enum/PrestationOption';
|
|
328
331
|
export * from './Enum/TimeCounterType';
|
|
329
332
|
export * from './Enum/MailAuto';
|
|
330
333
|
export * from './Enum/Simulation';
|