@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,195 @@
1
+ import { Image } from "../../files/models/image"
2
+ import Model from "../../model"
3
+ import { Tag } from "../../misc/models/tags"
4
+ import { formType } from "../../form"
5
+ export interface Apps {
6
+ appId: string
7
+ name: string
8
+ image?: Image
9
+ description?: string
10
+ summary?: string
11
+ url?: URL
12
+ tags?: Tag[]
13
+ subtitle?: string
14
+ color?: string
15
+ date?: Date
16
+ state?: appState
17
+ }
18
+ export enum appState {
19
+ Active = "ACTIVE",
20
+ Suspended = "SUSPENDED",
21
+ Inactive = "INACTIVE",
22
+ }
23
+ const defaultConfig: Model = {
24
+ list: {
25
+ create: true, // allow to create new items
26
+ filters: {
27
+ year: {
28
+ type: "Select",
29
+ items: "",
30
+ },
31
+ },
32
+ sort: {
33
+ // sort options
34
+ nameasc: {
35
+ // by name from a to z
36
+ icon: "sort-alphabetical-ascending",
37
+ text: "by-name-from-a-to-z",
38
+ value: ["name", 1],
39
+ },
40
+ namedesc: {
41
+ // by name from z to a
42
+ icon: "sort-alphabetical-descending",
43
+ text: "by-name-from-z-to-a",
44
+ value: ["name", -1],
45
+ },
46
+ dateasc: {
47
+ // by date from most recent to oldest
48
+ icon: "sort-calendar-descending",
49
+ text: "by-date-most-recent-first",
50
+ value: ["date", -1],
51
+ default: true,
52
+ },
53
+ datedesc: {
54
+ // by date from oldest to most recent
55
+ icon: "sort-calendar-ascending",
56
+ text: "by-date-oldest-first",
57
+ value: ["date", 1],
58
+ },
59
+ },
60
+ views: {
61
+ rows: {
62
+ name: "rows",
63
+ icon: "view-list",
64
+ perPage: {
65
+ options: [9, 12, 16],
66
+ default: 9,
67
+ },
68
+ },
69
+ dense: {
70
+ default: true,
71
+ name: "dense",
72
+ icon: "land-rows-horizontal",
73
+ perPage: {
74
+ options: [20, 40, 60, 80, 100],
75
+ default: 20,
76
+ },
77
+ },
78
+ tiles: {
79
+ name: "tiles",
80
+ icon: "view-quilt",
81
+ },
82
+ grid: {
83
+ name: "grid",
84
+ icon: "view-day",
85
+ },
86
+ },
87
+ },
88
+ form: {
89
+ name: {
90
+ label: "name",
91
+ type: formType.Primitive,
92
+ component: "TextField",
93
+ description:
94
+ "The name of the app as displayed on google or the header of the app",
95
+ rules: {
96
+ required: true,
97
+ min: 2,
98
+ max: 4,
99
+ },
100
+ meta: "name", // item type on schema.org
101
+ },
102
+ image: {
103
+ label: "image",
104
+ component: "ImagePicker",
105
+ type: formType.Document,
106
+ description: "The logo of the app",
107
+ rules: {
108
+ required: true,
109
+ },
110
+ default: { url: "", licence: "" }, // default value
111
+ },
112
+ description: {
113
+ label: "description",
114
+ component: "TextArea",
115
+ type: formType.Primitive,
116
+ i18n: true,
117
+ rules: {
118
+ required: true,
119
+ min: 5,
120
+ max: 200,
121
+ },
122
+ meta: "description",
123
+ },
124
+ summary: {
125
+ label: "summary",
126
+ component: "TextArea",
127
+ type: formType.Primitive,
128
+
129
+ i18n: true,
130
+ rules: {
131
+ required: true,
132
+ min: 5,
133
+ max: 200,
134
+ },
135
+ meta: "summary",
136
+ },
137
+ subtitle: {
138
+ label: "subtitle",
139
+ component: "TextArea",
140
+ type: formType.Primitive,
141
+
142
+ i18n: true,
143
+ rules: {
144
+ required: true,
145
+ min: 5,
146
+ max: 200,
147
+ },
148
+ meta: "subtitle",
149
+ },
150
+ url: {
151
+ label: "url",
152
+ component: "TextField",
153
+ type: formType.Primitive,
154
+
155
+ rules: {
156
+ required: true,
157
+ url: true,
158
+ },
159
+ meta: "url",
160
+ },
161
+ tags: {
162
+ label: "tags",
163
+ component: "TagPicker",
164
+ type: formType.Document,
165
+ rules: {
166
+ required: true,
167
+ },
168
+ meta: "tags",
169
+ },
170
+ state: {
171
+ label: "appState",
172
+ component: "Select",
173
+ type: formType.Primitive,
174
+
175
+ rules: {
176
+ required: true,
177
+ },
178
+ items: appState,
179
+ meta: "appState",
180
+ },
181
+ date: {
182
+ label: "date",
183
+ component: "DatePicker",
184
+ type: formType.Primitive,
185
+
186
+ rules: {
187
+ required: true,
188
+ date: true,
189
+ },
190
+ meta: "date",
191
+ },
192
+ },
193
+ }
194
+
195
+ export default defaultConfig
@@ -0,0 +1,119 @@
1
+ query getEvent($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
2
+ getEvent(appId: $appId, itemId: $itemId, lang: $lang) {
3
+ appId
4
+ availableSlots
5
+ bookingState
6
+ category
7
+ createdBy
8
+ dateText
9
+ description
10
+ details
11
+ image {
12
+ alt
13
+ caption
14
+ backgroundColor
15
+ copyright
16
+ license
17
+ licenseUrl
18
+ url
19
+ }
20
+ name
21
+ place {
22
+ address
23
+ id
24
+ name
25
+ url
26
+ }
27
+ start
28
+ slug {
29
+ fr
30
+ en
31
+ }
32
+ slots {
33
+ email
34
+ firstname
35
+ institution
36
+ lang
37
+ lastname
38
+ }
39
+ state
40
+ stop
41
+ subtitle
42
+ summary
43
+ program
44
+ totalSlots
45
+ eventType
46
+ outside
47
+ url
48
+ related {
49
+ events {
50
+ description
51
+ slug
52
+ image {
53
+ alt
54
+ backgroundColor
55
+ caption
56
+ copyright
57
+ license
58
+ licenseUrl
59
+ url
60
+ }
61
+ name
62
+ url
63
+ }
64
+ news {
65
+ description
66
+ id
67
+ slug
68
+ image {
69
+ alt
70
+ backgroundColor
71
+ caption
72
+ copyright
73
+ license
74
+ licenseUrl
75
+ url
76
+ }
77
+ name
78
+ url
79
+ }
80
+ people {
81
+ firstname
82
+ id
83
+ slug
84
+ image {
85
+ alt
86
+ backgroundColor
87
+ caption
88
+ license
89
+ copyright
90
+ licenseUrl
91
+ url
92
+ }
93
+ lastname
94
+ }
95
+ projects {
96
+ description
97
+ id
98
+ slug
99
+ image {
100
+ alt
101
+ backgroundColor
102
+ caption
103
+ copyright
104
+ license
105
+ licenseUrl
106
+ url
107
+ }
108
+ name
109
+ url
110
+ }
111
+ publications {
112
+ id
113
+ slug
114
+ name
115
+ url
116
+ }
117
+ }
118
+ }
119
+ }
@@ -0,0 +1,40 @@
1
+ query listEvents(
2
+ $options: ListInput = {}
3
+ $appId: ID = "iea"
4
+ $lang: String = "en"
5
+ ) {
6
+ listEvents(options: $options, appId: $appId, lang: $lang) {
7
+ items {
8
+ availableSlots
9
+ bookingState
10
+ category
11
+ dateText
12
+ details
13
+ eventType
14
+ summary
15
+ subtitle
16
+ image {
17
+ alt
18
+ backgroundColor
19
+ caption
20
+ copyright
21
+ license
22
+ licenseUrl
23
+ url
24
+ }
25
+ name
26
+ outside
27
+ place {
28
+ address
29
+ id
30
+ name
31
+ url
32
+ }
33
+ state
34
+ start
35
+ stop
36
+ slug
37
+ }
38
+ total
39
+ }
40
+ }
@@ -0,0 +1,24 @@
1
+ input EventInput {
2
+ name: String!
3
+ description: String
4
+ details: String
5
+ dateText: String
6
+ date: AWSDateTime
7
+ eventType: eventType
8
+ category: eventCategories
9
+ totalSlots: Int
10
+ availableSlots: Int
11
+ slots: [SlotInput!]
12
+ delay: AWSDateTime
13
+ place: PlaceInput
14
+ start: AWSDateTime
15
+ stop: AWSDateTime
16
+ summary: String
17
+ subtitle: String
18
+ program: String
19
+ outside: Boolean
20
+ url: AWSURL
21
+ image: ImageInput
22
+ state: eventState
23
+ bookingState: bookingState
24
+ }
@@ -0,0 +1,73 @@
1
+ import { Form, formType } from "../../form"
2
+
3
+ export interface EventSlot {
4
+ email: string
5
+ firstname: string
6
+ institution?: string
7
+ lang: string
8
+ lastname: string
9
+ }
10
+ // form
11
+
12
+ export interface EventSlotForm {
13
+ form: Record<string, Form>
14
+ }
15
+
16
+ const defautConfig: EventSlotForm = {
17
+ form: {
18
+ email: {
19
+ label: "email",
20
+ component: "TextField",
21
+ type: formType.Primitive,
22
+
23
+ rules: {
24
+ required: true,
25
+ email: true,
26
+ },
27
+ meta: "email",
28
+ },
29
+ firstname: {
30
+ label: "firstname",
31
+ component: "TextField",
32
+ type: formType.Primitive,
33
+
34
+ rules: {
35
+ required: true,
36
+ min: 1,
37
+ max: 200,
38
+ },
39
+ meta: "firstname",
40
+ },
41
+ lastname: {
42
+ label: "lastname",
43
+ component: "TextField",
44
+ type: formType.Primitive,
45
+
46
+ rules: {
47
+ required: true,
48
+ min: 1,
49
+ max: 200,
50
+ },
51
+ meta: "lastname",
52
+ },
53
+ institution: {
54
+ label: "institution",
55
+ component: "TextField",
56
+ type: formType.Primitive,
57
+
58
+ meta: "institution",
59
+ },
60
+ lang: {
61
+ label: "lang",
62
+ component: "ListSelect",
63
+ type: formType.Primitive,
64
+
65
+ rules: {
66
+ required: true,
67
+ },
68
+ meta: "lang",
69
+ },
70
+ },
71
+ }
72
+
73
+ export default defautConfig