import dayjs from 'dayjs/esm' ; import { IBankAccount } from 'app/entities/bank-account/bank-account.model' ; import { ILabel } from 'app/entities/label/label.model' ; export interface IOperation { id ? : number ; date ? : dayjs . Dayjs ; description ? : string | null ; amount ? : number ; bankAccount ? : IBankAccount | null ; labels ? : ILabel [ ] | null ; } export class Operation implements IOperation { constructor ( public id ? , public date ? , public description ? , public amount ? , public bankAccount ? , public labels ? ) { } } export function getOperationIdentifier ( operation ) { return operation . id ; }