@paris-ias/trees 1.8.56

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.
Files changed (202) hide show
  1. package/LICENSE +679 -0
  2. package/dist/form/action.js +83 -0
  3. package/dist/form/affiliation.js +178 -0
  4. package/dist/form/apps.js +132 -0
  5. package/dist/form/disciplines.js +30 -0
  6. package/dist/form/events.js +836 -0
  7. package/dist/form/fellowships.js +1307 -0
  8. package/dist/form/files.js +30 -0
  9. package/dist/form/mailing.js +43 -0
  10. package/dist/form/news.js +252 -0
  11. package/dist/form/people.js +658 -0
  12. package/dist/form/projects.js +338 -0
  13. package/dist/form/publications.js +364 -0
  14. package/dist/form/tags.js +38 -0
  15. package/dist/form/users.js +576 -0
  16. package/dist/graphql/client/action/query.get.action.gql +22 -0
  17. package/dist/graphql/client/action/query.list.action.gql +32 -0
  18. package/dist/graphql/client/affiliation/query.get.affiliations.gql +37 -0
  19. package/dist/graphql/client/affiliation/query.list.affiliations.gql +43 -0
  20. package/dist/graphql/client/apps/query.get.apps.gql +33 -0
  21. package/dist/graphql/client/apps/query.list.apps.gql +43 -0
  22. package/dist/graphql/client/events/query.get.events.gql +119 -0
  23. package/dist/graphql/client/events/query.list.events.gql +40 -0
  24. package/dist/graphql/client/fellowships/query.get.fellowships.gql +163 -0
  25. package/dist/graphql/client/fellowships/query.list.fellowships.gql +49 -0
  26. package/dist/graphql/client/files/query.get.files.gql +24 -0
  27. package/dist/graphql/client/files/query.list.files.gql +37 -0
  28. package/dist/graphql/client/mailing/query.get.mailing.gql +24 -0
  29. package/dist/graphql/client/mailing/query.list.mailing.gql +23 -0
  30. package/dist/graphql/client/misc/apex.mutations.delete.gql +0 -0
  31. package/dist/graphql/client/misc/apex.mutations.upsert.gql +0 -0
  32. package/dist/graphql/client/misc/apex.queries.login.gql +0 -0
  33. package/dist/graphql/client/misc/query.get.disciplines.gql +17 -0
  34. package/dist/graphql/client/misc/query.get.tags.gql +13 -0
  35. package/dist/graphql/client/misc/query.list.disciplines.gql +23 -0
  36. package/dist/graphql/client/misc/query.list.tags.gql +23 -0
  37. package/dist/graphql/client/news/query.get.news.gql +128 -0
  38. package/dist/graphql/client/news/query.list.news.gql +35 -0
  39. package/dist/graphql/client/people/query.get.people.gql +173 -0
  40. package/dist/graphql/client/people/query.get.users.gql +0 -0
  41. package/dist/graphql/client/people/query.list.people.gql +55 -0
  42. package/dist/graphql/client/people/query.list.users.gql +31 -0
  43. package/dist/graphql/client/projects/query.get.projects.gql +166 -0
  44. package/dist/graphql/client/projects/query.list.projects.gql +33 -0
  45. package/dist/graphql/client/publications/query.get.publications.gql +169 -0
  46. package/dist/graphql/client/publications/query.list.publications.gql +35 -0
  47. package/dist/graphql/schemas/apex-resolvers-list.json +45 -0
  48. package/dist/graphql/schemas/schema.apex.graphql +946 -0
  49. package/dist/graphql/schemas/schema.website.graphql +794 -0
  50. package/dist/graphql/schemas/website-resolvers-list.json +22 -0
  51. package/dist/list/action.js +133 -0
  52. package/dist/list/affiliation.js +133 -0
  53. package/dist/list/apps.js +133 -0
  54. package/dist/list/disciplines.js +132 -0
  55. package/dist/list/events.js +186 -0
  56. package/dist/list/fellowships.js +149 -0
  57. package/dist/list/files.js +132 -0
  58. package/dist/list/mailing.js +132 -0
  59. package/dist/list/news.js +135 -0
  60. package/dist/list/people.js +176 -0
  61. package/dist/list/projects.js +135 -0
  62. package/dist/list/publications.js +152 -0
  63. package/dist/list/tags.js +133 -0
  64. package/dist/list/users.js +176 -0
  65. package/index.ts +63 -0
  66. package/lib/README.md +206 -0
  67. package/lib/buildClientGraphQL.ts +342 -0
  68. package/lib/buildDefaults.ts +0 -0
  69. package/lib/buildSchemas.ts +109 -0
  70. package/lib/generate.ts +505 -0
  71. package/lib/generateAll.ts +231 -0
  72. package/lib/utils.ts +24 -0
  73. package/package.json +34 -0
  74. package/readme.md +116 -0
  75. package/src/LICENSE +661 -0
  76. package/src/action/graphql/client/query.get.action.gql +22 -0
  77. package/src/action/graphql/client/query.list.action.gql +32 -0
  78. package/src/action/graphql/server/apex.types.action.graphql +15 -0
  79. package/src/action/models/action.ts +147 -0
  80. package/src/affiliation/graphql/client/query.get.affiliations.gql +37 -0
  81. package/src/affiliation/graphql/client/query.list.affiliations.gql +43 -0
  82. package/src/affiliation/graphql/server/shared.types.affiliations.graphql +20 -0
  83. package/src/affiliation/models/affiliation.ts +130 -0
  84. package/src/affiliation/models/member.ts +11 -0
  85. package/src/affiliation/models/partner.ts +9 -0
  86. package/src/apps/graphql/client/query.get.apps.gql +33 -0
  87. package/src/apps/graphql/client/query.list.apps.gql +43 -0
  88. package/src/apps/models/apps.ts +195 -0
  89. package/src/events/graphql/client/query.get.events.gql +119 -0
  90. package/src/events/graphql/client/query.list.events.gql +40 -0
  91. package/src/events/graphql/server/shared.inputs.events.graphql +24 -0
  92. package/src/events/models/eventSlot.ts +73 -0
  93. package/src/events/models/events.ts +569 -0
  94. package/src/fellowships/graphql/client/query.get.fellowships.gql +163 -0
  95. package/src/fellowships/graphql/client/query.list.fellowships.gql +49 -0
  96. package/src/fellowships/graphql/server/apex.inputs.fellowshipDetails.graphql +13 -0
  97. package/src/fellowships/graphql/server/shared.types.fellowshipDetails.graphql +13 -0
  98. package/src/fellowships/graphql/server/shared.types.fellowships.graphql +38 -0
  99. package/src/fellowships/models/fellowshipDetails.ts +145 -0
  100. package/src/fellowships/models/fellowships.ts +341 -0
  101. package/src/files/graphql/client/query.get.files.gql +24 -0
  102. package/src/files/graphql/client/query.list.files.gql +37 -0
  103. package/src/files/graphql/server/apex.inputs.files.graphql +7 -0
  104. package/src/files/graphql/server/apex.inputs.video.graphql +9 -0
  105. package/src/files/graphql/server/apex.types.files.graphql +4 -0
  106. package/src/files/graphql/server/shared.inputs.image.graphql +9 -0
  107. package/src/files/graphql/server/shared.types.files.graphql +15 -0
  108. package/src/files/graphql/server/shared.types.image.graphql +9 -0
  109. package/src/files/graphql/server/shared.types.video.graphql +9 -0
  110. package/src/files/models/files.ts +113 -0
  111. package/src/files/models/gallery.ts +11 -0
  112. package/src/files/models/image.ts +159 -0
  113. package/src/files/models/video.ts +166 -0
  114. package/src/form.ts +52 -0
  115. package/src/index.ts +98 -0
  116. package/src/list.ts +34 -0
  117. package/src/mailing/graphql/client/query.get.mailing.gql +24 -0
  118. package/src/mailing/graphql/client/query.list.mailing.gql +23 -0
  119. package/src/mailing/graphql/server/apex.types.mailing.graphql +13 -0
  120. package/src/mailing/models/mailing.ts +123 -0
  121. package/src/misc/graphql/client/apex.mutations.delete.gql +0 -0
  122. package/src/misc/graphql/client/apex.mutations.upsert.gql +0 -0
  123. package/src/misc/graphql/client/apex.queries.login.gql +0 -0
  124. package/src/misc/graphql/client/query.get.disciplines.gql +17 -0
  125. package/src/misc/graphql/client/query.get.tags.gql +13 -0
  126. package/src/misc/graphql/client/query.list.disciplines.gql +23 -0
  127. package/src/misc/graphql/client/query.list.tags.gql +23 -0
  128. package/src/misc/graphql/server/apex.inputs.misc.graphql +13 -0
  129. package/src/misc/graphql/server/apex.inputs.socials.graphql +12 -0
  130. package/src/misc/graphql/server/apex.mutations.graphql +23 -0
  131. package/src/misc/graphql/server/apex.queries.graphql +36 -0
  132. package/src/misc/graphql/server/apex.types.disciplines.graphql +4 -0
  133. package/src/misc/graphql/server/apex.types.tags.graphql +4 -0
  134. package/src/misc/graphql/server/shared.enums.graphql +112 -0
  135. package/src/misc/graphql/server/shared.inputs.misc.graphql +101 -0
  136. package/src/misc/graphql/server/shared.queries.graphql +35 -0
  137. package/src/misc/graphql/server/shared.types.disciplines.graphql +8 -0
  138. package/src/misc/graphql/server/shared.types.events.graphql +39 -0
  139. package/src/misc/graphql/server/shared.types.location.graphql +17 -0
  140. package/src/misc/graphql/server/shared.types.misc.graphql +120 -0
  141. package/src/misc/graphql/server/shared.types.related.graphql +10 -0
  142. package/src/misc/graphql/server/shared.types.relatedAffiliation.graphql +7 -0
  143. package/src/misc/graphql/server/shared.types.relatedEvent.graphql +7 -0
  144. package/src/misc/graphql/server/shared.types.relatedFellowships.graphql +7 -0
  145. package/src/misc/graphql/server/shared.types.relatedNews.graphql +7 -0
  146. package/src/misc/graphql/server/shared.types.relatedPeople.graphql +6 -0
  147. package/src/misc/graphql/server/shared.types.relatedProject.graphql +7 -0
  148. package/src/misc/graphql/server/shared.types.relatedPublications.graphql +6 -0
  149. package/src/misc/graphql/server/shared.types.socials.graphql +22 -0
  150. package/src/misc/graphql/server/shared.types.tags.graphql +11 -0
  151. package/src/misc/graphql/server/website.mutations.graphql +4 -0
  152. package/src/misc/models/disciplines.ts +116 -0
  153. package/src/misc/models/location.ts +136 -0
  154. package/src/misc/models/organizers.ts +13 -0
  155. package/src/misc/models/related.ts +123 -0
  156. package/src/misc/models/relatedEvents.ts +16 -0
  157. package/src/misc/models/relatedFellowships.ts +7 -0
  158. package/src/misc/models/relatedNews.ts +13 -0
  159. package/src/misc/models/relatedPeople.ts +8 -0
  160. package/src/misc/models/relatedProject.ts +14 -0
  161. package/src/misc/models/relatedPublications.ts +14 -0
  162. package/src/misc/models/socials.ts +133 -0
  163. package/src/misc/models/sponsor.ts +13 -0
  164. package/src/misc/models/tags.ts +116 -0
  165. package/src/misc/models/taxonomy.ts +1 -0
  166. package/src/model.ts +7 -0
  167. package/src/news/graphql/client/query.get.news.gql +128 -0
  168. package/src/news/graphql/client/query.list.news.gql +35 -0
  169. package/src/news/graphql/server/share.types.news.graphql +27 -0
  170. package/src/news/models/news.ts +257 -0
  171. package/src/people/graphql/client/query.get.people.gql +173 -0
  172. package/src/people/graphql/client/query.get.users.gql +0 -0
  173. package/src/people/graphql/client/query.list.people.gql +55 -0
  174. package/src/people/graphql/client/query.list.users.gql +31 -0
  175. package/src/people/graphql/server/apex.inputs.consent.graphql +9 -0
  176. package/src/people/graphql/server/apex.inputs.groups.graphql +8 -0
  177. package/src/people/graphql/server/apex.inputs.vintage.graphql +6 -0
  178. package/src/people/graphql/server/shared.types.consent.graphql +9 -0
  179. package/src/people/graphql/server/shared.types.groups.graphql +8 -0
  180. package/src/people/graphql/server/shared.types.people.graphql +29 -0
  181. package/src/people/graphql/server/shared.types.position.graphql +6 -0
  182. package/src/people/graphql/server/shared.types.users.graphql +17 -0
  183. package/src/people/graphql/server/shared.types.vintage.graphql +6 -0
  184. package/src/people/models/consent.ts +82 -0
  185. package/src/people/models/discussants.ts +9 -0
  186. package/src/people/models/experiences.ts +38 -0
  187. package/src/people/models/fellows.ts +12 -0
  188. package/src/people/models/groups.ts +58 -0
  189. package/src/people/models/people.ts +244 -0
  190. package/src/people/models/position.ts +62 -0
  191. package/src/people/models/speakers.ts +9 -0
  192. package/src/people/models/users.ts +252 -0
  193. package/src/people/models/vintage.ts +124 -0
  194. package/src/projects/graphql/client/query.get.projects.gql +166 -0
  195. package/src/projects/graphql/client/query.list.projects.gql +33 -0
  196. package/src/projects/graphql/server/shared.types.projects.graphql +29 -0
  197. package/src/projects/models/projects.ts +249 -0
  198. package/src/publications/graphql/client/query.get.publications.gql +169 -0
  199. package/src/publications/graphql/client/query.list.publications.gql +35 -0
  200. package/src/publications/graphql/server/shared.types.publications.graphql +34 -0
  201. package/src/publications/models/article.ts +262 -0
  202. package/src/publications/models/publications.ts +306 -0
