-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathCollection.ts
More file actions
39 lines (35 loc) · 878 Bytes
/
Collection.ts
File metadata and controls
39 lines (35 loc) · 878 Bytes
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
import { DvObjectOwnerNode } from '../../../core'
import { CollectionContact } from './CollectionContact'
import { CollectionType } from './CollectionType'
export interface Collection {
id: number
alias: string
name: string
isReleased: boolean
affiliation?: string
description?: string
isPartOf: DvObjectOwnerNode
inputLevels?: CollectionInputLevel[]
type: CollectionType
contacts?: CollectionContact[]
isMetadataBlockRoot: boolean
isFacetRoot: boolean
childCount: number
theme?: CollectionTheme
}
export interface CollectionTheme {
id: number
logo: string
tagline: string
linkUrl: string
linkColor: string
textColor: string
backgroundColor: string
logoBackgroundColor?: string
}
export interface CollectionInputLevel {
datasetFieldName: string
include: boolean
required: boolean
}
export const ROOT_COLLECTION_ID = ':root'