@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.d.mts CHANGED
@@ -1203,10 +1203,11 @@ declare type UserFormTemplate = {
1203
1203
  };
1204
1204
 
1205
1205
  declare type HumanTaskDefinition = {
1206
- assignmentCompletionStrategy?: 'LEAVE_OPEN' | 'TERMINATE';
1206
+ assignmentCompletionStrategy?: "LEAVE_OPEN" | "TERMINATE";
1207
1207
  assignments?: Array<HumanTaskAssignment>;
1208
1208
  taskTriggers?: Array<HumanTaskTrigger>;
1209
1209
  userFormTemplate?: UserFormTemplate;
1210
+ fullTemplate: Record<string, any>;
1210
1211
  };
1211
1212
 
1212
1213
  declare type HumanTaskEntry = {
@@ -1239,6 +1240,7 @@ declare type HumanTaskSearch = {
1239
1240
  start?: number;
1240
1241
  states?: Array<'PENDING' | 'ASSIGNED' | 'IN_PROGRESS' | 'COMPLETED' | 'TIMED_OUT' | 'DELETED'>;
1241
1242
  taskRefNames?: Array<string>;
1243
+ workflowIds?: Array<string>;
1242
1244
  workflowNames?: Array<string>;
1243
1245
  };
1244
1246
 
@@ -1299,7 +1301,7 @@ declare class HumanTaskService {
1299
1301
  * @returns HumanTaskEntry OK
1300
1302
  * @throws ApiError
1301
1303
  */
1302
- getTask1(taskId: string): CancelablePromise<HumanTaskEntry>;
1304
+ getTask1(taskId: string, withTemplate?: boolean): CancelablePromise<HumanTaskEntry>;
1303
1305
  /**
1304
1306
  * Claim a task by authenticated Conductor user
1305
1307
  * @param taskId
@@ -1961,7 +1963,7 @@ declare class HumanExecutor {
1961
1963
  * @param taskId
1962
1964
  * @returns
1963
1965
  */
1964
- getTaskById(taskId: string): Promise<HumanTaskEntry>;
1966
+ getTaskById(taskId: string, withTemplate?: boolean): Promise<HumanTaskEntry>;
1965
1967
  /**
1966
1968
  * Assigns taskId to assignee. If the task is already assigned to another user, this will fail.
1967
1969
  * @param taskId
package/dist/index.d.ts CHANGED
@@ -1203,10 +1203,11 @@ declare type UserFormTemplate = {
1203
1203
  };
1204
1204
 
1205
1205
  declare type HumanTaskDefinition = {
1206
- assignmentCompletionStrategy?: 'LEAVE_OPEN' | 'TERMINATE';
1206
+ assignmentCompletionStrategy?: "LEAVE_OPEN" | "TERMINATE";
1207
1207
  assignments?: Array<HumanTaskAssignment>;
1208
1208
  taskTriggers?: Array<HumanTaskTrigger>;
1209
1209
  userFormTemplate?: UserFormTemplate;
1210
+ fullTemplate: Record<string, any>;
1210
1211
  };
1211
1212
 
1212
1213
  declare type HumanTaskEntry = {
@@ -1239,6 +1240,7 @@ declare type HumanTaskSearch = {
1239
1240
  start?: number;
1240
1241
  states?: Array<'PENDING' | 'ASSIGNED' | 'IN_PROGRESS' | 'COMPLETED' | 'TIMED_OUT' | 'DELETED'>;
1241
1242
  taskRefNames?: Array<string>;
1243
+ workflowIds?: Array<string>;
1242
1244
  workflowNames?: Array<string>;
1243
1245
  };
1244
1246
 
@@ -1299,7 +1301,7 @@ declare class HumanTaskService {
1299
1301
  * @returns HumanTaskEntry OK
1300
1302
  * @throws ApiError
1301
1303
  */
1302
- getTask1(taskId: string): CancelablePromise<HumanTaskEntry>;
1304
+ getTask1(taskId: string, withTemplate?: boolean): CancelablePromise<HumanTaskEntry>;
1303
1305
  /**
1304
1306
  * Claim a task by authenticated Conductor user
1305
1307
  * @param taskId
@@ -1961,7 +1963,7 @@ declare class HumanExecutor {
1961
1963
  * @param taskId
1962
1964
  * @returns
1963
1965
  */
1964
- getTaskById(taskId: string): Promise<HumanTaskEntry>;
1966
+ getTaskById(taskId: string, withTemplate?: boolean): Promise<HumanTaskEntry>;
1965
1967
  /**
1966
1968
  * Assigns taskId to assignee. If the task is already assigned to another user, this will fail.
1967
1969
  * @param taskId
package/dist/index.js CHANGED
@@ -2012,12 +2012,13 @@ var HumanTaskService = class {
2012
2012
  * @returns HumanTaskEntry OK
2013
2013
  * @throws ApiError
2014
2014
  */
2015
- getTask1(taskId) {
2015
+ getTask1(taskId, withTemplate = false) {
2016
2016
  return this.httpRequest.request({
2017
2017
  method: "GET",
2018
2018
  url: "/human/tasks/{taskId}",
2019
2019
  path: {
2020
- "taskId": taskId
2020
+ "taskId": taskId,
2021
+ withTemplate
2021
2022
  }
2022
2023
  });
2023
2024
  }
@@ -3128,8 +3129,10 @@ var HumanExecutor = class {
3128
3129
  * @param taskId
3129
3130
  * @returns
3130
3131
  */
3131
- getTaskById(taskId) {
3132
- return tryCatchReThrow(() => this._client.humanTask.getTask1(taskId));
3132
+ getTaskById(taskId, withTemplate = false) {
3133
+ return tryCatchReThrow(
3134
+ () => this._client.humanTask.getTask1(taskId, withTemplate)
3135
+ );
3133
3136
  }
3134
3137
  /**
3135
3138
  * Assigns taskId to assignee. If the task is already assigned to another user, this will fail.
@@ -3139,7 +3142,12 @@ var HumanExecutor = class {
3139
3142
  */
3140
3143
  async claimTaskAsExternalUser(taskId, assignee, options) {
3141
3144
  return tryCatchReThrow(
3142
- () => this._client.humanTask.assignAndClaim(taskId, assignee, options?.overrideAssignment, options?.withTemplate)
3145
+ () => this._client.humanTask.assignAndClaim(
3146
+ taskId,
3147
+ assignee,
3148
+ options?.overrideAssignment,
3149
+ options?.withTemplate
3150
+ )
3143
3151
  );
3144
3152
  }
3145
3153
  /**
@@ -3148,7 +3156,13 @@ var HumanExecutor = class {
3148
3156
  * @returns
3149
3157
  */
3150
3158
  async claimTaskAsConductorUser(taskId, options) {
3151
- return tryCatchReThrow(() => this._client.humanTask.claimTask(taskId, options?.overrideAssignment, options?.withTemplate));
3159
+ return tryCatchReThrow(
3160
+ () => this._client.humanTask.claimTask(
3161
+ taskId,
3162
+ options?.overrideAssignment,
3163
+ options?.withTemplate
3164
+ )
3165
+ );
3152
3166
  }
3153
3167
  /**
3154
3168
  * Claim task as conductor user