@silexpert/core 1.3.129 → 1.3.130
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/Checklist.d.ts +28 -1
- package/dist/cjs/api/resources/Checklist.d.ts.map +1 -1
- package/dist/cjs/api/resources/Checklist.js +39 -0
- package/dist/cjs/api/resources/Checklist.js.map +1 -1
- package/dist/cjs/api/resources/DocumentRequest.d.ts +10 -0
- package/dist/cjs/api/resources/DocumentRequest.d.ts.map +1 -0
- package/dist/cjs/api/resources/DocumentRequest.js +23 -0
- package/dist/cjs/api/resources/DocumentRequest.js.map +1 -0
- package/dist/cjs/api/resources.d.ts +2 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/ChecklistType.d.ts +8 -1
- package/dist/cjs/types/Enum/ChecklistType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ChecklistType.js +8 -0
- package/dist/cjs/types/Enum/ChecklistType.js.map +1 -1
- package/dist/cjs/types/Enum/ConstitutionState.js +1 -1
- package/dist/cjs/types/Enum/ConstitutionState.js.map +1 -1
- package/dist/cjs/types/Enum/Ged.d.ts +31 -1
- package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +152 -5
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +15 -15
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/ZoneCode.d.ts +6 -0
- package/dist/cjs/types/Enum/ZoneCode.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ZoneCode.js +7 -0
- package/dist/cjs/types/Enum/ZoneCode.js.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Query.d.ts +3 -0
- package/dist/cjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Query.js +10 -1
- package/dist/cjs/types/Interface/api/checklist/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Update.d.ts +11 -1
- package/dist/cjs/types/Interface/api/checklist/Update.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Update.js +49 -1
- package/dist/cjs/types/Interface/api/checklist/Update.js.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts +10 -0
- package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/documentRequest/Create.js +46 -0
- package/dist/cjs/types/Interface/api/documentRequest/Create.js.map +1 -0
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts +5 -0
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/documentRequest/Query.js +30 -0
- package/dist/cjs/types/Interface/api/documentRequest/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.d.ts +2 -0
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.js +9 -1
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.js.map +1 -1
- package/dist/cjs/types/Interface/api/library/QueryLibrary.d.ts +4 -2
- package/dist/cjs/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/library/QueryLibrary.js +6 -2
- package/dist/cjs/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/dist/cjs/types/Interface/api/society/ReadSociety.d.ts +7 -3
- package/dist/cjs/types/Interface/api/society/ReadSociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/society/ReadSociety.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts +1 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +6 -0
- package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/cjs/types/Interface/models/IChecklist.d.ts +2 -2
- package/dist/cjs/types/Interface/models/IChecklist.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IChecklist.js.map +1 -1
- package/dist/cjs/types/Interface/models/IChecklistDetail.d.ts +3 -3
- package/dist/cjs/types/Interface/models/IChecklistDetail.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IChecklistDetail.js.map +1 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts +23 -0
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IDocumentRequest.js +3 -0
- package/dist/cjs/types/Interface/models/IDocumentRequest.js.map +1 -0
- package/dist/cjs/types/Interface/models/IGedFile.d.ts +6 -1
- package/dist/cjs/types/Interface/models/IGedFile.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IGedFile.js.map +1 -1
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +3 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/vat/utils.js +3 -3
- package/dist/cjs/utils/vat/utils.js.map +1 -1
- package/dist/mjs/api/resources/Checklist.d.ts +28 -1
- package/dist/mjs/api/resources/Checklist.d.ts.map +1 -1
- package/dist/mjs/api/resources/Checklist.js +39 -0
- package/dist/mjs/api/resources/Checklist.js.map +1 -1
- package/dist/mjs/api/resources/DocumentRequest.d.ts +10 -0
- package/dist/mjs/api/resources/DocumentRequest.d.ts.map +1 -0
- package/dist/mjs/api/resources/DocumentRequest.js +27 -0
- package/dist/mjs/api/resources/DocumentRequest.js.map +1 -0
- package/dist/mjs/api/resources.d.ts +2 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/ChecklistType.d.ts +8 -1
- package/dist/mjs/types/Enum/ChecklistType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ChecklistType.js +8 -0
- package/dist/mjs/types/Enum/ChecklistType.js.map +1 -1
- package/dist/mjs/types/Enum/ConstitutionState.js +1 -1
- package/dist/mjs/types/Enum/ConstitutionState.js.map +1 -1
- package/dist/mjs/types/Enum/Ged.d.ts +31 -1
- package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +151 -4
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +15 -15
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/ZoneCode.d.ts +6 -0
- package/dist/mjs/types/Enum/ZoneCode.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ZoneCode.js +7 -0
- package/dist/mjs/types/Enum/ZoneCode.js.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Query.d.ts +3 -0
- package/dist/mjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Query.js +9 -0
- package/dist/mjs/types/Interface/api/checklist/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Update.d.ts +11 -1
- package/dist/mjs/types/Interface/api/checklist/Update.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Update.js +57 -3
- package/dist/mjs/types/Interface/api/checklist/Update.js.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts +10 -0
- package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/documentRequest/Create.js +47 -0
- package/dist/mjs/types/Interface/api/documentRequest/Create.js.map +1 -0
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts +5 -0
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/documentRequest/Query.js +28 -0
- package/dist/mjs/types/Interface/api/documentRequest/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.d.ts +2 -0
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.js +12 -2
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.js.map +1 -1
- package/dist/mjs/types/Interface/api/library/QueryLibrary.d.ts +4 -2
- package/dist/mjs/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/library/QueryLibrary.js +9 -3
- package/dist/mjs/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/dist/mjs/types/Interface/api/society/ReadSociety.d.ts +7 -3
- package/dist/mjs/types/Interface/api/society/ReadSociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/society/ReadSociety.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts +1 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +7 -0
- package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/mjs/types/Interface/models/IChecklist.d.ts +2 -2
- package/dist/mjs/types/Interface/models/IChecklist.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IChecklist.js.map +1 -1
- package/dist/mjs/types/Interface/models/IChecklistDetail.d.ts +3 -3
- package/dist/mjs/types/Interface/models/IChecklistDetail.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IChecklistDetail.js.map +1 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts +23 -0
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IDocumentRequest.js +2 -0
- package/dist/mjs/types/Interface/models/IDocumentRequest.js.map +1 -0
- package/dist/mjs/types/Interface/models/IGedFile.d.ts +6 -1
- package/dist/mjs/types/Interface/models/IGedFile.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IGedFile.js.map +1 -1
- package/dist/mjs/types/index.d.ts +3 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +3 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/vat/utils.js +3 -3
- package/dist/mjs/utils/vat/utils.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Checklist.ts +49 -0
- package/ts/api/resources/DocumentRequest.ts +32 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/ChecklistType.ts +9 -0
- package/ts/types/Enum/ConstitutionState.ts +1 -1
- package/ts/types/Enum/Ged.ts +345 -193
- package/ts/types/Enum/PrestationType.ts +15 -15
- package/ts/types/Enum/ZoneCode.ts +7 -0
- package/ts/types/Interface/api/checklist/Query.ts +7 -0
- package/ts/types/Interface/api/checklist/Update.ts +44 -3
- package/ts/types/Interface/api/documentRequest/Create.ts +28 -0
- package/ts/types/Interface/api/documentRequest/Query.ts +14 -0
- package/ts/types/Interface/api/gedFile/createFileAndGed.ts +7 -1
- package/ts/types/Interface/api/library/QueryLibrary.ts +4 -2
- package/ts/types/Interface/api/society/ReadSociety.ts +7 -3
- package/ts/types/Interface/api/stripe/Create.ts +5 -0
- package/ts/types/Interface/models/IChecklist.ts +2 -2
- package/ts/types/Interface/models/IChecklistDetail.ts +3 -3
- package/ts/types/Interface/models/IDocumentRequest.ts +25 -0
- package/ts/types/Interface/models/IGedFile.ts +6 -1
- package/ts/types/index.ts +3 -0
- package/ts/utils/vat/utils.ts +3 -3
|
@@ -1161,7 +1161,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1161
1161
|
},
|
|
1162
1162
|
CESSION_ACTIONS: {
|
|
1163
1163
|
id: 51,
|
|
1164
|
-
name:
|
|
1164
|
+
name: 'Cession d\'actions',
|
|
1165
1165
|
isComptable: false,
|
|
1166
1166
|
isJuridique: true,
|
|
1167
1167
|
isSocial: false,
|
|
@@ -1218,7 +1218,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1218
1218
|
},
|
|
1219
1219
|
MODIFICATION_DIRIGEANT_OU_COMMISSAIRE_AU_COMPTE_SASU_EURL: {
|
|
1220
1220
|
id: 54,
|
|
1221
|
-
name:
|
|
1221
|
+
name: 'Modification d\'un dirigeant ou d\'un commissaire aux compte (SASU / EURL)',
|
|
1222
1222
|
isComptable: false,
|
|
1223
1223
|
isJuridique: true,
|
|
1224
1224
|
isSocial: false,
|
|
@@ -1370,7 +1370,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1370
1370
|
},
|
|
1371
1371
|
MODIFICATION_OBJET_SOCIAL_EURL_SASU: {
|
|
1372
1372
|
id: 62,
|
|
1373
|
-
name:
|
|
1373
|
+
name: 'Modification de l\'objet social (EURL/SASU)',
|
|
1374
1374
|
isComptable: false,
|
|
1375
1375
|
isJuridique: true,
|
|
1376
1376
|
isSocial: false,
|
|
@@ -1712,7 +1712,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1712
1712
|
},
|
|
1713
1713
|
CREATION_DOSSIER_INFORMATIQUE_PAR_SALARIE: {
|
|
1714
1714
|
id: 80,
|
|
1715
|
-
name:
|
|
1715
|
+
name: 'Création d\'un dossier informatique par salarié',
|
|
1716
1716
|
isComptable: false,
|
|
1717
1717
|
isJuridique: false,
|
|
1718
1718
|
isSocial: true,
|
|
@@ -1731,7 +1731,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1731
1731
|
},
|
|
1732
1732
|
ETABLISSEMENT_CONTRAT_TRAVAIL: {
|
|
1733
1733
|
id: 81,
|
|
1734
|
-
name:
|
|
1734
|
+
name: 'Etablissement d\'un contrat de travail',
|
|
1735
1735
|
isComptable: false,
|
|
1736
1736
|
isJuridique: false,
|
|
1737
1737
|
isSocial: true,
|
|
@@ -1788,7 +1788,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1788
1788
|
},
|
|
1789
1789
|
TAXE_APPRENTISSAGE_ET_FORMATION_CONTINUE: {
|
|
1790
1790
|
id: 84,
|
|
1791
|
-
name:
|
|
1791
|
+
name: 'Taxe d\'apprentissage et formation continue',
|
|
1792
1792
|
isComptable: false,
|
|
1793
1793
|
isJuridique: false,
|
|
1794
1794
|
isSocial: true,
|
|
@@ -2017,7 +2017,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2017
2017
|
},
|
|
2018
2018
|
ATTESTATION_CA: {
|
|
2019
2019
|
id: 97,
|
|
2020
|
-
name:
|
|
2020
|
+
name: 'Attestation de chiffre d\'affaires',
|
|
2021
2021
|
isComptable: true,
|
|
2022
2022
|
isJuridique: false,
|
|
2023
2023
|
isSocial: false,
|
|
@@ -2055,7 +2055,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2055
2055
|
},
|
|
2056
2056
|
MAJ_ADRESSE_PERSONNELLE_DIRIGEANT_SUR_KBIS: {
|
|
2057
2057
|
id: 99,
|
|
2058
|
-
name:
|
|
2058
|
+
name: 'Mise à jour de l\'adresse personnelle du dirigeant sur le Kbis',
|
|
2059
2059
|
isComptable: false,
|
|
2060
2060
|
isJuridique: true,
|
|
2061
2061
|
isSocial: false,
|
|
@@ -2093,7 +2093,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2093
2093
|
},
|
|
2094
2094
|
MODIFICATION_OBJET_SOCIAL_SARL_SAS_SCI: {
|
|
2095
2095
|
id: 103,
|
|
2096
|
-
name:
|
|
2096
|
+
name: 'Modification de l\'objet social (SARL/SAS/SCI)',
|
|
2097
2097
|
isComptable: false,
|
|
2098
2098
|
isJuridique: true,
|
|
2099
2099
|
isSocial: false,
|
|
@@ -2150,7 +2150,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2150
2150
|
},
|
|
2151
2151
|
MODIFICATION_DIRIGEANT_OU_COMMISSAIRE_AU_COMPTE_SAS_SARL_SCI: {
|
|
2152
2152
|
id: 106,
|
|
2153
|
-
name:
|
|
2153
|
+
name: 'Modification d’un dirigeant ou d\'un commissaire aux compte (SAS / SARL / SCI)',
|
|
2154
2154
|
isComptable: false,
|
|
2155
2155
|
isJuridique: true,
|
|
2156
2156
|
isSocial: false,
|
|
@@ -2720,7 +2720,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2720
2720
|
},
|
|
2721
2721
|
CONTRAT_APPORT_EN_NATURE: {
|
|
2722
2722
|
id: 138,
|
|
2723
|
-
name:
|
|
2723
|
+
name: 'Contrat d\'apport en nature',
|
|
2724
2724
|
isComptable: false,
|
|
2725
2725
|
isJuridique: true,
|
|
2726
2726
|
isSocial: false,
|
|
@@ -3309,7 +3309,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3309
3309
|
},
|
|
3310
3310
|
DECLARATION_IR: {
|
|
3311
3311
|
id: 206,
|
|
3312
|
-
name:
|
|
3312
|
+
name: 'Déclaration d\'IR',
|
|
3313
3313
|
isComptable: true,
|
|
3314
3314
|
isJuridique: false,
|
|
3315
3315
|
isSocial: false,
|
|
@@ -3423,7 +3423,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3423
3423
|
},
|
|
3424
3424
|
STATUTS_FREE: {
|
|
3425
3425
|
id: PrestationType.STATUTS_FREE,
|
|
3426
|
-
name:
|
|
3426
|
+
name: 'Statuts - Just\' Statuts',
|
|
3427
3427
|
isComptable: true,
|
|
3428
3428
|
isJuridique: true,
|
|
3429
3429
|
isSocial: false,
|
|
@@ -3442,7 +3442,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3442
3442
|
},
|
|
3443
3443
|
STATUTS_OPTION_1: {
|
|
3444
3444
|
id: PrestationType.STATUTS_OPTION_1,
|
|
3445
|
-
name:
|
|
3445
|
+
name: 'Statuts - Just\' Création',
|
|
3446
3446
|
isComptable: true,
|
|
3447
3447
|
isJuridique: true,
|
|
3448
3448
|
isSocial: false,
|
|
@@ -3461,7 +3461,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3461
3461
|
},
|
|
3462
3462
|
STATUTS_OPTION_2: {
|
|
3463
3463
|
id: PrestationType.STATUTS_OPTION_2,
|
|
3464
|
-
name:
|
|
3464
|
+
name: 'Statuts - Full\'Créa',
|
|
3465
3465
|
isComptable: true,
|
|
3466
3466
|
isJuridique: true,
|
|
3467
3467
|
isSocial: false,
|
|
@@ -304,6 +304,9 @@ export const ZoneCode = {
|
|
|
304
304
|
SARTHE: {
|
|
305
305
|
zone_code: '72',
|
|
306
306
|
},
|
|
307
|
+
VAL_D_OISE: {
|
|
308
|
+
zone_code: '95',
|
|
309
|
+
},
|
|
307
310
|
SAINT_PIERRE_ET_MIQUELON: {
|
|
308
311
|
zone_code: '975',
|
|
309
312
|
},
|
|
@@ -737,6 +740,10 @@ export const ZoneCodeList = [
|
|
|
737
740
|
id: ZoneCode.SARTHE.zone_code,
|
|
738
741
|
label: 'Sarthe',
|
|
739
742
|
},
|
|
743
|
+
{
|
|
744
|
+
id: ZoneCode.VAL_D_OISE.zone_code,
|
|
745
|
+
label: 'Val d\'oise',
|
|
746
|
+
},
|
|
740
747
|
{
|
|
741
748
|
id: ZoneCode.SAINT_PIERRE_ET_MIQUELON.zone_code,
|
|
742
749
|
label: 'Saint-Pierre-et-Miquelon',
|
|
@@ -167,6 +167,13 @@ export class QueryGetToComplete {
|
|
|
167
167
|
idSociety: number;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
export class QueryChecklistQuestions {
|
|
171
|
+
@ApiProperty()
|
|
172
|
+
@IsNumber()
|
|
173
|
+
@IsPositive()
|
|
174
|
+
idExercice: number;
|
|
175
|
+
}
|
|
176
|
+
|
|
170
177
|
export class QueryChecklistUpdate {
|
|
171
178
|
@ApiProperty()
|
|
172
179
|
@IsBoolean()
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { IsEnum, IsString } from 'class-validator';
|
|
2
|
-
import { ApiProperty } from '../../../../utils';
|
|
3
|
-
import { ChecklistDetailValue } from '../../../Enum/ChecklistType';
|
|
1
|
+
import { IsBoolean, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { ChecklistDetailValue, ChecklistTypeEnum } from '../../../Enum/ChecklistType';
|
|
4
|
+
import { IChecklist } from '../../models/IChecklist';
|
|
5
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
6
|
|
|
5
7
|
export class UpdateAnswer {
|
|
6
8
|
@ApiProperty()
|
|
@@ -11,3 +13,42 @@ export class UpdateAnswer {
|
|
|
11
13
|
@IsEnum(ChecklistDetailValue)
|
|
12
14
|
value: ChecklistDetailValue;
|
|
13
15
|
}
|
|
16
|
+
|
|
17
|
+
export class UpdateChecklist implements Partial<IChecklist> {
|
|
18
|
+
@ApiPropertyOptional()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsDate()
|
|
21
|
+
revisionDate?: Date;
|
|
22
|
+
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
@IsInt()
|
|
26
|
+
idUserWhoValidate?: number;
|
|
27
|
+
|
|
28
|
+
@ApiPropertyOptional()
|
|
29
|
+
@IsOptional()
|
|
30
|
+
@IsDate()
|
|
31
|
+
validateDate?: Date;
|
|
32
|
+
|
|
33
|
+
@ApiProperty()
|
|
34
|
+
@IsOptional()
|
|
35
|
+
@IsInt()
|
|
36
|
+
idUserFront?: number;
|
|
37
|
+
|
|
38
|
+
@ApiProperty()
|
|
39
|
+
@IsOptional()
|
|
40
|
+
@IsBoolean()
|
|
41
|
+
@ToBoolean()
|
|
42
|
+
isConfirmed?: boolean;
|
|
43
|
+
|
|
44
|
+
@ApiPropertyOptional()
|
|
45
|
+
@IsOptional()
|
|
46
|
+
@IsEnum(ChecklistTypeEnum)
|
|
47
|
+
type?: ChecklistTypeEnum;
|
|
48
|
+
|
|
49
|
+
@ApiPropertyOptional()
|
|
50
|
+
@IsOptional()
|
|
51
|
+
@IsBoolean()
|
|
52
|
+
@ToBoolean()
|
|
53
|
+
force?: boolean;
|
|
54
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IsEnum, IsInt, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { IDocumentRequest } from '../../models/IDocumentRequest';
|
|
4
|
+
import { TypeFile } from '../../../Enum/Ged';
|
|
5
|
+
|
|
6
|
+
export class CreateDocumentRequest implements Omit<IDocumentRequest, 'id' | 'idRequestedBy'> {
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
@IsInt()
|
|
9
|
+
idSociety: number;
|
|
10
|
+
|
|
11
|
+
@ApiProperty()
|
|
12
|
+
@IsEnum(TypeFile)
|
|
13
|
+
typeFile: TypeFile;
|
|
14
|
+
|
|
15
|
+
@ApiPropertyOptional()
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsInt()
|
|
18
|
+
idExercice?: number;
|
|
19
|
+
|
|
20
|
+
@ApiPropertyOptional()
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@IsInt()
|
|
23
|
+
idBalanceSheet?: number;
|
|
24
|
+
|
|
25
|
+
@ApiPropertyOptional()
|
|
26
|
+
@IsOptional()
|
|
27
|
+
comment?: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IsInt, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class QueryDocumentRequest {
|
|
5
|
+
@ApiPropertyOptional()
|
|
6
|
+
@IsOptional()
|
|
7
|
+
@IsInt()
|
|
8
|
+
idExercice?: number;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsInt()
|
|
13
|
+
idBalanceSheet?: number;
|
|
14
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsBoolean, IsDate, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsDate, IsInt, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiPropertyOptional, ApiProperty } from '../../../../utils';
|
|
3
3
|
import { TFile } from '../file/TFile';
|
|
4
4
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
@@ -22,6 +22,7 @@ export class CreateFileAndGed {
|
|
|
22
22
|
@ApiPropertyOptional()
|
|
23
23
|
@IsNumber()
|
|
24
24
|
@IsOptional()
|
|
25
|
+
/** @deprecated use TypeFile enum with GedFile.typeFile field */
|
|
25
26
|
idTypeGedFile?: number;
|
|
26
27
|
|
|
27
28
|
@ApiProperty()
|
|
@@ -72,4 +73,9 @@ export class CreateFileAndGed {
|
|
|
72
73
|
@IsBoolean()
|
|
73
74
|
@ToBoolean()
|
|
74
75
|
formatFileName?: boolean | null;
|
|
76
|
+
|
|
77
|
+
@ApiPropertyOptional()
|
|
78
|
+
@IsOptional()
|
|
79
|
+
@IsInt()
|
|
80
|
+
idDocumentRequest?: number | null;
|
|
75
81
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IsIn, IsOptional, IsString, IsNumber, IsBoolean, IsInt, IsDateString, IsArray } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
-
import { GedFolder, GedFileType, GedCategory } from '../../../Enum/Ged';
|
|
3
|
+
import { GedFolder, GedFileType, GedCategory, TypeFile } from '../../../Enum/Ged';
|
|
4
4
|
import { RequiredQueryPaginate } from '../BasePaginate';
|
|
5
5
|
import { TFile } from '../file/TFile';
|
|
6
6
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
@@ -13,6 +13,7 @@ export class QueryLibraryFile {
|
|
|
13
13
|
idGedFolder?: GedFolder;
|
|
14
14
|
|
|
15
15
|
@ApiPropertyOptional()
|
|
16
|
+
/** @deprecated use TypeFile enum with GedFile.typeFile field */
|
|
16
17
|
idTypeGedFile?: GedFileType | GedFileType[];
|
|
17
18
|
|
|
18
19
|
@ApiPropertyOptional()
|
|
@@ -36,7 +37,7 @@ export class QueryLibraryFile {
|
|
|
36
37
|
@ApiPropertyOptional()
|
|
37
38
|
@IsNumber()
|
|
38
39
|
@IsOptional()
|
|
39
|
-
typeFile?:
|
|
40
|
+
typeFile?: TypeFile;
|
|
40
41
|
|
|
41
42
|
@ApiPropertyOptional()
|
|
42
43
|
@IsBoolean()
|
|
@@ -149,6 +150,7 @@ export class QueryLastFileOfType {
|
|
|
149
150
|
idSociety: number;
|
|
150
151
|
|
|
151
152
|
@ApiProperty()
|
|
153
|
+
/** @deprecated Use TypeFile enum instead with GedFile.typeFile field */
|
|
152
154
|
idTypeGedFile: GedFileType;
|
|
153
155
|
|
|
154
156
|
@ApiPropertyOptional()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IFile } from '../../..';
|
|
1
|
+
import { IFile, TypeFile } from '../../..';
|
|
2
2
|
|
|
3
3
|
export type UnpaidDetail = {
|
|
4
4
|
datePayment: Date;
|
|
@@ -20,6 +20,10 @@ export type ReadAskOrRequiredDocuments = {
|
|
|
20
20
|
name: string;
|
|
21
21
|
status: string;
|
|
22
22
|
idGedFolder: number;
|
|
23
|
-
idGedFileType
|
|
24
|
-
|
|
23
|
+
idGedFileType?: number;
|
|
24
|
+
typeFile?: TypeFile;
|
|
25
|
+
idDocumentRequest?: number;
|
|
26
|
+
idExercice?: number;
|
|
27
|
+
idBalanceSheet?: number;
|
|
28
|
+
idBankAccount?: number;
|
|
25
29
|
};
|
|
@@ -20,8 +20,8 @@ export interface IChecklist {
|
|
|
20
20
|
startDate?: Date | null;
|
|
21
21
|
endDate?: Date | null;
|
|
22
22
|
notifyFront?: boolean;
|
|
23
|
-
idExercice
|
|
24
|
-
idCustomerVat
|
|
23
|
+
idExercice?: number | null;
|
|
24
|
+
idCustomerVat?: number | null;
|
|
25
25
|
createdAt?: Date | null;
|
|
26
26
|
updatedAt?: Date | null;
|
|
27
27
|
|
|
@@ -6,13 +6,13 @@ export interface IChecklistDetail {
|
|
|
6
6
|
id?: number;
|
|
7
7
|
value: string;
|
|
8
8
|
isAutomatic: boolean;
|
|
9
|
-
idBankAccount
|
|
9
|
+
idBankAccount?: number | null;
|
|
10
10
|
idTypeChecklist: number;
|
|
11
11
|
idChecklist: number;
|
|
12
12
|
createdAt?: Date | null;
|
|
13
13
|
updatedAt?: Date | null;
|
|
14
14
|
|
|
15
15
|
// Associations
|
|
16
|
-
typeChecklist
|
|
17
|
-
detailHasOneChecklist
|
|
16
|
+
typeChecklist?: IChecklistType;
|
|
17
|
+
detailHasOneChecklist?: IChecklist;
|
|
18
18
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TypeFile } from '../../Enum/Ged';
|
|
2
|
+
import { ISociety } from './ISociety';
|
|
3
|
+
import { IExercice } from './IExercice';
|
|
4
|
+
import { IBalanceSheet } from './IBalanceSheet';
|
|
5
|
+
import { IUser } from './IUser';
|
|
6
|
+
import { IFile } from './IFile';
|
|
7
|
+
import { IGedFile } from './IGedFile';
|
|
8
|
+
|
|
9
|
+
export interface IDocumentRequest {
|
|
10
|
+
id: number;
|
|
11
|
+
idSociety: number;
|
|
12
|
+
idExercice?: number | null;
|
|
13
|
+
idBalanceSheet?: number | null;
|
|
14
|
+
idRequestedBy: number;
|
|
15
|
+
typeFile: TypeFile;
|
|
16
|
+
comment?: string | null;
|
|
17
|
+
|
|
18
|
+
// Associations
|
|
19
|
+
society?: ISociety;
|
|
20
|
+
exercice?: IExercice;
|
|
21
|
+
balanceSheet?: IBalanceSheet;
|
|
22
|
+
requestedBy?: IUser;
|
|
23
|
+
gedFiles?: IGedFile[];
|
|
24
|
+
files?: IFile[];
|
|
25
|
+
}
|
|
@@ -8,18 +8,21 @@ import { ICustomerSignature } from './ICustomerSignature';
|
|
|
8
8
|
import { IBalanceSheet } from './IBalanceSheet';
|
|
9
9
|
import { IBusinessPartner } from './IBusinessPartner';
|
|
10
10
|
import { IBankAccount } from './IBankAccount';
|
|
11
|
+
import { TypeFile } from '../../Enum/Ged';
|
|
12
|
+
import { IDocumentRequest } from './IDocumentRequest';
|
|
11
13
|
|
|
12
14
|
// gedFile
|
|
13
15
|
export interface IGedFile {
|
|
14
16
|
id?: number;
|
|
15
17
|
emissionDate?: Date | null;
|
|
16
18
|
statutFile?: number | null;
|
|
19
|
+
/** @deprecated Use typeFile field instead with TypeFile enum */
|
|
17
20
|
idTypeGedFile?: number | null;
|
|
18
21
|
idUser?: number | null;
|
|
19
22
|
idGedFolder: number;
|
|
20
23
|
idSociety: number;
|
|
21
24
|
idFile: number;
|
|
22
|
-
typeFile?:
|
|
25
|
+
typeFile?: TypeFile | null;
|
|
23
26
|
startDate?: Date | null;
|
|
24
27
|
endDate?: Date | null;
|
|
25
28
|
idExercice?: number | null;
|
|
@@ -27,6 +30,7 @@ export interface IGedFile {
|
|
|
27
30
|
idUserBP?: number | null; // Attention: lorsqu'on ajoute un fichier dans la modale "Documents manquants", on stock ici l'idUser associé au BP
|
|
28
31
|
idBusinessPartner?: number | null;
|
|
29
32
|
idBankAccount?: number | null;
|
|
33
|
+
idDocumentRequest?: number | null;
|
|
30
34
|
createdAt?: Date | null;
|
|
31
35
|
updatedAt?: Date | null;
|
|
32
36
|
|
|
@@ -42,4 +46,5 @@ export interface IGedFile {
|
|
|
42
46
|
userBP?: IUser;
|
|
43
47
|
customerSignature?: ICustomerSignature;
|
|
44
48
|
bankAccount?: IBankAccount;
|
|
49
|
+
documentRequest?: IDocumentRequest;
|
|
45
50
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -324,6 +324,7 @@ export * from './Interface/models/IStateBankAccount';
|
|
|
324
324
|
export * from './Interface/models/IAIQuestion';
|
|
325
325
|
export * from './Interface/models/IAIConversation';
|
|
326
326
|
export * from './Interface/models/IPaymentAttempt';
|
|
327
|
+
export * from './Interface/models/IDocumentRequest';
|
|
327
328
|
|
|
328
329
|
// Schemas
|
|
329
330
|
export * from './Interface/schemas/IRegistrationDetail';
|
|
@@ -1135,6 +1136,8 @@ export * from './Interface/api/absenceRequest/CreateAbsenceRequest';
|
|
|
1135
1136
|
export * from './Interface/api/absenceRequest/ReadAbsenceRequest';
|
|
1136
1137
|
export * from './Interface/api/recurrence/Query';
|
|
1137
1138
|
export * from './Interface/api/recurrence/Read';
|
|
1139
|
+
export * from './Interface/api/documentRequest/Query';
|
|
1140
|
+
export * from './Interface/api/documentRequest/Create';
|
|
1138
1141
|
|
|
1139
1142
|
// Enums types
|
|
1140
1143
|
export * from './Interface/enum/Util';
|
package/ts/utils/vat/utils.ts
CHANGED
|
@@ -52,7 +52,7 @@ export function getTaxAmountByAccountNumber(
|
|
|
52
52
|
accountingEntry.account.number.toString().startsWith(number)
|
|
53
53
|
) {
|
|
54
54
|
// eslint-disable-next-line no-console
|
|
55
|
-
if (logging) console.log(
|
|
55
|
+
if (logging) console.log('\'\'');
|
|
56
56
|
// eslint-disable-next-line no-console
|
|
57
57
|
if (logging) console.log(accountingEntry);
|
|
58
58
|
|
|
@@ -70,12 +70,12 @@ export function getTaxAmountByAccountNumber(
|
|
|
70
70
|
|
|
71
71
|
export function textFormatting(value: any, length: number | null = null, start?: number): string | null {
|
|
72
72
|
if (value && typeof value === 'string') {
|
|
73
|
-
let formattedValue = value.replace(/[\u2018\u2019]/g,
|
|
73
|
+
let formattedValue = value.replace(/[\u2018\u2019]/g, '\''); // Suppression des "Curly Quotes"
|
|
74
74
|
formattedValue = formattedValue.replace(/&/g, ''); // Suppression des &
|
|
75
75
|
formattedValue = formattedValue.replace(/!/g, ''); // Suppression des !
|
|
76
76
|
formattedValue = formattedValue.replace(/[\t]/g, ''); // Suppression des tabulations
|
|
77
77
|
|
|
78
|
-
formattedValue = formattedValue.replace(/`/g,
|
|
78
|
+
formattedValue = formattedValue.replace(/`/g, '\''); // Suppression des `
|
|
79
79
|
formattedValue = formattedValue.replace(/"/g, ''); // Suppression des "
|
|
80
80
|
formattedValue = formattedValue.replace(/^ */, ''); // Suppression des espaces de début
|
|
81
81
|
formattedValue = formattedValue.replace(/ *$/, ''); // Suppression des espaces de fin
|