import { Injectable } from '@nestjs/common'; import { BaseUpdateStatusManager } from 'src/core/modules/domain/usecase/managers/base-update-status.manager'; import { SeasonPeriodEntity } from '../../entities/season-period.entity'; import { EventTopics, validateRelations, } from 'src/core/strings/constants/interface.constants'; import { SeasonPeriodModel } from '../../../data/models/season-period.model'; import { SeasonPeriodChangeStatusEvent } from '../../entities/event/season-period-change-status.event'; @Injectable() export class ConfirmSeasonPeriodManager extends BaseUpdateStatusManager { getResult(): string { return `Success active data ${this.result.id}`; } async validateProcess(): Promise { return; } async beforeProcess(): Promise { return; } async afterProcess(): Promise { return; } get validateRelations(): validateRelations[] { return []; } get entityTarget(): any { return SeasonPeriodModel; } get eventTopics(): EventTopics[] { return [ { topic: SeasonPeriodChangeStatusEvent, data: this.data, }, ]; } }