@silexpert/core 1.3.130 → 1.3.131-2
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/Mfa.d.ts +16 -0
- package/dist/cjs/api/resources/Mfa.d.ts.map +1 -0
- package/dist/cjs/api/resources/Mfa.js +23 -0
- package/dist/cjs/api/resources/Mfa.js.map +1 -0
- package/dist/cjs/api/resources.d.ts +2 -2
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -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.js +15 -15
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/ZoneCode.d.ts +0 -6
- package/dist/cjs/types/Enum/ZoneCode.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ZoneCode.js +0 -7
- package/dist/cjs/types/Enum/ZoneCode.js.map +1 -1
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +7 -0
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.js +3 -0
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.js.map +1 -0
- 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/mfa/DisableMfa.dto.d.ts +4 -0
- package/dist/cjs/types/Interface/api/mfa/DisableMfa.dto.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/mfa/DisableMfa.dto.js +21 -0
- package/dist/cjs/types/Interface/api/mfa/DisableMfa.dto.js.map +1 -0
- package/dist/cjs/types/Interface/api/mfa/SetupInit.dto.d.ts +5 -0
- package/dist/cjs/types/Interface/api/mfa/SetupInit.dto.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/{documentRequest/Query.js → mfa/SetupInit.dto.js} +9 -14
- package/dist/cjs/types/Interface/api/mfa/SetupInit.dto.js.map +1 -0
- package/dist/cjs/types/Interface/api/mfa/SetupVerify.dto.d.ts +5 -0
- package/dist/cjs/types/Interface/api/mfa/SetupVerify.dto.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/mfa/SetupVerify.dto.js +25 -0
- package/dist/cjs/types/Interface/api/mfa/SetupVerify.dto.js.map +1 -0
- package/dist/cjs/types/Interface/api/mfa/VerifyCode.dto.d.ts +5 -0
- package/dist/cjs/types/Interface/api/mfa/VerifyCode.dto.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/mfa/VerifyCode.dto.js +26 -0
- package/dist/cjs/types/Interface/api/mfa/VerifyCode.dto.js.map +1 -0
- package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.d.ts +5 -0
- package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.js +26 -0
- package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.js.map +1 -0
- package/dist/cjs/types/Interface/api/mfa/mfa.d.ts +19 -0
- package/dist/cjs/types/Interface/api/mfa/mfa.d.ts.map +1 -0
- package/dist/cjs/types/Interface/{models/IDocumentRequest.js → api/mfa/mfa.js} +1 -1
- package/dist/cjs/types/Interface/api/mfa/mfa.js.map +1 -0
- 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/IUser.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUserMfa.d.ts +12 -0
- package/dist/cjs/types/Interface/models/IUserMfa.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IUserMfa.js +3 -0
- package/dist/cjs/types/Interface/models/IUserMfa.js.map +1 -0
- package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.d.ts +9 -0
- package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.js +3 -0
- package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.js.map +1 -0
- package/dist/cjs/types/index.d.ts +1 -3
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -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/Mfa.d.ts +16 -0
- package/dist/mjs/api/resources/Mfa.d.ts.map +1 -0
- package/dist/mjs/api/resources/Mfa.js +19 -0
- package/dist/mjs/api/resources/Mfa.js.map +1 -0
- package/dist/mjs/api/resources.d.ts +2 -2
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -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.js +15 -15
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/ZoneCode.d.ts +0 -6
- package/dist/mjs/types/Enum/ZoneCode.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ZoneCode.js +0 -7
- package/dist/mjs/types/Enum/ZoneCode.js.map +1 -1
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +7 -0
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js +2 -0
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js.map +1 -0
- 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/mfa/DisableMfa.dto.d.ts +4 -0
- package/dist/mjs/types/Interface/api/mfa/DisableMfa.dto.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/mfa/DisableMfa.dto.js +18 -0
- package/dist/mjs/types/Interface/api/mfa/DisableMfa.dto.js.map +1 -0
- package/dist/mjs/types/Interface/api/mfa/SetupInit.dto.d.ts +5 -0
- package/dist/mjs/types/Interface/api/mfa/SetupInit.dto.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/{documentRequest/Query.js → mfa/SetupInit.dto.js} +10 -15
- package/dist/mjs/types/Interface/api/mfa/SetupInit.dto.js.map +1 -0
- package/dist/mjs/types/Interface/api/mfa/SetupVerify.dto.d.ts +5 -0
- package/dist/mjs/types/Interface/api/mfa/SetupVerify.dto.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/mfa/SetupVerify.dto.js +23 -0
- package/dist/mjs/types/Interface/api/mfa/SetupVerify.dto.js.map +1 -0
- package/dist/mjs/types/Interface/api/mfa/VerifyCode.dto.d.ts +5 -0
- package/dist/mjs/types/Interface/api/mfa/VerifyCode.dto.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/mfa/VerifyCode.dto.js +24 -0
- package/dist/mjs/types/Interface/api/mfa/VerifyCode.dto.js.map +1 -0
- package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.d.ts +5 -0
- package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.js +24 -0
- package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.js.map +1 -0
- package/dist/mjs/types/Interface/api/mfa/mfa.d.ts +19 -0
- package/dist/mjs/types/Interface/api/mfa/mfa.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/mfa/mfa.js +2 -0
- package/dist/mjs/types/Interface/api/mfa/mfa.js.map +1 -0
- 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/IUser.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUserMfa.d.ts +12 -0
- package/dist/mjs/types/Interface/models/IUserMfa.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IUserMfa.js +2 -0
- package/dist/mjs/types/Interface/models/IUserMfa.js.map +1 -0
- package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.d.ts +9 -0
- package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.js +2 -0
- package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.js.map +1 -0
- package/dist/mjs/types/index.d.ts +1 -3
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -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/Mfa.ts +24 -0
- package/ts/api/resources.ts +2 -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 -15
- package/ts/types/Enum/ZoneCode.ts +0 -7
- package/ts/types/Interface/api/authentification/AuthenticationResponse.ts +6 -0
- 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/mfa/DisableMfa.dto.ts +6 -0
- package/ts/types/Interface/api/mfa/SetupInit.dto.ts +9 -0
- package/ts/types/Interface/api/mfa/SetupVerify.dto.ts +9 -0
- package/ts/types/Interface/api/mfa/VerifyCode.dto.ts +10 -0
- package/ts/types/Interface/api/mfa/VerifyRecoveryCode.dto.ts +10 -0
- package/ts/types/Interface/api/mfa/mfa.ts +21 -0
- package/ts/types/Interface/api/mfa/setupInit +0 -0
- 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/IUser.ts +1 -0
- package/ts/types/Interface/models/IUserMfa.ts +11 -0
- package/ts/types/Interface/models/IUserMfaRecoveryCode.ts +8 -0
- package/ts/types/index.ts +1 -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.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.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.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 +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 +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"]}
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
export interface IDocumentRequest {
|
|
9
|
-
id: number;
|
|
10
|
-
idSociety: number;
|
|
11
|
-
idExercice?: number | null;
|
|
12
|
-
idBalanceSheet?: number | null;
|
|
13
|
-
idRequestedBy: number;
|
|
14
|
-
typeFile: TypeFile;
|
|
15
|
-
comment?: string | null;
|
|
16
|
-
society?: ISociety;
|
|
17
|
-
exercice?: IExercice;
|
|
18
|
-
balanceSheet?: IBalanceSheet;
|
|
19
|
-
requestedBy?: IUser;
|
|
20
|
-
gedFiles?: IGedFile[];
|
|
21
|
-
files?: IFile[];
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=IDocumentRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IDocumentRequest.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IDocumentRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IDocumentRequest.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IDocumentRequest.ts"],"names":[],"mappings":"","sourcesContent":["import { TypeFile } from '../../Enum/Ged';\nimport { ISociety } from './ISociety';\nimport { IExercice } from './IExercice';\nimport { IBalanceSheet } from './IBalanceSheet';\nimport { IUser } from './IUser';\nimport { IFile } from './IFile';\nimport { IGedFile } from './IGedFile';\n\nexport interface IDocumentRequest {\n id: number;\n idSociety: number;\n idExercice?: number | null;\n idBalanceSheet?: number | null;\n idRequestedBy: number;\n typeFile: TypeFile;\n comment?: string | null;\n\n // Associations\n society?: ISociety;\n exercice?: IExercice;\n balanceSheet?: IBalanceSheet;\n requestedBy?: IUser;\n gedFiles?: IGedFile[];\n files?: IFile[];\n}"]}
|
|
@@ -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,27 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
export class DocumentRequest extends Resource {
|
|
3
|
-
create(body) {
|
|
4
|
-
return this.axios.$post('/documents-requests', body);
|
|
5
|
-
}
|
|
6
|
-
getAllBySociety(idSociety, query, signal) {
|
|
7
|
-
return this.axios.$get(`/documents-requests/society/${idSociety}`, {
|
|
8
|
-
...signal && { signal },
|
|
9
|
-
...query && { params: query },
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
getPendingBySociety(idSociety, query, signal) {
|
|
13
|
-
return this.axios.$get(`/documents-requests/pending/${idSociety}`, {
|
|
14
|
-
...signal && { signal },
|
|
15
|
-
...query && { params: query },
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
getById(id, signal) {
|
|
19
|
-
return this.axios.$get(`/documents-requests/${id}`, {
|
|
20
|
-
...signal && { signal },
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
delete(id) {
|
|
24
|
-
return this.axios.$delete(`/documents-requests/${id}`);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=DocumentRequest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentRequest.js","sourceRoot":"","sources":["../../../../ts/api/resources/DocumentRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;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,EAAE;YACjE,GAAG,MAAM,IAAI,EAAE,MAAM,EAAE;YACvB,GAAG,KAAK,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,mBAAmB,CAAC,SAAiB,EAAE,KAA4B,EAAE,MAAoB;QACvF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,+BAA+B,SAAS,EAAE,EAAE;YACjE,GAAG,MAAM,IAAI,EAAE,MAAM,EAAE;YACvB,GAAG,KAAK,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,OAAO,CAAC,EAAU,EAAE,MAAoB;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,EAAE;YAClD,GAAG,MAAM,IAAI,EAAE,MAAM,EAAE;SACxB,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC;CACF","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,47 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
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;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { IsEnum, IsInt, IsOptional } from 'class-validator';
|
|
11
|
-
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
12
|
-
import { TypeFile } from '../../../Enum/Ged';
|
|
13
|
-
export class CreateDocumentRequest {
|
|
14
|
-
idSociety;
|
|
15
|
-
typeFile;
|
|
16
|
-
idExercice;
|
|
17
|
-
idBalanceSheet;
|
|
18
|
-
comment;
|
|
19
|
-
}
|
|
20
|
-
__decorate([
|
|
21
|
-
ApiProperty(),
|
|
22
|
-
IsInt(),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], CreateDocumentRequest.prototype, "idSociety", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
ApiProperty(),
|
|
27
|
-
IsEnum(TypeFile),
|
|
28
|
-
__metadata("design:type", Number)
|
|
29
|
-
], CreateDocumentRequest.prototype, "typeFile", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
ApiPropertyOptional(),
|
|
32
|
-
IsOptional(),
|
|
33
|
-
IsInt(),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], CreateDocumentRequest.prototype, "idExercice", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
ApiPropertyOptional(),
|
|
38
|
-
IsOptional(),
|
|
39
|
-
IsInt(),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], CreateDocumentRequest.prototype, "idBalanceSheet", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
ApiPropertyOptional(),
|
|
44
|
-
IsOptional(),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], CreateDocumentRequest.prototype, "comment", void 0);
|
|
47
|
-
//# 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,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,MAAM,OAAO,qBAAqB;IAGhC,SAAS,CAAS;IAIlB,QAAQ,CAAW;IAKnB,UAAU,CAAU;IAKpB,cAAc,CAAU;IAIxB,OAAO,CAAU;CAClB;AAnBC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;wDACU;AAIlB;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,QAAQ,CAAC;;uDACE;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;yDACY;AAKpB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;6DACgB;AAIxB;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/documentRequest/Query.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,OAAO,oBAAoB;IAI/B,UAAU,CAAU;IAKpB,cAAc,CAAU;CACzB;AANC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;wDACY;AAKpB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;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"]}
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
export interface IDocumentRequest {
|
|
9
|
-
id: number;
|
|
10
|
-
idSociety: number;
|
|
11
|
-
idExercice?: number | null;
|
|
12
|
-
idBalanceSheet?: number | null;
|
|
13
|
-
idRequestedBy: number;
|
|
14
|
-
typeFile: TypeFile;
|
|
15
|
-
comment?: string | null;
|
|
16
|
-
society?: ISociety;
|
|
17
|
-
exercice?: IExercice;
|
|
18
|
-
balanceSheet?: IBalanceSheet;
|
|
19
|
-
requestedBy?: IUser;
|
|
20
|
-
gedFiles?: IGedFile[];
|
|
21
|
-
files?: IFile[];
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=IDocumentRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IDocumentRequest.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IDocumentRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IDocumentRequest.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IDocumentRequest.ts"],"names":[],"mappings":"","sourcesContent":["import { TypeFile } from '../../Enum/Ged';\nimport { ISociety } from './ISociety';\nimport { IExercice } from './IExercice';\nimport { IBalanceSheet } from './IBalanceSheet';\nimport { IUser } from './IUser';\nimport { IFile } from './IFile';\nimport { IGedFile } from './IGedFile';\n\nexport interface IDocumentRequest {\n id: number;\n idSociety: number;\n idExercice?: number | null;\n idBalanceSheet?: number | null;\n idRequestedBy: number;\n typeFile: TypeFile;\n comment?: string | null;\n\n // Associations\n society?: ISociety;\n exercice?: IExercice;\n balanceSheet?: IBalanceSheet;\n requestedBy?: IUser;\n gedFiles?: IGedFile[];\n files?: IFile[];\n}"]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
import { CreateDocumentRequest, IDocumentRequest, QueryDocumentRequest } from '../../types';
|
|
3
|
-
|
|
4
|
-
export class DocumentRequest extends Resource {
|
|
5
|
-
create(body: CreateDocumentRequest): Promise<IDocumentRequest> {
|
|
6
|
-
return this.axios.$post('/documents-requests', body);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
getAllBySociety(idSociety: number, query?: QueryDocumentRequest, signal?: AbortSignal): Promise<IDocumentRequest[]> {
|
|
10
|
-
return this.axios.$get(`/documents-requests/society/${idSociety}`, {
|
|
11
|
-
...signal && { signal },
|
|
12
|
-
...query && { params: query },
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
getPendingBySociety(idSociety: number, query?: QueryDocumentRequest, signal?: AbortSignal): Promise<IDocumentRequest[]> {
|
|
17
|
-
return this.axios.$get(`/documents-requests/pending/${idSociety}`, {
|
|
18
|
-
...signal && { signal },
|
|
19
|
-
...query && { params: query },
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
getById(id: number, signal?: AbortSignal): Promise<IDocumentRequest> {
|
|
24
|
-
return this.axios.$get(`/documents-requests/${id}`, {
|
|
25
|
-
...signal && { signal },
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
delete(id: number): Promise<void> {
|
|
30
|
-
return this.axios.$delete(`/documents-requests/${id}`);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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,25 +0,0 @@
|
|
|
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
|
-
}
|