@camunda/play 1.11.0 → 1.12.0

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.
Files changed (2) hide show
  1. package/build/index.js +13 -8
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -147936,11 +147936,18 @@ class Mjt {
147936
147936
  };
147937
147937
  }
147938
147938
  async setVariables({
147939
- instanceKey: e,
147940
- scope: t,
147941
- variablesString: n
147939
+ elementInstanceKey: e,
147940
+ variablesString: t
147942
147941
  }) {
147943
- return { success: !1 };
147942
+ const { success: n } = await this.postWithErrorHandling("/play/set-variables", {
147943
+ payload: {
147944
+ clusterId: this.clusterId,
147945
+ organizationId: this.organizationId,
147946
+ elementInstanceKey: e,
147947
+ variables: JSON.parse(t)
147948
+ }
147949
+ });
147950
+ return { success: n };
147944
147951
  }
147945
147952
  async updateRetries({ jobKey: e, retries: t }) {
147946
147953
  return { success: !1 };
@@ -149099,8 +149106,7 @@ let mZt = class extends t1 {
149099
149106
  }) => {
149100
149107
  this.setIsUpdatingVariable(!0);
149101
149108
  const r = await Ct.setVariables({
149102
- instanceKey: e,
149103
- scope: t,
149109
+ elementInstanceKey: t ?? e ?? 0,
149104
149110
  variablesString: n
149105
149111
  });
149106
149112
  return this.setIsUpdatingVariable(!1), r?.success !== !1;
@@ -154029,8 +154035,7 @@ function UGt() {
154029
154035
  variables: v
154030
154036
  }) {
154031
154037
  await Ct.setVariables({
154032
- instanceKey: m,
154033
- scope: A,
154038
+ elementInstanceKey: A ?? m ?? 0,
154034
154039
  variablesString: v
154035
154040
  });
154036
154041
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/play",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "start": "vite",