@camunda8/orchestration-cluster-api 11.0.0-alpha.8 → 11.0.0-alpha.9

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.
@@ -259,7 +259,7 @@ import {
259
259
  updateTenantClusterVariable,
260
260
  updateUser,
261
261
  updateUserTask
262
- } from "./chunk-ZPMWQRAE.js";
262
+ } from "./chunk-F5FJDGNY.js";
263
263
 
264
264
  // src/runtime/pagination.ts
265
265
  function abortError() {
@@ -2326,4 +2326,4 @@ export {
2326
2326
  CamundaClientBase,
2327
2327
  CamundaClient
2328
2328
  };
2329
- //# sourceMappingURL=chunk-YUKGNBPN.js.map
2329
+ //# sourceMappingURL=chunk-J3QG6VGZ.js.map
@@ -13997,7 +13997,7 @@ var MASK_64 = (1n << 64n) - 1n;
13997
13997
  var UNIT = 2 ** -53;
13998
13998
 
13999
13999
  // src/runtime/version.ts
14000
- var packageVersion = "11.0.0-alpha.8";
14000
+ var packageVersion = "11.0.0-alpha.9";
14001
14001
 
14002
14002
  // src/runtime/userAgent.ts
14003
14003
  var import_platform = require("#platform");
@@ -16654,6 +16654,14 @@ function deepFreeze2(obj) {
16654
16654
  }
16655
16655
  return obj;
16656
16656
  }
16657
+ function _bodyHasOptionalTenantIdVariant(body, variants) {
16658
+ if (typeof body !== "object" || body === null || Array.isArray(body)) return false;
16659
+ const rec = body;
16660
+ if (rec.tenantId !== void 0 && rec.tenantId !== null) return false;
16661
+ return variants.some(
16662
+ (required) => required.every((p) => Object.hasOwn(rec, p) && rec[p] !== void 0 && rec[p] !== null)
16663
+ );
16664
+ }
16657
16665
  var CamundaCore = class _CamundaCore {
16658
16666
  _client;
16659
16667
  _config;
@@ -22058,7 +22066,7 @@ function broadcastSignal2(core, arg, options) {
22058
22066
  const _body = arg;
22059
22067
  let envelope = {};
22060
22068
  envelope.body = _body;
22061
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
22069
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
22062
22070
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
22063
22071
  rt._log.trace(() => ["tenant.default.inject", { op: "broadcastSignal", tenant: rt._config.defaultTenantId }]);
22064
22072
  }
@@ -22570,7 +22578,7 @@ function correlateMessage2(core, arg, options) {
22570
22578
  const _body = arg;
22571
22579
  let envelope = {};
22572
22580
  envelope.body = _body;
22573
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
22581
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
22574
22582
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
22575
22583
  rt._log.trace(() => ["tenant.default.inject", { op: "correlateMessage", tenant: rt._config.defaultTenantId }]);
22576
22584
  }
@@ -22794,7 +22802,7 @@ function createDeployment2(core, arg, options) {
22794
22802
  const _body = arg;
22795
22803
  let envelope = {};
22796
22804
  envelope.body = _body;
22797
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
22805
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
22798
22806
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
22799
22807
  rt._log.trace(() => ["tenant.default.inject", { op: "createDeployment", tenant: rt._config.defaultTenantId }]);
22800
22808
  }
@@ -23337,7 +23345,7 @@ function createProcessInstance2(core, arg, options) {
23337
23345
  const _body = arg;
23338
23346
  let envelope = {};
23339
23347
  envelope.body = _body;
23340
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
23348
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
23341
23349
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
23342
23350
  rt._log.trace(() => ["tenant.default.inject", { op: "createProcessInstance", tenant: rt._config.defaultTenantId }]);
23343
23351
  }
@@ -24802,7 +24810,7 @@ function evaluateConditionals2(core, arg, options) {
24802
24810
  const _body = arg;
24803
24811
  let envelope = {};
24804
24812
  envelope.body = _body;
24805
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
24813
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
24806
24814
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
24807
24815
  rt._log.trace(() => ["tenant.default.inject", { op: "evaluateConditionals", tenant: rt._config.defaultTenantId }]);
24808
24816
  }
@@ -24861,7 +24869,7 @@ function evaluateDecision2(core, arg, options) {
24861
24869
  const _body = arg;
24862
24870
  let envelope = {};
24863
24871
  envelope.body = _body;
24864
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
24872
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
24865
24873
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
24866
24874
  rt._log.trace(() => ["tenant.default.inject", { op: "evaluateDecision", tenant: rt._config.defaultTenantId }]);
24867
24875
  }
@@ -24920,7 +24928,7 @@ function evaluateExpression2(core, arg, options) {
24920
24928
  const _body = arg;
24921
24929
  let envelope = {};
24922
24930
  envelope.body = _body;
24923
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
24931
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
24924
24932
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
24925
24933
  rt._log.trace(() => ["tenant.default.inject", { op: "evaluateExpression", tenant: rt._config.defaultTenantId }]);
24926
24934
  }
@@ -29516,7 +29524,7 @@ function publishMessage2(core, arg, options) {
29516
29524
  const _body = arg;
29517
29525
  let envelope = {};
29518
29526
  envelope.body = _body;
29519
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
29527
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
29520
29528
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
29521
29529
  rt._log.trace(() => ["tenant.default.inject", { op: "publishMessage", tenant: rt._config.defaultTenantId }]);
29522
29530
  }
@@ -30116,6 +30124,10 @@ function resumeProcessDefinitions2(core, arg, options) {
30116
30124
  const _body = arg;
30117
30125
  let envelope = {};
30118
30126
  envelope.body = _body;
30127
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [["processDefinitionId"]])) {
30128
+ envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
30129
+ rt._log.trace(() => ["tenant.default.inject", { op: "resumeProcessDefinitions", tenant: rt._config.defaultTenantId }]);
30130
+ }
30119
30131
  if (rt._validation.settings.req !== "none") {
30120
30132
  const _schemas = await Promise.resolve().then(() => (init_resumeProcessDefinitions_gen(), resumeProcessDefinitions_gen_exports));
30121
30133
  if (envelope.body !== void 0) {
@@ -33324,6 +33336,10 @@ function suspendProcessDefinitions2(core, arg, options) {
33324
33336
  const _body = arg;
33325
33337
  let envelope = {};
33326
33338
  envelope.body = _body;
33339
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [["processDefinitionId"]])) {
33340
+ envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
33341
+ rt._log.trace(() => ["tenant.default.inject", { op: "suspendProcessDefinitions", tenant: rt._config.defaultTenantId }]);
33342
+ }
33327
33343
  if (rt._validation.settings.req !== "none") {
33328
33344
  const _schemas = await Promise.resolve().then(() => (init_suspendProcessDefinitions_gen(), suspendProcessDefinitions_gen_exports));
33329
33345
  if (envelope.body !== void 0) {