Browse Source

chore(gui-v2): nocodb-sdk-daily -> nocodb-sdk

pull/3273/head
Wing-Kam Wong 2 years ago
parent
commit
5e8e0b74aa
  1. 2
      packages/nocodb/src/__tests__/restv2.test.ts
  2. 2
      packages/nocodb/src/lib/db/sql-client/lib/mssql/MssqlClient.ts
  3. 2
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts
  4. 2
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/conditionV2.ts
  5. 2
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts
  6. 2
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/genRollupSelect.ts
  7. 2
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/genRollupSelectv2.ts
  8. 2
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/helpers/getAst.ts
  9. 2
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/sortV2.ts
  10. 2
      packages/nocodb/src/lib/db/sql-mgr/code/models/xc/BaseModelXcMeta.ts
  11. 2
      packages/nocodb/src/lib/meta/NcMetaMgr.ts
  12. 2
      packages/nocodb/src/lib/meta/api/auditApis.ts
  13. 2
      packages/nocodb/src/lib/meta/api/dataApis/helpers.ts
  14. 2
      packages/nocodb/src/lib/meta/api/filterApis.ts
  15. 2
      packages/nocodb/src/lib/meta/api/formViewApis.ts
  16. 2
      packages/nocodb/src/lib/meta/api/galleryViewApis.ts
  17. 2
      packages/nocodb/src/lib/meta/api/gridViewApis.ts
  18. 2
      packages/nocodb/src/lib/meta/api/hookApis.ts
  19. 2
      packages/nocodb/src/lib/meta/api/hookFilterApis.ts
  20. 2
      packages/nocodb/src/lib/meta/api/metaDiffApis.ts
  21. 2
      packages/nocodb/src/lib/meta/api/pluginApis.ts
  22. 2
      packages/nocodb/src/lib/meta/api/projectApis.ts
  23. 2
      packages/nocodb/src/lib/meta/api/projectUserApis.ts
  24. 2
      packages/nocodb/src/lib/meta/api/publicApis/publicDataApis.ts
  25. 2
      packages/nocodb/src/lib/meta/api/publicApis/publicDataExportApis.ts
  26. 2
      packages/nocodb/src/lib/meta/api/publicApis/publicMetaApis.ts
  27. 2
      packages/nocodb/src/lib/meta/api/sortApis.ts
  28. 2
      packages/nocodb/src/lib/meta/api/swagger/helpers/getSwaggerColumnMetas.ts
  29. 2
      packages/nocodb/src/lib/meta/api/swagger/helpers/getSwaggerJSON.ts
  30. 2
      packages/nocodb/src/lib/meta/api/swagger/helpers/templates/params.ts
  31. 2
      packages/nocodb/src/lib/meta/api/swagger/helpers/templates/paths.ts
  32. 4
      packages/nocodb/src/lib/meta/api/sync/helpers/job.ts
  33. 2
      packages/nocodb/src/lib/meta/api/sync/helpers/readAndProcessData.ts
  34. 2
      packages/nocodb/src/lib/meta/api/tableApis.ts
  35. 2
      packages/nocodb/src/lib/meta/api/userApi/initAdminFromEnv.ts
  36. 2
      packages/nocodb/src/lib/meta/api/userApi/userApis.ts
  37. 2
      packages/nocodb/src/lib/meta/api/viewApis.ts
  38. 2
      packages/nocodb/src/lib/meta/handlersv2/ncCreateLookup.ts
  39. 2
      packages/nocodb/src/lib/meta/helpers/NcPluginMgrv2.ts
  40. 2
      packages/nocodb/src/lib/meta/helpers/PagedResponse.ts
  41. 2
      packages/nocodb/src/lib/meta/helpers/getColumnPropsFromUIDT.ts
  42. 2
      packages/nocodb/src/lib/meta/helpers/getColumnUiType.ts
  43. 2
      packages/nocodb/src/lib/meta/helpers/mapDefaultPrimaryValue.ts
  44. 2
      packages/nocodb/src/lib/meta/helpers/populateSamplePayload.ts
  45. 2
      packages/nocodb/src/lib/meta/helpers/webhookHelpers.ts
  46. 2
      packages/nocodb/src/lib/models/Audit.ts
  47. 2
      packages/nocodb/src/lib/models/Base.ts
  48. 2
      packages/nocodb/src/lib/models/Column.ts
  49. 2
      packages/nocodb/src/lib/models/Filter.ts
  50. 2
      packages/nocodb/src/lib/models/FormView.ts
  51. 2
      packages/nocodb/src/lib/models/FormViewColumn.ts
  52. 2
      packages/nocodb/src/lib/models/GalleryView.ts
  53. 2
      packages/nocodb/src/lib/models/GridViewColumn.ts
  54. 2
      packages/nocodb/src/lib/models/Hook.ts
  55. 2
      packages/nocodb/src/lib/models/HookFilter.ts
  56. 2
      packages/nocodb/src/lib/models/HookLog.ts
  57. 2
      packages/nocodb/src/lib/models/Model.ts
  58. 2
      packages/nocodb/src/lib/models/ModelRoleVisibility.ts
  59. 2
      packages/nocodb/src/lib/models/Plugin.ts
  60. 2
      packages/nocodb/src/lib/models/Project.ts
  61. 2
      packages/nocodb/src/lib/models/Sort.ts
  62. 2
      packages/nocodb/src/lib/models/User.ts
  63. 2
      packages/nocodb/src/lib/models/View.ts
  64. 2
      packages/nocodb/src/lib/plugins/backblaze/index.ts
  65. 2
      packages/nocodb/src/lib/plugins/discord/index.ts
  66. 2
      packages/nocodb/src/lib/plugins/gcs/index.ts
  67. 2
      packages/nocodb/src/lib/plugins/linode/index.ts
  68. 2
      packages/nocodb/src/lib/plugins/mailerSend/index.ts
  69. 2
      packages/nocodb/src/lib/plugins/mattermost/index.ts
  70. 2
      packages/nocodb/src/lib/plugins/mino/index.ts
  71. 2
      packages/nocodb/src/lib/plugins/ovhCloud/index.ts
  72. 2
      packages/nocodb/src/lib/plugins/s3/index.ts
  73. 2
      packages/nocodb/src/lib/plugins/scaleway/index.ts
  74. 2
      packages/nocodb/src/lib/plugins/ses/index.ts
  75. 2
      packages/nocodb/src/lib/plugins/slack/index.ts
  76. 2
      packages/nocodb/src/lib/plugins/smtp/index.ts
  77. 2
      packages/nocodb/src/lib/plugins/spaces/index.ts
  78. 2
      packages/nocodb/src/lib/plugins/teams/index.ts
  79. 2
      packages/nocodb/src/lib/plugins/twilio/index.ts
  80. 2
      packages/nocodb/src/lib/plugins/twilioWhatsapp/index.ts
  81. 2
      packages/nocodb/src/lib/plugins/upcloud/index.ts
  82. 2
      packages/nocodb/src/lib/plugins/vultr/index.ts
  83. 2
      packages/nocodb/src/lib/utils/common/BaseApiBuilder.ts
  84. 2
      packages/nocodb/src/lib/v1-legacy/plugins/azure.ts
  85. 2
      packages/nocodb/src/lib/v1-legacy/plugins/brand.ts
  86. 2
      packages/nocodb/src/lib/v1-legacy/plugins/cache.ts
  87. 2
      packages/nocodb/src/lib/v1-legacy/plugins/discord.ts
  88. 2
      packages/nocodb/src/lib/v1-legacy/plugins/ee.ts
  89. 2
      packages/nocodb/src/lib/v1-legacy/plugins/githubAuth.ts
  90. 2
      packages/nocodb/src/lib/v1-legacy/plugins/googleAuth.ts
  91. 2
      packages/nocodb/src/lib/v1-legacy/plugins/mattermost.ts
  92. 2
      packages/nocodb/src/lib/v1-legacy/plugins/ses.ts
  93. 2
      packages/nocodb/src/lib/v1-legacy/plugins/slack.ts
  94. 2
      packages/nocodb/src/lib/v1-legacy/plugins/smtp.ts
  95. 2
      packages/nocodb/src/lib/v1-legacy/plugins/twilio.ts
  96. 2
      packages/nocodb/src/lib/v1-legacy/templates/NcTemplateParser.ts
  97. 2
      packages/nocodb/src/lib/version-upgrader/ncProjectUpgraderV2_0090000.ts

