@camunda8/orchestration-cluster-api 10.0.0-alpha.13 → 10.0.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [10.0.0-alpha.14](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.13...v10.0.0-alpha.14) (2026-07-01)
2
+
3
+
4
+ ### Features
5
+
6
+ * add example coverage for getProcessInstanceWaitStateStatistics ([9fa53ca](https://github.com/camunda/orchestration-cluster-api-js/commit/9fa53ca512a266ed29b23ceec6ccc9199240e4c8)), closes [camunda/orchestration-cluster-api-js#300](https://github.com/camunda/orchestration-cluster-api-js/issues/300)
7
+
1
8
  # [10.0.0-alpha.13](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.12...v10.0.0-alpha.13) (2026-06-28)
2
9
 
3
10
 
@@ -4074,6 +4074,24 @@ var getProcessInstanceStatistics = (options) => {
4074
4074
  ...options
4075
4075
  });
4076
4076
  };
4077
+ var getProcessInstanceWaitStateStatistics = (options) => {
4078
+ return (options.client ?? client).get({
4079
+ requestValidator: void 0,
4080
+ responseValidator: void 0,
4081
+ security: [
4082
+ {
4083
+ scheme: "bearer",
4084
+ type: "http"
4085
+ },
4086
+ {
4087
+ scheme: "basic",
4088
+ type: "http"
4089
+ }
4090
+ ],
4091
+ url: "/process-instances/{processInstanceKey}/statistics/wait-states",
4092
+ ...options
4093
+ });
4094
+ };
4077
4095
  var searchResources = (options) => {
4078
4096
  return (options?.client ?? client).post({
4079
4097
  requestValidator: void 0,
@@ -6682,7 +6700,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
6682
6700
  }
6683
6701
 
6684
6702
  // src/runtime/version.ts
6685
- var packageVersion = "10.0.0-alpha.13";
6703
+ var packageVersion = "10.0.0-alpha.14";
6686
6704
 
6687
6705
  // src/runtime/supportLogger.ts
6688
6706
  var NoopSupportLogger = class {
@@ -8659,7 +8677,7 @@ var CamundaClient = class {
8659
8677
  _schemasPromise = null;
8660
8678
  _loadSchemas() {
8661
8679
  if (!this._schemasPromise) {
8662
- this._schemasPromise = import("./zod.gen-E45JJSLK.js");
8680
+ this._schemasPromise = import("./zod.gen-7PI6QBPP.js");
8663
8681
  }
8664
8682
  return this._schemasPromise;
8665
8683
  }
@@ -13880,6 +13898,62 @@ var CamundaClient = class {
13880
13898
  return invoke();
13881
13899
  });
13882
13900
  }
13901
+ getProcessInstanceWaitStateStatistics(arg, consistencyManagement, options) {
13902
+ if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
13903
+ const useConsistency = consistencyManagement.consistency;
13904
+ return toCancelable2(async (signal) => {
13905
+ const { processInstanceKey } = arg || {};
13906
+ let envelope = {};
13907
+ envelope.path = { processInstanceKey };
13908
+ if (this._validation.settings.req !== "none") {
13909
+ const _schemas = await this._loadSchemas();
13910
+ const maybe = await this._validation.gateRequest("getProcessInstanceWaitStateStatistics", _schemas.zGetProcessInstanceWaitStateStatisticsData, envelope);
13911
+ if (this._validation.settings.req === "strict") envelope = maybe;
13912
+ }
13913
+ const opts = { client: this._client, signal, throwOnError: false };
13914
+ if (envelope.path) opts.path = envelope.path;
13915
+ const call = async () => {
13916
+ try {
13917
+ const _raw = await getProcessInstanceWaitStateStatistics(opts);
13918
+ let data = this._evaluateResponse(_raw, "getProcessInstanceWaitStateStatistics", (resp) => {
13919
+ const st = resp.status ?? resp.response?.status;
13920
+ if (!st) return void 0;
13921
+ const candidate = st === 429 || st === 503 || st === 500;
13922
+ if (!candidate) return void 0;
13923
+ let prob = void 0;
13924
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
13925
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
13926
+ err.status = st;
13927
+ err.name = "HttpSdkError";
13928
+ if (prob) {
13929
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
13930
+ }
13931
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
13932
+ if (!isBp) err.nonRetryable = true;
13933
+ return err;
13934
+ });
13935
+ const _respSchemaName = "zGetProcessInstanceWaitStateStatisticsResponse";
13936
+ if (this._isVoidResponse(_respSchemaName)) {
13937
+ data = void 0;
13938
+ }
13939
+ if (this._validation.settings.res !== "none") {
13940
+ const _schemas = await this._loadSchemas();
13941
+ const _schema = _schemas.zGetProcessInstanceWaitStateStatisticsResponse;
13942
+ if (_schema) {
13943
+ const maybeR = await this._validation.gateResponse("getProcessInstanceWaitStateStatistics", _schema, data);
13944
+ if (this._validation.settings.res === "strict") data = maybeR;
13945
+ }
13946
+ }
13947
+ return data;
13948
+ } catch (e) {
13949
+ throw e;
13950
+ }
13951
+ };
13952
+ const invoke = () => toCancelable2(() => call());
13953
+ if (useConsistency) return eventualPoll("getProcessInstanceWaitStateStatistics", true, invoke, { ...useConsistency, logger: this._log });
13954
+ return invoke();
13955
+ });
13956
+ }
13883
13957
  getResource(arg, consistencyManagement, options) {
13884
13958
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
13885
13959
  const useConsistency = consistencyManagement.consistency;
@@ -19678,4 +19752,4 @@ export {
19678
19752
  withTimeoutTE,
19679
19753
  eventuallyTE
19680
19754
  };
19681
- //# sourceMappingURL=chunk-DXAJ2KS4.js.map
19755
+ //# sourceMappingURL=chunk-IV7WMOID.js.map