@emilgroup/action-sdk 1.8.1-beta.10 → 1.8.1-beta.14
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 +48 -24
- package/api/actions-api.ts +36 -18
- package/api/executions-api.ts +12 -6
- package/base.ts +174 -41
- 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 +63 -41
- package/dist/api/actions-api.d.ts +9 -9
- package/dist/api/actions-api.js +48 -31
- package/dist/api/executions-api.d.ts +3 -3
- package/dist/api/executions-api.js +15 -10
- package/dist/api/health-api.d.ts +1 -1
- package/dist/base.d.ts +24 -0
- package/dist/base.js +178 -59
- 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.14 --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.14
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `ActionsApi`.
|
package/api/action-client-api.ts
CHANGED
|
@@ -79,8 +79,10 @@ 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; an empty value is never sent.
|
|
83
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
84
|
+
if (authorizationValue) {
|
|
85
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
|
|
@@ -127,8 +129,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
127
129
|
// http bearer authentication required
|
|
128
130
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
129
131
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
133
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
if (authorizationValue) {
|
|
135
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
132
136
|
}
|
|
133
137
|
|
|
134
138
|
|
|
@@ -172,8 +176,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
172
176
|
// http bearer authentication required
|
|
173
177
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
174
178
|
|
|
175
|
-
|
|
176
|
-
|
|
179
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
180
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
181
|
+
if (authorizationValue) {
|
|
182
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
177
183
|
}
|
|
178
184
|
|
|
179
185
|
|
|
@@ -222,8 +228,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
222
228
|
localVarQueryParameter['expand'] = expand;
|
|
223
229
|
}
|
|
224
230
|
|
|
225
|
-
|
|
226
|
-
|
|
231
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
232
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
233
|
+
if (authorizationValue) {
|
|
234
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
227
235
|
}
|
|
228
236
|
|
|
229
237
|
|
|
@@ -273,8 +281,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
273
281
|
localVarQueryParameter['correlationId'] = correlationId;
|
|
274
282
|
}
|
|
275
283
|
|
|
276
|
-
|
|
277
|
-
|
|
284
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
285
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
286
|
+
if (authorizationValue) {
|
|
287
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
278
288
|
}
|
|
279
289
|
|
|
280
290
|
|
|
@@ -323,8 +333,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
323
333
|
localVarQueryParameter['expand'] = expand;
|
|
324
334
|
}
|
|
325
335
|
|
|
326
|
-
|
|
327
|
-
|
|
336
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
337
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
338
|
+
if (authorizationValue) {
|
|
339
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
328
340
|
}
|
|
329
341
|
|
|
330
342
|
|
|
@@ -399,8 +411,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
399
411
|
localVarQueryParameter['filters'] = filters;
|
|
400
412
|
}
|
|
401
413
|
|
|
402
|
-
|
|
403
|
-
|
|
414
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
415
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
416
|
+
if (authorizationValue) {
|
|
417
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
404
418
|
}
|
|
405
419
|
|
|
406
420
|
|
|
@@ -479,8 +493,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
479
493
|
localVarQueryParameter['filters'] = filters;
|
|
480
494
|
}
|
|
481
495
|
|
|
482
|
-
|
|
483
|
-
|
|
496
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
497
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
498
|
+
if (authorizationValue) {
|
|
499
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
484
500
|
}
|
|
485
501
|
|
|
486
502
|
|
|
@@ -555,8 +571,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
555
571
|
localVarQueryParameter['filters'] = filters;
|
|
556
572
|
}
|
|
557
573
|
|
|
558
|
-
|
|
559
|
-
|
|
574
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
575
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
576
|
+
if (authorizationValue) {
|
|
577
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
560
578
|
}
|
|
561
579
|
|
|
562
580
|
|
|
@@ -631,8 +649,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
631
649
|
localVarQueryParameter['filters'] = filters;
|
|
632
650
|
}
|
|
633
651
|
|
|
634
|
-
|
|
635
|
-
|
|
652
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
653
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
654
|
+
if (authorizationValue) {
|
|
655
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
636
656
|
}
|
|
637
657
|
|
|
638
658
|
|
|
@@ -675,8 +695,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
675
695
|
// http bearer authentication required
|
|
676
696
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
677
697
|
|
|
678
|
-
|
|
679
|
-
|
|
698
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
699
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
700
|
+
if (authorizationValue) {
|
|
701
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
680
702
|
}
|
|
681
703
|
|
|
682
704
|
|
|
@@ -726,8 +748,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
|
|
|
726
748
|
// http bearer authentication required
|
|
727
749
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
728
750
|
|
|
729
|
-
|
|
730
|
-
|
|
751
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
752
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
753
|
+
if (authorizationValue) {
|
|
754
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
731
755
|
}
|
|
732
756
|
|
|
733
757
|
|
package/api/actions-api.ts
CHANGED
|
@@ -71,8 +71,10 @@ 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; an empty value is never sent.
|
|
75
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
76
|
+
if (authorizationValue) {
|
|
77
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
|
|
@@ -119,8 +121,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
119
121
|
// http bearer authentication required
|
|
120
122
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
123
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
125
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
126
|
+
if (authorizationValue) {
|
|
127
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
124
128
|
}
|
|
125
129
|
|
|
126
130
|
|
|
@@ -164,8 +168,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
164
168
|
// http bearer authentication required
|
|
165
169
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
166
170
|
|
|
167
|
-
|
|
168
|
-
|
|
171
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
172
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
173
|
+
if (authorizationValue) {
|
|
174
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
169
175
|
}
|
|
170
176
|
|
|
171
177
|
|
|
@@ -214,8 +220,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
214
220
|
localVarQueryParameter['expand'] = expand;
|
|
215
221
|
}
|
|
216
222
|
|
|
217
|
-
|
|
218
|
-
|
|
223
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
224
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
225
|
+
if (authorizationValue) {
|
|
226
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
219
227
|
}
|
|
220
228
|
|
|
221
229
|
|
|
@@ -264,8 +272,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
264
272
|
localVarQueryParameter['expand'] = expand;
|
|
265
273
|
}
|
|
266
274
|
|
|
267
|
-
|
|
268
|
-
|
|
275
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
276
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
277
|
+
if (authorizationValue) {
|
|
278
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
269
279
|
}
|
|
270
280
|
|
|
271
281
|
|
|
@@ -344,8 +354,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
344
354
|
localVarQueryParameter['filters'] = filters;
|
|
345
355
|
}
|
|
346
356
|
|
|
347
|
-
|
|
348
|
-
|
|
357
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
358
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
359
|
+
if (authorizationValue) {
|
|
360
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
349
361
|
}
|
|
350
362
|
|
|
351
363
|
|
|
@@ -420,8 +432,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
420
432
|
localVarQueryParameter['filters'] = filters;
|
|
421
433
|
}
|
|
422
434
|
|
|
423
|
-
|
|
424
|
-
|
|
435
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
436
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
437
|
+
if (authorizationValue) {
|
|
438
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
425
439
|
}
|
|
426
440
|
|
|
427
441
|
|
|
@@ -496,8 +510,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
496
510
|
localVarQueryParameter['filters'] = filters;
|
|
497
511
|
}
|
|
498
512
|
|
|
499
|
-
|
|
500
|
-
|
|
513
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
514
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
515
|
+
if (authorizationValue) {
|
|
516
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
501
517
|
}
|
|
502
518
|
|
|
503
519
|
|
|
@@ -544,8 +560,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
544
560
|
// http bearer authentication required
|
|
545
561
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
546
562
|
|
|
547
|
-
|
|
548
|
-
|
|
563
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
564
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
565
|
+
if (authorizationValue) {
|
|
566
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
549
567
|
}
|
|
550
568
|
|
|
551
569
|
|
package/api/executions-api.ts
CHANGED
|
@@ -70,8 +70,10 @@ export const ExecutionsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
70
70
|
localVarQueryParameter['correlationId'] = correlationId;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
74
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
75
|
+
if (authorizationValue) {
|
|
76
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
|
|
@@ -146,8 +148,10 @@ export const ExecutionsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
146
148
|
localVarQueryParameter['filters'] = filters;
|
|
147
149
|
}
|
|
148
150
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
152
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
153
|
+
if (authorizationValue) {
|
|
154
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
151
155
|
}
|
|
152
156
|
|
|
153
157
|
|
|
@@ -190,8 +194,10 @@ export const ExecutionsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
190
194
|
// http bearer authentication required
|
|
191
195
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
192
196
|
|
|
193
|
-
|
|
194
|
-
|
|
197
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
198
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
199
|
+
if (authorizationValue) {
|
|
200
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
195
201
|
}
|
|
196
202
|
|
|
197
203
|
|