@silexpert/core 1.3.160-3 → 1.3.160
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/GeneralLedger.d.ts +1 -2
- package/dist/cjs/api/resources/GeneralLedger.d.ts.map +1 -1
- package/dist/cjs/api/resources/GeneralLedger.js +0 -9
- package/dist/cjs/api/resources/GeneralLedger.js.map +1 -1
- package/dist/cjs/api/resources/Mfa.d.ts +0 -2
- package/dist/cjs/api/resources/Mfa.d.ts.map +1 -1
- package/dist/cjs/api/resources/Mfa.js +0 -7
- package/dist/cjs/api/resources/Mfa.js.map +1 -1
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +0 -10
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.js.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +0 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +0 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +0 -9
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +1 -30
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
- package/dist/cjs/types/Interface/api/revenueMovement.d.ts +9 -10
- package/dist/cjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revenueMovement.js +0 -272
- package/dist/cjs/types/Interface/api/revenueMovement.js.map +1 -1
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts +1 -0
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js +11 -3
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
- package/dist/cjs/types/Interface/models/IImmobilization.d.ts +0 -1
- package/dist/cjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IImmobilization.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.d.ts +0 -1
- 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/index.d.ts +0 -5
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +0 -5
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/GeneralLedger.d.ts +1 -2
- package/dist/mjs/api/resources/GeneralLedger.d.ts.map +1 -1
- package/dist/mjs/api/resources/GeneralLedger.js +0 -9
- package/dist/mjs/api/resources/GeneralLedger.js.map +1 -1
- package/dist/mjs/api/resources/Mfa.d.ts +0 -2
- package/dist/mjs/api/resources/Mfa.d.ts.map +1 -1
- package/dist/mjs/api/resources/Mfa.js +0 -7
- package/dist/mjs/api/resources/Mfa.js.map +1 -1
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +0 -10
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +0 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +0 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +0 -9
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +1 -34
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
- package/dist/mjs/types/Interface/api/revenueMovement.d.ts +9 -10
- package/dist/mjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revenueMovement.js +1 -303
- package/dist/mjs/types/Interface/api/revenueMovement.js.map +1 -1
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts +1 -0
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js +13 -11
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
- package/dist/mjs/types/Interface/models/IImmobilization.d.ts +0 -1
- package/dist/mjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IImmobilization.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.d.ts +0 -1
- 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/index.d.ts +0 -5
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +0 -5
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/GeneralLedger.ts +0 -11
- package/ts/api/resources/Mfa.ts +0 -10
- package/ts/types/Interface/api/authentification/AuthenticationResponse.ts +0 -10
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts +0 -1
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +0 -1
- package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +1 -26
- package/ts/types/Interface/api/revenueMovement.ts +9 -153
- package/ts/types/Interface/api/revenueSnapshotGenerate.ts +10 -11
- package/ts/types/Interface/models/IImmobilization.ts +0 -1
- package/ts/types/Interface/models/IUser.ts +0 -1
- package/ts/types/index.ts +0 -5
- package/dist/cjs/api/resources/LoginApproval.d.ts +0 -18
- package/dist/cjs/api/resources/LoginApproval.d.ts.map +0 -1
- package/dist/cjs/api/resources/LoginApproval.js +0 -20
- package/dist/cjs/api/resources/LoginApproval.js.map +0 -1
- package/dist/cjs/types/Enum/LoginApprovalStatus.d.ts +0 -14
- package/dist/cjs/types/Enum/LoginApprovalStatus.d.ts.map +0 -1
- package/dist/cjs/types/Enum/LoginApprovalStatus.js +0 -18
- package/dist/cjs/types/Enum/LoginApprovalStatus.js.map +0 -1
- package/dist/cjs/types/Enum/MfaMode.d.ts +0 -12
- package/dist/cjs/types/Enum/MfaMode.d.ts.map +0 -1
- package/dist/cjs/types/Enum/MfaMode.js +0 -16
- package/dist/cjs/types/Enum/MfaMode.js.map +0 -1
- package/dist/cjs/types/Interface/api/authentification/loginApproval.d.ts +0 -65
- package/dist/cjs/types/Interface/api/authentification/loginApproval.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/authentification/loginApproval.js +0 -3
- package/dist/cjs/types/Interface/api/authentification/loginApproval.js.map +0 -1
- package/dist/cjs/types/Interface/models/ILoginApproval.d.ts +0 -31
- package/dist/cjs/types/Interface/models/ILoginApproval.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/ILoginApproval.js +0 -3
- package/dist/cjs/types/Interface/models/ILoginApproval.js.map +0 -1
- package/dist/mjs/api/resources/LoginApproval.d.ts +0 -18
- package/dist/mjs/api/resources/LoginApproval.d.ts.map +0 -1
- package/dist/mjs/api/resources/LoginApproval.js +0 -16
- package/dist/mjs/api/resources/LoginApproval.js.map +0 -1
- package/dist/mjs/types/Enum/LoginApprovalStatus.d.ts +0 -14
- package/dist/mjs/types/Enum/LoginApprovalStatus.d.ts.map +0 -1
- package/dist/mjs/types/Enum/LoginApprovalStatus.js +0 -15
- package/dist/mjs/types/Enum/LoginApprovalStatus.js.map +0 -1
- package/dist/mjs/types/Enum/MfaMode.d.ts +0 -12
- package/dist/mjs/types/Enum/MfaMode.d.ts.map +0 -1
- package/dist/mjs/types/Enum/MfaMode.js +0 -13
- package/dist/mjs/types/Enum/MfaMode.js.map +0 -1
- package/dist/mjs/types/Interface/api/authentification/loginApproval.d.ts +0 -65
- package/dist/mjs/types/Interface/api/authentification/loginApproval.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/authentification/loginApproval.js +0 -2
- package/dist/mjs/types/Interface/api/authentification/loginApproval.js.map +0 -1
- package/dist/mjs/types/Interface/models/ILoginApproval.d.ts +0 -31
- package/dist/mjs/types/Interface/models/ILoginApproval.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/ILoginApproval.js +0 -2
- package/dist/mjs/types/Interface/models/ILoginApproval.js.map +0 -1
- package/ts/api/resources/LoginApproval.ts +0 -20
- package/ts/types/Enum/LoginApprovalStatus.ts +0 -13
- package/ts/types/Enum/MfaMode.ts +0 -11
- package/ts/types/Interface/api/authentification/loginApproval.ts +0 -69
- package/ts/types/Interface/models/ILoginApproval.ts +0 -31
package/ts/api/resources/Mfa.ts
CHANGED
|
@@ -26,14 +26,4 @@ export class UserMfa extends Resource {
|
|
|
26
26
|
// Si userId est fourni, l'envoyer en query param, sinon vérifier l'user connecté
|
|
27
27
|
return this.axios.$get('/mfa/is-enabled', userId ? { params: { userId } } : undefined);
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
///// Mobile Approval MFA /////
|
|
31
|
-
|
|
32
|
-
enableMobileMfa(userId: number): Promise<void> {
|
|
33
|
-
return this.axios.$post('/mfa/enable/mobile-approval', { userId });
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
disableMobileMfa(userId: number): Promise<void> {
|
|
37
|
-
return this.axios.$post('/mfa/disable/mobile-approval', { userId });
|
|
38
|
-
}
|
|
39
29
|
}
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
export interface IAuthenticationResponse {
|
|
2
|
-
/** TOTP MFA requis (classique avec code à 6 chiffres) */
|
|
3
2
|
requiresMfa?: boolean;
|
|
4
|
-
/** Mobile approval MFA requis (validation sur l'app mobile) */
|
|
5
|
-
requiresMobileApproval?: boolean;
|
|
6
|
-
/** ID de la demande d'approbation (pour polling/tracking) */
|
|
7
|
-
requestId?: string;
|
|
8
|
-
/** Date d'expiration de la demande */
|
|
9
|
-
expiresAt?: Date;
|
|
10
|
-
/** ID de l'utilisateur */
|
|
11
3
|
userId?: number;
|
|
12
|
-
/** Message informatif */
|
|
13
4
|
message?: string;
|
|
14
|
-
/** Token JWT si authentification réussie */
|
|
15
5
|
token?: string;
|
|
16
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsBoolean, IsEnum, IsInt, IsOptional, IsString, Min, IsNumber
|
|
1
|
+
import { IsBoolean, IsEnum, IsInt, IsOptional, IsString, Min, IsNumber } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
import { IsFormattedDateString } from '../../../../utils/validators/formattedDateString.validator';
|
|
@@ -49,28 +49,3 @@ export class QueryGeneralLedgerAuxiliary {
|
|
|
49
49
|
@IsOptional()
|
|
50
50
|
idThirdParty?: number;
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
export type LetteringState = 'all' | 'only' | 'none';
|
|
54
|
-
|
|
55
|
-
export class QueryGeneralLedgerAuxiliaryPdf {
|
|
56
|
-
@ApiProperty()
|
|
57
|
-
@IsDateString()
|
|
58
|
-
startDate: string;
|
|
59
|
-
|
|
60
|
-
@ApiProperty()
|
|
61
|
-
@IsDateString()
|
|
62
|
-
endDate: string;
|
|
63
|
-
|
|
64
|
-
@ApiPropertyOptional()
|
|
65
|
-
@IsOptional()
|
|
66
|
-
idThirdPartyType?: ThirdPartyType;
|
|
67
|
-
|
|
68
|
-
@ApiPropertyOptional()
|
|
69
|
-
@IsOptional()
|
|
70
|
-
idThirdParty?: number[];
|
|
71
|
-
|
|
72
|
-
@ApiPropertyOptional()
|
|
73
|
-
@IsEnum(['all', 'only', 'none'])
|
|
74
|
-
@IsOptional()
|
|
75
|
-
lettering?: LetteringState;
|
|
76
|
-
}
|
|
@@ -1,169 +1,51 @@
|
|
|
1
|
-
import { IsDate, IsInt, IsOptional, IsEnum, IsNumber, IsString, IsObject, IsArray } from 'class-validator';
|
|
2
1
|
import { RevenueMovementType } from '../../Enum/Revenue';
|
|
3
|
-
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
4
2
|
|
|
5
3
|
/**
|
|
6
4
|
* DTO pour créer un mouvement de revenu
|
|
7
5
|
*/
|
|
8
|
-
export
|
|
9
|
-
@ApiProperty()
|
|
10
|
-
@IsEnum(RevenueMovementType)
|
|
6
|
+
export interface ICreateRevenueMovementRequest {
|
|
11
7
|
type: RevenueMovementType;
|
|
12
|
-
|
|
13
|
-
@ApiProperty()
|
|
14
|
-
@IsInt()
|
|
15
8
|
idSociety: number;
|
|
16
|
-
|
|
17
|
-
@ApiPropertyOptional()
|
|
18
|
-
@IsOptional()
|
|
19
|
-
@IsInt()
|
|
20
9
|
idExercice?: number;
|
|
21
|
-
|
|
22
|
-
@ApiPropertyOptional()
|
|
23
|
-
@IsOptional()
|
|
24
|
-
@IsInt()
|
|
25
10
|
idPrestation?: number;
|
|
26
|
-
|
|
27
|
-
@ApiPropertyOptional()
|
|
28
|
-
@IsOptional()
|
|
29
|
-
@IsInt()
|
|
30
11
|
idTerminationList?: number;
|
|
31
|
-
|
|
32
|
-
@ApiPropertyOptional()
|
|
33
|
-
@IsOptional()
|
|
34
|
-
@IsInt()
|
|
35
12
|
idChurnMovement?: number;
|
|
36
|
-
|
|
37
|
-
@ApiProperty()
|
|
38
|
-
@IsInt()
|
|
39
13
|
amount: number;
|
|
40
|
-
|
|
41
|
-
@ApiProperty()
|
|
42
|
-
@IsInt()
|
|
43
14
|
mrr: number;
|
|
44
|
-
|
|
45
|
-
@ApiProperty()
|
|
46
|
-
@IsInt()
|
|
47
15
|
arr: number;
|
|
48
|
-
|
|
49
|
-
@ApiProperty()
|
|
50
|
-
@IsDate()
|
|
51
16
|
movementDate: Date;
|
|
52
|
-
|
|
53
|
-
@ApiPropertyOptional()
|
|
54
|
-
@IsOptional()
|
|
55
|
-
@IsString()
|
|
56
17
|
description?: string;
|
|
57
|
-
|
|
58
|
-
@ApiPropertyOptional()
|
|
59
|
-
@IsOptional()
|
|
60
|
-
@IsObject()
|
|
61
18
|
metadata?: Record<string, any>;
|
|
62
19
|
}
|
|
63
20
|
|
|
64
21
|
/**
|
|
65
22
|
* DTO pour mettre à jour un mouvement de revenu
|
|
66
23
|
*/
|
|
67
|
-
export
|
|
68
|
-
@ApiPropertyOptional()
|
|
69
|
-
@IsOptional()
|
|
70
|
-
@IsEnum(RevenueMovementType)
|
|
24
|
+
export interface IUpdateRevenueMovementRequest {
|
|
71
25
|
type?: RevenueMovementType;
|
|
72
|
-
|
|
73
|
-
@ApiPropertyOptional()
|
|
74
|
-
@IsOptional()
|
|
75
|
-
@IsInt()
|
|
76
26
|
idTerminationList?: number;
|
|
77
|
-
|
|
78
|
-
@ApiPropertyOptional()
|
|
79
|
-
@IsOptional()
|
|
80
|
-
@IsInt()
|
|
81
27
|
idChurnMovement?: number;
|
|
82
|
-
|
|
83
|
-
@ApiPropertyOptional()
|
|
84
|
-
@IsOptional()
|
|
85
|
-
@IsNumber()
|
|
86
28
|
amount?: number;
|
|
87
|
-
|
|
88
|
-
@ApiPropertyOptional()
|
|
89
|
-
@IsOptional()
|
|
90
|
-
@IsInt()
|
|
91
29
|
mrr?: number;
|
|
92
|
-
|
|
93
|
-
@ApiPropertyOptional()
|
|
94
|
-
@IsOptional()
|
|
95
|
-
@IsInt()
|
|
96
30
|
arr?: number;
|
|
97
|
-
|
|
98
|
-
@ApiPropertyOptional()
|
|
99
|
-
@IsOptional()
|
|
100
|
-
@IsDate()
|
|
101
31
|
movementDate?: Date | string;
|
|
102
|
-
|
|
103
|
-
@ApiPropertyOptional()
|
|
104
|
-
@IsOptional()
|
|
105
|
-
@IsString()
|
|
106
32
|
description?: string;
|
|
107
|
-
|
|
108
|
-
@ApiPropertyOptional()
|
|
109
|
-
@IsOptional()
|
|
110
|
-
@IsObject()
|
|
111
33
|
metadata?: Record<string, any>;
|
|
112
34
|
}
|
|
113
35
|
|
|
114
36
|
/**
|
|
115
37
|
* Filtres pour récupérer les mouvements de revenu
|
|
116
38
|
*/
|
|
117
|
-
export
|
|
118
|
-
@ApiPropertyOptional()
|
|
119
|
-
@IsOptional()
|
|
120
|
-
@IsInt()
|
|
39
|
+
export interface IGetRevenueMovementsRequest {
|
|
121
40
|
idSociety?: number;
|
|
122
|
-
|
|
123
|
-
@ApiPropertyOptional()
|
|
124
|
-
@IsOptional()
|
|
125
|
-
@IsInt()
|
|
126
41
|
idExercice?: number;
|
|
127
|
-
|
|
128
|
-
@ApiPropertyOptional()
|
|
129
|
-
@IsOptional()
|
|
130
|
-
@IsInt()
|
|
131
42
|
idPrestation?: number;
|
|
132
|
-
|
|
133
|
-
@ApiPropertyOptional()
|
|
134
|
-
@IsOptional()
|
|
135
|
-
@IsInt()
|
|
136
43
|
idTerminationList?: number;
|
|
137
|
-
|
|
138
|
-
@ApiPropertyOptional()
|
|
139
|
-
@IsOptional()
|
|
140
|
-
@IsInt()
|
|
141
44
|
idChurnMovement?: number;
|
|
142
|
-
|
|
143
|
-
@ApiPropertyOptional()
|
|
144
|
-
@IsOptional()
|
|
145
|
-
@IsArray()
|
|
146
|
-
@IsEnum(RevenueMovementType, { each: true })
|
|
147
45
|
type?: RevenueMovementType[];
|
|
148
|
-
|
|
149
|
-
@ApiPropertyOptional()
|
|
150
|
-
@IsOptional()
|
|
151
|
-
@IsDate()
|
|
152
46
|
startDate?: Date | string;
|
|
153
|
-
|
|
154
|
-
@ApiPropertyOptional()
|
|
155
|
-
@IsOptional()
|
|
156
|
-
@IsDate()
|
|
157
47
|
endDate?: Date | string;
|
|
158
|
-
|
|
159
|
-
@ApiPropertyOptional()
|
|
160
|
-
@IsOptional()
|
|
161
|
-
@IsInt()
|
|
162
48
|
page?: number;
|
|
163
|
-
|
|
164
|
-
@ApiPropertyOptional()
|
|
165
|
-
@IsOptional()
|
|
166
|
-
@IsInt()
|
|
167
49
|
limit?: number;
|
|
168
50
|
}
|
|
169
51
|
|
|
@@ -181,51 +63,25 @@ export interface IGetRevenueMovementsResponse {
|
|
|
181
63
|
/**
|
|
182
64
|
* DTO pour générer un snapshot de revenu
|
|
183
65
|
*/
|
|
184
|
-
export
|
|
185
|
-
@ApiPropertyOptional()
|
|
186
|
-
@IsOptional()
|
|
187
|
-
@IsDate()
|
|
66
|
+
export interface IGenerateSnapshotRequest {
|
|
188
67
|
date?: string;
|
|
189
|
-
|
|
190
|
-
@ApiPropertyOptional()
|
|
191
|
-
@IsOptional()
|
|
192
|
-
@IsInt()
|
|
193
68
|
idSociety?: number;
|
|
194
|
-
|
|
195
|
-
@ApiPropertyOptional()
|
|
196
|
-
@IsOptional()
|
|
197
|
-
@IsInt()
|
|
198
69
|
idExercice?: number;
|
|
199
70
|
}
|
|
200
71
|
|
|
201
72
|
/**
|
|
202
73
|
* DTO pour générer tous les snapshots de revenu
|
|
203
74
|
*/
|
|
204
|
-
export
|
|
205
|
-
@ApiPropertyOptional()
|
|
206
|
-
@IsOptional()
|
|
207
|
-
@IsDate()
|
|
75
|
+
export interface IGenerateAllSnapshotsRequest {
|
|
208
76
|
date?: string;
|
|
209
77
|
}
|
|
210
78
|
|
|
211
79
|
/**
|
|
212
80
|
* DTO pour gérer la rétroactivité des mouvements de revenu
|
|
213
81
|
*/
|
|
214
|
-
export
|
|
215
|
-
@ApiPropertyOptional()
|
|
216
|
-
@IsOptional()
|
|
217
|
-
@IsInt()
|
|
82
|
+
export interface IManageRetroactivityRequest {
|
|
218
83
|
idSociety: number;
|
|
219
|
-
|
|
220
|
-
@ApiPropertyOptional()
|
|
221
|
-
@IsOptional()
|
|
222
|
-
@IsInt()
|
|
223
84
|
idExercice?: number;
|
|
224
|
-
|
|
225
|
-
@ApiPropertyOptional()
|
|
226
|
-
@IsOptional()
|
|
227
|
-
@IsDate()
|
|
228
|
-
date?: Date;
|
|
229
85
|
}
|
|
230
86
|
|
|
231
87
|
/**
|
|
@@ -233,9 +89,9 @@ export class IManageRetroactivityRequest {
|
|
|
233
89
|
*/
|
|
234
90
|
export interface IManageRetroactivityResponse {
|
|
235
91
|
idSociety: number;
|
|
236
|
-
idExercice: number
|
|
237
|
-
exerciceStartDate: Date
|
|
238
|
-
exerciceEndDate: Date
|
|
92
|
+
idExercice: number;
|
|
93
|
+
exerciceStartDate: Date;
|
|
94
|
+
exerciceEndDate: Date;
|
|
239
95
|
movementsCreated: {
|
|
240
96
|
bookings: number;
|
|
241
97
|
churns: number;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ApiPropertyOptional } from '@nestjs/swagger';
|
|
2
1
|
import { ApiProperty } from '../../../utils';
|
|
3
|
-
import { IsOptional, IsString, IsNumber
|
|
2
|
+
import { IsOptional, IsString, IsNumber } from 'class-validator';
|
|
4
3
|
|
|
5
4
|
export class GenerateSnapshot {
|
|
6
5
|
@ApiProperty({
|
|
@@ -43,20 +42,20 @@ export class GenerateAllSnapshots {
|
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
export class ManageRetroactivity {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
45
|
+
@ApiProperty({
|
|
46
|
+
required: true,
|
|
47
|
+
description: 'ID de la société',
|
|
48
|
+
example: 60170,
|
|
49
|
+
})
|
|
50
|
+
@IsNumber()
|
|
51
|
+
idSociety: number;
|
|
53
52
|
|
|
54
|
-
@
|
|
53
|
+
@ApiProperty({
|
|
55
54
|
required: false,
|
|
56
55
|
description: "ID de l'exercice (si non fourni, utilise l'exercice courant)",
|
|
57
56
|
example: 123456,
|
|
58
57
|
})
|
|
59
58
|
@IsOptional()
|
|
60
|
-
@
|
|
59
|
+
@IsNumber()
|
|
61
60
|
idExercice?: number;
|
|
62
61
|
}
|
|
@@ -12,7 +12,6 @@ export interface IImmobilization {
|
|
|
12
12
|
quantitySelled?: number;
|
|
13
13
|
amountOfSellTaxIncluded?: number | null;
|
|
14
14
|
sellingDate?: Date | null;
|
|
15
|
-
trashingDate?: Date | null;
|
|
16
15
|
acquisitionDate?: Date; // si il n'y a pas d'acquisition date, c'est un acompte
|
|
17
16
|
duration: number;
|
|
18
17
|
provider: string;
|
|
@@ -52,7 +52,6 @@ export interface IUser {
|
|
|
52
52
|
prefix?: string | null;
|
|
53
53
|
tokenLostPassword?: string | null;
|
|
54
54
|
twoFactorEnabled?: boolean | null;
|
|
55
|
-
mfaMode?: 'none' | 'totp' | 'mobile_approval';
|
|
56
55
|
tokenApi?: string | null;
|
|
57
56
|
tokenNotification?: string | null;
|
|
58
57
|
tokenSocket?: string | null;
|
package/ts/types/index.ts
CHANGED
|
@@ -3,7 +3,6 @@ export * from './Interface/models/ICallHistory';
|
|
|
3
3
|
export * from './Interface/models/IBusinessLineUser';
|
|
4
4
|
export * from './Interface/models/IVisualizedInformation';
|
|
5
5
|
export * from './Interface/models/IApiError';
|
|
6
|
-
export * from './Interface/models/ILoginApproval';
|
|
7
6
|
export * from './Interface/models/ISms';
|
|
8
7
|
export * from './Interface/models/IAccessToken';
|
|
9
8
|
export * from './Interface/models/IAccountDetail';
|
|
@@ -339,8 +338,6 @@ export * from './Enum/Feature';
|
|
|
339
338
|
export * from './Enum/AutomaticRegistration';
|
|
340
339
|
export * from './Enum/IntermediateManagementRebate';
|
|
341
340
|
export * from './Enum/Das';
|
|
342
|
-
export * from './Enum/LoginApprovalStatus';
|
|
343
|
-
export * from './Enum/MfaMode';
|
|
344
341
|
export * from './Enum/ChangeLog';
|
|
345
342
|
export * from './Enum/VisualizedInformation';
|
|
346
343
|
export * from './Enum/NafCode';
|
|
@@ -562,7 +559,6 @@ export * from './Enum/PaymentAttempt';
|
|
|
562
559
|
// Interfaces API
|
|
563
560
|
export * from './Interface/api/authentification/AuthenticationResponse';
|
|
564
561
|
export * from './Interface/api/exercice/ReadExercice';
|
|
565
|
-
export * from './Interface/api/authentification/AuthenticationResponse';
|
|
566
562
|
export * from './Interface/api/balanceSheet/consistency/Read';
|
|
567
563
|
export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
|
|
568
564
|
export * from './Interface/api/cashAndExpense/Query';
|
|
@@ -1057,7 +1053,6 @@ export * from './Interface/api/changelog/Create';
|
|
|
1057
1053
|
export * from './Interface/api/authentification/ReadAuthenticateCollaborater';
|
|
1058
1054
|
export * from './Interface/api/authentification/ResetPassword';
|
|
1059
1055
|
export * from './Interface/api/authentification/ForgotPassword';
|
|
1060
|
-
export * from './Interface/api/authentification/loginApproval';
|
|
1061
1056
|
export * from './Interface/api/society/Export';
|
|
1062
1057
|
export * from './Interface/api/society/State';
|
|
1063
1058
|
export * from './Interface/api/businessSector/Create';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
import { ILoginApprovalStatusResponse } from '../../types/Interface/api/authentification/loginApproval';
|
|
3
|
-
export declare class LoginApproval extends Resource {
|
|
4
|
-
approve(requestId: string, userId: number, deviceId: string): Promise<{
|
|
5
|
-
message: string;
|
|
6
|
-
status: string;
|
|
7
|
-
}>;
|
|
8
|
-
deny(requestId: string, userId: number, deviceId: string): Promise<{
|
|
9
|
-
message: string;
|
|
10
|
-
status: string;
|
|
11
|
-
}>;
|
|
12
|
-
getStatus(requestId: string): Promise<ILoginApprovalStatusResponse>;
|
|
13
|
-
cleanup(): Promise<{
|
|
14
|
-
deleted: number;
|
|
15
|
-
message: string;
|
|
16
|
-
}>;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=LoginApproval.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoginApproval.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/LoginApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,0DAA0D,CAAC;AAExG,qBAAa,aAAc,SAAQ,QAAQ;IACzC,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAI1G,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAIvG,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAInE,OAAO,IAAI,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAGzD"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LoginApproval = void 0;
|
|
4
|
-
const Resource_1 = require("../Resource");
|
|
5
|
-
class LoginApproval extends Resource_1.Resource {
|
|
6
|
-
approve(requestId, userId, deviceId) {
|
|
7
|
-
return this.axios.$post(`/auth/approvals/${requestId}/approve`, { userId, deviceId });
|
|
8
|
-
}
|
|
9
|
-
deny(requestId, userId, deviceId) {
|
|
10
|
-
return this.axios.$post(`/auth/approvals/${requestId}/deny`, { userId, deviceId });
|
|
11
|
-
}
|
|
12
|
-
getStatus(requestId) {
|
|
13
|
-
return this.axios.$get(`/auth/approvals/${requestId}/status`);
|
|
14
|
-
}
|
|
15
|
-
cleanup() {
|
|
16
|
-
return this.axios.$post('/auth/approvals/cleanup');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.LoginApproval = LoginApproval;
|
|
20
|
-
//# sourceMappingURL=LoginApproval.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoginApproval.js","sourceRoot":"","sources":["../../../../ts/api/resources/LoginApproval.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,aAAc,SAAQ,mBAAQ;IACzC,OAAO,CAAC,SAAiB,EAAE,MAAc,EAAE,QAAgB;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mBAAmB,SAAS,UAAU,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IACxF,CAAC;IAED,IAAI,CAAC,SAAiB,EAAE,MAAc,EAAE,QAAgB;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mBAAmB,SAAS,OAAO,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,SAAS,CAAC,SAAiB;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,SAAS,SAAS,CAAC,CAAC;IAChE,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACrD,CAAC;CACF;AAhBD,sCAgBC","sourcesContent":["import { Resource } from '../Resource';\nimport { ILoginApprovalStatusResponse } from '../../types/Interface/api/authentification/loginApproval';\n\nexport class LoginApproval extends Resource {\n approve(requestId: string, userId: number, deviceId: string): Promise<{ message: string; status: string }> {\n return this.axios.$post(`/auth/approvals/${requestId}/approve`, { userId, deviceId });\n }\n\n deny(requestId: string, userId: number, deviceId: string): Promise<{ message: string; status: string }> {\n return this.axios.$post(`/auth/approvals/${requestId}/deny`, { userId, deviceId });\n }\n\n getStatus(requestId: string): Promise<ILoginApprovalStatusResponse> {\n return this.axios.$get(`/auth/approvals/${requestId}/status`);\n }\n\n cleanup(): Promise<{ deleted: number; message: string }> {\n return this.axios.$post('/auth/approvals/cleanup');\n }\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Statuts possibles d'une demande d'approbation de connexion mobile
|
|
3
|
-
*/
|
|
4
|
-
export declare enum LoginApprovalStatus {
|
|
5
|
-
/** En attente de validation par le mobile */
|
|
6
|
-
PENDING = "pending",
|
|
7
|
-
/** Approuvée par l'utilisateur sur son mobile */
|
|
8
|
-
APPROVED = "approved",
|
|
9
|
-
/** Refusée par l'utilisateur sur son mobile */
|
|
10
|
-
DENIED = "denied",
|
|
11
|
-
/** Expirée (timeout dépassé sans action) */
|
|
12
|
-
EXPIRED = "expired"
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=LoginApprovalStatus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoginApprovalStatus.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/LoginApprovalStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,6CAA6C;IAC7C,OAAO,YAAY;IACnB,iDAAiD;IACjD,QAAQ,aAAa;IACrB,+CAA+C;IAC/C,MAAM,WAAW;IACjB,4CAA4C;IAC5C,OAAO,YAAY;CACpB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LoginApprovalStatus = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Statuts possibles d'une demande d'approbation de connexion mobile
|
|
6
|
-
*/
|
|
7
|
-
var LoginApprovalStatus;
|
|
8
|
-
(function (LoginApprovalStatus) {
|
|
9
|
-
/** En attente de validation par le mobile */
|
|
10
|
-
LoginApprovalStatus["PENDING"] = "pending";
|
|
11
|
-
/** Approuvée par l'utilisateur sur son mobile */
|
|
12
|
-
LoginApprovalStatus["APPROVED"] = "approved";
|
|
13
|
-
/** Refusée par l'utilisateur sur son mobile */
|
|
14
|
-
LoginApprovalStatus["DENIED"] = "denied";
|
|
15
|
-
/** Expirée (timeout dépassé sans action) */
|
|
16
|
-
LoginApprovalStatus["EXPIRED"] = "expired";
|
|
17
|
-
})(LoginApprovalStatus || (exports.LoginApprovalStatus = LoginApprovalStatus = {}));
|
|
18
|
-
//# sourceMappingURL=LoginApprovalStatus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoginApprovalStatus.js","sourceRoot":"","sources":["../../../../ts/types/Enum/LoginApprovalStatus.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,6CAA6C;IAC7C,0CAAmB,CAAA;IACnB,iDAAiD;IACjD,4CAAqB,CAAA;IACrB,+CAA+C;IAC/C,wCAAiB,CAAA;IACjB,4CAA4C;IAC5C,0CAAmB,CAAA;AACrB,CAAC,EATW,mBAAmB,mCAAnB,mBAAmB,QAS9B","sourcesContent":["/**\n * Statuts possibles d'une demande d'approbation de connexion mobile\n */\nexport enum LoginApprovalStatus {\n /** En attente de validation par le mobile */\n PENDING = 'pending',\n /** Approuvée par l'utilisateur sur son mobile */\n APPROVED = 'approved',\n /** Refusée par l'utilisateur sur son mobile */\n DENIED = 'denied',\n /** Expirée (timeout dépassé sans action) */\n EXPIRED = 'expired',\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Modes de double authentification disponibles
|
|
3
|
-
*/
|
|
4
|
-
export declare enum MfaMode {
|
|
5
|
-
/** Pas de MFA activée */
|
|
6
|
-
NONE = "none",
|
|
7
|
-
/** Authentification via code TOTP (Google Authenticator, etc.) */
|
|
8
|
-
TOTP = "totp",
|
|
9
|
-
/** Validation via notification sur l'application mobile */
|
|
10
|
-
MOBILE_APPROVAL = "mobile_approval"
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=MfaMode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MfaMode.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/MfaMode.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,OAAO;IACjB,yBAAyB;IACzB,IAAI,SAAS;IACb,kEAAkE;IAClE,IAAI,SAAS;IACb,2DAA2D;IAC3D,eAAe,oBAAoB;CACpC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MfaMode = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Modes de double authentification disponibles
|
|
6
|
-
*/
|
|
7
|
-
var MfaMode;
|
|
8
|
-
(function (MfaMode) {
|
|
9
|
-
/** Pas de MFA activée */
|
|
10
|
-
MfaMode["NONE"] = "none";
|
|
11
|
-
/** Authentification via code TOTP (Google Authenticator, etc.) */
|
|
12
|
-
MfaMode["TOTP"] = "totp";
|
|
13
|
-
/** Validation via notification sur l'application mobile */
|
|
14
|
-
MfaMode["MOBILE_APPROVAL"] = "mobile_approval";
|
|
15
|
-
})(MfaMode || (exports.MfaMode = MfaMode = {}));
|
|
16
|
-
//# sourceMappingURL=MfaMode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MfaMode.js","sourceRoot":"","sources":["../../../../ts/types/Enum/MfaMode.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,OAOX;AAPD,WAAY,OAAO;IACjB,yBAAyB;IACzB,wBAAa,CAAA;IACb,kEAAkE;IAClE,wBAAa,CAAA;IACb,2DAA2D;IAC3D,8CAAmC,CAAA;AACrC,CAAC,EAPW,OAAO,uBAAP,OAAO,QAOlB","sourcesContent":["/**\n * Modes de double authentification disponibles\n */\nexport enum MfaMode {\n /** Pas de MFA activée */\n NONE = 'none',\n /** Authentification via code TOTP (Google Authenticator, etc.) */\n TOTP = 'totp',\n /** Validation via notification sur l'application mobile */\n MOBILE_APPROVAL = 'mobile_approval',\n}\n"]}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { LoginApprovalStatus } from '../../../Enum/LoginApprovalStatus';
|
|
2
|
-
/**
|
|
3
|
-
* Payload de l'événement socket envoyé au mobile lors d'une demande de connexion
|
|
4
|
-
*/
|
|
5
|
-
export interface ILoginApprovalRequestEvent {
|
|
6
|
-
/** ID unique de la demande */
|
|
7
|
-
requestId: string;
|
|
8
|
-
/** Date d'expiration */
|
|
9
|
-
expiresAt: Date;
|
|
10
|
-
/** ID de l'utilisateur */
|
|
11
|
-
userId: number;
|
|
12
|
-
/** Métadonnées (IP, navigateur, localisation) */
|
|
13
|
-
metadata?: {
|
|
14
|
-
ip?: string;
|
|
15
|
-
userAgent?: string;
|
|
16
|
-
location?: string;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Payload de l'événement socket envoyé au Web lors d'un changement de statut
|
|
21
|
-
*/
|
|
22
|
-
export interface ILoginApprovalStatusEvent {
|
|
23
|
-
/** ID de la demande */
|
|
24
|
-
requestId: string;
|
|
25
|
-
/** Nouveau statut */
|
|
26
|
-
status: LoginApprovalStatus;
|
|
27
|
-
/** Date de la transition */
|
|
28
|
-
timestamp: Date;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Réponse renvoyée au Web lorsque mobile MFA est requis
|
|
32
|
-
*/
|
|
33
|
-
export interface ILoginApprovalResponse {
|
|
34
|
-
/** Indique qu'une validation mobile est nécessaire */
|
|
35
|
-
requiresMobileApproval: true;
|
|
36
|
-
/** ID de la demande pour polling/tracking */
|
|
37
|
-
requestId: string;
|
|
38
|
-
/** Date d'expiration de la demande */
|
|
39
|
-
expiresAt: Date;
|
|
40
|
-
/** ID utilisateur */
|
|
41
|
-
userId: number;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Réponse du statut d'une demande d'approbation
|
|
45
|
-
*/
|
|
46
|
-
export interface ILoginApprovalStatusResponse {
|
|
47
|
-
/** ID de la demande */
|
|
48
|
-
requestId: string;
|
|
49
|
-
/** Statut actuel */
|
|
50
|
-
status: LoginApprovalStatus;
|
|
51
|
-
/** Date d'expiration */
|
|
52
|
-
expiresAt: Date;
|
|
53
|
-
/** Token JWT si status = approved */
|
|
54
|
-
token?: string;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* DTO pour approuver/refuser une demande depuis le mobile
|
|
58
|
-
*/
|
|
59
|
-
export interface IApproveOrDenyRequest {
|
|
60
|
-
/** ID de la demande */
|
|
61
|
-
requestId: string;
|
|
62
|
-
/** Device ID du mobile (pour audit) */
|
|
63
|
-
deviceId: string;
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=loginApproval.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loginApproval.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/authentification/loginApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,8BAA8B;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,wBAAwB;IACxB,SAAS,EAAE,IAAI,CAAC;IAChB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,QAAQ,CAAC,EAAE;QACT,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,uBAAuB;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,4BAA4B;IAC5B,SAAS,EAAE,IAAI,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,sDAAsD;IACtD,sBAAsB,EAAE,IAAI,CAAC;IAC7B,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,SAAS,EAAE,IAAI,CAAC;IAChB,qBAAqB;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,uBAAuB;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB;IACpB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,wBAAwB;IACxB,SAAS,EAAE,IAAI,CAAC;IAChB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,uBAAuB;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loginApproval.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/authentification/loginApproval.ts"],"names":[],"mappings":"","sourcesContent":["import { LoginApprovalStatus } from '../../../Enum/LoginApprovalStatus';\n\n/**\n * Payload de l'événement socket envoyé au mobile lors d'une demande de connexion\n */\nexport interface ILoginApprovalRequestEvent {\n /** ID unique de la demande */\n requestId: string;\n /** Date d'expiration */\n expiresAt: Date;\n /** ID de l'utilisateur */\n userId: number;\n /** Métadonnées (IP, navigateur, localisation) */\n metadata?: {\n ip?: string;\n userAgent?: string;\n location?: string;\n };\n}\n\n/**\n * Payload de l'événement socket envoyé au Web lors d'un changement de statut\n */\nexport interface ILoginApprovalStatusEvent {\n /** ID de la demande */\n requestId: string;\n /** Nouveau statut */\n status: LoginApprovalStatus;\n /** Date de la transition */\n timestamp: Date;\n}\n\n/**\n * Réponse renvoyée au Web lorsque mobile MFA est requis\n */\nexport interface ILoginApprovalResponse {\n /** Indique qu'une validation mobile est nécessaire */\n requiresMobileApproval: true;\n /** ID de la demande pour polling/tracking */\n requestId: string;\n /** Date d'expiration de la demande */\n expiresAt: Date;\n /** ID utilisateur */\n userId: number;\n}\n\n/**\n * Réponse du statut d'une demande d'approbation\n */\nexport interface ILoginApprovalStatusResponse {\n /** ID de la demande */\n requestId: string;\n /** Statut actuel */\n status: LoginApprovalStatus;\n /** Date d'expiration */\n expiresAt: Date;\n /** Token JWT si status = approved */\n token?: string;\n}\n\n/**\n * DTO pour approuver/refuser une demande depuis le mobile\n */\nexport interface IApproveOrDenyRequest {\n /** ID de la demande */\n requestId: string;\n /** Device ID du mobile (pour audit) */\n deviceId: string;\n}\n"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { LoginApprovalStatus } from '../../Enum/LoginApprovalStatus';
|
|
2
|
-
/**
|
|
3
|
-
* Interface représentant une demande d'approbation de connexion mobile
|
|
4
|
-
*/
|
|
5
|
-
export interface ILoginApproval {
|
|
6
|
-
/** Identifiant unique (UUID) */
|
|
7
|
-
id: string;
|
|
8
|
-
/** ID de l'utilisateur demandant la connexion */
|
|
9
|
-
idUser: number;
|
|
10
|
-
/** Statut actuel de la demande */
|
|
11
|
-
status: LoginApprovalStatus;
|
|
12
|
-
/** Date d'expiration de la demande (généralement 2-3 min après création) */
|
|
13
|
-
expiresAt: Date;
|
|
14
|
-
/** Date d'approbation (si status = approved) */
|
|
15
|
-
approvedAt?: Date;
|
|
16
|
-
/** Date de refus (si status = denied) */
|
|
17
|
-
deniedAt?: Date;
|
|
18
|
-
/** Device ID du mobile ayant approuvé/refusé */
|
|
19
|
-
deviceIdUsed?: string;
|
|
20
|
-
/** IP de la connexion Web à l'origine de la demande */
|
|
21
|
-
ip?: string;
|
|
22
|
-
/** User-Agent du navigateur Web */
|
|
23
|
-
userAgent?: string;
|
|
24
|
-
/** Métadonnées additionnelles (géoloc, risk score, etc.) */
|
|
25
|
-
metadata?: Record<string, any>;
|
|
26
|
-
/** Date de création */
|
|
27
|
-
createdAt: Date;
|
|
28
|
-
/** Date de mise à jour */
|
|
29
|
-
updatedAt: Date;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=ILoginApproval.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ILoginApproval.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ILoginApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,iDAAiD;IACjD,MAAM,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,4EAA4E;IAC5E,SAAS,EAAE,IAAI,CAAC;IAChB,gDAAgD;IAChD,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uDAAuD;IACvD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,uBAAuB;IACvB,SAAS,EAAE,IAAI,CAAC;IAChB,0BAA0B;IAC1B,SAAS,EAAE,IAAI,CAAC;CACjB"}
|