mirror of https://github.com/nocodb/nocodb
Pranav C
2 years ago
206 changed files with 432 additions and 432 deletions
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { ApiDocsController } from './api-docs.controller'; |
||||
import { ApiDocsService } from './api-docs.service'; |
||||
import { ApiDocsService } from '../../modules/api-docs.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('ApiDocsController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { ApiTokensController } from './api-tokens.controller'; |
||||
import { ApiTokensService } from './api-tokens.service'; |
||||
import { ApiTokensService } from '../services/api-tokens.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('ApiTokensController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { AuditsController } from './audits.controller'; |
||||
import { AuditsService } from './audits.service'; |
||||
import { AuditsService } from '../services/audits.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('AuditsController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { AuthController } from './auth.controller'; |
||||
import { AuthService } from './auth.service'; |
||||
import { AuthService } from '../services/auth.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('AuthController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { BasesController } from './bases.controller'; |
||||
import { BasesService } from './bases.service'; |
||||
import { BasesService } from '../services/bases.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('BasesController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { CachesController } from './caches.controller'; |
||||
import { CachesService } from './caches.service'; |
||||
import { CachesService } from '../services/caches.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('CachesController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Controller, Delete, Get } from '@nestjs/common'; |
||||
import { Acl } from '../../middlewares/extract-project-id/extract-project-id.middleware'; |
||||
import { CachesService } from './caches.service'; |
||||
import { Acl } from '../middlewares/extract-project-id/extract-project-id.middleware'; |
||||
import { CachesService } from '../services/caches.service'; |
||||
|
||||
@Controller() |
||||
export class CachesController { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { ColumnsController } from './columns.controller'; |
||||
import { ColumnsService } from './columns.service'; |
||||
import { ColumnsService } from '../services/columns.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('ColumnsController', () => { |
@ -1,14 +1,14 @@
|
||||
import { Controller, Get, Request, Response, UseGuards } from '@nestjs/common'; |
||||
import * as XLSX from 'xlsx'; |
||||
import { AuthGuard } from '@nestjs/passport'; |
||||
import { GlobalGuard } from '../../../guards/global/global.guard'; |
||||
import { GlobalGuard } from '../guards/global/global.guard'; |
||||
import { |
||||
Acl, |
||||
ExtractProjectIdMiddleware, |
||||
} from '../../../middlewares/extract-project-id/extract-project-id.middleware'; |
||||
import { View } from '../../../models'; |
||||
import { DatasService } from '../datas.service'; |
||||
import { extractCsvData, extractXlsxData } from '../helpers'; |
||||
} from '../middlewares/extract-project-id/extract-project-id.middleware'; |
||||
import { View } from '../models'; |
||||
import { DatasService } from '../services/datas.service'; |
||||
import { extractCsvData, extractXlsxData } from '../modules/datas/helpers'; |
||||
|
||||
@Controller() |
||||
@UseGuards(ExtractProjectIdMiddleware, GlobalGuard) |
@ -1,5 +1,5 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { DataAliasNestedService } from './data-alias-nested.service'; |
||||
import { DataAliasNestedService } from '../services/data-alias-nested.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('DataAliasNestedService', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { FormColumnsController } from './form-columns.controller'; |
||||
import { FormColumnsService } from './form-columns.service'; |
||||
import { FormColumnsService } from '../services/form-columns.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('FormColumnsController', () => { |
@ -1,11 +1,11 @@
|
||||
import { Body, Controller, Param, Patch, UseGuards } from '@nestjs/common'; |
||||
import { AuthGuard } from '@nestjs/passport'; |
||||
import { GlobalGuard } from '../../guards/global/global.guard'; |
||||
import { GlobalGuard } from '../guards/global/global.guard'; |
||||
import { |
||||
Acl, |
||||
ExtractProjectIdMiddleware, |
||||
} from '../../middlewares/extract-project-id/extract-project-id.middleware'; |
||||
import { FormColumnsService } from './form-columns.service'; |
||||
} from '../middlewares/extract-project-id/extract-project-id.middleware'; |
||||
import { FormColumnsService } from '../services/form-columns.service'; |
||||
|
||||
class FormColumnUpdateReqType {} |
||||
|
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { FormsController } from './forms.controller'; |
||||
import { FormsService } from './forms.service'; |
||||
import { FormsService } from '../services/forms.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('FormsController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { GalleriesController } from './galleries.controller'; |
||||
import { GalleriesService } from './galleries.service'; |
||||
import { GalleriesService } from '../services/galleries.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('GalleriesController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { GridColumnsController } from './grid-columns.controller'; |
||||
import { GridColumnsService } from './grid-columns.service'; |
||||
import { GridColumnsService } from '../services/grid-columns.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('GridColumnsController', () => { |
@ -1,12 +1,12 @@
|
||||
import { Body, Controller, Get, Param, Patch, UseGuards } from '@nestjs/common'; |
||||
import { GridColumnReqType } from 'nocodb-sdk'; |
||||
import { AuthGuard } from '@nestjs/passport'; |
||||
import { GlobalGuard } from '../../guards/global/global.guard'; |
||||
import { GlobalGuard } from '../guards/global/global.guard'; |
||||
import { |
||||
Acl, |
||||
ExtractProjectIdMiddleware, |
||||
} from '../../middlewares/extract-project-id/extract-project-id.middleware'; |
||||
import { GridColumnsService } from './grid-columns.service'; |
||||
} from '../middlewares/extract-project-id/extract-project-id.middleware'; |
||||
import { GridColumnsService } from '../services/grid-columns.service'; |
||||
|
||||
@Controller() |
||||
@UseGuards(ExtractProjectIdMiddleware, GlobalGuard) |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { GridsController } from './grids.controller'; |
||||
import { GridsService } from './grids.service'; |
||||
import { GridsService } from '../services/grids.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('GridsController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { HookFiltersController } from './hook-filters.controller'; |
||||
import { HookFiltersService } from './hook-filters.service'; |
||||
import { HookFiltersService } from '../services/hook-filters.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('HookFiltersController', () => { |
@ -1,5 +1,5 @@
|
||||
import { Controller } from '@nestjs/common'; |
||||
import { HookFiltersService } from './hook-filters.service'; |
||||
import { HookFiltersService } from '../services/hook-filters.service'; |
||||
|
||||
@Controller() |
||||
export class HookFiltersController { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { HooksController } from './hooks.controller'; |
||||
import { HooksService } from './hooks.service'; |
||||
import { HooksService } from '../services/hooks.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('HooksController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { ImportController } from './import.controller'; |
||||
import { ImportService } from './import.service'; |
||||
import { ImportService } from '../services/import.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('ImportController', () => { |
@ -1,15 +1,15 @@
|
||||
import { Controller, HttpCode, Post, Request, UseGuards } from '@nestjs/common'; |
||||
import { forwardRef, Inject } from '@nestjs/common'; |
||||
import { ModuleRef } from '@nestjs/core'; |
||||
import { GlobalGuard } from '../../guards/global/global.guard'; |
||||
import { NcError } from '../../helpers/catchError'; |
||||
import { ExtractProjectIdMiddleware } from '../../middlewares/extract-project-id/extract-project-id.middleware'; |
||||
import { SyncSource } from '../../models'; |
||||
import NocoJobs from '../../jobs/NocoJobs'; |
||||
import { SocketService } from '../../services/client/socket.service'; |
||||
import airtableSyncJob from '../sync/helpers/job'; |
||||
import { ImportService } from './import.service'; |
||||
import type { AirtableSyncConfig } from '../sync/helpers/job'; |
||||
import { GlobalGuard } from '../guards/global/global.guard'; |
||||
import { NcError } from '../helpers/catchError'; |
||||
import { ExtractProjectIdMiddleware } from '../middlewares/extract-project-id/extract-project-id.middleware'; |
||||
import { SyncSource } from '../models'; |
||||
import NocoJobs from '../jobs/NocoJobs'; |
||||
import { SocketService } from '../services/socket.service'; |
||||
import airtableSyncJob from '../modules/sync/helpers/job'; |
||||
import { ImportService } from '../services/import.service'; |
||||
import type { AirtableSyncConfig } from '../modules/sync/helpers/job'; |
||||
|
||||
import type { Server } from 'socket.io'; |
||||
|
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { KanbansController } from './kanbans.controller'; |
||||
import { KanbansService } from './kanbans.service'; |
||||
import { KanbansService } from '../services/kanbans.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('KanbansController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { MapsController } from './maps.controller'; |
||||
import { MapsService } from './maps.service'; |
||||
import { MapsService } from '../services/maps.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('MapsController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { MetaDiffsController } from './meta-diffs.controller'; |
||||
import { MetaDiffsService } from './meta-diffs.service'; |
||||
import { MetaDiffsService } from '../services/meta-diffs.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('MetaDiffsController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { ModelVisibilitiesController } from './model-visibilities.controller'; |
||||
import { ModelVisibilitiesService } from './model-visibilities.service'; |
||||
import { ModelVisibilitiesService } from '../services/model-visibilities.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('ModelVisibilitiesController', () => { |
@ -1,10 +1,10 @@
|
||||
import { Injectable } from '@nestjs/common'; |
||||
import { nocoExecute } from 'nc-help'; |
||||
import getAst from '../../../helpers/getAst'; |
||||
import { NcError } from '../../../helpers/catchError'; |
||||
import { Base, Model, Project, View } from '../../../models'; |
||||
import NcConnectionMgrv2 from '../../../utils/common/NcConnectionMgrv2'; |
||||
import type { OldPathParams } from '../helpers'; |
||||
import getAst from '../../helpers/getAst'; |
||||
import { NcError } from '../../helpers/catchError'; |
||||
import { Base, Model, Project, View } from '../../models'; |
||||
import NcConnectionMgrv2 from '../../utils/common/NcConnectionMgrv2'; |
||||
import type { OldPathParams } from '../../modules/datas/helpers'; |
||||
|
||||
@Injectable() |
||||
export class OldDatasService { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { OrgLcenseController } from './org-lcense.controller'; |
||||
import { OrgLcenseService } from './org-lcense.service'; |
||||
import { OrgLcenseService } from '../services/org-lcense.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('OrgLcenseController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { OrgTokensController } from './org-tokens.controller'; |
||||
import { OrgTokensService } from './org-tokens.service'; |
||||
import { OrgTokensService } from '../services/org-tokens.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('OrgTokensController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { OrgUsersController } from './org-users.controller'; |
||||
import { OrgUsersService } from './org-users.service'; |
||||
import { OrgUsersService } from '../services/org-users.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('OrgUsersController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { PluginsController } from './plugins.controller'; |
||||
import { PluginsService } from './plugins.service'; |
||||
import { PluginsService } from '../services/plugins.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('PluginsController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { ProjectsController } from './projects.controller'; |
||||
import { ProjectsService } from './projects.service'; |
||||
import { ProjectsService } from '../services/projects.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('ProjectsController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { PublicDatasExportController } from './public-datas-export.controller'; |
||||
import { PublicDatasExportService } from './public-datas-export.service'; |
||||
import { PublicDatasExportService } from '../services/public-datas-export.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('PublicDatasExportController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { PublicDatasController } from './public-datas.controller'; |
||||
import { PublicDatasService } from './public-datas.service'; |
||||
import { PublicDatasService } from '../services/public-datas.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('PublicDatasController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { PublicMetasController } from './public-metas.controller'; |
||||
import { PublicMetasService } from './public-metas.service'; |
||||
import { PublicMetasService } from '../services/public-metas.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('PublicMetasController', () => { |
@ -1,5 +1,5 @@
|
||||
import { Controller, Get, Param, Request } from '@nestjs/common'; |
||||
import { PublicMetasService } from './public-metas.service'; |
||||
import { PublicMetasService } from '../services/public-metas.service'; |
||||
|
||||
@Controller() |
||||
export class PublicMetasController { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { SharedBasesController } from './shared-bases.controller'; |
||||
import { SharedBasesService } from './shared-bases.service'; |
||||
import { SharedBasesService } from '../services/shared-bases.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('SharedBasesController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { SortsController } from './sorts.controller'; |
||||
import { SortsService } from './sorts.service'; |
||||
import { SortsService } from '../services/sorts.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('SortsController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { SyncController } from './sync.controller'; |
||||
import { SyncService } from './sync.service'; |
||||
import { SyncService } from '../services/sync.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('SyncController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { TablesController } from './tables.controller'; |
||||
import { TablesService } from './tables.service'; |
||||
import { TablesService } from '../services/tables.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('TablesController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { UtilsController } from './utils.controller'; |
||||
import { UtilsService } from './utils.service'; |
||||
import { UtilsService } from '../services/utils.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('UtilsController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { ViewColumnsController } from './view-columns.controller'; |
||||
import { ViewColumnsService } from './view-columns.service'; |
||||
import { ViewColumnsService } from '../services/view-columns.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('ViewColumnsController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Test } from '@nestjs/testing'; |
||||
import { ViewsController } from './views.controller'; |
||||
import { ViewsService } from './views.service'; |
||||
import { ViewsService } from '../services/views.service'; |
||||
import type { TestingModule } from '@nestjs/testing'; |
||||
|
||||
describe('ViewsController', () => { |
@ -1,6 +1,6 @@
|
||||
import { Injectable } from '@nestjs/common'; |
||||
import { NcError } from '../../helpers/catchError'; |
||||
import { Model, Project } from '../../models'; |
||||
import { NcError } from '../helpers/catchError'; |
||||
import { Model, Project } from '../models'; |
||||
import getSwaggerJSON from './swagger/getSwaggerJSON'; |
||||
|
||||
@Injectable() |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue