2023-01-04 21:11:52 +00:00
|
|
|
export interface User {
|
|
|
|
id: number;
|
|
|
|
username: string;
|
|
|
|
}
|
|
|
|
|
2022-10-12 14:21:49 +00:00
|
|
|
export interface Secret {
|
2022-10-14 00:45:09 +00:00
|
|
|
id: number;
|
2022-10-12 14:21:49 +00:00
|
|
|
key: string;
|
|
|
|
value: string;
|
2022-10-14 00:45:09 +00:00
|
|
|
creator_user_id: string;
|
2022-10-12 14:21:49 +00:00
|
|
|
}
|
|
|
|
|
2022-12-27 16:45:42 +00:00
|
|
|
export interface ProcessData {
|
|
|
|
process_data_identifier: string;
|
|
|
|
process_data_value: any;
|
|
|
|
}
|
|
|
|
|
2022-10-12 14:21:49 +00:00
|
|
|
export interface RecentProcessModel {
|
2022-11-10 03:24:16 +00:00
|
|
|
processGroupIdentifier?: string;
|
2022-10-12 14:21:49 +00:00
|
|
|
processModelIdentifier: string;
|
|
|
|
processModelDisplayName: string;
|
|
|
|
}
|
|
|
|
|
2023-03-21 14:45:10 +00:00
|
|
|
export interface TaskPropertiesJson {
|
|
|
|
parent: string;
|
2023-05-15 17:53:39 +00:00
|
|
|
last_state_change: number;
|
2023-03-21 14:45:10 +00:00
|
|
|
}
|
|
|
|
|
2023-03-20 20:51:29 +00:00
|
|
|
export interface TaskDefinitionPropertiesJson {
|
|
|
|
spec: string;
|
|
|
|
}
|
|
|
|
|
2023-03-21 14:45:10 +00:00
|
|
|
export interface EventDefinition {
|
|
|
|
typename: string;
|
|
|
|
payload: any;
|
|
|
|
event_definitions: [EventDefinition];
|
|
|
|
|
|
|
|
message_var?: string;
|
|
|
|
}
|
|
|
|
|
2023-05-02 17:40:41 +00:00
|
|
|
export interface SignalButton {
|
|
|
|
label: string;
|
|
|
|
event: EventDefinition;
|
|
|
|
}
|
|
|
|
|
2023-04-20 16:05:35 +00:00
|
|
|
// TODO: merge with ProcessInstanceTask
|
2023-03-20 16:04:22 +00:00
|
|
|
export interface Task {
|
2023-03-20 20:51:29 +00:00
|
|
|
id: number;
|
2023-03-20 16:04:22 +00:00
|
|
|
guid: string;
|
2023-04-24 19:01:24 +00:00
|
|
|
process_instance_id: number;
|
2023-03-20 16:04:22 +00:00
|
|
|
bpmn_identifier: string;
|
|
|
|
bpmn_name?: string;
|
2023-03-20 20:51:29 +00:00
|
|
|
bpmn_process_direct_parent_guid: string;
|
|
|
|
bpmn_process_definition_identifier: string;
|
2023-03-20 16:04:22 +00:00
|
|
|
data: any;
|
|
|
|
state: string;
|
|
|
|
typename: string;
|
2023-03-21 14:45:10 +00:00
|
|
|
properties_json: TaskPropertiesJson;
|
2023-03-20 20:51:29 +00:00
|
|
|
task_definition_properties_json: TaskDefinitionPropertiesJson;
|
|
|
|
|
2023-03-21 14:45:10 +00:00
|
|
|
event_definition?: EventDefinition;
|
2023-04-24 19:01:24 +00:00
|
|
|
|
|
|
|
process_model_display_name: string;
|
|
|
|
process_model_identifier: string;
|
|
|
|
name_for_display: string;
|
|
|
|
can_complete: boolean;
|
|
|
|
form_schema: any;
|
|
|
|
form_ui_schema: any;
|
2023-05-02 17:40:41 +00:00
|
|
|
signal_buttons: SignalButton[];
|
2023-03-20 16:04:22 +00:00
|
|
|
}
|
|
|
|
|
2022-12-12 17:21:37 +00:00
|
|
|
export interface ProcessInstanceTask {
|
2023-03-20 16:04:22 +00:00
|
|
|
id: string;
|
2022-12-30 17:30:23 +00:00
|
|
|
task_id: string;
|
2023-04-18 23:36:31 +00:00
|
|
|
can_complete: boolean;
|
2023-01-26 14:45:09 +00:00
|
|
|
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;
|
2022-12-30 17:30:23 +00:00
|
|
|
process_instance_id: number;
|
2023-01-26 14:45:09 +00:00
|
|
|
process_instance_status: string;
|
2022-12-12 17:21:37 +00:00
|
|
|
process_model_display_name: string;
|
|
|
|
process_model_identifier: string;
|
2023-01-26 14:45:09 +00:00
|
|
|
properties: any;
|
2022-12-13 19:16:28 +00:00
|
|
|
state: string;
|
2023-01-26 14:45:09 +00:00
|
|
|
task_title: string;
|
|
|
|
title: string;
|
|
|
|
type: string;
|
2022-12-30 17:30:23 +00:00
|
|
|
updated_at_in_seconds: number;
|
2023-01-26 14:45:09 +00:00
|
|
|
|
2023-01-13 19:31:12 +00:00
|
|
|
potential_owner_usernames?: string;
|
|
|
|
assigned_user_group_identifier?: string;
|
2023-04-22 19:38:29 +00:00
|
|
|
error_message?: string;
|
2022-12-12 17:21:37 +00:00
|
|
|
}
|
|
|
|
|
2022-11-16 21:53:51 +00:00
|
|
|
export interface ProcessReference {
|
|
|
|
name: string; // The process or decision Display name.
|
2022-12-05 18:29:46 +00:00
|
|
|
identifier: string; // The unique id of the process
|
2022-11-16 21:53:51 +00:00
|
|
|
display_name: string;
|
|
|
|
process_group_id: string;
|
|
|
|
process_model_id: string;
|
2022-11-07 19:35:49 +00:00
|
|
|
type: string; // either "decision" or "process"
|
2022-11-16 21:53:51 +00:00
|
|
|
file_name: string;
|
|
|
|
has_lanes: boolean;
|
|
|
|
is_executable: boolean;
|
|
|
|
is_primary: boolean;
|
2022-11-07 19:35:49 +00:00
|
|
|
}
|
|
|
|
|
2023-05-12 21:07:53 +00:00
|
|
|
export type ObjectWithStringKeysAndValues = { [key: string]: string };
|
|
|
|
|
2022-11-07 19:35:49 +00:00
|
|
|
export interface ProcessFile {
|
|
|
|
content_type: string;
|
|
|
|
last_modified: string;
|
|
|
|
name: string;
|
|
|
|
process_model_id: string;
|
2022-11-16 21:53:51 +00:00
|
|
|
references: ProcessReference[];
|
2022-11-07 19:35:49 +00:00
|
|
|
size: number;
|
|
|
|
type: string;
|
2022-11-08 17:08:18 +00:00
|
|
|
file_contents?: string;
|
2023-05-02 20:31:29 +00:00
|
|
|
file_contents_hash?: string;
|
2022-11-07 19:35:49 +00:00
|
|
|
}
|
|
|
|
|
2023-01-24 19:35:27 +00:00
|
|
|
export interface ProcessInstanceMetadata {
|
|
|
|
id: number;
|
|
|
|
key: string;
|
|
|
|
value: string;
|
|
|
|
}
|
|
|
|
|
2022-11-18 21:40:49 +00:00
|
|
|
export interface ProcessInstance {
|
|
|
|
id: number;
|
|
|
|
process_model_identifier: string;
|
2022-11-30 20:08:04 +00:00
|
|
|
process_model_display_name: string;
|
2022-12-19 16:54:22 +00:00
|
|
|
status: string;
|
|
|
|
start_in_seconds: number | null;
|
|
|
|
end_in_seconds: number | null;
|
2023-01-12 20:27:32 +00:00
|
|
|
process_initiator_username: string;
|
2022-12-19 16:54:22 +00:00
|
|
|
bpmn_xml_file_contents?: string;
|
2023-01-12 20:27:32 +00:00
|
|
|
created_at_in_seconds: number;
|
|
|
|
updated_at_in_seconds: number;
|
|
|
|
bpmn_version_control_identifier: string;
|
|
|
|
bpmn_version_control_type: string;
|
2023-01-24 19:35:27 +00:00
|
|
|
process_metadata?: ProcessInstanceMetadata[];
|
2023-01-25 15:39:17 +00:00
|
|
|
process_model_with_diagram_identifier?: string;
|
2023-05-03 15:16:13 +00:00
|
|
|
|
|
|
|
// from tasks
|
|
|
|
potential_owner_usernames?: string;
|
|
|
|
task_id?: string;
|
|
|
|
task_updated_at_in_seconds?: number;
|
|
|
|
waiting_for?: string;
|
2022-11-30 20:08:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
2023-02-27 19:01:21 +00:00
|
|
|
name: string;
|
2022-11-30 20:08:04 +00:00
|
|
|
message_type: string;
|
|
|
|
failure_cause: string;
|
|
|
|
status: string;
|
|
|
|
created_at_in_seconds: number;
|
|
|
|
message_correlations?: MessageCorrelations;
|
2023-02-27 19:01:21 +00:00
|
|
|
correlation_keys: any;
|
2022-11-18 21:40:49 +00:00
|
|
|
}
|
|
|
|
|
2022-12-02 18:47:04 +00:00
|
|
|
export interface ReportFilter {
|
|
|
|
field_name: string;
|
2023-05-01 16:25:22 +00:00
|
|
|
// using any here so we can use this as a string and boolean
|
|
|
|
field_value: any;
|
2022-12-02 18:47:04 +00:00
|
|
|
operator?: string;
|
|
|
|
}
|
|
|
|
|
2022-12-02 15:32:40 +00:00
|
|
|
export interface ReportColumn {
|
|
|
|
Header: string;
|
|
|
|
accessor: string;
|
|
|
|
filterable: boolean;
|
2022-12-02 18:47:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ReportColumnForEditing extends ReportColumn {
|
|
|
|
filter_field_value: string;
|
|
|
|
filter_operator: string;
|
2022-12-02 15:32:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ReportMetadata {
|
|
|
|
columns: ReportColumn[];
|
2022-12-02 18:47:04 +00:00
|
|
|
filter_by: ReportFilter[];
|
|
|
|
order_by: string[];
|
2022-12-02 15:32:40 +00:00
|
|
|
}
|
|
|
|
|
2022-11-22 14:35:42 +00:00
|
|
|
export interface ProcessInstanceReport {
|
2022-12-02 15:32:40 +00:00
|
|
|
id: number;
|
|
|
|
identifier: string;
|
|
|
|
name: string;
|
|
|
|
report_metadata: ReportMetadata;
|
2022-11-22 14:35:42 +00:00
|
|
|
}
|
|
|
|
|
2022-11-23 20:39:10 +00:00
|
|
|
export interface ProcessGroupLite {
|
|
|
|
id: string;
|
|
|
|
display_name: string;
|
|
|
|
}
|
|
|
|
|
2022-12-02 21:03:43 +00:00
|
|
|
export interface MetadataExtractionPath {
|
|
|
|
key: string;
|
|
|
|
path: string;
|
2022-12-02 20:46:05 +00:00
|
|
|
}
|
|
|
|
|
2022-10-12 14:21:49 +00:00
|
|
|
export interface ProcessModel {
|
|
|
|
id: string;
|
2022-11-07 23:37:46 +00:00
|
|
|
description: string;
|
2022-10-12 14:21:49 +00:00
|
|
|
display_name: string;
|
|
|
|
primary_file_name: string;
|
2023-04-21 21:22:17 +00:00
|
|
|
primary_process_id: string;
|
2022-11-07 19:35:49 +00:00
|
|
|
files: ProcessFile[];
|
2022-11-23 20:39:10 +00:00
|
|
|
parent_groups?: ProcessGroupLite[];
|
2022-12-02 21:03:43 +00:00
|
|
|
metadata_extraction_paths?: MetadataExtractionPath[];
|
2023-01-09 18:00:51 +00:00
|
|
|
fault_or_suspend_on_exception?: string;
|
|
|
|
exception_notification_addresses?: string[];
|
2023-03-07 04:23:10 +00:00
|
|
|
bpmn_version_control_identifier?: string;
|
2022-10-12 14:21:49 +00:00
|
|
|
}
|
|
|
|
|
2022-11-18 17:42:08 +00:00
|
|
|
export interface ProcessGroup {
|
|
|
|
id: string;
|
|
|
|
display_name: string;
|
|
|
|
description?: string | null;
|
|
|
|
process_models?: ProcessModel[];
|
|
|
|
process_groups?: ProcessGroup[];
|
2022-11-23 20:39:10 +00:00
|
|
|
parent_groups?: ProcessGroupLite[];
|
2022-11-18 17:42:08 +00:00
|
|
|
}
|
|
|
|
|
2022-11-23 20:39:10 +00:00
|
|
|
export interface HotCrumbItemObject {
|
|
|
|
entityToExplode: ProcessModel | ProcessGroup | string;
|
|
|
|
entityType: string;
|
|
|
|
linkLastItem?: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type HotCrumbItemArray = [displayValue: string, url?: string];
|
|
|
|
|
2022-10-12 14:21:49 +00:00
|
|
|
// tuple of display value and URL
|
2022-11-23 20:39:10 +00:00
|
|
|
export type HotCrumbItem = HotCrumbItemArray | HotCrumbItemObject;
|
2022-10-18 20:41:13 +00:00
|
|
|
|
|
|
|
export interface ErrorForDisplay {
|
|
|
|
message: string;
|
2023-04-20 12:31:55 +00:00
|
|
|
|
|
|
|
messageClassName?: string;
|
2022-10-18 20:41:13 +00:00
|
|
|
sentry_link?: string;
|
2022-12-28 21:29:17 +00:00
|
|
|
task_name?: string;
|
|
|
|
task_id?: string;
|
|
|
|
line_number?: number;
|
2023-04-19 19:20:19 +00:00
|
|
|
error_line?: string;
|
2022-12-28 21:29:17 +00:00
|
|
|
file_name?: string;
|
2023-04-19 19:20:19 +00:00
|
|
|
task_trace?: string[];
|
2023-04-20 12:31:55 +00:00
|
|
|
stacktrace?: string[];
|
2022-10-18 20:41:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface AuthenticationParam {
|
|
|
|
id: string;
|
|
|
|
type: string;
|
|
|
|
required: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface AuthenticationItem {
|
|
|
|
id: string;
|
|
|
|
parameters: AuthenticationParam[];
|
|
|
|
}
|
2022-11-01 20:26:24 +00:00
|
|
|
|
|
|
|
export interface PaginationObject {
|
|
|
|
count: number;
|
|
|
|
total: number;
|
|
|
|
pages: number;
|
|
|
|
}
|
2022-11-02 21:16:41 +00:00
|
|
|
|
|
|
|
export interface CarbonComboBoxSelection {
|
|
|
|
selectedItem: ProcessModel;
|
|
|
|
}
|
2022-11-15 19:40:35 +00:00
|
|
|
|
2022-11-16 21:53:51 +00:00
|
|
|
export interface CarbonComboBoxProcessSelection {
|
|
|
|
selectedItem: ProcessReference;
|
|
|
|
}
|
|
|
|
|
2022-11-15 19:40:35 +00:00
|
|
|
export interface PermissionsToCheck {
|
|
|
|
[key: string]: string[];
|
|
|
|
}
|
2022-11-16 18:03:59 +00:00
|
|
|
export interface PermissionVerbResults {
|
|
|
|
[key: string]: boolean;
|
2022-11-15 19:40:35 +00:00
|
|
|
}
|
|
|
|
export interface PermissionCheckResult {
|
|
|
|
[key: string]: PermissionVerbResults;
|
|
|
|
}
|
2022-11-16 18:03:59 +00:00
|
|
|
export interface PermissionCheckResponseBody {
|
|
|
|
results: PermissionCheckResult;
|
2022-11-15 19:40:35 +00:00
|
|
|
}
|
2022-11-20 00:44:21 +00:00
|
|
|
|
|
|
|
export interface FormField {
|
|
|
|
id: string;
|
|
|
|
title: string;
|
2023-01-22 05:36:16 +00:00
|
|
|
required?: boolean;
|
2022-11-20 01:55:27 +00:00
|
|
|
type: string;
|
2023-01-22 05:36:16 +00:00
|
|
|
enum?: string[];
|
|
|
|
default?: any;
|
|
|
|
pattern?: string;
|
2023-01-22 01:51:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface JsonSchemaForm {
|
|
|
|
file_contents: string;
|
|
|
|
name: string;
|
|
|
|
process_model_id: string;
|
|
|
|
required: string[];
|
2022-11-20 00:44:21 +00:00
|
|
|
}
|
2023-03-23 15:08:23 +00:00
|
|
|
|
2023-04-19 17:56:00 +00:00
|
|
|
export interface ProcessInstanceEventErrorDetail {
|
|
|
|
id: number;
|
|
|
|
message: string;
|
2023-04-20 12:31:55 +00:00
|
|
|
stacktrace: string[];
|
2023-04-19 19:20:19 +00:00
|
|
|
task_line_contents?: string;
|
|
|
|
task_line_number?: number;
|
|
|
|
task_offset?: number;
|
|
|
|
task_trace?: string[];
|
2023-04-19 17:56:00 +00:00
|
|
|
}
|
|
|
|
|
2023-03-23 15:08:23 +00:00
|
|
|
export interface ProcessInstanceLogEntry {
|
|
|
|
bpmn_process_definition_identifier: string;
|
|
|
|
bpmn_process_definition_name: string;
|
|
|
|
bpmn_task_type: string;
|
|
|
|
event_type: string;
|
|
|
|
spiff_task_guid: string;
|
|
|
|
task_definition_identifier: string;
|
|
|
|
task_guid: string;
|
|
|
|
timestamp: number;
|
|
|
|
id: number;
|
|
|
|
process_instance_id: number;
|
|
|
|
|
|
|
|
task_definition_name?: string;
|
|
|
|
user_id?: number;
|
|
|
|
username?: string;
|
|
|
|
}
|
2023-04-24 21:06:28 +00:00
|
|
|
|
|
|
|
export interface ProcessModelCaller {
|
|
|
|
display_name: string;
|
|
|
|
process_model_id: string;
|
|
|
|
}
|
2023-05-01 16:25:22 +00:00
|
|
|
|
|
|
|
export interface UserGroup {}
|
2023-05-04 20:52:41 +00:00
|
|
|
|
|
|
|
type InterstitialPageResponseType =
|
|
|
|
| 'task_update'
|
|
|
|
| 'error'
|
|
|
|
| 'unrunnable_instance';
|
|
|
|
|
|
|
|
export interface InterstitialPageResponse {
|
|
|
|
type: InterstitialPageResponseType;
|
|
|
|
error?: any;
|
|
|
|
task?: ProcessInstanceTask;
|
|
|
|
process_instance?: ProcessInstance;
|
|
|
|
}
|
2023-05-23 14:33:37 +00:00
|
|
|
|
|
|
|
export interface TestCaseErrorDetails {
|
|
|
|
error_messages: string[];
|
|
|
|
stacktrace?: string[];
|
|
|
|
task_bpmn_identifier?: string;
|
|
|
|
task_bpmn_name?: string;
|
|
|
|
task_line_contents?: string;
|
|
|
|
task_line_number?: number;
|
|
|
|
task_trace?: string[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface TestCaseResult {
|
|
|
|
bpmn_file: string;
|
|
|
|
passed: boolean;
|
|
|
|
test_case_identifier: string;
|
|
|
|
test_case_error_details?: TestCaseErrorDetails;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface TestCaseResults {
|
|
|
|
all_passed: boolean;
|
|
|
|
failing: TestCaseResult[];
|
|
|
|
passing: TestCaseResult[];
|
|
|
|
}
|