import type { CancelTokenSource } from 'axios'; import type { RefreshAPIOptions } from '../globals'; import type { CalculatedField } from '../types'; import type { Config } from '../service_broker/fetch'; export type ActionPayload = { caseWideAction: boolean; caseViewAction: boolean; fieldsWithDeclarativeTargets: CalculatedField[]; fieldsWithWhen: CalculatedField[]; isViewsWithWhen: boolean; interestPage: string; isObjectType: boolean; isExternalObject: boolean; actionID: string; context: string; options: { optionalPayload: object; classID: string; interestPage: string; }; isMultiRecordData: boolean; editType: string; interestPageActionID: string; isLocalAction: boolean; }; export type RequestBody = { content?: { [key: string]: string; }; calculations?: { fields: CalculatedField[]; whens: CalculatedField[]; }; interestPage?: string; interestPageActionID?: string; contextData?: { [key: string]: string; }; }; export type RefreshPropertyChange = { context: string; pageReference: string; }; export type RefreshPayLoad = { ID: string; viewID?: string; context: string; contextData?: { [key: string]: string; }; serverPrecedenceFields?: string[]; options: RefreshAPIOptions; caseViewAction?: boolean; isObjectType?: boolean; interestPage: string; requestType?: string; isMultiRecordData?: boolean; editType?: string; actionID?: string; interestPageActionID?: string; isLocalAction?: boolean; }; export type ReqConfig = { reqHeaders: { [key: string]: string; }; context: string; method?: string; body: RequestBody; url?: string; cancelConfig?: CancelTokenSource; } & Config; export type RefreshMap = { [key: string]: { [key: string]: { uniqueHash: string; callback: Function; }[]; }; };