src/backend/data/data.service.ts
File data.service.ts
has 374 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { NotFoundError, progammingError } from "backend/lib/errors";
import {
DataEventActions,
FilterOperators,
PaginatedData,
Function update
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async update(
entity: string,
id: string,
data: Record<string, unknown>,
accountProfile: IAccountProfile,
Function delete
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async delete(
entity: string,
id: string,
accountProfile: IAccountProfile
): Promise<void> {
Function getRelationshipSettings
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async getRelationshipSettings(entity: string): Promise<{
format: string;
fields: string[];
}> {
const relationshipSettings = await this._configurationApiService.show(
Function listData
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async listData(
entity: string,
searchValue?: string
): Promise<{ value: string; label: string }[]> {
const [relationshipSettings, primaryField] = await Promise.all([
Function create
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async create(
entity: string,
data: Record<string, unknown>,
accountProfile: IAccountProfile
): Promise<string | number> {
Function showData
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async showData(
entity: string,
id: string | number,
column?: string
): Promise<Record<string, unknown>> {