lml-main
Version:
This is now a mono repository published into many standalone packages.
31 lines (30 loc) • 1.14 kB
TypeScript
import { JobIncidentOption } from '@lml/cosmo-redux-api';
export declare const SUBMIT_JOB_INCIDENT_FORM = "SUBMIT_JOB_INCIDENT_FORM";
export declare const SUBMIT_DELETE_JOB_INCIDENT_FORM = "SUBMIT_DELETE_JOB_INCIDENT_FORM";
export interface SubmitJobIncidentFormAction {
type: 'SUBMIT_JOB_INCIDENT_FORM';
jobRefId: string;
impact: JobIncidentOption;
reason: JobIncidentOption;
comment: string;
}
export interface SubmitDeleteJobIncidentFormAction {
type: 'SUBMIT_DELETE_JOB_INCIDENT_FORM';
jobId: string;
incidentId: string;
}
export declare type JobIncidentAction = SubmitJobIncidentFormAction | SubmitDeleteJobIncidentFormAction;
/**
* Send the job incident form data to the api
*
* @param formData
* @param jobRefId
*/
export declare const submitJobIncidentForm: (jobRefId: string, impact: JobIncidentOption, reason: JobIncidentOption, comment: string) => SubmitJobIncidentFormAction;
/**
* Submit the form for deleting a job incident
*
* @param jobId
* @param incidentId
*/
export declare const submitDeleteJobIncidentForm: (jobId: string, incidentId: string) => SubmitDeleteJobIncidentFormAction;