@camunda8/orchestration-cluster-api 8.9.0-alpha.13 → 8.9.0-alpha.14

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/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  createCamundaFpClient,
9
9
  isLeft,
10
10
  isRight
11
- } from "./chunk-ULXL7H75.js";
11
+ } from "./chunk-G5VLLLLV.js";
12
12
  import "./chunk-W6JB7JZH.js";
13
13
 
14
14
  // src/loose.ts
@@ -48,7 +48,7 @@ function createCamundaResultClient(options) {
48
48
 
49
49
  // src/gen/types.gen.ts
50
50
  function assertConstraint(value, label, c) {
51
- if (c.pattern && !new RegExp(c.pattern).test(value)) throw new Error(`\x1B[31mInvalid pattern for ${label}: '${value}'.\x1B[0m Needs to match: ${JSON.stringify(c)}
51
+ if (c.pattern && !new RegExp(c.pattern, "u").test(value)) throw new Error(`\x1B[31mInvalid pattern for ${label}: '${value}'.\x1B[0m Needs to match: ${JSON.stringify(c)}
52
52
  `);
53
53
  if (typeof c.minLength === "number" && value.length < c.minLength) throw new Error(`Value too short for ${label}`);
54
54
  if (typeof c.maxLength === "number" && value.length > c.maxLength) throw new Error(`Value too long for ${label}`);
@@ -170,7 +170,7 @@ var ConditionalEvaluationKey;
170
170
  var DecisionDefinitionId;
171
171
  ((DecisionDefinitionId2) => {
172
172
  function assumeExists(value) {
173
- assertConstraint(value, "DecisionDefinitionId", { pattern: "^[A-Za-z0-9_@.+-]+$", minLength: 1, maxLength: 256 });
173
+ assertConstraint(value, "DecisionDefinitionId", { pattern: "^[\\p{L}_][\\p{L}\\p{N}_\\-\\.]*$", minLength: 1 });
174
174
  return value;
175
175
  }
176
176
  DecisionDefinitionId2.assumeExists = assumeExists;
@@ -180,7 +180,7 @@ var DecisionDefinitionId;
180
180
  DecisionDefinitionId2.getValue = getValue;
181
181
  function isValid(value) {
182
182
  try {
183
- assertConstraint(value, "DecisionDefinitionId", { pattern: "^[A-Za-z0-9_@.+-]+$", minLength: 1, maxLength: 256 });
183
+ assertConstraint(value, "DecisionDefinitionId", { pattern: "^[\\p{L}_][\\p{L}\\p{N}_\\-\\.]*$", minLength: 1 });
184
184
  return true;
185
185
  } catch {
186
186
  return false;
@@ -524,7 +524,7 @@ var MessageSubscriptionKey;
524
524
  var ProcessDefinitionId;
525
525
  ((ProcessDefinitionId2) => {
526
526
  function assumeExists(value) {
527
- assertConstraint(value, "ProcessDefinitionId", { pattern: "^[a-zA-Z_][a-zA-Z0-9_\\-\\.]*$", minLength: 1 });
527
+ assertConstraint(value, "ProcessDefinitionId", { pattern: "^[\\p{L}_][\\p{L}\\p{N}_\\-\\.]*$", minLength: 1 });
528
528
  return value;
529
529
  }
530
530
  ProcessDefinitionId2.assumeExists = assumeExists;
@@ -534,7 +534,7 @@ var ProcessDefinitionId;
534
534
  ProcessDefinitionId2.getValue = getValue;
535
535
  function isValid(value) {
536
536
  try {
537
- assertConstraint(value, "ProcessDefinitionId", { pattern: "^[a-zA-Z_][a-zA-Z0-9_\\-\\.]*$", minLength: 1 });
537
+ assertConstraint(value, "ProcessDefinitionId", { pattern: "^[\\p{L}_][\\p{L}\\p{N}_\\-\\.]*$", minLength: 1 });
538
538
  return true;
539
539
  } catch {
540
540
  return false;