@alisdigital/types-library
Version:
TypeScript type definitions for Papilet ecosystem with session soft delete and event management features
62 lines (61 loc) • 1.32 kB
TypeScript
import { IListResponse } from "./base.response";
import { IProperty } from "./property.response";
export interface IUser {
id: string;
firstName: string;
lastName: string;
email: string;
password: string;
countryCode: string;
phoneNumber: string;
role: string;
address: string;
identityNumber: string;
ibanName: null | string;
iban: string;
bankName: string;
is2FAEnabled: boolean;
secretKey: null;
isActive: boolean;
createdAt: string;
updatedAt: string;
setting?: ISetting;
balance?: number;
consultant?: IUser;
}
interface ISetting {
id: string;
userId: string;
isOpen: boolean;
createdAt: string;
updatedAt: string;
}
export interface IUserActivity {
id: string;
userId: string;
activity: string;
ip: string;
location: string;
device: string;
browser: string;
os: string;
isError: boolean;
errorMessage: null;
createdAt: string;
updatedAt: string;
}
export interface IUsersResponse extends IListResponse {
users: IUser[];
}
export interface IUserResponse {
user: IUser;
properties: {
Property: IProperty;
}[];
amounts?: number;
balance?: number;
spending?: number;
withdraw?: number;
activity: IUserActivity[];
}
export {};