@camunda8/orchestration-cluster-api 10.0.0-alpha.30 → 10.0.0-alpha.32

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.
@@ -5027,7 +5027,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
5027
5027
  }
5028
5028
 
5029
5029
  // src/runtime/version.ts
5030
- var packageVersion = "10.0.0-alpha.30";
5030
+ var packageVersion = "10.0.0-alpha.32";
5031
5031
 
5032
5032
  // src/runtime/supportLogger.ts
5033
5033
  var NoopSupportLogger = class {
@@ -5485,18 +5485,18 @@ function unwrapForInspection(s) {
5485
5485
  continue;
5486
5486
  }
5487
5487
  if (t === "ZodIntersection") {
5488
- const left2 = cur._def.left;
5489
- const right2 = cur._def.right;
5490
- if (left2?._def?.typeName === "ZodObject" && right2?._def?.typeName === "ZodObject") {
5488
+ const left = cur._def.left;
5489
+ const right = cur._def.right;
5490
+ if (left?._def?.typeName === "ZodObject" && right?._def?.typeName === "ZodObject") {
5491
5491
  try {
5492
- const leftShapeFn = left2._def.shape;
5493
- const rightShapeFn = right2._def.shape;
5492
+ const leftShapeFn = left._def.shape;
5493
+ const rightShapeFn = right._def.shape;
5494
5494
  const merged = { ...leftShapeFn(), ...rightShapeFn() };
5495
5495
  return ZodObject.create(merged);
5496
5496
  } catch {
5497
5497
  }
5498
5498
  }
5499
- cur = left2;
5499
+ cur = left;
5500
5500
  continue;
5501
5501
  }
5502
5502
  break;
@@ -7046,7 +7046,7 @@ var CamundaClient = class {
7046
7046
  _schemasPromise = null;
7047
7047
  _loadSchemas() {
7048
7048
  if (!this._schemasPromise) {
7049
- this._schemasPromise = import("./zod.gen-CGU4FBRF.js");
7049
+ this._schemasPromise = import("./zod.gen-2LVIU5XR.js");
7050
7050
  }
7051
7051
  return this._schemasPromise;
7052
7052
  }
@@ -20663,128 +20663,6 @@ var CamundaClient = class {
20663
20663
  }
20664
20664
  };
20665
20665
 
20666
- // src/fp-ts.ts
20667
- var left = (e) => ({ _tag: "Left", left: e });
20668
- var right = (a) => ({ _tag: "Right", right: a });
20669
- var isLeft = (e) => e._tag === "Left";
20670
- var isRight = (e) => e._tag === "Right";
20671
- function toDomainError(err) {
20672
- if (err instanceof CamundaValidationError) return err;
20673
- if (err instanceof EventualConsistencyTimeoutError) return err;
20674
- if (err instanceof Error) return err;
20675
- if (typeof err === "object") return err;
20676
- return { message: String(err) };
20677
- }
20678
- function classifyDomainError(err) {
20679
- if (err instanceof CamundaValidationError) return "validation";
20680
- if (err instanceof EventualConsistencyTimeoutError) return "timeout";
20681
- if (!(err instanceof Error) || err.status !== void 0) return "http";
20682
- return "generic";
20683
- }
20684
- function foldDomainError(handlers) {
20685
- return (err) => {
20686
- switch (classifyDomainError(err)) {
20687
- case "validation":
20688
- return handlers.validation(err);
20689
- case "timeout":
20690
- return handlers.timeout(err);
20691
- case "http":
20692
- return handlers.http(err);
20693
- case "generic":
20694
- return handlers.generic(err);
20695
- }
20696
- };
20697
- }
20698
- function isPromiseLike(v) {
20699
- return v && typeof v.then === "function";
20700
- }
20701
- function createCamundaFpClient(options) {
20702
- const base = createCamundaClient(options);
20703
- const cache = /* @__PURE__ */ new Map();
20704
- function wrap(fn) {
20705
- return (...args) => async () => {
20706
- try {
20707
- const r = fn.apply(base, args);
20708
- const val = isPromiseLike(r) ? await r : r;
20709
- return right(val);
20710
- } catch (e) {
20711
- return left(toDomainError(e));
20712
- }
20713
- };
20714
- }
20715
- const handler = {
20716
- get(_t, prop) {
20717
- if (prop === "inner") return base;
20718
- if (cache.has(prop)) return cache.get(prop);
20719
- const value = base[prop];
20720
- if (typeof value === "function") {
20721
- const w = wrap(value);
20722
- cache.set(prop, w);
20723
- return w;
20724
- }
20725
- cache.set(prop, value);
20726
- return value;
20727
- }
20728
- };
20729
- return new Proxy({}, handler);
20730
- }
20731
- function retryTE(task, opts) {
20732
- const { max, baseDelayMs = 100, shouldRetry } = opts;
20733
- return async () => {
20734
- let attempt = 0;
20735
- let lastLeft;
20736
- while (attempt < max) {
20737
- const res = await task();
20738
- if (isRight(res)) return res;
20739
- lastLeft = res;
20740
- attempt++;
20741
- const retry = attempt < max && (shouldRetry ? await shouldRetry(res.left, attempt) : true);
20742
- if (!retry) return res;
20743
- const delay = Math.min(2e3, baseDelayMs * 2 ** (attempt - 1));
20744
- await new Promise((r) => setTimeout(r, delay));
20745
- }
20746
- return lastLeft;
20747
- };
20748
- }
20749
- function withTimeoutTE(task, ms, onTimeout) {
20750
- return async () => {
20751
- let settled = false;
20752
- const t = task().then((r) => {
20753
- settled = true;
20754
- return r;
20755
- });
20756
- const timeout = new Promise(
20757
- (res) => setTimeout(() => {
20758
- if (!settled)
20759
- res(left(onTimeout ? onTimeout() : new Error(`Timeout after ${ms}ms`)));
20760
- }, ms)
20761
- );
20762
- return Promise.race([t, timeout]);
20763
- };
20764
- }
20765
- function eventuallyTE(thunk, predicate, opts) {
20766
- const { intervalMs = 500, waitUpToMs } = opts;
20767
- return async () => {
20768
- const start = Date.now();
20769
- let attempt = 0;
20770
- while (true) {
20771
- attempt++;
20772
- try {
20773
- const val = await thunk();
20774
- if (await predicate(val)) return right(val);
20775
- } catch (e) {
20776
- return left(e);
20777
- }
20778
- const elapsed = Date.now() - start;
20779
- if (elapsed >= waitUpToMs)
20780
- return left(
20781
- new EventualConsistencyTimeoutError({ attempts: attempt, elapsedMs: elapsed })
20782
- );
20783
- await new Promise((r) => setTimeout(r, intervalMs));
20784
- }
20785
- };
20786
- }
20787
-
20788
20666
  export {
20789
20667
  isSdkError,
20790
20668
  CamundaValidationError,
@@ -20799,14 +20677,6 @@ export {
20799
20677
  JobActionReceipt,
20800
20678
  CancelError,
20801
20679
  createCamundaClient,
20802
- CamundaClient,
20803
- isLeft,
20804
- isRight,
20805
- classifyDomainError,
20806
- foldDomainError,
20807
- createCamundaFpClient,
20808
- retryTE,
20809
- withTimeoutTE,
20810
- eventuallyTE
20680
+ CamundaClient
20811
20681
  };
20812
- //# sourceMappingURL=chunk-SHE5T54L.js.map
20682
+ //# sourceMappingURL=chunk-WHBUDCPU.js.map