2
packages/nocodb/src/__tests__/restv2.test.ts

@ -5,7 +5,7 @@ import request from 'supertest';
import { Noco } from '../lib';
import NcConfigFactory from '../lib/utils/NcConfigFactory';
import { UITypes } from 'nocodb-sdk-daily';
import { UITypes } from 'nocodb-sdk';
const knex = require('knex');

2
packages/nocodb/src/lib/db/sql-client/lib/mssql/MssqlClient.ts

@ -1,4 +1,4 @@
import { ColumnType } from 'nocodb-sdk-daily';
import { ColumnType } from 'nocodb-sdk';
import knex from 'knex';
import KnexClient from '../KnexClient';

2
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts

@ -25,7 +25,7 @@ import {
SortType,
UITypes,
ViewTypes,
} from 'nocodb-sdk-daily';
} from 'nocodb-sdk';
import formSubmissionEmailTemplate from '../../../../utils/common/formSubmissionEmailTemplate';
import ejs from 'ejs';
import Audit from '../../../../models/Audit';

2
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/conditionV2.ts

@ -8,7 +8,7 @@ import genRollupSelectv2 from './genRollupSelectv2';
import RollupColumn from '../../../../models/RollupColumn';
import formulaQueryBuilderv2 from './formulav2/formulaQueryBuilderv2';
import FormulaColumn from '../../../../models/FormulaColumn';
import { RelationTypes, UITypes } from 'nocodb-sdk-daily';
import { RelationTypes, UITypes } from 'nocodb-sdk';
// import LookupColumn from '../../../models/LookupColumn';
import { sanitize } from './helpers/sanitize';

2
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts

@ -7,7 +7,7 @@ import FormulaColumn from '../../../../../models/FormulaColumn';
import { XKnex } from '../../../index';
import LinkToAnotherRecordColumn from '../../../../../models/LinkToAnotherRecordColumn';
import LookupColumn from '../../../../../models/LookupColumn';
import { jsepCurlyHook, UITypes } from 'nocodb-sdk-daily';
import { jsepCurlyHook, UITypes } from 'nocodb-sdk';
// todo: switch function based on database

2
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/genRollupSelect.ts

