import type { CaseOptions } from './types';
declare class CaseAPIs {
/**
* Create the work object associated with the given caseTypeID
* @param caseTypeID The work object to be created
* Example: "OPB1HW-SpaceTra-Work-RequestApproval"
* @param options - Optional, object containing extra infomation like startingFields and pageName
* @returns response as promise
*/
static createCase(caseTypeID: string, options: CaseOptions): Promise<{
response: any;
requestPayload: {
[x: string]: any;
content: any;
};
headers: {
[key: string]: any;
RemoteSystemID?: string;
RemoteClassGroup?: any;
etag?: any;
};
}>;
static getObjectTypeViewPayload: (retrieveActionViewForNewObject: boolean, caseTypeID: string) => {
objectTypeID?: undefined;
actionID?: undefined;
} | {
objectTypeID: string;
actionID: string;
};
static getExternalObjectContent: (caseTypeID: string, retrieveActionViewForNewObject: boolean, context: string) => {
content: any;
pageInstructions: any;
} | {
content?: undefined;
pageInstructions?: undefined;
};
static getKeyBasedOnWorkType: (caseTypeID: string) => "caseTypeID" | "objectTypeID";
}
export default CaseAPIs;