@silexpert/core 1.3.172 → 1.3.174
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/DocumentRequest.d.ts +2 -1
- package/dist/cjs/api/resources/DocumentRequest.d.ts.map +1 -1
- package/dist/cjs/api/resources/DocumentRequest.js +3 -0
- package/dist/cjs/api/resources/DocumentRequest.js.map +1 -1
- package/dist/cjs/api/resources/InformationRequest.d.ts +11 -0
- package/dist/cjs/api/resources/InformationRequest.d.ts.map +1 -0
- package/dist/cjs/api/resources/InformationRequest.js +26 -0
- package/dist/cjs/api/resources/InformationRequest.js.map +1 -0
- package/dist/cjs/api/resources/Revenue.d.ts +9 -0
- package/dist/cjs/api/resources/Revenue.d.ts.map +1 -1
- package/dist/cjs/api/resources/Revenue.js +11 -0
- package/dist/cjs/api/resources/Revenue.js.map +1 -1
- 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/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.js +6 -6
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetModule.d.ts +2 -0
- package/dist/cjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetModule.js +23 -1
- package/dist/cjs/types/Enum/BalanceSheetModule.js.map +1 -1
- package/dist/cjs/types/Enum/DepositDocumentType.js +1 -1
- package/dist/cjs/types/Enum/DepositDocumentType.js.map +1 -1
- package/dist/cjs/types/Enum/Ged.d.ts +17 -3
- package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +132 -1
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/InformationRequestState.d.ts +6 -0
- package/dist/cjs/types/Enum/InformationRequestState.d.ts.map +1 -0
- package/dist/cjs/types/Enum/InformationRequestState.js +10 -0
- package/dist/cjs/types/Enum/InformationRequestState.js.map +1 -0
- package/dist/cjs/types/Enum/InformationRequestType.d.ts +17 -0
- package/dist/cjs/types/Enum/InformationRequestType.d.ts.map +1 -0
- package/dist/cjs/types/Enum/InformationRequestType.js +44 -0
- package/dist/cjs/types/Enum/InformationRequestType.js.map +1 -0
- package/dist/cjs/types/Enum/LetterType.js +2 -2
- package/dist/cjs/types/Enum/LetterType.js.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +2 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.js +6 -0
- package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/cjs/types/Enum/Revenue.d.ts +3 -1
- package/dist/cjs/types/Enum/Revenue.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Revenue.js +2 -0
- package/dist/cjs/types/Enum/Revenue.js.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts +1 -0
- package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Create.js +8 -0
- package/dist/cjs/types/Interface/api/documentRequest/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts +3 -0
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.js +12 -0
- package/dist/cjs/types/Interface/api/documentRequest/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts +12 -0
- package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/documentRequest/Update.js +63 -0
- package/dist/cjs/types/Interface/api/documentRequest/Update.js.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts +10 -0
- package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Create.js +49 -0
- package/dist/cjs/types/Interface/api/informationRequest/Create.js.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts +11 -0
- package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Query.js +54 -0
- package/dist/cjs/types/Interface/api/informationRequest/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts +12 -0
- package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Update.js +58 -0
- package/dist/cjs/types/Interface/api/informationRequest/Update.js.map +1 -0
- package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts +4 -0
- package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts +7 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.js.map +1 -1
- package/dist/cjs/types/Interface/models/IInformationRequest.d.ts +25 -0
- package/dist/cjs/types/Interface/models/IInformationRequest.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IInformationRequest.js +3 -0
- package/dist/cjs/types/Interface/models/IInformationRequest.js.map +1 -0
- package/dist/cjs/types/index.d.ts +7 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +7 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/DocumentRequest.d.ts +2 -1
- package/dist/mjs/api/resources/DocumentRequest.d.ts.map +1 -1
- package/dist/mjs/api/resources/DocumentRequest.js +3 -0
- package/dist/mjs/api/resources/DocumentRequest.js.map +1 -1
- package/dist/mjs/api/resources/InformationRequest.d.ts +11 -0
- package/dist/mjs/api/resources/InformationRequest.d.ts.map +1 -0
- package/dist/mjs/api/resources/InformationRequest.js +30 -0
- package/dist/mjs/api/resources/InformationRequest.js.map +1 -0
- package/dist/mjs/api/resources/Revenue.d.ts +9 -0
- package/dist/mjs/api/resources/Revenue.d.ts.map +1 -1
- package/dist/mjs/api/resources/Revenue.js +11 -0
- package/dist/mjs/api/resources/Revenue.js.map +1 -1
- 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/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.js +6 -6
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetModule.d.ts +2 -0
- package/dist/mjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetModule.js +22 -0
- package/dist/mjs/types/Enum/BalanceSheetModule.js.map +1 -1
- package/dist/mjs/types/Enum/DepositDocumentType.js +1 -1
- package/dist/mjs/types/Enum/DepositDocumentType.js.map +1 -1
- package/dist/mjs/types/Enum/Ged.d.ts +17 -3
- package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +132 -1
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/InformationRequestState.d.ts +6 -0
- package/dist/mjs/types/Enum/InformationRequestState.d.ts.map +1 -0
- package/dist/mjs/types/Enum/InformationRequestState.js +7 -0
- package/dist/mjs/types/Enum/InformationRequestState.js.map +1 -0
- package/dist/mjs/types/Enum/InformationRequestType.d.ts +17 -0
- package/dist/mjs/types/Enum/InformationRequestType.d.ts.map +1 -0
- package/dist/mjs/types/Enum/InformationRequestType.js +41 -0
- package/dist/mjs/types/Enum/InformationRequestType.js.map +1 -0
- package/dist/mjs/types/Enum/LetterType.js +2 -2
- package/dist/mjs/types/Enum/LetterType.js.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +2 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.js +6 -0
- package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/mjs/types/Enum/Revenue.d.ts +3 -1
- package/dist/mjs/types/Enum/Revenue.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Revenue.js +2 -0
- package/dist/mjs/types/Enum/Revenue.js.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts +1 -0
- package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.js +10 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts +3 -0
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.js +15 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts +12 -0
- package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/documentRequest/Update.js +66 -0
- package/dist/mjs/types/Interface/api/documentRequest/Update.js.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts +10 -0
- package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Create.js +50 -0
- package/dist/mjs/types/Interface/api/informationRequest/Create.js.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts +11 -0
- package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Query.js +56 -0
- package/dist/mjs/types/Interface/api/informationRequest/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts +12 -0
- package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Update.js +60 -0
- package/dist/mjs/types/Interface/api/informationRequest/Update.js.map +1 -0
- package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts +4 -0
- package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts +7 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.js.map +1 -1
- package/dist/mjs/types/Interface/models/IInformationRequest.d.ts +25 -0
- package/dist/mjs/types/Interface/models/IInformationRequest.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IInformationRequest.js +2 -0
- package/dist/mjs/types/Interface/models/IInformationRequest.js.map +1 -0
- package/dist/mjs/types/index.d.ts +7 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +7 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/DocumentRequest.ts +5 -1
- package/ts/api/resources/InformationRequest.ts +36 -0
- package/ts/api/resources/Revenue.ts +12 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/BalanceSheet.ts +11 -11
- package/ts/types/Enum/BalanceSheetModule.ts +24 -1
- package/ts/types/Enum/DepositDocumentType.ts +1 -1
- package/ts/types/Enum/Ged.ts +133 -1
- package/ts/types/Enum/InformationRequestState.ts +5 -0
- package/ts/types/Enum/InformationRequestType.ts +51 -0
- package/ts/types/Enum/LetterType.ts +2 -2
- package/ts/types/Enum/ReasonTerminationType.ts +6 -0
- package/ts/types/Enum/Revenue.ts +3 -0
- package/ts/types/Interface/api/documentRequest/Create.ts +8 -1
- package/ts/types/Interface/api/documentRequest/Query.ts +12 -1
- package/ts/types/Interface/api/documentRequest/Update.ts +43 -0
- package/ts/types/Interface/api/informationRequest/Create.ts +31 -0
- package/ts/types/Interface/api/informationRequest/Query.ts +36 -0
- package/ts/types/Interface/api/informationRequest/Update.ts +39 -0
- package/ts/types/Interface/models/IBalanceSheetModule.ts +7 -1
- package/ts/types/Interface/models/IDocumentRequest.ts +8 -2
- package/ts/types/Interface/models/IInformationRequest.ts +27 -0
- package/ts/types/index.ts +7 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IsBoolean, IsEnum, IsInt, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { IInformationRequest } from '../../models/IInformationRequest';
|
|
4
|
+
import { InformationRequestType } from '../../../Enum/InformationRequestType';
|
|
5
|
+
import { InformationRequestState } from '../../../Enum/InformationRequestState';
|
|
6
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
7
|
+
|
|
8
|
+
export class UpdateInformationRequest implements Partial<Omit<IInformationRequest, 'id'>> {
|
|
9
|
+
@ApiPropertyOptional()
|
|
10
|
+
@IsOptional()
|
|
11
|
+
@IsInt()
|
|
12
|
+
idSociety?: number;
|
|
13
|
+
|
|
14
|
+
@ApiPropertyOptional()
|
|
15
|
+
@IsOptional()
|
|
16
|
+
@IsInt()
|
|
17
|
+
idExercice?: number;
|
|
18
|
+
|
|
19
|
+
@ApiPropertyOptional()
|
|
20
|
+
@IsOptional()
|
|
21
|
+
@IsInt()
|
|
22
|
+
idRequestedBy?: number;
|
|
23
|
+
|
|
24
|
+
@ApiPropertyOptional()
|
|
25
|
+
@IsOptional()
|
|
26
|
+
@IsEnum(InformationRequestType)
|
|
27
|
+
type?: InformationRequestType;
|
|
28
|
+
|
|
29
|
+
@ApiPropertyOptional()
|
|
30
|
+
@IsOptional()
|
|
31
|
+
@IsEnum(InformationRequestState)
|
|
32
|
+
state?: InformationRequestState;
|
|
33
|
+
|
|
34
|
+
@ApiPropertyOptional()
|
|
35
|
+
@IsOptional()
|
|
36
|
+
@IsBoolean()
|
|
37
|
+
@ToBoolean()
|
|
38
|
+
isMandatory?: boolean;
|
|
39
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { IExercice } from './IExercice';
|
|
2
|
+
import { ISociety } from './ISociety';
|
|
3
|
+
|
|
2
4
|
export interface IBalanceSheetModule {
|
|
3
5
|
id?: number;
|
|
4
6
|
inventory: boolean | null;
|
|
@@ -32,4 +34,8 @@ export interface IBalanceSheetModule {
|
|
|
32
34
|
idExercice: number;
|
|
33
35
|
createdAt?: Date | null;
|
|
34
36
|
updatedAt?: Date | null;
|
|
37
|
+
|
|
38
|
+
// Associations
|
|
39
|
+
society?: ISociety;
|
|
40
|
+
exercice?: IExercice;
|
|
35
41
|
}
|
|
@@ -7,13 +7,19 @@ import { IFile } from './IFile';
|
|
|
7
7
|
import { IGedFile } from './IGedFile';
|
|
8
8
|
|
|
9
9
|
export interface IDocumentRequest {
|
|
10
|
-
id
|
|
10
|
+
id?: number;
|
|
11
11
|
idSociety: number;
|
|
12
12
|
idExercice?: number | null;
|
|
13
13
|
idBalanceSheet?: number | null;
|
|
14
|
-
idRequestedBy: number;
|
|
14
|
+
idRequestedBy: number; // IUser who requested the document
|
|
15
15
|
typeFile: TypeFile;
|
|
16
16
|
comment?: string | null;
|
|
17
|
+
isNotConcerned?: boolean; // This can't be null (default false in db)
|
|
18
|
+
isMandatory?: boolean; // If true, client cannot mark this request as not concerned
|
|
19
|
+
notConcernedAt?: Date | null;
|
|
20
|
+
createdAt?: Date | null;
|
|
21
|
+
updatedAt?: Date | null;
|
|
22
|
+
deletedAt?: Date | null;
|
|
17
23
|
|
|
18
24
|
// Associations
|
|
19
25
|
society?: ISociety;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { InformationRequestType } from '../../Enum/InformationRequestType';
|
|
2
|
+
import { InformationRequestState } from '../../Enum/InformationRequestState';
|
|
3
|
+
import { IUser } from './IUser';
|
|
4
|
+
import { ISociety } from './ISociety';
|
|
5
|
+
import { IExercice } from './IExercice';
|
|
6
|
+
import { IBalanceSheet } from './IBalanceSheet';
|
|
7
|
+
|
|
8
|
+
export interface IInformationRequest {
|
|
9
|
+
id?: number;
|
|
10
|
+
idSociety: number;
|
|
11
|
+
idExercice?: number | null;
|
|
12
|
+
idBalanceSheet?: number | null;
|
|
13
|
+
idRequestedBy: number; // IUser who requested the information
|
|
14
|
+
type: InformationRequestType; // Type of information request
|
|
15
|
+
state: InformationRequestState; // State of the request (pending, completed, not concerned)
|
|
16
|
+
isMandatory?: boolean; // If true, client cannot mark this request as not concerned
|
|
17
|
+
answeredAt?: Date | null; // Date when client answered (completed or marked as not concerned)
|
|
18
|
+
createdAt?: Date | null;
|
|
19
|
+
updatedAt?: Date | null;
|
|
20
|
+
deletedAt?: Date | null;
|
|
21
|
+
|
|
22
|
+
// Associations
|
|
23
|
+
society?: ISociety;
|
|
24
|
+
exercice?: IExercice;
|
|
25
|
+
balanceSheet?: IBalanceSheet;
|
|
26
|
+
requestedBy?: IUser;
|
|
27
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -324,6 +324,7 @@ export * from './Interface/models/IAIQuestion';
|
|
|
324
324
|
export * from './Interface/models/IAIConversation';
|
|
325
325
|
export * from './Interface/models/IPaymentAttempt';
|
|
326
326
|
export * from './Interface/models/IDocumentRequest';
|
|
327
|
+
export * from './Interface/models/IInformationRequest';
|
|
327
328
|
export * from './Interface/models/IRevenueMovement';
|
|
328
329
|
export * from './Interface/models/IRevenueSnapshot';
|
|
329
330
|
|
|
@@ -557,6 +558,8 @@ export * from './Enum/TeamType';
|
|
|
557
558
|
export * from './Enum/PartneredAccountantServiceType';
|
|
558
559
|
export * from './Enum/PartneredAccountantServiceTypeId';
|
|
559
560
|
export * from './Enum/PaymentAttempt';
|
|
561
|
+
export * from './Enum/InformationRequestType';
|
|
562
|
+
export * from './Enum/InformationRequestState';
|
|
560
563
|
export * from './Enum/Revenue';
|
|
561
564
|
|
|
562
565
|
// Interfaces API
|
|
@@ -1143,6 +1146,10 @@ export * from './Interface/api/recurrence/Query';
|
|
|
1143
1146
|
export * from './Interface/api/recurrence/Read';
|
|
1144
1147
|
export * from './Interface/api/documentRequest/Query';
|
|
1145
1148
|
export * from './Interface/api/documentRequest/Create';
|
|
1149
|
+
export * from './Interface/api/documentRequest/Update';
|
|
1150
|
+
export * from './Interface/api/informationRequest/Query';
|
|
1151
|
+
export * from './Interface/api/informationRequest/Create';
|
|
1152
|
+
export * from './Interface/api/informationRequest/Update';
|
|
1146
1153
|
export * from './Interface/api/automaticRegistration/Query';
|
|
1147
1154
|
export * from './Interface/api/automaticRegistration/Read';
|
|
1148
1155
|
|