File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
packages/common/src/schemas Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -16,35 +16,37 @@ namespace BackendAPISchemas {
1616
1717 export type FlattenedSiteMapSchema = {
1818 id : string ;
19+ route_code : string ;
1920 name : string ;
2021 order : number ;
2122 parent_sitemap : string | null ;
2223 page : string ;
23- }
24+ } ;
2425
2526 export type NestedSiteMapSchema = {
2627 id : string ;
28+ route_code : string ;
2729 name : string ;
2830 order : number ;
2931 page : string ;
30- children : NestedSiteMapSchema [ ] ;
31- }
32+ children : { [ key : string ] : NestedSiteMapSchema } ;
33+ } ;
3234
3335 export type SectionSchema = {
3436 id : string ;
3537 css : string ;
3638
3739 order : number ;
3840 body : string ;
39- }
41+ } ;
4042
4143 export type PageSchema = {
4244 id : string ;
4345 css : string ;
4446 title : string ;
4547 subtitle : string ;
4648 sections : SectionSchema [ ] ;
47- }
49+ } ;
4850
4951 export const isObjectErrorResponseSchema = (
5052 obj ?: unknown
You can’t perform that action at this time.
0 commit comments