@camunda8/orchestration-cluster-api 8.8.3 → 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-ZNUIQJ5W.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-ZNUIQJ5W.js.map +0 -1
|
@@ -463,54 +463,6 @@ var createSseClient = ({
|
|
|
463
463
|
return { stream };
|
|
464
464
|
};
|
|
465
465
|
|
|
466
|
-
// src/gen/core/auth.gen.ts
|
|
467
|
-
var getAuthToken = async (auth, callback) => {
|
|
468
|
-
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
469
|
-
if (!token) {
|
|
470
|
-
return;
|
|
471
|
-
}
|
|
472
|
-
if (auth.scheme === "bearer") {
|
|
473
|
-
return `Bearer ${token}`;
|
|
474
|
-
}
|
|
475
|
-
if (auth.scheme === "basic") {
|
|
476
|
-
return `Basic ${btoa(token)}`;
|
|
477
|
-
}
|
|
478
|
-
return token;
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
// src/gen/core/bodySerializer.gen.ts
|
|
482
|
-
var serializeFormDataPair = (data, key, value) => {
|
|
483
|
-
if (typeof value === "string" || value instanceof Blob) {
|
|
484
|
-
data.append(key, value);
|
|
485
|
-
} else if (value instanceof Date) {
|
|
486
|
-
data.append(key, value.toISOString());
|
|
487
|
-
} else {
|
|
488
|
-
data.append(key, JSON.stringify(value));
|
|
489
|
-
}
|
|
490
|
-
};
|
|
491
|
-
var formDataBodySerializer = {
|
|
492
|
-
bodySerializer: (body) => {
|
|
493
|
-
const data = new FormData();
|
|
494
|
-
Object.entries(body).forEach(([key, value]) => {
|
|
495
|
-
if (value === void 0 || value === null) {
|
|
496
|
-
return;
|
|
497
|
-
}
|
|
498
|
-
if (Array.isArray(value)) {
|
|
499
|
-
value.forEach((v) => serializeFormDataPair(data, key, v));
|
|
500
|
-
} else {
|
|
501
|
-
serializeFormDataPair(data, key, value);
|
|
502
|
-
}
|
|
503
|
-
});
|
|
504
|
-
return data;
|
|
505
|
-
}
|
|
506
|
-
};
|
|
507
|
-
var jsonBodySerializer = {
|
|
508
|
-
bodySerializer: (body) => JSON.stringify(
|
|
509
|
-
body,
|
|
510
|
-
(_key, value) => typeof value === "bigint" ? value.toString() : value
|
|
511
|
-
)
|
|
512
|
-
};
|
|
513
|
-
|
|
514
466
|
// src/gen/core/pathSerializer.gen.ts
|
|
515
467
|
var separatorArrayExplode = (style) => {
|
|
516
468
|
switch (style) {
|
|
@@ -723,6 +675,69 @@ var getUrl = ({
|
|
|
723
675
|
}
|
|
724
676
|
return url;
|
|
725
677
|
};
|
|
678
|
+
function getValidRequestBody(options) {
|
|
679
|
+
const hasBody = options.body !== void 0;
|
|
680
|
+
const isSerializedBody = hasBody && options.bodySerializer;
|
|
681
|
+
if (isSerializedBody) {
|
|
682
|
+
if ("serializedBody" in options) {
|
|
683
|
+
const hasSerializedBody = options.serializedBody !== void 0 && options.serializedBody !== "";
|
|
684
|
+
return hasSerializedBody ? options.serializedBody : null;
|
|
685
|
+
}
|
|
686
|
+
return options.body !== "" ? options.body : null;
|
|
687
|
+
}
|
|
688
|
+
if (hasBody) {
|
|
689
|
+
return options.body;
|
|
690
|
+
}
|
|
691
|
+
return void 0;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
// src/gen/core/auth.gen.ts
|
|
695
|
+
var getAuthToken = async (auth, callback) => {
|
|
696
|
+
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
697
|
+
if (!token) {
|
|
698
|
+
return;
|
|
699
|
+
}
|
|
700
|
+
if (auth.scheme === "bearer") {
|
|
701
|
+
return `Bearer ${token}`;
|
|
702
|
+
}
|
|
703
|
+
if (auth.scheme === "basic") {
|
|
704
|
+
return `Basic ${btoa(token)}`;
|
|
705
|
+
}
|
|
706
|
+
return token;
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
// src/gen/core/bodySerializer.gen.ts
|
|
710
|
+
var serializeFormDataPair = (data, key, value) => {
|
|
711
|
+
if (typeof value === "string" || value instanceof Blob) {
|
|
712
|
+
data.append(key, value);
|
|
713
|
+
} else if (value instanceof Date) {
|
|
714
|
+
data.append(key, value.toISOString());
|
|
715
|
+
} else {
|
|
716
|
+
data.append(key, JSON.stringify(value));
|
|
717
|
+
}
|
|
718
|
+
};
|
|
719
|
+
var formDataBodySerializer = {
|
|
720
|
+
bodySerializer: (body) => {
|
|
721
|
+
const data = new FormData();
|
|
722
|
+
Object.entries(body).forEach(([key, value]) => {
|
|
723
|
+
if (value === void 0 || value === null) {
|
|
724
|
+
return;
|
|
725
|
+
}
|
|
726
|
+
if (Array.isArray(value)) {
|
|
727
|
+
value.forEach((v) => serializeFormDataPair(data, key, v));
|
|
728
|
+
} else {
|
|
729
|
+
serializeFormDataPair(data, key, value);
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
return data;
|
|
733
|
+
}
|
|
734
|
+
};
|
|
735
|
+
var jsonBodySerializer = {
|
|
736
|
+
bodySerializer: (body) => JSON.stringify(
|
|
737
|
+
body,
|
|
738
|
+
(_key, value) => typeof value === "bigint" ? value.toString() : value
|
|
739
|
+
)
|
|
740
|
+
};
|
|
726
741
|
|
|
727
742
|
// src/gen/client/utils.gen.ts
|
|
728
743
|
var createQuerySerializer = ({
|
|
@@ -850,13 +865,20 @@ var mergeConfigs = (a, b) => {
|
|
|
850
865
|
config.headers = mergeHeaders(a.headers, b.headers);
|
|
851
866
|
return config;
|
|
852
867
|
};
|
|
868
|
+
var headersEntries = (headers) => {
|
|
869
|
+
const entries = [];
|
|
870
|
+
headers.forEach((value, key) => {
|
|
871
|
+
entries.push([key, value]);
|
|
872
|
+
});
|
|
873
|
+
return entries;
|
|
874
|
+
};
|
|
853
875
|
var mergeHeaders = (...headers) => {
|
|
854
876
|
const mergedHeaders = new Headers();
|
|
855
877
|
for (const header of headers) {
|
|
856
|
-
if (!header
|
|
878
|
+
if (!header) {
|
|
857
879
|
continue;
|
|
858
880
|
}
|
|
859
|
-
const iterator = header instanceof Headers ? header
|
|
881
|
+
const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header);
|
|
860
882
|
for (const [key, value] of iterator) {
|
|
861
883
|
if (value === null) {
|
|
862
884
|
mergedHeaders.delete(key);
|
|
@@ -966,10 +988,10 @@ var createClient = (config = {}) => {
|
|
|
966
988
|
if (opts.requestValidator) {
|
|
967
989
|
await opts.requestValidator(opts);
|
|
968
990
|
}
|
|
969
|
-
if (opts.body && opts.bodySerializer) {
|
|
991
|
+
if (opts.body !== void 0 && opts.bodySerializer) {
|
|
970
992
|
opts.serializedBody = opts.bodySerializer(opts.body);
|
|
971
993
|
}
|
|
972
|
-
if (opts.
|
|
994
|
+
if (opts.body === void 0 || opts.serializedBody === "") {
|
|
973
995
|
opts.headers.delete("Content-Type");
|
|
974
996
|
}
|
|
975
997
|
const url = buildUrl(opts);
|
|
@@ -980,7 +1002,7 @@ var createClient = (config = {}) => {
|
|
|
980
1002
|
const requestInit = {
|
|
981
1003
|
redirect: "follow",
|
|
982
1004
|
...opts,
|
|
983
|
-
body: opts
|
|
1005
|
+
body: getValidRequestBody(opts)
|
|
984
1006
|
};
|
|
985
1007
|
let request2 = new Request(url, requestInit);
|
|
986
1008
|
for (const fn of interceptors.request._fns) {
|
|
@@ -1528,6 +1550,18 @@ var searchUserTaskVariables = (options) => {
|
|
|
1528
1550
|
}
|
|
1529
1551
|
});
|
|
1530
1552
|
};
|
|
1553
|
+
var searchUserTaskEffectiveVariables = (options) => {
|
|
1554
|
+
return (options.client ?? client).post({
|
|
1555
|
+
requestValidator: void 0,
|
|
1556
|
+
responseValidator: void 0,
|
|
1557
|
+
url: "/user-tasks/{userTaskKey}/effective-variables/search",
|
|
1558
|
+
...options,
|
|
1559
|
+
headers: {
|
|
1560
|
+
"Content-Type": "application/json",
|
|
1561
|
+
...options.headers
|
|
1562
|
+
}
|
|
1563
|
+
});
|
|
1564
|
+
};
|
|
1531
1565
|
var searchVariables = (options) => {
|
|
1532
1566
|
return (options?.client ?? client).post({
|
|
1533
1567
|
requestValidator: void 0,
|
|
@@ -3155,6 +3189,8 @@ __export(zod_gen_exports, {
|
|
|
3155
3189
|
zSearchRolesResponse: () => zSearchRolesResponse,
|
|
3156
3190
|
zSearchTenantsData: () => zSearchTenantsData,
|
|
3157
3191
|
zSearchTenantsResponse: () => zSearchTenantsResponse,
|
|
3192
|
+
zSearchUserTaskEffectiveVariablesData: () => zSearchUserTaskEffectiveVariablesData,
|
|
3193
|
+
zSearchUserTaskEffectiveVariablesResponse: () => zSearchUserTaskEffectiveVariablesResponse,
|
|
3158
3194
|
zSearchUserTaskVariablesData: () => zSearchUserTaskVariablesData,
|
|
3159
3195
|
zSearchUserTaskVariablesResponse: () => zSearchUserTaskVariablesResponse,
|
|
3160
3196
|
zSearchUserTasksData: () => zSearchUserTasksData,
|
|
@@ -3258,6 +3294,7 @@ __export(zod_gen_exports, {
|
|
|
3258
3294
|
zUserSearchResult: () => zUserSearchResult,
|
|
3259
3295
|
zUserTaskAssignmentRequest: () => zUserTaskAssignmentRequest,
|
|
3260
3296
|
zUserTaskCompletionRequest: () => zUserTaskCompletionRequest,
|
|
3297
|
+
zUserTaskEffectiveVariableSearchQueryRequest: () => zUserTaskEffectiveVariableSearchQueryRequest,
|
|
3261
3298
|
zUserTaskFilter: () => zUserTaskFilter,
|
|
3262
3299
|
zUserTaskKey: () => zUserTaskKey,
|
|
3263
3300
|
zUserTaskProperties: () => zUserTaskProperties,
|
|
@@ -3326,7 +3363,9 @@ var zMessageSubscriptionKey = zLongKey;
|
|
|
3326
3363
|
var zDecisionDefinitionId = z.string().min(1).max(256).regex(/^[A-Za-z0-9_@.+-]+$/).register(z.globalRegistry, {
|
|
3327
3364
|
description: "Id of a decision definition, from the model. Only ids of decision definitions that are deployed are useful."
|
|
3328
3365
|
});
|
|
3329
|
-
var zDecisionEvaluationInstanceKey =
|
|
3366
|
+
var zDecisionEvaluationInstanceKey = z.string().min(3).max(30).regex(/^[0-9]+-[0-9]+$/).register(z.globalRegistry, {
|
|
3367
|
+
description: "System-generated key for a decision evaluation instance."
|
|
3368
|
+
});
|
|
3330
3369
|
var zDecisionEvaluationKey = zLongKey;
|
|
3331
3370
|
var zAuthorizationKey = zLongKey;
|
|
3332
3371
|
var zMessageKey = zLongKey;
|
|
@@ -3679,6 +3718,15 @@ var zUserTaskVariableSearchQueryRequest = zSearchQueryRequest.and(z.object({
|
|
|
3679
3718
|
}).register(z.globalRegistry, {
|
|
3680
3719
|
description: "User task search query request."
|
|
3681
3720
|
}));
|
|
3721
|
+
var zUserTaskEffectiveVariableSearchQueryRequest = z.object({
|
|
3722
|
+
page: z.optional(zOffsetPagination),
|
|
3723
|
+
sort: z.optional(z.array(zUserTaskVariableSearchQuerySortRequest).register(z.globalRegistry, {
|
|
3724
|
+
description: "Sort field criteria."
|
|
3725
|
+
})),
|
|
3726
|
+
filter: z.optional(zUserTaskVariableFilter)
|
|
3727
|
+
}).register(z.globalRegistry, {
|
|
3728
|
+
description: "User task effective variable search query request. Uses offset-based pagination only.\n"
|
|
3729
|
+
});
|
|
3682
3730
|
var zUserTaskResult = z.object({
|
|
3683
3731
|
name: z.optional(z.string().register(z.globalRegistry, {
|
|
3684
3732
|
description: "The name for this user task."
|
|
@@ -3879,7 +3927,7 @@ var zProcessDefinitionSearchQuerySortRequest = z.object({
|
|
|
3879
3927
|
var zProcessDefinitionFilter = z.object({
|
|
3880
3928
|
name: z.optional(zStringFilterProperty),
|
|
3881
3929
|
isLatestVersion: z.optional(z.boolean().register(z.globalRegistry, {
|
|
3882
|
-
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"
|
|
3930
|
+
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"
|
|
3883
3931
|
})),
|
|
3884
3932
|
resourceName: z.optional(z.string().register(z.globalRegistry, {
|
|
3885
3933
|
description: "Resource name of this process definition."
|
|
@@ -3895,6 +3943,12 @@ var zProcessDefinitionFilter = z.object({
|
|
|
3895
3943
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
3896
3944
|
hasStartForm: z.optional(z.boolean().register(z.globalRegistry, {
|
|
3897
3945
|
description: "Indicates whether the start event of the process has an associated Form Key."
|
|
3946
|
+
})),
|
|
3947
|
+
state: z.optional(z.enum([
|
|
3948
|
+
"ACTIVE",
|
|
3949
|
+
"DELETED"
|
|
3950
|
+
]).register(z.globalRegistry, {
|
|
3951
|
+
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"
|
|
3898
3952
|
}))
|
|
3899
3953
|
}).register(z.globalRegistry, {
|
|
3900
3954
|
description: "Process definition search filter."
|
|
@@ -3923,6 +3977,12 @@ var zProcessDefinitionResult = z.object({
|
|
|
3923
3977
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
3924
3978
|
hasStartForm: z.optional(z.boolean().register(z.globalRegistry, {
|
|
3925
3979
|
description: "Indicates whether the start event of the process has an associated Form Key."
|
|
3980
|
+
})),
|
|
3981
|
+
state: z.optional(z.enum([
|
|
3982
|
+
"ACTIVE",
|
|
3983
|
+
"DELETED"
|
|
3984
|
+
]).register(z.globalRegistry, {
|
|
3985
|
+
description: "The state of this process definition."
|
|
3926
3986
|
}))
|
|
3927
3987
|
});
|
|
3928
3988
|
var zProcessDefinitionSearchQueryResult = zSearchQueryResponse.and(z.object({
|
|
@@ -4038,6 +4098,7 @@ var zBaseProcessInstanceFilterFields = z.object({
|
|
|
4038
4098
|
parentProcessInstanceKey: z.optional(zProcessInstanceKeyFilterProperty),
|
|
4039
4099
|
parentElementInstanceKey: z.optional(zElementInstanceKeyFilterProperty),
|
|
4040
4100
|
batchOperationId: z.optional(zStringFilterProperty),
|
|
4101
|
+
batchOperationKey: z.optional(zStringFilterProperty),
|
|
4041
4102
|
errorMessage: z.optional(zStringFilterProperty),
|
|
4042
4103
|
hasRetriesLeft: z.optional(z.boolean().register(z.globalRegistry, {
|
|
4043
4104
|
description: "Whether the process has failed jobs with retries left."
|
|
@@ -6731,8 +6792,8 @@ var zSignalBroadcastResult = z.object({
|
|
|
6731
6792
|
var zFormResult = z.object({
|
|
6732
6793
|
tenantId: z.optional(zTenantId),
|
|
6733
6794
|
formId: z.optional(zFormId),
|
|
6734
|
-
schema: z.optional(z.
|
|
6735
|
-
description: "The form
|
|
6795
|
+
schema: z.optional(z.string().register(z.globalRegistry, {
|
|
6796
|
+
description: "The form schema as a JSON document serialized as a string."
|
|
6736
6797
|
})),
|
|
6737
6798
|
version: z.optional(z.coerce.bigint().register(z.globalRegistry, {
|
|
6738
6799
|
description: "The version of the the deployed form."
|
|
@@ -7375,6 +7436,18 @@ var zSearchUserTaskVariablesData = z.object({
|
|
|
7375
7436
|
}))
|
|
7376
7437
|
});
|
|
7377
7438
|
var zSearchUserTaskVariablesResponse = zVariableSearchQueryResult;
|
|
7439
|
+
var zSearchUserTaskEffectiveVariablesData = z.object({
|
|
7440
|
+
body: z.optional(zUserTaskEffectiveVariableSearchQueryRequest),
|
|
7441
|
+
path: z.object({
|
|
7442
|
+
userTaskKey: zUserTaskKey
|
|
7443
|
+
}),
|
|
7444
|
+
query: z.optional(z.object({
|
|
7445
|
+
truncateValues: z.optional(z.boolean().register(z.globalRegistry, {
|
|
7446
|
+
description: "When true (default), long variable values in the response are truncated. When false, full variable values are returned."
|
|
7447
|
+
}))
|
|
7448
|
+
}))
|
|
7449
|
+
});
|
|
7450
|
+
var zSearchUserTaskEffectiveVariablesResponse = zVariableSearchQueryResult;
|
|
7378
7451
|
var zSearchVariablesData = z.object({
|
|
7379
7452
|
body: z.optional(zVariableSearchQuery),
|
|
7380
7453
|
path: z.optional(z.never()),
|
|
@@ -9631,7 +9704,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
|
|
|
9631
9704
|
}
|
|
9632
9705
|
|
|
9633
9706
|
// src/runtime/version.ts
|
|
9634
|
-
var packageVersion = "8.8.
|
|
9707
|
+
var packageVersion = "8.8.5";
|
|
9635
9708
|
|
|
9636
9709
|
// src/runtime/supportLogger.ts
|
|
9637
9710
|
var NoopSupportLogger = class {
|
|
@@ -11834,9 +11907,7 @@ var CamundaClient = class {
|
|
|
11834
11907
|
return this._invokeWithRetry(() => call(), { opId: "broadcastSignal", exempt: false });
|
|
11835
11908
|
});
|
|
11836
11909
|
}
|
|
11837
|
-
cancelBatchOperation(arg
|
|
11838
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
11839
|
-
const useConsistency = consistencyManagement.consistency;
|
|
11910
|
+
cancelBatchOperation(arg) {
|
|
11840
11911
|
return toCancelable2(async (signal) => {
|
|
11841
11912
|
const { batchOperationKey, ..._body } = arg || {};
|
|
11842
11913
|
let envelope = {};
|
|
@@ -11885,9 +11956,7 @@ var CamundaClient = class {
|
|
|
11885
11956
|
throw e;
|
|
11886
11957
|
}
|
|
11887
11958
|
};
|
|
11888
|
-
|
|
11889
|
-
if (useConsistency) return eventualPoll("cancelBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
|
|
11890
|
-
return invoke();
|
|
11959
|
+
return this._invokeWithRetry(() => call(), { opId: "cancelBatchOperation", exempt: false });
|
|
11891
11960
|
});
|
|
11892
11961
|
}
|
|
11893
11962
|
cancelProcessInstance(arg) {
|
|
@@ -11942,9 +12011,7 @@ var CamundaClient = class {
|
|
|
11942
12011
|
return this._invokeWithRetry(() => call(), { opId: "cancelProcessInstance", exempt: false });
|
|
11943
12012
|
});
|
|
11944
12013
|
}
|
|
11945
|
-
cancelProcessInstancesBatchOperation(arg
|
|
11946
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
11947
|
-
const useConsistency = consistencyManagement.consistency;
|
|
12014
|
+
cancelProcessInstancesBatchOperation(arg) {
|
|
11948
12015
|
return toCancelable2(async (signal) => {
|
|
11949
12016
|
const _body = arg;
|
|
11950
12017
|
let envelope = {};
|
|
@@ -11991,9 +12058,7 @@ var CamundaClient = class {
|
|
|
11991
12058
|
throw e;
|
|
11992
12059
|
}
|
|
11993
12060
|
};
|
|
11994
|
-
|
|
11995
|
-
if (useConsistency) return eventualPoll("cancelProcessInstancesBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
|
|
11996
|
-
return invoke();
|
|
12061
|
+
return this._invokeWithRetry(() => call(), { opId: "cancelProcessInstancesBatchOperation", exempt: false });
|
|
11997
12062
|
});
|
|
11998
12063
|
}
|
|
11999
12064
|
completeJob(arg) {
|
|
@@ -12154,9 +12219,7 @@ var CamundaClient = class {
|
|
|
12154
12219
|
return this._invokeWithRetry(() => call(), { opId: "correlateMessage", exempt: false });
|
|
12155
12220
|
});
|
|
12156
12221
|
}
|
|
12157
|
-
createAdminUser(arg
|
|
12158
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
12159
|
-
const useConsistency = consistencyManagement.consistency;
|
|
12222
|
+
createAdminUser(arg) {
|
|
12160
12223
|
return toCancelable2(async (signal) => {
|
|
12161
12224
|
const _body = arg;
|
|
12162
12225
|
let envelope = {};
|
|
@@ -12203,9 +12266,7 @@ var CamundaClient = class {
|
|
|
12203
12266
|
throw e;
|
|
12204
12267
|
}
|
|
12205
12268
|
};
|
|
12206
|
-
|
|
12207
|
-
if (useConsistency) return eventualPoll("createAdminUser", false, invoke, { ...useConsistency, logger: this._log });
|
|
12208
|
-
return invoke();
|
|
12269
|
+
return this._invokeWithRetry(() => call(), { opId: "createAdminUser", exempt: false });
|
|
12209
12270
|
});
|
|
12210
12271
|
}
|
|
12211
12272
|
createAuthorization(arg) {
|
|
@@ -12790,9 +12851,7 @@ var CamundaClient = class {
|
|
|
12790
12851
|
return this._invokeWithRetry(() => call(), { opId: "createTenant", exempt: false });
|
|
12791
12852
|
});
|
|
12792
12853
|
}
|
|
12793
|
-
createUser(arg
|
|
12794
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
12795
|
-
const useConsistency = consistencyManagement.consistency;
|
|
12854
|
+
createUser(arg) {
|
|
12796
12855
|
return toCancelable2(async (signal) => {
|
|
12797
12856
|
const _body = arg;
|
|
12798
12857
|
let envelope = {};
|
|
@@ -12839,9 +12898,7 @@ var CamundaClient = class {
|
|
|
12839
12898
|
throw e;
|
|
12840
12899
|
}
|
|
12841
12900
|
};
|
|
12842
|
-
|
|
12843
|
-
if (useConsistency) return eventualPoll("createUser", false, invoke, { ...useConsistency, logger: this._log });
|
|
12844
|
-
return invoke();
|
|
12901
|
+
return this._invokeWithRetry(() => call(), { opId: "createUser", exempt: false });
|
|
12845
12902
|
});
|
|
12846
12903
|
}
|
|
12847
12904
|
deleteAuthorization(arg) {
|
|
@@ -13191,9 +13248,7 @@ var CamundaClient = class {
|
|
|
13191
13248
|
return this._invokeWithRetry(() => call(), { opId: "deleteTenant", exempt: false });
|
|
13192
13249
|
});
|
|
13193
13250
|
}
|
|
13194
|
-
deleteUser(arg
|
|
13195
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
13196
|
-
const useConsistency = consistencyManagement.consistency;
|
|
13251
|
+
deleteUser(arg) {
|
|
13197
13252
|
return toCancelable2(async (signal) => {
|
|
13198
13253
|
const { username } = arg || {};
|
|
13199
13254
|
let envelope = {};
|
|
@@ -13240,9 +13295,7 @@ var CamundaClient = class {
|
|
|
13240
13295
|
throw e;
|
|
13241
13296
|
}
|
|
13242
13297
|
};
|
|
13243
|
-
|
|
13244
|
-
if (useConsistency) return eventualPoll("deleteUser", false, invoke, { ...useConsistency, logger: this._log });
|
|
13245
|
-
return invoke();
|
|
13298
|
+
return this._invokeWithRetry(() => call(), { opId: "deleteUser", exempt: false });
|
|
13246
13299
|
});
|
|
13247
13300
|
}
|
|
13248
13301
|
evaluateDecision(arg) {
|
|
@@ -15129,9 +15182,7 @@ var CamundaClient = class {
|
|
|
15129
15182
|
return this._invokeWithRetry(() => call(), { opId: "migrateProcessInstance", exempt: false });
|
|
15130
15183
|
});
|
|
15131
15184
|
}
|
|
15132
|
-
migrateProcessInstancesBatchOperation(arg
|
|
15133
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
15134
|
-
const useConsistency = consistencyManagement.consistency;
|
|
15185
|
+
migrateProcessInstancesBatchOperation(arg) {
|
|
15135
15186
|
return toCancelable2(async (signal) => {
|
|
15136
15187
|
const _body = arg;
|
|
15137
15188
|
let envelope = {};
|
|
@@ -15178,9 +15229,7 @@ var CamundaClient = class {
|
|
|
15178
15229
|
throw e;
|
|
15179
15230
|
}
|
|
15180
15231
|
};
|
|
15181
|
-
|
|
15182
|
-
if (useConsistency) return eventualPoll("migrateProcessInstancesBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
|
|
15183
|
-
return invoke();
|
|
15232
|
+
return this._invokeWithRetry(() => call(), { opId: "migrateProcessInstancesBatchOperation", exempt: false });
|
|
15184
15233
|
});
|
|
15185
15234
|
}
|
|
15186
15235
|
modifyProcessInstance(arg) {
|
|
@@ -15235,9 +15284,7 @@ var CamundaClient = class {
|
|
|
15235
15284
|
return this._invokeWithRetry(() => call(), { opId: "modifyProcessInstance", exempt: false });
|
|
15236
15285
|
});
|
|
15237
15286
|
}
|
|
15238
|
-
modifyProcessInstancesBatchOperation(arg
|
|
15239
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
15240
|
-
const useConsistency = consistencyManagement.consistency;
|
|
15287
|
+
modifyProcessInstancesBatchOperation(arg) {
|
|
15241
15288
|
return toCancelable2(async (signal) => {
|
|
15242
15289
|
const _body = arg;
|
|
15243
15290
|
let envelope = {};
|
|
@@ -15284,9 +15331,7 @@ var CamundaClient = class {
|
|
|
15284
15331
|
throw e;
|
|
15285
15332
|
}
|
|
15286
15333
|
};
|
|
15287
|
-
|
|
15288
|
-
if (useConsistency) return eventualPoll("modifyProcessInstancesBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
|
|
15289
|
-
return invoke();
|
|
15334
|
+
return this._invokeWithRetry(() => call(), { opId: "modifyProcessInstancesBatchOperation", exempt: false });
|
|
15290
15335
|
});
|
|
15291
15336
|
}
|
|
15292
15337
|
pinClock(arg) {
|
|
@@ -15487,9 +15532,7 @@ var CamundaClient = class {
|
|
|
15487
15532
|
return this._invokeWithRetry(() => call(), { opId: "resolveIncident", exempt: false });
|
|
15488
15533
|
});
|
|
15489
15534
|
}
|
|
15490
|
-
resolveIncidentsBatchOperation(arg
|
|
15491
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
15492
|
-
const useConsistency = consistencyManagement.consistency;
|
|
15535
|
+
resolveIncidentsBatchOperation(arg) {
|
|
15493
15536
|
return toCancelable2(async (signal) => {
|
|
15494
15537
|
const _body = arg;
|
|
15495
15538
|
let envelope = {};
|
|
@@ -15536,14 +15579,10 @@ var CamundaClient = class {
|
|
|
15536
15579
|
throw e;
|
|
15537
15580
|
}
|
|
15538
15581
|
};
|
|
15539
|
-
|
|
15540
|
-
if (useConsistency) return eventualPoll("resolveIncidentsBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
|
|
15541
|
-
return invoke();
|
|
15582
|
+
return this._invokeWithRetry(() => call(), { opId: "resolveIncidentsBatchOperation", exempt: false });
|
|
15542
15583
|
});
|
|
15543
15584
|
}
|
|
15544
|
-
resumeBatchOperation(arg
|
|
15545
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
15546
|
-
const useConsistency = consistencyManagement.consistency;
|
|
15585
|
+
resumeBatchOperation(arg) {
|
|
15547
15586
|
return toCancelable2(async (signal) => {
|
|
15548
15587
|
const { batchOperationKey, ..._body } = arg || {};
|
|
15549
15588
|
let envelope = {};
|
|
@@ -15592,9 +15631,7 @@ var CamundaClient = class {
|
|
|
15592
15631
|
throw e;
|
|
15593
15632
|
}
|
|
15594
15633
|
};
|
|
15595
|
-
|
|
15596
|
-
if (useConsistency) return eventualPoll("resumeBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
|
|
15597
|
-
return invoke();
|
|
15634
|
+
return this._invokeWithRetry(() => call(), { opId: "resumeBatchOperation", exempt: false });
|
|
15598
15635
|
});
|
|
15599
15636
|
}
|
|
15600
15637
|
searchAuthorizations(arg, consistencyManagement) {
|
|
@@ -17353,6 +17390,64 @@ var CamundaClient = class {
|
|
|
17353
17390
|
return invoke();
|
|
17354
17391
|
});
|
|
17355
17392
|
}
|
|
17393
|
+
searchUserTaskEffectiveVariables(arg, consistencyManagement) {
|
|
17394
|
+
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
17395
|
+
const useConsistency = consistencyManagement.consistency;
|
|
17396
|
+
return toCancelable2(async (signal) => {
|
|
17397
|
+
const { userTaskKey, truncateValues, ..._body } = arg || {};
|
|
17398
|
+
let envelope = {};
|
|
17399
|
+
envelope.path = { userTaskKey };
|
|
17400
|
+
envelope.query = { truncateValues };
|
|
17401
|
+
envelope.body = _body;
|
|
17402
|
+
if (this._validation.settings.req !== "none") {
|
|
17403
|
+
const maybe = await this._validation.gateRequest("searchUserTaskEffectiveVariables", zSearchUserTaskEffectiveVariablesData, envelope);
|
|
17404
|
+
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
17405
|
+
}
|
|
17406
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
17407
|
+
if (envelope.path) opts.path = envelope.path;
|
|
17408
|
+
if (envelope.query) opts.query = envelope.query;
|
|
17409
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
17410
|
+
const call = async () => {
|
|
17411
|
+
try {
|
|
17412
|
+
const _raw = await searchUserTaskEffectiveVariables(opts);
|
|
17413
|
+
let data = this._evaluateResponse(_raw, "searchUserTaskEffectiveVariables", (resp) => {
|
|
17414
|
+
const st = resp.status ?? resp.response?.status;
|
|
17415
|
+
if (!st) return void 0;
|
|
17416
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
17417
|
+
if (!candidate) return void 0;
|
|
17418
|
+
let prob = void 0;
|
|
17419
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
17420
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
17421
|
+
err.status = st;
|
|
17422
|
+
err.name = "HttpSdkError";
|
|
17423
|
+
if (prob) {
|
|
17424
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
17425
|
+
}
|
|
17426
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
17427
|
+
if (!isBp) err.nonRetryable = true;
|
|
17428
|
+
return err;
|
|
17429
|
+
});
|
|
17430
|
+
const _respSchemaName = "zSearchUserTaskEffectiveVariablesResponse";
|
|
17431
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
17432
|
+
data = void 0;
|
|
17433
|
+
}
|
|
17434
|
+
if (this._validation.settings.res !== "none") {
|
|
17435
|
+
const _schema = zSearchUserTaskEffectiveVariablesResponse;
|
|
17436
|
+
if (_schema) {
|
|
17437
|
+
const maybeR = await this._validation.gateResponse("searchUserTaskEffectiveVariables", _schema, data);
|
|
17438
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
17439
|
+
}
|
|
17440
|
+
}
|
|
17441
|
+
return data;
|
|
17442
|
+
} catch (e) {
|
|
17443
|
+
throw e;
|
|
17444
|
+
}
|
|
17445
|
+
};
|
|
17446
|
+
const invoke = () => toCancelable2(() => call());
|
|
17447
|
+
if (useConsistency) return eventualPoll("searchUserTaskEffectiveVariables", false, invoke, { ...useConsistency, logger: this._log });
|
|
17448
|
+
return invoke();
|
|
17449
|
+
});
|
|
17450
|
+
}
|
|
17356
17451
|
searchUserTasks(arg, consistencyManagement) {
|
|
17357
17452
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
17358
17453
|
const useConsistency = consistencyManagement.consistency;
|
|
@@ -17521,9 +17616,7 @@ var CamundaClient = class {
|
|
|
17521
17616
|
return invoke();
|
|
17522
17617
|
});
|
|
17523
17618
|
}
|
|
17524
|
-
suspendBatchOperation(arg
|
|
17525
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
17526
|
-
const useConsistency = consistencyManagement.consistency;
|
|
17619
|
+
suspendBatchOperation(arg) {
|
|
17527
17620
|
return toCancelable2(async (signal) => {
|
|
17528
17621
|
const { batchOperationKey, ..._body } = arg || {};
|
|
17529
17622
|
let envelope = {};
|
|
@@ -17572,9 +17665,7 @@ var CamundaClient = class {
|
|
|
17572
17665
|
throw e;
|
|
17573
17666
|
}
|
|
17574
17667
|
};
|
|
17575
|
-
|
|
17576
|
-
if (useConsistency) return eventualPoll("suspendBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
|
|
17577
|
-
return invoke();
|
|
17668
|
+
return this._invokeWithRetry(() => call(), { opId: "suspendBatchOperation", exempt: false });
|
|
17578
17669
|
});
|
|
17579
17670
|
}
|
|
17580
17671
|
throwJobError(arg) {
|
|
@@ -18591,9 +18682,7 @@ var CamundaClient = class {
|
|
|
18591
18682
|
return this._invokeWithRetry(() => call(), { opId: "updateTenant", exempt: false });
|
|
18592
18683
|
});
|
|
18593
18684
|
}
|
|
18594
|
-
updateUser(arg
|
|
18595
|
-
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
18596
|
-
const useConsistency = consistencyManagement.consistency;
|
|
18685
|
+
updateUser(arg) {
|
|
18597
18686
|
return toCancelable2(async (signal) => {
|
|
18598
18687
|
const { username, ..._body } = arg || {};
|
|
18599
18688
|
let envelope = {};
|
|
@@ -18642,9 +18731,7 @@ var CamundaClient = class {
|
|
|
18642
18731
|
throw e;
|
|
18643
18732
|
}
|
|
18644
18733
|
};
|
|
18645
|
-
|
|
18646
|
-
if (useConsistency) return eventualPoll("updateUser", false, invoke, { ...useConsistency, logger: this._log });
|
|
18647
|
-
return invoke();
|
|
18734
|
+
return this._invokeWithRetry(() => call(), { opId: "updateUser", exempt: false });
|
|
18648
18735
|
});
|
|
18649
18736
|
}
|
|
18650
18737
|
updateUserTask(arg) {
|
|
@@ -18899,4 +18986,4 @@ export {
|
|
|
18899
18986
|
withTimeoutTE,
|
|
18900
18987
|
eventuallyTE
|
|
18901
18988
|
};
|
|
18902
|
-
//# sourceMappingURL=chunk-
|
|
18989
|
+
//# sourceMappingURL=chunk-LCCB5Q52.js.map
|