@accounts/types
Advanced tools
Comparing version 0.30.0-alpha.1 to 0.30.0
@@ -10,3 +10,2 @@ export * from './types/database-interface'; | ||
export * from './types/login-result'; | ||
export * from './types/authentication-result'; | ||
export * from './types/impersonation-result'; | ||
@@ -21,7 +20,1 @@ export * from './types/login-user-identity'; | ||
export * from './types/services/password/login-user'; | ||
export * from './types/mfa/database-interface'; | ||
export * from './types/mfa/authenticator'; | ||
export * from './types/mfa/create-authenticator'; | ||
export * from './types/mfa/mfa-challenge'; | ||
export * from './types/mfa/create-mfa-challenge'; | ||
export * from './types/mfa/authenticator-service'; |
@@ -13,3 +13,2 @@ "use strict"; | ||
tslib_1.__exportStar(require("./types/login-result"), exports); | ||
tslib_1.__exportStar(require("./types/authentication-result"), exports); | ||
tslib_1.__exportStar(require("./types/impersonation-result"), exports); | ||
@@ -24,8 +23,2 @@ tslib_1.__exportStar(require("./types/login-user-identity"), exports); | ||
tslib_1.__exportStar(require("./types/services/password/login-user"), exports); | ||
tslib_1.__exportStar(require("./types/mfa/database-interface"), exports); | ||
tslib_1.__exportStar(require("./types/mfa/authenticator"), exports); | ||
tslib_1.__exportStar(require("./types/mfa/create-authenticator"), exports); | ||
tslib_1.__exportStar(require("./types/mfa/mfa-challenge"), exports); | ||
tslib_1.__exportStar(require("./types/mfa/create-mfa-challenge"), exports); | ||
tslib_1.__exportStar(require("./types/mfa/authenticator-service"), exports); | ||
//# sourceMappingURL=index.js.map |
import { User } from './user'; | ||
import { DatabaseInterface } from './database-interface'; | ||
import { ConnectionInformations } from './connection-informations'; | ||
export interface AuthenticationService<CustomUser extends User = User> { | ||
@@ -8,3 +7,3 @@ server: any; | ||
setStore(store: DatabaseInterface): void; | ||
authenticate(params: any, infos: ConnectionInformations): Promise<CustomUser | null>; | ||
authenticate(params: any): Promise<CustomUser | null>; | ||
} |
@@ -5,4 +5,3 @@ import { User } from './user'; | ||
import { DatabaseInterfaceServicePassword } from './services/password/database-interface'; | ||
import { DatabaseInterfaceMfa } from './mfa/database-interface'; | ||
export interface DatabaseInterface<CustomUser extends User = User> extends DatabaseInterfaceSessions, DatabaseInterfaceServicePassword<CustomUser>, DatabaseInterfaceMfa { | ||
export interface DatabaseInterface<CustomUser extends User = User> extends DatabaseInterfaceSessions, DatabaseInterfaceServicePassword<CustomUser> { | ||
findUserById(userId: string): Promise<CustomUser | null>; | ||
@@ -9,0 +8,0 @@ createUser(user: CreateUser): Promise<string>; |
@@ -6,4 +6,4 @@ import { EmailRecord } from './email-record'; | ||
id: string; | ||
services?: object; | ||
services?: Record<string, any>; | ||
deactivated: boolean; | ||
} |
{ | ||
"name": "@accounts/types", | ||
"version": "0.30.0-alpha.1", | ||
"version": "0.30.0", | ||
"description": "Accounts-js Types", | ||
@@ -47,11 +47,11 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"tslib": "2.0.1" | ||
"tslib": "2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "26.0.9", | ||
"@types/node": "14.0.27", | ||
"jest": "26.3.0", | ||
"@types/jest": "25.2.3", | ||
"@types/node": "14.0.14", | ||
"jest": "26.0.1", | ||
"rimraf": "3.0.2" | ||
}, | ||
"gitHead": "eb9750193707aecb771b63d29540a8b6c316ebe0" | ||
"gitHead": "a883d3b90c481e9c73a7655ef2aadac092fc6b0e" | ||
} |
@@ -10,3 +10,2 @@ export * from './types/database-interface'; | ||
export * from './types/login-result'; | ||
export * from './types/authentication-result'; | ||
export * from './types/impersonation-result'; | ||
@@ -21,7 +20,1 @@ export * from './types/login-user-identity'; | ||
export * from './types/services/password/login-user'; | ||
export * from './types/mfa/database-interface'; | ||
export * from './types/mfa/authenticator'; | ||
export * from './types/mfa/create-authenticator'; | ||
export * from './types/mfa/mfa-challenge'; | ||
export * from './types/mfa/create-mfa-challenge'; | ||
export * from './types/mfa/authenticator-service'; |
import { User } from './user'; | ||
import { DatabaseInterface } from './database-interface'; | ||
import { ConnectionInformations } from './connection-informations'; | ||
@@ -12,3 +11,3 @@ // TODO : Fix circular dependency for better type checking | ||
setStore(store: DatabaseInterface): void; | ||
authenticate(params: any, infos: ConnectionInformations): Promise<CustomUser | null>; | ||
authenticate(params: any): Promise<CustomUser | null>; | ||
} |
@@ -5,8 +5,6 @@ import { User } from './user'; | ||
import { DatabaseInterfaceServicePassword } from './services/password/database-interface'; | ||
import { DatabaseInterfaceMfa } from './mfa/database-interface'; | ||
export interface DatabaseInterface<CustomUser extends User = User> | ||
extends DatabaseInterfaceSessions, | ||
DatabaseInterfaceServicePassword<CustomUser>, | ||
DatabaseInterfaceMfa { | ||
DatabaseInterfaceServicePassword<CustomUser> { | ||
// Find user by identity fields | ||
@@ -13,0 +11,0 @@ findUserById(userId: string): Promise<CustomUser | null>; |
@@ -7,4 +7,4 @@ import { EmailRecord } from './email-record'; | ||
id: string; | ||
services?: object; | ||
services?: Record<string, any>; | ||
deactivated: boolean; | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21522
79
394
+ Addedtslib@2.0.0(transitive)
- Removedtslib@2.0.1(transitive)
Updatedtslib@2.0.0