@camunda8/orchestration-cluster-api 10.0.0-alpha.46 → 10.0.0-alpha.47
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 +7 -0
- package/dist/{CamundaClient-Bmpnfx22.d.cts → CamundaClient-78u32335.d.cts} +62 -17
- package/dist/{CamundaClient-CfF1-z1H.d.ts → CamundaClient-ZgFCv8e5.d.ts} +62 -17
- package/dist/{chunk-ZMKXUGHZ.js → chunk-R6I2BEEE.js} +52 -3
- package/dist/chunk-R6I2BEEE.js.map +1 -0
- package/dist/effect/index.cjs +67 -4
- package/dist/effect/index.cjs.map +1 -1
- package/dist/effect/index.d.cts +1 -1
- package/dist/effect/index.d.ts +1 -1
- package/dist/effect/index.js +1 -1
- package/dist/index.cjs +68 -5
- 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-SY24X4YQ.js → zod.gen-YV3IADCI.js} +17 -3
- package/dist/zod.gen-YV3IADCI.js.map +1 -0
- package/package.json +2 -2
- package/dist/chunk-ZMKXUGHZ.js.map +0 -1
- package/dist/zod.gen-SY24X4YQ.js.map +0 -1
|
@@ -3882,6 +3882,12 @@ var getClusterStatus = (options) => (options?.client ?? client).get({
|
|
|
3882
3882
|
url: "/cluster/v2/status",
|
|
3883
3883
|
...options
|
|
3884
3884
|
});
|
|
3885
|
+
var getClusterUpgradeStatus = (options) => (options?.client ?? client).get({
|
|
3886
|
+
requestValidator: void 0,
|
|
3887
|
+
responseValidator: void 0,
|
|
3888
|
+
url: "/cluster/v2/status/upgrade",
|
|
3889
|
+
...options
|
|
3890
|
+
});
|
|
3885
3891
|
var getClusterTopology = (options) => (options?.client ?? client).get({
|
|
3886
3892
|
requestValidator: void 0,
|
|
3887
3893
|
responseValidator: void 0,
|
|
@@ -5429,7 +5435,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
|
|
|
5429
5435
|
}
|
|
5430
5436
|
|
|
5431
5437
|
// src/runtime/version.ts
|
|
5432
|
-
var packageVersion = "10.0.0-alpha.
|
|
5438
|
+
var packageVersion = "10.0.0-alpha.47";
|
|
5433
5439
|
|
|
5434
5440
|
// src/runtime/supportLogger.ts
|
|
5435
5441
|
var NoopSupportLogger = class {
|
|
@@ -7538,7 +7544,7 @@ var CamundaClientBase = class {
|
|
|
7538
7544
|
_schemasPromise = null;
|
|
7539
7545
|
_loadSchemas() {
|
|
7540
7546
|
if (!this._schemasPromise) {
|
|
7541
|
-
this._schemasPromise = import("./zod.gen-
|
|
7547
|
+
this._schemasPromise = import("./zod.gen-YV3IADCI.js");
|
|
7542
7548
|
}
|
|
7543
7549
|
return this._schemasPromise;
|
|
7544
7550
|
}
|
|
@@ -11956,6 +11962,49 @@ var CamundaClientBase = class {
|
|
|
11956
11962
|
return this._invokeWithRetry(() => call(), { opId: "getClusterTopology", exempt: false, retryOverride: options?.retry });
|
|
11957
11963
|
});
|
|
11958
11964
|
}
|
|
11965
|
+
getClusterUpgradeStatus(arg, options) {
|
|
11966
|
+
return toCancelable2(async (signal) => {
|
|
11967
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
11968
|
+
const call = async () => {
|
|
11969
|
+
try {
|
|
11970
|
+
const _raw = await getClusterUpgradeStatus(opts);
|
|
11971
|
+
let data = this._evaluateResponse(_raw, "getClusterUpgradeStatus", (resp) => {
|
|
11972
|
+
const st = resp.status ?? resp.response?.status;
|
|
11973
|
+
if (!st) return void 0;
|
|
11974
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
11975
|
+
if (!candidate) return void 0;
|
|
11976
|
+
let prob = void 0;
|
|
11977
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
11978
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
11979
|
+
err.status = st;
|
|
11980
|
+
err.name = "HttpSdkError";
|
|
11981
|
+
if (prob) {
|
|
11982
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
11983
|
+
}
|
|
11984
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
11985
|
+
if (!isBp) err.nonRetryable = true;
|
|
11986
|
+
return err;
|
|
11987
|
+
});
|
|
11988
|
+
const _respSchemaName = "zGetClusterUpgradeStatusResponse";
|
|
11989
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
11990
|
+
data = void 0;
|
|
11991
|
+
}
|
|
11992
|
+
if (this._validation.settings.res !== "none") {
|
|
11993
|
+
const _schemas = await this._loadSchemas();
|
|
11994
|
+
const _schema = _schemas.zGetClusterUpgradeStatusResponse;
|
|
11995
|
+
if (_schema) {
|
|
11996
|
+
const maybeR = await this._validation.gateResponse("getClusterUpgradeStatus", _schema, data);
|
|
11997
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
11998
|
+
}
|
|
11999
|
+
}
|
|
12000
|
+
return data;
|
|
12001
|
+
} catch (e) {
|
|
12002
|
+
throw e;
|
|
12003
|
+
}
|
|
12004
|
+
};
|
|
12005
|
+
return this._invokeWithRetry(() => call(), { opId: "getClusterUpgradeStatus", exempt: false, retryOverride: options?.retry });
|
|
12006
|
+
});
|
|
12007
|
+
}
|
|
11959
12008
|
getDecisionDefinition(arg, consistencyManagement, options) {
|
|
11960
12009
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
11961
12010
|
const useConsistency = consistencyManagement.consistency;
|
|
@@ -21677,4 +21726,4 @@ export {
|
|
|
21677
21726
|
createCamundaClient,
|
|
21678
21727
|
CamundaClient
|
|
21679
21728
|
};
|
|
21680
|
-
//# sourceMappingURL=chunk-
|
|
21729
|
+
//# sourceMappingURL=chunk-R6I2BEEE.js.map
|