@@ -0,0 +1,166 @@
1
+ query getProject($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
2
+ getProject(appId: $appId, itemId: $itemId, lang: $lang) {
3
+ color
4
+ date
5
+ description
6
+ featured
7
+ slug {
8
+ fr
9
+ en
10
+ }
11
+ files {
12
+ file
13
+ createdAt
14
+ fileType
15
+ hash
16
+ slug
17
+ image {
18
+ alt
19
+ backgroundColor
20
+ copyright
21
+ caption
22
+ license
23
+ licenseUrl
24
+ url
25
+ }
26
+ path
27
+ size
28
+ name
29
+ thumb
30
+ updatedAt
31
+ url
32
+ }
33
+ subtitle
34
+ name
35
+ url
36
+ video {
37
+ alt
38
+ backgroundColor
39
+ caption
40
+ copyright
41
+ licenseUrl
42
+ license
43
+ url
44
+ }
45
+ affiliations {
46
+ name
47
+ ror
48
+ url
49
+ location {
50
+ alt
51
+ city
52
+ country
53
+ details
54
+ name
55
+ street
56
+ zip
57
+ geocode {
58
+ lat
59
+ lng
60
+ }
61
+ }
62
+ image {
63
+ alt
64
+ backgroundColor
65
+ caption
66
+ copyright
67
+ license
68
+ licenseUrl
69
+ url
70
+ }
71
+ }
72
+ gallery {
73
+ alt
74
+ backgroundColor
75
+ caption
76
+ copyright
77
+ license
78
+ licenseUrl
79
+ url
80
+ }
81
+ image {
82
+ alt
83
+ backgroundColor
84
+ caption
85
+ copyright
86
+ license
87
+ licenseUrl
88
+ url
89
+ }
90
+ tags {
91
+ createdAt
92
+ description
93
+ icon
94
+ name
95
+ updatedAt
96
+ }
97
+ appId
98
+ status
99
+ related {
100
+ events {
101
+ description
102
+ image {
103
+ alt
104
+ backgroundColor
105
+ caption
106
+ copyright
107
+ licenseUrl
108
+ license
109
+ url
110
+ }
111
+ name
112
+ url
113
+ slug
114
+ }
115
+ news {
116
+ description
117
+ image {
118
+ alt
119
+ backgroundColor
120
+ caption
121
+ copyright
122
+ license
123
+ licenseUrl
124
+ url
125
+ }
126
+ name
127
+ url
128
+ slug
129
+ }
130
+ people {
131
+ firstname
132
+ image {
133
+ alt
134
+ backgroundColor
135
+ caption
136
+ copyright
137
+ license
138
+ licenseUrl
139
+ url
140
+ }
141
+ lastname
142
+ slug
143
+ }
144
+ projects {
145
+ description
146
+ image {
147
+ alt
148
+ backgroundColor
149
+ caption
150
+ copyright
151
+ license
152
+ licenseUrl
153
+ url
154
+ }
155
+ name
156
+ url
157
+ slug
158
+ }
159
+ publications {
160
+ name
161
+ url
162
+ slug
163
+ }
164
+ }
165
+ }
166
+ }
@@ -0,0 +1,33 @@
1
+ query listProjects(
2
+ $appId: ID = "iea"
3
+ $lang: String = "en"
4
+ $options: ListInput = {}
5
+ ) {
6
+ listProjects(options: $options, appId: $appId, lang: $lang) {
7
+ total
8
+ items {
9
+ date
10
+ featured
11
+ image {
12
+ alt
13
+ backgroundColor
14
+ caption
15
+ license
16
+ copyright
17
+ licenseUrl
18
+ url
19
+ }
20
+ name
21
+ summary
22
+ url
23
+ tags {
24
+ createdAt
25
+ description
26
+ icon
27
+ name
28
+ updatedAt
29
+ }
30
+ slug
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,29 @@
1
+ type Project {
2
+ appId: String
3
+ name: String!
4
+ subtitle: String
5
+ summary: String
6
+ description: String
7
+ url: AWSURL
8
+ affiliations: [Affiliation]
9
+ related: Related
10
+ gallery: [Image]
11
+ image: Image
12
+ video: [Video]
13
+ tags: [Tag]
14
+ files: [File]
15
+ color: String
16
+ date: AWSDateTime
17
+ featured: AWSDateTime
18
+ status: projectStatus
19
+ slug: AWSJSON
20
+ }
21
+
22
+ type ProjectFilters {
23
+ tags: [String!]
24
+ }
25
+
26
+ type ProjectsList {
27
+ total: Int!
28
+ items: [Project]
29
+ }
@@ -0,0 +1,249 @@
1
+ import { Image } from "../../files/models/image"
2
+ import { Affiliation } from "../../affiliation/models/affiliation"
3
+ import { Files } from "../../files/models/files"
4
+ import { Video } from "../../files/models/video"
5
+ import Model from "../../model"
6
+ import { Related } from "../../misc/models/related"
7
+ import { Tag } from "../../misc/models/tags"
8
+ import { formType } from "../../form"
9
+
10
+ export interface Projects {
11
+ name: string
12
+ subtitle?: string
13
+ description?: string
14
+ summary?: string
15
+ url?: URL
16
+ affiliations?: Affiliation[]
17
+ related?: Related[]
18
+ gallery?: Image[]
19
+ image?: Image
20
+ video?: Video
21
+ tags?: Tag[]
22
+ files?: Files[]
23
+ color?: string
24
+ date?: Date
25
+ featured?: Date
26
+ status: projectStatus
27
+ }
28
+
29
+ export enum projectStatus {
30
+ Planned = "PLANNED",
31
+ InProgress = "IN_PROGRESS",
32
+ Finished = "FINISHED",
33
+ Canceled = "CANCELED",
34
+ }
35
+ const defaultConfig: Model = {
36
+ list: {
37
+ create: true, // allow to create new items
38
+ filters: {
39
+ status: {
40
+ type: "Select",
41
+ items: projectStatus,
42
+ },
43
+ tags: {
44
+ type: "AutoComplete",
45
+ items: [],
46
+ multiple: true,
47
+ },
48
+ },
49
+ sort: {
50
+ // sort options
51
+ nameasc: {
52
+ // by name from a to z
53
+ icon: "sort-alphabetical-ascending",
54
+ text: "by-name-from-a-to-z",
55
+ value: ["title", 1],
56
+ },
57
+ namedesc: {
58
+ // by name from z to a
59
+ icon: "sort-alphabetical-descending",
60
+ text: "by-name-from-z-to-a",
61
+ value: ["title", -1],
62
+ },
63
+ dateasc: {
64
+ // by date from most recent to oldest
65
+ icon: "sort-calendar-descending",
66
+ text: "by-date-most-recent-first",
67
+ value: ["date", -1],
68
+ default: true,
69
+ },
70
+ datedesc: {
71
+ // by date from oldest to most recent
72
+ icon: "sort-calendar-ascending",
73
+ text: "by-date-oldest-first",
74
+ value: ["date", 1],
75
+ },
76
+ },
77
+ views: {
78
+ rows: {
79
+ name: "rows",
80
+ icon: "view-list",
81
+ perPage: {
82
+ options: [9, 12, 16],
83
+ default: 9,
84
+ },
85
+ },
86
+ dense: {
87
+ default: true,
88
+ name: "dense",
89
+ icon: "land-rows-horizontal",
90
+ perPage: {
91
+ options: [20, 40, 60, 80, 100],
92
+ default: 20,
93
+ },
94
+ } /*
95
+ expanded: {
96
+ name: "expanded",
97
+ icon: "arrow-expand-vertical",
98
+ }, */,
99
+ },
100
+ },
101
+ form: {
102
+ name: {
103
+ label: "name",
104
+ component: "TextField",
105
+ type: formType.Primitive,
106
+ i18n: true,
107
+ rules: {
108
+ required: true,
109
+ min: 2,
110
+ max: 50,
111
+ },
112
+ meta: "title", // item type on schema.org
113
+ },
114
+ subtitle: {
115
+ label: "subtitle",
116
+ component: "TextArea",
117
+ type: formType.Primitive,
118
+ i18n: true,
119
+ rules: {
120
+ required: true,
121
+ min: 5,
122
+ max: 200,
123
+ },
124
+ meta: "subtitle", // item type on schema.org
125
+ },
126
+ description: {
127
+ label: "description",
128
+ component: "TextArea",
129
+ type: formType.Primitive,
130
+ i18n: true,
131
+ rules: {
132
+ required: true,
133
+ min: 5,
134
+ max: 2000,
135
+ },
136
+ meta: "description", // item type on schema.org
137
+ },
138
+ summary: {
139
+ label: "summary",
140
+ component: "TextArea",
141
+ type: formType.Primitive,
142
+ i18n: true,
143
+ rules: {
144
+ min: 5,
145
+ max: 2000,
146
+ },
147
+ meta: "summary", // item type on schema.org
148
+ },
149
+ url: {
150
+ label: "url",
151
+ component: "TextField",
152
+ type: formType.Primitive,
153
+ rules: {
154
+ url: true,
155
+ },
156
+ meta: "url", // item type on schema.org
157
+ },
158
+ status: {
159
+ label: "status",
160
+ component: "Select",
161
+ type: formType.Primitive,
162
+ rules: {
163
+ required: true,
164
+ },
165
+ items: projectStatus,
166
+ meta: "status",
167
+ },
168
+ affiliations: {
169
+ label: "affiliations",
170
+ component: "DocumentPicker",
171
+ type: formType.Document,
172
+ meta: "affiliations",
173
+ },
174
+ related: {
175
+ label: "related",
176
+ component: "ObjectContainerPanel",
177
+ type: formType.Template,
178
+ meta: "related",
179
+ },
180
+ image: {
181
+ label: "image",
182
+ component: "ImagePicker",
183
+ type: formType.Document,
184
+ rules: {
185
+ required: true,
186
+ },
187
+ meta: "image",
188
+ },
189
+ gallery: {
190
+ label: "gallery",
191
+ component: "ImagePicker",
192
+ type: formType.Document,
193
+ multiple: true,
194
+ meta: "gallery",
195
+ },
196
+ video: {
197
+ label: "video",
198
+ component: "ObjectContainerPanel",
199
+ type: formType.Template,
200
+ meta: "video",
201
+ },
202
+ tags: {
203
+ label: "tags",
204
+ component: "TagPicker",
205
+ type: formType.Document,
206
+ rules: {
207
+ required: true,
208
+ },
209
+ meta: "tags",
210
+ },
211
+ files: {
212
+ label: "files",
213
+ component: "FilePicker",
214
+ type: formType.Document,
215
+ meta: "files",
216
+ },
217
+ color: {
218
+ label: "color",
219
+ component: "ColorPicker",
220
+ type: formType.Primitive,
221
+ rules: {
222
+ required: true,
223
+ color: true,
224
+ },
225
+ meta: "color",
226
+ },
227
+ date: {
228
+ label: "date",
229
+ component: "DatePicker",
230
+ type: formType.Primitive,
231
+ rules: {
232
+ required: true,
233
+ date: true,
234
+ },
235
+ meta: "date",
236
+ },
237
+ featured: {
238
+ label: "featured",
239
+ component: "DatePicker",
240
+ type: formType.Primitive,
241
+ rules: {
242
+ required: true,
243
+ date: true,
244
+ },
245
+ meta: "featured",
246
+ },
247
+ },
248
+ }
249
+ export default defaultConfig
@@ -0,0 +1,169 @@
1
+ query getPublication(
2
+ $appId: ID = "iea"
3
+ $itemId: ID = ""
4
+ $lang: String = "en"
5
+ ) {
6
+ getPublication(appId: $appId, itemId: $itemId, lang: $lang) {
7
+ affiliations {
8
+ image {
9
+ alt
10
+ backgroundColor
11
+ caption
12
+ copyright
13
+ license
14
+ licenseUrl
15
+ url
16
+ }
17
+ location {
18
+ alt
19
+ city
20
+ country
21
+ details
22
+ geocode {
23
+ lat
24
+ lng
25
+ }
26
+ name
27
+ street
28
+ zip
29
+ }
30
+ name
31
+ ror
32
+ url
33
+ }
34
+ color
35
+ date
36
+ description
37
+ files {
38
+ createdAt
39
+ file
40
+ fileType
41
+ hash
42
+ slug
43
+ image {
44
+ alt
45
+ backgroundColor
46
+ caption
47
+ copyright
48
+ license
49
+ licenseUrl
50
+ url
51
+ }
52
+ name
53
+ path
54
+ size
55
+ thumb
56
+ updatedAt
57
+ url
58
+ }
59
+ gallery {
60
+ backgroundColor
61
+ alt
62
+ caption
63
+ copyright
64
+ license
65
+ licenseUrl
66
+ url
67
+ }
68
+ image {
69
+ alt
70
+ backgroundColor
71
+ caption
72
+ copyright
73
+ license
74
+ licenseUrl
75
+ url
76
+ }
77
+ subtitle
78
+ tags {
79
+ createdAt
80
+ description
81
+ icon
82
+ name
83
+ updatedAt
84
+ }
85
+ name
86
+ url
87
+ video {
88
+ alt
89
+ backgroundColor
90
+ caption
91
+ copyright
92
+ license
93
+ licenseUrl
94
+ url
95
+ }
96
+ appId
97
+ type
98
+ related {
99
+ events {
100
+ slug
101
+ description
102
+ image {
103
+ alt
104
+ backgroundColor
105
+ caption
106
+ copyright
107
+ license
108
+ licenseUrl
109
+ url
110
+ }
111
+ name
112
+ url
113
+ }
114
+ news {
115
+ description
116
+ slug
117
+ image {
118
+ alt
119
+ backgroundColor
120
+ caption
121
+ copyright
122
+ license
123
+ licenseUrl
124
+ url
125
+ }
126
+ name
127
+ url
128
+ }
129
+ people {
130
+ firstname
131
+ slug
132
+ image {
133
+ alt
134
+ backgroundColor
135
+ caption
136
+ copyright
137
+ license
138
+ licenseUrl
139
+ url
140
+ }
141
+ lastname
142
+ }
143
+ projects {
144
+ description
145
+ slug
146
+ image {
147
+ alt
148
+ backgroundColor
149
+ caption
150
+ copyright
151
+ license
152
+ licenseUrl
153
+ url
154
+ }
155
+ name
156
+ url
157
+ }
158
+ publications {
159
+ slug
160
+ name
161
+ url
162
+ }
163
+ }
164
+ slug {
165
+ fr
166
+ en
167
+ }
168
+ }
169
+ }
@@ -0,0 +1,35 @@
1
+ query listPublications(
2
+ $appId: ID = "iea"
3
+ $lang: String = "en"
4
+ $options: ListInput = {}
5
+ ) {
6
+ listPublications(options: $options, appId: $appId, lang: $lang) {
7
+ items {
8
+ date
9
+ eventCategory
10
+ type
11
+ image {
12
+ alt
13
+ backgroundColor
14
+ caption
15
+ copyright
16
+ license
17
+ url
18
+ licenseUrl
19
+ }
20
+ summary
21
+ description
22
+ name
23
+ url
24
+ tags {
25
+ createdAt
26
+ description
27
+ name
28
+ icon
29
+ updatedAt
30
+ }
31
+ slug
32
+ }
33
+ total
34
+ }
35
+ }
@@ -0,0 +1,34 @@
1
+ type Publication {
2
+ appId: String
3
+ name: String!
4
+ subtitle: String
5
+ description: String
6
+ summary: String
7
+ type: publicationType
8
+ url: AWSURL
9
+ affiliations: [Affiliation]
10
+ related: Related
11
+ gallery: [Image]
12
+ image: Image
13
+ video: Video
14
+ tags: [Tag]
15
+ files: [File]
16
+ eventCategory: eventCategories
17
+ disciplines: [Disciplines]
18
+ color: String
19
+ date: AWSDateTime
20
+ slug: AWSJSON
21
+ }
22
+
23
+ type PublicationFilters {
24
+ affiliations: [String!]
25
+ tags: [String!]
26
+ disciplines: [String!]
27
+ type: [publicationType!]
28
+ eventCategory: [eventCategories!]
29
+ }
30
+
31
+ type PublicationsList {
32
+ total: Int!
33
+ items: [Publication]
34
+ }