@emilgroup/action-sdk-node 1.1.0 → 1.1.1-beta.13

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.
@@ -516,7 +516,7 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
516
516
  };
517
517
  },
518
518
  /**
519
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
519
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
520
520
  * @summary Update the action
521
521
  * @param {string} code Action code
522
522
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -554,57 +554,6 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
554
554
 
555
555
 
556
556
 
557
- localVarHeaderParameter['Content-Type'] = 'application/json';
558
-
559
- setSearchParams(localVarUrlObj, localVarQueryParameter);
560
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
561
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
562
- localVarRequestOptions.data = serializeDataIfNeeded(updateActionRequestDto, localVarRequestOptions, configuration)
563
-
564
- return {
565
- url: toPathString(localVarUrlObj),
566
- options: localVarRequestOptions,
567
- };
568
- },
569
- /**
570
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
571
- * @summary Update the action
572
- * @param {string} code Action code
573
- * @param {UpdateActionRequestDto} updateActionRequestDto
574
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
575
- * @param {*} [options] Override http request option.
576
- * @throws {RequiredError}
577
- */
578
- updateAction_1: async (code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
579
- // verify required parameter 'code' is not null or undefined
580
- assertParamExists('updateAction_1', 'code', code)
581
- // verify required parameter 'updateActionRequestDto' is not null or undefined
582
- assertParamExists('updateAction_1', 'updateActionRequestDto', updateActionRequestDto)
583
- const localVarPath = `/actionservice/v1/actions/{code}`
584
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
585
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
586
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
587
- let baseOptions;
588
- let baseAccessToken;
589
- if (configuration) {
590
- baseOptions = configuration.baseOptions;
591
- baseAccessToken = configuration.accessToken;
592
- }
593
-
594
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
595
- const localVarHeaderParameter = {} as any;
596
- const localVarQueryParameter = {} as any;
597
-
598
- // authentication bearer required
599
- // http bearer authentication required
600
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
601
-
602
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
603
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
604
- }
605
-
606
-
607
-
608
557
  localVarHeaderParameter['Content-Type'] = 'application/json';
609
558
 
610
559
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -745,7 +694,7 @@ export const ActionsApiFp = function(configuration?: Configuration) {
745
694
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
746
695
  },
747
696
  /**
748
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
697
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
749
698
  * @summary Update the action
750
699
  * @param {string} code Action code
751
700
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -757,19 +706,6 @@ export const ActionsApiFp = function(configuration?: Configuration) {
757
706
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options);
758
707
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
759
708
  },
760
- /**
761
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
762
- * @summary Update the action
763
- * @param {string} code Action code
764
- * @param {UpdateActionRequestDto} updateActionRequestDto
765
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
766
- * @param {*} [options] Override http request option.
767
- * @throws {RequiredError}
768
- */
769
- async updateAction_1(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
770
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction_1(code, updateActionRequestDto, authorization, options);
771
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
772
- },
773
709
  }
774
710
  };
775
711
 
@@ -890,7 +826,7 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
890
826
  return localVarFp.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
891
827
  },
892
828
  /**
893
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
829
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
894
830
  * @summary Update the action
895
831
  * @param {string} code Action code
896
832
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -901,18 +837,6 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
901
837
  updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
902
838
  return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
903
839
  },
904
- /**
905
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
906
- * @summary Update the action
907
- * @param {string} code Action code
908
- * @param {UpdateActionRequestDto} updateActionRequestDto
909
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
910
- * @param {*} [options] Override http request option.
911
- * @throws {RequiredError}
912
- */
913
- updateAction_1(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
914
- return localVarFp.updateAction_1(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
915
- },
916
840
  };
917
841
  };
918
842
 
@@ -1259,34 +1183,6 @@ export interface ActionsApiUpdateActionRequest {
1259
1183
  readonly authorization?: string
1260
1184
  }
1261
1185
 
