@camunda8/orchestration-cluster-api 1.1.0 → 1.1.2

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.cjs CHANGED
@@ -3472,7 +3472,7 @@ var zUserTaskResult = import_zod.z.object({
3472
3472
  priority: import_zod.z.optional(import_zod.z.int().gte(0).lte(100).register(import_zod.z.globalRegistry, {
3473
3473
  description: "The priority of a user task. The higher the value the higher the priority."
3474
3474
  })).default(50),
3475
- userTaskKey: import_zod.z.optional(zUserTaskKey),
3475
+ userTaskKey: zUserTaskKey,
3476
3476
  elementInstanceKey: import_zod.z.optional(zElementInstanceKey),
3477
3477
  processName: import_zod.z.optional(import_zod.z.string().register(import_zod.z.globalRegistry, {
3478
3478
  description: "The name of the process definition."
@@ -3482,9 +3482,9 @@ var zUserTaskResult = import_zod.z.object({
3482
3482
  formKey: import_zod.z.optional(zFormKey)
3483
3483
  });
3484
3484
  var zUserTaskSearchQueryResult = zSearchQueryResponse.and(import_zod.z.object({
3485
- items: import_zod.z.optional(import_zod.z.array(zUserTaskResult).register(import_zod.z.globalRegistry, {
3485
+ items: import_zod.z.array(zUserTaskResult).register(import_zod.z.globalRegistry, {
3486
3486
  description: "The matching user tasks."
3487
- }))
3487
+ })
3488
3488
  }).register(import_zod.z.globalRegistry, {
3489
3489
  description: "User task search query response."
3490
3490
  }));
@@ -3580,37 +3580,37 @@ var zVariableSearchQuery = zSearchQueryRequest.and(import_zod.z.object({
3580
3580
  description: "Variable search query request."
3581
3581
  }));
3582
3582
  var zVariableResultBase = import_zod.z.object({
3583
- name: import_zod.z.optional(import_zod.z.string().register(import_zod.z.globalRegistry, {
3583
+ name: import_zod.z.string().register(import_zod.z.globalRegistry, {
3584
3584
  description: "Name of this variable."
3585
- })),
3586
- tenantId: import_zod.z.optional(zTenantId),
3587
- variableKey: import_zod.z.optional(zVariableKey),
3588
- scopeKey: import_zod.z.optional(zScopeKey),
3589
- processInstanceKey: import_zod.z.optional(zProcessInstanceKey)
3585
+ }),
3586
+ tenantId: zTenantId,
3587
+ variableKey: zVariableKey,
3588
+ scopeKey: zScopeKey,
3589
+ processInstanceKey: zProcessInstanceKey
3590
3590
  }).register(import_zod.z.globalRegistry, {
3591
3591
  description: "Variable response item."
3592
3592
  });
3593
3593
  var zVariableSearchResult = zVariableResultBase.and(import_zod.z.object({
3594
- value: import_zod.z.optional(import_zod.z.string().register(import_zod.z.globalRegistry, {
3594
+ value: import_zod.z.string().register(import_zod.z.globalRegistry, {
3595
3595
  description: "Value of this variable. Can be truncated."
3596
- })),
3597
- isTruncated: import_zod.z.optional(import_zod.z.boolean().register(import_zod.z.globalRegistry, {
3596
+ }),
3597
+ isTruncated: import_zod.z.boolean().register(import_zod.z.globalRegistry, {
3598
3598
  description: "Whether the value is truncated or not."
3599
- }))
3599
+ })
3600
3600
  }).register(import_zod.z.globalRegistry, {
3601
3601
  description: "Variable search response item."
3602
3602
  }));
3603
3603
  var zVariableSearchQueryResult = zSearchQueryResponse.and(import_zod.z.object({
3604
- items: import_zod.z.optional(import_zod.z.array(zVariableSearchResult).register(import_zod.z.globalRegistry, {
3604
+ items: import_zod.z.array(zVariableSearchResult).register(import_zod.z.globalRegistry, {
3605
3605
  description: "The matching variables."
3606
- }))
3606
+ })
3607
3607
  }).register(import_zod.z.globalRegistry, {
3608
3608
  description: "Variable search query response."
3609
3609
  }));
3610
3610
  var zVariableResult = zVariableResultBase.and(import_zod.z.object({
3611
- value: import_zod.z.optional(import_zod.z.string().register(import_zod.z.globalRegistry, {
3611
+ value: import_zod.z.string().register(import_zod.z.globalRegistry, {
3612
3612
  description: "Full value of this variable."
3613
- }))
3613
+ })
3614
3614
  }).register(import_zod.z.globalRegistry, {
3615
3615
  description: "Variable search response item."
3616
3616
  }));
@@ -5303,9 +5303,9 @@ var zUserTaskCompletionRequest = import_zod.z.object({
5303
5303
  ]))
5304
5304
  });
5305
5305
  var zUserTaskAssignmentRequest = import_zod.z.object({
5306
- assignee: import_zod.z.optional(import_zod.z.string().register(import_zod.z.globalRegistry, {
5306
+ assignee: import_zod.z.string().register(import_zod.z.globalRegistry, {
5307
5307
  description: "The assignee for the user task. The assignee must not be empty or `null`."
5308
- })),
5308
+ }),
5309
5309
  allowOverride: import_zod.z.optional(import_zod.z.union([
5310
5310
  import_zod.z.boolean(),
5311
5311
  import_zod.z.null()
@@ -9543,7 +9543,7 @@ function createLogger(opts = {}) {
9543
9543
  }
9544
9544
 
9545
9545
  // src/runtime/version.ts
9546
- var packageVersion = "1.0.0";
9546
+ var packageVersion = "1.1.1";
9547
9547
 
9548
9548
  // src/runtime/supportLogger.ts
9549
9549
  var NoopSupportLogger = class {
@@ -10405,6 +10405,7 @@ var BackpressureManager = class {
10405
10405
  // src/runtime/jobWorker.ts
10406
10406
  var JobActionReceipt = "JOB_ACTION_RECEIPT";
10407
10407
  var _workerCounter = 0;
10408
+ var DEFAULT_LONGPOLL_TIMEOUT = 55e3;
10408
10409
  var JobWorker = class {
10409
10410
  _client;
10410
10411
  _cfg;
@@ -10518,8 +10519,8 @@ var JobWorker = class {
10518
10519
  type: this._cfg.jobType,
10519
10520
  worker: this._name,
10520
10521
  maxJobsToActivate: batchSize,
10521
- requestTimeout: this._cfg.timeoutMs,
10522
- timeout: this._cfg.timeoutMs
10522
+ requestTimeout: this._cfg.pollTimeoutMs ?? DEFAULT_LONGPOLL_TIMEOUT,
10523
+ timeout: this._cfg.jobTimeoutMs
10523
10524
  };
10524
10525
  this._log.debug(() => ["activation.request", { batchSize }]);
10525
10526
  let result = [];