@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ILoginApproval.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ILoginApproval.ts"],"names":[],"mappings":"","sourcesContent":["import { LoginApprovalStatus } from '../../Enum/LoginApprovalStatus';\n\n/**\n * Interface représentant une demande d'approbation de connexion mobile\n */\nexport interface ILoginApproval {\n /** Identifiant unique (UUID) */\n id: string;\n /** ID de l'utilisateur demandant la connexion */\n idUser: number;\n /** Statut actuel de la demande */\n status: LoginApprovalStatus;\n /** Date d'expiration de la demande (généralement 2-3 min après création) */\n expiresAt: Date;\n /** Date d'approbation (si status = approved) */\n approvedAt?: Date;\n /** Date de refus (si status = denied) */\n deniedAt?: Date;\n /** Device ID du mobile ayant approuvé/refusé */\n deviceIdUsed?: string;\n /** IP de la connexion Web à l'origine de la demande */\n ip?: string;\n /** User-Agent du navigateur Web */\n userAgent?: string;\n /** Métadonnées additionnelles (géoloc, risk score, etc.) */\n metadata?: Record<string, any>;\n /** Date de création */\n createdAt: Date;\n /** Date de mise à jour */\n updatedAt: Date;\n}\n"]}
|
|
@@ -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,16 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
export class LoginApproval extends Resource {
|
|
3
|
-
approve(requestId, userId, deviceId) {
|
|
4
|
-
return this.axios.$post(`/auth/approvals/${requestId}/approve`, { userId, deviceId });
|
|
5
|
-
}
|
|
6
|
-
deny(requestId, userId, deviceId) {
|
|
7
|
-
return this.axios.$post(`/auth/approvals/${requestId}/deny`, { userId, 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,aAAa,CAAC;AAGvC,MAAM,OAAO,aAAc,SAAQ,QAAQ;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","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,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,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ILoginApproval.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ILoginApproval.ts"],"names":[],"mappings":"","sourcesContent":["import { LoginApprovalStatus } from '../../Enum/LoginApprovalStatus';\n\n/**\n * Interface représentant une demande d'approbation de connexion mobile\n */\nexport interface ILoginApproval {\n /** Identifiant unique (UUID) */\n id: string;\n /** ID de l'utilisateur demandant la connexion */\n idUser: number;\n /** Statut actuel de la demande */\n status: LoginApprovalStatus;\n /** Date d'expiration de la demande (généralement 2-3 min après création) */\n expiresAt: Date;\n /** Date d'approbation (si status = approved) */\n approvedAt?: Date;\n /** Date de refus (si status = denied) */\n deniedAt?: Date;\n /** Device ID du mobile ayant approuvé/refusé */\n deviceIdUsed?: string;\n /** IP de la connexion Web à l'origine de la demande */\n ip?: string;\n /** User-Agent du navigateur Web */\n userAgent?: string;\n /** Métadonnées additionnelles (géoloc, risk score, etc.) */\n metadata?: Record<string, any>;\n /** Date de création */\n createdAt: Date;\n /** Date de mise à jour */\n updatedAt: Date;\n}\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
import { ILoginApprovalStatusResponse } from '../../types/Interface/api/authentification/loginApproval';
|
|
3
|
-
|
|
4
|
-
export class LoginApproval extends Resource {
|
|
5
|
-
approve(requestId: string, userId: number, deviceId: string): Promise<{ message: string; status: string }> {
|
|
6
|
-
return this.axios.$post(`/auth/approvals/${requestId}/approve`, { userId, deviceId });
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
deny(requestId: string, userId: number, deviceId: string): Promise<{ message: string; status: string }> {
|
|
10
|
-
return this.axios.$post(`/auth/approvals/${requestId}/deny`, { userId, deviceId });
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
getStatus(requestId: string): Promise<ILoginApprovalStatusResponse> {
|
|
14
|
-
return this.axios.$get(`/auth/approvals/${requestId}/status`);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
cleanup(): Promise<{ deleted: number; message: string }> {
|
|
18
|
-
return this.axios.$post('/auth/approvals/cleanup');
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Statuts possibles d'une demande d'approbation de connexion mobile
|
|
3
|
-
*/
|
|
4
|
-
export 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
|
-
}
|
package/ts/types/Enum/MfaMode.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Modes de double authentification disponibles
|
|
3
|
-
*/
|
|
4
|
-
export 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
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { LoginApprovalStatus } from '../../../Enum/LoginApprovalStatus';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Payload de l'événement socket envoyé au mobile lors d'une demande de connexion
|
|
5
|
-
*/
|
|
6
|
-
export interface ILoginApprovalRequestEvent {
|
|
7
|
-
/** ID unique de la demande */
|
|
8
|
-
requestId: string;
|
|
9
|
-
/** Date d'expiration */
|
|
10
|
-
expiresAt: Date;
|
|
11
|
-
/** ID de l'utilisateur */
|
|
12
|
-
userId: number;
|
|
13
|
-
/** Métadonnées (IP, navigateur, localisation) */
|
|
14
|
-
metadata?: {
|
|
15
|
-
ip?: string;
|
|
16
|
-
userAgent?: string;
|
|
17
|
-
location?: string;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Payload de l'événement socket envoyé au Web lors d'un changement de statut
|
|
23
|
-
*/
|
|
24
|
-
export interface ILoginApprovalStatusEvent {
|
|
25
|
-
/** ID de la demande */
|
|
26
|
-
requestId: string;
|
|
27
|
-
/** Nouveau statut */
|
|
28
|
-
status: LoginApprovalStatus;
|
|
29
|
-
/** Date de la transition */
|
|
30
|
-
timestamp: Date;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Réponse renvoyée au Web lorsque mobile MFA est requis
|
|
35
|
-
*/
|
|
36
|
-
export interface ILoginApprovalResponse {
|
|
37
|
-
/** Indique qu'une validation mobile est nécessaire */
|
|
38
|
-
requiresMobileApproval: true;
|
|
39
|
-
/** ID de la demande pour polling/tracking */
|
|
40
|
-
requestId: string;
|
|
41
|
-
/** Date d'expiration de la demande */
|
|
42
|
-
expiresAt: Date;
|
|
43
|
-
/** ID utilisateur */
|
|
44
|
-
userId: number;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Réponse du statut d'une demande d'approbation
|
|
49
|
-
*/
|
|
50
|
-
export interface 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
|
-
/**
|
|
62
|
-
* DTO pour approuver/refuser une demande depuis le mobile
|
|
63
|
-
*/
|
|
64
|
-
export interface IApproveOrDenyRequest {
|
|
65
|
-
/** ID de la demande */
|
|
66
|
-
requestId: string;
|
|
67
|
-
/** Device ID du mobile (pour audit) */
|
|
68
|
-
deviceId: string;
|
|
69
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { LoginApprovalStatus } from '../../Enum/LoginApprovalStatus';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Interface représentant une demande d'approbation de connexion mobile
|
|
5
|
-
*/
|
|
6
|
-
export interface ILoginApproval {
|
|
7
|
-
/** Identifiant unique (UUID) */
|
|
8
|
-
id: string;
|
|
9
|
-
/** ID de l'utilisateur demandant la connexion */
|
|
10
|
-
idUser: number;
|
|
11
|
-
/** Statut actuel de la demande */
|
|
12
|
-
status: LoginApprovalStatus;
|
|
13
|
-
/** Date d'expiration de la demande (généralement 2-3 min après création) */
|
|
14
|
-
expiresAt: Date;
|
|
15
|
-
/** Date d'approbation (si status = approved) */
|
|
16
|
-
approvedAt?: Date;
|
|
17
|
-
/** Date de refus (si status = denied) */
|
|
18
|
-
deniedAt?: Date;
|
|
19
|
-
/** Device ID du mobile ayant approuvé/refusé */
|
|
20
|
-
deviceIdUsed?: string;
|
|
21
|
-
/** IP de la connexion Web à l'origine de la demande */
|
|
22
|
-
ip?: string;
|
|
23
|
-
/** User-Agent du navigateur Web */
|
|
24
|
-
userAgent?: string;
|
|
25
|
-
/** Métadonnées additionnelles (géoloc, risk score, etc.) */
|
|
26
|
-
metadata?: Record<string, any>;
|
|
27
|
-
/** Date de création */
|
|
28
|
-
createdAt: Date;
|
|
29
|
-
/** Date de mise à jour */
|
|
30
|
-
updatedAt: Date;
|
|
31
|
-
}
|