@io-orkes/conductor-javascript 2.2.0 → 2.2.1
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/dist/index.d.mts +211 -3
- package/dist/index.d.ts +211 -3
- package/dist/index.js +2327 -154
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2327 -154
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -23487,6 +23487,278 @@ var client = createClient(createConfig({
|
|
|
23487
23487
|
}));
|
|
23488
23488
|
|
|
23489
23489
|
// src/common/open-api/sdk.gen.ts
|
|
23490
|
+
var EventResource = class {
|
|
23491
|
+
/**
|
|
23492
|
+
* Get all the event handlers
|
|
23493
|
+
*/
|
|
23494
|
+
static getEventHandlers(options) {
|
|
23495
|
+
return (options?.client ?? client).get({
|
|
23496
|
+
security: [
|
|
23497
|
+
{
|
|
23498
|
+
name: "X-Authorization",
|
|
23499
|
+
type: "apiKey"
|
|
23500
|
+
}
|
|
23501
|
+
],
|
|
23502
|
+
url: "/api/event",
|
|
23503
|
+
...options
|
|
23504
|
+
});
|
|
23505
|
+
}
|
|
23506
|
+
/**
|
|
23507
|
+
* Add a new event handler.
|
|
23508
|
+
*/
|
|
23509
|
+
static addEventHandler(options) {
|
|
23510
|
+
return (options.client ?? client).post({
|
|
23511
|
+
security: [
|
|
23512
|
+
{
|
|
23513
|
+
name: "X-Authorization",
|
|
23514
|
+
type: "apiKey"
|
|
23515
|
+
}
|
|
23516
|
+
],
|
|
23517
|
+
url: "/api/event",
|
|
23518
|
+
...options,
|
|
23519
|
+
headers: {
|
|
23520
|
+
"Content-Type": "application/json",
|
|
23521
|
+
...options.headers
|
|
23522
|
+
}
|
|
23523
|
+
});
|
|
23524
|
+
}
|
|
23525
|
+
/**
|
|
23526
|
+
* Update an existing event handler.
|
|
23527
|
+
*/
|
|
23528
|
+
static updateEventHandler(options) {
|
|
23529
|
+
return (options.client ?? client).put({
|
|
23530
|
+
security: [
|
|
23531
|
+
{
|
|
23532
|
+
name: "X-Authorization",
|
|
23533
|
+
type: "apiKey"
|
|
23534
|
+
}
|
|
23535
|
+
],
|
|
23536
|
+
url: "/api/event",
|
|
23537
|
+
...options,
|
|
23538
|
+
headers: {
|
|
23539
|
+
"Content-Type": "application/json",
|
|
23540
|
+
...options.headers
|
|
23541
|
+
}
|
|
23542
|
+
});
|
|
23543
|
+
}
|
|
23544
|
+
/**
|
|
23545
|
+
* Handle an incoming event
|
|
23546
|
+
*/
|
|
23547
|
+
static handleIncomingEvent(options) {
|
|
23548
|
+
return (options.client ?? client).post({
|
|
23549
|
+
security: [
|
|
23550
|
+
{
|
|
23551
|
+
name: "X-Authorization",
|
|
23552
|
+
type: "apiKey"
|
|
23553
|
+
}
|
|
23554
|
+
],
|
|
23555
|
+
url: "/api/event/handleIncomingEvent",
|
|
23556
|
+
...options,
|
|
23557
|
+
headers: {
|
|
23558
|
+
"Content-Type": "application/json",
|
|
23559
|
+
...options.headers
|
|
23560
|
+
}
|
|
23561
|
+
});
|
|
23562
|
+
}
|
|
23563
|
+
/**
|
|
23564
|
+
* Get event handler by name
|
|
23565
|
+
*/
|
|
23566
|
+
static test(options) {
|
|
23567
|
+
return (options?.client ?? client).get({
|
|
23568
|
+
security: [
|
|
23569
|
+
{
|
|
23570
|
+
name: "X-Authorization",
|
|
23571
|
+
type: "apiKey"
|
|
23572
|
+
}
|
|
23573
|
+
],
|
|
23574
|
+
url: "/api/event/handler/",
|
|
23575
|
+
...options
|
|
23576
|
+
});
|
|
23577
|
+
}
|
|
23578
|
+
/**
|
|
23579
|
+
* Get event handler by name
|
|
23580
|
+
*/
|
|
23581
|
+
static getEventHandlerByName(options) {
|
|
23582
|
+
return (options.client ?? client).get({
|
|
23583
|
+
security: [
|
|
23584
|
+
{
|
|
23585
|
+
name: "X-Authorization",
|
|
23586
|
+
type: "apiKey"
|
|
23587
|
+
}
|
|
23588
|
+
],
|
|
23589
|
+
url: "/api/event/handler/{name}",
|
|
23590
|
+
...options
|
|
23591
|
+
});
|
|
23592
|
+
}
|
|
23593
|
+
/**
|
|
23594
|
+
* Get all queue configs
|
|
23595
|
+
*/
|
|
23596
|
+
static getQueueNames(options) {
|
|
23597
|
+
return (options?.client ?? client).get({
|
|
23598
|
+
security: [
|
|
23599
|
+
{
|
|
23600
|
+
name: "X-Authorization",
|
|
23601
|
+
type: "apiKey"
|
|
23602
|
+
}
|
|
23603
|
+
],
|
|
23604
|
+
url: "/api/event/queue/config",
|
|
23605
|
+
...options
|
|
23606
|
+
});
|
|
23607
|
+
}
|
|
23608
|
+
/**
|
|
23609
|
+
* Delete queue config by name
|
|
23610
|
+
*/
|
|
23611
|
+
static deleteQueueConfig(options) {
|
|
23612
|
+
return (options.client ?? client).delete({
|
|
23613
|
+
security: [
|
|
23614
|
+
{
|
|
23615
|
+
name: "X-Authorization",
|
|
23616
|
+
type: "apiKey"
|
|
23617
|
+
}
|
|
23618
|
+
],
|
|
23619
|
+
url: "/api/event/queue/config/{queueType}/{queueName}",
|
|
23620
|
+
...options
|
|
23621
|
+
});
|
|
23622
|
+
}
|
|
23623
|
+
/**
|
|
23624
|
+
* Get queue config by name
|
|
23625
|
+
*/
|
|
23626
|
+
static getQueueConfig(options) {
|
|
23627
|
+
return (options.client ?? client).get({
|
|
23628
|
+
security: [
|
|
23629
|
+
{
|
|
23630
|
+
name: "X-Authorization",
|
|
23631
|
+
type: "apiKey"
|
|
23632
|
+
}
|
|
23633
|
+
],
|
|
23634
|
+
url: "/api/event/queue/config/{queueType}/{queueName}",
|
|
23635
|
+
...options
|
|
23636
|
+
});
|
|
23637
|
+
}
|
|
23638
|
+
/**
|
|
23639
|
+
* Create or update queue config by name
|
|
23640
|
+
*
|
|
23641
|
+
* @deprecated
|
|
23642
|
+
*/
|
|
23643
|
+
static putQueueConfig(options) {
|
|
23644
|
+
return (options.client ?? client).put({
|
|
23645
|
+
security: [
|
|
23646
|
+
{
|
|
23647
|
+
name: "X-Authorization",
|
|
23648
|
+
type: "apiKey"
|
|
23649
|
+
}
|
|
23650
|
+
],
|
|
23651
|
+
url: "/api/event/queue/config/{queueType}/{queueName}",
|
|
23652
|
+
...options,
|
|
23653
|
+
headers: {
|
|
23654
|
+
"Content-Type": "application/json",
|
|
23655
|
+
...options.headers
|
|
23656
|
+
}
|
|
23657
|
+
});
|
|
23658
|
+
}
|
|
23659
|
+
/**
|
|
23660
|
+
* Test connectivity for a given queue using a workflow with EVENT task and an EventHandler
|
|
23661
|
+
*/
|
|
23662
|
+
static testConnectivity(options) {
|
|
23663
|
+
return (options.client ?? client).post({
|
|
23664
|
+
security: [
|
|
23665
|
+
{
|
|
23666
|
+
name: "X-Authorization",
|
|
23667
|
+
type: "apiKey"
|
|
23668
|
+
}
|
|
23669
|
+
],
|
|
23670
|
+
url: "/api/event/queue/connectivity",
|
|
23671
|
+
...options,
|
|
23672
|
+
headers: {
|
|
23673
|
+
"Content-Type": "application/json",
|
|
23674
|
+
...options.headers
|
|
23675
|
+
}
|
|
23676
|
+
});
|
|
23677
|
+
}
|
|
23678
|
+
/**
|
|
23679
|
+
* Get event handlers for a given event
|
|
23680
|
+
*/
|
|
23681
|
+
static getEventHandlersForEvent(options) {
|
|
23682
|
+
return (options.client ?? client).get({
|
|
23683
|
+
security: [
|
|
23684
|
+
{
|
|
23685
|
+
name: "X-Authorization",
|
|
23686
|
+
type: "apiKey"
|
|
23687
|
+
}
|
|
23688
|
+
],
|
|
23689
|
+
url: "/api/event/{event}",
|
|
23690
|
+
...options
|
|
23691
|
+
});
|
|
23692
|
+
}
|
|
23693
|
+
/**
|
|
23694
|
+
* Remove an event handler
|
|
23695
|
+
*/
|
|
23696
|
+
static removeEventHandlerStatus(options) {
|
|
23697
|
+
return (options.client ?? client).delete({
|
|
23698
|
+
security: [
|
|
23699
|
+
{
|
|
23700
|
+
name: "X-Authorization",
|
|
23701
|
+
type: "apiKey"
|
|
23702
|
+
}
|
|
23703
|
+
],
|
|
23704
|
+
url: "/api/event/{name}",
|
|
23705
|
+
...options
|
|
23706
|
+
});
|
|
23707
|
+
}
|
|
23708
|
+
/**
|
|
23709
|
+
* Delete a tag for event handler
|
|
23710
|
+
*/
|
|
23711
|
+
static deleteTagForEventHandler(options) {
|
|
23712
|
+
return (options.client ?? client).delete({
|
|
23713
|
+
security: [
|
|
23714
|
+
{
|
|
23715
|
+
name: "X-Authorization",
|
|
23716
|
+
type: "apiKey"
|
|
23717
|
+
}
|
|
23718
|
+
],
|
|
23719
|
+
url: "/api/event/{name}/tags",
|
|
23720
|
+
...options,
|
|
23721
|
+
headers: {
|
|
23722
|
+
"Content-Type": "application/json",
|
|
23723
|
+
...options.headers
|
|
23724
|
+
}
|
|
23725
|
+
});
|
|
23726
|
+
}
|
|
23727
|
+
/**
|
|
23728
|
+
* Get tags by event handler
|
|
23729
|
+
*/
|
|
23730
|
+
static getTagsForEventHandler(options) {
|
|
23731
|
+
return (options.client ?? client).get({
|
|
23732
|
+
security: [
|
|
23733
|
+
{
|
|
23734
|
+
name: "X-Authorization",
|
|
23735
|
+
type: "apiKey"
|
|
23736
|
+
}
|
|
23737
|
+
],
|
|
23738
|
+
url: "/api/event/{name}/tags",
|
|
23739
|
+
...options
|
|
23740
|
+
});
|
|
23741
|
+
}
|
|
23742
|
+
/**
|
|
23743
|
+
* Put a tag to event handler
|
|
23744
|
+
*/
|
|
23745
|
+
static putTagForEventHandler(options) {
|
|
23746
|
+
return (options.client ?? client).put({
|
|
23747
|
+
security: [
|
|
23748
|
+
{
|
|
23749
|
+
name: "X-Authorization",
|
|
23750
|
+
type: "apiKey"
|
|
23751
|
+
}
|
|
23752
|
+
],
|
|
23753
|
+
url: "/api/event/{name}/tags",
|
|
23754
|
+
...options,
|
|
23755
|
+
headers: {
|
|
23756
|
+
"Content-Type": "application/json",
|
|
23757
|
+
...options.headers
|
|
23758
|
+
}
|
|
23759
|
+
});
|
|
23760
|
+
}
|
|
23761
|
+
};
|
|
23490
23762
|
var HumanTask = class {
|
|
23491
23763
|
/**
|
|
23492
23764
|
* API for backpopulating index data
|
|
@@ -23817,53 +24089,51 @@ var HumanTask = class {
|
|
|
23817
24089
|
});
|
|
23818
24090
|
}
|
|
23819
24091
|
};
|
|
23820
|
-
var
|
|
24092
|
+
var HumanTaskResource = class {
|
|
23821
24093
|
/**
|
|
23822
|
-
*
|
|
24094
|
+
* Get Conductor task by id (for human tasks only)
|
|
23823
24095
|
*/
|
|
23824
|
-
static
|
|
23825
|
-
return (options
|
|
24096
|
+
static getConductorTaskById(options) {
|
|
24097
|
+
return (options.client ?? client).get({
|
|
23826
24098
|
security: [
|
|
23827
24099
|
{
|
|
23828
24100
|
name: "X-Authorization",
|
|
23829
24101
|
type: "apiKey"
|
|
23830
24102
|
}
|
|
23831
24103
|
],
|
|
23832
|
-
url: "/api/
|
|
24104
|
+
url: "/api/human/tasks/{taskId}/conductorTask",
|
|
23833
24105
|
...options
|
|
23834
24106
|
});
|
|
23835
24107
|
}
|
|
24108
|
+
};
|
|
24109
|
+
var UserForm = class {
|
|
23836
24110
|
/**
|
|
23837
|
-
*
|
|
24111
|
+
* List all user form templates or get templates by name, or a template by name and version
|
|
23838
24112
|
*/
|
|
23839
|
-
static
|
|
23840
|
-
return (options
|
|
24113
|
+
static getAllTemplates(options) {
|
|
24114
|
+
return (options?.client ?? client).get({
|
|
23841
24115
|
security: [
|
|
23842
24116
|
{
|
|
23843
24117
|
name: "X-Authorization",
|
|
23844
24118
|
type: "apiKey"
|
|
23845
24119
|
}
|
|
23846
24120
|
],
|
|
23847
|
-
url: "/api/
|
|
23848
|
-
...options
|
|
23849
|
-
headers: {
|
|
23850
|
-
"Content-Type": "application/json",
|
|
23851
|
-
...options.headers
|
|
23852
|
-
}
|
|
24121
|
+
url: "/api/human/template",
|
|
24122
|
+
...options
|
|
23853
24123
|
});
|
|
23854
24124
|
}
|
|
23855
24125
|
/**
|
|
23856
|
-
*
|
|
24126
|
+
* Save user form template
|
|
23857
24127
|
*/
|
|
23858
|
-
static
|
|
23859
|
-
return (options.client ?? client).
|
|
24128
|
+
static saveTemplate(options) {
|
|
24129
|
+
return (options.client ?? client).post({
|
|
23860
24130
|
security: [
|
|
23861
24131
|
{
|
|
23862
24132
|
name: "X-Authorization",
|
|
23863
24133
|
type: "apiKey"
|
|
23864
24134
|
}
|
|
23865
24135
|
],
|
|
23866
|
-
url: "/api/
|
|
24136
|
+
url: "/api/human/template",
|
|
23867
24137
|
...options,
|
|
23868
24138
|
headers: {
|
|
23869
24139
|
"Content-Type": "application/json",
|
|
@@ -23872,10 +24142,129 @@ var MetadataResource = class {
|
|
|
23872
24142
|
});
|
|
23873
24143
|
}
|
|
23874
24144
|
/**
|
|
23875
|
-
*
|
|
24145
|
+
* Save user form template
|
|
23876
24146
|
*/
|
|
23877
|
-
static
|
|
23878
|
-
return (options.client ?? client).
|
|
24147
|
+
static saveTemplates(options) {
|
|
24148
|
+
return (options.client ?? client).post({
|
|
24149
|
+
security: [
|
|
24150
|
+
{
|
|
24151
|
+
name: "X-Authorization",
|
|
24152
|
+
type: "apiKey"
|
|
24153
|
+
}
|
|
24154
|
+
],
|
|
24155
|
+
url: "/api/human/template/bulk",
|
|
24156
|
+
...options,
|
|
24157
|
+
headers: {
|
|
24158
|
+
"Content-Type": "application/json",
|
|
24159
|
+
...options.headers
|
|
24160
|
+
}
|
|
24161
|
+
});
|
|
24162
|
+
}
|
|
24163
|
+
/**
|
|
24164
|
+
* Get user form by human task id
|
|
24165
|
+
*/
|
|
24166
|
+
static getTemplateByTaskId(options) {
|
|
24167
|
+
return (options.client ?? client).get({
|
|
24168
|
+
security: [
|
|
24169
|
+
{
|
|
24170
|
+
name: "X-Authorization",
|
|
24171
|
+
type: "apiKey"
|
|
24172
|
+
}
|
|
24173
|
+
],
|
|
24174
|
+
url: "/api/human/template/{humanTaskId}",
|
|
24175
|
+
...options
|
|
24176
|
+
});
|
|
24177
|
+
}
|
|
24178
|
+
/**
|
|
24179
|
+
* Delete all versions of user form template by name
|
|
24180
|
+
*/
|
|
24181
|
+
static deleteTemplateByName(options) {
|
|
24182
|
+
return (options.client ?? client).delete({
|
|
24183
|
+
security: [
|
|
24184
|
+
{
|
|
24185
|
+
name: "X-Authorization",
|
|
24186
|
+
type: "apiKey"
|
|
24187
|
+
}
|
|
24188
|
+
],
|
|
24189
|
+
url: "/api/human/template/{name}",
|
|
24190
|
+
...options
|
|
24191
|
+
});
|
|
24192
|
+
}
|
|
24193
|
+
/**
|
|
24194
|
+
* Get user form template by name and version
|
|
24195
|
+
*/
|
|
24196
|
+
static getTemplateByNameAndVersion(options) {
|
|
24197
|
+
return (options.client ?? client).get({
|
|
24198
|
+
security: [
|
|
24199
|
+
{
|
|
24200
|
+
name: "X-Authorization",
|
|
24201
|
+
type: "apiKey"
|
|
24202
|
+
}
|
|
24203
|
+
],
|
|
24204
|
+
url: "/api/human/template/{name}/{version}",
|
|
24205
|
+
...options
|
|
24206
|
+
});
|
|
24207
|
+
}
|
|
24208
|
+
};
|
|
24209
|
+
var MetadataResource = class {
|
|
24210
|
+
/**
|
|
24211
|
+
* Gets all task definition
|
|
24212
|
+
*/
|
|
24213
|
+
static getTaskDefs(options) {
|
|
24214
|
+
return (options?.client ?? client).get({
|
|
24215
|
+
security: [
|
|
24216
|
+
{
|
|
24217
|
+
name: "X-Authorization",
|
|
24218
|
+
type: "apiKey"
|
|
24219
|
+
}
|
|
24220
|
+
],
|
|
24221
|
+
url: "/api/metadata/taskdefs",
|
|
24222
|
+
...options
|
|
24223
|
+
});
|
|
24224
|
+
}
|
|
24225
|
+
/**
|
|
24226
|
+
* Create or update task definition(s)
|
|
24227
|
+
*/
|
|
24228
|
+
static registerTaskDef(options) {
|
|
24229
|
+
return (options.client ?? client).post({
|
|
24230
|
+
security: [
|
|
24231
|
+
{
|
|
24232
|
+
name: "X-Authorization",
|
|
24233
|
+
type: "apiKey"
|
|
24234
|
+
}
|
|
24235
|
+
],
|
|
24236
|
+
url: "/api/metadata/taskdefs",
|
|
24237
|
+
...options,
|
|
24238
|
+
headers: {
|
|
24239
|
+
"Content-Type": "application/json",
|
|
24240
|
+
...options.headers
|
|
24241
|
+
}
|
|
24242
|
+
});
|
|
24243
|
+
}
|
|
24244
|
+
/**
|
|
24245
|
+
* Update an existing task
|
|
24246
|
+
*/
|
|
24247
|
+
static updateTaskDef(options) {
|
|
24248
|
+
return (options.client ?? client).put({
|
|
24249
|
+
security: [
|
|
24250
|
+
{
|
|
24251
|
+
name: "X-Authorization",
|
|
24252
|
+
type: "apiKey"
|
|
24253
|
+
}
|
|
24254
|
+
],
|
|
24255
|
+
url: "/api/metadata/taskdefs",
|
|
24256
|
+
...options,
|
|
24257
|
+
headers: {
|
|
24258
|
+
"Content-Type": "application/json",
|
|
24259
|
+
...options.headers
|
|
24260
|
+
}
|
|
24261
|
+
});
|
|
24262
|
+
}
|
|
24263
|
+
/**
|
|
24264
|
+
* Remove a task definition
|
|
24265
|
+
*/
|
|
24266
|
+
static unregisterTaskDef(options) {
|
|
24267
|
+
return (options.client ?? client).delete({
|
|
23879
24268
|
security: [
|
|
23880
24269
|
{
|
|
23881
24270
|
name: "X-Authorization",
|
|
@@ -24019,11 +24408,8 @@ var MetadataResource = class {
|
|
|
24019
24408
|
});
|
|
24020
24409
|
}
|
|
24021
24410
|
};
|
|
24022
|
-
var
|
|
24023
|
-
|
|
24024
|
-
* Pause all scheduling in a single conductor server instance (for debugging only)
|
|
24025
|
-
*/
|
|
24026
|
-
static pauseAllSchedules(options) {
|
|
24411
|
+
var ServiceRegistryResource = class {
|
|
24412
|
+
static getRegisteredServices(options) {
|
|
24027
24413
|
return (options?.client ?? client).get({
|
|
24028
24414
|
security: [
|
|
24029
24415
|
{
|
|
@@ -24031,153 +24417,128 @@ var SchedulerResource = class {
|
|
|
24031
24417
|
type: "apiKey"
|
|
24032
24418
|
}
|
|
24033
24419
|
],
|
|
24034
|
-
url: "/api/
|
|
24420
|
+
url: "/api/registry/service",
|
|
24035
24421
|
...options
|
|
24036
24422
|
});
|
|
24037
24423
|
}
|
|
24038
|
-
|
|
24039
|
-
|
|
24040
|
-
*/
|
|
24041
|
-
static requeueAllExecutionRecords(options) {
|
|
24042
|
-
return (options?.client ?? client).get({
|
|
24424
|
+
static addOrUpdateService(options) {
|
|
24425
|
+
return (options.client ?? client).post({
|
|
24043
24426
|
security: [
|
|
24044
24427
|
{
|
|
24045
24428
|
name: "X-Authorization",
|
|
24046
24429
|
type: "apiKey"
|
|
24047
24430
|
}
|
|
24048
24431
|
],
|
|
24049
|
-
url: "/api/
|
|
24050
|
-
...options
|
|
24432
|
+
url: "/api/registry/service",
|
|
24433
|
+
...options,
|
|
24434
|
+
headers: {
|
|
24435
|
+
"Content-Type": "application/json",
|
|
24436
|
+
...options.headers
|
|
24437
|
+
}
|
|
24051
24438
|
});
|
|
24052
24439
|
}
|
|
24053
|
-
|
|
24054
|
-
|
|
24055
|
-
*/
|
|
24056
|
-
static resumeAllSchedules(options) {
|
|
24057
|
-
return (options?.client ?? client).get({
|
|
24440
|
+
static getAllProtos(options) {
|
|
24441
|
+
return (options.client ?? client).get({
|
|
24058
24442
|
security: [
|
|
24059
24443
|
{
|
|
24060
24444
|
name: "X-Authorization",
|
|
24061
24445
|
type: "apiKey"
|
|
24062
24446
|
}
|
|
24063
24447
|
],
|
|
24064
|
-
url: "/api/
|
|
24448
|
+
url: "/api/registry/service/protos/{registryName}",
|
|
24065
24449
|
...options
|
|
24066
24450
|
});
|
|
24067
24451
|
}
|
|
24068
|
-
|
|
24069
|
-
|
|
24070
|
-
*/
|
|
24071
|
-
static getNextFewSchedules(options) {
|
|
24072
|
-
return (options.client ?? client).get({
|
|
24452
|
+
static deleteProto(options) {
|
|
24453
|
+
return (options.client ?? client).delete({
|
|
24073
24454
|
security: [
|
|
24074
24455
|
{
|
|
24075
24456
|
name: "X-Authorization",
|
|
24076
24457
|
type: "apiKey"
|
|
24077
24458
|
}
|
|
24078
24459
|
],
|
|
24079
|
-
url: "/api/
|
|
24460
|
+
url: "/api/registry/service/protos/{registryName}/{filename}",
|
|
24080
24461
|
...options
|
|
24081
24462
|
});
|
|
24082
24463
|
}
|
|
24083
|
-
|
|
24084
|
-
|
|
24085
|
-
*/
|
|
24086
|
-
static getAllSchedules(options) {
|
|
24087
|
-
return (options?.client ?? client).get({
|
|
24464
|
+
static getProtoData(options) {
|
|
24465
|
+
return (options.client ?? client).get({
|
|
24088
24466
|
security: [
|
|
24089
24467
|
{
|
|
24090
24468
|
name: "X-Authorization",
|
|
24091
24469
|
type: "apiKey"
|
|
24092
24470
|
}
|
|
24093
24471
|
],
|
|
24094
|
-
url: "/api/
|
|
24472
|
+
url: "/api/registry/service/protos/{registryName}/{filename}",
|
|
24095
24473
|
...options
|
|
24096
24474
|
});
|
|
24097
24475
|
}
|
|
24098
|
-
|
|
24099
|
-
* Create or update a schedule for a specified workflow with a corresponding start workflow request
|
|
24100
|
-
*/
|
|
24101
|
-
static saveSchedule(options) {
|
|
24476
|
+
static setProtoData(options) {
|
|
24102
24477
|
return (options.client ?? client).post({
|
|
24478
|
+
bodySerializer: null,
|
|
24103
24479
|
security: [
|
|
24104
24480
|
{
|
|
24105
24481
|
name: "X-Authorization",
|
|
24106
24482
|
type: "apiKey"
|
|
24107
24483
|
}
|
|
24108
24484
|
],
|
|
24109
|
-
url: "/api/
|
|
24485
|
+
url: "/api/registry/service/protos/{registryName}/{filename}",
|
|
24110
24486
|
...options,
|
|
24111
24487
|
headers: {
|
|
24112
|
-
"Content-Type": "application/
|
|
24488
|
+
"Content-Type": "application/octet-stream",
|
|
24113
24489
|
...options.headers
|
|
24114
24490
|
}
|
|
24115
24491
|
});
|
|
24116
24492
|
}
|
|
24117
|
-
|
|
24118
|
-
|
|
24119
|
-
*/
|
|
24120
|
-
static getSchedulesByTag(options) {
|
|
24121
|
-
return (options.client ?? client).get({
|
|
24493
|
+
static removeService(options) {
|
|
24494
|
+
return (options.client ?? client).delete({
|
|
24122
24495
|
security: [
|
|
24123
24496
|
{
|
|
24124
24497
|
name: "X-Authorization",
|
|
24125
24498
|
type: "apiKey"
|
|
24126
24499
|
}
|
|
24127
24500
|
],
|
|
24128
|
-
url: "/api/
|
|
24501
|
+
url: "/api/registry/service/{name}",
|
|
24129
24502
|
...options
|
|
24130
24503
|
});
|
|
24131
24504
|
}
|
|
24132
|
-
|
|
24133
|
-
|
|
24134
|
-
*/
|
|
24135
|
-
static deleteSchedule(options) {
|
|
24136
|
-
return (options.client ?? client).delete({
|
|
24505
|
+
static getService(options) {
|
|
24506
|
+
return (options.client ?? client).get({
|
|
24137
24507
|
security: [
|
|
24138
24508
|
{
|
|
24139
24509
|
name: "X-Authorization",
|
|
24140
24510
|
type: "apiKey"
|
|
24141
24511
|
}
|
|
24142
24512
|
],
|
|
24143
|
-
url: "/api/
|
|
24513
|
+
url: "/api/registry/service/{name}",
|
|
24144
24514
|
...options
|
|
24145
24515
|
});
|
|
24146
24516
|
}
|
|
24147
|
-
|
|
24148
|
-
|
|
24149
|
-
*/
|
|
24150
|
-
static getSchedule(options) {
|
|
24151
|
-
return (options.client ?? client).get({
|
|
24517
|
+
static closeCircuitBreaker(options) {
|
|
24518
|
+
return (options.client ?? client).post({
|
|
24152
24519
|
security: [
|
|
24153
24520
|
{
|
|
24154
24521
|
name: "X-Authorization",
|
|
24155
24522
|
type: "apiKey"
|
|
24156
24523
|
}
|
|
24157
24524
|
],
|
|
24158
|
-
url: "/api/
|
|
24525
|
+
url: "/api/registry/service/{name}/circuit-breaker/close",
|
|
24159
24526
|
...options
|
|
24160
24527
|
});
|
|
24161
24528
|
}
|
|
24162
|
-
|
|
24163
|
-
|
|
24164
|
-
*/
|
|
24165
|
-
static pauseSchedule(options) {
|
|
24166
|
-
return (options.client ?? client).get({
|
|
24529
|
+
static openCircuitBreaker(options) {
|
|
24530
|
+
return (options.client ?? client).post({
|
|
24167
24531
|
security: [
|
|
24168
24532
|
{
|
|
24169
24533
|
name: "X-Authorization",
|
|
24170
24534
|
type: "apiKey"
|
|
24171
24535
|
}
|
|
24172
24536
|
],
|
|
24173
|
-
url: "/api/
|
|
24537
|
+
url: "/api/registry/service/{name}/circuit-breaker/open",
|
|
24174
24538
|
...options
|
|
24175
24539
|
});
|
|
24176
24540
|
}
|
|
24177
|
-
|
|
24178
|
-
* Resume a paused schedule by name
|
|
24179
|
-
*/
|
|
24180
|
-
static resumeSchedule(options) {
|
|
24541
|
+
static getCircuitBreakerStatus(options) {
|
|
24181
24542
|
return (options.client ?? client).get({
|
|
24182
24543
|
security: [
|
|
24183
24544
|
{
|
|
@@ -24185,56 +24546,43 @@ var SchedulerResource = class {
|
|
|
24185
24546
|
type: "apiKey"
|
|
24186
24547
|
}
|
|
24187
24548
|
],
|
|
24188
|
-
url: "/api/
|
|
24549
|
+
url: "/api/registry/service/{name}/circuit-breaker/status",
|
|
24189
24550
|
...options
|
|
24190
24551
|
});
|
|
24191
24552
|
}
|
|
24192
|
-
|
|
24193
|
-
|
|
24194
|
-
*/
|
|
24195
|
-
static deleteTagForSchedule(options) {
|
|
24196
|
-
return (options.client ?? client).delete({
|
|
24553
|
+
static discover(options) {
|
|
24554
|
+
return (options.client ?? client).get({
|
|
24197
24555
|
security: [
|
|
24198
24556
|
{
|
|
24199
24557
|
name: "X-Authorization",
|
|
24200
24558
|
type: "apiKey"
|
|
24201
24559
|
}
|
|
24202
24560
|
],
|
|
24203
|
-
url: "/api/
|
|
24204
|
-
...options
|
|
24205
|
-
headers: {
|
|
24206
|
-
"Content-Type": "application/json",
|
|
24207
|
-
...options.headers
|
|
24208
|
-
}
|
|
24561
|
+
url: "/api/registry/service/{name}/discover",
|
|
24562
|
+
...options
|
|
24209
24563
|
});
|
|
24210
24564
|
}
|
|
24211
|
-
|
|
24212
|
-
|
|
24213
|
-
*/
|
|
24214
|
-
static getTagsForSchedule(options) {
|
|
24215
|
-
return (options.client ?? client).get({
|
|
24565
|
+
static removeMethod(options) {
|
|
24566
|
+
return (options.client ?? client).delete({
|
|
24216
24567
|
security: [
|
|
24217
24568
|
{
|
|
24218
24569
|
name: "X-Authorization",
|
|
24219
24570
|
type: "apiKey"
|
|
24220
24571
|
}
|
|
24221
24572
|
],
|
|
24222
|
-
url: "/api/
|
|
24573
|
+
url: "/api/registry/service/{registryName}/methods",
|
|
24223
24574
|
...options
|
|
24224
24575
|
});
|
|
24225
24576
|
}
|
|
24226
|
-
|
|
24227
|
-
|
|
24228
|
-
*/
|
|
24229
|
-
static putTagForSchedule(options) {
|
|
24230
|
-
return (options.client ?? client).put({
|
|
24577
|
+
static addOrUpdateMethod(options) {
|
|
24578
|
+
return (options.client ?? client).post({
|
|
24231
24579
|
security: [
|
|
24232
24580
|
{
|
|
24233
24581
|
name: "X-Authorization",
|
|
24234
24582
|
type: "apiKey"
|
|
24235
24583
|
}
|
|
24236
24584
|
],
|
|
24237
|
-
url: "/api/
|
|
24585
|
+
url: "/api/registry/service/{registryName}/methods",
|
|
24238
24586
|
...options,
|
|
24239
24587
|
headers: {
|
|
24240
24588
|
"Content-Type": "application/json",
|
|
@@ -24242,12 +24590,12 @@ var SchedulerResource = class {
|
|
|
24242
24590
|
}
|
|
24243
24591
|
});
|
|
24244
24592
|
}
|
|
24593
|
+
};
|
|
24594
|
+
var SchedulerResource = class {
|
|
24245
24595
|
/**
|
|
24246
|
-
*
|
|
24247
|
-
*
|
|
24248
|
-
* use sort options as sort=<field>:ASC|DESC e.g. sort=name&sort=workflowId:DESC. If order is not specified, defaults to ASC.
|
|
24596
|
+
* Pause all scheduling in a single conductor server instance (for debugging only)
|
|
24249
24597
|
*/
|
|
24250
|
-
static
|
|
24598
|
+
static pauseAllSchedules(options) {
|
|
24251
24599
|
return (options?.client ?? client).get({
|
|
24252
24600
|
security: [
|
|
24253
24601
|
{
|
|
@@ -24255,35 +24603,259 @@ var SchedulerResource = class {
|
|
|
24255
24603
|
type: "apiKey"
|
|
24256
24604
|
}
|
|
24257
24605
|
],
|
|
24258
|
-
url: "/api/scheduler/
|
|
24606
|
+
url: "/api/scheduler/admin/pause",
|
|
24259
24607
|
...options
|
|
24260
24608
|
});
|
|
24261
24609
|
}
|
|
24262
|
-
};
|
|
24263
|
-
var TaskResource = class {
|
|
24264
24610
|
/**
|
|
24265
|
-
*
|
|
24611
|
+
* Requeue all execution records
|
|
24266
24612
|
*/
|
|
24267
|
-
static
|
|
24268
|
-
return (options
|
|
24613
|
+
static requeueAllExecutionRecords(options) {
|
|
24614
|
+
return (options?.client ?? client).get({
|
|
24269
24615
|
security: [
|
|
24270
24616
|
{
|
|
24271
24617
|
name: "X-Authorization",
|
|
24272
24618
|
type: "apiKey"
|
|
24273
24619
|
}
|
|
24274
24620
|
],
|
|
24275
|
-
url: "/api/
|
|
24276
|
-
...options
|
|
24277
|
-
headers: {
|
|
24278
|
-
"Content-Type": "application/json",
|
|
24279
|
-
...options.headers
|
|
24280
|
-
}
|
|
24621
|
+
url: "/api/scheduler/admin/requeue",
|
|
24622
|
+
...options
|
|
24281
24623
|
});
|
|
24282
24624
|
}
|
|
24283
24625
|
/**
|
|
24284
|
-
*
|
|
24626
|
+
* Resume all scheduling
|
|
24285
24627
|
*/
|
|
24286
|
-
static
|
|
24628
|
+
static resumeAllSchedules(options) {
|
|
24629
|
+
return (options?.client ?? client).get({
|
|
24630
|
+
security: [
|
|
24631
|
+
{
|
|
24632
|
+
name: "X-Authorization",
|
|
24633
|
+
type: "apiKey"
|
|
24634
|
+
}
|
|
24635
|
+
],
|
|
24636
|
+
url: "/api/scheduler/admin/resume",
|
|
24637
|
+
...options
|
|
24638
|
+
});
|
|
24639
|
+
}
|
|
24640
|
+
/**
|
|
24641
|
+
* Get list of the next x (default 3, max 5) execution times for a scheduler
|
|
24642
|
+
*/
|
|
24643
|
+
static getNextFewSchedules(options) {
|
|
24644
|
+
return (options.client ?? client).get({
|
|
24645
|
+
security: [
|
|
24646
|
+
{
|
|
24647
|
+
name: "X-Authorization",
|
|
24648
|
+
type: "apiKey"
|
|
24649
|
+
}
|
|
24650
|
+
],
|
|
24651
|
+
url: "/api/scheduler/nextFewSchedules",
|
|
24652
|
+
...options
|
|
24653
|
+
});
|
|
24654
|
+
}
|
|
24655
|
+
/**
|
|
24656
|
+
* Get all existing workflow schedules and optionally filter by workflow name
|
|
24657
|
+
*/
|
|
24658
|
+
static getAllSchedules(options) {
|
|
24659
|
+
return (options?.client ?? client).get({
|
|
24660
|
+
security: [
|
|
24661
|
+
{
|
|
24662
|
+
name: "X-Authorization",
|
|
24663
|
+
type: "apiKey"
|
|
24664
|
+
}
|
|
24665
|
+
],
|
|
24666
|
+
url: "/api/scheduler/schedules",
|
|
24667
|
+
...options
|
|
24668
|
+
});
|
|
24669
|
+
}
|
|
24670
|
+
/**
|
|
24671
|
+
* Create or update a schedule for a specified workflow with a corresponding start workflow request
|
|
24672
|
+
*/
|
|
24673
|
+
static saveSchedule(options) {
|
|
24674
|
+
return (options.client ?? client).post({
|
|
24675
|
+
security: [
|
|
24676
|
+
{
|
|
24677
|
+
name: "X-Authorization",
|
|
24678
|
+
type: "apiKey"
|
|
24679
|
+
}
|
|
24680
|
+
],
|
|
24681
|
+
url: "/api/scheduler/schedules",
|
|
24682
|
+
...options,
|
|
24683
|
+
headers: {
|
|
24684
|
+
"Content-Type": "application/json",
|
|
24685
|
+
...options.headers
|
|
24686
|
+
}
|
|
24687
|
+
});
|
|
24688
|
+
}
|
|
24689
|
+
/**
|
|
24690
|
+
* Get schedules by tag
|
|
24691
|
+
*/
|
|
24692
|
+
static getSchedulesByTag(options) {
|
|
24693
|
+
return (options.client ?? client).get({
|
|
24694
|
+
security: [
|
|
24695
|
+
{
|
|
24696
|
+
name: "X-Authorization",
|
|
24697
|
+
type: "apiKey"
|
|
24698
|
+
}
|
|
24699
|
+
],
|
|
24700
|
+
url: "/api/scheduler/schedules/tags",
|
|
24701
|
+
...options
|
|
24702
|
+
});
|
|
24703
|
+
}
|
|
24704
|
+
/**
|
|
24705
|
+
* Deletes an existing workflow schedule by name
|
|
24706
|
+
*/
|
|
24707
|
+
static deleteSchedule(options) {
|
|
24708
|
+
return (options.client ?? client).delete({
|
|
24709
|
+
security: [
|
|
24710
|
+
{
|
|
24711
|
+
name: "X-Authorization",
|
|
24712
|
+
type: "apiKey"
|
|
24713
|
+
}
|
|
24714
|
+
],
|
|
24715
|
+
url: "/api/scheduler/schedules/{name}",
|
|
24716
|
+
...options
|
|
24717
|
+
});
|
|
24718
|
+
}
|
|
24719
|
+
/**
|
|
24720
|
+
* Get an existing workflow schedule by name
|
|
24721
|
+
*/
|
|
24722
|
+
static getSchedule(options) {
|
|
24723
|
+
return (options.client ?? client).get({
|
|
24724
|
+
security: [
|
|
24725
|
+
{
|
|
24726
|
+
name: "X-Authorization",
|
|
24727
|
+
type: "apiKey"
|
|
24728
|
+
}
|
|
24729
|
+
],
|
|
24730
|
+
url: "/api/scheduler/schedules/{name}",
|
|
24731
|
+
...options
|
|
24732
|
+
});
|
|
24733
|
+
}
|
|
24734
|
+
/**
|
|
24735
|
+
* Pauses an existing schedule by name
|
|
24736
|
+
*/
|
|
24737
|
+
static pauseSchedule(options) {
|
|
24738
|
+
return (options.client ?? client).get({
|
|
24739
|
+
security: [
|
|
24740
|
+
{
|
|
24741
|
+
name: "X-Authorization",
|
|
24742
|
+
type: "apiKey"
|
|
24743
|
+
}
|
|
24744
|
+
],
|
|
24745
|
+
url: "/api/scheduler/schedules/{name}/pause",
|
|
24746
|
+
...options
|
|
24747
|
+
});
|
|
24748
|
+
}
|
|
24749
|
+
/**
|
|
24750
|
+
* Resume a paused schedule by name
|
|
24751
|
+
*/
|
|
24752
|
+
static resumeSchedule(options) {
|
|
24753
|
+
return (options.client ?? client).get({
|
|
24754
|
+
security: [
|
|
24755
|
+
{
|
|
24756
|
+
name: "X-Authorization",
|
|
24757
|
+
type: "apiKey"
|
|
24758
|
+
}
|
|
24759
|
+
],
|
|
24760
|
+
url: "/api/scheduler/schedules/{name}/resume",
|
|
24761
|
+
...options
|
|
24762
|
+
});
|
|
24763
|
+
}
|
|
24764
|
+
/**
|
|
24765
|
+
* Delete a tag for schedule
|
|
24766
|
+
*/
|
|
24767
|
+
static deleteTagForSchedule(options) {
|
|
24768
|
+
return (options.client ?? client).delete({
|
|
24769
|
+
security: [
|
|
24770
|
+
{
|
|
24771
|
+
name: "X-Authorization",
|
|
24772
|
+
type: "apiKey"
|
|
24773
|
+
}
|
|
24774
|
+
],
|
|
24775
|
+
url: "/api/scheduler/schedules/{name}/tags",
|
|
24776
|
+
...options,
|
|
24777
|
+
headers: {
|
|
24778
|
+
"Content-Type": "application/json",
|
|
24779
|
+
...options.headers
|
|
24780
|
+
}
|
|
24781
|
+
});
|
|
24782
|
+
}
|
|
24783
|
+
/**
|
|
24784
|
+
* Get tags by schedule
|
|
24785
|
+
*/
|
|
24786
|
+
static getTagsForSchedule(options) {
|
|
24787
|
+
return (options.client ?? client).get({
|
|
24788
|
+
security: [
|
|
24789
|
+
{
|
|
24790
|
+
name: "X-Authorization",
|
|
24791
|
+
type: "apiKey"
|
|
24792
|
+
}
|
|
24793
|
+
],
|
|
24794
|
+
url: "/api/scheduler/schedules/{name}/tags",
|
|
24795
|
+
...options
|
|
24796
|
+
});
|
|
24797
|
+
}
|
|
24798
|
+
/**
|
|
24799
|
+
* Put a tag to schedule
|
|
24800
|
+
*/
|
|
24801
|
+
static putTagForSchedule(options) {
|
|
24802
|
+
return (options.client ?? client).put({
|
|
24803
|
+
security: [
|
|
24804
|
+
{
|
|
24805
|
+
name: "X-Authorization",
|
|
24806
|
+
type: "apiKey"
|
|
24807
|
+
}
|
|
24808
|
+
],
|
|
24809
|
+
url: "/api/scheduler/schedules/{name}/tags",
|
|
24810
|
+
...options,
|
|
24811
|
+
headers: {
|
|
24812
|
+
"Content-Type": "application/json",
|
|
24813
|
+
...options.headers
|
|
24814
|
+
}
|
|
24815
|
+
});
|
|
24816
|
+
}
|
|
24817
|
+
/**
|
|
24818
|
+
* Search for workflow executions based on payload and other parameters
|
|
24819
|
+
*
|
|
24820
|
+
* use sort options as sort=<field>:ASC|DESC e.g. sort=name&sort=workflowId:DESC. If order is not specified, defaults to ASC.
|
|
24821
|
+
*/
|
|
24822
|
+
static searchV2(options) {
|
|
24823
|
+
return (options?.client ?? client).get({
|
|
24824
|
+
security: [
|
|
24825
|
+
{
|
|
24826
|
+
name: "X-Authorization",
|
|
24827
|
+
type: "apiKey"
|
|
24828
|
+
}
|
|
24829
|
+
],
|
|
24830
|
+
url: "/api/scheduler/search/executions",
|
|
24831
|
+
...options
|
|
24832
|
+
});
|
|
24833
|
+
}
|
|
24834
|
+
};
|
|
24835
|
+
var TaskResource = class {
|
|
24836
|
+
/**
|
|
24837
|
+
* Update a task
|
|
24838
|
+
*/
|
|
24839
|
+
static updateTask(options) {
|
|
24840
|
+
return (options.client ?? client).post({
|
|
24841
|
+
security: [
|
|
24842
|
+
{
|
|
24843
|
+
name: "X-Authorization",
|
|
24844
|
+
type: "apiKey"
|
|
24845
|
+
}
|
|
24846
|
+
],
|
|
24847
|
+
url: "/api/tasks",
|
|
24848
|
+
...options,
|
|
24849
|
+
headers: {
|
|
24850
|
+
"Content-Type": "application/json",
|
|
24851
|
+
...options.headers
|
|
24852
|
+
}
|
|
24853
|
+
});
|
|
24854
|
+
}
|
|
24855
|
+
/**
|
|
24856
|
+
* Batch poll for a task of a certain type
|
|
24857
|
+
*/
|
|
24858
|
+
static batchPoll(options) {
|
|
24287
24859
|
return (options.client ?? client).get({
|
|
24288
24860
|
security: [
|
|
24289
24861
|
{
|
|
@@ -25111,31 +25683,161 @@ var WorkflowResource = class {
|
|
|
25111
25683
|
});
|
|
25112
25684
|
}
|
|
25113
25685
|
};
|
|
25114
|
-
|
|
25115
|
-
|
|
25116
|
-
|
|
25117
|
-
|
|
25118
|
-
|
|
25119
|
-
|
|
25120
|
-
|
|
25121
|
-
|
|
25122
|
-
|
|
25123
|
-
|
|
25124
|
-
|
|
25125
|
-
|
|
25126
|
-
|
|
25127
|
-
|
|
25128
|
-
|
|
25129
|
-
|
|
25130
|
-
|
|
25131
|
-
|
|
25132
|
-
|
|
25133
|
-
|
|
25134
|
-
|
|
25135
|
-
|
|
25136
|
-
|
|
25137
|
-
|
|
25138
|
-
|
|
25686
|
+
var WorkflowBulkResource = class {
|
|
25687
|
+
/**
|
|
25688
|
+
* Permanently remove workflows from the system
|
|
25689
|
+
*/
|
|
25690
|
+
static delete(options) {
|
|
25691
|
+
return (options.client ?? client).post({
|
|
25692
|
+
security: [
|
|
25693
|
+
{
|
|
25694
|
+
name: "X-Authorization",
|
|
25695
|
+
type: "apiKey"
|
|
25696
|
+
}
|
|
25697
|
+
],
|
|
25698
|
+
url: "/api/workflow/bulk/delete",
|
|
25699
|
+
...options,
|
|
25700
|
+
headers: {
|
|
25701
|
+
"Content-Type": "application/json",
|
|
25702
|
+
...options.headers
|
|
25703
|
+
}
|
|
25704
|
+
});
|
|
25705
|
+
}
|
|
25706
|
+
/**
|
|
25707
|
+
* Pause the list of workflows
|
|
25708
|
+
*/
|
|
25709
|
+
static pauseWorkflow1(options) {
|
|
25710
|
+
return (options.client ?? client).put({
|
|
25711
|
+
security: [
|
|
25712
|
+
{
|
|
25713
|
+
name: "X-Authorization",
|
|
25714
|
+
type: "apiKey"
|
|
25715
|
+
}
|
|
25716
|
+
],
|
|
25717
|
+
url: "/api/workflow/bulk/pause",
|
|
25718
|
+
...options,
|
|
25719
|
+
headers: {
|
|
25720
|
+
"Content-Type": "application/json",
|
|
25721
|
+
...options.headers
|
|
25722
|
+
}
|
|
25723
|
+
});
|
|
25724
|
+
}
|
|
25725
|
+
/**
|
|
25726
|
+
* Restart the list of completed workflow
|
|
25727
|
+
*/
|
|
25728
|
+
static restart1(options) {
|
|
25729
|
+
return (options.client ?? client).post({
|
|
25730
|
+
security: [
|
|
25731
|
+
{
|
|
25732
|
+
name: "X-Authorization",
|
|
25733
|
+
type: "apiKey"
|
|
25734
|
+
}
|
|
25735
|
+
],
|
|
25736
|
+
url: "/api/workflow/bulk/restart",
|
|
25737
|
+
...options,
|
|
25738
|
+
headers: {
|
|
25739
|
+
"Content-Type": "application/json",
|
|
25740
|
+
...options.headers
|
|
25741
|
+
}
|
|
25742
|
+
});
|
|
25743
|
+
}
|
|
25744
|
+
/**
|
|
25745
|
+
* Resume the list of workflows
|
|
25746
|
+
*/
|
|
25747
|
+
static resumeWorkflow1(options) {
|
|
25748
|
+
return (options.client ?? client).put({
|
|
25749
|
+
security: [
|
|
25750
|
+
{
|
|
25751
|
+
name: "X-Authorization",
|
|
25752
|
+
type: "apiKey"
|
|
25753
|
+
}
|
|
25754
|
+
],
|
|
25755
|
+
url: "/api/workflow/bulk/resume",
|
|
25756
|
+
...options,
|
|
25757
|
+
headers: {
|
|
25758
|
+
"Content-Type": "application/json",
|
|
25759
|
+
...options.headers
|
|
25760
|
+
}
|
|
25761
|
+
});
|
|
25762
|
+
}
|
|
25763
|
+
/**
|
|
25764
|
+
* Retry the last failed task for each workflow from the list
|
|
25765
|
+
*/
|
|
25766
|
+
static retry1(options) {
|
|
25767
|
+
return (options.client ?? client).post({
|
|
25768
|
+
security: [
|
|
25769
|
+
{
|
|
25770
|
+
name: "X-Authorization",
|
|
25771
|
+
type: "apiKey"
|
|
25772
|
+
}
|
|
25773
|
+
],
|
|
25774
|
+
url: "/api/workflow/bulk/retry",
|
|
25775
|
+
...options,
|
|
25776
|
+
headers: {
|
|
25777
|
+
"Content-Type": "application/json",
|
|
25778
|
+
...options.headers
|
|
25779
|
+
}
|
|
25780
|
+
});
|
|
25781
|
+
}
|
|
25782
|
+
/**
|
|
25783
|
+
* Terminate workflows execution
|
|
25784
|
+
*/
|
|
25785
|
+
static terminate(options) {
|
|
25786
|
+
return (options.client ?? client).post({
|
|
25787
|
+
security: [
|
|
25788
|
+
{
|
|
25789
|
+
name: "X-Authorization",
|
|
25790
|
+
type: "apiKey"
|
|
25791
|
+
}
|
|
25792
|
+
],
|
|
25793
|
+
url: "/api/workflow/bulk/terminate",
|
|
25794
|
+
...options,
|
|
25795
|
+
headers: {
|
|
25796
|
+
"Content-Type": "application/json",
|
|
25797
|
+
...options.headers
|
|
25798
|
+
}
|
|
25799
|
+
});
|
|
25800
|
+
}
|
|
25801
|
+
};
|
|
25802
|
+
var HealthCheckResource = class {
|
|
25803
|
+
static doCheck(options) {
|
|
25804
|
+
return (options?.client ?? client).get({
|
|
25805
|
+
security: [
|
|
25806
|
+
{
|
|
25807
|
+
name: "X-Authorization",
|
|
25808
|
+
type: "apiKey"
|
|
25809
|
+
}
|
|
25810
|
+
],
|
|
25811
|
+
url: "/health",
|
|
25812
|
+
...options
|
|
25813
|
+
});
|
|
25814
|
+
}
|
|
25815
|
+
};
|
|
25816
|
+
|
|
25817
|
+
// src/task/constants.ts
|
|
25818
|
+
var DEFAULT_POLL_INTERVAL = 100;
|
|
25819
|
+
var DEFAULT_CONCURRENCY = 1;
|
|
25820
|
+
var DEFAULT_WARN_AT_O = 100;
|
|
25821
|
+
var DEFAULT_BATCH_POLLING_TIMEOUT = 100;
|
|
25822
|
+
|
|
25823
|
+
// src/task/Poller.ts
|
|
25824
|
+
var Poller = class {
|
|
25825
|
+
timeoutHandler;
|
|
25826
|
+
pollFunction;
|
|
25827
|
+
performWorkFunction;
|
|
25828
|
+
polling = false;
|
|
25829
|
+
_tasksInProcess = 0;
|
|
25830
|
+
_counterAtO = 0;
|
|
25831
|
+
_pollerId = "";
|
|
25832
|
+
options = {
|
|
25833
|
+
pollInterval: DEFAULT_POLL_INTERVAL,
|
|
25834
|
+
concurrency: DEFAULT_CONCURRENCY,
|
|
25835
|
+
warnAtO: DEFAULT_WARN_AT_O
|
|
25836
|
+
};
|
|
25837
|
+
logger = noopLogger;
|
|
25838
|
+
constructor(pollerId, pollFunction, performWorkFunction, pollerOptions, logger) {
|
|
25839
|
+
this._pollerId = pollerId;
|
|
25840
|
+
this.pollFunction = pollFunction;
|
|
25139
25841
|
this.performWorkFunction = performWorkFunction;
|
|
25140
25842
|
this.options = { ...this.options, ...pollerOptions };
|
|
25141
25843
|
this.logger = logger || noopLogger;
|
|
@@ -27546,6 +28248,1477 @@ var wrapFetchWithRetry = (fetchFn) => {
|
|
|
27546
28248
|
};
|
|
27547
28249
|
};
|
|
27548
28250
|
|
|
28251
|
+
// src/orkes/helpers/addResourcesBackwardCompatibility.ts
|
|
28252
|
+
var warn = () => {
|
|
28253
|
+
console.warn(
|
|
28254
|
+
"[Conductor SDK Deprecation Warning] Accessing resources directly on the client is deprecated and will be removed after April 2026"
|
|
28255
|
+
);
|
|
28256
|
+
};
|
|
28257
|
+
var addResourcesBackwardCompatibility = (client2) => {
|
|
28258
|
+
const eventResource = {
|
|
28259
|
+
/**
|
|
28260
|
+
* @deprecated
|
|
28261
|
+
*/
|
|
28262
|
+
getQueueConfig: async (queueType, queueName) => {
|
|
28263
|
+
warn();
|
|
28264
|
+
const { data } = await EventResource.getQueueConfig({
|
|
28265
|
+
client: client2,
|
|
28266
|
+
path: { queueType, queueName },
|
|
28267
|
+
throwOnError: true
|
|
28268
|
+
});
|
|
28269
|
+
return data;
|
|
28270
|
+
},
|
|
28271
|
+
/**
|
|
28272
|
+
* @deprecated
|
|
28273
|
+
*/
|
|
28274
|
+
putQueueConfig: async (queueType, queueName, body) => {
|
|
28275
|
+
warn();
|
|
28276
|
+
await EventResource.putQueueConfig({
|
|
28277
|
+
client: client2,
|
|
28278
|
+
path: { queueType, queueName },
|
|
28279
|
+
body,
|
|
28280
|
+
throwOnError: true
|
|
28281
|
+
});
|
|
28282
|
+
},
|
|
28283
|
+
/**
|
|
28284
|
+
* @deprecated
|
|
28285
|
+
*/
|
|
28286
|
+
deleteQueueConfig: async (queueType, queueName) => {
|
|
28287
|
+
warn();
|
|
28288
|
+
await EventResource.deleteQueueConfig({
|
|
28289
|
+
client: client2,
|
|
28290
|
+
path: { queueType, queueName },
|
|
28291
|
+
throwOnError: true
|
|
28292
|
+
});
|
|
28293
|
+
},
|
|
28294
|
+
/**
|
|
28295
|
+
* @deprecated
|
|
28296
|
+
*/
|
|
28297
|
+
getEventHandlers: async () => {
|
|
28298
|
+
warn();
|
|
28299
|
+
const { data } = await EventResource.getEventHandlers({
|
|
28300
|
+
client: client2,
|
|
28301
|
+
throwOnError: true
|
|
28302
|
+
});
|
|
28303
|
+
return data;
|
|
28304
|
+
},
|
|
28305
|
+
/**
|
|
28306
|
+
* @deprecated
|
|
28307
|
+
*/
|
|
28308
|
+
updateEventHandler: async (body) => {
|
|
28309
|
+
warn();
|
|
28310
|
+
await EventResource.updateEventHandler({
|
|
28311
|
+
client: client2,
|
|
28312
|
+
body,
|
|
28313
|
+
throwOnError: true
|
|
28314
|
+
});
|
|
28315
|
+
},
|
|
28316
|
+
/**
|
|
28317
|
+
* @deprecated
|
|
28318
|
+
*/
|
|
28319
|
+
addEventHandler: async (body) => {
|
|
28320
|
+
warn();
|
|
28321
|
+
await EventResource.addEventHandler({
|
|
28322
|
+
client: client2,
|
|
28323
|
+
body,
|
|
28324
|
+
throwOnError: true
|
|
28325
|
+
});
|
|
28326
|
+
},
|
|
28327
|
+
/**
|
|
28328
|
+
* @deprecated
|
|
28329
|
+
*/
|
|
28330
|
+
getQueueNames: async () => {
|
|
28331
|
+
warn();
|
|
28332
|
+
const { data } = await EventResource.getQueueNames({
|
|
28333
|
+
client: client2,
|
|
28334
|
+
throwOnError: true
|
|
28335
|
+
});
|
|
28336
|
+
return data;
|
|
28337
|
+
},
|
|
28338
|
+
/**
|
|
28339
|
+
* @deprecated
|
|
28340
|
+
*/
|
|
28341
|
+
removeEventHandlerStatus: async (name) => {
|
|
28342
|
+
warn();
|
|
28343
|
+
await EventResource.removeEventHandlerStatus({
|
|
28344
|
+
client: client2,
|
|
28345
|
+
path: { name },
|
|
28346
|
+
throwOnError: true
|
|
28347
|
+
});
|
|
28348
|
+
},
|
|
28349
|
+
/**
|
|
28350
|
+
* @deprecated
|
|
28351
|
+
*/
|
|
28352
|
+
getEventHandlersForEvent: async (event, activeOnly = true) => {
|
|
28353
|
+
warn();
|
|
28354
|
+
const { data } = await EventResource.getEventHandlersForEvent({
|
|
28355
|
+
client: client2,
|
|
28356
|
+
path: { event },
|
|
28357
|
+
query: { activeOnly },
|
|
28358
|
+
throwOnError: true
|
|
28359
|
+
});
|
|
28360
|
+
return data;
|
|
28361
|
+
},
|
|
28362
|
+
/**
|
|
28363
|
+
* @deprecated
|
|
28364
|
+
*/
|
|
28365
|
+
deleteTagForEventHandler: async (name, body) => {
|
|
28366
|
+
warn();
|
|
28367
|
+
await EventResource.deleteTagForEventHandler({
|
|
28368
|
+
client: client2,
|
|
28369
|
+
path: { name },
|
|
28370
|
+
body,
|
|
28371
|
+
throwOnError: true
|
|
28372
|
+
});
|
|
28373
|
+
},
|
|
28374
|
+
/**
|
|
28375
|
+
* @deprecated
|
|
28376
|
+
*/
|
|
28377
|
+
getTagsForEventHandler: async (name) => {
|
|
28378
|
+
warn();
|
|
28379
|
+
const { data } = await EventResource.getTagsForEventHandler({
|
|
28380
|
+
client: client2,
|
|
28381
|
+
path: { name },
|
|
28382
|
+
throwOnError: true
|
|
28383
|
+
});
|
|
28384
|
+
return data;
|
|
28385
|
+
},
|
|
28386
|
+
/**
|
|
28387
|
+
* @deprecated
|
|
28388
|
+
*/
|
|
28389
|
+
putTagForEventHandler: async (name, body) => {
|
|
28390
|
+
warn();
|
|
28391
|
+
await EventResource.putTagForEventHandler({
|
|
28392
|
+
client: client2,
|
|
28393
|
+
path: { name },
|
|
28394
|
+
body,
|
|
28395
|
+
throwOnError: true
|
|
28396
|
+
});
|
|
28397
|
+
}
|
|
28398
|
+
};
|
|
28399
|
+
const healthCheckResource = {
|
|
28400
|
+
doCheck: async () => {
|
|
28401
|
+
warn();
|
|
28402
|
+
const { data } = await HealthCheckResource.doCheck({
|
|
28403
|
+
client: client2,
|
|
28404
|
+
throwOnError: true
|
|
28405
|
+
});
|
|
28406
|
+
return data;
|
|
28407
|
+
}
|
|
28408
|
+
};
|
|
28409
|
+
const metadataResource = {
|
|
28410
|
+
getTaskDef: async (tasktype, metadata = false) => {
|
|
28411
|
+
warn();
|
|
28412
|
+
const { data } = await MetadataResource.getTaskDef({
|
|
28413
|
+
client: client2,
|
|
28414
|
+
path: { tasktype },
|
|
28415
|
+
query: { metadata },
|
|
28416
|
+
throwOnError: true
|
|
28417
|
+
});
|
|
28418
|
+
return data;
|
|
28419
|
+
},
|
|
28420
|
+
/**
|
|
28421
|
+
* @deprecated
|
|
28422
|
+
*/
|
|
28423
|
+
unregisterTaskDef: async (tasktype) => {
|
|
28424
|
+
warn();
|
|
28425
|
+
await MetadataResource.unregisterTaskDef({
|
|
28426
|
+
client: client2,
|
|
28427
|
+
path: { tasktype },
|
|
28428
|
+
throwOnError: true
|
|
28429
|
+
});
|
|
28430
|
+
},
|
|
28431
|
+
/**
|
|
28432
|
+
* @deprecated
|
|
28433
|
+
*/
|
|
28434
|
+
getAllWorkflows: async (access = "READ", metadata = false, tagKey, tagValue) => {
|
|
28435
|
+
warn();
|
|
28436
|
+
const { data } = await MetadataResource.getWorkflowDefs({
|
|
28437
|
+
client: client2,
|
|
28438
|
+
query: { access, metadata, tagKey, tagValue },
|
|
28439
|
+
throwOnError: true
|
|
28440
|
+
});
|
|
28441
|
+
return data;
|
|
28442
|
+
},
|
|
28443
|
+
/**
|
|
28444
|
+
* @deprecated
|
|
28445
|
+
*/
|
|
28446
|
+
update: async (requestBody, overwrite = true) => {
|
|
28447
|
+
warn();
|
|
28448
|
+
await MetadataResource.update({
|
|
28449
|
+
client: client2,
|
|
28450
|
+
body: requestBody,
|
|
28451
|
+
query: { overwrite },
|
|
28452
|
+
throwOnError: true
|
|
28453
|
+
});
|
|
28454
|
+
},
|
|
28455
|
+
/**
|
|
28456
|
+
* @deprecated
|
|
28457
|
+
*/
|
|
28458
|
+
create: async (requestBody, overwrite = false) => {
|
|
28459
|
+
warn();
|
|
28460
|
+
await MetadataResource.create({
|
|
28461
|
+
client: client2,
|
|
28462
|
+
body: requestBody,
|
|
28463
|
+
query: { overwrite },
|
|
28464
|
+
throwOnError: true
|
|
28465
|
+
});
|
|
28466
|
+
},
|
|
28467
|
+
/**
|
|
28468
|
+
* @deprecated
|
|
28469
|
+
*/
|
|
28470
|
+
getTaskDefs: async (access = "READ", metadata = false, tagKey, tagValue) => {
|
|
28471
|
+
warn();
|
|
28472
|
+
const { data } = await MetadataResource.getTaskDefs({
|
|
28473
|
+
client: client2,
|
|
28474
|
+
query: { access, metadata, tagKey, tagValue },
|
|
28475
|
+
throwOnError: true
|
|
28476
|
+
});
|
|
28477
|
+
return data;
|
|
28478
|
+
},
|
|
28479
|
+
/**
|
|
28480
|
+
* @deprecated
|
|
28481
|
+
*/
|
|
28482
|
+
updateTaskDef: async (requestBody) => {
|
|
28483
|
+
warn();
|
|
28484
|
+
await MetadataResource.updateTaskDef({
|
|
28485
|
+
client: client2,
|
|
28486
|
+
body: requestBody,
|
|
28487
|
+
throwOnError: true
|
|
28488
|
+
});
|
|
28489
|
+
},
|
|
28490
|
+
/**
|
|
28491
|
+
* @deprecated
|
|
28492
|
+
*/
|
|
28493
|
+
registerTaskDef: async (requestBody) => {
|
|
28494
|
+
warn();
|
|
28495
|
+
await MetadataResource.registerTaskDef({
|
|
28496
|
+
client: client2,
|
|
28497
|
+
body: requestBody,
|
|
28498
|
+
throwOnError: true
|
|
28499
|
+
});
|
|
28500
|
+
},
|
|
28501
|
+
/**
|
|
28502
|
+
* @deprecated
|
|
28503
|
+
*/
|
|
28504
|
+
unregisterWorkflowDef: async (name, version) => {
|
|
28505
|
+
warn();
|
|
28506
|
+
await MetadataResource.unregisterWorkflowDef({
|
|
28507
|
+
client: client2,
|
|
28508
|
+
path: { name, version },
|
|
28509
|
+
throwOnError: true
|
|
28510
|
+
});
|
|
28511
|
+
},
|
|
28512
|
+
/**
|
|
28513
|
+
* @deprecated
|
|
28514
|
+
*/
|
|
28515
|
+
get: async (name, version, metadata = false) => {
|
|
28516
|
+
warn();
|
|
28517
|
+
const { data } = await MetadataResource.get1({
|
|
28518
|
+
client: client2,
|
|
28519
|
+
path: { name },
|
|
28520
|
+
query: { version, metadata },
|
|
28521
|
+
throwOnError: true
|
|
28522
|
+
});
|
|
28523
|
+
return data;
|
|
28524
|
+
}
|
|
28525
|
+
};
|
|
28526
|
+
const schedulerResource = {
|
|
28527
|
+
getSchedule: async (name) => {
|
|
28528
|
+
warn();
|
|
28529
|
+
const { data } = await SchedulerResource.getSchedule({
|
|
28530
|
+
client: client2,
|
|
28531
|
+
path: { name },
|
|
28532
|
+
throwOnError: true
|
|
28533
|
+
});
|
|
28534
|
+
return data;
|
|
28535
|
+
},
|
|
28536
|
+
/**
|
|
28537
|
+
* @deprecated
|
|
28538
|
+
*/
|
|
28539
|
+
deleteSchedule: async (name) => {
|
|
28540
|
+
warn();
|
|
28541
|
+
await SchedulerResource.deleteSchedule({
|
|
28542
|
+
client: client2,
|
|
28543
|
+
path: { name },
|
|
28544
|
+
throwOnError: true
|
|
28545
|
+
});
|
|
28546
|
+
},
|
|
28547
|
+
/**
|
|
28548
|
+
* @deprecated
|
|
28549
|
+
*/
|
|
28550
|
+
getNextFewSchedules: async (cronExpression, scheduleStartTime, scheduleEndTime, limit = 3) => {
|
|
28551
|
+
warn();
|
|
28552
|
+
const { data } = await SchedulerResource.getNextFewSchedules({
|
|
28553
|
+
client: client2,
|
|
28554
|
+
query: { cronExpression, scheduleStartTime, scheduleEndTime, limit },
|
|
28555
|
+
throwOnError: true
|
|
28556
|
+
});
|
|
28557
|
+
return data;
|
|
28558
|
+
},
|
|
28559
|
+
/**
|
|
28560
|
+
* @deprecated
|
|
28561
|
+
*/
|
|
28562
|
+
pauseSchedule: async (name) => {
|
|
28563
|
+
warn();
|
|
28564
|
+
await SchedulerResource.pauseSchedule({
|
|
28565
|
+
client: client2,
|
|
28566
|
+
path: { name },
|
|
28567
|
+
throwOnError: true
|
|
28568
|
+
});
|
|
28569
|
+
},
|
|
28570
|
+
/**
|
|
28571
|
+
* @deprecated
|
|
28572
|
+
*/
|
|
28573
|
+
pauseAllSchedules: async () => {
|
|
28574
|
+
warn();
|
|
28575
|
+
const { data } = await SchedulerResource.pauseAllSchedules({
|
|
28576
|
+
client: client2,
|
|
28577
|
+
throwOnError: true
|
|
28578
|
+
});
|
|
28579
|
+
return data;
|
|
28580
|
+
},
|
|
28581
|
+
/**
|
|
28582
|
+
* @deprecated
|
|
28583
|
+
*/
|
|
28584
|
+
resumeSchedule: async (name) => {
|
|
28585
|
+
warn();
|
|
28586
|
+
await SchedulerResource.resumeSchedule({
|
|
28587
|
+
client: client2,
|
|
28588
|
+
path: { name },
|
|
28589
|
+
throwOnError: true
|
|
28590
|
+
});
|
|
28591
|
+
},
|
|
28592
|
+
/**
|
|
28593
|
+
* @deprecated
|
|
28594
|
+
*/
|
|
28595
|
+
requeueAllExecutionRecords: async () => {
|
|
28596
|
+
warn();
|
|
28597
|
+
const { data } = await SchedulerResource.requeueAllExecutionRecords({
|
|
28598
|
+
client: client2,
|
|
28599
|
+
throwOnError: true
|
|
28600
|
+
});
|
|
28601
|
+
return data;
|
|
28602
|
+
},
|
|
28603
|
+
/**
|
|
28604
|
+
* @deprecated
|
|
28605
|
+
*/
|
|
28606
|
+
resumeAllSchedules: async () => {
|
|
28607
|
+
warn();
|
|
28608
|
+
const { data } = await SchedulerResource.resumeAllSchedules({
|
|
28609
|
+
client: client2,
|
|
28610
|
+
throwOnError: true
|
|
28611
|
+
});
|
|
28612
|
+
return data;
|
|
28613
|
+
},
|
|
28614
|
+
/**
|
|
28615
|
+
* @deprecated
|
|
28616
|
+
*/
|
|
28617
|
+
getAllSchedules: async (workflowName) => {
|
|
28618
|
+
warn();
|
|
28619
|
+
const { data } = await SchedulerResource.getAllSchedules({
|
|
28620
|
+
client: client2,
|
|
28621
|
+
query: { workflowName },
|
|
28622
|
+
throwOnError: true
|
|
28623
|
+
});
|
|
28624
|
+
return data;
|
|
28625
|
+
},
|
|
28626
|
+
/**
|
|
28627
|
+
* @deprecated
|
|
28628
|
+
*/
|
|
28629
|
+
saveSchedule: async (requestBody) => {
|
|
28630
|
+
warn();
|
|
28631
|
+
await SchedulerResource.saveSchedule({
|
|
28632
|
+
client: client2,
|
|
28633
|
+
body: requestBody,
|
|
28634
|
+
throwOnError: true
|
|
28635
|
+
});
|
|
28636
|
+
},
|
|
28637
|
+
/**
|
|
28638
|
+
* @deprecated
|
|
28639
|
+
*/
|
|
28640
|
+
searchV21: async (start, size = 100, sort, freeText = "*", query) => {
|
|
28641
|
+
warn();
|
|
28642
|
+
const { data } = await SchedulerResource.searchV2({
|
|
28643
|
+
client: client2,
|
|
28644
|
+
query: { start, size, sort, freeText, query },
|
|
28645
|
+
throwOnError: true
|
|
28646
|
+
});
|
|
28647
|
+
return data;
|
|
28648
|
+
},
|
|
28649
|
+
/**
|
|
28650
|
+
* @deprecated
|
|
28651
|
+
*/
|
|
28652
|
+
testTimeout: async () => {
|
|
28653
|
+
warn();
|
|
28654
|
+
const { data } = await client2.get({
|
|
28655
|
+
security: [
|
|
28656
|
+
{
|
|
28657
|
+
name: "X-Authorization",
|
|
28658
|
+
type: "apiKey"
|
|
28659
|
+
}
|
|
28660
|
+
],
|
|
28661
|
+
url: "/api/scheduler/test/timeout",
|
|
28662
|
+
throwOnError: true
|
|
28663
|
+
});
|
|
28664
|
+
return data;
|
|
28665
|
+
}
|
|
28666
|
+
};
|
|
28667
|
+
const tokenResource = {
|
|
28668
|
+
generateToken: async (requestBody) => {
|
|
28669
|
+
warn();
|
|
28670
|
+
const { data } = await TokenResource.generateToken({
|
|
28671
|
+
client: client2,
|
|
28672
|
+
body: requestBody,
|
|
28673
|
+
throwOnError: true
|
|
28674
|
+
});
|
|
28675
|
+
return data;
|
|
28676
|
+
},
|
|
28677
|
+
getUserInfo: async (claims = false) => {
|
|
28678
|
+
warn();
|
|
28679
|
+
const { data } = await TokenResource.getUserInfo({
|
|
28680
|
+
client: client2,
|
|
28681
|
+
query: { claims },
|
|
28682
|
+
throwOnError: true
|
|
28683
|
+
});
|
|
28684
|
+
return data;
|
|
28685
|
+
}
|
|
28686
|
+
};
|
|
28687
|
+
const workflowBulkResource = {
|
|
28688
|
+
retry: async (requestBody) => {
|
|
28689
|
+
warn();
|
|
28690
|
+
const { data } = await WorkflowBulkResource.retry1({
|
|
28691
|
+
client: client2,
|
|
28692
|
+
body: requestBody,
|
|
28693
|
+
throwOnError: true
|
|
28694
|
+
});
|
|
28695
|
+
return data;
|
|
28696
|
+
},
|
|
28697
|
+
/**
|
|
28698
|
+
* @deprecated
|
|
28699
|
+
*/
|
|
28700
|
+
restart: async (requestBody, useLatestDefinitions = false) => {
|
|
28701
|
+
warn();
|
|
28702
|
+
const { data } = await WorkflowBulkResource.restart1({
|
|
28703
|
+
client: client2,
|
|
28704
|
+
body: requestBody,
|
|
28705
|
+
query: { useLatestDefinitions },
|
|
28706
|
+
throwOnError: true
|
|
28707
|
+
});
|
|
28708
|
+
return data;
|
|
28709
|
+
},
|
|
28710
|
+
/**
|
|
28711
|
+
* @deprecated
|
|
28712
|
+
*/
|
|
28713
|
+
terminate: async (requestBody, reason) => {
|
|
28714
|
+
warn();
|
|
28715
|
+
const { data } = await WorkflowBulkResource.terminate({
|
|
28716
|
+
client: client2,
|
|
28717
|
+
body: requestBody,
|
|
28718
|
+
query: { reason },
|
|
28719
|
+
throwOnError: true
|
|
28720
|
+
});
|
|
28721
|
+
return data;
|
|
28722
|
+
},
|
|
28723
|
+
/**
|
|
28724
|
+
* @deprecated
|
|
28725
|
+
*/
|
|
28726
|
+
resumeWorkflow: async (requestBody) => {
|
|
28727
|
+
warn();
|
|
28728
|
+
const { data } = await WorkflowBulkResource.resumeWorkflow1({
|
|
28729
|
+
client: client2,
|
|
28730
|
+
body: requestBody,
|
|
28731
|
+
throwOnError: true
|
|
28732
|
+
});
|
|
28733
|
+
return data;
|
|
28734
|
+
},
|
|
28735
|
+
/**
|
|
28736
|
+
* @deprecated
|
|
28737
|
+
*/
|
|
28738
|
+
pauseWorkflow1: async (requestBody) => {
|
|
28739
|
+
warn();
|
|
28740
|
+
const { data } = await WorkflowBulkResource.pauseWorkflow1({
|
|
28741
|
+
client: client2,
|
|
28742
|
+
body: requestBody,
|
|
28743
|
+
throwOnError: true
|
|
28744
|
+
});
|
|
28745
|
+
return data;
|
|
28746
|
+
}
|
|
28747
|
+
};
|
|
28748
|
+
const workflowResource = {
|
|
28749
|
+
getRunningWorkflow: async (name, version = 1, startTime, endTime) => {
|
|
28750
|
+
warn();
|
|
28751
|
+
const { data } = await WorkflowResource.getRunningWorkflow({
|
|
28752
|
+
client: client2,
|
|
28753
|
+
path: { name },
|
|
28754
|
+
query: { version, startTime, endTime },
|
|
28755
|
+
throwOnError: true
|
|
28756
|
+
});
|
|
28757
|
+
return data;
|
|
28758
|
+
},
|
|
28759
|
+
/**
|
|
28760
|
+
* @deprecated
|
|
28761
|
+
*/
|
|
28762
|
+
executeWorkflow: async (body, name, version, requestId, waitUntilTaskRef, waitForSeconds, consistency, returnStrategy) => {
|
|
28763
|
+
warn();
|
|
28764
|
+
const { data } = await WorkflowResource.executeWorkflow({
|
|
28765
|
+
client: client2,
|
|
28766
|
+
path: { name, version },
|
|
28767
|
+
query: {
|
|
28768
|
+
requestId,
|
|
28769
|
+
waitUntilTaskRef,
|
|
28770
|
+
waitForSeconds,
|
|
28771
|
+
consistency,
|
|
28772
|
+
returnStrategy
|
|
28773
|
+
},
|
|
28774
|
+
body,
|
|
28775
|
+
throwOnError: true
|
|
28776
|
+
});
|
|
28777
|
+
return data;
|
|
28778
|
+
},
|
|
28779
|
+
/**
|
|
28780
|
+
* @deprecated
|
|
28781
|
+
*/
|
|
28782
|
+
startWorkflow: async (requestBody) => {
|
|
28783
|
+
warn();
|
|
28784
|
+
const { data } = await WorkflowResource.startWorkflow({
|
|
28785
|
+
client: client2,
|
|
28786
|
+
body: requestBody,
|
|
28787
|
+
throwOnError: true
|
|
28788
|
+
});
|
|
28789
|
+
return data;
|
|
28790
|
+
},
|
|
28791
|
+
/**
|
|
28792
|
+
* @deprecated
|
|
28793
|
+
*/
|
|
28794
|
+
decide: async (workflowId) => {
|
|
28795
|
+
warn();
|
|
28796
|
+
await WorkflowResource.decide({
|
|
28797
|
+
client: client2,
|
|
28798
|
+
path: { workflowId },
|
|
28799
|
+
throwOnError: true
|
|
28800
|
+
});
|
|
28801
|
+
},
|
|
28802
|
+
/**
|
|
28803
|
+
* @deprecated
|
|
28804
|
+
*/
|
|
28805
|
+
rerun: async (workflowId, requestBody) => {
|
|
28806
|
+
warn();
|
|
28807
|
+
const { data } = await WorkflowResource.rerun({
|
|
28808
|
+
client: client2,
|
|
28809
|
+
path: { workflowId },
|
|
28810
|
+
body: requestBody,
|
|
28811
|
+
throwOnError: true
|
|
28812
|
+
});
|
|
28813
|
+
return data;
|
|
28814
|
+
},
|
|
28815
|
+
/**
|
|
28816
|
+
* @deprecated
|
|
28817
|
+
*/
|
|
28818
|
+
searchV21: async (start, size = 100, sort, freeText = "*", query) => {
|
|
28819
|
+
warn();
|
|
28820
|
+
const { data } = await client2.get({
|
|
28821
|
+
security: [
|
|
28822
|
+
{
|
|
28823
|
+
name: "X-Authorization",
|
|
28824
|
+
type: "apiKey"
|
|
28825
|
+
}
|
|
28826
|
+
],
|
|
28827
|
+
url: "/api/workflow/search-v2",
|
|
28828
|
+
query: { start, size, sort, freeText, query },
|
|
28829
|
+
throwOnError: true
|
|
28830
|
+
});
|
|
28831
|
+
return data;
|
|
28832
|
+
},
|
|
28833
|
+
/**
|
|
28834
|
+
* @deprecated
|
|
28835
|
+
*/
|
|
28836
|
+
pauseWorkflow: async (workflowId) => {
|
|
28837
|
+
warn();
|
|
28838
|
+
await WorkflowResource.pauseWorkflow({
|
|
28839
|
+
client: client2,
|
|
28840
|
+
path: { workflowId },
|
|
28841
|
+
throwOnError: true
|
|
28842
|
+
});
|
|
28843
|
+
},
|
|
28844
|
+
/**
|
|
28845
|
+
* @deprecated
|
|
28846
|
+
*/
|
|
28847
|
+
skipTaskFromWorkflow: async (workflowId, taskReferenceName, requestBody) => {
|
|
28848
|
+
warn();
|
|
28849
|
+
await WorkflowResource.skipTaskFromWorkflow({
|
|
28850
|
+
client: client2,
|
|
28851
|
+
path: { workflowId, taskReferenceName },
|
|
28852
|
+
body: requestBody,
|
|
28853
|
+
throwOnError: true
|
|
28854
|
+
});
|
|
28855
|
+
},
|
|
28856
|
+
/**
|
|
28857
|
+
* @deprecated
|
|
28858
|
+
*/
|
|
28859
|
+
getWorkflows: async (name, requestBody, includeClosed = false, includeTasks = false) => {
|
|
28860
|
+
warn();
|
|
28861
|
+
const { data } = await WorkflowResource.getWorkflows({
|
|
28862
|
+
client: client2,
|
|
28863
|
+
path: { name },
|
|
28864
|
+
query: { includeClosed, includeTasks },
|
|
28865
|
+
body: requestBody,
|
|
28866
|
+
throwOnError: true
|
|
28867
|
+
});
|
|
28868
|
+
return data;
|
|
28869
|
+
},
|
|
28870
|
+
/**
|
|
28871
|
+
* @deprecated
|
|
28872
|
+
*/
|
|
28873
|
+
getWorkflowStatusSummary: async (workflowId, includeOutput = false, includeVariables = false) => {
|
|
28874
|
+
warn();
|
|
28875
|
+
const { data } = await WorkflowResource.getWorkflowStatusSummary({
|
|
28876
|
+
client: client2,
|
|
28877
|
+
path: { workflowId },
|
|
28878
|
+
query: { includeOutput, includeVariables },
|
|
28879
|
+
throwOnError: true
|
|
28880
|
+
});
|
|
28881
|
+
return data;
|
|
28882
|
+
},
|
|
28883
|
+
/**
|
|
28884
|
+
* @deprecated
|
|
28885
|
+
*/
|
|
28886
|
+
getWorkflows1: async (name, correlationId, includeClosed = false, includeTasks = false) => {
|
|
28887
|
+
warn();
|
|
28888
|
+
const { data } = await WorkflowResource.getWorkflows2({
|
|
28889
|
+
client: client2,
|
|
28890
|
+
path: { name, correlationId },
|
|
28891
|
+
query: { includeClosed, includeTasks },
|
|
28892
|
+
throwOnError: true
|
|
28893
|
+
});
|
|
28894
|
+
return data;
|
|
28895
|
+
},
|
|
28896
|
+
/**
|
|
28897
|
+
* @deprecated
|
|
28898
|
+
*/
|
|
28899
|
+
retry1: async (workflowId, resumeSubworkflowTasks = false) => {
|
|
28900
|
+
warn();
|
|
28901
|
+
await WorkflowResource.retry({
|
|
28902
|
+
client: client2,
|
|
28903
|
+
path: { workflowId },
|
|
28904
|
+
query: { resumeSubworkflowTasks },
|
|
28905
|
+
throwOnError: true
|
|
28906
|
+
});
|
|
28907
|
+
},
|
|
28908
|
+
/**
|
|
28909
|
+
* @deprecated
|
|
28910
|
+
*/
|
|
28911
|
+
getExecutionStatus: async (workflowId, includeTasks = true) => {
|
|
28912
|
+
warn();
|
|
28913
|
+
const { data } = await WorkflowResource.getExecutionStatus({
|
|
28914
|
+
client: client2,
|
|
28915
|
+
path: { workflowId },
|
|
28916
|
+
query: { includeTasks },
|
|
28917
|
+
throwOnError: true
|
|
28918
|
+
});
|
|
28919
|
+
return data;
|
|
28920
|
+
},
|
|
28921
|
+
/**
|
|
28922
|
+
* @deprecated
|
|
28923
|
+
*/
|
|
28924
|
+
terminate1: async (workflowId, reason) => {
|
|
28925
|
+
warn();
|
|
28926
|
+
await WorkflowResource.terminate1({
|
|
28927
|
+
client: client2,
|
|
28928
|
+
path: { workflowId },
|
|
28929
|
+
query: { reason },
|
|
28930
|
+
throwOnError: true
|
|
28931
|
+
});
|
|
28932
|
+
},
|
|
28933
|
+
/**
|
|
28934
|
+
* @deprecated
|
|
28935
|
+
*/
|
|
28936
|
+
resumeWorkflow: async (workflowId) => {
|
|
28937
|
+
warn();
|
|
28938
|
+
await WorkflowResource.resumeWorkflow({
|
|
28939
|
+
client: client2,
|
|
28940
|
+
path: { workflowId },
|
|
28941
|
+
throwOnError: true
|
|
28942
|
+
});
|
|
28943
|
+
},
|
|
28944
|
+
/**
|
|
28945
|
+
* @deprecated
|
|
28946
|
+
*/
|
|
28947
|
+
delete: async (workflowId, archiveWorkflow = true) => {
|
|
28948
|
+
warn();
|
|
28949
|
+
await WorkflowResource.delete1({
|
|
28950
|
+
client: client2,
|
|
28951
|
+
path: { workflowId },
|
|
28952
|
+
query: { archiveWorkflow },
|
|
28953
|
+
throwOnError: true
|
|
28954
|
+
});
|
|
28955
|
+
},
|
|
28956
|
+
/**
|
|
28957
|
+
* @deprecated
|
|
28958
|
+
*/
|
|
28959
|
+
searchWorkflowsByTasks: async (start, size = 100, sort, freeText = "*", query) => {
|
|
28960
|
+
warn();
|
|
28961
|
+
const { data } = await client2.get({
|
|
28962
|
+
security: [
|
|
28963
|
+
{
|
|
28964
|
+
name: "X-Authorization",
|
|
28965
|
+
type: "apiKey"
|
|
28966
|
+
}
|
|
28967
|
+
],
|
|
28968
|
+
url: "/api/workflow/search-by-tasks",
|
|
28969
|
+
query: { start, size, sort, freeText, query },
|
|
28970
|
+
throwOnError: true
|
|
28971
|
+
});
|
|
28972
|
+
return data;
|
|
28973
|
+
},
|
|
28974
|
+
/**
|
|
28975
|
+
* @deprecated
|
|
28976
|
+
*/
|
|
28977
|
+
getExternalStorageLocation: async (path, operation, payloadType) => {
|
|
28978
|
+
warn();
|
|
28979
|
+
const { data } = await client2.get({
|
|
28980
|
+
security: [
|
|
28981
|
+
{
|
|
28982
|
+
name: "X-Authorization",
|
|
28983
|
+
type: "apiKey"
|
|
28984
|
+
}
|
|
28985
|
+
],
|
|
28986
|
+
url: "/api/workflow/externalstoragelocation",
|
|
28987
|
+
query: { path, operation, payloadType },
|
|
28988
|
+
throwOnError: true
|
|
28989
|
+
});
|
|
28990
|
+
return data;
|
|
28991
|
+
},
|
|
28992
|
+
/**
|
|
28993
|
+
* @deprecated
|
|
28994
|
+
*/
|
|
28995
|
+
startWorkflow1: async (name, requestBody, version, correlationId, priority) => {
|
|
28996
|
+
warn();
|
|
28997
|
+
const { data } = await WorkflowResource.startWorkflow1({
|
|
28998
|
+
client: client2,
|
|
28999
|
+
path: { name },
|
|
29000
|
+
query: { version, correlationId, priority },
|
|
29001
|
+
body: requestBody,
|
|
29002
|
+
throwOnError: true
|
|
29003
|
+
});
|
|
29004
|
+
return data;
|
|
29005
|
+
},
|
|
29006
|
+
/**
|
|
29007
|
+
* @deprecated
|
|
29008
|
+
*/
|
|
29009
|
+
restart1: async (workflowId, useLatestDefinitions = false) => {
|
|
29010
|
+
warn();
|
|
29011
|
+
await WorkflowResource.restart({
|
|
29012
|
+
client: client2,
|
|
29013
|
+
path: { workflowId },
|
|
29014
|
+
query: { useLatestDefinitions },
|
|
29015
|
+
throwOnError: true
|
|
29016
|
+
});
|
|
29017
|
+
},
|
|
29018
|
+
/**
|
|
29019
|
+
* @deprecated
|
|
29020
|
+
*/
|
|
29021
|
+
search1: async (queryId, start, size = 100, sort, freeText = "*", query, skipCache = false) => {
|
|
29022
|
+
warn();
|
|
29023
|
+
const { data } = await client2.get({
|
|
29024
|
+
security: [
|
|
29025
|
+
{
|
|
29026
|
+
name: "X-Authorization",
|
|
29027
|
+
type: "apiKey"
|
|
29028
|
+
}
|
|
29029
|
+
],
|
|
29030
|
+
url: "/api/workflow/search",
|
|
29031
|
+
query: { queryId, start, size, sort, freeText, query, skipCache },
|
|
29032
|
+
throwOnError: true
|
|
29033
|
+
});
|
|
29034
|
+
return data;
|
|
29035
|
+
},
|
|
29036
|
+
/**
|
|
29037
|
+
* @deprecated
|
|
29038
|
+
*/
|
|
29039
|
+
searchWorkflowsByTasksV2: async (start, size = 100, sort, freeText = "*", query) => {
|
|
29040
|
+
warn();
|
|
29041
|
+
const { data } = await client2.get({
|
|
29042
|
+
security: [
|
|
29043
|
+
{
|
|
29044
|
+
name: "X-Authorization",
|
|
29045
|
+
type: "apiKey"
|
|
29046
|
+
}
|
|
29047
|
+
],
|
|
29048
|
+
url: "/api/workflow/search-by-tasks-v2",
|
|
29049
|
+
query: { start, size, sort, freeText, query },
|
|
29050
|
+
throwOnError: true
|
|
29051
|
+
});
|
|
29052
|
+
return data;
|
|
29053
|
+
},
|
|
29054
|
+
/**
|
|
29055
|
+
* @deprecated
|
|
29056
|
+
*/
|
|
29057
|
+
resetWorkflow: async (workflowId) => {
|
|
29058
|
+
warn();
|
|
29059
|
+
await WorkflowResource.resetWorkflow({
|
|
29060
|
+
client: client2,
|
|
29061
|
+
path: { workflowId },
|
|
29062
|
+
throwOnError: true
|
|
29063
|
+
});
|
|
29064
|
+
},
|
|
29065
|
+
/**
|
|
29066
|
+
* @deprecated
|
|
29067
|
+
*/
|
|
29068
|
+
testWorkflow: async (requestBody) => {
|
|
29069
|
+
warn();
|
|
29070
|
+
const { data } = await WorkflowResource.testWorkflow({
|
|
29071
|
+
client: client2,
|
|
29072
|
+
body: requestBody,
|
|
29073
|
+
throwOnError: true
|
|
29074
|
+
});
|
|
29075
|
+
return data;
|
|
29076
|
+
}
|
|
29077
|
+
};
|
|
29078
|
+
const serviceRegistryResource = {
|
|
29079
|
+
getRegisteredServices: async () => {
|
|
29080
|
+
warn();
|
|
29081
|
+
const { data } = await ServiceRegistryResource.getRegisteredServices({
|
|
29082
|
+
client: client2,
|
|
29083
|
+
throwOnError: true
|
|
29084
|
+
});
|
|
29085
|
+
return data;
|
|
29086
|
+
},
|
|
29087
|
+
/**
|
|
29088
|
+
* @deprecated
|
|
29089
|
+
*/
|
|
29090
|
+
removeService: async (name) => {
|
|
29091
|
+
warn();
|
|
29092
|
+
await ServiceRegistryResource.removeService({
|
|
29093
|
+
client: client2,
|
|
29094
|
+
path: { name },
|
|
29095
|
+
throwOnError: true
|
|
29096
|
+
});
|
|
29097
|
+
},
|
|
29098
|
+
/**
|
|
29099
|
+
* @deprecated
|
|
29100
|
+
*/
|
|
29101
|
+
getService: async (name) => {
|
|
29102
|
+
warn();
|
|
29103
|
+
const { data } = await ServiceRegistryResource.getService({
|
|
29104
|
+
client: client2,
|
|
29105
|
+
path: { name },
|
|
29106
|
+
throwOnError: true
|
|
29107
|
+
});
|
|
29108
|
+
return data;
|
|
29109
|
+
},
|
|
29110
|
+
/**
|
|
29111
|
+
* @deprecated
|
|
29112
|
+
*/
|
|
29113
|
+
openCircuitBreaker: async (name) => {
|
|
29114
|
+
warn();
|
|
29115
|
+
const { data } = await ServiceRegistryResource.openCircuitBreaker({
|
|
29116
|
+
client: client2,
|
|
29117
|
+
path: { name },
|
|
29118
|
+
throwOnError: true
|
|
29119
|
+
});
|
|
29120
|
+
return data;
|
|
29121
|
+
},
|
|
29122
|
+
/**
|
|
29123
|
+
* @deprecated
|
|
29124
|
+
*/
|
|
29125
|
+
closeCircuitBreaker: async (name) => {
|
|
29126
|
+
warn();
|
|
29127
|
+
const { data } = await ServiceRegistryResource.closeCircuitBreaker({
|
|
29128
|
+
client: client2,
|
|
29129
|
+
path: { name },
|
|
29130
|
+
throwOnError: true
|
|
29131
|
+
});
|
|
29132
|
+
return data;
|
|
29133
|
+
},
|
|
29134
|
+
/**
|
|
29135
|
+
* @deprecated
|
|
29136
|
+
*/
|
|
29137
|
+
getCircuitBreakerStatus: async (name) => {
|
|
29138
|
+
warn();
|
|
29139
|
+
const { data } = await ServiceRegistryResource.getCircuitBreakerStatus({
|
|
29140
|
+
client: client2,
|
|
29141
|
+
path: { name },
|
|
29142
|
+
throwOnError: true
|
|
29143
|
+
});
|
|
29144
|
+
return data;
|
|
29145
|
+
},
|
|
29146
|
+
/**
|
|
29147
|
+
* @deprecated
|
|
29148
|
+
*/
|
|
29149
|
+
addOrUpdateService: async (serviceRegistry) => {
|
|
29150
|
+
warn();
|
|
29151
|
+
await ServiceRegistryResource.addOrUpdateService({
|
|
29152
|
+
client: client2,
|
|
29153
|
+
body: serviceRegistry,
|
|
29154
|
+
throwOnError: true
|
|
29155
|
+
});
|
|
29156
|
+
},
|
|
29157
|
+
/**
|
|
29158
|
+
* @deprecated
|
|
29159
|
+
*/
|
|
29160
|
+
addOrUpdateServiceMethod: async (registryName, method) => {
|
|
29161
|
+
warn();
|
|
29162
|
+
await ServiceRegistryResource.addOrUpdateMethod({
|
|
29163
|
+
client: client2,
|
|
29164
|
+
path: { registryName },
|
|
29165
|
+
body: method,
|
|
29166
|
+
throwOnError: true
|
|
29167
|
+
});
|
|
29168
|
+
},
|
|
29169
|
+
/**
|
|
29170
|
+
* @deprecated
|
|
29171
|
+
*/
|
|
29172
|
+
removeMethod: async (registryName, serviceName, method, methodType) => {
|
|
29173
|
+
warn();
|
|
29174
|
+
await ServiceRegistryResource.removeMethod({
|
|
29175
|
+
client: client2,
|
|
29176
|
+
path: { registryName },
|
|
29177
|
+
query: { serviceName, method, methodType },
|
|
29178
|
+
throwOnError: true
|
|
29179
|
+
});
|
|
29180
|
+
},
|
|
29181
|
+
/**
|
|
29182
|
+
* @deprecated
|
|
29183
|
+
*/
|
|
29184
|
+
getProtoData: async (registryName, filename) => {
|
|
29185
|
+
warn();
|
|
29186
|
+
const { data } = await ServiceRegistryResource.getProtoData({
|
|
29187
|
+
client: client2,
|
|
29188
|
+
path: { registryName, filename },
|
|
29189
|
+
throwOnError: true
|
|
29190
|
+
});
|
|
29191
|
+
return data;
|
|
29192
|
+
},
|
|
29193
|
+
/**
|
|
29194
|
+
* @deprecated
|
|
29195
|
+
*/
|
|
29196
|
+
setProtoData: async (registryName, filename, data) => {
|
|
29197
|
+
warn();
|
|
29198
|
+
await ServiceRegistryResource.setProtoData({
|
|
29199
|
+
client: client2,
|
|
29200
|
+
path: { registryName, filename },
|
|
29201
|
+
body: data,
|
|
29202
|
+
throwOnError: true
|
|
29203
|
+
});
|
|
29204
|
+
},
|
|
29205
|
+
/**
|
|
29206
|
+
* @deprecated
|
|
29207
|
+
*/
|
|
29208
|
+
deleteProto: async (registryName, filename) => {
|
|
29209
|
+
warn();
|
|
29210
|
+
await ServiceRegistryResource.deleteProto({
|
|
29211
|
+
client: client2,
|
|
29212
|
+
path: { registryName, filename },
|
|
29213
|
+
throwOnError: true
|
|
29214
|
+
});
|
|
29215
|
+
},
|
|
29216
|
+
/**
|
|
29217
|
+
* @deprecated
|
|
29218
|
+
*/
|
|
29219
|
+
getAllProtos: async (registryName) => {
|
|
29220
|
+
warn();
|
|
29221
|
+
const { data } = await ServiceRegistryResource.getAllProtos({
|
|
29222
|
+
client: client2,
|
|
29223
|
+
path: { registryName },
|
|
29224
|
+
throwOnError: true
|
|
29225
|
+
});
|
|
29226
|
+
return data;
|
|
29227
|
+
},
|
|
29228
|
+
/**
|
|
29229
|
+
* @deprecated
|
|
29230
|
+
*/
|
|
29231
|
+
discover: async (name, create = false) => {
|
|
29232
|
+
warn();
|
|
29233
|
+
const { data } = await ServiceRegistryResource.discover({
|
|
29234
|
+
client: client2,
|
|
29235
|
+
path: { name },
|
|
29236
|
+
query: { create },
|
|
29237
|
+
throwOnError: true
|
|
29238
|
+
});
|
|
29239
|
+
return data;
|
|
29240
|
+
}
|
|
29241
|
+
};
|
|
29242
|
+
const humanTaskResource = {
|
|
29243
|
+
getConductorTaskById: async (taskId) => {
|
|
29244
|
+
warn();
|
|
29245
|
+
const { data } = await HumanTaskResource.getConductorTaskById({
|
|
29246
|
+
client: client2,
|
|
29247
|
+
path: { taskId },
|
|
29248
|
+
throwOnError: true
|
|
29249
|
+
});
|
|
29250
|
+
return data;
|
|
29251
|
+
}
|
|
29252
|
+
};
|
|
29253
|
+
const humanTask = {
|
|
29254
|
+
deleteTaskFromHumanTaskRecords: async (requestBody) => {
|
|
29255
|
+
warn();
|
|
29256
|
+
await HumanTask.deleteTaskFromHumanTaskRecords({
|
|
29257
|
+
client: client2,
|
|
29258
|
+
body: requestBody,
|
|
29259
|
+
throwOnError: true
|
|
29260
|
+
});
|
|
29261
|
+
},
|
|
29262
|
+
/**
|
|
29263
|
+
* @deprecated
|
|
29264
|
+
*/
|
|
29265
|
+
deleteTaskFromHumanTaskRecords1: async (taskId) => {
|
|
29266
|
+
warn();
|
|
29267
|
+
await HumanTask.deleteTaskFromHumanTaskRecords1({
|
|
29268
|
+
client: client2,
|
|
29269
|
+
path: { taskId },
|
|
29270
|
+
throwOnError: true
|
|
29271
|
+
});
|
|
29272
|
+
},
|
|
29273
|
+
/**
|
|
29274
|
+
* @deprecated
|
|
29275
|
+
*/
|
|
29276
|
+
search: async (requestBody) => {
|
|
29277
|
+
warn();
|
|
29278
|
+
const { data } = await HumanTask.search({
|
|
29279
|
+
client: client2,
|
|
29280
|
+
body: requestBody,
|
|
29281
|
+
throwOnError: true
|
|
29282
|
+
});
|
|
29283
|
+
return data;
|
|
29284
|
+
},
|
|
29285
|
+
/**
|
|
29286
|
+
* @deprecated
|
|
29287
|
+
*/
|
|
29288
|
+
updateTaskOutputByRef: async (workflowId, taskRefName, requestBody, complete = false, iteration) => {
|
|
29289
|
+
warn();
|
|
29290
|
+
const { data } = await HumanTask.updateTaskOutputByRef({
|
|
29291
|
+
client: client2,
|
|
29292
|
+
query: {
|
|
29293
|
+
workflowId,
|
|
29294
|
+
taskRefName,
|
|
29295
|
+
complete,
|
|
29296
|
+
iteration
|
|
29297
|
+
},
|
|
29298
|
+
body: requestBody,
|
|
29299
|
+
throwOnError: true
|
|
29300
|
+
});
|
|
29301
|
+
return data;
|
|
29302
|
+
},
|
|
29303
|
+
/**
|
|
29304
|
+
* @deprecated
|
|
29305
|
+
*/
|
|
29306
|
+
getTask1: async (taskId) => {
|
|
29307
|
+
warn();
|
|
29308
|
+
const { data } = await HumanTask.getTask1({
|
|
29309
|
+
client: client2,
|
|
29310
|
+
path: { taskId },
|
|
29311
|
+
throwOnError: true
|
|
29312
|
+
});
|
|
29313
|
+
return data;
|
|
29314
|
+
},
|
|
29315
|
+
/**
|
|
29316
|
+
* @deprecated
|
|
29317
|
+
*/
|
|
29318
|
+
claimTask: async (taskId, overrideAssignment = false, withTemplate = false) => {
|
|
29319
|
+
warn();
|
|
29320
|
+
const { data } = await HumanTask.claimTask({
|
|
29321
|
+
client: client2,
|
|
29322
|
+
path: { taskId },
|
|
29323
|
+
query: { overrideAssignment, withTemplate },
|
|
29324
|
+
throwOnError: true
|
|
29325
|
+
});
|
|
29326
|
+
return data;
|
|
29327
|
+
},
|
|
29328
|
+
/**
|
|
29329
|
+
* @deprecated
|
|
29330
|
+
*/
|
|
29331
|
+
assignAndClaim: async (taskId, userId, overrideAssignment = false, withTemplate = false) => {
|
|
29332
|
+
warn();
|
|
29333
|
+
const { data } = await HumanTask.assignAndClaim({
|
|
29334
|
+
client: client2,
|
|
29335
|
+
path: { taskId, userId },
|
|
29336
|
+
query: { overrideAssignment, withTemplate },
|
|
29337
|
+
throwOnError: true
|
|
29338
|
+
});
|
|
29339
|
+
return data;
|
|
29340
|
+
},
|
|
29341
|
+
/**
|
|
29342
|
+
* @deprecated
|
|
29343
|
+
*/
|
|
29344
|
+
reassignTask: async (taskId, requestBody) => {
|
|
29345
|
+
warn();
|
|
29346
|
+
await HumanTask.reassignTask({
|
|
29347
|
+
client: client2,
|
|
29348
|
+
path: { taskId },
|
|
29349
|
+
body: requestBody,
|
|
29350
|
+
throwOnError: true
|
|
29351
|
+
});
|
|
29352
|
+
},
|
|
29353
|
+
/**
|
|
29354
|
+
* @deprecated
|
|
29355
|
+
*/
|
|
29356
|
+
releaseTask: async (taskId) => {
|
|
29357
|
+
warn();
|
|
29358
|
+
await HumanTask.releaseTask({
|
|
29359
|
+
client: client2,
|
|
29360
|
+
path: { taskId },
|
|
29361
|
+
throwOnError: true
|
|
29362
|
+
});
|
|
29363
|
+
},
|
|
29364
|
+
/**
|
|
29365
|
+
* @deprecated
|
|
29366
|
+
*/
|
|
29367
|
+
skipTask: async (taskId, reason) => {
|
|
29368
|
+
warn();
|
|
29369
|
+
await HumanTask.skipTask({
|
|
29370
|
+
client: client2,
|
|
29371
|
+
path: { taskId },
|
|
29372
|
+
query: { reason },
|
|
29373
|
+
throwOnError: true
|
|
29374
|
+
});
|
|
29375
|
+
},
|
|
29376
|
+
/**
|
|
29377
|
+
* @deprecated
|
|
29378
|
+
*/
|
|
29379
|
+
updateTaskOutput: async (taskId, requestBody, complete = false) => {
|
|
29380
|
+
warn();
|
|
29381
|
+
await HumanTask.updateTaskOutput({
|
|
29382
|
+
client: client2,
|
|
29383
|
+
path: { taskId },
|
|
29384
|
+
query: { complete },
|
|
29385
|
+
body: requestBody,
|
|
29386
|
+
throwOnError: true
|
|
29387
|
+
});
|
|
29388
|
+
},
|
|
29389
|
+
/**
|
|
29390
|
+
* @deprecated
|
|
29391
|
+
*/
|
|
29392
|
+
getAllTemplates: async (name, version) => {
|
|
29393
|
+
warn();
|
|
29394
|
+
const { data } = await UserForm.getAllTemplates({
|
|
29395
|
+
client: client2,
|
|
29396
|
+
query: { name, version },
|
|
29397
|
+
throwOnError: true
|
|
29398
|
+
});
|
|
29399
|
+
return data;
|
|
29400
|
+
},
|
|
29401
|
+
/**
|
|
29402
|
+
* @deprecated
|
|
29403
|
+
*/
|
|
29404
|
+
saveTemplate: async (requestBody, newVersion = false) => {
|
|
29405
|
+
warn();
|
|
29406
|
+
const { data } = await UserForm.saveTemplate({
|
|
29407
|
+
client: client2,
|
|
29408
|
+
query: { newVersion },
|
|
29409
|
+
body: requestBody,
|
|
29410
|
+
throwOnError: true
|
|
29411
|
+
});
|
|
29412
|
+
return data;
|
|
29413
|
+
},
|
|
29414
|
+
/**
|
|
29415
|
+
* @deprecated
|
|
29416
|
+
*/
|
|
29417
|
+
saveTemplates: async (requestBody, newVersion = false) => {
|
|
29418
|
+
warn();
|
|
29419
|
+
const { data } = await UserForm.saveTemplates({
|
|
29420
|
+
client: client2,
|
|
29421
|
+
query: { newVersion },
|
|
29422
|
+
body: requestBody,
|
|
29423
|
+
throwOnError: true
|
|
29424
|
+
});
|
|
29425
|
+
return data;
|
|
29426
|
+
},
|
|
29427
|
+
/**
|
|
29428
|
+
* @deprecated
|
|
29429
|
+
*/
|
|
29430
|
+
deleteTemplateByName: async (name) => {
|
|
29431
|
+
warn();
|
|
29432
|
+
await UserForm.deleteTemplateByName({
|
|
29433
|
+
client: client2,
|
|
29434
|
+
path: { name },
|
|
29435
|
+
throwOnError: true
|
|
29436
|
+
});
|
|
29437
|
+
},
|
|
29438
|
+
/**
|
|
29439
|
+
* @deprecated
|
|
29440
|
+
*/
|
|
29441
|
+
deleteTemplatesByNameAndVersion: async (name, version) => {
|
|
29442
|
+
warn();
|
|
29443
|
+
await HumanTask.deleteTemplatesByNameAndVersion({
|
|
29444
|
+
client: client2,
|
|
29445
|
+
path: { name, version },
|
|
29446
|
+
throwOnError: true
|
|
29447
|
+
});
|
|
29448
|
+
},
|
|
29449
|
+
/**
|
|
29450
|
+
* @deprecated
|
|
29451
|
+
*/
|
|
29452
|
+
getTemplateByNameAndVersion: async (name, version) => {
|
|
29453
|
+
warn();
|
|
29454
|
+
const { data } = await UserForm.getTemplateByNameAndVersion({
|
|
29455
|
+
client: client2,
|
|
29456
|
+
path: { name, version },
|
|
29457
|
+
throwOnError: true
|
|
29458
|
+
});
|
|
29459
|
+
return data;
|
|
29460
|
+
}
|
|
29461
|
+
};
|
|
29462
|
+
const taskResource = {
|
|
29463
|
+
poll: async (tasktype, workerid, domain) => {
|
|
29464
|
+
warn();
|
|
29465
|
+
const { data } = await TaskResource.poll({
|
|
29466
|
+
client: client2,
|
|
29467
|
+
path: { tasktype },
|
|
29468
|
+
query: { workerid, domain },
|
|
29469
|
+
throwOnError: true
|
|
29470
|
+
});
|
|
29471
|
+
return data;
|
|
29472
|
+
},
|
|
29473
|
+
/**
|
|
29474
|
+
* @deprecated
|
|
29475
|
+
*/
|
|
29476
|
+
allVerbose: async () => {
|
|
29477
|
+
warn();
|
|
29478
|
+
const { data } = await TaskResource.allVerbose({
|
|
29479
|
+
client: client2,
|
|
29480
|
+
throwOnError: true
|
|
29481
|
+
});
|
|
29482
|
+
return data;
|
|
29483
|
+
},
|
|
29484
|
+
/**
|
|
29485
|
+
* @deprecated
|
|
29486
|
+
*/
|
|
29487
|
+
updateTask: async (workflowId, taskRefName, status, requestBody) => {
|
|
29488
|
+
warn();
|
|
29489
|
+
const { data } = await TaskResource.updateTask1({
|
|
29490
|
+
client: client2,
|
|
29491
|
+
path: { workflowId, taskRefName, status },
|
|
29492
|
+
body: requestBody,
|
|
29493
|
+
throwOnError: true
|
|
29494
|
+
});
|
|
29495
|
+
return data;
|
|
29496
|
+
},
|
|
29497
|
+
/**
|
|
29498
|
+
* @deprecated
|
|
29499
|
+
*/
|
|
29500
|
+
getTask: async (taskId) => {
|
|
29501
|
+
warn();
|
|
29502
|
+
const { data } = await TaskResource.getTask({
|
|
29503
|
+
client: client2,
|
|
29504
|
+
path: { taskId },
|
|
29505
|
+
throwOnError: true
|
|
29506
|
+
});
|
|
29507
|
+
return data;
|
|
29508
|
+
},
|
|
29509
|
+
/**
|
|
29510
|
+
* @deprecated
|
|
29511
|
+
*/
|
|
29512
|
+
all: async () => {
|
|
29513
|
+
warn();
|
|
29514
|
+
const { data } = await TaskResource.all({
|
|
29515
|
+
client: client2,
|
|
29516
|
+
throwOnError: true
|
|
29517
|
+
});
|
|
29518
|
+
return data;
|
|
29519
|
+
},
|
|
29520
|
+
/**
|
|
29521
|
+
* @deprecated
|
|
29522
|
+
*/
|
|
29523
|
+
requeuePendingTask: async (taskType) => {
|
|
29524
|
+
warn();
|
|
29525
|
+
const { data } = await TaskResource.requeuePendingTask({
|
|
29526
|
+
client: client2,
|
|
29527
|
+
path: { taskType },
|
|
29528
|
+
throwOnError: true
|
|
29529
|
+
});
|
|
29530
|
+
return data;
|
|
29531
|
+
},
|
|
29532
|
+
/**
|
|
29533
|
+
* @deprecated
|
|
29534
|
+
*/
|
|
29535
|
+
search: async (start, size = 100, sort, freeText = "*", query) => {
|
|
29536
|
+
warn();
|
|
29537
|
+
const { data } = await TaskResource.search2({
|
|
29538
|
+
client: client2,
|
|
29539
|
+
query: { start, size, sort, freeText, query },
|
|
29540
|
+
throwOnError: true
|
|
29541
|
+
});
|
|
29542
|
+
return data;
|
|
29543
|
+
},
|
|
29544
|
+
/**
|
|
29545
|
+
* @deprecated
|
|
29546
|
+
*/
|
|
29547
|
+
searchV22: async (start, size = 100, sort, freeText = "*", query) => {
|
|
29548
|
+
warn();
|
|
29549
|
+
const { data } = await client2.get({
|
|
29550
|
+
security: [
|
|
29551
|
+
{
|
|
29552
|
+
name: "X-Authorization",
|
|
29553
|
+
type: "apiKey"
|
|
29554
|
+
}
|
|
29555
|
+
],
|
|
29556
|
+
url: "/api/tasks/search-v2",
|
|
29557
|
+
query: { start, size, sort, freeText, query },
|
|
29558
|
+
throwOnError: true
|
|
29559
|
+
});
|
|
29560
|
+
return data;
|
|
29561
|
+
},
|
|
29562
|
+
/**
|
|
29563
|
+
* @deprecated
|
|
29564
|
+
*/
|
|
29565
|
+
getPollData: async (taskType) => {
|
|
29566
|
+
warn();
|
|
29567
|
+
const { data } = await TaskResource.getPollData({
|
|
29568
|
+
client: client2,
|
|
29569
|
+
query: { taskType },
|
|
29570
|
+
throwOnError: true
|
|
29571
|
+
});
|
|
29572
|
+
return data;
|
|
29573
|
+
},
|
|
29574
|
+
/**
|
|
29575
|
+
* @deprecated
|
|
29576
|
+
*/
|
|
29577
|
+
getTaskLogs: async (taskId) => {
|
|
29578
|
+
warn();
|
|
29579
|
+
const { data } = await TaskResource.getTaskLogs({
|
|
29580
|
+
client: client2,
|
|
29581
|
+
path: { taskId },
|
|
29582
|
+
throwOnError: true
|
|
29583
|
+
});
|
|
29584
|
+
return data;
|
|
29585
|
+
},
|
|
29586
|
+
/**
|
|
29587
|
+
* @deprecated
|
|
29588
|
+
*/
|
|
29589
|
+
log: async (taskId, requestBody) => {
|
|
29590
|
+
warn();
|
|
29591
|
+
await TaskResource.log({
|
|
29592
|
+
client: client2,
|
|
29593
|
+
path: { taskId },
|
|
29594
|
+
body: requestBody,
|
|
29595
|
+
throwOnError: true
|
|
29596
|
+
});
|
|
29597
|
+
},
|
|
29598
|
+
/**
|
|
29599
|
+
* @deprecated
|
|
29600
|
+
*/
|
|
29601
|
+
getAllPollData: async () => {
|
|
29602
|
+
warn();
|
|
29603
|
+
const { data } = await TaskResource.getAllPollData({
|
|
29604
|
+
client: client2,
|
|
29605
|
+
throwOnError: true
|
|
29606
|
+
});
|
|
29607
|
+
return data;
|
|
29608
|
+
},
|
|
29609
|
+
/**
|
|
29610
|
+
* @deprecated
|
|
29611
|
+
*/
|
|
29612
|
+
batchPoll: async (tasktype, workerid, domain, count = 1, timeout = 100) => {
|
|
29613
|
+
warn();
|
|
29614
|
+
const { data } = await TaskResource.batchPoll({
|
|
29615
|
+
client: client2,
|
|
29616
|
+
path: { tasktype },
|
|
29617
|
+
query: { workerid, domain, count, timeout },
|
|
29618
|
+
throwOnError: true
|
|
29619
|
+
});
|
|
29620
|
+
return data;
|
|
29621
|
+
},
|
|
29622
|
+
/**
|
|
29623
|
+
* @deprecated
|
|
29624
|
+
*/
|
|
29625
|
+
updateTask1: async (requestBody) => {
|
|
29626
|
+
warn();
|
|
29627
|
+
const { data } = await TaskResource.updateTask({
|
|
29628
|
+
client: client2,
|
|
29629
|
+
body: requestBody,
|
|
29630
|
+
throwOnError: true
|
|
29631
|
+
});
|
|
29632
|
+
return data;
|
|
29633
|
+
},
|
|
29634
|
+
/**
|
|
29635
|
+
* @deprecated
|
|
29636
|
+
*/
|
|
29637
|
+
size1: async (taskType) => {
|
|
29638
|
+
warn();
|
|
29639
|
+
const { data } = await TaskResource.size({
|
|
29640
|
+
client: client2,
|
|
29641
|
+
query: { taskType },
|
|
29642
|
+
throwOnError: true
|
|
29643
|
+
});
|
|
29644
|
+
return data;
|
|
29645
|
+
},
|
|
29646
|
+
/**
|
|
29647
|
+
* @deprecated
|
|
29648
|
+
*/
|
|
29649
|
+
getExternalStorageLocation1: async (path, operation, payloadType) => {
|
|
29650
|
+
warn();
|
|
29651
|
+
const { data } = await client2.get({
|
|
29652
|
+
security: [
|
|
29653
|
+
{
|
|
29654
|
+
name: "X-Authorization",
|
|
29655
|
+
type: "apiKey"
|
|
29656
|
+
}
|
|
29657
|
+
],
|
|
29658
|
+
url: "/api/tasks/externalstoragelocation",
|
|
29659
|
+
query: { path, operation, payloadType },
|
|
29660
|
+
throwOnError: true
|
|
29661
|
+
});
|
|
29662
|
+
return data;
|
|
29663
|
+
},
|
|
29664
|
+
/**
|
|
29665
|
+
* @deprecated
|
|
29666
|
+
*/
|
|
29667
|
+
updateTaskSync: async (workflowId, taskRefName, status, output, workerId2) => {
|
|
29668
|
+
warn();
|
|
29669
|
+
const { data } = await TaskResource.updateTaskSync({
|
|
29670
|
+
client: client2,
|
|
29671
|
+
path: { workflowId, taskRefName, status },
|
|
29672
|
+
query: { workerid: workerId2 },
|
|
29673
|
+
body: output,
|
|
29674
|
+
throwOnError: true
|
|
29675
|
+
});
|
|
29676
|
+
return data;
|
|
29677
|
+
},
|
|
29678
|
+
/**
|
|
29679
|
+
* @deprecated
|
|
29680
|
+
*/
|
|
29681
|
+
signal: async (workflowId, status, output, returnStrategy = "TARGET_WORKFLOW") => {
|
|
29682
|
+
warn();
|
|
29683
|
+
const { data } = await TaskResource.signalWorkflowTaskSync({
|
|
29684
|
+
client: client2,
|
|
29685
|
+
path: { workflowId, status },
|
|
29686
|
+
query: { returnStrategy },
|
|
29687
|
+
body: output,
|
|
29688
|
+
throwOnError: true
|
|
29689
|
+
});
|
|
29690
|
+
return data;
|
|
29691
|
+
},
|
|
29692
|
+
/**
|
|
29693
|
+
* @deprecated
|
|
29694
|
+
*/
|
|
29695
|
+
signalAsync: async (workflowId, status, output) => {
|
|
29696
|
+
warn();
|
|
29697
|
+
const { data } = await TaskResource.signalWorkflowTaskASync({
|
|
29698
|
+
client: client2,
|
|
29699
|
+
path: { workflowId, status },
|
|
29700
|
+
body: output,
|
|
29701
|
+
throwOnError: true
|
|
29702
|
+
});
|
|
29703
|
+
return data;
|
|
29704
|
+
}
|
|
29705
|
+
};
|
|
29706
|
+
return {
|
|
29707
|
+
...client2,
|
|
29708
|
+
eventResource,
|
|
29709
|
+
healthCheckResource,
|
|
29710
|
+
metadataResource,
|
|
29711
|
+
schedulerResource,
|
|
29712
|
+
tokenResource,
|
|
29713
|
+
workflowBulkResource,
|
|
29714
|
+
workflowResource,
|
|
29715
|
+
serviceRegistryResource,
|
|
29716
|
+
humanTaskResource,
|
|
29717
|
+
humanTask,
|
|
29718
|
+
taskResource
|
|
29719
|
+
};
|
|
29720
|
+
};
|
|
29721
|
+
|
|
27549
29722
|
// src/orkes/OrkesConductorClient.ts
|
|
27550
29723
|
var orkesConductorClient = async (config, customFetch) => {
|
|
27551
29724
|
const {
|
|
@@ -27566,7 +29739,7 @@ var orkesConductorClient = async (config, customFetch) => {
|
|
|
27566
29739
|
if (keyId && keySecret) {
|
|
27567
29740
|
await handleAuth(openApiClient, keyId, keySecret, refreshTokenInterval);
|
|
27568
29741
|
}
|
|
27569
|
-
return openApiClient;
|
|
29742
|
+
return addResourcesBackwardCompatibility(openApiClient);
|
|
27570
29743
|
};
|
|
27571
29744
|
export {
|
|
27572
29745
|
ApiError,
|