@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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.1.2](https://github.com/camunda/orchestration-cluster-api-js/compare/v1.1.1...v1.1.2) (2025-11-10)
2
+
3
+ ### Bug Fixes
4
+
5
+ - fix typings upstream ([3b933df](https://github.com/camunda/orchestration-cluster-api-js/commit/3b933df98480e061baa67e2884fbbbea4e2cd797))
6
+ - specify poll timeout in worker ([7c8f217](https://github.com/camunda/orchestration-cluster-api-js/commit/7c8f217a5fa9b83dd40bc968121373a6bd78aea0))
7
+ - update some typings ([0085ac2](https://github.com/camunda/orchestration-cluster-api-js/commit/0085ac22ebadbd9fb581170162b164a00e3f5f57))
8
+
9
+ ## [1.1.1](https://github.com/camunda/orchestration-cluster-api-js/compare/v1.1.0...v1.1.1) (2025-11-07)
10
+
11
+ ### Bug Fixes
12
+
13
+ - preserve cancelable promise in loose client ([c1d49ba](https://github.com/camunda/orchestration-cluster-api-js/commit/c1d49ba3f38be97fa8e2d212b6ccbc3158256a5d))
14
+
1
15
  # [1.1.0](https://github.com/camunda/orchestration-cluster-api-js/compare/v1.0.0...v1.1.0) (2025-11-05)
2
16
 
3
17
  ### Features
@@ -113,6 +113,7 @@ var EventualConsistencyTimeoutError = class extends Error {
113
113
  // src/runtime/jobWorker.ts
114
114
  var JobActionReceipt = "JOB_ACTION_RECEIPT";
115
115
  var _workerCounter = 0;
116
+ var DEFAULT_LONGPOLL_TIMEOUT = 55e3;
116
117
  var JobWorker = class {
117
118
  _client;
118
119
  _cfg;
@@ -226,8 +227,8 @@ var JobWorker = class {
226
227
  type: this._cfg.jobType,
227
228
  worker: this._name,
228
229
  maxJobsToActivate: batchSize,
229
- requestTimeout: this._cfg.timeoutMs,
230
- timeout: this._cfg.timeoutMs
230
+ requestTimeout: this._cfg.pollTimeoutMs ?? DEFAULT_LONGPOLL_TIMEOUT,
231
+ timeout: this._cfg.jobTimeoutMs
231
232
  };
232
233
  this._log.debug(() => ["activation.request", { batchSize }]);
233
234
  let result = [];
@@ -3719,7 +3720,7 @@ var zUserTaskResult = z.object({
3719
3720
  priority: z.optional(z.int().gte(0).lte(100).register(z.globalRegistry, {
3720
3721
  description: "The priority of a user task. The higher the value the higher the priority."
3721
3722
  })).default(50),
3722
- userTaskKey: z.optional(zUserTaskKey),
3723
+ userTaskKey: zUserTaskKey,
3723
3724
  elementInstanceKey: z.optional(zElementInstanceKey),
3724
3725
  processName: z.optional(z.string().register(z.globalRegistry, {
3725
3726
  description: "The name of the process definition."
@@ -3729,9 +3730,9 @@ var zUserTaskResult = z.object({
3729
3730
  formKey: z.optional(zFormKey)
3730
3731
  });
3731
3732
  var zUserTaskSearchQueryResult = zSearchQueryResponse.and(z.object({
3732
- items: z.optional(z.array(zUserTaskResult).register(z.globalRegistry, {
3733
+ items: z.array(zUserTaskResult).register(z.globalRegistry, {
3733
3734
  description: "The matching user tasks."
3734
- }))
3735
+ })
3735
3736
  }).register(z.globalRegistry, {
3736
3737
  description: "User task search query response."
3737
3738
  }));
@@ -3827,37 +3828,37 @@ var zVariableSearchQuery = zSearchQueryRequest.and(z.object({
3827
3828
  description: "Variable search query request."
3828
3829
  }));
3829
3830
  var zVariableResultBase = z.object({
3830
- name: z.optional(z.string().register(z.globalRegistry, {
3831
+ name: z.string().register(z.globalRegistry, {
3831
3832
  description: "Name of this variable."
3832
- })),
3833
- tenantId: z.optional(zTenantId),
3834
- variableKey: z.optional(zVariableKey),
3835
- scopeKey: z.optional(zScopeKey),
3836
- processInstanceKey: z.optional(zProcessInstanceKey)
3833
+ }),
3834
+ tenantId: zTenantId,
3835
+ variableKey: zVariableKey,
3836
+ scopeKey: zScopeKey,
3837
+ processInstanceKey: zProcessInstanceKey
3837
3838
  }).register(z.globalRegistry, {
3838
3839
  description: "Variable response item."
3839
3840
  });
3840
3841
  var zVariableSearchResult = zVariableResultBase.and(z.object({
3841
- value: z.optional(z.string().register(z.globalRegistry, {
3842
+ value: z.string().register(z.globalRegistry, {
3842
3843
  description: "Value of this variable. Can be truncated."
3843
- })),
3844
- isTruncated: z.optional(z.boolean().register(z.globalRegistry, {
3844
+ }),
3845
+ isTruncated: z.boolean().register(z.globalRegistry, {
3845
3846
  description: "Whether the value is truncated or not."
3846
- }))
3847
+ })
3847
3848
  }).register(z.globalRegistry, {
3848
3849
  description: "Variable search response item."
3849
3850
  }));
3850
3851
  var zVariableSearchQueryResult = zSearchQueryResponse.and(z.object({
3851
- items: z.optional(z.array(zVariableSearchResult).register(z.globalRegistry, {
3852
+ items: z.array(zVariableSearchResult).register(z.globalRegistry, {
3852
3853
  description: "The matching variables."
3853
- }))
3854
+ })
3854
3855
  }).register(z.globalRegistry, {
3855
3856
  description: "Variable search query response."
3856
3857
  }));
3857
3858
  var zVariableResult = zVariableResultBase.and(z.object({
3858
- value: z.optional(z.string().register(z.globalRegistry, {
3859
+ value: z.string().register(z.globalRegistry, {
3859
3860
  description: "Full value of this variable."
3860
- }))
3861
+ })
3861
3862
  }).register(z.globalRegistry, {
3862
3863
  description: "Variable search response item."
3863
3864
  }));
@@ -5550,9 +5551,9 @@ var zUserTaskCompletionRequest = z.object({
5550
5551
  ]))
5551
5552
  });
5552
5553
  var zUserTaskAssignmentRequest = z.object({
5553
- assignee: z.optional(z.string().register(z.globalRegistry, {
5554
+ assignee: z.string().register(z.globalRegistry, {
5554
5555
  description: "The assignee for the user task. The assignee must not be empty or `null`."
5555
- })),
5556
+ }),
5556
5557
  allowOverride: z.optional(z.union([
5557
5558
  z.boolean(),
5558
5559
  z.null()
@@ -9613,7 +9614,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
9613
9614
  }
9614
9615
 
9615
9616
  // src/runtime/version.ts
9616
- var packageVersion = "1.0.0";
9617
+ var packageVersion = "1.1.1";
9617
9618
 
9618
9619
  // src/runtime/supportLogger.ts
9619
9620
  var NoopSupportLogger = class {
@@ -18761,4 +18762,4 @@ export {
18761
18762
  withTimeoutTE,
18762
18763
  eventuallyTE
18763
18764
  };
18764
- //# sourceMappingURL=chunk-7V2UT2PZ.js.map
18765
+ //# sourceMappingURL=chunk-FMCCRZJE.js.map