Browse Source

fix(nocodb): build issue

nc-feat/custom-url-support-for-shared-base-view
Ramesh Mane 14 hours ago
parent
commit
cc9c9e6e48
  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(
params: Pick<CustomUrl, 'id' | 'view_id' | 'custom_path'>,
ncMeta = Noco.ncMeta,
_params: Pick<CustomUrl, 'id' | 'view_id' | 'custom_path'>,
_ncMeta = Noco.ncMeta,
) {
return {} as CustomUrl;
}
public static async getOriginUrlByCustomPath(
customPath: string,
ncMeta = Noco.ncMeta,
_customPath: string,
_ncMeta = Noco.ncMeta,
) {
return '';
}
public static async insert(
customUrl: Partial<CustomUrl>,
ncMeta = Noco.ncMeta,
_customUrl: Partial<CustomUrl>,
_ncMeta = Noco.ncMeta,
) {
return {} as CustomUrl;
}
public static async list(
params: Pick<CustomUrl, 'fk_workspace_id' | 'base_id' | 'fk_model_id'>,
ncMeta = Noco.ncMeta,
_params: Pick<CustomUrl, 'fk_workspace_id' | 'base_id' | 'fk_model_id'>,
_ncMeta = Noco.ncMeta,
) {
return [] as CustomUrl[];
}
public static async update(
id: string,
customUrl: Partial<CustomUrl>,
ncMeta = Noco.ncMeta,
) {}
_id: string,
_customUrl: Partial<CustomUrl>,
_ncMeta = Noco.ncMeta,
) {
return {} as CustomUrl;
}
public static async checkAvailability(
params: Pick<CustomUrl, 'id' | 'custom_path'>,
ncMeta = Noco.ncMeta,
) {}
_params: Pick<CustomUrl, 'id' | 'custom_path'>,
_ncMeta = Noco.ncMeta,
) {
return false;
}
static async delete(
customUrl: Pick<CustomUrl, 'id' | 'view_id'>,
ncMeta = Noco.ncMeta,
) {}
_customUrl: Pick<CustomUrl, 'id' | 'view_id'>,
_ncMeta = Noco.ncMeta,
): Promise<any> {
return;
}
}

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

@ -41,7 +41,7 @@ import {
} from '~/utils/modelUtils';
import { LinkToAnotherRecordColumn } from '~/models';
import { cleanCommandPaletteCache } from '~/helpers/commandPaletteHelpers';
import CustomUrl from './CustomUrl';
import CustomUrl from '~/models/CustomUrl';
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 { NcError } from '~/helpers/catchError';
import { BaseUser, Model, ModelRoleVisibility, View } from '~/models';
import CustomUrl from 'src/models/CustomUrl';
import CustomUrl from '~/models/CustomUrl';
// todo: move
async function xcVisibilityMetaGet(

Loading…
Cancel
Save