import { ErrorResponse, FormEntity, Paged, Tag, Workflow, WorkflowOperation } from 'verben-workflow-ui/src/lib/models'; import { EnvironmentService, HttpWebRequestService } from 'verben-workflow-ui/src/lib/services'; import * as i0 from "@angular/core"; /** * Raw workflow endpoint access, independent of any page. * * `WorkflowsService` is provided **per component** (it carries the list page's * base-page plumbing), so it cannot be injected by root-provided consumers. The * workflow designer needs the same endpoints without any of the paging, filter * or card state, so those calls live here and this service stays root-provided. * * `WorkflowsService` delegates its lookups here rather than duplicating them. */ export declare class WorkflowApiService { private httpService; private envSvc; private static readonly LOOKUP_SORT; constructor(httpService: HttpWebRequestService, envSvc: EnvironmentService); /** * Fetch workflows. `limit = 0` means "all" to this API. */ getWorkflows(skip?: number, limit?: number, sortParam?: string, sortOrder?: string): Promise | ErrorResponse>; /** Look a workflow up by code. Returns a paged result with at most one row. */ getWorkflowWithParam(param: string, skip?: number, limit?: number, sortParam?: string, sortOrder?: string): Promise | ErrorResponse>; /** * NOTE: post() is (url, body, overrideToken?, baseUrl?) — baseUrl is the * fourth argument, unlike get()/delete() where it is the second. */ saveWorkflows(requests: Partial[]): Promise; /** Approve or reject workflows. Returns the updated records. */ processWorkflows(requests: Workflow[], isApproval: boolean): Promise; getWorkflowOperations(skip?: number, limit?: number, sortParam?: string, sortOrder?: string): Promise | ErrorResponse>; getForms(skip?: number, limit?: number, sortParam?: string, sortOrder?: string): Promise | ErrorResponse>; /** Tags live on the Authentication API; `get()` takes baseUrl second. */ getTags(skip?: number, limit?: number, sortParam?: string, sortOrder?: string): Promise | ErrorResponse>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }