@vanillabp/bc-official-gui-client 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/apis/OfficialTasklistApi.d.ts +307 -0
- package/dist/apis/OfficialTasklistApi.js +340 -0
- package/dist/apis/OfficialWorkflowlistApi.d.ts +180 -0
- package/dist/apis/OfficialWorkflowlistApi.js +197 -0
- package/dist/apis/index.d.ts +23 -0
- package/dist/apis/index.js +2 -0
- package/dist/chunk-4TPCCB4K.js +45 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +3 -0
- package/dist/models/KwicRequest.d.ts +36 -0
- package/dist/models/KwicRequest.js +38 -0
- package/dist/models/KwicResult.d.ts +39 -0
- package/dist/models/KwicResult.js +37 -0
- package/dist/models/KwicResults.d.ts +36 -0
- package/dist/models/KwicResults.js +38 -0
- package/dist/models/Page.d.ts +51 -0
- package/dist/models/Page.js +43 -0
- package/dist/models/SearchQuery.d.ts +39 -0
- package/dist/models/SearchQuery.js +37 -0
- package/dist/models/Sex.d.ts +26 -0
- package/dist/models/Sex.js +21 -0
- package/dist/models/UiUriType.d.ts +25 -0
- package/dist/models/UiUriType.js +20 -0
- package/dist/models/User.d.ts +79 -0
- package/dist/models/User.js +56 -0
- package/dist/models/UserSearchResult.d.ts +38 -0
- package/dist/models/UserSearchResult.js +38 -0
- package/dist/models/UserStatus.d.ts +25 -0
- package/dist/models/UserStatus.js +20 -0
- package/dist/models/UserTask.d.ts +206 -0
- package/dist/models/UserTask.js +102 -0
- package/dist/models/UserTaskEvent.d.ts +45 -0
- package/dist/models/UserTaskEvent.js +40 -0
- package/dist/models/UserTaskIds.d.ts +33 -0
- package/dist/models/UserTaskIds.js +34 -0
- package/dist/models/UserTaskRetrieveMode.d.ts +28 -0
- package/dist/models/UserTaskRetrieveMode.js +23 -0
- package/dist/models/UserTasks.d.ts +50 -0
- package/dist/models/UserTasks.js +48 -0
- package/dist/models/UserTasksRequest.d.ts +66 -0
- package/dist/models/UserTasksRequest.js +48 -0
- package/dist/models/UserTasksUpdateRequest.d.ts +51 -0
- package/dist/models/UserTasksUpdateRequest.js +41 -0
- package/dist/models/Workflow.d.ts +148 -0
- package/dist/models/Workflow.js +83 -0
- package/dist/models/WorkflowEvent.d.ts +45 -0
- package/dist/models/WorkflowEvent.js +40 -0
- package/dist/models/Workflows.d.ts +56 -0
- package/dist/models/Workflows.js +51 -0
- package/dist/models/WorkflowsRequest.d.ts +60 -0
- package/dist/models/WorkflowsRequest.js +46 -0
- package/dist/models/WorkflowsUpdateRequest.d.ts +60 -0
- package/dist/models/WorkflowsUpdateRequest.js +48 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +22 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +315 -0
- package/package.json +32 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { InitOverrideFunction, ApiResponse, BaseAPI } from '../runtime.js';
|
|
2
|
+
import { KwicRequest } from '../models/KwicRequest.js';
|
|
3
|
+
import { KwicResults } from '../models/KwicResults.js';
|
|
4
|
+
import { UserTask } from '../models/UserTask.js';
|
|
5
|
+
import { UserTasksRequest } from '../models/UserTasksRequest.js';
|
|
6
|
+
import { Workflow } from '../models/Workflow.js';
|
|
7
|
+
import { Workflows } from '../models/Workflows.js';
|
|
8
|
+
import { WorkflowsRequest } from '../models/WorkflowsRequest.js';
|
|
9
|
+
import { WorkflowsUpdateRequest } from '../models/WorkflowsUpdateRequest.js';
|
|
10
|
+
import '../models/SearchQuery.js';
|
|
11
|
+
import '../models/KwicResult.js';
|
|
12
|
+
import '../models/UiUriType.js';
|
|
13
|
+
import '../models/UserTaskRetrieveMode.js';
|
|
14
|
+
import '../models/Page.js';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* gui
|
|
18
|
+
* Official GUI API
|
|
19
|
+
*
|
|
20
|
+
* The version of the OpenAPI document: 1.0
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
interface GetKwicResultsRequest {
|
|
29
|
+
kwicRequest: KwicRequest;
|
|
30
|
+
initialTimestamp?: Date;
|
|
31
|
+
path?: string;
|
|
32
|
+
query?: string;
|
|
33
|
+
}
|
|
34
|
+
interface GetUserTasksOfWorkflowRequest {
|
|
35
|
+
workflowId: string;
|
|
36
|
+
llatcup: boolean;
|
|
37
|
+
userTasksRequest: UserTasksRequest;
|
|
38
|
+
}
|
|
39
|
+
interface GetWorkflowRequest {
|
|
40
|
+
workflowId: string;
|
|
41
|
+
}
|
|
42
|
+
interface GetWorkflowsRequest {
|
|
43
|
+
workflowsRequest: WorkflowsRequest;
|
|
44
|
+
requestId?: string;
|
|
45
|
+
initialTimestamp?: Date;
|
|
46
|
+
}
|
|
47
|
+
interface GetWorkflowsUpdateRequest {
|
|
48
|
+
workflowsUpdateRequest: WorkflowsUpdateRequest;
|
|
49
|
+
requestId?: string;
|
|
50
|
+
initialTimestamp?: Date;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* OfficialWorkflowlistApi - interface
|
|
54
|
+
*
|
|
55
|
+
* @export
|
|
56
|
+
* @interface OfficialWorkflowlistApiInterface
|
|
57
|
+
*/
|
|
58
|
+
interface OfficialWorkflowlistApiInterface {
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @summary Kwic results
|
|
62
|
+
* @param {KwicRequest} kwicRequest
|
|
63
|
+
* @param {Date} [initialTimestamp]
|
|
64
|
+
* @param {string} [path]
|
|
65
|
+
* @param {string} [query]
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
* @memberof OfficialWorkflowlistApiInterface
|
|
69
|
+
*/
|
|
70
|
+
getKwicResultsRaw(requestParameters: GetKwicResultsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<KwicResults>>;
|
|
71
|
+
/**
|
|
72
|
+
* Kwic results
|
|
73
|
+
*/
|
|
74
|
+
getKwicResults(requestParameters: GetKwicResultsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<KwicResults>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @summary Fetch usertasks for the workflow
|
|
78
|
+
* @param {string} workflowId
|
|
79
|
+
* @param {boolean} llatcup
|
|
80
|
+
* @param {UserTasksRequest} userTasksRequest
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
* @memberof OfficialWorkflowlistApiInterface
|
|
84
|
+
*/
|
|
85
|
+
getUserTasksOfWorkflowRaw(requestParameters: GetUserTasksOfWorkflowRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Array<UserTask>>>;
|
|
86
|
+
/**
|
|
87
|
+
* Fetch usertasks for the workflow
|
|
88
|
+
*/
|
|
89
|
+
getUserTasksOfWorkflow(requestParameters: GetUserTasksOfWorkflowRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Array<UserTask>>;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @summary Fetch data of one single workflow
|
|
93
|
+
* @param {string} workflowId
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
* @memberof OfficialWorkflowlistApiInterface
|
|
97
|
+
*/
|
|
98
|
+
getWorkflowRaw(requestParameters: GetWorkflowRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Workflow>>;
|
|
99
|
+
/**
|
|
100
|
+
* Fetch data of one single workflow
|
|
101
|
+
*/
|
|
102
|
+
getWorkflow(requestParameters: GetWorkflowRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Workflow>;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @summary Workflows to be shown in a list view
|
|
106
|
+
* @param {WorkflowsRequest} workflowsRequest
|
|
107
|
+
* @param {string} [requestId]
|
|
108
|
+
* @param {Date} [initialTimestamp]
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
* @memberof OfficialWorkflowlistApiInterface
|
|
112
|
+
*/
|
|
113
|
+
getWorkflowsRaw(requestParameters: GetWorkflowsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Workflows>>;
|
|
114
|
+
/**
|
|
115
|
+
* Workflows to be shown in a list view
|
|
116
|
+
*/
|
|
117
|
+
getWorkflows(requestParameters: GetWorkflowsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Workflows>;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @summary Updated list of workflows
|
|
121
|
+
* @param {WorkflowsUpdateRequest} workflowsUpdateRequest
|
|
122
|
+
* @param {string} [requestId]
|
|
123
|
+
* @param {Date} [initialTimestamp]
|
|
124
|
+
* @param {*} [options] Override http request option.
|
|
125
|
+
* @throws {RequiredError}
|
|
126
|
+
* @memberof OfficialWorkflowlistApiInterface
|
|
127
|
+
*/
|
|
128
|
+
getWorkflowsUpdateRaw(requestParameters: GetWorkflowsUpdateRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Workflows>>;
|
|
129
|
+
/**
|
|
130
|
+
* Updated list of workflows
|
|
131
|
+
*/
|
|
132
|
+
getWorkflowsUpdate(requestParameters: GetWorkflowsUpdateRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Workflows>;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
*/
|
|
137
|
+
declare class OfficialWorkflowlistApi extends BaseAPI implements OfficialWorkflowlistApiInterface {
|
|
138
|
+
/**
|
|
139
|
+
* Kwic results
|
|
140
|
+
*/
|
|
141
|
+
getKwicResultsRaw(requestParameters: GetKwicResultsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<KwicResults>>;
|
|
142
|
+
/**
|
|
143
|
+
* Kwic results
|
|
144
|
+
*/
|
|
145
|
+
getKwicResults(requestParameters: GetKwicResultsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<KwicResults>;
|
|
146
|
+
/**
|
|
147
|
+
* Fetch usertasks for the workflow
|
|
148
|
+
*/
|
|
149
|
+
getUserTasksOfWorkflowRaw(requestParameters: GetUserTasksOfWorkflowRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Array<UserTask>>>;
|
|
150
|
+
/**
|
|
151
|
+
* Fetch usertasks for the workflow
|
|
152
|
+
*/
|
|
153
|
+
getUserTasksOfWorkflow(requestParameters: GetUserTasksOfWorkflowRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Array<UserTask>>;
|
|
154
|
+
/**
|
|
155
|
+
* Fetch data of one single workflow
|
|
156
|
+
*/
|
|
157
|
+
getWorkflowRaw(requestParameters: GetWorkflowRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Workflow>>;
|
|
158
|
+
/**
|
|
159
|
+
* Fetch data of one single workflow
|
|
160
|
+
*/
|
|
161
|
+
getWorkflow(requestParameters: GetWorkflowRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Workflow>;
|
|
162
|
+
/**
|
|
163
|
+
* Workflows to be shown in a list view
|
|
164
|
+
*/
|
|
165
|
+
getWorkflowsRaw(requestParameters: GetWorkflowsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Workflows>>;
|
|
166
|
+
/**
|
|
167
|
+
* Workflows to be shown in a list view
|
|
168
|
+
*/
|
|
169
|
+
getWorkflows(requestParameters: GetWorkflowsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Workflows>;
|
|
170
|
+
/**
|
|
171
|
+
* Updated list of workflows
|
|
172
|
+
*/
|
|
173
|
+
getWorkflowsUpdateRaw(requestParameters: GetWorkflowsUpdateRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Workflows>>;
|
|
174
|
+
/**
|
|
175
|
+
* Updated list of workflows
|
|
176
|
+
*/
|
|
177
|
+
getWorkflowsUpdate(requestParameters: GetWorkflowsUpdateRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Workflows>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export { GetKwicResultsRequest, GetUserTasksOfWorkflowRequest, GetWorkflowRequest, GetWorkflowsRequest, GetWorkflowsUpdateRequest, OfficialWorkflowlistApi, OfficialWorkflowlistApiInterface };
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__async
|
|
3
|
+
} from "../chunk-4TPCCB4K.js";
|
|
4
|
+
import * as runtime from "../runtime.js";
|
|
5
|
+
import {
|
|
6
|
+
KwicRequestToJSON,
|
|
7
|
+
KwicResultsFromJSON,
|
|
8
|
+
UserTaskFromJSON,
|
|
9
|
+
UserTasksRequestToJSON,
|
|
10
|
+
WorkflowFromJSON,
|
|
11
|
+
WorkflowsFromJSON,
|
|
12
|
+
WorkflowsRequestToJSON,
|
|
13
|
+
WorkflowsUpdateRequestToJSON
|
|
14
|
+
} from "../models/index.js";
|
|
15
|
+
class OfficialWorkflowlistApi extends runtime.BaseAPI {
|
|
16
|
+
/**
|
|
17
|
+
* Kwic results
|
|
18
|
+
*/
|
|
19
|
+
getKwicResultsRaw(requestParameters, initOverrides) {
|
|
20
|
+
return __async(this, null, function* () {
|
|
21
|
+
if (requestParameters.kwicRequest === null || requestParameters.kwicRequest === void 0) {
|
|
22
|
+
throw new runtime.RequiredError("kwicRequest", "Required parameter requestParameters.kwicRequest was null or undefined when calling getKwicResults.");
|
|
23
|
+
}
|
|
24
|
+
const queryParameters = {};
|
|
25
|
+
if (requestParameters.initialTimestamp !== void 0) {
|
|
26
|
+
queryParameters["initialTimestamp"] = requestParameters.initialTimestamp.toISOString();
|
|
27
|
+
}
|
|
28
|
+
if (requestParameters.path !== void 0) {
|
|
29
|
+
queryParameters["path"] = requestParameters.path;
|
|
30
|
+
}
|
|
31
|
+
if (requestParameters.query !== void 0) {
|
|
32
|
+
queryParameters["query"] = requestParameters.query;
|
|
33
|
+
}
|
|
34
|
+
const headerParameters = {};
|
|
35
|
+
headerParameters["Content-Type"] = "application/json";
|
|
36
|
+
const response = yield this.request({
|
|
37
|
+
path: `/workflow`,
|
|
38
|
+
method: "OPTIONS",
|
|
39
|
+
headers: headerParameters,
|
|
40
|
+
query: queryParameters,
|
|
41
|
+
body: KwicRequestToJSON(requestParameters.kwicRequest)
|
|
42
|
+
}, initOverrides);
|
|
43
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => KwicResultsFromJSON(jsonValue));
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Kwic results
|
|
48
|
+
*/
|
|
49
|
+
getKwicResults(requestParameters, initOverrides) {
|
|
50
|
+
return __async(this, null, function* () {
|
|
51
|
+
const response = yield this.getKwicResultsRaw(requestParameters, initOverrides);
|
|
52
|
+
return yield response.value();
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Fetch usertasks for the workflow
|
|
57
|
+
*/
|
|
58
|
+
getUserTasksOfWorkflowRaw(requestParameters, initOverrides) {
|
|
59
|
+
return __async(this, null, function* () {
|
|
60
|
+
if (requestParameters.workflowId === null || requestParameters.workflowId === void 0) {
|
|
61
|
+
throw new runtime.RequiredError("workflowId", "Required parameter requestParameters.workflowId was null or undefined when calling getUserTasksOfWorkflow.");
|
|
62
|
+
}
|
|
63
|
+
if (requestParameters.llatcup === null || requestParameters.llatcup === void 0) {
|
|
64
|
+
throw new runtime.RequiredError("llatcup", "Required parameter requestParameters.llatcup was null or undefined when calling getUserTasksOfWorkflow.");
|
|
65
|
+
}
|
|
66
|
+
if (requestParameters.userTasksRequest === null || requestParameters.userTasksRequest === void 0) {
|
|
67
|
+
throw new runtime.RequiredError("userTasksRequest", "Required parameter requestParameters.userTasksRequest was null or undefined when calling getUserTasksOfWorkflow.");
|
|
68
|
+
}
|
|
69
|
+
const queryParameters = {};
|
|
70
|
+
if (requestParameters.llatcup !== void 0) {
|
|
71
|
+
queryParameters["llatcup"] = requestParameters.llatcup;
|
|
72
|
+
}
|
|
73
|
+
const headerParameters = {};
|
|
74
|
+
headerParameters["Content-Type"] = "application/json";
|
|
75
|
+
const response = yield this.request({
|
|
76
|
+
path: `/workflow/{workflowId}/usertasks`.replace(`{${"workflowId"}}`, encodeURIComponent(String(requestParameters.workflowId))),
|
|
77
|
+
method: "POST",
|
|
78
|
+
headers: headerParameters,
|
|
79
|
+
query: queryParameters,
|
|
80
|
+
body: UserTasksRequestToJSON(requestParameters.userTasksRequest)
|
|
81
|
+
}, initOverrides);
|
|
82
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UserTaskFromJSON));
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Fetch usertasks for the workflow
|
|
87
|
+
*/
|
|
88
|
+
getUserTasksOfWorkflow(requestParameters, initOverrides) {
|
|
89
|
+
return __async(this, null, function* () {
|
|
90
|
+
const response = yield this.getUserTasksOfWorkflowRaw(requestParameters, initOverrides);
|
|
91
|
+
return yield response.value();
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Fetch data of one single workflow
|
|
96
|
+
*/
|
|
97
|
+
getWorkflowRaw(requestParameters, initOverrides) {
|
|
98
|
+
return __async(this, null, function* () {
|
|
99
|
+
if (requestParameters.workflowId === null || requestParameters.workflowId === void 0) {
|
|
100
|
+
throw new runtime.RequiredError("workflowId", "Required parameter requestParameters.workflowId was null or undefined when calling getWorkflow.");
|
|
101
|
+
}
|
|
102
|
+
const queryParameters = {};
|
|
103
|
+
const headerParameters = {};
|
|
104
|
+
const response = yield this.request({
|
|
105
|
+
path: `/workflow/{workflowId}`.replace(`{${"workflowId"}}`, encodeURIComponent(String(requestParameters.workflowId))),
|
|
106
|
+
method: "GET",
|
|
107
|
+
headers: headerParameters,
|
|
108
|
+
query: queryParameters
|
|
109
|
+
}, initOverrides);
|
|
110
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowFromJSON(jsonValue));
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Fetch data of one single workflow
|
|
115
|
+
*/
|
|
116
|
+
getWorkflow(requestParameters, initOverrides) {
|
|
117
|
+
return __async(this, null, function* () {
|
|
118
|
+
const response = yield this.getWorkflowRaw(requestParameters, initOverrides);
|
|
119
|
+
return yield response.value();
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Workflows to be shown in a list view
|
|
124
|
+
*/
|
|
125
|
+
getWorkflowsRaw(requestParameters, initOverrides) {
|
|
126
|
+
return __async(this, null, function* () {
|
|
127
|
+
if (requestParameters.workflowsRequest === null || requestParameters.workflowsRequest === void 0) {
|
|
128
|
+
throw new runtime.RequiredError("workflowsRequest", "Required parameter requestParameters.workflowsRequest was null or undefined when calling getWorkflows.");
|
|
129
|
+
}
|
|
130
|
+
const queryParameters = {};
|
|
131
|
+
if (requestParameters.requestId !== void 0) {
|
|
132
|
+
queryParameters["requestId"] = requestParameters.requestId;
|
|
133
|
+
}
|
|
134
|
+
if (requestParameters.initialTimestamp !== void 0) {
|
|
135
|
+
queryParameters["initialTimestamp"] = requestParameters.initialTimestamp.toISOString();
|
|
136
|
+
}
|
|
137
|
+
const headerParameters = {};
|
|
138
|
+
headerParameters["Content-Type"] = "application/json";
|
|
139
|
+
const response = yield this.request({
|
|
140
|
+
path: `/workflow`,
|
|
141
|
+
method: "POST",
|
|
142
|
+
headers: headerParameters,
|
|
143
|
+
query: queryParameters,
|
|
144
|
+
body: WorkflowsRequestToJSON(requestParameters.workflowsRequest)
|
|
145
|
+
}, initOverrides);
|
|
146
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowsFromJSON(jsonValue));
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Workflows to be shown in a list view
|
|
151
|
+
*/
|
|
152
|
+
getWorkflows(requestParameters, initOverrides) {
|
|
153
|
+
return __async(this, null, function* () {
|
|
154
|
+
const response = yield this.getWorkflowsRaw(requestParameters, initOverrides);
|
|
155
|
+
return yield response.value();
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Updated list of workflows
|
|
160
|
+
*/
|
|
161
|
+
getWorkflowsUpdateRaw(requestParameters, initOverrides) {
|
|
162
|
+
return __async(this, null, function* () {
|
|
163
|
+
if (requestParameters.workflowsUpdateRequest === null || requestParameters.workflowsUpdateRequest === void 0) {
|
|
164
|
+
throw new runtime.RequiredError("workflowsUpdateRequest", "Required parameter requestParameters.workflowsUpdateRequest was null or undefined when calling getWorkflowsUpdate.");
|
|
165
|
+
}
|
|
166
|
+
const queryParameters = {};
|
|
167
|
+
if (requestParameters.requestId !== void 0) {
|
|
168
|
+
queryParameters["requestId"] = requestParameters.requestId;
|
|
169
|
+
}
|
|
170
|
+
if (requestParameters.initialTimestamp !== void 0) {
|
|
171
|
+
queryParameters["initialTimestamp"] = requestParameters.initialTimestamp.toISOString();
|
|
172
|
+
}
|
|
173
|
+
const headerParameters = {};
|
|
174
|
+
headerParameters["Content-Type"] = "application/json";
|
|
175
|
+
const response = yield this.request({
|
|
176
|
+
path: `/workflow`,
|
|
177
|
+
method: "PUT",
|
|
178
|
+
headers: headerParameters,
|
|
179
|
+
query: queryParameters,
|
|
180
|
+
body: WorkflowsUpdateRequestToJSON(requestParameters.workflowsUpdateRequest)
|
|
181
|
+
}, initOverrides);
|
|
182
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowsFromJSON(jsonValue));
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Updated list of workflows
|
|
187
|
+
*/
|
|
188
|
+
getWorkflowsUpdate(requestParameters, initOverrides) {
|
|
189
|
+
return __async(this, null, function* () {
|
|
190
|
+
const response = yield this.getWorkflowsUpdateRaw(requestParameters, initOverrides);
|
|
191
|
+
return yield response.value();
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
export {
|
|
196
|
+
OfficialWorkflowlistApi
|
|
197
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { AssignTaskRequest, AssignTasksRequest, ClaimTaskRequest, ClaimTasksRequest, FindUsersRequest, GetUserTaskRequest, GetUserTasksRequest, GetUserTasksUpdateRequest, MarkTaskAsReadRequest, MarkTasksAsReadRequest, OfficialTasklistApi, OfficialTasklistApiInterface } from './OfficialTasklistApi.js';
|
|
2
|
+
export { GetKwicResultsRequest, GetUserTasksOfWorkflowRequest, GetWorkflowRequest, GetWorkflowsRequest, GetWorkflowsUpdateRequest, OfficialWorkflowlistApi, OfficialWorkflowlistApiInterface } from './OfficialWorkflowlistApi.js';
|
|
3
|
+
import '../runtime.js';
|
|
4
|
+
import '../models/UserSearchResult.js';
|
|
5
|
+
import '../models/User.js';
|
|
6
|
+
import '../models/Sex.js';
|
|
7
|
+
import '../models/UserStatus.js';
|
|
8
|
+
import '../models/UserTask.js';
|
|
9
|
+
import '../models/UiUriType.js';
|
|
10
|
+
import '../models/UserTaskIds.js';
|
|
11
|
+
import '../models/UserTasks.js';
|
|
12
|
+
import '../models/Page.js';
|
|
13
|
+
import '../models/UserTasksRequest.js';
|
|
14
|
+
import '../models/UserTaskRetrieveMode.js';
|
|
15
|
+
import '../models/UserTasksUpdateRequest.js';
|
|
16
|
+
import '../models/KwicRequest.js';
|
|
17
|
+
import '../models/SearchQuery.js';
|
|
18
|
+
import '../models/KwicResults.js';
|
|
19
|
+
import '../models/KwicResult.js';
|
|
20
|
+
import '../models/Workflow.js';
|
|
21
|
+
import '../models/Workflows.js';
|
|
22
|
+
import '../models/WorkflowsRequest.js';
|
|
23
|
+
import '../models/WorkflowsUpdateRequest.js';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __async = (__this, __arguments, generator) => {
|
|
21
|
+
return new Promise((resolve, reject) => {
|
|
22
|
+
var fulfilled = (value) => {
|
|
23
|
+
try {
|
|
24
|
+
step(generator.next(value));
|
|
25
|
+
} catch (e) {
|
|
26
|
+
reject(e);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
var rejected = (value) => {
|
|
30
|
+
try {
|
|
31
|
+
step(generator.throw(value));
|
|
32
|
+
} catch (e) {
|
|
33
|
+
reject(e);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
37
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
__spreadValues,
|
|
43
|
+
__spreadProps,
|
|
44
|
+
__async
|
|
45
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, ConfigurationParameters, Consume, DefaultConfig, ErrorContext, FetchAPI, FetchError, FetchParams, HTTPBody, HTTPHeaders, HTTPMethod, HTTPQuery, HTTPRequestInit, InitOverrideFunction, JSONApiResponse, Json, Middleware, ModelPropertyNaming, RequestContext, RequestOpts, RequiredError, ResponseContext, ResponseError, ResponseTransformer, TextApiResponse, VoidApiResponse, canConsumeForm, exists, mapValues, querystring } from './runtime.js';
|
|
2
|
+
export { AssignTaskRequest, AssignTasksRequest, ClaimTaskRequest, ClaimTasksRequest, FindUsersRequest, GetUserTaskRequest, GetUserTasksRequest, GetUserTasksUpdateRequest, MarkTaskAsReadRequest, MarkTasksAsReadRequest, OfficialTasklistApi, OfficialTasklistApiInterface } from './apis/OfficialTasklistApi.js';
|
|
3
|
+
export { GetKwicResultsRequest, GetUserTasksOfWorkflowRequest, GetWorkflowRequest, GetWorkflowsRequest, GetWorkflowsUpdateRequest, OfficialWorkflowlistApi, OfficialWorkflowlistApiInterface } from './apis/OfficialWorkflowlistApi.js';
|
|
4
|
+
export { KwicRequest, KwicRequestFromJSON, KwicRequestFromJSONTyped, KwicRequestToJSON, instanceOfKwicRequest } from './models/KwicRequest.js';
|
|
5
|
+
export { KwicResult, KwicResultFromJSON, KwicResultFromJSONTyped, KwicResultToJSON, instanceOfKwicResult } from './models/KwicResult.js';
|
|
6
|
+
export { KwicResults, KwicResultsFromJSON, KwicResultsFromJSONTyped, KwicResultsToJSON, instanceOfKwicResults } from './models/KwicResults.js';
|
|
7
|
+
export { Page, PageFromJSON, PageFromJSONTyped, PageToJSON, instanceOfPage } from './models/Page.js';
|
|
8
|
+
export { SearchQuery, SearchQueryFromJSON, SearchQueryFromJSONTyped, SearchQueryToJSON, instanceOfSearchQuery } from './models/SearchQuery.js';
|
|
9
|
+
export { Sex, SexFromJSON, SexFromJSONTyped, SexToJSON } from './models/Sex.js';
|
|
10
|
+
export { UiUriType, UiUriTypeFromJSON, UiUriTypeFromJSONTyped, UiUriTypeToJSON } from './models/UiUriType.js';
|
|
11
|
+
export { User, UserFromJSON, UserFromJSONTyped, UserToJSON, instanceOfUser } from './models/User.js';
|
|
12
|
+
export { UserSearchResult, UserSearchResultFromJSON, UserSearchResultFromJSONTyped, UserSearchResultToJSON, instanceOfUserSearchResult } from './models/UserSearchResult.js';
|
|
13
|
+
export { UserStatus, UserStatusFromJSON, UserStatusFromJSONTyped, UserStatusToJSON } from './models/UserStatus.js';
|
|
14
|
+
export { UserTask, UserTaskFromJSON, UserTaskFromJSONTyped, UserTaskToJSON, instanceOfUserTask } from './models/UserTask.js';
|
|
15
|
+
export { UserTaskEvent, UserTaskEventFromJSON, UserTaskEventFromJSONTyped, UserTaskEventToJSON, instanceOfUserTaskEvent } from './models/UserTaskEvent.js';
|
|
16
|
+
export { UserTaskIds, UserTaskIdsFromJSON, UserTaskIdsFromJSONTyped, UserTaskIdsToJSON, instanceOfUserTaskIds } from './models/UserTaskIds.js';
|
|
17
|
+
export { UserTaskRetrieveMode, UserTaskRetrieveModeFromJSON, UserTaskRetrieveModeFromJSONTyped, UserTaskRetrieveModeToJSON } from './models/UserTaskRetrieveMode.js';
|
|
18
|
+
export { UserTasks, UserTasksFromJSON, UserTasksFromJSONTyped, UserTasksToJSON, instanceOfUserTasks } from './models/UserTasks.js';
|
|
19
|
+
export { UserTasksRequest, UserTasksRequestFromJSON, UserTasksRequestFromJSONTyped, UserTasksRequestToJSON, instanceOfUserTasksRequest } from './models/UserTasksRequest.js';
|
|
20
|
+
export { UserTasksUpdateRequest, UserTasksUpdateRequestFromJSON, UserTasksUpdateRequestFromJSONTyped, UserTasksUpdateRequestToJSON, instanceOfUserTasksUpdateRequest } from './models/UserTasksUpdateRequest.js';
|
|
21
|
+
export { Workflow, WorkflowFromJSON, WorkflowFromJSONTyped, WorkflowToJSON, instanceOfWorkflow } from './models/Workflow.js';
|
|
22
|
+
export { WorkflowEvent, WorkflowEventFromJSON, WorkflowEventFromJSONTyped, WorkflowEventToJSON, instanceOfWorkflowEvent } from './models/WorkflowEvent.js';
|
|
23
|
+
export { Workflows, WorkflowsFromJSON, WorkflowsFromJSONTyped, WorkflowsToJSON, instanceOfWorkflows } from './models/Workflows.js';
|
|
24
|
+
export { WorkflowsRequest, WorkflowsRequestFromJSON, WorkflowsRequestFromJSONTyped, WorkflowsRequestToJSON, instanceOfWorkflowsRequest } from './models/WorkflowsRequest.js';
|
|
25
|
+
export { WorkflowsUpdateRequest, WorkflowsUpdateRequestFromJSON, WorkflowsUpdateRequestFromJSONTyped, WorkflowsUpdateRequestToJSON, instanceOfWorkflowsUpdateRequest } from './models/WorkflowsUpdateRequest.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SearchQuery } from './SearchQuery.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* gui
|
|
5
|
+
* Official GUI API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface KwicRequest
|
|
19
|
+
*/
|
|
20
|
+
interface KwicRequest {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<SearchQuery>}
|
|
24
|
+
* @memberof KwicRequest
|
|
25
|
+
*/
|
|
26
|
+
searchQueries?: Array<SearchQuery>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the KwicRequest interface.
|
|
30
|
+
*/
|
|
31
|
+
declare function instanceOfKwicRequest(value: object): boolean;
|
|
32
|
+
declare function KwicRequestFromJSON(json: any): KwicRequest;
|
|
33
|
+
declare function KwicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): KwicRequest;
|
|
34
|
+
declare function KwicRequestToJSON(value?: KwicRequest | null): any;
|
|
35
|
+
|
|
36
|
+
export { KwicRequest, KwicRequestFromJSON, KwicRequestFromJSONTyped, KwicRequestToJSON, instanceOfKwicRequest };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import "../chunk-4TPCCB4K.js";
|
|
2
|
+
import { exists } from "../runtime.js";
|
|
3
|
+
import {
|
|
4
|
+
SearchQueryFromJSON,
|
|
5
|
+
SearchQueryToJSON
|
|
6
|
+
} from "./SearchQuery.js";
|
|
7
|
+
function instanceOfKwicRequest(value) {
|
|
8
|
+
let isInstance = true;
|
|
9
|
+
return isInstance;
|
|
10
|
+
}
|
|
11
|
+
function KwicRequestFromJSON(json) {
|
|
12
|
+
return KwicRequestFromJSONTyped(json, false);
|
|
13
|
+
}
|
|
14
|
+
function KwicRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
+
if (json === void 0 || json === null) {
|
|
16
|
+
return json;
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
"searchQueries": !exists(json, "searchQueries") ? void 0 : json["searchQueries"].map(SearchQueryFromJSON)
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function KwicRequestToJSON(value) {
|
|
23
|
+
if (value === void 0) {
|
|
24
|
+
return void 0;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
"searchQueries": value.searchQueries === void 0 ? void 0 : value.searchQueries.map(SearchQueryToJSON)
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
KwicRequestFromJSON,
|
|
35
|
+
KwicRequestFromJSONTyped,
|
|
36
|
+
KwicRequestToJSON,
|
|
37
|
+
instanceOfKwicRequest
|
|
38
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* gui
|
|
3
|
+
* Official GUI API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface KwicResult
|
|
16
|
+
*/
|
|
17
|
+
interface KwicResult {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof KwicResult
|
|
22
|
+
*/
|
|
23
|
+
item: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof KwicResult
|
|
28
|
+
*/
|
|
29
|
+
count: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the KwicResult interface.
|
|
33
|
+
*/
|
|
34
|
+
declare function instanceOfKwicResult(value: object): boolean;
|
|
35
|
+
declare function KwicResultFromJSON(json: any): KwicResult;
|
|
36
|
+
declare function KwicResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): KwicResult;
|
|
37
|
+
declare function KwicResultToJSON(value?: KwicResult | null): any;
|
|
38
|
+
|
|
39
|
+
export { KwicResult, KwicResultFromJSON, KwicResultFromJSONTyped, KwicResultToJSON, instanceOfKwicResult };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import "../chunk-4TPCCB4K.js";
|
|
2
|
+
function instanceOfKwicResult(value) {
|
|
3
|
+
let isInstance = true;
|
|
4
|
+
isInstance = isInstance && "item" in value;
|
|
5
|
+
isInstance = isInstance && "count" in value;
|
|
6
|
+
return isInstance;
|
|
7
|
+
}
|
|
8
|
+
function KwicResultFromJSON(json) {
|
|
9
|
+
return KwicResultFromJSONTyped(json, false);
|
|
10
|
+
}
|
|
11
|
+
function KwicResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if (json === void 0 || json === null) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
"item": json["item"],
|
|
17
|
+
"count": json["count"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function KwicResultToJSON(value) {
|
|
21
|
+
if (value === void 0) {
|
|
22
|
+
return void 0;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
"item": value.item,
|
|
29
|
+
"count": value.count
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
KwicResultFromJSON,
|
|
34
|
+
KwicResultFromJSONTyped,
|
|
35
|
+
KwicResultToJSON,
|
|
36
|
+
instanceOfKwicResult
|
|
37
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { KwicResult } from './KwicResult.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* gui
|
|
5
|
+
* Official GUI API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface KwicResults
|
|
19
|
+
*/
|
|
20
|
+
interface KwicResults {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<KwicResult>}
|
|
24
|
+
* @memberof KwicResults
|
|
25
|
+
*/
|
|
26
|
+
result: Array<KwicResult>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the KwicResults interface.
|
|
30
|
+
*/
|
|
31
|
+
declare function instanceOfKwicResults(value: object): boolean;
|
|
32
|
+
declare function KwicResultsFromJSON(json: any): KwicResults;
|
|
33
|
+
declare function KwicResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): KwicResults;
|
|
34
|
+
declare function KwicResultsToJSON(value?: KwicResults | null): any;
|
|
35
|
+
|
|
36
|
+
export { KwicResults, KwicResultsFromJSON, KwicResultsFromJSONTyped, KwicResultsToJSON, instanceOfKwicResults };
|