mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 11:33:04 +00:00
remove normalized models part 1
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import { autoserialize, deserialize } from 'cerialize';
|
||||
import { resourceType } from '../../cache/builders/build-decorators';
|
||||
import { HALLink } from '../../shared/hal-link.model';
|
||||
import { ConfigObject } from './config.model';
|
||||
import { SectionsType } from '../../../submission/sections/sections-type';
|
||||
import { ResourceType } from '../../shared/resource-type';
|
||||
@@ -10,27 +13,40 @@ export interface SubmissionSectionVisibility {
|
||||
other: any
|
||||
}
|
||||
|
||||
@resourceType(SubmissionSectionModel.type)
|
||||
export class SubmissionSectionModel extends ConfigObject {
|
||||
static type = new ResourceType('submissionsection');
|
||||
|
||||
/**
|
||||
* The header for this section
|
||||
*/
|
||||
@autoserialize
|
||||
header: string;
|
||||
|
||||
/**
|
||||
* A boolean representing if this submission section is the mandatory or not
|
||||
*/
|
||||
@autoserialize
|
||||
mandatory: boolean;
|
||||
|
||||
/**
|
||||
* A string representing the kind of section object
|
||||
*/
|
||||
@autoserialize
|
||||
sectionType: SectionsType;
|
||||
|
||||
/**
|
||||
* The [SubmissionSectionVisibility] object for this section
|
||||
*/
|
||||
visibility: SubmissionSectionVisibility
|
||||
@autoserialize
|
||||
visibility: SubmissionSectionVisibility;
|
||||
|
||||
/**
|
||||
* The HALLinks for this SubmissionSectionModel
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
self: HALLink;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user