@silexpert/core 2.0.27 → 2.0.28
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/api/resources/Exercice.d.ts +8 -2
- package/dist/api/resources/Exercice.d.ts.map +1 -1
- package/dist/api/resources/Exercice.js +12 -2
- package/dist/api/resources/Exercice.js.map +1 -1
- package/dist/types/Enum/BalanceSheet.d.ts +8 -1
- package/dist/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/types/Enum/BalanceSheet.js +11 -3
- package/dist/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/types/Enum/Brevo.d.ts +5 -1
- package/dist/types/Enum/Brevo.d.ts.map +1 -1
- package/dist/types/Enum/Brevo.js +4 -0
- package/dist/types/Enum/Brevo.js.map +1 -1
- package/dist/types/Enum/Ged.d.ts +4 -2
- package/dist/types/Enum/Ged.d.ts.map +1 -1
- package/dist/types/Enum/Ged.js +12 -0
- package/dist/types/Enum/Ged.js.map +1 -1
- package/dist/types/Enum/RegistrationSource.d.ts +2 -1
- package/dist/types/Enum/RegistrationSource.d.ts.map +1 -1
- package/dist/types/Enum/RegistrationSource.js +1 -0
- package/dist/types/Enum/RegistrationSource.js.map +1 -1
- package/dist/types/Interface/api/absenceRequest/CreateAbsenceRequest.d.ts +10 -10
- package/dist/types/Interface/api/absenceRequest/CreateAbsenceRequest.d.ts.map +1 -1
- package/dist/types/Interface/api/absenceRequest/CreateAbsenceRequest.js +12 -10
- package/dist/types/Interface/api/absenceRequest/CreateAbsenceRequest.js.map +1 -1
- package/dist/types/Interface/api/exercice/Create.d.ts +4 -0
- package/dist/types/Interface/api/exercice/Create.d.ts.map +1 -1
- package/dist/types/Interface/api/exercice/Create.js +18 -0
- package/dist/types/Interface/api/exercice/Create.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Exercice.ts +16 -2
- package/ts/types/Enum/BalanceSheet.ts +19 -11
- package/ts/types/Enum/Brevo.ts +4 -0
- package/ts/types/Enum/Ged.ts +13 -1
- package/ts/types/Enum/RegistrationSource.ts +2 -1
- package/ts/types/Interface/api/absenceRequest/CreateAbsenceRequest.ts +12 -10
- package/ts/types/Interface/api/exercice/Create.ts +15 -0
|
@@ -7,6 +7,8 @@ import {
|
|
|
7
7
|
UpdateOrCreateAdjustment,
|
|
8
8
|
CreateProjectExercice,
|
|
9
9
|
QuerySocietyExercice,
|
|
10
|
+
GenerateProjectExercice,
|
|
11
|
+
IGedFile,
|
|
10
12
|
} from '../../types/index.js';
|
|
11
13
|
import { Resource } from '../Resource.js';
|
|
12
14
|
|
|
@@ -43,8 +45,8 @@ export class Exercice extends Resource {
|
|
|
43
45
|
return this.axios.$delete(`/exercices/${id}`);
|
|
44
46
|
}
|
|
45
47
|
|
|
46
|
-
generateBalanceSheetProject(idSociety: number, idExercice: number): Promise<boolean> {
|
|
47
|
-
return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/generate
|
|
48
|
+
generateBalanceSheetProject(idSociety: number, idExercice: number, params?: GenerateProjectExercice): Promise<boolean> {
|
|
49
|
+
return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/generate`, params);
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
sendBalanceSheetProject(idSociety: number, idExercice: number, params: CreateProjectExercice): Promise<boolean> {
|
|
@@ -71,4 +73,16 @@ export class Exercice extends Resource {
|
|
|
71
73
|
isFeasible(idExercice: number): Promise<boolean> {
|
|
72
74
|
return this.axios.$get(`exercices/${idExercice}/is-feasible`);
|
|
73
75
|
}
|
|
76
|
+
|
|
77
|
+
checkProjectAcceptation(idSociety: number): Promise<IGedFile[]> {
|
|
78
|
+
return this.axios.$get(`/societies/${idSociety}/project-acceptation`);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @description This endpoint is only to send the preview project email for CADOR balanceSheet (on clementinier), the accountant will upload the document from cador directly in the GED and the project will be send to the client with the email template in brevo
|
|
83
|
+
* For the other clients, the preview project will be send with the endpoint generateProject
|
|
84
|
+
*/
|
|
85
|
+
sendProjectAcceptationEmail(idSociety: number, idExercice: number): Promise<void> {
|
|
86
|
+
return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/send-cador-preview-mail`);
|
|
87
|
+
}
|
|
74
88
|
}
|
|
@@ -35,6 +35,7 @@ export enum BalanceSheetState {
|
|
|
35
35
|
ABANDONED_FORECAST = 28,
|
|
36
36
|
ESTABLISH_REFUSED = 29,
|
|
37
37
|
STANDBY = 30,
|
|
38
|
+
PROJECT_SENT = 31,
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
export const BalanceSheetDetails = [
|
|
@@ -84,6 +85,13 @@ export const BalanceSheetDetails = [
|
|
|
84
85
|
textColor: 'red--text red--lighten-3',
|
|
85
86
|
forRoles: [['front_office', 'manager'], ['front_office_express', 'manager'], ['expert']],
|
|
86
87
|
},
|
|
88
|
+
{
|
|
89
|
+
text: 'Projet envoyé',
|
|
90
|
+
value: BalanceSheetState.PROJECT_SENT,
|
|
91
|
+
color: 'blue',
|
|
92
|
+
textColor: 'blue--text',
|
|
93
|
+
forRoles: [['admin'], ['super_admin'], ['controle_interne']],
|
|
94
|
+
},
|
|
87
95
|
{
|
|
88
96
|
text: 'À superviser',
|
|
89
97
|
value: BalanceSheetState.TO_SUPERVISE,
|
|
@@ -234,14 +242,14 @@ export const BalanceSheetDetails = [
|
|
|
234
242
|
forRoles: [['front_office'], ['expert'], ['satisfaction']],
|
|
235
243
|
},
|
|
236
244
|
{
|
|
237
|
-
text:
|
|
245
|
+
text: 'Accepté SIE en l\'état',
|
|
238
246
|
value: BalanceSheetState.ACCEPTED_BY_SIE_IN_STATE,
|
|
239
247
|
color: 'green darken-3',
|
|
240
248
|
colorText: 'green--text',
|
|
241
249
|
forRoles: [['front_office'], ['expert']],
|
|
242
250
|
},
|
|
243
251
|
{
|
|
244
|
-
text:
|
|
252
|
+
text: 'Refus d\'établir',
|
|
245
253
|
value: BalanceSheetState.ESTABLISH_REFUSED,
|
|
246
254
|
color: 'orange darken-1',
|
|
247
255
|
colorText: 'orange--text text--darken-1',
|
|
@@ -272,7 +280,7 @@ export const ForecastBalanceSheetDetails = [
|
|
|
272
280
|
forRoles: [['front_office'], ['expert']],
|
|
273
281
|
},
|
|
274
282
|
{
|
|
275
|
-
text:
|
|
283
|
+
text: 'Prévisionnel d\' abandonné',
|
|
276
284
|
value: BalanceSheetState.ABANDONED_FORECAST,
|
|
277
285
|
color: 'green darken-3',
|
|
278
286
|
colorText: 'green--text',
|
|
@@ -320,7 +328,7 @@ export type BalanceSheetList = BalanceSheetField[];
|
|
|
320
328
|
|
|
321
329
|
export enum BalanceSheetLabel {
|
|
322
330
|
CAPITAL_SOUSCRIT = 'Capital souscrit - non appelé',
|
|
323
|
-
FRAIS_ETABLISSEMENT =
|
|
331
|
+
FRAIS_ETABLISSEMENT = 'Frais d\'établissement',
|
|
324
332
|
CONCESSIONS_BREVETS = 'Concessions, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires',
|
|
325
333
|
FOND_COMMERCIAL = 'Fonds commercial',
|
|
326
334
|
AUTRES_IMMOBILISATIONS_INCORPORELLES = 'Autres immobilisations inc.',
|
|
@@ -331,7 +339,7 @@ export enum BalanceSheetLabel {
|
|
|
331
339
|
INSTALLATIONS_TECHNIQUES = 'Installations techniques, matériels, et outillage industriels',
|
|
332
340
|
AUTRES_IMMOBILISATIONS_CORPORELLES = 'Autres immobilisations corp.',
|
|
333
341
|
IMMOBILISATIONS_CORPORELLES_EN_COURS = 'Immobilisations corporelles en cours',
|
|
334
|
-
TITRES_IMMOBILISES_DE_LACTIVITE =
|
|
342
|
+
TITRES_IMMOBILISES_DE_LACTIVITE = 'Titres immobilisés de l\'activité de portefeuille',
|
|
335
343
|
AVANCES_ET_ACOMPTES_CORPORELLES = 'Avances et acomptes',
|
|
336
344
|
CREANCES_RATTACHEES_PARTICIPATIONS = 'Créances rattachées à des participations',
|
|
337
345
|
AUTRES_TITRES_IMMOBILISES = 'Autres titres immobilisés',
|
|
@@ -350,7 +358,7 @@ export enum BalanceSheetLabel {
|
|
|
350
358
|
VALEUR_MOBILIERE_PLACEMENT_ACTION_PROPRE = 'Actions propres',
|
|
351
359
|
VALEUR_MOBILIERE_PLACEMENT = 'Valeurs mobilières de placement',
|
|
352
360
|
DISPONIBILITES = 'Disponibilités',
|
|
353
|
-
CHARGES_CONSTATEES_AVANCE =
|
|
361
|
+
CHARGES_CONSTATEES_AVANCE = 'Charges constatées d\'avance',
|
|
354
362
|
TOTAL_2 = 'Total (II)',
|
|
355
363
|
PRIMES_DE_REMBOURSEMENT_DES_EMPRUNTS = 'Primes de remboursement des emprunts (IV)',
|
|
356
364
|
ECARTS_DE_CONVERSIONS = 'Ecarts de conversion Actif (V)',
|
|
@@ -724,15 +732,15 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
|
|
|
724
732
|
export enum BalanceSheetPassiveLabel {
|
|
725
733
|
CAPITAL = 'Capital (dont versé...)',
|
|
726
734
|
RESERVE_LEGALE = 'Réserve légale',
|
|
727
|
-
PRIMES_EMISSION =
|
|
735
|
+
PRIMES_EMISSION = 'Primes d\'émission, de fusion, d\'apport',
|
|
728
736
|
ECART_DE_REEVALUATION = 'Ecart de réévaluation',
|
|
729
|
-
ECART_EQUIVALENCE =
|
|
737
|
+
ECART_EQUIVALENCE = 'Ecart d\'équivalence',
|
|
730
738
|
RESERVES_STATUAIRES = 'Réserves statutaires ou contractuelles',
|
|
731
739
|
RESERVES_REGLEMENTEES = 'Réserves réglementées',
|
|
732
740
|
AUTRES_RESERVES = 'Autres',
|
|
733
741
|
REPORT_A_NOUVEAU = 'Report à nouveau',
|
|
734
|
-
RESULTAT_DE_L_EXERCICE =
|
|
735
|
-
SUBVENTIONS_INVESTISSEMENT =
|
|
742
|
+
RESULTAT_DE_L_EXERCICE = 'Résultat de l\'exercice (bénéfice ou perte)',
|
|
743
|
+
SUBVENTIONS_INVESTISSEMENT = 'Subventions d\'investissement',
|
|
736
744
|
PROVISIONS_REFLEMENTEES = 'Provisions réglementées',
|
|
737
745
|
PROVISIONS_POUR_RISQUES = 'Provisions pour risques',
|
|
738
746
|
PROVISIONS_POUR_CHARGES = 'Provisions pour charges',
|
|
@@ -745,7 +753,7 @@ export enum BalanceSheetPassiveLabel {
|
|
|
745
753
|
DETTES_FISCALES_ET_SOCIALES = 'Dettes fiscales et sociales',
|
|
746
754
|
DETTES_SUR_IMMOBILISATIONS_ET_COMPTES_RATTACHES = 'Dettes sur immobilisations et Comptes rattachés',
|
|
747
755
|
AUTRES_DETTES = 'Autres dettes',
|
|
748
|
-
PRODUITS_CONSTATES_D_AVANCE =
|
|
756
|
+
PRODUITS_CONSTATES_D_AVANCE = 'Produits constatés d\'avance',
|
|
749
757
|
ECART_PASSIF = 'Ecarts de conversion passif (IV)',
|
|
750
758
|
TOTAL_GENERAL = 'Total général (I+II+III+IV)',
|
|
751
759
|
CONCOURS = '(1) Dont concours bancaires courants et soldes créditeurs de banques',
|
package/ts/types/Enum/Brevo.ts
CHANGED
|
@@ -14,4 +14,8 @@ export enum BrevoList {
|
|
|
14
14
|
DOWNLOAD_WHITEPAPER = 302,
|
|
15
15
|
CALENDLY_PROSPECT = 303,
|
|
16
16
|
OB_VALIDATED = 390,
|
|
17
|
+
GO_ENTREPRENEURS_FORM_CREATION = 401,
|
|
18
|
+
GO_ENTREPRENEURS_FORM_ACCOUNTING = 402,
|
|
19
|
+
GO_ENTREPRENEURS_QR_CREATION = 403,
|
|
20
|
+
GO_ENTREPRENEURS_QR_ACCOUNTING = 404,
|
|
17
21
|
}
|
package/ts/types/Enum/Ged.ts
CHANGED
|
@@ -115,7 +115,7 @@ export enum TypeFile {
|
|
|
115
115
|
AUTHORIZATION = 52,
|
|
116
116
|
COMMERCIAL_LEASE_AND_RELEASE = 53,
|
|
117
117
|
CLOSE_BALANCE_SHEET = 54,
|
|
118
|
-
PLAQUETTE = 55,
|
|
118
|
+
PLAQUETTE = 55, // Plaquette bilan comptable
|
|
119
119
|
BALANCE_SHEET_NOTE = 56,
|
|
120
120
|
SUMMARY_NOTE = 57,
|
|
121
121
|
STATUTES = 58,
|
|
@@ -175,6 +175,8 @@ export enum TypeFile {
|
|
|
175
175
|
APPROVAL = 112, // Appro des comptes
|
|
176
176
|
BANK_STATEMENT = 113, // Relevé bancaire
|
|
177
177
|
CUSTOMER_REPORTING = 114, // reporting client (customerActivity)
|
|
178
|
+
ACCOUNTING_CONSISTENCY_CHECK = 115, // Contrôle de cohérence
|
|
179
|
+
ACCOUNTING_PREVIEW_PLAQUETTE = 116, // Preview plaquette comptable
|
|
178
180
|
}
|
|
179
181
|
|
|
180
182
|
/** @deprecated this is a legacy enum try to use TypeFile enum if you can or use both enum's */
|
|
@@ -998,4 +1000,14 @@ Le montant de l’indemnité calculée`,
|
|
|
998
1000
|
name: 'Relevé bancaire',
|
|
999
1001
|
idGedFolder: GedFolder.BANK_STATEMENT,
|
|
1000
1002
|
},
|
|
1003
|
+
[TypeFile.ACCOUNTING_CONSISTENCY_CHECK]: {
|
|
1004
|
+
typeFile: TypeFile.ACCOUNTING_CONSISTENCY_CHECK,
|
|
1005
|
+
name: 'Contrôle de cohérence',
|
|
1006
|
+
idGedFolder: GedFolder.FORMALISM,
|
|
1007
|
+
},
|
|
1008
|
+
[TypeFile.ACCOUNTING_PREVIEW_PLAQUETTE]: {
|
|
1009
|
+
typeFile: TypeFile.ACCOUNTING_PREVIEW_PLAQUETTE,
|
|
1010
|
+
name: 'Projet',
|
|
1011
|
+
idGedFolder: GedFolder.CLOSE_BALANCE_SHEET,
|
|
1012
|
+
}
|
|
1001
1013
|
};
|
|
@@ -119,7 +119,8 @@ export enum RegistrationSourceAlias {
|
|
|
119
119
|
LIVRE_BLANC = 'livre blanc',
|
|
120
120
|
STATUS_ONLINE_CREATION = 'creation_status_online',
|
|
121
121
|
SPONSORSHIP = 'prospect_parrainage',
|
|
122
|
-
RESSOURCES = 'Ressources'
|
|
122
|
+
RESSOURCES = 'Ressources',
|
|
123
|
+
GO_ENTREPRENEURS_2026 = 'GO Entrepreneurs 2026'
|
|
123
124
|
}
|
|
124
125
|
|
|
125
126
|
/**
|
|
@@ -4,52 +4,54 @@ import { ToBoolean } from '../../../../utils/transforms/boolean.transform.js';
|
|
|
4
4
|
|
|
5
5
|
export class CreateAbsenceRequest {
|
|
6
6
|
@ApiPropertyOptional()
|
|
7
|
+
@IsOptional()
|
|
7
8
|
@IsInt()
|
|
8
|
-
idUserAsk?: number
|
|
9
|
+
idUserAsk?: number;
|
|
9
10
|
|
|
10
11
|
@ApiPropertyOptional()
|
|
12
|
+
@IsOptional()
|
|
11
13
|
@IsBoolean()
|
|
12
14
|
@ToBoolean()
|
|
13
|
-
isSolidarite?: boolean
|
|
15
|
+
isSolidarite?: boolean;
|
|
14
16
|
|
|
15
17
|
@ApiPropertyOptional()
|
|
16
18
|
@IsOptional()
|
|
17
19
|
@IsInt()
|
|
18
|
-
idTypeAbsence?: number
|
|
20
|
+
idTypeAbsence?: number;
|
|
19
21
|
|
|
20
22
|
@ApiPropertyOptional()
|
|
21
23
|
@IsOptional()
|
|
22
24
|
@IsDate()
|
|
23
|
-
validService?: Date
|
|
25
|
+
validService?: Date;
|
|
24
26
|
|
|
25
27
|
@ApiPropertyOptional()
|
|
26
28
|
@IsOptional()
|
|
27
29
|
@IsDate()
|
|
28
|
-
validRh?: Date
|
|
30
|
+
validRh?: Date;
|
|
29
31
|
|
|
30
32
|
@ApiPropertyOptional()
|
|
31
33
|
@IsOptional()
|
|
32
34
|
@IsBoolean()
|
|
33
35
|
@ToBoolean()
|
|
34
|
-
refused?: boolean
|
|
36
|
+
refused?: boolean;
|
|
35
37
|
|
|
36
38
|
@ApiPropertyOptional()
|
|
37
39
|
@IsOptional()
|
|
38
40
|
@IsDate()
|
|
39
|
-
dateStartHoliday?: Date
|
|
41
|
+
dateStartHoliday?: Date;
|
|
40
42
|
|
|
41
43
|
@ApiPropertyOptional()
|
|
42
44
|
@IsOptional()
|
|
43
45
|
@IsDate()
|
|
44
|
-
dateEndHoliday?: Date
|
|
46
|
+
dateEndHoliday?: Date;
|
|
45
47
|
|
|
46
48
|
@ApiPropertyOptional()
|
|
47
49
|
@IsOptional()
|
|
48
50
|
@IsString()
|
|
49
|
-
tabTime?: string
|
|
51
|
+
tabTime?: string;
|
|
50
52
|
|
|
51
53
|
@ApiPropertyOptional()
|
|
52
54
|
@IsOptional()
|
|
53
55
|
@IsInt()
|
|
54
|
-
idFile?: number
|
|
56
|
+
idFile?: number;
|
|
55
57
|
}
|
|
@@ -129,3 +129,18 @@ export class CreateProjectExercice {
|
|
|
129
129
|
@IsOptional()
|
|
130
130
|
files?: TFile[];
|
|
131
131
|
}
|
|
132
|
+
|
|
133
|
+
export class GenerateProjectExercice {
|
|
134
|
+
@ApiPropertyOptional()
|
|
135
|
+
@IsOptional()
|
|
136
|
+
@IsBoolean()
|
|
137
|
+
@ToBoolean()
|
|
138
|
+
isPreview?: boolean;
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
@ApiPropertyOptional()
|
|
142
|
+
@IsOptional()
|
|
143
|
+
@IsBoolean()
|
|
144
|
+
@ToBoolean()
|
|
145
|
+
withReporting?: boolean;
|
|
146
|
+
}
|