@silexpert/core 1.3.128-checklist-12 → 1.3.128
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 +1 -28
- package/dist/cjs/api/resources/Checklist.d.ts.map +1 -1
- package/dist/cjs/api/resources/Checklist.js +0 -39
- package/dist/cjs/api/resources/Checklist.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +0 -2
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +0 -2
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/ChecklistType.d.ts +1 -8
- package/dist/cjs/types/Enum/ChecklistType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ChecklistType.js +0 -8
- 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 +1 -31
- package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +5 -152
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts +0 -6
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +16 -46
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Query.d.ts +0 -3
- package/dist/cjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Query.js +1 -10
- package/dist/cjs/types/Interface/api/checklist/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Update.d.ts +1 -11
- package/dist/cjs/types/Interface/api/checklist/Update.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Update.js +1 -49
- package/dist/cjs/types/Interface/api/checklist/Update.js.map +1 -1
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.d.ts +0 -2
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.js +1 -9
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.js.map +1 -1
- package/dist/cjs/types/Interface/api/library/QueryLibrary.d.ts +2 -4
- package/dist/cjs/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/library/QueryLibrary.js +2 -6
- package/dist/cjs/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Query.d.ts +0 -2
- package/dist/cjs/types/Interface/api/payment/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Query.js +0 -12
- package/dist/cjs/types/Interface/api/payment/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/cjs/types/Interface/api/society/ReadSociety.d.ts +3 -7
- 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/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/IGedFile.d.ts +1 -6
- 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/Interface/models/ISociety.d.ts +0 -1
- package/dist/cjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/cjs/types/index.d.ts +0 -3
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +0 -3
- 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 +1 -28
- package/dist/mjs/api/resources/Checklist.d.ts.map +1 -1
- package/dist/mjs/api/resources/Checklist.js +0 -39
- package/dist/mjs/api/resources/Checklist.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +0 -2
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +0 -2
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/ChecklistType.d.ts +1 -8
- package/dist/mjs/types/Enum/ChecklistType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ChecklistType.js +0 -8
- 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 +1 -31
- package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +4 -151
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts +0 -6
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +15 -45
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Query.d.ts +0 -3
- package/dist/mjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Query.js +0 -9
- package/dist/mjs/types/Interface/api/checklist/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Update.d.ts +1 -11
- package/dist/mjs/types/Interface/api/checklist/Update.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Update.js +3 -57
- package/dist/mjs/types/Interface/api/checklist/Update.js.map +1 -1
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.d.ts +0 -2
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.js +2 -12
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.js.map +1 -1
- package/dist/mjs/types/Interface/api/library/QueryLibrary.d.ts +2 -4
- package/dist/mjs/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/library/QueryLibrary.js +3 -9
- package/dist/mjs/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Query.d.ts +0 -2
- package/dist/mjs/types/Interface/api/payment/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Query.js +0 -14
- package/dist/mjs/types/Interface/api/payment/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/mjs/types/Interface/api/society/ReadSociety.d.ts +3 -7
- 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/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/IGedFile.d.ts +1 -6
- 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/Interface/models/ISociety.d.ts +0 -1
- package/dist/mjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/mjs/types/index.d.ts +0 -3
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +0 -3
- 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 +0 -49
- package/ts/api/resources.ts +0 -2
- package/ts/types/Enum/ChecklistType.ts +0 -9
- package/ts/types/Enum/ConstitutionState.ts +1 -1
- package/ts/types/Enum/Ged.ts +193 -345
- package/ts/types/Enum/PrestationType.ts +15 -52
- package/ts/types/Interface/api/checklist/Query.ts +0 -7
- package/ts/types/Interface/api/checklist/Update.ts +3 -44
- package/ts/types/Interface/api/gedFile/createFileAndGed.ts +1 -7
- package/ts/types/Interface/api/library/QueryLibrary.ts +2 -4
- package/ts/types/Interface/api/payment/Query.ts +3 -13
- package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +3 -3
- package/ts/types/Interface/api/society/ReadSociety.ts +3 -7
- package/ts/types/Interface/models/IChecklist.ts +2 -2
- package/ts/types/Interface/models/IChecklistDetail.ts +3 -3
- package/ts/types/Interface/models/IGedFile.ts +1 -6
- package/ts/types/Interface/models/ISociety.ts +0 -1
- package/ts/types/index.ts +0 -3
- package/ts/utils/vat/utils.ts +3 -3
- package/dist/cjs/api/resources/DocumentRequest.d.ts +0 -10
- package/dist/cjs/api/resources/DocumentRequest.d.ts.map +0 -1
- package/dist/cjs/api/resources/DocumentRequest.js +0 -23
- package/dist/cjs/api/resources/DocumentRequest.js.map +0 -1
- package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts +0 -10
- package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/documentRequest/Create.js +0 -46
- package/dist/cjs/types/Interface/api/documentRequest/Create.js.map +0 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts +0 -5
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.js +0 -30
- package/dist/cjs/types/Interface/api/documentRequest/Query.js.map +0 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts +0 -23
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.js +0 -3
- package/dist/cjs/types/Interface/models/IDocumentRequest.js.map +0 -1
- package/dist/mjs/api/resources/DocumentRequest.d.ts +0 -10
- package/dist/mjs/api/resources/DocumentRequest.d.ts.map +0 -1
- package/dist/mjs/api/resources/DocumentRequest.js +0 -27
- package/dist/mjs/api/resources/DocumentRequest.js.map +0 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts +0 -10
- package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.js +0 -47
- package/dist/mjs/types/Interface/api/documentRequest/Create.js.map +0 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts +0 -5
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.js +0 -28
- package/dist/mjs/types/Interface/api/documentRequest/Query.js.map +0 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts +0 -23
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.js +0 -2
- package/dist/mjs/types/Interface/models/IDocumentRequest.js.map +0 -1
- package/ts/api/resources/DocumentRequest.ts +0 -32
- package/ts/types/Interface/api/documentRequest/Create.ts +0 -28
- package/ts/types/Interface/api/documentRequest/Query.ts +0 -14
- package/ts/types/Interface/models/IDocumentRequest.ts +0 -25
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IPermission } from '../Interface/models/IPermission';
|
|
2
1
|
import { IPrestationList } from '../Interface/models/IPrestationList';
|
|
3
2
|
|
|
4
3
|
export enum PrestationType {
|
|
@@ -1161,7 +1160,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1161
1160
|
},
|
|
1162
1161
|
CESSION_ACTIONS: {
|
|
1163
1162
|
id: 51,
|
|
1164
|
-
name:
|
|
1163
|
+
name: "Cession d'actions",
|
|
1165
1164
|
isComptable: false,
|
|
1166
1165
|
isJuridique: true,
|
|
1167
1166
|
isSocial: false,
|
|
@@ -1218,7 +1217,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1218
1217
|
},
|
|
1219
1218
|
MODIFICATION_DIRIGEANT_OU_COMMISSAIRE_AU_COMPTE_SASU_EURL: {
|
|
1220
1219
|
id: 54,
|
|
1221
|
-
name:
|
|
1220
|
+
name: "Modification d'un dirigeant ou d'un commissaire aux compte (SASU / EURL)",
|
|
1222
1221
|
isComptable: false,
|
|
1223
1222
|
isJuridique: true,
|
|
1224
1223
|
isSocial: false,
|
|
@@ -1370,7 +1369,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1370
1369
|
},
|
|
1371
1370
|
MODIFICATION_OBJET_SOCIAL_EURL_SASU: {
|
|
1372
1371
|
id: 62,
|
|
1373
|
-
name:
|
|
1372
|
+
name: "Modification de l'objet social (EURL/SASU)",
|
|
1374
1373
|
isComptable: false,
|
|
1375
1374
|
isJuridique: true,
|
|
1376
1375
|
isSocial: false,
|
|
@@ -1712,7 +1711,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1712
1711
|
},
|
|
1713
1712
|
CREATION_DOSSIER_INFORMATIQUE_PAR_SALARIE: {
|
|
1714
1713
|
id: 80,
|
|
1715
|
-
name:
|
|
1714
|
+
name: "Création d'un dossier informatique par salarié",
|
|
1716
1715
|
isComptable: false,
|
|
1717
1716
|
isJuridique: false,
|
|
1718
1717
|
isSocial: true,
|
|
@@ -1731,7 +1730,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1731
1730
|
},
|
|
1732
1731
|
ETABLISSEMENT_CONTRAT_TRAVAIL: {
|
|
1733
1732
|
id: 81,
|
|
1734
|
-
name:
|
|
1733
|
+
name: "Etablissement d'un contrat de travail",
|
|
1735
1734
|
isComptable: false,
|
|
1736
1735
|
isJuridique: false,
|
|
1737
1736
|
isSocial: true,
|
|
@@ -1788,7 +1787,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1788
1787
|
},
|
|
1789
1788
|
TAXE_APPRENTISSAGE_ET_FORMATION_CONTINUE: {
|
|
1790
1789
|
id: 84,
|
|
1791
|
-
name:
|
|
1790
|
+
name: "Taxe d'apprentissage et formation continue",
|
|
1792
1791
|
isComptable: false,
|
|
1793
1792
|
isJuridique: false,
|
|
1794
1793
|
isSocial: true,
|
|
@@ -2017,7 +2016,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2017
2016
|
},
|
|
2018
2017
|
ATTESTATION_CA: {
|
|
2019
2018
|
id: 97,
|
|
2020
|
-
name:
|
|
2019
|
+
name: "Attestation de chiffre d'affaires",
|
|
2021
2020
|
isComptable: true,
|
|
2022
2021
|
isJuridique: false,
|
|
2023
2022
|
isSocial: false,
|
|
@@ -2055,7 +2054,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2055
2054
|
},
|
|
2056
2055
|
MAJ_ADRESSE_PERSONNELLE_DIRIGEANT_SUR_KBIS: {
|
|
2057
2056
|
id: 99,
|
|
2058
|
-
name:
|
|
2057
|
+
name: "Mise à jour de l'adresse personnelle du dirigeant sur le Kbis",
|
|
2059
2058
|
isComptable: false,
|
|
2060
2059
|
isJuridique: true,
|
|
2061
2060
|
isSocial: false,
|
|
@@ -2093,7 +2092,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2093
2092
|
},
|
|
2094
2093
|
MODIFICATION_OBJET_SOCIAL_SARL_SAS_SCI: {
|
|
2095
2094
|
id: 103,
|
|
2096
|
-
name:
|
|
2095
|
+
name: "Modification de l'objet social (SARL/SAS/SCI)",
|
|
2097
2096
|
isComptable: false,
|
|
2098
2097
|
isJuridique: true,
|
|
2099
2098
|
isSocial: false,
|
|
@@ -2150,7 +2149,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2150
2149
|
},
|
|
2151
2150
|
MODIFICATION_DIRIGEANT_OU_COMMISSAIRE_AU_COMPTE_SAS_SARL_SCI: {
|
|
2152
2151
|
id: 106,
|
|
2153
|
-
name:
|
|
2152
|
+
name: "Modification d’un dirigeant ou d'un commissaire aux compte (SAS / SARL / SCI)",
|
|
2154
2153
|
isComptable: false,
|
|
2155
2154
|
isJuridique: true,
|
|
2156
2155
|
isSocial: false,
|
|
@@ -2720,7 +2719,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2720
2719
|
},
|
|
2721
2720
|
CONTRAT_APPORT_EN_NATURE: {
|
|
2722
2721
|
id: 138,
|
|
2723
|
-
name:
|
|
2722
|
+
name: "Contrat d'apport en nature",
|
|
2724
2723
|
isComptable: false,
|
|
2725
2724
|
isJuridique: true,
|
|
2726
2725
|
isSocial: false,
|
|
@@ -3309,7 +3308,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3309
3308
|
},
|
|
3310
3309
|
DECLARATION_IR: {
|
|
3311
3310
|
id: 206,
|
|
3312
|
-
name:
|
|
3311
|
+
name: "Déclaration d'IR",
|
|
3313
3312
|
isComptable: true,
|
|
3314
3313
|
isJuridique: false,
|
|
3315
3314
|
isSocial: false,
|
|
@@ -3423,7 +3422,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3423
3422
|
},
|
|
3424
3423
|
STATUTS_FREE: {
|
|
3425
3424
|
id: PrestationType.STATUTS_FREE,
|
|
3426
|
-
name:
|
|
3425
|
+
name: "Statuts - Just' Statuts",
|
|
3427
3426
|
isComptable: true,
|
|
3428
3427
|
isJuridique: true,
|
|
3429
3428
|
isSocial: false,
|
|
@@ -3442,7 +3441,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3442
3441
|
},
|
|
3443
3442
|
STATUTS_OPTION_1: {
|
|
3444
3443
|
id: PrestationType.STATUTS_OPTION_1,
|
|
3445
|
-
name:
|
|
3444
|
+
name: "Statuts - Just' Création",
|
|
3446
3445
|
isComptable: true,
|
|
3447
3446
|
isJuridique: true,
|
|
3448
3447
|
isSocial: false,
|
|
@@ -3461,7 +3460,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3461
3460
|
},
|
|
3462
3461
|
STATUTS_OPTION_2: {
|
|
3463
3462
|
id: PrestationType.STATUTS_OPTION_2,
|
|
3464
|
-
name:
|
|
3463
|
+
name: "Statuts - Full'Créa",
|
|
3465
3464
|
isComptable: true,
|
|
3466
3465
|
isJuridique: true,
|
|
3467
3466
|
isSocial: false,
|
|
@@ -3901,42 +3900,6 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3901
3900
|
},
|
|
3902
3901
|
};
|
|
3903
3902
|
|
|
3904
|
-
export interface PrestationPermissionsType {
|
|
3905
|
-
id: PrestationType;
|
|
3906
|
-
permissions: Array<keyof IPermission>;
|
|
3907
|
-
}
|
|
3908
|
-
|
|
3909
|
-
export const PrestationPermissions: PrestationPermissionsType[] = [
|
|
3910
|
-
{
|
|
3911
|
-
id: PrestationType.EXPERTISE,
|
|
3912
|
-
permissions: ['gescom', 'compta', 'stats', 'docTreso', 'services', 'tva', 'balanceSheet', 'setting', 'purchase'],
|
|
3913
|
-
},
|
|
3914
|
-
{
|
|
3915
|
-
id: PrestationType.SUPPORT,
|
|
3916
|
-
permissions: ['gescom', 'compta', 'stats', 'docTreso', 'services', 'balanceSheet', 'setting', 'purchase'],
|
|
3917
|
-
},
|
|
3918
|
-
{
|
|
3919
|
-
id: PrestationType.PREMIUM,
|
|
3920
|
-
permissions: ['gescom', 'compta', 'stats', 'docTreso', 'services', 'balanceSheet', 'setting', 'purchase'],
|
|
3921
|
-
},
|
|
3922
|
-
{
|
|
3923
|
-
id: PrestationType.CUSTOM_MADE,
|
|
3924
|
-
permissions: ['gescom', 'compta', 'stats', 'docTreso', 'services', 'balanceSheet', 'setting', 'purchase'],
|
|
3925
|
-
},
|
|
3926
|
-
{
|
|
3927
|
-
id: PrestationType.EI,
|
|
3928
|
-
permissions: ['gescom', 'compta', 'stats', 'docTreso', 'services', 'tva', 'balanceSheet', 'setting', 'purchase'],
|
|
3929
|
-
},
|
|
3930
|
-
{
|
|
3931
|
-
id: PrestationType.MICRO,
|
|
3932
|
-
permissions: ['gescom', 'compta', 'stats', 'docTreso', 'services', 'tva', 'balanceSheet', 'setting', 'purchase'],
|
|
3933
|
-
},
|
|
3934
|
-
{
|
|
3935
|
-
id: PrestationType.GESTION_IMMO,
|
|
3936
|
-
permissions: ['gescom', 'compta', 'stats', 'docTreso', 'services', 'tva', 'balanceSheet', 'setting', 'purchase'],
|
|
3937
|
-
},
|
|
3938
|
-
];
|
|
3939
|
-
|
|
3940
3903
|
export enum PrestationTypeDetail {
|
|
3941
3904
|
SOFTWARE = 'software',
|
|
3942
3905
|
ACCOUNTANCY = 'accountancy',
|
|
@@ -167,13 +167,6 @@ 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
|
-
|
|
177
170
|
export class QueryChecklistUpdate {
|
|
178
171
|
@ApiProperty()
|
|
179
172
|
@IsBoolean()
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ApiProperty
|
|
3
|
-
import { ChecklistDetailValue
|
|
4
|
-
import { IChecklist } from '../../models/IChecklist';
|
|
5
|
-
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
1
|
+
import { IsEnum, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
import { ChecklistDetailValue } from '../../../Enum/ChecklistType';
|
|
6
4
|
|
|
7
5
|
export class UpdateAnswer {
|
|
8
6
|
@ApiProperty()
|
|
@@ -13,42 +11,3 @@ export class UpdateAnswer {
|
|
|
13
11
|
@IsEnum(ChecklistDetailValue)
|
|
14
12
|
value: ChecklistDetailValue;
|
|
15
13
|
}
|
|
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
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsBoolean, IsDate,
|
|
1
|
+
import { IsBoolean, IsDate, 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,7 +22,6 @@ export class CreateFileAndGed {
|
|
|
22
22
|
@ApiPropertyOptional()
|
|
23
23
|
@IsNumber()
|
|
24
24
|
@IsOptional()
|
|
25
|
-
/** @deprecated use TypeFile enum with GedFile.typeFile field */
|
|
26
25
|
idTypeGedFile?: number;
|
|
27
26
|
|
|
28
27
|
@ApiProperty()
|
|
@@ -73,9 +72,4 @@ export class CreateFileAndGed {
|
|
|
73
72
|
@IsBoolean()
|
|
74
73
|
@ToBoolean()
|
|
75
74
|
formatFileName?: boolean | null;
|
|
76
|
-
|
|
77
|
-
@ApiPropertyOptional()
|
|
78
|
-
@IsOptional()
|
|
79
|
-
@IsInt()
|
|
80
|
-
idDocumentRequest?: number | null;
|
|
81
75
|
}
|
|
@@ -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
|
|
3
|
+
import { GedFolder, GedFileType, GedCategory } 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,7 +13,6 @@ export class QueryLibraryFile {
|
|
|
13
13
|
idGedFolder?: GedFolder;
|
|
14
14
|
|
|
15
15
|
@ApiPropertyOptional()
|
|
16
|
-
/** @deprecated use TypeFile enum with GedFile.typeFile field */
|
|
17
16
|
idTypeGedFile?: GedFileType | GedFileType[];
|
|
18
17
|
|
|
19
18
|
@ApiPropertyOptional()
|
|
@@ -37,7 +36,7 @@ export class QueryLibraryFile {
|
|
|
37
36
|
@ApiPropertyOptional()
|
|
38
37
|
@IsNumber()
|
|
39
38
|
@IsOptional()
|
|
40
|
-
typeFile?:
|
|
39
|
+
typeFile?: number;
|
|
41
40
|
|
|
42
41
|
@ApiPropertyOptional()
|
|
43
42
|
@IsBoolean()
|
|
@@ -150,7 +149,6 @@ export class QueryLastFileOfType {
|
|
|
150
149
|
idSociety: number;
|
|
151
150
|
|
|
152
151
|
@ApiProperty()
|
|
153
|
-
/** @deprecated Use TypeFile enum instead with GedFile.typeFile field */
|
|
154
152
|
idTypeGedFile: GedFileType;
|
|
155
153
|
|
|
156
154
|
@ApiPropertyOptional()
|
|
@@ -20,27 +20,17 @@ export class QueryPayments {
|
|
|
20
20
|
@IsOptional()
|
|
21
21
|
@IsString()
|
|
22
22
|
reference?: string;
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
@ApiPropertyOptional()
|
|
25
25
|
@IsOptional()
|
|
26
26
|
@IsString()
|
|
27
27
|
internComment?: string;
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
@ApiPropertyOptional()
|
|
30
30
|
@IsOptional()
|
|
31
31
|
@IsInt()
|
|
32
32
|
idFile?: number;
|
|
33
|
-
|
|
34
|
-
@ApiPropertyOptional()
|
|
35
|
-
@IsOptional()
|
|
36
|
-
@IsInt()
|
|
37
|
-
idExercice?: number;
|
|
38
|
-
|
|
39
|
-
@ApiPropertyOptional()
|
|
40
|
-
@IsOptional()
|
|
41
|
-
@IsInt()
|
|
42
|
-
idPrestation?: number;
|
|
43
|
-
|
|
33
|
+
|
|
44
34
|
@ApiPropertyOptional()
|
|
45
35
|
@IsOptional()
|
|
46
36
|
@IsBoolean()
|
|
@@ -7,7 +7,7 @@ export class QueryGetPaymentExpectation {
|
|
|
7
7
|
@IsOptional()
|
|
8
8
|
@IsInt()
|
|
9
9
|
idPrestation?: number;
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
@ApiPropertyOptional()
|
|
12
12
|
@IsOptional()
|
|
13
13
|
@IsString()
|
|
@@ -15,8 +15,8 @@ export class QueryGetPaymentExpectation {
|
|
|
15
15
|
|
|
16
16
|
@ApiPropertyOptional()
|
|
17
17
|
@IsOptional()
|
|
18
|
-
@IsString({
|
|
19
|
-
@IsIn(['society', 'owner'
|
|
18
|
+
@IsString({each: true})
|
|
19
|
+
@IsIn(['society', 'owner'], { each: true })
|
|
20
20
|
includes?: string[];
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IFile
|
|
1
|
+
import { IFile } from '../../..';
|
|
2
2
|
|
|
3
3
|
export type UnpaidDetail = {
|
|
4
4
|
datePayment: Date;
|
|
@@ -20,10 +20,6 @@ export type ReadAskOrRequiredDocuments = {
|
|
|
20
20
|
name: string;
|
|
21
21
|
status: string;
|
|
22
22
|
idGedFolder: number;
|
|
23
|
-
idGedFileType
|
|
24
|
-
|
|
25
|
-
idDocumentRequest?: number;
|
|
26
|
-
idExercice?: number;
|
|
27
|
-
idBalanceSheet?: number;
|
|
28
|
-
idBankAccount?: number;
|
|
23
|
+
idGedFileType: number;
|
|
24
|
+
fileType: number;
|
|
29
25
|
};
|
|
@@ -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
|
}
|
|
@@ -8,21 +8,18 @@ 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';
|
|
13
11
|
|
|
14
12
|
// gedFile
|
|
15
13
|
export interface IGedFile {
|
|
16
14
|
id?: number;
|
|
17
15
|
emissionDate?: Date | null;
|
|
18
16
|
statutFile?: number | null;
|
|
19
|
-
/** @deprecated Use typeFile field instead with TypeFile enum */
|
|
20
17
|
idTypeGedFile?: number | null;
|
|
21
18
|
idUser?: number | null;
|
|
22
19
|
idGedFolder: number;
|
|
23
20
|
idSociety: number;
|
|
24
21
|
idFile: number;
|
|
25
|
-
typeFile?:
|
|
22
|
+
typeFile?: number | null;
|
|
26
23
|
startDate?: Date | null;
|
|
27
24
|
endDate?: Date | null;
|
|
28
25
|
idExercice?: number | null;
|
|
@@ -30,7 +27,6 @@ export interface IGedFile {
|
|
|
30
27
|
idUserBP?: number | null; // Attention: lorsqu'on ajoute un fichier dans la modale "Documents manquants", on stock ici l'idUser associé au BP
|
|
31
28
|
idBusinessPartner?: number | null;
|
|
32
29
|
idBankAccount?: number | null;
|
|
33
|
-
idDocumentRequest?: number | null;
|
|
34
30
|
createdAt?: Date | null;
|
|
35
31
|
updatedAt?: Date | null;
|
|
36
32
|
|
|
@@ -46,5 +42,4 @@ export interface IGedFile {
|
|
|
46
42
|
userBP?: IUser;
|
|
47
43
|
customerSignature?: ICustomerSignature;
|
|
48
44
|
bankAccount?: IBankAccount;
|
|
49
|
-
documentRequest?: IDocumentRequest;
|
|
50
45
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -324,7 +324,6 @@ 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';
|
|
328
327
|
|
|
329
328
|
// Schemas
|
|
330
329
|
export * from './Interface/schemas/IRegistrationDetail';
|
|
@@ -1136,8 +1135,6 @@ export * from './Interface/api/absenceRequest/CreateAbsenceRequest';
|
|
|
1136
1135
|
export * from './Interface/api/absenceRequest/ReadAbsenceRequest';
|
|
1137
1136
|
export * from './Interface/api/recurrence/Query';
|
|
1138
1137
|
export * from './Interface/api/recurrence/Read';
|
|
1139
|
-
export * from './Interface/api/documentRequest/Query';
|
|
1140
|
-
export * from './Interface/api/documentRequest/Create';
|
|
1141
1138
|
|
|
1142
1139
|
// Enums types
|
|
1143
1140
|
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
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
import { CreateDocumentRequest, IDocumentRequest, QueryDocumentRequest } from '../../types';
|
|
3
|
-
export declare class DocumentRequest extends Resource {
|
|
4
|
-
create(body: CreateDocumentRequest): Promise<IDocumentRequest>;
|
|
5
|
-
getAllBySociety(idSociety: number, query?: QueryDocumentRequest, signal?: AbortSignal): Promise<IDocumentRequest[]>;
|
|
6
|
-
getPendingBySociety(idSociety: number, query?: QueryDocumentRequest, signal?: AbortSignal): Promise<IDocumentRequest[]>;
|
|
7
|
-
getById(id: number, signal?: AbortSignal): Promise<IDocumentRequest>;
|
|
8
|
-
delete(id: number): Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=DocumentRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentRequest.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/DocumentRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE5F,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C,MAAM,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAI9D,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,oBAAoB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAOnH,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,oBAAoB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAOvH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAMpE,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGlC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DocumentRequest = void 0;
|
|
4
|
-
const Resource_1 = require("../Resource");
|
|
5
|
-
class DocumentRequest extends Resource_1.Resource {
|
|
6
|
-
create(body) {
|
|
7
|
-
return this.axios.$post('/documents-requests', body);
|
|
8
|
-
}
|
|
9
|
-
getAllBySociety(idSociety, query, signal) {
|
|
10
|
-
return this.axios.$get(`/documents-requests/society/${idSociety}`, Object.assign(Object.assign({}, signal && { signal }), query && { params: query }));
|
|
11
|
-
}
|
|
12
|
-
getPendingBySociety(idSociety, query, signal) {
|
|
13
|
-
return this.axios.$get(`/documents-requests/pending/${idSociety}`, Object.assign(Object.assign({}, signal && { signal }), query && { params: query }));
|
|
14
|
-
}
|
|
15
|
-
getById(id, signal) {
|
|
16
|
-
return this.axios.$get(`/documents-requests/${id}`, Object.assign({}, signal && { signal }));
|
|
17
|
-
}
|
|
18
|
-
delete(id) {
|
|
19
|
-
return this.axios.$delete(`/documents-requests/${id}`);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.DocumentRequest = DocumentRequest;
|
|
23
|
-
//# sourceMappingURL=DocumentRequest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentRequest.js","sourceRoot":"","sources":["../../../../ts/api/resources/DocumentRequest.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,eAAgB,SAAQ,mBAAQ;IAC3C,MAAM,CAAC,IAA2B;QAChC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,qBAAqB,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;IAED,eAAe,CAAC,SAAiB,EAAE,KAA4B,EAAE,MAAoB;QACnF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,+BAA+B,SAAS,EAAE,kCAC5D,MAAM,IAAI,EAAE,MAAM,EAAE,GACpB,KAAK,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAC7B,CAAC;IACL,CAAC;IAED,mBAAmB,CAAC,SAAiB,EAAE,KAA4B,EAAE,MAAoB;QACvF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,+BAA+B,SAAS,EAAE,kCAC5D,MAAM,IAAI,EAAE,MAAM,EAAE,GACpB,KAAK,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAC7B,CAAC;IACL,CAAC;IAED,OAAO,CAAC,EAAU,EAAE,MAAoB;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,oBAC7C,MAAM,IAAI,EAAE,MAAM,EAAE,EACvB,CAAC;IACL,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC;CACF;AA5BD,0CA4BC","sourcesContent":["import { Resource } from '../Resource';\nimport { CreateDocumentRequest, IDocumentRequest, QueryDocumentRequest } from '../../types';\n\nexport class DocumentRequest extends Resource {\n create(body: CreateDocumentRequest): Promise<IDocumentRequest> {\n return this.axios.$post('/documents-requests', body);\n }\n\n getAllBySociety(idSociety: number, query?: QueryDocumentRequest, signal?: AbortSignal): Promise<IDocumentRequest[]> {\n return this.axios.$get(`/documents-requests/society/${idSociety}`, {\n ...signal && { signal },\n ...query && { params: query },\n });\n }\n\n getPendingBySociety(idSociety: number, query?: QueryDocumentRequest, signal?: AbortSignal): Promise<IDocumentRequest[]> {\n return this.axios.$get(`/documents-requests/pending/${idSociety}`, {\n ...signal && { signal },\n ...query && { params: query },\n });\n }\n\n getById(id: number, signal?: AbortSignal): Promise<IDocumentRequest> {\n return this.axios.$get(`/documents-requests/${id}`, {\n ...signal && { signal },\n });\n }\n\n delete(id: number): Promise<void> {\n return this.axios.$delete(`/documents-requests/${id}`);\n }\n}\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IDocumentRequest } from '../../models/IDocumentRequest';
|
|
2
|
-
import { TypeFile } from '../../../Enum/Ged';
|
|
3
|
-
export declare class CreateDocumentRequest implements Omit<IDocumentRequest, 'id' | 'idRequestedBy'> {
|
|
4
|
-
idSociety: number;
|
|
5
|
-
typeFile: TypeFile;
|
|
6
|
-
idExercice?: number;
|
|
7
|
-
idBalanceSheet?: number;
|
|
8
|
-
comment?: string;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=Create.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/documentRequest/Create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,qBAAa,qBAAsB,YAAW,IAAI,CAAC,gBAAgB,EAAE,IAAI,GAAG,eAAe,CAAC;IAG1F,SAAS,EAAE,MAAM,CAAC;IAIlB,QAAQ,EAAE,QAAQ,CAAC;IAKnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAIxB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreateDocumentRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const utils_1 = require("../../../../utils");
|
|
15
|
-
const Ged_1 = require("../../../Enum/Ged");
|
|
16
|
-
class CreateDocumentRequest {
|
|
17
|
-
}
|
|
18
|
-
exports.CreateDocumentRequest = CreateDocumentRequest;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, utils_1.ApiProperty)(),
|
|
21
|
-
(0, class_validator_1.IsInt)(),
|
|
22
|
-
__metadata("design:type", Number)
|
|
23
|
-
], CreateDocumentRequest.prototype, "idSociety", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, utils_1.ApiProperty)(),
|
|
26
|
-
(0, class_validator_1.IsEnum)(Ged_1.TypeFile),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], CreateDocumentRequest.prototype, "typeFile", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
31
|
-
(0, class_validator_1.IsOptional)(),
|
|
32
|
-
(0, class_validator_1.IsInt)(),
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], CreateDocumentRequest.prototype, "idExercice", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
37
|
-
(0, class_validator_1.IsOptional)(),
|
|
38
|
-
(0, class_validator_1.IsInt)(),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], CreateDocumentRequest.prototype, "idBalanceSheet", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
43
|
-
(0, class_validator_1.IsOptional)(),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], CreateDocumentRequest.prototype, "comment", void 0);
|
|
46
|
-
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/documentRequest/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4D;AAC5D,6CAAqE;AAErE,2CAA6C;AAE7C,MAAa,qBAAqB;CAsBjC;AAtBD,sDAsBC;AAnBC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;wDACU;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,EAAC,cAAQ,CAAC;;uDACE;AAKnB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;yDACY;AAKpB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;6DACgB;AAIxB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;sDACI","sourcesContent":["import { IsEnum, IsInt, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { IDocumentRequest } from '../../models/IDocumentRequest';\nimport { TypeFile } from '../../../Enum/Ged';\n\nexport class CreateDocumentRequest implements Omit<IDocumentRequest, 'id' | 'idRequestedBy'> {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsEnum(TypeFile)\n typeFile: TypeFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idBalanceSheet?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n comment?: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/documentRequest/Query.ts"],"names":[],"mappings":"AAGA,qBAAa,oBAAoB;IAI/B,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.QueryDocumentRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const utils_1 = require("../../../../utils");
|
|
15
|
-
class QueryDocumentRequest {
|
|
16
|
-
}
|
|
17
|
-
exports.QueryDocumentRequest = QueryDocumentRequest;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
20
|
-
(0, class_validator_1.IsOptional)(),
|
|
21
|
-
(0, class_validator_1.IsInt)(),
|
|
22
|
-
__metadata("design:type", Number)
|
|
23
|
-
], QueryDocumentRequest.prototype, "idExercice", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
26
|
-
(0, class_validator_1.IsOptional)(),
|
|
27
|
-
(0, class_validator_1.IsInt)(),
|
|
28
|
-
__metadata("design:type", Number)
|
|
29
|
-
], QueryDocumentRequest.prototype, "idBalanceSheet", void 0);
|
|
30
|
-
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/documentRequest/Query.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoD;AACpD,6CAAwD;AAExD,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AANC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;wDACY;AAKpB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;4DACgB","sourcesContent":["import { IsInt, IsOptional } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryDocumentRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idBalanceSheet?: number;\n}\n"]}
|