mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-02-06 15:13:45 +00:00
When finding messages to match a send, assure they are RECIEVE messages. Fix some of the json output for messages sent to the front end
260 lines
5.5 KiB
TypeScript
260 lines
5.5 KiB
TypeScript
export interface User {
|
|
id: number;
|
|
username: string;
|
|
}
|
|
|
|
export interface Secret {
|
|
id: number;
|
|
key: string;
|
|
value: string;
|
|
creator_user_id: string;
|
|
}
|
|
|
|
export interface ProcessData {
|
|
process_data_identifier: string;
|
|
process_data_value: any;
|
|
}
|
|
|
|
export interface RecentProcessModel {
|
|
processGroupIdentifier?: string;
|
|
processModelIdentifier: string;
|
|
processModelDisplayName: string;
|
|
}
|
|
|
|
export interface ProcessInstanceTask {
|
|
id: number;
|
|
task_id: string;
|
|
|
|
calling_subprocess_task_id: string;
|
|
created_at_in_seconds: number;
|
|
current_user_is_potential_owner: number;
|
|
data: any;
|
|
form_schema: any;
|
|
form_ui_schema: any;
|
|
lane_assignment_id: string;
|
|
name: string;
|
|
process_identifier: string;
|
|
process_initiator_username: string;
|
|
process_instance_id: number;
|
|
process_instance_status: string;
|
|
process_model_display_name: string;
|
|
process_model_identifier: string;
|
|
properties: any;
|
|
state: string;
|
|
task_title: string;
|
|
title: string;
|
|
type: string;
|
|
updated_at_in_seconds: number;
|
|
|
|
task_spiff_step?: number;
|
|
potential_owner_usernames?: string;
|
|
assigned_user_group_identifier?: string;
|
|
}
|
|
|
|
export interface ProcessReference {
|
|
name: string; // The process or decision Display name.
|
|
identifier: string; // The unique id of the process
|
|
display_name: string;
|
|
process_group_id: string;
|
|
process_model_id: string;
|
|
type: string; // either "decision" or "process"
|
|
file_name: string;
|
|
has_lanes: boolean;
|
|
is_executable: boolean;
|
|
is_primary: boolean;
|
|
}
|
|
|
|
export interface ProcessFile {
|
|
content_type: string;
|
|
last_modified: string;
|
|
name: string;
|
|
process_model_id: string;
|
|
references: ProcessReference[];
|
|
size: number;
|
|
type: string;
|
|
file_contents?: string;
|
|
}
|
|
|
|
export interface ProcessInstanceMetadata {
|
|
id: number;
|
|
key: string;
|
|
value: string;
|
|
}
|
|
|
|
export interface ProcessInstance {
|
|
id: number;
|
|
process_model_identifier: string;
|
|
process_model_display_name: string;
|
|
status: string;
|
|
start_in_seconds: number | null;
|
|
end_in_seconds: number | null;
|
|
process_initiator_username: string;
|
|
bpmn_xml_file_contents?: string;
|
|
spiff_step?: number;
|
|
created_at_in_seconds: number;
|
|
updated_at_in_seconds: number;
|
|
bpmn_version_control_identifier: string;
|
|
bpmn_version_control_type: string;
|
|
process_metadata?: ProcessInstanceMetadata[];
|
|
process_model_with_diagram_identifier?: string;
|
|
}
|
|
|
|
export interface MessageCorrelationProperties {
|
|
[key: string]: string;
|
|
}
|
|
|
|
export interface MessageCorrelations {
|
|
[key: string]: MessageCorrelationProperties;
|
|
}
|
|
|
|
export interface MessageInstance {
|
|
id: number;
|
|
process_model_identifier: string;
|
|
process_model_display_name: string;
|
|
process_instance_id: number;
|
|
name: string;
|
|
message_type: string;
|
|
failure_cause: string;
|
|
status: string;
|
|
created_at_in_seconds: number;
|
|
message_correlations?: MessageCorrelations;
|
|
correlation_keys: any;
|
|
}
|
|
|
|
export interface ReportFilter {
|
|
field_name: string;
|
|
field_value: string;
|
|
operator?: string;
|
|
}
|
|
|
|
export interface ReportColumn {
|
|
Header: string;
|
|
accessor: string;
|
|
filterable: boolean;
|
|
}
|
|
|
|
export interface ReportColumnForEditing extends ReportColumn {
|
|
filter_field_value: string;
|
|
filter_operator: string;
|
|
}
|
|
|
|
export interface ReportMetadata {
|
|
columns: ReportColumn[];
|
|
filter_by: ReportFilter[];
|
|
order_by: string[];
|
|
}
|
|
|
|
export interface ProcessInstanceReport {
|
|
id: number;
|
|
identifier: string;
|
|
name: string;
|
|
report_metadata: ReportMetadata;
|
|
}
|
|
|
|
export interface ProcessGroupLite {
|
|
id: string;
|
|
display_name: string;
|
|
}
|
|
|
|
export interface MetadataExtractionPath {
|
|
key: string;
|
|
path: string;
|
|
}
|
|
|
|
export interface ProcessModel {
|
|
id: string;
|
|
description: string;
|
|
display_name: string;
|
|
primary_file_name: string;
|
|
files: ProcessFile[];
|
|
parent_groups?: ProcessGroupLite[];
|
|
metadata_extraction_paths?: MetadataExtractionPath[];
|
|
fault_or_suspend_on_exception?: string;
|
|
exception_notification_addresses?: string[];
|
|
}
|
|
|
|
export interface ProcessGroup {
|
|
id: string;
|
|
display_name: string;
|
|
description?: string | null;
|
|
process_models?: ProcessModel[];
|
|
process_groups?: ProcessGroup[];
|
|
parent_groups?: ProcessGroupLite[];
|
|
}
|
|
|
|
export interface HotCrumbItemObject {
|
|
entityToExplode: ProcessModel | ProcessGroup | string;
|
|
entityType: string;
|
|
linkLastItem?: boolean;
|
|
}
|
|
|
|
export type HotCrumbItemArray = [displayValue: string, url?: string];
|
|
|
|
// tuple of display value and URL
|
|
export type HotCrumbItem = HotCrumbItemArray | HotCrumbItemObject;
|
|
|
|
export interface ErrorForDisplay {
|
|
message: string;
|
|
sentry_link?: string;
|
|
task_name?: string;
|
|
task_id?: string;
|
|
line_number?: number;
|
|
file_name?: string;
|
|
task_trace?: [string];
|
|
}
|
|
|
|
export interface AuthenticationParam {
|
|
id: string;
|
|
type: string;
|
|
required: boolean;
|
|
}
|
|
|
|
export interface AuthenticationItem {
|
|
id: string;
|
|
parameters: AuthenticationParam[];
|
|
}
|
|
|
|
export interface PaginationObject {
|
|
count: number;
|
|
total: number;
|
|
pages: number;
|
|
}
|
|
|
|
export interface CarbonComboBoxSelection {
|
|
selectedItem: ProcessModel;
|
|
}
|
|
|
|
export interface CarbonComboBoxProcessSelection {
|
|
selectedItem: ProcessReference;
|
|
}
|
|
|
|
export interface PermissionsToCheck {
|
|
[key: string]: string[];
|
|
}
|
|
export interface PermissionVerbResults {
|
|
[key: string]: boolean;
|
|
}
|
|
export interface PermissionCheckResult {
|
|
[key: string]: PermissionVerbResults;
|
|
}
|
|
export interface PermissionCheckResponseBody {
|
|
results: PermissionCheckResult;
|
|
}
|
|
|
|
export interface FormField {
|
|
id: string;
|
|
title: string;
|
|
required?: boolean;
|
|
type: string;
|
|
enum?: string[];
|
|
default?: any;
|
|
pattern?: string;
|
|
}
|
|
|
|
export interface JsonSchemaForm {
|
|
file_contents: string;
|
|
name: string;
|
|
process_model_id: string;
|
|
required: string[];
|
|
}
|