|
|
@ -2,9 +2,9 @@ import { nocoExecute } from 'nc-help'; |
|
|
|
import { isSystemColumn, UITypes } from 'nocodb-sdk'; |
|
|
|
import { isSystemColumn, UITypes } from 'nocodb-sdk'; |
|
|
|
import * as XLSX from 'xlsx'; |
|
|
|
import * as XLSX from 'xlsx'; |
|
|
|
import papaparse from 'papaparse'; |
|
|
|
import papaparse from 'papaparse'; |
|
|
|
import { BaseModelSqlv2 } from '../../db/BaseModelSqlv2' |
|
|
|
import { BaseModelSqlv2 } from '../../db/BaseModelSqlv2'; |
|
|
|
import { NcError } from '../../helpers/catchError' |
|
|
|
import { NcError } from '../../helpers/catchError'; |
|
|
|
import getAst from '../../helpers/getAst' |
|
|
|
import getAst from '../../helpers/getAst'; |
|
|
|
import { Model, View } from '../../models'; |
|
|
|
import { Model, View } from '../../models'; |
|
|
|
import Base from '../../models/Base'; |
|
|
|
import Base from '../../models/Base'; |
|
|
|
import Column from '../../models/Column'; |
|
|
|
import Column from '../../models/Column'; |
|
|
@ -20,6 +20,12 @@ export interface PathParams { |
|
|
|
viewName?: string; |
|
|
|
viewName?: string; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface OldPathParams { |
|
|
|
|
|
|
|
projectId: string; |
|
|
|
|
|
|
|
tableName: string; |
|
|
|
|
|
|
|
viewName?: string; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export async function getViewAndModelByAliasOrId(param: { |
|
|
|
export async function getViewAndModelByAliasOrId(param: { |
|
|
|
projectName: string; |
|
|
|
projectName: string; |
|
|
|
tableName: string; |
|
|
|
tableName: string; |
|
|
|