@camunda8/orchestration-cluster-api 10.0.0-alpha.13 → 10.0.0-alpha.15
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 +14 -0
- package/dist/{chunk-DXAJ2KS4.js → chunk-BDHUY2UM.js} +79 -5
- package/dist/chunk-BDHUY2UM.js.map +1 -0
- package/dist/fp/index.cjs +114 -13
- package/dist/fp/index.cjs.map +1 -1
- package/dist/fp/index.d.cts +1 -1
- package/dist/fp/index.d.ts +1 -1
- package/dist/fp/index.js +1 -1
- package/dist/{index-D-gpJ9NR.d.cts → index-BdxJhtV5.d.cts} +123 -20
- package/dist/{index-DVAV_u0f.d.ts → index-Co4kLbQe.d.ts} +123 -20
- package/dist/index.cjs +115 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{zod.gen-E45JJSLK.js → zod.gen-2Z6CY4DY.js} +37 -10
- package/dist/zod.gen-2Z6CY4DY.js.map +1 -0
- package/package.json +4 -4
- package/dist/chunk-DXAJ2KS4.js.map +0 -1
- package/dist/zod.gen-E45JJSLK.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [10.0.0-alpha.15](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.14...v10.0.0-alpha.15) (2026-07-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* change default CAMUNDA_SDK_LOG_LEVEL from 'error' to 'info' ([839b7ab](https://github.com/camunda/orchestration-cluster-api-js/commit/839b7abb95fee0e7802980802aa1117b2473486c)), closes [#274](https://github.com/camunda/orchestration-cluster-api-js/issues/274)
|
|
7
|
+
|
|
8
|
+
# [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)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* 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)
|
|
14
|
+
|
|
1
15
|
# [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
16
|
|
|
3
17
|
|
|
@@ -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,
|
|
@@ -5824,7 +5842,7 @@ var SCHEMA = {
|
|
|
5824
5842
|
CAMUNDA_SDK_LOG_LEVEL: {
|
|
5825
5843
|
type: "enum",
|
|
5826
5844
|
choices: ["silent", "error", "warn", "info", "debug", "trace", "silly"],
|
|
5827
|
-
default: "
|
|
5845
|
+
default: "info",
|
|
5828
5846
|
doc: 'SDK log level. "silly" adds unsafe deep diagnostics including HTTP request and response bodies.'
|
|
5829
5847
|
},
|
|
5830
5848
|
CAMUNDA_SDK_TELEMETRY_LOG: {
|
|
@@ -6408,7 +6426,7 @@ function hydrateConfig(options = {}) {
|
|
|
6408
6426
|
} : void 0
|
|
6409
6427
|
},
|
|
6410
6428
|
validation: { req: validation.req, res: validation.res, raw: validation.raw },
|
|
6411
|
-
logLevel: rawMap.CAMUNDA_SDK_LOG_LEVEL || "
|
|
6429
|
+
logLevel: rawMap.CAMUNDA_SDK_LOG_LEVEL || "info",
|
|
6412
6430
|
eventual: {
|
|
6413
6431
|
pollDefaultMs: parseInt(rawMap.CAMUNDA_SDK_EVENTUAL_POLL_DEFAULT_MS || "500", 10)
|
|
6414
6432
|
},
|
|
@@ -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.
|
|
6703
|
+
var packageVersion = "10.0.0-alpha.15";
|
|
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-
|
|
8680
|
+
this._schemasPromise = import("./zod.gen-2Z6CY4DY.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-
|
|
19755
|
+
//# sourceMappingURL=chunk-BDHUY2UM.js.map
|