UNPKG

@altostra/core

Version:

Core library for shared types and logic

15 lines (14 loc) 466 B
import type { Maybe } from "../../../common/Maybe"; import type { JwtValidationResult } from "../../../jwt"; import type { Organization, Owner, User } from "../Models/Owner"; export interface IUsersRepository { getUserInfo(user: User): Promise<Maybe<UserInfo>>; getOwner(jwt: JwtValidationResult): Promise<Owner>; } export interface UserInfo { userId: string; name: string; email: string; organization?: Organization; fullName: string; }