import type { CaseOptions } from '../mashup/types'; declare class CaseAPIs { /** * Open the work object associated with the given workID into the page associated with the pageID * @param workID The work object to be opened
* Example: "OPB1HW-SPACE-WORK RA-10001"

* @param context The current context where to render * @param target The target container - primary * @param options - object containing extra infomation like startingFields and pageName * @param options.pageName - Name of the page like pyDetails, pyEmbedAssignment * @param options.channelName - Channel Name * @returns A promise associated with the action (and stored in ActionManager) */ static openCase(workID: string, context: string, target: string, options?: { pageName?: string; channelName?: string; }): Promise; /** * Open the given assignment and associated with the given container target * @param assignmentId The ID of the assignment to be opened.
* Example: "ASSIGN-WORKLIST OPB1HW-SPACE-WORK RA-43001!REQUEST_FLOW_0" *

* @param context The current context where to render * @param target The target container - primary * @param options - object containing extra infomation like startingFields and pageName * @param options.pageName - Name of the page like pyDetails, pyEmbedAssignment * @param options.channelName - Channel Name * @returns A promise associated with the action (and stored in ActionManager) */ static openAssignment(assignmentId: string, context: string, target: string, options?: { pageName?: string; channelName?: string; }): Promise; /** * * Create a work object for the given class and flow. * Once created, show the work object in the given container target. * * @param workClass The ID class.
* Example: "ASSIGN-WORKLIST OPB1HW-SPACE-WORK RA-43001!REQUEST_FLOW_0" *

* @param context The current context where to render * @param target The target container - primary * @param options - object containing extra information like startingFields * @param options.channelName - Channel Name * @returns A promise associated with the action (and stored in ActionManager) */ static createCase(workClass: string, context: string, target: string, options?: CaseOptions): Promise; /** * * Open the next urgent assignment for the user * * @param context The current context where to render * @param target The target container - primary * @param options - object containing extra information * @returns A promise associated with the action (and stored in ActionManager) */ static getNextWork(context: string, target: string, options?: object): Promise; static getOpenedCaseItems(target: string): { key: string; workID: string; caseID: string; className: string; context: string; containerItemID: string; target: string; active: boolean; resourceType: string; }[]; /** * Fetch case details for a given case id * @param caseID The case details to be fetched
* Example: "OPB1HW-SPACE-WORK RA-43001"

* @returns - Case details of given case id */ static getCaseDetails: (caseID: string) => Promise; /** * Fetch case-wide bulk actions for given caseIds list * @param caseIDList The caseIds list
* Example: ["OPB1HW-SPACE-WORK RA-43001"]

* @returns - all actions eligible for bulk processing for given caseIds */ static getCaseBulkActions: (caseIDList: string[]) => Promise; /** * Fetch case-wide bulk actions for given casetypeID string * @param casetypeID Case's casetypeID * Example: "ON8TTL-C11nGall-Work-ComponentTest"

* @returns - all actions eligible for asynchronous bulk processing for given casetypeID */ static getCaseBulkActionsByCaseTypeID: (casetypeID: string) => Promise; } export default CaseAPIs;