@io-orkes/conductor-javascript 2.1.1 → 2.1.2-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
  }
@@ -1923,7 +1924,7 @@ var HumanTaskService = class {
1923
1924
  * @returns any OK
1924
1925
  * @throws ApiError
1925
1926
  */
1926
- claimTask(taskId, overrideAssignment = false) {
1927
+ claimTask(taskId, overrideAssignment = false, withTemplate = false) {
1927
1928
  return this.httpRequest.request({
1928
1929
  method: "POST",
1929
1930
  url: "/human/tasks/{taskId}/claim",
@@ -1931,7 +1932,8 @@ var HumanTaskService = class {
1931
1932
  "taskId": taskId
1932
1933
  },
1933
1934
  query: {
1934
- "overrideAssignment": overrideAssignment
1935
+ "overrideAssignment": overrideAssignment,
1936
+ "withTemplate": withTemplate
1935
1937
  }
1936
1938
  });
1937
1939
  }
@@ -1943,7 +1945,7 @@ var HumanTaskService = class {
1943
1945
  * @returns any OK
1944
1946
  * @throws ApiError
1945
1947
  */
1946
- assignAndClaim(taskId, userId, overrideAssignment = false) {
1948
+ assignAndClaim(taskId, userId, overrideAssignment = false, withTemplate = false) {
1947
1949
  return this.httpRequest.request({
1948
1950
  method: "POST",
1949
1951
  url: "/human/tasks/{taskId}/externalUser/{userId}",
@@ -1952,7 +1954,8 @@ var HumanTaskService = class {
1952
1954
  "userId": userId
1953
1955
  },
1954
1956
  query: {
1955
- "overrideAssignment": overrideAssignment
1957
+ "overrideAssignment": overrideAssignment,
1958
+ "withTemplate": withTemplate
1956
1959
  }
1957
1960
  });
1958
1961
  }
@@ -3021,8 +3024,10 @@ var HumanExecutor = class {
3021
3024
  * @param taskId
3022
3025
  * @returns
3023
3026
  */
3024
- getTaskById(taskId) {
3025
- return tryCatchReThrow(() => this._client.humanTask.getTask1(taskId));
3027
+ getTaskById(taskId, withTemplate = false) {
3028
+ return tryCatchReThrow(
3029
+ () => this._client.humanTask.getTask1(taskId, withTemplate)
3030
+ );
3026
3031
  }
3027
3032
  /**
3028
3033
  * Assigns taskId to assignee. If the task is already assigned to another user, this will fail.
@@ -3030,9 +3035,14 @@ var HumanExecutor = class {
3030
3035
  * @param assignee
3031
3036
  * @returns
3032
3037
  */
3033
- async claimTaskAsExternalUser(taskId, assignee) {
3038
+ async claimTaskAsExternalUser(taskId, assignee, options) {
3034
3039
  return tryCatchReThrow(
3035
- () => this._client.humanTask.assignAndClaim(taskId, assignee)
3040
+ () => this._client.humanTask.assignAndClaim(
3041
+ taskId,
3042
+ assignee,
3043
+ options?.overrideAssignment,
3044
+ options?.withTemplate
3045
+ )
3036
3046
  );
3037
3047
  }
3038
3048
  /**
@@ -3040,8 +3050,14 @@ var HumanExecutor = class {
3040
3050
  * @param taskId
3041
3051
  * @returns
3042
3052
  */
3043
- async claimTaskAsConductorUser(taskId) {
3044
- return tryCatchReThrow(() => this._client.humanTask.claimTask(taskId));
3053
+ async claimTaskAsConductorUser(taskId, options) {
3054
+ return tryCatchReThrow(
3055
+ () => this._client.humanTask.claimTask(
3056
+ taskId,
3057
+ options?.overrideAssignment,
3058
+ options?.withTemplate
3059
+ )
3060
+ );
3045
3061
  }
3046
3062
  /**
3047
3063
  * Claim task as conductor user