@ -1,5 +1,5 @@
import Knex from 'knex';
import { RelationTypes } from 'nocodb-sdk-daily';
import { RelationTypes } from 'nocodb-sdk';
export default function ({
knex,

2
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/genRollupSelectv2.ts

@ -2,7 +2,7 @@ import RollupColumn from '../../../../models/RollupColumn';
import { XKnex } from '../../index';
import LinkToAnotherRecordColumn from '../../../../models/LinkToAnotherRecordColumn';
import { QueryBuilder } from 'knex';
import { RelationTypes } from 'nocodb-sdk-daily';
import { RelationTypes } from 'nocodb-sdk';
export default async function ({
knex,

2
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/helpers/getAst.ts

@ -1,5 +1,5 @@
import View from '../../../../../models/View';
import { isSystemColumn, UITypes } from 'nocodb-sdk-daily';
import { isSystemColumn, UITypes } from 'nocodb-sdk';
import Model from '../../../../../models/Model';
import LinkToAnotherRecordColumn from '../../../../../models/LinkToAnotherRecordColumn';

2
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/sortV2.ts

@ -7,7 +7,7 @@ import RollupColumn from '../../../../models/RollupColumn';
import LookupColumn from '../../../../models/LookupColumn';
import formulaQueryBuilderv2 from './formulav2/formulaQueryBuilderv2';
import FormulaColumn from '../../../../models/FormulaColumn';
import { RelationTypes, UITypes } from 'nocodb-sdk-daily';
import { RelationTypes, UITypes } from 'nocodb-sdk';
import { sanitize } from './helpers/sanitize';
export default async function sortV2(

2
packages/nocodb/src/lib/db/sql-mgr/code/models/xc/BaseModelXcMeta.ts

@ -1,6 +1,6 @@
import BaseRender from '../../BaseRender';
import mapDefaultPrimaryValue from '../../../../../meta/helpers/mapDefaultPrimaryValue';
import { UITypes } from 'nocodb-sdk-daily';
import { UITypes } from 'nocodb-sdk';
abstract class BaseModelXcMeta extends BaseRender {
protected abstract _getAbstractType(column: any): any;

2
packages/nocodb/src/lib/meta/NcMetaMgr.ts

@ -40,7 +40,7 @@ import { promisify } from 'util';
import NcTemplateParser from '../v1-legacy/templates/NcTemplateParser';
import { defaultConnectionConfig } from '../utils/NcConfigFactory';
import xcMetaDiff from './handlers/xcMetaDiff';
import { UITypes } from 'nocodb-sdk-daily';
import { UITypes } from 'nocodb-sdk';
const randomID = customAlphabet('1234567890abcdefghijklmnopqrstuvwxyz_', 10);
const XC_PLUGIN_DET = 'XC_PLUGIN_DET';

2
packages/nocodb/src/lib/meta/api/auditApis.ts

@ -1,6 +1,6 @@
import { Request, Response, Router } from 'express';
import Audit from '../../models/Audit';
import { AuditOperationSubTypes, AuditOperationTypes } from 'nocodb-sdk-daily';
import { AuditOperationSubTypes, AuditOperationTypes } from 'nocodb-sdk';
import Model from '../../models/Model';
import { PagedResponseImpl } from '../helpers/PagedResponse';
import ncMetaAclMw from '../helpers/ncMetaAclMw';

2
packages/nocodb/src/lib/meta/api/dataApis/helpers.ts

@ -5,7 +5,7 @@ import { NcError } from '../../helpers/catchError';
import { Request } from 'express';
import Base from '../../../models/Base';
import NcConnectionMgrv2 from '../../../utils/common/NcConnectionMgrv2';
import { isSystemColumn, UITypes } from 'nocodb-sdk-daily';
import { isSystemColumn, UITypes } from 'nocodb-sdk';
import { nocoExecute } from 'nc-help';
import * as XLSX from 'xlsx';

2
packages/nocodb/src/lib/meta/api/filterApis.ts

@ -4,7 +4,7 @@ import Model from '../../models/Model';
// @ts-ignore
import { PagedResponseImpl } from '../helpers/PagedResponse';
// @ts-ignore
import { Table, TableList, TableListParams, TableReq } from 'nocodb-sdk-daily';
import { Table, TableList, TableListParams, TableReq } from 'nocodb-sdk';
// @ts-ignore
import ProjectMgrv2 from '../../db/sql-mgr/v2/ProjectMgrv2';
// @ts-ignore

2
packages/nocodb/src/lib/meta/api/formViewApis.ts

@ -3,7 +3,7 @@ import { Request, Response, Router } from 'express';
import Model from '../../models/Model';
// @ts-ignore
import { PagedResponseImpl } from '../helpers/PagedResponse';
import { FormType, ViewTypes } from 'nocodb-sdk-daily';
import { FormType, ViewTypes } from 'nocodb-sdk';
// @ts-ignore
import ProjectMgrv2 from '../../db/sql-mgr/v2/ProjectMgrv2';
// @ts-ignore

2
packages/nocodb/src/lib/meta/api/galleryViewApis.ts

@ -1,5 +1,5 @@
import { Request, Response, Router } from 'express';
import { GalleryType, ViewTypes } from 'nocodb-sdk-daily';
import { GalleryType, ViewTypes } from 'nocodb-sdk';
import View from '../../models/View';
import GalleryView from '../../models/GalleryView';
import ncMetaAclMw from '../helpers/ncMetaAclMw';

2
packages/nocodb/src/lib/meta/api/gridViewApis.ts

@ -3,7 +3,7 @@ import { Request, Router } from 'express';
import Model from '../../models/Model';
// @ts-ignore
import { PagedResponseImpl } from '../helpers/PagedResponse';
import { ViewTypes } from 'nocodb-sdk-daily';
import { ViewTypes } from 'nocodb-sdk';
// @ts-ignore
import ProjectMgrv2 from '../../db/sql-mgr/v2/ProjectMgrv2';
// @ts-ignore

2
packages/nocodb/src/lib/meta/api/hookApis.ts

@ -1,7 +1,7 @@
import catchError from '../helpers/catchError';
import { Request, Response, Router } from 'express';
import Hook from '../../models/Hook';
import { HookListType, HookType } from 'nocodb-sdk-daily';
import { HookListType, HookType } from 'nocodb-sdk';
import { PagedResponseImpl } from '../helpers/PagedResponse';
import { invokeWebhook } from '../helpers/webhookHelpers';
import Model from '../../models/Model';

2
packages/nocodb/src/lib/meta/api/hookFilterApis.ts

@ -4,7 +4,7 @@ import Model from '../../models/Model';
// @ts-ignore
import { PagedResponseImpl } from '../helpers/PagedResponse';
// @ts-ignore
import { Table, TableList, TableListParams, TableReq } from 'nocodb-sdk-daily';
import { Table, TableList, TableListParams, TableReq } from 'nocodb-sdk';
// @ts-ignore
import ProjectMgrv2 from '../../db/sql-mgr/v2/ProjectMgrv2';
// @ts-ignore

2
packages/nocodb/src/lib/meta/api/metaDiffApis.ts

@ -4,7 +4,7 @@ import ncMetaAclMw from '../helpers/ncMetaAclMw';
import Model from '../../models/Model';
import Project from '../../models/Project';
import NcConnectionMgrv2 from '../../utils/common/NcConnectionMgrv2';
import { isVirtualCol, ModelTypes, RelationTypes, UITypes } from 'nocodb-sdk-daily';
import { isVirtualCol, ModelTypes, RelationTypes, UITypes } from 'nocodb-sdk';
import { Router } from 'express';
import Base from '../../models/Base';
import ModelXcMetaFactory from '../../db/sql-mgr/code/models/xc/ModelXcMetaFactory';

2
packages/nocodb/src/lib/meta/api/pluginApis.ts

@ -1,7 +1,7 @@
import { Request, Response, Router } from 'express';
import { PagedResponseImpl } from '../helpers/PagedResponse';
import Plugin from '../../models/Plugin';
import { PluginType } from 'nocodb-sdk-daily';
import { PluginType } from 'nocodb-sdk';
import NcPluginMgrv2 from '../helpers/NcPluginMgrv2';
import ncMetaAclMw from '../helpers/ncMetaAclMw';
import { Tele } from 'nc-help';

2
packages/nocodb/src/lib/meta/api/projectApis.ts

@ -1,6 +1,6 @@
import { Request, Response } from 'express';
import Project from '../../models/Project';
import { ModelTypes, ProjectListType, UITypes } from 'nocodb-sdk-daily';
import { ModelTypes, ProjectListType, UITypes } from 'nocodb-sdk';
import DOMPurify from 'isomorphic-dompurify';
import { PagedResponseImpl } from '../helpers/PagedResponse';
import syncMigration from '../helpers/syncMigration';

2
packages/nocodb/src/lib/meta/api/projectUserApis.ts

@ -13,7 +13,7 @@ import { CacheGetType, CacheScope, MetaTable } from '../../utils/globals';
import * as ejs from 'ejs';
import NcPluginMgrv2 from '../helpers/NcPluginMgrv2';
import Noco from '../../Noco';
import { PluginCategory } from 'nocodb-sdk-daily';
import { PluginCategory } from 'nocodb-sdk';
import { metaApiMetrics } from '../helpers/apiMetrics';
import { randomTokenString } from '../helpers/stringHelpers';

2
packages/nocodb/src/lib/meta/api/publicApis/publicDataApis.ts

@ -7,7 +7,7 @@ import { PagedResponseImpl } from '../../helpers/PagedResponse';
import View from '../../../models/View';
import catchError, { NcError } from '../../helpers/catchError';
import multer from 'multer';
import { ErrorMessages, UITypes, ViewTypes } from 'nocodb-sdk-daily';
import { ErrorMessages, UITypes, ViewTypes } from 'nocodb-sdk';
import Column from '../../../models/Column';
import LinkToAnotherRecordColumn from '../../../models/LinkToAnotherRecordColumn';
import NcPluginMgrv2 from '../../helpers/NcPluginMgrv2';

2
packages/nocodb/src/lib/meta/api/publicApis/publicDataExportApis.ts

@ -6,7 +6,7 @@ import Base from '../../../models/Base';
import NcConnectionMgrv2 from '../../../utils/common/NcConnectionMgrv2';
import { nocoExecute } from 'nc-help';
import papaparse from 'papaparse';
import { ErrorMessages, isSystemColumn, UITypes, ViewTypes } from 'nocodb-sdk-daily';
import { ErrorMessages, isSystemColumn, UITypes, ViewTypes } from 'nocodb-sdk';
import Column from '../../../models/Column';
import LinkToAnotherRecordColumn from '../../../models/LinkToAnotherRecordColumn';
import LookupColumn from '../../../models/LookupColumn';

2
packages/nocodb/src/lib/meta/api/publicApis/publicMetaApis.ts

@ -7,7 +7,7 @@ import {
LinkToAnotherRecordType,
RelationTypes,
UITypes,
} from 'nocodb-sdk-daily';
} from 'nocodb-sdk';
import Column from '../../../models/Column';
import Base from '../../../models/Base';
import Project from '../../../models/Project';

2
packages/nocodb/src/lib/meta/api/sortApis.ts

@ -3,7 +3,7 @@ import { Request, Response, Router } from 'express';
import Model from '../../models/Model';
// @ts-ignore
import { PagedResponseImpl } from '../helpers/PagedResponse';
import { SortListType, TableReqType, TableType } from 'nocodb-sdk-daily';
import { SortListType, TableReqType, TableType } from 'nocodb-sdk';
// @ts-ignore
import ProjectMgrv2 from '../../db/sql-mgr/v2/ProjectMgrv2';
// @ts-ignore

2
packages/nocodb/src/lib/meta/api/swagger/helpers/getSwaggerColumnMetas.ts

@ -1,4 +1,4 @@
import { UITypes } from 'nocodb-sdk-daily';
import { UITypes } from 'nocodb-sdk';
import LinkToAnotherRecordColumn from '../../../../models/LinkToAnotherRecordColumn';
import SwaggerTypes from '../../../../db/sql-mgr/code/routers/xc-ts/SwaggerTypes';
import Column from '../../../../models/Column';

2
packages/nocodb/src/lib/meta/api/swagger/helpers/getSwaggerJSON.ts

@ -5,7 +5,7 @@ import getPaths from './getPaths';
import getSchemas from './getSchemas';
import Project from '../../../../models/Project';
import getSwaggerColumnMetas from './getSwaggerColumnMetas';
import { ViewTypes } from 'nocodb-sdk-daily';
import { ViewTypes } from 'nocodb-sdk';
import GridViewColumn from '../../../../models/GridViewColumn';
import View from '../../../../models/View';

2
packages/nocodb/src/lib/meta/api/swagger/helpers/templates/params.ts

@ -1,5 +1,5 @@
import { SwaggerColumn } from '../getSwaggerColumnMetas';
import { RelationTypes, UITypes } from 'nocodb-sdk-daily';
import { RelationTypes, UITypes } from 'nocodb-sdk';
import LinkToAnotherRecordColumn from '../../../../../models/LinkToAnotherRecordColumn';
export const rowIdParam = {

2
packages/nocodb/src/lib/meta/api/swagger/helpers/templates/paths.ts

@ -1,4 +1,4 @@
import { ModelTypes, UITypes } from 'nocodb-sdk-daily';
import { ModelTypes, UITypes } from 'nocodb-sdk';
import {
columnNameParam,
columnNameQueryParam,

4
packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

@ -1,9 +1,9 @@
import FetchAT from './fetchAT';
import { UITypes } from 'nocodb-sdk-daily';
import { UITypes } from 'nocodb-sdk';
import { Tele } from 'nc-help';
// import * as sMap from './syncMap';
import { Api } from 'nocodb-sdk-daily';
import { Api } from 'nocodb-sdk';
import Airtable from 'airtable';
import jsonfile from 'jsonfile';

2
packages/nocodb/src/lib/meta/api/sync/helpers/readAndProcessData.ts

@ -1,5 +1,5 @@
import { AirtableBase } from 'airtable/lib/airtable_base';
import { Api, RelationTypes, TableType, UITypes } from 'nocodb-sdk-daily';
import { Api, RelationTypes, TableType, UITypes } from 'nocodb-sdk';
const BULK_DATA_BATCH_SIZE = 2000;
const ASSOC_BULK_DATA_BATCH_SIZE = 5000;

2
packages/nocodb/src/lib/meta/api/tableApis.ts

@ -11,7 +11,7 @@ import {
TableReqType,
TableType,
UITypes,
} from 'nocodb-sdk-daily';
} from 'nocodb-sdk';
import ProjectMgrv2 from '../../db/sql-mgr/v2/ProjectMgrv2';
import Project from '../../models/Project';
import Audit from '../../models/Audit';

2
packages/nocodb/src/lib/meta/api/userApi/initAdminFromEnv.ts

@ -7,7 +7,7 @@ import bcrypt from 'bcryptjs';
import Noco from '../../../Noco';
import { CacheScope, MetaTable } from '../../../utils/globals';
import ProjectUser from '../../../models/ProjectUser';
import { validatePassword } from 'nocodb-sdk-daily';
import { validatePassword } from 'nocodb-sdk';
import boxen from 'boxen';
import NocoCache from '../../../cache/NocoCache';

2
packages/nocodb/src/lib/meta/api/userApi/userApis.ts

@ -1,5 +1,5 @@
import { Request, Response } from 'express';
import { TableType, validatePassword } from 'nocodb-sdk-daily';
import { TableType, validatePassword } from 'nocodb-sdk';
import catchError, { NcError } from '../../helpers/catchError';
const { isEmail } = require('validator');
import * as ejs from 'ejs';

2
packages/nocodb/src/lib/meta/api/viewApis.ts

@ -4,7 +4,7 @@ import Model from '../../models/Model';
// @ts-ignore
import { PagedResponseImpl } from '../helpers/PagedResponse';
// @ts-ignore
import { Table, TableReq, ViewList } from 'nocodb-sdk-daily';
import { Table, TableReq, ViewList } from 'nocodb-sdk';
// @ts-ignore
import ProjectMgrv2 from '../../db/sql-mgr/v2/ProjectMgrv2';
// @ts-ignore

2
packages/nocodb/src/lib/meta/handlersv2/ncCreateLookup.ts

@ -1,6 +1,6 @@
import { NcContextV2 } from '../NcMetaMgrv2';
import Column from '../../models/Column';
import { UITypes } from 'nocodb-sdk-daily';
import { UITypes } from 'nocodb-sdk';
export default async function (this: NcContextV2, { args }: any) {
if (

2
packages/nocodb/src/lib/meta/helpers/NcPluginMgrv2.ts

@ -30,7 +30,7 @@ import SESPluginConfig from '../../plugins/ses';
import Noco from '../../Noco';
import Local from '../../v1-legacy/plugins/adapters/storage/Local';
import { MetaTable } from '../../utils/globals';
import { PluginCategory } from 'nocodb-sdk-daily';
import { PluginCategory } from 'nocodb-sdk';
import Plugin from '../../models/Plugin';
const defaultPlugins = [

2
packages/nocodb/src/lib/meta/helpers/PagedResponse.ts

@ -1,4 +1,4 @@
import { PaginatedType } from 'nocodb-sdk-daily';
import { PaginatedType } from 'nocodb-sdk';
const config: any = {
limitDefault: Math.max(+process.env.DB_QUERY_LIMIT_DEFAULT || 25, 1),

2
packages/nocodb/src/lib/meta/helpers/getColumnPropsFromUIDT.ts

@ -1,4 +1,4 @@
import { ColumnReqType, SqlUIColumn, SqlUiFactory, UITypes } from 'nocodb-sdk-daily';
import { ColumnReqType, SqlUIColumn, SqlUiFactory, UITypes } from 'nocodb-sdk';
import Base from '../../models/Base';
export default function getColumnPropsFromUIDT(

2
packages/nocodb/src/lib/meta/helpers/getColumnUiType.ts

@ -1,6 +1,6 @@
import Base from '../../models/Base';
import Column from '../../models/Column';
import { ColumnType } from 'nocodb-sdk-daily';
import { ColumnType } from 'nocodb-sdk';
import ModelXcMetaFactory from '../../db/sql-mgr/code/models/xc/ModelXcMetaFactory';
export default function getColumnUiType(

2
packages/nocodb/src/lib/meta/helpers/mapDefaultPrimaryValue.ts

@ -1,4 +1,4 @@
import { ColumnType } from 'nocodb-sdk-daily';
import { ColumnType } from 'nocodb-sdk';
export default function mapDefaultPrimaryValue<T extends ColumnType>(
columnsArr: Array<T>

2
packages/nocodb/src/lib/meta/helpers/populateSamplePayload.ts

@ -1,6 +1,6 @@
import View from '../../models/View';
import Column from '../../models/Column';
import { RelationTypes, UITypes } from 'nocodb-sdk-daily';
import { RelationTypes, UITypes } from 'nocodb-sdk';
import Model from '../../models/Model';
import LinkToAnotherRecordColumn from '../../models/LinkToAnotherRecordColumn';
import LookupColumn from '../../models/LookupColumn';

2
packages/nocodb/src/lib/meta/helpers/webhookHelpers.ts

@ -5,7 +5,7 @@ import Column from '../../models/Column';
import Hook from '../../models/Hook';
import Filter from '../../models/Filter';
import HookLog from '../../models/HookLog';
import { HookLogType } from 'nocodb-sdk-daily';
import { HookLogType } from 'nocodb-sdk';
export function parseBody(template: string, data: any): string {
if (!template) {

2
packages/nocodb/src/lib/models/Audit.ts

@ -1,4 +1,4 @@
import { AuditOperationTypes, AuditType } from 'nocodb-sdk-daily';
import { AuditOperationTypes, AuditType } from 'nocodb-sdk';
import { MetaTable } from '../utils/globals';
import Noco from '../Noco';
import Model from './Model';

2
packages/nocodb/src/lib/models/Base.ts

@ -7,7 +7,7 @@ import {
MetaTable,
} from '../utils/globals';
import Model from './Model';
import { BaseType } from 'nocodb-sdk-daily';
import { BaseType } from 'nocodb-sdk';
import NocoCache from '../cache/NocoCache';
import CryptoJS from 'crypto-js';
import extractProps from '../meta/helpers/extractProps';

2
packages/nocodb/src/lib/models/Column.ts

@ -5,7 +5,7 @@ import RollupColumn from './RollupColumn';
import SelectOption from './SelectOption';
import Model from './Model';
import NocoCache from '../cache/NocoCache';
import { ColumnType, UITypes } from 'nocodb-sdk-daily';
import { ColumnType, UITypes } from 'nocodb-sdk';
import {
CacheDelDirection,
CacheGetType,

2
packages/nocodb/src/lib/models/Filter.ts

@ -8,7 +8,7 @@ import {
MetaTable,
} from '../utils/globals';
import View from './View';
import { FilterType, UITypes } from 'nocodb-sdk-daily';
import { FilterType, UITypes } from 'nocodb-sdk';
import NocoCache from '../cache/NocoCache';
export default class Filter {

2
packages/nocodb/src/lib/models/FormView.ts

@ -1,6 +1,6 @@
import Noco from '../Noco';
import { CacheGetType, CacheScope, MetaTable } from '../utils/globals';
import { FormType } from 'nocodb-sdk-daily';
import { FormType } from 'nocodb-sdk';
import FormViewColumn from './FormViewColumn';
import View from './View';
import NocoCache from '../cache/NocoCache';

2
packages/nocodb/src/lib/models/FormViewColumn.ts

@ -1,6 +1,6 @@
import Noco from '../Noco';
import { CacheGetType, CacheScope, MetaTable } from '../utils/globals';
import { FormColumnType } from 'nocodb-sdk-daily';
import { FormColumnType } from 'nocodb-sdk';
import View from './View';
import NocoCache from '../cache/NocoCache';
import extractProps from '../meta/helpers/extractProps';

2
packages/nocodb/src/lib/models/GalleryView.ts

@ -1,6 +1,6 @@
import Noco from '../Noco';
import { CacheGetType, CacheScope, MetaTable } from '../utils/globals';
import { GalleryColumnType, GalleryType, UITypes } from 'nocodb-sdk-daily';
import { GalleryColumnType, GalleryType, UITypes } from 'nocodb-sdk';
import View from './View';
import NocoCache from '../cache/NocoCache';

2
packages/nocodb/src/lib/models/GridViewColumn.ts

@ -1,6 +1,6 @@
import Noco from '../Noco';
import { CacheGetType, CacheScope, MetaTable } from '../utils/globals';
import { GridColumnType } from 'nocodb-sdk-daily';
import { GridColumnType } from 'nocodb-sdk';
import extractProps from '../meta/helpers/extractProps';
import View from './View';
import NocoCache from '../cache/NocoCache';

2
packages/nocodb/src/lib/models/Hook.ts

@ -1,4 +1,4 @@
import { HookType } from 'nocodb-sdk-daily';
import { HookType } from 'nocodb-sdk';
import {
CacheDelDirection,
CacheGetType,

2
packages/nocodb/src/lib/models/HookFilter.ts

@ -8,7 +8,7 @@ import {
MetaTable,
} from '../utils/globals';
import View from './View';
import { FilterType, UITypes } from 'nocodb-sdk-daily';
import { FilterType, UITypes } from 'nocodb-sdk';
import NocoCache from '../cache/NocoCache';
export default class Filter {

2
packages/nocodb/src/lib/models/HookLog.ts

@ -2,7 +2,7 @@ import { MetaTable } from '../utils/globals';
import Noco from '../Noco';
import extractProps from '../meta/helpers/extractProps';
import Hook from './Hook';
import { HookLogType } from 'nocodb-sdk-daily';
import { HookLogType } from 'nocodb-sdk';
export default class HookLog implements HookLogType {
id?: string;

2
packages/nocodb/src/lib/models/Model.ts

@ -10,7 +10,7 @@ import {
TableType,
UITypes,
ViewTypes,
} from 'nocodb-sdk-daily';
} from 'nocodb-sdk';
import {
CacheDelDirection,
CacheGetType,

2
packages/nocodb/src/lib/models/ModelRoleVisibility.ts

@ -1,4 +1,4 @@
import { ModelRoleVisibilityType } from 'nocodb-sdk-daily';
import { ModelRoleVisibilityType } from 'nocodb-sdk';
import Noco from '../Noco';
import {
CacheDelDirection,

2
packages/nocodb/src/lib/models/Plugin.ts

@ -1,4 +1,4 @@
import { PluginType } from 'nocodb-sdk-daily';
import { PluginType } from 'nocodb-sdk';
import { CacheGetType, CacheScope, MetaTable } from '../utils/globals';
import Noco from '../Noco';
import NocoCache from '../cache/NocoCache';

2
packages/nocodb/src/lib/models/Project.ts

@ -1,6 +1,6 @@
import Base from './/Base';
import Noco from '../Noco';
import { ProjectType } from 'nocodb-sdk-daily';
import { ProjectType } from 'nocodb-sdk';
import {
CacheDelDirection,
CacheGetType,

2
packages/nocodb/src/lib/models/Sort.ts

@ -8,7 +8,7 @@ import {
MetaTable,
} from '../utils/globals';
import NocoCache from '../cache/NocoCache';
import { SortType } from 'nocodb-sdk-daily';
import { SortType } from 'nocodb-sdk';
export default class Sort {
id: string;

2
packages/nocodb/src/lib/models/User.ts

@ -1,4 +1,4 @@
import { UserType } from 'nocodb-sdk-daily';
import { UserType } from 'nocodb-sdk';
import { CacheGetType, CacheScope, MetaTable } from '../utils/globals';
import Noco from '../Noco';
import extractProps from '../meta/helpers/extractProps';

2
packages/nocodb/src/lib/models/View.ts

@ -13,7 +13,7 @@ import GalleryView from './GalleryView';
import GridViewColumn from './GridViewColumn';
import Sort from './Sort';
import Filter from './Filter';
import { isSystemColumn, ViewType, ViewTypes } from 'nocodb-sdk-daily';
import { isSystemColumn, ViewType, ViewTypes } from 'nocodb-sdk';
import GalleryViewColumn from './GalleryViewColumn';
import FormViewColumn from './FormViewColumn';
import Column from './Column';

2
packages/nocodb/src/lib/plugins/backblaze/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import BackblazePlugin from './BackblazePlugin';

2
packages/nocodb/src/lib/plugins/discord/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import DiscordPlugin from './DiscordPlugin';

2
packages/nocodb/src/lib/plugins/gcs/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import GcsPlugin from './GcsPlugin';

2
packages/nocodb/src/lib/plugins/linode/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import LinodeObjectStoragePlugin from './LinodeObjectStoragePlugin';

2
packages/nocodb/src/lib/plugins/mailerSend/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import MailerSendPlugin from './MailerSendPlugin';

2
packages/nocodb/src/lib/plugins/mattermost/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import MattermostPlugin from './MattermostPlugin';

2
packages/nocodb/src/lib/plugins/mino/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import S3Plugin from './MinioPlugin';

2
packages/nocodb/src/lib/plugins/ovhCloud/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import OvhCloud from './OvhCloudPlugin';

2
packages/nocodb/src/lib/plugins/s3/index.ts

@ -1,4 +1,4 @@
import { PluginCategory, XcActionType, XcType } from 'nocodb-sdk-daily';
import { PluginCategory, XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import S3Plugin from './S3Plugin';

2
packages/nocodb/src/lib/plugins/scaleway/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import ScalewayObjectStoragePlugin from './ScalewayObjectStoragePlugin';

2
packages/nocodb/src/lib/plugins/ses/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import SESPlugin from './SESPlugin';

2
packages/nocodb/src/lib/plugins/slack/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import SlackPlugin from './SlackPlugin';

2
packages/nocodb/src/lib/plugins/smtp/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import SMTPPlugin from './SMTPPlugin';

2
packages/nocodb/src/lib/plugins/spaces/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import SpacesPlugin from './SpacesPlugin';

2
packages/nocodb/src/lib/plugins/teams/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import TeamsPlugin from './TeamsPlugin';

2
packages/nocodb/src/lib/plugins/twilio/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import TwilioPlugin from './TwilioPlugin';

2
packages/nocodb/src/lib/plugins/twilioWhatsapp/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import TwilioWhatsappPlugin from './TwilioWhatsappPlugin';

2
packages/nocodb/src/lib/plugins/upcloud/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import UpCloudPlugin from './UpCloudPlugin';

2
packages/nocodb/src/lib/plugins/vultr/index.ts

@ -1,4 +1,4 @@
import { XcActionType, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcType } from 'nocodb-sdk';
import { XcPluginConfig } from 'nc-plugin';
import VultrPlugin from './VultrPlugin';

2
packages/nocodb/src/lib/utils/common/BaseApiBuilder.ts

@ -32,7 +32,7 @@ import ncModelsOrderUpgrader from './jobs/ncModelsOrderUpgrader';
import ncParentModelTitleUpgrader from './jobs/ncParentModelTitleUpgrader';
import ncRemoveDuplicatedRelationRows from './jobs/ncRemoveDuplicatedRelationRows';
import xcMetaDiffSync from './handlers/xcMetaDiffSync';
import { UITypes } from 'nocodb-sdk-daily';
import { UITypes } from 'nocodb-sdk';
const log = debug('nc:api:base');

2
packages/nocodb/src/lib/v1-legacy/plugins/azure.ts

@ -1,4 +1,4 @@
import { XcActionType, XcForm, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcForm, XcType } from 'nocodb-sdk';
const input: XcForm = {
title: 'Configure Azure Storage',

2
packages/nocodb/src/lib/v1-legacy/plugins/brand.ts

@ -1,4 +1,4 @@
import { XcActionType, XcForm, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcForm, XcType } from 'nocodb-sdk';
const input: XcForm = {
title: 'Branding',

2
packages/nocodb/src/lib/v1-legacy/plugins/cache.ts

@ -1,4 +1,4 @@
import { XcActionType, XcForm, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcForm, XcType } from 'nocodb-sdk';
const input: XcForm = {
title: 'Configure Metadata LRU Cache',

2
packages/nocodb/src/lib/v1-legacy/plugins/discord.ts

@ -1,4 +1,4 @@
import { XcActionType, XcForm, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcForm, XcType } from 'nocodb-sdk';
const input: XcForm = {
title: 'Configure Discord',

2
packages/nocodb/src/lib/v1-legacy/plugins/ee.ts

@ -1,4 +1,4 @@
import { XcActionType, XcForm, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcForm, XcType } from 'nocodb-sdk';
const input: XcForm = {
title: 'Configure Enterprise Edition',

2
packages/nocodb/src/lib/v1-legacy/plugins/githubAuth.ts

@ -1,4 +1,4 @@
import { XcActionType, XcForm, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcForm, XcType } from 'nocodb-sdk';
const input: XcForm = {
title: 'Configure Github Auth',

2
packages/nocodb/src/lib/v1-legacy/plugins/googleAuth.ts

@ -1,4 +1,4 @@
import { XcActionType, XcForm, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcForm, XcType } from 'nocodb-sdk';
const input: XcForm = {
title: 'Configure Google Auth',

2
packages/nocodb/src/lib/v1-legacy/plugins/mattermost.ts

@ -1,4 +1,4 @@
import { XcActionType, XcForm, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcForm, XcType } from 'nocodb-sdk';
const input: XcForm = {
title: 'Configure Mattermost',

2
packages/nocodb/src/lib/v1-legacy/plugins/ses.ts

@ -1,6 +1,6 @@
// @wingkwong: Deprecated. Moved to nocodb/packages/nocodb/src/plugins/ses instead. Keep this file for migration only.
import { XcActionType, XcForm, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcForm, XcType } from 'nocodb-sdk';
const input: XcForm = {
title: 'Configure Amazon Simple Email Service(SES)',

2
packages/nocodb/src/lib/v1-legacy/plugins/slack.ts

@ -1,4 +1,4 @@
import { XcActionType, XcForm, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcForm, XcType } from 'nocodb-sdk';
const input: XcForm = {
title: 'Configure Slack',

2
packages/nocodb/src/lib/v1-legacy/plugins/smtp.ts

@ -1,4 +1,4 @@
import { XcActionType, XcForm, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcForm, XcType } from 'nocodb-sdk';
const input: XcForm = {
title: 'Configure Email SMTP',

2
packages/nocodb/src/lib/v1-legacy/plugins/twilio.ts

@ -1,4 +1,4 @@
import { XcActionType, XcForm, XcType } from 'nocodb-sdk-daily';
import { XcActionType, XcForm, XcType } from 'nocodb-sdk';
const input: XcForm = {
title: 'Configure Twilio',

2
packages/nocodb/src/lib/v1-legacy/templates/NcTemplateParser.ts

@ -6,7 +6,7 @@ import {
SqliteUi,
SqlUiFactory,
UITypes,
} from 'nocodb-sdk-daily';
} from 'nocodb-sdk';
export default class NcTemplateParser {
sqlUi:

2
packages/nocodb/src/lib/version-upgrader/ncProjectUpgraderV2_0090000.ts

@ -10,7 +10,7 @@ import {
UITypes,
ViewType,
ViewTypes,
} from 'nocodb-sdk-daily';
} from 'nocodb-sdk';
import Column from '../models/Column';
import LinkToAnotherRecordColumn from '../models/LinkToAnotherRecordColumn';
import NcHelp from '../utils/NcHelp';

Loading…
Cancel
Save