@paris-ias/trees 2.0.8 → 2.0.10
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/graphql/client/actions/query.get.actions.gql +1 -4
- package/dist/graphql/client/affiliations/query.get.affiliations.gql +1 -4
- package/dist/graphql/client/apps/query.get.apps.gql +1 -4
- package/dist/graphql/client/events/query.get.events.gql +1 -9
- package/dist/graphql/client/fellowships/query.get.fellowships.gql +1 -6
- package/dist/graphql/client/misc/query.get.disciplines.gql +1 -4
- package/dist/graphql/client/misc/query.get.tags.gql +1 -4
- package/dist/graphql/client/misc/query.search.all.gql +0 -5
- package/dist/graphql/client/news/query.get.news.gql +1 -8
- package/dist/graphql/client/people/query.get.people.gql +0 -4
- package/dist/graphql/client/people/query.get.users.gql +1 -4
- package/dist/graphql/client/projects/query.get.projects.gql +1 -4
- package/dist/graphql/client/publications/query.get.publications.gql +1 -4
- package/package.json +1 -1
- package/readme.md +9 -9
|
@@ -20,15 +20,11 @@ query getEvent($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
|
|
|
20
20
|
name
|
|
21
21
|
place {
|
|
22
22
|
address
|
|
23
|
-
id
|
|
24
23
|
name
|
|
25
24
|
url
|
|
26
25
|
}
|
|
27
26
|
start
|
|
28
|
-
slug
|
|
29
|
-
fr
|
|
30
|
-
en
|
|
31
|
-
}
|
|
27
|
+
slug
|
|
32
28
|
slots {
|
|
33
29
|
email
|
|
34
30
|
firstname
|
|
@@ -63,7 +59,6 @@ query getEvent($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
|
|
|
63
59
|
}
|
|
64
60
|
news {
|
|
65
61
|
description
|
|
66
|
-
id
|
|
67
62
|
slug
|
|
68
63
|
image {
|
|
69
64
|
alt
|
|
@@ -79,7 +74,6 @@ query getEvent($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
|
|
|
79
74
|
}
|
|
80
75
|
people {
|
|
81
76
|
firstname
|
|
82
|
-
id
|
|
83
77
|
slug
|
|
84
78
|
image {
|
|
85
79
|
alt
|
|
@@ -94,7 +88,6 @@ query getEvent($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
|
|
|
94
88
|
}
|
|
95
89
|
projects {
|
|
96
90
|
description
|
|
97
|
-
id
|
|
98
91
|
slug
|
|
99
92
|
image {
|
|
100
93
|
alt
|
|
@@ -109,7 +102,6 @@ query getEvent($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
|
|
|
109
102
|
url
|
|
110
103
|
}
|
|
111
104
|
publications {
|
|
112
|
-
id
|
|
113
105
|
slug
|
|
114
106
|
name
|
|
115
107
|
url
|
|
@@ -9,17 +9,13 @@ query getFellowship(
|
|
|
9
9
|
fellowshipStart
|
|
10
10
|
contact
|
|
11
11
|
url
|
|
12
|
-
slug
|
|
13
|
-
fr
|
|
14
|
-
en
|
|
15
|
-
}
|
|
12
|
+
slug
|
|
16
13
|
applicationStop
|
|
17
14
|
fellowshipStop
|
|
18
15
|
publicationDate
|
|
19
16
|
summary
|
|
20
17
|
description
|
|
21
18
|
fellows {
|
|
22
|
-
id
|
|
23
19
|
firstname
|
|
24
20
|
lastname
|
|
25
21
|
image {
|
|
@@ -38,7 +34,6 @@ query getFellowship(
|
|
|
38
34
|
file
|
|
39
35
|
fileType
|
|
40
36
|
hash
|
|
41
|
-
id
|
|
42
37
|
image {
|
|
43
38
|
alt
|
|
44
39
|
caption
|
|
@@ -3,7 +3,6 @@ query search($appId: ID = "", $search: String = "", $lang: String = "en") {
|
|
|
3
3
|
people {
|
|
4
4
|
items {
|
|
5
5
|
firstname
|
|
6
|
-
id
|
|
7
6
|
image {
|
|
8
7
|
alt
|
|
9
8
|
backgroundColor
|
|
@@ -21,7 +20,6 @@ query search($appId: ID = "", $search: String = "", $lang: String = "en") {
|
|
|
21
20
|
projects {
|
|
22
21
|
items {
|
|
23
22
|
date
|
|
24
|
-
id
|
|
25
23
|
featured
|
|
26
24
|
name
|
|
27
25
|
image {
|
|
@@ -54,7 +52,6 @@ query search($appId: ID = "", $search: String = "", $lang: String = "en") {
|
|
|
54
52
|
license
|
|
55
53
|
url
|
|
56
54
|
}
|
|
57
|
-
id
|
|
58
55
|
date
|
|
59
56
|
slug
|
|
60
57
|
}
|
|
@@ -94,7 +91,6 @@ query search($appId: ID = "", $search: String = "", $lang: String = "en") {
|
|
|
94
91
|
fellowshipStart
|
|
95
92
|
fellowshipType
|
|
96
93
|
fellowshipStop
|
|
97
|
-
id
|
|
98
94
|
image {
|
|
99
95
|
alt
|
|
100
96
|
backgroundColor
|
|
@@ -115,7 +111,6 @@ query search($appId: ID = "", $search: String = "", $lang: String = "en") {
|
|
|
115
111
|
category
|
|
116
112
|
date
|
|
117
113
|
featured
|
|
118
|
-
id
|
|
119
114
|
image {
|
|
120
115
|
alt
|
|
121
116
|
backgroundColor
|
|
@@ -5,10 +5,7 @@ query getNews($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
|
|
|
5
5
|
date
|
|
6
6
|
description
|
|
7
7
|
featured
|
|
8
|
-
slug
|
|
9
|
-
fr
|
|
10
|
-
en
|
|
11
|
-
}
|
|
8
|
+
slug
|
|
12
9
|
files {
|
|
13
10
|
createdAt
|
|
14
11
|
file
|
|
@@ -76,7 +73,6 @@ query getNews($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
|
|
|
76
73
|
}
|
|
77
74
|
news {
|
|
78
75
|
description
|
|
79
|
-
id
|
|
80
76
|
image {
|
|
81
77
|
alt
|
|
82
78
|
backgroundColor
|
|
@@ -91,7 +87,6 @@ query getNews($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
|
|
|
91
87
|
}
|
|
92
88
|
people {
|
|
93
89
|
firstname
|
|
94
|
-
id
|
|
95
90
|
image {
|
|
96
91
|
alt
|
|
97
92
|
backgroundColor
|
|
@@ -105,7 +100,6 @@ query getNews($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
|
|
|
105
100
|
}
|
|
106
101
|
projects {
|
|
107
102
|
description
|
|
108
|
-
id
|
|
109
103
|
name
|
|
110
104
|
image {
|
|
111
105
|
alt
|
|
@@ -119,7 +113,6 @@ query getNews($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
|
|
|
119
113
|
url
|
|
120
114
|
}
|
|
121
115
|
publications {
|
|
122
|
-
id
|
|
123
116
|
name
|
|
124
117
|
url
|
|
125
118
|
}
|
|
@@ -118,7 +118,6 @@ query getPeople($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
|
|
|
118
118
|
news {
|
|
119
119
|
description
|
|
120
120
|
slug
|
|
121
|
-
id
|
|
122
121
|
image {
|
|
123
122
|
alt
|
|
124
123
|
backgroundColor
|
|
@@ -134,7 +133,6 @@ query getPeople($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
|
|
|
134
133
|
people {
|
|
135
134
|
firstname
|
|
136
135
|
slug
|
|
137
|
-
id
|
|
138
136
|
image {
|
|
139
137
|
alt
|
|
140
138
|
backgroundColor
|
|
@@ -149,7 +147,6 @@ query getPeople($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
|
|
|
149
147
|
projects {
|
|
150
148
|
description
|
|
151
149
|
slug
|
|
152
|
-
id
|
|
153
150
|
image {
|
|
154
151
|
alt
|
|
155
152
|
backgroundColor
|
|
@@ -163,7 +160,6 @@ query getPeople($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
|
|
|
163
160
|
url
|
|
164
161
|
}
|
|
165
162
|
publications {
|
|
166
|
-
id
|
|
167
163
|
slug
|
|
168
164
|
name
|
|
169
165
|
url
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -421,20 +421,20 @@ All generated tree exports are **deeply frozen** using `Object.freeze()`, ensuri
|
|
|
421
421
|
import { formPeople } from "@paris-ias/trees"
|
|
422
422
|
|
|
423
423
|
// ❌ All mutations are prevented
|
|
424
|
-
formPeople._defaults.firstname = "hacked"
|
|
425
|
-
formPeople.schema.firstname.label = "modified"
|
|
426
|
-
formPeople.newProperty = "value"
|
|
427
|
-
delete formPeople._defaults
|
|
424
|
+
formPeople._defaults.firstname = "hacked" // Fails silently (non-strict)
|
|
425
|
+
formPeople.schema.firstname.label = "modified" // TypeError in strict mode
|
|
426
|
+
formPeople.newProperty = "value" // Cannot extend frozen objects
|
|
427
|
+
delete formPeople._defaults // Cannot delete properties
|
|
428
428
|
|
|
429
429
|
// ✅ Safe to share across your application
|
|
430
430
|
const config1 = formPeople
|
|
431
431
|
const config2 = formPeople // Same reference, guaranteed unchanged
|
|
432
432
|
|
|
433
433
|
// ✅ Objects are frozen at all levels
|
|
434
|
-
Object.isFrozen(formPeople)
|
|
435
|
-
Object.isFrozen(formPeople._defaults)
|
|
436
|
-
Object.isFrozen(formPeople.schema)
|
|
437
|
-
Object.isFrozen(formPeople.schema.firstname)
|
|
434
|
+
Object.isFrozen(formPeople) // true
|
|
435
|
+
Object.isFrozen(formPeople._defaults) // true
|
|
436
|
+
Object.isFrozen(formPeople.schema) // true
|
|
437
|
+
Object.isFrozen(formPeople.schema.firstname) // true
|
|
438
438
|
```
|
|
439
439
|
|
|
440
440
|
### Full TypeScript Support
|
|
@@ -446,7 +446,7 @@ Complete type definitions are automatically generated for all exports:
|
|
|
446
446
|
import { formPeople, listPeople, type Form, type List } from "@paris-ias/trees"
|
|
447
447
|
|
|
448
448
|
// IDE autocomplete and type checking work perfectly
|
|
449
|
-
const firstname = formPeople.schema.firstname
|
|
449
|
+
const firstname = formPeople.schema.firstname // Fully typed
|
|
450
450
|
const defaultName = formPeople._defaults.firstname // Type: string | { en: string, fr: string }
|
|
451
451
|
|
|
452
452
|
// Type-safe development
|