Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: type issue

Ramesh Mane5c806b5d2e6f
diff --git a/packages/nocodb-sdk/src/lib/index.ts b/packages/nocodb-sdk/src/lib/index.ts
index 457a633eda..f1b6dbc5b1 100644
--- a/packages/nocodb-sdk/src/lib/index.ts
+++ b/packages/nocodb-sdk/src/lib/index.ts
@@ -89,3 +89,4 @@ export * from '~/lib/viewUtils';
export * from '~/lib/workflow';
export * from '~/lib/uniqueConstraintHelpers';
export * from '~/lib/recordTemplate';
+export * from '~/lib/viewSection';
diff --git a/packages/nocodb-sdk/src/lib/viewSection.ts b/packages/nocodb-sdk/src/lib/viewSection.ts
new file mode 100644
index 0000000000..5163335514
--- /dev/null
+++ b/packages/nocodb-sdk/src/lib/viewSection.ts
@@ -0,0 +1,30 @@
+export interface ViewSectionType {
+ id?: string;
+ fk_workspace_id?: string;
+ base_id?: string;
+ source_id?: string;
+ fk_model_id: string;
+ title: string;
+ order?: number;
+ meta?: Record<string, any>;
+ created_by?: string;
+ updated_by?: string;
+ created_at?: string;
+ updated_at?: string;
+}
+
+export interface ViewSectionListType {
+ list: ViewSectionType[];
+}
+
+export interface ViewSectionCreateReqType {
+ title: string;
+ order?: number;
+ meta?: Record<string, any>;
+}
+
+export interface ViewSectionUpdateReqType {
+ title?: string;
+ order?: number;
+ meta?: Record<string, any>;
+}