import { AutoCloseEntryStatus } from '../../../infrastructure/constants/timeTracking/autoCloseEntryStatus';

export type AutoCloseEntryResult = AutoCloseEntryResultCreated | AutoCloseEntryResultIgnoredOlderThanCurrent | AutoCloseEntryResultUnspecified;

export type AutoCloseEntryResultCreated = {
    index: number;
    entryId: string;
    status: typeof AutoCloseEntryStatus.AUTO_CLOSE_ENTRY_STATUS_CREATED;
};

export type AutoCloseEntryResultIgnoredOlderThanCurrent = {
    index: number;
    status: typeof AutoCloseEntryStatus.AUTO_CLOSE_ENTRY_STATUS_IGNORED_OLDER_THAN_CURRENT;
};

export type AutoCloseEntryResultUnspecified = {
    index: number;
    status: typeof AutoCloseEntryStatus.AUTO_CLOSE_ENTRY_STATUS_UNSPECIFIED;
};
