@camunda8/orchestration-cluster-api 8.8.4 → 8.8.5
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/dist/{chunk-DYRPWSDP.js → chunk-LCCB5Q52.js} +212 -125
- package/dist/chunk-LCCB5Q52.js.map +1 -0
- package/dist/fp/index.cjs +211 -124
- 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-BvRQQCn2.d.ts → index-C01EJuRB.d.ts} +216 -95
- package/dist/{index-DszoHmWt.d.cts → index-CMSUEH7k.d.cts} +216 -95
- package/dist/index.cjs +213 -126
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +15 -12
- package/dist/chunk-DYRPWSDP.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -212,54 +212,6 @@ var createSseClient = ({
|
|
|
212
212
|
return { stream };
|
|
213
213
|
};
|
|
214
214
|
|
|
215
|
-
// src/gen/core/auth.gen.ts
|
|
216
|
-
var getAuthToken = async (auth, callback) => {
|
|
217
|
-
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
218
|
-
if (!token) {
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
|
-
if (auth.scheme === "bearer") {
|
|
222
|
-
return `Bearer ${token}`;
|
|
223
|
-
}
|
|
224
|
-
if (auth.scheme === "basic") {
|
|
225
|
-
return `Basic ${btoa(token)}`;
|
|
226
|
-
}
|
|
227
|
-
return token;
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
// src/gen/core/bodySerializer.gen.ts
|
|
231
|
-
var serializeFormDataPair = (data, key, value) => {
|
|
232
|
-
if (typeof value === "string" || value instanceof Blob) {
|
|
233
|
-
data.append(key, value);
|
|
234
|
-
} else if (value instanceof Date) {
|
|
235
|
-
data.append(key, value.toISOString());
|
|
236
|
-
} else {
|
|
237
|
-
data.append(key, JSON.stringify(value));
|
|
238
|
-
}
|
|
239
|
-
};
|
|
240
|
-
var formDataBodySerializer = {
|
|
241
|
-
bodySerializer: (body) => {
|
|
242
|
-
const data = new FormData();
|
|
243
|
-
Object.entries(body).forEach(([key, value]) => {
|
|
244
|
-
if (value === void 0 || value === null) {
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
if (Array.isArray(value)) {
|
|
248
|
-
value.forEach((v) => serializeFormDataPair(data, key, v));
|
|
249
|
-
} else {
|
|
250
|
-
serializeFormDataPair(data, key, value);
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
return data;
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
var jsonBodySerializer = {
|
|
257
|
-
bodySerializer: (body) => JSON.stringify(
|
|
258
|
-
body,
|
|
259
|
-
(_key, value) => typeof value === "bigint" ? value.toString() : value
|
|
260
|
-
)
|
|
261
|
-
};
|
|
262
|
-
|
|
263
215
|
// src/gen/core/pathSerializer.gen.ts
|
|
264
216
|
var separatorArrayExplode = (style) => {
|
|
265
217
|
switch (style) {
|
|
@@ -472,6 +424,69 @@ var getUrl = ({
|
|
|
472
424
|
}
|
|
473
425
|
return url;
|
|
474
426
|
};
|
|
427
|
+
function getValidRequestBody(options) {
|
|
428
|
+
const hasBody = options.body !== void 0;
|
|
429
|
+
const isSerializedBody = hasBody && options.bodySerializer;
|
|
430
|
+
if (isSerializedBody) {
|
|
431
|
+
if ("serializedBody" in options) {
|
|
432
|
+
const hasSerializedBody = options.serializedBody !== void 0 && options.serializedBody !== "";
|
|
433
|
+
return hasSerializedBody ? options.serializedBody : null;
|
|
434
|
+
}
|
|
435
|
+
return options.body !== "" ? options.body : null;
|
|
436
|
+
}
|
|
437
|
+
if (hasBody) {
|
|
438
|
+
return options.body;
|
|
439
|
+
}
|
|
440
|
+
return void 0;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
// src/gen/core/auth.gen.ts
|
|
444
|
+
var getAuthToken = async (auth, callback) => {
|
|
445
|
+
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
446
|
+
if (!token) {
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
449
|
+
if (auth.scheme === "bearer") {
|
|
450
|
+
return `Bearer ${token}`;
|
|
451
|
+
}
|
|
452
|
+
if (auth.scheme === "basic") {
|
|
453
|
+
return `Basic ${btoa(token)}`;
|
|
454
|
+
}
|
|
455
|
+
return token;
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
// src/gen/core/bodySerializer.gen.ts
|
|
459
|
+
var serializeFormDataPair = (data, key, value) => {
|
|
460
|
+
if (typeof value === "string" || value instanceof Blob) {
|
|
461
|
+
data.append(key, value);
|
|
462
|
+
} else if (value instanceof Date) {
|
|
463
|
+
data.append(key, value.toISOString());
|
|
464
|
+
} else {
|
|
465
|
+
data.append(key, JSON.stringify(value));
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
var formDataBodySerializer = {
|
|
469
|
+
bodySerializer: (body) => {
|
|
470
|
+
const data = new FormData();
|
|
471
|
+
Object.entries(body).forEach(([key, value]) => {
|
|
472
|
+
if (value === void 0 || value === null) {
|
|
473
|
+
return;
|
|
474
|
+
}
|
|
475
|
+
if (Array.isArray(value)) {
|
|
476
|
+
value.forEach((v) => serializeFormDataPair(data, key, v));
|
|
477
|
+
} else {
|
|
478
|
+
serializeFormDataPair(data, key, value);
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
return data;
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
var jsonBodySerializer = {
|
|
485
|
+
bodySerializer: (body) => JSON.stringify(
|
|
486
|
+
body,
|
|
487
|
+
(_key, value) => typeof value === "bigint" ? value.toString() : value
|
|
488
|
+
)
|
|
489
|
+
};
|
|
475
490
|
|
|
476
491
|
// src/gen/client/utils.gen.ts
|
|
477
492
|
var createQuerySerializer = ({
|
|
@@ -599,13 +614,20 @@ var mergeConfigs = (a, b) => {
|
|
|
599
614
|
config.headers = mergeHeaders(a.headers, b.headers);
|
|
600
615
|
return config;
|
|
601
616
|
};
|
|
617
|
+
var headersEntries = (headers) => {
|
|
618
|
+
const entries = [];
|
|
619
|
+
headers.forEach((value, key) => {
|
|
620
|
+
entries.push([key, value]);
|
|
621
|
+
});
|
|
622
|
+
return entries;
|
|
623
|
+
};
|
|
602
624
|
var mergeHeaders = (...headers) => {
|
|
603
625
|
const mergedHeaders = new Headers();
|
|
604
626
|
for (const header of headers) {
|
|
605
|
-
if (!header
|
|
627
|
+
if (!header) {
|
|
606
628
|
continue;
|
|
607
629
|
}
|
|
608
|
-
const iterator = header instanceof Headers ? header
|
|
630
|
+
const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header);
|
|
609
631
|
for (const [key, value] of iterator) {
|
|
610
632
|
if (value === null) {
|
|
611
633
|
mergedHeaders.delete(key);
|
|
@@ -715,10 +737,10 @@ var createClient = (config = {}) => {
|
|
|
715
737
|
if (opts.requestValidator) {
|
|
716
738
|
await opts.requestValidator(opts);
|
|
717
739
|
}
|
|
718
|
-
if (opts.body && opts.bodySerializer) {
|
|
740
|
+
if (opts.body !== void 0 && opts.bodySerializer) {
|
|
719
741
|
opts.serializedBody = opts.bodySerializer(opts.body);
|
|
720
742
|
}
|
|
721
|
-
if (opts.
|
|
743
|
+
if (opts.body === void 0 || opts.serializedBody === "") {
|
|
722
744
|
opts.headers.delete("Content-Type");
|
|
723
745
|
}
|
|
724
746
|
const url = buildUrl(opts);
|
|
@@ -729,7 +751,7 @@ var createClient = (config = {}) => {
|
|
|
729
751
|
const requestInit = {
|
|
730
752
|
redirect: "follow",
|
|
731
753
|
...opts,
|
|
732
|
-
body: opts
|
|
754
|
+
body: getValidRequestBody(opts)
|
|
733
755
|
};
|
|
734
756
|
let request2 = new Request(url, requestInit);
|
|
735
757
|
for (const fn of interceptors.request._fns) {
|
|
@@ -1277,6 +1299,18 @@ var searchUserTaskVariables = (options) => {
|
|
|
1277
1299
|
}
|
|
1278
1300
|
});
|
|
1279
1301
|
};
|
|
1302
|
+
var searchUserTaskEffectiveVariables = (options) => {
|
|
1303
|
+
return (options.client ?? client).post({
|
|
1304
|
+
requestValidator: void 0,
|
|
1305
|
+
responseValidator: void 0,
|
|
1306
|
+
url: "/user-tasks/{userTaskKey}/effective-variables/search",
|
|
1307
|
+
...options,
|
|
1308
|
+
headers: {
|
|
1309
|
+
"Content-Type": "application/json",
|
|
1310
|
+
...options.headers
|
|
1311
|
+
}
|
|
1312
|
+
});
|
|
1313
|
+
};
|
|
1280
1314
|
var searchVariables = (options) => {
|
|
1281
1315
|
return (options?.client ?? client).post({
|
|
1282
1316
|
requestValidator: void 0,
|
|
@@ -2904,6 +2938,8 @@ __export(zod_gen_exports, {
|
|
|
2904
2938
|
zSearchRolesResponse: () => zSearchRolesResponse,
|
|
2905
2939
|
zSearchTenantsData: () => zSearchTenantsData,
|
|
2906
2940
|
zSearchTenantsResponse: () => zSearchTenantsResponse,
|
|
2941
|
+
zSearchUserTaskEffectiveVariablesData: () => zSearchUserTaskEffectiveVariablesData,
|
|
2942
|
+
zSearchUserTaskEffectiveVariablesResponse: () => zSearchUserTaskEffectiveVariablesResponse,
|
|
2907
2943
|
zSearchUserTaskVariablesData: () => zSearchUserTaskVariablesData,
|
|
2908
2944
|
zSearchUserTaskVariablesResponse: () => zSearchUserTaskVariablesResponse,
|
|
2909
2945
|
zSearchUserTasksData: () => zSearchUserTasksData,
|
|
@@ -3007,6 +3043,7 @@ __export(zod_gen_exports, {
|
|
|
3007
3043
|
zUserSearchResult: () => zUserSearchResult,
|
|
3008
3044
|
zUserTaskAssignmentRequest: () => zUserTaskAssignmentRequest,
|
|
3009
3045
|
zUserTaskCompletionRequest: () => zUserTaskCompletionRequest,
|
|
3046
|
+
zUserTaskEffectiveVariableSearchQueryRequest: () => zUserTaskEffectiveVariableSearchQueryRequest,
|
|
3010
3047
|
zUserTaskFilter: () => zUserTaskFilter,
|
|
3011
3048
|
zUserTaskKey: () => zUserTaskKey,
|
|
3012
3049
|
zUserTaskProperties: () => zUserTaskProperties,
|
|
@@ -3075,7 +3112,9 @@ var zMessageSubscriptionKey = zLongKey;
|
|
|
3075
3112
|
var zDecisionDefinitionId = import_zod.z.string().min(1).max(256).regex(/^[A-Za-z0-9_@.+-]+$/).register(import_zod.z.globalRegistry, {
|
|
3076
3113
|
description: "Id of a decision definition, from the model. Only ids of decision definitions that are deployed are useful."
|
|
3077
3114
|
});
|
|
3078
|
-
var zDecisionEvaluationInstanceKey =
|
|
3115
|
+
var zDecisionEvaluationInstanceKey = import_zod.z.string().min(3).max(30).regex(/^[0-9]+-[0-9]+$/).register(import_zod.z.globalRegistry, {
|
|
3116
|
+
description: "System-generated key for a decision evaluation instance."
|
|
3117
|
+
});
|
|
3079
3118
|
var zDecisionEvaluationKey = zLongKey;
|
|
3080
3119
|
var zAuthorizationKey = zLongKey;
|
|
3081
3120
|
var zMessageKey = zLongKey;
|
|
@@ -3428,6 +3467,15 @@ var zUserTaskVariableSearchQueryRequest = zSearchQueryRequest.and(import_zod.z.o
|
|
|
3428
3467
|
}).register(import_zod.z.globalRegistry, {
|
|
3429
3468
|
description: "User task search query request."
|
|
3430
3469
|
}));
|
|
3470
|
+
var zUserTaskEffectiveVariableSearchQueryRequest = import_zod.z.object({
|
|
3471
|
+
page: import_zod.z.optional(zOffsetPagination),
|
|
3472
|
+
sort: import_zod.z.optional(import_zod.z.array(zUserTaskVariableSearchQuerySortRequest).register(import_zod.z.globalRegistry, {
|
|
3473
|
+
description: "Sort field criteria."
|
|
3474
|
+
})),
|
|
3475
|
+
filter: import_zod.z.optional(zUserTaskVariableFilter)
|
|
3476
|
+
}).register(import_zod.z.globalRegistry, {
|
|
3477
|
+
description: "User task effective variable search query request. Uses offset-based pagination only.\n"
|
|
3478
|
+
});
|
|
3431
3479
|
var zUserTaskResult = import_zod.z.object({
|
|
3432
3480
|
name: import_zod.z.optional(import_zod.z.string().register(import_zod.z.globalRegistry, {
|
|
3433
3481
|
description: "The name for this user task."
|
|
@@ -3628,7 +3676,7 @@ var zProcessDefinitionSearchQuerySortRequest = import_zod.z.object({
|
|
|
3628
3676
|
var zProcessDefinitionFilter = import_zod.z.object({
|
|
3629
3677
|
name: import_zod.z.optional(zStringFilterProperty),
|
|
3630
3678
|
isLatestVersion: import_zod.z.optional(import_zod.z.boolean().register(import_zod.z.globalRegistry, {
|
|
3631
|
-
description: "Whether to only return the latest version of each process definition.\nWhen using this filter, pagination functionality is limited, you can only paginate forward using `after` and `limit`.\nThe response contains no `startCursor` in the `page`, and requests ignore the `from` and `before` in the `page`.\n"
|
|
3679
|
+
description: "Whether to only return the latest version of each process definition.\nWhen using this filter, pagination functionality is limited, you can only paginate forward using `after` and `limit`.\nThe response contains no `startCursor` in the `page`, and requests ignore the `from` and `before` in the `page`.\nWhen using this filter, sorting is limited to `processDefinitionId` and `tenantId` fields only.\n"
|
|
3632
3680
|
})),
|
|
3633
3681
|
resourceName: import_zod.z.optional(import_zod.z.string().register(import_zod.z.globalRegistry, {
|
|
3634
3682
|
description: "Resource name of this process definition."
|
|
@@ -3644,6 +3692,12 @@ var zProcessDefinitionFilter = import_zod.z.object({
|
|
|
3644
3692
|
processDefinitionKey: import_zod.z.optional(zProcessDefinitionKey),
|
|
3645
3693
|
hasStartForm: import_zod.z.optional(import_zod.z.boolean().register(import_zod.z.globalRegistry, {
|
|
3646
3694
|
description: "Indicates whether the start event of the process has an associated Form Key."
|
|
3695
|
+
})),
|
|
3696
|
+
state: import_zod.z.optional(import_zod.z.enum([
|
|
3697
|
+
"ACTIVE",
|
|
3698
|
+
"DELETED"
|
|
3699
|
+
]).register(import_zod.z.globalRegistry, {
|
|
3700
|
+
description: "Filter by the process definition's state.\nWhen not set, process definitions in any state are returned.\nSet to `ACTIVE` to exclude deleted definitions (recommended for most use cases).\nSet to `DELETED` to return only definitions that have been deleted but are still\nretained in secondary storage.\n"
|
|
3647
3701
|
}))
|
|
3648
3702
|
}).register(import_zod.z.globalRegistry, {
|
|
3649
3703
|
description: "Process definition search filter."
|
|
@@ -3672,6 +3726,12 @@ var zProcessDefinitionResult = import_zod.z.object({
|
|
|
3672
3726
|
processDefinitionKey: import_zod.z.optional(zProcessDefinitionKey),
|
|
3673
3727
|
hasStartForm: import_zod.z.optional(import_zod.z.boolean().register(import_zod.z.globalRegistry, {
|
|
3674
3728
|
description: "Indicates whether the start event of the process has an associated Form Key."
|
|
3729
|
+
})),
|
|
3730
|
+
state: import_zod.z.optional(import_zod.z.enum([
|
|
3731
|
+
"ACTIVE",
|
|
3732
|
+
"DELETED"
|
|
3733
|
+
]).register(import_zod.z.globalRegistry, {
|
|
3734
|
+
description: "The state of this process definition."
|
|
3675
3735
|
}))
|
|
3676
3736
|
});
|
|
3677
3737
|
var zProcessDefinitionSearchQueryResult = zSearchQueryResponse.and(import_zod.z.object({
|
|
@@ -3787,6 +3847,7 @@ var zBaseProcessInstanceFilterFields = import_zod.z.object({
|
|
|
3787
3847
|
parentProcessInstanceKey: import_zod.z.optional(zProcessInstanceKeyFilterProperty),
|
|
3788
3848
|
parentElementInstanceKey: import_zod.z.optional(zElementInstanceKeyFilterProperty),
|
|
3789
3849
|
batchOperationId: import_zod.z.optional(zStringFilterProperty),
|
|
3850
|
+
batchOperationKey: import_zod.z.optional(zStringFilterProperty),
|
|
3790
3851
|
errorMessage: import_zod.z.optional(zStringFilterProperty),
|
|
3791
3852
|
hasRetriesLeft: import_zod.z.optional(import_zod.z.boolean().register(import_zod.z.globalRegistry, {
|
|
3792
3853
|
description: "Whether the process has failed jobs with retries left."
|
|
@@ -6480,8 +6541,8 @@ var zSignalBroadcastResult = import_zod.z.object({
|
|
|
6480
6541
|
var zFormResult = import_zod.z.object({
|
|
6481
6542
|
tenantId: import_zod.z.optional(zTenantId),
|
|
6482
6543
|
formId: import_zod.z.optional(zFormId),
|
|
6483
|
-
schema: import_zod.z.optional(import_zod.z.
|
|
6484
|
-
description: "The form
|
|
6544
|
+
schema: import_zod.z.optional(import_zod.z.string().register(import_zod.z.globalRegistry, {
|
|
6545
|
+
description: "The form schema as a JSON document serialized as a string."
|
|
6485
6546
|
})),
|
|
6486
6547
|
version: import_zod.z.optional(import_zod.z.coerce.bigint().register(import_zod.z.globalRegistry, {
|
|
6487
6548
|
description: "The version of the the deployed form."
|
|
@@ -7124,6 +7185,18 @@ var zSearchUserTaskVariablesData = import_zod.z.object({
|
|
|
7124
7185
|
}))
|
|
7125
7186
|
});
|
|
7126
7187
|
var zSearchUserTaskVariablesResponse = zVariableSearchQueryResult;
|
|
7188
|
+
var zSearchUserTaskEffectiveVariablesData = import_zod.z.object({
|
|
7189
|
+
body: import_zod.z.optional(zUserTaskEffectiveVariableSearchQueryRequest),
|
|
7190
|
+
path: import_zod.z.object({
|
|
7191
|
+
userTaskKey: zUserTaskKey
|
|
7192
|
+
}),
|
|
7193
|
+
query: import_zod.z.optional(import_zod.z.object({
|
|
7194
|
+
truncateValues: import_zod.z.optional(import_zod.z.boolean().register(import_zod.z.globalRegistry, {
|
|
7195
|
+
description: "When true (default), long variable values in the response are truncated. When false, full variable values are returned."
|
|
7196
|
+
}))
|
|
7197
|
+
}))
|
|
7198
|
+
});
|
|
7199
|
+
var zSearchUserTaskEffectiveVariablesResponse = zVariableSearchQueryResult;
|
|
7127
7200
|
var zSearchVariablesData = import_zod.z.object({
|
|
7128
7201
|
body: import_zod.z.optional(zVariableSearchQuery),
|
|
7129
7202
|
path: import_zod.z.optional(import_zod.z.never()),
|
|
@@ -9559,7 +9632,7 @@ function createLogger(opts = {}) {
|
|
|
9559
9632
|
}
|
|
9560
9633
|
|
|
9561
9634
|
// src/runtime/version.ts
|
|
9562
|
-
var packageVersion = "8.8.
|
|
9635
|
+
var packageVersion = "8.8.5";
|
|
9563
9636
|
|
|
9564
9637
|
// src/runtime/supportLogger.ts
|
|
9565
9638
|
var NoopSupportLogger = class {
|
|
@@ -11980,9 +12053,7 @@ var CamundaClient = class {
|
|
|
11980
12053
|
return this._invokeWithRetry(() => call(), { opId: "broadcastSignal", exempt: false });
|
|
11981
12054
|
});
|
|
11982
12055
|
}
|
|
11983
|
-
cancelBatchOperation(arg
|
|
11984
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
11985
|
-
const useConsistency = consistencyManagement.consistency;
|
|
12056
|
+
cancelBatchOperation(arg) {
|
|
11986
12057
|
return toCancelable2(async (signal) => {
|
|
11987
12058
|
const { batchOperationKey, ..._body } = arg || {};
|
|
11988
12059
|
let envelope = {};
|
|
@@ -12031,9 +12102,7 @@ var CamundaClient = class {
|
|
|
12031
12102
|
throw e;
|
|
12032
12103
|
}
|
|
12033
12104
|
};
|
|
12034
|
-
|
|
12035
|
-
if (useConsistency) return eventualPoll("cancelBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
|
|
12036
|
-
return invoke();
|
|
12105
|
+
return this._invokeWithRetry(() => call(), { opId: "cancelBatchOperation", exempt: false });
|
|
12037
12106
|
});
|
|
12038
12107
|
}
|
|
12039
12108
|
cancelProcessInstance(arg) {
|
|
@@ -12088,9 +12157,7 @@ var CamundaClient = class {
|
|
|
12088
12157
|
return this._invokeWithRetry(() => call(), { opId: "cancelProcessInstance", exempt: false });
|
|
12089
12158
|
});
|
|
12090
12159
|
}
|
|
12091
|
-
cancelProcessInstancesBatchOperation(arg
|
|
12092
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
12093
|
-
const useConsistency = consistencyManagement.consistency;
|
|
12160
|
+
cancelProcessInstancesBatchOperation(arg) {
|
|
12094
12161
|
return toCancelable2(async (signal) => {
|
|
12095
12162
|
const _body = arg;
|
|
12096
12163
|
let envelope = {};
|
|
@@ -12137,9 +12204,7 @@ var CamundaClient = class {
|
|
|
12137
12204
|
throw e;
|
|
12138
12205
|
}
|
|
12139
12206
|
};
|
|
12140
|
-
|
|
12141
|
-
if (useConsistency) return eventualPoll("cancelProcessInstancesBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
|
|
12142
|
-
return invoke();
|
|
12207
|
+
return this._invokeWithRetry(() => call(), { opId: "cancelProcessInstancesBatchOperation", exempt: false });
|
|
12143
12208
|
});
|
|
12144
12209
|
}
|
|
12145
12210
|
completeJob(arg) {
|
|
@@ -12300,9 +12365,7 @@ var CamundaClient = class {
|
|
|
12300
12365
|
return this._invokeWithRetry(() => call(), { opId: "correlateMessage", exempt: false });
|
|
12301
12366
|
});
|
|
12302
12367
|
}
|
|
12303
|
-
createAdminUser(arg
|
|
12304
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
12305
|
-
const useConsistency = consistencyManagement.consistency;
|
|
12368
|
+
createAdminUser(arg) {
|
|
12306
12369
|
return toCancelable2(async (signal) => {
|
|
12307
12370
|
const _body = arg;
|
|
12308
12371
|
let envelope = {};
|
|
@@ -12349,9 +12412,7 @@ var CamundaClient = class {
|
|
|
12349
12412
|
throw e;
|
|
12350
12413
|
}
|
|
12351
12414
|
};
|
|
12352
|
-
|
|
12353
|
-
if (useConsistency) return eventualPoll("createAdminUser", false, invoke, { ...useConsistency, logger: this._log });
|
|
12354
|
-
return invoke();
|
|
12415
|
+
return this._invokeWithRetry(() => call(), { opId: "createAdminUser", exempt: false });
|
|
12355
12416
|
});
|
|
12356
12417
|
}
|
|
12357
12418
|
createAuthorization(arg) {
|
|
@@ -12936,9 +12997,7 @@ var CamundaClient = class {
|
|
|
12936
12997
|
return this._invokeWithRetry(() => call(), { opId: "createTenant", exempt: false });
|
|
12937
12998
|
});
|
|
12938
12999
|
}
|
|
12939
|
-
createUser(arg
|
|
12940
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
12941
|
-
const useConsistency = consistencyManagement.consistency;
|
|
13000
|
+
createUser(arg) {
|
|
12942
13001
|
return toCancelable2(async (signal) => {
|
|
12943
13002
|
const _body = arg;
|
|
12944
13003
|
let envelope = {};
|
|
@@ -12985,9 +13044,7 @@ var CamundaClient = class {
|
|
|
12985
13044
|
throw e;
|
|
12986
13045
|
}
|
|
12987
13046
|
};
|
|
12988
|
-
|
|
12989
|
-
if (useConsistency) return eventualPoll("createUser", false, invoke, { ...useConsistency, logger: this._log });
|
|
12990
|
-
return invoke();
|
|
13047
|
+
return this._invokeWithRetry(() => call(), { opId: "createUser", exempt: false });
|
|
12991
13048
|
});
|
|
12992
13049
|
}
|
|
12993
13050
|
deleteAuthorization(arg) {
|
|
@@ -13337,9 +13394,7 @@ var CamundaClient = class {
|
|
|
13337
13394
|
return this._invokeWithRetry(() => call(), { opId: "deleteTenant", exempt: false });
|
|
13338
13395
|
});
|
|
13339
13396
|
}
|
|
13340
|
-
deleteUser(arg
|
|
13341
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
13342
|
-
const useConsistency = consistencyManagement.consistency;
|
|
13397
|
+
deleteUser(arg) {
|
|
13343
13398
|
return toCancelable2(async (signal) => {
|
|
13344
13399
|
const { username } = arg || {};
|
|
13345
13400
|
let envelope = {};
|
|
@@ -13386,9 +13441,7 @@ var CamundaClient = class {
|
|
|
13386
13441
|
throw e;
|
|
13387
13442
|
}
|
|
13388
13443
|
};
|
|
13389
|
-
|
|
13390
|
-
if (useConsistency) return eventualPoll("deleteUser", false, invoke, { ...useConsistency, logger: this._log });
|
|
13391
|
-
return invoke();
|
|
13444
|
+
return this._invokeWithRetry(() => call(), { opId: "deleteUser", exempt: false });
|
|
13392
13445
|
});
|
|
13393
13446
|
}
|
|
13394
13447
|
evaluateDecision(arg) {
|
|
@@ -15275,9 +15328,7 @@ var CamundaClient = class {
|
|
|
15275
15328
|
return this._invokeWithRetry(() => call(), { opId: "migrateProcessInstance", exempt: false });
|
|
15276
15329
|
});
|
|
15277
15330
|
}
|
|
15278
|
-
migrateProcessInstancesBatchOperation(arg
|
|
15279
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
15280
|
-
const useConsistency = consistencyManagement.consistency;
|
|
15331
|
+
migrateProcessInstancesBatchOperation(arg) {
|
|
15281
15332
|
return toCancelable2(async (signal) => {
|
|
15282
15333
|
const _body = arg;
|
|
15283
15334
|
let envelope = {};
|
|
@@ -15324,9 +15375,7 @@ var CamundaClient = class {
|
|
|
15324
15375
|
throw e;
|
|
15325
15376
|
}
|
|
15326
15377
|
};
|
|
15327
|
-
|
|
15328
|
-
if (useConsistency) return eventualPoll("migrateProcessInstancesBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
|
|
15329
|
-
return invoke();
|
|
15378
|
+
return this._invokeWithRetry(() => call(), { opId: "migrateProcessInstancesBatchOperation", exempt: false });
|
|
15330
15379
|
});
|
|
15331
15380
|
}
|
|
15332
15381
|
modifyProcessInstance(arg) {
|
|
@@ -15381,9 +15430,7 @@ var CamundaClient = class {
|
|
|
15381
15430
|
return this._invokeWithRetry(() => call(), { opId: "modifyProcessInstance", exempt: false });
|
|
15382
15431
|
});
|
|
15383
15432
|
}
|
|
15384
|
-
modifyProcessInstancesBatchOperation(arg
|
|
15385
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
15386
|
-
const useConsistency = consistencyManagement.consistency;
|
|
15433
|
+
modifyProcessInstancesBatchOperation(arg) {
|
|
15387
15434
|
return toCancelable2(async (signal) => {
|
|
15388
15435
|
const _body = arg;
|
|
15389
15436
|
let envelope = {};
|
|
@@ -15430,9 +15477,7 @@ var CamundaClient = class {
|
|
|
15430
15477
|
throw e;
|
|
15431
15478
|
}
|
|
15432
15479
|
};
|
|
15433
|
-
|
|
15434
|
-
if (useConsistency) return eventualPoll("modifyProcessInstancesBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
|
|
15435
|
-
return invoke();
|
|
15480
|
+
return this._invokeWithRetry(() => call(), { opId: "modifyProcessInstancesBatchOperation", exempt: false });
|
|
15436
15481
|
});
|
|
15437
15482
|
}
|
|
15438
15483
|
pinClock(arg) {
|
|
@@ -15633,9 +15678,7 @@ var CamundaClient = class {
|
|
|
15633
15678
|
return this._invokeWithRetry(() => call(), { opId: "resolveIncident", exempt: false });
|
|
15634
15679
|
});
|
|
15635
15680
|
}
|
|
15636
|
-
resolveIncidentsBatchOperation(arg
|
|
15637
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
15638
|
-
const useConsistency = consistencyManagement.consistency;
|
|
15681
|
+
resolveIncidentsBatchOperation(arg) {
|
|
15639
15682
|
return toCancelable2(async (signal) => {
|
|
15640
15683
|
const _body = arg;
|
|
15641
15684
|
let envelope = {};
|
|
@@ -15682,14 +15725,10 @@ var CamundaClient = class {
|
|
|
15682
15725
|
throw e;
|
|
15683
15726
|
}
|
|
15684
15727
|
};
|
|
15685
|
-
|
|
15686
|
-
if (useConsistency) return eventualPoll("resolveIncidentsBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
|
|
15687
|
-
return invoke();
|
|
15728
|
+
return this._invokeWithRetry(() => call(), { opId: "resolveIncidentsBatchOperation", exempt: false });
|
|
15688
15729
|
});
|
|
15689
15730
|
}
|
|
15690
|
-
resumeBatchOperation(arg
|
|
15691
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
15692
|
-
const useConsistency = consistencyManagement.consistency;
|
|
15731
|
+
resumeBatchOperation(arg) {
|
|
15693
15732
|
return toCancelable2(async (signal) => {
|
|
15694
15733
|
const { batchOperationKey, ..._body } = arg || {};
|
|
15695
15734
|
let envelope = {};
|
|
@@ -15738,9 +15777,7 @@ var CamundaClient = class {
|
|
|
15738
15777
|
throw e;
|
|
15739
15778
|
}
|
|
15740
15779
|
};
|
|
15741
|
-
|
|
15742
|
-
if (useConsistency) return eventualPoll("resumeBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
|
|
15743
|
-
return invoke();
|
|
15780
|
+
return this._invokeWithRetry(() => call(), { opId: "resumeBatchOperation", exempt: false });
|
|
15744
15781
|
});
|
|
15745
15782
|
}
|
|
15746
15783
|
searchAuthorizations(arg, consistencyManagement) {
|
|
@@ -17499,6 +17536,64 @@ var CamundaClient = class {
|
|
|
17499
17536
|
return invoke();
|
|
17500
17537
|
});
|
|
17501
17538
|
}
|
|
17539
|
+
searchUserTaskEffectiveVariables(arg, consistencyManagement) {
|
|
17540
|
+
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
17541
|
+
const useConsistency = consistencyManagement.consistency;
|
|
17542
|
+
return toCancelable2(async (signal) => {
|
|
17543
|
+
const { userTaskKey, truncateValues, ..._body } = arg || {};
|
|
17544
|
+
let envelope = {};
|
|
17545
|
+
envelope.path = { userTaskKey };
|
|
17546
|
+
envelope.query = { truncateValues };
|
|
17547
|
+
envelope.body = _body;
|
|
17548
|
+
if (this._validation.settings.req !== "none") {
|
|
17549
|
+
const maybe = await this._validation.gateRequest("searchUserTaskEffectiveVariables", zSearchUserTaskEffectiveVariablesData, envelope);
|
|
17550
|
+
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
17551
|
+
}
|
|
17552
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
17553
|
+
if (envelope.path) opts.path = envelope.path;
|
|
17554
|
+
if (envelope.query) opts.query = envelope.query;
|
|
17555
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
17556
|
+
const call = async () => {
|
|
17557
|
+
try {
|
|
17558
|
+
const _raw = await searchUserTaskEffectiveVariables(opts);
|
|
17559
|
+
let data = this._evaluateResponse(_raw, "searchUserTaskEffectiveVariables", (resp) => {
|
|
17560
|
+
const st = resp.status ?? resp.response?.status;
|
|
17561
|
+
if (!st) return void 0;
|
|
17562
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
17563
|
+
if (!candidate) return void 0;
|
|
17564
|
+
let prob = void 0;
|
|
17565
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
17566
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
17567
|
+
err.status = st;
|
|
17568
|
+
err.name = "HttpSdkError";
|
|
17569
|
+
if (prob) {
|
|
17570
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
17571
|
+
}
|
|
17572
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
17573
|
+
if (!isBp) err.nonRetryable = true;
|
|
17574
|
+
return err;
|
|
17575
|
+
});
|
|
17576
|
+
const _respSchemaName = "zSearchUserTaskEffectiveVariablesResponse";
|
|
17577
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
17578
|
+
data = void 0;
|
|
17579
|
+
}
|
|
17580
|
+
if (this._validation.settings.res !== "none") {
|
|
17581
|
+
const _schema = zSearchUserTaskEffectiveVariablesResponse;
|
|
17582
|
+
if (_schema) {
|
|
17583
|
+
const maybeR = await this._validation.gateResponse("searchUserTaskEffectiveVariables", _schema, data);
|
|
17584
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
17585
|
+
}
|
|
17586
|
+
}
|
|
17587
|
+
return data;
|
|
17588
|
+
} catch (e) {
|
|
17589
|
+
throw e;
|
|
17590
|
+
}
|
|
17591
|
+
};
|
|
17592
|
+
const invoke = () => toCancelable2(() => call());
|
|
17593
|
+
if (useConsistency) return eventualPoll("searchUserTaskEffectiveVariables", false, invoke, { ...useConsistency, logger: this._log });
|
|
17594
|
+
return invoke();
|
|
17595
|
+
});
|
|
17596
|
+
}
|
|
17502
17597
|
searchUserTasks(arg, consistencyManagement) {
|
|
17503
17598
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
17504
17599
|
const useConsistency = consistencyManagement.consistency;
|
|
@@ -17667,9 +17762,7 @@ var CamundaClient = class {
|
|
|
17667
17762
|
return invoke();
|
|
17668
17763
|
});
|
|
17669
17764
|
}
|
|
17670
|
-
suspendBatchOperation(arg
|
|
17671
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
17672
|
-
const useConsistency = consistencyManagement.consistency;
|
|
17765
|
+
suspendBatchOperation(arg) {
|
|
17673
17766
|
return toCancelable2(async (signal) => {
|
|
17674
17767
|
const { batchOperationKey, ..._body } = arg || {};
|
|
17675
17768
|
let envelope = {};
|
|
@@ -17718,9 +17811,7 @@ var CamundaClient = class {
|
|
|
17718
17811
|
throw e;
|
|
17719
17812
|
}
|
|
17720
17813
|
};
|
|
17721
|
-
|
|
17722
|
-
if (useConsistency) return eventualPoll("suspendBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
|
|
17723
|
-
return invoke();
|
|
17814
|
+
return this._invokeWithRetry(() => call(), { opId: "suspendBatchOperation", exempt: false });
|
|
17724
17815
|
});
|
|
17725
17816
|
}
|
|
17726
17817
|
throwJobError(arg) {
|
|
@@ -18737,9 +18828,7 @@ var CamundaClient = class {
|
|
|
18737
18828
|
return this._invokeWithRetry(() => call(), { opId: "updateTenant", exempt: false });
|
|
18738
18829
|
});
|
|
18739
18830
|
}
|
|
18740
|
-
updateUser(arg
|
|
18741
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
18742
|
-
const useConsistency = consistencyManagement.consistency;
|
|
18831
|
+
updateUser(arg) {
|
|
18743
18832
|
return toCancelable2(async (signal) => {
|
|
18744
18833
|
const { username, ..._body } = arg || {};
|
|
18745
18834
|
let envelope = {};
|
|
@@ -18788,9 +18877,7 @@ var CamundaClient = class {
|
|
|
18788
18877
|
throw e;
|
|
18789
18878
|
}
|
|
18790
18879
|
};
|
|
18791
|
-
|
|
18792
|
-
if (useConsistency) return eventualPoll("updateUser", false, invoke, { ...useConsistency, logger: this._log });
|
|
18793
|
-
return invoke();
|
|
18880
|
+
return this._invokeWithRetry(() => call(), { opId: "updateUser", exempt: false });
|
|
18794
18881
|
});
|
|
18795
18882
|
}
|
|
18796
18883
|
updateUserTask(arg) {
|
|
@@ -19077,7 +19164,7 @@ var DecisionDefinitionKey;
|
|
|
19077
19164
|
var DecisionEvaluationInstanceKey;
|
|
19078
19165
|
((DecisionEvaluationInstanceKey2) => {
|
|
19079
19166
|
function assumeExists(value) {
|
|
19080
|
-
assertConstraint(value, "DecisionEvaluationInstanceKey", { pattern: "
|
|
19167
|
+
assertConstraint(value, "DecisionEvaluationInstanceKey", { pattern: "^[0-9]+-[0-9]+$", minLength: 3, maxLength: 30 });
|
|
19081
19168
|
return value;
|
|
19082
19169
|
}
|
|
19083
19170
|
DecisionEvaluationInstanceKey2.assumeExists = assumeExists;
|
|
@@ -19087,7 +19174,7 @@ var DecisionEvaluationInstanceKey;
|
|
|
19087
19174
|
DecisionEvaluationInstanceKey2.getValue = getValue;
|
|
19088
19175
|
function isValid(value) {
|
|
19089
19176
|
try {
|
|
19090
|
-
assertConstraint(value, "DecisionEvaluationInstanceKey", { pattern: "
|
|
19177
|
+
assertConstraint(value, "DecisionEvaluationInstanceKey", { pattern: "^[0-9]+-[0-9]+$", minLength: 3, maxLength: 30 });
|
|
19091
19178
|
return true;
|
|
19092
19179
|
} catch {
|
|
19093
19180
|
return false;
|