Skip to content

Commit f0a1408

Browse files
committed
feat: 스키마에 route_code 추가
1 parent 75d322d commit f0a1408

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packages/common/src/schemas/index.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)