-
Notifications
You must be signed in to change notification settings - Fork 146
Expand file tree
/
Copy pathevent-groups.d.ts
More file actions
40 lines (37 loc) · 1.15 KB
/
event-groups.d.ts
File metadata and controls
40 lines (37 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import type { EventLink, Payload } from '$lib/types';
import type {
PendingActivity,
PendingNexusOperation,
WorkflowEvent,
} from '$lib/types/events';
import type { SummaryAttribute } from '$lib/utilities/get-single-attribute-for-event';
import type { EventType } from '$lib/utilities/is-event-type';
type EventId = EventType['id'];
interface EventGroup extends Pick<
WorkflowEvent,
'timestamp' | 'classification' | 'category' | 'eventTime' | 'attributes'
> {
id: EventId;
name: string;
label: string;
displayName: string;
events: Map<EventId, WorkflowEvent>;
eventIds: Set<EventId>;
initialEvent: WorkflowEvent;
lastEvent: WorkflowEvent;
eventList: WorkflowEvent[];
finalClassification: EventClassification;
isPending: boolean;
isFailureOrTimedOut: boolean;
isCanceled: boolean;
isTerminated: boolean;
level: number | undefined;
pendingActivity: PendingActivity | undefined;
pendingNexusOperation: PendingNexusOperation | undefined;
cancelRequested: boolean;
userMetadata?: { summary?: Payload };
decodedLocalActivity?: SummaryAttribute;
links: EventLink[];
billableActions: number;
}
type EventGroups = EventGroup[];