import { BpmsEngine } from '../BpmsEngine'; import { QueryOptions, QueryResult, ScalarOptions, FilterExpression } from '../data/Repository'; import { BpmsService } from '../BpmsService'; import { UIRepository } from './UIRepository'; export interface UIServiceOptions { name: string; uiRepository?: UIRepository; } export interface BpmsDynamicViewModel { definitionId?: string; definitionName?: string; definitionVersion?: number; processId: string; processName: string; activityName: string; activityType: string; activityId: string; id?: string; name: string; title: string; descriptions?: string; type: string; target: string; renderEngine: string; renderEngineVersion: string; default: boolean; enabled: string; category: string; tags: string; displayOrder: string; icon: string; class: string; script: { resource?: string; format?: string; content: string; }; template: { resource?: string; format?: string; content: string; }; style: { resource?: string; format?: string; content: string; }; authorization: string; author: string; createdAt?: Date; } export interface BpmsUI { definitionId?: string; definitionName?: string; definitionVersion?: number; systemId?: string; systemName?: string; descriptions?: string; processId: string; processName: string; activityName: string; activityType: string; activityId: string; id?: string; name: string; title: string; type: string; target: string; renderEngine: string; renderEngineVersion: string; default: boolean; enabled: string; category: string; tags: string; displayOrder: string; icon: string; class: string; script: { resource?: string; format?: string; content: string; }; template: { resource?: string; format?: string; content: string; }; style: { resource?: string; format?: string; content: string; }; authorization: string; author: string; createdAt?: Date; actions: { name: string; description: string; value: any; }[]; } export declare class UIService implements BpmsService { private bpmsEngine?; private uiRepository; private id; private options; constructor(bpmsEngine?: BpmsEngine | undefined, options?: UIServiceOptions); static createService(options?: UIServiceOptions): UIService; static createService(bpmsEngine?: BpmsEngine, options?: UIServiceOptions): UIService; get Id(): string; get Name(): string; get BpmsEngine(): BpmsEngine | undefined; clear(): Promise; create(view: BpmsUI): Promise; findView(processName: string, viewName: string): Promise; remove(entityId: string): Promise; find(filter: FilterExpression): Promise; find(entityId: string): Promise; list(filter?: FilterExpression): Promise; count(filter?: FilterExpression): Promise; query(options: QueryOptions): Promise>; scalar(options: ScalarOptions): Promise; }