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

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
@@ -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';
@@ -1207,7 +1218,7 @@ declare type HumanTaskDefinition = {
1207
1218
  assignments?: Array<HumanTaskAssignment>;
1208
1219
  taskTriggers?: Array<HumanTaskTrigger>;
1209
1220
  userFormTemplate?: UserFormTemplate;
1210
- fullTemplate: Record<string, any>;
1221
+ fullTemplate?: HumanTaskTemplate;
1211
1222
  };
1212
1223
 
1213
1224
  declare type HumanTaskEntry = {
@@ -1249,17 +1260,6 @@ declare type HumanTaskSearchResult = {
1249
1260
  totalHits?: number;
1250
1261
  };
1251
1262
 
1252
- declare type HumanTaskTemplate = {
1253
- createdBy?: string;
1254
- createdOn?: number;
1255
- jsonSchema: Record<string, any>;
1256
- name: string;
1257
- templateUI: Record<string, any>;
1258
- updatedBy?: string;
1259
- updatedOn?: number;
1260
- version: number;
1261
- };
1262
-
1263
1263
  declare class HumanTaskService {
1264
1264
  readonly httpRequest: BaseHttpRequest;
1265
1265
  constructor(httpRequest: BaseHttpRequest);
@@ -1918,6 +1918,10 @@ declare type PollIntervalOptions = {
1918
1918
  pollInterval: number;
1919
1919
  maxPollTimes: number;
1920
1920
  };
1921
+ declare type ClaimOptions = {
1922
+ overrideAssignment: boolean;
1923
+ withTemplate: boolean;
1924
+ };
1921
1925
  declare class HumanExecutor {
1922
1926
  readonly _client: ConductorClient;
1923
1927
  constructor(client: ConductorClient);
@@ -1970,13 +1974,13 @@ declare class HumanExecutor {
1970
1974
  * @param assignee
1971
1975
  * @returns
1972
1976
  */
1973
- claimTaskAsExternalUser(taskId: string, assignee: string, options?: Record<string, boolean>): Promise<HumanTaskEntry>;
1977
+ claimTaskAsExternalUser(taskId: string, assignee: string, options?: ClaimOptions): Promise<HumanTaskEntry>;
1974
1978
  /**
1975
1979
  * Claim task as conductor user
1976
1980
  * @param taskId
1977
1981
  * @returns
1978
1982
  */
1979
- claimTaskAsConductorUser(taskId: string, options?: Record<string, boolean>): Promise<HumanTaskEntry>;
1983
+ claimTaskAsConductorUser(taskId: string, options?: ClaimOptions): Promise<HumanTaskEntry>;
1980
1984
  /**
1981
1985
  * Claim task as conductor user
1982
1986
  * @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';
@@ -1207,7 +1218,7 @@ declare type HumanTaskDefinition = {
1207
1218
  assignments?: Array<HumanTaskAssignment>;
1208
1219
  taskTriggers?: Array<HumanTaskTrigger>;
1209
1220
  userFormTemplate?: UserFormTemplate;
1210
- fullTemplate: Record<string, any>;
1221
+ fullTemplate?: HumanTaskTemplate;
1211
1222
  };
1212
1223
 
1213
1224
  declare type HumanTaskEntry = {
@@ -1249,17 +1260,6 @@ declare type HumanTaskSearchResult = {
1249
1260
  totalHits?: number;
1250
1261
  };
1251
1262
 
1252
- declare type HumanTaskTemplate = {
1253
- createdBy?: string;
1254
- createdOn?: number;
1255
- jsonSchema: Record<string, any>;
1256
- name: string;
1257
- templateUI: Record<string, any>;
1258
- updatedBy?: string;
1259
- updatedOn?: number;
1260
- version: number;
1261
- };
1262
-
1263
1263
  declare class HumanTaskService {
1264
1264
  readonly httpRequest: BaseHttpRequest;
1265
1265
  constructor(httpRequest: BaseHttpRequest);
@@ -1918,6 +1918,10 @@ declare type PollIntervalOptions = {
1918
1918
  pollInterval: number;
1919
1919
  maxPollTimes: number;
1920
1920
  };
1921
+ declare type ClaimOptions = {
1922
+ overrideAssignment: boolean;
1923
+ withTemplate: boolean;
1924
+ };
1921
1925
  declare class HumanExecutor {
1922
1926
  readonly _client: ConductorClient;
1923
1927
  constructor(client: ConductorClient);
@@ -1970,13 +1974,13 @@ declare class HumanExecutor {
1970
1974
  * @param assignee
1971
1975
  * @returns
1972
1976
  */
1973
- claimTaskAsExternalUser(taskId: string, assignee: string, options?: Record<string, boolean>): Promise<HumanTaskEntry>;
1977
+ claimTaskAsExternalUser(taskId: string, assignee: string, options?: ClaimOptions): Promise<HumanTaskEntry>;
1974
1978
  /**
1975
1979
  * Claim task as conductor user
1976
1980
  * @param taskId
1977
1981
  * @returns
1978
1982
  */
1979
- claimTaskAsConductorUser(taskId: string, options?: Record<string, boolean>): Promise<HumanTaskEntry>;
1983
+ claimTaskAsConductorUser(taskId: string, options?: ClaimOptions): Promise<HumanTaskEntry>;
1980
1984
  /**
1981
1985
  * Claim task as conductor user
1982
1986
  * @param taskId
package/dist/index.js CHANGED
@@ -1964,7 +1964,7 @@ var HumanTaskService = class {
1964
1964
  method: "DELETE",
1965
1965
  url: "/human/tasks/delete/{taskId}",
1966
1966
  path: {
1967
- "taskId": taskId
1967
+ taskId
1968
1968
  }
1969
1969
  });
1970
1970
  }
@@ -1997,10 +1997,10 @@ var HumanTaskService = class {
1997
1997
  method: "POST",
1998
1998
  url: "/human/tasks/update/taskRef",
1999
1999
  query: {
2000
- "workflowId": workflowId,
2001
- "taskRefName": taskRefName,
2002
- "complete": complete,
2003
- "iteration": iteration
2000
+ workflowId,
2001
+ taskRefName,
2002
+ complete,
2003
+ iteration
2004
2004
  },
2005
2005
  body: requestBody,
2006
2006
  mediaType: "application/json"
@@ -2017,7 +2017,9 @@ var HumanTaskService = class {
2017
2017
  method: "GET",
2018
2018
  url: "/human/tasks/{taskId}",
2019
2019
  path: {
2020
- "taskId": taskId,
2020
+ taskId
2021
+ },
2022
+ query: {
2021
2023
  withTemplate
2022
2024
  }
2023
2025
  });
@@ -2034,11 +2036,11 @@ var HumanTaskService = class {
2034
2036
  method: "POST",
2035
2037
  url: "/human/tasks/{taskId}/claim",
2036
2038
  path: {
2037
- "taskId": taskId
2039
+ taskId
2038
2040
  },
2039
2041
  query: {
2040
- "overrideAssignment": overrideAssignment,
2041
- "withTemplate": withTemplate
2042
+ overrideAssignment,
2043
+ withTemplate
2042
2044
  }
2043
2045
  });
2044
2046
  }
@@ -2055,12 +2057,12 @@ var HumanTaskService = class {
2055
2057
  method: "POST",
2056
2058
  url: "/human/tasks/{taskId}/externalUser/{userId}",
2057
2059
  path: {
2058
- "taskId": taskId,
2059
- "userId": userId
2060
+ taskId,
2061
+ userId
2060
2062
  },
2061
2063
  query: {
2062
- "overrideAssignment": overrideAssignment,
2063
- "withTemplate": withTemplate
2064
+ overrideAssignment,
2065
+ withTemplate
2064
2066
  }
2065
2067
  });
2066
2068
  }
@@ -2076,7 +2078,7 @@ var HumanTaskService = class {
2076
2078
  method: "POST",
2077
2079
  url: "/human/tasks/{taskId}/reassign",
2078
2080
  path: {
2079
- "taskId": taskId
2081
+ taskId
2080
2082
  },
2081
2083
  body: requestBody,
2082
2084
  mediaType: "application/json"
@@ -2093,7 +2095,7 @@ var HumanTaskService = class {
2093
2095
  method: "POST",
2094
2096
  url: "/human/tasks/{taskId}/release",
2095
2097
  path: {
2096
- "taskId": taskId
2098
+ taskId
2097
2099
  }
2098
2100
  });
2099
2101
  }
@@ -2109,10 +2111,10 @@ var HumanTaskService = class {
2109
2111
  method: "POST",
2110
2112
  url: "/human/tasks/{taskId}/skip",
2111
2113
  path: {
2112
- "taskId": taskId
2114
+ taskId
2113
2115
  },
2114
2116
  query: {
2115
- "reason": reason
2117
+ reason
2116
2118
  }
2117
2119
  });
2118
2120
  }
@@ -2129,10 +2131,10 @@ var HumanTaskService = class {
2129
2131
  method: "POST",
2130
2132
  url: "/human/tasks/{taskId}/update",
2131
2133
  path: {
2132
- "taskId": taskId
2134
+ taskId
2133
2135
  },
2134
2136
  query: {
2135
- "complete": complete
2137
+ complete
2136
2138
  },
2137
2139
  body: requestBody,
2138
2140
  mediaType: "application/json"
@@ -2150,8 +2152,8 @@ var HumanTaskService = class {
2150
2152
  method: "GET",
2151
2153
  url: "/human/template",
2152
2154
  query: {
2153
- "name": name,
2154
- "version": version
2155
+ name,
2156
+ version
2155
2157
  }
2156
2158
  });
2157
2159
  }
@@ -2167,7 +2169,7 @@ var HumanTaskService = class {
2167
2169
  method: "POST",
2168
2170
  url: "/human/template",
2169
2171
  query: {
2170
- "newVersion": newVersion
2172
+ newVersion
2171
2173
  },
2172
2174
  body: requestBody,
2173
2175
  mediaType: "application/json"
@@ -2185,7 +2187,7 @@ var HumanTaskService = class {
2185
2187
  method: "POST",
2186
2188
  url: "/human/template/bulk",
2187
2189
  query: {
2188
- "newVersion": newVersion
2190
+ newVersion
2189
2191
  },
2190
2192
  body: requestBody,
2191
2193
  mediaType: "application/json"
@@ -2202,7 +2204,7 @@ var HumanTaskService = class {
2202
2204
  method: "DELETE",
2203
2205
  url: "/human/template/{name}",
2204
2206
  path: {
2205
- "name": name
2207
+ name
2206
2208
  }
2207
2209
  });
2208
2210
  }
@@ -2218,8 +2220,8 @@ var HumanTaskService = class {
2218
2220
  method: "DELETE",
2219
2221
  url: "/human/template/{name}/{version}",
2220
2222
  path: {
2221
- "name": name,
2222
- "version": version
2223
+ name,
2224
+ version
2223
2225
  }
2224
2226
  });
2225
2227
  }
@@ -2235,8 +2237,8 @@ var HumanTaskService = class {
2235
2237
  method: "GET",
2236
2238
  url: "/human/template/{name}/{version}",
2237
2239
  path: {
2238
- "name": name,
2239
- "version": version
2240
+ name,
2241
+ version
2240
2242
  }
2241
2243
  });
2242
2244
  }