@io-orkes/conductor-javascript 2.1.2 → 2.1.3-alpha

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/index.mjs CHANGED
@@ -1907,12 +1907,13 @@ var HumanTaskService = class {
1907
1907
  * @returns HumanTaskEntry OK
1908
1908
  * @throws ApiError
1909
1909
  */
1910
- getTask1(taskId) {
1910
+ getTask1(taskId, withTemplate = false) {
1911
1911
  return this.httpRequest.request({
1912
1912
  method: "GET",
1913
1913
  url: "/human/tasks/{taskId}",
1914
1914
  path: {
1915
- "taskId": taskId
1915
+ "taskId": taskId,
1916
+ withTemplate
1916
1917
  }
1917
1918
  });
1918
1919
  }
@@ -3023,8 +3024,10 @@ var HumanExecutor = class {
3023
3024
  * @param taskId
3024
3025
  * @returns
3025
3026
  */
3026
- getTaskById(taskId) {
3027
- return tryCatchReThrow(() => this._client.humanTask.getTask1(taskId));
3027
+ getTaskById(taskId, withTemplate = false) {
3028
+ return tryCatchReThrow(
3029
+ () => this._client.humanTask.getTask1(taskId, withTemplate)
3030
+ );
3028
3031
  }
3029
3032
  /**
3030
3033
  * Assigns taskId to assignee. If the task is already assigned to another user, this will fail.
@@ -3034,7 +3037,12 @@ var HumanExecutor = class {
3034
3037
  */
3035
3038
  async claimTaskAsExternalUser(taskId, assignee, options) {
3036
3039
  return tryCatchReThrow(
3037
- () => this._client.humanTask.assignAndClaim(taskId, assignee, options?.overrideAssignment, options?.withTemplate)
3040
+ () => this._client.humanTask.assignAndClaim(
3041
+ taskId,
3042
+ assignee,
3043
+ options?.overrideAssignment,
3044
+ options?.withTemplate
3045
+ )
3038
3046
  );
3039
3047
  }
3040
3048
  /**
@@ -3043,7 +3051,13 @@ var HumanExecutor = class {
3043
3051
  * @returns
3044
3052
  */
3045
3053
  async claimTaskAsConductorUser(taskId, options) {
3046
- return tryCatchReThrow(() => this._client.humanTask.claimTask(taskId, options?.overrideAssignment, options?.withTemplate));
3054
+ return tryCatchReThrow(
3055
+ () => this._client.humanTask.claimTask(
3056
+ taskId,
3057
+ options?.overrideAssignment,
3058
+ options?.withTemplate
3059
+ )
3060
+ );
3047
3061
  }
3048
3062
  /**
3049
3063
  * Claim task as conductor user