import { HttpClient, HttpResponse } from '@angular/common/http'; import { Observable } from 'rxjs'; import { ApiError } from '../types/api'; import { AppEnvironment } from '../types/app-environment'; import { Approval, ApprovalCounts, ApprovalStatus } from '../types/approval'; import { DocumentDirectory, FileMeta, FileParams } from '../types/file'; import { ScriptInfo } from '../types/script-info'; import { Study, StudyAssociate } from '../types/study'; import { TaskAction, TaskEvent } from '../types/task-event'; import { User } from '../types/user'; import { Workflow, WorkflowSpec, WorkflowSpecCategory } from '../types/workflow'; import { WorkflowTask } from '../types/workflow-task'; import { TaskLogQuery } from '../types/task-log'; import { GitRepo } from "../types/git"; import * as i0 from "@angular/core"; export declare class ApiService { private environment; baseHref: string; private httpClient; apiRoot: string; endpoints: { fileList: string; file: string; fileData: string; ssDMN: string; specFileList: string; specFile: string; specFileData: string; specFileFilename: string; referenceFileList: string; referenceFile: string; referenceFileData: string; scriptList: string; renderDocx: string; renderMarkdown: string; login: string; user: string; userList: string; ldap: string; studyList: string; study: string; studyApprovals: string; studyAssociates: string; studyLogs: string; approvalCounts: string; approvalList: string; approval: string; workflowSpecList: string; workflowSpec: string; workflowSpecListStandalone: string; workflowSpecListLibraries: string; updateWorkflowLibrary: string; workflowSpecValidate: string; reorderWorkflowSpecification: string; workflowSpecCategoryList: string; workflowSpecCategory: string; reorderWorkflowCategory: string; documentDirectory: string; taskEvents: string; workflow: string; workflowRestart: string; taskForWorkflow: string; taskDataForWorkflow: string; setCurrentTaskForWorkflow: string; fieldOptionsLookup: string; workflowLogs: string; gitRepo: string; gitRepoMerge: string; gitRepoPush: string; gitRepoPull: string; eval: string; messageStatus: string; messageStatusUp: string; messageStatusDown: string; messageAlternate: string; messageAlternateUp: string; messageAlternateDown: string; }; constructor(environment: AppEnvironment, baseHref: string, httpClient: HttpClient); private static _handleError; /** Get the string value from a given URL */ getStringFromUrl(url: string): Observable; /** Get all Studies */ getStudies(): Observable; /** Add a Study */ addStudy(study: Study): Observable; getDocumentDirectory(studyId: number, workflowId?: number, includeArchived?: boolean): Observable; /** Get a specific Study */ getStudy(studyId: number, updateStatus?: boolean): Observable; /** Get logs for a Study */ getStudyLogs(studyId: number, query: TaskLogQuery): Observable; /** Update a specific Study */ updateStudy(studyId: number, study: Study): Observable; /** Delete a specific Study */ deleteStudy(studyId: number): Observable; /** Delete a library from a workflow */ deleteWorkflowLibrary(workflowSpecId: string, librarySpecId: string): Observable; /** Return all users related to a study and their access + role */ getStudyAssociates(studyId: number): Observable; /** Add a library to a workflow */ addWorkflowLibrary(workflowSpecId: string, librarySpecId: string): Observable; /** Get a specific Study */ getStudyApprovals(studyId: number): Observable; /** Get Approval counts by status */ getApprovalCounts(asUser: string): Observable; /** Get all Approvals */ getApprovals(status?: ApprovalStatus, asUser?: any): Observable; /** Update a single Approval */ updateApproval(approval: Approval): Observable; /** Get all Workflow Specifications */ getWorkflowSpecList(): Observable; /** Add a Workflow Specification */ addWorkflowSpecification(newSpec: WorkflowSpec): Observable; /** Get a Workflow Specification */ getWorkflowSpecification(specId: string): Observable; /** Get a list of standalone workflows */ getWorkflowSpecificationStandalone(): Observable; /** Get a list of standalone workflows */ getWorkflowSpecificationLibraries(): Observable; /** Get a workflow from a workflow spec */ getWorkflowFromSpec(workflowSpecId: string): Observable; /** Validate a Workflow Specification */ validateWorkflowSpecification(specId: string, testUntil?: string, studyId?: number): Observable; /** Update a Workflow Specification */ updateWorkflowSpecification(specId: string, newSpec: WorkflowSpec): Observable; /** Delete a Workflow Specification */ deleteWorkflowSpecification(specId: string): Observable; /** Get all Workflow Spec Categories */ getWorkflowSpecCategoryList(): Observable; /** Add a Workflow Specification */ addWorkflowSpecCategory(newCat: WorkflowSpecCategory): Observable; /** Get a Workflow Spec Category */ getWorkflowSpecCategory(catId: string): Observable; /** Update a Workflow Spec Category */ updateWorkflowSpecCategory(catId: string, newCat: WorkflowSpecCategory): Observable; /** Delete a Workflow Spec Category */ deleteWorkflowSpecCategory(catId: string): Observable; getSpecFileMetas(workflowSpecId: string): Observable; /** Get all User uploaded File Metadata for a given Workflow Instance, Study, or Task */ getFileMetas(fileParams: FileParams): Observable; /** Reorder workflow spec categories */ reorderWorkflowCategory(catId: string, direction: string): Observable; /** Reorder workflow specs */ reorderWorkflowSpecification(specId: string, direction: string): Observable; /** Get all Files and their File Metadata for a running workflow */ listWorkflowFiles(workflowId: number): Observable; addSpecFile(workflowSpec: WorkflowSpec, fileMeta: FileMeta, file: File): Observable; /** Add a File */ addFile(fileParams: FileParams, fileMeta: FileMeta, file: File, base_url?: string): Observable; getSpecFileMeta(workflowSpec: WorkflowSpec, fileName: string, fileMetaId: number): Observable; /** Get metadata for one specific File */ getFileMeta(fileMetaId: number, base_url?: String): Observable; /** Update the File metadata for Workflow Specification File */ updateSpecFileMeta(workflowSpec: WorkflowSpec, fileMeta: FileMeta, is_primary: boolean): Observable; updateSpecFileFilename(workflowSpec: WorkflowSpec, fileMeta: FileMeta, newFilename: string): Observable; /** Update File Metadata */ updateFileMeta(fileMeta: FileMeta, base_url?: String): Observable; /** Delete the File metadata for Workflow Specification File */ deleteSpecFileMeta(workflowSpec: WorkflowSpec, fileName: string): Observable; /** Delete the File metadata for Workflow Specification File */ deleteRefFileMeta(fileMetaId: number): Observable; deleteFile(fileId: number, base_url?: String): Observable; deleteFileMeta(fileMetaId: number, base_url?: String): Observable; /** Get the File metadata for Workflow Specification File */ getSpecFileData(workflowSpec: WorkflowSpec, fileName: string): Observable>; /** Get the File Data for specific File Metadata */ getFileData(fileId: number, base_url?: String): Observable>; /** Update the File metadata for Workflow Specification File */ updateSpecFileData(workflowSpec: WorkflowSpec, fileMeta: FileMeta, file: File): Observable; /** Update the File Data for specific File Metadata */ updateFileData(fileMeta: FileMeta, file: File, base_url?: string): Observable; /** Create a DMN file from a spreadsheet */ createDMNFromSS(file: File): Observable>; /** Get Task Events */ getTaskEvents(action?: TaskAction, onlylanes?: boolean, studyId?: number, workflowId?: number): Observable; /** Get a specific Workflow */ getWorkflow(workflowId: number, doEngineSteps?: boolean): Observable; restartWorkflow(workflowId: number, clearData?: boolean, deleteFiles?: boolean): Observable; /** Get a specific Task for a Workflow */ getTaskForWorkflow(workflowId: number, taskId: string): Observable; /** Update Task Data for a specific Workflow Task * The updateAll flag will cause all remaining tasks in a multistance task to receive the same values. */ updateTaskDataForWorkflow(workflowId: number, taskId: string, data: any, updateAll?: boolean, terminateLoop?: boolean): Observable; /** Update Task Data for a specific Workflow Task */ setCurrentTaskForWorkflow(workflowId: number, taskId: string): Observable; /** Get logs for a Workflow */ getWorkflowLogs(workflowId: number, query: TaskLogQuery): Observable; /** add Reference File */ addReferenceFile(fileMeta: FileMeta, file: File): Observable; /** listReferenceFiles */ listReferenceFiles(): Observable; /** getReferenceFile */ getReferenceFile(name: string): Observable; /** getReferenceFile */ getReferenceFileData(name: string): Observable>; /** updateReferenceFile */ updateReferenceFile(name: string, newFile: File): Observable>; /** listScripts */ listScripts(): Observable; /** isSignedIn */ isSignedIn(): boolean; /** listUsers */ listUsers(): Observable; /** getUser * * adminImpersonateUid: string * If the currently-logged-in user is an admin, will return the user with the given uid. If the uid * is not provided or invalid, impersonation mode will be turned off. * */ getUser(adminImpersonateUid?: string): Observable; /** openSession */ redirectToLogin(): void; openUrl(url: any): void; /** lookupFieldOptions */ lookupFieldOptions(query: string, fileParams?: FileParams, value?: string, limit?: number): Observable; /** LDAP Lookup without Context */ ldapLookup(query: string, limit?: number): Observable; /** Get the git repo */ gitRepo(): Observable; gitRepoMerge(branch: string): Observable; gitRepoPush(comment: string): Observable; gitRepoPull(): Observable; /** Evaluate an expression using the api, which should return a true or false value */ eval(expression: string, data: any, key: string): Observable; /** Construct HttpParams from params object. Only adds params that have been set. */ private _paramsToHttpParams; getMessageStatus(): Observable; setMessageStatusUp(message: string): Observable; setMessageStatusDown(): Observable; getMessageAlternate(): Observable; setMessageAlternateUp(message: string): Observable; setMessageAlternateDown(): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } //# sourceMappingURL=api.service.d.ts.map