@openfilz-sdk/typescript-ee 1.9.9 → 1.9.11
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/.openapi-generator/FILES +50 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +43 -3
- package/api/esign-api.ts +9 -9
- package/api/smart-filing-api.ts +75 -0
- package/api/workflows-api.ts +1234 -0
- package/api.ts +1 -0
- package/dist/api/esign-api.d.ts +4 -4
- package/dist/api/esign-api.js +9 -9
- package/dist/api/smart-filing-api.d.ts +33 -0
- package/dist/api/smart-filing-api.js +70 -0
- package/dist/api/workflows-api.d.ts +565 -0
- package/dist/api/workflows-api.js +1163 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/esm/api/esign-api.d.ts +4 -4
- package/dist/esm/api/esign-api.js +9 -9
- package/dist/esm/api/smart-filing-api.d.ts +33 -0
- package/dist/esm/api/smart-filing-api.js +70 -0
- package/dist/esm/api/workflows-api.d.ts +565 -0
- package/dist/esm/api/workflows-api.js +1156 -0
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/audit-log-details.d.ts +12 -0
- package/dist/esm/models/auto-file-jobs-request.d.ts +14 -0
- package/dist/esm/models/auto-file-jobs-request.js +14 -0
- package/dist/esm/models/cancel-instance-request.d.ts +14 -0
- package/dist/esm/models/cancel-instance-request.js +14 -0
- package/dist/esm/models/complete-task-request.d.ts +15 -0
- package/dist/esm/models/complete-task-request.js +14 -0
- package/dist/esm/models/enriched-audit-log-details.d.ts +7 -1
- package/dist/esm/models/enriched-audit-log.d.ts +9 -0
- package/dist/esm/models/enriched-audit-log.js +9 -0
- package/dist/esm/models/index.d.ts +24 -0
- package/dist/esm/models/index.js +24 -0
- package/dist/esm/models/my-tasks-count-dto.d.ts +15 -0
- package/dist/esm/models/my-tasks-count-dto.js +14 -0
- package/dist/esm/models/notification-dto.d.ts +4 -0
- package/dist/esm/models/notification-dto.js +4 -0
- package/dist/esm/models/per-definition.d.ts +18 -0
- package/dist/esm/models/per-definition.js +14 -0
- package/dist/esm/models/reassign-task-request.d.ts +15 -0
- package/dist/esm/models/reassign-task-request.js +14 -0
- package/dist/esm/models/save-workflow-definition-request.d.ts +19 -0
- package/dist/esm/models/save-workflow-definition-request.js +14 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +9 -0
- package/dist/esm/models/search-by-audit-log-request.js +9 -0
- package/dist/esm/models/settings.d.ts +3 -0
- package/dist/esm/models/start-workflow-request.d.ts +20 -0
- package/dist/esm/models/start-workflow-request.js +14 -0
- package/dist/esm/models/workflow-action-failure-audit.d.ts +17 -0
- package/dist/esm/models/workflow-action-failure-audit.js +14 -0
- package/dist/esm/models/workflow-action.d.ts +25 -0
- package/dist/esm/models/workflow-action.js +18 -0
- package/dist/esm/models/workflow-assignment.d.ts +24 -0
- package/dist/esm/models/workflow-assignment.js +19 -0
- package/dist/esm/models/workflow-audit.d.ts +17 -0
- package/dist/esm/models/workflow-audit.js +14 -0
- package/dist/esm/models/workflow-definition-dto.d.ts +26 -0
- package/dist/esm/models/workflow-definition-dto.js +14 -0
- package/dist/esm/models/workflow-event-dto.d.ts +35 -0
- package/dist/esm/models/workflow-event-dto.js +23 -0
- package/dist/esm/models/workflow-instance-detail-dto.d.ts +23 -0
- package/dist/esm/models/workflow-instance-detail-dto.js +14 -0
- package/dist/esm/models/workflow-instance-dto.d.ts +35 -0
- package/dist/esm/models/workflow-instance-dto.js +18 -0
- package/dist/esm/models/workflow-instance-page.d.ts +18 -0
- package/dist/esm/models/workflow-instance-page.js +14 -0
- package/dist/esm/models/workflow-problem.d.ts +17 -0
- package/dist/esm/models/workflow-problem.js +14 -0
- package/dist/esm/models/workflow-spec.d.ts +15 -0
- package/dist/esm/models/workflow-spec.js +14 -0
- package/dist/esm/models/workflow-state.d.ts +31 -0
- package/dist/esm/models/workflow-state.js +18 -0
- package/dist/esm/models/workflow-summary-dto.d.ts +19 -0
- package/dist/esm/models/workflow-summary-dto.js +14 -0
- package/dist/esm/models/workflow-task-dto.d.ts +44 -0
- package/dist/esm/models/workflow-task-dto.js +18 -0
- package/dist/esm/models/workflow-transition.d.ts +25 -0
- package/dist/esm/models/workflow-transition.js +19 -0
- package/dist/esm/models/workflow-validation-result.d.ts +16 -0
- package/dist/esm/models/workflow-validation-result.js +14 -0
- package/dist/models/audit-log-details.d.ts +12 -0
- package/dist/models/auto-file-jobs-request.d.ts +14 -0
- package/dist/models/auto-file-jobs-request.js +15 -0
- package/dist/models/cancel-instance-request.d.ts +14 -0
- package/dist/models/cancel-instance-request.js +15 -0
- package/dist/models/complete-task-request.d.ts +15 -0
- package/dist/models/complete-task-request.js +15 -0
- package/dist/models/enriched-audit-log-details.d.ts +7 -1
- package/dist/models/enriched-audit-log.d.ts +9 -0
- package/dist/models/enriched-audit-log.js +9 -0
- package/dist/models/index.d.ts +24 -0
- package/dist/models/index.js +24 -0
- package/dist/models/my-tasks-count-dto.d.ts +15 -0
- package/dist/models/my-tasks-count-dto.js +15 -0
- package/dist/models/notification-dto.d.ts +4 -0
- package/dist/models/notification-dto.js +4 -0
- package/dist/models/per-definition.d.ts +18 -0
- package/dist/models/per-definition.js +15 -0
- package/dist/models/reassign-task-request.d.ts +15 -0
- package/dist/models/reassign-task-request.js +15 -0
- package/dist/models/save-workflow-definition-request.d.ts +19 -0
- package/dist/models/save-workflow-definition-request.js +15 -0
- package/dist/models/search-by-audit-log-request.d.ts +9 -0
- package/dist/models/search-by-audit-log-request.js +9 -0
- package/dist/models/settings.d.ts +3 -0
- package/dist/models/start-workflow-request.d.ts +20 -0
- package/dist/models/start-workflow-request.js +15 -0
- package/dist/models/workflow-action-failure-audit.d.ts +17 -0
- package/dist/models/workflow-action-failure-audit.js +15 -0
- package/dist/models/workflow-action.d.ts +25 -0
- package/dist/models/workflow-action.js +21 -0
- package/dist/models/workflow-assignment.d.ts +24 -0
- package/dist/models/workflow-assignment.js +22 -0
- package/dist/models/workflow-audit.d.ts +17 -0
- package/dist/models/workflow-audit.js +15 -0
- package/dist/models/workflow-definition-dto.d.ts +26 -0
- package/dist/models/workflow-definition-dto.js +15 -0
- package/dist/models/workflow-event-dto.d.ts +35 -0
- package/dist/models/workflow-event-dto.js +26 -0
- package/dist/models/workflow-instance-detail-dto.d.ts +23 -0
- package/dist/models/workflow-instance-detail-dto.js +15 -0
- package/dist/models/workflow-instance-dto.d.ts +35 -0
- package/dist/models/workflow-instance-dto.js +21 -0
- package/dist/models/workflow-instance-page.d.ts +18 -0
- package/dist/models/workflow-instance-page.js +15 -0
- package/dist/models/workflow-problem.d.ts +17 -0
- package/dist/models/workflow-problem.js +15 -0
- package/dist/models/workflow-spec.d.ts +15 -0
- package/dist/models/workflow-spec.js +15 -0
- package/dist/models/workflow-state.d.ts +31 -0
- package/dist/models/workflow-state.js +21 -0
- package/dist/models/workflow-summary-dto.d.ts +19 -0
- package/dist/models/workflow-summary-dto.js +15 -0
- package/dist/models/workflow-task-dto.d.ts +44 -0
- package/dist/models/workflow-task-dto.js +21 -0
- package/dist/models/workflow-transition.d.ts +25 -0
- package/dist/models/workflow-transition.js +22 -0
- package/dist/models/workflow-validation-result.d.ts +16 -0
- package/dist/models/workflow-validation-result.js +15 -0
- package/docs/AuditLogDetails.md +6 -0
- package/docs/AutoFileJobsRequest.md +20 -0
- package/docs/CancelInstanceRequest.md +20 -0
- package/docs/CompleteTaskRequest.md +22 -0
- package/docs/ESignApi.md +4 -4
- package/docs/EnrichedAuditLogDetails.md +22 -0
- package/docs/MyTasksCountDTO.md +22 -0
- package/docs/PerDefinition.md +28 -0
- package/docs/ReassignTaskRequest.md +22 -0
- package/docs/SaveWorkflowDefinitionRequest.md +28 -0
- package/docs/Settings.md +6 -0
- package/docs/SmartFilingApi.md +53 -0
- package/docs/StartWorkflowRequest.md +28 -0
- package/docs/WorkflowAction.md +26 -0
- package/docs/WorkflowActionFailureAudit.md +25 -0
- package/docs/WorkflowAssignment.md +26 -0
- package/docs/WorkflowAudit.md +31 -0
- package/docs/WorkflowDefinitionDTO.md +42 -0
- package/docs/WorkflowEventDTO.md +36 -0
- package/docs/WorkflowInstanceDTO.md +48 -0
- package/docs/WorkflowInstanceDetailDTO.md +28 -0
- package/docs/WorkflowInstancePage.md +26 -0
- package/docs/WorkflowProblem.md +26 -0
- package/docs/WorkflowSpec.md +20 -0
- package/docs/WorkflowState.md +36 -0
- package/docs/WorkflowSummaryDTO.md +28 -0
- package/docs/WorkflowTaskDTO.md +66 -0
- package/docs/WorkflowTransition.md +28 -0
- package/docs/WorkflowValidationResult.md +22 -0
- package/docs/WorkflowsApi.md +791 -0
- package/graphql/document.graphqls +2 -0
- package/models/audit-log-details.ts +12 -0
- package/models/auto-file-jobs-request.ts +20 -0
- package/models/cancel-instance-request.ts +20 -0
- package/models/complete-task-request.ts +21 -0
- package/models/enriched-audit-log-details.ts +7 -1
- package/models/enriched-audit-log.ts +9 -0
- package/models/index.ts +24 -0
- package/models/my-tasks-count-dto.ts +21 -0
- package/models/notification-dto.ts +4 -0
- package/models/per-definition.ts +24 -0
- package/models/reassign-task-request.ts +21 -0
- package/models/save-workflow-definition-request.ts +27 -0
- package/models/search-by-audit-log-request.ts +9 -0
- package/models/settings.ts +3 -0
- package/models/start-workflow-request.ts +24 -0
- package/models/workflow-action-failure-audit.ts +26 -0
- package/models/workflow-action.ts +32 -0
- package/models/workflow-assignment.ts +33 -0
- package/models/workflow-audit.ts +26 -0
- package/models/workflow-definition-dto.ts +34 -0
- package/models/workflow-event-dto.ts +42 -0
- package/models/workflow-instance-detail-dto.ts +33 -0
- package/models/workflow-instance-dto.ts +46 -0
- package/models/workflow-instance-page.ts +26 -0
- package/models/workflow-problem.ts +23 -0
- package/models/workflow-spec.ts +23 -0
- package/models/workflow-state.ts +46 -0
- package/models/workflow-summary-dto.ts +27 -0
- package/models/workflow-task-dto.ts +55 -0
- package/models/workflow-transition.ts +34 -0
- package/models/workflow-validation-result.ts +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1156 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* WorkflowsApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const WorkflowsApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary Cancel a running instance (initiator)
|
|
37
|
+
* @param {string} id
|
|
38
|
+
* @param {CancelInstanceRequest} [cancelInstanceRequest]
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
cancel: (id_1, cancelInstanceRequest_1, ...args_1) => __awaiter(this, [id_1, cancelInstanceRequest_1, ...args_1], void 0, function* (id, cancelInstanceRequest, options = {}) {
|
|
43
|
+
// verify required parameter 'id' is not null or undefined
|
|
44
|
+
assertParamExists('cancel', 'id', id);
|
|
45
|
+
const localVarPath = `/api/v1/workflows/instances/{id}/cancel`
|
|
46
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
47
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
49
|
+
let baseOptions;
|
|
50
|
+
if (configuration) {
|
|
51
|
+
baseOptions = configuration.baseOptions;
|
|
52
|
+
}
|
|
53
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
54
|
+
const localVarHeaderParameter = {};
|
|
55
|
+
const localVarQueryParameter = {};
|
|
56
|
+
// authentication keycloak_auth required
|
|
57
|
+
// http bearer authentication required
|
|
58
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
59
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
60
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
61
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
62
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
63
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
64
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cancelInstanceRequest, localVarRequestOptions, configuration);
|
|
65
|
+
return {
|
|
66
|
+
url: toPathString(localVarUrlObj),
|
|
67
|
+
options: localVarRequestOptions,
|
|
68
|
+
};
|
|
69
|
+
}),
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @summary Take a transition on a task I am a candidate of
|
|
73
|
+
* @param {string} id
|
|
74
|
+
* @param {CompleteTaskRequest} completeTaskRequest
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
complete: (id_1, completeTaskRequest_1, ...args_1) => __awaiter(this, [id_1, completeTaskRequest_1, ...args_1], void 0, function* (id, completeTaskRequest, options = {}) {
|
|
79
|
+
// verify required parameter 'id' is not null or undefined
|
|
80
|
+
assertParamExists('complete', 'id', id);
|
|
81
|
+
// verify required parameter 'completeTaskRequest' is not null or undefined
|
|
82
|
+
assertParamExists('complete', 'completeTaskRequest', completeTaskRequest);
|
|
83
|
+
const localVarPath = `/api/v1/workflows/tasks/{id}/complete`
|
|
84
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
85
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
86
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
87
|
+
let baseOptions;
|
|
88
|
+
if (configuration) {
|
|
89
|
+
baseOptions = configuration.baseOptions;
|
|
90
|
+
}
|
|
91
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
92
|
+
const localVarHeaderParameter = {};
|
|
93
|
+
const localVarQueryParameter = {};
|
|
94
|
+
// authentication keycloak_auth required
|
|
95
|
+
// http bearer authentication required
|
|
96
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
97
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
98
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
99
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
100
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
101
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
102
|
+
localVarRequestOptions.data = serializeDataIfNeeded(completeTaskRequest, localVarRequestOptions, configuration);
|
|
103
|
+
return {
|
|
104
|
+
url: toPathString(localVarUrlObj),
|
|
105
|
+
options: localVarRequestOptions,
|
|
106
|
+
};
|
|
107
|
+
}),
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @summary Create a workflow definition (400 with the problem list when invalid)
|
|
111
|
+
* @param {SaveWorkflowDefinitionRequest} saveWorkflowDefinitionRequest
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
createDefinition: (saveWorkflowDefinitionRequest_1, ...args_1) => __awaiter(this, [saveWorkflowDefinitionRequest_1, ...args_1], void 0, function* (saveWorkflowDefinitionRequest, options = {}) {
|
|
116
|
+
// verify required parameter 'saveWorkflowDefinitionRequest' is not null or undefined
|
|
117
|
+
assertParamExists('createDefinition', 'saveWorkflowDefinitionRequest', saveWorkflowDefinitionRequest);
|
|
118
|
+
const localVarPath = `/api/v1/workflows/definitions`;
|
|
119
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
120
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
121
|
+
let baseOptions;
|
|
122
|
+
if (configuration) {
|
|
123
|
+
baseOptions = configuration.baseOptions;
|
|
124
|
+
}
|
|
125
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
126
|
+
const localVarHeaderParameter = {};
|
|
127
|
+
const localVarQueryParameter = {};
|
|
128
|
+
// authentication keycloak_auth required
|
|
129
|
+
// http bearer authentication required
|
|
130
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
131
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
133
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
134
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
135
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
136
|
+
localVarRequestOptions.data = serializeDataIfNeeded(saveWorkflowDefinitionRequest, localVarRequestOptions, configuration);
|
|
137
|
+
return {
|
|
138
|
+
url: toPathString(localVarUrlObj),
|
|
139
|
+
options: localVarRequestOptions,
|
|
140
|
+
};
|
|
141
|
+
}),
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @summary Delete a workflow definition (409 while instances are running)
|
|
145
|
+
* @param {string} id
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
deleteDefinition: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
150
|
+
// verify required parameter 'id' is not null or undefined
|
|
151
|
+
assertParamExists('deleteDefinition', 'id', id);
|
|
152
|
+
const localVarPath = `/api/v1/workflows/definitions/{id}`
|
|
153
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
154
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
155
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
156
|
+
let baseOptions;
|
|
157
|
+
if (configuration) {
|
|
158
|
+
baseOptions = configuration.baseOptions;
|
|
159
|
+
}
|
|
160
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
161
|
+
const localVarHeaderParameter = {};
|
|
162
|
+
const localVarQueryParameter = {};
|
|
163
|
+
// authentication keycloak_auth required
|
|
164
|
+
// http bearer authentication required
|
|
165
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
166
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
167
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
168
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
169
|
+
return {
|
|
170
|
+
url: toPathString(localVarUrlObj),
|
|
171
|
+
options: localVarRequestOptions,
|
|
172
|
+
};
|
|
173
|
+
}),
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @summary Get a workflow definition
|
|
177
|
+
* @param {string} id
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
getDefinition: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
182
|
+
// verify required parameter 'id' is not null or undefined
|
|
183
|
+
assertParamExists('getDefinition', 'id', id);
|
|
184
|
+
const localVarPath = `/api/v1/workflows/definitions/{id}`
|
|
185
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
186
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
187
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
188
|
+
let baseOptions;
|
|
189
|
+
if (configuration) {
|
|
190
|
+
baseOptions = configuration.baseOptions;
|
|
191
|
+
}
|
|
192
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
193
|
+
const localVarHeaderParameter = {};
|
|
194
|
+
const localVarQueryParameter = {};
|
|
195
|
+
// authentication keycloak_auth required
|
|
196
|
+
// http bearer authentication required
|
|
197
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
198
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
199
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
200
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
202
|
+
return {
|
|
203
|
+
url: toPathString(localVarUrlObj),
|
|
204
|
+
options: localVarRequestOptions,
|
|
205
|
+
};
|
|
206
|
+
}),
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @summary One instance with its snapshot spec, open task and history
|
|
210
|
+
* @param {string} id
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
getInstance: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
215
|
+
// verify required parameter 'id' is not null or undefined
|
|
216
|
+
assertParamExists('getInstance', 'id', id);
|
|
217
|
+
const localVarPath = `/api/v1/workflows/instances/{id}`
|
|
218
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
219
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
220
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
221
|
+
let baseOptions;
|
|
222
|
+
if (configuration) {
|
|
223
|
+
baseOptions = configuration.baseOptions;
|
|
224
|
+
}
|
|
225
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
226
|
+
const localVarHeaderParameter = {};
|
|
227
|
+
const localVarQueryParameter = {};
|
|
228
|
+
// authentication keycloak_auth required
|
|
229
|
+
// http bearer authentication required
|
|
230
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
231
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
232
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
233
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
234
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
235
|
+
return {
|
|
236
|
+
url: toPathString(localVarUrlObj),
|
|
237
|
+
options: localVarRequestOptions,
|
|
238
|
+
};
|
|
239
|
+
}),
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
* @summary List workflow definitions
|
|
243
|
+
* @param {boolean} [active]
|
|
244
|
+
* @param {*} [options] Override http request option.
|
|
245
|
+
* @throws {RequiredError}
|
|
246
|
+
*/
|
|
247
|
+
listDefinitions: (active_1, ...args_1) => __awaiter(this, [active_1, ...args_1], void 0, function* (active, options = {}) {
|
|
248
|
+
const localVarPath = `/api/v1/workflows/definitions`;
|
|
249
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
250
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
251
|
+
let baseOptions;
|
|
252
|
+
if (configuration) {
|
|
253
|
+
baseOptions = configuration.baseOptions;
|
|
254
|
+
}
|
|
255
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
256
|
+
const localVarHeaderParameter = {};
|
|
257
|
+
const localVarQueryParameter = {};
|
|
258
|
+
// authentication keycloak_auth required
|
|
259
|
+
// http bearer authentication required
|
|
260
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
261
|
+
if (active !== undefined) {
|
|
262
|
+
localVarQueryParameter['active'] = active;
|
|
263
|
+
}
|
|
264
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
265
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
266
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
267
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
268
|
+
return {
|
|
269
|
+
url: toPathString(localVarUrlObj),
|
|
270
|
+
options: localVarRequestOptions,
|
|
271
|
+
};
|
|
272
|
+
}),
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @summary List instances (monitor), newest first
|
|
276
|
+
* @param {string} [documentId]
|
|
277
|
+
* @param {string} [definitionId]
|
|
278
|
+
* @param {ListInstancesStatusEnum} [status]
|
|
279
|
+
* @param {string} [state]
|
|
280
|
+
* @param {boolean} [mine]
|
|
281
|
+
* @param {number} [page]
|
|
282
|
+
* @param {number} [size]
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
listInstances: (documentId_1, definitionId_1, status_1, state_1, mine_1, page_1, size_1, ...args_1) => __awaiter(this, [documentId_1, definitionId_1, status_1, state_1, mine_1, page_1, size_1, ...args_1], void 0, function* (documentId, definitionId, status, state, mine, page, size, options = {}) {
|
|
287
|
+
const localVarPath = `/api/v1/workflows/instances`;
|
|
288
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
289
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
290
|
+
let baseOptions;
|
|
291
|
+
if (configuration) {
|
|
292
|
+
baseOptions = configuration.baseOptions;
|
|
293
|
+
}
|
|
294
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
295
|
+
const localVarHeaderParameter = {};
|
|
296
|
+
const localVarQueryParameter = {};
|
|
297
|
+
// authentication keycloak_auth required
|
|
298
|
+
// http bearer authentication required
|
|
299
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
300
|
+
if (documentId !== undefined) {
|
|
301
|
+
localVarQueryParameter['documentId'] = documentId;
|
|
302
|
+
}
|
|
303
|
+
if (definitionId !== undefined) {
|
|
304
|
+
localVarQueryParameter['definitionId'] = definitionId;
|
|
305
|
+
}
|
|
306
|
+
if (status !== undefined) {
|
|
307
|
+
localVarQueryParameter['status'] = status;
|
|
308
|
+
}
|
|
309
|
+
if (state !== undefined) {
|
|
310
|
+
localVarQueryParameter['state'] = state;
|
|
311
|
+
}
|
|
312
|
+
if (mine !== undefined) {
|
|
313
|
+
localVarQueryParameter['mine'] = mine;
|
|
314
|
+
}
|
|
315
|
+
if (page !== undefined) {
|
|
316
|
+
localVarQueryParameter['page'] = page;
|
|
317
|
+
}
|
|
318
|
+
if (size !== undefined) {
|
|
319
|
+
localVarQueryParameter['size'] = size;
|
|
320
|
+
}
|
|
321
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
322
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
323
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
324
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
325
|
+
return {
|
|
326
|
+
url: toPathString(localVarUrlObj),
|
|
327
|
+
options: localVarRequestOptions,
|
|
328
|
+
};
|
|
329
|
+
}),
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @summary Open tasks I can act on (by e-mail or role)
|
|
333
|
+
* @param {*} [options] Override http request option.
|
|
334
|
+
* @throws {RequiredError}
|
|
335
|
+
*/
|
|
336
|
+
myTasks: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
337
|
+
const localVarPath = `/api/v1/workflows/tasks/mine`;
|
|
338
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
339
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
340
|
+
let baseOptions;
|
|
341
|
+
if (configuration) {
|
|
342
|
+
baseOptions = configuration.baseOptions;
|
|
343
|
+
}
|
|
344
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
345
|
+
const localVarHeaderParameter = {};
|
|
346
|
+
const localVarQueryParameter = {};
|
|
347
|
+
// authentication keycloak_auth required
|
|
348
|
+
// http bearer authentication required
|
|
349
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
350
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
351
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
352
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
353
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
354
|
+
return {
|
|
355
|
+
url: toPathString(localVarUrlObj),
|
|
356
|
+
options: localVarRequestOptions,
|
|
357
|
+
};
|
|
358
|
+
}),
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @summary Number of open tasks I can act on (sidebar badge)
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
*/
|
|
365
|
+
myTasksCount: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
366
|
+
const localVarPath = `/api/v1/workflows/tasks/mine/count`;
|
|
367
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
368
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
369
|
+
let baseOptions;
|
|
370
|
+
if (configuration) {
|
|
371
|
+
baseOptions = configuration.baseOptions;
|
|
372
|
+
}
|
|
373
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
374
|
+
const localVarHeaderParameter = {};
|
|
375
|
+
const localVarQueryParameter = {};
|
|
376
|
+
// authentication keycloak_auth required
|
|
377
|
+
// http bearer authentication required
|
|
378
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
379
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
380
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
381
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
382
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
383
|
+
return {
|
|
384
|
+
url: toPathString(localVarUrlObj),
|
|
385
|
+
options: localVarRequestOptions,
|
|
386
|
+
};
|
|
387
|
+
}),
|
|
388
|
+
/**
|
|
389
|
+
*
|
|
390
|
+
* @summary Hand a task to other people (initiator or current candidate)
|
|
391
|
+
* @param {string} id
|
|
392
|
+
* @param {ReassignTaskRequest} reassignTaskRequest
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
reassign: (id_1, reassignTaskRequest_1, ...args_1) => __awaiter(this, [id_1, reassignTaskRequest_1, ...args_1], void 0, function* (id, reassignTaskRequest, options = {}) {
|
|
397
|
+
// verify required parameter 'id' is not null or undefined
|
|
398
|
+
assertParamExists('reassign', 'id', id);
|
|
399
|
+
// verify required parameter 'reassignTaskRequest' is not null or undefined
|
|
400
|
+
assertParamExists('reassign', 'reassignTaskRequest', reassignTaskRequest);
|
|
401
|
+
const localVarPath = `/api/v1/workflows/tasks/{id}/reassign`
|
|
402
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
403
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
404
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
405
|
+
let baseOptions;
|
|
406
|
+
if (configuration) {
|
|
407
|
+
baseOptions = configuration.baseOptions;
|
|
408
|
+
}
|
|
409
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
410
|
+
const localVarHeaderParameter = {};
|
|
411
|
+
const localVarQueryParameter = {};
|
|
412
|
+
// authentication keycloak_auth required
|
|
413
|
+
// http bearer authentication required
|
|
414
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
415
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
416
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
417
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
418
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
419
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
420
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reassignTaskRequest, localVarRequestOptions, configuration);
|
|
421
|
+
return {
|
|
422
|
+
url: toPathString(localVarUrlObj),
|
|
423
|
+
options: localVarRequestOptions,
|
|
424
|
+
};
|
|
425
|
+
}),
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @summary Start a workflow on a document (409 when one is already running)
|
|
429
|
+
* @param {StartWorkflowRequest} startWorkflowRequest
|
|
430
|
+
* @param {string} [acceptLanguage]
|
|
431
|
+
* @param {*} [options] Override http request option.
|
|
432
|
+
* @throws {RequiredError}
|
|
433
|
+
*/
|
|
434
|
+
start: (startWorkflowRequest_1, acceptLanguage_1, ...args_1) => __awaiter(this, [startWorkflowRequest_1, acceptLanguage_1, ...args_1], void 0, function* (startWorkflowRequest, acceptLanguage, options = {}) {
|
|
435
|
+
// verify required parameter 'startWorkflowRequest' is not null or undefined
|
|
436
|
+
assertParamExists('start', 'startWorkflowRequest', startWorkflowRequest);
|
|
437
|
+
const localVarPath = `/api/v1/workflows/instances`;
|
|
438
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
439
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
440
|
+
let baseOptions;
|
|
441
|
+
if (configuration) {
|
|
442
|
+
baseOptions = configuration.baseOptions;
|
|
443
|
+
}
|
|
444
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
445
|
+
const localVarHeaderParameter = {};
|
|
446
|
+
const localVarQueryParameter = {};
|
|
447
|
+
// authentication keycloak_auth required
|
|
448
|
+
// http bearer authentication required
|
|
449
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
450
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
451
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
452
|
+
if (acceptLanguage != null) {
|
|
453
|
+
localVarHeaderParameter['Accept-Language'] = String(acceptLanguage);
|
|
454
|
+
}
|
|
455
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
456
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
457
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
458
|
+
localVarRequestOptions.data = serializeDataIfNeeded(startWorkflowRequest, localVarRequestOptions, configuration);
|
|
459
|
+
return {
|
|
460
|
+
url: toPathString(localVarUrlObj),
|
|
461
|
+
options: localVarRequestOptions,
|
|
462
|
+
};
|
|
463
|
+
}),
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
* @summary Counts for the monitor header
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
*/
|
|
470
|
+
summary: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
471
|
+
const localVarPath = `/api/v1/workflows/instances/summary`;
|
|
472
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
473
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
474
|
+
let baseOptions;
|
|
475
|
+
if (configuration) {
|
|
476
|
+
baseOptions = configuration.baseOptions;
|
|
477
|
+
}
|
|
478
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
479
|
+
const localVarHeaderParameter = {};
|
|
480
|
+
const localVarQueryParameter = {};
|
|
481
|
+
// authentication keycloak_auth required
|
|
482
|
+
// http bearer authentication required
|
|
483
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
484
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
485
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
486
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
487
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
488
|
+
return {
|
|
489
|
+
url: toPathString(localVarUrlObj),
|
|
490
|
+
options: localVarRequestOptions,
|
|
491
|
+
};
|
|
492
|
+
}),
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
* @summary Update a workflow definition (running instances keep their snapshot)
|
|
496
|
+
* @param {string} id
|
|
497
|
+
* @param {SaveWorkflowDefinitionRequest} saveWorkflowDefinitionRequest
|
|
498
|
+
* @param {*} [options] Override http request option.
|
|
499
|
+
* @throws {RequiredError}
|
|
500
|
+
*/
|
|
501
|
+
updateDefinition: (id_1, saveWorkflowDefinitionRequest_1, ...args_1) => __awaiter(this, [id_1, saveWorkflowDefinitionRequest_1, ...args_1], void 0, function* (id, saveWorkflowDefinitionRequest, options = {}) {
|
|
502
|
+
// verify required parameter 'id' is not null or undefined
|
|
503
|
+
assertParamExists('updateDefinition', 'id', id);
|
|
504
|
+
// verify required parameter 'saveWorkflowDefinitionRequest' is not null or undefined
|
|
505
|
+
assertParamExists('updateDefinition', 'saveWorkflowDefinitionRequest', saveWorkflowDefinitionRequest);
|
|
506
|
+
const localVarPath = `/api/v1/workflows/definitions/{id}`
|
|
507
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
508
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
509
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
510
|
+
let baseOptions;
|
|
511
|
+
if (configuration) {
|
|
512
|
+
baseOptions = configuration.baseOptions;
|
|
513
|
+
}
|
|
514
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
515
|
+
const localVarHeaderParameter = {};
|
|
516
|
+
const localVarQueryParameter = {};
|
|
517
|
+
// authentication keycloak_auth required
|
|
518
|
+
// http bearer authentication required
|
|
519
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
520
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
521
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
522
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
523
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
524
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
525
|
+
localVarRequestOptions.data = serializeDataIfNeeded(saveWorkflowDefinitionRequest, localVarRequestOptions, configuration);
|
|
526
|
+
return {
|
|
527
|
+
url: toPathString(localVarUrlObj),
|
|
528
|
+
options: localVarRequestOptions,
|
|
529
|
+
};
|
|
530
|
+
}),
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @summary Validate a definition without saving it
|
|
534
|
+
* @param {SaveWorkflowDefinitionRequest} saveWorkflowDefinitionRequest
|
|
535
|
+
* @param {*} [options] Override http request option.
|
|
536
|
+
* @throws {RequiredError}
|
|
537
|
+
*/
|
|
538
|
+
validateDefinition: (saveWorkflowDefinitionRequest_1, ...args_1) => __awaiter(this, [saveWorkflowDefinitionRequest_1, ...args_1], void 0, function* (saveWorkflowDefinitionRequest, options = {}) {
|
|
539
|
+
// verify required parameter 'saveWorkflowDefinitionRequest' is not null or undefined
|
|
540
|
+
assertParamExists('validateDefinition', 'saveWorkflowDefinitionRequest', saveWorkflowDefinitionRequest);
|
|
541
|
+
const localVarPath = `/api/v1/workflows/definitions/validate`;
|
|
542
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
543
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
544
|
+
let baseOptions;
|
|
545
|
+
if (configuration) {
|
|
546
|
+
baseOptions = configuration.baseOptions;
|
|
547
|
+
}
|
|
548
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
549
|
+
const localVarHeaderParameter = {};
|
|
550
|
+
const localVarQueryParameter = {};
|
|
551
|
+
// authentication keycloak_auth required
|
|
552
|
+
// http bearer authentication required
|
|
553
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
554
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
555
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
556
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
557
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
558
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
559
|
+
localVarRequestOptions.data = serializeDataIfNeeded(saveWorkflowDefinitionRequest, localVarRequestOptions, configuration);
|
|
560
|
+
return {
|
|
561
|
+
url: toPathString(localVarUrlObj),
|
|
562
|
+
options: localVarRequestOptions,
|
|
563
|
+
};
|
|
564
|
+
}),
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
/**
|
|
568
|
+
* WorkflowsApi - functional programming interface
|
|
569
|
+
*/
|
|
570
|
+
export const WorkflowsApiFp = function (configuration) {
|
|
571
|
+
const localVarAxiosParamCreator = WorkflowsApiAxiosParamCreator(configuration);
|
|
572
|
+
return {
|
|
573
|
+
/**
|
|
574
|
+
*
|
|
575
|
+
* @summary Cancel a running instance (initiator)
|
|
576
|
+
* @param {string} id
|
|
577
|
+
* @param {CancelInstanceRequest} [cancelInstanceRequest]
|
|
578
|
+
* @param {*} [options] Override http request option.
|
|
579
|
+
* @throws {RequiredError}
|
|
580
|
+
*/
|
|
581
|
+
cancel(id, cancelInstanceRequest, options) {
|
|
582
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
583
|
+
var _a, _b, _c;
|
|
584
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancel(id, cancelInstanceRequest, options);
|
|
585
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
586
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.cancel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
587
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
588
|
+
});
|
|
589
|
+
},
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @summary Take a transition on a task I am a candidate of
|
|
593
|
+
* @param {string} id
|
|
594
|
+
* @param {CompleteTaskRequest} completeTaskRequest
|
|
595
|
+
* @param {*} [options] Override http request option.
|
|
596
|
+
* @throws {RequiredError}
|
|
597
|
+
*/
|
|
598
|
+
complete(id, completeTaskRequest, options) {
|
|
599
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
600
|
+
var _a, _b, _c;
|
|
601
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.complete(id, completeTaskRequest, options);
|
|
602
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
603
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.complete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
604
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
605
|
+
});
|
|
606
|
+
},
|
|
607
|
+
/**
|
|
608
|
+
*
|
|
609
|
+
* @summary Create a workflow definition (400 with the problem list when invalid)
|
|
610
|
+
* @param {SaveWorkflowDefinitionRequest} saveWorkflowDefinitionRequest
|
|
611
|
+
* @param {*} [options] Override http request option.
|
|
612
|
+
* @throws {RequiredError}
|
|
613
|
+
*/
|
|
614
|
+
createDefinition(saveWorkflowDefinitionRequest, options) {
|
|
615
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
616
|
+
var _a, _b, _c;
|
|
617
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createDefinition(saveWorkflowDefinitionRequest, options);
|
|
618
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
619
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.createDefinition']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
620
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
621
|
+
});
|
|
622
|
+
},
|
|
623
|
+
/**
|
|
624
|
+
*
|
|
625
|
+
* @summary Delete a workflow definition (409 while instances are running)
|
|
626
|
+
* @param {string} id
|
|
627
|
+
* @param {*} [options] Override http request option.
|
|
628
|
+
* @throws {RequiredError}
|
|
629
|
+
*/
|
|
630
|
+
deleteDefinition(id, options) {
|
|
631
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
632
|
+
var _a, _b, _c;
|
|
633
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDefinition(id, options);
|
|
634
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
635
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.deleteDefinition']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
636
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
637
|
+
});
|
|
638
|
+
},
|
|
639
|
+
/**
|
|
640
|
+
*
|
|
641
|
+
* @summary Get a workflow definition
|
|
642
|
+
* @param {string} id
|
|
643
|
+
* @param {*} [options] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
*/
|
|
646
|
+
getDefinition(id, options) {
|
|
647
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
648
|
+
var _a, _b, _c;
|
|
649
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDefinition(id, options);
|
|
650
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
651
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.getDefinition']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
652
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
653
|
+
});
|
|
654
|
+
},
|
|
655
|
+
/**
|
|
656
|
+
*
|
|
657
|
+
* @summary One instance with its snapshot spec, open task and history
|
|
658
|
+
* @param {string} id
|
|
659
|
+
* @param {*} [options] Override http request option.
|
|
660
|
+
* @throws {RequiredError}
|
|
661
|
+
*/
|
|
662
|
+
getInstance(id, options) {
|
|
663
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
664
|
+
var _a, _b, _c;
|
|
665
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInstance(id, options);
|
|
666
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
667
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.getInstance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
668
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
669
|
+
});
|
|
670
|
+
},
|
|
671
|
+
/**
|
|
672
|
+
*
|
|
673
|
+
* @summary List workflow definitions
|
|
674
|
+
* @param {boolean} [active]
|
|
675
|
+
* @param {*} [options] Override http request option.
|
|
676
|
+
* @throws {RequiredError}
|
|
677
|
+
*/
|
|
678
|
+
listDefinitions(active, options) {
|
|
679
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
680
|
+
var _a, _b, _c;
|
|
681
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listDefinitions(active, options);
|
|
682
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
683
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.listDefinitions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
684
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
685
|
+
});
|
|
686
|
+
},
|
|
687
|
+
/**
|
|
688
|
+
*
|
|
689
|
+
* @summary List instances (monitor), newest first
|
|
690
|
+
* @param {string} [documentId]
|
|
691
|
+
* @param {string} [definitionId]
|
|
692
|
+
* @param {ListInstancesStatusEnum} [status]
|
|
693
|
+
* @param {string} [state]
|
|
694
|
+
* @param {boolean} [mine]
|
|
695
|
+
* @param {number} [page]
|
|
696
|
+
* @param {number} [size]
|
|
697
|
+
* @param {*} [options] Override http request option.
|
|
698
|
+
* @throws {RequiredError}
|
|
699
|
+
*/
|
|
700
|
+
listInstances(documentId, definitionId, status, state, mine, page, size, options) {
|
|
701
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
702
|
+
var _a, _b, _c;
|
|
703
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listInstances(documentId, definitionId, status, state, mine, page, size, options);
|
|
704
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
705
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.listInstances']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
706
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
707
|
+
});
|
|
708
|
+
},
|
|
709
|
+
/**
|
|
710
|
+
*
|
|
711
|
+
* @summary Open tasks I can act on (by e-mail or role)
|
|
712
|
+
* @param {*} [options] Override http request option.
|
|
713
|
+
* @throws {RequiredError}
|
|
714
|
+
*/
|
|
715
|
+
myTasks(options) {
|
|
716
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
717
|
+
var _a, _b, _c;
|
|
718
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.myTasks(options);
|
|
719
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
720
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.myTasks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
721
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
722
|
+
});
|
|
723
|
+
},
|
|
724
|
+
/**
|
|
725
|
+
*
|
|
726
|
+
* @summary Number of open tasks I can act on (sidebar badge)
|
|
727
|
+
* @param {*} [options] Override http request option.
|
|
728
|
+
* @throws {RequiredError}
|
|
729
|
+
*/
|
|
730
|
+
myTasksCount(options) {
|
|
731
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
732
|
+
var _a, _b, _c;
|
|
733
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.myTasksCount(options);
|
|
734
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
735
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.myTasksCount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
736
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
737
|
+
});
|
|
738
|
+
},
|
|
739
|
+
/**
|
|
740
|
+
*
|
|
741
|
+
* @summary Hand a task to other people (initiator or current candidate)
|
|
742
|
+
* @param {string} id
|
|
743
|
+
* @param {ReassignTaskRequest} reassignTaskRequest
|
|
744
|
+
* @param {*} [options] Override http request option.
|
|
745
|
+
* @throws {RequiredError}
|
|
746
|
+
*/
|
|
747
|
+
reassign(id, reassignTaskRequest, options) {
|
|
748
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
749
|
+
var _a, _b, _c;
|
|
750
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reassign(id, reassignTaskRequest, options);
|
|
751
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
752
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.reassign']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
753
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
754
|
+
});
|
|
755
|
+
},
|
|
756
|
+
/**
|
|
757
|
+
*
|
|
758
|
+
* @summary Start a workflow on a document (409 when one is already running)
|
|
759
|
+
* @param {StartWorkflowRequest} startWorkflowRequest
|
|
760
|
+
* @param {string} [acceptLanguage]
|
|
761
|
+
* @param {*} [options] Override http request option.
|
|
762
|
+
* @throws {RequiredError}
|
|
763
|
+
*/
|
|
764
|
+
start(startWorkflowRequest, acceptLanguage, options) {
|
|
765
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
766
|
+
var _a, _b, _c;
|
|
767
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.start(startWorkflowRequest, acceptLanguage, options);
|
|
768
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
769
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.start']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
770
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
771
|
+
});
|
|
772
|
+
},
|
|
773
|
+
/**
|
|
774
|
+
*
|
|
775
|
+
* @summary Counts for the monitor header
|
|
776
|
+
* @param {*} [options] Override http request option.
|
|
777
|
+
* @throws {RequiredError}
|
|
778
|
+
*/
|
|
779
|
+
summary(options) {
|
|
780
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
781
|
+
var _a, _b, _c;
|
|
782
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.summary(options);
|
|
783
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
784
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.summary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
785
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
786
|
+
});
|
|
787
|
+
},
|
|
788
|
+
/**
|
|
789
|
+
*
|
|
790
|
+
* @summary Update a workflow definition (running instances keep their snapshot)
|
|
791
|
+
* @param {string} id
|
|
792
|
+
* @param {SaveWorkflowDefinitionRequest} saveWorkflowDefinitionRequest
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
*/
|
|
796
|
+
updateDefinition(id, saveWorkflowDefinitionRequest, options) {
|
|
797
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
798
|
+
var _a, _b, _c;
|
|
799
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDefinition(id, saveWorkflowDefinitionRequest, options);
|
|
800
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
801
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.updateDefinition']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
802
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
803
|
+
});
|
|
804
|
+
},
|
|
805
|
+
/**
|
|
806
|
+
*
|
|
807
|
+
* @summary Validate a definition without saving it
|
|
808
|
+
* @param {SaveWorkflowDefinitionRequest} saveWorkflowDefinitionRequest
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
*/
|
|
812
|
+
validateDefinition(saveWorkflowDefinitionRequest, options) {
|
|
813
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
814
|
+
var _a, _b, _c;
|
|
815
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.validateDefinition(saveWorkflowDefinitionRequest, options);
|
|
816
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
817
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.validateDefinition']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
818
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
819
|
+
});
|
|
820
|
+
},
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
/**
|
|
824
|
+
* WorkflowsApi - factory interface
|
|
825
|
+
*/
|
|
826
|
+
export const WorkflowsApiFactory = function (configuration, basePath, axios) {
|
|
827
|
+
const localVarFp = WorkflowsApiFp(configuration);
|
|
828
|
+
return {
|
|
829
|
+
/**
|
|
830
|
+
*
|
|
831
|
+
* @summary Cancel a running instance (initiator)
|
|
832
|
+
* @param {string} id
|
|
833
|
+
* @param {CancelInstanceRequest} [cancelInstanceRequest]
|
|
834
|
+
* @param {*} [options] Override http request option.
|
|
835
|
+
* @throws {RequiredError}
|
|
836
|
+
*/
|
|
837
|
+
cancel(id, cancelInstanceRequest, options) {
|
|
838
|
+
return localVarFp.cancel(id, cancelInstanceRequest, options).then((request) => request(axios, basePath));
|
|
839
|
+
},
|
|
840
|
+
/**
|
|
841
|
+
*
|
|
842
|
+
* @summary Take a transition on a task I am a candidate of
|
|
843
|
+
* @param {string} id
|
|
844
|
+
* @param {CompleteTaskRequest} completeTaskRequest
|
|
845
|
+
* @param {*} [options] Override http request option.
|
|
846
|
+
* @throws {RequiredError}
|
|
847
|
+
*/
|
|
848
|
+
complete(id, completeTaskRequest, options) {
|
|
849
|
+
return localVarFp.complete(id, completeTaskRequest, options).then((request) => request(axios, basePath));
|
|
850
|
+
},
|
|
851
|
+
/**
|
|
852
|
+
*
|
|
853
|
+
* @summary Create a workflow definition (400 with the problem list when invalid)
|
|
854
|
+
* @param {SaveWorkflowDefinitionRequest} saveWorkflowDefinitionRequest
|
|
855
|
+
* @param {*} [options] Override http request option.
|
|
856
|
+
* @throws {RequiredError}
|
|
857
|
+
*/
|
|
858
|
+
createDefinition(saveWorkflowDefinitionRequest, options) {
|
|
859
|
+
return localVarFp.createDefinition(saveWorkflowDefinitionRequest, options).then((request) => request(axios, basePath));
|
|
860
|
+
},
|
|
861
|
+
/**
|
|
862
|
+
*
|
|
863
|
+
* @summary Delete a workflow definition (409 while instances are running)
|
|
864
|
+
* @param {string} id
|
|
865
|
+
* @param {*} [options] Override http request option.
|
|
866
|
+
* @throws {RequiredError}
|
|
867
|
+
*/
|
|
868
|
+
deleteDefinition(id, options) {
|
|
869
|
+
return localVarFp.deleteDefinition(id, options).then((request) => request(axios, basePath));
|
|
870
|
+
},
|
|
871
|
+
/**
|
|
872
|
+
*
|
|
873
|
+
* @summary Get a workflow definition
|
|
874
|
+
* @param {string} id
|
|
875
|
+
* @param {*} [options] Override http request option.
|
|
876
|
+
* @throws {RequiredError}
|
|
877
|
+
*/
|
|
878
|
+
getDefinition(id, options) {
|
|
879
|
+
return localVarFp.getDefinition(id, options).then((request) => request(axios, basePath));
|
|
880
|
+
},
|
|
881
|
+
/**
|
|
882
|
+
*
|
|
883
|
+
* @summary One instance with its snapshot spec, open task and history
|
|
884
|
+
* @param {string} id
|
|
885
|
+
* @param {*} [options] Override http request option.
|
|
886
|
+
* @throws {RequiredError}
|
|
887
|
+
*/
|
|
888
|
+
getInstance(id, options) {
|
|
889
|
+
return localVarFp.getInstance(id, options).then((request) => request(axios, basePath));
|
|
890
|
+
},
|
|
891
|
+
/**
|
|
892
|
+
*
|
|
893
|
+
* @summary List workflow definitions
|
|
894
|
+
* @param {boolean} [active]
|
|
895
|
+
* @param {*} [options] Override http request option.
|
|
896
|
+
* @throws {RequiredError}
|
|
897
|
+
*/
|
|
898
|
+
listDefinitions(active, options) {
|
|
899
|
+
return localVarFp.listDefinitions(active, options).then((request) => request(axios, basePath));
|
|
900
|
+
},
|
|
901
|
+
/**
|
|
902
|
+
*
|
|
903
|
+
* @summary List instances (monitor), newest first
|
|
904
|
+
* @param {string} [documentId]
|
|
905
|
+
* @param {string} [definitionId]
|
|
906
|
+
* @param {ListInstancesStatusEnum} [status]
|
|
907
|
+
* @param {string} [state]
|
|
908
|
+
* @param {boolean} [mine]
|
|
909
|
+
* @param {number} [page]
|
|
910
|
+
* @param {number} [size]
|
|
911
|
+
* @param {*} [options] Override http request option.
|
|
912
|
+
* @throws {RequiredError}
|
|
913
|
+
*/
|
|
914
|
+
listInstances(documentId, definitionId, status, state, mine, page, size, options) {
|
|
915
|
+
return localVarFp.listInstances(documentId, definitionId, status, state, mine, page, size, options).then((request) => request(axios, basePath));
|
|
916
|
+
},
|
|
917
|
+
/**
|
|
918
|
+
*
|
|
919
|
+
* @summary Open tasks I can act on (by e-mail or role)
|
|
920
|
+
* @param {*} [options] Override http request option.
|
|
921
|
+
* @throws {RequiredError}
|
|
922
|
+
*/
|
|
923
|
+
myTasks(options) {
|
|
924
|
+
return localVarFp.myTasks(options).then((request) => request(axios, basePath));
|
|
925
|
+
},
|
|
926
|
+
/**
|
|
927
|
+
*
|
|
928
|
+
* @summary Number of open tasks I can act on (sidebar badge)
|
|
929
|
+
* @param {*} [options] Override http request option.
|
|
930
|
+
* @throws {RequiredError}
|
|
931
|
+
*/
|
|
932
|
+
myTasksCount(options) {
|
|
933
|
+
return localVarFp.myTasksCount(options).then((request) => request(axios, basePath));
|
|
934
|
+
},
|
|
935
|
+
/**
|
|
936
|
+
*
|
|
937
|
+
* @summary Hand a task to other people (initiator or current candidate)
|
|
938
|
+
* @param {string} id
|
|
939
|
+
* @param {ReassignTaskRequest} reassignTaskRequest
|
|
940
|
+
* @param {*} [options] Override http request option.
|
|
941
|
+
* @throws {RequiredError}
|
|
942
|
+
*/
|
|
943
|
+
reassign(id, reassignTaskRequest, options) {
|
|
944
|
+
return localVarFp.reassign(id, reassignTaskRequest, options).then((request) => request(axios, basePath));
|
|
945
|
+
},
|
|
946
|
+
/**
|
|
947
|
+
*
|
|
948
|
+
* @summary Start a workflow on a document (409 when one is already running)
|
|
949
|
+
* @param {StartWorkflowRequest} startWorkflowRequest
|
|
950
|
+
* @param {string} [acceptLanguage]
|
|
951
|
+
* @param {*} [options] Override http request option.
|
|
952
|
+
* @throws {RequiredError}
|
|
953
|
+
*/
|
|
954
|
+
start(startWorkflowRequest, acceptLanguage, options) {
|
|
955
|
+
return localVarFp.start(startWorkflowRequest, acceptLanguage, options).then((request) => request(axios, basePath));
|
|
956
|
+
},
|
|
957
|
+
/**
|
|
958
|
+
*
|
|
959
|
+
* @summary Counts for the monitor header
|
|
960
|
+
* @param {*} [options] Override http request option.
|
|
961
|
+
* @throws {RequiredError}
|
|
962
|
+
*/
|
|
963
|
+
summary(options) {
|
|
964
|
+
return localVarFp.summary(options).then((request) => request(axios, basePath));
|
|
965
|
+
},
|
|
966
|
+
/**
|
|
967
|
+
*
|
|
968
|
+
* @summary Update a workflow definition (running instances keep their snapshot)
|
|
969
|
+
* @param {string} id
|
|
970
|
+
* @param {SaveWorkflowDefinitionRequest} saveWorkflowDefinitionRequest
|
|
971
|
+
* @param {*} [options] Override http request option.
|
|
972
|
+
* @throws {RequiredError}
|
|
973
|
+
*/
|
|
974
|
+
updateDefinition(id, saveWorkflowDefinitionRequest, options) {
|
|
975
|
+
return localVarFp.updateDefinition(id, saveWorkflowDefinitionRequest, options).then((request) => request(axios, basePath));
|
|
976
|
+
},
|
|
977
|
+
/**
|
|
978
|
+
*
|
|
979
|
+
* @summary Validate a definition without saving it
|
|
980
|
+
* @param {SaveWorkflowDefinitionRequest} saveWorkflowDefinitionRequest
|
|
981
|
+
* @param {*} [options] Override http request option.
|
|
982
|
+
* @throws {RequiredError}
|
|
983
|
+
*/
|
|
984
|
+
validateDefinition(saveWorkflowDefinitionRequest, options) {
|
|
985
|
+
return localVarFp.validateDefinition(saveWorkflowDefinitionRequest, options).then((request) => request(axios, basePath));
|
|
986
|
+
},
|
|
987
|
+
};
|
|
988
|
+
};
|
|
989
|
+
/**
|
|
990
|
+
* WorkflowsApi - object-oriented interface
|
|
991
|
+
*/
|
|
992
|
+
export class WorkflowsApi extends BaseAPI {
|
|
993
|
+
/**
|
|
994
|
+
*
|
|
995
|
+
* @summary Cancel a running instance (initiator)
|
|
996
|
+
* @param {string} id
|
|
997
|
+
* @param {CancelInstanceRequest} [cancelInstanceRequest]
|
|
998
|
+
* @param {*} [options] Override http request option.
|
|
999
|
+
* @throws {RequiredError}
|
|
1000
|
+
*/
|
|
1001
|
+
cancel(id, cancelInstanceRequest, options) {
|
|
1002
|
+
return WorkflowsApiFp(this.configuration).cancel(id, cancelInstanceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1003
|
+
}
|
|
1004
|
+
/**
|
|
1005
|
+
*
|
|
1006
|
+
* @summary Take a transition on a task I am a candidate of
|
|
1007
|
+
* @param {string} id
|
|
1008
|
+
* @param {CompleteTaskRequest} completeTaskRequest
|
|
1009
|
+
* @param {*} [options] Override http request option.
|
|
1010
|
+
* @throws {RequiredError}
|
|
1011
|
+
*/
|
|
1012
|
+
complete(id, completeTaskRequest, options) {
|
|
1013
|
+
return WorkflowsApiFp(this.configuration).complete(id, completeTaskRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
*
|
|
1017
|
+
* @summary Create a workflow definition (400 with the problem list when invalid)
|
|
1018
|
+
* @param {SaveWorkflowDefinitionRequest} saveWorkflowDefinitionRequest
|
|
1019
|
+
* @param {*} [options] Override http request option.
|
|
1020
|
+
* @throws {RequiredError}
|
|
1021
|
+
*/
|
|
1022
|
+
createDefinition(saveWorkflowDefinitionRequest, options) {
|
|
1023
|
+
return WorkflowsApiFp(this.configuration).createDefinition(saveWorkflowDefinitionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
*
|
|
1027
|
+
* @summary Delete a workflow definition (409 while instances are running)
|
|
1028
|
+
* @param {string} id
|
|
1029
|
+
* @param {*} [options] Override http request option.
|
|
1030
|
+
* @throws {RequiredError}
|
|
1031
|
+
*/
|
|
1032
|
+
deleteDefinition(id, options) {
|
|
1033
|
+
return WorkflowsApiFp(this.configuration).deleteDefinition(id, options).then((request) => request(this.axios, this.basePath));
|
|
1034
|
+
}
|
|
1035
|
+
/**
|
|
1036
|
+
*
|
|
1037
|
+
* @summary Get a workflow definition
|
|
1038
|
+
* @param {string} id
|
|
1039
|
+
* @param {*} [options] Override http request option.
|
|
1040
|
+
* @throws {RequiredError}
|
|
1041
|
+
*/
|
|
1042
|
+
getDefinition(id, options) {
|
|
1043
|
+
return WorkflowsApiFp(this.configuration).getDefinition(id, options).then((request) => request(this.axios, this.basePath));
|
|
1044
|
+
}
|
|
1045
|
+
/**
|
|
1046
|
+
*
|
|
1047
|
+
* @summary One instance with its snapshot spec, open task and history
|
|
1048
|
+
* @param {string} id
|
|
1049
|
+
* @param {*} [options] Override http request option.
|
|
1050
|
+
* @throws {RequiredError}
|
|
1051
|
+
*/
|
|
1052
|
+
getInstance(id, options) {
|
|
1053
|
+
return WorkflowsApiFp(this.configuration).getInstance(id, options).then((request) => request(this.axios, this.basePath));
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
*
|
|
1057
|
+
* @summary List workflow definitions
|
|
1058
|
+
* @param {boolean} [active]
|
|
1059
|
+
* @param {*} [options] Override http request option.
|
|
1060
|
+
* @throws {RequiredError}
|
|
1061
|
+
*/
|
|
1062
|
+
listDefinitions(active, options) {
|
|
1063
|
+
return WorkflowsApiFp(this.configuration).listDefinitions(active, options).then((request) => request(this.axios, this.basePath));
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
*
|
|
1067
|
+
* @summary List instances (monitor), newest first
|
|
1068
|
+
* @param {string} [documentId]
|
|
1069
|
+
* @param {string} [definitionId]
|
|
1070
|
+
* @param {ListInstancesStatusEnum} [status]
|
|
1071
|
+
* @param {string} [state]
|
|
1072
|
+
* @param {boolean} [mine]
|
|
1073
|
+
* @param {number} [page]
|
|
1074
|
+
* @param {number} [size]
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
*/
|
|
1078
|
+
listInstances(documentId, definitionId, status, state, mine, page, size, options) {
|
|
1079
|
+
return WorkflowsApiFp(this.configuration).listInstances(documentId, definitionId, status, state, mine, page, size, options).then((request) => request(this.axios, this.basePath));
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
*
|
|
1083
|
+
* @summary Open tasks I can act on (by e-mail or role)
|
|
1084
|
+
* @param {*} [options] Override http request option.
|
|
1085
|
+
* @throws {RequiredError}
|
|
1086
|
+
*/
|
|
1087
|
+
myTasks(options) {
|
|
1088
|
+
return WorkflowsApiFp(this.configuration).myTasks(options).then((request) => request(this.axios, this.basePath));
|
|
1089
|
+
}
|
|
1090
|
+
/**
|
|
1091
|
+
*
|
|
1092
|
+
* @summary Number of open tasks I can act on (sidebar badge)
|
|
1093
|
+
* @param {*} [options] Override http request option.
|
|
1094
|
+
* @throws {RequiredError}
|
|
1095
|
+
*/
|
|
1096
|
+
myTasksCount(options) {
|
|
1097
|
+
return WorkflowsApiFp(this.configuration).myTasksCount(options).then((request) => request(this.axios, this.basePath));
|
|
1098
|
+
}
|
|
1099
|
+
/**
|
|
1100
|
+
*
|
|
1101
|
+
* @summary Hand a task to other people (initiator or current candidate)
|
|
1102
|
+
* @param {string} id
|
|
1103
|
+
* @param {ReassignTaskRequest} reassignTaskRequest
|
|
1104
|
+
* @param {*} [options] Override http request option.
|
|
1105
|
+
* @throws {RequiredError}
|
|
1106
|
+
*/
|
|
1107
|
+
reassign(id, reassignTaskRequest, options) {
|
|
1108
|
+
return WorkflowsApiFp(this.configuration).reassign(id, reassignTaskRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1109
|
+
}
|
|
1110
|
+
/**
|
|
1111
|
+
*
|
|
1112
|
+
* @summary Start a workflow on a document (409 when one is already running)
|
|
1113
|
+
* @param {StartWorkflowRequest} startWorkflowRequest
|
|
1114
|
+
* @param {string} [acceptLanguage]
|
|
1115
|
+
* @param {*} [options] Override http request option.
|
|
1116
|
+
* @throws {RequiredError}
|
|
1117
|
+
*/
|
|
1118
|
+
start(startWorkflowRequest, acceptLanguage, options) {
|
|
1119
|
+
return WorkflowsApiFp(this.configuration).start(startWorkflowRequest, acceptLanguage, options).then((request) => request(this.axios, this.basePath));
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
*
|
|
1123
|
+
* @summary Counts for the monitor header
|
|
1124
|
+
* @param {*} [options] Override http request option.
|
|
1125
|
+
* @throws {RequiredError}
|
|
1126
|
+
*/
|
|
1127
|
+
summary(options) {
|
|
1128
|
+
return WorkflowsApiFp(this.configuration).summary(options).then((request) => request(this.axios, this.basePath));
|
|
1129
|
+
}
|
|
1130
|
+
/**
|
|
1131
|
+
*
|
|
1132
|
+
* @summary Update a workflow definition (running instances keep their snapshot)
|
|
1133
|
+
* @param {string} id
|
|
1134
|
+
* @param {SaveWorkflowDefinitionRequest} saveWorkflowDefinitionRequest
|
|
1135
|
+
* @param {*} [options] Override http request option.
|
|
1136
|
+
* @throws {RequiredError}
|
|
1137
|
+
*/
|
|
1138
|
+
updateDefinition(id, saveWorkflowDefinitionRequest, options) {
|
|
1139
|
+
return WorkflowsApiFp(this.configuration).updateDefinition(id, saveWorkflowDefinitionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1140
|
+
}
|
|
1141
|
+
/**
|
|
1142
|
+
*
|
|
1143
|
+
* @summary Validate a definition without saving it
|
|
1144
|
+
* @param {SaveWorkflowDefinitionRequest} saveWorkflowDefinitionRequest
|
|
1145
|
+
* @param {*} [options] Override http request option.
|
|
1146
|
+
* @throws {RequiredError}
|
|
1147
|
+
*/
|
|
1148
|
+
validateDefinition(saveWorkflowDefinitionRequest, options) {
|
|
1149
|
+
return WorkflowsApiFp(this.configuration).validateDefinition(saveWorkflowDefinitionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
export const ListInstancesStatusEnum = {
|
|
1153
|
+
Running: 'RUNNING',
|
|
1154
|
+
Completed: 'COMPLETED',
|
|
1155
|
+
Cancelled: 'CANCELLED',
|
|
1156
|
+
};
|