@vanillabp/bc-official-gui-client 0.1.0 → 0.1.3
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.ts +2125 -27
- package/dist/index.js +1740 -3
- package/dist/index.js.map +1 -0
- package/package.json +19 -12
- package/dist/apis/OfficialTasklistApi.d.ts +0 -338
- package/dist/apis/OfficialTasklistApi.js +0 -378
- package/dist/apis/OfficialWorkflowModulesApi.d.ts +0 -75
- package/dist/apis/OfficialWorkflowModulesApi.js +0 -66
- package/dist/apis/OfficialWorkflowlistApi.d.ts +0 -182
- package/dist/apis/OfficialWorkflowlistApi.js +0 -197
- package/dist/apis/index.d.ts +0 -25
- package/dist/apis/index.js +0 -3
- package/dist/chunk-4TPCCB4K.js +0 -45
- package/dist/models/Group.d.ts +0 -47
- package/dist/models/Group.js +0 -39
- package/dist/models/KwicRequest.d.ts +0 -36
- package/dist/models/KwicRequest.js +0 -38
- package/dist/models/KwicResult.d.ts +0 -39
- package/dist/models/KwicResult.js +0 -37
- package/dist/models/KwicResults.d.ts +0 -36
- package/dist/models/KwicResults.js +0 -38
- package/dist/models/Page.d.ts +0 -51
- package/dist/models/Page.js +0 -43
- package/dist/models/Person.d.ts +0 -65
- package/dist/models/Person.js +0 -45
- package/dist/models/SearchQuery.d.ts +0 -45
- package/dist/models/SearchQuery.js +0 -39
- package/dist/models/UiUriType.d.ts +0 -25
- package/dist/models/UiUriType.js +0 -20
- package/dist/models/UserSearchResult.d.ts +0 -36
- package/dist/models/UserSearchResult.js +0 -38
- package/dist/models/UserTask.d.ts +0 -208
- package/dist/models/UserTask.js +0 -110
- package/dist/models/UserTaskEvent.d.ts +0 -45
- package/dist/models/UserTaskEvent.js +0 -40
- package/dist/models/UserTaskIds.d.ts +0 -33
- package/dist/models/UserTaskIds.js +0 -34
- package/dist/models/UserTaskRetrieveMode.d.ts +0 -28
- package/dist/models/UserTaskRetrieveMode.js +0 -23
- package/dist/models/UserTasks.d.ts +0 -52
- package/dist/models/UserTasks.js +0 -48
- package/dist/models/UserTasksRequest.d.ts +0 -73
- package/dist/models/UserTasksRequest.js +0 -54
- package/dist/models/UserTasksUpdateRequest.d.ts +0 -66
- package/dist/models/UserTasksUpdateRequest.js +0 -50
- package/dist/models/Workflow.d.ts +0 -150
- package/dist/models/Workflow.js +0 -91
- package/dist/models/WorkflowEvent.d.ts +0 -45
- package/dist/models/WorkflowEvent.js +0 -40
- package/dist/models/WorkflowModule.d.ts +0 -45
- package/dist/models/WorkflowModule.js +0 -40
- package/dist/models/WorkflowModules.d.ts +0 -36
- package/dist/models/WorkflowModules.js +0 -38
- package/dist/models/Workflows.d.ts +0 -58
- package/dist/models/Workflows.js +0 -51
- package/dist/models/WorkflowsRequest.d.ts +0 -66
- package/dist/models/WorkflowsRequest.js +0 -48
- package/dist/models/WorkflowsUpdateRequest.d.ts +0 -60
- package/dist/models/WorkflowsUpdateRequest.js +0 -48
- package/dist/models/index.d.ts +0 -23
- package/dist/models/index.js +0 -23
- package/dist/runtime.d.ts +0 -184
- package/dist/runtime.js +0 -315
package/dist/index.js
CHANGED
|
@@ -1,3 +1,1740 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
// src/runtime.ts
|
|
2
|
+
var BASE_PATH = "/gui/api/v1".replace(/\/+$/, "");
|
|
3
|
+
var Configuration = class {
|
|
4
|
+
constructor(configuration = {}) {
|
|
5
|
+
this.configuration = configuration;
|
|
6
|
+
}
|
|
7
|
+
set config(configuration) {
|
|
8
|
+
this.configuration = configuration;
|
|
9
|
+
}
|
|
10
|
+
get basePath() {
|
|
11
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
12
|
+
}
|
|
13
|
+
get fetchApi() {
|
|
14
|
+
return this.configuration.fetchApi;
|
|
15
|
+
}
|
|
16
|
+
get middleware() {
|
|
17
|
+
return this.configuration.middleware || [];
|
|
18
|
+
}
|
|
19
|
+
get queryParamsStringify() {
|
|
20
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
21
|
+
}
|
|
22
|
+
get username() {
|
|
23
|
+
return this.configuration.username;
|
|
24
|
+
}
|
|
25
|
+
get password() {
|
|
26
|
+
return this.configuration.password;
|
|
27
|
+
}
|
|
28
|
+
get apiKey() {
|
|
29
|
+
const apiKey = this.configuration.apiKey;
|
|
30
|
+
if (apiKey) {
|
|
31
|
+
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
32
|
+
}
|
|
33
|
+
return void 0;
|
|
34
|
+
}
|
|
35
|
+
get accessToken() {
|
|
36
|
+
const accessToken = this.configuration.accessToken;
|
|
37
|
+
if (accessToken) {
|
|
38
|
+
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
39
|
+
}
|
|
40
|
+
return void 0;
|
|
41
|
+
}
|
|
42
|
+
get headers() {
|
|
43
|
+
return this.configuration.headers;
|
|
44
|
+
}
|
|
45
|
+
get credentials() {
|
|
46
|
+
return this.configuration.credentials;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var DefaultConfig = new Configuration();
|
|
50
|
+
var _BaseAPI = class _BaseAPI {
|
|
51
|
+
constructor(configuration = DefaultConfig) {
|
|
52
|
+
this.configuration = configuration;
|
|
53
|
+
this.fetchApi = async (url, init) => {
|
|
54
|
+
let fetchParams = { url, init };
|
|
55
|
+
for (const middleware of this.middleware) {
|
|
56
|
+
if (middleware.pre) {
|
|
57
|
+
fetchParams = await middleware.pre({
|
|
58
|
+
fetch: this.fetchApi,
|
|
59
|
+
...fetchParams
|
|
60
|
+
}) || fetchParams;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
let response = void 0;
|
|
64
|
+
try {
|
|
65
|
+
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
66
|
+
} catch (e) {
|
|
67
|
+
for (const middleware of this.middleware) {
|
|
68
|
+
if (middleware.onError) {
|
|
69
|
+
response = await middleware.onError({
|
|
70
|
+
fetch: this.fetchApi,
|
|
71
|
+
url: fetchParams.url,
|
|
72
|
+
init: fetchParams.init,
|
|
73
|
+
error: e,
|
|
74
|
+
response: response ? response.clone() : void 0
|
|
75
|
+
}) || response;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
if (response === void 0) {
|
|
79
|
+
if (e instanceof Error) {
|
|
80
|
+
throw new FetchError(e, "The request failed and the interceptors did not return an alternative response");
|
|
81
|
+
} else {
|
|
82
|
+
throw e;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
for (const middleware of this.middleware) {
|
|
87
|
+
if (middleware.post) {
|
|
88
|
+
response = await middleware.post({
|
|
89
|
+
fetch: this.fetchApi,
|
|
90
|
+
url: fetchParams.url,
|
|
91
|
+
init: fetchParams.init,
|
|
92
|
+
response: response.clone()
|
|
93
|
+
}) || response;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return response;
|
|
97
|
+
};
|
|
98
|
+
this.middleware = configuration.middleware;
|
|
99
|
+
}
|
|
100
|
+
withMiddleware(...middlewares) {
|
|
101
|
+
const next = this.clone();
|
|
102
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
103
|
+
return next;
|
|
104
|
+
}
|
|
105
|
+
withPreMiddleware(...preMiddlewares) {
|
|
106
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
107
|
+
return this.withMiddleware(...middlewares);
|
|
108
|
+
}
|
|
109
|
+
withPostMiddleware(...postMiddlewares) {
|
|
110
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
111
|
+
return this.withMiddleware(...middlewares);
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Check if the given MIME is a JSON MIME.
|
|
115
|
+
* JSON MIME examples:
|
|
116
|
+
* application/json
|
|
117
|
+
* application/json; charset=UTF8
|
|
118
|
+
* APPLICATION/JSON
|
|
119
|
+
* application/vnd.company+json
|
|
120
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
121
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
122
|
+
*/
|
|
123
|
+
isJsonMime(mime) {
|
|
124
|
+
if (!mime) {
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
return _BaseAPI.jsonRegex.test(mime);
|
|
128
|
+
}
|
|
129
|
+
async request(context, initOverrides) {
|
|
130
|
+
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
131
|
+
const response = await this.fetchApi(url, init);
|
|
132
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
133
|
+
return response;
|
|
134
|
+
}
|
|
135
|
+
throw new ResponseError(response, "Response returned an error code");
|
|
136
|
+
}
|
|
137
|
+
async createFetchParams(context, initOverrides) {
|
|
138
|
+
let url = this.configuration.basePath + context.path;
|
|
139
|
+
if (context.query !== void 0 && Object.keys(context.query).length !== 0) {
|
|
140
|
+
url += "?" + this.configuration.queryParamsStringify(context.query);
|
|
141
|
+
}
|
|
142
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
143
|
+
Object.keys(headers).forEach((key) => headers[key] === void 0 ? delete headers[key] : {});
|
|
144
|
+
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
|
|
145
|
+
const initParams = {
|
|
146
|
+
method: context.method,
|
|
147
|
+
headers,
|
|
148
|
+
body: context.body,
|
|
149
|
+
credentials: this.configuration.credentials
|
|
150
|
+
};
|
|
151
|
+
const overriddenInit = {
|
|
152
|
+
...initParams,
|
|
153
|
+
...await initOverrideFn({
|
|
154
|
+
init: initParams,
|
|
155
|
+
context
|
|
156
|
+
})
|
|
157
|
+
};
|
|
158
|
+
const init = {
|
|
159
|
+
...overriddenInit,
|
|
160
|
+
body: isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body) ? overriddenInit.body : JSON.stringify(overriddenInit.body)
|
|
161
|
+
};
|
|
162
|
+
return { url, init };
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
166
|
+
* and then shallow cloning data members.
|
|
167
|
+
*/
|
|
168
|
+
clone() {
|
|
169
|
+
const constructor = this.constructor;
|
|
170
|
+
const next = new constructor(this.configuration);
|
|
171
|
+
next.middleware = this.middleware.slice();
|
|
172
|
+
return next;
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
_BaseAPI.jsonRegex = new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i");
|
|
176
|
+
var BaseAPI = _BaseAPI;
|
|
177
|
+
function isBlob(value) {
|
|
178
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
179
|
+
}
|
|
180
|
+
function isFormData(value) {
|
|
181
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
182
|
+
}
|
|
183
|
+
var ResponseError = class extends Error {
|
|
184
|
+
constructor(response, msg) {
|
|
185
|
+
super(msg);
|
|
186
|
+
this.response = response;
|
|
187
|
+
this.name = "ResponseError";
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
var FetchError = class extends Error {
|
|
191
|
+
constructor(cause, msg) {
|
|
192
|
+
super(msg);
|
|
193
|
+
this.cause = cause;
|
|
194
|
+
this.name = "FetchError";
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
var RequiredError = class extends Error {
|
|
198
|
+
constructor(field, msg) {
|
|
199
|
+
super(msg);
|
|
200
|
+
this.field = field;
|
|
201
|
+
this.name = "RequiredError";
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
var COLLECTION_FORMATS = {
|
|
205
|
+
csv: ",",
|
|
206
|
+
ssv: " ",
|
|
207
|
+
tsv: " ",
|
|
208
|
+
pipes: "|"
|
|
209
|
+
};
|
|
210
|
+
function exists(json, key) {
|
|
211
|
+
const value = json[key];
|
|
212
|
+
return value !== null && value !== void 0;
|
|
213
|
+
}
|
|
214
|
+
function querystring(params, prefix = "") {
|
|
215
|
+
return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
216
|
+
}
|
|
217
|
+
function querystringSingleKey(key, value, keyPrefix = "") {
|
|
218
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
219
|
+
if (value instanceof Array) {
|
|
220
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
221
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
222
|
+
}
|
|
223
|
+
if (value instanceof Set) {
|
|
224
|
+
const valueAsArray = Array.from(value);
|
|
225
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
226
|
+
}
|
|
227
|
+
if (value instanceof Date) {
|
|
228
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
229
|
+
}
|
|
230
|
+
if (value instanceof Object) {
|
|
231
|
+
return querystring(value, fullKey);
|
|
232
|
+
}
|
|
233
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
234
|
+
}
|
|
235
|
+
function mapValues(data, fn) {
|
|
236
|
+
return Object.keys(data).reduce(
|
|
237
|
+
(acc, key) => ({ ...acc, [key]: fn(data[key]) }),
|
|
238
|
+
{}
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
function canConsumeForm(consumes) {
|
|
242
|
+
for (const consume of consumes) {
|
|
243
|
+
if ("multipart/form-data" === consume.contentType) {
|
|
244
|
+
return true;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return false;
|
|
248
|
+
}
|
|
249
|
+
var JSONApiResponse = class {
|
|
250
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
251
|
+
this.raw = raw;
|
|
252
|
+
this.transformer = transformer;
|
|
253
|
+
}
|
|
254
|
+
async value() {
|
|
255
|
+
return this.transformer(await this.raw.json());
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
var VoidApiResponse = class {
|
|
259
|
+
constructor(raw) {
|
|
260
|
+
this.raw = raw;
|
|
261
|
+
}
|
|
262
|
+
async value() {
|
|
263
|
+
return void 0;
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
var BlobApiResponse = class {
|
|
267
|
+
constructor(raw) {
|
|
268
|
+
this.raw = raw;
|
|
269
|
+
}
|
|
270
|
+
async value() {
|
|
271
|
+
return await this.raw.blob();
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
var TextApiResponse = class {
|
|
275
|
+
constructor(raw) {
|
|
276
|
+
this.raw = raw;
|
|
277
|
+
}
|
|
278
|
+
async value() {
|
|
279
|
+
return await this.raw.text();
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
// src/models/FollowUpDateRequest.ts
|
|
284
|
+
function instanceOfFollowUpDateRequest(value) {
|
|
285
|
+
let isInstance = true;
|
|
286
|
+
return isInstance;
|
|
287
|
+
}
|
|
288
|
+
function FollowUpDateRequestFromJSON(json) {
|
|
289
|
+
return FollowUpDateRequestFromJSONTyped(json);
|
|
290
|
+
}
|
|
291
|
+
function FollowUpDateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
292
|
+
if (json === void 0 || json === null) {
|
|
293
|
+
return json;
|
|
294
|
+
}
|
|
295
|
+
return {
|
|
296
|
+
"timestamp": !exists(json, "timestamp") ? void 0 : new Date(json["timestamp"])
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
function FollowUpDateRequestToJSON(value) {
|
|
300
|
+
if (value === void 0) {
|
|
301
|
+
return void 0;
|
|
302
|
+
}
|
|
303
|
+
if (value === null) {
|
|
304
|
+
return null;
|
|
305
|
+
}
|
|
306
|
+
return {
|
|
307
|
+
"timestamp": value.timestamp === void 0 ? void 0 : value.timestamp.toISOString()
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// src/models/Group.ts
|
|
312
|
+
function instanceOfGroup(value) {
|
|
313
|
+
let isInstance = true;
|
|
314
|
+
isInstance = isInstance && "id" in value;
|
|
315
|
+
return isInstance;
|
|
316
|
+
}
|
|
317
|
+
function GroupFromJSON(json) {
|
|
318
|
+
return GroupFromJSONTyped(json);
|
|
319
|
+
}
|
|
320
|
+
function GroupFromJSONTyped(json, ignoreDiscriminator) {
|
|
321
|
+
if (json === void 0 || json === null) {
|
|
322
|
+
return json;
|
|
323
|
+
}
|
|
324
|
+
return {
|
|
325
|
+
"id": json["id"],
|
|
326
|
+
"display": !exists(json, "display") ? void 0 : json["display"],
|
|
327
|
+
"details": !exists(json, "details") ? void 0 : json["details"]
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
function GroupToJSON(value) {
|
|
331
|
+
if (value === void 0) {
|
|
332
|
+
return void 0;
|
|
333
|
+
}
|
|
334
|
+
if (value === null) {
|
|
335
|
+
return null;
|
|
336
|
+
}
|
|
337
|
+
return {
|
|
338
|
+
"id": value.id,
|
|
339
|
+
"display": value.display,
|
|
340
|
+
"details": value.details
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
// src/models/SearchQuery.ts
|
|
345
|
+
function instanceOfSearchQuery(value) {
|
|
346
|
+
let isInstance = true;
|
|
347
|
+
isInstance = isInstance && "query" in value;
|
|
348
|
+
return isInstance;
|
|
349
|
+
}
|
|
350
|
+
function SearchQueryFromJSON(json) {
|
|
351
|
+
return SearchQueryFromJSONTyped(json);
|
|
352
|
+
}
|
|
353
|
+
function SearchQueryFromJSONTyped(json, ignoreDiscriminator) {
|
|
354
|
+
if (json === void 0 || json === null) {
|
|
355
|
+
return json;
|
|
356
|
+
}
|
|
357
|
+
return {
|
|
358
|
+
"path": !exists(json, "path") ? void 0 : json["path"],
|
|
359
|
+
"query": json["query"],
|
|
360
|
+
"caseInsensitive": !exists(json, "caseInsensitive") ? void 0 : json["caseInsensitive"]
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
function SearchQueryToJSON(value) {
|
|
364
|
+
if (value === void 0) {
|
|
365
|
+
return void 0;
|
|
366
|
+
}
|
|
367
|
+
if (value === null) {
|
|
368
|
+
return null;
|
|
369
|
+
}
|
|
370
|
+
return {
|
|
371
|
+
"path": value.path,
|
|
372
|
+
"query": value.query,
|
|
373
|
+
"caseInsensitive": value.caseInsensitive
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
// src/models/KwicRequest.ts
|
|
378
|
+
function instanceOfKwicRequest(value) {
|
|
379
|
+
let isInstance = true;
|
|
380
|
+
return isInstance;
|
|
381
|
+
}
|
|
382
|
+
function KwicRequestFromJSON(json) {
|
|
383
|
+
return KwicRequestFromJSONTyped(json);
|
|
384
|
+
}
|
|
385
|
+
function KwicRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
386
|
+
if (json === void 0 || json === null) {
|
|
387
|
+
return json;
|
|
388
|
+
}
|
|
389
|
+
return {
|
|
390
|
+
"searchQueries": !exists(json, "searchQueries") ? void 0 : json["searchQueries"].map(SearchQueryFromJSON)
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
function KwicRequestToJSON(value) {
|
|
394
|
+
if (value === void 0) {
|
|
395
|
+
return void 0;
|
|
396
|
+
}
|
|
397
|
+
if (value === null) {
|
|
398
|
+
return null;
|
|
399
|
+
}
|
|
400
|
+
return {
|
|
401
|
+
"searchQueries": value.searchQueries === void 0 ? void 0 : value.searchQueries.map(SearchQueryToJSON)
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
// src/models/KwicResult.ts
|
|
406
|
+
function instanceOfKwicResult(value) {
|
|
407
|
+
let isInstance = true;
|
|
408
|
+
isInstance = isInstance && "item" in value;
|
|
409
|
+
isInstance = isInstance && "count" in value;
|
|
410
|
+
return isInstance;
|
|
411
|
+
}
|
|
412
|
+
function KwicResultFromJSON(json) {
|
|
413
|
+
return KwicResultFromJSONTyped(json);
|
|
414
|
+
}
|
|
415
|
+
function KwicResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
416
|
+
if (json === void 0 || json === null) {
|
|
417
|
+
return json;
|
|
418
|
+
}
|
|
419
|
+
return {
|
|
420
|
+
"item": json["item"],
|
|
421
|
+
"count": json["count"]
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
function KwicResultToJSON(value) {
|
|
425
|
+
if (value === void 0) {
|
|
426
|
+
return void 0;
|
|
427
|
+
}
|
|
428
|
+
if (value === null) {
|
|
429
|
+
return null;
|
|
430
|
+
}
|
|
431
|
+
return {
|
|
432
|
+
"item": value.item,
|
|
433
|
+
"count": value.count
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
// src/models/KwicResults.ts
|
|
438
|
+
function instanceOfKwicResults(value) {
|
|
439
|
+
let isInstance = true;
|
|
440
|
+
isInstance = isInstance && "result" in value;
|
|
441
|
+
return isInstance;
|
|
442
|
+
}
|
|
443
|
+
function KwicResultsFromJSON(json) {
|
|
444
|
+
return KwicResultsFromJSONTyped(json);
|
|
445
|
+
}
|
|
446
|
+
function KwicResultsFromJSONTyped(json, ignoreDiscriminator) {
|
|
447
|
+
if (json === void 0 || json === null) {
|
|
448
|
+
return json;
|
|
449
|
+
}
|
|
450
|
+
return {
|
|
451
|
+
"result": json["result"].map(KwicResultFromJSON)
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
function KwicResultsToJSON(value) {
|
|
455
|
+
if (value === void 0) {
|
|
456
|
+
return void 0;
|
|
457
|
+
}
|
|
458
|
+
if (value === null) {
|
|
459
|
+
return null;
|
|
460
|
+
}
|
|
461
|
+
return {
|
|
462
|
+
"result": value.result.map(KwicResultToJSON)
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
// src/models/Page.ts
|
|
467
|
+
function instanceOfPage(value) {
|
|
468
|
+
let isInstance = true;
|
|
469
|
+
isInstance = isInstance && "totalElements" in value;
|
|
470
|
+
isInstance = isInstance && "totalPages" in value;
|
|
471
|
+
isInstance = isInstance && "number" in value;
|
|
472
|
+
isInstance = isInstance && "size" in value;
|
|
473
|
+
return isInstance;
|
|
474
|
+
}
|
|
475
|
+
function PageFromJSON(json) {
|
|
476
|
+
return PageFromJSONTyped(json);
|
|
477
|
+
}
|
|
478
|
+
function PageFromJSONTyped(json, ignoreDiscriminator) {
|
|
479
|
+
if (json === void 0 || json === null) {
|
|
480
|
+
return json;
|
|
481
|
+
}
|
|
482
|
+
return {
|
|
483
|
+
"totalElements": json["totalElements"],
|
|
484
|
+
"totalPages": json["totalPages"],
|
|
485
|
+
"number": json["number"],
|
|
486
|
+
"size": json["size"]
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
function PageToJSON(value) {
|
|
490
|
+
if (value === void 0) {
|
|
491
|
+
return void 0;
|
|
492
|
+
}
|
|
493
|
+
if (value === null) {
|
|
494
|
+
return null;
|
|
495
|
+
}
|
|
496
|
+
return {
|
|
497
|
+
"totalElements": value.totalElements,
|
|
498
|
+
"totalPages": value.totalPages,
|
|
499
|
+
"number": value.number,
|
|
500
|
+
"size": value.size
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
// src/models/Person.ts
|
|
505
|
+
function instanceOfPerson(value) {
|
|
506
|
+
let isInstance = true;
|
|
507
|
+
isInstance = isInstance && "id" in value;
|
|
508
|
+
return isInstance;
|
|
509
|
+
}
|
|
510
|
+
function PersonFromJSON(json) {
|
|
511
|
+
return PersonFromJSONTyped(json);
|
|
512
|
+
}
|
|
513
|
+
function PersonFromJSONTyped(json, ignoreDiscriminator) {
|
|
514
|
+
if (json === void 0 || json === null) {
|
|
515
|
+
return json;
|
|
516
|
+
}
|
|
517
|
+
return {
|
|
518
|
+
"id": json["id"],
|
|
519
|
+
"display": !exists(json, "display") ? void 0 : json["display"],
|
|
520
|
+
"displayShort": !exists(json, "displayShort") ? void 0 : json["displayShort"],
|
|
521
|
+
"email": !exists(json, "email") ? void 0 : json["email"],
|
|
522
|
+
"avatar": !exists(json, "avatar") ? void 0 : json["avatar"],
|
|
523
|
+
"details": !exists(json, "details") ? void 0 : json["details"]
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
function PersonToJSON(value) {
|
|
527
|
+
if (value === void 0) {
|
|
528
|
+
return void 0;
|
|
529
|
+
}
|
|
530
|
+
if (value === null) {
|
|
531
|
+
return null;
|
|
532
|
+
}
|
|
533
|
+
return {
|
|
534
|
+
"id": value.id,
|
|
535
|
+
"display": value.display,
|
|
536
|
+
"displayShort": value.displayShort,
|
|
537
|
+
"email": value.email,
|
|
538
|
+
"avatar": value.avatar,
|
|
539
|
+
"details": value.details
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
// src/models/UiUriType.ts
|
|
544
|
+
var UiUriType = {
|
|
545
|
+
External: "EXTERNAL",
|
|
546
|
+
WebpackMfReact: "WEBPACK_MF_REACT"
|
|
547
|
+
};
|
|
548
|
+
function UiUriTypeFromJSON(json) {
|
|
549
|
+
return UiUriTypeFromJSONTyped(json);
|
|
550
|
+
}
|
|
551
|
+
function UiUriTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
552
|
+
return json;
|
|
553
|
+
}
|
|
554
|
+
function UiUriTypeToJSON(value) {
|
|
555
|
+
return value;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
// src/models/UserSearchResult.ts
|
|
559
|
+
function instanceOfUserSearchResult(value) {
|
|
560
|
+
let isInstance = true;
|
|
561
|
+
return isInstance;
|
|
562
|
+
}
|
|
563
|
+
function UserSearchResultFromJSON(json) {
|
|
564
|
+
return UserSearchResultFromJSONTyped(json);
|
|
565
|
+
}
|
|
566
|
+
function UserSearchResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
567
|
+
if (json === void 0 || json === null) {
|
|
568
|
+
return json;
|
|
569
|
+
}
|
|
570
|
+
return {
|
|
571
|
+
"users": !exists(json, "users") ? void 0 : json["users"].map(PersonFromJSON)
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
function UserSearchResultToJSON(value) {
|
|
575
|
+
if (value === void 0) {
|
|
576
|
+
return void 0;
|
|
577
|
+
}
|
|
578
|
+
if (value === null) {
|
|
579
|
+
return null;
|
|
580
|
+
}
|
|
581
|
+
return {
|
|
582
|
+
"users": value.users === void 0 ? void 0 : value.users.map(PersonToJSON)
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
// src/models/UserTask.ts
|
|
587
|
+
function instanceOfUserTask(value) {
|
|
588
|
+
let isInstance = true;
|
|
589
|
+
isInstance = isInstance && "id" in value;
|
|
590
|
+
isInstance = isInstance && "createdAt" in value;
|
|
591
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
592
|
+
isInstance = isInstance && "workflowModuleId" in value;
|
|
593
|
+
isInstance = isInstance && "bpmnProcessId" in value;
|
|
594
|
+
isInstance = isInstance && "title" in value;
|
|
595
|
+
isInstance = isInstance && "taskDefinition" in value;
|
|
596
|
+
isInstance = isInstance && "uiUri" in value;
|
|
597
|
+
isInstance = isInstance && "uiUriType" in value;
|
|
598
|
+
isInstance = isInstance && "workflowModuleUri" in value;
|
|
599
|
+
return isInstance;
|
|
600
|
+
}
|
|
601
|
+
function UserTaskFromJSON(json) {
|
|
602
|
+
return UserTaskFromJSONTyped(json);
|
|
603
|
+
}
|
|
604
|
+
function UserTaskFromJSONTyped(json, ignoreDiscriminator) {
|
|
605
|
+
if (json === void 0 || json === null) {
|
|
606
|
+
return json;
|
|
607
|
+
}
|
|
608
|
+
return {
|
|
609
|
+
"id": json["id"],
|
|
610
|
+
"version": !exists(json, "version") ? void 0 : json["version"],
|
|
611
|
+
"initiator": !exists(json, "initiator") ? void 0 : json["initiator"],
|
|
612
|
+
"createdAt": new Date(json["createdAt"]),
|
|
613
|
+
"updatedAt": new Date(json["updatedAt"]),
|
|
614
|
+
"endedAt": !exists(json, "endedAt") ? void 0 : new Date(json["endedAt"]),
|
|
615
|
+
"workflowModuleId": json["workflowModuleId"],
|
|
616
|
+
"comment": !exists(json, "comment") ? void 0 : json["comment"],
|
|
617
|
+
"bpmnProcessId": json["bpmnProcessId"],
|
|
618
|
+
"bpmnProcessVersion": !exists(json, "bpmnProcessVersion") ? void 0 : json["bpmnProcessVersion"],
|
|
619
|
+
"workflowTitle": !exists(json, "workflowTitle") ? void 0 : json["workflowTitle"],
|
|
620
|
+
"workflowId": !exists(json, "workflowId") ? void 0 : json["workflowId"],
|
|
621
|
+
"businessId": !exists(json, "businessId") ? void 0 : json["businessId"],
|
|
622
|
+
"title": json["title"],
|
|
623
|
+
"bpmnTaskId": !exists(json, "bpmnTaskId") ? void 0 : json["bpmnTaskId"],
|
|
624
|
+
"taskDefinition": json["taskDefinition"],
|
|
625
|
+
"taskDefinitionTitle": !exists(json, "taskDefinitionTitle") ? void 0 : json["taskDefinitionTitle"],
|
|
626
|
+
"uiUri": json["uiUri"],
|
|
627
|
+
"uiUriType": UiUriTypeFromJSON(json["uiUriType"]),
|
|
628
|
+
"workflowModuleUri": json["workflowModuleUri"],
|
|
629
|
+
"assignee": !exists(json, "assignee") ? void 0 : PersonFromJSON(json["assignee"]),
|
|
630
|
+
"candidateUsers": !exists(json, "candidateUsers") ? void 0 : json["candidateUsers"].map(PersonFromJSON),
|
|
631
|
+
"candidateGroups": !exists(json, "candidateGroups") ? void 0 : json["candidateGroups"].map(GroupFromJSON),
|
|
632
|
+
"dueDate": !exists(json, "dueDate") ? void 0 : new Date(json["dueDate"]),
|
|
633
|
+
"followUpDate": !exists(json, "followUpDate") ? void 0 : new Date(json["followUpDate"]),
|
|
634
|
+
"details": !exists(json, "details") ? void 0 : json["details"],
|
|
635
|
+
"detailsFulltextSearch": !exists(json, "detailsFulltextSearch") ? void 0 : json["detailsFulltextSearch"],
|
|
636
|
+
"read": !exists(json, "read") ? void 0 : new Date(json["read"])
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
function UserTaskToJSON(value) {
|
|
640
|
+
if (value === void 0) {
|
|
641
|
+
return void 0;
|
|
642
|
+
}
|
|
643
|
+
if (value === null) {
|
|
644
|
+
return null;
|
|
645
|
+
}
|
|
646
|
+
return {
|
|
647
|
+
"id": value.id,
|
|
648
|
+
"version": value.version,
|
|
649
|
+
"initiator": value.initiator,
|
|
650
|
+
"createdAt": value.createdAt.toISOString(),
|
|
651
|
+
"updatedAt": value.updatedAt.toISOString(),
|
|
652
|
+
"endedAt": value.endedAt === void 0 ? void 0 : value.endedAt.toISOString(),
|
|
653
|
+
"workflowModuleId": value.workflowModuleId,
|
|
654
|
+
"comment": value.comment,
|
|
655
|
+
"bpmnProcessId": value.bpmnProcessId,
|
|
656
|
+
"bpmnProcessVersion": value.bpmnProcessVersion,
|
|
657
|
+
"workflowTitle": value.workflowTitle,
|
|
658
|
+
"workflowId": value.workflowId,
|
|
659
|
+
"businessId": value.businessId,
|
|
660
|
+
"title": value.title,
|
|
661
|
+
"bpmnTaskId": value.bpmnTaskId,
|
|
662
|
+
"taskDefinition": value.taskDefinition,
|
|
663
|
+
"taskDefinitionTitle": value.taskDefinitionTitle,
|
|
664
|
+
"uiUri": value.uiUri,
|
|
665
|
+
"uiUriType": UiUriTypeToJSON(value.uiUriType),
|
|
666
|
+
"workflowModuleUri": value.workflowModuleUri,
|
|
667
|
+
"assignee": PersonToJSON(value.assignee),
|
|
668
|
+
"candidateUsers": value.candidateUsers === void 0 ? void 0 : value.candidateUsers.map(PersonToJSON),
|
|
669
|
+
"candidateGroups": value.candidateGroups === void 0 ? void 0 : value.candidateGroups.map(GroupToJSON),
|
|
670
|
+
"dueDate": value.dueDate === void 0 ? void 0 : value.dueDate.toISOString(),
|
|
671
|
+
"followUpDate": value.followUpDate === void 0 ? void 0 : value.followUpDate.toISOString(),
|
|
672
|
+
"details": value.details,
|
|
673
|
+
"detailsFulltextSearch": value.detailsFulltextSearch,
|
|
674
|
+
"read": value.read === void 0 ? void 0 : value.read.toISOString()
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
// src/models/UserTaskEvent.ts
|
|
679
|
+
function instanceOfUserTaskEvent(value) {
|
|
680
|
+
let isInstance = true;
|
|
681
|
+
isInstance = isInstance && "type" in value;
|
|
682
|
+
isInstance = isInstance && "name" in value;
|
|
683
|
+
isInstance = isInstance && "id" in value;
|
|
684
|
+
return isInstance;
|
|
685
|
+
}
|
|
686
|
+
function UserTaskEventFromJSON(json) {
|
|
687
|
+
return UserTaskEventFromJSONTyped(json);
|
|
688
|
+
}
|
|
689
|
+
function UserTaskEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
690
|
+
if (json === void 0 || json === null) {
|
|
691
|
+
return json;
|
|
692
|
+
}
|
|
693
|
+
return {
|
|
694
|
+
"type": json["type"],
|
|
695
|
+
"name": json["name"],
|
|
696
|
+
"id": json["id"]
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
function UserTaskEventToJSON(value) {
|
|
700
|
+
if (value === void 0) {
|
|
701
|
+
return void 0;
|
|
702
|
+
}
|
|
703
|
+
if (value === null) {
|
|
704
|
+
return null;
|
|
705
|
+
}
|
|
706
|
+
return {
|
|
707
|
+
"type": value.type,
|
|
708
|
+
"name": value.name,
|
|
709
|
+
"id": value.id
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
// src/models/UserTaskIds.ts
|
|
714
|
+
function instanceOfUserTaskIds(value) {
|
|
715
|
+
let isInstance = true;
|
|
716
|
+
return isInstance;
|
|
717
|
+
}
|
|
718
|
+
function UserTaskIdsFromJSON(json) {
|
|
719
|
+
return UserTaskIdsFromJSONTyped(json);
|
|
720
|
+
}
|
|
721
|
+
function UserTaskIdsFromJSONTyped(json, ignoreDiscriminator) {
|
|
722
|
+
if (json === void 0 || json === null) {
|
|
723
|
+
return json;
|
|
724
|
+
}
|
|
725
|
+
return {
|
|
726
|
+
"userTaskIds": !exists(json, "userTaskIds") ? void 0 : json["userTaskIds"]
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
function UserTaskIdsToJSON(value) {
|
|
730
|
+
if (value === void 0) {
|
|
731
|
+
return void 0;
|
|
732
|
+
}
|
|
733
|
+
if (value === null) {
|
|
734
|
+
return null;
|
|
735
|
+
}
|
|
736
|
+
return {
|
|
737
|
+
"userTaskIds": value.userTaskIds
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
// src/models/UserTaskRetrieveMode.ts
|
|
742
|
+
var UserTaskRetrieveMode = {
|
|
743
|
+
All: "All",
|
|
744
|
+
OpenTasks: "OpenTasks",
|
|
745
|
+
OpenTasksWithoutFollowUp: "OpenTasksWithoutFollowUp",
|
|
746
|
+
OpenTasksWithFollowUp: "OpenTasksWithFollowUp",
|
|
747
|
+
OpenTaskOnlyFollowUp: "OpenTaskOnlyFollowUp",
|
|
748
|
+
ClosedTasksOnly: "ClosedTasksOnly"
|
|
749
|
+
};
|
|
750
|
+
function UserTaskRetrieveModeFromJSON(json) {
|
|
751
|
+
return UserTaskRetrieveModeFromJSONTyped(json);
|
|
752
|
+
}
|
|
753
|
+
function UserTaskRetrieveModeFromJSONTyped(json, ignoreDiscriminator) {
|
|
754
|
+
return json;
|
|
755
|
+
}
|
|
756
|
+
function UserTaskRetrieveModeToJSON(value) {
|
|
757
|
+
return value;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
// src/models/UserTasks.ts
|
|
761
|
+
function instanceOfUserTasks(value) {
|
|
762
|
+
let isInstance = true;
|
|
763
|
+
isInstance = isInstance && "serverTimestamp" in value;
|
|
764
|
+
isInstance = isInstance && "page" in value;
|
|
765
|
+
isInstance = isInstance && "userTasks" in value;
|
|
766
|
+
return isInstance;
|
|
767
|
+
}
|
|
768
|
+
function UserTasksFromJSON(json) {
|
|
769
|
+
return UserTasksFromJSONTyped(json);
|
|
770
|
+
}
|
|
771
|
+
function UserTasksFromJSONTyped(json, ignoreDiscriminator) {
|
|
772
|
+
if (json === void 0 || json === null) {
|
|
773
|
+
return json;
|
|
774
|
+
}
|
|
775
|
+
return {
|
|
776
|
+
"serverTimestamp": new Date(json["serverTimestamp"]),
|
|
777
|
+
"page": PageFromJSON(json["page"]),
|
|
778
|
+
"userTasks": json["userTasks"].map(UserTaskFromJSON)
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
function UserTasksToJSON(value) {
|
|
782
|
+
if (value === void 0) {
|
|
783
|
+
return void 0;
|
|
784
|
+
}
|
|
785
|
+
if (value === null) {
|
|
786
|
+
return null;
|
|
787
|
+
}
|
|
788
|
+
return {
|
|
789
|
+
"serverTimestamp": value.serverTimestamp.toISOString(),
|
|
790
|
+
"page": PageToJSON(value.page),
|
|
791
|
+
"userTasks": value.userTasks.map(UserTaskToJSON)
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
// src/models/UserTasksRequest.ts
|
|
796
|
+
function instanceOfUserTasksRequest(value) {
|
|
797
|
+
let isInstance = true;
|
|
798
|
+
return isInstance;
|
|
799
|
+
}
|
|
800
|
+
function UserTasksRequestFromJSON(json) {
|
|
801
|
+
return UserTasksRequestFromJSONTyped(json);
|
|
802
|
+
}
|
|
803
|
+
function UserTasksRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
804
|
+
if (json === void 0 || json === null) {
|
|
805
|
+
return json;
|
|
806
|
+
}
|
|
807
|
+
return {
|
|
808
|
+
"pageNumber": !exists(json, "pageNumber") ? void 0 : json["pageNumber"],
|
|
809
|
+
"pageSize": !exists(json, "pageSize") ? void 0 : json["pageSize"],
|
|
810
|
+
"query": !exists(json, "query") ? void 0 : json["query"],
|
|
811
|
+
"searchQueries": !exists(json, "searchQueries") ? void 0 : json["searchQueries"].map(SearchQueryFromJSON),
|
|
812
|
+
"sort": !exists(json, "sort") ? void 0 : json["sort"],
|
|
813
|
+
"sortAscending": !exists(json, "sortAscending") ? void 0 : json["sortAscending"],
|
|
814
|
+
"mode": !exists(json, "mode") ? void 0 : UserTaskRetrieveModeFromJSON(json["mode"])
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
function UserTasksRequestToJSON(value) {
|
|
818
|
+
if (value === void 0) {
|
|
819
|
+
return void 0;
|
|
820
|
+
}
|
|
821
|
+
if (value === null) {
|
|
822
|
+
return null;
|
|
823
|
+
}
|
|
824
|
+
return {
|
|
825
|
+
"pageNumber": value.pageNumber,
|
|
826
|
+
"pageSize": value.pageSize,
|
|
827
|
+
"query": value.query,
|
|
828
|
+
"searchQueries": value.searchQueries === void 0 ? void 0 : value.searchQueries.map(SearchQueryToJSON),
|
|
829
|
+
"sort": value.sort,
|
|
830
|
+
"sortAscending": value.sortAscending,
|
|
831
|
+
"mode": UserTaskRetrieveModeToJSON(value.mode)
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
// src/models/UserTasksUpdateRequest.ts
|
|
836
|
+
function instanceOfUserTasksUpdateRequest(value) {
|
|
837
|
+
let isInstance = true;
|
|
838
|
+
isInstance = isInstance && "size" in value;
|
|
839
|
+
isInstance = isInstance && "knownUserTasksIds" in value;
|
|
840
|
+
return isInstance;
|
|
841
|
+
}
|
|
842
|
+
function UserTasksUpdateRequestFromJSON(json) {
|
|
843
|
+
return UserTasksUpdateRequestFromJSONTyped(json);
|
|
844
|
+
}
|
|
845
|
+
function UserTasksUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
846
|
+
if (json === void 0 || json === null) {
|
|
847
|
+
return json;
|
|
848
|
+
}
|
|
849
|
+
return {
|
|
850
|
+
"size": json["size"],
|
|
851
|
+
"query": !exists(json, "query") ? void 0 : json["query"],
|
|
852
|
+
"searchQueries": !exists(json, "searchQueries") ? void 0 : json["searchQueries"].map(SearchQueryFromJSON),
|
|
853
|
+
"sort": !exists(json, "sort") ? void 0 : json["sort"],
|
|
854
|
+
"sortAscending": !exists(json, "sortAscending") ? void 0 : json["sortAscending"],
|
|
855
|
+
"knownUserTasksIds": json["knownUserTasksIds"],
|
|
856
|
+
"mode": !exists(json, "mode") ? void 0 : UserTaskRetrieveModeFromJSON(json["mode"])
|
|
857
|
+
};
|
|
858
|
+
}
|
|
859
|
+
function UserTasksUpdateRequestToJSON(value) {
|
|
860
|
+
if (value === void 0) {
|
|
861
|
+
return void 0;
|
|
862
|
+
}
|
|
863
|
+
if (value === null) {
|
|
864
|
+
return null;
|
|
865
|
+
}
|
|
866
|
+
return {
|
|
867
|
+
"size": value.size,
|
|
868
|
+
"query": value.query,
|
|
869
|
+
"searchQueries": value.searchQueries === void 0 ? void 0 : value.searchQueries.map(SearchQueryToJSON),
|
|
870
|
+
"sort": value.sort,
|
|
871
|
+
"sortAscending": value.sortAscending,
|
|
872
|
+
"knownUserTasksIds": value.knownUserTasksIds,
|
|
873
|
+
"mode": UserTaskRetrieveModeToJSON(value.mode)
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
// src/models/Workflow.ts
|
|
878
|
+
function instanceOfWorkflow(value) {
|
|
879
|
+
let isInstance = true;
|
|
880
|
+
isInstance = isInstance && "id" in value;
|
|
881
|
+
isInstance = isInstance && "createdAt" in value;
|
|
882
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
883
|
+
isInstance = isInstance && "workflowModuleId" in value;
|
|
884
|
+
isInstance = isInstance && "bpmnProcessId" in value;
|
|
885
|
+
isInstance = isInstance && "title" in value;
|
|
886
|
+
isInstance = isInstance && "uiUri" in value;
|
|
887
|
+
isInstance = isInstance && "uiUriType" in value;
|
|
888
|
+
isInstance = isInstance && "workflowModuleUri" in value;
|
|
889
|
+
return isInstance;
|
|
890
|
+
}
|
|
891
|
+
function WorkflowFromJSON(json) {
|
|
892
|
+
return WorkflowFromJSONTyped(json);
|
|
893
|
+
}
|
|
894
|
+
function WorkflowFromJSONTyped(json, ignoreDiscriminator) {
|
|
895
|
+
if (json === void 0 || json === null) {
|
|
896
|
+
return json;
|
|
897
|
+
}
|
|
898
|
+
return {
|
|
899
|
+
"id": json["id"],
|
|
900
|
+
"version": !exists(json, "version") ? void 0 : json["version"],
|
|
901
|
+
"initiator": !exists(json, "initiator") ? void 0 : PersonFromJSON(json["initiator"]),
|
|
902
|
+
"createdAt": new Date(json["createdAt"]),
|
|
903
|
+
"updatedAt": new Date(json["updatedAt"]),
|
|
904
|
+
"endedAt": !exists(json, "endedAt") ? void 0 : new Date(json["endedAt"]),
|
|
905
|
+
"workflowModuleId": json["workflowModuleId"],
|
|
906
|
+
"comment": !exists(json, "comment") ? void 0 : json["comment"],
|
|
907
|
+
"bpmnProcessId": json["bpmnProcessId"],
|
|
908
|
+
"bpmnProcessVersion": !exists(json, "bpmnProcessVersion") ? void 0 : json["bpmnProcessVersion"],
|
|
909
|
+
"businessId": !exists(json, "businessId") ? void 0 : json["businessId"],
|
|
910
|
+
"title": json["title"],
|
|
911
|
+
"uiUri": json["uiUri"],
|
|
912
|
+
"uiUriType": UiUriTypeFromJSON(json["uiUriType"]),
|
|
913
|
+
"workflowModuleUri": json["workflowModuleUri"],
|
|
914
|
+
"accessibleToUsers": !exists(json, "accessibleToUsers") ? void 0 : json["accessibleToUsers"].map(PersonFromJSON),
|
|
915
|
+
"accessibleToGroups": !exists(json, "accessibleToGroups") ? void 0 : json["accessibleToGroups"].map(GroupFromJSON),
|
|
916
|
+
"details": !exists(json, "details") ? void 0 : json["details"],
|
|
917
|
+
"detailsFulltextSearch": !exists(json, "detailsFulltextSearch") ? void 0 : json["detailsFulltextSearch"]
|
|
918
|
+
};
|
|
919
|
+
}
|
|
920
|
+
function WorkflowToJSON(value) {
|
|
921
|
+
if (value === void 0) {
|
|
922
|
+
return void 0;
|
|
923
|
+
}
|
|
924
|
+
if (value === null) {
|
|
925
|
+
return null;
|
|
926
|
+
}
|
|
927
|
+
return {
|
|
928
|
+
"id": value.id,
|
|
929
|
+
"version": value.version,
|
|
930
|
+
"initiator": PersonToJSON(value.initiator),
|
|
931
|
+
"createdAt": value.createdAt.toISOString(),
|
|
932
|
+
"updatedAt": value.updatedAt.toISOString(),
|
|
933
|
+
"endedAt": value.endedAt === void 0 ? void 0 : value.endedAt.toISOString(),
|
|
934
|
+
"workflowModuleId": value.workflowModuleId,
|
|
935
|
+
"comment": value.comment,
|
|
936
|
+
"bpmnProcessId": value.bpmnProcessId,
|
|
937
|
+
"bpmnProcessVersion": value.bpmnProcessVersion,
|
|
938
|
+
"businessId": value.businessId,
|
|
939
|
+
"title": value.title,
|
|
940
|
+
"uiUri": value.uiUri,
|
|
941
|
+
"uiUriType": UiUriTypeToJSON(value.uiUriType),
|
|
942
|
+
"workflowModuleUri": value.workflowModuleUri,
|
|
943
|
+
"accessibleToUsers": value.accessibleToUsers === void 0 ? void 0 : value.accessibleToUsers.map(PersonToJSON),
|
|
944
|
+
"accessibleToGroups": value.accessibleToGroups === void 0 ? void 0 : value.accessibleToGroups.map(GroupToJSON),
|
|
945
|
+
"details": value.details,
|
|
946
|
+
"detailsFulltextSearch": value.detailsFulltextSearch
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
// src/models/WorkflowEvent.ts
|
|
951
|
+
function instanceOfWorkflowEvent(value) {
|
|
952
|
+
let isInstance = true;
|
|
953
|
+
isInstance = isInstance && "type" in value;
|
|
954
|
+
isInstance = isInstance && "name" in value;
|
|
955
|
+
isInstance = isInstance && "id" in value;
|
|
956
|
+
return isInstance;
|
|
957
|
+
}
|
|
958
|
+
function WorkflowEventFromJSON(json) {
|
|
959
|
+
return WorkflowEventFromJSONTyped(json);
|
|
960
|
+
}
|
|
961
|
+
function WorkflowEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
962
|
+
if (json === void 0 || json === null) {
|
|
963
|
+
return json;
|
|
964
|
+
}
|
|
965
|
+
return {
|
|
966
|
+
"type": json["type"],
|
|
967
|
+
"name": json["name"],
|
|
968
|
+
"id": json["id"]
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
function WorkflowEventToJSON(value) {
|
|
972
|
+
if (value === void 0) {
|
|
973
|
+
return void 0;
|
|
974
|
+
}
|
|
975
|
+
if (value === null) {
|
|
976
|
+
return null;
|
|
977
|
+
}
|
|
978
|
+
return {
|
|
979
|
+
"type": value.type,
|
|
980
|
+
"name": value.name,
|
|
981
|
+
"id": value.id
|
|
982
|
+
};
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
// src/models/WorkflowModule.ts
|
|
986
|
+
function instanceOfWorkflowModule(value) {
|
|
987
|
+
let isInstance = true;
|
|
988
|
+
isInstance = isInstance && "id" in value;
|
|
989
|
+
isInstance = isInstance && "version" in value;
|
|
990
|
+
isInstance = isInstance && "uri" in value;
|
|
991
|
+
return isInstance;
|
|
992
|
+
}
|
|
993
|
+
function WorkflowModuleFromJSON(json) {
|
|
994
|
+
return WorkflowModuleFromJSONTyped(json);
|
|
995
|
+
}
|
|
996
|
+
function WorkflowModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
997
|
+
if (json === void 0 || json === null) {
|
|
998
|
+
return json;
|
|
999
|
+
}
|
|
1000
|
+
return {
|
|
1001
|
+
"id": json["id"],
|
|
1002
|
+
"version": json["version"],
|
|
1003
|
+
"uri": json["uri"]
|
|
1004
|
+
};
|
|
1005
|
+
}
|
|
1006
|
+
function WorkflowModuleToJSON(value) {
|
|
1007
|
+
if (value === void 0) {
|
|
1008
|
+
return void 0;
|
|
1009
|
+
}
|
|
1010
|
+
if (value === null) {
|
|
1011
|
+
return null;
|
|
1012
|
+
}
|
|
1013
|
+
return {
|
|
1014
|
+
"id": value.id,
|
|
1015
|
+
"version": value.version,
|
|
1016
|
+
"uri": value.uri
|
|
1017
|
+
};
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
// src/models/WorkflowModules.ts
|
|
1021
|
+
function instanceOfWorkflowModules(value) {
|
|
1022
|
+
let isInstance = true;
|
|
1023
|
+
isInstance = isInstance && "modules" in value;
|
|
1024
|
+
return isInstance;
|
|
1025
|
+
}
|
|
1026
|
+
function WorkflowModulesFromJSON(json) {
|
|
1027
|
+
return WorkflowModulesFromJSONTyped(json);
|
|
1028
|
+
}
|
|
1029
|
+
function WorkflowModulesFromJSONTyped(json, ignoreDiscriminator) {
|
|
1030
|
+
if (json === void 0 || json === null) {
|
|
1031
|
+
return json;
|
|
1032
|
+
}
|
|
1033
|
+
return {
|
|
1034
|
+
"modules": json["modules"].map(WorkflowModuleFromJSON)
|
|
1035
|
+
};
|
|
1036
|
+
}
|
|
1037
|
+
function WorkflowModulesToJSON(value) {
|
|
1038
|
+
if (value === void 0) {
|
|
1039
|
+
return void 0;
|
|
1040
|
+
}
|
|
1041
|
+
if (value === null) {
|
|
1042
|
+
return null;
|
|
1043
|
+
}
|
|
1044
|
+
return {
|
|
1045
|
+
"modules": value.modules.map(WorkflowModuleToJSON)
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
// src/models/WorkflowRetrieveMode.ts
|
|
1050
|
+
var WorkflowRetrieveMode = {
|
|
1051
|
+
All: "All",
|
|
1052
|
+
Active: "Active",
|
|
1053
|
+
Inactive: "Inactive"
|
|
1054
|
+
};
|
|
1055
|
+
function WorkflowRetrieveModeFromJSON(json) {
|
|
1056
|
+
return WorkflowRetrieveModeFromJSONTyped(json);
|
|
1057
|
+
}
|
|
1058
|
+
function WorkflowRetrieveModeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1059
|
+
return json;
|
|
1060
|
+
}
|
|
1061
|
+
function WorkflowRetrieveModeToJSON(value) {
|
|
1062
|
+
return value;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
// src/models/Workflows.ts
|
|
1066
|
+
function instanceOfWorkflows(value) {
|
|
1067
|
+
let isInstance = true;
|
|
1068
|
+
isInstance = isInstance && "serverTimestamp" in value;
|
|
1069
|
+
isInstance = isInstance && "page" in value;
|
|
1070
|
+
isInstance = isInstance && "workflows" in value;
|
|
1071
|
+
return isInstance;
|
|
1072
|
+
}
|
|
1073
|
+
function WorkflowsFromJSON(json) {
|
|
1074
|
+
return WorkflowsFromJSONTyped(json);
|
|
1075
|
+
}
|
|
1076
|
+
function WorkflowsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1077
|
+
if (json === void 0 || json === null) {
|
|
1078
|
+
return json;
|
|
1079
|
+
}
|
|
1080
|
+
return {
|
|
1081
|
+
"requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
|
|
1082
|
+
"serverTimestamp": new Date(json["serverTimestamp"]),
|
|
1083
|
+
"page": PageFromJSON(json["page"]),
|
|
1084
|
+
"workflows": json["workflows"].map(WorkflowFromJSON)
|
|
1085
|
+
};
|
|
1086
|
+
}
|
|
1087
|
+
function WorkflowsToJSON(value) {
|
|
1088
|
+
if (value === void 0) {
|
|
1089
|
+
return void 0;
|
|
1090
|
+
}
|
|
1091
|
+
if (value === null) {
|
|
1092
|
+
return null;
|
|
1093
|
+
}
|
|
1094
|
+
return {
|
|
1095
|
+
"requestId": value.requestId,
|
|
1096
|
+
"serverTimestamp": value.serverTimestamp.toISOString(),
|
|
1097
|
+
"page": PageToJSON(value.page),
|
|
1098
|
+
"workflows": value.workflows.map(WorkflowToJSON)
|
|
1099
|
+
};
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
// src/models/WorkflowsRequest.ts
|
|
1103
|
+
function instanceOfWorkflowsRequest(value) {
|
|
1104
|
+
let isInstance = true;
|
|
1105
|
+
return isInstance;
|
|
1106
|
+
}
|
|
1107
|
+
function WorkflowsRequestFromJSON(json) {
|
|
1108
|
+
return WorkflowsRequestFromJSONTyped(json);
|
|
1109
|
+
}
|
|
1110
|
+
function WorkflowsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1111
|
+
if (json === void 0 || json === null) {
|
|
1112
|
+
return json;
|
|
1113
|
+
}
|
|
1114
|
+
return {
|
|
1115
|
+
"pageNumber": !exists(json, "pageNumber") ? void 0 : json["pageNumber"],
|
|
1116
|
+
"pageSize": !exists(json, "pageSize") ? void 0 : json["pageSize"],
|
|
1117
|
+
"searchQueries": !exists(json, "searchQueries") ? void 0 : json["searchQueries"].map(SearchQueryFromJSON),
|
|
1118
|
+
"businessIds": !exists(json, "businessIds") ? void 0 : json["businessIds"],
|
|
1119
|
+
"sort": !exists(json, "sort") ? void 0 : json["sort"],
|
|
1120
|
+
"sortAscending": !exists(json, "sortAscending") ? void 0 : json["sortAscending"],
|
|
1121
|
+
"mode": !exists(json, "mode") ? void 0 : WorkflowRetrieveModeFromJSON(json["mode"])
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1124
|
+
function WorkflowsRequestToJSON(value) {
|
|
1125
|
+
if (value === void 0) {
|
|
1126
|
+
return void 0;
|
|
1127
|
+
}
|
|
1128
|
+
if (value === null) {
|
|
1129
|
+
return null;
|
|
1130
|
+
}
|
|
1131
|
+
return {
|
|
1132
|
+
"pageNumber": value.pageNumber,
|
|
1133
|
+
"pageSize": value.pageSize,
|
|
1134
|
+
"searchQueries": value.searchQueries === void 0 ? void 0 : value.searchQueries.map(SearchQueryToJSON),
|
|
1135
|
+
"businessIds": value.businessIds,
|
|
1136
|
+
"sort": value.sort,
|
|
1137
|
+
"sortAscending": value.sortAscending,
|
|
1138
|
+
"mode": WorkflowRetrieveModeToJSON(value.mode)
|
|
1139
|
+
};
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
// src/models/WorkflowsUpdateRequest.ts
|
|
1143
|
+
function instanceOfWorkflowsUpdateRequest(value) {
|
|
1144
|
+
let isInstance = true;
|
|
1145
|
+
isInstance = isInstance && "size" in value;
|
|
1146
|
+
isInstance = isInstance && "knownWorkflowsIds" in value;
|
|
1147
|
+
return isInstance;
|
|
1148
|
+
}
|
|
1149
|
+
function WorkflowsUpdateRequestFromJSON(json) {
|
|
1150
|
+
return WorkflowsUpdateRequestFromJSONTyped(json);
|
|
1151
|
+
}
|
|
1152
|
+
function WorkflowsUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1153
|
+
if (json === void 0 || json === null) {
|
|
1154
|
+
return json;
|
|
1155
|
+
}
|
|
1156
|
+
return {
|
|
1157
|
+
"size": json["size"],
|
|
1158
|
+
"knownWorkflowsIds": json["knownWorkflowsIds"],
|
|
1159
|
+
"searchQueries": !exists(json, "searchQueries") ? void 0 : json["searchQueries"].map(SearchQueryFromJSON),
|
|
1160
|
+
"sort": !exists(json, "sort") ? void 0 : json["sort"],
|
|
1161
|
+
"sortAscending": !exists(json, "sortAscending") ? void 0 : json["sortAscending"],
|
|
1162
|
+
"mode": !exists(json, "mode") ? void 0 : WorkflowRetrieveModeFromJSON(json["mode"])
|
|
1163
|
+
};
|
|
1164
|
+
}
|
|
1165
|
+
function WorkflowsUpdateRequestToJSON(value) {
|
|
1166
|
+
if (value === void 0) {
|
|
1167
|
+
return void 0;
|
|
1168
|
+
}
|
|
1169
|
+
if (value === null) {
|
|
1170
|
+
return null;
|
|
1171
|
+
}
|
|
1172
|
+
return {
|
|
1173
|
+
"size": value.size,
|
|
1174
|
+
"knownWorkflowsIds": value.knownWorkflowsIds,
|
|
1175
|
+
"searchQueries": value.searchQueries === void 0 ? void 0 : value.searchQueries.map(SearchQueryToJSON),
|
|
1176
|
+
"sort": value.sort,
|
|
1177
|
+
"sortAscending": value.sortAscending,
|
|
1178
|
+
"mode": WorkflowRetrieveModeToJSON(value.mode)
|
|
1179
|
+
};
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
// src/apis/OfficialTasklistApi.ts
|
|
1183
|
+
var OfficialTasklistApi = class extends BaseAPI {
|
|
1184
|
+
/**
|
|
1185
|
+
* assign or unassign a task to a user
|
|
1186
|
+
*/
|
|
1187
|
+
async assignTaskRaw(requestParameters, initOverrides) {
|
|
1188
|
+
if (requestParameters.userTaskId === null || requestParameters.userTaskId === void 0) {
|
|
1189
|
+
throw new RequiredError("userTaskId", "Required parameter requestParameters.userTaskId was null or undefined when calling assignTask.");
|
|
1190
|
+
}
|
|
1191
|
+
const queryParameters = {};
|
|
1192
|
+
if (requestParameters.unassign !== void 0) {
|
|
1193
|
+
queryParameters["unassign"] = requestParameters.unassign;
|
|
1194
|
+
}
|
|
1195
|
+
if (requestParameters.userId !== void 0) {
|
|
1196
|
+
queryParameters["userId"] = requestParameters.userId;
|
|
1197
|
+
}
|
|
1198
|
+
const headerParameters = {};
|
|
1199
|
+
const response = await this.request({
|
|
1200
|
+
path: `/usertask/{userTaskId}/assign`.replace(`{${"userTaskId"}}`, encodeURIComponent(String(requestParameters.userTaskId))),
|
|
1201
|
+
method: "PATCH",
|
|
1202
|
+
headers: headerParameters,
|
|
1203
|
+
query: queryParameters
|
|
1204
|
+
}, initOverrides);
|
|
1205
|
+
return new VoidApiResponse(response);
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* assign or unassign a task to a user
|
|
1209
|
+
*/
|
|
1210
|
+
async assignTask(requestParameters, initOverrides) {
|
|
1211
|
+
await this.assignTaskRaw(requestParameters, initOverrides);
|
|
1212
|
+
}
|
|
1213
|
+
/**
|
|
1214
|
+
* assign or unassign tasks to a user
|
|
1215
|
+
*/
|
|
1216
|
+
async assignTasksRaw(requestParameters, initOverrides) {
|
|
1217
|
+
if (requestParameters.userTaskIds === null || requestParameters.userTaskIds === void 0) {
|
|
1218
|
+
throw new RequiredError("userTaskIds", "Required parameter requestParameters.userTaskIds was null or undefined when calling assignTasks.");
|
|
1219
|
+
}
|
|
1220
|
+
const queryParameters = {};
|
|
1221
|
+
if (requestParameters.unassign !== void 0) {
|
|
1222
|
+
queryParameters["unassign"] = requestParameters.unassign;
|
|
1223
|
+
}
|
|
1224
|
+
if (requestParameters.userId !== void 0) {
|
|
1225
|
+
queryParameters["userId"] = requestParameters.userId;
|
|
1226
|
+
}
|
|
1227
|
+
const headerParameters = {};
|
|
1228
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1229
|
+
const response = await this.request({
|
|
1230
|
+
path: `/usertask/assign`,
|
|
1231
|
+
method: "PATCH",
|
|
1232
|
+
headers: headerParameters,
|
|
1233
|
+
query: queryParameters,
|
|
1234
|
+
body: UserTaskIdsToJSON(requestParameters.userTaskIds)
|
|
1235
|
+
}, initOverrides);
|
|
1236
|
+
return new VoidApiResponse(response);
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* assign or unassign tasks to a user
|
|
1240
|
+
*/
|
|
1241
|
+
async assignTasks(requestParameters, initOverrides) {
|
|
1242
|
+
await this.assignTasksRaw(requestParameters, initOverrides);
|
|
1243
|
+
}
|
|
1244
|
+
/**
|
|
1245
|
+
* claim or unclaim a task to the current user
|
|
1246
|
+
*/
|
|
1247
|
+
async claimTaskRaw(requestParameters, initOverrides) {
|
|
1248
|
+
if (requestParameters.userTaskId === null || requestParameters.userTaskId === void 0) {
|
|
1249
|
+
throw new RequiredError("userTaskId", "Required parameter requestParameters.userTaskId was null or undefined when calling claimTask.");
|
|
1250
|
+
}
|
|
1251
|
+
const queryParameters = {};
|
|
1252
|
+
if (requestParameters.unclaim !== void 0) {
|
|
1253
|
+
queryParameters["unclaim"] = requestParameters.unclaim;
|
|
1254
|
+
}
|
|
1255
|
+
const headerParameters = {};
|
|
1256
|
+
const response = await this.request({
|
|
1257
|
+
path: `/usertask/{userTaskId}/claim`.replace(`{${"userTaskId"}}`, encodeURIComponent(String(requestParameters.userTaskId))),
|
|
1258
|
+
method: "PATCH",
|
|
1259
|
+
headers: headerParameters,
|
|
1260
|
+
query: queryParameters
|
|
1261
|
+
}, initOverrides);
|
|
1262
|
+
return new VoidApiResponse(response);
|
|
1263
|
+
}
|
|
1264
|
+
/**
|
|
1265
|
+
* claim or unclaim a task to the current user
|
|
1266
|
+
*/
|
|
1267
|
+
async claimTask(requestParameters, initOverrides) {
|
|
1268
|
+
await this.claimTaskRaw(requestParameters, initOverrides);
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* claim or unclaim tasks to the current user
|
|
1272
|
+
*/
|
|
1273
|
+
async claimTasksRaw(requestParameters, initOverrides) {
|
|
1274
|
+
if (requestParameters.userTaskIds === null || requestParameters.userTaskIds === void 0) {
|
|
1275
|
+
throw new RequiredError("userTaskIds", "Required parameter requestParameters.userTaskIds was null or undefined when calling claimTasks.");
|
|
1276
|
+
}
|
|
1277
|
+
const queryParameters = {};
|
|
1278
|
+
if (requestParameters.unclaim !== void 0) {
|
|
1279
|
+
queryParameters["unclaim"] = requestParameters.unclaim;
|
|
1280
|
+
}
|
|
1281
|
+
const headerParameters = {};
|
|
1282
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1283
|
+
const response = await this.request({
|
|
1284
|
+
path: `/usertask/claim`,
|
|
1285
|
+
method: "PATCH",
|
|
1286
|
+
headers: headerParameters,
|
|
1287
|
+
query: queryParameters,
|
|
1288
|
+
body: UserTaskIdsToJSON(requestParameters.userTaskIds)
|
|
1289
|
+
}, initOverrides);
|
|
1290
|
+
return new VoidApiResponse(response);
|
|
1291
|
+
}
|
|
1292
|
+
/**
|
|
1293
|
+
* claim or unclaim tasks to the current user
|
|
1294
|
+
*/
|
|
1295
|
+
async claimTasks(requestParameters, initOverrides) {
|
|
1296
|
+
await this.claimTasksRaw(requestParameters, initOverrides);
|
|
1297
|
+
}
|
|
1298
|
+
/**
|
|
1299
|
+
* Find users
|
|
1300
|
+
*/
|
|
1301
|
+
async findUsersRaw(requestParameters, initOverrides) {
|
|
1302
|
+
const queryParameters = {};
|
|
1303
|
+
if (requestParameters.query !== void 0) {
|
|
1304
|
+
queryParameters["query"] = requestParameters.query;
|
|
1305
|
+
}
|
|
1306
|
+
if (requestParameters.limit !== void 0) {
|
|
1307
|
+
queryParameters["limit"] = requestParameters.limit;
|
|
1308
|
+
}
|
|
1309
|
+
const headerParameters = {};
|
|
1310
|
+
const response = await this.request({
|
|
1311
|
+
path: `/user`,
|
|
1312
|
+
method: "POST",
|
|
1313
|
+
headers: headerParameters,
|
|
1314
|
+
query: queryParameters
|
|
1315
|
+
}, initOverrides);
|
|
1316
|
+
return new JSONApiResponse(response, (jsonValue) => UserSearchResultFromJSON(jsonValue));
|
|
1317
|
+
}
|
|
1318
|
+
/**
|
|
1319
|
+
* Find users
|
|
1320
|
+
*/
|
|
1321
|
+
async findUsers(requestParameters = {}, initOverrides) {
|
|
1322
|
+
const response = await this.findUsersRaw(requestParameters, initOverrides);
|
|
1323
|
+
return await response.value();
|
|
1324
|
+
}
|
|
1325
|
+
/**
|
|
1326
|
+
* Fetch data of one single User task
|
|
1327
|
+
*/
|
|
1328
|
+
async getUserTaskRaw(requestParameters, initOverrides) {
|
|
1329
|
+
if (requestParameters.userTaskId === null || requestParameters.userTaskId === void 0) {
|
|
1330
|
+
throw new RequiredError("userTaskId", "Required parameter requestParameters.userTaskId was null or undefined when calling getUserTask.");
|
|
1331
|
+
}
|
|
1332
|
+
const queryParameters = {};
|
|
1333
|
+
if (requestParameters.markAsRead !== void 0) {
|
|
1334
|
+
queryParameters["markAsRead"] = requestParameters.markAsRead;
|
|
1335
|
+
}
|
|
1336
|
+
const headerParameters = {};
|
|
1337
|
+
const response = await this.request({
|
|
1338
|
+
path: `/usertask/{userTaskId}`.replace(`{${"userTaskId"}}`, encodeURIComponent(String(requestParameters.userTaskId))),
|
|
1339
|
+
method: "GET",
|
|
1340
|
+
headers: headerParameters,
|
|
1341
|
+
query: queryParameters
|
|
1342
|
+
}, initOverrides);
|
|
1343
|
+
return new JSONApiResponse(response, (jsonValue) => UserTaskFromJSON(jsonValue));
|
|
1344
|
+
}
|
|
1345
|
+
/**
|
|
1346
|
+
* Fetch data of one single User task
|
|
1347
|
+
*/
|
|
1348
|
+
async getUserTask(requestParameters, initOverrides) {
|
|
1349
|
+
const response = await this.getUserTaskRaw(requestParameters, initOverrides);
|
|
1350
|
+
return await response.value();
|
|
1351
|
+
}
|
|
1352
|
+
/**
|
|
1353
|
+
* Kwic results over user tasks
|
|
1354
|
+
*/
|
|
1355
|
+
async getUserTaskKwicResultsRaw(requestParameters, initOverrides) {
|
|
1356
|
+
if (requestParameters.kwicRequest === null || requestParameters.kwicRequest === void 0) {
|
|
1357
|
+
throw new RequiredError("kwicRequest", "Required parameter requestParameters.kwicRequest was null or undefined when calling getUserTaskKwicResults.");
|
|
1358
|
+
}
|
|
1359
|
+
const queryParameters = {};
|
|
1360
|
+
if (requestParameters.initialTimestamp !== void 0) {
|
|
1361
|
+
queryParameters["initialTimestamp"] = requestParameters.initialTimestamp.toISOString();
|
|
1362
|
+
}
|
|
1363
|
+
if (requestParameters.path !== void 0) {
|
|
1364
|
+
queryParameters["path"] = requestParameters.path;
|
|
1365
|
+
}
|
|
1366
|
+
if (requestParameters.query !== void 0) {
|
|
1367
|
+
queryParameters["query"] = requestParameters.query;
|
|
1368
|
+
}
|
|
1369
|
+
const headerParameters = {};
|
|
1370
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1371
|
+
const response = await this.request({
|
|
1372
|
+
path: `/usertask`,
|
|
1373
|
+
method: "OPTIONS",
|
|
1374
|
+
headers: headerParameters,
|
|
1375
|
+
query: queryParameters,
|
|
1376
|
+
body: KwicRequestToJSON(requestParameters.kwicRequest)
|
|
1377
|
+
}, initOverrides);
|
|
1378
|
+
return new JSONApiResponse(response, (jsonValue) => KwicResultsFromJSON(jsonValue));
|
|
1379
|
+
}
|
|
1380
|
+
/**
|
|
1381
|
+
* Kwic results over user tasks
|
|
1382
|
+
*/
|
|
1383
|
+
async getUserTaskKwicResults(requestParameters, initOverrides) {
|
|
1384
|
+
const response = await this.getUserTaskKwicResultsRaw(requestParameters, initOverrides);
|
|
1385
|
+
return await response.value();
|
|
1386
|
+
}
|
|
1387
|
+
/**
|
|
1388
|
+
* User tasks to be shown in a list view
|
|
1389
|
+
*/
|
|
1390
|
+
async getUserTasksRaw(requestParameters, initOverrides) {
|
|
1391
|
+
if (requestParameters.userTasksRequest === null || requestParameters.userTasksRequest === void 0) {
|
|
1392
|
+
throw new RequiredError("userTasksRequest", "Required parameter requestParameters.userTasksRequest was null or undefined when calling getUserTasks.");
|
|
1393
|
+
}
|
|
1394
|
+
const queryParameters = {};
|
|
1395
|
+
if (requestParameters.initialTimestamp !== void 0) {
|
|
1396
|
+
queryParameters["initialTimestamp"] = requestParameters.initialTimestamp.toISOString();
|
|
1397
|
+
}
|
|
1398
|
+
const headerParameters = {};
|
|
1399
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1400
|
+
const response = await this.request({
|
|
1401
|
+
path: `/usertask`,
|
|
1402
|
+
method: "POST",
|
|
1403
|
+
headers: headerParameters,
|
|
1404
|
+
query: queryParameters,
|
|
1405
|
+
body: UserTasksRequestToJSON(requestParameters.userTasksRequest)
|
|
1406
|
+
}, initOverrides);
|
|
1407
|
+
return new JSONApiResponse(response, (jsonValue) => UserTasksFromJSON(jsonValue));
|
|
1408
|
+
}
|
|
1409
|
+
/**
|
|
1410
|
+
* User tasks to be shown in a list view
|
|
1411
|
+
*/
|
|
1412
|
+
async getUserTasks(requestParameters, initOverrides) {
|
|
1413
|
+
const response = await this.getUserTasksRaw(requestParameters, initOverrides);
|
|
1414
|
+
return await response.value();
|
|
1415
|
+
}
|
|
1416
|
+
/**
|
|
1417
|
+
* Updated list of usertasks
|
|
1418
|
+
*/
|
|
1419
|
+
async getUserTasksUpdateRaw(requestParameters, initOverrides) {
|
|
1420
|
+
if (requestParameters.userTasksUpdateRequest === null || requestParameters.userTasksUpdateRequest === void 0) {
|
|
1421
|
+
throw new RequiredError("userTasksUpdateRequest", "Required parameter requestParameters.userTasksUpdateRequest was null or undefined when calling getUserTasksUpdate.");
|
|
1422
|
+
}
|
|
1423
|
+
const queryParameters = {};
|
|
1424
|
+
if (requestParameters.initialTimestamp !== void 0) {
|
|
1425
|
+
queryParameters["initialTimestamp"] = requestParameters.initialTimestamp.toISOString();
|
|
1426
|
+
}
|
|
1427
|
+
const headerParameters = {};
|
|
1428
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1429
|
+
const response = await this.request({
|
|
1430
|
+
path: `/usertask`,
|
|
1431
|
+
method: "PUT",
|
|
1432
|
+
headers: headerParameters,
|
|
1433
|
+
query: queryParameters,
|
|
1434
|
+
body: UserTasksUpdateRequestToJSON(requestParameters.userTasksUpdateRequest)
|
|
1435
|
+
}, initOverrides);
|
|
1436
|
+
return new JSONApiResponse(response, (jsonValue) => UserTasksFromJSON(jsonValue));
|
|
1437
|
+
}
|
|
1438
|
+
/**
|
|
1439
|
+
* Updated list of usertasks
|
|
1440
|
+
*/
|
|
1441
|
+
async getUserTasksUpdate(requestParameters, initOverrides) {
|
|
1442
|
+
const response = await this.getUserTasksUpdateRaw(requestParameters, initOverrides);
|
|
1443
|
+
return await response.value();
|
|
1444
|
+
}
|
|
1445
|
+
/**
|
|
1446
|
+
* mark a task as read or unread
|
|
1447
|
+
*/
|
|
1448
|
+
async markTaskAsReadRaw(requestParameters, initOverrides) {
|
|
1449
|
+
if (requestParameters.userTaskId === null || requestParameters.userTaskId === void 0) {
|
|
1450
|
+
throw new RequiredError("userTaskId", "Required parameter requestParameters.userTaskId was null or undefined when calling markTaskAsRead.");
|
|
1451
|
+
}
|
|
1452
|
+
const queryParameters = {};
|
|
1453
|
+
if (requestParameters.unread !== void 0) {
|
|
1454
|
+
queryParameters["unread"] = requestParameters.unread;
|
|
1455
|
+
}
|
|
1456
|
+
const headerParameters = {};
|
|
1457
|
+
const response = await this.request({
|
|
1458
|
+
path: `/usertask/{userTaskId}/mark-as-read`.replace(`{${"userTaskId"}}`, encodeURIComponent(String(requestParameters.userTaskId))),
|
|
1459
|
+
method: "PATCH",
|
|
1460
|
+
headers: headerParameters,
|
|
1461
|
+
query: queryParameters
|
|
1462
|
+
}, initOverrides);
|
|
1463
|
+
return new VoidApiResponse(response);
|
|
1464
|
+
}
|
|
1465
|
+
/**
|
|
1466
|
+
* mark a task as read or unread
|
|
1467
|
+
*/
|
|
1468
|
+
async markTaskAsRead(requestParameters, initOverrides) {
|
|
1469
|
+
await this.markTaskAsReadRaw(requestParameters, initOverrides);
|
|
1470
|
+
}
|
|
1471
|
+
/**
|
|
1472
|
+
* mark tasks as read or unread
|
|
1473
|
+
*/
|
|
1474
|
+
async markTasksAsReadRaw(requestParameters, initOverrides) {
|
|
1475
|
+
if (requestParameters.userTaskIds === null || requestParameters.userTaskIds === void 0) {
|
|
1476
|
+
throw new RequiredError("userTaskIds", "Required parameter requestParameters.userTaskIds was null or undefined when calling markTasksAsRead.");
|
|
1477
|
+
}
|
|
1478
|
+
const queryParameters = {};
|
|
1479
|
+
if (requestParameters.unread !== void 0) {
|
|
1480
|
+
queryParameters["unread"] = requestParameters.unread;
|
|
1481
|
+
}
|
|
1482
|
+
const headerParameters = {};
|
|
1483
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1484
|
+
const response = await this.request({
|
|
1485
|
+
path: `/usertask/mark-as-read`,
|
|
1486
|
+
method: "PATCH",
|
|
1487
|
+
headers: headerParameters,
|
|
1488
|
+
query: queryParameters,
|
|
1489
|
+
body: UserTaskIdsToJSON(requestParameters.userTaskIds)
|
|
1490
|
+
}, initOverrides);
|
|
1491
|
+
return new VoidApiResponse(response);
|
|
1492
|
+
}
|
|
1493
|
+
/**
|
|
1494
|
+
* mark tasks as read or unread
|
|
1495
|
+
*/
|
|
1496
|
+
async markTasksAsRead(requestParameters, initOverrides) {
|
|
1497
|
+
await this.markTasksAsReadRaw(requestParameters, initOverrides);
|
|
1498
|
+
}
|
|
1499
|
+
/**
|
|
1500
|
+
* set, change or clear the follow-up date of a task
|
|
1501
|
+
*/
|
|
1502
|
+
async setFollowUpDateRaw(requestParameters, initOverrides) {
|
|
1503
|
+
if (requestParameters.userTaskId === null || requestParameters.userTaskId === void 0) {
|
|
1504
|
+
throw new RequiredError("userTaskId", "Required parameter requestParameters.userTaskId was null or undefined when calling setFollowUpDate.");
|
|
1505
|
+
}
|
|
1506
|
+
const queryParameters = {};
|
|
1507
|
+
const headerParameters = {};
|
|
1508
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1509
|
+
const response = await this.request({
|
|
1510
|
+
path: `/usertask/{userTaskId}/follow-up-date`.replace(`{${"userTaskId"}}`, encodeURIComponent(String(requestParameters.userTaskId))),
|
|
1511
|
+
method: "PATCH",
|
|
1512
|
+
headers: headerParameters,
|
|
1513
|
+
query: queryParameters,
|
|
1514
|
+
body: FollowUpDateRequestToJSON(requestParameters.followUpDateRequest)
|
|
1515
|
+
}, initOverrides);
|
|
1516
|
+
return new JSONApiResponse(response, (jsonValue) => UserTaskFromJSON(jsonValue));
|
|
1517
|
+
}
|
|
1518
|
+
/**
|
|
1519
|
+
* set, change or clear the follow-up date of a task
|
|
1520
|
+
*/
|
|
1521
|
+
async setFollowUpDate(requestParameters, initOverrides) {
|
|
1522
|
+
const response = await this.setFollowUpDateRaw(requestParameters, initOverrides);
|
|
1523
|
+
return await response.value();
|
|
1524
|
+
}
|
|
1525
|
+
};
|
|
1526
|
+
|
|
1527
|
+
// src/apis/OfficialWorkflowModulesApi.ts
|
|
1528
|
+
var OfficialWorkflowModulesApi = class extends BaseAPI {
|
|
1529
|
+
/**
|
|
1530
|
+
* Fetch permitted workflow module
|
|
1531
|
+
*/
|
|
1532
|
+
async getWorkflowModuleRaw(requestParameters, initOverrides) {
|
|
1533
|
+
if (requestParameters.workflowModuleId === null || requestParameters.workflowModuleId === void 0) {
|
|
1534
|
+
throw new RequiredError("workflowModuleId", "Required parameter requestParameters.workflowModuleId was null or undefined when calling getWorkflowModule.");
|
|
1535
|
+
}
|
|
1536
|
+
const queryParameters = {};
|
|
1537
|
+
const headerParameters = {};
|
|
1538
|
+
const response = await this.request({
|
|
1539
|
+
path: `/workflow-module/{workflowModuleId}`.replace(`{${"workflowModuleId"}}`, encodeURIComponent(String(requestParameters.workflowModuleId))),
|
|
1540
|
+
method: "GET",
|
|
1541
|
+
headers: headerParameters,
|
|
1542
|
+
query: queryParameters
|
|
1543
|
+
}, initOverrides);
|
|
1544
|
+
return new JSONApiResponse(response, (jsonValue) => WorkflowModuleFromJSON(jsonValue));
|
|
1545
|
+
}
|
|
1546
|
+
/**
|
|
1547
|
+
* Fetch permitted workflow module
|
|
1548
|
+
*/
|
|
1549
|
+
async getWorkflowModule(requestParameters, initOverrides) {
|
|
1550
|
+
const response = await this.getWorkflowModuleRaw(requestParameters, initOverrides);
|
|
1551
|
+
return await response.value();
|
|
1552
|
+
}
|
|
1553
|
+
/**
|
|
1554
|
+
* Fetch permitted workflow modules
|
|
1555
|
+
*/
|
|
1556
|
+
async getWorkflowModulesRaw(initOverrides) {
|
|
1557
|
+
const queryParameters = {};
|
|
1558
|
+
const headerParameters = {};
|
|
1559
|
+
const response = await this.request({
|
|
1560
|
+
path: `/workflow-module`,
|
|
1561
|
+
method: "GET",
|
|
1562
|
+
headers: headerParameters,
|
|
1563
|
+
query: queryParameters
|
|
1564
|
+
}, initOverrides);
|
|
1565
|
+
return new JSONApiResponse(response, (jsonValue) => WorkflowModulesFromJSON(jsonValue));
|
|
1566
|
+
}
|
|
1567
|
+
/**
|
|
1568
|
+
* Fetch permitted workflow modules
|
|
1569
|
+
*/
|
|
1570
|
+
async getWorkflowModules(initOverrides) {
|
|
1571
|
+
const response = await this.getWorkflowModulesRaw(initOverrides);
|
|
1572
|
+
return await response.value();
|
|
1573
|
+
}
|
|
1574
|
+
};
|
|
1575
|
+
|
|
1576
|
+
// src/apis/OfficialWorkflowlistApi.ts
|
|
1577
|
+
var OfficialWorkflowlistApi = class extends BaseAPI {
|
|
1578
|
+
/**
|
|
1579
|
+
* Kwic results over workflow items
|
|
1580
|
+
*/
|
|
1581
|
+
async getKwicResultsRaw(requestParameters, initOverrides) {
|
|
1582
|
+
if (requestParameters.kwicRequest === null || requestParameters.kwicRequest === void 0) {
|
|
1583
|
+
throw new RequiredError("kwicRequest", "Required parameter requestParameters.kwicRequest was null or undefined when calling getKwicResults.");
|
|
1584
|
+
}
|
|
1585
|
+
const queryParameters = {};
|
|
1586
|
+
if (requestParameters.initialTimestamp !== void 0) {
|
|
1587
|
+
queryParameters["initialTimestamp"] = requestParameters.initialTimestamp.toISOString();
|
|
1588
|
+
}
|
|
1589
|
+
if (requestParameters.path !== void 0) {
|
|
1590
|
+
queryParameters["path"] = requestParameters.path;
|
|
1591
|
+
}
|
|
1592
|
+
if (requestParameters.query !== void 0) {
|
|
1593
|
+
queryParameters["query"] = requestParameters.query;
|
|
1594
|
+
}
|
|
1595
|
+
const headerParameters = {};
|
|
1596
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1597
|
+
const response = await this.request({
|
|
1598
|
+
path: `/workflow`,
|
|
1599
|
+
method: "OPTIONS",
|
|
1600
|
+
headers: headerParameters,
|
|
1601
|
+
query: queryParameters,
|
|
1602
|
+
body: KwicRequestToJSON(requestParameters.kwicRequest)
|
|
1603
|
+
}, initOverrides);
|
|
1604
|
+
return new JSONApiResponse(response, (jsonValue) => KwicResultsFromJSON(jsonValue));
|
|
1605
|
+
}
|
|
1606
|
+
/**
|
|
1607
|
+
* Kwic results over workflow items
|
|
1608
|
+
*/
|
|
1609
|
+
async getKwicResults(requestParameters, initOverrides) {
|
|
1610
|
+
const response = await this.getKwicResultsRaw(requestParameters, initOverrides);
|
|
1611
|
+
return await response.value();
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
* Fetch usertasks for the workflow
|
|
1615
|
+
*/
|
|
1616
|
+
async getUserTasksOfWorkflowRaw(requestParameters, initOverrides) {
|
|
1617
|
+
if (requestParameters.workflowId === null || requestParameters.workflowId === void 0) {
|
|
1618
|
+
throw new RequiredError("workflowId", "Required parameter requestParameters.workflowId was null or undefined when calling getUserTasksOfWorkflow.");
|
|
1619
|
+
}
|
|
1620
|
+
if (requestParameters.llatcup === null || requestParameters.llatcup === void 0) {
|
|
1621
|
+
throw new RequiredError("llatcup", "Required parameter requestParameters.llatcup was null or undefined when calling getUserTasksOfWorkflow.");
|
|
1622
|
+
}
|
|
1623
|
+
if (requestParameters.userTasksRequest === null || requestParameters.userTasksRequest === void 0) {
|
|
1624
|
+
throw new RequiredError("userTasksRequest", "Required parameter requestParameters.userTasksRequest was null or undefined when calling getUserTasksOfWorkflow.");
|
|
1625
|
+
}
|
|
1626
|
+
const queryParameters = {};
|
|
1627
|
+
if (requestParameters.llatcup !== void 0) {
|
|
1628
|
+
queryParameters["llatcup"] = requestParameters.llatcup;
|
|
1629
|
+
}
|
|
1630
|
+
const headerParameters = {};
|
|
1631
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1632
|
+
const response = await this.request({
|
|
1633
|
+
path: `/workflow/{workflowId}/usertasks`.replace(`{${"workflowId"}}`, encodeURIComponent(String(requestParameters.workflowId))),
|
|
1634
|
+
method: "POST",
|
|
1635
|
+
headers: headerParameters,
|
|
1636
|
+
query: queryParameters,
|
|
1637
|
+
body: UserTasksRequestToJSON(requestParameters.userTasksRequest)
|
|
1638
|
+
}, initOverrides);
|
|
1639
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(UserTaskFromJSON));
|
|
1640
|
+
}
|
|
1641
|
+
/**
|
|
1642
|
+
* Fetch usertasks for the workflow
|
|
1643
|
+
*/
|
|
1644
|
+
async getUserTasksOfWorkflow(requestParameters, initOverrides) {
|
|
1645
|
+
const response = await this.getUserTasksOfWorkflowRaw(requestParameters, initOverrides);
|
|
1646
|
+
return await response.value();
|
|
1647
|
+
}
|
|
1648
|
+
/**
|
|
1649
|
+
* Fetch data of one single workflow
|
|
1650
|
+
*/
|
|
1651
|
+
async getWorkflowRaw(requestParameters, initOverrides) {
|
|
1652
|
+
if (requestParameters.workflowId === null || requestParameters.workflowId === void 0) {
|
|
1653
|
+
throw new RequiredError("workflowId", "Required parameter requestParameters.workflowId was null or undefined when calling getWorkflow.");
|
|
1654
|
+
}
|
|
1655
|
+
const queryParameters = {};
|
|
1656
|
+
const headerParameters = {};
|
|
1657
|
+
const response = await this.request({
|
|
1658
|
+
path: `/workflow/{workflowId}`.replace(`{${"workflowId"}}`, encodeURIComponent(String(requestParameters.workflowId))),
|
|
1659
|
+
method: "GET",
|
|
1660
|
+
headers: headerParameters,
|
|
1661
|
+
query: queryParameters
|
|
1662
|
+
}, initOverrides);
|
|
1663
|
+
return new JSONApiResponse(response, (jsonValue) => WorkflowFromJSON(jsonValue));
|
|
1664
|
+
}
|
|
1665
|
+
/**
|
|
1666
|
+
* Fetch data of one single workflow
|
|
1667
|
+
*/
|
|
1668
|
+
async getWorkflow(requestParameters, initOverrides) {
|
|
1669
|
+
const response = await this.getWorkflowRaw(requestParameters, initOverrides);
|
|
1670
|
+
return await response.value();
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
* Workflows to be shown in a list view
|
|
1674
|
+
*/
|
|
1675
|
+
async getWorkflowsRaw(requestParameters, initOverrides) {
|
|
1676
|
+
if (requestParameters.workflowsRequest === null || requestParameters.workflowsRequest === void 0) {
|
|
1677
|
+
throw new RequiredError("workflowsRequest", "Required parameter requestParameters.workflowsRequest was null or undefined when calling getWorkflows.");
|
|
1678
|
+
}
|
|
1679
|
+
const queryParameters = {};
|
|
1680
|
+
if (requestParameters.requestId !== void 0) {
|
|
1681
|
+
queryParameters["requestId"] = requestParameters.requestId;
|
|
1682
|
+
}
|
|
1683
|
+
if (requestParameters.initialTimestamp !== void 0) {
|
|
1684
|
+
queryParameters["initialTimestamp"] = requestParameters.initialTimestamp.toISOString();
|
|
1685
|
+
}
|
|
1686
|
+
const headerParameters = {};
|
|
1687
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1688
|
+
const response = await this.request({
|
|
1689
|
+
path: `/workflow`,
|
|
1690
|
+
method: "POST",
|
|
1691
|
+
headers: headerParameters,
|
|
1692
|
+
query: queryParameters,
|
|
1693
|
+
body: WorkflowsRequestToJSON(requestParameters.workflowsRequest)
|
|
1694
|
+
}, initOverrides);
|
|
1695
|
+
return new JSONApiResponse(response, (jsonValue) => WorkflowsFromJSON(jsonValue));
|
|
1696
|
+
}
|
|
1697
|
+
/**
|
|
1698
|
+
* Workflows to be shown in a list view
|
|
1699
|
+
*/
|
|
1700
|
+
async getWorkflows(requestParameters, initOverrides) {
|
|
1701
|
+
const response = await this.getWorkflowsRaw(requestParameters, initOverrides);
|
|
1702
|
+
return await response.value();
|
|
1703
|
+
}
|
|
1704
|
+
/**
|
|
1705
|
+
* Updated list of workflows
|
|
1706
|
+
*/
|
|
1707
|
+
async getWorkflowsUpdateRaw(requestParameters, initOverrides) {
|
|
1708
|
+
if (requestParameters.workflowsUpdateRequest === null || requestParameters.workflowsUpdateRequest === void 0) {
|
|
1709
|
+
throw new RequiredError("workflowsUpdateRequest", "Required parameter requestParameters.workflowsUpdateRequest was null or undefined when calling getWorkflowsUpdate.");
|
|
1710
|
+
}
|
|
1711
|
+
const queryParameters = {};
|
|
1712
|
+
if (requestParameters.requestId !== void 0) {
|
|
1713
|
+
queryParameters["requestId"] = requestParameters.requestId;
|
|
1714
|
+
}
|
|
1715
|
+
if (requestParameters.initialTimestamp !== void 0) {
|
|
1716
|
+
queryParameters["initialTimestamp"] = requestParameters.initialTimestamp.toISOString();
|
|
1717
|
+
}
|
|
1718
|
+
const headerParameters = {};
|
|
1719
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1720
|
+
const response = await this.request({
|
|
1721
|
+
path: `/workflow`,
|
|
1722
|
+
method: "PUT",
|
|
1723
|
+
headers: headerParameters,
|
|
1724
|
+
query: queryParameters,
|
|
1725
|
+
body: WorkflowsUpdateRequestToJSON(requestParameters.workflowsUpdateRequest)
|
|
1726
|
+
}, initOverrides);
|
|
1727
|
+
return new JSONApiResponse(response, (jsonValue) => WorkflowsFromJSON(jsonValue));
|
|
1728
|
+
}
|
|
1729
|
+
/**
|
|
1730
|
+
* Updated list of workflows
|
|
1731
|
+
*/
|
|
1732
|
+
async getWorkflowsUpdate(requestParameters, initOverrides) {
|
|
1733
|
+
const response = await this.getWorkflowsUpdateRaw(requestParameters, initOverrides);
|
|
1734
|
+
return await response.value();
|
|
1735
|
+
}
|
|
1736
|
+
};
|
|
1737
|
+
|
|
1738
|
+
export { BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, DefaultConfig, FetchError, FollowUpDateRequestFromJSON, FollowUpDateRequestFromJSONTyped, FollowUpDateRequestToJSON, GroupFromJSON, GroupFromJSONTyped, GroupToJSON, JSONApiResponse, KwicRequestFromJSON, KwicRequestFromJSONTyped, KwicRequestToJSON, KwicResultFromJSON, KwicResultFromJSONTyped, KwicResultToJSON, KwicResultsFromJSON, KwicResultsFromJSONTyped, KwicResultsToJSON, OfficialTasklistApi, OfficialWorkflowModulesApi, OfficialWorkflowlistApi, PageFromJSON, PageFromJSONTyped, PageToJSON, PersonFromJSON, PersonFromJSONTyped, PersonToJSON, RequiredError, ResponseError, SearchQueryFromJSON, SearchQueryFromJSONTyped, SearchQueryToJSON, TextApiResponse, UiUriType, UiUriTypeFromJSON, UiUriTypeFromJSONTyped, UiUriTypeToJSON, UserSearchResultFromJSON, UserSearchResultFromJSONTyped, UserSearchResultToJSON, UserTaskEventFromJSON, UserTaskEventFromJSONTyped, UserTaskEventToJSON, UserTaskFromJSON, UserTaskFromJSONTyped, UserTaskIdsFromJSON, UserTaskIdsFromJSONTyped, UserTaskIdsToJSON, UserTaskRetrieveMode, UserTaskRetrieveModeFromJSON, UserTaskRetrieveModeFromJSONTyped, UserTaskRetrieveModeToJSON, UserTaskToJSON, UserTasksFromJSON, UserTasksFromJSONTyped, UserTasksRequestFromJSON, UserTasksRequestFromJSONTyped, UserTasksRequestToJSON, UserTasksToJSON, UserTasksUpdateRequestFromJSON, UserTasksUpdateRequestFromJSONTyped, UserTasksUpdateRequestToJSON, VoidApiResponse, WorkflowEventFromJSON, WorkflowEventFromJSONTyped, WorkflowEventToJSON, WorkflowFromJSON, WorkflowFromJSONTyped, WorkflowModuleFromJSON, WorkflowModuleFromJSONTyped, WorkflowModuleToJSON, WorkflowModulesFromJSON, WorkflowModulesFromJSONTyped, WorkflowModulesToJSON, WorkflowRetrieveMode, WorkflowRetrieveModeFromJSON, WorkflowRetrieveModeFromJSONTyped, WorkflowRetrieveModeToJSON, WorkflowToJSON, WorkflowsFromJSON, WorkflowsFromJSONTyped, WorkflowsRequestFromJSON, WorkflowsRequestFromJSONTyped, WorkflowsRequestToJSON, WorkflowsToJSON, WorkflowsUpdateRequestFromJSON, WorkflowsUpdateRequestFromJSONTyped, WorkflowsUpdateRequestToJSON, canConsumeForm, exists, instanceOfFollowUpDateRequest, instanceOfGroup, instanceOfKwicRequest, instanceOfKwicResult, instanceOfKwicResults, instanceOfPage, instanceOfPerson, instanceOfSearchQuery, instanceOfUserSearchResult, instanceOfUserTask, instanceOfUserTaskEvent, instanceOfUserTaskIds, instanceOfUserTasks, instanceOfUserTasksRequest, instanceOfUserTasksUpdateRequest, instanceOfWorkflow, instanceOfWorkflowEvent, instanceOfWorkflowModule, instanceOfWorkflowModules, instanceOfWorkflows, instanceOfWorkflowsRequest, instanceOfWorkflowsUpdateRequest, mapValues, querystring };
|
|
1739
|
+
//# sourceMappingURL=index.js.map
|
|
1740
|
+
//# sourceMappingURL=index.js.map
|