@bpmnkit/core 1.8.0 → 1.10.0

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.
Files changed (110) hide show
  1. package/agent-cards/bpmn.md +4 -2
  2. package/builder-reference.md +11 -9
  3. package/dist/bpmn/auto-layout.js +82 -26
  4. package/dist/bpmn/bpmn-builder.d.ts +84 -7
  5. package/dist/bpmn/bpmn-builder.js +321 -76
  6. package/dist/bpmn/bpmn-model.d.ts +2 -0
  7. package/dist/bpmn/bpmn-parser.js +68 -76
  8. package/dist/bpmn/bpmn-serializer.js +60 -19
  9. package/dist/bpmn/bpmnlint.js +4 -69
  10. package/dist/bpmn/builder-rules.d.ts +20 -0
  11. package/dist/bpmn/builder-rules.js +120 -0
  12. package/dist/bpmn/camunda-compat-data.d.ts +10 -148
  13. package/dist/bpmn/camunda-compat-data.js +16 -407
  14. package/dist/bpmn/camunda-compat-feel.d.ts +3 -0
  15. package/dist/bpmn/camunda-compat-feel.js +1 -1
  16. package/dist/bpmn/camunda-compat.js +7 -6
  17. package/dist/bpmn/camunda7/export.js +4 -1
  18. package/dist/bpmn/camunda7/juel.js +2 -1
  19. package/dist/bpmn/camunda7/migrate.d.ts +23 -0
  20. package/dist/bpmn/camunda7/migrate.js +75 -3
  21. package/dist/bpmn/compact-stream.js +2 -1
  22. package/dist/bpmn/compact.d.ts +80 -4
  23. package/dist/bpmn/compact.js +220 -38
  24. package/dist/bpmn/feel-condition.d.ts +9 -0
  25. package/dist/bpmn/feel-condition.js +19 -0
  26. package/dist/bpmn/full-operations.js +31 -4
  27. package/dist/bpmn/index.d.ts +17 -1
  28. package/dist/bpmn/index.js +19 -25
  29. package/dist/bpmn/operations.d.ts +4 -4
  30. package/dist/bpmn/operations.js +14 -2
  31. package/dist/bpmn/optimize/bpmnlint-rules.js +7 -40
  32. package/dist/bpmn/optimize/index.js +15 -1
  33. package/dist/bpmn/optimize/tasks.js +12 -3
  34. package/dist/bpmn/process-delta.d.ts +18 -0
  35. package/dist/bpmn/process-delta.js +20 -2
  36. package/dist/bpmn/process-text-writer.js +27 -1
  37. package/dist/bpmn/process-text.d.ts +9 -3
  38. package/dist/bpmn/process-text.js +122 -16
  39. package/dist/bpmn/stable-ids.d.ts +2 -0
  40. package/dist/bpmn/stable-ids.js +8 -0
  41. package/dist/bpmn/xsd-guards.d.ts +8 -0
  42. package/dist/bpmn/xsd-guards.js +56 -0
  43. package/dist/bpmn/zeebe-extensions.js +2 -1
  44. package/dist/bpmn/zeebe-placement.js +6 -129
  45. package/dist/bpmn/zeebe-validate/context.d.ts +132 -0
  46. package/dist/bpmn/zeebe-validate/context.js +241 -0
  47. package/dist/bpmn/zeebe-validate/gate.d.ts +87 -0
  48. package/dist/bpmn/zeebe-validate/gate.js +492 -0
  49. package/dist/bpmn/zeebe-validate/index.d.ts +37 -0
  50. package/dist/bpmn/zeebe-validate/index.js +106 -0
  51. package/dist/bpmn/zeebe-validate/rules/events.d.ts +4 -0
  52. package/dist/bpmn/zeebe-validate/rules/events.js +580 -0
  53. package/dist/bpmn/zeebe-validate/rules/extensions.d.ts +4 -0
  54. package/dist/bpmn/zeebe-validate/rules/extensions.js +411 -0
  55. package/dist/bpmn/zeebe-validate/rules/gateways.d.ts +3 -0
  56. package/dist/bpmn/zeebe-validate/rules/gateways.js +296 -0
  57. package/dist/bpmn/zeebe-validate/rules/references.d.ts +3 -0
  58. package/dist/bpmn/zeebe-validate/rules/references.js +495 -0
  59. package/dist/bpmn/zeebe-validate/rules/structure.d.ts +3 -0
  60. package/dist/bpmn/zeebe-validate/rules/structure.js +629 -0
  61. package/dist/bpmn/zeebe-validate/rules/tasks.d.ts +4 -0
  62. package/dist/bpmn/zeebe-validate/rules/tasks.js +446 -0
  63. package/dist/bpmn/zeebe-validate/xml.d.ts +15 -0
  64. package/dist/bpmn/zeebe-validate/xml.js +1062 -0
  65. package/dist/bpmn/zeebe-validate/xsd.d.ts +19 -0
  66. package/dist/bpmn/zeebe-validate/xsd.js +350 -0
  67. package/dist/connectors/apply-element.d.ts +5 -2
  68. package/dist/connectors/apply-element.js +6 -0
  69. package/dist/connectors/apply-many.d.ts +9 -2
  70. package/dist/connectors/apply-many.js +17 -2
  71. package/dist/connectors/apply.d.ts +4 -2
  72. package/dist/connectors/deployability.d.ts +27 -0
  73. package/dist/connectors/deployability.js +41 -0
  74. package/dist/connectors/index.d.ts +1 -0
  75. package/dist/connectors/lines.d.ts +10 -0
  76. package/dist/connectors/lines.js +13 -4
  77. package/dist/dmn/dmn-model.d.ts +24 -4
  78. package/dist/dmn/dmn-parser.js +37 -3
  79. package/dist/dmn/dmn-serializer.js +48 -47
  80. package/dist/dmn/lint.js +4 -11
  81. package/dist/errors.d.ts +30 -1
  82. package/dist/errors.js +31 -0
  83. package/dist/form/form-model.d.ts +11 -0
  84. package/dist/form/form-parser.d.ts +1 -0
  85. package/dist/form/form-parser.js +48 -12
  86. package/dist/form/form-serializer.js +40 -17
  87. package/dist/form/lint.js +6 -40
  88. package/dist/generated/bpmn-elements.d.ts +5 -0
  89. package/dist/generated/bpmn-elements.js +151 -0
  90. package/dist/generated/camunda-compat-data.d.ts +148 -0
  91. package/dist/generated/camunda-compat-data.js +371 -0
  92. package/dist/generated/dmn-elements.d.ts +12 -0
  93. package/dist/generated/dmn-elements.js +45 -0
  94. package/dist/generated/form-elements.d.ts +5 -0
  95. package/dist/generated/form-elements.js +45 -0
  96. package/dist/generated/lint-rules.d.ts +17 -0
  97. package/dist/generated/lint-rules.js +116 -0
  98. package/dist/generated/zeebe-elements.d.ts +10 -0
  99. package/dist/generated/zeebe-elements.js +168 -0
  100. package/dist/generated/zeebe-rules.d.ts +25 -0
  101. package/dist/generated/zeebe-rules.js +202 -0
  102. package/dist/index.d.ts +11 -4
  103. package/dist/index.js +4 -1
  104. package/dist/layout/annotations.js +21 -1
  105. package/dist/layout/orthogonal.js +9 -3
  106. package/dist/plan/compile.d.ts +26 -1
  107. package/dist/plan/compile.js +48 -6
  108. package/dist/plan/merge.d.ts +2 -1
  109. package/dist/plan/merge.js +13 -5
  110. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ import { KNOWN_COMPONENT_TYPES } from "./form-parser.js";
