forked from hazza/dspace-angular
55 lines
1.0 KiB
TypeScript
55 lines
1.0 KiB
TypeScript
import { WorkspaceitemSectionDataType } from '../../../core/submission/models/workspaceitem-sections.model';
|
|
import { SubmissionSectionError } from '../../objects/submission-section-error.model';
|
|
import { SectionsType } from '../sections-type';
|
|
|
|
/**
|
|
* An interface to represent section model
|
|
*/
|
|
export interface SectionDataObject {
|
|
|
|
/**
|
|
* The section configuration url
|
|
*/
|
|
config: string;
|
|
|
|
/**
|
|
* The section data object
|
|
*/
|
|
data: WorkspaceitemSectionDataType;
|
|
|
|
/**
|
|
* The list of the section's errors to show
|
|
*/
|
|
errorsToShow: SubmissionSectionError[];
|
|
|
|
/**
|
|
* The list of the section's errors detected by the server
|
|
*/
|
|
serverValidationErrors: SubmissionSectionError[];
|
|
|
|
/**
|
|
* The section header
|
|
*/
|
|
header: string;
|
|
|
|
/**
|
|
* The section id
|
|
*/
|
|
id: string;
|
|
|
|
/**
|
|
* A boolean representing if this section is mandatory
|
|
*/
|
|
mandatory: boolean;
|
|
|
|
/**
|
|
* The section type
|
|
*/
|
|
sectionType: SectionsType;
|
|
|
|
/**
|
|
* Eventually additional fields
|
|
*/
|
|
[propName: string]: any;
|
|
}
|