1262
- /**
1263
- * Request parameters for updateAction_1 operation in ActionsApi.
1264
- * @export
1265
- * @interface ActionsApiUpdateAction0Request
1266
- */
1267
- export interface ActionsApiUpdateAction0Request {
1268
- /**
1269
- * Action code
1270
- * @type {string}
1271
- * @memberof ActionsApiUpdateAction0
1272
- */
1273
- readonly code: string
1274
-
1275
- /**
1276
- *
1277
- * @type {UpdateActionRequestDto}
1278
- * @memberof ActionsApiUpdateAction0
1279
- */
1280
- readonly updateActionRequestDto: UpdateActionRequestDto
1281
-
1282
- /**
1283
- * Bearer Token: provided by the login endpoint under the name accessToken.
1284
- * @type {string}
1285
- * @memberof ActionsApiUpdateAction0
1286
- */
1287
- readonly authorization?: string
1288
- }
1289
-
1290
1186
  /**
1291
1187
  * ActionsApi - object-oriented interface
1292
1188
  * @export
@@ -1391,7 +1287,7 @@ export class ActionsApi extends BaseAPI {
1391
1287
  }
1392
1288
 
1393
1289
  /**
1394
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1290
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1395
1291
  * @summary Update the action
1396
1292
  * @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
1397
1293
  * @param {*} [options] Override http request option.
@@ -1401,16 +1297,4 @@ export class ActionsApi extends BaseAPI {
1401
1297
  public updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig) {
1402
1298
  return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1403
1299
  }
1404
-
1405
- /**
1406
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1407
- * @summary Update the action
1408
- * @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
1409
- * @param {*} [options] Override http request option.
1410
- * @throws {RequiredError}
1411
- * @memberof ActionsApi
1412
- */
1413
- public updateAction_1(requestParameters: ActionsApiUpdateAction0Request, options?: AxiosRequestConfig) {
1414
- return ActionsApiFp(this.configuration).updateAction_1(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1415
- }
1416
1300
  }
@@ -29,10 +29,10 @@ import { InlineResponse503 } from '../models';
29
29
  import { URL, URLSearchParams } from 'url';
30
30
  const FormData = require('form-data');
31
31
  /**
32
- * DefaultApi - axios parameter creator
32
+ * HealthApi - axios parameter creator
33
33
  * @export
34
34
  */
35
- export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
35
+ export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
36
36
  return {
37
37
  /**
38
38
  * 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.
@@ -70,11 +70,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
70
70
  };
71
71
 
72
72
  /**
73
- * DefaultApi - functional programming interface
73
+ * HealthApi - functional programming interface
74
74
  * @export
75
75
  */
76
- export const DefaultApiFp = function(configuration?: Configuration) {
77
- const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
76
+ export const HealthApiFp = function(configuration?: Configuration) {
77
+ const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
78
78
  return {
79
79
  /**
80
80
  * 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.
@@ -90,11 +90,11 @@ export const DefaultApiFp = function(configuration?: Configuration) {
90
90
  };
91
91
 
92
92
  /**
93
- * DefaultApi - factory interface
93
+ * HealthApi - factory interface
94
94
  * @export
95
95
  */
96
- export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
97
- const localVarFp = DefaultApiFp(configuration)
96
+ export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
97
+ const localVarFp = HealthApiFp(configuration)
98
98
  return {
99
99
  /**
100
100
  * 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.
@@ -109,20 +109,20 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
109
109
  };
110
110
 
111
111
  /**
112
- * DefaultApi - object-oriented interface
112
+ * HealthApi - object-oriented interface
113
113
  * @export
114
- * @class DefaultApi
114
+ * @class HealthApi
115
115
  * @extends {BaseAPI}
116
116
  */
117
- export class DefaultApi extends BaseAPI {
117
+ export class HealthApi extends BaseAPI {
118
118
  /**
119
119
  * 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.
120
120
  * @summary Health Check
121
121
  * @param {*} [options] Override http request option.
122
122
  * @throws {RequiredError}
123
- * @memberof DefaultApi
123
+ * @memberof HealthApi
124
124
  */
125
125
  public check(options?: AxiosRequestConfig) {
126
- return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
126
+ return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
127
127
  }
128
128
  }
package/api.ts CHANGED
@@ -24,12 +24,14 @@ import FormData from 'form-data'
24
24
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
25
25
  // @ts-ignore
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
+ import { ActionClientApi } from './api';
27
28
  import { ActionsApi } from './api';
28
- import { DefaultApi } from './api';
29
29
  import { ExecutionsApi } from './api';
30
+ import { HealthApi } from './api';
30
31
 
31
32
 
33
+ export * from './api/action-client-api';
32
34
  export * from './api/actions-api';
33
- export * from './api/default-api';
34
35
  export * from './api/executions-api';
36
+ export * from './api/health-api';
35
37