1
2
  /** Serializes a FormDefinition to a JSON string. */
2
3
  export function exportForm(form) {
3
4
  const obj = {};
@@ -25,9 +26,22 @@ function serializeComponent(component) {
25
26
  const out = serializeKnownComponent(component);
26
27
  if (component.conditional !== undefined)
27
28
  out.conditional = { ...component.conditional };
28
- for (const [key, value] of Object.entries(component.extraProps ?? {})) {
29
- if (!(key in out))
30
- out[key] = value;
29
+ // An unknown component keeps every raw key at the top level already, so a raw
30
+ // `extraProps` key there is data, not the bag (a string would spread per character).
31
+ if (KNOWN_COMPONENT_TYPES.has(component.type)) {
32
+ for (const [key, value] of Object.entries(component.extraProps ?? {})) {
33
+ if (!(key in out))
34
+ out[key] = value;
35
+ }
36
+ }
37
+ return out;
38
+ }
39
+ /** Writes `extra` into `out` unless the key is taken; defineProperty keeps "__proto__" as data. */
40
+ function addExtras(out, extra) {
41
+ for (const [key, value] of Object.entries(extra ?? {})) {
42
+ if (Object.hasOwn(out, key))
43
+ continue;
44
+ Object.defineProperty(out, key, { value, enumerable: true, writable: true, configurable: true });
31
45
  }
32
46
  return out;
33
47
  }
@@ -65,6 +79,7 @@ function serializeKnownComponent(component) {
65
79
  return buildObj(component, [
66
80
  "label",
67
81
  "values",
82
+ "valuesExpression",
68
83
  "type",
69
84
  "layout",
70
85
  "id",
@@ -83,7 +98,16 @@ function serializeKnownComponent(component) {
83
98
  "layout",
84
99
  ]);
85
100
  case "checklist":
86
- return buildObj(component, ["label", "values", "type", "layout", "id", "key", "validate"]);
101
+ return buildObj(component, [
102
+ "label",
103
+ "values",
104
+ "valuesExpression",
105
+ "type",
106
+ "layout",
107
+ "id",
108
+ "key",
109
+ "validate",
110
+ ]);
87
111
  case "group":
88
112
  return buildGroupObj(component);
89
113
  case "number":
@@ -155,13 +179,10 @@ function buildObj(component, keys) {
155
179
  out.layout = serializeLayout(value);
156
180
  }
157
181
  else if (key === "validate") {
158
- out.validate = { ...value };
182
+ out.validate = serializeValidation(value);
159
183
  }
160
184
  else if (key === "values") {
161
- out.values = value.map((v) => ({
162
- label: v.label,
163
- value: v.value,
164
- }));
185
+ out.values = value.map((v) => addExtras({ label: v.label, value: v.value }, v.extraProps));
165
186
  }
166
187
  else {
167
188
  out[key] = value;
@@ -181,17 +202,17 @@ function buildGroupObj(component) {
181
202
  out.id = component.id;
182
203
  return out;
183
204
  }
205
+ function serializeValidation(validate) {
206
+ const { extraProps, ...known } = validate;
207
+ return addExtras({ ...known }, extraProps);
208
+ }
184
209
  function serializeLayout(layout) {
185
210
  const out = {};
186
211
  if (layout.row !== undefined)
187
212
  out.row = layout.row;
188
- if (layout.columns !== undefined) {
189
- out.columns = layout.columns;
190
- }
191
- else {
192
- out.columns = null;
193
- }
194
- return out;
213
+ // An unmodelled `columns` (wrong type) is kept rather than replaced by the null default.
214
+ out.columns = layout.columns !== undefined ? layout.columns : (layout.extraProps?.columns ?? null);
215
+ return addExtras(out, layout.extraProps);
195
216
  }
196
217
  function buildTableObj(component) {
197
218
  const out = { type: "table", id: component.id };
@@ -243,8 +264,10 @@ function buildIframeObj(component) {
243
264
  }
244
265
  function buildUnknownObj(component) {
245
266
  const out = { ...component };
246
- if (component.layout !== undefined)
267
+ // `layout: null` is a raw key the parser reads as "no layout"; it is written back as given.
268
+ if (component.layout !== undefined && component.layout !== null) {
247
269
  out.layout = serializeLayout(component.layout);
270
+ }
248
271
  return out;
249
272
  }
250
273
  //# sourceMappingURL=form-serializer.js.map
package/dist/form/lint.js CHANGED
@@ -1,48 +1,14 @@
1
1
  import { parseExpression } from "@bpmnkit/feel";
2
2
  import { withCardHint } from "../check-finding.js";
3
- /** form-js component types (form-js 1.x, as Camunda Tasklist renders them). */
4
- const KNOWN_TYPES = new Set([
5
- "text",
6
- "textfield",
7
- "textarea",
8
- "number",
9
- "datetime",
10
- "select",
11
- "radio",
12
- "checkbox",
13
- "checklist",
14
- "taglist",
15
- "button",
16
- "group",
17
- "dynamiclist",
18
- "iframe",
19
- "image",
20
- "table",
21
- "html",
22
- "separator",
23
- "spacer",
24
- "expression",
25
- "filepicker",
26
- "documentPreview",
27
- ]);
3
+ import { FORM_ELEMENTS_BY_TRAIT, FORM_ELEMENT_NAMES } from "../generated/form-elements.js";
4
+ // Component types and their traits come from spec/elements/form.json (pnpm spec:gen).
5
+ const KNOWN_TYPES = new Set(FORM_ELEMENT_NAMES);
28
6
  /** Components that bind a value to a process variable, and so need a `key`. */
29
- const KEYED_TYPES = new Set([
30
- "textfield",
31
- "textarea",
32
- "number",
33
- "datetime",
34
- "select",
35
- "radio",
36
- "checkbox",
37
- "checklist",
38
- "taglist",
39
- "expression",
40
- "filepicker",
41
- ]);
7
+ const KEYED_TYPES = new Set(FORM_ELEMENTS_BY_TRAIT.keyed);
42
8
  /** Components that choose from a list of options. */
43
- const OPTION_TYPES = new Set(["select", "radio", "checklist", "taglist"]);
9
+ const OPTION_TYPES = new Set(FORM_ELEMENTS_BY_TRAIT.options);
44
10
  /** Containers whose `path` opens a nested data scope for the keys inside them. */
45
- const SCOPED_CONTAINERS = new Set(["group", "dynamiclist"]);
11
+ const SCOPED_CONTAINERS = new Set(FORM_ELEMENTS_BY_TRAIT.scope);
46
12
  const KEY_PATTERN = /^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*)*$/;
47
13
  /** Properties that are not expressions even though a value may happen to start with `=`. */
48
14
  const NON_FEEL_KEYS = new Set(["components", "id", "type", "key", "path", "values"]);
@@ -0,0 +1,5 @@
1
+ /** Every bpmn element, in the spec's order. */
2
+ export declare const BPMN_ELEMENT_NAMES: readonly ["baseElement", "documentation", "extensionElements", "rootElement", "definitions", "flowElement", "flowNode", "incoming", "outgoing", "activity", "task", "serviceTask", "scriptTask", "userTask", "sendTask", "receiveTask", "businessRuleTask", "manualTask", "callActivity", "subProcess", "adHocSubProcess", "transaction", "eventSubProcess", "event", "catchEvent", "throwEvent", "startEvent", "endEvent", "intermediateCatchEvent", "intermediateThrowEvent", "boundaryEvent", "gateway", "exclusiveGateway", "parallelGateway", "inclusiveGateway", "eventBasedGateway", "complexGateway", "dataObject", "dataObjectReference", "dataStoreReference", "sequenceFlow", "property", "dataInputAssociation", "dataOutputAssociation", "sourceRef", "targetRef", "expression", "formalExpression", "conditionExpression", "completionCondition", "loopCardinality", "multiInstanceLoopCharacteristics", "eventDefinition", "timerEventDefinition", "timeDate", "timeDuration", "timeCycle", "errorEventDefinition", "escalationEventDefinition", "messageEventDefinition", "signalEventDefinition", "conditionalEventDefinition", "condition", "linkEventDefinition", "cancelEventDefinition", "terminateEventDefinition", "compensateEventDefinition", "process", "laneSet", "lane", "flowNodeRef", "childLaneSet", "collaboration", "participant", "messageFlow", "message", "error", "escalation", "signal", "category", "categoryValue", "artifact", "textAnnotation", "text", "association", "group"];
3
+ /** The elements carrying each trait, in the spec's order. */
4
+ export declare const BPMN_ELEMENTS_BY_TRAIT: Readonly<Record<"flowElement" | "event" | "loop" | "container" | "eventDefinition" | "defaultFlow", readonly string[]>>;
5
+ //# sourceMappingURL=bpmn-elements.d.ts.map
@@ -0,0 +1,151 @@
1
+ // @generated by scripts/spec-gen.mjs from spec/elements/bpmn.json — do not edit; run `pnpm spec:gen`.
2
+ /** Every bpmn element, in the spec's order. */
3
+ export const BPMN_ELEMENT_NAMES = [
4
+ "baseElement",
5
+ "documentation",
6
+ "extensionElements",
7
+ "rootElement",
8
+ "definitions",
9
+ "flowElement",
10
+ "flowNode",
11
+ "incoming",
12
+ "outgoing",
13
+ "activity",
14
+ "task",
15
+ "serviceTask",
16
+ "scriptTask",
17
+ "userTask",
18
+ "sendTask",
19
+ "receiveTask",
20
+ "businessRuleTask",
21
+ "manualTask",
22
+ "callActivity",
23
+ "subProcess",
24
+ "adHocSubProcess",
25
+ "transaction",
26
+ "eventSubProcess",
27
+ "event",
28
+ "catchEvent",
29
+ "throwEvent",
30
+ "startEvent",
31
+ "endEvent",
32
+ "intermediateCatchEvent",
33
+ "intermediateThrowEvent",
34
+ "boundaryEvent",
35
+ "gateway",
36
+ "exclusiveGateway",
37
+ "parallelGateway",
38
+ "inclusiveGateway",
39
+ "eventBasedGateway",
40
+ "complexGateway",
41
+ "dataObject",
42
+ "dataObjectReference",
43
+ "dataStoreReference",
44
+ "sequenceFlow",
45
+ "property",
46
+ "dataInputAssociation",
47
+ "dataOutputAssociation",
48
+ "sourceRef",
49
+ "targetRef",
50
+ "expression",
51
+ "formalExpression",
52
+ "conditionExpression",
53
+ "completionCondition",
54
+ "loopCardinality",
55
+ "multiInstanceLoopCharacteristics",
56
+ "eventDefinition",
57
+ "timerEventDefinition",
58
+ "timeDate",
59
+ "timeDuration",
60
+ "timeCycle",
61
+ "errorEventDefinition",
62
+ "escalationEventDefinition",
63
+ "messageEventDefinition",
64
+ "signalEventDefinition",
65
+ "conditionalEventDefinition",
66
+ "condition",
67
+ "linkEventDefinition",
68
+ "cancelEventDefinition",
69
+ "terminateEventDefinition",
70
+ "compensateEventDefinition",
71
+ "process",
72
+ "laneSet",
73
+ "lane",
74
+ "flowNodeRef",
75
+ "childLaneSet",
76
+ "collaboration",
77
+ "participant",
78
+ "messageFlow",
79
+ "message",
80
+ "error",
81
+ "escalation",
82
+ "signal",
83
+ "category",
84
+ "categoryValue",
85
+ "artifact",
86
+ "textAnnotation",
87
+ "text",
88
+ "association",
89
+ "group",
90
+ ];
91
+ /** The elements carrying each trait, in the spec's order. */
92
+ export const BPMN_ELEMENTS_BY_TRAIT = {
93
+ "flowElement": [
94
+ "task",
95
+ "serviceTask",
96
+ "scriptTask",
97
+ "userTask",
98
+ "sendTask",
99
+ "receiveTask",
100
+ "businessRuleTask",
101
+ "manualTask",
102
+ "callActivity",
103
+ "subProcess",
104
+ "adHocSubProcess",
105
+ "transaction",
106
+ "eventSubProcess",
107
+ "startEvent",
108
+ "endEvent",
109
+ "intermediateCatchEvent",
110
+ "intermediateThrowEvent",
111
+ "boundaryEvent",
112
+ "exclusiveGateway",
113
+ "parallelGateway",
114
+ "inclusiveGateway",
115
+ "eventBasedGateway",
116
+ "complexGateway",
117
+ "dataObject",
118
+ "dataObjectReference",
119
+ "dataStoreReference",
120
+ ],
121
+ "event": ["startEvent", "endEvent", "intermediateCatchEvent", "intermediateThrowEvent", "boundaryEvent"],
122
+ "loop": [
123
+ "task",
124
+ "serviceTask",
125
+ "scriptTask",
126
+ "userTask",
127
+ "sendTask",
128
+ "receiveTask",
129
+ "businessRuleTask",
130
+ "manualTask",
131
+ "callActivity",
132
+ "subProcess",
133
+ "adHocSubProcess",
134
+ "transaction",
135
+ ],
136
+ "container": ["subProcess", "adHocSubProcess", "transaction", "eventSubProcess"],
137
+ "eventDefinition": [
138
+ "timerEventDefinition",
139
+ "errorEventDefinition",
140
+ "escalationEventDefinition",
141
+ "messageEventDefinition",
142
+ "signalEventDefinition",
143
+ "conditionalEventDefinition",
144
+ "linkEventDefinition",
145
+ "cancelEventDefinition",
146
+ "terminateEventDefinition",
147
+ "compensateEventDefinition",
148
+ ],
149
+ "defaultFlow": ["exclusiveGateway", "inclusiveGateway", "complexGateway"],
150
+ };
151
+ //# sourceMappingURL=bpmn-elements.js.map
@@ -0,0 +1,148 @@
1
+ /** The `bpmnlint-plugin-camunda-compat` release these tables were taken from. */
2
+ export declare const CAMUNDA_COMPAT_PLUGIN_VERSION = "2.61.0";
3
+ /**
4
+ * The Camunda 8 (and Camunda Cloud 1.x) versions the plugin ships a
5
+ * `camunda-cloud-X-Y` config for, oldest first.
6
+ */
7
+ export declare const CAMUNDA_COMPAT_VERSIONS: readonly ["1.0", "1.1", "1.2", "1.3", "8.0", "8.1", "8.2", "8.3", "8.4", "8.5", "8.6", "8.7", "8.8", "8.9", "8.10"];
8
+ /** A version in `CAMUNDA_COMPAT_VERSIONS`. */
9
+ export type CamundaCompatVersion = (typeof CAMUNDA_COMPAT_VERSIONS)[number];
10
+ /** `_` stands for "no event definition". */
11
+ export type EventSupport = Readonly<Record<string, CamundaCompatVersion>>;
12
+ /**
13
+ * First version supporting each element, keyed by BPMN type. Events map their
14
+ * event definition (or `_` for none) to a version instead. A flow element whose
15
+ * type is absent — `bpmn:ComplexGateway`, `bpmn:Transaction` — is supported by
16
+ * no version.
17
+ */
18
+ export declare const ELEMENT_SUPPORT: Readonly<Record<string, CamundaCompatVersion | EventSupport>>;
19
+ /** The three ways Zeebe implements a task, as `zeebe:` extension element names. */
20
+ export type ImplementationKind = "calledDecision" | "script" | "taskDefinition";
21
+ /** First version each element accepts each implementation kind in. */
22
+ export declare const IMPLEMENTATION_SUPPORT: Readonly<Record<ImplementationKind, Readonly<Record<string, CamundaCompatVersion | EventSupport>>>>;
23
+ /** The timer properties of `bpmn:TimerEventDefinition`. */
24
+ export type TimerProperty = "timeCycle" | "timeDate" | "timeDuration";
25
+ /** First version a timer property is allowed in, per interrupting and event sub-process placement. */
26
+ export interface TimerSupportCell {
27
+ readonly interrupting: TimerSupportPair;
28
+ readonly nonInterrupting: TimerSupportPair;
29
+ }
30
+ /** `null` means never. */
31
+ export interface TimerSupportPair {
32
+ readonly inEventSubProcess: CamundaCompatVersion | null;
33
+ readonly elsewhere: CamundaCompatVersion | null;
34
+ }
35
+ /**
36
+ * First version each timer property is allowed in, per event type, as a 2x2
37
+ * table (interrupting or not, in an event sub-process or elsewhere); `null`
38
+ * means never.
39
+ */
40
+ export declare const TIMER_SUPPORT_TABLE: Readonly<Record<string, Readonly<Record<TimerProperty, TimerSupportCell>>>>;
41
+ /** First version a timer cycle may be a cron expression rather than ISO 8601. */
42
+ export declare const CRON_TIMER_SINCE: CamundaCompatVersion;
43
+ /**
44
+ * First version each property-level feature is supported in — the version
45
+ * constants of the plugin's `no-*` rules, gathered in one place.
46
+ */
47
+ export declare const FEATURE_SINCE: {
48
+ /** `zeebe:modelerTemplate`, an applied element template (`no-template`). */
49
+ readonly modelerTemplate: "8.0";
50
+ /** `zeebe:properties` on any element (`no-zeebe-properties`). */
51
+ readonly zeebeProperties: "8.1";
52
+ /** `candidateUsers` on `zeebe:assignmentDefinition` (`no-candidate-users`). */
53
+ readonly candidateUsers: "8.2";
54
+ /** `propagateAllParentVariables="false"` (`no-propagate-all-parent-variables`). */
55
+ readonly propagateAllParentVariablesFalse: "8.2";
56
+ /** `zeebe:taskSchedule` (`no-task-schedule`). */
57
+ readonly taskSchedule: "8.2";
58
+ /** A catch event without an `errorRef` (`error-reference`). */
59
+ readonly errorCatchWithoutRef: "8.2";
60
+ /** An error code expression on a throw event (`no-expression`). */
61
+ readonly errorCodeExpression: "8.2";
62
+ /** A form on a start event (`start-event-form`). */
63
+ readonly startEventForm: "8.3";
64
+ /** A signal start event inside a sub-process (`no-signal-event-sub-process`). */
65
+ readonly signalEventSubProcess: "8.3";
66
+ /** A collapsed sub-process (`collapsed-subprocess`). */
67
+ readonly collapsedSubProcess: "8.4";
68
+ /** `formId` on a job-worker user task, in Desktop Modeler (`user-task-form`). */
69
+ readonly userTaskFormId: "8.4";
70
+ /** `zeebe:userTask`, the Camunda user task (`no-zeebe-user-task`). */
71
+ readonly zeebeUserTask: "8.5";
72
+ /** `bindingType` other than `latest` (`no-binding-type`). */
73
+ readonly bindingType: "8.6";
74
+ /** `zeebe:executionListeners` (`no-execution-listeners`). */
75
+ readonly executionListeners: "8.6";
76
+ /** `zeebe:priorityDefinition` (`no-priority-definition`). */
77
+ readonly priorityDefinition: "8.6";
78
+ /** `zeebe:versionTag` on a process (`no-version-tag`). */
79
+ readonly versionTag: "8.6";
80
+ /** Completion condition and output collection on ad-hoc sub-processes (`ad-hoc-sub-process`). */
81
+ readonly adHocCompletion: "8.8";
82
+ /** `zeebe:taskListeners` (`no-task-listeners`). */
83
+ readonly taskListeners: "8.8";
84
+ /** A `zeebe:input` without `source` (`io-mapping`). */
85
+ readonly inputWithoutSource: "8.8";
86
+ /** `businessId` on `zeebe:calledElement` (`no-business-id`). */
87
+ readonly businessId: "8.10";
88
+ /** Headers on execution listeners (`no-execution-listener-headers`). */
89
+ readonly executionListenerHeaders: "8.10";
90
+ /** `beforeAll` execution listeners (`no-before-all-execution-listener`). */
91
+ readonly beforeAllExecutionListener: "8.10";
92
+ /** `cancel` execution listeners (`no-cancel-execution-listener`). */
93
+ readonly cancelExecutionListener: "8.10";
94
+ /** `zeebe:jobPriorityDefinition` (`no-job-priority-definition`). */
95
+ readonly jobPriorityDefinition: "8.10";
96
+ /** A FEEL expression as the version tag of a called decision (`version-tag`). */
97
+ readonly decisionVersionTagExpression: "8.10";
98
+ /** `camunda.secrets.NAME`, superseding `{{secrets.NAME}}` (`secrets`). */
99
+ readonly camundaSecrets: "8.10";
100
+ /** `zeebe:agentDefinition` marks an agentic ad-hoc sub-process (the agent rules). */
101
+ readonly agentDefinition: "8.10";
102
+ };
103
+ /**
104
+ * First version each Camunda FEEL built-in function is available in, for
105
+ * `feel-compatibility`. Functions every version has are absent.
106
+ *
107
+ * Taken from the `engines.camunda` ranges of `@camunda/feel-builtins` 1.4.1
108
+ * (MIT, © Camunda Services GmbH) — `camundaBuiltins` and
109
+ * `camundaReservedNameBuiltins` — the table the plugin 2.61.0 checks against.
110
+ * Every range there is `>=X.Y`.
111
+ */
112
+ export declare const FEEL_BUILTIN_SINCE: Readonly<Record<string, CamundaCompatVersion>>;
113
+ /**
114
+ * Inbound connector properties (`zeebe:property` names) that need a newer
115
+ * Camunda version, and the `inbound.type` values of the connectors that take
116
+ * them — `rules/camunda-cloud/connector-properties/config.js` of the plugin.
117
+ */
118
+ export declare const INBOUND_CONNECTOR_PROPERTY_SINCE: Readonly<Record<string, {
119
+ since: CamundaCompatVersion;
120
+ connectors: readonly string[];
121
+ }>>;
122
+ /** Whether BPMN Kit runs a plugin rule, and how closely. */
123
+ export type CamundaCompatCoverage = "implemented" | "partial" | "existing" | "not-implemented";
124
+ /** One `bpmnlint-plugin-camunda-compat` rule. */
125
+ export interface CamundaCompatRule {
126
+ /** The severity the plugin's configs give it. */
127
+ severity: "error" | "warn";
128
+ /** First config that enables it; absent for "every version". */
129
+ since?: CamundaCompatVersion;
130
+ /** First config that no longer enables it; absent for "still enabled". */
131
+ until?: CamundaCompatVersion;
132
+ /**
133
+ * - `implemented` — `analyzeCamundaCompat` reports it as `compat/<rule>`;
134
+ * - `partial` — reported, with the difference in `note`;
135
+ * - `existing` — another BPMN Kit finding (`equivalents`) reports the same problem;
136
+ * - `not-implemented` — not checked; `note` says why.
137
+ */
138
+ coverage: CamundaCompatCoverage;
139
+ /** BPMN Kit findings outside `compat/*` that report the same problem. */
140
+ equivalents?: readonly string[];
141
+ note?: string;
142
+ }
143
+ /**
144
+ * Every rule of the plugin's `camunda-cloud-*` configs, with the versions it
145
+ * is enabled for — `index.js` of the plugin, as data.
146
+ */
147
+ export declare const CAMUNDA_COMPAT_RULES: Readonly<Record<string, CamundaCompatRule>>;
148
+ //# sourceMappingURL=camunda-compat-data.d.ts.map