export type Task = { readonly guid: string readonly data: TaskDataIndexApplication | TaskDataDiffVersion readonly number_attempts: number readonly last_error?: string } export type TaskDataDiffVersion = { readonly old_version_guid: string readonly new_version_guid: string } export type TaskDataIndexApplication = { readonly application_guid: string } export type JSONValue = | string | number | boolean | { readonly [x: string]: JSONValue } | readonly JSONValue[]