@paris-ias/trees 2.0.6 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/form/actions.cjs.js +102 -0
- package/dist/form/actions.d.ts +21 -2
- package/dist/form/actions.js +3 -1
- package/dist/form/affiliations.cjs.js +197 -0
- package/dist/form/affiliations.d.ts +18 -2
- package/dist/form/affiliations.js +3 -1
- package/dist/form/apps.cjs.js +151 -0
- package/dist/form/apps.d.ts +30 -2
- package/dist/form/apps.js +3 -1
- package/dist/form/disciplines.cjs.js +49 -0
- package/dist/form/disciplines.d.ts +12 -2
- package/dist/form/disciplines.js +3 -1
- package/dist/form/events.cjs.js +855 -0
- package/dist/form/events.d.ts +96 -2
- package/dist/form/events.js +3 -1
- package/dist/form/fellowships.cjs.js +1326 -0
- package/dist/form/fellowships.d.ts +48 -2
- package/dist/form/fellowships.js +3 -1
- package/dist/form/files.cjs.js +49 -0
- package/dist/form/files.d.ts +25 -2
- package/dist/form/files.js +3 -1
- package/dist/form/mailing.cjs.js +62 -0
- package/dist/form/mailing.d.ts +18 -2
- package/dist/form/mailing.js +3 -1
- package/dist/form/news.cjs.js +271 -0
- package/dist/form/news.d.ts +51 -2
- package/dist/form/news.js +3 -1
- package/dist/form/people.cjs.js +677 -0
- package/dist/form/people.d.ts +26 -2
- package/dist/form/people.js +3 -1
- package/dist/form/projects.cjs.js +357 -0
- package/dist/form/projects.d.ts +36 -2
- package/dist/form/projects.js +3 -1
- package/dist/form/publications.cjs.js +383 -0
- package/dist/form/publications.d.ts +44 -2
- package/dist/form/publications.js +3 -1
- package/dist/form/tags.cjs.js +57 -0
- package/dist/form/tags.d.ts +12 -2
- package/dist/form/tags.js +3 -1
- package/dist/form/users.cjs.js +595 -0
- package/dist/form/users.d.ts +12 -2
- package/dist/form/users.js +3 -1
- package/dist/list/actions.cjs.js +152 -0
- package/dist/list/actions.d.ts +30 -2
- package/dist/list/actions.js +3 -1
- package/dist/list/affiliations.cjs.js +152 -0
- package/dist/list/affiliations.d.ts +27 -2
- package/dist/list/affiliations.js +3 -1
- package/dist/list/apps.cjs.js +152 -0
- package/dist/list/apps.d.ts +39 -2
- package/dist/list/apps.js +3 -1
- package/dist/list/disciplines.cjs.js +151 -0
- package/dist/list/disciplines.d.ts +21 -2
- package/dist/list/disciplines.js +3 -1
- package/dist/list/events.cjs.js +205 -0
- package/dist/list/events.d.ts +105 -2
- package/dist/list/events.js +3 -1
- package/dist/list/fellowships.cjs.js +168 -0
- package/dist/list/fellowships.d.ts +57 -2
- package/dist/list/fellowships.js +3 -1
- package/dist/list/files.cjs.js +151 -0
- package/dist/list/files.d.ts +34 -2
- package/dist/list/files.js +3 -1
- package/dist/list/mailing.cjs.js +151 -0
- package/dist/list/mailing.d.ts +27 -2
- package/dist/list/mailing.js +3 -1
- package/dist/list/news.cjs.js +154 -0
- package/dist/list/news.d.ts +60 -2
- package/dist/list/news.js +3 -1
- package/dist/list/people.cjs.js +195 -0
- package/dist/list/people.d.ts +35 -2
- package/dist/list/people.js +3 -1
- package/dist/list/projects.cjs.js +154 -0
- package/dist/list/projects.d.ts +45 -2
- package/dist/list/projects.js +3 -1
- package/dist/list/publications.cjs.js +171 -0
- package/dist/list/publications.d.ts +53 -2
- package/dist/list/publications.js +3 -1
- package/dist/list/tags.cjs.js +152 -0
- package/dist/list/tags.d.ts +21 -2
- package/dist/list/tags.js +3 -1
- package/dist/list/users.cjs.js +195 -0
- package/dist/list/users.d.ts +21 -2
- package/dist/list/users.js +3 -1
- package/index.js +30 -0
- package/package.json +67 -32
|
@@ -1,2 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Form } from "../../index"
|
|
2
|
+
|
|
3
|
+
// Inline type definitions
|
|
4
|
+
export interface Fellowships {
|
|
5
|
+
action?: string
|
|
6
|
+
affiliations?: Affiliations[] // AKA members behind the fellowships
|
|
7
|
+
applicationStart?: Date
|
|
8
|
+
disciplines?: Disciplines[] // 3 - Server & Client //Inside=> Presentation
|
|
9
|
+
fellowshipStart?: Date
|
|
10
|
+
contact?: string
|
|
11
|
+
description: string
|
|
12
|
+
subtitle: string
|
|
13
|
+
fellowshipDetails: FellowshipDetails
|
|
14
|
+
fellows?: RelatedPeople[]
|
|
15
|
+
url?: URL
|
|
16
|
+
applicationStop?: Date
|
|
17
|
+
fellowshipStop?: Date
|
|
18
|
+
image?: Image
|
|
19
|
+
publicationDate?: Date
|
|
20
|
+
summary?: string
|
|
21
|
+
files?: Files[]
|
|
22
|
+
fellowshipType: [FellowshipType]
|
|
23
|
+
gallery?: Image[]
|
|
24
|
+
name: string
|
|
25
|
+
video?: Video[]
|
|
26
|
+
status: FellowshipStatus
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export enum FellowshipType {
|
|
30
|
+
ShortStay = "SHORT_STAY",
|
|
31
|
+
LongStay = "LONG_STAY",
|
|
32
|
+
InGroup = "IN_GROUP",
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export enum FellowshipStatus {
|
|
36
|
+
Planned = "PLANNED",
|
|
37
|
+
Ongoing = "ONGOING",
|
|
38
|
+
Finished = "FINISHED",
|
|
39
|
+
Cancelled = "CANCELLED",
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface FormModule {
|
|
43
|
+
_defaults: Record<string, any>
|
|
44
|
+
schema: Record<string, Form>
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare const data: FormModule
|
|
48
|
+
export default data
|
package/dist/form/fellowships.js
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Deep freeze utility to make exports immutable
|
|
4
|
+
const deepFreeze = (obj) => {
|
|
5
|
+
Object.freeze(obj);
|
|
6
|
+
Object.getOwnPropertyNames(obj).forEach(prop => {
|
|
7
|
+
if (obj[prop] !== null
|
|
8
|
+
&& (typeof obj[prop] === "object" || typeof obj[prop] === "function")
|
|
9
|
+
&& !Object.isFrozen(obj[prop])) {
|
|
10
|
+
deepFreeze(obj[prop]);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
return obj;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const data = {
|
|
17
|
+
"_defaults": {
|
|
18
|
+
"name": "",
|
|
19
|
+
"file": ""
|
|
20
|
+
},
|
|
21
|
+
"schema": {
|
|
22
|
+
"name": {
|
|
23
|
+
"label": "name",
|
|
24
|
+
"component": "TextField",
|
|
25
|
+
"type": "PRIMITIVE",
|
|
26
|
+
"rules": {
|
|
27
|
+
"required": true,
|
|
28
|
+
"min": 5,
|
|
29
|
+
"max": 200
|
|
30
|
+
},
|
|
31
|
+
"meta": "name"
|
|
32
|
+
},
|
|
33
|
+
"file": {
|
|
34
|
+
"label": "file",
|
|
35
|
+
"component": "TextField",
|
|
36
|
+
"type": "PRIMITIVE",
|
|
37
|
+
"rules": {
|
|
38
|
+
"required": true,
|
|
39
|
+
"min": 5,
|
|
40
|
+
"max": 200
|
|
41
|
+
},
|
|
42
|
+
"meta": "file"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
var files = deepFreeze(data);
|
|
48
|
+
|
|
49
|
+
module.exports = files;
|
package/dist/form/files.d.ts
CHANGED
|
@@ -1,2 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Form } from "../../index"
|
|
2
|
+
|
|
3
|
+
// Inline type definitions
|
|
4
|
+
export interface Files {
|
|
5
|
+
name: string
|
|
6
|
+
url: URL
|
|
7
|
+
size: number
|
|
8
|
+
fileType: string
|
|
9
|
+
hash: string
|
|
10
|
+
path: string
|
|
11
|
+
file: string
|
|
12
|
+
image?: Image
|
|
13
|
+
thumb: URL
|
|
14
|
+
createdAt: Date
|
|
15
|
+
updatedAt: Date
|
|
16
|
+
id: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface FormModule {
|
|
20
|
+
_defaults: Record<string, any>
|
|
21
|
+
schema: Record<string, Form>
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare const data: FormModule
|
|
25
|
+
export default data
|
package/dist/form/files.js
CHANGED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Deep freeze utility to make exports immutable
|
|
4
|
+
const deepFreeze = (obj) => {
|
|
5
|
+
Object.freeze(obj);
|
|
6
|
+
Object.getOwnPropertyNames(obj).forEach(prop => {
|
|
7
|
+
if (obj[prop] !== null
|
|
8
|
+
&& (typeof obj[prop] === "object" || typeof obj[prop] === "function")
|
|
9
|
+
&& !Object.isFrozen(obj[prop])) {
|
|
10
|
+
deepFreeze(obj[prop]);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
return obj;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const data = {
|
|
17
|
+
"_defaults": {
|
|
18
|
+
"name": "",
|
|
19
|
+
"content": "",
|
|
20
|
+
"date": ""
|
|
21
|
+
},
|
|
22
|
+
"schema": {
|
|
23
|
+
"name": {
|
|
24
|
+
"label": "name",
|
|
25
|
+
"component": "TextField",
|
|
26
|
+
"type": "PRIMITIVE",
|
|
27
|
+
"rules": {
|
|
28
|
+
"required": true,
|
|
29
|
+
"min": 5,
|
|
30
|
+
"max": 200
|
|
31
|
+
},
|
|
32
|
+
"meta": "name"
|
|
33
|
+
},
|
|
34
|
+
"content": {
|
|
35
|
+
"label": "content",
|
|
36
|
+
"component": "TextField",
|
|
37
|
+
"type": "PRIMITIVE",
|
|
38
|
+
"rules": {
|
|
39
|
+
"required": true,
|
|
40
|
+
"min": 5,
|
|
41
|
+
"max": 200
|
|
42
|
+
},
|
|
43
|
+
"meta": "content"
|
|
44
|
+
},
|
|
45
|
+
"date": {
|
|
46
|
+
"label": "date",
|
|
47
|
+
"component": "TextField",
|
|
48
|
+
"description": "The date when the mailing will be sent",
|
|
49
|
+
"type": "PRIMITIVE",
|
|
50
|
+
"rules": {
|
|
51
|
+
"required": true,
|
|
52
|
+
"min": 5,
|
|
53
|
+
"max": 200
|
|
54
|
+
},
|
|
55
|
+
"meta": "date"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
var mailing = deepFreeze(data);
|
|
61
|
+
|
|
62
|
+
module.exports = mailing;
|
package/dist/form/mailing.d.ts
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Form } from "../../index"
|
|
2
|
+
|
|
3
|
+
// Inline type definitions
|
|
4
|
+
export interface Mailing {
|
|
5
|
+
name: string
|
|
6
|
+
content?: string
|
|
7
|
+
createdAt: string
|
|
8
|
+
updatedAt: string
|
|
9
|
+
date: Date
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface FormModule {
|
|
13
|
+
_defaults: Record<string, any>
|
|
14
|
+
schema: Record<string, Form>
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare const data: FormModule
|
|
18
|
+
export default data
|
package/dist/form/mailing.js
CHANGED
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Deep freeze utility to make exports immutable
|
|
4
|
+
const deepFreeze = (obj) => {
|
|
5
|
+
Object.freeze(obj);
|
|
6
|
+
Object.getOwnPropertyNames(obj).forEach(prop => {
|
|
7
|
+
if (obj[prop] !== null
|
|
8
|
+
&& (typeof obj[prop] === "object" || typeof obj[prop] === "function")
|
|
9
|
+
&& !Object.isFrozen(obj[prop])) {
|
|
10
|
+
deepFreeze(obj[prop]);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
return obj;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const data = {
|
|
17
|
+
"_defaults": {
|
|
18
|
+
"name": {
|
|
19
|
+
"en": "",
|
|
20
|
+
"fr": ""
|
|
21
|
+
},
|
|
22
|
+
"summary": {
|
|
23
|
+
"en": "",
|
|
24
|
+
"fr": ""
|
|
25
|
+
},
|
|
26
|
+
"subtitle": {
|
|
27
|
+
"en": "",
|
|
28
|
+
"fr": ""
|
|
29
|
+
},
|
|
30
|
+
"description": {
|
|
31
|
+
"en": "",
|
|
32
|
+
"fr": ""
|
|
33
|
+
},
|
|
34
|
+
"image": "",
|
|
35
|
+
"color": "",
|
|
36
|
+
"url": "",
|
|
37
|
+
"files": "",
|
|
38
|
+
"gallery": "",
|
|
39
|
+
"date": "",
|
|
40
|
+
"featured": "",
|
|
41
|
+
"tags": "",
|
|
42
|
+
"related": {
|
|
43
|
+
"events": "",
|
|
44
|
+
"news": "",
|
|
45
|
+
"people": "",
|
|
46
|
+
"publications": "",
|
|
47
|
+
"projects": "",
|
|
48
|
+
"fellowships": ""
|
|
49
|
+
},
|
|
50
|
+
"category": ""
|
|
51
|
+
},
|
|
52
|
+
"schema": {
|
|
53
|
+
"name": {
|
|
54
|
+
"label": "name",
|
|
55
|
+
"component": "TextField",
|
|
56
|
+
"type": "PRIMITIVE",
|
|
57
|
+
"i18n": true,
|
|
58
|
+
"rules": {
|
|
59
|
+
"required": true,
|
|
60
|
+
"min": 5,
|
|
61
|
+
"max": 200
|
|
62
|
+
},
|
|
63
|
+
"meta": "name"
|
|
64
|
+
},
|
|
65
|
+
"summary": {
|
|
66
|
+
"label": "summary",
|
|
67
|
+
"component": "TextArea",
|
|
68
|
+
"type": "PRIMITIVE",
|
|
69
|
+
"i18n": true,
|
|
70
|
+
"rules": {
|
|
71
|
+
"required": true,
|
|
72
|
+
"min": 5,
|
|
73
|
+
"max": 200
|
|
74
|
+
},
|
|
75
|
+
"meta": "summary"
|
|
76
|
+
},
|
|
77
|
+
"subtitle": {
|
|
78
|
+
"label": "subtitle",
|
|
79
|
+
"component": "TextField",
|
|
80
|
+
"type": "PRIMITIVE",
|
|
81
|
+
"i18n": true,
|
|
82
|
+
"rules": {
|
|
83
|
+
"required": true,
|
|
84
|
+
"min": 5,
|
|
85
|
+
"max": 200
|
|
86
|
+
},
|
|
87
|
+
"meta": "subtitle"
|
|
88
|
+
},
|
|
89
|
+
"description": {
|
|
90
|
+
"label": "description",
|
|
91
|
+
"component": "TextArea",
|
|
92
|
+
"i18n": true,
|
|
93
|
+
"type": "PRIMITIVE",
|
|
94
|
+
"rules": {
|
|
95
|
+
"required": true,
|
|
96
|
+
"min": 5,
|
|
97
|
+
"max": 200
|
|
98
|
+
},
|
|
99
|
+
"meta": "description"
|
|
100
|
+
},
|
|
101
|
+
"image": {
|
|
102
|
+
"label": "image",
|
|
103
|
+
"component": "ImagePicker",
|
|
104
|
+
"type": "DOCUMENT",
|
|
105
|
+
"rules": {
|
|
106
|
+
"required": true
|
|
107
|
+
},
|
|
108
|
+
"meta": "image",
|
|
109
|
+
"default": ""
|
|
110
|
+
},
|
|
111
|
+
"color": {
|
|
112
|
+
"label": "color",
|
|
113
|
+
"component": "ColorPicker",
|
|
114
|
+
"type": "PRIMITIVE",
|
|
115
|
+
"rules": {
|
|
116
|
+
"required": true,
|
|
117
|
+
"color": true
|
|
118
|
+
},
|
|
119
|
+
"meta": "color"
|
|
120
|
+
},
|
|
121
|
+
"url": {
|
|
122
|
+
"label": "url",
|
|
123
|
+
"component": "TextField",
|
|
124
|
+
"type": "PRIMITIVE",
|
|
125
|
+
"rules": {
|
|
126
|
+
"required": true,
|
|
127
|
+
"url": true
|
|
128
|
+
},
|
|
129
|
+
"meta": "url"
|
|
130
|
+
},
|
|
131
|
+
"files": {
|
|
132
|
+
"label": "files",
|
|
133
|
+
"component": "FilePicker",
|
|
134
|
+
"type": "DOCUMENT",
|
|
135
|
+
"rules": {
|
|
136
|
+
"required": true
|
|
137
|
+
},
|
|
138
|
+
"meta": "files",
|
|
139
|
+
"default": ""
|
|
140
|
+
},
|
|
141
|
+
"gallery": {
|
|
142
|
+
"label": "gallery",
|
|
143
|
+
"component": "ImagePicker",
|
|
144
|
+
"type": "DOCUMENT",
|
|
145
|
+
"multiple": true,
|
|
146
|
+
"meta": "gallery",
|
|
147
|
+
"default": ""
|
|
148
|
+
},
|
|
149
|
+
"date": {
|
|
150
|
+
"label": "date",
|
|
151
|
+
"component": "DatePicker",
|
|
152
|
+
"type": "PRIMITIVE",
|
|
153
|
+
"rules": {
|
|
154
|
+
"required": true,
|
|
155
|
+
"date": true
|
|
156
|
+
},
|
|
157
|
+
"meta": "date"
|
|
158
|
+
},
|
|
159
|
+
"featured": {
|
|
160
|
+
"label": "featured",
|
|
161
|
+
"component": "DatePicker",
|
|
162
|
+
"type": "PRIMITIVE",
|
|
163
|
+
"rules": {
|
|
164
|
+
"required": true,
|
|
165
|
+
"date": true
|
|
166
|
+
},
|
|
167
|
+
"meta": "featured"
|
|
168
|
+
},
|
|
169
|
+
"tags": {
|
|
170
|
+
"label": "tags",
|
|
171
|
+
"component": "TagPicker",
|
|
172
|
+
"type": "DOCUMENT",
|
|
173
|
+
"rules": {
|
|
174
|
+
"required": true,
|
|
175
|
+
"min": 1
|
|
176
|
+
},
|
|
177
|
+
"meta": "tags",
|
|
178
|
+
"default": ""
|
|
179
|
+
},
|
|
180
|
+
"related": {
|
|
181
|
+
"label": "related",
|
|
182
|
+
"component": "ObjectContainerPanel",
|
|
183
|
+
"type": "OBJECT",
|
|
184
|
+
"rules": {
|
|
185
|
+
"required": true,
|
|
186
|
+
"min": 5,
|
|
187
|
+
"max": 200
|
|
188
|
+
},
|
|
189
|
+
"meta": "related",
|
|
190
|
+
"items": {
|
|
191
|
+
"events": {
|
|
192
|
+
"label": "relatedEvent",
|
|
193
|
+
"component": "DocumentPicker",
|
|
194
|
+
"type": "DOCUMENT",
|
|
195
|
+
"meta": "event",
|
|
196
|
+
"default": ""
|
|
197
|
+
},
|
|
198
|
+
"news": {
|
|
199
|
+
"label": "relatedNews",
|
|
200
|
+
"component": "DocumentPicker",
|
|
201
|
+
"type": "DOCUMENT",
|
|
202
|
+
"meta": "news",
|
|
203
|
+
"default": ""
|
|
204
|
+
},
|
|
205
|
+
"people": {
|
|
206
|
+
"label": "relatedPeople",
|
|
207
|
+
"component": "DocumentPicker",
|
|
208
|
+
"type": "DOCUMENT",
|
|
209
|
+
"meta": "people",
|
|
210
|
+
"default": ""
|
|
211
|
+
},
|
|
212
|
+
"publications": {
|
|
213
|
+
"label": "relatedPublication",
|
|
214
|
+
"component": "DocumentPicker",
|
|
215
|
+
"type": "DOCUMENT",
|
|
216
|
+
"meta": "publication",
|
|
217
|
+
"default": ""
|
|
218
|
+
},
|
|
219
|
+
"projects": {
|
|
220
|
+
"label": "relatedProject",
|
|
221
|
+
"component": "DocumentPicker",
|
|
222
|
+
"type": "DOCUMENT",
|
|
223
|
+
"meta": "project",
|
|
224
|
+
"default": ""
|
|
225
|
+
},
|
|
226
|
+
"fellowships": {
|
|
227
|
+
"label": "relatedFellowships",
|
|
228
|
+
"component": "DocumentPicker",
|
|
229
|
+
"type": "DOCUMENT",
|
|
230
|
+
"meta": "fellowship",
|
|
231
|
+
"default": ""
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"category": {
|
|
236
|
+
"label": "category",
|
|
237
|
+
"component": "Select",
|
|
238
|
+
"type": "PRIMITIVE",
|
|
239
|
+
"rules": {
|
|
240
|
+
"required": true
|
|
241
|
+
},
|
|
242
|
+
"items": {
|
|
243
|
+
"PressRelease": "PRESS_RELEASE",
|
|
244
|
+
"Interview": "INTERVIEW",
|
|
245
|
+
"Article": "ARTICLE",
|
|
246
|
+
"Opinion": "OPINION",
|
|
247
|
+
"Report": "REPORT",
|
|
248
|
+
"Blog": "BLOG",
|
|
249
|
+
"LifeAtTheInstitute": "LIFE_AT_THE_INSTITUTE",
|
|
250
|
+
"Event": "EVENT",
|
|
251
|
+
"Announcement": "ANNOUNCEMENT",
|
|
252
|
+
"Job": "JOB",
|
|
253
|
+
"Fellowship": "FELLOWSHIP",
|
|
254
|
+
"Grant": "GRANT",
|
|
255
|
+
"Award": "AWARD",
|
|
256
|
+
"Project": "PROJECT",
|
|
257
|
+
"Tool": "TOOL",
|
|
258
|
+
"Software": "SOFTWARE",
|
|
259
|
+
"Data": "DATA",
|
|
260
|
+
"Publication": "PUBLICATION",
|
|
261
|
+
"Video": "VIDEO",
|
|
262
|
+
"Audio": "AUDIO"
|
|
263
|
+
},
|
|
264
|
+
"meta": "category"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
var news = deepFreeze(data);
|
|
270
|
+
|
|
271
|
+
module.exports = news;
|
package/dist/form/news.d.ts
CHANGED
|
@@ -1,2 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Form } from "../../index"
|
|
2
|
+
|
|
3
|
+
// Inline type definitions
|
|
4
|
+
export interface News {
|
|
5
|
+
name: string
|
|
6
|
+
authors: [RelatedPeople]
|
|
7
|
+
category?: newsCategories
|
|
8
|
+
description?: string
|
|
9
|
+
summary?: string
|
|
10
|
+
subtitle?: string
|
|
11
|
+
tags?: Tag[]
|
|
12
|
+
image?: Image
|
|
13
|
+
gallery?: Image[]
|
|
14
|
+
color?: string
|
|
15
|
+
url?: URL
|
|
16
|
+
date?: Date
|
|
17
|
+
featured?: Date
|
|
18
|
+
related?: Related[]
|
|
19
|
+
files?: Files
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export enum newsCategories {
|
|
23
|
+
PressRelease = "PRESS_RELEASE",
|
|
24
|
+
Interview = "INTERVIEW",
|
|
25
|
+
Article = "ARTICLE",
|
|
26
|
+
Opinion = "OPINION",
|
|
27
|
+
Report = "REPORT",
|
|
28
|
+
Blog = "BLOG",
|
|
29
|
+
LifeAtTheInstitute = "LIFE_AT_THE_INSTITUTE",
|
|
30
|
+
Event = "EVENT",
|
|
31
|
+
Announcement = "ANNOUNCEMENT",
|
|
32
|
+
Job = "JOB",
|
|
33
|
+
Fellowship = "FELLOWSHIP",
|
|
34
|
+
Grant = "GRANT",
|
|
35
|
+
Award = "AWARD",
|
|
36
|
+
Project = "PROJECT",
|
|
37
|
+
Tool = "TOOL",
|
|
38
|
+
Software = "SOFTWARE",
|
|
39
|
+
Data = "DATA",
|
|
40
|
+
Publication = "PUBLICATION",
|
|
41
|
+
Video = "VIDEO",
|
|
42
|
+
Audio = "AUDIO",
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface FormModule {
|
|
46
|
+
_defaults: Record<string, any>
|
|
47
|
+
schema: Record<string, Form>
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare const data: FormModule
|
|
51
|
+
export default data
|