-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathCollection.ts
More file actions
41 lines (37 loc) · 970 Bytes
/
Copy pathCollection.ts
File metadata and controls
41 lines (37 loc) · 970 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
40
41
import { DvObjectOwnerNode } from '../../../core'
import { CollectionContact } from './CollectionContact'
import { CollectionType } from './CollectionType'
import { DatasetType } from '../../../datasets'
export interface Collection {
id: number
alias: string
name: string
isReleased: boolean
affiliation?: string
description?: string
isPartOf: DvObjectOwnerNode
inputLevels?: CollectionInputLevel[]
type: CollectionType
contacts?: CollectionContact[]
allowedDatasetTypes?: DatasetType[]
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'