Fix overindented decorated properties

This commit is contained in:
Yury Bondarenko
2024-04-18 13:14:04 +02:00
parent eec052fd77
commit f1c25ee344
120 changed files with 578 additions and 575 deletions

View File

@@ -45,7 +45,10 @@
"error", "error",
2, 2,
{ {
"SwitchCase": 1 "SwitchCase": 1,
"ignoredNodes": [
"ClassBody.body > PropertyDefinition[decorators.length > 0] > .key"
]
} }
], ],
"max-classes-per-file": [ "max-classes-per-file": [

View File

@@ -114,21 +114,21 @@ export interface EPersonListActionConfig {
export class MembersListComponent implements OnInit, OnDestroy { export class MembersListComponent implements OnInit, OnDestroy {
@Input() @Input()
messagePrefix: string; messagePrefix: string;
@Input() @Input()
actionConfig: EPersonListActionConfig = { actionConfig: EPersonListActionConfig = {
add: { add: {
css: 'btn-outline-primary', css: 'btn-outline-primary',
disabled: false, disabled: false,
icon: 'fas fa-plus fa-fw', icon: 'fas fa-plus fa-fw',
}, },
remove: { remove: {
css: 'btn-outline-danger', css: 'btn-outline-danger',
disabled: false, disabled: false,
icon: 'fas fa-trash-alt fa-fw', icon: 'fas fa-trash-alt fa-fw',
}, },
}; };
/** /**
* EPeople being displayed in search result, initially all members, after search result of search * EPeople being displayed in search result, initially all members, after search result of search

View File

@@ -80,7 +80,7 @@ enum SubKey {
export class SubgroupsListComponent implements OnInit, OnDestroy { export class SubgroupsListComponent implements OnInit, OnDestroy {
@Input() @Input()
messagePrefix: string; messagePrefix: string;
/** /**
* Result of search groups, initially all groups * Result of search groups, initially all groups

View File

@@ -18,13 +18,13 @@ export class Itemfilter extends CacheableObject {
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
@autoserialize @autoserialize
id: string; id: string;
@deserialize @deserialize
_links: { _links: {
self: { self: {
href: string; href: string;
}; };

View File

@@ -5,9 +5,9 @@ import { autoserialize } from 'cerialize';
*/ */
export class NotifyServicePattern { export class NotifyServicePattern {
@autoserialize @autoserialize
pattern: string; pattern: string;
@autoserialize @autoserialize
constraint: string; constraint: string;
@autoserialize @autoserialize
automatic: string; automatic: string;
} }

View File

@@ -29,43 +29,43 @@ export class LdnService extends CacheableObject {
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
@autoserialize @autoserialize
id: number; id: number;
@deserializeAs('id') @deserializeAs('id')
uuid: string; uuid: string;
@autoserialize @autoserialize
name: string; name: string;
@autoserialize @autoserialize
description: string; description: string;
@autoserialize @autoserialize
url: string; url: string;
@autoserialize @autoserialize
score: number; score: number;
@autoserialize @autoserialize
enabled: boolean; enabled: boolean;
@autoserialize @autoserialize
ldnUrl: string; ldnUrl: string;
@autoserialize @autoserialize
lowerIp: string; lowerIp: string;
@autoserialize @autoserialize
upperIp: string; upperIp: string;
@autoserialize @autoserialize
notifyServiceInboundPatterns?: NotifyServicePattern[]; notifyServiceInboundPatterns?: NotifyServicePattern[];
@deserialize @deserialize
_links: { _links: {
self: { self: {
href: string; href: string;
}; };

View File

@@ -43,7 +43,7 @@ export class AdminNotifyDetailModalComponent {
* An event fired when the modal is closed * An event fired when the modal is closed
*/ */
@Output() @Output()
response = new EventEmitter<boolean>(); response = new EventEmitter<boolean>();
public isCoarMessageVisible = false; public isCoarMessageVisible = false;

View File

@@ -51,7 +51,7 @@ import { ThemedSearchComponent } from '../../../../shared/search/themed-search.c
export class AdminNotifyLogsResultComponent implements OnInit { export class AdminNotifyLogsResultComponent implements OnInit {
@Input() @Input()
defaultConfiguration: string; defaultConfiguration: string;
public selectedSearchConfig$: Observable<string>; public selectedSearchConfig$: Observable<string>;

View File

@@ -27,7 +27,7 @@ import { AdminNotifyMetricsRow } from './admin-notify-metrics.model';
export class AdminNotifyMetricsComponent { export class AdminNotifyMetricsComponent {
@Input() @Input()
boxesConfig: AdminNotifyMetricsRow[]; boxesConfig: AdminNotifyMetricsRow[];
private incomingConfiguration = 'NOTIFY.incoming'; private incomingConfiguration = 'NOTIFY.incoming';
private involvedItemsSuffix = 'involvedItems'; private involvedItemsSuffix = 'involvedItems';

View File

@@ -24,138 +24,138 @@ export class AdminNotifyMessage extends DSpaceObject {
* The type of the resource * The type of the resource
*/ */
@excludeFromEquals @excludeFromEquals
type = ADMIN_NOTIFY_MESSAGE; type = ADMIN_NOTIFY_MESSAGE;
/** /**
* The id of the message * The id of the message
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The id of the notification * The id of the notification
*/ */
@autoserialize @autoserialize
notificationId: string; notificationId: string;
/** /**
* The type of the notification * The type of the notification
*/ */
@autoserialize @autoserialize
notificationType: string; notificationType: string;
/** /**
* The type of the notification * The type of the notification
*/ */
@autoserialize @autoserialize
coarNotifyType: string; coarNotifyType: string;
/** /**
* The type of the activity * The type of the activity
*/ */
@autoserialize @autoserialize
activityStreamType: string; activityStreamType: string;
/** /**
* The object the message reply to * The object the message reply to
*/ */
@autoserialize @autoserialize
inReplyTo: string; inReplyTo: string;
/** /**
* The object the message relates to * The object the message relates to
*/ */
@autoserialize @autoserialize
object: string; object: string;
/** /**
* The name of the related item * The name of the related item
*/ */
@autoserialize @autoserialize
relatedItem: string; relatedItem: string;
/** /**
* The name of the related ldn service * The name of the related ldn service
*/ */
@autoserialize @autoserialize
ldnService: string; ldnService: string;
/** /**
* The context of the message * The context of the message
*/ */
@autoserialize @autoserialize
context: string; context: string;
/** /**
* The related COAR message * The related COAR message
*/ */
@autoserialize @autoserialize
message: string; message: string;
/** /**
* The attempts of the queue * The attempts of the queue
*/ */
@autoserialize @autoserialize
queueAttempts: number; queueAttempts: number;
/** /**
* Timestamp of the last queue attempt * Timestamp of the last queue attempt
*/ */
@autoserialize @autoserialize
queueLastStartTime: string; queueLastStartTime: string;
/** /**
* The type of the activity stream * The type of the activity stream
*/ */
@autoserialize @autoserialize
origin: number | string; origin: number | string;
/** /**
* The type of the activity stream * The type of the activity stream
*/ */
@autoserialize @autoserialize
target: number | string; target: number | string;
/** /**
* The label for the status of the queue * The label for the status of the queue
*/ */
@autoserialize @autoserialize
queueStatusLabel: string; queueStatusLabel: string;
/** /**
* The timeout of the queue * The timeout of the queue
*/ */
@autoserialize @autoserialize
queueTimeout: string; queueTimeout: string;
/** /**
* The status of the queue * The status of the queue
*/ */
@autoserialize @autoserialize
queueStatus: number; queueStatus: number;
/** /**
* Thumbnail link used when browsing items with showThumbs config enabled. * Thumbnail link used when browsing items with showThumbs config enabled.
*/ */
@autoserialize @autoserialize
thumbnail: string; thumbnail: string;
/** /**
* The observable pointing to the item itself * The observable pointing to the item itself
*/ */
@autoserialize @autoserialize
item: Observable<AdminNotifyMessage>; item: Observable<AdminNotifyMessage>;
/** /**
* The observable pointing to the access status of the item * The observable pointing to the access status of the item
*/ */
@autoserialize @autoserialize
accessStatus: Observable<AdminNotifyMessage>; accessStatus: Observable<AdminNotifyMessage>;
@deserialize @deserialize
_links: { _links: {
self: { self: {
href: string; href: string;
}; };

View File

@@ -36,14 +36,14 @@ export class AuthStatus implements CacheableObject {
* The unique identifier of this auth status * The unique identifier of this auth status
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The type for this AuthStatus * The type for this AuthStatus
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The UUID of this auth status * The UUID of this auth status
@@ -57,19 +57,19 @@ export class AuthStatus implements CacheableObject {
* True if REST API is up and running, should never return false * True if REST API is up and running, should never return false
*/ */
@autoserialize @autoserialize
okay: boolean; okay: boolean;
/** /**
* If the auth status represents an authenticated state * If the auth status represents an authenticated state
*/ */
@autoserialize @autoserialize
authenticated: boolean; authenticated: boolean;
/** /**
* The {@link HALLink}s for this AuthStatus * The {@link HALLink}s for this AuthStatus
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
eperson: HALLink; eperson: HALLink;
specialGroups: HALLink; specialGroups: HALLink;
@@ -80,32 +80,32 @@ export class AuthStatus implements CacheableObject {
* Will be undefined unless the eperson {@link HALLink} has been resolved. * Will be undefined unless the eperson {@link HALLink} has been resolved.
*/ */
@link(EPERSON) @link(EPERSON)
eperson?: Observable<RemoteData<EPerson>>; eperson?: Observable<RemoteData<EPerson>>;
/** /**
* The SpecialGroup of this auth status * The SpecialGroup of this auth status
* Will be undefined unless the SpecialGroup {@link HALLink} has been resolved. * Will be undefined unless the SpecialGroup {@link HALLink} has been resolved.
*/ */
@link(GROUP, true) @link(GROUP, true)
specialGroups?: Observable<RemoteData<PaginatedList<Group>>>; specialGroups?: Observable<RemoteData<PaginatedList<Group>>>;
/** /**
* True if the token is valid, false if there was no token or the token wasn't valid * True if the token is valid, false if there was no token or the token wasn't valid
*/ */
@autoserialize @autoserialize
token?: AuthTokenInfo; token?: AuthTokenInfo;
/** /**
* Authentication error if there was one for this status * Authentication error if there was one for this status
*/ */
// TODO should be refactored to use the RemoteData error // TODO should be refactored to use the RemoteData error
@autoserialize @autoserialize
error?: AuthError; error?: AuthError;
/** /**
* All authentication methods enabled at the backend * All authentication methods enabled at the backend
*/ */
@autoserialize @autoserialize
authMethods: AuthMethod[]; authMethods: AuthMethod[];
} }

View File

@@ -22,19 +22,19 @@ export class ShortLivedToken implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The value for this ShortLivedToken * The value for this ShortLivedToken
*/ */
@autoserializeAs('token') @autoserializeAs('token')
value: string; value: string;
/** /**
* The {@link HALLink}s for this ShortLivedToken * The {@link HALLink}s for this ShortLivedToken
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
}; };
} }

View File

@@ -3,9 +3,9 @@ import { autoserialize } from 'cerialize';
export class SelfLink { export class SelfLink {
@autoserialize @autoserialize
self: string; self: string;
@autoserialize @autoserialize
uuid: string; uuid: string;
} }

View File

@@ -25,19 +25,19 @@ export class BulkAccessConditionOptions extends ConfigObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
@autoserializeAs(String, 'name') @autoserializeAs(String, 'name')
uuid: string; uuid: string;
@autoserialize @autoserialize
id: string; id: string;
@autoserialize @autoserialize
itemAccessConditionOptions: AccessesConditionOption[]; itemAccessConditionOptions: AccessesConditionOption[];
@autoserialize @autoserialize
bitstreamAccessConditionOptions: AccessesConditionOption[]; bitstreamAccessConditionOptions: AccessesConditionOption[];
_links: { self: HALLink }; _links: { self: HALLink };
} }

View File

@@ -22,25 +22,25 @@ export class SubmissionAccessModel extends ConfigObject {
* A list of available item access conditions * A list of available item access conditions
*/ */
@autoserialize @autoserialize
accessConditionOptions: AccessesConditionOption[]; accessConditionOptions: AccessesConditionOption[];
/** /**
* Boolean that indicates whether the current item must be findable via search or browse. * Boolean that indicates whether the current item must be findable via search or browse.
*/ */
@autoserialize @autoserialize
discoverable: boolean; discoverable: boolean;
/** /**
* Boolean that indicates whether or not the user can change the discoverable flag. * Boolean that indicates whether or not the user can change the discoverable flag.
*/ */
@autoserialize @autoserialize
canChangeDiscoverable: boolean; canChangeDiscoverable: boolean;
/** /**
* The links to all related resources returned by the rest api. * The links to all related resources returned by the rest api.
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink self: HALLink
}; };

View File

@@ -23,20 +23,20 @@ export class SubmissionDefinitionModel extends ConfigObject {
* A boolean representing if this submission definition is the default or not * A boolean representing if this submission definition is the default or not
*/ */
@autoserialize @autoserialize
isDefault: boolean; isDefault: boolean;
/** /**
* A list of SubmissionSectionModel that are present in this submission definition * A list of SubmissionSectionModel that are present in this submission definition
*/ */
// TODO refactor using remotedata // TODO refactor using remotedata
@deserialize @deserialize
sections: PaginatedList<SubmissionSectionModel>; sections: PaginatedList<SubmissionSectionModel>;
/** /**
* The links to all related resources returned by the rest api. * The links to all related resources returned by the rest api.
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
collections: HALLink, collections: HALLink,
sections: HALLink sections: HALLink

View File

@@ -27,5 +27,5 @@ export class SubmissionFormModel extends ConfigObject {
* An array of [FormRowModel] that are present in this form * An array of [FormRowModel] that are present in this form
*/ */
@autoserialize @autoserialize
rows: FormRowModel[]; rows: FormRowModel[];
} }

View File

@@ -27,31 +27,31 @@ export class SubmissionSectionModel extends ConfigObject {
* The header for this section * The header for this section
*/ */
@autoserialize @autoserialize
header: string; header: string;
/** /**
* A boolean representing if this submission section is the mandatory or not * A boolean representing if this submission section is the mandatory or not
*/ */
@autoserialize @autoserialize
mandatory: boolean; mandatory: boolean;
/** /**
* A string representing the kind of section object * A string representing the kind of section object
*/ */
@autoserialize @autoserialize
sectionType: SectionsType; sectionType: SectionsType;
/** /**
* The [SubmissionSectionVisibility] object for this section * The [SubmissionSectionVisibility] object for this section
*/ */
@autoserialize @autoserialize
visibility: SubmissionSectionVisibility; visibility: SubmissionSectionVisibility;
/** /**
* The {@link HALLink}s for this SubmissionSectionModel * The {@link HALLink}s for this SubmissionSectionModel
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
config: HALLink; config: HALLink;
}; };

View File

@@ -27,22 +27,22 @@ export class SubmissionUploadModel extends ConfigObject {
* A list of available bitstream access conditions * A list of available bitstream access conditions
*/ */
@autoserialize @autoserialize
accessConditionOptions: AccessConditionOption[]; accessConditionOptions: AccessConditionOption[];
/** /**
* An object representing the configuration describing the bitstream metadata form * An object representing the configuration describing the bitstream metadata form
*/ */
@link(SUBMISSION_FORMS_TYPE) @link(SUBMISSION_FORMS_TYPE)
metadata?: Observable<RemoteData<SubmissionFormsModel>>; metadata?: Observable<RemoteData<SubmissionFormsModel>>;
@autoserialize @autoserialize
required: boolean; required: boolean;
@autoserialize @autoserialize
maxSize: number; maxSize: number;
@deserialize @deserialize
_links: { _links: {
metadata: HALLink metadata: HALLink
self: HALLink self: HALLink
}; };

View File

@@ -27,13 +27,13 @@ export abstract class ConfigObject implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The links to all related resources returned by the rest api. * The links to all related resources returned by the rest api.
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
[name: string]: HALLink [name: string]: HALLink
}; };

View File

@@ -73,13 +73,13 @@ export class PaginatedList<T> extends CacheableObject {
* The type of the list * The type of the list
*/ */
@excludeFromEquals @excludeFromEquals
type = PAGINATED_LIST; type = PAGINATED_LIST;
/** /**
* The type of objects in the list * The type of objects in the list
*/ */
@autoserialize @autoserialize
objectType?: ResourceType; objectType?: ResourceType;
/** /**
* The list of objects that represents the current page * The list of objects that represents the current page
@@ -90,13 +90,13 @@ export class PaginatedList<T> extends CacheableObject {
* the {@link PageInfo} object * the {@link PageInfo} object
*/ */
@autoserialize @autoserialize
pageInfo?: PageInfo; pageInfo?: PageInfo;
/** /**
* The {@link HALLink}s for this PaginatedList * The {@link HALLink}s for this PaginatedList
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
page: HALLink[]; page: HALLink[];
first?: HALLink; first?: HALLink;

View File

@@ -22,37 +22,37 @@ export class Root implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The url for the dspace UI * The url for the dspace UI
*/ */
@autoserialize @autoserialize
dspaceUI: string; dspaceUI: string;
/** /**
* The repository Name * The repository Name
*/ */
@autoserialize @autoserialize
dspaceName: string; dspaceName: string;
/** /**
* The url for the rest api * The url for the rest api
*/ */
@autoserialize @autoserialize
dspaceServer: string; dspaceServer: string;
/** /**
* The current DSpace version * The current DSpace version
*/ */
@autoserialize @autoserialize
dspaceVersion: string; dspaceVersion: string;
/** /**
* The {@link HALLink}s for the root object * The {@link HALLink}s for the root object
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
[k: string]: HALLink | HALLink[]; [k: string]: HALLink | HALLink[];
}; };

View File

@@ -9,13 +9,13 @@ import { DSpaceSerializer } from './dspace.serializer';
class TestModel implements HALResource { class TestModel implements HALResource {
@autoserialize @autoserialize
id: string; id: string;
@autoserialize @autoserialize
name: string; name: string;
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
parents: HALLink; parents: HALLink;
}; };

View File

@@ -48,7 +48,7 @@ export class Group extends DSpaceObject {
* The {@link HALLink}s for this Group * The {@link HALLink}s for this Group
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
subgroups: HALLink; subgroups: HALLink;
epersons: HALLink; epersons: HALLink;

View File

@@ -32,37 +32,37 @@ export class MetadataField extends ListableObject implements HALResource {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The identifier of this metadata field * The identifier of this metadata field
*/ */
@autoserialize @autoserialize
id: number; id: number;
/** /**
* The element of this metadata field * The element of this metadata field
*/ */
@autoserialize @autoserialize
element: string; element: string;
/** /**
* The qualifier of this metadata field * The qualifier of this metadata field
*/ */
@autoserialize @autoserialize
qualifier: string; qualifier: string;
/** /**
* The scope note of this metadata field * The scope note of this metadata field
*/ */
@autoserialize @autoserialize
scopeNote: string; scopeNote: string;
/** /**
* The {@link HALLink}s for this MetadataField * The {@link HALLink}s for this MetadataField
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
schema: HALLink schema: HALLink
}; };
@@ -72,7 +72,7 @@ export class MetadataField extends ListableObject implements HALResource {
* Will be undefined unless the schema {@link HALLink} has been resolved. * Will be undefined unless the schema {@link HALLink} has been resolved.
*/ */
@link(METADATA_SCHEMA) @link(METADATA_SCHEMA)
schema?: Observable<RemoteData<MetadataSchema>>; schema?: Observable<RemoteData<MetadataSchema>>;
/** /**
* Method to print this metadata field as a string without the schema * Method to print this metadata field as a string without the schema

View File

@@ -23,29 +23,29 @@ export class MetadataSchema extends ListableObject implements HALResource {
* The unique identifier for this metadata schema * The unique identifier for this metadata schema
*/ */
@autoserialize @autoserialize
id: number; id: number;
/** /**
* The object type * The object type
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* A unique prefix that defines this schema * A unique prefix that defines this schema
*/ */
@autoserialize @autoserialize
prefix: string; prefix: string;
/** /**
* The namespace of this metadata schema * The namespace of this metadata schema
*/ */
@autoserialize @autoserialize
namespace: string; namespace: string;
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
}; };

View File

@@ -24,26 +24,26 @@ export class SuggestionSource implements CacheableObject {
* The Suggestion Target id * The Suggestion Target id
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The total number of suggestions provided by Suggestion Target for * The total number of suggestions provided by Suggestion Target for
*/ */
@autoserialize @autoserialize
total: number; total: number;
/** /**
* The type of this ConfigObject * The type of this ConfigObject
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The links to all related resources returned by the rest api. * The links to all related resources returned by the rest api.
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
suggestiontargets: HALLink suggestiontargets: HALLink
}; };

View File

@@ -24,38 +24,38 @@ export class SuggestionTarget implements CacheableObject {
* The Suggestion Target id * The Suggestion Target id
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The Suggestion Target name to display * The Suggestion Target name to display
*/ */
@autoserialize @autoserialize
display: string; display: string;
/** /**
* The Suggestion Target source to display * The Suggestion Target source to display
*/ */
@autoserialize @autoserialize
source: string; source: string;
/** /**
* The total number of suggestions provided by Suggestion Target for * The total number of suggestions provided by Suggestion Target for
*/ */
@autoserialize @autoserialize
total: number; total: number;
/** /**
* The type of this ConfigObject * The type of this ConfigObject
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The links to all related resources returned by the rest api. * The links to all related resources returned by the rest api.
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
suggestions: HALLink, suggestions: HALLink,
target: HALLink target: HALLink

View File

@@ -38,57 +38,57 @@ export class Suggestion implements CacheableObject {
* The Suggestion id * The Suggestion id
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The Suggestion name to display * The Suggestion name to display
*/ */
@autoserialize @autoserialize
display: string; display: string;
/** /**
* The Suggestion source to display * The Suggestion source to display
*/ */
@autoserialize @autoserialize
source: string; source: string;
/** /**
* The Suggestion external source uri * The Suggestion external source uri
*/ */
@autoserialize @autoserialize
externalSourceUri: string; externalSourceUri: string;
/** /**
* The Total Score of the suggestion * The Total Score of the suggestion
*/ */
@autoserialize @autoserialize
score: string; score: string;
/** /**
* The total number of suggestions provided by Suggestion Target for * The total number of suggestions provided by Suggestion Target for
*/ */
@autoserialize @autoserialize
evidences: SuggestionEvidences; evidences: SuggestionEvidences;
/** /**
* All metadata of this suggestion object * All metadata of this suggestion object
*/ */
@excludeFromEquals @excludeFromEquals
@autoserializeAs(MetadataMapSerializer) @autoserializeAs(MetadataMapSerializer)
metadata: MetadataMap; metadata: MetadataMap;
/** /**
* The type of this ConfigObject * The type of this ConfigObject
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The links to all related resources returned by the rest api. * The links to all related resources returned by the rest api.
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
target: HALLink target: HALLink
}; };

View File

@@ -104,62 +104,62 @@ export class QualityAssuranceEventObject implements CacheableObject {
* The Quality Assurance event uuid inside DSpace * The Quality Assurance event uuid inside DSpace
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The universally unique identifier of this Quality Assurance event * The universally unique identifier of this Quality Assurance event
*/ */
@autoserializeAs(String, 'id') @autoserializeAs(String, 'id')
uuid: string; uuid: string;
/** /**
* The Quality Assurance event original id (ex.: the source archive OAI-PMH identifier) * The Quality Assurance event original id (ex.: the source archive OAI-PMH identifier)
*/ */
@autoserialize @autoserialize
originalId: string; originalId: string;
/** /**
* The title of the article to which the suggestion refers * The title of the article to which the suggestion refers
*/ */
@autoserialize @autoserialize
title: string; title: string;
/** /**
* Reliability of the suggestion (of the data inside 'message') * Reliability of the suggestion (of the data inside 'message')
*/ */
@autoserialize @autoserialize
trust: number; trust: number;
/** /**
* The timestamp Quality Assurance event was saved in DSpace * The timestamp Quality Assurance event was saved in DSpace
*/ */
@autoserialize @autoserialize
eventDate: string; eventDate: string;
/** /**
* The Quality Assurance event status (ACCEPTED, REJECTED, DISCARDED, PENDING) * The Quality Assurance event status (ACCEPTED, REJECTED, DISCARDED, PENDING)
*/ */
@autoserialize @autoserialize
status: string; status: string;
/** /**
* The suggestion data. Data may vary depending on the source * The suggestion data. Data may vary depending on the source
*/ */
@autoserialize @autoserialize
message: SourceQualityAssuranceEventMessageObject; message: SourceQualityAssuranceEventMessageObject;
/** /**
* The type of this ConfigObject * The type of this ConfigObject
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The links to all related resources returned by the rest api. * The links to all related resources returned by the rest api.
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
target: HALLink, target: HALLink,
related: HALLink related: HALLink
@@ -170,12 +170,12 @@ export class QualityAssuranceEventObject implements CacheableObject {
* Will be undefined unless the {@item HALLink} has been resolved. * Will be undefined unless the {@item HALLink} has been resolved.
*/ */
@link(ITEM) @link(ITEM)
target?: Observable<RemoteData<Item>>; target?: Observable<RemoteData<Item>>;
/** /**
* The related project for this Event * The related project for this Event
* Will be undefined unless the {@related HALLink} has been resolved. * Will be undefined unless the {@related HALLink} has been resolved.
*/ */
@link(ITEM) @link(ITEM)
related?: Observable<RemoteData<Item>>; related?: Observable<RemoteData<Item>>;
} }

View File

@@ -24,32 +24,32 @@ export class QualityAssuranceSourceObject implements CacheableObject {
* The Quality Assurance source id * The Quality Assurance source id
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The date of the last udate from Notifications * The date of the last udate from Notifications
*/ */
@autoserialize @autoserialize
lastEvent: string; lastEvent: string;
/** /**
* The total number of suggestions provided by Notifications for this source * The total number of suggestions provided by Notifications for this source
*/ */
@autoserialize @autoserialize
totalEvents: number; totalEvents: number;
/** /**
* The type of this ConfigObject * The type of this ConfigObject
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The links to all related resources returned by the rest api. * The links to all related resources returned by the rest api.
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
}; };
} }

View File

@@ -24,38 +24,38 @@ export class QualityAssuranceTopicObject implements CacheableObject {
* The Quality Assurance topic id * The Quality Assurance topic id
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The Quality Assurance topic name to display * The Quality Assurance topic name to display
*/ */
@autoserialize @autoserialize
name: string; name: string;
/** /**
* The date of the last udate from Notifications * The date of the last udate from Notifications
*/ */
@autoserialize @autoserialize
lastEvent: string; lastEvent: string;
/** /**
* The total number of suggestions provided by Notifications for this topic * The total number of suggestions provided by Notifications for this topic
*/ */
@autoserialize @autoserialize
totalEvents: number; totalEvents: number;
/** /**
* The type of this ConfigObject * The type of this ConfigObject
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The links to all related resources returned by the rest api. * The links to all related resources returned by the rest api.
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
}; };
} }

View File

@@ -23,49 +23,49 @@ export class OrcidHistory extends CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The identifier of this Orcid History record * The identifier of this Orcid History record
*/ */
@autoserialize @autoserialize
id: number; id: number;
/** /**
* The name of the related entity * The name of the related entity
*/ */
@autoserialize @autoserialize
entityName: string; entityName: string;
/** /**
* The identifier of the profileItem of this Orcid History record. * The identifier of the profileItem of this Orcid History record.
*/ */
@autoserialize @autoserialize
profileItemId: string; profileItemId: string;
/** /**
* The identifier of the entity related to this Orcid History record. * The identifier of the entity related to this Orcid History record.
*/ */
@autoserialize @autoserialize
entityId: string; entityId: string;
/** /**
* The type of the entity related to this Orcid History record. * The type of the entity related to this Orcid History record.
*/ */
@autoserialize @autoserialize
entityType: string; entityType: string;
/** /**
* The response status coming from ORCID api. * The response status coming from ORCID api.
*/ */
@autoserialize @autoserialize
status: number; status: number;
/** /**
* The putCode assigned by ORCID to the entity. * The putCode assigned by ORCID to the entity.
*/ */
@autoserialize @autoserialize
putCode: string; putCode: string;
/** /**
* The last send attempt timestamp. * The last send attempt timestamp.
@@ -86,7 +86,7 @@ export class OrcidHistory extends CacheableObject {
* The {@link HALLink}s for this Orcid History record * The {@link HALLink}s for this Orcid History record
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
}; };

View File

@@ -23,49 +23,49 @@ export class OrcidQueue extends CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The identifier of this Orcid Queue record * The identifier of this Orcid Queue record
*/ */
@autoserialize @autoserialize
id: number; id: number;
/** /**
* The record description. * The record description.
*/ */
@autoserialize @autoserialize
description: string; description: string;
/** /**
* The identifier of the profileItem of this Orcid Queue record. * The identifier of the profileItem of this Orcid Queue record.
*/ */
@autoserialize @autoserialize
profileItemId: string; profileItemId: string;
/** /**
* The identifier of the entity related to this Orcid Queue record. * The identifier of the entity related to this Orcid Queue record.
*/ */
@autoserialize @autoserialize
entityId: string; entityId: string;
/** /**
* The type of this Orcid Queue record. * The type of this Orcid Queue record.
*/ */
@autoserialize @autoserialize
recordType: string; recordType: string;
/** /**
* The operation related to this Orcid Queue record. * The operation related to this Orcid Queue record.
*/ */
@autoserialize @autoserialize
operation: string; operation: string;
/** /**
* The {@link HALLink}s for this Orcid Queue record * The {@link HALLink}s for this Orcid Queue record
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
}; };

View File

@@ -31,28 +31,28 @@ export class ResearcherProfile extends CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The identifier of this Researcher Profile * The identifier of this Researcher Profile
*/ */
@autoserialize @autoserialize
id: string; id: string;
@deserializeAs('id') @deserializeAs('id')
uuid: string; uuid: string;
/** /**
* The visibility of this Researcher Profile * The visibility of this Researcher Profile
*/ */
@autoserialize @autoserialize
visible: boolean; visible: boolean;
/** /**
* The {@link HALLink}s for this Researcher Profile * The {@link HALLink}s for this Researcher Profile
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
item: HALLink, item: HALLink,
eperson: HALLink eperson: HALLink
@@ -63,6 +63,6 @@ export class ResearcherProfile extends CacheableObject {
* Will be undefined unless the item {@link HALLink} has been resolved. * Will be undefined unless the item {@link HALLink} has been resolved.
*/ */
@link(ITEM) @link(ITEM)
item?: Observable<RemoteData<Item>>; item?: Observable<RemoteData<Item>>;
} }

View File

@@ -34,50 +34,50 @@ export class ResourcePolicy implements CacheableObject {
* The identifier for this Resource Policy * The identifier for this Resource Policy
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The name for this Resource Policy * The name for this Resource Policy
*/ */
@autoserialize @autoserialize
name: string; name: string;
/** /**
* The description for this Resource Policy * The description for this Resource Policy
*/ */
@autoserialize @autoserialize
description: string; description: string;
/** /**
* The classification or this Resource Policy * The classification or this Resource Policy
*/ */
@autoserialize @autoserialize
policyType: PolicyType; policyType: PolicyType;
/** /**
* The action that is allowed by this Resource Policy * The action that is allowed by this Resource Policy
*/ */
@autoserialize @autoserialize
action: ActionType; action: ActionType;
/** /**
* The first day of validity of the policy (format YYYY-MM-DD) * The first day of validity of the policy (format YYYY-MM-DD)
*/ */
@autoserialize @autoserialize
startDate: string; startDate: string;
/** /**
* The last day of validity of the policy (format YYYY-MM-DD) * The last day of validity of the policy (format YYYY-MM-DD)
*/ */
@autoserialize @autoserialize
endDate: string; endDate: string;
/** /**
* The object type * The object type
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The universally unique identifier for this Resource Policy * The universally unique identifier for this Resource Policy
@@ -91,7 +91,7 @@ export class ResourcePolicy implements CacheableObject {
* The {@link HALLink}s for this ResourcePolicy * The {@link HALLink}s for this ResourcePolicy
*/ */
@deserialize @deserialize
_links: { _links: {
eperson: HALLink, eperson: HALLink,
group: HALLink, group: HALLink,
self: HALLink, self: HALLink,
@@ -102,12 +102,12 @@ export class ResourcePolicy implements CacheableObject {
* Will be undefined unless the version {@link HALLink} has been resolved. * Will be undefined unless the version {@link HALLink} has been resolved.
*/ */
@link(EPERSON) @link(EPERSON)
eperson?: Observable<RemoteData<EPerson>>; eperson?: Observable<RemoteData<EPerson>>;
/** /**
* The group linked by this resource policy * The group linked by this resource policy
* Will be undefined unless the version {@link HALLink} has been resolved. * Will be undefined unless the version {@link HALLink} has been resolved.
*/ */
@link(GROUP) @link(GROUP)
group?: Observable<RemoteData<Group>>; group?: Observable<RemoteData<Group>>;
} }

View File

@@ -31,10 +31,10 @@ export class Authorization extends DSpaceObject {
* Unique identifier for this authorization * Unique identifier for this authorization
*/ */
@autoserialize @autoserialize
id: string; id: string;
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
eperson: HALLink; eperson: HALLink;
feature: HALLink; feature: HALLink;
@@ -46,17 +46,17 @@ export class Authorization extends DSpaceObject {
* Null if the authorization grants access to anonymous users * Null if the authorization grants access to anonymous users
*/ */
@link(EPERSON) @link(EPERSON)
eperson?: Observable<RemoteData<EPerson>>; eperson?: Observable<RemoteData<EPerson>>;
/** /**
* The Feature enabled by this Authorization * The Feature enabled by this Authorization
*/ */
@link(FEATURE) @link(FEATURE)
feature?: Observable<RemoteData<Feature>>; feature?: Observable<RemoteData<Feature>>;
/** /**
* The Object this authorization applies to * The Object this authorization applies to
*/ */
@link(ITEM) @link(ITEM)
object?: Observable<RemoteData<DSpaceObject>>; object?: Observable<RemoteData<DSpaceObject>>;
} }

View File

@@ -25,43 +25,43 @@ export class BitstreamFormat implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* Short description of this Bitstream Format * Short description of this Bitstream Format
*/ */
@autoserialize @autoserialize
shortDescription: string; shortDescription: string;
/** /**
* Description of this Bitstream Format * Description of this Bitstream Format
*/ */
@autoserialize @autoserialize
description: string; description: string;
/** /**
* String representing the MIME type of this Bitstream Format * String representing the MIME type of this Bitstream Format
*/ */
@autoserialize @autoserialize
mimetype: string; mimetype: string;
/** /**
* The level of support the system offers for this Bitstream Format * The level of support the system offers for this Bitstream Format
*/ */
@autoserialize @autoserialize
supportLevel: BitstreamFormatSupportLevel; supportLevel: BitstreamFormatSupportLevel;
/** /**
* True if the Bitstream Format is used to store system information, rather than the content of items in the system * True if the Bitstream Format is used to store system information, rather than the content of items in the system
*/ */
@autoserialize @autoserialize
internal: boolean; internal: boolean;
/** /**
* String representing this Bitstream Format's file extension * String representing this Bitstream Format's file extension
*/ */
@autoserialize @autoserialize
extensions: string[]; extensions: string[];
/** /**
* Universally unique identifier for this Bitstream Format * Universally unique identifier for this Bitstream Format
@@ -77,13 +77,13 @@ export class BitstreamFormat implements CacheableObject {
* but might not be unique across different object types * but might not be unique across different object types
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The {@link HALLink}s for this BitstreamFormat * The {@link HALLink}s for this BitstreamFormat
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
}; };
} }

View File

@@ -28,25 +28,25 @@ export class Bitstream extends DSpaceObject implements ChildHALResource {
* The size of this bitstream in bytes * The size of this bitstream in bytes
*/ */
@autoserialize @autoserialize
sizeBytes: number; sizeBytes: number;
/** /**
* The description of this Bitstream * The description of this Bitstream
*/ */
@autoserialize @autoserialize
description: string; description: string;
/** /**
* The name of the Bundle this Bitstream is part of * The name of the Bundle this Bitstream is part of
*/ */
@autoserialize @autoserialize
bundleName: string; bundleName: string;
/** /**
* The {@link HALLink}s for this Bitstream * The {@link HALLink}s for this Bitstream
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
bundle: HALLink; bundle: HALLink;
format: HALLink; format: HALLink;
@@ -59,21 +59,21 @@ export class Bitstream extends DSpaceObject implements ChildHALResource {
* Will be undefined unless the thumbnail {@link HALLink} has been resolved. * Will be undefined unless the thumbnail {@link HALLink} has been resolved.
*/ */
@link(BITSTREAM, false, 'thumbnail') @link(BITSTREAM, false, 'thumbnail')
thumbnail?: Observable<RemoteData<Bitstream>>; thumbnail?: Observable<RemoteData<Bitstream>>;
/** /**
* The BitstreamFormat of this Bitstream * The BitstreamFormat of this Bitstream
* Will be undefined unless the format {@link HALLink} has been resolved. * Will be undefined unless the format {@link HALLink} has been resolved.
*/ */
@link(BITSTREAM_FORMAT, false, 'format') @link(BITSTREAM_FORMAT, false, 'format')
format?: Observable<RemoteData<BitstreamFormat>>; format?: Observable<RemoteData<BitstreamFormat>>;
/** /**
* The owning bundle for this Bitstream * The owning bundle for this Bitstream
* Will be undefined unless the bundle{@link HALLink} has been resolved. * Will be undefined unless the bundle{@link HALLink} has been resolved.
*/ */
@link(BUNDLE) @link(BUNDLE)
bundle?: Observable<RemoteData<Bundle>>; bundle?: Observable<RemoteData<Bundle>>;
getParentLinkKey(): keyof this['_links'] { getParentLinkKey(): keyof this['_links'] {
return 'format'; return 'format';

View File

@@ -9,7 +9,7 @@ import { CacheableObject } from '../cache/cacheable-object.model';
export abstract class BrowseDefinition extends CacheableObject { export abstract class BrowseDefinition extends CacheableObject {
@autoserialize @autoserialize
id: string; id: string;
/** /**
* Get the render type of the BrowseDefinition model * Get the render type of the BrowseDefinition model

View File

@@ -25,41 +25,41 @@ export class BrowseEntry extends ListableObject implements TypedObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The authority string of this browse entry * The authority string of this browse entry
*/ */
@autoserialize @autoserialize
authority: string; authority: string;
/** /**
* The value of this browse entry * The value of this browse entry
*/ */
@autoserialize @autoserialize
value: string; value: string;
/** /**
* The language of the value of this browse entry * The language of the value of this browse entry
*/ */
@autoserializeAs('valueLang') @autoserializeAs('valueLang')
language: string; language: string;
/** /**
* Thumbnail link used when browsing items with showThumbs config enabled. * Thumbnail link used when browsing items with showThumbs config enabled.
*/ */
@autoserializeAs('thumbnail') @autoserializeAs('thumbnail')
thumbnail: string; thumbnail: string;
/** /**
* The count of this browse entry * The count of this browse entry
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
count: number; count: number;
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
entries: HALLink; entries: HALLink;
thumbnail: HALLink; thumbnail: HALLink;

View File

@@ -27,7 +27,7 @@ export class Bundle extends DSpaceObject {
* The {@link HALLink}s for this Bundle * The {@link HALLink}s for this Bundle
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
primaryBitstream: HALLink; primaryBitstream: HALLink;
bitstreams: HALLink; bitstreams: HALLink;
@@ -39,19 +39,19 @@ export class Bundle extends DSpaceObject {
* Will be undefined unless the primaryBitstream {@link HALLink} has been resolved. * Will be undefined unless the primaryBitstream {@link HALLink} has been resolved.
*/ */
@link(BITSTREAM) @link(BITSTREAM)
primaryBitstream?: Observable<RemoteData<Bitstream>>; primaryBitstream?: Observable<RemoteData<Bitstream>>;
/** /**
* The list of Bitstreams that are direct children of this Bundle * The list of Bitstreams that are direct children of this Bundle
* Will be undefined unless the bitstreams {@link HALLink} has been resolved. * Will be undefined unless the bitstreams {@link HALLink} has been resolved.
*/ */
@link(BITSTREAM, true) @link(BITSTREAM, true)
bitstreams?: Observable<RemoteData<PaginatedList<Bitstream>>>; bitstreams?: Observable<RemoteData<PaginatedList<Bitstream>>>;
/** /**
* The owning item for this Bundle * The owning item for this Bundle
* Will be undefined unless the Item{@link HALLink} has been resolved. * Will be undefined unless the Item{@link HALLink} has been resolved.
*/ */
@link(ITEM) @link(ITEM)
item?: Observable<RemoteData<Item>>; item?: Observable<RemoteData<Item>>;
} }

View File

@@ -33,13 +33,13 @@ export class Collection extends DSpaceObject implements ChildHALResource, Handle
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
archivedItemsCount: number; archivedItemsCount: number;
/** /**
* The {@link HALLink}s for this Collection * The {@link HALLink}s for this Collection
*/ */
@deserialize @deserialize
_links: { _links: {
license: HALLink; license: HALLink;
harvester: HALLink; harvester: HALLink;
mappedItems: HALLink; mappedItems: HALLink;
@@ -60,28 +60,28 @@ export class Collection extends DSpaceObject implements ChildHALResource, Handle
* Will be undefined unless the license {@link HALLink} has been resolved. * Will be undefined unless the license {@link HALLink} has been resolved.
*/ */
@link(LICENSE) @link(LICENSE)
license?: Observable<RemoteData<License>>; license?: Observable<RemoteData<License>>;
/** /**
* The logo for this Collection * The logo for this Collection
* Will be undefined unless the logo {@link HALLink} has been resolved. * Will be undefined unless the logo {@link HALLink} has been resolved.
*/ */
@link(BITSTREAM) @link(BITSTREAM)
logo?: Observable<RemoteData<Bitstream>>; logo?: Observable<RemoteData<Bitstream>>;
/** /**
* The default access conditions for this Collection * The default access conditions for this Collection
* Will be undefined unless the defaultAccessConditions {@link HALLink} has been resolved. * Will be undefined unless the defaultAccessConditions {@link HALLink} has been resolved.
*/ */
@link(RESOURCE_POLICY, true) @link(RESOURCE_POLICY, true)
defaultAccessConditions?: Observable<RemoteData<PaginatedList<ResourcePolicy>>>; defaultAccessConditions?: Observable<RemoteData<PaginatedList<ResourcePolicy>>>;
/** /**
* The Community that is a direct parent of this Collection * The Community that is a direct parent of this Collection
* Will be undefined unless the parent community HALLink has been resolved. * Will be undefined unless the parent community HALLink has been resolved.
*/ */
@link(COMMUNITY, false) @link(COMMUNITY, false)
parentCommunity?: Observable<RemoteData<Community>>; parentCommunity?: Observable<RemoteData<Community>>;
/** /**
* A string representing the unique handle of this Collection * A string representing the unique handle of this Collection

View File

@@ -29,13 +29,13 @@ export class Community extends DSpaceObject implements ChildHALResource, HandleO
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
archivedItemsCount: number; archivedItemsCount: number;
/** /**
* The {@link HALLink}s for this Community * The {@link HALLink}s for this Community
*/ */
@deserialize @deserialize
_links: { _links: {
collections: HALLink; collections: HALLink;
logo: HALLink; logo: HALLink;
subcommunities: HALLink; subcommunities: HALLink;
@@ -49,28 +49,28 @@ export class Community extends DSpaceObject implements ChildHALResource, HandleO
* Will be undefined unless the logo {@link HALLink} has been resolved. * Will be undefined unless the logo {@link HALLink} has been resolved.
*/ */
@link(BITSTREAM) @link(BITSTREAM)
logo?: Observable<RemoteData<Bitstream>>; logo?: Observable<RemoteData<Bitstream>>;
/** /**
* The list of Collections that are direct children of this Community * The list of Collections that are direct children of this Community
* Will be undefined unless the collections {@link HALLink} has been resolved. * Will be undefined unless the collections {@link HALLink} has been resolved.
*/ */
@link(COLLECTION, true) @link(COLLECTION, true)
collections?: Observable<RemoteData<PaginatedList<Collection>>>; collections?: Observable<RemoteData<PaginatedList<Collection>>>;
/** /**
* The list of Communities that are direct children of this Community * The list of Communities that are direct children of this Community
* Will be undefined unless the subcommunities {@link HALLink} has been resolved. * Will be undefined unless the subcommunities {@link HALLink} has been resolved.
*/ */
@link(COMMUNITY, true) @link(COMMUNITY, true)
subcommunities?: Observable<RemoteData<PaginatedList<Community>>>; subcommunities?: Observable<RemoteData<PaginatedList<Community>>>;
/** /**
* The Community that is a direct parent of this Community * The Community that is a direct parent of this Community
* Will be undefined unless the parent community HALLink has been resolved. * Will be undefined unless the parent community HALLink has been resolved.
*/ */
@link(COMMUNITY, false) @link(COMMUNITY, false)
parentCommunity?: Observable<RemoteData<Community>>; parentCommunity?: Observable<RemoteData<Community>>;
/** /**
* A string representing the unique handle of this Community * A string representing the unique handle of this Community

View File

@@ -23,31 +23,31 @@ export class ConfigurationProperty implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The uuid of the configuration property * The uuid of the configuration property
* The name is used as id for configuration properties * The name is used as id for configuration properties
*/ */
@autoserializeAs(String, 'name') @autoserializeAs(String, 'name')
uuid: string; uuid: string;
/** /**
* The name of the configuration property * The name of the configuration property
*/ */
@autoserialize @autoserialize
name: string; name: string;
/** /**
* The values of the configuration property * The values of the configuration property
*/ */
@autoserialize @autoserialize
values: string[]; values: string[];
/** /**
* The links of the configuration property * The links of the configuration property
*/ */
@deserialize @deserialize
_links: { self: HALLink }; _links: { self: HALLink };
} }

View File

@@ -38,20 +38,20 @@ export class ContentSource extends CacheableObject {
* and we need a custom responseparser for ContentSource responses * and we need a custom responseparser for ContentSource responses
*/ */
@excludeFromEquals @excludeFromEquals
type: ResourceType = CONTENT_SOURCE; type: ResourceType = CONTENT_SOURCE;
/** /**
* Unique identifier, this is necessary to store the ContentSource in FieldUpdates * Unique identifier, this is necessary to store the ContentSource in FieldUpdates
* Because the ContentSource coming from the REST API doesn't have a UUID, we're using the selflink * Because the ContentSource coming from the REST API doesn't have a UUID, we're using the selflink
*/ */
@deserializeAs('self') @deserializeAs('self')
uuid: string; uuid: string;
/** /**
* OAI Provider / Source * OAI Provider / Source
*/ */
@autoserializeAs('oai_source') @autoserializeAs('oai_source')
oaiSource: string; oaiSource: string;
/** /**
* OAI Specific set ID * OAI Specific set ID
@@ -64,14 +64,14 @@ export class ContentSource extends CacheableObject {
* The ID of the metadata format used * The ID of the metadata format used
*/ */
@autoserializeAs('metadata_config_id') @autoserializeAs('metadata_config_id')
metadataConfigId: string; metadataConfigId: string;
/** /**
* Type of content being harvested * Type of content being harvested
* Defaults to 'NONE', meaning the collection doesn't harvest its content from an external source * Defaults to 'NONE', meaning the collection doesn't harvest its content from an external source
*/ */
@autoserializeAs('harvest_type') @autoserializeAs('harvest_type')
harvestType = ContentSourceHarvestType.None; harvestType = ContentSourceHarvestType.None;
/** /**
* The available metadata configurations * The available metadata configurations
@@ -82,31 +82,31 @@ export class ContentSource extends CacheableObject {
* The current harvest status * The current harvest status
*/ */
@autoserializeAs('harvest_status') @autoserializeAs('harvest_status')
harvestStatus: string; harvestStatus: string;
/** /**
* The last's harvest start time * The last's harvest start time
*/ */
@autoserializeAs('harvest_start_time') @autoserializeAs('harvest_start_time')
harvestStartTime: string; harvestStartTime: string;
/** /**
* When the collection was last harvested * When the collection was last harvested
*/ */
@autoserializeAs('last_harvested') @autoserializeAs('last_harvested')
lastHarvested: string; lastHarvested: string;
/** /**
* The current harvest message * The current harvest message
*/ */
@autoserializeAs('harvest_message') @autoserializeAs('harvest_message')
message: string; message: string;
/** /**
* The {@link HALLink}s for this ContentSource * The {@link HALLink}s for this ContentSource
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink self: HALLink
}; };
} }

View File

@@ -46,20 +46,20 @@ export class DSpaceObject extends ListableObject implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserializeAs(String, 'uuid') @autoserializeAs(String, 'uuid')
id: string; id: string;
/** /**
* The universally unique ide ntifier of this DSpaceObject * The universally unique ide ntifier of this DSpaceObject
*/ */
@autoserializeAs(String) @autoserializeAs(String)
uuid: string; uuid: string;
/** /**
* A string representing the kind of DSpaceObject, e.g. community, item, … * A string representing the kind of DSpaceObject, e.g. community, item, …
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* A shorthand to get this DSpaceObject's self link * A shorthand to get this DSpaceObject's self link
@@ -100,10 +100,10 @@ export class DSpaceObject extends ListableObject implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserializeAs(MetadataMapSerializer) @autoserializeAs(MetadataMapSerializer)
metadata: MetadataMap; metadata: MetadataMap;
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
}; };

View File

@@ -27,44 +27,44 @@ export class ExternalSourceEntry extends ListableObject {
* Unique identifier * Unique identifier
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The object type * The object type
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The value to display * The value to display
*/ */
@autoserialize @autoserialize
display: string; display: string;
/** /**
* The value to store the entry with * The value to store the entry with
*/ */
@autoserialize @autoserialize
value: string; value: string;
/** /**
* The ID of the external source this entry originates from * The ID of the external source this entry originates from
*/ */
@autoserialize @autoserialize
externalSource: string; externalSource: string;
/** /**
* Metadata of the entry * Metadata of the entry
*/ */
@autoserializeAs(MetadataMapSerializer) @autoserializeAs(MetadataMapSerializer)
metadata: MetadataMap; metadata: MetadataMap;
/** /**
* The {@link HALLink}s for this ExternalSourceEntry * The {@link HALLink}s for this ExternalSourceEntry
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
}; };

View File

@@ -30,38 +30,38 @@ export class ExternalSource extends CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* Unique identifier * Unique identifier
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The name of this external source * The name of this external source
*/ */
@autoserialize @autoserialize
name: string; name: string;
/** /**
* Is the source hierarchical? * Is the source hierarchical?
*/ */
@autoserialize @autoserialize
hierarchical: boolean; hierarchical: boolean;
/** /**
* The list of entity types that are compatible with this external source * The list of entity types that are compatible with this external source
* Will be undefined unless the entityTypes {@link HALLink} has been resolved. * Will be undefined unless the entityTypes {@link HALLink} has been resolved.
*/ */
@link(ITEM_TYPE, true) @link(ITEM_TYPE, true)
entityTypes?: Observable<RemoteData<PaginatedList<ItemType>>>; entityTypes?: Observable<RemoteData<PaginatedList<ItemType>>>;
/** /**
* The {@link HALLink}s for this ExternalSource * The {@link HALLink}s for this ExternalSource
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
entries: HALLink; entries: HALLink;
entityTypes: HALLink; entityTypes: HALLink;

View File

@@ -21,22 +21,22 @@ export class Feature extends DSpaceObject {
* Unique identifier for this feature * Unique identifier for this feature
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* A human readable description of the feature's purpose * A human readable description of the feature's purpose
*/ */
@autoserialize @autoserialize
description: string; description: string;
/** /**
* A list of resource types this feature applies to * A list of resource types this feature applies to
*/ */
@autoserialize @autoserialize
resourcetypes: string[]; resourcetypes: string[];
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
}; };
} }

View File

@@ -23,14 +23,14 @@ export class FlatBrowseDefinition extends NonHierarchicalBrowseDefinition {
* The object type * The object type
*/ */
@excludeFromEquals @excludeFromEquals
type: ResourceType = FLAT_BROWSE_DEFINITION; type: ResourceType = FLAT_BROWSE_DEFINITION;
get self(): string { get self(): string {
return this._links.self.href; return this._links.self.href;
} }
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
items: HALLink; items: HALLink;
}; };

View File

@@ -13,7 +13,7 @@ export class HALResource {
* The {@link HALLink}s for this {@link HALResource} * The {@link HALLink}s for this {@link HALResource}
*/ */
@deserialize @deserialize
_links: { _links: {
/** /**
* The {@link HALLink} that refers to this {@link HALResource} * The {@link HALLink} that refers to this {@link HALResource}

View File

@@ -25,23 +25,23 @@ export class HierarchicalBrowseDefinition extends BrowseDefinition {
* The object type * The object type
*/ */
@excludeFromEquals @excludeFromEquals
type: ResourceType = HIERARCHICAL_BROWSE_DEFINITION; type: ResourceType = HIERARCHICAL_BROWSE_DEFINITION;
@autoserialize @autoserialize
facetType: string; facetType: string;
@autoserialize @autoserialize
vocabulary: string; vocabulary: string;
@autoserializeAs('metadata') @autoserializeAs('metadata')
metadataKeys: string[]; metadataKeys: string[];
get self(): string { get self(): string {
return this._links.self.href; return this._links.self.href;
} }
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
vocabulary: HALLink; vocabulary: HALLink;
}; };

View File

@@ -24,16 +24,16 @@ export class ItemType implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The identifier of this ItemType * The identifier of this ItemType
*/ */
@autoserialize @autoserialize
id: string; id: string;
@autoserialize @autoserialize
label: string; label: string;
/** /**
* The universally unique identifier of this ItemType * The universally unique identifier of this ItemType
@@ -47,7 +47,7 @@ export class ItemType implements CacheableObject {
* The {@link HALLink}s for this ItemType * The {@link HALLink}s for this ItemType
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
}; };
} }

View File

@@ -31,19 +31,19 @@ export class RelationshipType implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The label that describes this RelationshipType * The label that describes this RelationshipType
*/ */
@autoserialize @autoserialize
label: string; label: string;
/** /**
* The identifier of this RelationshipType * The identifier of this RelationshipType
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The universally unique identifier of this RelationshipType * The universally unique identifier of this RelationshipType
@@ -57,43 +57,43 @@ export class RelationshipType implements CacheableObject {
* The label that describes the Relation to the left of this RelationshipType * The label that describes the Relation to the left of this RelationshipType
*/ */
@autoserialize @autoserialize
leftwardType: string; leftwardType: string;
/** /**
* The maximum amount of Relationships allowed to the left of this RelationshipType * The maximum amount of Relationships allowed to the left of this RelationshipType
*/ */
@autoserialize @autoserialize
leftMaxCardinality: number; leftMaxCardinality: number;
/** /**
* The minimum amount of Relationships allowed to the left of this RelationshipType * The minimum amount of Relationships allowed to the left of this RelationshipType
*/ */
@autoserialize @autoserialize
leftMinCardinality: number; leftMinCardinality: number;
/** /**
* The label that describes the Relation to the right of this RelationshipType * The label that describes the Relation to the right of this RelationshipType
*/ */
@autoserialize @autoserialize
rightwardType: string; rightwardType: string;
/** /**
* The maximum amount of Relationships allowed to the right of this RelationshipType * The maximum amount of Relationships allowed to the right of this RelationshipType
*/ */
@autoserialize @autoserialize
rightMaxCardinality: number; rightMaxCardinality: number;
/** /**
* The minimum amount of Relationships allowed to the right of this RelationshipType * The minimum amount of Relationships allowed to the right of this RelationshipType
*/ */
@autoserialize @autoserialize
rightMinCardinality: number; rightMinCardinality: number;
/** /**
* The {@link HALLink}s for this RelationshipType * The {@link HALLink}s for this RelationshipType
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
leftType: HALLink; leftType: HALLink;
rightType: HALLink; rightType: HALLink;
@@ -104,12 +104,12 @@ export class RelationshipType implements CacheableObject {
* Will be undefined unless the leftType {@link HALLink} has been resolved. * Will be undefined unless the leftType {@link HALLink} has been resolved.
*/ */
@link(ITEM_TYPE) @link(ITEM_TYPE)
leftType?: Observable<RemoteData<ItemType>>; leftType?: Observable<RemoteData<ItemType>>;
/** /**
* The type of Item found on the right side of this RelationshipType * The type of Item found on the right side of this RelationshipType
* Will be undefined unless the rightType {@link HALLink} has been resolved. * Will be undefined unless the rightType {@link HALLink} has been resolved.
*/ */
@link(ITEM_TYPE) @link(ITEM_TYPE)
rightType?: Observable<RemoteData<ItemType>>; rightType?: Observable<RemoteData<ItemType>>;
} }

View File

@@ -33,7 +33,7 @@ export class Relationship implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The universally unique identifier of this Relationship * The universally unique identifier of this Relationship
@@ -47,37 +47,37 @@ export class Relationship implements CacheableObject {
* The identifier of this Relationship * The identifier of this Relationship
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The place of the Item to the left side of this Relationship * The place of the Item to the left side of this Relationship
*/ */
@autoserialize @autoserialize
leftPlace: number; leftPlace: number;
/** /**
* The place of the Item to the right side of this Relationship * The place of the Item to the right side of this Relationship
*/ */
@autoserialize @autoserialize
rightPlace: number; rightPlace: number;
/** /**
* The name variant of the Item to the left side of this Relationship * The name variant of the Item to the left side of this Relationship
*/ */
@autoserialize @autoserialize
leftwardValue: string; leftwardValue: string;
/** /**
* The name variant of the Item to the right side of this Relationship * The name variant of the Item to the right side of this Relationship
*/ */
@autoserialize @autoserialize
rightwardValue: string; rightwardValue: string;
/** /**
* The {@link HALLink}s for this Relationship * The {@link HALLink}s for this Relationship
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
leftItem: HALLink; leftItem: HALLink;
rightItem: HALLink; rightItem: HALLink;
@@ -89,20 +89,20 @@ export class Relationship implements CacheableObject {
* Will be undefined unless the leftItem {@link HALLink} has been resolved. * Will be undefined unless the leftItem {@link HALLink} has been resolved.
*/ */
@link(ITEM) @link(ITEM)
leftItem?: Observable<RemoteData<Item>>; leftItem?: Observable<RemoteData<Item>>;
/** /**
* The item on the right side of this relationship * The item on the right side of this relationship
* Will be undefined unless the rightItem {@link HALLink} has been resolved. * Will be undefined unless the rightItem {@link HALLink} has been resolved.
*/ */
@link(ITEM) @link(ITEM)
rightItem?: Observable<RemoteData<Item>>; rightItem?: Observable<RemoteData<Item>>;
/** /**
* The RelationshipType for this Relationship * The RelationshipType for this Relationship
* Will be undefined unless the relationshipType {@link HALLink} has been resolved. * Will be undefined unless the relationshipType {@link HALLink} has been resolved.
*/ */
@link(RELATIONSHIP_TYPE) @link(RELATIONSHIP_TYPE)
relationshipType?: Observable<RemoteData<RelationshipType>>; relationshipType?: Observable<RemoteData<RelationshipType>>;
} }

View File

@@ -22,70 +22,70 @@ export class ItemRequest implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* opaque string which uniquely identifies this request * opaque string which uniquely identifies this request
*/ */
@autoserialize @autoserialize
token: string; token: string;
/** /**
* true if the request is for all bitstreams of the item. * true if the request is for all bitstreams of the item.
*/ */
@autoserialize @autoserialize
allfiles: boolean; allfiles: boolean;
/** /**
* email address of the person requesting the files. * email address of the person requesting the files.
*/ */
@autoserialize @autoserialize
requestEmail: string; requestEmail: string;
/** /**
* Human-readable name of the person requesting the files. * Human-readable name of the person requesting the files.
*/ */
@autoserialize @autoserialize
requestName: string; requestName: string;
/** /**
* arbitrary message provided by the person requesting the files. * arbitrary message provided by the person requesting the files.
*/ */
@autoserialize @autoserialize
requestMessage: string; requestMessage: string;
/** /**
* date that the request was recorded. * date that the request was recorded.
*/ */
@autoserialize @autoserialize
requestDate: string; requestDate: string;
/** /**
* true if the request has been granted. * true if the request has been granted.
*/ */
@autoserialize @autoserialize
acceptRequest: boolean; acceptRequest: boolean;
/** /**
* date that the request was granted or denied. * date that the request was granted or denied.
*/ */
@autoserialize @autoserialize
decisionDate: string; decisionDate: string;
/** /**
* date on which the request is considered expired. * date on which the request is considered expired.
*/ */
@autoserialize @autoserialize
expires: string; expires: string;
/** /**
* UUID of the requested Item. * UUID of the requested Item.
*/ */
@autoserialize @autoserialize
itemId: string; itemId: string;
/** /**
* UUID of the requested bitstream. * UUID of the requested bitstream.
*/ */
@autoserialize @autoserialize
bitstreamId: string; bitstreamId: string;
/** /**
* The {@link HALLink}s for this ItemRequest * The {@link HALLink}s for this ItemRequest
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
item: HALLink; item: HALLink;
bitstream: HALLink; bitstream: HALLink;

View File

@@ -48,37 +48,37 @@ export class Item extends DSpaceObject implements ChildHALResource, HandleObject
* A string representing the unique handle of this Item * A string representing the unique handle of this Item
*/ */
@autoserialize @autoserialize
handle: string; handle: string;
/** /**
* The Date of the last modification of this Item * The Date of the last modification of this Item
*/ */
@deserializeAs(Date) @deserializeAs(Date)
lastModified: Date; lastModified: Date;
/** /**
* A boolean representing if this Item is currently archived or not * A boolean representing if this Item is currently archived or not
*/ */
@autoserializeAs(Boolean, 'inArchive') @autoserializeAs(Boolean, 'inArchive')
isArchived: boolean; isArchived: boolean;
/** /**
* A boolean representing if this Item is currently discoverable or not * A boolean representing if this Item is currently discoverable or not
*/ */
@autoserializeAs(Boolean, 'discoverable') @autoserializeAs(Boolean, 'discoverable')
isDiscoverable: boolean; isDiscoverable: boolean;
/** /**
* A boolean representing if this Item is currently withdrawn or not * A boolean representing if this Item is currently withdrawn or not
*/ */
@autoserializeAs(Boolean, 'withdrawn') @autoserializeAs(Boolean, 'withdrawn')
isWithdrawn: boolean; isWithdrawn: boolean;
/** /**
* The {@link HALLink}s for this Item * The {@link HALLink}s for this Item
*/ */
@deserialize @deserialize
_links: { _links: {
mappedCollections: HALLink; mappedCollections: HALLink;
relationships: HALLink; relationships: HALLink;
bundles: HALLink; bundles: HALLink;
@@ -96,35 +96,35 @@ export class Item extends DSpaceObject implements ChildHALResource, HandleObject
* Will be undefined unless the owningCollection {@link HALLink} has been resolved. * Will be undefined unless the owningCollection {@link HALLink} has been resolved.
*/ */
@link(COLLECTION) @link(COLLECTION)
owningCollection?: Observable<RemoteData<Collection>>; owningCollection?: Observable<RemoteData<Collection>>;
/** /**
* The version this item represents in its history * The version this item represents in its history
* Will be undefined unless the version {@link HALLink} has been resolved. * Will be undefined unless the version {@link HALLink} has been resolved.
*/ */
@link(VERSION) @link(VERSION)
version?: Observable<RemoteData<Version>>; version?: Observable<RemoteData<Version>>;
/** /**
* The list of Bundles inside this Item * The list of Bundles inside this Item
* Will be undefined unless the bundles {@link HALLink} has been resolved. * Will be undefined unless the bundles {@link HALLink} has been resolved.
*/ */
@link(BUNDLE, true) @link(BUNDLE, true)
bundles?: Observable<RemoteData<PaginatedList<Bundle>>>; bundles?: Observable<RemoteData<PaginatedList<Bundle>>>;
/** /**
* The list of Relationships this Item has with others * The list of Relationships this Item has with others
* Will be undefined unless the relationships {@link HALLink} has been resolved. * Will be undefined unless the relationships {@link HALLink} has been resolved.
*/ */
@link(RELATIONSHIP, true) @link(RELATIONSHIP, true)
relationships?: Observable<RemoteData<PaginatedList<Relationship>>>; relationships?: Observable<RemoteData<PaginatedList<Relationship>>>;
/** /**
* The thumbnail for this Item * The thumbnail for this Item
* Will be undefined unless the thumbnail {@link HALLink} has been resolved. * Will be undefined unless the thumbnail {@link HALLink} has been resolved.
*/ */
@link(BITSTREAM, false, 'thumbnail') @link(BITSTREAM, false, 'thumbnail')
thumbnail?: Observable<RemoteData<Bitstream>>; thumbnail?: Observable<RemoteData<Bitstream>>;
/** /**
* The access status for this Item * The access status for this Item
@@ -138,7 +138,7 @@ export class Item extends DSpaceObject implements ChildHALResource, HandleObject
* Will be undefined unless the identifiers {@link HALLink} has been resolved. * Will be undefined unless the identifiers {@link HALLink} has been resolved.
*/ */
@link(IDENTIFIERS, false, 'identifiers') @link(IDENTIFIERS, false, 'identifiers')
identifiers?: Observable<RemoteData<IdentifierData>>; identifiers?: Observable<RemoteData<IdentifierData>>;
/** /**
* Method that returns as which type of object this object should be rendered * Method that returns as which type of object this object should be rendered

View File

@@ -16,11 +16,11 @@ export class License extends DSpaceObject {
* Is the license custom? * Is the license custom?
*/ */
@autoserialize @autoserialize
custom: boolean; custom: boolean;
/** /**
* The text of the license * The text of the license
*/ */
@autoserialize @autoserialize
text: string; text: string;
} }

View File

@@ -37,26 +37,26 @@ export class MetadataValue implements MetadataValueInterface {
/** The language. */ /** The language. */
@autoserialize @autoserialize
language: string; language: string;
/** The string value. */ /** The string value. */
@autoserialize @autoserialize
value: string; value: string;
/** /**
* The place of this MetadataValue within its list of metadata * The place of this MetadataValue within its list of metadata
* This is used to render metadata in a specific custom order * This is used to render metadata in a specific custom order
*/ */
@autoserialize @autoserialize
place: number; place: number;
/** The authority key used for authority-controlled metadata */ /** The authority key used for authority-controlled metadata */
@autoserialize @autoserialize
authority: string; authority: string;
/** The authority confidence value */ /** The authority confidence value */
@autoserialize @autoserialize
confidence: number; confidence: number;
/** /**
* Returns true if this Metadatum's authority key starts with 'virtual::' * Returns true if this Metadatum's authority key starts with 'virtual::'

View File

@@ -16,14 +16,14 @@ import { SortOption } from './sort-option.model';
export abstract class NonHierarchicalBrowseDefinition extends BrowseDefinition { export abstract class NonHierarchicalBrowseDefinition extends BrowseDefinition {
@autoserialize @autoserialize
sortOptions: SortOption[]; sortOptions: SortOption[];
@autoserializeAs('order') @autoserializeAs('order')
defaultSortOrder: string; defaultSortOrder: string;
@autoserializeAs('metadata') @autoserializeAs('metadata')
metadataKeys: string[]; metadataKeys: string[];
@autoserialize @autoserialize
dataType: BrowseByDataType; dataType: BrowseByDataType;
} }

View File

@@ -17,31 +17,31 @@ export class PageInfo implements HALResource {
* The number of elements on a page * The number of elements on a page
*/ */
@autoserializeAs(Number, 'size') @autoserializeAs(Number, 'size')
elementsPerPage: number; elementsPerPage: number;
/** /**
* The total number of elements in the entire set * The total number of elements in the entire set
*/ */
@autoserialize @autoserialize
totalElements: number; totalElements: number;
/** /**
* The total number of pages * The total number of pages
*/ */
@autoserialize @autoserialize
totalPages: number; totalPages: number;
/** /**
* The number of the current page, zero-based * The number of the current page, zero-based
*/ */
@autoserializeAs(Number, 'number') @autoserializeAs(Number, 'number')
currentPage: number; currentPage: number;
/** /**
* The {@link HALLink}s for this PageInfo * The {@link HALLink}s for this PageInfo
*/ */
@deserialize @deserialize
_links: { _links: {
first: HALLink; first: HALLink;
prev: HALLink; prev: HALLink;
next: HALLink; next: HALLink;

View File

@@ -20,31 +20,31 @@ export class SearchConfig implements CacheableObject {
* The id of this search configuration. * The id of this search configuration.
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The configured filters. * The configured filters.
*/ */
@autoserialize @autoserialize
filters: FilterConfig[]; filters: FilterConfig[];
/** /**
* The configured sort options. * The configured sort options.
*/ */
@autoserialize @autoserialize
sortOptions: SortConfig[]; sortOptions: SortConfig[];
/** /**
* The object type. * The object type.
*/ */
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The {@link HALLink}s for this Item * The {@link HALLink}s for this Item
*/ */
@deserialize @deserialize
_links: { _links: {
facets: HALLink; facets: HALLink;
objects: HALLink; objects: HALLink;
self: HALLink; self: HALLink;

View File

@@ -2,8 +2,8 @@ import { autoserialize } from 'cerialize';
export class SortOption { export class SortOption {
@autoserialize @autoserialize
name: string; name: string;
@autoserialize @autoserialize
metadata: string; metadata: string;
} }

View File

@@ -23,6 +23,6 @@ export class TemplateItem extends Item {
* The Collection that this item is a template for * The Collection that this item is a template for
*/ */
@link(COLLECTION) @link(COLLECTION)
templateItemOf: Observable<RemoteData<Collection>>; templateItemOf: Observable<RemoteData<Collection>>;
} }

View File

@@ -23,14 +23,14 @@ export class ValueListBrowseDefinition extends NonHierarchicalBrowseDefinition {
* The object type * The object type
*/ */
@excludeFromEquals @excludeFromEquals
type: ResourceType = VALUE_LIST_BROWSE_DEFINITION; type: ResourceType = VALUE_LIST_BROWSE_DEFINITION;
get self(): string { get self(): string {
return this._links.self.href; return this._links.self.href;
} }
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
entries: HALLink; entries: HALLink;
}; };

View File

@@ -27,7 +27,7 @@ export class VersionHistory extends DSpaceObject {
static type = VERSION_HISTORY; static type = VERSION_HISTORY;
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
versions: HALLink; versions: HALLink;
draftVersion: HALLink; draftVersion: HALLink;
@@ -37,30 +37,30 @@ export class VersionHistory extends DSpaceObject {
* The identifier of this Version History * The identifier of this Version History
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The summary of this Version History * The summary of this Version History
*/ */
@autoserialize @autoserialize
summary: string; summary: string;
/** /**
* The name of the submitter of this Version History * The name of the submitter of this Version History
*/ */
@autoserialize @autoserialize
submitterName: string; submitterName: string;
/** /**
* Whether exist a workspace item * Whether exist a workspace item
*/ */
@autoserialize @autoserialize
draftVersion: boolean; draftVersion: boolean;
/** /**
* The list of versions within this history * The list of versions within this history
*/ */
@excludeFromEquals @excludeFromEquals
@link(VERSION, true) @link(VERSION, true)
versions: Observable<RemoteData<PaginatedList<Version>>>; versions: Observable<RemoteData<PaginatedList<Version>>>;
} }

View File

@@ -30,7 +30,7 @@ export class Version extends DSpaceObject {
static type = VERSION; static type = VERSION;
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
item: HALLink; item: HALLink;
versionhistory: HALLink; versionhistory: HALLink;
@@ -41,50 +41,50 @@ export class Version extends DSpaceObject {
* The identifier of this Version * The identifier of this Version
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The version number of the version's history this version represents * The version number of the version's history this version represents
*/ */
@autoserialize @autoserialize
version: number; version: number;
/** /**
* The summary for the changes made in this version * The summary for the changes made in this version
*/ */
@autoserialize @autoserialize
summary: string; summary: string;
/** /**
* The name of the submitter of this version * The name of the submitter of this version
*/ */
@autoserialize @autoserialize
submitterName: string; submitterName: string;
/** /**
* The Date this version was created * The Date this version was created
*/ */
@deserialize @deserialize
created: Date; created: Date;
/** /**
* The full version history this version is apart of * The full version history this version is apart of
*/ */
@excludeFromEquals @excludeFromEquals
@link(VERSION_HISTORY) @link(VERSION_HISTORY)
versionhistory: Observable<RemoteData<VersionHistory>>; versionhistory: Observable<RemoteData<VersionHistory>>;
/** /**
* The item this version represents * The item this version represents
*/ */
@excludeFromEquals @excludeFromEquals
@link(ITEM) @link(ITEM)
item: Observable<RemoteData<Item>>; item: Observable<RemoteData<Item>>;
/** /**
* The e-person who created this version * The e-person who created this version
*/ */
@excludeFromEquals @excludeFromEquals
@link(EPERSON) @link(EPERSON)
eperson: Observable<RemoteData<EPerson>>; eperson: Observable<RemoteData<EPerson>>;
} }

View File

@@ -26,19 +26,19 @@ export class UsageReport extends HALResource {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
@autoserialize @autoserialize
id: string; id: string;
@autoserializeAs('report-type') @autoserializeAs('report-type')
reportType: string; reportType: string;
@autoserialize @autoserialize
points: Point[]; points: Point[];
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
}; };
} }

View File

@@ -22,7 +22,7 @@ export class CorrectionType extends CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
@autoserialize @autoserialize
/** /**
* The unique identifier for the correction type mode. * The unique identifier for the correction type mode.

View File

@@ -20,8 +20,8 @@ export class SubmissionCcLicenceUrl extends HALResource {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
@autoserialize @autoserialize
url: string; url: string;
} }

View File

@@ -20,16 +20,16 @@ export class SubmissionCcLicence extends HALResource {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
@autoserialize @autoserialize
id: string; id: string;
@autoserialize @autoserialize
name: string; name: string;
@autoserialize @autoserialize
fields: Field[]; fields: Field[];
} }
export interface Field { export interface Field {

View File

@@ -35,38 +35,38 @@ export abstract class SubmissionObject extends DSpaceObject implements Cacheable
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The SubmissionObject last modified date * The SubmissionObject last modified date
*/ */
@autoserialize @autoserialize
lastModified: Date; lastModified: Date;
/** /**
* The collection this submission applies to * The collection this submission applies to
* Will be undefined unless the collection {@link HALLink} has been resolved. * Will be undefined unless the collection {@link HALLink} has been resolved.
*/ */
@link(COLLECTION) @link(COLLECTION)
collection?: Observable<RemoteData<Collection>> | Collection; collection?: Observable<RemoteData<Collection>> | Collection;
/** /**
* The SubmissionObject's last section's data * The SubmissionObject's last section's data
*/ */
@autoserialize @autoserialize
sections: WorkspaceitemSectionsObject; sections: WorkspaceitemSectionsObject;
/** /**
* The SubmissionObject's last section's errors * The SubmissionObject's last section's errors
*/ */
@autoserialize @autoserialize
errors: SubmissionObjectError[]; errors: SubmissionObjectError[];
/** /**
* The {@link HALLink}s for this SubmissionObject * The {@link HALLink}s for this SubmissionObject
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
collection: HALLink; collection: HALLink;
item: HALLink; item: HALLink;
@@ -92,14 +92,14 @@ export abstract class SubmissionObject extends DSpaceObject implements Cacheable
* Will be undefined unless the submissionDefinition {@link HALLink} has been resolved. * Will be undefined unless the submissionDefinition {@link HALLink} has been resolved.
*/ */
@link(SubmissionDefinitionsModel.type) @link(SubmissionDefinitionsModel.type)
submissionDefinition?: Observable<RemoteData<SubmissionDefinitionsModel>> | SubmissionDefinitionsModel; submissionDefinition?: Observable<RemoteData<SubmissionDefinitionsModel>> | SubmissionDefinitionsModel;
/** /**
* The submitter for this SubmissionObject * The submitter for this SubmissionObject
* Will be undefined unless the submitter {@link HALLink} has been resolved. * Will be undefined unless the submitter {@link HALLink} has been resolved.
*/ */
@link(EPERSON) @link(EPERSON)
submitter?: Observable<RemoteData<EPerson>> | EPerson; submitter?: Observable<RemoteData<EPerson>> | EPerson;
/** /**
* The submission supervision order * The submission supervision order

View File

@@ -21,19 +21,19 @@ export class VocabularyEntryDetail extends VocabularyEntry {
* The unique id of the entry * The unique id of the entry
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* In an hierarchical vocabulary representing if entry is selectable as value * In an hierarchical vocabulary representing if entry is selectable as value
*/ */
@autoserialize @autoserialize
selectable: boolean; selectable: boolean;
/** /**
* The {@link HALLink}s for this ExternalSourceEntry * The {@link HALLink}s for this ExternalSourceEntry
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
vocabulary: HALLink; vocabulary: HALLink;
parent: HALLink; parent: HALLink;

View File

@@ -24,25 +24,25 @@ export class VocabularyEntry extends ListableObject {
* The identifier of this vocabulary entry * The identifier of this vocabulary entry
*/ */
@autoserialize @autoserialize
authority: string; authority: string;
/** /**
* The display value of this vocabulary entry * The display value of this vocabulary entry
*/ */
@autoserialize @autoserialize
display: string; display: string;
/** /**
* The value of this vocabulary entry * The value of this vocabulary entry
*/ */
@autoserialize @autoserialize
value: string; value: string;
/** /**
* An object containing additional information related to this vocabulary entry * An object containing additional information related to this vocabulary entry
*/ */
@autoserialize @autoserialize
otherInformation: OtherInformation; otherInformation: OtherInformation;
/** /**
* A string representing the kind of vocabulary entry * A string representing the kind of vocabulary entry
@@ -55,7 +55,7 @@ export class VocabularyEntry extends ListableObject {
* The {@link HALLink}s for this ExternalSourceEntry * The {@link HALLink}s for this ExternalSourceEntry
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
vocabularyEntryDetail?: HALLink; vocabularyEntryDetail?: HALLink;
}; };

View File

@@ -29,32 +29,32 @@ export class Vocabulary implements CacheableObject {
* The identifier of this Vocabulary * The identifier of this Vocabulary
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The name of this Vocabulary * The name of this Vocabulary
*/ */
@autoserialize @autoserialize
name: string; name: string;
/** /**
* True if it is possible to scroll all the entries in the vocabulary without providing a filter parameter * True if it is possible to scroll all the entries in the vocabulary without providing a filter parameter
*/ */
@autoserialize @autoserialize
scrollable: boolean; scrollable: boolean;
/** /**
* True if the vocabulary exposes a tree structure where some entries are parent of others * True if the vocabulary exposes a tree structure where some entries are parent of others
*/ */
@autoserialize @autoserialize
hierarchical: boolean; hierarchical: boolean;
/** /**
* For hierarchical vocabularies express the preference to preload the tree at a specific * For hierarchical vocabularies express the preference to preload the tree at a specific
* level of depth (0 only the top nodes are shown, 1 also their children are preloaded and so on) * level of depth (0 only the top nodes are shown, 1 also their children are preloaded and so on)
*/ */
@autoserialize @autoserialize
preloadLevel: any; preloadLevel: any;
/** /**
* A string representing the kind of Vocabulary model * A string representing the kind of Vocabulary model
@@ -64,13 +64,13 @@ export class Vocabulary implements CacheableObject {
public type: any; public type: any;
@link(VOCABULARY_ENTRY, true) @link(VOCABULARY_ENTRY, true)
entries?: Observable<RemoteData<PaginatedList<VocabularyEntry>>>; entries?: Observable<RemoteData<PaginatedList<VocabularyEntry>>>;
/** /**
* The {@link HALLink}s for this Vocabulary * The {@link HALLink}s for this Vocabulary
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
entries: HALLink entries: HALLink
}; };

View File

@@ -32,21 +32,21 @@ export class SupervisionOrder implements CacheableObject {
* The identifier for this Supervision Order * The identifier for this Supervision Order
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The object type * The object type
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The object type * The object type
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
ordertype: string; ordertype: string;
/** /**
* The universally unique identifier for this Supervision Order * The universally unique identifier for this Supervision Order
@@ -60,7 +60,7 @@ export class SupervisionOrder implements CacheableObject {
* The {@link HALLink}s for this SupervisionOrder * The {@link HALLink}s for this SupervisionOrder
*/ */
@deserialize @deserialize
_links: { _links: {
item: HALLink, item: HALLink,
group: HALLink, group: HALLink,
self: HALLink, self: HALLink,
@@ -71,12 +71,12 @@ export class SupervisionOrder implements CacheableObject {
* Will be undefined unless the item {@link HALLink} has been resolved. * Will be undefined unless the item {@link HALLink} has been resolved.
*/ */
@link(ITEM) @link(ITEM)
item?: Observable<RemoteData<Item>>; item?: Observable<RemoteData<Item>>;
/** /**
* The group linked by this supervision order * The group linked by this supervision order
* Will be undefined unless the version {@link HALLink} has been resolved. * Will be undefined unless the version {@link HALLink} has been resolved.
*/ */
@link(GROUP) @link(GROUP)
group?: Observable<RemoteData<Group>>; group?: Observable<RemoteData<Group>>;
} }

View File

@@ -6,6 +6,6 @@ import { autoserialize } from 'cerialize';
export abstract class AdvancedWorkflowInfo { export abstract class AdvancedWorkflowInfo {
@autoserialize @autoserialize
id: string; id: string;
} }

View File

@@ -21,12 +21,12 @@ export class RatingAdvancedWorkflowInfo extends AdvancedWorkflowInfo {
* Whether the description is required. * Whether the description is required.
*/ */
@autoserialize @autoserialize
descriptionRequired: boolean; descriptionRequired: boolean;
/** /**
* The maximum value. * The maximum value.
*/ */
@autoserialize @autoserialize
maxValue: number; maxValue: number;
} }

View File

@@ -18,6 +18,6 @@ export class SelectReviewerAdvancedWorkflowInfo extends AdvancedWorkflowInfo {
static type: ResourceType = SELECT_REVIEWER_ADVANCED_WORKFLOW_INFO; static type: ResourceType = SELECT_REVIEWER_ADVANCED_WORKFLOW_INFO;
@autoserialize @autoserialize
group: string; group: string;
} }

View File

@@ -34,19 +34,19 @@ export class TaskObject extends DSpaceObject implements CacheableObject {
* The task identifier * The task identifier
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The workflow step * The workflow step
*/ */
@autoserialize @autoserialize
step: string; step: string;
/** /**
* The {@link HALLink}s for this TaskObject * The {@link HALLink}s for this TaskObject
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
owner: HALLink; owner: HALLink;
group: HALLink; group: HALLink;
@@ -59,14 +59,14 @@ export class TaskObject extends DSpaceObject implements CacheableObject {
* Will be undefined unless the eperson {@link HALLink} has been resolved. * Will be undefined unless the eperson {@link HALLink} has been resolved.
*/ */
@link(EPERSON, false, 'owner') @link(EPERSON, false, 'owner')
eperson?: Observable<RemoteData<EPerson>>; eperson?: Observable<RemoteData<EPerson>>;
/** /**
* The Group for this task * The Group for this task
* Will be undefined unless the group {@link HALLink} has been resolved. * Will be undefined unless the group {@link HALLink} has been resolved.
*/ */
@link(GROUP) @link(GROUP)
group?: Observable<RemoteData<Group>>; group?: Observable<RemoteData<Group>>;
/** /**
* The WorkflowItem for this task * The WorkflowItem for this task
@@ -81,6 +81,6 @@ export class TaskObject extends DSpaceObject implements CacheableObject {
* Will be undefined unless the group {@link HALLink} has been resolved. * Will be undefined unless the group {@link HALLink} has been resolved.
*/ */
@link(WORKFLOW_ACTION, false, 'action') @link(WORKFLOW_ACTION, false, 'action')
action: Observable<RemoteData<WorkflowAction>>; action: Observable<RemoteData<WorkflowAction>>;
} }

View File

@@ -20,30 +20,30 @@ export class WorkflowAction extends DSpaceObject {
* The workflow action's identifier * The workflow action's identifier
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The options available for this workflow action * The options available for this workflow action
*/ */
@autoserialize @autoserialize
options: string[]; options: string[];
/** /**
* Whether this action has advanced options * Whether this action has advanced options
*/ */
@autoserialize @autoserialize
advanced: boolean; advanced: boolean;
/** /**
* The advanced options that the user can select at this action * The advanced options that the user can select at this action
*/ */
@autoserialize @autoserialize
advancedOptions: string[]; advancedOptions: string[];
/** /**
* The advanced info required by the advanced options * The advanced info required by the advanced options
*/ */
@autoserialize @autoserialize
advancedInfo: AdvancedWorkflowInfo[]; advancedInfo: AdvancedWorkflowInfo[];
} }

View File

@@ -21,7 +21,7 @@ class Dog extends EquatableObject<Dog> {
class Owner extends EquatableObject<Owner> { class Owner extends EquatableObject<Owner> {
@excludeFromEquals @excludeFromEquals
favouriteFood: string; favouriteFood: string;
constructor( constructor(
public name: string, public name: string,

View File

@@ -62,7 +62,7 @@ export class CurationFormComponent implements OnDestroy, OnInit {
form: UntypedFormGroup; form: UntypedFormGroup;
@Input() @Input()
dsoHandle: string; dsoHandle: string;
subs: Subscription[] = []; subs: Subscription[] = [];

View File

@@ -26,25 +26,25 @@ export class NotifyRequestsStatus implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The notify statuses. * The notify statuses.
*/ */
@autoserialize @autoserialize
notifyStatus: NotifyStatuses[]; notifyStatus: NotifyStatuses[];
/** /**
* The UUID of the item. * The UUID of the item.
*/ */
@autoserialize @autoserialize
itemuuid: string; itemuuid: string;
/** /**
* The links associated with the notify requests status. * The links associated with the notify requests status.
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
[k: string]: HALLink | HALLink[]; [k: string]: HALLink | HALLink[];
}; };

View File

@@ -18,7 +18,7 @@ export class ItemVersionsDeleteModalComponent {
* An event fired when the cancel or confirm button is clicked, with respectively false or true * An event fired when the cancel or confirm button is clicked, with respectively false or true
*/ */
@Output() @Output()
response = new EventEmitter<boolean>(); response = new EventEmitter<boolean>();
versionNumber: number; versionNumber: number;

View File

@@ -17,19 +17,19 @@ export class Filetypes {
* The id of this {@link Filetypes} * The id of this {@link Filetypes}
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The values of this {@link Filetypes} * The values of this {@link Filetypes}
*/ */
@autoserialize @autoserialize
values: string[]; values: string[];
/** /**
* The object type * The object type
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
} }

View File

@@ -38,61 +38,61 @@ export class Process implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The identifier for this process * The identifier for this process
*/ */
@autoserializeAs(String) @autoserializeAs(String)
processId: string; processId: string;
/** /**
* The UUID for the user that started the process * The UUID for the user that started the process
*/ */
@autoserialize @autoserialize
userId: string; userId: string;
/** /**
* The creation time for this process * The creation time for this process
*/ */
@autoserialize @autoserialize
creationTime: string; creationTime: string;
/** /**
* The start time for this process * The start time for this process
*/ */
@autoserialize @autoserialize
startTime: string; startTime: string;
/** /**
* The end time for this process * The end time for this process
*/ */
@autoserialize @autoserialize
endTime: string; endTime: string;
/** /**
* The name of the script run by this process * The name of the script run by this process
*/ */
@autoserialize @autoserialize
scriptName: string; scriptName: string;
/** /**
* The status of this process * The status of this process
*/ */
@autoserialize @autoserialize
processStatus: ProcessStatus; processStatus: ProcessStatus;
/** /**
* The parameters for this process * The parameters for this process
*/ */
@autoserialize @autoserialize
parameters: ProcessParameter[]; parameters: ProcessParameter[];
/** /**
* The {@link HALLink}s for this Process * The {@link HALLink}s for this Process
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
script: HALLink, script: HALLink,
output: HALLink, output: HALLink,
@@ -105,27 +105,27 @@ export class Process implements CacheableObject {
* Will be undefined unless the script {@link HALLink} has been resolved. * Will be undefined unless the script {@link HALLink} has been resolved.
*/ */
@link(SCRIPT) @link(SCRIPT)
script?: Observable<RemoteData<Script>>; script?: Observable<RemoteData<Script>>;
/** /**
* The output logs created by this Process * The output logs created by this Process
* Will be undefined unless the output {@link HALLink} has been resolved. * Will be undefined unless the output {@link HALLink} has been resolved.
*/ */
@link(PROCESS_OUTPUT_TYPE) @link(PROCESS_OUTPUT_TYPE)
output?: Observable<RemoteData<Bitstream>>; output?: Observable<RemoteData<Bitstream>>;
/** /**
* The files created by this Process * The files created by this Process
* Will be undefined unless the output {@link HALLink} has been resolved. * Will be undefined unless the output {@link HALLink} has been resolved.
*/ */
@link(BITSTREAM, true) @link(BITSTREAM, true)
files?: Observable<RemoteData<PaginatedList<Bitstream>>>; files?: Observable<RemoteData<PaginatedList<Bitstream>>>;
/** /**
* The filetypes present in this Process * The filetypes present in this Process
* Will be undefined unless the output {@link HALLink} has been resolved. * Will be undefined unless the output {@link HALLink} has been resolved.
*/ */
@link(FILETYPES) @link(FILETYPES)
filetypes?: Observable<RemoteData<Filetypes>>; filetypes?: Observable<RemoteData<Filetypes>>;
} }

View File

@@ -23,37 +23,37 @@ export class Script implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The identifier of this script * The identifier of this script
*/ */
@autoserialize @autoserialize
id: string; id: string;
/** /**
* The name of this script * The name of this script
*/ */
@autoserialize @autoserialize
name: string; name: string;
/** /**
* A short description of this script * A short description of this script
*/ */
@autoserialize @autoserialize
description: string; description: string;
/** /**
* The available parameters for this script * The available parameters for this script
*/ */
@autoserialize @autoserialize
parameters: ScriptParameter[]; parameters: ScriptParameter[];
/** /**
* The {@link HALLink}s for this Script * The {@link HALLink}s for this Script
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink, self: HALLink,
}; };
} }

View File

@@ -86,13 +86,13 @@ export class ProfilePageSecurityFormComponent implements OnInit {
* Indicates whether the "checkPasswordEmpty" needs to be added or not * Indicates whether the "checkPasswordEmpty" needs to be added or not
*/ */
@Input() @Input()
passwordCanBeEmpty = true; passwordCanBeEmpty = true;
/** /**
* Prefix for the form's label messages of this component * Prefix for the form's label messages of this component
*/ */
@Input() @Input()
FORM_PREFIX: string; FORM_PREFIX: string;
private subs: Subscription[] = []; private subs: Subscription[] = [];

View File

@@ -82,13 +82,13 @@ export class RegisterEmailFormComponent implements OnDestroy, OnInit {
* The message prefix * The message prefix
*/ */
@Input() @Input()
MESSAGE_PREFIX: string; MESSAGE_PREFIX: string;
/** /**
* Type of register request to be done, register new email or forgot password (same endpoint) * Type of register request to be done, register new email or forgot password (same endpoint)
*/ */
@Input() @Input()
typeRequest: string = null; typeRequest: string = null;
public AlertTypeEnum = AlertType; public AlertTypeEnum = AlertType;

View File

@@ -71,7 +71,7 @@ export class ComcolRoleComponent implements OnInit {
* The community or collection to manage. * The community or collection to manage.
*/ */
@Input() @Input()
dso: Community | Collection; dso: Community | Collection;
/** /**
* The role to manage * The role to manage

View File

@@ -31,7 +31,7 @@ export class ConfirmationModalComponent {
* An event fired when the cancel or confirm button is clicked, with respectively false or true * An event fired when the cancel or confirm button is clicked, with respectively false or true
*/ */
@Output() @Output()
response = new EventEmitter<boolean>(); response = new EventEmitter<boolean>();
constructor( constructor(
protected activeModal: NgbActiveModal, protected activeModal: NgbActiveModal,

View File

@@ -24,23 +24,23 @@ export class DsSelectComponent {
* An optional label for the dropdown selector. * An optional label for the dropdown selector.
*/ */
@Input() @Input()
label: string; label: string;
/** /**
* Whether the dropdown selector is disabled. * Whether the dropdown selector is disabled.
*/ */
@Input() @Input()
disabled: boolean; disabled: boolean;
/** /**
* Emits an event when the dropdown selector is opened or closed. * Emits an event when the dropdown selector is opened or closed.
*/ */
@Output() @Output()
toggled = new EventEmitter(); toggled = new EventEmitter();
/** /**
* Emits an event when the dropdown selector or closed. * Emits an event when the dropdown selector or closed.
*/ */
@Output() @Output()
close = new EventEmitter(); close = new EventEmitter();
} }

View File

@@ -40,7 +40,7 @@ export class ImportBatchSelectorComponent extends DSOSelectorModalWrapperCompone
* An event fired when the modal is closed * An event fired when the modal is closed
*/ */
@Output() @Output()
response = new EventEmitter<DSpaceObject>(); response = new EventEmitter<DSpaceObject>();
constructor(protected activeModal: NgbActiveModal, constructor(protected activeModal: NgbActiveModal,
protected route: ActivatedRoute) { protected route: ActivatedRoute) {

View File

@@ -39,43 +39,43 @@ export class FormFieldModel {
* The hints for this metadata field to display on form * The hints for this metadata field to display on form
*/ */
@autoserialize @autoserialize
hints: string; hints: string;
/** /**
* The label for this metadata field to display on form * The label for this metadata field to display on form
*/ */
@autoserialize @autoserialize
label: string; label: string;
/** /**
* The languages available for this metadata field to display on form * The languages available for this metadata field to display on form
*/ */
@autoserialize @autoserialize
languageCodes: LanguageCode[]; languageCodes: LanguageCode[];
/** /**
* The error message for this metadata field to display on form in case of field is required * The error message for this metadata field to display on form in case of field is required
*/ */
@autoserialize @autoserialize
mandatoryMessage: string; mandatoryMessage: string;
/** /**
* Representing if this metadata field is mandatory or not * Representing if this metadata field is mandatory or not
*/ */
@autoserialize @autoserialize
mandatory: string; mandatory: string;
/** /**
* Representing if this metadata field is repeatable or not * Representing if this metadata field is repeatable or not
*/ */
@autoserialize @autoserialize
repeatable: boolean; repeatable: boolean;
/** /**
* Containing additional properties for this metadata field * Containing additional properties for this metadata field
*/ */
@autoserialize @autoserialize
input: { input: {
/** /**
* Representing the type for this metadata field * Representing the type for this metadata field
*/ */
@@ -91,41 +91,41 @@ export class FormFieldModel {
* Representing additional vocabulary configuration for this metadata field * Representing additional vocabulary configuration for this metadata field
*/ */
@autoserialize @autoserialize
selectableMetadata: SelectableMetadata[]; selectableMetadata: SelectableMetadata[];
/** /**
* Representing additional relationship configuration for this metadata field * Representing additional relationship configuration for this metadata field
*/ */
@autoserialize @autoserialize
selectableRelationship: RelationshipOptions; selectableRelationship: RelationshipOptions;
@autoserialize @autoserialize
rows: FormRowModel[]; rows: FormRowModel[];
/** /**
* Representing the scope for this metadata field * Representing the scope for this metadata field
*/ */
@autoserialize @autoserialize
scope: string; scope: string;
/** /**
* Containing additional css classes for this metadata field to use on form * Containing additional css classes for this metadata field to use on form
*/ */
@autoserialize @autoserialize
style: string; style: string;
/** /**
* Containing types to bind for this field * Containing types to bind for this field
*/ */
@autoserialize @autoserialize
typeBind: string[]; typeBind: string[];
/** /**
* Containing the value for this metadata field * Containing the value for this metadata field
*/ */
@autoserialize @autoserialize
value: any; value: any;
@autoserialize @autoserialize
visibility: SectionVisibility; visibility: SectionVisibility;
} }

View File

@@ -37,7 +37,7 @@ export class IdleModalComponent implements OnInit {
* An event fired when the modal is closed * An event fired when the modal is closed
*/ */
@Output() @Output()
response = new EventEmitter<boolean>(); response = new EventEmitter<boolean>();
constructor(private activeModal: NgbActiveModal, constructor(private activeModal: NgbActiveModal,
private authService: AuthService, private authService: AuthService,

View File

@@ -19,13 +19,13 @@ export class AccessStatusObject implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The access status value * The access status value
*/ */
@autoserialize @autoserialize
status: string; status: string;
/** /**
* The {@link HALLink}s for this AccessStatusObject * The {@link HALLink}s for this AccessStatusObject

View File

@@ -21,41 +21,41 @@ export class Duplicate implements CacheableObject {
* The item title * The item title
*/ */
@autoserialize @autoserialize
title: string; title: string;
/** /**
* The item uuid * The item uuid
*/ */
@autoserialize @autoserialize
uuid: string; uuid: string;
/** /**
* The workfow item ID, if any * The workfow item ID, if any
*/ */
@autoserialize @autoserialize
workflowItemId: number; workflowItemId: number;
/** /**
* The workspace item ID, if any * The workspace item ID, if any
*/ */
@autoserialize @autoserialize
workspaceItemId: number; workspaceItemId: number;
/** /**
* The owning collection of the item * The owning collection of the item
*/ */
@autoserialize @autoserialize
owningCollection: string; owningCollection: string;
/** /**
* Metadata for the preview item (e.g. dc.title) * Metadata for the preview item (e.g. dc.title)
*/ */
@autoserialize @autoserialize
metadata: MetadataMap; metadata: MetadataMap;
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The {@link HALLink}s for the URL that generated this item (in context of search results) * The {@link HALLink}s for the URL that generated this item (in context of search results)
*/ */
@deserialize @deserialize
_links: { _links: {
self: HALLink; self: HALLink;
}; };
} }

View File

@@ -19,13 +19,13 @@ export class IdentifierData implements CacheableObject {
*/ */
@excludeFromEquals @excludeFromEquals
@autoserialize @autoserialize
type: ResourceType; type: ResourceType;
/** /**
* The * The
*/ */
@autoserialize @autoserialize
identifiers: Identifier[]; identifiers: Identifier[];
/** /**
* The {@link HALLink}s for this IdentifierData * The {@link HALLink}s for this IdentifierData

Some files were not shown because too many files have changed in this diff Show More