lecom-modeler 0.47.1 → 0.47.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.cts CHANGED
@@ -105,10 +105,11 @@ interface RoutingElement extends BaseElement {
105
105
  }
106
106
  type Element = ActivityElement | SubProcessElement | ServiceTaskElement | GatewayElement | RoutingElement;
107
107
 
108
+ type DiagramValidationErrorCode = "subprocess_not_configured" | "cannot_validate_subprocess_reference" | "service_task_without_rejection_routing" | "service_task_without_automation" | "service_task_connector_inactive" | "service_task_integration_suspended" | "service_task_automation_status_unavailable" | "service_task_initial_or_final" | "service_task_in_loop";
108
109
  interface ValidateDiagram {
109
110
  area: "DIAGRAM";
110
111
  severity: string;
111
- code: "subprocess_not_configured";
112
+ code: DiagramValidationErrorCode;
112
113
  detail: {
113
114
  phases: Phase[];
114
115
  };
@@ -139,7 +140,7 @@ interface ModelerProps {
139
140
  edgeHighlight?: boolean;
140
141
  validateCustomDiagram?: () => Promise<ValidateDiagram[]>;
141
142
  validateDeleteElements?: (elementIds: string[]) => Promise<ValidateDeleteElements>;
142
- onElementChanges?: (diagram: string) => void | Promise<void>;
143
+ onElementChanges?: (diagram: string) => void;
143
144
  onConfigureElement?: (element: Element) => void;
144
145
  onElementClick?: (element: Element) => void;
145
146
  onSubprocessValidationClick?: (subprocess: SubProcessElement) => void;
package/lib/index.d.ts CHANGED
@@ -105,10 +105,11 @@ interface RoutingElement extends BaseElement {
105
105
  }
106
106
  type Element = ActivityElement | SubProcessElement | ServiceTaskElement | GatewayElement | RoutingElement;
107
107
 
108
+ type DiagramValidationErrorCode = "subprocess_not_configured" | "cannot_validate_subprocess_reference" | "service_task_without_rejection_routing" | "service_task_without_automation" | "service_task_connector_inactive" | "service_task_integration_suspended" | "service_task_automation_status_unavailable" | "service_task_initial_or_final" | "service_task_in_loop";
108
109
  interface ValidateDiagram {
109
110
  area: "DIAGRAM";
110
111
  severity: string;
111
- code: "subprocess_not_configured";
112
+ code: DiagramValidationErrorCode;
112
113
  detail: {
113
114
  phases: Phase[];
114
115
  };
@@ -139,7 +140,7 @@ interface ModelerProps {
139
140
  edgeHighlight?: boolean;
140
141
  validateCustomDiagram?: () => Promise<ValidateDiagram[]>;
141
142
  validateDeleteElements?: (elementIds: string[]) => Promise<ValidateDeleteElements>;
142
- onElementChanges?: (diagram: string) => void | Promise<void>;
143
+ onElementChanges?: (diagram: string) => void;
143
144
  onConfigureElement?: (element: Element) => void;
144
145
  onElementClick?: (element: Element) => void;
145
146
  onSubprocessValidationClick?: (subprocess: SubProcessElement) => void;