aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/user/user-interface.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/user/user-interface.ts')
-rw-r--r--server/models/user/user-interface.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/models/user/user-interface.ts b/server/models/user/user-interface.ts
index 9bd3d2ebb..0b97a8f6d 100644
--- a/server/models/user/user-interface.ts
+++ b/server/models/user/user-interface.ts
@@ -2,14 +2,14 @@ import * as Sequelize from 'sequelize'
2import * as Promise from 'bluebird' 2import * as Promise from 'bluebird'
3 3
4// Don't use barrel, import just what we need 4// Don't use barrel, import just what we need
5import { User as FormatedUser } from '../../../shared/models/users/user.model' 5import { User as FormattedUser } from '../../../shared/models/users/user.model'
6import { UserRole } from '../../../shared/models/users/user-role.type' 6import { UserRole } from '../../../shared/models/users/user-role.type'
7import { ResultList } from '../../../shared/models/result-list.model' 7import { ResultList } from '../../../shared/models/result-list.model'
8 8
9export namespace UserMethods { 9export namespace UserMethods {
10 export type IsPasswordMatch = (this: UserInstance, password: string) => Promise<boolean> 10 export type IsPasswordMatch = (this: UserInstance, password: string) => Promise<boolean>
11 11
12 export type ToFormatedJSON = (this: UserInstance) => FormatedUser 12 export type ToFormattedJSON = (this: UserInstance) => FormattedUser
13 export type IsAdmin = (this: UserInstance) => boolean 13 export type IsAdmin = (this: UserInstance) => boolean
14 14
15 export type CountTotal = () => Promise<number> 15 export type CountTotal = () => Promise<number>
@@ -29,7 +29,7 @@ export namespace UserMethods {
29 29
30export interface UserClass { 30export interface UserClass {
31 isPasswordMatch: UserMethods.IsPasswordMatch, 31 isPasswordMatch: UserMethods.IsPasswordMatch,
32 toFormatedJSON: UserMethods.ToFormatedJSON, 32 toFormattedJSON: UserMethods.ToFormattedJSON,
33 isAdmin: UserMethods.IsAdmin, 33 isAdmin: UserMethods.IsAdmin,
34 34
35 countTotal: UserMethods.CountTotal, 35 countTotal: UserMethods.CountTotal,
@@ -55,7 +55,7 @@ export interface UserInstance extends UserClass, UserAttributes, Sequelize.Insta
55 updatedAt: Date 55 updatedAt: Date
56 56
57 isPasswordMatch: UserMethods.IsPasswordMatch 57 isPasswordMatch: UserMethods.IsPasswordMatch
58 toFormatedJSON: UserMethods.ToFormatedJSON 58 toFormattedJSON: UserMethods.ToFormattedJSON
59 isAdmin: UserMethods.IsAdmin 59 isAdmin: UserMethods.IsAdmin
60} 60}
61 61