From 3db325abd05f873ddd3de9c073cc52a409a8d333 Mon Sep 17 00:00:00 2001 From: Naveen MR Date: Sun, 5 Mar 2023 13:45:47 +0000 Subject: [PATCH] refactor : code --- .../src/lib/meta/api/helpers/populateMeta.ts | 2 +- .../{apiToken.svs.ts => apiToken.svc.ts} | 0 .../{attachment.svs.ts => attachment.svc.ts} | 0 .../services/{audit.svs.ts => audit.svc.ts} | 0 .../lib/services/{base.svs.ts => base.svc.ts} | 0 .../services/{cache.svs.ts => cache.svc.ts} | 0 .../services/{column.svs.ts => column.svc.ts} | 0 .../services/{filter.svs.ts => filter.svc.ts} | 0 .../lib/services/{hook.svs.ts => hook.svc.ts} | 0 .../{hookFilter.svs.ts => hookFilter.svc.ts} | 0 packages/nocodb/src/lib/services/index.ts | 60 +++++++++---------- .../{metaDiff.svs.ts => metaDiff.svc.ts} | 0 ...sibility.svs.ts => modelVisibility.svc.ts} | 0 .../{orgLicense.svs.ts => orgLicense.svc.ts} | 0 .../{orgToken.svs.ts => orgToken.svc.ts} | 0 .../{orgUser.svs.ts => orgUser.svc.ts} | 2 +- .../services/{plugin.svs.ts => plugin.svc.ts} | 0 .../{project.svs.ts => project.svc.ts} | 0 ...{projectUser.svs.ts => projectUser.svc.ts} | 0 .../src/lib/services/public/publicData.svs.ts | 2 +- .../{sharedBase.svs.ts => sharedBase.svc.ts} | 0 .../lib/services/{sort.svs.ts => sort.svc.ts} | 0 .../services/{table.svs.ts => table.svc.ts} | 0 .../lib/services/{util.svs.ts => util.svc.ts} | 0 .../lib/services/{view.svs.ts => view.svc.ts} | 2 +- .../{viewColumn.svs.ts => viewColumn.svc.ts} | 0 .../{formView.svs.ts => formView.svc.ts} | 0 ...iewColumn.svs.ts => formViewColumn.svc.ts} | 0 ...{galleryView.svs.ts => galleryView.svc.ts} | 0 .../{gridView.svs.ts => gridView.svc.ts} | 0 ...iewColumn.svs.ts => gridViewColumn.svc.ts} | 0 .../{kanbanView.svs.ts => kanbanView.svc.ts} | 0 .../views/{mapView.svs.ts => mapView.svc.ts} | 0 33 files changed, 34 insertions(+), 34 deletions(-) rename packages/nocodb/src/lib/services/{apiToken.svs.ts => apiToken.svc.ts} (100%) rename packages/nocodb/src/lib/services/{attachment.svs.ts => attachment.svc.ts} (100%) rename packages/nocodb/src/lib/services/{audit.svs.ts => audit.svc.ts} (100%) rename packages/nocodb/src/lib/services/{base.svs.ts => base.svc.ts} (100%) rename packages/nocodb/src/lib/services/{cache.svs.ts => cache.svc.ts} (100%) rename packages/nocodb/src/lib/services/{column.svs.ts => column.svc.ts} (100%) rename packages/nocodb/src/lib/services/{filter.svs.ts => filter.svc.ts} (100%) rename packages/nocodb/src/lib/services/{hook.svs.ts => hook.svc.ts} (100%) rename packages/nocodb/src/lib/services/{hookFilter.svs.ts => hookFilter.svc.ts} (100%) rename packages/nocodb/src/lib/services/{metaDiff.svs.ts => metaDiff.svc.ts} (100%) rename packages/nocodb/src/lib/services/{modelVisibility.svs.ts => modelVisibility.svc.ts} (100%) rename packages/nocodb/src/lib/services/{orgLicense.svs.ts => orgLicense.svc.ts} (100%) rename packages/nocodb/src/lib/services/{orgToken.svs.ts => orgToken.svc.ts} (100%) rename packages/nocodb/src/lib/services/{orgUser.svs.ts => orgUser.svc.ts} (99%) rename packages/nocodb/src/lib/services/{plugin.svs.ts => plugin.svc.ts} (100%) rename packages/nocodb/src/lib/services/{project.svs.ts => project.svc.ts} (100%) rename packages/nocodb/src/lib/services/{projectUser.svs.ts => projectUser.svc.ts} (100%) rename packages/nocodb/src/lib/services/{sharedBase.svs.ts => sharedBase.svc.ts} (100%) rename packages/nocodb/src/lib/services/{sort.svs.ts => sort.svc.ts} (100%) rename packages/nocodb/src/lib/services/{table.svs.ts => table.svc.ts} (100%) rename packages/nocodb/src/lib/services/{util.svs.ts => util.svc.ts} (100%) rename packages/nocodb/src/lib/services/{view.svs.ts => view.svc.ts} (97%) rename packages/nocodb/src/lib/services/{viewColumn.svs.ts => viewColumn.svc.ts} (100%) rename packages/nocodb/src/lib/services/views/{formView.svs.ts => formView.svc.ts} (100%) rename packages/nocodb/src/lib/services/views/{formViewColumn.svs.ts => formViewColumn.svc.ts} (100%) rename packages/nocodb/src/lib/services/views/{galleryView.svs.ts => galleryView.svc.ts} (100%) rename packages/nocodb/src/lib/services/views/{gridView.svs.ts => gridView.svc.ts} (100%) rename packages/nocodb/src/lib/services/views/{gridViewColumn.svs.ts => gridViewColumn.svc.ts} (100%) rename packages/nocodb/src/lib/services/views/{kanbanView.svs.ts => kanbanView.svc.ts} (100%) rename packages/nocodb/src/lib/services/views/{mapView.svs.ts => mapView.svc.ts} (100%) diff --git a/packages/nocodb/src/lib/meta/api/helpers/populateMeta.ts b/packages/nocodb/src/lib/meta/api/helpers/populateMeta.ts index 628e9cef85..bf12425050 100644 --- a/packages/nocodb/src/lib/meta/api/helpers/populateMeta.ts +++ b/packages/nocodb/src/lib/meta/api/helpers/populateMeta.ts @@ -11,7 +11,7 @@ import getTableNameAlias, { import LinkToAnotherRecordColumn from '../../../models/LinkToAnotherRecordColumn'; import getColumnUiType from '../../helpers/getColumnUiType'; import mapDefaultDisplayValue from '../../helpers/mapDefaultDisplayValue'; -import { extractAndGenerateManyToManyRelations } from '../../../services/metaDiff.svs'; +import { extractAndGenerateManyToManyRelations } from '../../../services/metaDiff.svc'; import { ModelTypes, UITypes, ViewTypes } from 'nocodb-sdk'; import { IGNORE_TABLES } from '../../../utils/common/BaseApiBuilder'; diff --git a/packages/nocodb/src/lib/services/apiToken.svs.ts b/packages/nocodb/src/lib/services/apiToken.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/apiToken.svs.ts rename to packages/nocodb/src/lib/services/apiToken.svc.ts diff --git a/packages/nocodb/src/lib/services/attachment.svs.ts b/packages/nocodb/src/lib/services/attachment.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/attachment.svs.ts rename to packages/nocodb/src/lib/services/attachment.svc.ts diff --git a/packages/nocodb/src/lib/services/audit.svs.ts b/packages/nocodb/src/lib/services/audit.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/audit.svs.ts rename to packages/nocodb/src/lib/services/audit.svc.ts diff --git a/packages/nocodb/src/lib/services/base.svs.ts b/packages/nocodb/src/lib/services/base.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/base.svs.ts rename to packages/nocodb/src/lib/services/base.svc.ts diff --git a/packages/nocodb/src/lib/services/cache.svs.ts b/packages/nocodb/src/lib/services/cache.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/cache.svs.ts rename to packages/nocodb/src/lib/services/cache.svc.ts diff --git a/packages/nocodb/src/lib/services/column.svs.ts b/packages/nocodb/src/lib/services/column.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/column.svs.ts rename to packages/nocodb/src/lib/services/column.svc.ts diff --git a/packages/nocodb/src/lib/services/filter.svs.ts b/packages/nocodb/src/lib/services/filter.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/filter.svs.ts rename to packages/nocodb/src/lib/services/filter.svc.ts diff --git a/packages/nocodb/src/lib/services/hook.svs.ts b/packages/nocodb/src/lib/services/hook.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/hook.svs.ts rename to packages/nocodb/src/lib/services/hook.svc.ts diff --git a/packages/nocodb/src/lib/services/hookFilter.svs.ts b/packages/nocodb/src/lib/services/hookFilter.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/hookFilter.svs.ts rename to packages/nocodb/src/lib/services/hookFilter.svc.ts diff --git a/packages/nocodb/src/lib/services/index.ts b/packages/nocodb/src/lib/services/index.ts index 316e11fd15..68f2065c6d 100644 --- a/packages/nocodb/src/lib/services/index.ts +++ b/packages/nocodb/src/lib/services/index.ts @@ -1,38 +1,38 @@ -export * as projectService from './project.svs'; -export * as tableService from './table.svs'; -export * as columnService from './column.svs'; -export * as filterService from './filter.svs'; -export * as sortService from './sort.svs'; -export * as baseService from './base.svs'; -export * as apiTokenService from './apiToken.svs'; -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 './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 './views/mapView.svs'; -export * as modelVisibilityService from './modelVisibility.svs'; -export * as sharedBaseService from './sharedBase.svs'; -export * as orgUserService from './orgUser.svs'; -export * as orgLicenseService from './orgLicense.svs'; -export * as projectUserService from './projectUser.svs'; -export * as attachmentService from './attachment.svs'; -export * as hookFilterService from './hookFilter.svs'; +export * as projectService from './project.svc'; +export * as tableService from './table.svc'; +export * as columnService from './column.svc'; +export * as filterService from './filter.svc'; +export * as sortService from './sort.svc'; +export * as baseService from './base.svc'; +export * as apiTokenService from './apiToken.svc'; +export * as viewService from './view.svc'; +export * as hookService from './hook.svc'; +export * as pluginService from './plugin.svc'; +export * as utilService from './util.svc'; +export * as formViewService from './views/formView.svc'; +export * as formViewColumnService from './views/formViewColumn.svc'; +export * as gridViewService from './views/gridView.svc'; +export * as galleryViewService from './views/galleryView.svc'; +export * as kanbanViewService from './views/kanbanView.svc'; +export * as gridViewColumnService from './views/gridViewColumn.svc'; +export * as viewColumnService from './viewColumn.svc'; +export * as metaDiffService from './metaDiff.svc'; +export * as mapViewService from './views/mapView.svc'; +export * as modelVisibilityService from './modelVisibility.svc'; +export * as sharedBaseService from './sharedBase.svc'; +export * as orgUserService from './orgUser.svc'; +export * as orgLicenseService from './orgLicense.svc'; +export * as projectUserService from './projectUser.svc'; +export * as attachmentService from './attachment.svc'; +export * as hookFilterService from './hookFilter.svc'; export * as dataService from './dbData'; export * as bulkDataService from './dbData/bulkData'; export * as dataAliasNestedService from './dbData/dataAliasNested.svs'; -export * as cacheService from './cache.svs'; -export * as auditService from './audit.svs'; +export * as cacheService from './cache.svc'; +export * as auditService from './audit.svc'; export * as swaggerService from './apiDocs'; export * as userService from './user'; export * as syncService from './sync'; export * from './public'; -export * as orgTokenService from './orgToken.svs'; +export * as orgTokenService from './orgToken.svc'; export * as orgTokenServiceEE from './ee/orgToken.svs'; diff --git a/packages/nocodb/src/lib/services/metaDiff.svs.ts b/packages/nocodb/src/lib/services/metaDiff.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/metaDiff.svs.ts rename to packages/nocodb/src/lib/services/metaDiff.svc.ts diff --git a/packages/nocodb/src/lib/services/modelVisibility.svs.ts b/packages/nocodb/src/lib/services/modelVisibility.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/modelVisibility.svs.ts rename to packages/nocodb/src/lib/services/modelVisibility.svc.ts diff --git a/packages/nocodb/src/lib/services/orgLicense.svs.ts b/packages/nocodb/src/lib/services/orgLicense.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/orgLicense.svs.ts rename to packages/nocodb/src/lib/services/orgLicense.svc.ts diff --git a/packages/nocodb/src/lib/services/orgToken.svs.ts b/packages/nocodb/src/lib/services/orgToken.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/orgToken.svs.ts rename to packages/nocodb/src/lib/services/orgToken.svc.ts diff --git a/packages/nocodb/src/lib/services/orgUser.svs.ts b/packages/nocodb/src/lib/services/orgUser.svc.ts similarity index 99% rename from packages/nocodb/src/lib/services/orgUser.svs.ts rename to packages/nocodb/src/lib/services/orgUser.svc.ts index 8b2a90d4aa..dbe51d047d 100644 --- a/packages/nocodb/src/lib/services/orgUser.svs.ts +++ b/packages/nocodb/src/lib/services/orgUser.svc.ts @@ -17,7 +17,7 @@ import { NcError } from '../meta/helpers/catchError'; import { extractProps } from '../meta/helpers/extractProps'; import { PagedResponseImpl } from '../meta/helpers/PagedResponse'; import { randomTokenString } from '../meta/helpers/stringHelpers'; -import { sendInviteEmail } from './projectUser.svs'; +import { sendInviteEmail } from './projectUser.svc'; export async function userList(param: { // todo: add better typing diff --git a/packages/nocodb/src/lib/services/plugin.svs.ts b/packages/nocodb/src/lib/services/plugin.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/plugin.svs.ts rename to packages/nocodb/src/lib/services/plugin.svc.ts diff --git a/packages/nocodb/src/lib/services/project.svs.ts b/packages/nocodb/src/lib/services/project.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/project.svs.ts rename to packages/nocodb/src/lib/services/project.svc.ts diff --git a/packages/nocodb/src/lib/services/projectUser.svs.ts b/packages/nocodb/src/lib/services/projectUser.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/projectUser.svs.ts rename to packages/nocodb/src/lib/services/projectUser.svc.ts diff --git a/packages/nocodb/src/lib/services/public/publicData.svs.ts b/packages/nocodb/src/lib/services/public/publicData.svs.ts index 4b943656bf..e361b7cbff 100644 --- a/packages/nocodb/src/lib/services/public/publicData.svs.ts +++ b/packages/nocodb/src/lib/services/public/publicData.svs.ts @@ -16,7 +16,7 @@ import { } from '../../models'; import NcConnectionMgrv2 from '../../utils/common/NcConnectionMgrv2'; import { mimeIcons } from '../../utils/mimeTypes'; -import { sanitizeUrlPath } from '../attachment.svs'; +import { sanitizeUrlPath } from '../attachment.svc'; import { getColumnByIdOrName } from '../dbData/helpers'; export async function dataList(param: { diff --git a/packages/nocodb/src/lib/services/sharedBase.svs.ts b/packages/nocodb/src/lib/services/sharedBase.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/sharedBase.svs.ts rename to packages/nocodb/src/lib/services/sharedBase.svc.ts diff --git a/packages/nocodb/src/lib/services/sort.svs.ts b/packages/nocodb/src/lib/services/sort.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/sort.svs.ts rename to packages/nocodb/src/lib/services/sort.svc.ts diff --git a/packages/nocodb/src/lib/services/table.svs.ts b/packages/nocodb/src/lib/services/table.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/table.svs.ts rename to packages/nocodb/src/lib/services/table.svc.ts diff --git a/packages/nocodb/src/lib/services/util.svs.ts b/packages/nocodb/src/lib/services/util.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/util.svs.ts rename to packages/nocodb/src/lib/services/util.svc.ts diff --git a/packages/nocodb/src/lib/services/view.svs.ts b/packages/nocodb/src/lib/services/view.svc.ts similarity index 97% rename from packages/nocodb/src/lib/services/view.svs.ts rename to packages/nocodb/src/lib/services/view.svc.ts index 724692cb1f..8eb64bf646 100644 --- a/packages/nocodb/src/lib/services/view.svs.ts +++ b/packages/nocodb/src/lib/services/view.svc.ts @@ -2,7 +2,7 @@ import { SharedViewReqType, ViewReqType } from 'nocodb-sdk'; import { validatePayload } from '../meta/api/helpers'; import { Model, View } from '../models'; import { T } from 'nc-help'; -import { xcVisibilityMetaGet } from './modelVisibility.svs'; +import { xcVisibilityMetaGet } from './modelVisibility.svc'; export async function viewList(param: { tableId: string; diff --git a/packages/nocodb/src/lib/services/viewColumn.svs.ts b/packages/nocodb/src/lib/services/viewColumn.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/viewColumn.svs.ts rename to packages/nocodb/src/lib/services/viewColumn.svc.ts diff --git a/packages/nocodb/src/lib/services/views/formView.svs.ts b/packages/nocodb/src/lib/services/views/formView.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/views/formView.svs.ts rename to packages/nocodb/src/lib/services/views/formView.svc.ts diff --git a/packages/nocodb/src/lib/services/views/formViewColumn.svs.ts b/packages/nocodb/src/lib/services/views/formViewColumn.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/views/formViewColumn.svs.ts rename to packages/nocodb/src/lib/services/views/formViewColumn.svc.ts diff --git a/packages/nocodb/src/lib/services/views/galleryView.svs.ts b/packages/nocodb/src/lib/services/views/galleryView.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/views/galleryView.svs.ts rename to packages/nocodb/src/lib/services/views/galleryView.svc.ts diff --git a/packages/nocodb/src/lib/services/views/gridView.svs.ts b/packages/nocodb/src/lib/services/views/gridView.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/views/gridView.svs.ts rename to packages/nocodb/src/lib/services/views/gridView.svc.ts diff --git a/packages/nocodb/src/lib/services/views/gridViewColumn.svs.ts b/packages/nocodb/src/lib/services/views/gridViewColumn.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/views/gridViewColumn.svs.ts rename to packages/nocodb/src/lib/services/views/gridViewColumn.svc.ts diff --git a/packages/nocodb/src/lib/services/views/kanbanView.svs.ts b/packages/nocodb/src/lib/services/views/kanbanView.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/views/kanbanView.svs.ts rename to packages/nocodb/src/lib/services/views/kanbanView.svc.ts diff --git a/packages/nocodb/src/lib/services/views/mapView.svs.ts b/packages/nocodb/src/lib/services/views/mapView.svc.ts similarity index 100% rename from packages/nocodb/src/lib/services/views/mapView.svs.ts rename to packages/nocodb/src/lib/services/views/mapView.svc.ts