@@ -201,10 +201,38 @@ pub struct PageSectionDebugData {
201
201
pub generate_section_titles_messages : Vec < ChatCompletionMessage > ,
202
202
}
203
203
204
+ #[ derive( GraphQLObject , Clone ) ]
205
+ #[ graphql( context = Context ) ]
206
+ pub struct PageSectionCreated {
207
+ pub id : ID ,
208
+ pub page_id : ID ,
209
+ pub title : String ,
210
+ pub position : i32 ,
211
+
212
+ pub created_at : DateTime < Utc > ,
213
+ pub updated_at : DateTime < Utc > ,
214
+
215
+ pub debug_data : Option < PageSectionDebugData > ,
216
+ }
217
+
218
+ impl From < PageSection > for PageSectionCreated {
219
+ fn from ( value : PageSection ) -> Self {
220
+ Self {
221
+ id : value. id ,
222
+ page_id : value. page_id ,
223
+ title : value. title ,
224
+ position : value. position ,
225
+ created_at : value. created_at ,
226
+ updated_at : value. updated_at ,
227
+ debug_data : None ,
228
+ }
229
+ }
230
+ }
231
+
204
232
#[ derive( GraphQLObject , Clone ) ]
205
233
#[ graphql( context = Context ) ]
206
234
pub struct PageSectionsCreated {
207
- pub sections : Vec < PageSection > ,
235
+ pub sections : Vec < PageSectionCreated > ,
208
236
209
237
pub debug_data : Option < PageSectionDebugData > ,
210
238
}
@@ -365,7 +393,7 @@ pub enum PageRunItem {
365
393
#[ derive( GraphQLUnion ) ]
366
394
#[ graphql( context = Context ) ]
367
395
pub enum SectionRunItem {
368
- PageSectionCreated ( PageSection ) ,
396
+ PageSectionCreated ( PageSectionCreated ) ,
369
397
370
398
PageSectionAttachmentCodeFileList ( PageSectionAttachmentCodeFileList ) ,
371
399
PageSectionAttachmentCode ( PageSectionAttachmentCode ) ,
0 commit comments