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

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
@@ -1923,7 +1923,7 @@ var HumanTaskService = class {
1923
1923
  * @returns any OK
1924
1924
  * @throws ApiError
1925
1925
  */
1926
- claimTask(taskId, overrideAssignment = false) {
1926
+ claimTask(taskId, overrideAssignment = false, withTemplate = false) {
1927
1927
  return this.httpRequest.request({
1928
1928
  method: "POST",
1929
1929
  url: "/human/tasks/{taskId}/claim",
@@ -1931,7 +1931,8 @@ var HumanTaskService = class {
1931
1931
  "taskId": taskId
1932
1932
  },
1933
1933
  query: {
1934
- "overrideAssignment": overrideAssignment
1934
+ "overrideAssignment": overrideAssignment,
1935
+ "withTemplate": withTemplate
1935
1936
  }
1936
1937
  });
1937
1938
  }
@@ -1943,7 +1944,7 @@ var HumanTaskService = class {
1943
1944
  * @returns any OK
1944
1945
  * @throws ApiError
1945
1946
  */
1946
- assignAndClaim(taskId, userId, overrideAssignment = false) {
1947
+ assignAndClaim(taskId, userId, overrideAssignment = false, withTemplate = false) {
1947
1948
  return this.httpRequest.request({
1948
1949
  method: "POST",
1949
1950
  url: "/human/tasks/{taskId}/externalUser/{userId}",
@@ -1952,7 +1953,8 @@ var HumanTaskService = class {
1952
1953
  "userId": userId
1953
1954
  },
1954
1955
  query: {
1955
- "overrideAssignment": overrideAssignment
1956
+ "overrideAssignment": overrideAssignment,
1957
+ "withTemplate": withTemplate
1956
1958
  }
1957
1959
  });
1958
1960
  }
@@ -3030,9 +3032,9 @@ var HumanExecutor = class {
3030
3032
  * @param assignee
3031
3033
  * @returns
3032
3034
  */
3033
- async claimTaskAsExternalUser(taskId, assignee) {
3035
+ async claimTaskAsExternalUser(taskId, assignee, options) {
3034
3036
  return tryCatchReThrow(
3035
- () => this._client.humanTask.assignAndClaim(taskId, assignee)
3037
+ () => this._client.humanTask.assignAndClaim(taskId, assignee, options?.overrideAssignment, options?.withTemplate)
3036
3038
  );
3037
3039
  }
3038
3040
  /**
@@ -3040,8 +3042,8 @@ var HumanExecutor = class {
3040
3042
  * @param taskId
3041
3043
  * @returns
3042
3044
  */
3043
- async claimTaskAsConductorUser(taskId) {
3044
- return tryCatchReThrow(() => this._client.humanTask.claimTask(taskId));
3045
+ async claimTaskAsConductorUser(taskId, options) {
3046
+ return tryCatchReThrow(() => this._client.humanTask.claimTask(taskId, options?.overrideAssignment, options?.withTemplate));
3045
3047
  }
3046
3048
  /**
3047
3049
  * Claim task as conductor user