@@ -74,7 +74,6 @@ export type TokenObject = {
7474
7575export type User = {
7676 accessTokens : Array < TokenObject > ,
77- claimCodes : Array < string > ,
7877 created_at : Date ,
7978 id : string ,
8079 passwordHash : string ,
@@ -104,14 +103,11 @@ export type Repository<TModel> = {
104103} ;
105104
106105export type UserRepository = Repository < User > & {
107- addClaimCode ( userID : string , claimCode : string ) : Promise < User > ,
108106 createWithCredentials ( credentials : UserCredentials ) : Promise < User > ,
109107 deleteAccessToken ( user : User , accessToken : string ) : Promise < void > ,
110108 getByAccessToken ( accessToken : string ) : Promise < ?User > ,
111- getByClaimCode ( claimCode : string ) : Promise < ?User > ,
112109 getByUsername ( username : string ) : Promise < ?User > ,
113110 isUserNameInUse ( username : string ) : Promise < boolean > ,
114- removeClaimCode ( userID : string , claimCode : string ) : Promise < ?User > ,
115111 saveAccessToken ( userId : string , tokenObject : TokenObject ) : Promise < void > ,
116112 validateLogin ( username : string , password : string ) : Promise < User > ,
117113} ;
@@ -146,7 +142,6 @@ export type DeviceRepository = {
146142 functionArguments : Object ,
147143 ) : Promise < * > ,
148144 claimDevice ( deviceID : string , userID : string ) : Promise < DeviceAttributes > ,
149- generateClaimCode ( userID : string ) : Promise < string > ,
150145 flashBinary ( deviceID : string , files : File ) : Promise < * > ,
151146 flashKnownApp ( deviceID : string , userID : string , app : string ) : Promise < * > ,
152147 getAll ( userID : string ) : Promise < Array < Device >> ,
0 commit comments