@silexpert/core 2.0.112 → 2.0.114
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/api/resources/Authenticate.d.ts +6 -2
- package/dist/api/resources/Authenticate.d.ts.map +1 -1
- package/dist/api/resources/Authenticate.js +4 -0
- package/dist/api/resources/Authenticate.js.map +1 -1
- package/dist/api/resources/User.d.ts +1 -1
- package/dist/api/resources/User.d.ts.map +1 -1
- package/dist/api/resources/User.js.map +1 -1
- package/dist/api/resources.d.ts +0 -2
- package/dist/api/resources.d.ts.map +1 -1
- package/dist/api/resources.js +0 -2
- package/dist/api/resources.js.map +1 -1
- package/dist/types/Enum/ExternalAuthenticationLinkPurpose.d.ts +11 -0
- package/dist/types/Enum/ExternalAuthenticationLinkPurpose.d.ts.map +1 -0
- package/dist/types/Enum/ExternalAuthenticationLinkPurpose.js +13 -0
- package/dist/types/Enum/ExternalAuthenticationLinkPurpose.js.map +1 -0
- package/dist/types/Form/FormAuthenticate.d.ts.map +1 -1
- package/dist/types/Form/FormAuthenticate.js +5 -1
- package/dist/types/Form/FormAuthenticate.js.map +1 -1
- package/dist/types/Interface/api/authentification/ExchangeExternalAuthenticationLink.d.ts +5 -0
- package/dist/types/Interface/api/authentification/ExchangeExternalAuthenticationLink.d.ts.map +1 -0
- package/dist/types/Interface/api/authentification/{FinalizeMobileApprovalDto.js → ExchangeExternalAuthenticationLink.js} +20 -5
- package/dist/types/Interface/api/authentification/ExchangeExternalAuthenticationLink.js.map +1 -0
- package/dist/types/Interface/api/authentification/ForgotPassword.d.ts +1 -0
- package/dist/types/Interface/api/authentification/ForgotPassword.d.ts.map +1 -1
- package/dist/types/Interface/api/authentification/ForgotPassword.js +8 -1
- package/dist/types/Interface/api/authentification/ForgotPassword.js.map +1 -1
- package/dist/types/Interface/api/commercialManagement/Create.d.ts +6 -1
- package/dist/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/types/Interface/api/commercialManagement/Create.js +25 -1
- package/dist/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
- package/dist/types/Interface/api/taxDeadline/QueryTaxDeadline.js +7 -1
- package/dist/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/dist/types/Interface/api/timeRecorder/CreateRecorder.d.ts +2 -2
- package/dist/types/Interface/api/timeRecorder/CreateRecorder.d.ts.map +1 -1
- package/dist/types/Interface/api/timeRecorder/CreateRecorder.js +11 -3
- package/dist/types/Interface/api/timeRecorder/CreateRecorder.js.map +1 -1
- package/dist/types/Interface/api/timeRecorder/UpdateRecorder.d.ts +2 -2
- package/dist/types/Interface/api/timeRecorder/UpdateRecorder.d.ts.map +1 -1
- package/dist/types/Interface/api/timeRecorder/UpdateRecorder.js +11 -3
- package/dist/types/Interface/api/timeRecorder/UpdateRecorder.js.map +1 -1
- package/dist/types/Interface/models/IExternalAuthenticationLink.d.ts +18 -0
- package/dist/types/Interface/models/IExternalAuthenticationLink.d.ts.map +1 -0
- package/dist/types/Interface/models/IExternalAuthenticationLink.js +2 -0
- package/dist/types/Interface/models/IExternalAuthenticationLink.js.map +1 -0
- package/dist/types/Interface/models/IUser.d.ts +0 -2
- package/dist/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/types/Interface/models/IUser.js +0 -1
- package/dist/types/Interface/models/IUser.js.map +1 -1
- package/dist/types/index.d.ts +3 -7
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -7
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Authenticate.ts +7 -1
- package/ts/api/resources/User.ts +1 -1
- package/ts/api/resources.ts +2 -2
- package/ts/types/Enum/ExternalAuthenticationLinkPurpose.ts +11 -0
- package/ts/types/Form/FormAuthenticate.ts +5 -1
- package/ts/types/Interface/api/authentification/ExchangeExternalAuthenticationLink.ts +19 -0
- package/ts/types/Interface/api/authentification/ForgotPassword.ts +6 -1
- package/ts/types/Interface/api/commercialManagement/Create.ts +22 -2
- package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +7 -1
- package/ts/types/Interface/api/timeRecorder/CreateRecorder.ts +20 -3
- package/ts/types/Interface/api/timeRecorder/UpdateRecorder.ts +20 -3
- package/ts/types/Interface/models/IExternalAuthenticationLink.ts +18 -0
- package/ts/types/Interface/models/IUser.ts +1 -2
- package/ts/types/index.ts +9 -7
- package/dist/api/resources/LoginApproval.d.ts +0 -18
- package/dist/api/resources/LoginApproval.d.ts.map +0 -1
- package/dist/api/resources/LoginApproval.js +0 -16
- package/dist/api/resources/LoginApproval.js.map +0 -1
- package/dist/types/Enum/LoginApprovalStatus.d.ts +0 -14
- package/dist/types/Enum/LoginApprovalStatus.d.ts.map +0 -1
- package/dist/types/Enum/LoginApprovalStatus.js +0 -15
- package/dist/types/Enum/LoginApprovalStatus.js.map +0 -1
- package/dist/types/Enum/MfaMode.d.ts +0 -12
- package/dist/types/Enum/MfaMode.d.ts.map +0 -1
- package/dist/types/Enum/MfaMode.js +0 -13
- package/dist/types/Enum/MfaMode.js.map +0 -1
- package/dist/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts +0 -4
- package/dist/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts.map +0 -1
- package/dist/types/Interface/api/authentification/FinalizeMobileApprovalDto.js.map +0 -1
- package/dist/types/Interface/api/authentification/SetMobileApprovalDto.d.ts +0 -5
- package/dist/types/Interface/api/authentification/SetMobileApprovalDto.d.ts.map +0 -1
- package/dist/types/Interface/api/authentification/SetMobileApprovalDto.js +0 -25
- package/dist/types/Interface/api/authentification/SetMobileApprovalDto.js.map +0 -1
- package/dist/types/Interface/api/authentification/loginApproval.d.ts +0 -66
- package/dist/types/Interface/api/authentification/loginApproval.d.ts.map +0 -1
- package/dist/types/Interface/api/authentification/loginApproval.js +0 -77
- package/dist/types/Interface/api/authentification/loginApproval.js.map +0 -1
- package/dist/types/Interface/models/ILoginApproval.d.ts +0 -31
- package/dist/types/Interface/models/ILoginApproval.d.ts.map +0 -1
- package/dist/types/Interface/models/ILoginApproval.js +0 -30
- package/dist/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/FinalizeMobileApprovalDto.ts +0 -6
- package/ts/types/Interface/api/authentification/SetMobileApprovalDto.ts +0 -11
- package/ts/types/Interface/api/authentification/loginApproval.ts +0 -75
- package/ts/types/Interface/models/ILoginApproval.ts +0 -31
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
ReadByExternalId,
|
|
8
8
|
ReadConnectAs,
|
|
9
9
|
ProviderAuthDto,
|
|
10
|
+
ExchangeExternalAuthenticationLink,
|
|
10
11
|
} from '../../types/index.js';
|
|
11
12
|
import { Resource } from '../Resource.js';
|
|
12
13
|
|
|
@@ -34,7 +35,7 @@ export class Authenticate extends Resource {
|
|
|
34
35
|
return this.axios.$post(`/authenticate/societies/${idSociety}`);
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
async forgotPassword(payload: PostForgotPassword): Promise<void> {
|
|
38
|
+
async forgotPassword(payload: PostForgotPassword): Promise<{ url: string } | void> {
|
|
38
39
|
return this.axios.$post('/authenticate/forgot-password', payload);
|
|
39
40
|
}
|
|
40
41
|
|
|
@@ -46,10 +47,15 @@ export class Authenticate extends Resource {
|
|
|
46
47
|
return this.axios.$put('/authenticate/reset-password', payload);
|
|
47
48
|
}
|
|
48
49
|
|
|
50
|
+
/** @deprecated Use exchangeExternalAuthenticationLink instead */
|
|
49
51
|
async byExternalId(uuid: string, query: ConnectFromUUID): Promise<ReadByExternalId> {
|
|
50
52
|
return this.axios.$get(`/authenticate/external/${uuid}`, { params: query });
|
|
51
53
|
}
|
|
52
54
|
|
|
55
|
+
async exchangeExternalAuthenticationLink(payload: ExchangeExternalAuthenticationLink): Promise<ReadByExternalId> {
|
|
56
|
+
return this.axios.$post(`/authenticate/external/exchange`, payload);
|
|
57
|
+
}
|
|
58
|
+
|
|
53
59
|
async providerLogin(payload: ProviderAuthDto): Promise<{ token: string }> {
|
|
54
60
|
return this.axios.$post('/authenticate/providers/login', payload);
|
|
55
61
|
}
|
package/ts/api/resources/User.ts
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
} from '../../types/index.js';
|
|
31
31
|
|
|
32
32
|
export class User extends Resource {
|
|
33
|
-
confirm(params: QueryConfirm): Promise<
|
|
33
|
+
confirm(params: QueryConfirm): Promise<void> {
|
|
34
34
|
return this.axios.$put('user/confirm', params);
|
|
35
35
|
}
|
|
36
36
|
resendConfirmationEmailLink(params: QueryResendConfirmationLink): Promise<boolean> {
|
package/ts/api/resources.ts
CHANGED
|
@@ -184,7 +184,7 @@ import { BalanceSheetReport } from './resources/BalanceSheetReport.js';
|
|
|
184
184
|
import { Revenue } from './resources/Revenue.js';
|
|
185
185
|
import { InformationRequest } from './resources/InformationRequest.js';
|
|
186
186
|
import { AutomaticRegistration } from './resources/AutomaticRegistration.js';
|
|
187
|
-
|
|
187
|
+
|
|
188
188
|
import { SocietyApproval } from './resources/SocietyApproval.js';
|
|
189
189
|
import { Docoon } from './resources/Docoon.js';
|
|
190
190
|
import { Acd } from './resources/Acd.js';
|
|
@@ -387,7 +387,7 @@ export const resources = {
|
|
|
387
387
|
revenue: Revenue,
|
|
388
388
|
informationRequest: InformationRequest,
|
|
389
389
|
automaticRegistration: AutomaticRegistration,
|
|
390
|
-
|
|
390
|
+
|
|
391
391
|
societyApproval: SocietyApproval,
|
|
392
392
|
docoon: Docoon,
|
|
393
393
|
usersHistory: UsersHistory,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export enum ExternalAuthenticationLinkPurpose {
|
|
2
|
+
LOGIN = 'LOGIN',
|
|
3
|
+
APPOINTMENT = 'APPOINTMENT',
|
|
4
|
+
RESET_PASSWORD = 'RESET_PASSWORD',
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export enum ExternalAuthenticationLinkPurposeExpiration {
|
|
8
|
+
LOGIN = 10, // 10 minutes
|
|
9
|
+
APPOINTMENT = 60 * 24 * 7, // 7 days
|
|
10
|
+
RESET_PASSWORD = 60 * 24 * 3, // 3 days
|
|
11
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsBoolean, IsIP, IsNumber, IsOptional, IsString
|
|
1
|
+
import { ArrayMaxSize, ArrayMinSize, IsArray, IsBoolean, IsIP, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ToBoolean } from '../../utils/transforms/boolean.transform.js';
|
|
3
3
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
4
4
|
|
|
@@ -34,6 +34,10 @@ export class FormAuthenticate {
|
|
|
34
34
|
|
|
35
35
|
@ApiPropertyOptional()
|
|
36
36
|
@IsOptional()
|
|
37
|
+
@IsArray()
|
|
38
|
+
@ArrayMinSize(2)
|
|
39
|
+
@ArrayMaxSize(2)
|
|
40
|
+
@IsNumber({}, { each: true })
|
|
37
41
|
geolocation?: number[];
|
|
38
42
|
|
|
39
43
|
@ApiPropertyOptional()
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
2
|
+
import { IsOptional, IsString, Length, Matches } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
export class ExchangeExternalAuthenticationLink {
|
|
5
|
+
@ApiProperty({
|
|
6
|
+
description: 'Secret base64url du lien de connexion',
|
|
7
|
+
minLength: 43,
|
|
8
|
+
maxLength: 43,
|
|
9
|
+
})
|
|
10
|
+
@IsString()
|
|
11
|
+
@Length(43, 43)
|
|
12
|
+
@Matches(/^[A-Za-z0-9_-]{43}$/)
|
|
13
|
+
token: string;
|
|
14
|
+
|
|
15
|
+
@ApiPropertyOptional()
|
|
16
|
+
@IsString()
|
|
17
|
+
@IsOptional()
|
|
18
|
+
identifier?: string;
|
|
19
|
+
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { IsString } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiProperty } from '@nestjs/swagger';
|
|
3
3
|
|
|
4
4
|
export class PostForgotPassword {
|
|
5
5
|
@ApiProperty()
|
|
6
6
|
@IsString()
|
|
7
7
|
username: string;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsBoolean()
|
|
11
|
+
@IsOptional()
|
|
12
|
+
returnUrl?: boolean;
|
|
8
13
|
}
|
|
@@ -530,6 +530,17 @@ export class CreatePreSaleDocument extends CommercialDocumentInputs {
|
|
|
530
530
|
advanceProducts?: [];
|
|
531
531
|
language?: InvoiceLanguage;
|
|
532
532
|
}
|
|
533
|
+
|
|
534
|
+
export class CreateOriginalInvoiceReference {
|
|
535
|
+
@ApiProperty({ description: "Référence de la facture d'origine" })
|
|
536
|
+
@IsString()
|
|
537
|
+
reference: string;
|
|
538
|
+
|
|
539
|
+
@ApiProperty({ description: "Date d'émission de la facture d'origine" })
|
|
540
|
+
@IsDateString()
|
|
541
|
+
emissionDate: string;
|
|
542
|
+
}
|
|
543
|
+
|
|
533
544
|
export class CreateInvoiceDocument extends CommercialDocumentInputs {
|
|
534
545
|
paymentLink?: string;
|
|
535
546
|
deposit?: number;
|
|
@@ -553,6 +564,14 @@ export class CreateInvoiceDocument extends CommercialDocumentInputs {
|
|
|
553
564
|
@IsOptional()
|
|
554
565
|
@IsEnum(EstimateInvoiceTransmissionType)
|
|
555
566
|
transmissionType?: EstimateInvoiceTransmissionType | null;
|
|
567
|
+
|
|
568
|
+
@ApiPropertyOptional({
|
|
569
|
+
type: CreateOriginalInvoiceReference,
|
|
570
|
+
description:
|
|
571
|
+
"Facture d'origine, à renseigner pour un avoir non lié à une facture émise via l'outil (nécessaire pour la FE)",
|
|
572
|
+
})
|
|
573
|
+
@IsOptional()
|
|
574
|
+
originalInvoice?: CreateOriginalInvoiceReference | null;
|
|
556
575
|
}
|
|
557
576
|
|
|
558
577
|
export class CreateRecurrence {
|
|
@@ -564,9 +583,10 @@ export class CreateRecurrence {
|
|
|
564
583
|
@IsDateString()
|
|
565
584
|
startDate: string;
|
|
566
585
|
|
|
567
|
-
@
|
|
586
|
+
@ApiPropertyOptional()
|
|
568
587
|
@IsDateString()
|
|
569
|
-
|
|
588
|
+
@IsOptional()
|
|
589
|
+
endDate?: string;
|
|
570
590
|
|
|
571
591
|
@ApiProperty()
|
|
572
592
|
@ToBoolean()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsOptional, IsEnum, IsDateString, IsString, IsArray, IsBoolean, IsNumber } from 'class-validator';
|
|
1
|
+
import { IsOptional, IsEnum, IsDateString, IsString, IsArray, IsBoolean, IsNumber, Matches } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
3
3
|
import { VatRegime, ToDoOrDone, BankCollectingState, RequiredQueryPaginate, TaxState } from '../../../index.js';
|
|
4
4
|
import { ComptaType } from '../../../Enum/ComptaType.js';
|
|
@@ -30,9 +30,15 @@ export class QueryTaxDeadline {
|
|
|
30
30
|
idBalanceSheetState?: BalanceSheetState | BalanceSheetState[];
|
|
31
31
|
|
|
32
32
|
@ApiPropertyOptional({ description: 'Date de clôture (format MM)' })
|
|
33
|
+
@IsOptional()
|
|
34
|
+
@IsString({ each: true })
|
|
35
|
+
@Matches(/^(0[1-9]|1[0-2])$/, { each: true })
|
|
33
36
|
closingDate?: string | string[];
|
|
34
37
|
|
|
35
38
|
@ApiPropertyOptional({ description: 'Année de clôture (format YYYY)' })
|
|
39
|
+
@IsOptional()
|
|
40
|
+
@IsString({ each: true })
|
|
41
|
+
@Matches(/^\d{4}$/, { each: true })
|
|
36
42
|
year?: string | string[];
|
|
37
43
|
|
|
38
44
|
@ApiPropertyOptional({ description: 'Recherche par nom, code dia, id' })
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ArrayMaxSize,
|
|
3
|
+
ArrayMinSize,
|
|
4
|
+
IsArray,
|
|
5
|
+
IsBoolean,
|
|
6
|
+
IsDate,
|
|
7
|
+
IsNumber,
|
|
8
|
+
IsOptional,
|
|
9
|
+
IsString,
|
|
10
|
+
} from 'class-validator';
|
|
2
11
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
3
12
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform.js';
|
|
4
13
|
// import { Point } from 'geojson';
|
|
@@ -39,7 +48,11 @@ export class CreateRecorder {
|
|
|
39
48
|
|
|
40
49
|
@ApiPropertyOptional()
|
|
41
50
|
@IsOptional()
|
|
42
|
-
|
|
51
|
+
@IsArray()
|
|
52
|
+
@ArrayMinSize(2)
|
|
53
|
+
@ArrayMaxSize(2)
|
|
54
|
+
@IsNumber({}, { each: true })
|
|
55
|
+
geolocationDetected?: number[]; // Point;
|
|
43
56
|
|
|
44
57
|
@ApiPropertyOptional()
|
|
45
58
|
@IsOptional()
|
|
@@ -48,7 +61,11 @@ export class CreateRecorder {
|
|
|
48
61
|
|
|
49
62
|
@ApiPropertyOptional()
|
|
50
63
|
@IsOptional()
|
|
51
|
-
|
|
64
|
+
@IsArray()
|
|
65
|
+
@ArrayMinSize(2)
|
|
66
|
+
@ArrayMaxSize(2)
|
|
67
|
+
@IsNumber({}, { each: true })
|
|
68
|
+
geolocationFixed?: number[]; // Point;
|
|
52
69
|
|
|
53
70
|
@ApiPropertyOptional()
|
|
54
71
|
@IsOptional()
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ArrayMaxSize,
|
|
3
|
+
ArrayMinSize,
|
|
4
|
+
IsArray,
|
|
5
|
+
IsString,
|
|
6
|
+
IsDateString,
|
|
7
|
+
IsNumber,
|
|
8
|
+
IsOptional,
|
|
9
|
+
IsBoolean,
|
|
10
|
+
} from 'class-validator';
|
|
2
11
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
3
12
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform.js';
|
|
4
13
|
// import { Point } from 'geojson';
|
|
@@ -31,7 +40,11 @@ export class UpdateRecorder {
|
|
|
31
40
|
|
|
32
41
|
@ApiPropertyOptional()
|
|
33
42
|
@IsOptional()
|
|
34
|
-
|
|
43
|
+
@IsArray()
|
|
44
|
+
@ArrayMinSize(2)
|
|
45
|
+
@ArrayMaxSize(2)
|
|
46
|
+
@IsNumber({}, { each: true })
|
|
47
|
+
geolocationDetected?: number[]; // Point;
|
|
35
48
|
|
|
36
49
|
@ApiPropertyOptional()
|
|
37
50
|
@IsOptional()
|
|
@@ -40,7 +53,11 @@ export class UpdateRecorder {
|
|
|
40
53
|
|
|
41
54
|
@ApiPropertyOptional()
|
|
42
55
|
@IsOptional()
|
|
43
|
-
|
|
56
|
+
@IsArray()
|
|
57
|
+
@ArrayMinSize(2)
|
|
58
|
+
@ArrayMaxSize(2)
|
|
59
|
+
@IsNumber({}, { each: true })
|
|
60
|
+
geolocationFixed?: number[]; // Point;
|
|
44
61
|
|
|
45
62
|
@ApiPropertyOptional()
|
|
46
63
|
@IsOptional()
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ExternalAuthenticationLinkPurpose } from '../../Enum/ExternalAuthenticationLinkPurpose.js';
|
|
2
|
+
import type { ISociety } from './ISociety.js';
|
|
3
|
+
import type { IUser } from './IUser.js';
|
|
4
|
+
|
|
5
|
+
export interface IExternalAuthenticationLink {
|
|
6
|
+
id?: number;
|
|
7
|
+
idUser: number;
|
|
8
|
+
idSociety: number | null;
|
|
9
|
+
purpose: ExternalAuthenticationLinkPurpose;
|
|
10
|
+
tokenDigest: string;
|
|
11
|
+
expiresAt: Date;
|
|
12
|
+
usedAt?: Date | null;
|
|
13
|
+
revokedAt?: Date | null;
|
|
14
|
+
createdAt?: Date;
|
|
15
|
+
updatedAt?: Date;
|
|
16
|
+
user?: IUser;
|
|
17
|
+
society?: ISociety | null;
|
|
18
|
+
}
|
|
@@ -23,7 +23,6 @@ import { IUserBrand } from './IUserBrand.js';
|
|
|
23
23
|
import { ICollaboraterDetail } from './ICollaboraterDetail.js';
|
|
24
24
|
import { IUserTimeSlot } from './IUserTimeSlot.js';
|
|
25
25
|
import { IUserTeam } from './IUserTeam.js';
|
|
26
|
-
import { MfaMode } from '../../Enum/MfaMode.js';
|
|
27
26
|
|
|
28
27
|
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
|
|
29
28
|
type isAny<T> = T | any;
|
|
@@ -51,7 +50,7 @@ export class IUser {
|
|
|
51
50
|
prefix?: string | null;
|
|
52
51
|
tokenLostPassword?: string | null;
|
|
53
52
|
twoFactorEnabled?: boolean | null;
|
|
54
|
-
|
|
53
|
+
|
|
55
54
|
lastConnection?: Date | null;
|
|
56
55
|
beforeLastConnection?: Date | null;
|
|
57
56
|
active?: boolean | null;
|
package/ts/types/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ export * from './Interface/models/ICallHistory.js';
|
|
|
3
3
|
export * from './Interface/models/IBusinessLineUser.js';
|
|
4
4
|
export * from './Interface/models/IVisualizedInformation.js';
|
|
5
5
|
export * from './Interface/models/IApiError.js';
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
export * from './Interface/models/ISocietyCreationCheckout.js';
|
|
8
8
|
export * from './Interface/models/ISms.js';
|
|
9
9
|
export * from './Interface/models/IAccessToken.js';
|
|
@@ -62,6 +62,7 @@ export * from './Interface/models/IExerciceComment.js';
|
|
|
62
62
|
export * from './Interface/models/IExercice.js';
|
|
63
63
|
export * from './Interface/models/IExercicePrestation.js';
|
|
64
64
|
export * from './Interface/models/IExercicePrestationOffer.js';
|
|
65
|
+
export * from './Interface/models/IExternalAuthenticationLink.js';
|
|
65
66
|
export * from './Interface/models/IFileType.js';
|
|
66
67
|
export * from './Interface/models/IFile.js';
|
|
67
68
|
export * from './Interface/models/IFiscalRegime.js';
|
|
@@ -312,9 +313,9 @@ export * from './Enum/Template.js';
|
|
|
312
313
|
export * from './Enum/AutomaticRegistration.js';
|
|
313
314
|
export * from './Enum/IntermediateManagementRebate.js';
|
|
314
315
|
export * from './Enum/Das.js';
|
|
315
|
-
|
|
316
|
+
|
|
316
317
|
export * from './Enum/SocietyCreationCheckoutStatus.js';
|
|
317
|
-
|
|
318
|
+
|
|
318
319
|
export * from './Enum/ChangeLog.js';
|
|
319
320
|
export * from './Enum/VisualizedInformation.js';
|
|
320
321
|
export * from './Enum/NafCode.js';
|
|
@@ -540,6 +541,7 @@ export * from './Enum/UsersHistory.js';
|
|
|
540
541
|
export * from './Enum/UrgencyLevel.js';
|
|
541
542
|
export * from './Enum/Formalism.js';
|
|
542
543
|
export * from './Enum/Kyc.js';
|
|
544
|
+
export * from './Enum/ExternalAuthenticationLinkPurpose.js';
|
|
543
545
|
|
|
544
546
|
// Interfaces API
|
|
545
547
|
export * from './Interface/api/accountingTransaction/Create.js';
|
|
@@ -1048,7 +1050,7 @@ export * from './Interface/api/changelog/Create.js';
|
|
|
1048
1050
|
export * from './Interface/api/authentification/ReadAuthenticateCollaborater.js';
|
|
1049
1051
|
export * from './Interface/api/authentification/ResetPassword.js';
|
|
1050
1052
|
export * from './Interface/api/authentification/ForgotPassword.js';
|
|
1051
|
-
|
|
1053
|
+
|
|
1052
1054
|
export * from './Interface/api/society/Export.js';
|
|
1053
1055
|
export * from './Interface/api/society/State.js';
|
|
1054
1056
|
export * from './Interface/api/businessSector/Create.js';
|
|
@@ -1079,8 +1081,7 @@ export * from './Interface/api/expertAnnuary/Query.js';
|
|
|
1079
1081
|
export * from './Interface/api/brevo/BrevoElement.js';
|
|
1080
1082
|
export * from './Interface/api/brevo/Read.js';
|
|
1081
1083
|
export * from './Interface/api/brevo/EmailSendOptions.dto.js';
|
|
1082
|
-
|
|
1083
|
-
export * from './Interface/api/authentification/SetMobileApprovalDto.js';
|
|
1084
|
+
|
|
1084
1085
|
export * from './Interface/api/mfa/SetupInit.js';
|
|
1085
1086
|
export * from './Interface/api/mfa/VerifyCode.js';
|
|
1086
1087
|
export * from './Interface/api/mfa/SetupVerify.js';
|
|
@@ -1203,9 +1204,10 @@ export * from './Interface/api/bankAccount/Benchmark.js';
|
|
|
1203
1204
|
export * from './Interface/api/docoon/Query.js';
|
|
1204
1205
|
export * from './Interface/api/docoon/Read.js';
|
|
1205
1206
|
export * from './Interface/api/docoon/Create.js';
|
|
1206
|
-
|
|
1207
|
+
|
|
1207
1208
|
export * from './Interface/api/formalism/Create.js';
|
|
1208
1209
|
export * from './Interface/api/authentification/ProviderAuthDto.js';
|
|
1210
|
+
export * from './Interface/api/authentification/ExchangeExternalAuthenticationLink.js';
|
|
1209
1211
|
export * from './Interface/api/kyc/Create.js';
|
|
1210
1212
|
export * from './Interface/api/kyc/Read.js';
|
|
1211
1213
|
export * from './Interface/api/kyc/kyc.js';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource.js';
|
|
2
|
-
import { ILoginApprovalStatusResponse } from '../../types/Interface/api/authentification/loginApproval.js';
|
|
3
|
-
export declare class LoginApproval extends Resource {
|
|
4
|
-
approve(requestId: string, deviceId: string): Promise<{
|
|
5
|
-
message: string;
|
|
6
|
-
status: string;
|
|
7
|
-
}>;
|
|
8
|
-
deny(requestId: string, 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,gBAAgB,CAAC;AAC1C,OAAO,EAAE,4BAA4B,EAAE,MAAM,6DAA6D,CAAC;AAE3G,qBAAa,aAAc,SAAQ,QAAQ;IACzC,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAI1F,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAIvF,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,16 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource.js';
|
|
2
|
-
export class LoginApproval extends Resource {
|
|
3
|
-
approve(requestId, deviceId) {
|
|
4
|
-
return this.axios.$post(`/auth/approvals/${requestId}/approve`, { deviceId });
|
|
5
|
-
}
|
|
6
|
-
deny(requestId, deviceId) {
|
|
7
|
-
return this.axios.$post(`/auth/approvals/${requestId}/deny`, { deviceId });
|
|
8
|
-
}
|
|
9
|
-
getStatus(requestId) {
|
|
10
|
-
return this.axios.$get(`/auth/approvals/${requestId}/status`);
|
|
11
|
-
}
|
|
12
|
-
cleanup() {
|
|
13
|
-
return this.axios.$post('/auth/approvals/cleanup');
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=LoginApproval.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoginApproval.js","sourceRoot":"","sources":["../../../ts/api/resources/LoginApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,OAAO,CAAC,SAAiB,EAAE,QAAgB;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mBAAmB,SAAS,UAAU,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;IAChF,CAAC;IAED,IAAI,CAAC,SAAiB,EAAE,QAAgB;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mBAAmB,SAAS,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC7E,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","sourcesContent":["import { Resource } from '../Resource.js';\nimport { ILoginApprovalStatusResponse } from '../../types/Interface/api/authentification/loginApproval.js';\n\nexport class LoginApproval extends Resource {\n approve(requestId: string, deviceId: string): Promise<{ message: string; status: string }> {\n return this.axios.$post(`/auth/approvals/${requestId}/approve`, { deviceId });\n }\n\n deny(requestId: string, deviceId: string): Promise<{ message: string; status: string }> {\n return this.axios.$post(`/auth/approvals/${requestId}/deny`, { 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,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Statuts possibles d'une demande d'approbation de connexion mobile
|
|
3
|
-
*/
|
|
4
|
-
export var LoginApprovalStatus;
|
|
5
|
-
(function (LoginApprovalStatus) {
|
|
6
|
-
/** En attente de validation par le mobile */
|
|
7
|
-
LoginApprovalStatus["PENDING"] = "pending";
|
|
8
|
-
/** Approuvée par l'utilisateur sur son mobile */
|
|
9
|
-
LoginApprovalStatus["APPROVED"] = "approved";
|
|
10
|
-
/** Refusée par l'utilisateur sur son mobile */
|
|
11
|
-
LoginApprovalStatus["DENIED"] = "denied";
|
|
12
|
-
/** Expirée (timeout dépassé sans action) */
|
|
13
|
-
LoginApprovalStatus["EXPIRED"] = "expired";
|
|
14
|
-
})(LoginApprovalStatus || (LoginApprovalStatus = {}));
|
|
15
|
-
//# 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,MAAM,CAAN,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,KAAnB,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,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Modes de double authentification disponibles
|
|
3
|
-
*/
|
|
4
|
-
export var MfaMode;
|
|
5
|
-
(function (MfaMode) {
|
|
6
|
-
/** Pas de MFA activée */
|
|
7
|
-
MfaMode["NONE"] = "none";
|
|
8
|
-
/** Authentification via code TOTP (Google Authenticator, etc.) */
|
|
9
|
-
MfaMode["TOTP"] = "totp";
|
|
10
|
-
/** Validation via notification sur l'application mobile */
|
|
11
|
-
MfaMode["MOBILE_APPROVAL"] = "mobile_approval";
|
|
12
|
-
})(MfaMode || (MfaMode = {}));
|
|
13
|
-
//# 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,MAAM,CAAN,IAAY,OAOX;AAPD,WAAY,OAAO;IACjB,yBAAyB;IACzB,wBAAa,CAAA;IACb,kEAAkE;IAClE,wBAAa,CAAA;IACb,2DAA2D;IAC3D,8CAAmC,CAAA;AACrC,CAAC,EAPW,OAAO,KAAP,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FinalizeMobileApprovalDto.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/authentification/FinalizeMobileApprovalDto.ts"],"names":[],"mappings":"AAEA,qBAAa,yBAAyB;IAEpC,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FinalizeMobileApprovalDto.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/authentification/FinalizeMobileApprovalDto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,MAAM,OAAO,yBAAyB;IAEpC,SAAS,CAAS;CACnB;AADC;IADC,QAAQ,EAAE;;4DACO","sourcesContent":["import { IsString } from 'class-validator';\n\nexport class FinalizeMobileApprovalDto {\n @IsString()\n requestId: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SetMobileApprovalDto.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/authentification/SetMobileApprovalDto.ts"],"names":[],"mappings":"AAGA,qBAAa,oBAAoB;IAE/B,MAAM,EAAE,MAAM,CAAC;IAIf,MAAM,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -1,25 +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 { IsBoolean, IsInt } from 'class-validator';
|
|
11
|
-
import { ToBoolean } from '../../../../utils/transforms/boolean.transform.js';
|
|
12
|
-
export class SetMobileApprovalDto {
|
|
13
|
-
userId;
|
|
14
|
-
enable;
|
|
15
|
-
}
|
|
16
|
-
__decorate([
|
|
17
|
-
IsInt(),
|
|
18
|
-
__metadata("design:type", Number)
|
|
19
|
-
], SetMobileApprovalDto.prototype, "userId", void 0);
|
|
20
|
-
__decorate([
|
|
21
|
-
IsBoolean(),
|
|
22
|
-
ToBoolean(),
|
|
23
|
-
__metadata("design:type", Boolean)
|
|
24
|
-
], SetMobileApprovalDto.prototype, "enable", void 0);
|
|
25
|
-
//# sourceMappingURL=SetMobileApprovalDto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SetMobileApprovalDto.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/authentification/SetMobileApprovalDto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,mDAAmD,CAAC;AAE9E,MAAM,OAAO,oBAAoB;IAE/B,MAAM,CAAS;IAIf,MAAM,CAAU;CACjB;AALC;IADC,KAAK,EAAE;;oDACO;AAIf;IAFC,SAAS,EAAE;IACX,SAAS,EAAE;;oDACI","sourcesContent":["import { IsBoolean, IsInt } from 'class-validator';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform.js';\n\nexport class SetMobileApprovalDto {\n @IsInt()\n userId: number;\n\n @IsBoolean()\n @ToBoolean()\n enable: boolean;\n}\n"]}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { LoginApprovalStatus } from '../../../Enum/LoginApprovalStatus.js';
|
|
2
|
-
/**
|
|
3
|
-
* Payload de l'événement socket envoyé au mobile lors d'une demande de connexion
|
|
4
|
-
*/
|
|
5
|
-
export declare class 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
|
-
export declare class IApproveOrDenyResponse {
|
|
20
|
-
message: string;
|
|
21
|
-
status: LoginApprovalStatus;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Payload de l'événement socket envoyé au Web lors d'un changement de statut
|
|
25
|
-
*/
|
|
26
|
-
export declare class ILoginApprovalStatusEvent {
|
|
27
|
-
/** ID de la demande */
|
|
28
|
-
requestId: string;
|
|
29
|
-
/** Nouveau statut */
|
|
30
|
-
status: LoginApprovalStatus;
|
|
31
|
-
/** Date de la transition */
|
|
32
|
-
timestamp: Date;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Réponse renvoyée au Web lorsque mobile MFA est requis
|
|
36
|
-
*/
|
|
37
|
-
export declare class ILoginApprovalResponse {
|
|
38
|
-
/** Indique qu'une validation mobile est nécessaire */
|
|
39
|
-
requiresMobileApproval: true;
|
|
40
|
-
/** ID de la demande pour polling/tracking */
|
|
41
|
-
requestId: string;
|
|
42
|
-
/** Date d'expiration de la demande */
|
|
43
|
-
expiresAt: Date;
|
|
44
|
-
/** ID utilisateur */
|
|
45
|
-
userId: number;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Réponse du statut d'une demande d'approbation
|
|
49
|
-
*/
|
|
50
|
-
export declare class ILoginApprovalStatusResponse {
|
|
51
|
-
/** ID de la demande */
|
|
52
|
-
requestId: string;
|
|
53
|
-
/** Statut actuel */
|
|
54
|
-
status: LoginApprovalStatus;
|
|
55
|
-
/** Date d'expiration */
|
|
56
|
-
expiresAt: Date;
|
|
57
|
-
/** Token JWT si status = approved */
|
|
58
|
-
token?: string;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* DTO pour approuver/refuser une demande depuis le mobile
|
|
62
|
-
*/
|
|
63
|
-
export declare class IApproveOrDenyRequest {
|
|
64
|
-
deviceId: string;
|
|
65
|
-
}
|
|
66
|
-
//# 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,sCAAsC,CAAC;AAI3E;;GAEG;AACH,qBAAa,0BAA0B;IACrC,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,qBAAa,sBAAsB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,mBAAmB,CAAC;CAC7B;AAED;;GAEG;AACH,qBAAa,yBAAyB;IACpC,uBAAuB;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,4BAA4B;IAC5B,SAAS,EAAE,IAAI,CAAC;CACjB;AAED;;GAEG;AACH,qBAAa,sBAAsB;IACjC,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,qBAAa,4BAA4B;IACvC,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,qBAAa,qBAAqB;IAGhC,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|