UNPKG

tmhcc-ir-apis

Version:

imageright APIs

99 lines (98 loc) 5.38 kB
declare class ImageRight { private version; private baseUrl; private AccessToken; constructor(baseUrl: string, AccessToken: string); private api; getAccount(accountId: string, type: string): Promise<any>; getAccountGroups(accountId: string): Promise<any>; getAllAccounts(): Promise<any>; getCurrentUserAccount(): Promise<any>; getCurrentUserGroups(): Promise<any>; getAttributeById(objId: string, attId: string): Promise<any>; getAttributeByName(objId: string, attName: string): Promise<any>; getAttributeByObject(objId: string): Promise<any>; authenticate(UserName: string, Password: string): Promise<string>; createBatch(batch: any): Promise<any>; getContainers(containerId: string, recursive: boolean): Promise<any>; createDocument(doc: any): Promise<any>; findDocuments(search: any): Promise<any>; getDocumentById(docId: string): Promise<any>; moveDocument(move: any, ver?: number): Promise<any>; updateProperties(docId: string, props: any): Promise<any>; copyDocument(copy: any): Promise<any>; deleteDocument(docId: string, force: boolean): Promise<any>; getDrawers(): Promise<any>; getDrawerById(id: string): Promise<any>; getDrawerByName(name: string): Promise<any>; getDrawersInContainer(containerId: string): Promise<any>; getDrawersInContainerByName(containerId: string, name: string): Promise<any>; createFile(file: any): Promise<any>; findFiles(search: any): Promise<any>; getFileById(fileId: string, includeHasNotes: boolean): Promise<any>; mergeFiles(sourceId: string, targetId: string): Promise<any>; updateFilesV2(fileId: string, fileObj: string): Promise<any>; createFolder(folder: any): Promise<any>; findFolders(search: any): Promise<any>; getFolderById(folderId: string, includeHasNotes: boolean): Promise<any>; getImageById(imageId: string, version: number): Promise<any>; getImageByIdV2(pageId: string, imageId: string, version: number): Promise<any>; getAllowedTypes(typeId: string): Promise<any>; getAllowedTypesForContainer(objectId: string): Promise<any>; getAttributeDefinitionsForType(objectTypeId: string): Promise<any>; getFileTypeExtensions(fileTypeId: string): Promise<any>; getFileTypeTemplate(fileTypeId: string): Promise<any>; getObjectType(objectTypeId: string): Promise<any>; getSortOptionsForType(objectTypeId: string): Promise<any>; getTypesForClass(standardObjectClass: string): Promise<any>; checkReadPermissions(pageId: string): Promise<any>; createPage(page: any): Promise<any>; getAllPagesFromDocument(docId: string): Promise<any>; getPageById(pageId: string): Promise<any>; getPageImageMetadata(pageId: string): Promise<any>; lockPage(pageId: string): Promise<any>; movePage(moveObj: any): Promise<any>; rotatePage(pageId: string, rotationAngle: number): Promise<any>; unlockPage(pageId: string): Promise<any>; updatePageContent(pageId: string, content: any): Promise<any>; updatePageProperties(pageId: string, properties: any): Promise<any>; copyPage(copyObj: any): Promise<any>; createPageV2(page: any, targetPageId: string, before: boolean): Promise<any>; mergeToDocument(mergeObj: any): Promise<any>; movePageV2(moveObj: any): Promise<any>; updatePageContentV2(pageId: string, content: any): Promise<any>; killTask(taskId: string): Promise<any>; lockTask(taskId: string, options: any): Promise<any>; refreshTaskLock(taskId: string): Promise<any>; releaseTask(taskId: string, options: any): Promise<any>; releaseTaskByAnchor(taskId: string, anchor: string, options: any): Promise<any>; releaseTaskSplitStep(taskId: string, options: any): Promise<any>; routeTask(taskId: string, options: any): Promise<any>; unlockTask(taskId: string): Promise<any>; getTaskAttributeById(taskId: string, id: string): Promise<any>; getTaskAttributeByName(taskId: string, name: string): Promise<any>; getTaskAttributes(taskId: string): Promise<any>; setTaskAttributeById(taskId: string, id: string, content: any): Promise<any>; setTaskAttributeByName(taskId: string, name: string, content: any): Promise<any>; createTask(content: any): Promise<any>; getPostTasks(options: any): Promise<any>; getTasks(options: any): Promise<any>; getTasksByFileId(fileId: string, options: any): Promise<any>; getTasksByFileIdPost(fileId: string, options: any): Promise<any>; updateTask(taskId: string, content: any): Promise<any>; changeUserPassword(content: any): Promise<any>; getCurrentUser(): Promise<any>; getCurrentUserData(): Promise<any>; getUserData(userId: string): Promise<any>; getDefaultStepLink(stepId: string, options: any): Promise<any>; getPriorityList(stepId: string): Promise<any>; getSplitLinkParameters(stepId: string, options: any): Promise<any>; getStepAttributeById(stepId: string, id: string): Promise<any>; getStepAttributeByName(stepId: string, name: string): Promise<any>; getStepAttributes(stepId: string): Promise<any>; getStepLinks(srcStepId: string, options: any): Promise<any>; getSteps(flowId: string, options: any): Promise<any>; getUsersToAssign(stepId: string): Promise<any>; getWorkflows(options: any): Promise<any>; } export default ImageRight;