@paris-ias/trees 2.2.14 → 2.2.16

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.
@@ -1,71 +1,15 @@
1
- query search($appId: ID = "", $search: String = "", $lang: String = "en") {
2
- search(appId: $appId, search: $search, lang: $lang) {
3
- people {
4
- items {
5
- firstname
6
- image {
7
- alt
8
- backgroundColor
9
- caption
10
- copyright
11
- license
12
- licenseUrl
13
- url
14
- }
15
- lastname
16
- summary
17
- disciplines
18
- slug
19
- score
20
- }
21
- total
22
- }
23
- projects {
24
- items {
25
- date
26
- featured
27
- name
28
- summary
29
- disciplines
30
- image {
31
- alt
32
- backgroundColor
33
- caption
34
- copyright
35
- license
36
- licenseUrl
37
- url
38
- }
39
- subtitle
40
- tags {
41
- name
42
- }
43
- slug
44
- score
45
- }
46
- total
47
- }
48
- publications {
49
- items {
50
- disciplines
51
- subtitle
52
- name
53
- summary
54
- image {
55
- alt
56
- backgroundColor
57
- caption
58
- copyright
59
- licenseUrl
60
- license
61
- url
62
- }
63
- date
64
- slug
65
- score
66
- }
67
- total
68
- }
1
+ query search(
2
+ $appId: ID = ""
3
+ $search: String = ""
4
+ $lang: String = "en"
5
+ $disciplines: [String]
6
+ ) {
7
+ search(
8
+ appId: $appId
9
+ search: $search
10
+ lang: $lang
11
+ disciplines: $disciplines
12
+ ) {
69
13
  events {
70
14
  items {
71
15
  availableSlots
@@ -79,62 +23,151 @@ query search($appId: ID = "", $search: String = "", $lang: String = "en") {
79
23
  slug
80
24
  name
81
25
  image {
82
- alt
83
- backgroundColor
84
- caption
85
- copyright
86
- licenseUrl
87
- license
88
- url
26
+ ...searchImage
89
27
  }
90
28
  score
91
29
  }
92
30
  total
93
31
  }
94
32
  fellowships {
33
+ items {
34
+ ...fellowshipItem
35
+ }
95
36
  total
37
+ }
38
+ team {
96
39
  items {
97
- applicationStart
98
- applicationStop
99
- disciplines
100
- fellowshipStart
101
- fellowshipType
102
- fellowshipStop
103
- image {
104
- alt
105
- backgroundColor
106
- caption
107
- copyright
108
- license
109
- licenseUrl
110
- url
111
- }
112
- name
113
- summary
114
- slug
115
- score
40
+ ...peopleItem
116
41
  }
42
+ total
43
+ }
44
+ sab {
45
+ items {
46
+ ...peopleItem
47
+ }
48
+ total
49
+ }
50
+ board {
51
+ items {
52
+ ...peopleItem
53
+ }
54
+ total
55
+ }
56
+ ethics {
57
+ items {
58
+ ...peopleItem
59
+ }
60
+ total
61
+ }
62
+ fellows {
63
+ items {
64
+ ...peopleItem
65
+ }
66
+ total
67
+ }
68
+ initiatives {
69
+ items {
70
+ ...projectItem
71
+ }
72
+ total
73
+ }
74
+ tools {
75
+ items {
76
+ ...projectItem
77
+ }
78
+ total
79
+ }
80
+ projects {
81
+ items {
82
+ ...projectItem
83
+ }
84
+ total
85
+ }
86
+ media {
87
+ items {
88
+ ...publicationItem
89
+ }
90
+ total
91
+ }
92
+ publications {
93
+ items {
94
+ ...publicationItem
95
+ }
96
+ total
117
97
  }
118
98
  news {
119
99
  items {
120
- category
121
- date
122
- featured
123
- summary
124
- image {
125
- alt
126
- backgroundColor
127
- caption
128
- copyright
129
- license
130
- licenseUrl
131
- url
132
- }
133
- name
134
- slug
135
- score
100
+ ...publicationItem
136
101
  }
137
102
  total
138
103
  }
139
104
  }
140
105
  }
106
+
107
+ fragment searchImage on Image {
108
+ alt
109
+ backgroundColor
110
+ caption
111
+ copyright
112
+ license
113
+ licenseUrl
114
+ url
115
+ }
116
+
117
+ fragment peopleItem on People {
118
+ firstname
119
+ lastname
120
+ summary
121
+ disciplines
122
+ slug
123
+ score
124
+ image {
125
+ ...searchImage
126
+ }
127
+ }
128
+
129
+ fragment projectItem on Project {
130
+ date
131
+ featured
132
+ name
133
+ summary
134
+ disciplines
135
+ subtitle
136
+ tags {
137
+ name
138
+ }
139
+ slug
140
+ score
141
+ image {
142
+ ...searchImage
143
+ }
144
+ }
145
+
146
+ fragment publicationItem on Publication {
147
+ disciplines
148
+ subtitle
149
+ name
150
+ summary
151
+ date
152
+ slug
153
+ score
154
+ image {
155
+ ...searchImage
156
+ }
157
+ }
158
+
159
+ fragment fellowshipItem on Fellowship {
160
+ applicationStart
161
+ applicationStop
162
+ disciplines
163
+ fellowshipStart
164
+ fellowshipType
165
+ fellowshipStop
166
+ name
167
+ summary
168
+ slug
169
+ score
170
+ image {
171
+ ...searchImage
172
+ }
173
+ }
@@ -148,7 +148,7 @@ type Query {
148
148
  listUsers(appId: ID, options: ListInput!, lang: String): UserList
149
149
  getUser(appId: ID, itemId: ID, lang: String): User
150
150
  checkAltcha(payload: String!, hmacKey: String!): AltchaVerification
151
- search(appId: ID, search: String, lang: String): SearchList
151
+ search(appId: ID, search: String, lang: String, disciplines: [String]): SearchList
152
152
  getFellowship(appId: ID, itemId: ID, lang: String): Fellowship
153
153
  getAction(appId: ID, itemId: ID, lang: String): Actions
154
154
  getEvent(appId: ID, itemId: ID, lang: String): Event
@@ -787,12 +787,19 @@ type Profile {
787
787
  }
788
788
 
789
789
  type SearchList {
790
- news: NewsList
791
- projects: ProjectsList
792
790
  events: EventsList
793
- people: PeopleList
794
- publications: PublicationsList
795
791
  fellowships: FellowshipList
792
+ team: PeopleList
793
+ sab: PeopleList
794
+ board: PeopleList
795
+ ethics: PeopleList
796
+ fellows: PeopleList
797
+ initiatives: ProjectsList
798
+ tools: ProjectsList
799
+ projects: ProjectsList
800
+ media: PublicationsList
801
+ publications: PublicationsList
802
+ news: PublicationsList
796
803
  }
797
804
 
798
805
  type Settings {
@@ -509,7 +509,7 @@ input LocationInput {
509
509
  }
510
510
 
511
511
  type Query {
512
- search(appId: ID, search: String, lang: String): SearchList
512
+ search(appId: ID, search: String, lang: String, disciplines: [String]): SearchList
513
513
  getFellowship(appId: ID, itemId: ID, lang: String): Fellowship
514
514
  getAction(appId: ID, itemId: ID, lang: String): Actions
515
515
  getEvent(appId: ID, itemId: ID, lang: String): Event
@@ -604,12 +604,19 @@ type Profile {
604
604
  }
605
605
 
606
606
  type SearchList {
607
- news: NewsList
608
- projects: ProjectsList
609
607
  events: EventsList
610
- people: PeopleList
611
- publications: PublicationsList
612
608
  fellowships: FellowshipList
609
+ team: PeopleList
610
+ sab: PeopleList
611
+ board: PeopleList
612
+ ethics: PeopleList
613
+ fellows: PeopleList
614
+ initiatives: ProjectsList
615
+ tools: ProjectsList
616
+ projects: ProjectsList
617
+ media: PublicationsList
618
+ publications: PublicationsList
619
+ news: PublicationsList
613
620
  }
614
621
 
615
622
  type Settings {
@@ -136,7 +136,7 @@ const data = {
136
136
  "text": "by-vintage-from-old-to-recent",
137
137
  "value": [
138
138
  {
139
- "groups.vintage.year": 1
139
+ "latest.start||latest.year:year": 1
140
140
  },
141
141
  {
142
142
  "lastname": 1
@@ -148,7 +148,7 @@ const data = {
148
148
  "text": "by-vintage-from-recent-to-old",
149
149
  "value": [
150
150
  {
151
- "groups.vintage.year": -1
151
+ "latest.start||latest.year:year": -1
152
152
  },
153
153
  {
154
154
  "lastname": 1
@@ -134,7 +134,7 @@ const data = {
134
134
  "text": "by-vintage-from-old-to-recent",
135
135
  "value": [
136
136
  {
137
- "groups.vintage.year": 1
137
+ "latest.start||latest.year:year": 1
138
138
  },
139
139
  {
140
140
  "lastname": 1
@@ -146,7 +146,7 @@ const data = {
146
146
  "text": "by-vintage-from-recent-to-old",
147
147
  "value": [
148
148
  {
149
- "groups.vintage.year": -1
149
+ "latest.start||latest.year:year": -1
150
150
  },
151
151
  {
152
152
  "lastname": 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paris-ias/trees",
3
- "version": "2.2.14",
3
+ "version": "2.2.16",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",