import { KeyValueDTOOfStringAndString } from '@generated/swagger/oms-api';

export const TaskActionTypes = {
  OK: 'OK',
  NOK: 'NOK',
  UNKNOWN: 'UNKNOWN',
} as const;

export type TaskActionTypeType =
  (typeof TaskActionTypes)[keyof typeof TaskActionTypes];

export interface TaskActionType {
  type: TaskActionTypeType;
  taskId: number;
  receiptItemId?: number;
  updateTo?: Exclude<TaskActionTypeType, 'UNKNOWN'>;
  actions?: Array<KeyValueDTOOfStringAndString>;
}
