mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Fix overindented decorated properties
This commit is contained in:
@@ -45,7 +45,10 @@
|
||||
"error",
|
||||
2,
|
||||
{
|
||||
"SwitchCase": 1
|
||||
"SwitchCase": 1,
|
||||
"ignoredNodes": [
|
||||
"ClassBody.body > PropertyDefinition[decorators.length > 0] > .key"
|
||||
]
|
||||
}
|
||||
],
|
||||
"max-classes-per-file": [
|
||||
|
@@ -114,21 +114,21 @@ export interface EPersonListActionConfig {
|
||||
export class MembersListComponent implements OnInit, OnDestroy {
|
||||
|
||||
@Input()
|
||||
messagePrefix: string;
|
||||
messagePrefix: string;
|
||||
|
||||
@Input()
|
||||
actionConfig: EPersonListActionConfig = {
|
||||
add: {
|
||||
css: 'btn-outline-primary',
|
||||
disabled: false,
|
||||
icon: 'fas fa-plus fa-fw',
|
||||
},
|
||||
remove: {
|
||||
css: 'btn-outline-danger',
|
||||
disabled: false,
|
||||
icon: 'fas fa-trash-alt fa-fw',
|
||||
},
|
||||
};
|
||||
actionConfig: EPersonListActionConfig = {
|
||||
add: {
|
||||
css: 'btn-outline-primary',
|
||||
disabled: false,
|
||||
icon: 'fas fa-plus fa-fw',
|
||||
},
|
||||
remove: {
|
||||
css: 'btn-outline-danger',
|
||||
disabled: false,
|
||||
icon: 'fas fa-trash-alt fa-fw',
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* EPeople being displayed in search result, initially all members, after search result of search
|
||||
|
@@ -80,7 +80,7 @@ enum SubKey {
|
||||
export class SubgroupsListComponent implements OnInit, OnDestroy {
|
||||
|
||||
@Input()
|
||||
messagePrefix: string;
|
||||
messagePrefix: string;
|
||||
|
||||
/**
|
||||
* Result of search groups, initially all groups
|
||||
|
@@ -18,13 +18,13 @@ export class Itemfilter extends CacheableObject {
|
||||
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: {
|
||||
href: string;
|
||||
};
|
||||
|
@@ -5,9 +5,9 @@ import { autoserialize } from 'cerialize';
|
||||
*/
|
||||
export class NotifyServicePattern {
|
||||
@autoserialize
|
||||
pattern: string;
|
||||
pattern: string;
|
||||
@autoserialize
|
||||
constraint: string;
|
||||
constraint: string;
|
||||
@autoserialize
|
||||
automatic: string;
|
||||
automatic: string;
|
||||
}
|
||||
|
@@ -29,43 +29,43 @@ export class LdnService extends CacheableObject {
|
||||
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
@autoserialize
|
||||
id: number;
|
||||
id: number;
|
||||
|
||||
@deserializeAs('id')
|
||||
uuid: string;
|
||||
uuid: string;
|
||||
|
||||
@autoserialize
|
||||
name: string;
|
||||
name: string;
|
||||
|
||||
@autoserialize
|
||||
description: string;
|
||||
description: string;
|
||||
|
||||
@autoserialize
|
||||
url: string;
|
||||
url: string;
|
||||
|
||||
@autoserialize
|
||||
score: number;
|
||||
score: number;
|
||||
|
||||
@autoserialize
|
||||
enabled: boolean;
|
||||
enabled: boolean;
|
||||
|
||||
@autoserialize
|
||||
ldnUrl: string;
|
||||
ldnUrl: string;
|
||||
|
||||
@autoserialize
|
||||
lowerIp: string;
|
||||
lowerIp: string;
|
||||
|
||||
@autoserialize
|
||||
upperIp: string;
|
||||
upperIp: string;
|
||||
|
||||
@autoserialize
|
||||
notifyServiceInboundPatterns?: NotifyServicePattern[];
|
||||
notifyServiceInboundPatterns?: NotifyServicePattern[];
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: {
|
||||
href: string;
|
||||
};
|
||||
|
@@ -43,7 +43,7 @@ export class AdminNotifyDetailModalComponent {
|
||||
* An event fired when the modal is closed
|
||||
*/
|
||||
@Output()
|
||||
response = new EventEmitter<boolean>();
|
||||
response = new EventEmitter<boolean>();
|
||||
|
||||
public isCoarMessageVisible = false;
|
||||
|
||||
|
@@ -51,7 +51,7 @@ import { ThemedSearchComponent } from '../../../../shared/search/themed-search.c
|
||||
export class AdminNotifyLogsResultComponent implements OnInit {
|
||||
|
||||
@Input()
|
||||
defaultConfiguration: string;
|
||||
defaultConfiguration: string;
|
||||
|
||||
|
||||
public selectedSearchConfig$: Observable<string>;
|
||||
|
@@ -27,7 +27,7 @@ import { AdminNotifyMetricsRow } from './admin-notify-metrics.model';
|
||||
export class AdminNotifyMetricsComponent {
|
||||
|
||||
@Input()
|
||||
boxesConfig: AdminNotifyMetricsRow[];
|
||||
boxesConfig: AdminNotifyMetricsRow[];
|
||||
|
||||
private incomingConfiguration = 'NOTIFY.incoming';
|
||||
private involvedItemsSuffix = 'involvedItems';
|
||||
|
@@ -24,138 +24,138 @@ export class AdminNotifyMessage extends DSpaceObject {
|
||||
* The type of the resource
|
||||
*/
|
||||
@excludeFromEquals
|
||||
type = ADMIN_NOTIFY_MESSAGE;
|
||||
type = ADMIN_NOTIFY_MESSAGE;
|
||||
|
||||
/**
|
||||
* The id of the message
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The id of the notification
|
||||
*/
|
||||
@autoserialize
|
||||
notificationId: string;
|
||||
notificationId: string;
|
||||
|
||||
/**
|
||||
* The type of the notification
|
||||
*/
|
||||
@autoserialize
|
||||
notificationType: string;
|
||||
notificationType: string;
|
||||
|
||||
/**
|
||||
* The type of the notification
|
||||
*/
|
||||
@autoserialize
|
||||
coarNotifyType: string;
|
||||
coarNotifyType: string;
|
||||
|
||||
/**
|
||||
* The type of the activity
|
||||
*/
|
||||
@autoserialize
|
||||
activityStreamType: string;
|
||||
activityStreamType: string;
|
||||
|
||||
/**
|
||||
* The object the message reply to
|
||||
*/
|
||||
@autoserialize
|
||||
inReplyTo: string;
|
||||
inReplyTo: string;
|
||||
|
||||
/**
|
||||
* The object the message relates to
|
||||
*/
|
||||
@autoserialize
|
||||
object: string;
|
||||
object: string;
|
||||
|
||||
/**
|
||||
* The name of the related item
|
||||
*/
|
||||
@autoserialize
|
||||
relatedItem: string;
|
||||
relatedItem: string;
|
||||
|
||||
/**
|
||||
* The name of the related ldn service
|
||||
*/
|
||||
@autoserialize
|
||||
ldnService: string;
|
||||
ldnService: string;
|
||||
|
||||
/**
|
||||
* The context of the message
|
||||
*/
|
||||
@autoserialize
|
||||
context: string;
|
||||
context: string;
|
||||
|
||||
/**
|
||||
* The related COAR message
|
||||
*/
|
||||
@autoserialize
|
||||
message: string;
|
||||
message: string;
|
||||
|
||||
/**
|
||||
* The attempts of the queue
|
||||
*/
|
||||
@autoserialize
|
||||
queueAttempts: number;
|
||||
queueAttempts: number;
|
||||
|
||||
/**
|
||||
* Timestamp of the last queue attempt
|
||||
*/
|
||||
@autoserialize
|
||||
queueLastStartTime: string;
|
||||
queueLastStartTime: string;
|
||||
|
||||
/**
|
||||
* The type of the activity stream
|
||||
*/
|
||||
@autoserialize
|
||||
origin: number | string;
|
||||
origin: number | string;
|
||||
|
||||
/**
|
||||
* The type of the activity stream
|
||||
*/
|
||||
@autoserialize
|
||||
target: number | string;
|
||||
target: number | string;
|
||||
|
||||
/**
|
||||
* The label for the status of the queue
|
||||
*/
|
||||
@autoserialize
|
||||
queueStatusLabel: string;
|
||||
queueStatusLabel: string;
|
||||
|
||||
/**
|
||||
* The timeout of the queue
|
||||
*/
|
||||
@autoserialize
|
||||
queueTimeout: string;
|
||||
queueTimeout: string;
|
||||
|
||||
/**
|
||||
* The status of the queue
|
||||
*/
|
||||
@autoserialize
|
||||
queueStatus: number;
|
||||
queueStatus: number;
|
||||
|
||||
/**
|
||||
* Thumbnail link used when browsing items with showThumbs config enabled.
|
||||
*/
|
||||
@autoserialize
|
||||
thumbnail: string;
|
||||
thumbnail: string;
|
||||
|
||||
/**
|
||||
* The observable pointing to the item itself
|
||||
*/
|
||||
@autoserialize
|
||||
item: Observable<AdminNotifyMessage>;
|
||||
item: Observable<AdminNotifyMessage>;
|
||||
|
||||
/**
|
||||
* The observable pointing to the access status of the item
|
||||
*/
|
||||
@autoserialize
|
||||
accessStatus: Observable<AdminNotifyMessage>;
|
||||
accessStatus: Observable<AdminNotifyMessage>;
|
||||
|
||||
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: {
|
||||
href: string;
|
||||
};
|
||||
|
@@ -36,14 +36,14 @@ export class AuthStatus implements CacheableObject {
|
||||
* The unique identifier of this auth status
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The type for this AuthStatus
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
@autoserialize
|
||||
okay: boolean;
|
||||
okay: boolean;
|
||||
|
||||
/**
|
||||
* If the auth status represents an authenticated state
|
||||
*/
|
||||
@autoserialize
|
||||
authenticated: boolean;
|
||||
authenticated: boolean;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this AuthStatus
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
eperson: HALLink;
|
||||
specialGroups: HALLink;
|
||||
@@ -80,32 +80,32 @@ export class AuthStatus implements CacheableObject {
|
||||
* Will be undefined unless the eperson {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(EPERSON)
|
||||
eperson?: Observable<RemoteData<EPerson>>;
|
||||
eperson?: Observable<RemoteData<EPerson>>;
|
||||
|
||||
/**
|
||||
* The SpecialGroup of this auth status
|
||||
* Will be undefined unless the SpecialGroup {@link HALLink} has been resolved.
|
||||
*/
|
||||
@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
|
||||
*/
|
||||
@autoserialize
|
||||
token?: AuthTokenInfo;
|
||||
token?: AuthTokenInfo;
|
||||
|
||||
/**
|
||||
* Authentication error if there was one for this status
|
||||
*/
|
||||
// TODO should be refactored to use the RemoteData error
|
||||
@autoserialize
|
||||
error?: AuthError;
|
||||
error?: AuthError;
|
||||
|
||||
/**
|
||||
* All authentication methods enabled at the backend
|
||||
*/
|
||||
@autoserialize
|
||||
authMethods: AuthMethod[];
|
||||
authMethods: AuthMethod[];
|
||||
|
||||
}
|
||||
|
@@ -22,19 +22,19 @@ export class ShortLivedToken implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The value for this ShortLivedToken
|
||||
*/
|
||||
@autoserializeAs('token')
|
||||
value: string;
|
||||
value: string;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this ShortLivedToken
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
};
|
||||
}
|
||||
|
4
src/app/core/cache/models/self-link.model.ts
vendored
4
src/app/core/cache/models/self-link.model.ts
vendored
@@ -3,9 +3,9 @@ import { autoserialize } from 'cerialize';
|
||||
export class SelfLink {
|
||||
|
||||
@autoserialize
|
||||
self: string;
|
||||
self: string;
|
||||
|
||||
@autoserialize
|
||||
uuid: string;
|
||||
uuid: string;
|
||||
|
||||
}
|
||||
|
@@ -25,19 +25,19 @@ export class BulkAccessConditionOptions extends ConfigObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
@autoserializeAs(String, 'name')
|
||||
uuid: string;
|
||||
uuid: string;
|
||||
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
@autoserialize
|
||||
itemAccessConditionOptions: AccessesConditionOption[];
|
||||
itemAccessConditionOptions: AccessesConditionOption[];
|
||||
|
||||
@autoserialize
|
||||
bitstreamAccessConditionOptions: AccessesConditionOption[];
|
||||
bitstreamAccessConditionOptions: AccessesConditionOption[];
|
||||
|
||||
_links: { self: HALLink };
|
||||
}
|
||||
|
@@ -22,25 +22,25 @@ export class SubmissionAccessModel extends ConfigObject {
|
||||
* A list of available item access conditions
|
||||
*/
|
||||
@autoserialize
|
||||
accessConditionOptions: AccessesConditionOption[];
|
||||
accessConditionOptions: AccessesConditionOption[];
|
||||
|
||||
/**
|
||||
* Boolean that indicates whether the current item must be findable via search or browse.
|
||||
*/
|
||||
@autoserialize
|
||||
discoverable: boolean;
|
||||
discoverable: boolean;
|
||||
|
||||
/**
|
||||
* Boolean that indicates whether or not the user can change the discoverable flag.
|
||||
*/
|
||||
@autoserialize
|
||||
canChangeDiscoverable: boolean;
|
||||
canChangeDiscoverable: boolean;
|
||||
|
||||
/**
|
||||
* The links to all related resources returned by the rest api.
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink
|
||||
};
|
||||
|
||||
|
@@ -23,20 +23,20 @@ export class SubmissionDefinitionModel extends ConfigObject {
|
||||
* A boolean representing if this submission definition is the default or not
|
||||
*/
|
||||
@autoserialize
|
||||
isDefault: boolean;
|
||||
isDefault: boolean;
|
||||
|
||||
/**
|
||||
* A list of SubmissionSectionModel that are present in this submission definition
|
||||
*/
|
||||
// TODO refactor using remotedata
|
||||
@deserialize
|
||||
sections: PaginatedList<SubmissionSectionModel>;
|
||||
sections: PaginatedList<SubmissionSectionModel>;
|
||||
|
||||
/**
|
||||
* The links to all related resources returned by the rest api.
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
collections: HALLink,
|
||||
sections: HALLink
|
||||
|
@@ -27,5 +27,5 @@ export class SubmissionFormModel extends ConfigObject {
|
||||
* An array of [FormRowModel] that are present in this form
|
||||
*/
|
||||
@autoserialize
|
||||
rows: FormRowModel[];
|
||||
rows: FormRowModel[];
|
||||
}
|
||||
|
@@ -27,31 +27,31 @@ export class SubmissionSectionModel extends ConfigObject {
|
||||
* The header for this section
|
||||
*/
|
||||
@autoserialize
|
||||
header: string;
|
||||
header: string;
|
||||
|
||||
/**
|
||||
* A boolean representing if this submission section is the mandatory or not
|
||||
*/
|
||||
@autoserialize
|
||||
mandatory: boolean;
|
||||
mandatory: boolean;
|
||||
|
||||
/**
|
||||
* A string representing the kind of section object
|
||||
*/
|
||||
@autoserialize
|
||||
sectionType: SectionsType;
|
||||
sectionType: SectionsType;
|
||||
|
||||
/**
|
||||
* The [SubmissionSectionVisibility] object for this section
|
||||
*/
|
||||
@autoserialize
|
||||
visibility: SubmissionSectionVisibility;
|
||||
visibility: SubmissionSectionVisibility;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this SubmissionSectionModel
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
config: HALLink;
|
||||
};
|
||||
|
@@ -27,22 +27,22 @@ export class SubmissionUploadModel extends ConfigObject {
|
||||
* A list of available bitstream access conditions
|
||||
*/
|
||||
@autoserialize
|
||||
accessConditionOptions: AccessConditionOption[];
|
||||
accessConditionOptions: AccessConditionOption[];
|
||||
|
||||
/**
|
||||
* An object representing the configuration describing the bitstream metadata form
|
||||
*/
|
||||
@link(SUBMISSION_FORMS_TYPE)
|
||||
metadata?: Observable<RemoteData<SubmissionFormsModel>>;
|
||||
metadata?: Observable<RemoteData<SubmissionFormsModel>>;
|
||||
|
||||
@autoserialize
|
||||
required: boolean;
|
||||
required: boolean;
|
||||
|
||||
@autoserialize
|
||||
maxSize: number;
|
||||
maxSize: number;
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
metadata: HALLink
|
||||
self: HALLink
|
||||
};
|
||||
|
@@ -27,13 +27,13 @@ export abstract class ConfigObject implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The links to all related resources returned by the rest api.
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
[name: string]: HALLink
|
||||
};
|
||||
|
@@ -73,13 +73,13 @@ export class PaginatedList<T> extends CacheableObject {
|
||||
* The type of the list
|
||||
*/
|
||||
@excludeFromEquals
|
||||
type = PAGINATED_LIST;
|
||||
type = PAGINATED_LIST;
|
||||
|
||||
/**
|
||||
* The type of objects in the list
|
||||
*/
|
||||
@autoserialize
|
||||
objectType?: ResourceType;
|
||||
objectType?: ResourceType;
|
||||
|
||||
/**
|
||||
* The list of objects that represents the current page
|
||||
@@ -90,13 +90,13 @@ export class PaginatedList<T> extends CacheableObject {
|
||||
* the {@link PageInfo} object
|
||||
*/
|
||||
@autoserialize
|
||||
pageInfo?: PageInfo;
|
||||
pageInfo?: PageInfo;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this PaginatedList
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
page: HALLink[];
|
||||
first?: HALLink;
|
||||
|
@@ -22,37 +22,37 @@ export class Root implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The url for the dspace UI
|
||||
*/
|
||||
@autoserialize
|
||||
dspaceUI: string;
|
||||
dspaceUI: string;
|
||||
|
||||
/**
|
||||
* The repository Name
|
||||
*/
|
||||
@autoserialize
|
||||
dspaceName: string;
|
||||
dspaceName: string;
|
||||
|
||||
/**
|
||||
* The url for the rest api
|
||||
*/
|
||||
@autoserialize
|
||||
dspaceServer: string;
|
||||
dspaceServer: string;
|
||||
|
||||
/**
|
||||
* The current DSpace version
|
||||
*/
|
||||
@autoserialize
|
||||
dspaceVersion: string;
|
||||
dspaceVersion: string;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for the root object
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
[k: string]: HALLink | HALLink[];
|
||||
};
|
||||
|
@@ -9,13 +9,13 @@ import { DSpaceSerializer } from './dspace.serializer';
|
||||
|
||||
class TestModel implements HALResource {
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
@autoserialize
|
||||
name: string;
|
||||
name: string;
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
parents: HALLink;
|
||||
};
|
||||
|
@@ -48,7 +48,7 @@ export class Group extends DSpaceObject {
|
||||
* The {@link HALLink}s for this Group
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
subgroups: HALLink;
|
||||
epersons: HALLink;
|
||||
|
@@ -32,37 +32,37 @@ export class MetadataField extends ListableObject implements HALResource {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The identifier of this metadata field
|
||||
*/
|
||||
@autoserialize
|
||||
id: number;
|
||||
id: number;
|
||||
|
||||
/**
|
||||
* The element of this metadata field
|
||||
*/
|
||||
@autoserialize
|
||||
element: string;
|
||||
element: string;
|
||||
|
||||
/**
|
||||
* The qualifier of this metadata field
|
||||
*/
|
||||
@autoserialize
|
||||
qualifier: string;
|
||||
qualifier: string;
|
||||
|
||||
/**
|
||||
* The scope note of this metadata field
|
||||
*/
|
||||
@autoserialize
|
||||
scopeNote: string;
|
||||
scopeNote: string;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this MetadataField
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: 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.
|
||||
*/
|
||||
@link(METADATA_SCHEMA)
|
||||
schema?: Observable<RemoteData<MetadataSchema>>;
|
||||
schema?: Observable<RemoteData<MetadataSchema>>;
|
||||
|
||||
/**
|
||||
* Method to print this metadata field as a string without the schema
|
||||
|
@@ -23,29 +23,29 @@ export class MetadataSchema extends ListableObject implements HALResource {
|
||||
* The unique identifier for this metadata schema
|
||||
*/
|
||||
@autoserialize
|
||||
id: number;
|
||||
id: number;
|
||||
|
||||
/**
|
||||
* The object type
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* A unique prefix that defines this schema
|
||||
*/
|
||||
@autoserialize
|
||||
prefix: string;
|
||||
prefix: string;
|
||||
|
||||
/**
|
||||
* The namespace of this metadata schema
|
||||
*/
|
||||
@autoserialize
|
||||
namespace: string;
|
||||
namespace: string;
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
};
|
||||
|
||||
|
@@ -24,26 +24,26 @@ export class SuggestionSource implements CacheableObject {
|
||||
* The Suggestion Target id
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The total number of suggestions provided by Suggestion Target for
|
||||
*/
|
||||
@autoserialize
|
||||
total: number;
|
||||
total: number;
|
||||
|
||||
/**
|
||||
* The type of this ConfigObject
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The links to all related resources returned by the rest api.
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
suggestiontargets: HALLink
|
||||
};
|
||||
|
@@ -24,38 +24,38 @@ export class SuggestionTarget implements CacheableObject {
|
||||
* The Suggestion Target id
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The Suggestion Target name to display
|
||||
*/
|
||||
@autoserialize
|
||||
display: string;
|
||||
display: string;
|
||||
|
||||
/**
|
||||
* The Suggestion Target source to display
|
||||
*/
|
||||
@autoserialize
|
||||
source: string;
|
||||
source: string;
|
||||
|
||||
/**
|
||||
* The total number of suggestions provided by Suggestion Target for
|
||||
*/
|
||||
@autoserialize
|
||||
total: number;
|
||||
total: number;
|
||||
|
||||
/**
|
||||
* The type of this ConfigObject
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The links to all related resources returned by the rest api.
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
suggestions: HALLink,
|
||||
target: HALLink
|
||||
|
@@ -38,57 +38,57 @@ export class Suggestion implements CacheableObject {
|
||||
* The Suggestion id
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The Suggestion name to display
|
||||
*/
|
||||
@autoserialize
|
||||
display: string;
|
||||
display: string;
|
||||
|
||||
/**
|
||||
* The Suggestion source to display
|
||||
*/
|
||||
@autoserialize
|
||||
source: string;
|
||||
source: string;
|
||||
|
||||
/**
|
||||
* The Suggestion external source uri
|
||||
*/
|
||||
@autoserialize
|
||||
externalSourceUri: string;
|
||||
externalSourceUri: string;
|
||||
|
||||
/**
|
||||
* The Total Score of the suggestion
|
||||
*/
|
||||
@autoserialize
|
||||
score: string;
|
||||
score: string;
|
||||
|
||||
/**
|
||||
* The total number of suggestions provided by Suggestion Target for
|
||||
*/
|
||||
@autoserialize
|
||||
evidences: SuggestionEvidences;
|
||||
evidences: SuggestionEvidences;
|
||||
|
||||
/**
|
||||
* All metadata of this suggestion object
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserializeAs(MetadataMapSerializer)
|
||||
metadata: MetadataMap;
|
||||
metadata: MetadataMap;
|
||||
|
||||
/**
|
||||
* The type of this ConfigObject
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The links to all related resources returned by the rest api.
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
target: HALLink
|
||||
};
|
||||
|
@@ -104,62 +104,62 @@ export class QualityAssuranceEventObject implements CacheableObject {
|
||||
* The Quality Assurance event uuid inside DSpace
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The universally unique identifier of this Quality Assurance event
|
||||
*/
|
||||
@autoserializeAs(String, 'id')
|
||||
uuid: string;
|
||||
uuid: string;
|
||||
|
||||
/**
|
||||
* The Quality Assurance event original id (ex.: the source archive OAI-PMH identifier)
|
||||
*/
|
||||
@autoserialize
|
||||
originalId: string;
|
||||
originalId: string;
|
||||
|
||||
/**
|
||||
* The title of the article to which the suggestion refers
|
||||
*/
|
||||
@autoserialize
|
||||
title: string;
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* Reliability of the suggestion (of the data inside 'message')
|
||||
*/
|
||||
@autoserialize
|
||||
trust: number;
|
||||
trust: number;
|
||||
|
||||
/**
|
||||
* The timestamp Quality Assurance event was saved in DSpace
|
||||
*/
|
||||
@autoserialize
|
||||
eventDate: string;
|
||||
eventDate: string;
|
||||
|
||||
/**
|
||||
* The Quality Assurance event status (ACCEPTED, REJECTED, DISCARDED, PENDING)
|
||||
*/
|
||||
@autoserialize
|
||||
status: string;
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* The suggestion data. Data may vary depending on the source
|
||||
*/
|
||||
@autoserialize
|
||||
message: SourceQualityAssuranceEventMessageObject;
|
||||
message: SourceQualityAssuranceEventMessageObject;
|
||||
|
||||
/**
|
||||
* The type of this ConfigObject
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The links to all related resources returned by the rest api.
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
target: HALLink,
|
||||
related: HALLink
|
||||
@@ -170,12 +170,12 @@ export class QualityAssuranceEventObject implements CacheableObject {
|
||||
* Will be undefined unless the {@item HALLink} has been resolved.
|
||||
*/
|
||||
@link(ITEM)
|
||||
target?: Observable<RemoteData<Item>>;
|
||||
target?: Observable<RemoteData<Item>>;
|
||||
|
||||
/**
|
||||
* The related project for this Event
|
||||
* Will be undefined unless the {@related HALLink} has been resolved.
|
||||
*/
|
||||
@link(ITEM)
|
||||
related?: Observable<RemoteData<Item>>;
|
||||
related?: Observable<RemoteData<Item>>;
|
||||
}
|
||||
|
@@ -24,32 +24,32 @@ export class QualityAssuranceSourceObject implements CacheableObject {
|
||||
* The Quality Assurance source id
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The date of the last udate from Notifications
|
||||
*/
|
||||
@autoserialize
|
||||
lastEvent: string;
|
||||
lastEvent: string;
|
||||
|
||||
/**
|
||||
* The total number of suggestions provided by Notifications for this source
|
||||
*/
|
||||
@autoserialize
|
||||
totalEvents: number;
|
||||
totalEvents: number;
|
||||
|
||||
/**
|
||||
* The type of this ConfigObject
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The links to all related resources returned by the rest api.
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
};
|
||||
}
|
||||
|
@@ -24,38 +24,38 @@ export class QualityAssuranceTopicObject implements CacheableObject {
|
||||
* The Quality Assurance topic id
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The Quality Assurance topic name to display
|
||||
*/
|
||||
@autoserialize
|
||||
name: string;
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* The date of the last udate from Notifications
|
||||
*/
|
||||
@autoserialize
|
||||
lastEvent: string;
|
||||
lastEvent: string;
|
||||
|
||||
/**
|
||||
* The total number of suggestions provided by Notifications for this topic
|
||||
*/
|
||||
@autoserialize
|
||||
totalEvents: number;
|
||||
totalEvents: number;
|
||||
|
||||
/**
|
||||
* The type of this ConfigObject
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The links to all related resources returned by the rest api.
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
};
|
||||
}
|
||||
|
@@ -23,49 +23,49 @@ export class OrcidHistory extends CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The identifier of this Orcid History record
|
||||
*/
|
||||
@autoserialize
|
||||
id: number;
|
||||
id: number;
|
||||
|
||||
/**
|
||||
* The name of the related entity
|
||||
*/
|
||||
@autoserialize
|
||||
entityName: string;
|
||||
entityName: string;
|
||||
|
||||
/**
|
||||
* The identifier of the profileItem of this Orcid History record.
|
||||
*/
|
||||
@autoserialize
|
||||
profileItemId: string;
|
||||
profileItemId: string;
|
||||
|
||||
/**
|
||||
* The identifier of the entity related to this Orcid History record.
|
||||
*/
|
||||
@autoserialize
|
||||
entityId: string;
|
||||
entityId: string;
|
||||
|
||||
/**
|
||||
* The type of the entity related to this Orcid History record.
|
||||
*/
|
||||
@autoserialize
|
||||
entityType: string;
|
||||
entityType: string;
|
||||
|
||||
/**
|
||||
* The response status coming from ORCID api.
|
||||
*/
|
||||
@autoserialize
|
||||
status: number;
|
||||
status: number;
|
||||
|
||||
/**
|
||||
* The putCode assigned by ORCID to the entity.
|
||||
*/
|
||||
@autoserialize
|
||||
putCode: string;
|
||||
putCode: string;
|
||||
|
||||
/**
|
||||
* The last send attempt timestamp.
|
||||
@@ -86,7 +86,7 @@ export class OrcidHistory extends CacheableObject {
|
||||
* The {@link HALLink}s for this Orcid History record
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
};
|
||||
|
||||
|
@@ -23,49 +23,49 @@ export class OrcidQueue extends CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The identifier of this Orcid Queue record
|
||||
*/
|
||||
@autoserialize
|
||||
id: number;
|
||||
id: number;
|
||||
|
||||
/**
|
||||
* The record description.
|
||||
*/
|
||||
@autoserialize
|
||||
description: string;
|
||||
description: string;
|
||||
|
||||
/**
|
||||
* The identifier of the profileItem of this Orcid Queue record.
|
||||
*/
|
||||
@autoserialize
|
||||
profileItemId: string;
|
||||
profileItemId: string;
|
||||
|
||||
/**
|
||||
* The identifier of the entity related to this Orcid Queue record.
|
||||
*/
|
||||
@autoserialize
|
||||
entityId: string;
|
||||
entityId: string;
|
||||
|
||||
/**
|
||||
* The type of this Orcid Queue record.
|
||||
*/
|
||||
@autoserialize
|
||||
recordType: string;
|
||||
recordType: string;
|
||||
|
||||
/**
|
||||
* The operation related to this Orcid Queue record.
|
||||
*/
|
||||
@autoserialize
|
||||
operation: string;
|
||||
operation: string;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Orcid Queue record
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
};
|
||||
|
||||
|
@@ -31,28 +31,28 @@ export class ResearcherProfile extends CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The identifier of this Researcher Profile
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
@deserializeAs('id')
|
||||
uuid: string;
|
||||
uuid: string;
|
||||
|
||||
/**
|
||||
* The visibility of this Researcher Profile
|
||||
*/
|
||||
@autoserialize
|
||||
visible: boolean;
|
||||
visible: boolean;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Researcher Profile
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
item: HALLink,
|
||||
eperson: HALLink
|
||||
@@ -63,6 +63,6 @@ export class ResearcherProfile extends CacheableObject {
|
||||
* Will be undefined unless the item {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(ITEM)
|
||||
item?: Observable<RemoteData<Item>>;
|
||||
item?: Observable<RemoteData<Item>>;
|
||||
|
||||
}
|
||||
|
@@ -34,50 +34,50 @@ export class ResourcePolicy implements CacheableObject {
|
||||
* The identifier for this Resource Policy
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The name for this Resource Policy
|
||||
*/
|
||||
@autoserialize
|
||||
name: string;
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* The description for this Resource Policy
|
||||
*/
|
||||
@autoserialize
|
||||
description: string;
|
||||
description: string;
|
||||
|
||||
/**
|
||||
* The classification or this Resource Policy
|
||||
*/
|
||||
@autoserialize
|
||||
policyType: PolicyType;
|
||||
policyType: PolicyType;
|
||||
|
||||
/**
|
||||
* The action that is allowed by this Resource Policy
|
||||
*/
|
||||
@autoserialize
|
||||
action: ActionType;
|
||||
action: ActionType;
|
||||
|
||||
/**
|
||||
* The first day of validity of the policy (format YYYY-MM-DD)
|
||||
*/
|
||||
@autoserialize
|
||||
startDate: string;
|
||||
startDate: string;
|
||||
|
||||
/**
|
||||
* The last day of validity of the policy (format YYYY-MM-DD)
|
||||
*/
|
||||
@autoserialize
|
||||
endDate: string;
|
||||
endDate: string;
|
||||
|
||||
/**
|
||||
* The object type
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The universally unique identifier for this Resource Policy
|
||||
@@ -91,7 +91,7 @@ export class ResourcePolicy implements CacheableObject {
|
||||
* The {@link HALLink}s for this ResourcePolicy
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
eperson: HALLink,
|
||||
group: HALLink,
|
||||
self: HALLink,
|
||||
@@ -102,12 +102,12 @@ export class ResourcePolicy implements CacheableObject {
|
||||
* Will be undefined unless the version {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(EPERSON)
|
||||
eperson?: Observable<RemoteData<EPerson>>;
|
||||
eperson?: Observable<RemoteData<EPerson>>;
|
||||
|
||||
/**
|
||||
* The group linked by this resource policy
|
||||
* Will be undefined unless the version {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(GROUP)
|
||||
group?: Observable<RemoteData<Group>>;
|
||||
group?: Observable<RemoteData<Group>>;
|
||||
}
|
||||
|
@@ -31,10 +31,10 @@ export class Authorization extends DSpaceObject {
|
||||
* Unique identifier for this authorization
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
eperson: HALLink;
|
||||
feature: HALLink;
|
||||
@@ -46,17 +46,17 @@ export class Authorization extends DSpaceObject {
|
||||
* Null if the authorization grants access to anonymous users
|
||||
*/
|
||||
@link(EPERSON)
|
||||
eperson?: Observable<RemoteData<EPerson>>;
|
||||
eperson?: Observable<RemoteData<EPerson>>;
|
||||
|
||||
/**
|
||||
* The Feature enabled by this Authorization
|
||||
*/
|
||||
@link(FEATURE)
|
||||
feature?: Observable<RemoteData<Feature>>;
|
||||
feature?: Observable<RemoteData<Feature>>;
|
||||
|
||||
/**
|
||||
* The Object this authorization applies to
|
||||
*/
|
||||
@link(ITEM)
|
||||
object?: Observable<RemoteData<DSpaceObject>>;
|
||||
object?: Observable<RemoteData<DSpaceObject>>;
|
||||
}
|
||||
|
@@ -25,43 +25,43 @@ export class BitstreamFormat implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* Short description of this Bitstream Format
|
||||
*/
|
||||
@autoserialize
|
||||
shortDescription: string;
|
||||
shortDescription: string;
|
||||
|
||||
/**
|
||||
* Description of this Bitstream Format
|
||||
*/
|
||||
@autoserialize
|
||||
description: string;
|
||||
description: string;
|
||||
|
||||
/**
|
||||
* String representing the MIME type of this Bitstream Format
|
||||
*/
|
||||
@autoserialize
|
||||
mimetype: string;
|
||||
mimetype: string;
|
||||
|
||||
/**
|
||||
* The level of support the system offers for this Bitstream Format
|
||||
*/
|
||||
@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
|
||||
*/
|
||||
@autoserialize
|
||||
internal: boolean;
|
||||
internal: boolean;
|
||||
|
||||
/**
|
||||
* String representing this Bitstream Format's file extension
|
||||
*/
|
||||
@autoserialize
|
||||
extensions: string[];
|
||||
extensions: string[];
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this BitstreamFormat
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
};
|
||||
}
|
||||
|
@@ -28,25 +28,25 @@ export class Bitstream extends DSpaceObject implements ChildHALResource {
|
||||
* The size of this bitstream in bytes
|
||||
*/
|
||||
@autoserialize
|
||||
sizeBytes: number;
|
||||
sizeBytes: number;
|
||||
|
||||
/**
|
||||
* The description of this Bitstream
|
||||
*/
|
||||
@autoserialize
|
||||
description: string;
|
||||
description: string;
|
||||
|
||||
/**
|
||||
* The name of the Bundle this Bitstream is part of
|
||||
*/
|
||||
@autoserialize
|
||||
bundleName: string;
|
||||
bundleName: string;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Bitstream
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
bundle: 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.
|
||||
*/
|
||||
@link(BITSTREAM, false, 'thumbnail')
|
||||
thumbnail?: Observable<RemoteData<Bitstream>>;
|
||||
thumbnail?: Observable<RemoteData<Bitstream>>;
|
||||
|
||||
/**
|
||||
* The BitstreamFormat of this Bitstream
|
||||
* Will be undefined unless the format {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(BITSTREAM_FORMAT, false, 'format')
|
||||
format?: Observable<RemoteData<BitstreamFormat>>;
|
||||
format?: Observable<RemoteData<BitstreamFormat>>;
|
||||
|
||||
/**
|
||||
* The owning bundle for this Bitstream
|
||||
* Will be undefined unless the bundle{@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(BUNDLE)
|
||||
bundle?: Observable<RemoteData<Bundle>>;
|
||||
bundle?: Observable<RemoteData<Bundle>>;
|
||||
|
||||
getParentLinkKey(): keyof this['_links'] {
|
||||
return 'format';
|
||||
|
@@ -9,7 +9,7 @@ import { CacheableObject } from '../cache/cacheable-object.model';
|
||||
export abstract class BrowseDefinition extends CacheableObject {
|
||||
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* Get the render type of the BrowseDefinition model
|
||||
|
@@ -25,41 +25,41 @@ export class BrowseEntry extends ListableObject implements TypedObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The authority string of this browse entry
|
||||
*/
|
||||
@autoserialize
|
||||
authority: string;
|
||||
authority: string;
|
||||
|
||||
/**
|
||||
* The value of this browse entry
|
||||
*/
|
||||
@autoserialize
|
||||
value: string;
|
||||
value: string;
|
||||
|
||||
/**
|
||||
* The language of the value of this browse entry
|
||||
*/
|
||||
@autoserializeAs('valueLang')
|
||||
language: string;
|
||||
language: string;
|
||||
|
||||
/**
|
||||
* Thumbnail link used when browsing items with showThumbs config enabled.
|
||||
*/
|
||||
@autoserializeAs('thumbnail')
|
||||
thumbnail: string;
|
||||
thumbnail: string;
|
||||
|
||||
/**
|
||||
* The count of this browse entry
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
count: number;
|
||||
count: number;
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
entries: HALLink;
|
||||
thumbnail: HALLink;
|
||||
|
@@ -27,7 +27,7 @@ export class Bundle extends DSpaceObject {
|
||||
* The {@link HALLink}s for this Bundle
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
primaryBitstream: HALLink;
|
||||
bitstreams: HALLink;
|
||||
@@ -39,19 +39,19 @@ export class Bundle extends DSpaceObject {
|
||||
* Will be undefined unless the primaryBitstream {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(BITSTREAM)
|
||||
primaryBitstream?: Observable<RemoteData<Bitstream>>;
|
||||
primaryBitstream?: Observable<RemoteData<Bitstream>>;
|
||||
|
||||
/**
|
||||
* The list of Bitstreams that are direct children of this Bundle
|
||||
* Will be undefined unless the bitstreams {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(BITSTREAM, true)
|
||||
bitstreams?: Observable<RemoteData<PaginatedList<Bitstream>>>;
|
||||
bitstreams?: Observable<RemoteData<PaginatedList<Bitstream>>>;
|
||||
|
||||
/**
|
||||
* The owning item for this Bundle
|
||||
* Will be undefined unless the Item{@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(ITEM)
|
||||
item?: Observable<RemoteData<Item>>;
|
||||
item?: Observable<RemoteData<Item>>;
|
||||
}
|
||||
|
@@ -33,13 +33,13 @@ export class Collection extends DSpaceObject implements ChildHALResource, Handle
|
||||
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
archivedItemsCount: number;
|
||||
archivedItemsCount: number;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Collection
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
license: HALLink;
|
||||
harvester: 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.
|
||||
*/
|
||||
@link(LICENSE)
|
||||
license?: Observable<RemoteData<License>>;
|
||||
license?: Observable<RemoteData<License>>;
|
||||
|
||||
/**
|
||||
* The logo for this Collection
|
||||
* Will be undefined unless the logo {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(BITSTREAM)
|
||||
logo?: Observable<RemoteData<Bitstream>>;
|
||||
logo?: Observable<RemoteData<Bitstream>>;
|
||||
|
||||
/**
|
||||
* The default access conditions for this Collection
|
||||
* Will be undefined unless the defaultAccessConditions {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(RESOURCE_POLICY, true)
|
||||
defaultAccessConditions?: Observable<RemoteData<PaginatedList<ResourcePolicy>>>;
|
||||
defaultAccessConditions?: Observable<RemoteData<PaginatedList<ResourcePolicy>>>;
|
||||
|
||||
/**
|
||||
* The Community that is a direct parent of this Collection
|
||||
* Will be undefined unless the parent community HALLink has been resolved.
|
||||
*/
|
||||
@link(COMMUNITY, false)
|
||||
parentCommunity?: Observable<RemoteData<Community>>;
|
||||
parentCommunity?: Observable<RemoteData<Community>>;
|
||||
|
||||
/**
|
||||
* A string representing the unique handle of this Collection
|
||||
|
@@ -29,13 +29,13 @@ export class Community extends DSpaceObject implements ChildHALResource, HandleO
|
||||
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
archivedItemsCount: number;
|
||||
archivedItemsCount: number;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Community
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
collections: HALLink;
|
||||
logo: 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.
|
||||
*/
|
||||
@link(BITSTREAM)
|
||||
logo?: Observable<RemoteData<Bitstream>>;
|
||||
logo?: Observable<RemoteData<Bitstream>>;
|
||||
|
||||
/**
|
||||
* The list of Collections that are direct children of this Community
|
||||
* Will be undefined unless the collections {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(COLLECTION, true)
|
||||
collections?: Observable<RemoteData<PaginatedList<Collection>>>;
|
||||
collections?: Observable<RemoteData<PaginatedList<Collection>>>;
|
||||
|
||||
/**
|
||||
* The list of Communities that are direct children of this Community
|
||||
* Will be undefined unless the subcommunities {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(COMMUNITY, true)
|
||||
subcommunities?: Observable<RemoteData<PaginatedList<Community>>>;
|
||||
subcommunities?: Observable<RemoteData<PaginatedList<Community>>>;
|
||||
|
||||
/**
|
||||
* The Community that is a direct parent of this Community
|
||||
* Will be undefined unless the parent community HALLink has been resolved.
|
||||
*/
|
||||
@link(COMMUNITY, false)
|
||||
parentCommunity?: Observable<RemoteData<Community>>;
|
||||
parentCommunity?: Observable<RemoteData<Community>>;
|
||||
|
||||
/**
|
||||
* A string representing the unique handle of this Community
|
||||
|
@@ -23,31 +23,31 @@ export class ConfigurationProperty implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The uuid of the configuration property
|
||||
* The name is used as id for configuration properties
|
||||
*/
|
||||
@autoserializeAs(String, 'name')
|
||||
uuid: string;
|
||||
uuid: string;
|
||||
|
||||
/**
|
||||
* The name of the configuration property
|
||||
*/
|
||||
@autoserialize
|
||||
name: string;
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* The values of the configuration property
|
||||
*/
|
||||
@autoserialize
|
||||
values: string[];
|
||||
values: string[];
|
||||
|
||||
/**
|
||||
* The links of the configuration property
|
||||
*/
|
||||
@deserialize
|
||||
_links: { self: HALLink };
|
||||
_links: { self: HALLink };
|
||||
|
||||
}
|
||||
|
@@ -38,20 +38,20 @@ export class ContentSource extends CacheableObject {
|
||||
* and we need a custom responseparser for ContentSource responses
|
||||
*/
|
||||
@excludeFromEquals
|
||||
type: ResourceType = CONTENT_SOURCE;
|
||||
type: ResourceType = CONTENT_SOURCE;
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
@deserializeAs('self')
|
||||
uuid: string;
|
||||
uuid: string;
|
||||
|
||||
/**
|
||||
* OAI Provider / Source
|
||||
*/
|
||||
@autoserializeAs('oai_source')
|
||||
oaiSource: string;
|
||||
oaiSource: string;
|
||||
|
||||
/**
|
||||
* OAI Specific set ID
|
||||
@@ -64,14 +64,14 @@ export class ContentSource extends CacheableObject {
|
||||
* The ID of the metadata format used
|
||||
*/
|
||||
@autoserializeAs('metadata_config_id')
|
||||
metadataConfigId: string;
|
||||
metadataConfigId: string;
|
||||
|
||||
/**
|
||||
* Type of content being harvested
|
||||
* Defaults to 'NONE', meaning the collection doesn't harvest its content from an external source
|
||||
*/
|
||||
@autoserializeAs('harvest_type')
|
||||
harvestType = ContentSourceHarvestType.None;
|
||||
harvestType = ContentSourceHarvestType.None;
|
||||
|
||||
/**
|
||||
* The available metadata configurations
|
||||
@@ -82,31 +82,31 @@ export class ContentSource extends CacheableObject {
|
||||
* The current harvest status
|
||||
*/
|
||||
@autoserializeAs('harvest_status')
|
||||
harvestStatus: string;
|
||||
harvestStatus: string;
|
||||
|
||||
/**
|
||||
* The last's harvest start time
|
||||
*/
|
||||
@autoserializeAs('harvest_start_time')
|
||||
harvestStartTime: string;
|
||||
harvestStartTime: string;
|
||||
|
||||
/**
|
||||
* When the collection was last harvested
|
||||
*/
|
||||
@autoserializeAs('last_harvested')
|
||||
lastHarvested: string;
|
||||
lastHarvested: string;
|
||||
|
||||
/**
|
||||
* The current harvest message
|
||||
*/
|
||||
@autoserializeAs('harvest_message')
|
||||
message: string;
|
||||
message: string;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this ContentSource
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink
|
||||
};
|
||||
}
|
||||
|
@@ -46,20 +46,20 @@ export class DSpaceObject extends ListableObject implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserializeAs(String, 'uuid')
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The universally unique ide ntifier of this DSpaceObject
|
||||
*/
|
||||
@autoserializeAs(String)
|
||||
uuid: string;
|
||||
uuid: string;
|
||||
|
||||
/**
|
||||
* A string representing the kind of DSpaceObject, e.g. community, item, …
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* A shorthand to get this DSpaceObject's self link
|
||||
@@ -100,10 +100,10 @@ export class DSpaceObject extends ListableObject implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserializeAs(MetadataMapSerializer)
|
||||
metadata: MetadataMap;
|
||||
metadata: MetadataMap;
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
};
|
||||
|
||||
|
@@ -27,44 +27,44 @@ export class ExternalSourceEntry extends ListableObject {
|
||||
* Unique identifier
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The object type
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The value to display
|
||||
*/
|
||||
@autoserialize
|
||||
display: string;
|
||||
display: string;
|
||||
|
||||
/**
|
||||
* The value to store the entry with
|
||||
*/
|
||||
@autoserialize
|
||||
value: string;
|
||||
value: string;
|
||||
|
||||
/**
|
||||
* The ID of the external source this entry originates from
|
||||
*/
|
||||
@autoserialize
|
||||
externalSource: string;
|
||||
externalSource: string;
|
||||
|
||||
/**
|
||||
* Metadata of the entry
|
||||
*/
|
||||
@autoserializeAs(MetadataMapSerializer)
|
||||
metadata: MetadataMap;
|
||||
metadata: MetadataMap;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this ExternalSourceEntry
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
};
|
||||
|
||||
|
@@ -30,38 +30,38 @@ export class ExternalSource extends CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* Unique identifier
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The name of this external source
|
||||
*/
|
||||
@autoserialize
|
||||
name: string;
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* Is the source hierarchical?
|
||||
*/
|
||||
@autoserialize
|
||||
hierarchical: boolean;
|
||||
hierarchical: boolean;
|
||||
|
||||
/**
|
||||
* The list of entity types that are compatible with this external source
|
||||
* Will be undefined unless the entityTypes {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(ITEM_TYPE, true)
|
||||
entityTypes?: Observable<RemoteData<PaginatedList<ItemType>>>;
|
||||
entityTypes?: Observable<RemoteData<PaginatedList<ItemType>>>;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this ExternalSource
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
entries: HALLink;
|
||||
entityTypes: HALLink;
|
||||
|
@@ -21,22 +21,22 @@ export class Feature extends DSpaceObject {
|
||||
* Unique identifier for this feature
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* A human readable description of the feature's purpose
|
||||
*/
|
||||
@autoserialize
|
||||
description: string;
|
||||
description: string;
|
||||
|
||||
/**
|
||||
* A list of resource types this feature applies to
|
||||
*/
|
||||
@autoserialize
|
||||
resourcetypes: string[];
|
||||
resourcetypes: string[];
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
};
|
||||
}
|
||||
|
@@ -23,14 +23,14 @@ export class FlatBrowseDefinition extends NonHierarchicalBrowseDefinition {
|
||||
* The object type
|
||||
*/
|
||||
@excludeFromEquals
|
||||
type: ResourceType = FLAT_BROWSE_DEFINITION;
|
||||
type: ResourceType = FLAT_BROWSE_DEFINITION;
|
||||
|
||||
get self(): string {
|
||||
return this._links.self.href;
|
||||
}
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
items: HALLink;
|
||||
};
|
||||
|
@@ -13,7 +13,7 @@ export class HALResource {
|
||||
* The {@link HALLink}s for this {@link HALResource}
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
|
||||
/**
|
||||
* The {@link HALLink} that refers to this {@link HALResource}
|
||||
|
@@ -25,23 +25,23 @@ export class HierarchicalBrowseDefinition extends BrowseDefinition {
|
||||
* The object type
|
||||
*/
|
||||
@excludeFromEquals
|
||||
type: ResourceType = HIERARCHICAL_BROWSE_DEFINITION;
|
||||
type: ResourceType = HIERARCHICAL_BROWSE_DEFINITION;
|
||||
|
||||
@autoserialize
|
||||
facetType: string;
|
||||
facetType: string;
|
||||
|
||||
@autoserialize
|
||||
vocabulary: string;
|
||||
vocabulary: string;
|
||||
|
||||
@autoserializeAs('metadata')
|
||||
metadataKeys: string[];
|
||||
metadataKeys: string[];
|
||||
|
||||
get self(): string {
|
||||
return this._links.self.href;
|
||||
}
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
vocabulary: HALLink;
|
||||
};
|
||||
|
@@ -24,16 +24,16 @@ export class ItemType implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The identifier of this ItemType
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
@autoserialize
|
||||
label: string;
|
||||
label: string;
|
||||
|
||||
/**
|
||||
* The universally unique identifier of this ItemType
|
||||
@@ -47,7 +47,7 @@ export class ItemType implements CacheableObject {
|
||||
* The {@link HALLink}s for this ItemType
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
};
|
||||
}
|
||||
|
@@ -31,19 +31,19 @@ export class RelationshipType implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The label that describes this RelationshipType
|
||||
*/
|
||||
@autoserialize
|
||||
label: string;
|
||||
label: string;
|
||||
|
||||
/**
|
||||
* The identifier of this RelationshipType
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
@autoserialize
|
||||
leftwardType: string;
|
||||
leftwardType: string;
|
||||
|
||||
/**
|
||||
* The maximum amount of Relationships allowed to the left of this RelationshipType
|
||||
*/
|
||||
@autoserialize
|
||||
leftMaxCardinality: number;
|
||||
leftMaxCardinality: number;
|
||||
|
||||
/**
|
||||
* The minimum amount of Relationships allowed to the left of this RelationshipType
|
||||
*/
|
||||
@autoserialize
|
||||
leftMinCardinality: number;
|
||||
leftMinCardinality: number;
|
||||
|
||||
/**
|
||||
* The label that describes the Relation to the right of this RelationshipType
|
||||
*/
|
||||
@autoserialize
|
||||
rightwardType: string;
|
||||
rightwardType: string;
|
||||
|
||||
/**
|
||||
* The maximum amount of Relationships allowed to the right of this RelationshipType
|
||||
*/
|
||||
@autoserialize
|
||||
rightMaxCardinality: number;
|
||||
rightMaxCardinality: number;
|
||||
|
||||
/**
|
||||
* The minimum amount of Relationships allowed to the right of this RelationshipType
|
||||
*/
|
||||
@autoserialize
|
||||
rightMinCardinality: number;
|
||||
rightMinCardinality: number;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this RelationshipType
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
leftType: HALLink;
|
||||
rightType: HALLink;
|
||||
@@ -104,12 +104,12 @@ export class RelationshipType implements CacheableObject {
|
||||
* Will be undefined unless the leftType {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(ITEM_TYPE)
|
||||
leftType?: Observable<RemoteData<ItemType>>;
|
||||
leftType?: Observable<RemoteData<ItemType>>;
|
||||
|
||||
/**
|
||||
* The type of Item found on the right side of this RelationshipType
|
||||
* Will be undefined unless the rightType {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(ITEM_TYPE)
|
||||
rightType?: Observable<RemoteData<ItemType>>;
|
||||
rightType?: Observable<RemoteData<ItemType>>;
|
||||
}
|
||||
|
@@ -33,7 +33,7 @@ export class Relationship implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The universally unique identifier of this Relationship
|
||||
@@ -47,37 +47,37 @@ export class Relationship implements CacheableObject {
|
||||
* The identifier of this Relationship
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The place of the Item to the left side of this Relationship
|
||||
*/
|
||||
@autoserialize
|
||||
leftPlace: number;
|
||||
leftPlace: number;
|
||||
|
||||
/**
|
||||
* The place of the Item to the right side of this Relationship
|
||||
*/
|
||||
@autoserialize
|
||||
rightPlace: number;
|
||||
rightPlace: number;
|
||||
|
||||
/**
|
||||
* The name variant of the Item to the left side of this Relationship
|
||||
*/
|
||||
@autoserialize
|
||||
leftwardValue: string;
|
||||
leftwardValue: string;
|
||||
|
||||
/**
|
||||
* The name variant of the Item to the right side of this Relationship
|
||||
*/
|
||||
@autoserialize
|
||||
rightwardValue: string;
|
||||
rightwardValue: string;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Relationship
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
leftItem: HALLink;
|
||||
rightItem: HALLink;
|
||||
@@ -89,20 +89,20 @@ export class Relationship implements CacheableObject {
|
||||
* Will be undefined unless the leftItem {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(ITEM)
|
||||
leftItem?: Observable<RemoteData<Item>>;
|
||||
leftItem?: Observable<RemoteData<Item>>;
|
||||
|
||||
/**
|
||||
* The item on the right side of this relationship
|
||||
* Will be undefined unless the rightItem {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(ITEM)
|
||||
rightItem?: Observable<RemoteData<Item>>;
|
||||
rightItem?: Observable<RemoteData<Item>>;
|
||||
|
||||
/**
|
||||
* The RelationshipType for this Relationship
|
||||
* Will be undefined unless the relationshipType {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(RELATIONSHIP_TYPE)
|
||||
relationshipType?: Observable<RemoteData<RelationshipType>>;
|
||||
relationshipType?: Observable<RemoteData<RelationshipType>>;
|
||||
|
||||
}
|
||||
|
@@ -22,70 +22,70 @@ export class ItemRequest implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* opaque string which uniquely identifies this request
|
||||
*/
|
||||
@autoserialize
|
||||
token: string;
|
||||
token: string;
|
||||
|
||||
/**
|
||||
* true if the request is for all bitstreams of the item.
|
||||
*/
|
||||
@autoserialize
|
||||
allfiles: boolean;
|
||||
allfiles: boolean;
|
||||
/**
|
||||
* email address of the person requesting the files.
|
||||
*/
|
||||
@autoserialize
|
||||
requestEmail: string;
|
||||
requestEmail: string;
|
||||
/**
|
||||
* Human-readable name of the person requesting the files.
|
||||
*/
|
||||
@autoserialize
|
||||
requestName: string;
|
||||
requestName: string;
|
||||
/**
|
||||
* arbitrary message provided by the person requesting the files.
|
||||
*/
|
||||
@autoserialize
|
||||
requestMessage: string;
|
||||
requestMessage: string;
|
||||
/**
|
||||
* date that the request was recorded.
|
||||
*/
|
||||
@autoserialize
|
||||
requestDate: string;
|
||||
requestDate: string;
|
||||
/**
|
||||
* true if the request has been granted.
|
||||
*/
|
||||
@autoserialize
|
||||
acceptRequest: boolean;
|
||||
acceptRequest: boolean;
|
||||
/**
|
||||
* date that the request was granted or denied.
|
||||
*/
|
||||
@autoserialize
|
||||
decisionDate: string;
|
||||
decisionDate: string;
|
||||
/**
|
||||
* date on which the request is considered expired.
|
||||
*/
|
||||
@autoserialize
|
||||
expires: string;
|
||||
expires: string;
|
||||
/**
|
||||
* UUID of the requested Item.
|
||||
*/
|
||||
@autoserialize
|
||||
itemId: string;
|
||||
itemId: string;
|
||||
/**
|
||||
* UUID of the requested bitstream.
|
||||
*/
|
||||
@autoserialize
|
||||
bitstreamId: string;
|
||||
bitstreamId: string;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this ItemRequest
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
item: HALLink;
|
||||
bitstream: HALLink;
|
||||
|
@@ -48,37 +48,37 @@ export class Item extends DSpaceObject implements ChildHALResource, HandleObject
|
||||
* A string representing the unique handle of this Item
|
||||
*/
|
||||
@autoserialize
|
||||
handle: string;
|
||||
handle: string;
|
||||
|
||||
/**
|
||||
* The Date of the last modification of this Item
|
||||
*/
|
||||
@deserializeAs(Date)
|
||||
lastModified: Date;
|
||||
lastModified: Date;
|
||||
|
||||
/**
|
||||
* A boolean representing if this Item is currently archived or not
|
||||
*/
|
||||
@autoserializeAs(Boolean, 'inArchive')
|
||||
isArchived: boolean;
|
||||
isArchived: boolean;
|
||||
|
||||
/**
|
||||
* A boolean representing if this Item is currently discoverable or not
|
||||
*/
|
||||
@autoserializeAs(Boolean, 'discoverable')
|
||||
isDiscoverable: boolean;
|
||||
isDiscoverable: boolean;
|
||||
|
||||
/**
|
||||
* A boolean representing if this Item is currently withdrawn or not
|
||||
*/
|
||||
@autoserializeAs(Boolean, 'withdrawn')
|
||||
isWithdrawn: boolean;
|
||||
isWithdrawn: boolean;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Item
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
mappedCollections: HALLink;
|
||||
relationships: 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.
|
||||
*/
|
||||
@link(COLLECTION)
|
||||
owningCollection?: Observable<RemoteData<Collection>>;
|
||||
owningCollection?: Observable<RemoteData<Collection>>;
|
||||
|
||||
/**
|
||||
* The version this item represents in its history
|
||||
* Will be undefined unless the version {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(VERSION)
|
||||
version?: Observable<RemoteData<Version>>;
|
||||
version?: Observable<RemoteData<Version>>;
|
||||
|
||||
/**
|
||||
* The list of Bundles inside this Item
|
||||
* Will be undefined unless the bundles {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(BUNDLE, true)
|
||||
bundles?: Observable<RemoteData<PaginatedList<Bundle>>>;
|
||||
bundles?: Observable<RemoteData<PaginatedList<Bundle>>>;
|
||||
|
||||
/**
|
||||
* The list of Relationships this Item has with others
|
||||
* Will be undefined unless the relationships {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(RELATIONSHIP, true)
|
||||
relationships?: Observable<RemoteData<PaginatedList<Relationship>>>;
|
||||
relationships?: Observable<RemoteData<PaginatedList<Relationship>>>;
|
||||
|
||||
/**
|
||||
* The thumbnail for this Item
|
||||
* Will be undefined unless the thumbnail {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(BITSTREAM, false, 'thumbnail')
|
||||
thumbnail?: Observable<RemoteData<Bitstream>>;
|
||||
thumbnail?: Observable<RemoteData<Bitstream>>;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
@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
|
||||
|
@@ -16,11 +16,11 @@ export class License extends DSpaceObject {
|
||||
* Is the license custom?
|
||||
*/
|
||||
@autoserialize
|
||||
custom: boolean;
|
||||
custom: boolean;
|
||||
|
||||
/**
|
||||
* The text of the license
|
||||
*/
|
||||
@autoserialize
|
||||
text: string;
|
||||
text: string;
|
||||
}
|
||||
|
@@ -37,26 +37,26 @@ export class MetadataValue implements MetadataValueInterface {
|
||||
|
||||
/** The language. */
|
||||
@autoserialize
|
||||
language: string;
|
||||
language: string;
|
||||
|
||||
/** The string value. */
|
||||
@autoserialize
|
||||
value: string;
|
||||
value: string;
|
||||
|
||||
/**
|
||||
* The place of this MetadataValue within its list of metadata
|
||||
* This is used to render metadata in a specific custom order
|
||||
*/
|
||||
@autoserialize
|
||||
place: number;
|
||||
place: number;
|
||||
|
||||
/** The authority key used for authority-controlled metadata */
|
||||
@autoserialize
|
||||
authority: string;
|
||||
authority: string;
|
||||
|
||||
/** The authority confidence value */
|
||||
@autoserialize
|
||||
confidence: number;
|
||||
confidence: number;
|
||||
|
||||
/**
|
||||
* Returns true if this Metadatum's authority key starts with 'virtual::'
|
||||
|
@@ -16,14 +16,14 @@ import { SortOption } from './sort-option.model';
|
||||
export abstract class NonHierarchicalBrowseDefinition extends BrowseDefinition {
|
||||
|
||||
@autoserialize
|
||||
sortOptions: SortOption[];
|
||||
sortOptions: SortOption[];
|
||||
|
||||
@autoserializeAs('order')
|
||||
defaultSortOrder: string;
|
||||
defaultSortOrder: string;
|
||||
|
||||
@autoserializeAs('metadata')
|
||||
metadataKeys: string[];
|
||||
metadataKeys: string[];
|
||||
|
||||
@autoserialize
|
||||
dataType: BrowseByDataType;
|
||||
dataType: BrowseByDataType;
|
||||
}
|
||||
|
@@ -17,31 +17,31 @@ export class PageInfo implements HALResource {
|
||||
* The number of elements on a page
|
||||
*/
|
||||
@autoserializeAs(Number, 'size')
|
||||
elementsPerPage: number;
|
||||
elementsPerPage: number;
|
||||
|
||||
/**
|
||||
* The total number of elements in the entire set
|
||||
*/
|
||||
@autoserialize
|
||||
totalElements: number;
|
||||
totalElements: number;
|
||||
|
||||
/**
|
||||
* The total number of pages
|
||||
*/
|
||||
@autoserialize
|
||||
totalPages: number;
|
||||
totalPages: number;
|
||||
|
||||
/**
|
||||
* The number of the current page, zero-based
|
||||
*/
|
||||
@autoserializeAs(Number, 'number')
|
||||
currentPage: number;
|
||||
currentPage: number;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this PageInfo
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
first: HALLink;
|
||||
prev: HALLink;
|
||||
next: HALLink;
|
||||
|
@@ -20,31 +20,31 @@ export class SearchConfig implements CacheableObject {
|
||||
* The id of this search configuration.
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The configured filters.
|
||||
*/
|
||||
@autoserialize
|
||||
filters: FilterConfig[];
|
||||
filters: FilterConfig[];
|
||||
|
||||
/**
|
||||
* The configured sort options.
|
||||
*/
|
||||
@autoserialize
|
||||
sortOptions: SortConfig[];
|
||||
sortOptions: SortConfig[];
|
||||
|
||||
/**
|
||||
* The object type.
|
||||
*/
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Item
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
facets: HALLink;
|
||||
objects: HALLink;
|
||||
self: HALLink;
|
||||
|
@@ -2,8 +2,8 @@ import { autoserialize } from 'cerialize';
|
||||
|
||||
export class SortOption {
|
||||
@autoserialize
|
||||
name: string;
|
||||
name: string;
|
||||
|
||||
@autoserialize
|
||||
metadata: string;
|
||||
metadata: string;
|
||||
}
|
||||
|
@@ -23,6 +23,6 @@ export class TemplateItem extends Item {
|
||||
* The Collection that this item is a template for
|
||||
*/
|
||||
@link(COLLECTION)
|
||||
templateItemOf: Observable<RemoteData<Collection>>;
|
||||
templateItemOf: Observable<RemoteData<Collection>>;
|
||||
|
||||
}
|
||||
|
@@ -23,14 +23,14 @@ export class ValueListBrowseDefinition extends NonHierarchicalBrowseDefinition {
|
||||
* The object type
|
||||
*/
|
||||
@excludeFromEquals
|
||||
type: ResourceType = VALUE_LIST_BROWSE_DEFINITION;
|
||||
type: ResourceType = VALUE_LIST_BROWSE_DEFINITION;
|
||||
|
||||
get self(): string {
|
||||
return this._links.self.href;
|
||||
}
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
entries: HALLink;
|
||||
};
|
||||
|
@@ -27,7 +27,7 @@ export class VersionHistory extends DSpaceObject {
|
||||
static type = VERSION_HISTORY;
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
versions: HALLink;
|
||||
draftVersion: HALLink;
|
||||
@@ -37,30 +37,30 @@ export class VersionHistory extends DSpaceObject {
|
||||
* The identifier of this Version History
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The summary of this Version History
|
||||
*/
|
||||
@autoserialize
|
||||
summary: string;
|
||||
summary: string;
|
||||
|
||||
/**
|
||||
* The name of the submitter of this Version History
|
||||
*/
|
||||
@autoserialize
|
||||
submitterName: string;
|
||||
submitterName: string;
|
||||
|
||||
/**
|
||||
* Whether exist a workspace item
|
||||
*/
|
||||
@autoserialize
|
||||
draftVersion: boolean;
|
||||
draftVersion: boolean;
|
||||
|
||||
/**
|
||||
* The list of versions within this history
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@link(VERSION, true)
|
||||
versions: Observable<RemoteData<PaginatedList<Version>>>;
|
||||
versions: Observable<RemoteData<PaginatedList<Version>>>;
|
||||
}
|
||||
|
@@ -30,7 +30,7 @@ export class Version extends DSpaceObject {
|
||||
static type = VERSION;
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
item: HALLink;
|
||||
versionhistory: HALLink;
|
||||
@@ -41,50 +41,50 @@ export class Version extends DSpaceObject {
|
||||
* The identifier of this Version
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The version number of the version's history this version represents
|
||||
*/
|
||||
@autoserialize
|
||||
version: number;
|
||||
version: number;
|
||||
|
||||
/**
|
||||
* The summary for the changes made in this version
|
||||
*/
|
||||
@autoserialize
|
||||
summary: string;
|
||||
summary: string;
|
||||
|
||||
/**
|
||||
* The name of the submitter of this version
|
||||
*/
|
||||
@autoserialize
|
||||
submitterName: string;
|
||||
submitterName: string;
|
||||
|
||||
/**
|
||||
* The Date this version was created
|
||||
*/
|
||||
@deserialize
|
||||
created: Date;
|
||||
created: Date;
|
||||
|
||||
/**
|
||||
* The full version history this version is apart of
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@link(VERSION_HISTORY)
|
||||
versionhistory: Observable<RemoteData<VersionHistory>>;
|
||||
versionhistory: Observable<RemoteData<VersionHistory>>;
|
||||
|
||||
/**
|
||||
* The item this version represents
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@link(ITEM)
|
||||
item: Observable<RemoteData<Item>>;
|
||||
item: Observable<RemoteData<Item>>;
|
||||
|
||||
/**
|
||||
* The e-person who created this version
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@link(EPERSON)
|
||||
eperson: Observable<RemoteData<EPerson>>;
|
||||
eperson: Observable<RemoteData<EPerson>>;
|
||||
}
|
||||
|
@@ -26,19 +26,19 @@ export class UsageReport extends HALResource {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
@autoserializeAs('report-type')
|
||||
reportType: string;
|
||||
|
||||
@autoserialize
|
||||
points: Point[];
|
||||
points: Point[];
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
};
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ export class CorrectionType extends CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
@autoserialize
|
||||
/**
|
||||
* The unique identifier for the correction type mode.
|
||||
|
@@ -20,8 +20,8 @@ export class SubmissionCcLicenceUrl extends HALResource {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
@autoserialize
|
||||
url: string;
|
||||
url: string;
|
||||
}
|
||||
|
@@ -20,16 +20,16 @@ export class SubmissionCcLicence extends HALResource {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
@autoserialize
|
||||
name: string;
|
||||
name: string;
|
||||
|
||||
@autoserialize
|
||||
fields: Field[];
|
||||
fields: Field[];
|
||||
}
|
||||
|
||||
export interface Field {
|
||||
|
@@ -35,38 +35,38 @@ export abstract class SubmissionObject extends DSpaceObject implements Cacheable
|
||||
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The SubmissionObject last modified date
|
||||
*/
|
||||
@autoserialize
|
||||
lastModified: Date;
|
||||
lastModified: Date;
|
||||
|
||||
/**
|
||||
* The collection this submission applies to
|
||||
* Will be undefined unless the collection {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(COLLECTION)
|
||||
collection?: Observable<RemoteData<Collection>> | Collection;
|
||||
collection?: Observable<RemoteData<Collection>> | Collection;
|
||||
|
||||
/**
|
||||
* The SubmissionObject's last section's data
|
||||
*/
|
||||
@autoserialize
|
||||
sections: WorkspaceitemSectionsObject;
|
||||
sections: WorkspaceitemSectionsObject;
|
||||
|
||||
/**
|
||||
* The SubmissionObject's last section's errors
|
||||
*/
|
||||
@autoserialize
|
||||
errors: SubmissionObjectError[];
|
||||
errors: SubmissionObjectError[];
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this SubmissionObject
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
collection: 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.
|
||||
*/
|
||||
@link(SubmissionDefinitionsModel.type)
|
||||
submissionDefinition?: Observable<RemoteData<SubmissionDefinitionsModel>> | SubmissionDefinitionsModel;
|
||||
submissionDefinition?: Observable<RemoteData<SubmissionDefinitionsModel>> | SubmissionDefinitionsModel;
|
||||
|
||||
/**
|
||||
* The submitter for this SubmissionObject
|
||||
* Will be undefined unless the submitter {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(EPERSON)
|
||||
submitter?: Observable<RemoteData<EPerson>> | EPerson;
|
||||
submitter?: Observable<RemoteData<EPerson>> | EPerson;
|
||||
|
||||
/**
|
||||
* The submission supervision order
|
||||
|
@@ -21,19 +21,19 @@ export class VocabularyEntryDetail extends VocabularyEntry {
|
||||
* The unique id of the entry
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* In an hierarchical vocabulary representing if entry is selectable as value
|
||||
*/
|
||||
@autoserialize
|
||||
selectable: boolean;
|
||||
selectable: boolean;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this ExternalSourceEntry
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
vocabulary: HALLink;
|
||||
parent: HALLink;
|
||||
|
@@ -24,25 +24,25 @@ export class VocabularyEntry extends ListableObject {
|
||||
* The identifier of this vocabulary entry
|
||||
*/
|
||||
@autoserialize
|
||||
authority: string;
|
||||
authority: string;
|
||||
|
||||
/**
|
||||
* The display value of this vocabulary entry
|
||||
*/
|
||||
@autoserialize
|
||||
display: string;
|
||||
display: string;
|
||||
|
||||
/**
|
||||
* The value of this vocabulary entry
|
||||
*/
|
||||
@autoserialize
|
||||
value: string;
|
||||
value: string;
|
||||
|
||||
/**
|
||||
* An object containing additional information related to this vocabulary entry
|
||||
*/
|
||||
@autoserialize
|
||||
otherInformation: OtherInformation;
|
||||
otherInformation: OtherInformation;
|
||||
|
||||
/**
|
||||
* A string representing the kind of vocabulary entry
|
||||
@@ -55,7 +55,7 @@ export class VocabularyEntry extends ListableObject {
|
||||
* The {@link HALLink}s for this ExternalSourceEntry
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
vocabularyEntryDetail?: HALLink;
|
||||
};
|
||||
|
@@ -29,32 +29,32 @@ export class Vocabulary implements CacheableObject {
|
||||
* The identifier of this Vocabulary
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The name of this Vocabulary
|
||||
*/
|
||||
@autoserialize
|
||||
name: string;
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* True if it is possible to scroll all the entries in the vocabulary without providing a filter parameter
|
||||
*/
|
||||
@autoserialize
|
||||
scrollable: boolean;
|
||||
scrollable: boolean;
|
||||
|
||||
/**
|
||||
* True if the vocabulary exposes a tree structure where some entries are parent of others
|
||||
*/
|
||||
@autoserialize
|
||||
hierarchical: boolean;
|
||||
hierarchical: boolean;
|
||||
|
||||
/**
|
||||
* 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)
|
||||
*/
|
||||
@autoserialize
|
||||
preloadLevel: any;
|
||||
preloadLevel: any;
|
||||
|
||||
/**
|
||||
* A string representing the kind of Vocabulary model
|
||||
@@ -64,13 +64,13 @@ export class Vocabulary implements CacheableObject {
|
||||
public type: any;
|
||||
|
||||
@link(VOCABULARY_ENTRY, true)
|
||||
entries?: Observable<RemoteData<PaginatedList<VocabularyEntry>>>;
|
||||
entries?: Observable<RemoteData<PaginatedList<VocabularyEntry>>>;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Vocabulary
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
entries: HALLink
|
||||
};
|
||||
|
@@ -32,21 +32,21 @@ export class SupervisionOrder implements CacheableObject {
|
||||
* The identifier for this Supervision Order
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The object type
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The object type
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
ordertype: string;
|
||||
ordertype: string;
|
||||
|
||||
/**
|
||||
* The universally unique identifier for this Supervision Order
|
||||
@@ -60,7 +60,7 @@ export class SupervisionOrder implements CacheableObject {
|
||||
* The {@link HALLink}s for this SupervisionOrder
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
item: HALLink,
|
||||
group: HALLink,
|
||||
self: HALLink,
|
||||
@@ -71,12 +71,12 @@ export class SupervisionOrder implements CacheableObject {
|
||||
* Will be undefined unless the item {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(ITEM)
|
||||
item?: Observable<RemoteData<Item>>;
|
||||
item?: Observable<RemoteData<Item>>;
|
||||
|
||||
/**
|
||||
* The group linked by this supervision order
|
||||
* Will be undefined unless the version {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(GROUP)
|
||||
group?: Observable<RemoteData<Group>>;
|
||||
group?: Observable<RemoteData<Group>>;
|
||||
}
|
||||
|
@@ -6,6 +6,6 @@ import { autoserialize } from 'cerialize';
|
||||
export abstract class AdvancedWorkflowInfo {
|
||||
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
}
|
||||
|
@@ -21,12 +21,12 @@ export class RatingAdvancedWorkflowInfo extends AdvancedWorkflowInfo {
|
||||
* Whether the description is required.
|
||||
*/
|
||||
@autoserialize
|
||||
descriptionRequired: boolean;
|
||||
descriptionRequired: boolean;
|
||||
|
||||
/**
|
||||
* The maximum value.
|
||||
*/
|
||||
@autoserialize
|
||||
maxValue: number;
|
||||
maxValue: number;
|
||||
|
||||
}
|
||||
|
@@ -18,6 +18,6 @@ export class SelectReviewerAdvancedWorkflowInfo extends AdvancedWorkflowInfo {
|
||||
static type: ResourceType = SELECT_REVIEWER_ADVANCED_WORKFLOW_INFO;
|
||||
|
||||
@autoserialize
|
||||
group: string;
|
||||
group: string;
|
||||
|
||||
}
|
||||
|
@@ -34,19 +34,19 @@ export class TaskObject extends DSpaceObject implements CacheableObject {
|
||||
* The task identifier
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The workflow step
|
||||
*/
|
||||
@autoserialize
|
||||
step: string;
|
||||
step: string;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this TaskObject
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
owner: 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.
|
||||
*/
|
||||
@link(EPERSON, false, 'owner')
|
||||
eperson?: Observable<RemoteData<EPerson>>;
|
||||
eperson?: Observable<RemoteData<EPerson>>;
|
||||
|
||||
/**
|
||||
* The Group for this task
|
||||
* Will be undefined unless the group {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(GROUP)
|
||||
group?: Observable<RemoteData<Group>>;
|
||||
group?: Observable<RemoteData<Group>>;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
@link(WORKFLOW_ACTION, false, 'action')
|
||||
action: Observable<RemoteData<WorkflowAction>>;
|
||||
action: Observable<RemoteData<WorkflowAction>>;
|
||||
|
||||
}
|
||||
|
@@ -20,30 +20,30 @@ export class WorkflowAction extends DSpaceObject {
|
||||
* The workflow action's identifier
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The options available for this workflow action
|
||||
*/
|
||||
@autoserialize
|
||||
options: string[];
|
||||
options: string[];
|
||||
|
||||
/**
|
||||
* Whether this action has advanced options
|
||||
*/
|
||||
@autoserialize
|
||||
advanced: boolean;
|
||||
advanced: boolean;
|
||||
|
||||
/**
|
||||
* The advanced options that the user can select at this action
|
||||
*/
|
||||
@autoserialize
|
||||
advancedOptions: string[];
|
||||
advancedOptions: string[];
|
||||
|
||||
/**
|
||||
* The advanced info required by the advanced options
|
||||
*/
|
||||
@autoserialize
|
||||
advancedInfo: AdvancedWorkflowInfo[];
|
||||
advancedInfo: AdvancedWorkflowInfo[];
|
||||
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ class Dog extends EquatableObject<Dog> {
|
||||
|
||||
class Owner extends EquatableObject<Owner> {
|
||||
@excludeFromEquals
|
||||
favouriteFood: string;
|
||||
favouriteFood: string;
|
||||
|
||||
constructor(
|
||||
public name: string,
|
||||
|
@@ -62,7 +62,7 @@ export class CurationFormComponent implements OnDestroy, OnInit {
|
||||
form: UntypedFormGroup;
|
||||
|
||||
@Input()
|
||||
dsoHandle: string;
|
||||
dsoHandle: string;
|
||||
|
||||
subs: Subscription[] = [];
|
||||
|
||||
|
@@ -26,25 +26,25 @@ export class NotifyRequestsStatus implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The notify statuses.
|
||||
*/
|
||||
@autoserialize
|
||||
notifyStatus: NotifyStatuses[];
|
||||
notifyStatus: NotifyStatuses[];
|
||||
|
||||
/**
|
||||
* The UUID of the item.
|
||||
*/
|
||||
@autoserialize
|
||||
itemuuid: string;
|
||||
itemuuid: string;
|
||||
|
||||
/**
|
||||
* The links associated with the notify requests status.
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
[k: string]: HALLink | HALLink[];
|
||||
};
|
||||
|
@@ -18,7 +18,7 @@ export class ItemVersionsDeleteModalComponent {
|
||||
* An event fired when the cancel or confirm button is clicked, with respectively false or true
|
||||
*/
|
||||
@Output()
|
||||
response = new EventEmitter<boolean>();
|
||||
response = new EventEmitter<boolean>();
|
||||
|
||||
versionNumber: number;
|
||||
|
||||
|
@@ -17,19 +17,19 @@ export class Filetypes {
|
||||
* The id of this {@link Filetypes}
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The values of this {@link Filetypes}
|
||||
*/
|
||||
@autoserialize
|
||||
values: string[];
|
||||
values: string[];
|
||||
|
||||
/**
|
||||
* The object type
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
}
|
||||
|
@@ -38,61 +38,61 @@ export class Process implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The identifier for this process
|
||||
*/
|
||||
@autoserializeAs(String)
|
||||
processId: string;
|
||||
processId: string;
|
||||
|
||||
/**
|
||||
* The UUID for the user that started the process
|
||||
*/
|
||||
@autoserialize
|
||||
userId: string;
|
||||
userId: string;
|
||||
|
||||
/**
|
||||
* The creation time for this process
|
||||
*/
|
||||
@autoserialize
|
||||
creationTime: string;
|
||||
creationTime: string;
|
||||
|
||||
/**
|
||||
* The start time for this process
|
||||
*/
|
||||
@autoserialize
|
||||
startTime: string;
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* The end time for this process
|
||||
*/
|
||||
@autoserialize
|
||||
endTime: string;
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* The name of the script run by this process
|
||||
*/
|
||||
@autoserialize
|
||||
scriptName: string;
|
||||
scriptName: string;
|
||||
|
||||
/**
|
||||
* The status of this process
|
||||
*/
|
||||
@autoserialize
|
||||
processStatus: ProcessStatus;
|
||||
processStatus: ProcessStatus;
|
||||
|
||||
/**
|
||||
* The parameters for this process
|
||||
*/
|
||||
@autoserialize
|
||||
parameters: ProcessParameter[];
|
||||
parameters: ProcessParameter[];
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Process
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
script: HALLink,
|
||||
output: HALLink,
|
||||
@@ -105,27 +105,27 @@ export class Process implements CacheableObject {
|
||||
* Will be undefined unless the script {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(SCRIPT)
|
||||
script?: Observable<RemoteData<Script>>;
|
||||
script?: Observable<RemoteData<Script>>;
|
||||
|
||||
/**
|
||||
* The output logs created by this Process
|
||||
* Will be undefined unless the output {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(PROCESS_OUTPUT_TYPE)
|
||||
output?: Observable<RemoteData<Bitstream>>;
|
||||
output?: Observable<RemoteData<Bitstream>>;
|
||||
|
||||
/**
|
||||
* The files created by this Process
|
||||
* Will be undefined unless the output {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(BITSTREAM, true)
|
||||
files?: Observable<RemoteData<PaginatedList<Bitstream>>>;
|
||||
files?: Observable<RemoteData<PaginatedList<Bitstream>>>;
|
||||
|
||||
/**
|
||||
* The filetypes present in this Process
|
||||
* Will be undefined unless the output {@link HALLink} has been resolved.
|
||||
*/
|
||||
@link(FILETYPES)
|
||||
filetypes?: Observable<RemoteData<Filetypes>>;
|
||||
filetypes?: Observable<RemoteData<Filetypes>>;
|
||||
|
||||
}
|
||||
|
@@ -23,37 +23,37 @@ export class Script implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The identifier of this script
|
||||
*/
|
||||
@autoserialize
|
||||
id: string;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The name of this script
|
||||
*/
|
||||
@autoserialize
|
||||
name: string;
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* A short description of this script
|
||||
*/
|
||||
@autoserialize
|
||||
description: string;
|
||||
description: string;
|
||||
|
||||
/**
|
||||
* The available parameters for this script
|
||||
*/
|
||||
@autoserialize
|
||||
parameters: ScriptParameter[];
|
||||
parameters: ScriptParameter[];
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Script
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink,
|
||||
};
|
||||
}
|
||||
|
@@ -86,13 +86,13 @@ export class ProfilePageSecurityFormComponent implements OnInit {
|
||||
* Indicates whether the "checkPasswordEmpty" needs to be added or not
|
||||
*/
|
||||
@Input()
|
||||
passwordCanBeEmpty = true;
|
||||
passwordCanBeEmpty = true;
|
||||
|
||||
/**
|
||||
* Prefix for the form's label messages of this component
|
||||
*/
|
||||
@Input()
|
||||
FORM_PREFIX: string;
|
||||
FORM_PREFIX: string;
|
||||
|
||||
private subs: Subscription[] = [];
|
||||
|
||||
|
@@ -82,13 +82,13 @@ export class RegisterEmailFormComponent implements OnDestroy, OnInit {
|
||||
* The message prefix
|
||||
*/
|
||||
@Input()
|
||||
MESSAGE_PREFIX: string;
|
||||
MESSAGE_PREFIX: string;
|
||||
|
||||
/**
|
||||
* Type of register request to be done, register new email or forgot password (same endpoint)
|
||||
*/
|
||||
@Input()
|
||||
typeRequest: string = null;
|
||||
typeRequest: string = null;
|
||||
|
||||
public AlertTypeEnum = AlertType;
|
||||
|
||||
|
@@ -71,7 +71,7 @@ export class ComcolRoleComponent implements OnInit {
|
||||
* The community or collection to manage.
|
||||
*/
|
||||
@Input()
|
||||
dso: Community | Collection;
|
||||
dso: Community | Collection;
|
||||
|
||||
/**
|
||||
* The role to manage
|
||||
|
@@ -31,7 +31,7 @@ export class ConfirmationModalComponent {
|
||||
* An event fired when the cancel or confirm button is clicked, with respectively false or true
|
||||
*/
|
||||
@Output()
|
||||
response = new EventEmitter<boolean>();
|
||||
response = new EventEmitter<boolean>();
|
||||
|
||||
constructor(
|
||||
protected activeModal: NgbActiveModal,
|
||||
|
@@ -24,23 +24,23 @@ export class DsSelectComponent {
|
||||
* An optional label for the dropdown selector.
|
||||
*/
|
||||
@Input()
|
||||
label: string;
|
||||
label: string;
|
||||
|
||||
/**
|
||||
* Whether the dropdown selector is disabled.
|
||||
*/
|
||||
@Input()
|
||||
disabled: boolean;
|
||||
disabled: boolean;
|
||||
|
||||
/**
|
||||
* Emits an event when the dropdown selector is opened or closed.
|
||||
*/
|
||||
@Output()
|
||||
toggled = new EventEmitter();
|
||||
toggled = new EventEmitter();
|
||||
|
||||
/**
|
||||
* Emits an event when the dropdown selector or closed.
|
||||
*/
|
||||
@Output()
|
||||
close = new EventEmitter();
|
||||
close = new EventEmitter();
|
||||
}
|
||||
|
@@ -40,7 +40,7 @@ export class ImportBatchSelectorComponent extends DSOSelectorModalWrapperCompone
|
||||
* An event fired when the modal is closed
|
||||
*/
|
||||
@Output()
|
||||
response = new EventEmitter<DSpaceObject>();
|
||||
response = new EventEmitter<DSpaceObject>();
|
||||
|
||||
constructor(protected activeModal: NgbActiveModal,
|
||||
protected route: ActivatedRoute) {
|
||||
|
@@ -39,43 +39,43 @@ export class FormFieldModel {
|
||||
* The hints for this metadata field to display on form
|
||||
*/
|
||||
@autoserialize
|
||||
hints: string;
|
||||
hints: string;
|
||||
|
||||
/**
|
||||
* The label for this metadata field to display on form
|
||||
*/
|
||||
@autoserialize
|
||||
label: string;
|
||||
label: string;
|
||||
|
||||
/**
|
||||
* The languages available for this metadata field to display on form
|
||||
*/
|
||||
@autoserialize
|
||||
languageCodes: LanguageCode[];
|
||||
languageCodes: LanguageCode[];
|
||||
|
||||
/**
|
||||
* The error message for this metadata field to display on form in case of field is required
|
||||
*/
|
||||
@autoserialize
|
||||
mandatoryMessage: string;
|
||||
mandatoryMessage: string;
|
||||
|
||||
/**
|
||||
* Representing if this metadata field is mandatory or not
|
||||
*/
|
||||
@autoserialize
|
||||
mandatory: string;
|
||||
mandatory: string;
|
||||
|
||||
/**
|
||||
* Representing if this metadata field is repeatable or not
|
||||
*/
|
||||
@autoserialize
|
||||
repeatable: boolean;
|
||||
repeatable: boolean;
|
||||
|
||||
/**
|
||||
* Containing additional properties for this metadata field
|
||||
*/
|
||||
@autoserialize
|
||||
input: {
|
||||
input: {
|
||||
/**
|
||||
* Representing the type for this metadata field
|
||||
*/
|
||||
@@ -91,41 +91,41 @@ export class FormFieldModel {
|
||||
* Representing additional vocabulary configuration for this metadata field
|
||||
*/
|
||||
@autoserialize
|
||||
selectableMetadata: SelectableMetadata[];
|
||||
selectableMetadata: SelectableMetadata[];
|
||||
|
||||
/**
|
||||
* Representing additional relationship configuration for this metadata field
|
||||
*/
|
||||
@autoserialize
|
||||
selectableRelationship: RelationshipOptions;
|
||||
selectableRelationship: RelationshipOptions;
|
||||
|
||||
@autoserialize
|
||||
rows: FormRowModel[];
|
||||
rows: FormRowModel[];
|
||||
|
||||
/**
|
||||
* Representing the scope for this metadata field
|
||||
*/
|
||||
@autoserialize
|
||||
scope: string;
|
||||
scope: string;
|
||||
|
||||
/**
|
||||
* Containing additional css classes for this metadata field to use on form
|
||||
*/
|
||||
@autoserialize
|
||||
style: string;
|
||||
style: string;
|
||||
|
||||
/**
|
||||
* Containing types to bind for this field
|
||||
*/
|
||||
@autoserialize
|
||||
typeBind: string[];
|
||||
typeBind: string[];
|
||||
|
||||
/**
|
||||
* Containing the value for this metadata field
|
||||
*/
|
||||
@autoserialize
|
||||
value: any;
|
||||
value: any;
|
||||
|
||||
@autoserialize
|
||||
visibility: SectionVisibility;
|
||||
visibility: SectionVisibility;
|
||||
}
|
||||
|
@@ -37,7 +37,7 @@ export class IdleModalComponent implements OnInit {
|
||||
* An event fired when the modal is closed
|
||||
*/
|
||||
@Output()
|
||||
response = new EventEmitter<boolean>();
|
||||
response = new EventEmitter<boolean>();
|
||||
|
||||
constructor(private activeModal: NgbActiveModal,
|
||||
private authService: AuthService,
|
||||
|
@@ -19,13 +19,13 @@ export class AccessStatusObject implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The access status value
|
||||
*/
|
||||
@autoserialize
|
||||
status: string;
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this AccessStatusObject
|
||||
|
@@ -21,41 +21,41 @@ export class Duplicate implements CacheableObject {
|
||||
* The item title
|
||||
*/
|
||||
@autoserialize
|
||||
title: string;
|
||||
title: string;
|
||||
/**
|
||||
* The item uuid
|
||||
*/
|
||||
@autoserialize
|
||||
uuid: string;
|
||||
uuid: string;
|
||||
/**
|
||||
* The workfow item ID, if any
|
||||
*/
|
||||
@autoserialize
|
||||
workflowItemId: number;
|
||||
workflowItemId: number;
|
||||
/**
|
||||
* The workspace item ID, if any
|
||||
*/
|
||||
@autoserialize
|
||||
workspaceItemId: number;
|
||||
workspaceItemId: number;
|
||||
/**
|
||||
* The owning collection of the item
|
||||
*/
|
||||
@autoserialize
|
||||
owningCollection: string;
|
||||
owningCollection: string;
|
||||
/**
|
||||
* Metadata for the preview item (e.g. dc.title)
|
||||
*/
|
||||
@autoserialize
|
||||
metadata: MetadataMap;
|
||||
metadata: MetadataMap;
|
||||
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for the URL that generated this item (in context of search results)
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
_links: {
|
||||
self: HALLink;
|
||||
};
|
||||
}
|
||||
|
@@ -19,13 +19,13 @@ export class IdentifierData implements CacheableObject {
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The
|
||||
*/
|
||||
@autoserialize
|
||||
identifiers: Identifier[];
|
||||
identifiers: Identifier[];
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this IdentifierData
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user