mirror of https://github.com/nocodb/nocodb
Pranav C
2 years ago
104 changed files with 234 additions and 610 deletions
@ -1,6 +1,6 @@ |
|||||||
import { Test } from '@nestjs/testing'; |
import { Test } from '@nestjs/testing'; |
||||||
import { DataAliasController } from './data-alias.controller'; |
import { DataAliasController } from './data-alias.controller'; |
||||||
import { DatasService } from '../../services/datas.service'; |
import { DatasService } from '../services/datas.service'; |
||||||
import type { TestingModule } from '@nestjs/testing'; |
import type { TestingModule } from '@nestjs/testing'; |
||||||
|
|
||||||
describe('DataAliasController', () => { |
describe('DataAliasController', () => { |
@ -1,6 +1,6 @@ |
|||||||
import { Test } from '@nestjs/testing'; |
import { Test } from '@nestjs/testing'; |
||||||
import { DatasController } from './datas.controller'; |
import { DatasController } from './datas.controller'; |
||||||
import { DatasService } from '../../services/datas.service'; |
import { DatasService } from '../services/datas.service'; |
||||||
import type { TestingModule } from '@nestjs/testing'; |
import type { TestingModule } from '@nestjs/testing'; |
||||||
|
|
||||||
describe('DatasController', () => { |
describe('DatasController', () => { |
@ -1,6 +1,6 @@ |
|||||||
import { Test } from '@nestjs/testing'; |
import { Test } from '@nestjs/testing'; |
||||||
import { ImportController } from './import.controller'; |
import { ImportController } from './import.controller'; |
||||||
import { ImportService } from '../services/import.service'; |
import { ImportService } from '../../services/import.service'; |
||||||
import type { TestingModule } from '@nestjs/testing'; |
import type { TestingModule } from '@nestjs/testing'; |
||||||
|
|
||||||
describe('ImportController', () => { |
describe('ImportController', () => { |
@ -1,6 +1,6 @@ |
|||||||
import { Test } from '@nestjs/testing'; |
import { Test } from '@nestjs/testing'; |
||||||
import { ProjectUsersController } from './project-users.controller'; |
import { ProjectUsersController } from './project-users.controller'; |
||||||
import { ProjectUsersService } from './project-users.service'; |
import { ProjectUsersService } from '../services/project-users/project-users.service'; |
||||||
import type { TestingModule } from '@nestjs/testing'; |
import type { TestingModule } from '@nestjs/testing'; |
||||||
|
|
||||||
describe('ProjectUsersController', () => { |
describe('ProjectUsersController', () => { |
@ -1,6 +1,6 @@ |
|||||||
import { Test } from '@nestjs/testing'; |
import { Test } from '@nestjs/testing'; |
||||||
import { TestController } from './test.controller'; |
import { TestController } from './test.controller'; |
||||||
import { TestService } from './test.service'; |
import { TestService } from '../../modules/test/test.service'; |
||||||
import type { TestingModule } from '@nestjs/testing'; |
import type { TestingModule } from '@nestjs/testing'; |
||||||
|
|
||||||
describe('TestController', () => { |
describe('TestController', () => { |
@ -1,10 +1,9 @@ |
|||||||
import { Controller, HttpCode, Post, Req } from '@nestjs/common'; |
import { Controller, HttpCode, Post, Req } from '@nestjs/common'; |
||||||
import { TestService } from './test.service'; |
|
||||||
import { TestResetService } from './TestResetService'; |
import { TestResetService } from './TestResetService'; |
||||||
|
|
||||||
@Controller() |
@Controller() |
||||||
export class TestController { |
export class TestController { |
||||||
constructor(private readonly testService: TestService) {} |
constructor() {} |
||||||
|
|
||||||
@Post('/api/v1/meta/test/reset') |
@Post('/api/v1/meta/test/reset') |
||||||
@HttpCode(200) |
@HttpCode(200) |
@ -1,6 +1,6 @@ |
|||||||
import { Test } from '@nestjs/testing'; |
import { Test } from '@nestjs/testing'; |
||||||
import { UsersController } from './users.controller'; |
import { UsersController } from './users.controller'; |
||||||
import { UsersService } from './users.service'; |
import { UsersService } from '../../services/users/users.service'; |
||||||
import type { TestingModule } from '@nestjs/testing'; |
import type { TestingModule } from '@nestjs/testing'; |
||||||
|
|
||||||
describe('UsersController', () => { |
describe('UsersController', () => { |
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { ApiTokensService } from '../../services/api-tokens.service'; |
|
||||||
import { ApiTokensController } from '../../controllers/api-tokens.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [ApiTokensController], |
|
||||||
providers: [ApiTokensService], |
|
||||||
}) |
|
||||||
export class ApiTokensModule {} |
|
@ -1,20 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { MulterModule } from '@nestjs/platform-express'; |
|
||||||
import multer from 'multer'; |
|
||||||
import { NC_ATTACHMENT_FIELD_SIZE } from '../../constants'; |
|
||||||
import { AttachmentsService } from '../../services/attachments.service'; |
|
||||||
import { AttachmentsController } from '../../controllers/attachments.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
imports: [ |
|
||||||
MulterModule.register({ |
|
||||||
storage: multer.diskStorage({}), |
|
||||||
limits: { |
|
||||||
fieldSize: NC_ATTACHMENT_FIELD_SIZE, |
|
||||||
}, |
|
||||||
}), |
|
||||||
], |
|
||||||
controllers: [AttachmentsController], |
|
||||||
providers: [AttachmentsService], |
|
||||||
}) |
|
||||||
export class AttachmentsModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { AuditsService } from '../../services/audits.service'; |
|
||||||
import { AuditsController } from '../../controllers/audits.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [AuditsController], |
|
||||||
providers: [AuditsService], |
|
||||||
}) |
|
||||||
export class AuditsModule {} |
|
@ -1,14 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { JwtModule } from '@nestjs/jwt'; |
|
||||||
import { PassportModule } from '@nestjs/passport'; |
|
||||||
import { LocalStrategy } from '../../strategies/local.strategy'; |
|
||||||
import { UsersModule } from '../users/users.module'; |
|
||||||
import { AuthService } from '../../services/auth.service'; |
|
||||||
import { AuthController } from '../../controllers/auth.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [AuthController], |
|
||||||
imports: [UsersModule, PassportModule], |
|
||||||
providers: [AuthService, LocalStrategy], |
|
||||||
}) |
|
||||||
export class AuthModule {} |
|
@ -1,4 +0,0 @@ |
|||||||
export const jwtConstants = { |
|
||||||
// read from .env file
|
|
||||||
secret: 'some_random_key', |
|
||||||
}; |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { BasesService } from '../../services/bases.service'; |
|
||||||
import { BasesController } from '../../controllers/bases.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [BasesController], |
|
||||||
providers: [BasesService], |
|
||||||
}) |
|
||||||
export class BasesModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { CachesService } from '../../services/caches.service'; |
|
||||||
import { CachesController } from '../../controllers/caches.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [CachesController], |
|
||||||
providers: [CachesService], |
|
||||||
}) |
|
||||||
export class CachesModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { ColumnsService } from '../../services/columns.service'; |
|
||||||
import { ColumnsController } from '../../controllers/columns.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [ColumnsController], |
|
||||||
providers: [ColumnsService], |
|
||||||
}) |
|
||||||
export class ColumnsModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { FiltersService } from '../../services/filters.service'; |
|
||||||
import { FiltersController } from '../../controllers/filters.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [FiltersController], |
|
||||||
providers: [FiltersService], |
|
||||||
}) |
|
||||||
export class FiltersModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { FormColumnsService } from '../../services/form-columns.service'; |
|
||||||
import { FormColumnsController } from '../../controllers/form-columns.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [FormColumnsController], |
|
||||||
providers: [FormColumnsService], |
|
||||||
}) |
|
||||||
export class FormColumnsModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { FormsService } from '../../services/forms.service'; |
|
||||||
import { FormsController } from '../../controllers/forms.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [FormsController], |
|
||||||
providers: [FormsService], |
|
||||||
}) |
|
||||||
export class FormsModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { GalleriesService } from '../../services/galleries.service'; |
|
||||||
import { GalleriesController } from '../../controllers/galleries.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [GalleriesController], |
|
||||||
providers: [GalleriesService], |
|
||||||
}) |
|
||||||
export class GalleriesModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { GridColumnsService } from '../../services/grid-columns.service'; |
|
||||||
import { GridColumnsController } from '../../controllers/grid-columns.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [GridColumnsController], |
|
||||||
providers: [GridColumnsService], |
|
||||||
}) |
|
||||||
export class GridColumnsModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { GridsService } from '../../services/grids.service'; |
|
||||||
import { GridsController } from '../../controllers/grids.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [GridsController], |
|
||||||
providers: [GridsService], |
|
||||||
}) |
|
||||||
export class GridsModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { HookFiltersService } from '../../services/hook-filters.service'; |
|
||||||
import { HookFiltersController } from '../../controllers/hook-filters.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [HookFiltersController], |
|
||||||
providers: [HookFiltersService], |
|
||||||
}) |
|
||||||
export class HookFiltersModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { HooksService } from '../../services/hooks.service'; |
|
||||||
import { HooksController } from '../../controllers/hooks.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [HooksController], |
|
||||||
providers: [HooksService], |
|
||||||
}) |
|
||||||
export class HooksModule {} |
|
@ -1,41 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { AttachmentsService } from '../../services/attachments.service'; |
|
||||||
import { ColumnsService } from '../../services/columns.service'; |
|
||||||
import { BulkDataAliasService } from '../../services/bulk-data-alias.service'; |
|
||||||
import { FiltersService } from '../../services/filters.service'; |
|
||||||
import { FormColumnsService } from '../../services/form-columns.service'; |
|
||||||
import { FormsService } from '../../services/forms.service'; |
|
||||||
import { GalleriesService } from '../../services/galleries.service'; |
|
||||||
import { GlobalModule } from '../global/global.module'; |
|
||||||
import { GridsService } from '../../services/grids.service'; |
|
||||||
import { ProjectUsersService } from '../project-users/project-users.service'; |
|
||||||
import { ProjectsService } from '../../services/projects.service'; |
|
||||||
import { SortsService } from '../../services/sorts.service'; |
|
||||||
import { TablesService } from '../../services/tables.service'; |
|
||||||
import { ViewColumnsService } from '../../services/view-columns.service'; |
|
||||||
import { ViewsService } from '../../services/views.service'; |
|
||||||
import { ImportService } from '../../services/import.service'; |
|
||||||
import { ImportController } from '../../controllers/import.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
imports: [GlobalModule], |
|
||||||
controllers: [ImportController], |
|
||||||
providers: [ |
|
||||||
ImportService, |
|
||||||
TablesService, |
|
||||||
ViewsService, |
|
||||||
ProjectsService, |
|
||||||
AttachmentsService, |
|
||||||
ColumnsService, |
|
||||||
FiltersService, |
|
||||||
FormColumnsService, |
|
||||||
FormsService, |
|
||||||
GalleriesService, |
|
||||||
ProjectUsersService, |
|
||||||
ViewColumnsService, |
|
||||||
SortsService, |
|
||||||
GridsService, |
|
||||||
BulkDataAliasService, |
|
||||||
], |
|
||||||
}) |
|
||||||
export class ImportModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { KanbansService } from '../../services/kanbans.service'; |
|
||||||
import { KanbansController } from '../../controllers/kanbans.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [KanbansController], |
|
||||||
providers: [KanbansService], |
|
||||||
}) |
|
||||||
export class KanbansModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { MapsService } from '../../services/maps.service'; |
|
||||||
import { MapsController } from '../../controllers/maps.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [MapsController], |
|
||||||
providers: [MapsService], |
|
||||||
}) |
|
||||||
export class MapsModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { MetaDiffsService } from '../../services/meta-diffs.service'; |
|
||||||
import { MetaDiffsController } from '../../controllers/meta-diffs.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [MetaDiffsController], |
|
||||||
providers: [MetaDiffsService], |
|
||||||
}) |
|
||||||
export class MetaDiffsModule {} |
|
@ -1,11 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { ApiDocsController } from '../../controllers/api-docs/api-docs.controller' |
|
||||||
import { ApiTokensController } from '../../controllers/api-tokens.controller' |
|
||||||
import { ApiTokensService } from '../../services/api-tokens.service' |
|
||||||
import { ApiDocsService } from '../api-docs.service' |
|
||||||
|
|
||||||
@Module({}) |
|
||||||
export class MetaModule { |
|
||||||
controllers: [ApiDocsController, ApiTokensController], |
|
||||||
providers: [ApiDocsService, ApiTokensService], |
|
||||||
} |
|
@ -0,0 +1,157 @@ |
|||||||
|
import { Module } from '@nestjs/common'; |
||||||
|
import { MulterModule } from '@nestjs/platform-express'; |
||||||
|
import multer from 'multer'; |
||||||
|
import { NC_ATTACHMENT_FIELD_SIZE } from '../../constants'; |
||||||
|
import { ApiDocsController } from '../../controllers/api-docs/api-docs.controller'; |
||||||
|
import { ApiTokensController } from '../../controllers/api-tokens.controller'; |
||||||
|
import { AttachmentsController } from '../../controllers/attachments.controller'; |
||||||
|
import { AuditsController } from '../../controllers/audits.controller'; |
||||||
|
import { BasesController } from '../../controllers/bases.controller'; |
||||||
|
import { CachesController } from '../../controllers/caches.controller'; |
||||||
|
import { ColumnsController } from '../../controllers/columns.controller'; |
||||||
|
import { FiltersController } from '../../controllers/filters.controller' |
||||||
|
import { FormColumnsController } from '../../controllers/form-columns.controller' |
||||||
|
import { FormsController } from '../../controllers/forms.controller' |
||||||
|
import { GalleriesController } from '../../controllers/galleries.controller' |
||||||
|
import { GridColumnsController } from '../../controllers/grid-columns.controller' |
||||||
|
import { GridsController } from '../../controllers/grids.controller' |
||||||
|
import { HooksController } from '../../controllers/hooks.controller' |
||||||
|
import { ImportController } from '../../controllers/imports/import.controller' |
||||||
|
import { KanbansController } from '../../controllers/kanbans.controller' |
||||||
|
import { MapsController } from '../../controllers/maps.controller' |
||||||
|
import { MetaDiffsController } from '../../controllers/meta-diffs.controller' |
||||||
|
import { ModelVisibilitiesController } from '../../controllers/model-visibilities.controller' |
||||||
|
import { OrgLcenseController } from '../../controllers/org-lcense.controller' |
||||||
|
import { OrgTokensController } from '../../controllers/org-tokens.controller' |
||||||
|
import { OrgUsersController } from '../../controllers/org-users.controller' |
||||||
|
import { PluginsController } from '../../controllers/plugins.controller' |
||||||
|
import { ProjectsController } from '../../controllers/projects.controller' |
||||||
|
import { PublicMetasController } from '../../controllers/public-metas.controller' |
||||||
|
import { SharedBasesController } from '../../controllers/shared-bases.controller' |
||||||
|
import { SortsController } from '../../controllers/sorts.controller' |
||||||
|
import { SyncController } from '../../controllers/sync.controller' |
||||||
|
import { TablesController } from '../../controllers/tables.controller' |
||||||
|
import { UtilsController } from '../../controllers/utils.controller' |
||||||
|
import { ViewColumnsController } from '../../controllers/view-columns.controller' |
||||||
|
import { ViewsController } from '../../controllers/views.controller' |
||||||
|
import { ExtractProjectIdMiddleware } from '../../middlewares/extract-project-id/extract-project-id.middleware' |
||||||
|
import { ApiTokensService } from '../../services/api-tokens.service'; |
||||||
|
import { AttachmentsService } from '../../services/attachments.service'; |
||||||
|
import { AuditsService } from '../../services/audits.service'; |
||||||
|
import { BasesService } from '../../services/bases.service'; |
||||||
|
import { CachesService } from '../../services/caches.service'; |
||||||
|
import { ColumnsService } from '../../services/columns.service'; |
||||||
|
import { FiltersService } from '../../services/filters.service' |
||||||
|
import { FormColumnsService } from '../../services/form-columns.service' |
||||||
|
import { FormsService } from '../../services/forms.service' |
||||||
|
import { GalleriesService } from '../../services/galleries.service' |
||||||
|
import { GridColumnsService } from '../../services/grid-columns.service' |
||||||
|
import { GridsService } from '../../services/grids.service' |
||||||
|
import { HooksService } from '../../services/hooks.service' |
||||||
|
import { KanbansService } from '../../services/kanbans.service' |
||||||
|
import { MapsService } from '../../services/maps.service' |
||||||
|
import { MetaDiffsService } from '../../services/meta-diffs.service' |
||||||
|
import { ModelVisibilitiesService } from '../../services/model-visibilities.service' |
||||||
|
import { OrgLcenseService } from '../../services/org-lcense.service' |
||||||
|
import { OrgTokensEeService } from '../../services/org-tokens-ee.service' |
||||||
|
import { OrgTokensService } from '../../services/org-tokens.service' |
||||||
|
import { OrgUsersService } from '../../services/org-users.service' |
||||||
|
import { PluginsService } from '../../services/plugins.service' |
||||||
|
import { ProjectsService } from '../../services/projects.service' |
||||||
|
import { PublicMetasService } from '../../services/public-metas.service' |
||||||
|
import { SharedBasesService } from '../../services/shared-bases.service' |
||||||
|
import { SortsService } from '../../services/sorts.service' |
||||||
|
import { SyncService } from '../../services/sync.service' |
||||||
|
import { TablesService } from '../../services/tables.service' |
||||||
|
import { UtilsService } from '../../services/utils.service' |
||||||
|
import { ViewColumnsService } from '../../services/view-columns.service' |
||||||
|
import { ViewsService } from '../../services/views.service' |
||||||
|
import { ApiDocsService } from '../../services/api-docs/api-docs.service'; |
||||||
|
import { GlobalModule } from '../global/global.module' |
||||||
|
import { ProjectUsersController } from '../../controllers/project-users.controller' |
||||||
|
import { ProjectUsersService } from '../../services/project-users/project-users.service' |
||||||
|
|
||||||
|
@Module({ |
||||||
|
imports: [ |
||||||
|
MulterModule.register({ |
||||||
|
storage: multer.diskStorage({}), |
||||||
|
limits: { |
||||||
|
fieldSize: NC_ATTACHMENT_FIELD_SIZE, |
||||||
|
}, |
||||||
|
}), |
||||||
|
GlobalModule, |
||||||
|
], |
||||||
|
controllers: [ |
||||||
|
ApiDocsController, |
||||||
|
ApiTokensController, |
||||||
|
AttachmentsController, |
||||||
|
AuditsController, |
||||||
|
BasesController, |
||||||
|
CachesController, |
||||||
|
ColumnsController, |
||||||
|
FiltersController, |
||||||
|
FormColumnsController, |
||||||
|
FormsController, |
||||||
|
GalleriesController, |
||||||
|
GridColumnsController, |
||||||
|
GridsController, |
||||||
|
HooksController, |
||||||
|
ImportController, |
||||||
|
KanbansController, |
||||||
|
MapsController, |
||||||
|
MetaDiffsController, |
||||||
|
ModelVisibilitiesController, |
||||||
|
OrgLcenseController, |
||||||
|
OrgTokensController, |
||||||
|
OrgUsersController, |
||||||
|
PluginsController, |
||||||
|
ProjectUsersController, |
||||||
|
ProjectsController, |
||||||
|
PublicMetasController, |
||||||
|
ViewsController, |
||||||
|
ViewColumnsController, |
||||||
|
UtilsController, |
||||||
|
TablesController, |
||||||
|
SyncController, |
||||||
|
SortsController, |
||||||
|
SharedBasesController |
||||||
|
], |
||||||
|
providers: [ |
||||||
|
ApiDocsService, |
||||||
|
ApiTokensService, |
||||||
|
AttachmentsService, |
||||||
|
AuditsService, |
||||||
|
BasesService, |
||||||
|
CachesService, |
||||||
|
ColumnsService, |
||||||
|
FiltersService, |
||||||
|
FormColumnsService, |
||||||
|
FormsService, |
||||||
|
GalleriesService, |
||||||
|
GridColumnsService, |
||||||
|
GridsService, |
||||||
|
HooksService, |
||||||
|
KanbansService, |
||||||
|
MapsService, |
||||||
|
MetaDiffsService, |
||||||
|
ModelVisibilitiesService, |
||||||
|
OrgLcenseService, |
||||||
|
OrgTokensEeService, |
||||||
|
OrgTokensService, |
||||||
|
OrgUsersService, |
||||||
|
ProjectUsersService, |
||||||
|
PluginsService, |
||||||
|
ProjectUsersService, |
||||||
|
ProjectsService, |
||||||
|
ExtractProjectIdMiddleware, |
||||||
|
PublicMetasService, |
||||||
|
ViewsService, |
||||||
|
ViewColumnsService, |
||||||
|
UtilsService, |
||||||
|
TablesService, |
||||||
|
SyncService, |
||||||
|
SortsService, |
||||||
|
SharedBasesService, |
||||||
|
], |
||||||
|
}) |
||||||
|
export class MetasModule {} |
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { ModelVisibilitiesService } from '../../services/model-visibilities.service'; |
|
||||||
import { ModelVisibilitiesController } from '../../controllers/model-visibilities.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [ModelVisibilitiesController], |
|
||||||
providers: [ModelVisibilitiesService], |
|
||||||
}) |
|
||||||
export class ModelVisibilitiesModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { OrgLcenseService } from '../../services/org-lcense.service'; |
|
||||||
import { OrgLcenseController } from '../../controllers/org-lcense.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [OrgLcenseController], |
|
||||||
providers: [OrgLcenseService], |
|
||||||
}) |
|
||||||
export class OrgLcenseModule {} |
|
@ -1,10 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { OrgTokensEeService } from '../../services/org-tokens-ee.service'; |
|
||||||
import { OrgTokensService } from '../../services/org-tokens.service'; |
|
||||||
import { OrgTokensController } from '../../controllers/org-tokens.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [OrgTokensController], |
|
||||||
providers: [OrgTokensEeService, OrgTokensService], |
|
||||||
}) |
|
||||||
export class OrgTokensModule {} |
|
@ -1,10 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { ProjectUsersService } from '../project-users/project-users.service'; |
|
||||||
import { OrgUsersService } from '../../services/org-users.service'; |
|
||||||
import { OrgUsersController } from '../../controllers/org-users.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [OrgUsersController], |
|
||||||
providers: [OrgUsersService, ProjectUsersService], |
|
||||||
}) |
|
||||||
export class OrgUsersModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { PluginsService } from '../../services/plugins.service'; |
|
||||||
import { PluginsController } from '../../controllers/plugins.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [PluginsController], |
|
||||||
providers: [PluginsService], |
|
||||||
}) |
|
||||||
export class PluginsModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { ProjectUsersService } from './project-users.service'; |
|
||||||
import { ProjectUsersController } from './project-users.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [ProjectUsersController], |
|
||||||
providers: [ProjectUsersService], |
|
||||||
}) |
|
||||||
export class ProjectUsersModule {} |
|
@ -1,10 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { ExtractProjectIdMiddleware } from '../../middlewares/extract-project-id/extract-project-id.middleware'; |
|
||||||
import { ProjectsService } from '../../services/projects.service'; |
|
||||||
import { ProjectsController } from '../../controllers/projects.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [ProjectsController], |
|
||||||
providers: [ProjectsService, ExtractProjectIdMiddleware], |
|
||||||
}) |
|
||||||
export class ProjectsModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { PublicDatasExportService } from '../../services/public-datas-export.service'; |
|
||||||
import { PublicDatasExportController } from '../../controllers/public-datas-export.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [PublicDatasExportController], |
|
||||||
providers: [PublicDatasExportService], |
|
||||||
}) |
|
||||||
export class PublicDatasExportModule {} |
|
@ -1,20 +0,0 @@ |
|||||||
import multer from 'multer'; |
|
||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { MulterModule } from '@nestjs/platform-express'; |
|
||||||
import { NC_ATTACHMENT_FIELD_SIZE } from '../../constants'; |
|
||||||
import { PublicDatasService } from '../../services/public-datas.service'; |
|
||||||
import { PublicDatasController } from '../../controllers/public-datas.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
imports: [ |
|
||||||
MulterModule.register({ |
|
||||||
storage: multer.diskStorage({}), |
|
||||||
limits: { |
|
||||||
fieldSize: NC_ATTACHMENT_FIELD_SIZE, |
|
||||||
}, |
|
||||||
}), |
|
||||||
], |
|
||||||
controllers: [PublicDatasController], |
|
||||||
providers: [PublicDatasService], |
|
||||||
}) |
|
||||||
export class PublicDatasModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { PublicMetasService } from '../../services/public-metas.service'; |
|
||||||
import { PublicMetasController } from '../../controllers/public-metas.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [PublicMetasController], |
|
||||||
providers: [PublicMetasService], |
|
||||||
}) |
|
||||||
export class PublicMetasModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { SharedBasesService } from '../../services/shared-bases.service'; |
|
||||||
import { SharedBasesController } from '../../controllers/shared-bases.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [SharedBasesController], |
|
||||||
providers: [SharedBasesService], |
|
||||||
}) |
|
||||||
export class SharedBasesModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { SortsService } from '../../services/sorts.service'; |
|
||||||
import { SortsController } from '../../controllers/sorts.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [SortsController], |
|
||||||
providers: [SortsService], |
|
||||||
}) |
|
||||||
export class SortsModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { SyncService } from '../../services/sync.service'; |
|
||||||
import { SyncController } from '../../controllers/sync.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [SyncController], |
|
||||||
providers: [SyncService], |
|
||||||
}) |
|
||||||
export class SyncModule {} |
|
@ -1,10 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { TablesService } from '../../services/tables.service'; |
|
||||||
import { TablesController } from '../../controllers/tables.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [TablesController], |
|
||||||
providers: [TablesService], |
|
||||||
exports: [TablesService], |
|
||||||
}) |
|
||||||
export class TablesModule {} |
|
@ -1,9 +1,7 @@ |
|||||||
import { Module } from '@nestjs/common'; |
import { Module } from '@nestjs/common'; |
||||||
import { TestService } from './test.service'; |
import { TestController } from '../../controllers/test/test.controller'; |
||||||
import { TestController } from './test.controller'; |
|
||||||
|
|
||||||
@Module({ |
@Module({ |
||||||
controllers: [TestController], |
controllers: [TestController], |
||||||
providers: [TestService], |
|
||||||
}) |
}) |
||||||
export class TestModule {} |
export class TestModule {} |
||||||
|
@ -1,19 +0,0 @@ |
|||||||
import { Test } from '@nestjs/testing'; |
|
||||||
import { TestService } from './test.service'; |
|
||||||
import type { TestingModule } from '@nestjs/testing'; |
|
||||||
|
|
||||||
describe('TestService', () => { |
|
||||||
let service: TestService; |
|
||||||
|
|
||||||
beforeEach(async () => { |
|
||||||
const module: TestingModule = await Test.createTestingModule({ |
|
||||||
providers: [TestService], |
|
||||||
}).compile(); |
|
||||||
|
|
||||||
service = module.get<TestService>(TestService); |
|
||||||
}); |
|
||||||
|
|
||||||
it('should be defined', () => { |
|
||||||
expect(service).toBeDefined(); |
|
||||||
}); |
|
||||||
}); |
|
@ -1,4 +0,0 @@ |
|||||||
import { Injectable } from '@nestjs/common'; |
|
||||||
|
|
||||||
@Injectable() |
|
||||||
export class TestService {} |
|
@ -1,7 +0,0 @@ |
|||||||
import { User } from './user'; |
|
||||||
|
|
||||||
describe('User', () => { |
|
||||||
it('should be defined', () => { |
|
||||||
expect(new User()).toBeDefined(); |
|
||||||
}); |
|
||||||
}); |
|
@ -1 +0,0 @@ |
|||||||
export class User {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { UtilsService } from '../../services/utils.service'; |
|
||||||
import { UtilsController } from '../../controllers/utils.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [UtilsController], |
|
||||||
providers: [UtilsService], |
|
||||||
}) |
|
||||||
export class UtilsModule {} |
|
@ -1,9 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { ViewColumnsService } from '../../services/view-columns.service'; |
|
||||||
import { ViewColumnsController } from '../../controllers/view-columns.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [ViewColumnsController], |
|
||||||
providers: [ViewColumnsService], |
|
||||||
}) |
|
||||||
export class ViewColumnsModule {} |
|
@ -1,11 +0,0 @@ |
|||||||
import { Module } from '@nestjs/common'; |
|
||||||
import { TablesModule } from '../tables/tables.module'; |
|
||||||
import { ViewsService } from '../../services/views.service'; |
|
||||||
import { ViewsController } from '../../controllers/views.controller'; |
|
||||||
|
|
||||||
@Module({ |
|
||||||
controllers: [ViewsController], |
|
||||||
providers: [ViewsService], |
|
||||||
imports: [TablesModule], |
|
||||||
}) |
|
||||||
export class ViewsModule {} |
|
@ -1,6 +1,6 @@ |
|||||||
import { Injectable } from '@nestjs/common'; |
import { Injectable } from '@nestjs/common'; |
||||||
import { NcError } from '../helpers/catchError'; |
import { NcError } from '../../helpers/catchError'; |
||||||
import { Model, Project } from '../models'; |
import { Model, Project } from '../../models'; |
||||||
import getSwaggerJSON from './swagger/getSwaggerJSON'; |
import getSwaggerJSON from './swagger/getSwaggerJSON'; |
||||||
|
|
||||||
@Injectable() |
@Injectable() |
@ -1,6 +1,6 @@ |
|||||||
import Noco from '../../Noco'; |
import Noco from '../../../Noco'; |
||||||
import { getModelPaths, getViewPaths } from './templates/paths'; |
import { getModelPaths, getViewPaths } from './templates/paths'; |
||||||
import type { Model, Project } from '../../models'; |
import type { Model, Project } from '../../../models'; |
||||||
import type { SwaggerColumn } from './getSwaggerColumnMetas'; |
import type { SwaggerColumn } from './getSwaggerColumnMetas'; |
||||||
import type { SwaggerView } from './getSwaggerJSON'; |
import type { SwaggerView } from './getSwaggerJSON'; |
||||||
|
|
@ -1,6 +1,6 @@ |
|||||||
import Noco from '../../Noco'; |
import Noco from '../../../Noco'; |
||||||
import { getModelSchemas, getViewSchemas } from './templates/schemas'; |
import { getModelSchemas, getViewSchemas } from './templates/schemas'; |
||||||
import type { Model, Project } from '../../models'; |
import type { Model, Project } from '../../../models'; |
||||||
|
|
||||||
import type { SwaggerColumn } from './getSwaggerColumnMetas'; |
import type { SwaggerColumn } from './getSwaggerColumnMetas'; |
||||||
import type { SwaggerView } from './getSwaggerJSON'; |
import type { SwaggerView } from './getSwaggerJSON'; |
@ -1,11 +1,11 @@ |
|||||||
import { UITypes } from 'nocodb-sdk'; |
import { UITypes } from 'nocodb-sdk'; |
||||||
import SwaggerTypes from '../../db/sql-mgr/code/routers/xc-ts/SwaggerTypes'; |
import SwaggerTypes from '../../../db/sql-mgr/code/routers/xc-ts/SwaggerTypes'; |
||||||
import Noco from '../../Noco'; |
import Noco from '../../../Noco'; |
||||||
import type { |
import type { |
||||||
Column, |
Column, |
||||||
LinkToAnotherRecordColumn, |
LinkToAnotherRecordColumn, |
||||||
Project, |
Project, |
||||||
} from '../../models'; |
} from '../../../models'; |
||||||
|
|
||||||
export default async ( |
export default async ( |
||||||
columns: Column[], |
columns: Column[], |
@ -1,5 +1,5 @@ |
|||||||
import { RelationTypes, UITypes } from 'nocodb-sdk'; |
import { RelationTypes, UITypes } from 'nocodb-sdk'; |
||||||
import type { LinkToAnotherRecordColumn } from '../../../models'; |
import type { LinkToAnotherRecordColumn } from '../../../../models'; |
||||||
import type { SwaggerColumn } from '../getSwaggerColumnMetas'; |
import type { SwaggerColumn } from '../getSwaggerColumnMetas'; |
||||||
|
|
||||||
export const rowIdParam = { |
export const rowIdParam = { |
@ -1,19 +0,0 @@ |
|||||||
import { Test } from '@nestjs/testing'; |
|
||||||
import { ImportService } from './import.service'; |
|
||||||
import type { TestingModule } from '@nestjs/testing'; |
|
||||||
|
|
||||||
describe('ImportService', () => { |
|
||||||
let service: ImportService; |
|
||||||
|
|
||||||
beforeEach(async () => { |
|
||||||
const module: TestingModule = await Test.createTestingModule({ |
|
||||||
providers: [ImportService], |
|
||||||
}).compile(); |
|
||||||
|
|
||||||
service = module.get<ImportService>(ImportService); |
|
||||||
}); |
|
||||||
|
|
||||||
it('should be defined', () => { |
|
||||||
expect(service).toBeDefined(); |
|
||||||
}); |
|
||||||
}); |
|
@ -1,4 +0,0 @@ |
|||||||
import { Injectable } from '@nestjs/common'; |
|
||||||
|
|
||||||
@Injectable() |
|
||||||
export class ImportService {} |
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue