diff --git a/packages/nocodb/src/lib/services/index.ts b/packages/nocodb/src/lib/services/index.ts index 270d9d6e22..316e11fd15 100644 --- a/packages/nocodb/src/lib/services/index.ts +++ b/packages/nocodb/src/lib/services/index.ts @@ -9,15 +9,15 @@ export * as viewService from './view.svs'; export * as hookService from './hook.svs'; export * as pluginService from './plugin.svs'; export * as utilService from './util.svs'; -export * as formViewService from './formView.svs'; -export * as formViewColumnService from './formViewColumn.svs'; -export * as gridViewService from './gridView.svs'; -export * as galleryViewService from './galleryView.svs'; -export * as kanbanViewService from './kanbanView.svs'; -export * as gridViewColumnService from './gridViewColumn.svs'; +export * as formViewService from './views/formView.svs'; +export * as formViewColumnService from './views/formViewColumn.svs'; +export * as gridViewService from './views/gridView.svs'; +export * as galleryViewService from './views/galleryView.svs'; +export * as kanbanViewService from './views/kanbanView.svs'; +export * as gridViewColumnService from './views/gridViewColumn.svs'; export * as viewColumnService from './viewColumn.svs'; export * as metaDiffService from './metaDiff.svs'; -export * as mapViewService from './mapView.svs'; +export * as mapViewService from './views/mapView.svs'; export * as modelVisibilityService from './modelVisibility.svs'; export * as sharedBaseService from './sharedBase.svs'; export * as orgUserService from './orgUser.svs'; diff --git a/packages/nocodb/src/lib/services/formView.svs.ts b/packages/nocodb/src/lib/services/views/formView.svs.ts similarity index 89% rename from packages/nocodb/src/lib/services/formView.svs.ts rename to packages/nocodb/src/lib/services/views/formView.svs.ts index 8fe43f82d7..f7a8c9047e 100644 --- a/packages/nocodb/src/lib/services/formView.svs.ts +++ b/packages/nocodb/src/lib/services/views/formView.svs.ts @@ -1,7 +1,7 @@ import { T } from 'nc-help'; import { FormReqType, ViewTypes } from 'nocodb-sdk'; -import { validatePayload } from '../meta/api/helpers'; -import { FormView, View } from '../models'; +import { validatePayload } from '../../meta/api/helpers'; +import { FormView, View } from '../../models'; export async function formViewGet(param: { formViewId: string }) { const formViewData = await FormView.getWithInfo(param.formViewId); diff --git a/packages/nocodb/src/lib/services/formViewColumn.svs.ts b/packages/nocodb/src/lib/services/views/formViewColumn.svs.ts similarity index 80% rename from packages/nocodb/src/lib/services/formViewColumn.svs.ts rename to packages/nocodb/src/lib/services/views/formViewColumn.svs.ts index ecceec1f81..74ede17018 100644 --- a/packages/nocodb/src/lib/services/formViewColumn.svs.ts +++ b/packages/nocodb/src/lib/services/views/formViewColumn.svs.ts @@ -1,5 +1,5 @@ -import { validatePayload } from '../meta/api/helpers'; -import { FormViewColumn } from '../models'; +import { validatePayload } from '../../meta/api/helpers'; +import { FormViewColumn } from '../../models'; import { T } from 'nc-help'; export async function columnUpdate(param: { formViewColumnId: string; diff --git a/packages/nocodb/src/lib/services/galleryView.svs.ts b/packages/nocodb/src/lib/services/views/galleryView.svs.ts similarity index 89% rename from packages/nocodb/src/lib/services/galleryView.svs.ts rename to packages/nocodb/src/lib/services/views/galleryView.svs.ts index 8c564fa74d..648c8cba76 100644 --- a/packages/nocodb/src/lib/services/galleryView.svs.ts +++ b/packages/nocodb/src/lib/services/views/galleryView.svs.ts @@ -1,7 +1,7 @@ import { GalleryReqType, ViewTypes } from 'nocodb-sdk'; import { T } from 'nc-help'; -import { validatePayload } from '../meta/api/helpers'; -import { GalleryView, View } from '../models'; +import { validatePayload } from '../../meta/api/helpers'; +import { GalleryView, View } from '../../models'; export async function galleryViewGet(param: { galleryViewId: string }) { return await GalleryView.get(param.galleryViewId); diff --git a/packages/nocodb/src/lib/services/gridView.svs.ts b/packages/nocodb/src/lib/services/views/gridView.svs.ts similarity index 84% rename from packages/nocodb/src/lib/services/gridView.svs.ts rename to packages/nocodb/src/lib/services/views/gridView.svs.ts index 92d01ced57..8bc07d85ab 100644 --- a/packages/nocodb/src/lib/services/gridView.svs.ts +++ b/packages/nocodb/src/lib/services/views/gridView.svs.ts @@ -1,8 +1,8 @@ import { T } from 'nc-help'; import { GridReqType, ViewTypes } from 'nocodb-sdk'; -import { validatePayload } from '../meta/api/helpers'; -import { View } from '../models'; -import { GridView } from '../models'; +import { validatePayload } from '../../meta/api/helpers'; +import { View } from '../../models'; +import { GridView } from '../../models'; export async function gridViewCreate(param: { tableId: string; diff --git a/packages/nocodb/src/lib/services/gridViewColumn.svs.ts b/packages/nocodb/src/lib/services/views/gridViewColumn.svs.ts similarity index 81% rename from packages/nocodb/src/lib/services/gridViewColumn.svs.ts rename to packages/nocodb/src/lib/services/views/gridViewColumn.svs.ts index 70d5d3df76..fbbf87ea75 100644 --- a/packages/nocodb/src/lib/services/gridViewColumn.svs.ts +++ b/packages/nocodb/src/lib/services/views/gridViewColumn.svs.ts @@ -1,6 +1,6 @@ import { GridColumnReqType } from 'nocodb-sdk'; -import { validatePayload } from '../meta/api/helpers'; -import GridViewColumn from '../models/GridViewColumn'; +import { validatePayload } from '../../meta/api/helpers'; +import GridViewColumn from '../../models/GridViewColumn'; import { T } from 'nc-help'; export async function columnList(param: { gridViewId: string }) { diff --git a/packages/nocodb/src/lib/services/kanbanView.svs.ts b/packages/nocodb/src/lib/services/views/kanbanView.svs.ts similarity index 89% rename from packages/nocodb/src/lib/services/kanbanView.svs.ts rename to packages/nocodb/src/lib/services/views/kanbanView.svs.ts index e6561ae323..a4a4b88634 100644 --- a/packages/nocodb/src/lib/services/kanbanView.svs.ts +++ b/packages/nocodb/src/lib/services/views/kanbanView.svs.ts @@ -1,6 +1,6 @@ import { KanbanReqType, ViewTypes } from 'nocodb-sdk'; -import { validatePayload } from '../meta/api/helpers'; -import { KanbanView, View } from '../models'; +import { validatePayload } from '../../meta/api/helpers'; +import { KanbanView, View } from '../../models'; import { T } from 'nc-help'; export async function kanbanViewGet(param: { kanbanViewId: string }) { diff --git a/packages/nocodb/src/lib/services/mapView.svs.ts b/packages/nocodb/src/lib/services/views/mapView.svs.ts similarity index 90% rename from packages/nocodb/src/lib/services/mapView.svs.ts rename to packages/nocodb/src/lib/services/views/mapView.svs.ts index 199baa9d13..17e8abcdb1 100644 --- a/packages/nocodb/src/lib/services/mapView.svs.ts +++ b/packages/nocodb/src/lib/services/views/mapView.svs.ts @@ -1,7 +1,7 @@ import { MapType, ViewTypes } from 'nocodb-sdk'; -import View from '../models/View'; +import View from '../../models/View'; import { T } from 'nc-help'; -import MapView from '../models/MapView'; +import MapView from '../../models/MapView'; export async function mapViewGet(param: { mapViewId: string }) { return await MapView.get(param.mapViewId);