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