-
Notifications
You must be signed in to change notification settings - Fork 447
/
Copy pathroot.model.ts
55 lines (48 loc) · 1.08 KB
/
root.model.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { typedObject } from '../cache/builders/build-decorators';
import { ROOT } from './root.resource-type';
import { excludeFromEquals } from '../utilities/equals.decorators';
import { autoserialize, deserialize } from 'cerialize';
import { ResourceType } from '../shared/resource-type';
import { HALLink } from '../shared/hal-link.model';
import { CacheableObject } from '../cache/cacheable-object.model';
/**
* The root rest api resource
*/
@typedObject
export class Root implements CacheableObject {
static type = ROOT;
/**
* The object type
*/
@excludeFromEquals
@autoserialize
type: ResourceType;
/**
* The url for the dspace UI
*/
@autoserialize
dspaceUI: string;
/**
* The repository Name
*/
@autoserialize
dspaceName: string;
/**
* The url for the rest api
*/
@autoserialize
dspaceServer: string;
/**
* The current DSpace version
*/
@autoserialize
dspaceVersion: string;
/**
* The {@link HALLink}s for the root object
*/
@deserialize
_links: {
self: HALLink;
[k: string]: HALLink | HALLink[];
};
}