src/profile/profile.interface.ts
Properties |
| userJwtPayload |
userJwtPayload:
|
Type : UserJwtPayload
|
import type {
BatchRegistry,
IOrder,
IOrderBookQuery,
RegistryName,
UserJwtPayload,
} from "src/common/interfaces";
import type { ModuleDto } from "src/module-manager/dto/module.dto";
import type {
FundWithInstrument,
InstrumentSubgraphAndDB,
} from "src/security/fund.interface";
import type { User } from "src/user/schemas/user.schema";
import { InvestorSanctionDto } from "./dto/investor-sanction.dto";
import { OnChainDataField } from "src/shared/onchainDataFields/entities/onChainDataField.entity";
export interface IOrderBook
extends Omit<IOrderBookQuery, "fund" | "instrument"> {
fund: FundWithInstrument;
instrument: InstrumentSubgraphAndDB;
}
export interface IOrderWithDbFundInstrument extends Omit<IOrder, "orderBook"> {
orderBook: IOrderBook;
}
export interface IUserProfile extends User {
orders: IOrderWithDbFundInstrument[];
}
export interface IAllowInvestor {
userJwtPayload: UserJwtPayload;
investorId: string;
}
export interface ISetInvestorRestriction extends IAllowInvestor {
instrumentId: string;
isRestricted: boolean;
}
export interface IUserModule extends ModuleDto {
userJwtPayload: UserJwtPayload;
}
export interface ISetRegistryDataFields {
registries: BatchRegistry[];
onchainFields: OnChainDataField[];
registryName: RegistryName;
userJwtPayload: UserJwtPayload;
}
export interface ISetSanction {
investorId: string;
investorSanction: InvestorSanctionDto;
userJwtPayload: UserJwtPayload;
}
export interface IDealerModuleEnableDisable extends IUserModule {
status: boolean;
}