import { Entity, model, property } from '@loopback/repository'; import { IAuthUser } from 'loopback4-authentication'; @model() export class AuthPayLoad extends Entity implements IAuthUser { @property({ type: 'string', default: "", }) accountId?: string; @property({ type: 'string', default: null, }) accountName?: string; @property({ type: 'string', default: null, }) domainName?: string; @property({ type: 'string', required: true, }) userId: string; @property({ type: 'string', required: true, }) userEmail: string; @property({ type: 'string', required: true, }) username: string; @property({ type: 'number', required: true, }) roleId: number; @property({ type: 'string', required: true, }) roleName: string; @property({ type: 'array', itemType: 'string', required: true, }) permissions: string[]; @property({ type: 'boolean', required: true, }) isMicrosoftAvailable: boolean; @property({ type: 'boolean', required: true, }) isMicrosoftConnected: boolean; @property({ type: 'string', }) brandId?: string; @property({ type: 'string', }) brandName?: string; @property({ type: 'string', }) timeZone?: string; constructor(data?: Partial) { super(data); } } export interface AuthPayLoadRelations { // describe navigational properties here } export type AuthPayLoadWithRelations = AuthPayLoad & AuthPayLoadRelations;