@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.js
CHANGED
|
@@ -23555,6 +23555,278 @@ var client = createClient(createConfig({
|
|
|
23555
23555
|
}));
|
|
23556
23556
|
|
|
23557
23557
|
// src/common/open-api/sdk.gen.ts
|
|
23558
|
+
var EventResource = class {
|
|
23559
|
+
/**
|
|
23560
|
+
* Get all the event handlers
|
|
23561
|
+
*/
|
|
23562
|
+
static getEventHandlers(options) {
|
|
23563
|
+
return (options?.client ?? client).get({
|
|
23564
|
+
security: [
|
|
23565
|
+
{
|
|
23566
|
+
name: "X-Authorization",
|
|
23567
|
+
type: "apiKey"
|
|
23568
|
+
}
|
|
23569
|
+
],
|
|
23570
|
+
url: "/api/event",
|
|
23571
|
+
...options
|
|
23572
|
+
});
|
|
23573
|
+
}
|
|
23574
|
+
/**
|
|
23575
|
+
* Add a new event handler.
|
|
23576
|
+
*/
|
|
23577
|
+
static addEventHandler(options) {
|
|
23578
|
+
return (options.client ?? client).post({
|
|
23579
|
+
security: [
|
|
23580
|
+
{
|
|
23581
|
+
name: "X-Authorization",
|
|
23582
|
+
type: "apiKey"
|
|
23583
|
+
}
|
|
23584
|
+
],
|
|
23585
|
+
url: "/api/event",
|
|
23586
|
+
...options,
|
|
23587
|
+
headers: {
|
|
23588
|
+
"Content-Type": "application/json",
|
|
23589
|
+
...options.headers
|
|
23590
|
+
}
|
|
23591
|
+
});
|
|
23592
|
+
}
|
|
23593
|
+
/**
|
|
23594
|
+
* Update an existing event handler.
|
|
23595
|
+
*/
|
|
23596
|
+
static updateEventHandler(options) {
|
|
23597
|
+
return (options.client ?? client).put({
|
|
23598
|
+
security: [
|
|
23599
|
+
{
|
|
23600
|
+
name: "X-Authorization",
|
|
23601
|
+
type: "apiKey"
|
|
23602
|
+
}
|
|
23603
|
+
],
|
|
23604
|
+
url: "/api/event",
|
|
23605
|
+
...options,
|
|
23606
|
+
headers: {
|
|
23607
|
+
"Content-Type": "application/json",
|
|
23608
|
+
...options.headers
|
|
23609
|
+
}
|
|
23610
|
+
});
|
|
23611
|
+
}
|
|
23612
|
+
/**
|
|
23613
|
+
* Handle an incoming event
|
|
23614
|
+
*/
|
|
23615
|
+
static handleIncomingEvent(options) {
|
|
23616
|
+
return (options.client ?? client).post({
|
|
23617
|
+
security: [
|
|
23618
|
+
{
|
|
23619
|
+
name: "X-Authorization",
|
|
23620
|
+
type: "apiKey"
|
|
23621
|
+
}
|
|
23622
|
+
],
|
|
23623
|
+
url: "/api/event/handleIncomingEvent",
|
|
23624
|
+
...options,
|
|
23625
|
+
headers: {
|
|
23626
|
+
"Content-Type": "application/json",
|
|
23627
|
+
...options.headers
|
|
23628
|
+
}
|
|
23629
|
+
});
|
|
23630
|
+
}
|
|
23631
|
+
/**
|
|
23632
|
+
* Get event handler by name
|
|
23633
|
+
*/
|
|
23634
|
+
static test(options) {
|
|
23635
|
+
return (options?.client ?? client).get({
|
|
23636
|
+
security: [
|
|
23637
|
+
{
|
|
23638
|
+
name: "X-Authorization",
|
|
23639
|
+
type: "apiKey"
|
|
23640
|
+
}
|
|
23641
|
+
],
|
|
23642
|
+
url: "/api/event/handler/",
|
|
23643
|
+
...options
|
|
23644
|
+
});
|
|
23645
|
+
}
|
|
23646
|
+
/**
|
|
23647
|
+
* Get event handler by name
|
|
23648
|
+
*/
|
|
23649
|
+
static getEventHandlerByName(options) {
|
|
23650
|
+
return (options.client ?? client).get({
|
|
23651
|
+
security: [
|
|
23652
|
+
{
|
|
23653
|
+
name: "X-Authorization",
|
|
23654
|
+
type: "apiKey"
|
|
23655
|
+
}
|
|
23656
|
+
],
|
|
23657
|
+
url: "/api/event/handler/{name}",
|
|
23658
|
+
...options
|
|
23659
|
+
});
|
|
23660
|
+
}
|
|
23661
|
+
/**
|
|
23662
|
+
* Get all queue configs
|
|
23663
|
+
*/
|
|
23664
|
+
static getQueueNames(options) {
|
|
23665
|
+
return (options?.client ?? client).get({
|
|
23666
|
+
security: [
|
|
23667
|
+
{
|
|
23668
|
+
name: "X-Authorization",
|
|
23669
|
+
type: "apiKey"
|
|
23670
|
+
}
|
|
23671
|
+
],
|
|
23672
|
+
url: "/api/event/queue/config",
|
|
23673
|
+
...options
|
|
23674
|
+
});
|
|
23675
|
+
}
|
|
23676
|
+
/**
|
|
23677
|
+
* Delete queue config by name
|
|
23678
|
+
*/
|
|
23679
|
+
static deleteQueueConfig(options) {
|
|
23680
|
+
return (options.client ?? client).delete({
|
|
23681
|
+
security: [
|
|
23682
|
+
{
|
|
23683
|
+
name: "X-Authorization",
|
|
23684
|
+
type: "apiKey"
|
|
23685
|
+
}
|
|
23686
|
+
],
|
|
23687
|
+
url: "/api/event/queue/config/{queueType}/{queueName}",
|
|
23688
|
+
...options
|
|
23689
|
+
});
|
|
23690
|
+
}
|
|
23691
|
+
/**
|
|
23692
|
+
* Get queue config by name
|
|
23693
|
+
*/
|
|
23694
|
+
static getQueueConfig(options) {
|
|
23695
|
+
return (options.client ?? client).get({
|
|
23696
|
+
security: [
|
|
23697
|
+
{
|
|
23698
|
+
name: "X-Authorization",
|
|
23699
|
+
type: "apiKey"
|
|
23700
|
+
}
|
|
23701
|
+
],
|
|
23702
|
+
url: "/api/event/queue/config/{queueType}/{queueName}",
|
|
23703
|
+
...options
|
|
23704
|
+
});
|
|
23705
|
+
}
|
|
23706
|
+
/**
|
|
23707
|
+
* Create or update queue config by name
|
|
23708
|
+
*
|
|
23709
|
+
* @deprecated
|
|
23710
|
+
*/
|
|
23711
|
+
static putQueueConfig(options) {
|
|
23712
|
+
return (options.client ?? client).put({
|
|
23713
|
+
security: [
|
|
23714
|
+
{
|
|
23715
|
+
name: "X-Authorization",
|
|
23716
|
+
type: "apiKey"
|
|
23717
|
+
}
|
|
23718
|
+
],
|
|
23719
|
+
url: "/api/event/queue/config/{queueType}/{queueName}",
|
|
23720
|
+
...options,
|
|
23721
|
+
headers: {
|
|
23722
|
+
"Content-Type": "application/json",
|
|
23723
|
+
...options.headers
|
|
23724
|
+
}
|
|
23725
|
+
});
|
|
23726
|
+
}
|
|
23727
|
+
/**
|
|
23728
|
+
* Test connectivity for a given queue using a workflow with EVENT task and an EventHandler
|
|
23729
|
+
*/
|
|
23730
|
+
static testConnectivity(options) {
|
|
23731
|
+
return (options.client ?? client).post({
|
|
23732
|
+
security: [
|
|
23733
|
+
{
|
|
23734
|
+
name: "X-Authorization",
|
|
23735
|
+
type: "apiKey"
|
|
23736
|
+
}
|
|
23737
|
+
],
|
|
23738
|
+
url: "/api/event/queue/connectivity",
|
|
23739
|
+
...options,
|
|
23740
|
+
headers: {
|
|
23741
|
+
"Content-Type": "application/json",
|
|
23742
|
+
...options.headers
|
|
23743
|
+
}
|
|
23744
|
+
});
|
|
23745
|
+
}
|
|
23746
|
+
/**
|
|
23747
|
+
* Get event handlers for a given event
|
|
23748
|
+
*/
|
|
23749
|
+
static getEventHandlersForEvent(options) {
|
|
23750
|
+
return (options.client ?? client).get({
|
|
23751
|
+
security: [
|
|
23752
|
+
{
|
|
23753
|
+
name: "X-Authorization",
|
|
23754
|
+
type: "apiKey"
|
|
23755
|
+
}
|
|
23756
|
+
],
|
|
23757
|
+
url: "/api/event/{event}",
|
|
23758
|
+
...options
|
|
23759
|
+
});
|
|
23760
|
+
}
|
|
23761
|
+
/**
|
|
23762
|
+
* Remove an event handler
|
|
23763
|
+
*/
|
|
23764
|
+
static removeEventHandlerStatus(options) {
|
|
23765
|
+
return (options.client ?? client).delete({
|
|
23766
|
+
security: [
|
|
23767
|
+
{
|
|
23768
|
+
name: "X-Authorization",
|
|
23769
|
+
type: "apiKey"
|
|
23770
|
+
}
|
|
23771
|
+
],
|
|
23772
|
+
url: "/api/event/{name}",
|
|
23773
|
+
...options
|
|
23774
|
+
});
|
|
23775
|
+
}
|
|
23776
|
+
/**
|
|
23777
|
+
* Delete a tag for event handler
|
|
23778
|
+
*/
|
|
23779
|
+
static deleteTagForEventHandler(options) {
|
|
23780
|
+
return (options.client ?? client).delete({
|
|
23781
|
+
security: [
|
|
23782
|
+
{
|
|
23783
|
+
name: "X-Authorization",
|
|
23784
|
+
type: "apiKey"
|
|
23785
|
+
}
|
|
23786
|
+
],
|
|
23787
|
+
url: "/api/event/{name}/tags",
|
|
23788
|
+
...options,
|
|
23789
|
+
headers: {
|
|
23790
|
+
"Content-Type": "application/json",
|
|
23791
|
+
...options.headers
|
|
23792
|
+
}
|
|
23793
|
+
});
|
|
23794
|
+
}
|
|
23795
|
+
/**
|
|
23796
|
+
* Get tags by event handler
|
|
23797
|
+
*/
|
|
23798
|
+
static getTagsForEventHandler(options) {
|
|
23799
|
+
return (options.client ?? client).get({
|
|
23800
|
+
security: [
|
|
23801
|
+
{
|
|
23802
|
+
name: "X-Authorization",
|
|
23803
|
+
type: "apiKey"
|
|
23804
|
+
}
|
|
23805
|
+
],
|
|
23806
|
+
url: "/api/event/{name}/tags",
|
|
23807
|
+
...options
|
|
23808
|
+
});
|
|
23809
|
+
}
|
|
23810
|
+
/**
|
|
23811
|
+
* Put a tag to event handler
|
|
23812
|
+
*/
|
|
23813
|
+
static putTagForEventHandler(options) {
|
|
23814
|
+
return (options.client ?? client).put({
|
|
23815
|
+
security: [
|
|
23816
|
+
{
|
|
23817
|
+
name: "X-Authorization",
|
|
23818
|
+
type: "apiKey"
|
|
23819
|
+
}
|
|
23820
|
+
],
|
|
23821
|
+
url: "/api/event/{name}/tags",
|
|
23822
|
+
...options,
|
|
23823
|
+
headers: {
|
|
23824
|
+
"Content-Type": "application/json",
|
|
23825
|
+
...options.headers
|
|
23826
|
+
}
|
|
23827
|
+
});
|
|
23828
|
+
}
|
|
23829
|
+
};
|
|
23558
23830
|
var HumanTask = class {
|
|
23559
23831
|
/**
|
|
23560
23832
|
* API for backpopulating index data
|
|
@@ -23885,53 +24157,51 @@ var HumanTask = class {
|
|
|
23885
24157
|
});
|
|
23886
24158
|
}
|
|
23887
24159
|
};
|
|
23888
|
-
var
|
|
24160
|
+
var HumanTaskResource = class {
|
|
23889
24161
|
/**
|
|
23890
|
-
*
|
|
24162
|
+
* Get Conductor task by id (for human tasks only)
|
|
23891
24163
|
*/
|
|
23892
|
-
static
|
|
23893
|
-
return (options
|
|
24164
|
+
static getConductorTaskById(options) {
|
|
24165
|
+
return (options.client ?? client).get({
|
|
23894
24166
|
security: [
|
|
23895
24167
|
{
|
|
23896
24168
|
name: "X-Authorization",
|
|
23897
24169
|
type: "apiKey"
|
|
23898
24170
|
}
|
|
23899
24171
|
],
|
|
23900
|
-
url: "/api/
|
|
24172
|
+
url: "/api/human/tasks/{taskId}/conductorTask",
|
|
23901
24173
|
...options
|
|
23902
24174
|
});
|
|
23903
24175
|
}
|
|
24176
|
+
};
|
|
24177
|
+
var UserForm = class {
|
|
23904
24178
|
/**
|
|
23905
|
-
*
|
|
24179
|
+
* List all user form templates or get templates by name, or a template by name and version
|
|
23906
24180
|
*/
|
|
23907
|
-
static
|
|
23908
|
-
return (options
|
|
24181
|
+
static getAllTemplates(options) {
|
|
24182
|
+
return (options?.client ?? client).get({
|
|
23909
24183
|
security: [
|
|
23910
24184
|
{
|
|
23911
24185
|
name: "X-Authorization",
|
|
23912
24186
|
type: "apiKey"
|
|
23913
24187
|
}
|
|
23914
24188
|
],
|
|
23915
|
-
url: "/api/
|
|
23916
|
-
...options
|
|
23917
|
-
headers: {
|
|
23918
|
-
"Content-Type": "application/json",
|
|
23919
|
-
...options.headers
|
|
23920
|
-
}
|
|
24189
|
+
url: "/api/human/template",
|
|
24190
|
+
...options
|
|
23921
24191
|
});
|
|
23922
24192
|
}
|
|
23923
24193
|
/**
|
|
23924
|
-
*
|
|
24194
|
+
* Save user form template
|
|
23925
24195
|
*/
|
|
23926
|
-
static
|
|
23927
|
-
return (options.client ?? client).
|
|
24196
|
+
static saveTemplate(options) {
|
|
24197
|
+
return (options.client ?? client).post({
|
|
23928
24198
|
security: [
|
|
23929
24199
|
{
|
|
23930
24200
|
name: "X-Authorization",
|
|
23931
24201
|
type: "apiKey"
|
|
23932
24202
|
}
|
|
23933
24203
|
],
|
|
23934
|
-
url: "/api/
|
|
24204
|
+
url: "/api/human/template",
|
|
23935
24205
|
...options,
|
|
23936
24206
|
headers: {
|
|
23937
24207
|
"Content-Type": "application/json",
|
|
@@ -23940,10 +24210,129 @@ var MetadataResource = class {
|
|
|
23940
24210
|
});
|
|
23941
24211
|
}
|
|
23942
24212
|
/**
|
|
23943
|
-
*
|
|
24213
|
+
* Save user form template
|
|
23944
24214
|
*/
|
|
23945
|
-
static
|
|
23946
|
-
return (options.client ?? client).
|
|
24215
|
+
static saveTemplates(options) {
|
|
24216
|
+
return (options.client ?? client).post({
|
|
24217
|
+
security: [
|
|
24218
|
+
{
|
|
24219
|
+
name: "X-Authorization",
|
|
24220
|
+
type: "apiKey"
|
|
24221
|
+
}
|
|
24222
|
+
],
|
|
24223
|
+
url: "/api/human/template/bulk",
|
|
24224
|
+
...options,
|
|
24225
|
+
headers: {
|
|
24226
|
+
"Content-Type": "application/json",
|
|
24227
|
+
...options.headers
|
|
24228
|
+
}
|
|
24229
|
+
});
|
|
24230
|
+
}
|
|
24231
|
+
/**
|
|
24232
|
+
* Get user form by human task id
|
|
24233
|
+
*/
|
|
24234
|
+
static getTemplateByTaskId(options) {
|
|
24235
|
+
return (options.client ?? client).get({
|
|
24236
|
+
security: [
|
|
24237
|
+
{
|
|
24238
|
+
name: "X-Authorization",
|
|
24239
|
+
type: "apiKey"
|
|
24240
|
+
}
|
|
24241
|
+
],
|
|
24242
|
+
url: "/api/human/template/{humanTaskId}",
|
|
24243
|
+
...options
|
|
24244
|
+
});
|
|
24245
|
+
}
|
|
24246
|
+
/**
|
|
24247
|
+
* Delete all versions of user form template by name
|
|
24248
|
+
*/
|
|
24249
|
+
static deleteTemplateByName(options) {
|
|
24250
|
+
return (options.client ?? client).delete({
|
|
24251
|
+
security: [
|
|
24252
|
+
{
|
|
24253
|
+
name: "X-Authorization",
|
|
24254
|
+
type: "apiKey"
|
|
24255
|
+
}
|
|
24256
|
+
],
|
|
24257
|
+
url: "/api/human/template/{name}",
|
|
24258
|
+
...options
|
|
24259
|
+
});
|
|
24260
|
+
}
|
|
24261
|
+
/**
|
|
24262
|
+
* Get user form template by name and version
|
|
24263
|
+
*/
|
|
24264
|
+
static getTemplateByNameAndVersion(options) {
|
|
24265
|
+
return (options.client ?? client).get({
|
|
24266
|
+
security: [
|
|
24267
|
+
{
|
|
24268
|
+
name: "X-Authorization",
|
|
24269
|
+
type: "apiKey"
|
|
24270
|
+
}
|
|
24271
|
+
],
|
|
24272
|
+
url: "/api/human/template/{name}/{version}",
|
|
24273
|
+
...options
|
|
24274
|
+
});
|
|
24275
|
+
}
|
|
24276
|
+
};
|
|
24277
|
+
var MetadataResource = class {
|
|
24278
|
+
/**
|
|
24279
|
+
* Gets all task definition
|
|
24280
|
+
*/
|
|
24281
|
+
static getTaskDefs(options) {
|
|
24282
|
+
return (options?.client ?? client).get({
|
|
24283
|
+
security: [
|
|
24284
|
+
{
|
|
24285
|
+
name: "X-Authorization",
|
|
24286
|
+
type: "apiKey"
|
|
24287
|
+
}
|
|
24288
|
+
],
|
|
24289
|
+
url: "/api/metadata/taskdefs",
|
|
24290
|
+
...options
|
|
24291
|
+
});
|
|
24292
|
+
}
|
|
24293
|
+
/**
|
|
24294
|
+
* Create or update task definition(s)
|
|
24295
|
+
*/
|
|
24296
|
+
static registerTaskDef(options) {
|
|
24297
|
+
return (options.client ?? client).post({
|
|
24298
|
+
security: [
|
|
24299
|
+
{
|
|
24300
|
+
name: "X-Authorization",
|
|
24301
|
+
type: "apiKey"
|
|
24302
|
+
}
|
|
24303
|
+
],
|
|
24304
|
+
url: "/api/metadata/taskdefs",
|
|
24305
|
+
...options,
|
|
24306
|
+
headers: {
|
|
24307
|
+
"Content-Type": "application/json",
|
|
24308
|
+
...options.headers
|
|
24309
|
+
}
|
|
24310
|
+
});
|
|
24311
|
+
}
|
|
24312
|
+
/**
|
|
24313
|
+
* Update an existing task
|
|
24314
|
+
*/
|
|
24315
|
+
static updateTaskDef(options) {
|
|
24316
|
+
return (options.client ?? client).put({
|
|
24317
|
+
security: [
|
|
24318
|
+
{
|
|
24319
|
+
name: "X-Authorization",
|
|
24320
|
+
type: "apiKey"
|
|
24321
|
+
}
|
|
24322
|
+
],
|
|
24323
|
+
url: "/api/metadata/taskdefs",
|
|
24324
|
+
...options,
|
|
24325
|
+
headers: {
|
|
24326
|
+
"Content-Type": "application/json",
|
|
24327
|
+
...options.headers
|
|
24328
|
+
}
|
|
24329
|
+
});
|
|
24330
|
+
}
|
|
24331
|
+
/**
|
|
24332
|
+
* Remove a task definition
|
|
24333
|
+
*/
|
|
24334
|
+
static unregisterTaskDef(options) {
|
|
24335
|
+
return (options.client ?? client).delete({
|
|
23947
24336
|
security: [
|
|
23948
24337
|
{
|
|
23949
24338
|
name: "X-Authorization",
|
|
@@ -24087,11 +24476,8 @@ var MetadataResource = class {
|
|
|
24087
24476
|
});
|
|
24088
24477
|
}
|
|
24089
24478
|
};
|
|
24090
|
-
var
|
|
24091
|
-
|
|
24092
|
-
* Pause all scheduling in a single conductor server instance (for debugging only)
|
|
24093
|
-
*/
|
|
24094
|
-
static pauseAllSchedules(options) {
|
|
24479
|
+
var ServiceRegistryResource = class {
|
|
24480
|
+
static getRegisteredServices(options) {
|
|
24095
24481
|
return (options?.client ?? client).get({
|
|
24096
24482
|
security: [
|
|
24097
24483
|
{
|
|
@@ -24099,153 +24485,128 @@ var SchedulerResource = class {
|
|
|
24099
24485
|
type: "apiKey"
|
|
24100
24486
|
}
|
|
24101
24487
|
],
|
|
24102
|
-
url: "/api/
|
|
24488
|
+
url: "/api/registry/service",
|
|
24103
24489
|
...options
|
|
24104
24490
|
});
|
|
24105
24491
|
}
|
|
24106
|
-
|
|
24107
|
-
|
|
24108
|
-
*/
|
|
24109
|
-
static requeueAllExecutionRecords(options) {
|
|
24110
|
-
return (options?.client ?? client).get({
|
|
24492
|
+
static addOrUpdateService(options) {
|
|
24493
|
+
return (options.client ?? client).post({
|
|
24111
24494
|
security: [
|
|
24112
24495
|
{
|
|
24113
24496
|
name: "X-Authorization",
|
|
24114
24497
|
type: "apiKey"
|
|
24115
24498
|
}
|
|
24116
24499
|
],
|
|
24117
|
-
url: "/api/
|
|
24118
|
-
...options
|
|
24500
|
+
url: "/api/registry/service",
|
|
24501
|
+
...options,
|
|
24502
|
+
headers: {
|
|
24503
|
+
"Content-Type": "application/json",
|
|
24504
|
+
...options.headers
|
|
24505
|
+
}
|
|
24119
24506
|
});
|
|
24120
24507
|
}
|
|
24121
|
-
|
|
24122
|
-
|
|
24123
|
-
*/
|
|
24124
|
-
static resumeAllSchedules(options) {
|
|
24125
|
-
return (options?.client ?? client).get({
|
|
24508
|
+
static getAllProtos(options) {
|
|
24509
|
+
return (options.client ?? client).get({
|
|
24126
24510
|
security: [
|
|
24127
24511
|
{
|
|
24128
24512
|
name: "X-Authorization",
|
|
24129
24513
|
type: "apiKey"
|
|
24130
24514
|
}
|
|
24131
24515
|
],
|
|
24132
|
-
url: "/api/
|
|
24516
|
+
url: "/api/registry/service/protos/{registryName}",
|
|
24133
24517
|
...options
|
|
24134
24518
|
});
|
|
24135
24519
|
}
|
|
24136
|
-
|
|
24137
|
-
|
|
24138
|
-
*/
|
|
24139
|
-
static getNextFewSchedules(options) {
|
|
24140
|
-
return (options.client ?? client).get({
|
|
24520
|
+
static deleteProto(options) {
|
|
24521
|
+
return (options.client ?? client).delete({
|
|
24141
24522
|
security: [
|
|
24142
24523
|
{
|
|
24143
24524
|
name: "X-Authorization",
|
|
24144
24525
|
type: "apiKey"
|
|
24145
24526
|
}
|
|
24146
24527
|
],
|
|
24147
|
-
url: "/api/
|
|
24528
|
+
url: "/api/registry/service/protos/{registryName}/{filename}",
|
|
24148
24529
|
...options
|
|
24149
24530
|
});
|
|
24150
24531
|
}
|
|
24151
|
-
|
|
24152
|
-
|
|
24153
|
-
*/
|
|
24154
|
-
static getAllSchedules(options) {
|
|
24155
|
-
return (options?.client ?? client).get({
|
|
24532
|
+
static getProtoData(options) {
|
|
24533
|
+
return (options.client ?? client).get({
|
|
24156
24534
|
security: [
|
|
24157
24535
|
{
|
|
24158
24536
|
name: "X-Authorization",
|
|
24159
24537
|
type: "apiKey"
|
|
24160
24538
|
}
|
|
24161
24539
|
],
|
|
24162
|
-
url: "/api/
|
|
24540
|
+
url: "/api/registry/service/protos/{registryName}/{filename}",
|
|
24163
24541
|
...options
|
|
24164
24542
|
});
|
|
24165
24543
|
}
|
|
24166
|
-
|
|
24167
|
-
* Create or update a schedule for a specified workflow with a corresponding start workflow request
|
|
24168
|
-
*/
|
|
24169
|
-
static saveSchedule(options) {
|
|
24544
|
+
static setProtoData(options) {
|
|
24170
24545
|
return (options.client ?? client).post({
|
|
24546
|
+
bodySerializer: null,
|
|
24171
24547
|
security: [
|
|
24172
24548
|
{
|
|
24173
24549
|
name: "X-Authorization",
|
|
24174
24550
|
type: "apiKey"
|
|
24175
24551
|
}
|
|
24176
24552
|
],
|
|
24177
|
-
url: "/api/
|
|
24553
|
+
url: "/api/registry/service/protos/{registryName}/{filename}",
|
|
24178
24554
|
...options,
|
|
24179
24555
|
headers: {
|
|
24180
|
-
"Content-Type": "application/
|
|
24556
|
+
"Content-Type": "application/octet-stream",
|
|
24181
24557
|
...options.headers
|
|
24182
24558
|
}
|
|
24183
24559
|
});
|
|
24184
24560
|
}
|
|
24185
|
-
|
|
24186
|
-
|
|
24187
|
-
*/
|
|
24188
|
-
static getSchedulesByTag(options) {
|
|
24189
|
-
return (options.client ?? client).get({
|
|
24561
|
+
static removeService(options) {
|
|
24562
|
+
return (options.client ?? client).delete({
|
|
24190
24563
|
security: [
|
|
24191
24564
|
{
|
|
24192
24565
|
name: "X-Authorization",
|
|
24193
24566
|
type: "apiKey"
|
|
24194
24567
|
}
|
|
24195
24568
|
],
|
|
24196
|
-
url: "/api/
|
|
24569
|
+
url: "/api/registry/service/{name}",
|
|
24197
24570
|
...options
|
|
24198
24571
|
});
|
|
24199
24572
|
}
|
|
24200
|
-
|
|
24201
|
-
|
|
24202
|
-
*/
|
|
24203
|
-
static deleteSchedule(options) {
|
|
24204
|
-
return (options.client ?? client).delete({
|
|
24573
|
+
static getService(options) {
|
|
24574
|
+
return (options.client ?? client).get({
|
|
24205
24575
|
security: [
|
|
24206
24576
|
{
|
|
24207
24577
|
name: "X-Authorization",
|
|
24208
24578
|
type: "apiKey"
|
|
24209
24579
|
}
|
|
24210
24580
|
],
|
|
24211
|
-
url: "/api/
|
|
24581
|
+
url: "/api/registry/service/{name}",
|
|
24212
24582
|
...options
|
|
24213
24583
|
});
|
|
24214
24584
|
}
|
|
24215
|
-
|
|
24216
|
-
|
|
24217
|
-
*/
|
|
24218
|
-
static getSchedule(options) {
|
|
24219
|
-
return (options.client ?? client).get({
|
|
24585
|
+
static closeCircuitBreaker(options) {
|
|
24586
|
+
return (options.client ?? client).post({
|
|
24220
24587
|
security: [
|
|
24221
24588
|
{
|
|
24222
24589
|
name: "X-Authorization",
|
|
24223
24590
|
type: "apiKey"
|
|
24224
24591
|
}
|
|
24225
24592
|
],
|
|
24226
|
-
url: "/api/
|
|
24593
|
+
url: "/api/registry/service/{name}/circuit-breaker/close",
|
|
24227
24594
|
...options
|
|
24228
24595
|
});
|
|
24229
24596
|
}
|
|
24230
|
-
|
|
24231
|
-
|
|
24232
|
-
*/
|
|
24233
|
-
static pauseSchedule(options) {
|
|
24234
|
-
return (options.client ?? client).get({
|
|
24597
|
+
static openCircuitBreaker(options) {
|
|
24598
|
+
return (options.client ?? client).post({
|
|
24235
24599
|
security: [
|
|
24236
24600
|
{
|
|
24237
24601
|
name: "X-Authorization",
|
|
24238
24602
|
type: "apiKey"
|
|
24239
24603
|
}
|
|
24240
24604
|
],
|
|
24241
|
-
url: "/api/
|
|
24605
|
+
url: "/api/registry/service/{name}/circuit-breaker/open",
|
|
24242
24606
|
...options
|
|
24243
24607
|
});
|
|
24244
24608
|
}
|
|
24245
|
-
|
|
24246
|
-
* Resume a paused schedule by name
|
|
24247
|
-
*/
|
|
24248
|
-
static resumeSchedule(options) {
|
|
24609
|
+
static getCircuitBreakerStatus(options) {
|
|
24249
24610
|
return (options.client ?? client).get({
|
|
24250
24611
|
security: [
|
|
24251
24612
|
{
|
|
@@ -24253,56 +24614,43 @@ var SchedulerResource = class {
|
|
|
24253
24614
|
type: "apiKey"
|
|
24254
24615
|
}
|
|
24255
24616
|
],
|
|
24256
|
-
url: "/api/
|
|
24617
|
+
url: "/api/registry/service/{name}/circuit-breaker/status",
|
|
24257
24618
|
...options
|
|
24258
24619
|
});
|
|
24259
24620
|
}
|
|
24260
|
-
|
|
24261
|
-
|
|
24262
|
-
*/
|
|
24263
|
-
static deleteTagForSchedule(options) {
|
|
24264
|
-
return (options.client ?? client).delete({
|
|
24621
|
+
static discover(options) {
|
|
24622
|
+
return (options.client ?? client).get({
|
|
24265
24623
|
security: [
|
|
24266
24624
|
{
|
|
24267
24625
|
name: "X-Authorization",
|
|
24268
24626
|
type: "apiKey"
|
|
24269
24627
|
}
|
|
24270
24628
|
],
|
|
24271
|
-
url: "/api/
|
|
24272
|
-
...options
|
|
24273
|
-
headers: {
|
|
24274
|
-
"Content-Type": "application/json",
|
|
24275
|
-
...options.headers
|
|
24276
|
-
}
|
|
24629
|
+
url: "/api/registry/service/{name}/discover",
|
|
24630
|
+
...options
|
|
24277
24631
|
});
|
|
24278
24632
|
}
|
|
24279
|
-
|
|
24280
|
-
|
|
24281
|
-
*/
|
|
24282
|
-
static getTagsForSchedule(options) {
|
|
24283
|
-
return (options.client ?? client).get({
|
|
24633
|
+
static removeMethod(options) {
|
|
24634
|
+
return (options.client ?? client).delete({
|
|
24284
24635
|
security: [
|
|
24285
24636
|
{
|
|
24286
24637
|
name: "X-Authorization",
|
|
24287
24638
|
type: "apiKey"
|
|
24288
24639
|
}
|
|
24289
24640
|
],
|
|
24290
|
-
url: "/api/
|
|
24641
|
+
url: "/api/registry/service/{registryName}/methods",
|
|
24291
24642
|
...options
|
|
24292
24643
|
});
|
|
24293
24644
|
}
|
|
24294
|
-
|
|
24295
|
-
|
|
24296
|
-
*/
|
|
24297
|
-
static putTagForSchedule(options) {
|
|
24298
|
-
return (options.client ?? client).put({
|
|
24645
|
+
static addOrUpdateMethod(options) {
|
|
24646
|
+
return (options.client ?? client).post({
|
|
24299
24647
|
security: [
|
|
24300
24648
|
{
|
|
24301
24649
|
name: "X-Authorization",
|
|
24302
24650
|
type: "apiKey"
|
|
24303
24651
|
}
|
|
24304
24652
|
],
|
|
24305
|
-
url: "/api/
|
|
24653
|
+
url: "/api/registry/service/{registryName}/methods",
|
|
24306
24654
|
...options,
|
|
24307
24655
|
headers: {
|
|
24308
24656
|
"Content-Type": "application/json",
|
|
@@ -24310,12 +24658,12 @@ var SchedulerResource = class {
|
|
|
24310
24658
|
}
|
|
24311
24659
|
});
|
|
24312
24660
|
}
|
|
24661
|
+
};
|
|
24662
|
+
var SchedulerResource = class {
|
|
24313
24663
|
/**
|
|
24314
|
-
*
|
|
24315
|
-
*
|
|
24316
|
-
* use sort options as sort=<field>:ASC|DESC e.g. sort=name&sort=workflowId:DESC. If order is not specified, defaults to ASC.
|
|
24664
|
+
* Pause all scheduling in a single conductor server instance (for debugging only)
|
|
24317
24665
|
*/
|
|
24318
|
-
static
|
|
24666
|
+
static pauseAllSchedules(options) {
|
|
24319
24667
|
return (options?.client ?? client).get({
|
|
24320
24668
|
security: [
|
|
24321
24669
|
{
|
|
@@ -24323,35 +24671,259 @@ var SchedulerResource = class {
|
|
|
24323
24671
|
type: "apiKey"
|
|
24324
24672
|
}
|
|
24325
24673
|
],
|
|
24326
|
-
url: "/api/scheduler/
|
|
24674
|
+
url: "/api/scheduler/admin/pause",
|
|
24327
24675
|
...options
|
|
24328
24676
|
});
|
|
24329
24677
|
}
|
|
24330
|
-
};
|
|
24331
|
-
var TaskResource = class {
|
|
24332
24678
|
/**
|
|
24333
|
-
*
|
|
24679
|
+
* Requeue all execution records
|
|
24334
24680
|
*/
|
|
24335
|
-
static
|
|
24336
|
-
return (options
|
|
24681
|
+
static requeueAllExecutionRecords(options) {
|
|
24682
|
+
return (options?.client ?? client).get({
|
|
24337
24683
|
security: [
|
|
24338
24684
|
{
|
|
24339
24685
|
name: "X-Authorization",
|
|
24340
24686
|
type: "apiKey"
|
|
24341
24687
|
}
|
|
24342
24688
|
],
|
|
24343
|
-
url: "/api/
|
|
24344
|
-
...options
|
|
24345
|
-
headers: {
|
|
24346
|
-
"Content-Type": "application/json",
|
|
24347
|
-
...options.headers
|
|
24348
|
-
}
|
|
24689
|
+
url: "/api/scheduler/admin/requeue",
|
|
24690
|
+
...options
|
|
24349
24691
|
});
|
|
24350
24692
|
}
|
|
24351
24693
|
/**
|
|
24352
|
-
*
|
|
24694
|
+
* Resume all scheduling
|
|
24353
24695
|
*/
|
|
24354
|
-
static
|
|
24696
|
+
static resumeAllSchedules(options) {
|
|
24697
|
+
return (options?.client ?? client).get({
|
|
24698
|
+
security: [
|
|
24699
|
+
{
|
|
24700
|
+
name: "X-Authorization",
|
|
24701
|
+
type: "apiKey"
|
|
24702
|
+
}
|
|
24703
|
+
],
|
|
24704
|
+
url: "/api/scheduler/admin/resume",
|
|
24705
|
+
...options
|
|
24706
|
+
});
|
|
24707
|
+
}
|
|
24708
|
+
/**
|
|
24709
|
+
* Get list of the next x (default 3, max 5) execution times for a scheduler
|
|
24710
|
+
*/
|
|
24711
|
+
static getNextFewSchedules(options) {
|
|
24712
|
+
return (options.client ?? client).get({
|
|
24713
|
+
security: [
|
|
24714
|
+
{
|
|
24715
|
+
name: "X-Authorization",
|
|
24716
|
+
type: "apiKey"
|
|
24717
|
+
}
|
|
24718
|
+
],
|
|
24719
|
+
url: "/api/scheduler/nextFewSchedules",
|
|
24720
|
+
...options
|
|
24721
|
+
});
|
|
24722
|
+
}
|
|
24723
|
+
/**
|
|
24724
|
+
* Get all existing workflow schedules and optionally filter by workflow name
|
|
24725
|
+
*/
|
|
24726
|
+
static getAllSchedules(options) {
|
|
24727
|
+
return (options?.client ?? client).get({
|
|
24728
|
+
security: [
|
|
24729
|
+
{
|
|
24730
|
+
name: "X-Authorization",
|
|
24731
|
+
type: "apiKey"
|
|
24732
|
+
}
|
|
24733
|
+
],
|
|
24734
|
+
url: "/api/scheduler/schedules",
|
|
24735
|
+
...options
|
|
24736
|
+
});
|
|
24737
|
+
}
|
|
24738
|
+
/**
|
|
24739
|
+
* Create or update a schedule for a specified workflow with a corresponding start workflow request
|
|
24740
|
+
*/
|
|
24741
|
+
static saveSchedule(options) {
|
|
24742
|
+
return (options.client ?? client).post({
|
|
24743
|
+
security: [
|
|
24744
|
+
{
|
|
24745
|
+
name: "X-Authorization",
|
|
24746
|
+
type: "apiKey"
|
|
24747
|
+
}
|
|
24748
|
+
],
|
|
24749
|
+
url: "/api/scheduler/schedules",
|
|
24750
|
+
...options,
|
|
24751
|
+
headers: {
|
|
24752
|
+
"Content-Type": "application/json",
|
|
24753
|
+
...options.headers
|
|
24754
|
+
}
|
|
24755
|
+
});
|
|
24756
|
+
}
|
|
24757
|
+
/**
|
|
24758
|
+
* Get schedules by tag
|
|
24759
|
+
*/
|
|
24760
|
+
static getSchedulesByTag(options) {
|
|
24761
|
+
return (options.client ?? client).get({
|
|
24762
|
+
security: [
|
|
24763
|
+
{
|
|
24764
|
+
name: "X-Authorization",
|
|
24765
|
+
type: "apiKey"
|
|
24766
|
+
}
|
|
24767
|
+
],
|
|
24768
|
+
url: "/api/scheduler/schedules/tags",
|
|
24769
|
+
...options
|
|
24770
|
+
});
|
|
24771
|
+
}
|
|
24772
|
+
/**
|
|
24773
|
+
* Deletes an existing workflow schedule by name
|
|
24774
|
+
*/
|
|
24775
|
+
static deleteSchedule(options) {
|
|
24776
|
+
return (options.client ?? client).delete({
|
|
24777
|
+
security: [
|
|
24778
|
+
{
|
|
24779
|
+
name: "X-Authorization",
|
|
24780
|
+
type: "apiKey"
|
|
24781
|
+
}
|
|
24782
|
+
],
|
|
24783
|
+
url: "/api/scheduler/schedules/{name}",
|
|
24784
|
+
...options
|
|
24785
|
+
});
|
|
24786
|
+
}
|
|
24787
|
+
/**
|
|
24788
|
+
* Get an existing workflow schedule by name
|
|
24789
|
+
*/
|
|
24790
|
+
static getSchedule(options) {
|
|
24791
|
+
return (options.client ?? client).get({
|
|
24792
|
+
security: [
|
|
24793
|
+
{
|
|
24794
|
+
name: "X-Authorization",
|
|
24795
|
+
type: "apiKey"
|
|
24796
|
+
}
|
|
24797
|
+
],
|
|
24798
|
+
url: "/api/scheduler/schedules/{name}",
|
|
24799
|
+
...options
|
|
24800
|
+
});
|
|
24801
|
+
}
|
|
24802
|
+
/**
|
|
24803
|
+
* Pauses an existing schedule by name
|
|
24804
|
+
*/
|
|
24805
|
+
static pauseSchedule(options) {
|
|
24806
|
+
return (options.client ?? client).get({
|
|
24807
|
+
security: [
|
|
24808
|
+
{
|
|
24809
|
+
name: "X-Authorization",
|
|
24810
|
+
type: "apiKey"
|
|
24811
|
+
}
|
|
24812
|
+
],
|
|
24813
|
+
url: "/api/scheduler/schedules/{name}/pause",
|
|
24814
|
+
...options
|
|
24815
|
+
});
|
|
24816
|
+
}
|
|
24817
|
+
/**
|
|
24818
|
+
* Resume a paused schedule by name
|
|
24819
|
+
*/
|
|
24820
|
+
static resumeSchedule(options) {
|
|
24821
|
+
return (options.client ?? client).get({
|
|
24822
|
+
security: [
|
|
24823
|
+
{
|
|
24824
|
+
name: "X-Authorization",
|
|
24825
|
+
type: "apiKey"
|
|
24826
|
+
}
|
|
24827
|
+
],
|
|
24828
|
+
url: "/api/scheduler/schedules/{name}/resume",
|
|
24829
|
+
...options
|
|
24830
|
+
});
|
|
24831
|
+
}
|
|
24832
|
+
/**
|
|
24833
|
+
* Delete a tag for schedule
|
|
24834
|
+
*/
|
|
24835
|
+
static deleteTagForSchedule(options) {
|
|
24836
|
+
return (options.client ?? client).delete({
|
|
24837
|
+
security: [
|
|
24838
|
+
{
|
|
24839
|
+
name: "X-Authorization",
|
|
24840
|
+
type: "apiKey"
|
|
24841
|
+
}
|
|
24842
|
+
],
|
|
24843
|
+
url: "/api/scheduler/schedules/{name}/tags",
|
|
24844
|
+
...options,
|
|
24845
|
+
headers: {
|
|
24846
|
+
"Content-Type": "application/json",
|
|
24847
|
+
...options.headers
|
|
24848
|
+
}
|
|
24849
|
+
});
|
|
24850
|
+
}
|
|
24851
|
+
/**
|
|
24852
|
+
* Get tags by schedule
|
|
24853
|
+
*/
|
|
24854
|
+
static getTagsForSchedule(options) {
|
|
24855
|
+
return (options.client ?? client).get({
|
|
24856
|
+
security: [
|
|
24857
|
+
{
|
|
24858
|
+
name: "X-Authorization",
|
|
24859
|
+
type: "apiKey"
|
|
24860
|
+
}
|
|
24861
|
+
],
|
|
24862
|
+
url: "/api/scheduler/schedules/{name}/tags",
|
|
24863
|
+
...options
|
|
24864
|
+
});
|
|
24865
|
+
}
|
|
24866
|
+
/**
|
|
24867
|
+
* Put a tag to schedule
|
|
24868
|
+
*/
|
|
24869
|
+
static putTagForSchedule(options) {
|
|
24870
|
+
return (options.client ?? client).put({
|
|
24871
|
+
security: [
|
|
24872
|
+
{
|
|
24873
|
+
name: "X-Authorization",
|
|
24874
|
+
type: "apiKey"
|
|
24875
|
+
}
|
|
24876
|
+
],
|
|
24877
|
+
url: "/api/scheduler/schedules/{name}/tags",
|
|
24878
|
+
...options,
|
|
24879
|
+
headers: {
|
|
24880
|
+
"Content-Type": "application/json",
|
|
24881
|
+
...options.headers
|
|
24882
|
+
}
|
|
24883
|
+
});
|
|
24884
|
+
}
|
|
24885
|
+
/**
|
|
24886
|
+
* Search for workflow executions based on payload and other parameters
|
|
24887
|
+
*
|
|
24888
|
+
* use sort options as sort=<field>:ASC|DESC e.g. sort=name&sort=workflowId:DESC. If order is not specified, defaults to ASC.
|
|
24889
|
+
*/
|
|
24890
|
+
static searchV2(options) {
|
|
24891
|
+
return (options?.client ?? client).get({
|
|
24892
|
+
security: [
|
|
24893
|
+
{
|
|
24894
|
+
name: "X-Authorization",
|
|
24895
|
+
type: "apiKey"
|
|
24896
|
+
}
|
|
24897
|
+
],
|
|
24898
|
+
url: "/api/scheduler/search/executions",
|
|
24899
|
+
...options
|
|
24900
|
+
});
|
|
24901
|
+
}
|
|
24902
|
+
};
|
|
24903
|
+
var TaskResource = class {
|
|
24904
|
+
/**
|
|
24905
|
+
* Update a task
|
|
24906
|
+
*/
|
|
24907
|
+
static updateTask(options) {
|
|
24908
|
+
return (options.client ?? client).post({
|
|
24909
|
+
security: [
|
|
24910
|
+
{
|
|
24911
|
+
name: "X-Authorization",
|
|
24912
|
+
type: "apiKey"
|
|
24913
|
+
}
|
|
24914
|
+
],
|
|
24915
|
+
url: "/api/tasks",
|
|
24916
|
+
...options,
|
|
24917
|
+
headers: {
|
|
24918
|
+
"Content-Type": "application/json",
|
|
24919
|
+
...options.headers
|
|
24920
|
+
}
|
|
24921
|
+
});
|
|
24922
|
+
}
|
|
24923
|
+
/**
|
|
24924
|
+
* Batch poll for a task of a certain type
|
|
24925
|
+
*/
|
|
24926
|
+
static batchPoll(options) {
|
|
24355
24927
|
return (options.client ?? client).get({
|
|
24356
24928
|
security: [
|
|
24357
24929
|
{
|
|
@@ -25179,31 +25751,161 @@ var WorkflowResource = class {
|
|
|
25179
25751
|
});
|
|
25180
25752
|
}
|
|
25181
25753
|
};
|
|
25182
|
-
|
|
25183
|
-
|
|
25184
|
-
|
|
25185
|
-
|
|
25186
|
-
|
|
25187
|
-
|
|
25188
|
-
|
|
25189
|
-
|
|
25190
|
-
|
|
25191
|
-
|
|
25192
|
-
|
|
25193
|
-
|
|
25194
|
-
|
|
25195
|
-
|
|
25196
|
-
|
|
25197
|
-
|
|
25198
|
-
|
|
25199
|
-
|
|
25200
|
-
|
|
25201
|
-
|
|
25202
|
-
|
|
25203
|
-
|
|
25204
|
-
|
|
25205
|
-
|
|
25206
|
-
|
|
25754
|
+
var WorkflowBulkResource = class {
|
|
25755
|
+
/**
|
|
25756
|
+
* Permanently remove workflows from the system
|
|
25757
|
+
*/
|
|
25758
|
+
static delete(options) {
|
|
25759
|
+
return (options.client ?? client).post({
|
|
25760
|
+
security: [
|
|
25761
|
+
{
|
|
25762
|
+
name: "X-Authorization",
|
|
25763
|
+
type: "apiKey"
|
|
25764
|
+
}
|
|
25765
|
+
],
|
|
25766
|
+
url: "/api/workflow/bulk/delete",
|
|
25767
|
+
...options,
|
|
25768
|
+
headers: {
|
|
25769
|
+
"Content-Type": "application/json",
|
|
25770
|
+
...options.headers
|
|
25771
|
+
}
|
|
25772
|
+
});
|
|
25773
|
+
}
|
|
25774
|
+
/**
|
|
25775
|
+
* Pause the list of workflows
|
|
25776
|
+
*/
|
|
25777
|
+
static pauseWorkflow1(options) {
|
|
25778
|
+
return (options.client ?? client).put({
|
|
25779
|
+
security: [
|
|
25780
|
+
{
|
|
25781
|
+
name: "X-Authorization",
|
|
25782
|
+
type: "apiKey"
|
|
25783
|
+
}
|
|
25784
|
+
],
|
|
25785
|
+
url: "/api/workflow/bulk/pause",
|
|
25786
|
+
...options,
|
|
25787
|
+
headers: {
|
|
25788
|
+
"Content-Type": "application/json",
|
|
25789
|
+
...options.headers
|
|
25790
|
+
}
|
|
25791
|
+
});
|
|
25792
|
+
}
|
|
25793
|
+
/**
|
|
25794
|
+
* Restart the list of completed workflow
|
|
25795
|
+
*/
|
|
25796
|
+
static restart1(options) {
|
|
25797
|
+
return (options.client ?? client).post({
|
|
25798
|
+
security: [
|
|
25799
|
+
{
|
|
25800
|
+
name: "X-Authorization",
|
|
25801
|
+
type: "apiKey"
|
|
25802
|
+
}
|
|
25803
|
+
],
|
|
25804
|
+
url: "/api/workflow/bulk/restart",
|
|
25805
|
+
...options,
|
|
25806
|
+
headers: {
|
|
25807
|
+
"Content-Type": "application/json",
|
|
25808
|
+
...options.headers
|
|
25809
|
+
}
|
|
25810
|
+
});
|
|
25811
|
+
}
|
|
25812
|
+
/**
|
|
25813
|
+
* Resume the list of workflows
|
|
25814
|
+
*/
|
|
25815
|
+
static resumeWorkflow1(options) {
|
|
25816
|
+
return (options.client ?? client).put({
|
|
25817
|
+
security: [
|
|
25818
|
+
{
|
|
25819
|
+
name: "X-Authorization",
|
|
25820
|
+
type: "apiKey"
|
|
25821
|
+
}
|
|
25822
|
+
],
|
|
25823
|
+
url: "/api/workflow/bulk/resume",
|
|
25824
|
+
...options,
|
|
25825
|
+
headers: {
|
|
25826
|
+
"Content-Type": "application/json",
|
|
25827
|
+
...options.headers
|
|
25828
|
+
}
|
|
25829
|
+
});
|
|
25830
|
+
}
|
|
25831
|
+
/**
|
|
25832
|
+
* Retry the last failed task for each workflow from the list
|
|
25833
|
+
*/
|
|
25834
|
+
static retry1(options) {
|
|
25835
|
+
return (options.client ?? client).post({
|
|
25836
|
+
security: [
|
|
25837
|
+
{
|
|
25838
|
+
name: "X-Authorization",
|
|
25839
|
+
type: "apiKey"
|
|
25840
|
+
}
|
|
25841
|
+
],
|
|
25842
|
+
url: "/api/workflow/bulk/retry",
|
|
25843
|
+
...options,
|
|
25844
|
+
headers: {
|
|
25845
|
+
"Content-Type": "application/json",
|
|
25846
|
+
...options.headers
|
|
25847
|
+
}
|
|
25848
|
+
});
|
|
25849
|
+
}
|
|
25850
|
+
/**
|
|
25851
|
+
* Terminate workflows execution
|
|
25852
|
+
*/
|
|
25853
|
+
static terminate(options) {
|
|
25854
|
+
return (options.client ?? client).post({
|
|
25855
|
+
security: [
|
|
25856
|
+
{
|
|
25857
|
+
name: "X-Authorization",
|
|
25858
|
+
type: "apiKey"
|
|
25859
|
+
}
|
|
25860
|
+
],
|
|
25861
|
+
url: "/api/workflow/bulk/terminate",
|
|
25862
|
+
...options,
|
|
25863
|
+
headers: {
|
|
25864
|
+
"Content-Type": "application/json",
|
|
25865
|
+
...options.headers
|
|
25866
|
+
}
|
|
25867
|
+
});
|
|
25868
|
+
}
|
|
25869
|
+
};
|
|
25870
|
+
var HealthCheckResource = class {
|
|
25871
|
+
static doCheck(options) {
|
|
25872
|
+
return (options?.client ?? client).get({
|
|
25873
|
+
security: [
|
|
25874
|
+
{
|
|
25875
|
+
name: "X-Authorization",
|
|
25876
|
+
type: "apiKey"
|
|
25877
|
+
}
|
|
25878
|
+
],
|
|
25879
|
+
url: "/health",
|
|
25880
|
+
...options
|
|
25881
|
+
});
|
|
25882
|
+
}
|
|
25883
|
+
};
|
|
25884
|
+
|
|
25885
|
+
// src/task/constants.ts
|
|
25886
|
+
var DEFAULT_POLL_INTERVAL = 100;
|
|
25887
|
+
var DEFAULT_CONCURRENCY = 1;
|
|
25888
|
+
var DEFAULT_WARN_AT_O = 100;
|
|
25889
|
+
var DEFAULT_BATCH_POLLING_TIMEOUT = 100;
|
|
25890
|
+
|
|
25891
|
+
// src/task/Poller.ts
|
|
25892
|
+
var Poller = class {
|
|
25893
|
+
timeoutHandler;
|
|
25894
|
+
pollFunction;
|
|
25895
|
+
performWorkFunction;
|
|
25896
|
+
polling = false;
|
|
25897
|
+
_tasksInProcess = 0;
|
|
25898
|
+
_counterAtO = 0;
|
|
25899
|
+
_pollerId = "";
|
|
25900
|
+
options = {
|
|
25901
|
+
pollInterval: DEFAULT_POLL_INTERVAL,
|
|
25902
|
+
concurrency: DEFAULT_CONCURRENCY,
|
|
25903
|
+
warnAtO: DEFAULT_WARN_AT_O
|
|
25904
|
+
};
|
|
25905
|
+
logger = noopLogger;
|
|
25906
|
+
constructor(pollerId, pollFunction, performWorkFunction, pollerOptions, logger) {
|
|
25907
|
+
this._pollerId = pollerId;
|
|
25908
|
+
this.pollFunction = pollFunction;
|
|
25207
25909
|
this.performWorkFunction = performWorkFunction;
|
|
25208
25910
|
this.options = { ...this.options, ...pollerOptions };
|
|
25209
25911
|
this.logger = logger || noopLogger;
|
|
@@ -27614,6 +28316,1477 @@ var wrapFetchWithRetry = (fetchFn) => {
|
|
|
27614
28316
|
};
|
|
27615
28317
|
};
|
|
27616
28318
|
|
|
28319
|
+
// src/orkes/helpers/addResourcesBackwardCompatibility.ts
|
|
28320
|
+
var warn = () => {
|
|
28321
|
+
console.warn(
|
|
28322
|
+
"[Conductor SDK Deprecation Warning] Accessing resources directly on the client is deprecated and will be removed after April 2026"
|
|
28323
|
+
);
|
|
28324
|
+
};
|
|
28325
|
+
var addResourcesBackwardCompatibility = (client2) => {
|
|
28326
|
+
const eventResource = {
|
|
28327
|
+
/**
|
|
28328
|
+
* @deprecated
|
|
28329
|
+
*/
|
|
28330
|
+
getQueueConfig: async (queueType, queueName) => {
|
|
28331
|
+
warn();
|
|
28332
|
+
const { data } = await EventResource.getQueueConfig({
|
|
28333
|
+
client: client2,
|
|
28334
|
+
path: { queueType, queueName },
|
|
28335
|
+
throwOnError: true
|
|
28336
|
+
});
|
|
28337
|
+
return data;
|
|
28338
|
+
},
|
|
28339
|
+
/**
|
|
28340
|
+
* @deprecated
|
|
28341
|
+
*/
|
|
28342
|
+
putQueueConfig: async (queueType, queueName, body) => {
|
|
28343
|
+
warn();
|
|
28344
|
+
await EventResource.putQueueConfig({
|
|
28345
|
+
client: client2,
|
|
28346
|
+
path: { queueType, queueName },
|
|
28347
|
+
body,
|
|
28348
|
+
throwOnError: true
|
|
28349
|
+
});
|
|
28350
|
+
},
|
|
28351
|
+
/**
|
|
28352
|
+
* @deprecated
|
|
28353
|
+
*/
|
|
28354
|
+
deleteQueueConfig: async (queueType, queueName) => {
|
|
28355
|
+
warn();
|
|
28356
|
+
await EventResource.deleteQueueConfig({
|
|
28357
|
+
client: client2,
|
|
28358
|
+
path: { queueType, queueName },
|
|
28359
|
+
throwOnError: true
|
|
28360
|
+
});
|
|
28361
|
+
},
|
|
28362
|
+
/**
|
|
28363
|
+
* @deprecated
|
|
28364
|
+
*/
|
|
28365
|
+
getEventHandlers: async () => {
|
|
28366
|
+
warn();
|
|
28367
|
+
const { data } = await EventResource.getEventHandlers({
|
|
28368
|
+
client: client2,
|
|
28369
|
+
throwOnError: true
|
|
28370
|
+
});
|
|
28371
|
+
return data;
|
|
28372
|
+
},
|
|
28373
|
+
/**
|
|
28374
|
+
* @deprecated
|
|
28375
|
+
*/
|
|
28376
|
+
updateEventHandler: async (body) => {
|
|
28377
|
+
warn();
|
|
28378
|
+
await EventResource.updateEventHandler({
|
|
28379
|
+
client: client2,
|
|
28380
|
+
body,
|
|
28381
|
+
throwOnError: true
|
|
28382
|
+
});
|
|
28383
|
+
},
|
|
28384
|
+
/**
|
|
28385
|
+
* @deprecated
|
|
28386
|
+
*/
|
|
28387
|
+
addEventHandler: async (body) => {
|
|
28388
|
+
warn();
|
|
28389
|
+
await EventResource.addEventHandler({
|
|
28390
|
+
client: client2,
|
|
28391
|
+
body,
|
|
28392
|
+
throwOnError: true
|
|
28393
|
+
});
|
|
28394
|
+
},
|
|
28395
|
+
/**
|
|
28396
|
+
* @deprecated
|
|
28397
|
+
*/
|
|
28398
|
+
getQueueNames: async () => {
|
|
28399
|
+
warn();
|
|
28400
|
+
const { data } = await EventResource.getQueueNames({
|
|
28401
|
+
client: client2,
|
|
28402
|
+
throwOnError: true
|
|
28403
|
+
});
|
|
28404
|
+
return data;
|
|
28405
|
+
},
|
|
28406
|
+
/**
|
|
28407
|
+
* @deprecated
|
|
28408
|
+
*/
|
|
28409
|
+
removeEventHandlerStatus: async (name) => {
|
|
28410
|
+
warn();
|
|
28411
|
+
await EventResource.removeEventHandlerStatus({
|
|
28412
|
+
client: client2,
|
|
28413
|
+
path: { name },
|
|
28414
|
+
throwOnError: true
|
|
28415
|
+
});
|
|
28416
|
+
},
|
|
28417
|
+
/**
|
|
28418
|
+
* @deprecated
|
|
28419
|
+
*/
|
|
28420
|
+
getEventHandlersForEvent: async (event, activeOnly = true) => {
|
|
28421
|
+
warn();
|
|
28422
|
+
const { data } = await EventResource.getEventHandlersForEvent({
|
|
28423
|
+
client: client2,
|
|
28424
|
+
path: { event },
|
|
28425
|
+
query: { activeOnly },
|
|
28426
|
+
throwOnError: true
|
|
28427
|
+
});
|
|
28428
|
+
return data;
|
|
28429
|
+
},
|
|
28430
|
+
/**
|
|
28431
|
+
* @deprecated
|
|
28432
|
+
*/
|
|
28433
|
+
deleteTagForEventHandler: async (name, body) => {
|
|
28434
|
+
warn();
|
|
28435
|
+
await EventResource.deleteTagForEventHandler({
|
|
28436
|
+
client: client2,
|
|
28437
|
+
path: { name },
|
|
28438
|
+
body,
|
|
28439
|
+
throwOnError: true
|
|
28440
|
+
});
|
|
28441
|
+
},
|
|
28442
|
+
/**
|
|
28443
|
+
* @deprecated
|
|
28444
|
+
*/
|
|
28445
|
+
getTagsForEventHandler: async (name) => {
|
|
28446
|
+
warn();
|
|
28447
|
+
const { data } = await EventResource.getTagsForEventHandler({
|
|
28448
|
+
client: client2,
|
|
28449
|
+
path: { name },
|
|
28450
|
+
throwOnError: true
|
|
28451
|
+
});
|
|
28452
|
+
return data;
|
|
28453
|
+
},
|
|
28454
|
+
/**
|
|
28455
|
+
* @deprecated
|
|
28456
|
+
*/
|
|
28457
|
+
putTagForEventHandler: async (name, body) => {
|
|
28458
|
+
warn();
|
|
28459
|
+
await EventResource.putTagForEventHandler({
|
|
28460
|
+
client: client2,
|
|
28461
|
+
path: { name },
|
|
28462
|
+
body,
|
|
28463
|
+
throwOnError: true
|
|
28464
|
+
});
|
|
28465
|
+
}
|
|
28466
|
+
};
|
|
28467
|
+
const healthCheckResource = {
|
|
28468
|
+
doCheck: async () => {
|
|
28469
|
+
warn();
|
|
28470
|
+
const { data } = await HealthCheckResource.doCheck({
|
|
28471
|
+
client: client2,
|
|
28472
|
+
throwOnError: true
|
|
28473
|
+
});
|
|
28474
|
+
return data;
|
|
28475
|
+
}
|
|
28476
|
+
};
|
|
28477
|
+
const metadataResource = {
|
|
28478
|
+
getTaskDef: async (tasktype, metadata = false) => {
|
|
28479
|
+
warn();
|
|
28480
|
+
const { data } = await MetadataResource.getTaskDef({
|
|
28481
|
+
client: client2,
|
|
28482
|
+
path: { tasktype },
|
|
28483
|
+
query: { metadata },
|
|
28484
|
+
throwOnError: true
|
|
28485
|
+
});
|
|
28486
|
+
return data;
|
|
28487
|
+
},
|
|
28488
|
+
/**
|
|
28489
|
+
* @deprecated
|
|
28490
|
+
*/
|
|
28491
|
+
unregisterTaskDef: async (tasktype) => {
|
|
28492
|
+
warn();
|
|
28493
|
+
await MetadataResource.unregisterTaskDef({
|
|
28494
|
+
client: client2,
|
|
28495
|
+
path: { tasktype },
|
|
28496
|
+
throwOnError: true
|
|
28497
|
+
});
|
|
28498
|
+
},
|
|
28499
|
+
/**
|
|
28500
|
+
* @deprecated
|
|
28501
|
+
*/
|
|
28502
|
+
getAllWorkflows: async (access = "READ", metadata = false, tagKey, tagValue) => {
|
|
28503
|
+
warn();
|
|
28504
|
+
const { data } = await MetadataResource.getWorkflowDefs({
|
|
28505
|
+
client: client2,
|
|
28506
|
+
query: { access, metadata, tagKey, tagValue },
|
|
28507
|
+
throwOnError: true
|
|
28508
|
+
});
|
|
28509
|
+
return data;
|
|
28510
|
+
},
|
|
28511
|
+
/**
|
|
28512
|
+
* @deprecated
|
|
28513
|
+
*/
|
|
28514
|
+
update: async (requestBody, overwrite = true) => {
|
|
28515
|
+
warn();
|
|
28516
|
+
await MetadataResource.update({
|
|
28517
|
+
client: client2,
|
|
28518
|
+
body: requestBody,
|
|
28519
|
+
query: { overwrite },
|
|
28520
|
+
throwOnError: true
|
|
28521
|
+
});
|
|
28522
|
+
},
|
|
28523
|
+
/**
|
|
28524
|
+
* @deprecated
|
|
28525
|
+
*/
|
|
28526
|
+
create: async (requestBody, overwrite = false) => {
|
|
28527
|
+
warn();
|
|
28528
|
+
await MetadataResource.create({
|
|
28529
|
+
client: client2,
|
|
28530
|
+
body: requestBody,
|
|
28531
|
+
query: { overwrite },
|
|
28532
|
+
throwOnError: true
|
|
28533
|
+
});
|
|
28534
|
+
},
|
|
28535
|
+
/**
|
|
28536
|
+
* @deprecated
|
|
28537
|
+
*/
|
|
28538
|
+
getTaskDefs: async (access = "READ", metadata = false, tagKey, tagValue) => {
|
|
28539
|
+
warn();
|
|
28540
|
+
const { data } = await MetadataResource.getTaskDefs({
|
|
28541
|
+
client: client2,
|
|
28542
|
+
query: { access, metadata, tagKey, tagValue },
|
|
28543
|
+
throwOnError: true
|
|
28544
|
+
});
|
|
28545
|
+
return data;
|
|
28546
|
+
},
|
|
28547
|
+
/**
|
|
28548
|
+
* @deprecated
|
|
28549
|
+
*/
|
|
28550
|
+
updateTaskDef: async (requestBody) => {
|
|
28551
|
+
warn();
|
|
28552
|
+
await MetadataResource.updateTaskDef({
|
|
28553
|
+
client: client2,
|
|
28554
|
+
body: requestBody,
|
|
28555
|
+
throwOnError: true
|
|
28556
|
+
});
|
|
28557
|
+
},
|
|
28558
|
+
/**
|
|
28559
|
+
* @deprecated
|
|
28560
|
+
*/
|
|
28561
|
+
registerTaskDef: async (requestBody) => {
|
|
28562
|
+
warn();
|
|
28563
|
+
await MetadataResource.registerTaskDef({
|
|
28564
|
+
client: client2,
|
|
28565
|
+
body: requestBody,
|
|
28566
|
+
throwOnError: true
|
|
28567
|
+
});
|
|
28568
|
+
},
|
|
28569
|
+
/**
|
|
28570
|
+
* @deprecated
|
|
28571
|
+
*/
|
|
28572
|
+
unregisterWorkflowDef: async (name, version) => {
|
|
28573
|
+
warn();
|
|
28574
|
+
await MetadataResource.unregisterWorkflowDef({
|
|
28575
|
+
client: client2,
|
|
28576
|
+
path: { name, version },
|
|
28577
|
+
throwOnError: true
|
|
28578
|
+
});
|
|
28579
|
+
},
|
|
28580
|
+
/**
|
|
28581
|
+
* @deprecated
|
|
28582
|
+
*/
|
|
28583
|
+
get: async (name, version, metadata = false) => {
|
|
28584
|
+
warn();
|
|
28585
|
+
const { data } = await MetadataResource.get1({
|
|
28586
|
+
client: client2,
|
|
28587
|
+
path: { name },
|
|
28588
|
+
query: { version, metadata },
|
|
28589
|
+
throwOnError: true
|
|
28590
|
+
});
|
|
28591
|
+
return data;
|
|
28592
|
+
}
|
|
28593
|
+
};
|
|
28594
|
+
const schedulerResource = {
|
|
28595
|
+
getSchedule: async (name) => {
|
|
28596
|
+
warn();
|
|
28597
|
+
const { data } = await SchedulerResource.getSchedule({
|
|
28598
|
+
client: client2,
|
|
28599
|
+
path: { name },
|
|
28600
|
+
throwOnError: true
|
|
28601
|
+
});
|
|
28602
|
+
return data;
|
|
28603
|
+
},
|
|
28604
|
+
/**
|
|
28605
|
+
* @deprecated
|
|
28606
|
+
*/
|
|
28607
|
+
deleteSchedule: async (name) => {
|
|
28608
|
+
warn();
|
|
28609
|
+
await SchedulerResource.deleteSchedule({
|
|
28610
|
+
client: client2,
|
|
28611
|
+
path: { name },
|
|
28612
|
+
throwOnError: true
|
|
28613
|
+
});
|
|
28614
|
+
},
|
|
28615
|
+
/**
|
|
28616
|
+
* @deprecated
|
|
28617
|
+
*/
|
|
28618
|
+
getNextFewSchedules: async (cronExpression, scheduleStartTime, scheduleEndTime, limit = 3) => {
|
|
28619
|
+
warn();
|
|
28620
|
+
const { data } = await SchedulerResource.getNextFewSchedules({
|
|
28621
|
+
client: client2,
|
|
28622
|
+
query: { cronExpression, scheduleStartTime, scheduleEndTime, limit },
|
|
28623
|
+
throwOnError: true
|
|
28624
|
+
});
|
|
28625
|
+
return data;
|
|
28626
|
+
},
|
|
28627
|
+
/**
|
|
28628
|
+
* @deprecated
|
|
28629
|
+
*/
|
|
28630
|
+
pauseSchedule: async (name) => {
|
|
28631
|
+
warn();
|
|
28632
|
+
await SchedulerResource.pauseSchedule({
|
|
28633
|
+
client: client2,
|
|
28634
|
+
path: { name },
|
|
28635
|
+
throwOnError: true
|
|
28636
|
+
});
|
|
28637
|
+
},
|
|
28638
|
+
/**
|
|
28639
|
+
* @deprecated
|
|
28640
|
+
*/
|
|
28641
|
+
pauseAllSchedules: async () => {
|
|
28642
|
+
warn();
|
|
28643
|
+
const { data } = await SchedulerResource.pauseAllSchedules({
|
|
28644
|
+
client: client2,
|
|
28645
|
+
throwOnError: true
|
|
28646
|
+
});
|
|
28647
|
+
return data;
|
|
28648
|
+
},
|
|
28649
|
+
/**
|
|
28650
|
+
* @deprecated
|
|
28651
|
+
*/
|
|
28652
|
+
resumeSchedule: async (name) => {
|
|
28653
|
+
warn();
|
|
28654
|
+
await SchedulerResource.resumeSchedule({
|
|
28655
|
+
client: client2,
|
|
28656
|
+
path: { name },
|
|
28657
|
+
throwOnError: true
|
|
28658
|
+
});
|
|
28659
|
+
},
|
|
28660
|
+
/**
|
|
28661
|
+
* @deprecated
|
|
28662
|
+
*/
|
|
28663
|
+
requeueAllExecutionRecords: async () => {
|
|
28664
|
+
warn();
|
|
28665
|
+
const { data } = await SchedulerResource.requeueAllExecutionRecords({
|
|
28666
|
+
client: client2,
|
|
28667
|
+
throwOnError: true
|
|
28668
|
+
});
|
|
28669
|
+
return data;
|
|
28670
|
+
},
|
|
28671
|
+
/**
|
|
28672
|
+
* @deprecated
|
|
28673
|
+
*/
|
|
28674
|
+
resumeAllSchedules: async () => {
|
|
28675
|
+
warn();
|
|
28676
|
+
const { data } = await SchedulerResource.resumeAllSchedules({
|
|
28677
|
+
client: client2,
|
|
28678
|
+
throwOnError: true
|
|
28679
|
+
});
|
|
28680
|
+
return data;
|
|
28681
|
+
},
|
|
28682
|
+
/**
|
|
28683
|
+
* @deprecated
|
|
28684
|
+
*/
|
|
28685
|
+
getAllSchedules: async (workflowName) => {
|
|
28686
|
+
warn();
|
|
28687
|
+
const { data } = await SchedulerResource.getAllSchedules({
|
|
28688
|
+
client: client2,
|
|
28689
|
+
query: { workflowName },
|
|
28690
|
+
throwOnError: true
|
|
28691
|
+
});
|
|
28692
|
+
return data;
|
|
28693
|
+
},
|
|
28694
|
+
/**
|
|
28695
|
+
* @deprecated
|
|
28696
|
+
*/
|
|
28697
|
+
saveSchedule: async (requestBody) => {
|
|
28698
|
+
warn();
|
|
28699
|
+
await SchedulerResource.saveSchedule({
|
|
28700
|
+
client: client2,
|
|
28701
|
+
body: requestBody,
|
|
28702
|
+
throwOnError: true
|
|
28703
|
+
});
|
|
28704
|
+
},
|
|
28705
|
+
/**
|
|
28706
|
+
* @deprecated
|
|
28707
|
+
*/
|
|
28708
|
+
searchV21: async (start, size = 100, sort, freeText = "*", query) => {
|
|
28709
|
+
warn();
|
|
28710
|
+
const { data } = await SchedulerResource.searchV2({
|
|
28711
|
+
client: client2,
|
|
28712
|
+
query: { start, size, sort, freeText, query },
|
|
28713
|
+
throwOnError: true
|
|
28714
|
+
});
|
|
28715
|
+
return data;
|
|
28716
|
+
},
|
|
28717
|
+
/**
|
|
28718
|
+
* @deprecated
|
|
28719
|
+
*/
|
|
28720
|
+
testTimeout: async () => {
|
|
28721
|
+
warn();
|
|
28722
|
+
const { data } = await client2.get({
|
|
28723
|
+
security: [
|
|
28724
|
+
{
|
|
28725
|
+
name: "X-Authorization",
|
|
28726
|
+
type: "apiKey"
|
|
28727
|
+
}
|
|
28728
|
+
],
|
|
28729
|
+
url: "/api/scheduler/test/timeout",
|
|
28730
|
+
throwOnError: true
|
|
28731
|
+
});
|
|
28732
|
+
return data;
|
|
28733
|
+
}
|
|
28734
|
+
};
|
|
28735
|
+
const tokenResource = {
|
|
28736
|
+
generateToken: async (requestBody) => {
|
|
28737
|
+
warn();
|
|
28738
|
+
const { data } = await TokenResource.generateToken({
|
|
28739
|
+
client: client2,
|
|
28740
|
+
body: requestBody,
|
|
28741
|
+
throwOnError: true
|
|
28742
|
+
});
|
|
28743
|
+
return data;
|
|
28744
|
+
},
|
|
28745
|
+
getUserInfo: async (claims = false) => {
|
|
28746
|
+
warn();
|
|
28747
|
+
const { data } = await TokenResource.getUserInfo({
|
|
28748
|
+
client: client2,
|
|
28749
|
+
query: { claims },
|
|
28750
|
+
throwOnError: true
|
|
28751
|
+
});
|
|
28752
|
+
return data;
|
|
28753
|
+
}
|
|
28754
|
+
};
|
|
28755
|
+
const workflowBulkResource = {
|
|
28756
|
+
retry: async (requestBody) => {
|
|
28757
|
+
warn();
|
|
28758
|
+
const { data } = await WorkflowBulkResource.retry1({
|
|
28759
|
+
client: client2,
|
|
28760
|
+
body: requestBody,
|
|
28761
|
+
throwOnError: true
|
|
28762
|
+
});
|
|
28763
|
+
return data;
|
|
28764
|
+
},
|
|
28765
|
+
/**
|
|
28766
|
+
* @deprecated
|
|
28767
|
+
*/
|
|
28768
|
+
restart: async (requestBody, useLatestDefinitions = false) => {
|
|
28769
|
+
warn();
|
|
28770
|
+
const { data } = await WorkflowBulkResource.restart1({
|
|
28771
|
+
client: client2,
|
|
28772
|
+
body: requestBody,
|
|
28773
|
+
query: { useLatestDefinitions },
|
|
28774
|
+
throwOnError: true
|
|
28775
|
+
});
|
|
28776
|
+
return data;
|
|
28777
|
+
},
|
|
28778
|
+
/**
|
|
28779
|
+
* @deprecated
|
|
28780
|
+
*/
|
|
28781
|
+
terminate: async (requestBody, reason) => {
|
|
28782
|
+
warn();
|
|
28783
|
+
const { data } = await WorkflowBulkResource.terminate({
|
|
28784
|
+
client: client2,
|
|
28785
|
+
body: requestBody,
|
|
28786
|
+
query: { reason },
|
|
28787
|
+
throwOnError: true
|
|
28788
|
+
});
|
|
28789
|
+
return data;
|
|
28790
|
+
},
|
|
28791
|
+
/**
|
|
28792
|
+
* @deprecated
|
|
28793
|
+
*/
|
|
28794
|
+
resumeWorkflow: async (requestBody) => {
|
|
28795
|
+
warn();
|
|
28796
|
+
const { data } = await WorkflowBulkResource.resumeWorkflow1({
|
|
28797
|
+
client: client2,
|
|
28798
|
+
body: requestBody,
|
|
28799
|
+
throwOnError: true
|
|
28800
|
+
});
|
|
28801
|
+
return data;
|
|
28802
|
+
},
|
|
28803
|
+
/**
|
|
28804
|
+
* @deprecated
|
|
28805
|
+
*/
|
|
28806
|
+
pauseWorkflow1: async (requestBody) => {
|
|
28807
|
+
warn();
|
|
28808
|
+
const { data } = await WorkflowBulkResource.pauseWorkflow1({
|
|
28809
|
+
client: client2,
|
|
28810
|
+
body: requestBody,
|
|
28811
|
+
throwOnError: true
|
|
28812
|
+
});
|
|
28813
|
+
return data;
|
|
28814
|
+
}
|
|
28815
|
+
};
|
|
28816
|
+
const workflowResource = {
|
|
28817
|
+
getRunningWorkflow: async (name, version = 1, startTime, endTime) => {
|
|
28818
|
+
warn();
|
|
28819
|
+
const { data } = await WorkflowResource.getRunningWorkflow({
|
|
28820
|
+
client: client2,
|
|
28821
|
+
path: { name },
|
|
28822
|
+
query: { version, startTime, endTime },
|
|
28823
|
+
throwOnError: true
|
|
28824
|
+
});
|
|
28825
|
+
return data;
|
|
28826
|
+
},
|
|
28827
|
+
/**
|
|
28828
|
+
* @deprecated
|
|
28829
|
+
*/
|
|
28830
|
+
executeWorkflow: async (body, name, version, requestId, waitUntilTaskRef, waitForSeconds, consistency, returnStrategy) => {
|
|
28831
|
+
warn();
|
|
28832
|
+
const { data } = await WorkflowResource.executeWorkflow({
|
|
28833
|
+
client: client2,
|
|
28834
|
+
path: { name, version },
|
|
28835
|
+
query: {
|
|
28836
|
+
requestId,
|
|
28837
|
+
waitUntilTaskRef,
|
|
28838
|
+
waitForSeconds,
|
|
28839
|
+
consistency,
|
|
28840
|
+
returnStrategy
|
|
28841
|
+
},
|
|
28842
|
+
body,
|
|
28843
|
+
throwOnError: true
|
|
28844
|
+
});
|
|
28845
|
+
return data;
|
|
28846
|
+
},
|
|
28847
|
+
/**
|
|
28848
|
+
* @deprecated
|
|
28849
|
+
*/
|
|
28850
|
+
startWorkflow: async (requestBody) => {
|
|
28851
|
+
warn();
|
|
28852
|
+
const { data } = await WorkflowResource.startWorkflow({
|
|
28853
|
+
client: client2,
|
|
28854
|
+
body: requestBody,
|
|
28855
|
+
throwOnError: true
|
|
28856
|
+
});
|
|
28857
|
+
return data;
|
|
28858
|
+
},
|
|
28859
|
+
/**
|
|
28860
|
+
* @deprecated
|
|
28861
|
+
*/
|
|
28862
|
+
decide: async (workflowId) => {
|
|
28863
|
+
warn();
|
|
28864
|
+
await WorkflowResource.decide({
|
|
28865
|
+
client: client2,
|
|
28866
|
+
path: { workflowId },
|
|
28867
|
+
throwOnError: true
|
|
28868
|
+
});
|
|
28869
|
+
},
|
|
28870
|
+
/**
|
|
28871
|
+
* @deprecated
|
|
28872
|
+
*/
|
|
28873
|
+
rerun: async (workflowId, requestBody) => {
|
|
28874
|
+
warn();
|
|
28875
|
+
const { data } = await WorkflowResource.rerun({
|
|
28876
|
+
client: client2,
|
|
28877
|
+
path: { workflowId },
|
|
28878
|
+
body: requestBody,
|
|
28879
|
+
throwOnError: true
|
|
28880
|
+
});
|
|
28881
|
+
return data;
|
|
28882
|
+
},
|
|
28883
|
+
/**
|
|
28884
|
+
* @deprecated
|
|
28885
|
+
*/
|
|
28886
|
+
searchV21: async (start, size = 100, sort, freeText = "*", query) => {
|
|
28887
|
+
warn();
|
|
28888
|
+
const { data } = await client2.get({
|
|
28889
|
+
security: [
|
|
28890
|
+
{
|
|
28891
|
+
name: "X-Authorization",
|
|
28892
|
+
type: "apiKey"
|
|
28893
|
+
}
|
|
28894
|
+
],
|
|
28895
|
+
url: "/api/workflow/search-v2",
|
|
28896
|
+
query: { start, size, sort, freeText, query },
|
|
28897
|
+
throwOnError: true
|
|
28898
|
+
});
|
|
28899
|
+
return data;
|
|
28900
|
+
},
|
|
28901
|
+
/**
|
|
28902
|
+
* @deprecated
|
|
28903
|
+
*/
|
|
28904
|
+
pauseWorkflow: async (workflowId) => {
|
|
28905
|
+
warn();
|
|
28906
|
+
await WorkflowResource.pauseWorkflow({
|
|
28907
|
+
client: client2,
|
|
28908
|
+
path: { workflowId },
|
|
28909
|
+
throwOnError: true
|
|
28910
|
+
});
|
|
28911
|
+
},
|
|
28912
|
+
/**
|
|
28913
|
+
* @deprecated
|
|
28914
|
+
*/
|
|
28915
|
+
skipTaskFromWorkflow: async (workflowId, taskReferenceName, requestBody) => {
|
|
28916
|
+
warn();
|
|
28917
|
+
await WorkflowResource.skipTaskFromWorkflow({
|
|
28918
|
+
client: client2,
|
|
28919
|
+
path: { workflowId, taskReferenceName },
|
|
28920
|
+
body: requestBody,
|
|
28921
|
+
throwOnError: true
|
|
28922
|
+
});
|
|
28923
|
+
},
|
|
28924
|
+
/**
|
|
28925
|
+
* @deprecated
|
|
28926
|
+
*/
|
|
28927
|
+
getWorkflows: async (name, requestBody, includeClosed = false, includeTasks = false) => {
|
|
28928
|
+
warn();
|
|
28929
|
+
const { data } = await WorkflowResource.getWorkflows({
|
|
28930
|
+
client: client2,
|
|
28931
|
+
path: { name },
|
|
28932
|
+
query: { includeClosed, includeTasks },
|
|
28933
|
+
body: requestBody,
|
|
28934
|
+
throwOnError: true
|
|
28935
|
+
});
|
|
28936
|
+
return data;
|
|
28937
|
+
},
|
|
28938
|
+
/**
|
|
28939
|
+
* @deprecated
|
|
28940
|
+
*/
|
|
28941
|
+
getWorkflowStatusSummary: async (workflowId, includeOutput = false, includeVariables = false) => {
|
|
28942
|
+
warn();
|
|
28943
|
+
const { data } = await WorkflowResource.getWorkflowStatusSummary({
|
|
28944
|
+
client: client2,
|
|
28945
|
+
path: { workflowId },
|
|
28946
|
+
query: { includeOutput, includeVariables },
|
|
28947
|
+
throwOnError: true
|
|
28948
|
+
});
|
|
28949
|
+
return data;
|
|
28950
|
+
},
|
|
28951
|
+
/**
|
|
28952
|
+
* @deprecated
|
|
28953
|
+
*/
|
|
28954
|
+
getWorkflows1: async (name, correlationId, includeClosed = false, includeTasks = false) => {
|
|
28955
|
+
warn();
|
|
28956
|
+
const { data } = await WorkflowResource.getWorkflows2({
|
|
28957
|
+
client: client2,
|
|
28958
|
+
path: { name, correlationId },
|
|
28959
|
+
query: { includeClosed, includeTasks },
|
|
28960
|
+
throwOnError: true
|
|
28961
|
+
});
|
|
28962
|
+
return data;
|
|
28963
|
+
},
|
|
28964
|
+
/**
|
|
28965
|
+
* @deprecated
|
|
28966
|
+
*/
|
|
28967
|
+
retry1: async (workflowId, resumeSubworkflowTasks = false) => {
|
|
28968
|
+
warn();
|
|
28969
|
+
await WorkflowResource.retry({
|
|
28970
|
+
client: client2,
|
|
28971
|
+
path: { workflowId },
|
|
28972
|
+
query: { resumeSubworkflowTasks },
|
|
28973
|
+
throwOnError: true
|
|
28974
|
+
});
|
|
28975
|
+
},
|
|
28976
|
+
/**
|
|
28977
|
+
* @deprecated
|
|
28978
|
+
*/
|
|
28979
|
+
getExecutionStatus: async (workflowId, includeTasks = true) => {
|
|
28980
|
+
warn();
|
|
28981
|
+
const { data } = await WorkflowResource.getExecutionStatus({
|
|
28982
|
+
client: client2,
|
|
28983
|
+
path: { workflowId },
|
|
28984
|
+
query: { includeTasks },
|
|
28985
|
+
throwOnError: true
|
|
28986
|
+
});
|
|
28987
|
+
return data;
|
|
28988
|
+
},
|
|
28989
|
+
/**
|
|
28990
|
+
* @deprecated
|
|
28991
|
+
*/
|
|
28992
|
+
terminate1: async (workflowId, reason) => {
|
|
28993
|
+
warn();
|
|
28994
|
+
await WorkflowResource.terminate1({
|
|
28995
|
+
client: client2,
|
|
28996
|
+
path: { workflowId },
|
|
28997
|
+
query: { reason },
|
|
28998
|
+
throwOnError: true
|
|
28999
|
+
});
|
|
29000
|
+
},
|
|
29001
|
+
/**
|
|
29002
|
+
* @deprecated
|
|
29003
|
+
*/
|
|
29004
|
+
resumeWorkflow: async (workflowId) => {
|
|
29005
|
+
warn();
|
|
29006
|
+
await WorkflowResource.resumeWorkflow({
|
|
29007
|
+
client: client2,
|
|
29008
|
+
path: { workflowId },
|
|
29009
|
+
throwOnError: true
|
|
29010
|
+
});
|
|
29011
|
+
},
|
|
29012
|
+
/**
|
|
29013
|
+
* @deprecated
|
|
29014
|
+
*/
|
|
29015
|
+
delete: async (workflowId, archiveWorkflow = true) => {
|
|
29016
|
+
warn();
|
|
29017
|
+
await WorkflowResource.delete1({
|
|
29018
|
+
client: client2,
|
|
29019
|
+
path: { workflowId },
|
|
29020
|
+
query: { archiveWorkflow },
|
|
29021
|
+
throwOnError: true
|
|
29022
|
+
});
|
|
29023
|
+
},
|
|
29024
|
+
/**
|
|
29025
|
+
* @deprecated
|
|
29026
|
+
*/
|
|
29027
|
+
searchWorkflowsByTasks: async (start, size = 100, sort, freeText = "*", query) => {
|
|
29028
|
+
warn();
|
|
29029
|
+
const { data } = await client2.get({
|
|
29030
|
+
security: [
|
|
29031
|
+
{
|
|
29032
|
+
name: "X-Authorization",
|
|
29033
|
+
type: "apiKey"
|
|
29034
|
+
}
|
|
29035
|
+
],
|
|
29036
|
+
url: "/api/workflow/search-by-tasks",
|
|
29037
|
+
query: { start, size, sort, freeText, query },
|
|
29038
|
+
throwOnError: true
|
|
29039
|
+
});
|
|
29040
|
+
return data;
|
|
29041
|
+
},
|
|
29042
|
+
/**
|
|
29043
|
+
* @deprecated
|
|
29044
|
+
*/
|
|
29045
|
+
getExternalStorageLocation: async (path, operation, payloadType) => {
|
|
29046
|
+
warn();
|
|
29047
|
+
const { data } = await client2.get({
|
|
29048
|
+
security: [
|
|
29049
|
+
{
|
|
29050
|
+
name: "X-Authorization",
|
|
29051
|
+
type: "apiKey"
|
|
29052
|
+
}
|
|
29053
|
+
],
|
|
29054
|
+
url: "/api/workflow/externalstoragelocation",
|
|
29055
|
+
query: { path, operation, payloadType },
|
|
29056
|
+
throwOnError: true
|
|
29057
|
+
});
|
|
29058
|
+
return data;
|
|
29059
|
+
},
|
|
29060
|
+
/**
|
|
29061
|
+
* @deprecated
|
|
29062
|
+
*/
|
|
29063
|
+
startWorkflow1: async (name, requestBody, version, correlationId, priority) => {
|
|
29064
|
+
warn();
|
|
29065
|
+
const { data } = await WorkflowResource.startWorkflow1({
|
|
29066
|
+
client: client2,
|
|
29067
|
+
path: { name },
|
|
29068
|
+
query: { version, correlationId, priority },
|
|
29069
|
+
body: requestBody,
|
|
29070
|
+
throwOnError: true
|
|
29071
|
+
});
|
|
29072
|
+
return data;
|
|
29073
|
+
},
|
|
29074
|
+
/**
|
|
29075
|
+
* @deprecated
|
|
29076
|
+
*/
|
|
29077
|
+
restart1: async (workflowId, useLatestDefinitions = false) => {
|
|
29078
|
+
warn();
|
|
29079
|
+
await WorkflowResource.restart({
|
|
29080
|
+
client: client2,
|
|
29081
|
+
path: { workflowId },
|
|
29082
|
+
query: { useLatestDefinitions },
|
|
29083
|
+
throwOnError: true
|
|
29084
|
+
});
|
|
29085
|
+
},
|
|
29086
|
+
/**
|
|
29087
|
+
* @deprecated
|
|
29088
|
+
*/
|
|
29089
|
+
search1: async (queryId, start, size = 100, sort, freeText = "*", query, skipCache = false) => {
|
|
29090
|
+
warn();
|
|
29091
|
+
const { data } = await client2.get({
|
|
29092
|
+
security: [
|
|
29093
|
+
{
|
|
29094
|
+
name: "X-Authorization",
|
|
29095
|
+
type: "apiKey"
|
|
29096
|
+
}
|
|
29097
|
+
],
|
|
29098
|
+
url: "/api/workflow/search",
|
|
29099
|
+
query: { queryId, start, size, sort, freeText, query, skipCache },
|
|
29100
|
+
throwOnError: true
|
|
29101
|
+
});
|
|
29102
|
+
return data;
|
|
29103
|
+
},
|
|
29104
|
+
/**
|
|
29105
|
+
* @deprecated
|
|
29106
|
+
*/
|
|
29107
|
+
searchWorkflowsByTasksV2: async (start, size = 100, sort, freeText = "*", query) => {
|
|
29108
|
+
warn();
|
|
29109
|
+
const { data } = await client2.get({
|
|
29110
|
+
security: [
|
|
29111
|
+
{
|
|
29112
|
+
name: "X-Authorization",
|
|
29113
|
+
type: "apiKey"
|
|
29114
|
+
}
|
|
29115
|
+
],
|
|
29116
|
+
url: "/api/workflow/search-by-tasks-v2",
|
|
29117
|
+
query: { start, size, sort, freeText, query },
|
|
29118
|
+
throwOnError: true
|
|
29119
|
+
});
|
|
29120
|
+
return data;
|
|
29121
|
+
},
|
|
29122
|
+
/**
|
|
29123
|
+
* @deprecated
|
|
29124
|
+
*/
|
|
29125
|
+
resetWorkflow: async (workflowId) => {
|
|
29126
|
+
warn();
|
|
29127
|
+
await WorkflowResource.resetWorkflow({
|
|
29128
|
+
client: client2,
|
|
29129
|
+
path: { workflowId },
|
|
29130
|
+
throwOnError: true
|
|
29131
|
+
});
|
|
29132
|
+
},
|
|
29133
|
+
/**
|
|
29134
|
+
* @deprecated
|
|
29135
|
+
*/
|
|
29136
|
+
testWorkflow: async (requestBody) => {
|
|
29137
|
+
warn();
|
|
29138
|
+
const { data } = await WorkflowResource.testWorkflow({
|
|
29139
|
+
client: client2,
|
|
29140
|
+
body: requestBody,
|
|
29141
|
+
throwOnError: true
|
|
29142
|
+
});
|
|
29143
|
+
return data;
|
|
29144
|
+
}
|
|
29145
|
+
};
|
|
29146
|
+
const serviceRegistryResource = {
|
|
29147
|
+
getRegisteredServices: async () => {
|
|
29148
|
+
warn();
|
|
29149
|
+
const { data } = await ServiceRegistryResource.getRegisteredServices({
|
|
29150
|
+
client: client2,
|
|
29151
|
+
throwOnError: true
|
|
29152
|
+
});
|
|
29153
|
+
return data;
|
|
29154
|
+
},
|
|
29155
|
+
/**
|
|
29156
|
+
* @deprecated
|
|
29157
|
+
*/
|
|
29158
|
+
removeService: async (name) => {
|
|
29159
|
+
warn();
|
|
29160
|
+
await ServiceRegistryResource.removeService({
|
|
29161
|
+
client: client2,
|
|
29162
|
+
path: { name },
|
|
29163
|
+
throwOnError: true
|
|
29164
|
+
});
|
|
29165
|
+
},
|
|
29166
|
+
/**
|
|
29167
|
+
* @deprecated
|
|
29168
|
+
*/
|
|
29169
|
+
getService: async (name) => {
|
|
29170
|
+
warn();
|
|
29171
|
+
const { data } = await ServiceRegistryResource.getService({
|
|
29172
|
+
client: client2,
|
|
29173
|
+
path: { name },
|
|
29174
|
+
throwOnError: true
|
|
29175
|
+
});
|
|
29176
|
+
return data;
|
|
29177
|
+
},
|
|
29178
|
+
/**
|
|
29179
|
+
* @deprecated
|
|
29180
|
+
*/
|
|
29181
|
+
openCircuitBreaker: async (name) => {
|
|
29182
|
+
warn();
|
|
29183
|
+
const { data } = await ServiceRegistryResource.openCircuitBreaker({
|
|
29184
|
+
client: client2,
|
|
29185
|
+
path: { name },
|
|
29186
|
+
throwOnError: true
|
|
29187
|
+
});
|
|
29188
|
+
return data;
|
|
29189
|
+
},
|
|
29190
|
+
/**
|
|
29191
|
+
* @deprecated
|
|
29192
|
+
*/
|
|
29193
|
+
closeCircuitBreaker: async (name) => {
|
|
29194
|
+
warn();
|
|
29195
|
+
const { data } = await ServiceRegistryResource.closeCircuitBreaker({
|
|
29196
|
+
client: client2,
|
|
29197
|
+
path: { name },
|
|
29198
|
+
throwOnError: true
|
|
29199
|
+
});
|
|
29200
|
+
return data;
|
|
29201
|
+
},
|
|
29202
|
+
/**
|
|
29203
|
+
* @deprecated
|
|
29204
|
+
*/
|
|
29205
|
+
getCircuitBreakerStatus: async (name) => {
|
|
29206
|
+
warn();
|
|
29207
|
+
const { data } = await ServiceRegistryResource.getCircuitBreakerStatus({
|
|
29208
|
+
client: client2,
|
|
29209
|
+
path: { name },
|
|
29210
|
+
throwOnError: true
|
|
29211
|
+
});
|
|
29212
|
+
return data;
|
|
29213
|
+
},
|
|
29214
|
+
/**
|
|
29215
|
+
* @deprecated
|
|
29216
|
+
*/
|
|
29217
|
+
addOrUpdateService: async (serviceRegistry) => {
|
|
29218
|
+
warn();
|
|
29219
|
+
await ServiceRegistryResource.addOrUpdateService({
|
|
29220
|
+
client: client2,
|
|
29221
|
+
body: serviceRegistry,
|
|
29222
|
+
throwOnError: true
|
|
29223
|
+
});
|
|
29224
|
+
},
|
|
29225
|
+
/**
|
|
29226
|
+
* @deprecated
|
|
29227
|
+
*/
|
|
29228
|
+
addOrUpdateServiceMethod: async (registryName, method) => {
|
|
29229
|
+
warn();
|
|
29230
|
+
await ServiceRegistryResource.addOrUpdateMethod({
|
|
29231
|
+
client: client2,
|
|
29232
|
+
path: { registryName },
|
|
29233
|
+
body: method,
|
|
29234
|
+
throwOnError: true
|
|
29235
|
+
});
|
|
29236
|
+
},
|
|
29237
|
+
/**
|
|
29238
|
+
* @deprecated
|
|
29239
|
+
*/
|
|
29240
|
+
removeMethod: async (registryName, serviceName, method, methodType) => {
|
|
29241
|
+
warn();
|
|
29242
|
+
await ServiceRegistryResource.removeMethod({
|
|
29243
|
+
client: client2,
|
|
29244
|
+
path: { registryName },
|
|
29245
|
+
query: { serviceName, method, methodType },
|
|
29246
|
+
throwOnError: true
|
|
29247
|
+
});
|
|
29248
|
+
},
|
|
29249
|
+
/**
|
|
29250
|
+
* @deprecated
|
|
29251
|
+
*/
|
|
29252
|
+
getProtoData: async (registryName, filename) => {
|
|
29253
|
+
warn();
|
|
29254
|
+
const { data } = await ServiceRegistryResource.getProtoData({
|
|
29255
|
+
client: client2,
|
|
29256
|
+
path: { registryName, filename },
|
|
29257
|
+
throwOnError: true
|
|
29258
|
+
});
|
|
29259
|
+
return data;
|
|
29260
|
+
},
|
|
29261
|
+
/**
|
|
29262
|
+
* @deprecated
|
|
29263
|
+
*/
|
|
29264
|
+
setProtoData: async (registryName, filename, data) => {
|
|
29265
|
+
warn();
|
|
29266
|
+
await ServiceRegistryResource.setProtoData({
|
|
29267
|
+
client: client2,
|
|
29268
|
+
path: { registryName, filename },
|
|
29269
|
+
body: data,
|
|
29270
|
+
throwOnError: true
|
|
29271
|
+
});
|
|
29272
|
+
},
|
|
29273
|
+
/**
|
|
29274
|
+
* @deprecated
|
|
29275
|
+
*/
|
|
29276
|
+
deleteProto: async (registryName, filename) => {
|
|
29277
|
+
warn();
|
|
29278
|
+
await ServiceRegistryResource.deleteProto({
|
|
29279
|
+
client: client2,
|
|
29280
|
+
path: { registryName, filename },
|
|
29281
|
+
throwOnError: true
|
|
29282
|
+
});
|
|
29283
|
+
},
|
|
29284
|
+
/**
|
|
29285
|
+
* @deprecated
|
|
29286
|
+
*/
|
|
29287
|
+
getAllProtos: async (registryName) => {
|
|
29288
|
+
warn();
|
|
29289
|
+
const { data } = await ServiceRegistryResource.getAllProtos({
|
|
29290
|
+
client: client2,
|
|
29291
|
+
path: { registryName },
|
|
29292
|
+
throwOnError: true
|
|
29293
|
+
});
|
|
29294
|
+
return data;
|
|
29295
|
+
},
|
|
29296
|
+
/**
|
|
29297
|
+
* @deprecated
|
|
29298
|
+
*/
|
|
29299
|
+
discover: async (name, create = false) => {
|
|
29300
|
+
warn();
|
|
29301
|
+
const { data } = await ServiceRegistryResource.discover({
|
|
29302
|
+
client: client2,
|
|
29303
|
+
path: { name },
|
|
29304
|
+
query: { create },
|
|
29305
|
+
throwOnError: true
|
|
29306
|
+
});
|
|
29307
|
+
return data;
|
|
29308
|
+
}
|
|
29309
|
+
};
|
|
29310
|
+
const humanTaskResource = {
|
|
29311
|
+
getConductorTaskById: async (taskId) => {
|
|
29312
|
+
warn();
|
|
29313
|
+
const { data } = await HumanTaskResource.getConductorTaskById({
|
|
29314
|
+
client: client2,
|
|
29315
|
+
path: { taskId },
|
|
29316
|
+
throwOnError: true
|
|
29317
|
+
});
|
|
29318
|
+
return data;
|
|
29319
|
+
}
|
|
29320
|
+
};
|
|
29321
|
+
const humanTask = {
|
|
29322
|
+
deleteTaskFromHumanTaskRecords: async (requestBody) => {
|
|
29323
|
+
warn();
|
|
29324
|
+
await HumanTask.deleteTaskFromHumanTaskRecords({
|
|
29325
|
+
client: client2,
|
|
29326
|
+
body: requestBody,
|
|
29327
|
+
throwOnError: true
|
|
29328
|
+
});
|
|
29329
|
+
},
|
|
29330
|
+
/**
|
|
29331
|
+
* @deprecated
|
|
29332
|
+
*/
|
|
29333
|
+
deleteTaskFromHumanTaskRecords1: async (taskId) => {
|
|
29334
|
+
warn();
|
|
29335
|
+
await HumanTask.deleteTaskFromHumanTaskRecords1({
|
|
29336
|
+
client: client2,
|
|
29337
|
+
path: { taskId },
|
|
29338
|
+
throwOnError: true
|
|
29339
|
+
});
|
|
29340
|
+
},
|
|
29341
|
+
/**
|
|
29342
|
+
* @deprecated
|
|
29343
|
+
*/
|
|
29344
|
+
search: async (requestBody) => {
|
|
29345
|
+
warn();
|
|
29346
|
+
const { data } = await HumanTask.search({
|
|
29347
|
+
client: client2,
|
|
29348
|
+
body: requestBody,
|
|
29349
|
+
throwOnError: true
|
|
29350
|
+
});
|
|
29351
|
+
return data;
|
|
29352
|
+
},
|
|
29353
|
+
/**
|
|
29354
|
+
* @deprecated
|
|
29355
|
+
*/
|
|
29356
|
+
updateTaskOutputByRef: async (workflowId, taskRefName, requestBody, complete = false, iteration) => {
|
|
29357
|
+
warn();
|
|
29358
|
+
const { data } = await HumanTask.updateTaskOutputByRef({
|
|
29359
|
+
client: client2,
|
|
29360
|
+
query: {
|
|
29361
|
+
workflowId,
|
|
29362
|
+
taskRefName,
|
|
29363
|
+
complete,
|
|
29364
|
+
iteration
|
|
29365
|
+
},
|
|
29366
|
+
body: requestBody,
|
|
29367
|
+
throwOnError: true
|
|
29368
|
+
});
|
|
29369
|
+
return data;
|
|
29370
|
+
},
|
|
29371
|
+
/**
|
|
29372
|
+
* @deprecated
|
|
29373
|
+
*/
|
|
29374
|
+
getTask1: async (taskId) => {
|
|
29375
|
+
warn();
|
|
29376
|
+
const { data } = await HumanTask.getTask1({
|
|
29377
|
+
client: client2,
|
|
29378
|
+
path: { taskId },
|
|
29379
|
+
throwOnError: true
|
|
29380
|
+
});
|
|
29381
|
+
return data;
|
|
29382
|
+
},
|
|
29383
|
+
/**
|
|
29384
|
+
* @deprecated
|
|
29385
|
+
*/
|
|
29386
|
+
claimTask: async (taskId, overrideAssignment = false, withTemplate = false) => {
|
|
29387
|
+
warn();
|
|
29388
|
+
const { data } = await HumanTask.claimTask({
|
|
29389
|
+
client: client2,
|
|
29390
|
+
path: { taskId },
|
|
29391
|
+
query: { overrideAssignment, withTemplate },
|
|
29392
|
+
throwOnError: true
|
|
29393
|
+
});
|
|
29394
|
+
return data;
|
|
29395
|
+
},
|
|
29396
|
+
/**
|
|
29397
|
+
* @deprecated
|
|
29398
|
+
*/
|
|
29399
|
+
assignAndClaim: async (taskId, userId, overrideAssignment = false, withTemplate = false) => {
|
|
29400
|
+
warn();
|
|
29401
|
+
const { data } = await HumanTask.assignAndClaim({
|
|
29402
|
+
client: client2,
|
|
29403
|
+
path: { taskId, userId },
|
|
29404
|
+
query: { overrideAssignment, withTemplate },
|
|
29405
|
+
throwOnError: true
|
|
29406
|
+
});
|
|
29407
|
+
return data;
|
|
29408
|
+
},
|
|
29409
|
+
/**
|
|
29410
|
+
* @deprecated
|
|
29411
|
+
*/
|
|
29412
|
+
reassignTask: async (taskId, requestBody) => {
|
|
29413
|
+
warn();
|
|
29414
|
+
await HumanTask.reassignTask({
|
|
29415
|
+
client: client2,
|
|
29416
|
+
path: { taskId },
|
|
29417
|
+
body: requestBody,
|
|
29418
|
+
throwOnError: true
|
|
29419
|
+
});
|
|
29420
|
+
},
|
|
29421
|
+
/**
|
|
29422
|
+
* @deprecated
|
|
29423
|
+
*/
|
|
29424
|
+
releaseTask: async (taskId) => {
|
|
29425
|
+
warn();
|
|
29426
|
+
await HumanTask.releaseTask({
|
|
29427
|
+
client: client2,
|
|
29428
|
+
path: { taskId },
|
|
29429
|
+
throwOnError: true
|
|
29430
|
+
});
|
|
29431
|
+
},
|
|
29432
|
+
/**
|
|
29433
|
+
* @deprecated
|
|
29434
|
+
*/
|
|
29435
|
+
skipTask: async (taskId, reason) => {
|
|
29436
|
+
warn();
|
|
29437
|
+
await HumanTask.skipTask({
|
|
29438
|
+
client: client2,
|
|
29439
|
+
path: { taskId },
|
|
29440
|
+
query: { reason },
|
|
29441
|
+
throwOnError: true
|
|
29442
|
+
});
|
|
29443
|
+
},
|
|
29444
|
+
/**
|
|
29445
|
+
* @deprecated
|
|
29446
|
+
*/
|
|
29447
|
+
updateTaskOutput: async (taskId, requestBody, complete = false) => {
|
|
29448
|
+
warn();
|
|
29449
|
+
await HumanTask.updateTaskOutput({
|
|
29450
|
+
client: client2,
|
|
29451
|
+
path: { taskId },
|
|
29452
|
+
query: { complete },
|
|
29453
|
+
body: requestBody,
|
|
29454
|
+
throwOnError: true
|
|
29455
|
+
});
|
|
29456
|
+
},
|
|
29457
|
+
/**
|
|
29458
|
+
* @deprecated
|
|
29459
|
+
*/
|
|
29460
|
+
getAllTemplates: async (name, version) => {
|
|
29461
|
+
warn();
|
|
29462
|
+
const { data } = await UserForm.getAllTemplates({
|
|
29463
|
+
client: client2,
|
|
29464
|
+
query: { name, version },
|
|
29465
|
+
throwOnError: true
|
|
29466
|
+
});
|
|
29467
|
+
return data;
|
|
29468
|
+
},
|
|
29469
|
+
/**
|
|
29470
|
+
* @deprecated
|
|
29471
|
+
*/
|
|
29472
|
+
saveTemplate: async (requestBody, newVersion = false) => {
|
|
29473
|
+
warn();
|
|
29474
|
+
const { data } = await UserForm.saveTemplate({
|
|
29475
|
+
client: client2,
|
|
29476
|
+
query: { newVersion },
|
|
29477
|
+
body: requestBody,
|
|
29478
|
+
throwOnError: true
|
|
29479
|
+
});
|
|
29480
|
+
return data;
|
|
29481
|
+
},
|
|
29482
|
+
/**
|
|
29483
|
+
* @deprecated
|
|
29484
|
+
*/
|
|
29485
|
+
saveTemplates: async (requestBody, newVersion = false) => {
|
|
29486
|
+
warn();
|
|
29487
|
+
const { data } = await UserForm.saveTemplates({
|
|
29488
|
+
client: client2,
|
|
29489
|
+
query: { newVersion },
|
|
29490
|
+
body: requestBody,
|
|
29491
|
+
throwOnError: true
|
|
29492
|
+
});
|
|
29493
|
+
return data;
|
|
29494
|
+
},
|
|
29495
|
+
/**
|
|
29496
|
+
* @deprecated
|
|
29497
|
+
*/
|
|
29498
|
+
deleteTemplateByName: async (name) => {
|
|
29499
|
+
warn();
|
|
29500
|
+
await UserForm.deleteTemplateByName({
|
|
29501
|
+
client: client2,
|
|
29502
|
+
path: { name },
|
|
29503
|
+
throwOnError: true
|
|
29504
|
+
});
|
|
29505
|
+
},
|
|
29506
|
+
/**
|
|
29507
|
+
* @deprecated
|
|
29508
|
+
*/
|
|
29509
|
+
deleteTemplatesByNameAndVersion: async (name, version) => {
|
|
29510
|
+
warn();
|
|
29511
|
+
await HumanTask.deleteTemplatesByNameAndVersion({
|
|
29512
|
+
client: client2,
|
|
29513
|
+
path: { name, version },
|
|
29514
|
+
throwOnError: true
|
|
29515
|
+
});
|
|
29516
|
+
},
|
|
29517
|
+
/**
|
|
29518
|
+
* @deprecated
|
|
29519
|
+
*/
|
|
29520
|
+
getTemplateByNameAndVersion: async (name, version) => {
|
|
29521
|
+
warn();
|
|
29522
|
+
const { data } = await UserForm.getTemplateByNameAndVersion({
|
|
29523
|
+
client: client2,
|
|
29524
|
+
path: { name, version },
|
|
29525
|
+
throwOnError: true
|
|
29526
|
+
});
|
|
29527
|
+
return data;
|
|
29528
|
+
}
|
|
29529
|
+
};
|
|
29530
|
+
const taskResource = {
|
|
29531
|
+
poll: async (tasktype, workerid, domain) => {
|
|
29532
|
+
warn();
|
|
29533
|
+
const { data } = await TaskResource.poll({
|
|
29534
|
+
client: client2,
|
|
29535
|
+
path: { tasktype },
|
|
29536
|
+
query: { workerid, domain },
|
|
29537
|
+
throwOnError: true
|
|
29538
|
+
});
|
|
29539
|
+
return data;
|
|
29540
|
+
},
|
|
29541
|
+
/**
|
|
29542
|
+
* @deprecated
|
|
29543
|
+
*/
|
|
29544
|
+
allVerbose: async () => {
|
|
29545
|
+
warn();
|
|
29546
|
+
const { data } = await TaskResource.allVerbose({
|
|
29547
|
+
client: client2,
|
|
29548
|
+
throwOnError: true
|
|
29549
|
+
});
|
|
29550
|
+
return data;
|
|
29551
|
+
},
|
|
29552
|
+
/**
|
|
29553
|
+
* @deprecated
|
|
29554
|
+
*/
|
|
29555
|
+
updateTask: async (workflowId, taskRefName, status, requestBody) => {
|
|
29556
|
+
warn();
|
|
29557
|
+
const { data } = await TaskResource.updateTask1({
|
|
29558
|
+
client: client2,
|
|
29559
|
+
path: { workflowId, taskRefName, status },
|
|
29560
|
+
body: requestBody,
|
|
29561
|
+
throwOnError: true
|
|
29562
|
+
});
|
|
29563
|
+
return data;
|
|
29564
|
+
},
|
|
29565
|
+
/**
|
|
29566
|
+
* @deprecated
|
|
29567
|
+
*/
|
|
29568
|
+
getTask: async (taskId) => {
|
|
29569
|
+
warn();
|
|
29570
|
+
const { data } = await TaskResource.getTask({
|
|
29571
|
+
client: client2,
|
|
29572
|
+
path: { taskId },
|
|
29573
|
+
throwOnError: true
|
|
29574
|
+
});
|
|
29575
|
+
return data;
|
|
29576
|
+
},
|
|
29577
|
+
/**
|
|
29578
|
+
* @deprecated
|
|
29579
|
+
*/
|
|
29580
|
+
all: async () => {
|
|
29581
|
+
warn();
|
|
29582
|
+
const { data } = await TaskResource.all({
|
|
29583
|
+
client: client2,
|
|
29584
|
+
throwOnError: true
|
|
29585
|
+
});
|
|
29586
|
+
return data;
|
|
29587
|
+
},
|
|
29588
|
+
/**
|
|
29589
|
+
* @deprecated
|
|
29590
|
+
*/
|
|
29591
|
+
requeuePendingTask: async (taskType) => {
|
|
29592
|
+
warn();
|
|
29593
|
+
const { data } = await TaskResource.requeuePendingTask({
|
|
29594
|
+
client: client2,
|
|
29595
|
+
path: { taskType },
|
|
29596
|
+
throwOnError: true
|
|
29597
|
+
});
|
|
29598
|
+
return data;
|
|
29599
|
+
},
|
|
29600
|
+
/**
|
|
29601
|
+
* @deprecated
|
|
29602
|
+
*/
|
|
29603
|
+
search: async (start, size = 100, sort, freeText = "*", query) => {
|
|
29604
|
+
warn();
|
|
29605
|
+
const { data } = await TaskResource.search2({
|
|
29606
|
+
client: client2,
|
|
29607
|
+
query: { start, size, sort, freeText, query },
|
|
29608
|
+
throwOnError: true
|
|
29609
|
+
});
|
|
29610
|
+
return data;
|
|
29611
|
+
},
|
|
29612
|
+
/**
|
|
29613
|
+
* @deprecated
|
|
29614
|
+
*/
|
|
29615
|
+
searchV22: async (start, size = 100, sort, freeText = "*", query) => {
|
|
29616
|
+
warn();
|
|
29617
|
+
const { data } = await client2.get({
|
|
29618
|
+
security: [
|
|
29619
|
+
{
|
|
29620
|
+
name: "X-Authorization",
|
|
29621
|
+
type: "apiKey"
|
|
29622
|
+
}
|
|
29623
|
+
],
|
|
29624
|
+
url: "/api/tasks/search-v2",
|
|
29625
|
+
query: { start, size, sort, freeText, query },
|
|
29626
|
+
throwOnError: true
|
|
29627
|
+
});
|
|
29628
|
+
return data;
|
|
29629
|
+
},
|
|
29630
|
+
/**
|
|
29631
|
+
* @deprecated
|
|
29632
|
+
*/
|
|
29633
|
+
getPollData: async (taskType) => {
|
|
29634
|
+
warn();
|
|
29635
|
+
const { data } = await TaskResource.getPollData({
|
|
29636
|
+
client: client2,
|
|
29637
|
+
query: { taskType },
|
|
29638
|
+
throwOnError: true
|
|
29639
|
+
});
|
|
29640
|
+
return data;
|
|
29641
|
+
},
|
|
29642
|
+
/**
|
|
29643
|
+
* @deprecated
|
|
29644
|
+
*/
|
|
29645
|
+
getTaskLogs: async (taskId) => {
|
|
29646
|
+
warn();
|
|
29647
|
+
const { data } = await TaskResource.getTaskLogs({
|
|
29648
|
+
client: client2,
|
|
29649
|
+
path: { taskId },
|
|
29650
|
+
throwOnError: true
|
|
29651
|
+
});
|
|
29652
|
+
return data;
|
|
29653
|
+
},
|
|
29654
|
+
/**
|
|
29655
|
+
* @deprecated
|
|
29656
|
+
*/
|
|
29657
|
+
log: async (taskId, requestBody) => {
|
|
29658
|
+
warn();
|
|
29659
|
+
await TaskResource.log({
|
|
29660
|
+
client: client2,
|
|
29661
|
+
path: { taskId },
|
|
29662
|
+
body: requestBody,
|
|
29663
|
+
throwOnError: true
|
|
29664
|
+
});
|
|
29665
|
+
},
|
|
29666
|
+
/**
|
|
29667
|
+
* @deprecated
|
|
29668
|
+
*/
|
|
29669
|
+
getAllPollData: async () => {
|
|
29670
|
+
warn();
|
|
29671
|
+
const { data } = await TaskResource.getAllPollData({
|
|
29672
|
+
client: client2,
|
|
29673
|
+
throwOnError: true
|
|
29674
|
+
});
|
|
29675
|
+
return data;
|
|
29676
|
+
},
|
|
29677
|
+
/**
|
|
29678
|
+
* @deprecated
|
|
29679
|
+
*/
|
|
29680
|
+
batchPoll: async (tasktype, workerid, domain, count = 1, timeout = 100) => {
|
|
29681
|
+
warn();
|
|
29682
|
+
const { data } = await TaskResource.batchPoll({
|
|
29683
|
+
client: client2,
|
|
29684
|
+
path: { tasktype },
|
|
29685
|
+
query: { workerid, domain, count, timeout },
|
|
29686
|
+
throwOnError: true
|
|
29687
|
+
});
|
|
29688
|
+
return data;
|
|
29689
|
+
},
|
|
29690
|
+
/**
|
|
29691
|
+
* @deprecated
|
|
29692
|
+
*/
|
|
29693
|
+
updateTask1: async (requestBody) => {
|
|
29694
|
+
warn();
|
|
29695
|
+
const { data } = await TaskResource.updateTask({
|
|
29696
|
+
client: client2,
|
|
29697
|
+
body: requestBody,
|
|
29698
|
+
throwOnError: true
|
|
29699
|
+
});
|
|
29700
|
+
return data;
|
|
29701
|
+
},
|
|
29702
|
+
/**
|
|
29703
|
+
* @deprecated
|
|
29704
|
+
*/
|
|
29705
|
+
size1: async (taskType) => {
|
|
29706
|
+
warn();
|
|
29707
|
+
const { data } = await TaskResource.size({
|
|
29708
|
+
client: client2,
|
|
29709
|
+
query: { taskType },
|
|
29710
|
+
throwOnError: true
|
|
29711
|
+
});
|
|
29712
|
+
return data;
|
|
29713
|
+
},
|
|
29714
|
+
/**
|
|
29715
|
+
* @deprecated
|
|
29716
|
+
*/
|
|
29717
|
+
getExternalStorageLocation1: async (path, operation, payloadType) => {
|
|
29718
|
+
warn();
|
|
29719
|
+
const { data } = await client2.get({
|
|
29720
|
+
security: [
|
|
29721
|
+
{
|
|
29722
|
+
name: "X-Authorization",
|
|
29723
|
+
type: "apiKey"
|
|
29724
|
+
}
|
|
29725
|
+
],
|
|
29726
|
+
url: "/api/tasks/externalstoragelocation",
|
|
29727
|
+
query: { path, operation, payloadType },
|
|
29728
|
+
throwOnError: true
|
|
29729
|
+
});
|
|
29730
|
+
return data;
|
|
29731
|
+
},
|
|
29732
|
+
/**
|
|
29733
|
+
* @deprecated
|
|
29734
|
+
*/
|
|
29735
|
+
updateTaskSync: async (workflowId, taskRefName, status, output, workerId2) => {
|
|
29736
|
+
warn();
|
|
29737
|
+
const { data } = await TaskResource.updateTaskSync({
|
|
29738
|
+
client: client2,
|
|
29739
|
+
path: { workflowId, taskRefName, status },
|
|
29740
|
+
query: { workerid: workerId2 },
|
|
29741
|
+
body: output,
|
|
29742
|
+
throwOnError: true
|
|
29743
|
+
});
|
|
29744
|
+
return data;
|
|
29745
|
+
},
|
|
29746
|
+
/**
|
|
29747
|
+
* @deprecated
|
|
29748
|
+
*/
|
|
29749
|
+
signal: async (workflowId, status, output, returnStrategy = "TARGET_WORKFLOW") => {
|
|
29750
|
+
warn();
|
|
29751
|
+
const { data } = await TaskResource.signalWorkflowTaskSync({
|
|
29752
|
+
client: client2,
|
|
29753
|
+
path: { workflowId, status },
|
|
29754
|
+
query: { returnStrategy },
|
|
29755
|
+
body: output,
|
|
29756
|
+
throwOnError: true
|
|
29757
|
+
});
|
|
29758
|
+
return data;
|
|
29759
|
+
},
|
|
29760
|
+
/**
|
|
29761
|
+
* @deprecated
|
|
29762
|
+
*/
|
|
29763
|
+
signalAsync: async (workflowId, status, output) => {
|
|
29764
|
+
warn();
|
|
29765
|
+
const { data } = await TaskResource.signalWorkflowTaskASync({
|
|
29766
|
+
client: client2,
|
|
29767
|
+
path: { workflowId, status },
|
|
29768
|
+
body: output,
|
|
29769
|
+
throwOnError: true
|
|
29770
|
+
});
|
|
29771
|
+
return data;
|
|
29772
|
+
}
|
|
29773
|
+
};
|
|
29774
|
+
return {
|
|
29775
|
+
...client2,
|
|
29776
|
+
eventResource,
|
|
29777
|
+
healthCheckResource,
|
|
29778
|
+
metadataResource,
|
|
29779
|
+
schedulerResource,
|
|
29780
|
+
tokenResource,
|
|
29781
|
+
workflowBulkResource,
|
|
29782
|
+
workflowResource,
|
|
29783
|
+
serviceRegistryResource,
|
|
29784
|
+
humanTaskResource,
|
|
29785
|
+
humanTask,
|
|
29786
|
+
taskResource
|
|
29787
|
+
};
|
|
29788
|
+
};
|
|
29789
|
+
|
|
27617
29790
|
// src/orkes/OrkesConductorClient.ts
|
|
27618
29791
|
var orkesConductorClient = async (config, customFetch) => {
|
|
27619
29792
|
const {
|
|
@@ -27634,7 +29807,7 @@ var orkesConductorClient = async (config, customFetch) => {
|
|
|
27634
29807
|
if (keyId && keySecret) {
|
|
27635
29808
|
await handleAuth(openApiClient, keyId, keySecret, refreshTokenInterval);
|
|
27636
29809
|
}
|
|
27637
|
-
return openApiClient;
|
|
29810
|
+
return addResourcesBackwardCompatibility(openApiClient);
|
|
27638
29811
|
};
|
|
27639
29812
|
// Annotate the CommonJS export names for ESM import in node:
|
|
27640
29813
|
0 && (module.exports = {
|