@io-orkes/conductor-javascript 2.1.2 → 2.1.3-alpha1
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 +16 -14
- package/dist/index.d.ts +16 -14
- package/dist/index.js +20 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1192,6 +1192,17 @@ declare type HumanTaskAssignment = {
|
|
|
1192
1192
|
slaMinutes?: number;
|
|
1193
1193
|
};
|
|
1194
1194
|
|
|
1195
|
+
declare type HumanTaskTemplate = {
|
|
1196
|
+
createdBy?: string;
|
|
1197
|
+
createdOn?: number;
|
|
1198
|
+
jsonSchema: Record<string, any>;
|
|
1199
|
+
name: string;
|
|
1200
|
+
templateUI: Record<string, any>;
|
|
1201
|
+
updatedBy?: string;
|
|
1202
|
+
updatedOn?: number;
|
|
1203
|
+
version: number;
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1195
1206
|
declare type HumanTaskTrigger = {
|
|
1196
1207
|
startWorkflowRequest?: StartWorkflowRequest;
|
|
1197
1208
|
triggerType?: 'ASSIGNEE_CHANGED' | 'PENDING' | 'IN_PROGRESS' | 'ASSIGNED' | 'COMPLETED' | 'TIMED_OUT';
|
|
@@ -1203,10 +1214,11 @@ declare type UserFormTemplate = {
|
|
|
1203
1214
|
};
|
|
1204
1215
|
|
|
1205
1216
|
declare type HumanTaskDefinition = {
|
|
1206
|
-
assignmentCompletionStrategy?:
|
|
1217
|
+
assignmentCompletionStrategy?: "LEAVE_OPEN" | "TERMINATE";
|
|
1207
1218
|
assignments?: Array<HumanTaskAssignment>;
|
|
1208
1219
|
taskTriggers?: Array<HumanTaskTrigger>;
|
|
1209
1220
|
userFormTemplate?: UserFormTemplate;
|
|
1221
|
+
fullTemplate?: HumanTaskTemplate;
|
|
1210
1222
|
};
|
|
1211
1223
|
|
|
1212
1224
|
declare type HumanTaskEntry = {
|
|
@@ -1239,6 +1251,7 @@ declare type HumanTaskSearch = {
|
|
|
1239
1251
|
start?: number;
|
|
1240
1252
|
states?: Array<'PENDING' | 'ASSIGNED' | 'IN_PROGRESS' | 'COMPLETED' | 'TIMED_OUT' | 'DELETED'>;
|
|
1241
1253
|
taskRefNames?: Array<string>;
|
|
1254
|
+
workflowIds?: Array<string>;
|
|
1242
1255
|
workflowNames?: Array<string>;
|
|
1243
1256
|
};
|
|
1244
1257
|
|
|
@@ -1247,17 +1260,6 @@ declare type HumanTaskSearchResult = {
|
|
|
1247
1260
|
totalHits?: number;
|
|
1248
1261
|
};
|
|
1249
1262
|
|
|
1250
|
-
declare type HumanTaskTemplate = {
|
|
1251
|
-
createdBy?: string;
|
|
1252
|
-
createdOn?: number;
|
|
1253
|
-
jsonSchema: Record<string, any>;
|
|
1254
|
-
name: string;
|
|
1255
|
-
templateUI: Record<string, any>;
|
|
1256
|
-
updatedBy?: string;
|
|
1257
|
-
updatedOn?: number;
|
|
1258
|
-
version: number;
|
|
1259
|
-
};
|
|
1260
|
-
|
|
1261
1263
|
declare class HumanTaskService {
|
|
1262
1264
|
readonly httpRequest: BaseHttpRequest;
|
|
1263
1265
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -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
|
@@ -1192,6 +1192,17 @@ declare type HumanTaskAssignment = {
|
|
|
1192
1192
|
slaMinutes?: number;
|
|
1193
1193
|
};
|
|
1194
1194
|
|
|
1195
|
+
declare type HumanTaskTemplate = {
|
|
1196
|
+
createdBy?: string;
|
|
1197
|
+
createdOn?: number;
|
|
1198
|
+
jsonSchema: Record<string, any>;
|
|
1199
|
+
name: string;
|
|
1200
|
+
templateUI: Record<string, any>;
|
|
1201
|
+
updatedBy?: string;
|
|
1202
|
+
updatedOn?: number;
|
|
1203
|
+
version: number;
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1195
1206
|
declare type HumanTaskTrigger = {
|
|
1196
1207
|
startWorkflowRequest?: StartWorkflowRequest;
|
|
1197
1208
|
triggerType?: 'ASSIGNEE_CHANGED' | 'PENDING' | 'IN_PROGRESS' | 'ASSIGNED' | 'COMPLETED' | 'TIMED_OUT';
|
|
@@ -1203,10 +1214,11 @@ declare type UserFormTemplate = {
|
|
|
1203
1214
|
};
|
|
1204
1215
|
|
|
1205
1216
|
declare type HumanTaskDefinition = {
|
|
1206
|
-
assignmentCompletionStrategy?:
|
|
1217
|
+
assignmentCompletionStrategy?: "LEAVE_OPEN" | "TERMINATE";
|
|
1207
1218
|
assignments?: Array<HumanTaskAssignment>;
|
|
1208
1219
|
taskTriggers?: Array<HumanTaskTrigger>;
|
|
1209
1220
|
userFormTemplate?: UserFormTemplate;
|
|
1221
|
+
fullTemplate?: HumanTaskTemplate;
|
|
1210
1222
|
};
|
|
1211
1223
|
|
|
1212
1224
|
declare type HumanTaskEntry = {
|
|
@@ -1239,6 +1251,7 @@ declare type HumanTaskSearch = {
|
|
|
1239
1251
|
start?: number;
|
|
1240
1252
|
states?: Array<'PENDING' | 'ASSIGNED' | 'IN_PROGRESS' | 'COMPLETED' | 'TIMED_OUT' | 'DELETED'>;
|
|
1241
1253
|
taskRefNames?: Array<string>;
|
|
1254
|
+
workflowIds?: Array<string>;
|
|
1242
1255
|
workflowNames?: Array<string>;
|
|
1243
1256
|
};
|
|
1244
1257
|
|
|
@@ -1247,17 +1260,6 @@ declare type HumanTaskSearchResult = {
|
|
|
1247
1260
|
totalHits?: number;
|
|
1248
1261
|
};
|
|
1249
1262
|
|
|
1250
|
-
declare type HumanTaskTemplate = {
|
|
1251
|
-
createdBy?: string;
|
|
1252
|
-
createdOn?: number;
|
|
1253
|
-
jsonSchema: Record<string, any>;
|
|
1254
|
-
name: string;
|
|
1255
|
-
templateUI: Record<string, any>;
|
|
1256
|
-
updatedBy?: string;
|
|
1257
|
-
updatedOn?: number;
|
|
1258
|
-
version: number;
|
|
1259
|
-
};
|
|
1260
|
-
|
|
1261
1263
|
declare class HumanTaskService {
|
|
1262
1264
|
readonly httpRequest: BaseHttpRequest;
|
|
1263
1265
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -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(
|
|
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(
|
|
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(
|
|
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
|