@paris-ias/trees 2.0.25 → 2.0.27

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.
@@ -54,6 +54,8 @@ const selectiveDeepFreeze = (obj, path = []) => {
54
54
  const data = {
55
55
  "_defaults": {
56
56
  "name": "",
57
+ "start": "",
58
+ "stop": "",
57
59
  "image": "",
58
60
  "link": "",
59
61
  "color": "#FFFFFF",
@@ -73,6 +75,26 @@ const data = {
73
75
  },
74
76
  "meta": "name"
75
77
  },
78
+ "start": {
79
+ "label": "start_date",
80
+ "type": "PRIMITIVE",
81
+ "component": "DateTimePicker",
82
+ "description": "The start date of the action",
83
+ "rules": {
84
+ "required": true
85
+ },
86
+ "meta": "startDate"
87
+ },
88
+ "stop": {
89
+ "label": "end_date",
90
+ "type": "PRIMITIVE",
91
+ "component": "DateTimePicker",
92
+ "description": "The end date of the action",
93
+ "rules": {
94
+ "required": false
95
+ },
96
+ "meta": "endDate"
97
+ },
76
98
  "image": {
77
99
  "label": "image",
78
100
  "type": "DOCUMENT",
@@ -52,6 +52,8 @@ const selectiveDeepFreeze = (obj, path = []) => {
52
52
  const data = {
53
53
  "_defaults": {
54
54
  "name": "",
55
+ "start": "",
56
+ "stop": "",
55
57
  "image": "",
56
58
  "link": "",
57
59
  "color": "#FFFFFF",
@@ -71,6 +73,26 @@ const data = {
71
73
  },
72
74
  "meta": "name"
73
75
  },
76
+ "start": {
77
+ "label": "start_date",
78
+ "type": "PRIMITIVE",
79
+ "component": "DateTimePicker",
80
+ "description": "The start date of the action",
81
+ "rules": {
82
+ "required": true
83
+ },
84
+ "meta": "startDate"
85
+ },
86
+ "stop": {
87
+ "label": "end_date",
88
+ "type": "PRIMITIVE",
89
+ "component": "DateTimePicker",
90
+ "description": "The end date of the action",
91
+ "rules": {
92
+ "required": false
93
+ },
94
+ "meta": "endDate"
95
+ },
74
96
  "image": {
75
97
  "label": "image",
76
98
  "type": "DOCUMENT",
@@ -8,7 +8,7 @@ export enum AffiliationCategories {
8
8
  }
9
9
 
10
10
  export interface Affiliations {
11
- location?: Location
11
+ locations?: Location[]
12
12
  image?: Image
13
13
  name: string
14
14
  ror?: string
@@ -16,7 +16,7 @@ export interface Files {
16
16
  url: URL
17
17
  size: number
18
18
  fileType: string
19
- catetgory: FileCategory
19
+ category: FileCategory
20
20
  hash: string
21
21
  path: string
22
22
  thumb: URL
@@ -53,6 +53,7 @@ const selectiveDeepFreeze = (obj, path = []) => {
53
53
 
54
54
  const data = {
55
55
  "_defaults": {
56
+ "category": "",
56
57
  "name": {
57
58
  "en": "",
58
59
  "fr": ""
@@ -70,7 +71,6 @@ const data = {
70
71
  "fr": ""
71
72
  },
72
73
  "date": "",
73
- "category": "",
74
74
  "image": "",
75
75
  "color": "",
76
76
  "url": "",
@@ -88,6 +88,37 @@ const data = {
88
88
  }
89
89
  },
90
90
  "schema": {
91
+ "category": {
92
+ "label": "category",
93
+ "component": "Select",
94
+ "type": "PRIMITIVE",
95
+ "rules": {
96
+ "required": true
97
+ },
98
+ "items": {
99
+ "PressRelease": "PRESS_RELEASE",
100
+ "Interview": "INTERVIEW",
101
+ "Article": "ARTICLE",
102
+ "Opinion": "OPINION",
103
+ "Report": "REPORT",
104
+ "Blog": "BLOG",
105
+ "LifeAtTheInstitute": "LIFE_AT_THE_INSTITUTE",
106
+ "Event": "EVENT",
107
+ "Announcement": "ANNOUNCEMENT",
108
+ "Job": "JOB",
109
+ "Fellowship": "FELLOWSHIP",
110
+ "Grant": "GRANT",
111
+ "Award": "AWARD",
112
+ "Project": "PROJECT",
113
+ "Tool": "TOOL",
114
+ "Software": "SOFTWARE",
115
+ "Data": "DATA",
116
+ "Publication": "PUBLICATION",
117
+ "Video": "VIDEO",
118
+ "Audio": "AUDIO"
119
+ },
120
+ "meta": "category"
121
+ },
91
122
  "name": {
92
123
  "label": "name",
93
124
  "component": "TextField",
@@ -147,37 +178,6 @@ const data = {
147
178
  },
148
179
  "meta": "date"
149
180
  },
150
- "category": {
151
- "label": "category",
152
- "component": "Select",
153
- "type": "PRIMITIVE",
154
- "rules": {
155
- "required": true
156
- },
157
- "items": {
158
- "PressRelease": "PRESS_RELEASE",
159
- "Interview": "INTERVIEW",
160
- "Article": "ARTICLE",
161
- "Opinion": "OPINION",
162
- "Report": "REPORT",
163
- "Blog": "BLOG",
164
- "LifeAtTheInstitute": "LIFE_AT_THE_INSTITUTE",
165
- "Event": "EVENT",
166
- "Announcement": "ANNOUNCEMENT",
167
- "Job": "JOB",
168
- "Fellowship": "FELLOWSHIP",
169
- "Grant": "GRANT",
170
- "Award": "AWARD",
171
- "Project": "PROJECT",
172
- "Tool": "TOOL",
173
- "Software": "SOFTWARE",
174
- "Data": "DATA",
175
- "Publication": "PUBLICATION",
176
- "Video": "VIDEO",
177
- "Audio": "AUDIO"
178
- },
179
- "meta": "category"
180
- },
181
181
  "image": {
182
182
  "label": "image",
183
183
  "component": "ImagePicker",
package/dist/form/news.js CHANGED
@@ -51,6 +51,7 @@ const selectiveDeepFreeze = (obj, path = []) => {
51
51
 
52
52
  const data = {
53
53
  "_defaults": {
54
+ "category": "",
54
55
  "name": {
55
56
  "en": "",
56
57
  "fr": ""
@@ -68,7 +69,6 @@ const data = {
68
69
  "fr": ""
69
70
  },
70
71
  "date": "",
71
- "category": "",
72
72
  "image": "",
73
73
  "color": "",
74
74
  "url": "",
@@ -86,6 +86,37 @@ const data = {
86
86
  }
87
87
  },
88
88
  "schema": {
89
+ "category": {
90
+ "label": "category",
91
+ "component": "Select",
92
+ "type": "PRIMITIVE",
93
+ "rules": {
94
+ "required": true
95
+ },
96
+ "items": {
97
+ "PressRelease": "PRESS_RELEASE",
98
+ "Interview": "INTERVIEW",
99
+ "Article": "ARTICLE",
100
+ "Opinion": "OPINION",
101
+ "Report": "REPORT",
102
+ "Blog": "BLOG",
103
+ "LifeAtTheInstitute": "LIFE_AT_THE_INSTITUTE",
104
+ "Event": "EVENT",
105
+ "Announcement": "ANNOUNCEMENT",
106
+ "Job": "JOB",
107
+ "Fellowship": "FELLOWSHIP",
108
+ "Grant": "GRANT",
109
+ "Award": "AWARD",
110
+ "Project": "PROJECT",
111
+ "Tool": "TOOL",
112
+ "Software": "SOFTWARE",
113
+ "Data": "DATA",
114
+ "Publication": "PUBLICATION",
115
+ "Video": "VIDEO",
116
+ "Audio": "AUDIO"
117
+ },
118
+ "meta": "category"
119
+ },
89
120
  "name": {
90
121
  "label": "name",
91
122
  "component": "TextField",
@@ -145,37 +176,6 @@ const data = {
145
176
  },
146
177
  "meta": "date"
147
178
  },
148
- "category": {
149
- "label": "category",
150
- "component": "Select",
151
- "type": "PRIMITIVE",
152
- "rules": {
153
- "required": true
154
- },
155
- "items": {
156
- "PressRelease": "PRESS_RELEASE",
157
- "Interview": "INTERVIEW",
158
- "Article": "ARTICLE",
159
- "Opinion": "OPINION",
160
- "Report": "REPORT",
161
- "Blog": "BLOG",
162
- "LifeAtTheInstitute": "LIFE_AT_THE_INSTITUTE",
163
- "Event": "EVENT",
164
- "Announcement": "ANNOUNCEMENT",
165
- "Job": "JOB",
166
- "Fellowship": "FELLOWSHIP",
167
- "Grant": "GRANT",
168
- "Award": "AWARD",
169
- "Project": "PROJECT",
170
- "Tool": "TOOL",
171
- "Software": "SOFTWARE",
172
- "Data": "DATA",
173
- "Publication": "PUBLICATION",
174
- "Video": "VIDEO",
175
- "Audio": "AUDIO"
176
- },
177
- "meta": "category"
178
- },
179
179
  "image": {
180
180
  "label": "image",
181
181
  "component": "ImagePicker",
@@ -13,6 +13,8 @@ query getAction($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
13
13
  link
14
14
  name
15
15
  slots
16
+ start
17
+ stop
16
18
  video
17
19
  slug
18
20
  }
@@ -24,6 +24,8 @@ query listActions(
24
24
  link
25
25
  name
26
26
  slots
27
+ start
28
+ stop
27
29
  video
28
30
  slug
29
31
  }
@@ -13,7 +13,7 @@ query getAffiliation(
13
13
  licenseUrl
14
14
  url
15
15
  }
16
- location {
16
+ locations {
17
17
  alt
18
18
  city
19
19
  country
@@ -20,7 +20,7 @@ query listAffiliations(
20
20
  licenseUrl
21
21
  url
22
22
  }
23
- location {
23
+ locations {
24
24
  alt
25
25
  city
26
26
  country
@@ -18,7 +18,7 @@ query getEvent($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
18
18
  url
19
19
  }
20
20
  name
21
- place {
21
+ location {
22
22
  address
23
23
  name
24
24
  url
@@ -24,7 +24,7 @@ query listEvents(
24
24
  }
25
25
  name
26
26
  outside
27
- place {
27
+ location {
28
28
  address
29
29
  name
30
30
  url
@@ -1,24 +1,21 @@
1
1
  query getFile($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
2
2
  getFile(appId: $appId, itemId: $itemId, lang: $lang) {
3
+ alt
4
+ backgroundColor
5
+ caption
6
+ category
7
+ copyright
3
8
  createdAt
4
- file
5
9
  fileType
6
10
  hash
7
- image {
8
- alt
9
- backgroundColor
10
- caption
11
- copyright
12
- license
13
- licenseUrl
14
- url
15
- }
11
+ license
12
+ licenseUrl
16
13
  name
17
14
  path
18
15
  size
16
+ slug
19
17
  thumb
20
18
  updatedAt
21
19
  url
22
- slug
23
20
  }
24
21
  }
@@ -11,21 +11,20 @@ query listFiles(
11
11
  ) {
12
12
  listFiles(options: $options, appId: $appId, lang: $lang) {
13
13
  items {
14
- createdAt
15
- file
16
- fileType
17
- category
18
- hash
19
- slug
20
14
  alt
21
15
  backgroundColor
22
16
  caption
17
+ category
23
18
  copyright
19
+ createdAt
20
+ fileType
21
+ hash
24
22
  license
25
23
  licenseUrl
26
24
  name
27
25
  path
28
26
  size
27
+ slug
29
28
  thumb
30
29
  updatedAt
31
30
  url
@@ -179,6 +179,8 @@ type Actions {
179
179
  slots: [String]
180
180
  slug: AWSJSON
181
181
  score: Float
182
+ start: AWSDateTime
183
+ stop: AWSDateTime
182
184
  }
183
185
 
184
186
  type ActionList {
@@ -192,7 +194,7 @@ type AffiliationList {
192
194
  }
193
195
 
194
196
  type Affiliation {
195
- location: Location
197
+ locations: [Location]
196
198
  image: Image
197
199
  name: String
198
200
  ror: String
@@ -234,57 +236,57 @@ type AppRole {
234
236
  }
235
237
 
236
238
  input EventInput {
237
- name: String!
239
+ availableSlots: Int
240
+ bookingState: bookingState
241
+ category: eventCategories
242
+ date: AWSDateTime
243
+ dateText: String
244
+ delay: AWSDateTime
238
245
  description: String
239
246
  details: String
240
- dateText: String
241
- date: AWSDateTime
242
247
  eventType: eventType
243
- category: eventCategories
244
- totalSlots: Int
245
- availableSlots: Int
246
- slots: [SlotInput!]
247
- delay: AWSDateTime
248
+ image: ImageInput
248
249
  location: LocationInput
250
+ name: String!
251
+ outside: Boolean
252
+ program: String
253
+ slots: [SlotInput!]
249
254
  start: AWSDateTime
255
+ state: eventState
250
256
  stop: AWSDateTime
251
- summary: String
252
257
  subtitle: String
253
- program: String
254
- outside: Boolean
258
+ summary: String
259
+ totalSlots: Int
255
260
  url: AWSURL
256
- image: ImageInput
257
- state: eventState
258
- bookingState: bookingState
259
261
  }
260
262
 
261
263
  type Event {
262
264
  appId: String
263
- createdBy: ID
265
+ availableSlots: Int
266
+ bookingState: bookingState
264
267
  category: eventCategories
265
- name: String!
268
+ createdBy: ID
269
+ dateText: String
270
+ delay: AWSDateTime
266
271
  description: String
267
272
  details: String
268
- dateText: String
269
273
  eventType: eventType
270
- totalSlots: Int
271
- availableSlots: Int
272
- slots: [Slot]
273
- delay: AWSDateTime
274
+ image: Image
274
275
  location: Location
276
+ name: String!
277
+ outside: Boolean
278
+ program: String
279
+ related: Related
280
+ score: Float
281
+ slots: [Slot]
282
+ slug: AWSJSON
275
283
  start: AWSDateTime
284
+ state: eventState
276
285
  stop: AWSDateTime
277
- summary: String
278
- related: Related
279
286
  subtitle: String
280
- program: String
281
- outside: Boolean
287
+ summary: String
288
+ totalSlots: Int
282
289
  url: AWSURL
283
- image: Image
284
- state: eventState
285
- bookingState: bookingState
286
- slug: AWSJSON
287
- score: Float
288
290
  }
289
291
 
290
292
  type EventFilters {
@@ -12,6 +12,8 @@ type Actions {
12
12
  slots: [String]
13
13
  slug: AWSJSON
14
14
  score: Float
15
+ start: AWSDateTime
16
+ stop: AWSDateTime
15
17
  }
16
18
 
17
19
  type ActionList {
@@ -25,7 +27,7 @@ type AffiliationList {
25
27
  }
26
28
 
27
29
  type Affiliation {
28
- location: Location
30
+ locations: [Location]
29
31
  image: Image
30
32
  name: String
31
33
  ror: String
@@ -67,57 +69,57 @@ type AppRole {
67
69
  }
68
70
 
69
71
  input EventInput {
70
- name: String!
72
+ availableSlots: Int
73
+ bookingState: bookingState
74
+ category: eventCategories
75
+ date: AWSDateTime
76
+ dateText: String
77
+ delay: AWSDateTime
71
78
  description: String
72
79
  details: String
73
- dateText: String
74
- date: AWSDateTime
75
80
  eventType: eventType
76
- category: eventCategories
77
- totalSlots: Int
78
- availableSlots: Int
79
- slots: [SlotInput!]
80
- delay: AWSDateTime
81
+ image: ImageInput
81
82
  location: LocationInput
83
+ name: String!
84
+ outside: Boolean
85
+ program: String
86
+ slots: [SlotInput!]
82
87
  start: AWSDateTime
88
+ state: eventState
83
89
  stop: AWSDateTime
84
- summary: String
85
90
  subtitle: String
86
- program: String
87
- outside: Boolean
91
+ summary: String
92
+ totalSlots: Int
88
93
  url: AWSURL
89
- image: ImageInput
90
- state: eventState
91
- bookingState: bookingState
92
94
  }
93
95
 
94
96
  type Event {
95
97
  appId: String
96
- createdBy: ID
98
+ availableSlots: Int
99
+ bookingState: bookingState
97
100
  category: eventCategories
98
- name: String!
101
+ createdBy: ID
102
+ dateText: String
103
+ delay: AWSDateTime
99
104
  description: String
100
105
  details: String
101
- dateText: String
102
106
  eventType: eventType
103
- totalSlots: Int
104
- availableSlots: Int
105
- slots: [Slot]
106
- delay: AWSDateTime
107
+ image: Image
107
108
  location: Location
109
+ name: String!
110
+ outside: Boolean
111
+ program: String
112
+ related: Related
113
+ score: Float
114
+ slots: [Slot]
115
+ slug: AWSJSON
108
116
  start: AWSDateTime
117
+ state: eventState
109
118
  stop: AWSDateTime
110
- summary: String
111
- related: Related
112
119
  subtitle: String
113
- program: String
114
- outside: Boolean
120
+ summary: String
121
+ totalSlots: Int
115
122
  url: AWSURL
116
- image: Image
117
- state: eventState
118
- bookingState: bookingState
119
- slug: AWSJSON
120
- score: Float
121
123
  }
122
124
 
123
125
  type EventFilters {
@@ -8,7 +8,7 @@ export enum AffiliationCategories {
8
8
  }
9
9
 
10
10
  export interface Affiliations {
11
- location?: Location
11
+ locations?: Location[]
12
12
  image?: Image
13
13
  name: string
14
14
  ror?: string
@@ -16,7 +16,7 @@ export interface Files {
16
16
  url: URL
17
17
  size: number
18
18
  fileType: string
19
- catetgory: FileCategory
19
+ category: FileCategory
20
20
  hash: string
21
21
  path: string
22
22
  thumb: URL
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paris-ias/trees",
3
- "version": "2.0.25",
3
+ "version": "2.0.27",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",