@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
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/action-sdk@1.8.1-beta.
|
|
20
|
+
npm install @emilgroup/action-sdk@1.8.1-beta.17 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/action-sdk@1.8.1-beta.
|
|
24
|
+
yarn add @emilgroup/action-sdk@1.8.1-beta.17
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `ActionsApi`.
|
package/api/action-client-api.ts
CHANGED
|
@@ -79,8 +79,13 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
79
79
|
// http bearer authentication required
|
|
80
80
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
83
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
84
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
85
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
86
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
87
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
88
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
84
89
|
}
|
|
85
90
|
|
|
86
91
|
|
|
@@ -127,8 +132,13 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
127
132
|
// http bearer authentication required
|
|
128
133
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
129
134
|
|
|
130
|
-
|
|
131
|
-
|
|
135
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
136
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
137
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
138
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
139
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
140
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
141
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
132
142
|
}
|
|
133
143
|
|
|
134
144
|
|
|
@@ -172,8 +182,13 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
172
182
|
// http bearer authentication required
|
|
173
183
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
174
184
|
|
|
175
|
-
|
|
176
|
-
|
|
185
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
186
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
187
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
188
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
189
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
190
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
191
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
177
192
|
}
|
|
178
193
|
|
|
179
194
|
|
|
@@ -222,8 +237,13 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
222
237
|
localVarQueryParameter['expand'] = expand;
|
|
223
238
|
}
|
|
224
239
|
|
|
225
|
-
|
|
226
|
-
|
|
240
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
241
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
242
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
243
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
244
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
245
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
246
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
227
247
|
}
|
|
228
248
|
|
|
229
249
|
|
|
@@ -273,8 +293,13 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
273
293
|
localVarQueryParameter['correlationId'] = correlationId;
|
|
274
294
|
}
|
|
275
295
|
|
|
276
|
-
|
|
277
|
-
|
|
296
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
297
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
298
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
299
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
300
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
301
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
302
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
278
303
|
}
|
|
279
304
|
|
|
280
305
|
|
|
@@ -323,8 +348,13 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
323
348
|
localVarQueryParameter['expand'] = expand;
|
|
324
349
|
}
|
|
325
350
|
|
|
326
|
-
|
|
327
|
-
|
|
351
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
352
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
353
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
354
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
355
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
356
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
357
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
328
358
|
}
|
|
329
359
|
|
|
330
360
|
|
|
@@ -399,8 +429,13 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
399
429
|
localVarQueryParameter['filters'] = filters;
|
|
400
430
|
}
|
|
401
431
|
|
|
402
|
-
|
|
403
|
-
|
|
432
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
433
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
434
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
435
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
436
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
437
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
438
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
404
439
|
}
|
|
405
440
|
|
|
406
441
|
|
|
@@ -479,8 +514,13 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
479
514
|
localVarQueryParameter['filters'] = filters;
|
|
480
515
|
}
|
|
481
516
|
|
|
482
|
-
|
|
483
|
-
|
|
517
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
518
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
519
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
520
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
521
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
522
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
523
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
484
524
|
}
|
|
485
525
|
|
|
486
526
|
|
|
@@ -555,8 +595,13 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
555
595
|
localVarQueryParameter['filters'] = filters;
|
|
556
596
|
}
|
|
557
597
|
|
|
558
|
-
|
|
559
|
-
|
|
598
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
599
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
600
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
601
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
602
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
603
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
604
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
560
605
|
}
|
|
561
606
|
|
|
562
607
|
|
|
@@ -631,8 +676,13 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
631
676
|
localVarQueryParameter['filters'] = filters;
|
|
632
677
|
}
|
|
633
678
|
|
|
634
|
-
|
|
635
|
-
|
|
679
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
680
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
681
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
682
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
683
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
684
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
685
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
636
686
|
}
|
|
637
687
|
|
|
638
688
|
|
|
@@ -675,8 +725,13 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
675
725
|
// http bearer authentication required
|
|
676
726
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
677
727
|
|
|
678
|
-
|
|
679
|
-
|
|
728
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
729
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
730
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
731
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
732
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
733
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
734
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
680
735
|
}
|
|
681
736
|
|
|
682
737
|
|
|
@@ -726,8 +781,13 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
726
781
|
// http bearer authentication required
|
|
727
782
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
728
783
|
|
|
729
|
-
|
|
730
|
-
|
|
784
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
785
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
786
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
787
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
788
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
789
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
790
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
731
791
|
}
|
|
732
792
|
|
|
733
793
|
|
|
@@ -1572,7 +1632,7 @@ export class ActionClientApi extends BaseAPI {
|
|
|
1572
1632
|
* @memberof ActionClientApi
|
|
1573
1633
|
*/
|
|
1574
1634
|
public createAction(requestParameters: ActionClientApiCreateActionRequest, options?: AxiosRequestConfig) {
|
|
1575
|
-
return ActionClientApiFp(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1635
|
+
return ActionClientApiFp(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1576
1636
|
}
|
|
1577
1637
|
|
|
1578
1638
|
/**
|
|
@@ -1584,7 +1644,7 @@ export class ActionClientApi extends BaseAPI {
|
|
|
1584
1644
|
* @memberof ActionClientApi
|
|
1585
1645
|
*/
|
|
1586
1646
|
public deleteAction(requestParameters: ActionClientApiDeleteActionRequest, options?: AxiosRequestConfig) {
|
|
1587
|
-
return ActionClientApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1647
|
+
return ActionClientApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1588
1648
|
}
|
|
1589
1649
|
|
|
1590
1650
|
/**
|
|
@@ -1596,7 +1656,7 @@ export class ActionClientApi extends BaseAPI {
|
|
|
1596
1656
|
* @memberof ActionClientApi
|
|
1597
1657
|
*/
|
|
1598
1658
|
public deleteActionVersion(requestParameters: ActionClientApiDeleteActionVersionRequest, options?: AxiosRequestConfig) {
|
|
1599
|
-
return ActionClientApiFp(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1659
|
+
return ActionClientApiFp(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1600
1660
|
}
|
|
1601
1661
|
|
|
1602
1662
|
/**
|
|
@@ -1608,7 +1668,7 @@ export class ActionClientApi extends BaseAPI {
|
|
|
1608
1668
|
* @memberof ActionClientApi
|
|
1609
1669
|
*/
|
|
1610
1670
|
public getAction(requestParameters: ActionClientApiGetActionRequest, options?: AxiosRequestConfig) {
|
|
1611
|
-
return ActionClientApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1671
|
+
return ActionClientApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1612
1672
|
}
|
|
1613
1673
|
|
|
1614
1674
|
/**
|
|
@@ -1620,7 +1680,7 @@ export class ActionClientApi extends BaseAPI {
|
|
|
1620
1680
|
* @memberof ActionClientApi
|
|
1621
1681
|
*/
|
|
1622
1682
|
public getActionExecutionStatus(requestParameters: ActionClientApiGetActionExecutionStatusRequest = {}, options?: AxiosRequestConfig) {
|
|
1623
|
-
return ActionClientApiFp(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then((request) => request(this.axios, this.basePath));
|
|
1683
|
+
return ActionClientApiFp(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1624
1684
|
}
|
|
1625
1685
|
|
|
1626
1686
|
/**
|
|
@@ -1632,7 +1692,7 @@ export class ActionClientApi extends BaseAPI {
|
|
|
1632
1692
|
* @memberof ActionClientApi
|
|
1633
1693
|
*/
|
|
1634
1694
|
public getActionVersion(requestParameters: ActionClientApiGetActionVersionRequest, options?: AxiosRequestConfig) {
|
|
1635
|
-
return ActionClientApiFp(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1695
|
+
return ActionClientApiFp(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1636
1696
|
}
|
|
1637
1697
|
|
|
1638
1698
|
/**
|
|
@@ -1644,7 +1704,7 @@ export class ActionClientApi extends BaseAPI {
|
|
|
1644
1704
|
* @memberof ActionClientApi
|
|
1645
1705
|
*/
|
|
1646
1706
|
public listActionExecutions(requestParameters: ActionClientApiListActionExecutionsRequest = {}, options?: AxiosRequestConfig) {
|
|
1647
|
-
return ActionClientApiFp(this.configuration).listActionExecutions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1707
|
+
return ActionClientApiFp(this.configuration).listActionExecutions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1648
1708
|
}
|
|
1649
1709
|
|
|
1650
1710
|
/**
|
|
@@ -1656,7 +1716,7 @@ export class ActionClientApi extends BaseAPI {
|
|
|
1656
1716
|
* @memberof ActionClientApi
|
|
1657
1717
|
*/
|
|
1658
1718
|
public listActionVersions(requestParameters: ActionClientApiListActionVersionsRequest, options?: AxiosRequestConfig) {
|
|
1659
|
-
return ActionClientApiFp(this.configuration).listActionVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1719
|
+
return ActionClientApiFp(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((request) => request(this.axios, this.basePath));
|
|
1660
1720
|
}
|
|
1661
1721
|
|
|
1662
1722
|
/**
|
|
@@ -1668,7 +1728,7 @@ export class ActionClientApi extends BaseAPI {
|
|
|
1668
1728
|
* @memberof ActionClientApi
|
|
1669
1729
|
*/
|
|
1670
1730
|
public listActions(requestParameters: ActionClientApiListActionsRequest = {}, options?: AxiosRequestConfig) {
|
|
1671
|
-
return ActionClientApiFp(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1731
|
+
return ActionClientApiFp(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1672
1732
|
}
|
|
1673
1733
|
|
|
1674
1734
|
/**
|
|
@@ -1680,7 +1740,7 @@ export class ActionClientApi extends BaseAPI {
|
|
|
1680
1740
|
* @memberof ActionClientApi
|
|
1681
1741
|
*/
|
|
1682
1742
|
public listAllActionVersions(requestParameters: ActionClientApiListAllActionVersionsRequest = {}, options?: AxiosRequestConfig) {
|
|
1683
|
-
return ActionClientApiFp(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1743
|
+
return ActionClientApiFp(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1684
1744
|
}
|
|
1685
1745
|
|
|
1686
1746
|
/**
|
|
@@ -1692,7 +1752,7 @@ export class ActionClientApi extends BaseAPI {
|
|
|
1692
1752
|
* @memberof ActionClientApi
|
|
1693
1753
|
*/
|
|
1694
1754
|
public triggerAction(requestParameters: ActionClientApiTriggerActionRequest, options?: AxiosRequestConfig) {
|
|
1695
|
-
return ActionClientApiFp(this.configuration).triggerAction(requestParameters.triggerActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1755
|
+
return ActionClientApiFp(this.configuration).triggerAction(requestParameters.triggerActionRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1696
1756
|
}
|
|
1697
1757
|
|
|
1698
1758
|
/**
|
|
@@ -1704,6 +1764,6 @@ export class ActionClientApi extends BaseAPI {
|
|
|
1704
1764
|
* @memberof ActionClientApi
|
|
1705
1765
|
*/
|
|
1706
1766
|
public updateAction(requestParameters: ActionClientApiUpdateActionRequest, options?: AxiosRequestConfig) {
|
|
1707
|
-
return ActionClientApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1767
|
+
return ActionClientApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1708
1768
|
}
|
|
1709
1769
|
}
|
package/api/actions-api.ts
CHANGED
|
@@ -71,8 +71,13 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
71
71
|
// http bearer authentication required
|
|
72
72
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
75
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
76
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
77
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
78
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
79
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
80
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
|
|
@@ -119,8 +124,13 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
119
124
|
// http bearer authentication required
|
|
120
125
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
126
|
|
|
122
|
-
|
|
123
|
-
|
|
127
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
128
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
129
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
130
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
131
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
132
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
124
134
|
}
|
|
125
135
|
|
|
126
136
|
|
|
@@ -164,8 +174,13 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
164
174
|
// http bearer authentication required
|
|
165
175
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
166
176
|
|
|
167
|
-
|
|
168
|
-
|
|
177
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
178
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
179
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
180
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
181
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
182
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
169
184
|
}
|
|
170
185
|
|
|
171
186
|
|
|
@@ -214,8 +229,13 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
214
229
|
localVarQueryParameter['expand'] = expand;
|
|
215
230
|
}
|
|
216
231
|
|
|
217
|
-
|
|
218
|
-
|
|
232
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
233
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
234
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
235
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
236
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
237
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
238
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
219
239
|
}
|
|
220
240
|
|
|
221
241
|
|
|
@@ -264,8 +284,13 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
264
284
|
localVarQueryParameter['expand'] = expand;
|
|
265
285
|
}
|
|
266
286
|
|
|
267
|
-
|
|
268
|
-
|
|
287
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
288
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
289
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
290
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
291
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
292
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
293
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
269
294
|
}
|
|
270
295
|
|
|
271
296
|
|
|
@@ -344,8 +369,13 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
344
369
|
localVarQueryParameter['filters'] = filters;
|
|
345
370
|
}
|
|
346
371
|
|
|
347
|
-
|
|
348
|
-
|
|
372
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
373
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
374
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
375
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
376
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
377
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
378
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
349
379
|
}
|
|
350
380
|
|
|
351
381
|
|
|
@@ -420,8 +450,13 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
420
450
|
localVarQueryParameter['filters'] = filters;
|
|
421
451
|
}
|
|
422
452
|
|
|
423
|
-
|
|
424
|
-
|
|
453
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
454
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
455
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
456
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
457
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
458
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
459
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
425
460
|
}
|
|
426
461
|
|
|
427
462
|
|
|
@@ -496,8 +531,13 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
496
531
|
localVarQueryParameter['filters'] = filters;
|
|
497
532
|
}
|
|
498
533
|
|
|
499
|
-
|
|
500
|
-
|
|
534
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
535
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
536
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
537
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
538
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
539
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
540
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
501
541
|
}
|
|
502
542
|
|
|
503
543
|
|
|
@@ -544,8 +584,13 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
544
584
|
// http bearer authentication required
|
|
545
585
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
546
586
|
|
|
547
|
-
|
|
548
|
-
|
|
587
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
588
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
589
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
590
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
591
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
592
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
593
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
549
594
|
}
|
|
550
595
|
|
|
551
596
|
|
|
@@ -1195,7 +1240,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
1195
1240
|
* @memberof ActionsApi
|
|
1196
1241
|
*/
|
|
1197
1242
|
public createAction(requestParameters: ActionsApiCreateActionRequest, options?: AxiosRequestConfig) {
|
|
1198
|
-
return ActionsApiFp(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1243
|
+
return ActionsApiFp(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1199
1244
|
}
|
|
1200
1245
|
|
|
1201
1246
|
/**
|
|
@@ -1207,7 +1252,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
1207
1252
|
* @memberof ActionsApi
|
|
1208
1253
|
*/
|
|
1209
1254
|
public deleteAction(requestParameters: ActionsApiDeleteActionRequest, options?: AxiosRequestConfig) {
|
|
1210
|
-
return ActionsApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1255
|
+
return ActionsApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1211
1256
|
}
|
|
1212
1257
|
|
|
1213
1258
|
/**
|
|
@@ -1219,7 +1264,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
1219
1264
|
* @memberof ActionsApi
|
|
1220
1265
|
*/
|
|
1221
1266
|
public deleteActionVersion(requestParameters: ActionsApiDeleteActionVersionRequest, options?: AxiosRequestConfig) {
|
|
1222
|
-
return ActionsApiFp(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1267
|
+
return ActionsApiFp(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1223
1268
|
}
|
|
1224
1269
|
|
|
1225
1270
|
/**
|
|
@@ -1231,7 +1276,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
1231
1276
|
* @memberof ActionsApi
|
|
1232
1277
|
*/
|
|
1233
1278
|
public getAction(requestParameters: ActionsApiGetActionRequest, options?: AxiosRequestConfig) {
|
|
1234
|
-
return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1279
|
+
return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1235
1280
|
}
|
|
1236
1281
|
|
|
1237
1282
|
/**
|
|
@@ -1243,7 +1288,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
1243
1288
|
* @memberof ActionsApi
|
|
1244
1289
|
*/
|
|
1245
1290
|
public getActionVersion(requestParameters: ActionsApiGetActionVersionRequest, options?: AxiosRequestConfig) {
|
|
1246
|
-
return ActionsApiFp(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1291
|
+
return ActionsApiFp(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1247
1292
|
}
|
|
1248
1293
|
|
|
1249
1294
|
/**
|
|
@@ -1255,7 +1300,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
1255
1300
|
* @memberof ActionsApi
|
|
1256
1301
|
*/
|
|
1257
1302
|
public listActionVersions(requestParameters: ActionsApiListActionVersionsRequest, options?: AxiosRequestConfig) {
|
|
1258
|
-
return ActionsApiFp(this.configuration).listActionVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1303
|
+
return 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((request) => request(this.axios, this.basePath));
|
|
1259
1304
|
}
|
|
1260
1305
|
|
|
1261
1306
|
/**
|
|
@@ -1267,7 +1312,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
1267
1312
|
* @memberof ActionsApi
|
|
1268
1313
|
*/
|
|
1269
1314
|
public listActions(requestParameters: ActionsApiListActionsRequest = {}, options?: AxiosRequestConfig) {
|
|
1270
|
-
return ActionsApiFp(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1315
|
+
return ActionsApiFp(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1271
1316
|
}
|
|
1272
1317
|
|
|
1273
1318
|
/**
|
|
@@ -1279,7 +1324,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
1279
1324
|
* @memberof ActionsApi
|
|
1280
1325
|
*/
|
|
1281
1326
|
public listAllActionVersions(requestParameters: ActionsApiListAllActionVersionsRequest = {}, options?: AxiosRequestConfig) {
|
|
1282
|
-
return ActionsApiFp(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1327
|
+
return ActionsApiFp(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1283
1328
|
}
|
|
1284
1329
|
|
|
1285
1330
|
/**
|
|
@@ -1291,6 +1336,6 @@ export class ActionsApi extends BaseAPI {
|
|
|
1291
1336
|
* @memberof ActionsApi
|
|
1292
1337
|
*/
|
|
1293
1338
|
public updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig) {
|
|
1294
|
-
return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1339
|
+
return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1295
1340
|
}
|
|
1296
1341
|
}
|