Browse Source

fix(nocodb): build issue

Ramesh Mane 4 days ago
parent
commit
a344376e00
  1. 42
      packages/nocodb/src/models/CustomUrl.ts
  2. 2
      packages/nocodb/src/models/View.ts
  3. 2
      packages/nocodb/src/services/views.service.ts

42
packages/nocodb/src/models/CustomUrl.ts

@ -14,46 +14,52 @@ export default class CustomUrl {
} }
public static async get( public static async get(
params: Pick<CustomUrl, 'id' | 'view_id' | 'custom_path'>, _params: Pick<CustomUrl, 'id' | 'view_id' | 'custom_path'>,
ncMeta = Noco.ncMeta, _ncMeta = Noco.ncMeta,
) { ) {
return {} as CustomUrl; return {} as CustomUrl;
} }
public static async getOriginUrlByCustomPath( public static async getOriginUrlByCustomPath(
customPath: string, _customPath: string,
ncMeta = Noco.ncMeta, _ncMeta = Noco.ncMeta,
) { ) {
return ''; return '';
} }
public static async insert( public static async insert(
customUrl: Partial<CustomUrl>, _customUrl: Partial<CustomUrl>,
ncMeta = Noco.ncMeta, _ncMeta = Noco.ncMeta,
) { ) {
return {} as CustomUrl; return {} as CustomUrl;
} }
public static async list( public static async list(
params: Pick<CustomUrl, 'fk_workspace_id' | 'base_id' | 'fk_model_id'>, _params: Pick<CustomUrl, 'fk_workspace_id' | 'base_id' | 'fk_model_id'>,
ncMeta = Noco.ncMeta, _ncMeta = Noco.ncMeta,
) { ) {
return [] as CustomUrl[]; return [] as CustomUrl[];
} }
public static async update( public static async update(
id: string, _id: string,
customUrl: Partial<CustomUrl>, _customUrl: Partial<CustomUrl>,
ncMeta = Noco.ncMeta, _ncMeta = Noco.ncMeta,
) {} ) {
return {} as CustomUrl;
}
public static async checkAvailability( public static async checkAvailability(
params: Pick<CustomUrl, 'id' | 'custom_path'>, _params: Pick<CustomUrl, 'id' | 'custom_path'>,
ncMeta = Noco.ncMeta, _ncMeta = Noco.ncMeta,
) {} ) {
return false;
}
static async delete( static async delete(
customUrl: Pick<CustomUrl, 'id' | 'view_id'>, _customUrl: Pick<CustomUrl, 'id' | 'view_id'>,
ncMeta = Noco.ncMeta, _ncMeta = Noco.ncMeta,
) {} ): Promise<any> {
return;
}
} }

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

@ -41,7 +41,7 @@ import {
} from '~/utils/modelUtils'; } from '~/utils/modelUtils';
import { LinkToAnotherRecordColumn } from '~/models'; import { LinkToAnotherRecordColumn } from '~/models';
import { cleanCommandPaletteCache } from '~/helpers/commandPaletteHelpers'; import { cleanCommandPaletteCache } from '~/helpers/commandPaletteHelpers';
import CustomUrl from './CustomUrl'; import CustomUrl from '~/models/CustomUrl';
const { v4: uuidv4 } = require('uuid'); const { v4: uuidv4 } = require('uuid');

2
packages/nocodb/src/services/views.service.ts

@ -10,7 +10,7 @@ import { AppHooksService } from '~/services/app-hooks/app-hooks.service';
import { validatePayload } from '~/helpers'; import { validatePayload } from '~/helpers';
import { NcError } from '~/helpers/catchError'; import { NcError } from '~/helpers/catchError';
import { BaseUser, Model, ModelRoleVisibility, View } from '~/models'; import { BaseUser, Model, ModelRoleVisibility, View } from '~/models';
import CustomUrl from 'src/models/CustomUrl'; import CustomUrl from '~/models/CustomUrl';
// todo: move // todo: move
async function xcVisibilityMetaGet( async function xcVisibilityMetaGet(

Loading…
Cancel
Save