@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.
package/dist/fn/index.js CHANGED
@@ -250,7 +250,7 @@ import {
250
250
  updateTenantClusterVariable,
251
251
  updateUser,
252
252
  updateUserTask
253
- } from "../chunk-ZPMWQRAE.js";
253
+ } from "../chunk-F5FJDGNY.js";
254
254
  import "../chunk-LXWPMQOS.js";
255
255
  export {
256
256
  CamundaCore,
package/dist/index.cjs CHANGED
@@ -14245,7 +14245,7 @@ function seededRandomFromEnv(env = globalThis.process?.env ?? {}) {
14245
14245
  }
14246
14246
 
14247
14247
  // src/runtime/version.ts
14248
- var packageVersion = "11.0.0-alpha.8";
14248
+ var packageVersion = "11.0.0-alpha.9";
14249
14249
 
14250
14250
  // src/runtime/userAgent.ts
14251
14251
  var import_platform = require("#platform");
@@ -16902,6 +16902,14 @@ function deepFreeze2(obj) {
16902
16902
  }
16903
16903
  return obj;
16904
16904
  }
16905
+ function _bodyHasOptionalTenantIdVariant(body, variants) {
16906
+ if (typeof body !== "object" || body === null || Array.isArray(body)) return false;
16907
+ const rec = body;
16908
+ if (rec.tenantId !== void 0 && rec.tenantId !== null) return false;
16909
+ return variants.some(
16910
+ (required) => required.every((p) => Object.hasOwn(rec, p) && rec[p] !== void 0 && rec[p] !== null)
16911
+ );
16912
+ }
16905
16913
  var CamundaCore = class _CamundaCore {
16906
16914
  _client;
16907
16915
  _config;
@@ -22306,7 +22314,7 @@ function broadcastSignal2(core, arg, options) {
22306
22314
  const _body = arg;
22307
22315
  let envelope = {};
22308
22316
  envelope.body = _body;
22309
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
22317
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
22310
22318
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
22311
22319
  rt._log.trace(() => ["tenant.default.inject", { op: "broadcastSignal", tenant: rt._config.defaultTenantId }]);
22312
22320
  }
@@ -22818,7 +22826,7 @@ function correlateMessage2(core, arg, options) {
22818
22826
  const _body = arg;
22819
22827
  let envelope = {};
22820
22828
  envelope.body = _body;
22821
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
22829
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
22822
22830
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
22823
22831
  rt._log.trace(() => ["tenant.default.inject", { op: "correlateMessage", tenant: rt._config.defaultTenantId }]);
22824
22832
  }
@@ -23042,7 +23050,7 @@ function createDeployment2(core, arg, options) {
23042
23050
  const _body = arg;
23043
23051
  let envelope = {};
23044
23052
  envelope.body = _body;
23045
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
23053
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
23046
23054
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
23047
23055
  rt._log.trace(() => ["tenant.default.inject", { op: "createDeployment", tenant: rt._config.defaultTenantId }]);
23048
23056
  }
@@ -23585,7 +23593,7 @@ function createProcessInstance2(core, arg, options) {
23585
23593
  const _body = arg;
23586
23594
  let envelope = {};
23587
23595
  envelope.body = _body;
23588
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
23596
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
23589
23597
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
23590
23598
  rt._log.trace(() => ["tenant.default.inject", { op: "createProcessInstance", tenant: rt._config.defaultTenantId }]);
23591
23599
  }
@@ -25050,7 +25058,7 @@ function evaluateConditionals2(core, arg, options) {
25050
25058
  const _body = arg;
25051
25059
  let envelope = {};
25052
25060
  envelope.body = _body;
25053
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
25061
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
25054
25062
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
25055
25063
  rt._log.trace(() => ["tenant.default.inject", { op: "evaluateConditionals", tenant: rt._config.defaultTenantId }]);
25056
25064
  }
@@ -25109,7 +25117,7 @@ function evaluateDecision2(core, arg, options) {
25109
25117
  const _body = arg;
25110
25118
  let envelope = {};
25111
25119
  envelope.body = _body;
25112
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
25120
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
25113
25121
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
25114
25122
  rt._log.trace(() => ["tenant.default.inject", { op: "evaluateDecision", tenant: rt._config.defaultTenantId }]);
25115
25123
  }
@@ -25168,7 +25176,7 @@ function evaluateExpression2(core, arg, options) {
25168
25176
  const _body = arg;
25169
25177
  let envelope = {};
25170
25178
  envelope.body = _body;
25171
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
25179
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
25172
25180
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
25173
25181
  rt._log.trace(() => ["tenant.default.inject", { op: "evaluateExpression", tenant: rt._config.defaultTenantId }]);
25174
25182
  }
@@ -29764,7 +29772,7 @@ function publishMessage2(core, arg, options) {
29764
29772
  const _body = arg;
29765
29773
  let envelope = {};
29766
29774
  envelope.body = _body;
29767
- if (envelope.body && (envelope.body.tenantId === void 0 || envelope.body.tenantId === null)) {
29775
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [[]])) {
29768
29776
  envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
29769
29777
  rt._log.trace(() => ["tenant.default.inject", { op: "publishMessage", tenant: rt._config.defaultTenantId }]);
29770
29778
  }
@@ -30364,6 +30372,10 @@ function resumeProcessDefinitions2(core, arg, options) {
30364
30372
  const _body = arg;
30365
30373
  let envelope = {};
30366
30374
  envelope.body = _body;
30375
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [["processDefinitionId"]])) {
30376
+ envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
30377
+ rt._log.trace(() => ["tenant.default.inject", { op: "resumeProcessDefinitions", tenant: rt._config.defaultTenantId }]);
30378
+ }
30367
30379
  if (rt._validation.settings.req !== "none") {
30368
30380
  const _schemas = await Promise.resolve().then(() => (init_resumeProcessDefinitions_gen(), resumeProcessDefinitions_gen_exports));
30369
30381
  if (envelope.body !== void 0) {
@@ -33572,6 +33584,10 @@ function suspendProcessDefinitions2(core, arg, options) {
33572
33584
  const _body = arg;
33573
33585
  let envelope = {};
33574
33586
  envelope.body = _body;
33587
+ if (_bodyHasOptionalTenantIdVariant(envelope.body, [["processDefinitionId"]])) {
33588
+ envelope.body = { ...envelope.body, tenantId: rt._config.defaultTenantId };
33589
+ rt._log.trace(() => ["tenant.default.inject", { op: "suspendProcessDefinitions", tenant: rt._config.defaultTenantId }]);
33590
+ }
33575
33591
  if (rt._validation.settings.req !== "none") {
33576
33592
  const _schemas = await Promise.resolve().then(() => (init_suspendProcessDefinitions_gen(), suspendProcessDefinitions_gen_exports));
33577
33593
  if (envelope.body !== void 0) {