|
|
|
@ -1,29 +1,7 @@
|
|
|
|
|
import autoBind from 'auto-bind'; |
|
|
|
|
import _ from 'lodash'; |
|
|
|
|
|
|
|
|
|
import Model from '../../../../models/Model'; |
|
|
|
|
import type SelectOption from '../../../../models/SelectOption'; |
|
|
|
|
import type { XKnex } from '../../index'; |
|
|
|
|
import type LinkToAnotherRecordColumn from '../../../../models/LinkToAnotherRecordColumn'; |
|
|
|
|
import type RollupColumn from '../../../../models/RollupColumn'; |
|
|
|
|
import type LookupColumn from '../../../../models/LookupColumn'; |
|
|
|
|
import DataLoader from 'dataloader'; |
|
|
|
|
import Column from '../../../../models/Column'; |
|
|
|
|
import type { XcFilter, XcFilterWithAlias } from '../BaseModel'; |
|
|
|
|
import conditionV2 from './conditionV2'; |
|
|
|
|
import Filter, { |
|
|
|
|
COMPARISON_OPS, |
|
|
|
|
COMPARISON_SUB_OPS, |
|
|
|
|
IS_WITHIN_COMPARISON_SUB_OPS, |
|
|
|
|
} from '../../../../models/Filter'; |
|
|
|
|
import sortV2 from './sortV2'; |
|
|
|
|
import Sort from '../../../../models/Sort'; |
|
|
|
|
import type FormulaColumn from '../../../../models/FormulaColumn'; |
|
|
|
|
import genRollupSelectv2 from './genRollupSelectv2'; |
|
|
|
|
import formulaQueryBuilderv2 from './formulav2/formulaQueryBuilderv2'; |
|
|
|
|
import type { Knex } from 'knex'; |
|
|
|
|
import View from '../../../../models/View'; |
|
|
|
|
import type { SortType } from 'nocodb-sdk'; |
|
|
|
|
import { |
|
|
|
|
AuditOperationSubTypes, |
|
|
|
|
AuditOperationTypes, |
|
|
|
@ -32,8 +10,20 @@ import {
|
|
|
|
|
UITypes, |
|
|
|
|
ViewTypes, |
|
|
|
|
} from 'nocodb-sdk'; |
|
|
|
|
import formSubmissionEmailTemplate from '../../../../utils/common/formSubmissionEmailTemplate'; |
|
|
|
|
import ejs from 'ejs'; |
|
|
|
|
import Validator from 'validator'; |
|
|
|
|
import { customAlphabet } from 'nanoid'; |
|
|
|
|
import DOMPurify from 'isomorphic-dompurify'; |
|
|
|
|
import Model from '../../../../models/Model'; |
|
|
|
|
import Column from '../../../../models/Column'; |
|
|
|
|
import Filter, { |
|
|
|
|
COMPARISON_OPS, |
|
|
|
|
COMPARISON_SUB_OPS, |
|
|
|
|
IS_WITHIN_COMPARISON_SUB_OPS, |
|
|
|
|
} from '../../../../models/Filter'; |
|
|
|
|
import Sort from '../../../../models/Sort'; |
|
|
|
|
import View from '../../../../models/View'; |
|
|
|
|
import formSubmissionEmailTemplate from '../../../../utils/common/formSubmissionEmailTemplate'; |
|
|
|
|
import Audit from '../../../../models/Audit'; |
|
|
|
|
import FormView from '../../../../models/FormView'; |
|
|
|
|
import Hook from '../../../../models/Hook'; |
|
|
|
@ -42,12 +32,22 @@ import {
|
|
|
|
|
_transformSubmittedFormDataForEmail, |
|
|
|
|
invokeWebhook, |
|
|
|
|
} from '../../../../meta/helpers/webhookHelpers'; |
|
|
|
|
import Validator from 'validator'; |
|
|
|
|
import { customValidators } from './customValidators'; |
|
|
|
|
import { NcError } from '../../../../meta/helpers/catchError'; |
|
|
|
|
import { customAlphabet } from 'nanoid'; |
|
|
|
|
import DOMPurify from 'isomorphic-dompurify'; |
|
|
|
|
import { customValidators } from './customValidators'; |
|
|
|
|
import formulaQueryBuilderv2 from './formulav2/formulaQueryBuilderv2'; |
|
|
|
|
import genRollupSelectv2 from './genRollupSelectv2'; |
|
|
|
|
import sortV2 from './sortV2'; |
|
|
|
|
import conditionV2 from './conditionV2'; |
|
|
|
|
import { sanitize, unsanitize } from './helpers/sanitize'; |
|
|
|
|
import type { SortType } from 'nocodb-sdk'; |
|
|
|
|
import type { Knex } from 'knex'; |
|
|
|
|
import type FormulaColumn from '../../../../models/FormulaColumn'; |
|
|
|
|
import type { XcFilter, XcFilterWithAlias } from '../BaseModel'; |
|
|
|
|
import type LookupColumn from '../../../../models/LookupColumn'; |
|
|
|
|
import type RollupColumn from '../../../../models/RollupColumn'; |
|
|
|
|
import type LinkToAnotherRecordColumn from '../../../../models/LinkToAnotherRecordColumn'; |
|
|
|
|
import type { XKnex } from '../../index'; |
|
|
|
|
import type SelectOption from '../../../../models/SelectOption'; |
|
|
|
|
import type QrCodeColumn from '../../../../models/QrCodeColumn'; |
|
|
|
|
import type BarcodeColumn from '../../../../models/BarcodeColumn'; |
|
|
|
|
|
|
|
|
|