@camunda8/orchestration-cluster-api 10.0.0-alpha.11 → 10.0.0-alpha.13
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 +16 -0
- package/dist/{chunk-KNIFT3MW.js → chunk-DXAJ2KS4.js} +133 -7
- package/dist/chunk-DXAJ2KS4.js.map +1 -0
- package/dist/fp/index.cjs +250 -16
- 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-BvcNReIq.d.cts → index-D-gpJ9NR.d.cts} +248 -13
- package/dist/{index-EZJB3buU.d.ts → index-DVAV_u0f.d.ts} +248 -13
- package/dist/index.cjs +259 -18
- 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 +10 -3
- package/dist/index.js.map +1 -1
- package/dist/{zod.gen-OZQ2MXOA.js → zod.gen-E45JJSLK.js} +119 -11
- package/dist/zod.gen-E45JJSLK.js.map +1 -0
- package/package.json +11 -10
- package/dist/chunk-KNIFT3MW.js.map +0 -1
- package/dist/zod.gen-OZQ2MXOA.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# [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
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **client:** make generated fetch client work on Deno and Bun ([9260000](https://github.com/camunda/orchestration-cluster-api-js/commit/92600004f344a41d7ea5a5158484a98a440c2be3))
|
|
7
|
+
* **client:** sanitize SSE onRequest init and harden the compat hook ([12eff25](https://github.com/camunda/orchestration-cluster-api-js/commit/12eff25fadac6ce45ca28f2c469ccdeb878bf98d))
|
|
8
|
+
|
|
9
|
+
# [10.0.0-alpha.12](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.11...v10.0.0-alpha.12) (2026-06-18)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* regenerate src/gen for wait-state details union and job priority-updated state ([e0e8c8c](https://github.com/camunda/orchestration-cluster-api-js/commit/e0e8c8c7e30b88799ec17f1c061a21241648ee7d))
|
|
15
|
+
* regenerate src/gen for wait-state details union and job priority-updated state ([76c5f82](https://github.com/camunda/orchestration-cluster-api-js/commit/76c5f829efcf826ff180e3116c4bbf303254c2b6))
|
|
16
|
+
|
|
1
17
|
# [10.0.0-alpha.11](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.10...v10.0.0-alpha.11) (2026-06-11)
|
|
2
18
|
|
|
3
19
|
|
|
@@ -549,6 +549,32 @@ var JobWorker = class {
|
|
|
549
549
|
};
|
|
550
550
|
|
|
551
551
|
// src/gen/core/serverSentEvents.gen.ts
|
|
552
|
+
var __STANDARD_REQUEST_INIT_KEYS = [
|
|
553
|
+
"method",
|
|
554
|
+
"headers",
|
|
555
|
+
"body",
|
|
556
|
+
"mode",
|
|
557
|
+
"credentials",
|
|
558
|
+
"cache",
|
|
559
|
+
"redirect",
|
|
560
|
+
"referrer",
|
|
561
|
+
"referrerPolicy",
|
|
562
|
+
"integrity",
|
|
563
|
+
"keepalive",
|
|
564
|
+
"signal",
|
|
565
|
+
"window",
|
|
566
|
+
"duplex",
|
|
567
|
+
"priority"
|
|
568
|
+
];
|
|
569
|
+
var sanitizeRequestInit = (init) => {
|
|
570
|
+
if (!init || typeof init !== "object") return init;
|
|
571
|
+
const out = {};
|
|
572
|
+
for (const key of __STANDARD_REQUEST_INIT_KEYS) {
|
|
573
|
+
const value = init[key];
|
|
574
|
+
if (value !== void 0) out[key] = value;
|
|
575
|
+
}
|
|
576
|
+
return out;
|
|
577
|
+
};
|
|
552
578
|
var createSseClient = ({
|
|
553
579
|
onRequest,
|
|
554
580
|
onSseError,
|
|
@@ -583,9 +609,9 @@ var createSseClient = ({
|
|
|
583
609
|
headers,
|
|
584
610
|
signal
|
|
585
611
|
};
|
|
586
|
-
let request = new Request(url, requestInit);
|
|
612
|
+
let request = new Request(url, sanitizeRequestInit(requestInit));
|
|
587
613
|
if (onRequest) {
|
|
588
|
-
request = await onRequest(url, requestInit);
|
|
614
|
+
request = await onRequest(url, sanitizeRequestInit(requestInit));
|
|
589
615
|
}
|
|
590
616
|
const _fetch = options.fetch ?? globalThis.fetch;
|
|
591
617
|
const response = await _fetch(request);
|
|
@@ -1178,6 +1204,32 @@ var createConfig = (override = {}) => ({
|
|
|
1178
1204
|
});
|
|
1179
1205
|
|
|
1180
1206
|
// src/gen/client/client.gen.ts
|
|
1207
|
+
var __STANDARD_REQUEST_INIT_KEYS2 = [
|
|
1208
|
+
"method",
|
|
1209
|
+
"headers",
|
|
1210
|
+
"body",
|
|
1211
|
+
"mode",
|
|
1212
|
+
"credentials",
|
|
1213
|
+
"cache",
|
|
1214
|
+
"redirect",
|
|
1215
|
+
"referrer",
|
|
1216
|
+
"referrerPolicy",
|
|
1217
|
+
"integrity",
|
|
1218
|
+
"keepalive",
|
|
1219
|
+
"signal",
|
|
1220
|
+
"window",
|
|
1221
|
+
"duplex",
|
|
1222
|
+
"priority"
|
|
1223
|
+
];
|
|
1224
|
+
var sanitizeRequestInit2 = (init) => {
|
|
1225
|
+
if (!init || typeof init !== "object") return init;
|
|
1226
|
+
const out = {};
|
|
1227
|
+
for (const key of __STANDARD_REQUEST_INIT_KEYS2) {
|
|
1228
|
+
const value = init[key];
|
|
1229
|
+
if (value !== void 0) out[key] = value;
|
|
1230
|
+
}
|
|
1231
|
+
return out;
|
|
1232
|
+
};
|
|
1181
1233
|
var createClient = (config = {}) => {
|
|
1182
1234
|
let _config = mergeConfigs(createConfig(), config);
|
|
1183
1235
|
const getConfig = () => ({ ..._config });
|
|
@@ -1219,7 +1271,7 @@ var createClient = (config = {}) => {
|
|
|
1219
1271
|
...opts,
|
|
1220
1272
|
body: getValidRequestBody(opts)
|
|
1221
1273
|
};
|
|
1222
|
-
let request2 = new Request(url, requestInit);
|
|
1274
|
+
let request2 = new Request(url, sanitizeRequestInit2(requestInit));
|
|
1223
1275
|
for (const fn of interceptors.request.fns) {
|
|
1224
1276
|
if (fn) {
|
|
1225
1277
|
request2 = await fn(request2, opts);
|
|
@@ -1321,7 +1373,7 @@ var createClient = (config = {}) => {
|
|
|
1321
1373
|
headers: opts.headers,
|
|
1322
1374
|
method,
|
|
1323
1375
|
onRequest: async (url2, init) => {
|
|
1324
|
-
let request2 = new Request(url2, init);
|
|
1376
|
+
let request2 = new Request(url2, sanitizeRequestInit2(init));
|
|
1325
1377
|
for (const fn of interceptors.request.fns) {
|
|
1326
1378
|
if (fn) {
|
|
1327
1379
|
request2 = await fn(request2, opts);
|
|
@@ -3200,6 +3252,28 @@ var failJob = (options) => {
|
|
|
3200
3252
|
}
|
|
3201
3253
|
});
|
|
3202
3254
|
};
|
|
3255
|
+
var updateJobsBatchOperation = (options) => {
|
|
3256
|
+
return (options.client ?? client).post({
|
|
3257
|
+
requestValidator: void 0,
|
|
3258
|
+
responseValidator: void 0,
|
|
3259
|
+
security: [
|
|
3260
|
+
{
|
|
3261
|
+
scheme: "bearer",
|
|
3262
|
+
type: "http"
|
|
3263
|
+
},
|
|
3264
|
+
{
|
|
3265
|
+
scheme: "basic",
|
|
3266
|
+
type: "http"
|
|
3267
|
+
}
|
|
3268
|
+
],
|
|
3269
|
+
url: "/jobs/batch-update",
|
|
3270
|
+
...options,
|
|
3271
|
+
headers: {
|
|
3272
|
+
"Content-Type": "application/json",
|
|
3273
|
+
...options.headers
|
|
3274
|
+
}
|
|
3275
|
+
});
|
|
3276
|
+
};
|
|
3203
3277
|
var getGlobalJobStatistics = (options) => {
|
|
3204
3278
|
return (options.client ?? client).get({
|
|
3205
3279
|
requestValidator: void 0,
|
|
@@ -6608,7 +6682,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
|
|
|
6608
6682
|
}
|
|
6609
6683
|
|
|
6610
6684
|
// src/runtime/version.ts
|
|
6611
|
-
var packageVersion = "10.0.0-alpha.
|
|
6685
|
+
var packageVersion = "10.0.0-alpha.13";
|
|
6612
6686
|
|
|
6613
6687
|
// src/runtime/supportLogger.ts
|
|
6614
6688
|
var NoopSupportLogger = class {
|
|
@@ -8585,7 +8659,7 @@ var CamundaClient = class {
|
|
|
8585
8659
|
_schemasPromise = null;
|
|
8586
8660
|
_loadSchemas() {
|
|
8587
8661
|
if (!this._schemasPromise) {
|
|
8588
|
-
this._schemasPromise = import("./zod.gen-
|
|
8662
|
+
this._schemasPromise = import("./zod.gen-E45JJSLK.js");
|
|
8589
8663
|
}
|
|
8590
8664
|
return this._schemasPromise;
|
|
8591
8665
|
}
|
|
@@ -18856,6 +18930,58 @@ var CamundaClient = class {
|
|
|
18856
18930
|
return this._invokeWithRetry(() => call(), { opId: "updateJob", exempt: false, retryOverride: options?.retry });
|
|
18857
18931
|
});
|
|
18858
18932
|
}
|
|
18933
|
+
updateJobsBatchOperation(arg, options) {
|
|
18934
|
+
return toCancelable2(async (signal) => {
|
|
18935
|
+
const _body = arg;
|
|
18936
|
+
let envelope = {};
|
|
18937
|
+
envelope.body = _body;
|
|
18938
|
+
if (this._validation.settings.req !== "none") {
|
|
18939
|
+
const _schemas = await this._loadSchemas();
|
|
18940
|
+
const maybe = await this._validation.gateRequest("updateJobsBatchOperation", _schemas.zUpdateJobsBatchOperationData, envelope);
|
|
18941
|
+
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
18942
|
+
}
|
|
18943
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
18944
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
18945
|
+
const call = async () => {
|
|
18946
|
+
try {
|
|
18947
|
+
const _raw = await updateJobsBatchOperation(opts);
|
|
18948
|
+
let data = this._evaluateResponse(_raw, "updateJobsBatchOperation", (resp) => {
|
|
18949
|
+
const st = resp.status ?? resp.response?.status;
|
|
18950
|
+
if (!st) return void 0;
|
|
18951
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
18952
|
+
if (!candidate) return void 0;
|
|
18953
|
+
let prob = void 0;
|
|
18954
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
18955
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
18956
|
+
err.status = st;
|
|
18957
|
+
err.name = "HttpSdkError";
|
|
18958
|
+
if (prob) {
|
|
18959
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
18960
|
+
}
|
|
18961
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
18962
|
+
if (!isBp) err.nonRetryable = true;
|
|
18963
|
+
return err;
|
|
18964
|
+
});
|
|
18965
|
+
const _respSchemaName = "zUpdateJobsBatchOperationResponse";
|
|
18966
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
18967
|
+
data = void 0;
|
|
18968
|
+
}
|
|
18969
|
+
if (this._validation.settings.res !== "none") {
|
|
18970
|
+
const _schemas = await this._loadSchemas();
|
|
18971
|
+
const _schema = _schemas.zUpdateJobsBatchOperationResponse;
|
|
18972
|
+
if (_schema) {
|
|
18973
|
+
const maybeR = await this._validation.gateResponse("updateJobsBatchOperation", _schema, data);
|
|
18974
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
18975
|
+
}
|
|
18976
|
+
}
|
|
18977
|
+
return data;
|
|
18978
|
+
} catch (e) {
|
|
18979
|
+
throw e;
|
|
18980
|
+
}
|
|
18981
|
+
};
|
|
18982
|
+
return this._invokeWithRetry(() => call(), { opId: "updateJobsBatchOperation", exempt: false, retryOverride: options?.retry });
|
|
18983
|
+
});
|
|
18984
|
+
}
|
|
18859
18985
|
updateMappingRule(arg, options) {
|
|
18860
18986
|
return toCancelable2(async (signal) => {
|
|
18861
18987
|
const { mappingRuleId, ..._body } = arg || {};
|
|
@@ -19552,4 +19678,4 @@ export {
|
|
|
19552
19678
|
withTimeoutTE,
|
|
19553
19679
|
eventuallyTE
|
|
19554
19680
|
};
|
|
19555
|
-
//# sourceMappingURL=chunk-
|
|
19681
|
+
//# sourceMappingURL=chunk-DXAJ2KS4.js.map
|