@openfilz-sdk/typescript 1.3.26 → 1.3.28
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/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +3 -3
- package/api/workflows-api.ts +19 -11
- package/dist/api/workflows-api.d.ts +12 -8
- package/dist/api/workflows-api.js +18 -11
- package/dist/esm/api/workflows-api.d.ts +12 -8
- package/dist/esm/api/workflows-api.js +18 -11
- package/docs/WorkflowsApi.md +5 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1c7c56719bc45c882e40820c74690ed1500c8829eee4e34544ddf218bbcbb5b3
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @openfilz-sdk/typescript@1.3.
|
|
1
|
+
## @openfilz-sdk/typescript@1.3.28
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @openfilz-sdk/typescript@1.3.
|
|
39
|
+
npm install @openfilz-sdk/typescript@1.3.28 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -167,7 +167,7 @@ Class | Method | HTTP request | Description
|
|
|
167
167
|
*WorkflowsApi* | [**deleteDefinition**](docs/WorkflowsApi.md#deletedefinition) | **DELETE** /api/v1/workflows/definitions/{id} | Delete a workflow definition (409 while instances are running)
|
|
168
168
|
*WorkflowsApi* | [**getDefinition**](docs/WorkflowsApi.md#getdefinition) | **GET** /api/v1/workflows/definitions/{id} | Get a workflow definition
|
|
169
169
|
*WorkflowsApi* | [**getInstance**](docs/WorkflowsApi.md#getinstance) | **GET** /api/v1/workflows/instances/{id} | One instance with its snapshot spec, open task and history
|
|
170
|
-
*WorkflowsApi* | [**listDefinitions**](docs/WorkflowsApi.md#listdefinitions) | **GET** /api/v1/workflows/definitions | List workflow definitions
|
|
170
|
+
*WorkflowsApi* | [**listDefinitions**](docs/WorkflowsApi.md#listdefinitions) | **GET** /api/v1/workflows/definitions | List the workflow definitions the caller may see (mine = created by the caller)
|
|
171
171
|
*WorkflowsApi* | [**listInstances**](docs/WorkflowsApi.md#listinstances) | **GET** /api/v1/workflows/instances | List instances (monitor), newest first
|
|
172
172
|
*WorkflowsApi* | [**myTasks**](docs/WorkflowsApi.md#mytasks) | **GET** /api/v1/workflows/tasks/mine | Open tasks I can act on (by e-mail or role)
|
|
173
173
|
*WorkflowsApi* | [**myTasksCount**](docs/WorkflowsApi.md#mytaskscount) | **GET** /api/v1/workflows/tasks/mine/count | Number of open tasks I can act on (sidebar badge)
|
package/api/workflows-api.ts
CHANGED
|
@@ -290,12 +290,13 @@ export const WorkflowsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
290
290
|
},
|
|
291
291
|
/**
|
|
292
292
|
*
|
|
293
|
-
* @summary List workflow definitions
|
|
293
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
294
294
|
* @param {boolean} [active]
|
|
295
|
+
* @param {boolean} [mine]
|
|
295
296
|
* @param {*} [options] Override http request option.
|
|
296
297
|
* @throws {RequiredError}
|
|
297
298
|
*/
|
|
298
|
-
listDefinitions: async (active?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
299
|
+
listDefinitions: async (active?: boolean, mine?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
299
300
|
const localVarPath = `/api/v1/workflows/definitions`;
|
|
300
301
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
301
302
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -316,6 +317,10 @@ export const WorkflowsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
316
317
|
localVarQueryParameter['active'] = active;
|
|
317
318
|
}
|
|
318
319
|
|
|
320
|
+
if (mine !== undefined) {
|
|
321
|
+
localVarQueryParameter['mine'] = mine;
|
|
322
|
+
}
|
|
323
|
+
|
|
319
324
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
320
325
|
|
|
321
326
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -757,13 +762,14 @@ export const WorkflowsApiFp = function(configuration?: Configuration) {
|
|
|
757
762
|
},
|
|
758
763
|
/**
|
|
759
764
|
*
|
|
760
|
-
* @summary List workflow definitions
|
|
765
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
761
766
|
* @param {boolean} [active]
|
|
767
|
+
* @param {boolean} [mine]
|
|
762
768
|
* @param {*} [options] Override http request option.
|
|
763
769
|
* @throws {RequiredError}
|
|
764
770
|
*/
|
|
765
|
-
async listDefinitions(active?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WorkflowDefinitionDTO>>> {
|
|
766
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listDefinitions(active, options);
|
|
771
|
+
async listDefinitions(active?: boolean, mine?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WorkflowDefinitionDTO>>> {
|
|
772
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDefinitions(active, mine, options);
|
|
767
773
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
768
774
|
const localVarOperationServerBasePath = operationServerMap['WorkflowsApi.listDefinitions']?.[localVarOperationServerIndex]?.url;
|
|
769
775
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -951,13 +957,14 @@ export const WorkflowsApiFactory = function (configuration?: Configuration, base
|
|
|
951
957
|
},
|
|
952
958
|
/**
|
|
953
959
|
*
|
|
954
|
-
* @summary List workflow definitions
|
|
960
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
955
961
|
* @param {boolean} [active]
|
|
962
|
+
* @param {boolean} [mine]
|
|
956
963
|
* @param {*} [options] Override http request option.
|
|
957
964
|
* @throws {RequiredError}
|
|
958
965
|
*/
|
|
959
|
-
listDefinitions(active?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<WorkflowDefinitionDTO>> {
|
|
960
|
-
return localVarFp.listDefinitions(active, options).then((request) => request(axios, basePath));
|
|
966
|
+
listDefinitions(active?: boolean, mine?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<WorkflowDefinitionDTO>> {
|
|
967
|
+
return localVarFp.listDefinitions(active, mine, options).then((request) => request(axios, basePath));
|
|
961
968
|
},
|
|
962
969
|
/**
|
|
963
970
|
*
|
|
@@ -1122,13 +1129,14 @@ export class WorkflowsApi extends BaseAPI {
|
|
|
1122
1129
|
|
|
1123
1130
|
/**
|
|
1124
1131
|
*
|
|
1125
|
-
* @summary List workflow definitions
|
|
1132
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
1126
1133
|
* @param {boolean} [active]
|
|
1134
|
+
* @param {boolean} [mine]
|
|
1127
1135
|
* @param {*} [options] Override http request option.
|
|
1128
1136
|
* @throws {RequiredError}
|
|
1129
1137
|
*/
|
|
1130
|
-
public listDefinitions(active?: boolean, options?: RawAxiosRequestConfig) {
|
|
1131
|
-
return WorkflowsApiFp(this.configuration).listDefinitions(active, options).then((request) => request(this.axios, this.basePath));
|
|
1138
|
+
public listDefinitions(active?: boolean, mine?: boolean, options?: RawAxiosRequestConfig) {
|
|
1139
|
+
return WorkflowsApiFp(this.configuration).listDefinitions(active, mine, options).then((request) => request(this.axios, this.basePath));
|
|
1132
1140
|
}
|
|
1133
1141
|
|
|
1134
1142
|
/**
|
|
@@ -81,12 +81,13 @@ export declare const WorkflowsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
81
81
|
getInstance: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
|
-
* @summary List workflow definitions
|
|
84
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
85
85
|
* @param {boolean} [active]
|
|
86
|
+
* @param {boolean} [mine]
|
|
86
87
|
* @param {*} [options] Override http request option.
|
|
87
88
|
* @throws {RequiredError}
|
|
88
89
|
*/
|
|
89
|
-
listDefinitions: (active?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
90
|
+
listDefinitions: (active?: boolean, mine?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
90
91
|
/**
|
|
91
92
|
*
|
|
92
93
|
* @summary List instances (monitor), newest first
|
|
@@ -214,12 +215,13 @@ export declare const WorkflowsApiFp: (configuration?: Configuration) => {
|
|
|
214
215
|
getInstance(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkflowInstanceDetailDTO>>;
|
|
215
216
|
/**
|
|
216
217
|
*
|
|
217
|
-
* @summary List workflow definitions
|
|
218
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
218
219
|
* @param {boolean} [active]
|
|
220
|
+
* @param {boolean} [mine]
|
|
219
221
|
* @param {*} [options] Override http request option.
|
|
220
222
|
* @throws {RequiredError}
|
|
221
223
|
*/
|
|
222
|
-
listDefinitions(active?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WorkflowDefinitionDTO>>>;
|
|
224
|
+
listDefinitions(active?: boolean, mine?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WorkflowDefinitionDTO>>>;
|
|
223
225
|
/**
|
|
224
226
|
*
|
|
225
227
|
* @summary List instances (monitor), newest first
|
|
@@ -347,12 +349,13 @@ export declare const WorkflowsApiFactory: (configuration?: Configuration, basePa
|
|
|
347
349
|
getInstance(id: string, options?: RawAxiosRequestConfig): AxiosPromise<WorkflowInstanceDetailDTO>;
|
|
348
350
|
/**
|
|
349
351
|
*
|
|
350
|
-
* @summary List workflow definitions
|
|
352
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
351
353
|
* @param {boolean} [active]
|
|
354
|
+
* @param {boolean} [mine]
|
|
352
355
|
* @param {*} [options] Override http request option.
|
|
353
356
|
* @throws {RequiredError}
|
|
354
357
|
*/
|
|
355
|
-
listDefinitions(active?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<WorkflowDefinitionDTO>>;
|
|
358
|
+
listDefinitions(active?: boolean, mine?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<WorkflowDefinitionDTO>>;
|
|
356
359
|
/**
|
|
357
360
|
*
|
|
358
361
|
* @summary List instances (monitor), newest first
|
|
@@ -480,12 +483,13 @@ export declare class WorkflowsApi extends BaseAPI {
|
|
|
480
483
|
getInstance(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkflowInstanceDetailDTO, any, {}>>;
|
|
481
484
|
/**
|
|
482
485
|
*
|
|
483
|
-
* @summary List workflow definitions
|
|
486
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
484
487
|
* @param {boolean} [active]
|
|
488
|
+
* @param {boolean} [mine]
|
|
485
489
|
* @param {*} [options] Override http request option.
|
|
486
490
|
* @throws {RequiredError}
|
|
487
491
|
*/
|
|
488
|
-
listDefinitions(active?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkflowDefinitionDTO[], any, {}>>;
|
|
492
|
+
listDefinitions(active?: boolean, mine?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkflowDefinitionDTO[], any, {}>>;
|
|
489
493
|
/**
|
|
490
494
|
*
|
|
491
495
|
* @summary List instances (monitor), newest first
|
|
@@ -242,12 +242,13 @@ const WorkflowsApiAxiosParamCreator = function (configuration) {
|
|
|
242
242
|
}),
|
|
243
243
|
/**
|
|
244
244
|
*
|
|
245
|
-
* @summary List workflow definitions
|
|
245
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
246
246
|
* @param {boolean} [active]
|
|
247
|
+
* @param {boolean} [mine]
|
|
247
248
|
* @param {*} [options] Override http request option.
|
|
248
249
|
* @throws {RequiredError}
|
|
249
250
|
*/
|
|
250
|
-
listDefinitions: (active_1, ...args_1) => __awaiter(this, [active_1, ...args_1], void 0, function* (active, options = {}) {
|
|
251
|
+
listDefinitions: (active_1, mine_1, ...args_1) => __awaiter(this, [active_1, mine_1, ...args_1], void 0, function* (active, mine, options = {}) {
|
|
251
252
|
const localVarPath = `/api/v1/workflows/definitions`;
|
|
252
253
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
253
254
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -264,6 +265,9 @@ const WorkflowsApiAxiosParamCreator = function (configuration) {
|
|
|
264
265
|
if (active !== undefined) {
|
|
265
266
|
localVarQueryParameter['active'] = active;
|
|
266
267
|
}
|
|
268
|
+
if (mine !== undefined) {
|
|
269
|
+
localVarQueryParameter['mine'] = mine;
|
|
270
|
+
}
|
|
267
271
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
268
272
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
269
273
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -674,15 +678,16 @@ const WorkflowsApiFp = function (configuration) {
|
|
|
674
678
|
},
|
|
675
679
|
/**
|
|
676
680
|
*
|
|
677
|
-
* @summary List workflow definitions
|
|
681
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
678
682
|
* @param {boolean} [active]
|
|
683
|
+
* @param {boolean} [mine]
|
|
679
684
|
* @param {*} [options] Override http request option.
|
|
680
685
|
* @throws {RequiredError}
|
|
681
686
|
*/
|
|
682
|
-
listDefinitions(active, options) {
|
|
687
|
+
listDefinitions(active, mine, options) {
|
|
683
688
|
return __awaiter(this, void 0, void 0, function* () {
|
|
684
689
|
var _a, _b, _c;
|
|
685
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listDefinitions(active, options);
|
|
690
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listDefinitions(active, mine, options);
|
|
686
691
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
687
692
|
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
693
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -895,13 +900,14 @@ const WorkflowsApiFactory = function (configuration, basePath, axios) {
|
|
|
895
900
|
},
|
|
896
901
|
/**
|
|
897
902
|
*
|
|
898
|
-
* @summary List workflow definitions
|
|
903
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
899
904
|
* @param {boolean} [active]
|
|
905
|
+
* @param {boolean} [mine]
|
|
900
906
|
* @param {*} [options] Override http request option.
|
|
901
907
|
* @throws {RequiredError}
|
|
902
908
|
*/
|
|
903
|
-
listDefinitions(active, options) {
|
|
904
|
-
return localVarFp.listDefinitions(active, options).then((request) => request(axios, basePath));
|
|
909
|
+
listDefinitions(active, mine, options) {
|
|
910
|
+
return localVarFp.listDefinitions(active, mine, options).then((request) => request(axios, basePath));
|
|
905
911
|
},
|
|
906
912
|
/**
|
|
907
913
|
*
|
|
@@ -1060,13 +1066,14 @@ class WorkflowsApi extends base_1.BaseAPI {
|
|
|
1060
1066
|
}
|
|
1061
1067
|
/**
|
|
1062
1068
|
*
|
|
1063
|
-
* @summary List workflow definitions
|
|
1069
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
1064
1070
|
* @param {boolean} [active]
|
|
1071
|
+
* @param {boolean} [mine]
|
|
1065
1072
|
* @param {*} [options] Override http request option.
|
|
1066
1073
|
* @throws {RequiredError}
|
|
1067
1074
|
*/
|
|
1068
|
-
listDefinitions(active, options) {
|
|
1069
|
-
return (0, exports.WorkflowsApiFp)(this.configuration).listDefinitions(active, options).then((request) => request(this.axios, this.basePath));
|
|
1075
|
+
listDefinitions(active, mine, options) {
|
|
1076
|
+
return (0, exports.WorkflowsApiFp)(this.configuration).listDefinitions(active, mine, options).then((request) => request(this.axios, this.basePath));
|
|
1070
1077
|
}
|
|
1071
1078
|
/**
|
|
1072
1079
|
*
|
|
@@ -81,12 +81,13 @@ export declare const WorkflowsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
81
81
|
getInstance: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
|
-
* @summary List workflow definitions
|
|
84
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
85
85
|
* @param {boolean} [active]
|
|
86
|
+
* @param {boolean} [mine]
|
|
86
87
|
* @param {*} [options] Override http request option.
|
|
87
88
|
* @throws {RequiredError}
|
|
88
89
|
*/
|
|
89
|
-
listDefinitions: (active?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
90
|
+
listDefinitions: (active?: boolean, mine?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
90
91
|
/**
|
|
91
92
|
*
|
|
92
93
|
* @summary List instances (monitor), newest first
|
|
@@ -214,12 +215,13 @@ export declare const WorkflowsApiFp: (configuration?: Configuration) => {
|
|
|
214
215
|
getInstance(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkflowInstanceDetailDTO>>;
|
|
215
216
|
/**
|
|
216
217
|
*
|
|
217
|
-
* @summary List workflow definitions
|
|
218
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
218
219
|
* @param {boolean} [active]
|
|
220
|
+
* @param {boolean} [mine]
|
|
219
221
|
* @param {*} [options] Override http request option.
|
|
220
222
|
* @throws {RequiredError}
|
|
221
223
|
*/
|
|
222
|
-
listDefinitions(active?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WorkflowDefinitionDTO>>>;
|
|
224
|
+
listDefinitions(active?: boolean, mine?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WorkflowDefinitionDTO>>>;
|
|
223
225
|
/**
|
|
224
226
|
*
|
|
225
227
|
* @summary List instances (monitor), newest first
|
|
@@ -347,12 +349,13 @@ export declare const WorkflowsApiFactory: (configuration?: Configuration, basePa
|
|
|
347
349
|
getInstance(id: string, options?: RawAxiosRequestConfig): AxiosPromise<WorkflowInstanceDetailDTO>;
|
|
348
350
|
/**
|
|
349
351
|
*
|
|
350
|
-
* @summary List workflow definitions
|
|
352
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
351
353
|
* @param {boolean} [active]
|
|
354
|
+
* @param {boolean} [mine]
|
|
352
355
|
* @param {*} [options] Override http request option.
|
|
353
356
|
* @throws {RequiredError}
|
|
354
357
|
*/
|
|
355
|
-
listDefinitions(active?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<WorkflowDefinitionDTO>>;
|
|
358
|
+
listDefinitions(active?: boolean, mine?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<WorkflowDefinitionDTO>>;
|
|
356
359
|
/**
|
|
357
360
|
*
|
|
358
361
|
* @summary List instances (monitor), newest first
|
|
@@ -480,12 +483,13 @@ export declare class WorkflowsApi extends BaseAPI {
|
|
|
480
483
|
getInstance(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkflowInstanceDetailDTO, any, {}>>;
|
|
481
484
|
/**
|
|
482
485
|
*
|
|
483
|
-
* @summary List workflow definitions
|
|
486
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
484
487
|
* @param {boolean} [active]
|
|
488
|
+
* @param {boolean} [mine]
|
|
485
489
|
* @param {*} [options] Override http request option.
|
|
486
490
|
* @throws {RequiredError}
|
|
487
491
|
*/
|
|
488
|
-
listDefinitions(active?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkflowDefinitionDTO[], any, {}>>;
|
|
492
|
+
listDefinitions(active?: boolean, mine?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkflowDefinitionDTO[], any, {}>>;
|
|
489
493
|
/**
|
|
490
494
|
*
|
|
491
495
|
* @summary List instances (monitor), newest first
|
|
@@ -239,12 +239,13 @@ export const WorkflowsApiAxiosParamCreator = function (configuration) {
|
|
|
239
239
|
}),
|
|
240
240
|
/**
|
|
241
241
|
*
|
|
242
|
-
* @summary List workflow definitions
|
|
242
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
243
243
|
* @param {boolean} [active]
|
|
244
|
+
* @param {boolean} [mine]
|
|
244
245
|
* @param {*} [options] Override http request option.
|
|
245
246
|
* @throws {RequiredError}
|
|
246
247
|
*/
|
|
247
|
-
listDefinitions: (active_1, ...args_1) => __awaiter(this, [active_1, ...args_1], void 0, function* (active, options = {}) {
|
|
248
|
+
listDefinitions: (active_1, mine_1, ...args_1) => __awaiter(this, [active_1, mine_1, ...args_1], void 0, function* (active, mine, options = {}) {
|
|
248
249
|
const localVarPath = `/api/v1/workflows/definitions`;
|
|
249
250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
250
251
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -261,6 +262,9 @@ export const WorkflowsApiAxiosParamCreator = function (configuration) {
|
|
|
261
262
|
if (active !== undefined) {
|
|
262
263
|
localVarQueryParameter['active'] = active;
|
|
263
264
|
}
|
|
265
|
+
if (mine !== undefined) {
|
|
266
|
+
localVarQueryParameter['mine'] = mine;
|
|
267
|
+
}
|
|
264
268
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
265
269
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
266
270
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -670,15 +674,16 @@ export const WorkflowsApiFp = function (configuration) {
|
|
|
670
674
|
},
|
|
671
675
|
/**
|
|
672
676
|
*
|
|
673
|
-
* @summary List workflow definitions
|
|
677
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
674
678
|
* @param {boolean} [active]
|
|
679
|
+
* @param {boolean} [mine]
|
|
675
680
|
* @param {*} [options] Override http request option.
|
|
676
681
|
* @throws {RequiredError}
|
|
677
682
|
*/
|
|
678
|
-
listDefinitions(active, options) {
|
|
683
|
+
listDefinitions(active, mine, options) {
|
|
679
684
|
return __awaiter(this, void 0, void 0, function* () {
|
|
680
685
|
var _a, _b, _c;
|
|
681
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listDefinitions(active, options);
|
|
686
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listDefinitions(active, mine, options);
|
|
682
687
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
683
688
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkflowsApi.listDefinitions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
684
689
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -890,13 +895,14 @@ export const WorkflowsApiFactory = function (configuration, basePath, axios) {
|
|
|
890
895
|
},
|
|
891
896
|
/**
|
|
892
897
|
*
|
|
893
|
-
* @summary List workflow definitions
|
|
898
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
894
899
|
* @param {boolean} [active]
|
|
900
|
+
* @param {boolean} [mine]
|
|
895
901
|
* @param {*} [options] Override http request option.
|
|
896
902
|
* @throws {RequiredError}
|
|
897
903
|
*/
|
|
898
|
-
listDefinitions(active, options) {
|
|
899
|
-
return localVarFp.listDefinitions(active, options).then((request) => request(axios, basePath));
|
|
904
|
+
listDefinitions(active, mine, options) {
|
|
905
|
+
return localVarFp.listDefinitions(active, mine, options).then((request) => request(axios, basePath));
|
|
900
906
|
},
|
|
901
907
|
/**
|
|
902
908
|
*
|
|
@@ -1054,13 +1060,14 @@ export class WorkflowsApi extends BaseAPI {
|
|
|
1054
1060
|
}
|
|
1055
1061
|
/**
|
|
1056
1062
|
*
|
|
1057
|
-
* @summary List workflow definitions
|
|
1063
|
+
* @summary List the workflow definitions the caller may see (mine = created by the caller)
|
|
1058
1064
|
* @param {boolean} [active]
|
|
1065
|
+
* @param {boolean} [mine]
|
|
1059
1066
|
* @param {*} [options] Override http request option.
|
|
1060
1067
|
* @throws {RequiredError}
|
|
1061
1068
|
*/
|
|
1062
|
-
listDefinitions(active, options) {
|
|
1063
|
-
return WorkflowsApiFp(this.configuration).listDefinitions(active, options).then((request) => request(this.axios, this.basePath));
|
|
1069
|
+
listDefinitions(active, mine, options) {
|
|
1070
|
+
return WorkflowsApiFp(this.configuration).listDefinitions(active, mine, options).then((request) => request(this.axios, this.basePath));
|
|
1064
1071
|
}
|
|
1065
1072
|
/**
|
|
1066
1073
|
*
|
package/docs/WorkflowsApi.md
CHANGED
|
@@ -10,7 +10,7 @@ All URIs are relative to *http://localhost:8081*
|
|
|
10
10
|
|[**deleteDefinition**](#deletedefinition) | **DELETE** /api/v1/workflows/definitions/{id} | Delete a workflow definition (409 while instances are running)|
|
|
11
11
|
|[**getDefinition**](#getdefinition) | **GET** /api/v1/workflows/definitions/{id} | Get a workflow definition|
|
|
12
12
|
|[**getInstance**](#getinstance) | **GET** /api/v1/workflows/instances/{id} | One instance with its snapshot spec, open task and history|
|
|
13
|
-
|[**listDefinitions**](#listdefinitions) | **GET** /api/v1/workflows/definitions | List workflow definitions|
|
|
13
|
+
|[**listDefinitions**](#listdefinitions) | **GET** /api/v1/workflows/definitions | List the workflow definitions the caller may see (mine = created by the caller)|
|
|
14
14
|
|[**listInstances**](#listinstances) | **GET** /api/v1/workflows/instances | List instances (monitor), newest first|
|
|
15
15
|
|[**myTasks**](#mytasks) | **GET** /api/v1/workflows/tasks/mine | Open tasks I can act on (by e-mail or role)|
|
|
16
16
|
|[**myTasksCount**](#mytaskscount) | **GET** /api/v1/workflows/tasks/mine/count | Number of open tasks I can act on (sidebar badge)|
|
|
@@ -345,9 +345,11 @@ const configuration = new Configuration();
|
|
|
345
345
|
const apiInstance = new WorkflowsApi(configuration);
|
|
346
346
|
|
|
347
347
|
let active: boolean; // (optional) (default to undefined)
|
|
348
|
+
let mine: boolean; // (optional) (default to false)
|
|
348
349
|
|
|
349
350
|
const { status, data } = await apiInstance.listDefinitions(
|
|
350
|
-
active
|
|
351
|
+
active,
|
|
352
|
+
mine
|
|
351
353
|
);
|
|
352
354
|
```
|
|
353
355
|
|
|
@@ -356,6 +358,7 @@ const { status, data } = await apiInstance.listDefinitions(
|
|
|
356
358
|
|Name | Type | Description | Notes|
|
|
357
359
|
|------------- | ------------- | ------------- | -------------|
|
|
358
360
|
| **active** | [**boolean**] | | (optional) defaults to undefined|
|
|
361
|
+
| **mine** | [**boolean**] | | (optional) defaults to false|
|
|
359
362
|
|
|
360
363
|
|
|
361
364
|
### Return type
|