@accounts/types
Advanced tools
Comparing version 0.26.0-alpha.4 to 0.26.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,6 +20,1 @@ export * from './types/login-user-identity'; | ||
export * from './types/services/password/login-user'; | ||
export * from './types/authenticator/authenticator-service'; | ||
export * from './types/authenticator/authenticator'; | ||
export * from './types/authenticator/create-authenticator'; | ||
export * from './types/mfa-challenge/create-mfa-challenge'; | ||
export * from './types/mfa-challenge/mfa-challenge'; |
export interface ConnectionInformations { | ||
ip?: string; | ||
userAgent?: string; | ||
ip?: string | null; | ||
userAgent?: string | null; | ||
[key: string]: any; | ||
} |
@@ -5,5 +5,3 @@ import { User } from './user'; | ||
import { DatabaseInterfaceServicePassword } from './services/password/database-interface'; | ||
import { DatabaseInterfaceAuthenticators } from './authenticator/database-interface'; | ||
import { DatabaseInterfaceMfaChallenges } from './mfa-challenge/database-interface'; | ||
export interface DatabaseInterface<CustomUser extends User = User> extends DatabaseInterfaceSessions, DatabaseInterfaceServicePassword<CustomUser>, DatabaseInterfaceAuthenticators, DatabaseInterfaceMfaChallenges { | ||
export interface DatabaseInterface<CustomUser extends User = User> extends DatabaseInterfaceSessions, DatabaseInterfaceServicePassword<CustomUser> { | ||
findUserById(userId: string): Promise<CustomUser | null>; | ||
@@ -10,0 +8,0 @@ createUser(user: CreateUser): Promise<string>; |
@@ -6,6 +6,6 @@ export interface Session { | ||
valid: boolean; | ||
userAgent?: string; | ||
ip?: string; | ||
userAgent?: string | null; | ||
ip?: string | null; | ||
createdAt: string; | ||
updatedAt: string; | ||
} |
{ | ||
"name": "@accounts/types", | ||
"version": "0.26.0-alpha.4", | ||
"version": "0.26.0", | ||
"description": "Accounts-js Types", | ||
@@ -43,11 +43,11 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"tslib": "1.10.0" | ||
"tslib": "1.11.2" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "25.1.4", | ||
"@types/node": "13.9.8", | ||
"jest": "25.1.0", | ||
"rimraf": "3.0.0" | ||
"@types/jest": "25.2.1", | ||
"@types/node": "13.13.5", | ||
"jest": "26.0.1", | ||
"rimraf": "3.0.2" | ||
}, | ||
"gitHead": "df64531622ef97718abfe5ed5436873ddf58d164" | ||
"gitHead": "403bd2ea58bc1116c061c5dc1b6e203e20ce2f1b" | ||
} |
@@ -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,6 +20,1 @@ export * from './types/login-user-identity'; | ||
export * from './types/services/password/login-user'; | ||
export * from './types/authenticator/authenticator-service'; | ||
export * from './types/authenticator/authenticator'; | ||
export * from './types/authenticator/create-authenticator'; | ||
export * from './types/mfa-challenge/create-mfa-challenge'; | ||
export * from './types/mfa-challenge/mfa-challenge'; |
export interface ConnectionInformations { | ||
ip?: string; | ||
userAgent?: string; | ||
ip?: string | null; | ||
userAgent?: string | null; | ||
[key: string]: any; | ||
} |
@@ -5,10 +5,6 @@ import { User } from './user'; | ||
import { DatabaseInterfaceServicePassword } from './services/password/database-interface'; | ||
import { DatabaseInterfaceAuthenticators } from './authenticator/database-interface'; | ||
import { DatabaseInterfaceMfaChallenges } from './mfa-challenge/database-interface'; | ||
export interface DatabaseInterface<CustomUser extends User = User> | ||
extends DatabaseInterfaceSessions, | ||
DatabaseInterfaceServicePassword<CustomUser>, | ||
DatabaseInterfaceAuthenticators, | ||
DatabaseInterfaceMfaChallenges { | ||
DatabaseInterfaceServicePassword<CustomUser> { | ||
// Find user by identity fields | ||
@@ -15,0 +11,0 @@ findUserById(userId: string): Promise<CustomUser | null>; |
@@ -6,6 +6,6 @@ export interface Session { | ||
valid: boolean; | ||
userAgent?: string; | ||
ip?: string; | ||
userAgent?: string | null; | ||
ip?: string | null; | ||
createdAt: string; | ||
updatedAt: string; | ||
} |
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
53768
91
857
+ Addedtslib@1.11.2(transitive)
- Removedtslib@1.10.0(transitive)
Updatedtslib@1.11.2