@emilgroup/action-sdk 1.2.0 → 1.2.1-beta.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 +2 -1
- package/README.md +2 -2
- package/api/action-client-api.ts +1709 -0
- package/api/actions-api.ts +4 -120
- package/api/{default-api.ts → health-api.ts} +13 -13
- package/api.ts +4 -2
- package/base.ts +1 -0
- package/dist/api/action-client-api.d.ts +973 -0
- package/dist/api/action-client-api.js +1416 -0
- package/dist/api/actions-api.d.ts +4 -68
- package/dist/api/actions-api.js +4 -103
- package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
- package/dist/api/{default-api.js → health-api.js} +22 -22
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/base.d.ts +2 -1
- package/dist/base.js +1 -0
- package/dist/models/list-action-executions-response-class.d.ts +10 -10
- package/dist/models/list-action-versions-response-class.d.ts +10 -10
- package/dist/models/list-actions-response-class.d.ts +10 -10
- package/models/list-action-executions-response-class.ts +10 -10
- package/models/list-action-versions-response-class.ts +10 -10
- package/models/list-actions-response-class.ts +10 -10
- package/package.json +2 -2
package/api/actions-api.ts
CHANGED
|
@@ -512,7 +512,7 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
512
512
|
};
|
|
513
513
|
},
|
|
514
514
|
/**
|
|
515
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
515
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
516
516
|
* @summary Update the action
|
|
517
517
|
* @param {string} code Action code
|
|
518
518
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -550,57 +550,6 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
550
550
|
|
|
551
551
|
|
|
552
552
|
|
|
553
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
554
|
-
|
|
555
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
556
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
557
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
558
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateActionRequestDto, localVarRequestOptions, configuration)
|
|
559
|
-
|
|
560
|
-
return {
|
|
561
|
-
url: toPathString(localVarUrlObj),
|
|
562
|
-
options: localVarRequestOptions,
|
|
563
|
-
};
|
|
564
|
-
},
|
|
565
|
-
/**
|
|
566
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
567
|
-
* @summary Update the action
|
|
568
|
-
* @param {string} code Action code
|
|
569
|
-
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
570
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
571
|
-
* @param {*} [options] Override http request option.
|
|
572
|
-
* @throws {RequiredError}
|
|
573
|
-
*/
|
|
574
|
-
updateAction_1: async (code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
575
|
-
// verify required parameter 'code' is not null or undefined
|
|
576
|
-
assertParamExists('updateAction_1', 'code', code)
|
|
577
|
-
// verify required parameter 'updateActionRequestDto' is not null or undefined
|
|
578
|
-
assertParamExists('updateAction_1', 'updateActionRequestDto', updateActionRequestDto)
|
|
579
|
-
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
580
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
581
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
582
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
583
|
-
let baseOptions;
|
|
584
|
-
let baseAccessToken;
|
|
585
|
-
if (configuration) {
|
|
586
|
-
baseOptions = configuration.baseOptions;
|
|
587
|
-
baseAccessToken = configuration.accessToken;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
591
|
-
const localVarHeaderParameter = {} as any;
|
|
592
|
-
const localVarQueryParameter = {} as any;
|
|
593
|
-
|
|
594
|
-
// authentication bearer required
|
|
595
|
-
// http bearer authentication required
|
|
596
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
597
|
-
|
|
598
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
599
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
553
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
605
554
|
|
|
606
555
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -741,7 +690,7 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
741
690
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
742
691
|
},
|
|
743
692
|
/**
|
|
744
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
693
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
745
694
|
* @summary Update the action
|
|
746
695
|
* @param {string} code Action code
|
|
747
696
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -753,19 +702,6 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
753
702
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options);
|
|
754
703
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
755
704
|
},
|
|
756
|
-
/**
|
|
757
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
758
|
-
* @summary Update the action
|
|
759
|
-
* @param {string} code Action code
|
|
760
|
-
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
761
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
762
|
-
* @param {*} [options] Override http request option.
|
|
763
|
-
* @throws {RequiredError}
|
|
764
|
-
*/
|
|
765
|
-
async updateAction_1(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
|
|
766
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction_1(code, updateActionRequestDto, authorization, options);
|
|
767
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
768
|
-
},
|
|
769
705
|
}
|
|
770
706
|
};
|
|
771
707
|
|
|
@@ -886,7 +822,7 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
886
822
|
return localVarFp.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
887
823
|
},
|
|
888
824
|
/**
|
|
889
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
825
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
890
826
|
* @summary Update the action
|
|
891
827
|
* @param {string} code Action code
|
|
892
828
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -897,18 +833,6 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
897
833
|
updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
|
|
898
834
|
return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
899
835
|
},
|
|
900
|
-
/**
|
|
901
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
902
|
-
* @summary Update the action
|
|
903
|
-
* @param {string} code Action code
|
|
904
|
-
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
905
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
906
|
-
* @param {*} [options] Override http request option.
|
|
907
|
-
* @throws {RequiredError}
|
|
908
|
-
*/
|
|
909
|
-
updateAction_1(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
|
|
910
|
-
return localVarFp.updateAction_1(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
911
|
-
},
|
|
912
836
|
};
|
|
913
837
|
};
|
|
914
838
|
|
|
@@ -1255,34 +1179,6 @@ export interface ActionsApiUpdateActionRequest {
|
|
|
1255
1179
|
readonly authorization?: string
|
|
1256
1180
|
}
|
|
1257
1181
|
|
|
1258
|
-
/**
|
|
1259
|
-
* Request parameters for updateAction_1 operation in ActionsApi.
|
|
1260
|
-
* @export
|
|
1261
|
-
* @interface ActionsApiUpdateAction0Request
|
|
1262
|
-
*/
|
|
1263
|
-
export interface ActionsApiUpdateAction0Request {
|
|
1264
|
-
/**
|
|
1265
|
-
* Action code
|
|
1266
|
-
* @type {string}
|
|
1267
|
-
* @memberof ActionsApiUpdateAction0
|
|
1268
|
-
*/
|
|
1269
|
-
readonly code: string
|
|
1270
|
-
|
|
1271
|
-
/**
|
|
1272
|
-
*
|
|
1273
|
-
* @type {UpdateActionRequestDto}
|
|
1274
|
-
* @memberof ActionsApiUpdateAction0
|
|
1275
|
-
*/
|
|
1276
|
-
readonly updateActionRequestDto: UpdateActionRequestDto
|
|
1277
|
-
|
|
1278
|
-
/**
|
|
1279
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1280
|
-
* @type {string}
|
|
1281
|
-
* @memberof ActionsApiUpdateAction0
|
|
1282
|
-
*/
|
|
1283
|
-
readonly authorization?: string
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
1182
|
/**
|
|
1287
1183
|
* ActionsApi - object-oriented interface
|
|
1288
1184
|
* @export
|
|
@@ -1387,7 +1283,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
1387
1283
|
}
|
|
1388
1284
|
|
|
1389
1285
|
/**
|
|
1390
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1286
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1391
1287
|
* @summary Update the action
|
|
1392
1288
|
* @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
|
|
1393
1289
|
* @param {*} [options] Override http request option.
|
|
@@ -1397,16 +1293,4 @@ export class ActionsApi extends BaseAPI {
|
|
|
1397
1293
|
public updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig) {
|
|
1398
1294
|
return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1399
1295
|
}
|
|
1400
|
-
|
|
1401
|
-
/**
|
|
1402
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
1403
|
-
* @summary Update the action
|
|
1404
|
-
* @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
|
|
1405
|
-
* @param {*} [options] Override http request option.
|
|
1406
|
-
* @throws {RequiredError}
|
|
1407
|
-
* @memberof ActionsApi
|
|
1408
|
-
*/
|
|
1409
|
-
public updateAction_1(requestParameters: ActionsApiUpdateAction0Request, options?: AxiosRequestConfig) {
|
|
1410
|
-
return ActionsApiFp(this.configuration).updateAction_1(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1411
|
-
}
|
|
1412
1296
|
}
|
|
@@ -25,10 +25,10 @@ import { InlineResponse200 } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { InlineResponse503 } from '../models';
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* HealthApi - axios parameter creator
|
|
29
29
|
* @export
|
|
30
30
|
*/
|
|
31
|
-
export const
|
|
31
|
+
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
32
|
return {
|
|
33
33
|
/**
|
|
34
34
|
* Returns the health status of the ActionService service. This endpoint is used to monitor the operational status of the ActionService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
@@ -66,11 +66,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* HealthApi - functional programming interface
|
|
70
70
|
* @export
|
|
71
71
|
*/
|
|
72
|
-
export const
|
|
73
|
-
const localVarAxiosParamCreator =
|
|
72
|
+
export const HealthApiFp = function(configuration?: Configuration) {
|
|
73
|
+
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
74
74
|
return {
|
|
75
75
|
/**
|
|
76
76
|
* Returns the health status of the ActionService service. This endpoint is used to monitor the operational status of the ActionService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
@@ -86,11 +86,11 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* HealthApi - factory interface
|
|
90
90
|
* @export
|
|
91
91
|
*/
|
|
92
|
-
export const
|
|
93
|
-
const localVarFp =
|
|
92
|
+
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
93
|
+
const localVarFp = HealthApiFp(configuration)
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
96
|
* Returns the health status of the ActionService service. This endpoint is used to monitor the operational status of the ActionService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
@@ -105,20 +105,20 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* HealthApi - object-oriented interface
|
|
109
109
|
* @export
|
|
110
|
-
* @class
|
|
110
|
+
* @class HealthApi
|
|
111
111
|
* @extends {BaseAPI}
|
|
112
112
|
*/
|
|
113
|
-
export class
|
|
113
|
+
export class HealthApi extends BaseAPI {
|
|
114
114
|
/**
|
|
115
115
|
* Returns the health status of the ActionService service. This endpoint is used to monitor the operational status of the ActionService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
116
116
|
* @summary Health Check
|
|
117
117
|
* @param {*} [options] Override http request option.
|
|
118
118
|
* @throws {RequiredError}
|
|
119
|
-
* @memberof
|
|
119
|
+
* @memberof HealthApi
|
|
120
120
|
*/
|
|
121
121
|
public check(options?: AxiosRequestConfig) {
|
|
122
|
-
return
|
|
122
|
+
return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
123
123
|
}
|
|
124
124
|
}
|
package/api.ts
CHANGED
|
@@ -20,12 +20,14 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResp
|
|
|
20
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
|
+
import { ActionClientApi } from './api';
|
|
23
24
|
import { ActionsApi } from './api';
|
|
24
|
-
import { DefaultApi } from './api';
|
|
25
25
|
import { ExecutionsApi } from './api';
|
|
26
|
+
import { HealthApi } from './api';
|
|
26
27
|
|
|
27
28
|
|
|
29
|
+
export * from './api/action-client-api';
|
|
28
30
|
export * from './api/actions-api';
|
|
29
|
-
export * from './api/default-api';
|
|
30
31
|
export * from './api/executions-api';
|
|
32
|
+
export * from './api/health-api';
|
|
31
33
|
|
package/base.ts
CHANGED
|
@@ -53,6 +53,7 @@ export enum Environment {
|
|
|
53
53
|
Staging = 'https://apiv2-staging.emil.de',
|
|
54
54
|
Development = 'https://apiv2-dev.emil.de',
|
|
55
55
|
ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
|
|
56
|
+
StagingZurich = 'https://eu-central-2.apiv2-staging.emil.de',
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
let _retry_count = 0
|