@emilgroup/action-sdk 1.8.1-beta.15 → 1.8.1-beta.17
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 +2 -2
- package/api/action-client-api.ts +96 -36
- package/api/actions-api.ts +72 -27
- package/api/executions-api.ts +24 -9
- package/api/health-api.ts +1 -1
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/action-client-api.d.ts +12 -12
- package/dist/api/action-client-api.js +152 -89
- package/dist/api/actions-api.d.ts +9 -9
- package/dist/api/actions-api.js +115 -67
- package/dist/api/executions-api.d.ts +3 -3
- package/dist/api/executions-api.js +37 -22
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/package.json +2 -2
|
@@ -665,7 +665,7 @@ export declare class ActionsApi extends BaseAPI {
|
|
|
665
665
|
* @throws {RequiredError}
|
|
666
666
|
* @memberof ActionsApi
|
|
667
667
|
*/
|
|
668
|
-
createAction(requestParameters: ActionsApiCreateActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateActionResponseClass, any, {}>>;
|
|
668
|
+
createAction(requestParameters: ActionsApiCreateActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateActionResponseClass, any, {}, any>>;
|
|
669
669
|
/**
|
|
670
670
|
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
671
671
|
* @summary Delete the action
|
|
@@ -674,7 +674,7 @@ export declare class ActionsApi extends BaseAPI {
|
|
|
674
674
|
* @throws {RequiredError}
|
|
675
675
|
* @memberof ActionsApi
|
|
676
676
|
*/
|
|
677
|
-
deleteAction(requestParameters: ActionsApiDeleteActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
677
|
+
deleteAction(requestParameters: ActionsApiDeleteActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
678
678
|
/**
|
|
679
679
|
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
680
680
|
* @summary Delete the action version
|
|
@@ -683,7 +683,7 @@ export declare class ActionsApi extends BaseAPI {
|
|
|
683
683
|
* @throws {RequiredError}
|
|
684
684
|
* @memberof ActionsApi
|
|
685
685
|
*/
|
|
686
|
-
deleteActionVersion(requestParameters: ActionsApiDeleteActionVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
686
|
+
deleteActionVersion(requestParameters: ActionsApiDeleteActionVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
687
687
|
/**
|
|
688
688
|
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
689
689
|
* @summary Retrieve the action
|
|
@@ -692,7 +692,7 @@ export declare class ActionsApi extends BaseAPI {
|
|
|
692
692
|
* @throws {RequiredError}
|
|
693
693
|
* @memberof ActionsApi
|
|
694
694
|
*/
|
|
695
|
-
getAction(requestParameters: ActionsApiGetActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionResponseClass, any, {}>>;
|
|
695
|
+
getAction(requestParameters: ActionsApiGetActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionResponseClass, any, {}, any>>;
|
|
696
696
|
/**
|
|
697
697
|
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
698
698
|
* @summary Retrieve the action version
|
|
@@ -701,7 +701,7 @@ export declare class ActionsApi extends BaseAPI {
|
|
|
701
701
|
* @throws {RequiredError}
|
|
702
702
|
* @memberof ActionsApi
|
|
703
703
|
*/
|
|
704
|
-
getActionVersion(requestParameters: ActionsApiGetActionVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionVersionResponseClass, any, {}>>;
|
|
704
|
+
getActionVersion(requestParameters: ActionsApiGetActionVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionVersionResponseClass, any, {}, any>>;
|
|
705
705
|
/**
|
|
706
706
|
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
707
707
|
* @summary List action versions
|
|
@@ -710,7 +710,7 @@ export declare class ActionsApi extends BaseAPI {
|
|
|
710
710
|
* @throws {RequiredError}
|
|
711
711
|
* @memberof ActionsApi
|
|
712
712
|
*/
|
|
713
|
-
listActionVersions(requestParameters: ActionsApiListActionVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionVersionsResponseClass, any, {}>>;
|
|
713
|
+
listActionVersions(requestParameters: ActionsApiListActionVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionVersionsResponseClass, any, {}, any>>;
|
|
714
714
|
/**
|
|
715
715
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
716
716
|
* @summary List actions
|
|
@@ -719,7 +719,7 @@ export declare class ActionsApi extends BaseAPI {
|
|
|
719
719
|
* @throws {RequiredError}
|
|
720
720
|
* @memberof ActionsApi
|
|
721
721
|
*/
|
|
722
|
-
listActions(requestParameters?: ActionsApiListActionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionsResponseClass, any, {}>>;
|
|
722
|
+
listActions(requestParameters?: ActionsApiListActionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionsResponseClass, any, {}, any>>;
|
|
723
723
|
/**
|
|
724
724
|
* Lists all action versions. Use filters e.g. isActive==true, entityType==LEAD, name, slug. No parent action code required. **Required Permissions** \"action-management.actions.view\"
|
|
725
725
|
* @summary List action versions
|
|
@@ -728,7 +728,7 @@ export declare class ActionsApi extends BaseAPI {
|
|
|
728
728
|
* @throws {RequiredError}
|
|
729
729
|
* @memberof ActionsApi
|
|
730
730
|
*/
|
|
731
|
-
listAllActionVersions(requestParameters?: ActionsApiListAllActionVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionVersionsResponseClass, any, {}>>;
|
|
731
|
+
listAllActionVersions(requestParameters?: ActionsApiListAllActionVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionVersionsResponseClass, any, {}, any>>;
|
|
732
732
|
/**
|
|
733
733
|
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
734
734
|
* @summary Update the action
|
|
@@ -737,5 +737,5 @@ export declare class ActionsApi extends BaseAPI {
|
|
|
737
737
|
* @throws {RequiredError}
|
|
738
738
|
* @memberof ActionsApi
|
|
739
739
|
*/
|
|
740
|
-
updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateActionResponseClass, any, {}>>;
|
|
740
|
+
updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateActionResponseClass, any, {}, any>>;
|
|
741
741
|
}
|
package/dist/api/actions-api.js
CHANGED
|
@@ -103,9 +103,10 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createAction: function (createActionRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
109
110
|
case 0:
|
|
110
111
|
// verify required parameter 'createActionRequestDto' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('createAction', 'createActionRequestDto', createActionRequestDto);
|
|
@@ -120,13 +121,19 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
120
121
|
localVarQueryParameter = {};
|
|
121
122
|
// authentication bearer required
|
|
122
123
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
+
];
|
|
124
128
|
case 1:
|
|
125
129
|
// authentication bearer required
|
|
126
130
|
// http bearer authentication required
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
137
|
}
|
|
131
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -152,9 +159,10 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
152
159
|
deleteAction: function (code, authorization, options) {
|
|
153
160
|
if (options === void 0) { options = {}; }
|
|
154
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
-
|
|
157
|
-
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
163
|
+
var _a;
|
|
164
|
+
return __generator(this, function (_b) {
|
|
165
|
+
switch (_b.label) {
|
|
158
166
|
case 0:
|
|
159
167
|
// verify required parameter 'code' is not null or undefined
|
|
160
168
|
(0, common_1.assertParamExists)('deleteAction', 'code', code);
|
|
@@ -170,13 +178,19 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
170
178
|
localVarQueryParameter = {};
|
|
171
179
|
// authentication bearer required
|
|
172
180
|
// http bearer authentication required
|
|
173
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
182
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
183
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
184
|
+
];
|
|
174
185
|
case 1:
|
|
175
186
|
// authentication bearer required
|
|
176
187
|
// http bearer authentication required
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
188
|
+
_b.sent();
|
|
189
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
190
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
191
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
192
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
193
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
180
194
|
}
|
|
181
195
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
196
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -200,9 +214,10 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
200
214
|
deleteActionVersion: function (versionCode, authorization, options) {
|
|
201
215
|
if (options === void 0) { options = {}; }
|
|
202
216
|
return __awaiter(_this, void 0, void 0, function () {
|
|
203
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
204
|
-
|
|
205
|
-
|
|
217
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
218
|
+
var _a;
|
|
219
|
+
return __generator(this, function (_b) {
|
|
220
|
+
switch (_b.label) {
|
|
206
221
|
case 0:
|
|
207
222
|
// verify required parameter 'versionCode' is not null or undefined
|
|
208
223
|
(0, common_1.assertParamExists)('deleteActionVersion', 'versionCode', versionCode);
|
|
@@ -218,13 +233,19 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
218
233
|
localVarQueryParameter = {};
|
|
219
234
|
// authentication bearer required
|
|
220
235
|
// http bearer authentication required
|
|
221
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
236
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
237
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
238
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
239
|
+
];
|
|
222
240
|
case 1:
|
|
223
241
|
// authentication bearer required
|
|
224
242
|
// http bearer authentication required
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
243
|
+
_b.sent();
|
|
244
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
245
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
246
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
247
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
248
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
228
249
|
}
|
|
229
250
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
230
251
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -249,9 +270,10 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
249
270
|
getAction: function (code, authorization, expand, options) {
|
|
250
271
|
if (options === void 0) { options = {}; }
|
|
251
272
|
return __awaiter(_this, void 0, void 0, function () {
|
|
252
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
253
|
-
|
|
254
|
-
|
|
273
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
274
|
+
var _a;
|
|
275
|
+
return __generator(this, function (_b) {
|
|
276
|
+
switch (_b.label) {
|
|
255
277
|
case 0:
|
|
256
278
|
// verify required parameter 'code' is not null or undefined
|
|
257
279
|
(0, common_1.assertParamExists)('getAction', 'code', code);
|
|
@@ -271,12 +293,15 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
271
293
|
case 1:
|
|
272
294
|
// authentication bearer required
|
|
273
295
|
// http bearer authentication required
|
|
274
|
-
|
|
296
|
+
_b.sent();
|
|
275
297
|
if (expand !== undefined) {
|
|
276
298
|
localVarQueryParameter['expand'] = expand;
|
|
277
299
|
}
|
|
278
|
-
|
|
279
|
-
|
|
300
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
301
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
302
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
303
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
304
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
280
305
|
}
|
|
281
306
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
282
307
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -301,9 +326,10 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
301
326
|
getActionVersion: function (versionCode, authorization, expand, options) {
|
|
302
327
|
if (options === void 0) { options = {}; }
|
|
303
328
|
return __awaiter(_this, void 0, void 0, function () {
|
|
304
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
305
|
-
|
|
306
|
-
|
|
329
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
330
|
+
var _a;
|
|
331
|
+
return __generator(this, function (_b) {
|
|
332
|
+
switch (_b.label) {
|
|
307
333
|
case 0:
|
|
308
334
|
// verify required parameter 'versionCode' is not null or undefined
|
|
309
335
|
(0, common_1.assertParamExists)('getActionVersion', 'versionCode', versionCode);
|
|
@@ -323,12 +349,15 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
323
349
|
case 1:
|
|
324
350
|
// authentication bearer required
|
|
325
351
|
// http bearer authentication required
|
|
326
|
-
|
|
352
|
+
_b.sent();
|
|
327
353
|
if (expand !== undefined) {
|
|
328
354
|
localVarQueryParameter['expand'] = expand;
|
|
329
355
|
}
|
|
330
|
-
|
|
331
|
-
|
|
356
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
357
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
358
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
359
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
360
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
332
361
|
}
|
|
333
362
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
334
363
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -359,9 +388,10 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
359
388
|
listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
360
389
|
if (options === void 0) { options = {}; }
|
|
361
390
|
return __awaiter(_this, void 0, void 0, function () {
|
|
362
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
363
|
-
|
|
364
|
-
|
|
391
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
392
|
+
var _a;
|
|
393
|
+
return __generator(this, function (_b) {
|
|
394
|
+
switch (_b.label) {
|
|
365
395
|
case 0:
|
|
366
396
|
// verify required parameter 'code' is not null or undefined
|
|
367
397
|
(0, common_1.assertParamExists)('listActionVersions', 'code', code);
|
|
@@ -381,7 +411,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
381
411
|
case 1:
|
|
382
412
|
// authentication bearer required
|
|
383
413
|
// http bearer authentication required
|
|
384
|
-
|
|
414
|
+
_b.sent();
|
|
385
415
|
if (pageSize !== undefined) {
|
|
386
416
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
387
417
|
}
|
|
@@ -403,8 +433,11 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
403
433
|
if (filters !== undefined) {
|
|
404
434
|
localVarQueryParameter['filters'] = filters;
|
|
405
435
|
}
|
|
406
|
-
|
|
407
|
-
|
|
436
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
437
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
438
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
439
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
440
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
408
441
|
}
|
|
409
442
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
410
443
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -434,9 +467,10 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
434
467
|
listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
435
468
|
if (options === void 0) { options = {}; }
|
|
436
469
|
return __awaiter(_this, void 0, void 0, function () {
|
|
437
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
438
|
-
|
|
439
|
-
|
|
470
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
471
|
+
var _a;
|
|
472
|
+
return __generator(this, function (_b) {
|
|
473
|
+
switch (_b.label) {
|
|
440
474
|
case 0:
|
|
441
475
|
localVarPath = "/actionservice/v1/actions";
|
|
442
476
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -453,7 +487,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
453
487
|
case 1:
|
|
454
488
|
// authentication bearer required
|
|
455
489
|
// http bearer authentication required
|
|
456
|
-
|
|
490
|
+
_b.sent();
|
|
457
491
|
if (pageSize !== undefined) {
|
|
458
492
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
459
493
|
}
|
|
@@ -475,8 +509,11 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
475
509
|
if (filters !== undefined) {
|
|
476
510
|
localVarQueryParameter['filters'] = filters;
|
|
477
511
|
}
|
|
478
|
-
|
|
479
|
-
|
|
512
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
513
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
514
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
515
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
516
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
480
517
|
}
|
|
481
518
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
482
519
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -506,9 +543,10 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
506
543
|
listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
507
544
|
if (options === void 0) { options = {}; }
|
|
508
545
|
return __awaiter(_this, void 0, void 0, function () {
|
|
509
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
510
|
-
|
|
511
|
-
|
|
546
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
547
|
+
var _a;
|
|
548
|
+
return __generator(this, function (_b) {
|
|
549
|
+
switch (_b.label) {
|
|
512
550
|
case 0:
|
|
513
551
|
localVarPath = "/actionservice/v1/actions/versions";
|
|
514
552
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -525,7 +563,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
525
563
|
case 1:
|
|
526
564
|
// authentication bearer required
|
|
527
565
|
// http bearer authentication required
|
|
528
|
-
|
|
566
|
+
_b.sent();
|
|
529
567
|
if (pageSize !== undefined) {
|
|
530
568
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
531
569
|
}
|
|
@@ -547,8 +585,11 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
547
585
|
if (filters !== undefined) {
|
|
548
586
|
localVarQueryParameter['filters'] = filters;
|
|
549
587
|
}
|
|
550
|
-
|
|
551
|
-
|
|
588
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
589
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
590
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
591
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
592
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
552
593
|
}
|
|
553
594
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
554
595
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -573,9 +614,10 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
573
614
|
updateAction: function (code, updateActionRequestDto, authorization, options) {
|
|
574
615
|
if (options === void 0) { options = {}; }
|
|
575
616
|
return __awaiter(_this, void 0, void 0, function () {
|
|
576
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
577
|
-
|
|
578
|
-
|
|
617
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
618
|
+
var _a;
|
|
619
|
+
return __generator(this, function (_b) {
|
|
620
|
+
switch (_b.label) {
|
|
579
621
|
case 0:
|
|
580
622
|
// verify required parameter 'code' is not null or undefined
|
|
581
623
|
(0, common_1.assertParamExists)('updateAction', 'code', code);
|
|
@@ -593,13 +635,19 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
593
635
|
localVarQueryParameter = {};
|
|
594
636
|
// authentication bearer required
|
|
595
637
|
// http bearer authentication required
|
|
596
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
638
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
639
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
640
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
641
|
+
];
|
|
597
642
|
case 1:
|
|
598
643
|
// authentication bearer required
|
|
599
644
|
// http bearer authentication required
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
645
|
+
_b.sent();
|
|
646
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
647
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
648
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
649
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
650
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
603
651
|
}
|
|
604
652
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
605
653
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -990,7 +1038,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
990
1038
|
*/
|
|
991
1039
|
ActionsApi.prototype.createAction = function (requestParameters, options) {
|
|
992
1040
|
var _this = this;
|
|
993
|
-
return (0, exports.ActionsApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1041
|
+
return (0, exports.ActionsApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
994
1042
|
};
|
|
995
1043
|
/**
|
|
996
1044
|
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
@@ -1002,7 +1050,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1002
1050
|
*/
|
|
1003
1051
|
ActionsApi.prototype.deleteAction = function (requestParameters, options) {
|
|
1004
1052
|
var _this = this;
|
|
1005
|
-
return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1053
|
+
return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1006
1054
|
};
|
|
1007
1055
|
/**
|
|
1008
1056
|
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
@@ -1014,7 +1062,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1014
1062
|
*/
|
|
1015
1063
|
ActionsApi.prototype.deleteActionVersion = function (requestParameters, options) {
|
|
1016
1064
|
var _this = this;
|
|
1017
|
-
return (0, exports.ActionsApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1065
|
+
return (0, exports.ActionsApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1018
1066
|
};
|
|
1019
1067
|
/**
|
|
1020
1068
|
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1026,7 +1074,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1026
1074
|
*/
|
|
1027
1075
|
ActionsApi.prototype.getAction = function (requestParameters, options) {
|
|
1028
1076
|
var _this = this;
|
|
1029
|
-
return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1077
|
+
return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1030
1078
|
};
|
|
1031
1079
|
/**
|
|
1032
1080
|
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1038,7 +1086,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1038
1086
|
*/
|
|
1039
1087
|
ActionsApi.prototype.getActionVersion = function (requestParameters, options) {
|
|
1040
1088
|
var _this = this;
|
|
1041
|
-
return (0, exports.ActionsApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1089
|
+
return (0, exports.ActionsApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1042
1090
|
};
|
|
1043
1091
|
/**
|
|
1044
1092
|
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1050,7 +1098,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1050
1098
|
*/
|
|
1051
1099
|
ActionsApi.prototype.listActionVersions = function (requestParameters, options) {
|
|
1052
1100
|
var _this = this;
|
|
1053
|
-
return (0, exports.ActionsApiFp)(this.configuration).listActionVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1101
|
+
return (0, exports.ActionsApiFp)(this.configuration).listActionVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1054
1102
|
};
|
|
1055
1103
|
/**
|
|
1056
1104
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1063,7 +1111,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1063
1111
|
ActionsApi.prototype.listActions = function (requestParameters, options) {
|
|
1064
1112
|
var _this = this;
|
|
1065
1113
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1066
|
-
return (0, exports.ActionsApiFp)(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1114
|
+
return (0, exports.ActionsApiFp)(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1067
1115
|
};
|
|
1068
1116
|
/**
|
|
1069
1117
|
* Lists all action versions. Use filters e.g. isActive==true, entityType==LEAD, name, slug. No parent action code required. **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1076,7 +1124,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1076
1124
|
ActionsApi.prototype.listAllActionVersions = function (requestParameters, options) {
|
|
1077
1125
|
var _this = this;
|
|
1078
1126
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1079
|
-
return (0, exports.ActionsApiFp)(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1127
|
+
return (0, exports.ActionsApiFp)(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1080
1128
|
};
|
|
1081
1129
|
/**
|
|
1082
1130
|
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
@@ -1088,7 +1136,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1088
1136
|
*/
|
|
1089
1137
|
ActionsApi.prototype.updateAction = function (requestParameters, options) {
|
|
1090
1138
|
var _this = this;
|
|
1091
|
-
return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1139
|
+
return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1092
1140
|
};
|
|
1093
1141
|
return ActionsApi;
|
|
1094
1142
|
}(base_1.BaseAPI));
|
|
@@ -250,7 +250,7 @@ export declare class ExecutionsApi extends BaseAPI {
|
|
|
250
250
|
* @throws {RequiredError}
|
|
251
251
|
* @memberof ExecutionsApi
|
|
252
252
|
*/
|
|
253
|
-
getActionExecutionStatus(requestParameters?: ExecutionsApiGetActionExecutionStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionExecutionStatusResponseClass, any, {}>>;
|
|
253
|
+
getActionExecutionStatus(requestParameters?: ExecutionsApiGetActionExecutionStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionExecutionStatusResponseClass, any, {}, any>>;
|
|
254
254
|
/**
|
|
255
255
|
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
256
256
|
* @summary List actionExecutions
|
|
@@ -259,7 +259,7 @@ export declare class ExecutionsApi extends BaseAPI {
|
|
|
259
259
|
* @throws {RequiredError}
|
|
260
260
|
* @memberof ExecutionsApi
|
|
261
261
|
*/
|
|
262
|
-
listActionExecutions(requestParameters?: ExecutionsApiListActionExecutionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionExecutionsResponseClass, any, {}>>;
|
|
262
|
+
listActionExecutions(requestParameters?: ExecutionsApiListActionExecutionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionExecutionsResponseClass, any, {}, any>>;
|
|
263
263
|
/**
|
|
264
264
|
* Triggers an action execution. When the action has an input_validation_schema, the input payload is validated against it; invalid payloads return HTTP 400 with a body containing message and errors (JSON Schema validation errors). **Required Permissions** \"action-management.actions.run\"
|
|
265
265
|
* @summary Create the actionExecution
|
|
@@ -268,5 +268,5 @@ export declare class ExecutionsApi extends BaseAPI {
|
|
|
268
268
|
* @throws {RequiredError}
|
|
269
269
|
* @memberof ExecutionsApi
|
|
270
270
|
*/
|
|
271
|
-
triggerAction(requestParameters: ExecutionsApiTriggerActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TriggerActionResponseClass, any, {}>>;
|
|
271
|
+
triggerAction(requestParameters: ExecutionsApiTriggerActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TriggerActionResponseClass, any, {}, any>>;
|
|
272
272
|
}
|