@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.
@@ -14,9 +14,6 @@ query getAction($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
14
14
  name
15
15
  slots
16
16
  video
17
- slug {
18
- fr
19
- en
20
- }
17
+ slug
21
18
  }
22
19
  }
@@ -29,9 +29,6 @@ query getAffiliation(
29
29
  name
30
30
  ror
31
31
  url
32
- slug {
33
- fr
34
- en
35
- }
32
+ slug
36
33
  }
37
34
  }
@@ -25,9 +25,6 @@ query getApp($appId: ID = "iea", $lang: String = "en") {
25
25
  updatedAt
26
26
  }
27
27
  url
28
- slug {
29
- fr
30
- en
31
- }
28
+ slug
32
29
  }
33
30
  }
@@ -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
@@ -9,9 +9,6 @@ query getDiscipline(
9
9
  icon
10
10
  name
11
11
  updatedAt
12
- slug {
13
- fr
14
- en
15
- }
12
+ slug
16
13
  }
17
14
  }
@@ -5,9 +5,6 @@ query getTag($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
5
5
  icon
6
6
  name
7
7
  updatedAt
8
- slug {
9
- fr
10
- en
11
- }
8
+ slug
12
9
  }
13
10
  }
@@ -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
@@ -32,10 +32,7 @@ query GetUser($appId: ID = "iea", $itemId: ID = "", $lang: String = "") {
32
32
  settings {
33
33
  lang
34
34
  }
35
- slug {
36
- en
37
- fr
38
- }
35
+ slug
39
36
  status
40
37
  }
41
38
  }
@@ -4,10 +4,7 @@ query getProject($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
4
4
  date
5
5
  description
6
6
  featured
7
- slug {
8
- fr
9
- en
10
- }
7
+ slug
11
8
  files {
12
9
  file
13
10
  createdAt
@@ -161,9 +161,6 @@ query getPublication(
161
161
  url
162
162
  }
163
163
  }
164
- slug {
165
- fr
166
- en
167
- }
164
+ slug
168
165
  }
169
166
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paris-ias/trees",
3
- "version": "2.0.8",
3
+ "version": "2.0.10",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
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" // 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
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) // true
435
- Object.isFrozen(formPeople._defaults) // true
436
- Object.isFrozen(formPeople.schema) // true
437
- Object.isFrozen(formPeople.schema.firstname) // true
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 // Fully typed
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