@emilgroup/action-sdk 1.8.1-beta.19 → 1.8.1-beta.21
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 +36 -96
- package/api/actions-api.ts +27 -72
- package/api/executions-api.ts +9 -24
- package/api/health-api.ts +1 -1
- package/base.ts +43 -239
- package/common.ts +2 -3
- package/configuration.ts +0 -20
- package/dist/api/action-client-api.d.ts +12 -12
- package/dist/api/action-client-api.js +89 -152
- package/dist/api/actions-api.d.ts +9 -9
- package/dist/api/actions-api.js +67 -115
- package/dist/api/executions-api.d.ts +3 -3
- package/dist/api/executions-api.js +22 -37
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/base.d.ts +0 -26
- package/dist/base.js +60 -243
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/dist/configuration.d.ts +0 -17
- package/dist/configuration.js +0 -2
- 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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
741
741
|
}
|
package/dist/api/actions-api.js
CHANGED
|
@@ -103,10 +103,9 @@ 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,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
switch (_b.label) {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
110
109
|
case 0:
|
|
111
110
|
// verify required parameter 'createActionRequestDto' is not null or undefined
|
|
112
111
|
(0, common_1.assertParamExists)('createAction', 'createActionRequestDto', createActionRequestDto);
|
|
@@ -121,19 +120,13 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
121
120
|
localVarQueryParameter = {};
|
|
122
121
|
// authentication bearer required
|
|
123
122
|
// http bearer authentication required
|
|
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
|
-
];
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
128
124
|
case 1:
|
|
129
125
|
// authentication bearer required
|
|
130
126
|
// http bearer authentication required
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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);
|
|
127
|
+
_a.sent();
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
137
130
|
}
|
|
138
131
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -159,10 +152,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
159
152
|
deleteAction: function (code, authorization, options) {
|
|
160
153
|
if (options === void 0) { options = {}; }
|
|
161
154
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
switch (_b.label) {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
166
158
|
case 0:
|
|
167
159
|
// verify required parameter 'code' is not null or undefined
|
|
168
160
|
(0, common_1.assertParamExists)('deleteAction', 'code', code);
|
|
@@ -178,19 +170,13 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
178
170
|
localVarQueryParameter = {};
|
|
179
171
|
// authentication bearer required
|
|
180
172
|
// http bearer authentication required
|
|
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
|
-
];
|
|
173
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
185
174
|
case 1:
|
|
186
175
|
// authentication bearer required
|
|
187
176
|
// http bearer authentication required
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
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);
|
|
177
|
+
_a.sent();
|
|
178
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
194
180
|
}
|
|
195
181
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
196
182
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -214,10 +200,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
214
200
|
deleteActionVersion: function (versionCode, authorization, options) {
|
|
215
201
|
if (options === void 0) { options = {}; }
|
|
216
202
|
return __awaiter(_this, void 0, void 0, function () {
|
|
217
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
switch (_b.label) {
|
|
203
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
204
|
+
return __generator(this, function (_a) {
|
|
205
|
+
switch (_a.label) {
|
|
221
206
|
case 0:
|
|
222
207
|
// verify required parameter 'versionCode' is not null or undefined
|
|
223
208
|
(0, common_1.assertParamExists)('deleteActionVersion', 'versionCode', versionCode);
|
|
@@ -233,19 +218,13 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
233
218
|
localVarQueryParameter = {};
|
|
234
219
|
// authentication bearer required
|
|
235
220
|
// http bearer authentication required
|
|
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
|
-
];
|
|
221
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
240
222
|
case 1:
|
|
241
223
|
// authentication bearer required
|
|
242
224
|
// http bearer authentication required
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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);
|
|
225
|
+
_a.sent();
|
|
226
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
249
228
|
}
|
|
250
229
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
251
230
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -270,10 +249,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
270
249
|
getAction: function (code, authorization, expand, options) {
|
|
271
250
|
if (options === void 0) { options = {}; }
|
|
272
251
|
return __awaiter(_this, void 0, void 0, function () {
|
|
273
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
switch (_b.label) {
|
|
252
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
253
|
+
return __generator(this, function (_a) {
|
|
254
|
+
switch (_a.label) {
|
|
277
255
|
case 0:
|
|
278
256
|
// verify required parameter 'code' is not null or undefined
|
|
279
257
|
(0, common_1.assertParamExists)('getAction', 'code', code);
|
|
@@ -293,15 +271,12 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
293
271
|
case 1:
|
|
294
272
|
// authentication bearer required
|
|
295
273
|
// http bearer authentication required
|
|
296
|
-
|
|
274
|
+
_a.sent();
|
|
297
275
|
if (expand !== undefined) {
|
|
298
276
|
localVarQueryParameter['expand'] = expand;
|
|
299
277
|
}
|
|
300
|
-
|
|
301
|
-
|
|
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);
|
|
278
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
279
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
305
280
|
}
|
|
306
281
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
307
282
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -326,10 +301,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
326
301
|
getActionVersion: function (versionCode, authorization, expand, options) {
|
|
327
302
|
if (options === void 0) { options = {}; }
|
|
328
303
|
return __awaiter(_this, void 0, void 0, function () {
|
|
329
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
switch (_b.label) {
|
|
304
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
305
|
+
return __generator(this, function (_a) {
|
|
306
|
+
switch (_a.label) {
|
|
333
307
|
case 0:
|
|
334
308
|
// verify required parameter 'versionCode' is not null or undefined
|
|
335
309
|
(0, common_1.assertParamExists)('getActionVersion', 'versionCode', versionCode);
|
|
@@ -349,15 +323,12 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
349
323
|
case 1:
|
|
350
324
|
// authentication bearer required
|
|
351
325
|
// http bearer authentication required
|
|
352
|
-
|
|
326
|
+
_a.sent();
|
|
353
327
|
if (expand !== undefined) {
|
|
354
328
|
localVarQueryParameter['expand'] = expand;
|
|
355
329
|
}
|
|
356
|
-
|
|
357
|
-
|
|
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);
|
|
330
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
331
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
361
332
|
}
|
|
362
333
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
363
334
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -388,10 +359,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
388
359
|
listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
389
360
|
if (options === void 0) { options = {}; }
|
|
390
361
|
return __awaiter(_this, void 0, void 0, function () {
|
|
391
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
switch (_b.label) {
|
|
362
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
363
|
+
return __generator(this, function (_a) {
|
|
364
|
+
switch (_a.label) {
|
|
395
365
|
case 0:
|
|
396
366
|
// verify required parameter 'code' is not null or undefined
|
|
397
367
|
(0, common_1.assertParamExists)('listActionVersions', 'code', code);
|
|
@@ -411,7 +381,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
411
381
|
case 1:
|
|
412
382
|
// authentication bearer required
|
|
413
383
|
// http bearer authentication required
|
|
414
|
-
|
|
384
|
+
_a.sent();
|
|
415
385
|
if (pageSize !== undefined) {
|
|
416
386
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
417
387
|
}
|
|
@@ -433,11 +403,8 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
433
403
|
if (filters !== undefined) {
|
|
434
404
|
localVarQueryParameter['filters'] = filters;
|
|
435
405
|
}
|
|
436
|
-
|
|
437
|
-
|
|
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);
|
|
406
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
407
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
441
408
|
}
|
|
442
409
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
443
410
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -467,10 +434,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
467
434
|
listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
468
435
|
if (options === void 0) { options = {}; }
|
|
469
436
|
return __awaiter(_this, void 0, void 0, function () {
|
|
470
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
switch (_b.label) {
|
|
437
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
438
|
+
return __generator(this, function (_a) {
|
|
439
|
+
switch (_a.label) {
|
|
474
440
|
case 0:
|
|
475
441
|
localVarPath = "/actionservice/v1/actions";
|
|
476
442
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -487,7 +453,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
487
453
|
case 1:
|
|
488
454
|
// authentication bearer required
|
|
489
455
|
// http bearer authentication required
|
|
490
|
-
|
|
456
|
+
_a.sent();
|
|
491
457
|
if (pageSize !== undefined) {
|
|
492
458
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
493
459
|
}
|
|
@@ -509,11 +475,8 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
509
475
|
if (filters !== undefined) {
|
|
510
476
|
localVarQueryParameter['filters'] = filters;
|
|
511
477
|
}
|
|
512
|
-
|
|
513
|
-
|
|
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);
|
|
478
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
479
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
517
480
|
}
|
|
518
481
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
519
482
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -543,10 +506,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
543
506
|
listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
544
507
|
if (options === void 0) { options = {}; }
|
|
545
508
|
return __awaiter(_this, void 0, void 0, function () {
|
|
546
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
switch (_b.label) {
|
|
509
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
510
|
+
return __generator(this, function (_a) {
|
|
511
|
+
switch (_a.label) {
|
|
550
512
|
case 0:
|
|
551
513
|
localVarPath = "/actionservice/v1/actions/versions";
|
|
552
514
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -563,7 +525,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
563
525
|
case 1:
|
|
564
526
|
// authentication bearer required
|
|
565
527
|
// http bearer authentication required
|
|
566
|
-
|
|
528
|
+
_a.sent();
|
|
567
529
|
if (pageSize !== undefined) {
|
|
568
530
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
569
531
|
}
|
|
@@ -585,11 +547,8 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
585
547
|
if (filters !== undefined) {
|
|
586
548
|
localVarQueryParameter['filters'] = filters;
|
|
587
549
|
}
|
|
588
|
-
|
|
589
|
-
|
|
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);
|
|
550
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
551
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
593
552
|
}
|
|
594
553
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
595
554
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -614,10 +573,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
614
573
|
updateAction: function (code, updateActionRequestDto, authorization, options) {
|
|
615
574
|
if (options === void 0) { options = {}; }
|
|
616
575
|
return __awaiter(_this, void 0, void 0, function () {
|
|
617
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
switch (_b.label) {
|
|
576
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
577
|
+
return __generator(this, function (_a) {
|
|
578
|
+
switch (_a.label) {
|
|
621
579
|
case 0:
|
|
622
580
|
// verify required parameter 'code' is not null or undefined
|
|
623
581
|
(0, common_1.assertParamExists)('updateAction', 'code', code);
|
|
@@ -635,19 +593,13 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
635
593
|
localVarQueryParameter = {};
|
|
636
594
|
// authentication bearer required
|
|
637
595
|
// http bearer authentication required
|
|
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
|
-
];
|
|
596
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
642
597
|
case 1:
|
|
643
598
|
// authentication bearer required
|
|
644
599
|
// http bearer authentication required
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
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);
|
|
600
|
+
_a.sent();
|
|
601
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
602
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
651
603
|
}
|
|
652
604
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
653
605
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1038,7 +990,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1038
990
|
*/
|
|
1039
991
|
ActionsApi.prototype.createAction = function (requestParameters, options) {
|
|
1040
992
|
var _this = this;
|
|
1041
|
-
return (0, exports.ActionsApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization,
|
|
993
|
+
return (0, exports.ActionsApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1042
994
|
};
|
|
1043
995
|
/**
|
|
1044
996
|
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
@@ -1050,7 +1002,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1050
1002
|
*/
|
|
1051
1003
|
ActionsApi.prototype.deleteAction = function (requestParameters, options) {
|
|
1052
1004
|
var _this = this;
|
|
1053
|
-
return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization,
|
|
1005
|
+
return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1054
1006
|
};
|
|
1055
1007
|
/**
|
|
1056
1008
|
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
@@ -1062,7 +1014,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1062
1014
|
*/
|
|
1063
1015
|
ActionsApi.prototype.deleteActionVersion = function (requestParameters, options) {
|
|
1064
1016
|
var _this = this;
|
|
1065
|
-
return (0, exports.ActionsApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization,
|
|
1017
|
+
return (0, exports.ActionsApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1066
1018
|
};
|
|
1067
1019
|
/**
|
|
1068
1020
|
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1074,7 +1026,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1074
1026
|
*/
|
|
1075
1027
|
ActionsApi.prototype.getAction = function (requestParameters, options) {
|
|
1076
1028
|
var _this = this;
|
|
1077
|
-
return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand,
|
|
1029
|
+
return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1078
1030
|
};
|
|
1079
1031
|
/**
|
|
1080
1032
|
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1086,7 +1038,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1086
1038
|
*/
|
|
1087
1039
|
ActionsApi.prototype.getActionVersion = function (requestParameters, options) {
|
|
1088
1040
|
var _this = this;
|
|
1089
|
-
return (0, exports.ActionsApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand,
|
|
1041
|
+
return (0, exports.ActionsApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1090
1042
|
};
|
|
1091
1043
|
/**
|
|
1092
1044
|
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1098,7 +1050,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1098
1050
|
*/
|
|
1099
1051
|
ActionsApi.prototype.listActionVersions = function (requestParameters, options) {
|
|
1100
1052
|
var _this = this;
|
|
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,
|
|
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); });
|
|
1102
1054
|
};
|
|
1103
1055
|
/**
|
|
1104
1056
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1111,7 +1063,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1111
1063
|
ActionsApi.prototype.listActions = function (requestParameters, options) {
|
|
1112
1064
|
var _this = this;
|
|
1113
1065
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1114
|
-
return (0, exports.ActionsApiFp)(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
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); });
|
|
1115
1067
|
};
|
|
1116
1068
|
/**
|
|
1117
1069
|
* 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\"
|
|
@@ -1124,7 +1076,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1124
1076
|
ActionsApi.prototype.listAllActionVersions = function (requestParameters, options) {
|
|
1125
1077
|
var _this = this;
|
|
1126
1078
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1127
|
-
return (0, exports.ActionsApiFp)(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
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); });
|
|
1128
1080
|
};
|
|
1129
1081
|
/**
|
|
1130
1082
|
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
@@ -1136,7 +1088,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1136
1088
|
*/
|
|
1137
1089
|
ActionsApi.prototype.updateAction = function (requestParameters, options) {
|
|
1138
1090
|
var _this = this;
|
|
1139
|
-
return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization,
|
|
1091
|
+
return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1140
1092
|
};
|
|
1141
1093
|
return ActionsApi;
|
|
1142
1094
|
}(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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
272
272
|
}
|