@hatchet-dev/typescript-sdk 1.16.0 → 1.17.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/README.md +14 -2
- package/clients/admin/admin-client.d.ts +2 -2
- package/clients/dispatcher/action-listener.d.ts +3 -6
- package/clients/dispatcher/action-listener.js +12 -17
- package/clients/listeners/durable-listener/durable-listener-client.d.ts +116 -15
- package/clients/listeners/durable-listener/durable-listener-client.js +770 -19
- package/clients/listeners/durable-listener/pooled-durable-listener-client.js +1 -14
- package/clients/listeners/run-listener/pooled-child-listener-client.js +1 -14
- package/clients/rest/generated/Api.d.ts +5 -1
- package/clients/rest/generated/data-contracts.d.ts +16 -2
- package/clients/rest/generated/data-contracts.js +7 -3
- package/legacy/examples/affinity-workers.js +2 -2
- package/legacy/legacy-client.js +1 -1
- package/legacy/step.d.ts +2 -2
- package/legacy/step.js +3 -2
- package/legacy/workflow.d.ts +25 -25
- package/package.json +1 -1
- package/protoc/dispatcher/dispatcher.d.ts +20 -0
- package/protoc/dispatcher/dispatcher.js +535 -100
- package/protoc/events/events.js +54 -14
- package/protoc/google/protobuf/timestamp.js +1 -1
- package/protoc/v1/dispatcher.d.ts +169 -0
- package/protoc/v1/dispatcher.js +2096 -8
- package/protoc/v1/shared/condition.js +37 -11
- package/protoc/v1/shared/trigger.d.ts +89 -0
- package/protoc/v1/shared/trigger.js +524 -0
- package/protoc/v1/workflows.d.ts +34 -34
- package/protoc/v1/workflows.js +452 -254
- package/protoc/workflows/workflows.d.ts +2 -75
- package/protoc/workflows/workflows.js +157 -529
- package/util/abort-error.d.ts +10 -0
- package/util/abort-error.js +15 -0
- package/util/errors/eviction-not-supported-error.d.ts +5 -0
- package/util/errors/eviction-not-supported-error.js +18 -0
- package/util/errors/non-determinism-error.d.ts +7 -0
- package/util/errors/non-determinism-error.js +21 -0
- package/util/errors/task-run-terminated-error.d.ts +6 -0
- package/util/errors/task-run-terminated-error.js +15 -0
- package/util/hatchet-promise/hatchet-promise.d.ts +2 -1
- package/util/hatchet-promise/hatchet-promise.js +10 -1
- package/util/sleep.d.ts +3 -2
- package/util/sleep.js +6 -4
- package/v1/client/admin.d.ts +2 -2
- package/v1/client/client.js +1 -1
- package/v1/client/duration.d.ts +11 -1
- package/v1/client/duration.js +44 -0
- package/v1/client/features/runs.d.ts +16 -3
- package/v1/client/features/runs.js +38 -3
- package/v1/client/worker/context.d.ts +101 -6
- package/v1/client/worker/context.js +247 -21
- package/v1/client/worker/deprecated/index.d.ts +1 -1
- package/v1/client/worker/deprecated/index.js +2 -1
- package/v1/client/worker/deprecated/legacy-worker.d.ts +5 -0
- package/v1/client/worker/deprecated/legacy-worker.js +32 -23
- package/v1/client/worker/deprecated/pre-eviction.d.ts +12 -0
- package/v1/client/worker/deprecated/pre-eviction.js +37 -0
- package/v1/client/worker/engine-version.d.ts +5 -0
- package/v1/client/worker/engine-version.js +14 -0
- package/v1/client/worker/eviction/eviction-cache.d.ts +33 -0
- package/v1/client/worker/eviction/eviction-cache.js +139 -0
- package/v1/client/worker/eviction/eviction-manager.d.ts +42 -0
- package/v1/client/worker/eviction/eviction-manager.js +132 -0
- package/v1/client/worker/eviction/eviction-policy.d.ts +19 -0
- package/v1/client/worker/eviction/eviction-policy.js +8 -0
- package/v1/client/worker/eviction/index.d.ts +3 -0
- package/v1/client/worker/eviction/index.js +11 -0
- package/v1/client/worker/worker-internal.d.ts +23 -4
- package/v1/client/worker/worker-internal.js +177 -138
- package/v1/client/worker/worker.d.ts +1 -0
- package/v1/client/worker/worker.js +34 -1
- package/v1/conditions/sleep-condition.js +2 -1
- package/v1/conditions/transformer.js +2 -1
- package/v1/declaration.d.ts +5 -3
- package/v1/declaration.js +8 -0
- package/v1/examples/__e2e__/harness.d.ts +5 -0
- package/v1/examples/__e2e__/harness.js +13 -0
- package/v1/examples/concurrency_workflow_level/workflow.d.ts +1 -1
- package/v1/examples/concurrency_workflow_level/workflow.js +1 -1
- package/v1/examples/durable/workflow.d.ts +57 -0
- package/v1/examples/durable/workflow.js +162 -7
- package/v1/examples/durable-event/workflow.js +2 -7
- package/v1/examples/durable_event/workflow.d.ts +1 -0
- package/v1/examples/durable_event/workflow.js +4 -9
- package/v1/examples/durable_eviction/capacity-worker.d.ts +1 -0
- package/v1/examples/durable_eviction/capacity-worker.js +31 -0
- package/v1/examples/durable_eviction/worker.d.ts +1 -0
- package/v1/examples/durable_eviction/worker.js +34 -0
- package/v1/examples/durable_eviction/workflow.d.ts +44 -0
- package/v1/examples/durable_eviction/workflow.js +129 -0
- package/v1/examples/e2e-worker.js +42 -19
- package/v1/index.d.ts +5 -0
- package/v1/index.js +10 -0
- package/v1/parent-run-context-vars.d.ts +6 -0
- package/v1/task.d.ts +10 -2
- package/v1/task.js +2 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.4
|
|
5
5
|
// protoc v3.19.1
|
|
6
6
|
// source: dispatcher/dispatcher.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.DispatcherDefinition = exports.GetVersionResponse = exports.GetVersionRequest = exports.ReleaseSlotResponse = exports.ReleaseSlotRequest = exports.RefreshTimeoutResponse = exports.RefreshTimeoutRequest = exports.HeartbeatResponse = exports.HeartbeatRequest = exports.OverridesDataResponse = exports.OverridesData = exports.StepRunResult = exports.WorkflowRunEvent = exports.WorkflowEvent = exports.SubscribeToWorkflowRunsRequest = exports.SubscribeToWorkflowEventsRequest = exports.ActionEventResponse = exports.StepActionEvent = exports.GroupKeyActionEvent = exports.WorkerUnsubscribeResponse = exports.WorkerUnsubscribeRequest = exports.WorkerListenRequest = exports.AssignedAction = exports.UpsertWorkerLabelsResponse = exports.UpsertWorkerLabelsRequest_LabelsEntry = exports.UpsertWorkerLabelsRequest = exports.WorkerRegisterResponse = exports.WorkerRegisterRequest_SlotConfigEntry = exports.WorkerRegisterRequest_LabelsEntry = exports.WorkerRegisterRequest = exports.RuntimeInfo = exports.WorkerLabels = exports.WorkflowRunEventType = exports.ResourceEventType = exports.ResourceType = exports.StepActionEventType = exports.GroupKeyActionEventType = exports.ActionType = exports.SDKS = exports.protobufPackage = void 0;
|
|
8
|
+
exports.DispatcherDefinition = exports.GetVersionResponse = exports.GetVersionRequest = exports.RestoreEvictedTaskResponse = exports.RestoreEvictedTaskRequest = exports.ReleaseSlotResponse = exports.ReleaseSlotRequest = exports.RefreshTimeoutResponse = exports.RefreshTimeoutRequest = exports.HeartbeatResponse = exports.HeartbeatRequest = exports.OverridesDataResponse = exports.OverridesData = exports.StepRunResult = exports.WorkflowRunEvent = exports.WorkflowEvent = exports.SubscribeToWorkflowRunsRequest = exports.SubscribeToWorkflowEventsRequest = exports.ActionEventResponse = exports.StepActionEvent = exports.GroupKeyActionEvent = exports.WorkerUnsubscribeResponse = exports.WorkerUnsubscribeRequest = exports.WorkerListenRequest = exports.AssignedAction = exports.UpsertWorkerLabelsResponse = exports.UpsertWorkerLabelsRequest_LabelsEntry = exports.UpsertWorkerLabelsRequest = exports.WorkerRegisterResponse = exports.WorkerRegisterRequest_SlotConfigEntry = exports.WorkerRegisterRequest_LabelsEntry = exports.WorkerRegisterRequest = exports.RuntimeInfo = exports.WorkerLabels = exports.WorkflowRunEventType = exports.ResourceEventType = exports.ResourceType = exports.StepActionEventType = exports.GroupKeyActionEventType = exports.ActionType = exports.SDKS = exports.protobufPackage = void 0;
|
|
9
9
|
exports.sDKSFromJSON = sDKSFromJSON;
|
|
10
10
|
exports.sDKSToJSON = sDKSToJSON;
|
|
11
11
|
exports.actionTypeFromJSON = actionTypeFromJSON;
|
|
@@ -369,8 +369,16 @@ exports.WorkerLabels = {
|
|
|
369
369
|
},
|
|
370
370
|
fromJSON(object) {
|
|
371
371
|
return {
|
|
372
|
-
strValue: isSet(object.strValue)
|
|
373
|
-
|
|
372
|
+
strValue: isSet(object.strValue)
|
|
373
|
+
? globalThis.String(object.strValue)
|
|
374
|
+
: isSet(object.str_value)
|
|
375
|
+
? globalThis.String(object.str_value)
|
|
376
|
+
: undefined,
|
|
377
|
+
intValue: isSet(object.intValue)
|
|
378
|
+
? globalThis.Number(object.intValue)
|
|
379
|
+
: isSet(object.int_value)
|
|
380
|
+
? globalThis.Number(object.int_value)
|
|
381
|
+
: undefined,
|
|
374
382
|
};
|
|
375
383
|
},
|
|
376
384
|
toJSON(message) {
|
|
@@ -474,11 +482,17 @@ exports.RuntimeInfo = {
|
|
|
474
482
|
},
|
|
475
483
|
fromJSON(object) {
|
|
476
484
|
return {
|
|
477
|
-
sdkVersion: isSet(object.sdkVersion)
|
|
485
|
+
sdkVersion: isSet(object.sdkVersion)
|
|
486
|
+
? globalThis.String(object.sdkVersion)
|
|
487
|
+
: isSet(object.sdk_version)
|
|
488
|
+
? globalThis.String(object.sdk_version)
|
|
489
|
+
: undefined,
|
|
478
490
|
language: isSet(object.language) ? sDKSFromJSON(object.language) : undefined,
|
|
479
491
|
languageVersion: isSet(object.languageVersion)
|
|
480
492
|
? globalThis.String(object.languageVersion)
|
|
481
|
-
:
|
|
493
|
+
: isSet(object.language_version)
|
|
494
|
+
? globalThis.String(object.language_version)
|
|
495
|
+
: undefined,
|
|
482
496
|
os: isSet(object.os) ? globalThis.String(object.os) : undefined,
|
|
483
497
|
extra: isSet(object.extra) ? globalThis.String(object.extra) : undefined,
|
|
484
498
|
};
|
|
@@ -542,7 +556,7 @@ exports.WorkerRegisterRequest = {
|
|
|
542
556
|
if (message.slots !== undefined) {
|
|
543
557
|
writer.uint32(32).int32(message.slots);
|
|
544
558
|
}
|
|
545
|
-
Object.entries(message.labels).forEach(([key, value]) => {
|
|
559
|
+
globalThis.Object.entries(message.labels).forEach(([key, value]) => {
|
|
546
560
|
exports.WorkerRegisterRequest_LabelsEntry.encode({ key: key, value }, writer.uint32(42).fork()).join();
|
|
547
561
|
});
|
|
548
562
|
if (message.webhookId !== undefined) {
|
|
@@ -551,7 +565,7 @@ exports.WorkerRegisterRequest = {
|
|
|
551
565
|
if (message.runtimeInfo !== undefined) {
|
|
552
566
|
exports.RuntimeInfo.encode(message.runtimeInfo, writer.uint32(58).fork()).join();
|
|
553
567
|
}
|
|
554
|
-
Object.entries(message.slotConfig).forEach(([key, value]) => {
|
|
568
|
+
globalThis.Object.entries(message.slotConfig).forEach(([key, value]) => {
|
|
555
569
|
exports.WorkerRegisterRequest_SlotConfigEntry.encode({ key: key, value }, writer.uint32(74).fork()).join();
|
|
556
570
|
});
|
|
557
571
|
return writer;
|
|
@@ -635,7 +649,11 @@ exports.WorkerRegisterRequest = {
|
|
|
635
649
|
},
|
|
636
650
|
fromJSON(object) {
|
|
637
651
|
return {
|
|
638
|
-
workerName: isSet(object.workerName)
|
|
652
|
+
workerName: isSet(object.workerName)
|
|
653
|
+
? globalThis.String(object.workerName)
|
|
654
|
+
: isSet(object.worker_name)
|
|
655
|
+
? globalThis.String(object.worker_name)
|
|
656
|
+
: '',
|
|
639
657
|
actions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.actions)
|
|
640
658
|
? object.actions.map((e) => globalThis.String(e))
|
|
641
659
|
: [],
|
|
@@ -644,19 +662,32 @@ exports.WorkerRegisterRequest = {
|
|
|
644
662
|
: [],
|
|
645
663
|
slots: isSet(object.slots) ? globalThis.Number(object.slots) : undefined,
|
|
646
664
|
labels: isObject(object.labels)
|
|
647
|
-
? Object.entries(object.labels).reduce((acc, [key, value]) => {
|
|
665
|
+
? globalThis.Object.entries(object.labels).reduce((acc, [key, value]) => {
|
|
648
666
|
acc[key] = exports.WorkerLabels.fromJSON(value);
|
|
649
667
|
return acc;
|
|
650
668
|
}, {})
|
|
651
669
|
: {},
|
|
652
|
-
webhookId: isSet(object.webhookId)
|
|
653
|
-
|
|
670
|
+
webhookId: isSet(object.webhookId)
|
|
671
|
+
? globalThis.String(object.webhookId)
|
|
672
|
+
: isSet(object.webhook_id)
|
|
673
|
+
? globalThis.String(object.webhook_id)
|
|
674
|
+
: undefined,
|
|
675
|
+
runtimeInfo: isSet(object.runtimeInfo)
|
|
676
|
+
? exports.RuntimeInfo.fromJSON(object.runtimeInfo)
|
|
677
|
+
: isSet(object.runtime_info)
|
|
678
|
+
? exports.RuntimeInfo.fromJSON(object.runtime_info)
|
|
679
|
+
: undefined,
|
|
654
680
|
slotConfig: isObject(object.slotConfig)
|
|
655
|
-
? Object.entries(object.slotConfig).reduce((acc, [key, value]) => {
|
|
656
|
-
acc[key] = Number(value);
|
|
681
|
+
? globalThis.Object.entries(object.slotConfig).reduce((acc, [key, value]) => {
|
|
682
|
+
acc[key] = globalThis.Number(value);
|
|
657
683
|
return acc;
|
|
658
684
|
}, {})
|
|
659
|
-
:
|
|
685
|
+
: isObject(object.slot_config)
|
|
686
|
+
? globalThis.Object.entries(object.slot_config).reduce((acc, [key, value]) => {
|
|
687
|
+
acc[key] = globalThis.Number(value);
|
|
688
|
+
return acc;
|
|
689
|
+
}, {})
|
|
690
|
+
: {},
|
|
660
691
|
};
|
|
661
692
|
},
|
|
662
693
|
toJSON(message) {
|
|
@@ -675,7 +706,7 @@ exports.WorkerRegisterRequest = {
|
|
|
675
706
|
obj.slots = Math.round(message.slots);
|
|
676
707
|
}
|
|
677
708
|
if (message.labels) {
|
|
678
|
-
const entries = Object.entries(message.labels);
|
|
709
|
+
const entries = globalThis.Object.entries(message.labels);
|
|
679
710
|
if (entries.length > 0) {
|
|
680
711
|
obj.labels = {};
|
|
681
712
|
entries.forEach(([k, v]) => {
|
|
@@ -690,7 +721,7 @@ exports.WorkerRegisterRequest = {
|
|
|
690
721
|
obj.runtimeInfo = exports.RuntimeInfo.toJSON(message.runtimeInfo);
|
|
691
722
|
}
|
|
692
723
|
if (message.slotConfig) {
|
|
693
|
-
const entries = Object.entries(message.slotConfig);
|
|
724
|
+
const entries = globalThis.Object.entries(message.slotConfig);
|
|
694
725
|
if (entries.length > 0) {
|
|
695
726
|
obj.slotConfig = {};
|
|
696
727
|
entries.forEach(([k, v]) => {
|
|
@@ -710,7 +741,7 @@ exports.WorkerRegisterRequest = {
|
|
|
710
741
|
message.actions = ((_b = object.actions) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
711
742
|
message.services = ((_c = object.services) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
712
743
|
message.slots = (_d = object.slots) !== null && _d !== void 0 ? _d : undefined;
|
|
713
|
-
message.labels = Object.entries((_e = object.labels) !== null && _e !== void 0 ? _e : {}).reduce((acc, [key, value]) => {
|
|
744
|
+
message.labels = globalThis.Object.entries((_e = object.labels) !== null && _e !== void 0 ? _e : {}).reduce((acc, [key, value]) => {
|
|
714
745
|
if (value !== undefined) {
|
|
715
746
|
acc[key] = exports.WorkerLabels.fromPartial(value);
|
|
716
747
|
}
|
|
@@ -721,7 +752,7 @@ exports.WorkerRegisterRequest = {
|
|
|
721
752
|
object.runtimeInfo !== undefined && object.runtimeInfo !== null
|
|
722
753
|
? exports.RuntimeInfo.fromPartial(object.runtimeInfo)
|
|
723
754
|
: undefined;
|
|
724
|
-
message.slotConfig = Object.entries((_g = object.slotConfig) !== null && _g !== void 0 ? _g : {}).reduce((acc, [key, value]) => {
|
|
755
|
+
message.slotConfig = globalThis.Object.entries((_g = object.slotConfig) !== null && _g !== void 0 ? _g : {}).reduce((acc, [key, value]) => {
|
|
725
756
|
if (value !== undefined) {
|
|
726
757
|
acc[key] = globalThis.Number(value);
|
|
727
758
|
}
|
|
@@ -925,9 +956,21 @@ exports.WorkerRegisterResponse = {
|
|
|
925
956
|
},
|
|
926
957
|
fromJSON(object) {
|
|
927
958
|
return {
|
|
928
|
-
tenantId: isSet(object.tenantId)
|
|
929
|
-
|
|
930
|
-
|
|
959
|
+
tenantId: isSet(object.tenantId)
|
|
960
|
+
? globalThis.String(object.tenantId)
|
|
961
|
+
: isSet(object.tenant_id)
|
|
962
|
+
? globalThis.String(object.tenant_id)
|
|
963
|
+
: '',
|
|
964
|
+
workerId: isSet(object.workerId)
|
|
965
|
+
? globalThis.String(object.workerId)
|
|
966
|
+
: isSet(object.worker_id)
|
|
967
|
+
? globalThis.String(object.worker_id)
|
|
968
|
+
: '',
|
|
969
|
+
workerName: isSet(object.workerName)
|
|
970
|
+
? globalThis.String(object.workerName)
|
|
971
|
+
: isSet(object.worker_name)
|
|
972
|
+
? globalThis.String(object.worker_name)
|
|
973
|
+
: '',
|
|
931
974
|
};
|
|
932
975
|
},
|
|
933
976
|
toJSON(message) {
|
|
@@ -963,7 +1006,7 @@ exports.UpsertWorkerLabelsRequest = {
|
|
|
963
1006
|
if (message.workerId !== '') {
|
|
964
1007
|
writer.uint32(10).string(message.workerId);
|
|
965
1008
|
}
|
|
966
|
-
Object.entries(message.labels).forEach(([key, value]) => {
|
|
1009
|
+
globalThis.Object.entries(message.labels).forEach(([key, value]) => {
|
|
967
1010
|
exports.UpsertWorkerLabelsRequest_LabelsEntry.encode({ key: key, value }, writer.uint32(18).fork()).join();
|
|
968
1011
|
});
|
|
969
1012
|
return writer;
|
|
@@ -1002,9 +1045,13 @@ exports.UpsertWorkerLabelsRequest = {
|
|
|
1002
1045
|
},
|
|
1003
1046
|
fromJSON(object) {
|
|
1004
1047
|
return {
|
|
1005
|
-
workerId: isSet(object.workerId)
|
|
1048
|
+
workerId: isSet(object.workerId)
|
|
1049
|
+
? globalThis.String(object.workerId)
|
|
1050
|
+
: isSet(object.worker_id)
|
|
1051
|
+
? globalThis.String(object.worker_id)
|
|
1052
|
+
: '',
|
|
1006
1053
|
labels: isObject(object.labels)
|
|
1007
|
-
? Object.entries(object.labels).reduce((acc, [key, value]) => {
|
|
1054
|
+
? globalThis.Object.entries(object.labels).reduce((acc, [key, value]) => {
|
|
1008
1055
|
acc[key] = exports.WorkerLabels.fromJSON(value);
|
|
1009
1056
|
return acc;
|
|
1010
1057
|
}, {})
|
|
@@ -1017,7 +1064,7 @@ exports.UpsertWorkerLabelsRequest = {
|
|
|
1017
1064
|
obj.workerId = message.workerId;
|
|
1018
1065
|
}
|
|
1019
1066
|
if (message.labels) {
|
|
1020
|
-
const entries = Object.entries(message.labels);
|
|
1067
|
+
const entries = globalThis.Object.entries(message.labels);
|
|
1021
1068
|
if (entries.length > 0) {
|
|
1022
1069
|
obj.labels = {};
|
|
1023
1070
|
entries.forEach(([k, v]) => {
|
|
@@ -1034,7 +1081,7 @@ exports.UpsertWorkerLabelsRequest = {
|
|
|
1034
1081
|
var _a, _b;
|
|
1035
1082
|
const message = createBaseUpsertWorkerLabelsRequest();
|
|
1036
1083
|
message.workerId = (_a = object.workerId) !== null && _a !== void 0 ? _a : '';
|
|
1037
|
-
message.labels = Object.entries((_b = object.labels) !== null && _b !== void 0 ? _b : {}).reduce((acc, [key, value]) => {
|
|
1084
|
+
message.labels = globalThis.Object.entries((_b = object.labels) !== null && _b !== void 0 ? _b : {}).reduce((acc, [key, value]) => {
|
|
1038
1085
|
if (value !== undefined) {
|
|
1039
1086
|
acc[key] = exports.WorkerLabels.fromPartial(value);
|
|
1040
1087
|
}
|
|
@@ -1159,8 +1206,16 @@ exports.UpsertWorkerLabelsResponse = {
|
|
|
1159
1206
|
},
|
|
1160
1207
|
fromJSON(object) {
|
|
1161
1208
|
return {
|
|
1162
|
-
tenantId: isSet(object.tenantId)
|
|
1163
|
-
|
|
1209
|
+
tenantId: isSet(object.tenantId)
|
|
1210
|
+
? globalThis.String(object.tenantId)
|
|
1211
|
+
: isSet(object.tenant_id)
|
|
1212
|
+
? globalThis.String(object.tenant_id)
|
|
1213
|
+
: '',
|
|
1214
|
+
workerId: isSet(object.workerId)
|
|
1215
|
+
? globalThis.String(object.workerId)
|
|
1216
|
+
: isSet(object.worker_id)
|
|
1217
|
+
? globalThis.String(object.worker_id)
|
|
1218
|
+
: '',
|
|
1164
1219
|
};
|
|
1165
1220
|
},
|
|
1166
1221
|
toJSON(message) {
|
|
@@ -1206,6 +1261,7 @@ function createBaseAssignedAction() {
|
|
|
1206
1261
|
priority: 0,
|
|
1207
1262
|
workflowId: undefined,
|
|
1208
1263
|
workflowVersionId: undefined,
|
|
1264
|
+
durableTaskInvocationCount: undefined,
|
|
1209
1265
|
};
|
|
1210
1266
|
}
|
|
1211
1267
|
exports.AssignedAction = {
|
|
@@ -1270,6 +1326,9 @@ exports.AssignedAction = {
|
|
|
1270
1326
|
if (message.workflowVersionId !== undefined) {
|
|
1271
1327
|
writer.uint32(162).string(message.workflowVersionId);
|
|
1272
1328
|
}
|
|
1329
|
+
if (message.durableTaskInvocationCount !== undefined) {
|
|
1330
|
+
writer.uint32(168).int32(message.durableTaskInvocationCount);
|
|
1331
|
+
}
|
|
1273
1332
|
return writer;
|
|
1274
1333
|
},
|
|
1275
1334
|
decode(input, length) {
|
|
@@ -1419,6 +1478,13 @@ exports.AssignedAction = {
|
|
|
1419
1478
|
message.workflowVersionId = reader.string();
|
|
1420
1479
|
continue;
|
|
1421
1480
|
}
|
|
1481
|
+
case 21: {
|
|
1482
|
+
if (tag !== 168) {
|
|
1483
|
+
break;
|
|
1484
|
+
}
|
|
1485
|
+
message.durableTaskInvocationCount = reader.int32();
|
|
1486
|
+
continue;
|
|
1487
|
+
}
|
|
1422
1488
|
}
|
|
1423
1489
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1424
1490
|
break;
|
|
@@ -1429,40 +1495,107 @@ exports.AssignedAction = {
|
|
|
1429
1495
|
},
|
|
1430
1496
|
fromJSON(object) {
|
|
1431
1497
|
return {
|
|
1432
|
-
tenantId: isSet(object.tenantId)
|
|
1433
|
-
|
|
1498
|
+
tenantId: isSet(object.tenantId)
|
|
1499
|
+
? globalThis.String(object.tenantId)
|
|
1500
|
+
: isSet(object.tenant_id)
|
|
1501
|
+
? globalThis.String(object.tenant_id)
|
|
1502
|
+
: '',
|
|
1503
|
+
workflowRunId: isSet(object.workflowRunId)
|
|
1504
|
+
? globalThis.String(object.workflowRunId)
|
|
1505
|
+
: isSet(object.workflow_run_id)
|
|
1506
|
+
? globalThis.String(object.workflow_run_id)
|
|
1507
|
+
: '',
|
|
1434
1508
|
getGroupKeyRunId: isSet(object.getGroupKeyRunId)
|
|
1435
1509
|
? globalThis.String(object.getGroupKeyRunId)
|
|
1436
|
-
:
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1510
|
+
: isSet(object.get_group_key_run_id)
|
|
1511
|
+
? globalThis.String(object.get_group_key_run_id)
|
|
1512
|
+
: '',
|
|
1513
|
+
jobId: isSet(object.jobId)
|
|
1514
|
+
? globalThis.String(object.jobId)
|
|
1515
|
+
: isSet(object.job_id)
|
|
1516
|
+
? globalThis.String(object.job_id)
|
|
1517
|
+
: '',
|
|
1518
|
+
jobName: isSet(object.jobName)
|
|
1519
|
+
? globalThis.String(object.jobName)
|
|
1520
|
+
: isSet(object.job_name)
|
|
1521
|
+
? globalThis.String(object.job_name)
|
|
1522
|
+
: '',
|
|
1523
|
+
jobRunId: isSet(object.jobRunId)
|
|
1524
|
+
? globalThis.String(object.jobRunId)
|
|
1525
|
+
: isSet(object.job_run_id)
|
|
1526
|
+
? globalThis.String(object.job_run_id)
|
|
1527
|
+
: '',
|
|
1528
|
+
taskId: isSet(object.taskId)
|
|
1529
|
+
? globalThis.String(object.taskId)
|
|
1530
|
+
: isSet(object.task_id)
|
|
1531
|
+
? globalThis.String(object.task_id)
|
|
1532
|
+
: '',
|
|
1441
1533
|
taskRunExternalId: isSet(object.taskRunExternalId)
|
|
1442
1534
|
? globalThis.String(object.taskRunExternalId)
|
|
1443
|
-
:
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1535
|
+
: isSet(object.task_run_external_id)
|
|
1536
|
+
? globalThis.String(object.task_run_external_id)
|
|
1537
|
+
: '',
|
|
1538
|
+
actionId: isSet(object.actionId)
|
|
1539
|
+
? globalThis.String(object.actionId)
|
|
1540
|
+
: isSet(object.action_id)
|
|
1541
|
+
? globalThis.String(object.action_id)
|
|
1542
|
+
: '',
|
|
1543
|
+
actionType: isSet(object.actionType)
|
|
1544
|
+
? actionTypeFromJSON(object.actionType)
|
|
1545
|
+
: isSet(object.action_type)
|
|
1546
|
+
? actionTypeFromJSON(object.action_type)
|
|
1547
|
+
: 0,
|
|
1548
|
+
actionPayload: isSet(object.actionPayload)
|
|
1549
|
+
? globalThis.String(object.actionPayload)
|
|
1550
|
+
: isSet(object.action_payload)
|
|
1551
|
+
? globalThis.String(object.action_payload)
|
|
1552
|
+
: '',
|
|
1553
|
+
taskName: isSet(object.taskName)
|
|
1554
|
+
? globalThis.String(object.taskName)
|
|
1555
|
+
: isSet(object.task_name)
|
|
1556
|
+
? globalThis.String(object.task_name)
|
|
1557
|
+
: '',
|
|
1558
|
+
retryCount: isSet(object.retryCount)
|
|
1559
|
+
? globalThis.Number(object.retryCount)
|
|
1560
|
+
: isSet(object.retry_count)
|
|
1561
|
+
? globalThis.Number(object.retry_count)
|
|
1562
|
+
: 0,
|
|
1449
1563
|
additionalMetadata: isSet(object.additionalMetadata)
|
|
1450
1564
|
? globalThis.String(object.additionalMetadata)
|
|
1451
|
-
:
|
|
1565
|
+
: isSet(object.additional_metadata)
|
|
1566
|
+
? globalThis.String(object.additional_metadata)
|
|
1567
|
+
: undefined,
|
|
1452
1568
|
childWorkflowIndex: isSet(object.childWorkflowIndex)
|
|
1453
1569
|
? globalThis.Number(object.childWorkflowIndex)
|
|
1454
|
-
:
|
|
1570
|
+
: isSet(object.child_workflow_index)
|
|
1571
|
+
? globalThis.Number(object.child_workflow_index)
|
|
1572
|
+
: undefined,
|
|
1455
1573
|
childWorkflowKey: isSet(object.childWorkflowKey)
|
|
1456
1574
|
? globalThis.String(object.childWorkflowKey)
|
|
1457
|
-
:
|
|
1575
|
+
: isSet(object.child_workflow_key)
|
|
1576
|
+
? globalThis.String(object.child_workflow_key)
|
|
1577
|
+
: undefined,
|
|
1458
1578
|
parentWorkflowRunId: isSet(object.parentWorkflowRunId)
|
|
1459
1579
|
? globalThis.String(object.parentWorkflowRunId)
|
|
1460
|
-
:
|
|
1580
|
+
: isSet(object.parent_workflow_run_id)
|
|
1581
|
+
? globalThis.String(object.parent_workflow_run_id)
|
|
1582
|
+
: undefined,
|
|
1461
1583
|
priority: isSet(object.priority) ? globalThis.Number(object.priority) : 0,
|
|
1462
|
-
workflowId: isSet(object.workflowId)
|
|
1584
|
+
workflowId: isSet(object.workflowId)
|
|
1585
|
+
? globalThis.String(object.workflowId)
|
|
1586
|
+
: isSet(object.workflow_id)
|
|
1587
|
+
? globalThis.String(object.workflow_id)
|
|
1588
|
+
: undefined,
|
|
1463
1589
|
workflowVersionId: isSet(object.workflowVersionId)
|
|
1464
1590
|
? globalThis.String(object.workflowVersionId)
|
|
1465
|
-
:
|
|
1591
|
+
: isSet(object.workflow_version_id)
|
|
1592
|
+
? globalThis.String(object.workflow_version_id)
|
|
1593
|
+
: undefined,
|
|
1594
|
+
durableTaskInvocationCount: isSet(object.durableTaskInvocationCount)
|
|
1595
|
+
? globalThis.Number(object.durableTaskInvocationCount)
|
|
1596
|
+
: isSet(object.durable_task_invocation_count)
|
|
1597
|
+
? globalThis.Number(object.durable_task_invocation_count)
|
|
1598
|
+
: undefined,
|
|
1466
1599
|
};
|
|
1467
1600
|
},
|
|
1468
1601
|
toJSON(message) {
|
|
@@ -1527,13 +1660,16 @@ exports.AssignedAction = {
|
|
|
1527
1660
|
if (message.workflowVersionId !== undefined) {
|
|
1528
1661
|
obj.workflowVersionId = message.workflowVersionId;
|
|
1529
1662
|
}
|
|
1663
|
+
if (message.durableTaskInvocationCount !== undefined) {
|
|
1664
|
+
obj.durableTaskInvocationCount = Math.round(message.durableTaskInvocationCount);
|
|
1665
|
+
}
|
|
1530
1666
|
return obj;
|
|
1531
1667
|
},
|
|
1532
1668
|
create(base) {
|
|
1533
1669
|
return exports.AssignedAction.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1534
1670
|
},
|
|
1535
1671
|
fromPartial(object) {
|
|
1536
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
1672
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
1537
1673
|
const message = createBaseAssignedAction();
|
|
1538
1674
|
message.tenantId = (_a = object.tenantId) !== null && _a !== void 0 ? _a : '';
|
|
1539
1675
|
message.workflowRunId = (_b = object.workflowRunId) !== null && _b !== void 0 ? _b : '';
|
|
@@ -1555,6 +1691,7 @@ exports.AssignedAction = {
|
|
|
1555
1691
|
message.priority = (_t = object.priority) !== null && _t !== void 0 ? _t : 0;
|
|
1556
1692
|
message.workflowId = (_u = object.workflowId) !== null && _u !== void 0 ? _u : undefined;
|
|
1557
1693
|
message.workflowVersionId = (_v = object.workflowVersionId) !== null && _v !== void 0 ? _v : undefined;
|
|
1694
|
+
message.durableTaskInvocationCount = (_w = object.durableTaskInvocationCount) !== null && _w !== void 0 ? _w : undefined;
|
|
1558
1695
|
return message;
|
|
1559
1696
|
},
|
|
1560
1697
|
};
|
|
@@ -1591,7 +1728,13 @@ exports.WorkerListenRequest = {
|
|
|
1591
1728
|
return message;
|
|
1592
1729
|
},
|
|
1593
1730
|
fromJSON(object) {
|
|
1594
|
-
return {
|
|
1731
|
+
return {
|
|
1732
|
+
workerId: isSet(object.workerId)
|
|
1733
|
+
? globalThis.String(object.workerId)
|
|
1734
|
+
: isSet(object.worker_id)
|
|
1735
|
+
? globalThis.String(object.worker_id)
|
|
1736
|
+
: '',
|
|
1737
|
+
};
|
|
1595
1738
|
},
|
|
1596
1739
|
toJSON(message) {
|
|
1597
1740
|
const obj = {};
|
|
@@ -1643,7 +1786,13 @@ exports.WorkerUnsubscribeRequest = {
|
|
|
1643
1786
|
return message;
|
|
1644
1787
|
},
|
|
1645
1788
|
fromJSON(object) {
|
|
1646
|
-
return {
|
|
1789
|
+
return {
|
|
1790
|
+
workerId: isSet(object.workerId)
|
|
1791
|
+
? globalThis.String(object.workerId)
|
|
1792
|
+
: isSet(object.worker_id)
|
|
1793
|
+
? globalThis.String(object.worker_id)
|
|
1794
|
+
: '',
|
|
1795
|
+
};
|
|
1647
1796
|
},
|
|
1648
1797
|
toJSON(message) {
|
|
1649
1798
|
const obj = {};
|
|
@@ -1706,8 +1855,16 @@ exports.WorkerUnsubscribeResponse = {
|
|
|
1706
1855
|
},
|
|
1707
1856
|
fromJSON(object) {
|
|
1708
1857
|
return {
|
|
1709
|
-
tenantId: isSet(object.tenantId)
|
|
1710
|
-
|
|
1858
|
+
tenantId: isSet(object.tenantId)
|
|
1859
|
+
? globalThis.String(object.tenantId)
|
|
1860
|
+
: isSet(object.tenant_id)
|
|
1861
|
+
? globalThis.String(object.tenant_id)
|
|
1862
|
+
: '',
|
|
1863
|
+
workerId: isSet(object.workerId)
|
|
1864
|
+
? globalThis.String(object.workerId)
|
|
1865
|
+
: isSet(object.worker_id)
|
|
1866
|
+
? globalThis.String(object.worker_id)
|
|
1867
|
+
: '',
|
|
1711
1868
|
};
|
|
1712
1869
|
},
|
|
1713
1870
|
toJSON(message) {
|
|
@@ -1833,17 +1990,41 @@ exports.GroupKeyActionEvent = {
|
|
|
1833
1990
|
},
|
|
1834
1991
|
fromJSON(object) {
|
|
1835
1992
|
return {
|
|
1836
|
-
workerId: isSet(object.workerId)
|
|
1837
|
-
|
|
1993
|
+
workerId: isSet(object.workerId)
|
|
1994
|
+
? globalThis.String(object.workerId)
|
|
1995
|
+
: isSet(object.worker_id)
|
|
1996
|
+
? globalThis.String(object.worker_id)
|
|
1997
|
+
: '',
|
|
1998
|
+
workflowRunId: isSet(object.workflowRunId)
|
|
1999
|
+
? globalThis.String(object.workflowRunId)
|
|
2000
|
+
: isSet(object.workflow_run_id)
|
|
2001
|
+
? globalThis.String(object.workflow_run_id)
|
|
2002
|
+
: '',
|
|
1838
2003
|
getGroupKeyRunId: isSet(object.getGroupKeyRunId)
|
|
1839
2004
|
? globalThis.String(object.getGroupKeyRunId)
|
|
1840
|
-
:
|
|
1841
|
-
|
|
2005
|
+
: isSet(object.get_group_key_run_id)
|
|
2006
|
+
? globalThis.String(object.get_group_key_run_id)
|
|
2007
|
+
: '',
|
|
2008
|
+
actionId: isSet(object.actionId)
|
|
2009
|
+
? globalThis.String(object.actionId)
|
|
2010
|
+
: isSet(object.action_id)
|
|
2011
|
+
? globalThis.String(object.action_id)
|
|
2012
|
+
: '',
|
|
1842
2013
|
eventTimestamp: isSet(object.eventTimestamp)
|
|
1843
2014
|
? fromJsonTimestamp(object.eventTimestamp)
|
|
1844
|
-
:
|
|
1845
|
-
|
|
1846
|
-
|
|
2015
|
+
: isSet(object.event_timestamp)
|
|
2016
|
+
? fromJsonTimestamp(object.event_timestamp)
|
|
2017
|
+
: undefined,
|
|
2018
|
+
eventType: isSet(object.eventType)
|
|
2019
|
+
? groupKeyActionEventTypeFromJSON(object.eventType)
|
|
2020
|
+
: isSet(object.event_type)
|
|
2021
|
+
? groupKeyActionEventTypeFromJSON(object.event_type)
|
|
2022
|
+
: 0,
|
|
2023
|
+
eventPayload: isSet(object.eventPayload)
|
|
2024
|
+
? globalThis.String(object.eventPayload)
|
|
2025
|
+
: isSet(object.event_payload)
|
|
2026
|
+
? globalThis.String(object.event_payload)
|
|
2027
|
+
: '',
|
|
1847
2028
|
};
|
|
1848
2029
|
},
|
|
1849
2030
|
toJSON(message) {
|
|
@@ -2033,23 +2214,61 @@ exports.StepActionEvent = {
|
|
|
2033
2214
|
},
|
|
2034
2215
|
fromJSON(object) {
|
|
2035
2216
|
return {
|
|
2036
|
-
workerId: isSet(object.workerId)
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2217
|
+
workerId: isSet(object.workerId)
|
|
2218
|
+
? globalThis.String(object.workerId)
|
|
2219
|
+
: isSet(object.worker_id)
|
|
2220
|
+
? globalThis.String(object.worker_id)
|
|
2221
|
+
: '',
|
|
2222
|
+
jobId: isSet(object.jobId)
|
|
2223
|
+
? globalThis.String(object.jobId)
|
|
2224
|
+
: isSet(object.job_id)
|
|
2225
|
+
? globalThis.String(object.job_id)
|
|
2226
|
+
: '',
|
|
2227
|
+
jobRunId: isSet(object.jobRunId)
|
|
2228
|
+
? globalThis.String(object.jobRunId)
|
|
2229
|
+
: isSet(object.job_run_id)
|
|
2230
|
+
? globalThis.String(object.job_run_id)
|
|
2231
|
+
: '',
|
|
2232
|
+
taskId: isSet(object.taskId)
|
|
2233
|
+
? globalThis.String(object.taskId)
|
|
2234
|
+
: isSet(object.task_id)
|
|
2235
|
+
? globalThis.String(object.task_id)
|
|
2236
|
+
: '',
|
|
2040
2237
|
taskRunExternalId: isSet(object.taskRunExternalId)
|
|
2041
2238
|
? globalThis.String(object.taskRunExternalId)
|
|
2042
|
-
:
|
|
2043
|
-
|
|
2239
|
+
: isSet(object.task_run_external_id)
|
|
2240
|
+
? globalThis.String(object.task_run_external_id)
|
|
2241
|
+
: '',
|
|
2242
|
+
actionId: isSet(object.actionId)
|
|
2243
|
+
? globalThis.String(object.actionId)
|
|
2244
|
+
: isSet(object.action_id)
|
|
2245
|
+
? globalThis.String(object.action_id)
|
|
2246
|
+
: '',
|
|
2044
2247
|
eventTimestamp: isSet(object.eventTimestamp)
|
|
2045
2248
|
? fromJsonTimestamp(object.eventTimestamp)
|
|
2046
|
-
:
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2249
|
+
: isSet(object.event_timestamp)
|
|
2250
|
+
? fromJsonTimestamp(object.event_timestamp)
|
|
2251
|
+
: undefined,
|
|
2252
|
+
eventType: isSet(object.eventType)
|
|
2253
|
+
? stepActionEventTypeFromJSON(object.eventType)
|
|
2254
|
+
: isSet(object.event_type)
|
|
2255
|
+
? stepActionEventTypeFromJSON(object.event_type)
|
|
2256
|
+
: 0,
|
|
2257
|
+
eventPayload: isSet(object.eventPayload)
|
|
2258
|
+
? globalThis.String(object.eventPayload)
|
|
2259
|
+
: isSet(object.event_payload)
|
|
2260
|
+
? globalThis.String(object.event_payload)
|
|
2261
|
+
: '',
|
|
2262
|
+
retryCount: isSet(object.retryCount)
|
|
2263
|
+
? globalThis.Number(object.retryCount)
|
|
2264
|
+
: isSet(object.retry_count)
|
|
2265
|
+
? globalThis.Number(object.retry_count)
|
|
2266
|
+
: undefined,
|
|
2050
2267
|
shouldNotRetry: isSet(object.shouldNotRetry)
|
|
2051
2268
|
? globalThis.Boolean(object.shouldNotRetry)
|
|
2052
|
-
:
|
|
2269
|
+
: isSet(object.should_not_retry)
|
|
2270
|
+
? globalThis.Boolean(object.should_not_retry)
|
|
2271
|
+
: undefined,
|
|
2053
2272
|
};
|
|
2054
2273
|
},
|
|
2055
2274
|
toJSON(message) {
|
|
@@ -2153,8 +2372,16 @@ exports.ActionEventResponse = {
|
|
|
2153
2372
|
},
|
|
2154
2373
|
fromJSON(object) {
|
|
2155
2374
|
return {
|
|
2156
|
-
tenantId: isSet(object.tenantId)
|
|
2157
|
-
|
|
2375
|
+
tenantId: isSet(object.tenantId)
|
|
2376
|
+
? globalThis.String(object.tenantId)
|
|
2377
|
+
: isSet(object.tenant_id)
|
|
2378
|
+
? globalThis.String(object.tenant_id)
|
|
2379
|
+
: '',
|
|
2380
|
+
workerId: isSet(object.workerId)
|
|
2381
|
+
? globalThis.String(object.workerId)
|
|
2382
|
+
: isSet(object.worker_id)
|
|
2383
|
+
? globalThis.String(object.worker_id)
|
|
2384
|
+
: '',
|
|
2158
2385
|
};
|
|
2159
2386
|
},
|
|
2160
2387
|
toJSON(message) {
|
|
@@ -2234,13 +2461,19 @@ exports.SubscribeToWorkflowEventsRequest = {
|
|
|
2234
2461
|
return {
|
|
2235
2462
|
workflowRunId: isSet(object.workflowRunId)
|
|
2236
2463
|
? globalThis.String(object.workflowRunId)
|
|
2237
|
-
:
|
|
2464
|
+
: isSet(object.workflow_run_id)
|
|
2465
|
+
? globalThis.String(object.workflow_run_id)
|
|
2466
|
+
: undefined,
|
|
2238
2467
|
additionalMetaKey: isSet(object.additionalMetaKey)
|
|
2239
2468
|
? globalThis.String(object.additionalMetaKey)
|
|
2240
|
-
:
|
|
2469
|
+
: isSet(object.additional_meta_key)
|
|
2470
|
+
? globalThis.String(object.additional_meta_key)
|
|
2471
|
+
: undefined,
|
|
2241
2472
|
additionalMetaValue: isSet(object.additionalMetaValue)
|
|
2242
2473
|
? globalThis.String(object.additionalMetaValue)
|
|
2243
|
-
:
|
|
2474
|
+
: isSet(object.additional_meta_value)
|
|
2475
|
+
? globalThis.String(object.additional_meta_value)
|
|
2476
|
+
: undefined,
|
|
2244
2477
|
};
|
|
2245
2478
|
},
|
|
2246
2479
|
toJSON(message) {
|
|
@@ -2302,7 +2535,11 @@ exports.SubscribeToWorkflowRunsRequest = {
|
|
|
2302
2535
|
},
|
|
2303
2536
|
fromJSON(object) {
|
|
2304
2537
|
return {
|
|
2305
|
-
workflowRunId: isSet(object.workflowRunId)
|
|
2538
|
+
workflowRunId: isSet(object.workflowRunId)
|
|
2539
|
+
? globalThis.String(object.workflowRunId)
|
|
2540
|
+
: isSet(object.workflow_run_id)
|
|
2541
|
+
? globalThis.String(object.workflow_run_id)
|
|
2542
|
+
: '',
|
|
2306
2543
|
};
|
|
2307
2544
|
},
|
|
2308
2545
|
toJSON(message) {
|
|
@@ -2457,18 +2694,52 @@ exports.WorkflowEvent = {
|
|
|
2457
2694
|
},
|
|
2458
2695
|
fromJSON(object) {
|
|
2459
2696
|
return {
|
|
2460
|
-
workflowRunId: isSet(object.workflowRunId)
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2697
|
+
workflowRunId: isSet(object.workflowRunId)
|
|
2698
|
+
? globalThis.String(object.workflowRunId)
|
|
2699
|
+
: isSet(object.workflow_run_id)
|
|
2700
|
+
? globalThis.String(object.workflow_run_id)
|
|
2701
|
+
: '',
|
|
2702
|
+
resourceType: isSet(object.resourceType)
|
|
2703
|
+
? resourceTypeFromJSON(object.resourceType)
|
|
2704
|
+
: isSet(object.resource_type)
|
|
2705
|
+
? resourceTypeFromJSON(object.resource_type)
|
|
2706
|
+
: 0,
|
|
2707
|
+
eventType: isSet(object.eventType)
|
|
2708
|
+
? resourceEventTypeFromJSON(object.eventType)
|
|
2709
|
+
: isSet(object.event_type)
|
|
2710
|
+
? resourceEventTypeFromJSON(object.event_type)
|
|
2711
|
+
: 0,
|
|
2712
|
+
resourceId: isSet(object.resourceId)
|
|
2713
|
+
? globalThis.String(object.resourceId)
|
|
2714
|
+
: isSet(object.resource_id)
|
|
2715
|
+
? globalThis.String(object.resource_id)
|
|
2716
|
+
: '',
|
|
2464
2717
|
eventTimestamp: isSet(object.eventTimestamp)
|
|
2465
2718
|
? fromJsonTimestamp(object.eventTimestamp)
|
|
2466
|
-
:
|
|
2467
|
-
|
|
2719
|
+
: isSet(object.event_timestamp)
|
|
2720
|
+
? fromJsonTimestamp(object.event_timestamp)
|
|
2721
|
+
: undefined,
|
|
2722
|
+
eventPayload: isSet(object.eventPayload)
|
|
2723
|
+
? globalThis.String(object.eventPayload)
|
|
2724
|
+
: isSet(object.event_payload)
|
|
2725
|
+
? globalThis.String(object.event_payload)
|
|
2726
|
+
: '',
|
|
2468
2727
|
hangup: isSet(object.hangup) ? globalThis.Boolean(object.hangup) : false,
|
|
2469
|
-
taskRetries: isSet(object.taskRetries)
|
|
2470
|
-
|
|
2471
|
-
|
|
2728
|
+
taskRetries: isSet(object.taskRetries)
|
|
2729
|
+
? globalThis.Number(object.taskRetries)
|
|
2730
|
+
: isSet(object.task_retries)
|
|
2731
|
+
? globalThis.Number(object.task_retries)
|
|
2732
|
+
: undefined,
|
|
2733
|
+
retryCount: isSet(object.retryCount)
|
|
2734
|
+
? globalThis.Number(object.retryCount)
|
|
2735
|
+
: isSet(object.retry_count)
|
|
2736
|
+
? globalThis.Number(object.retry_count)
|
|
2737
|
+
: undefined,
|
|
2738
|
+
eventIndex: isSet(object.eventIndex)
|
|
2739
|
+
? globalThis.Number(object.eventIndex)
|
|
2740
|
+
: isSet(object.event_index)
|
|
2741
|
+
? globalThis.Number(object.event_index)
|
|
2742
|
+
: undefined,
|
|
2472
2743
|
};
|
|
2473
2744
|
},
|
|
2474
2745
|
toJSON(message) {
|
|
@@ -2588,11 +2859,21 @@ exports.WorkflowRunEvent = {
|
|
|
2588
2859
|
},
|
|
2589
2860
|
fromJSON(object) {
|
|
2590
2861
|
return {
|
|
2591
|
-
workflowRunId: isSet(object.workflowRunId)
|
|
2592
|
-
|
|
2862
|
+
workflowRunId: isSet(object.workflowRunId)
|
|
2863
|
+
? globalThis.String(object.workflowRunId)
|
|
2864
|
+
: isSet(object.workflow_run_id)
|
|
2865
|
+
? globalThis.String(object.workflow_run_id)
|
|
2866
|
+
: '',
|
|
2867
|
+
eventType: isSet(object.eventType)
|
|
2868
|
+
? workflowRunEventTypeFromJSON(object.eventType)
|
|
2869
|
+
: isSet(object.event_type)
|
|
2870
|
+
? workflowRunEventTypeFromJSON(object.event_type)
|
|
2871
|
+
: 0,
|
|
2593
2872
|
eventTimestamp: isSet(object.eventTimestamp)
|
|
2594
2873
|
? fromJsonTimestamp(object.eventTimestamp)
|
|
2595
|
-
:
|
|
2874
|
+
: isSet(object.event_timestamp)
|
|
2875
|
+
? fromJsonTimestamp(object.event_timestamp)
|
|
2876
|
+
: undefined,
|
|
2596
2877
|
results: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.results)
|
|
2597
2878
|
? object.results.map((e) => exports.StepRunResult.fromJSON(e))
|
|
2598
2879
|
: [],
|
|
@@ -2704,9 +2985,19 @@ exports.StepRunResult = {
|
|
|
2704
2985
|
return {
|
|
2705
2986
|
taskRunExternalId: isSet(object.taskRunExternalId)
|
|
2706
2987
|
? globalThis.String(object.taskRunExternalId)
|
|
2707
|
-
:
|
|
2708
|
-
|
|
2709
|
-
|
|
2988
|
+
: isSet(object.task_run_external_id)
|
|
2989
|
+
? globalThis.String(object.task_run_external_id)
|
|
2990
|
+
: '',
|
|
2991
|
+
taskName: isSet(object.taskName)
|
|
2992
|
+
? globalThis.String(object.taskName)
|
|
2993
|
+
: isSet(object.task_name)
|
|
2994
|
+
? globalThis.String(object.task_name)
|
|
2995
|
+
: '',
|
|
2996
|
+
jobRunId: isSet(object.jobRunId)
|
|
2997
|
+
? globalThis.String(object.jobRunId)
|
|
2998
|
+
: isSet(object.job_run_id)
|
|
2999
|
+
? globalThis.String(object.job_run_id)
|
|
3000
|
+
: '',
|
|
2710
3001
|
error: isSet(object.error) ? globalThis.String(object.error) : undefined,
|
|
2711
3002
|
output: isSet(object.output) ? globalThis.String(object.output) : undefined,
|
|
2712
3003
|
};
|
|
@@ -2810,10 +3101,16 @@ exports.OverridesData = {
|
|
|
2810
3101
|
return {
|
|
2811
3102
|
taskRunExternalId: isSet(object.taskRunExternalId)
|
|
2812
3103
|
? globalThis.String(object.taskRunExternalId)
|
|
2813
|
-
:
|
|
3104
|
+
: isSet(object.task_run_external_id)
|
|
3105
|
+
? globalThis.String(object.task_run_external_id)
|
|
3106
|
+
: '',
|
|
2814
3107
|
path: isSet(object.path) ? globalThis.String(object.path) : '',
|
|
2815
3108
|
value: isSet(object.value) ? globalThis.String(object.value) : '',
|
|
2816
|
-
callerFilename: isSet(object.callerFilename)
|
|
3109
|
+
callerFilename: isSet(object.callerFilename)
|
|
3110
|
+
? globalThis.String(object.callerFilename)
|
|
3111
|
+
: isSet(object.caller_filename)
|
|
3112
|
+
? globalThis.String(object.caller_filename)
|
|
3113
|
+
: '',
|
|
2817
3114
|
};
|
|
2818
3115
|
},
|
|
2819
3116
|
toJSON(message) {
|
|
@@ -2926,8 +3223,16 @@ exports.HeartbeatRequest = {
|
|
|
2926
3223
|
},
|
|
2927
3224
|
fromJSON(object) {
|
|
2928
3225
|
return {
|
|
2929
|
-
workerId: isSet(object.workerId)
|
|
2930
|
-
|
|
3226
|
+
workerId: isSet(object.workerId)
|
|
3227
|
+
? globalThis.String(object.workerId)
|
|
3228
|
+
: isSet(object.worker_id)
|
|
3229
|
+
? globalThis.String(object.worker_id)
|
|
3230
|
+
: '',
|
|
3231
|
+
heartbeatAt: isSet(object.heartbeatAt)
|
|
3232
|
+
? fromJsonTimestamp(object.heartbeatAt)
|
|
3233
|
+
: isSet(object.heartbeat_at)
|
|
3234
|
+
? fromJsonTimestamp(object.heartbeat_at)
|
|
3235
|
+
: undefined,
|
|
2931
3236
|
};
|
|
2932
3237
|
},
|
|
2933
3238
|
toJSON(message) {
|
|
@@ -3034,10 +3339,14 @@ exports.RefreshTimeoutRequest = {
|
|
|
3034
3339
|
return {
|
|
3035
3340
|
taskRunExternalId: isSet(object.taskRunExternalId)
|
|
3036
3341
|
? globalThis.String(object.taskRunExternalId)
|
|
3037
|
-
:
|
|
3342
|
+
: isSet(object.task_run_external_id)
|
|
3343
|
+
? globalThis.String(object.task_run_external_id)
|
|
3344
|
+
: '',
|
|
3038
3345
|
incrementTimeoutBy: isSet(object.incrementTimeoutBy)
|
|
3039
3346
|
? globalThis.String(object.incrementTimeoutBy)
|
|
3040
|
-
:
|
|
3347
|
+
: isSet(object.increment_timeout_by)
|
|
3348
|
+
? globalThis.String(object.increment_timeout_by)
|
|
3349
|
+
: '',
|
|
3041
3350
|
};
|
|
3042
3351
|
},
|
|
3043
3352
|
toJSON(message) {
|
|
@@ -3094,7 +3403,13 @@ exports.RefreshTimeoutResponse = {
|
|
|
3094
3403
|
return message;
|
|
3095
3404
|
},
|
|
3096
3405
|
fromJSON(object) {
|
|
3097
|
-
return {
|
|
3406
|
+
return {
|
|
3407
|
+
timeoutAt: isSet(object.timeoutAt)
|
|
3408
|
+
? fromJsonTimestamp(object.timeoutAt)
|
|
3409
|
+
: isSet(object.timeout_at)
|
|
3410
|
+
? fromJsonTimestamp(object.timeout_at)
|
|
3411
|
+
: undefined,
|
|
3412
|
+
};
|
|
3098
3413
|
},
|
|
3099
3414
|
toJSON(message) {
|
|
3100
3415
|
const obj = {};
|
|
@@ -3149,7 +3464,9 @@ exports.ReleaseSlotRequest = {
|
|
|
3149
3464
|
return {
|
|
3150
3465
|
taskRunExternalId: isSet(object.taskRunExternalId)
|
|
3151
3466
|
? globalThis.String(object.taskRunExternalId)
|
|
3152
|
-
:
|
|
3467
|
+
: isSet(object.task_run_external_id)
|
|
3468
|
+
? globalThis.String(object.task_run_external_id)
|
|
3469
|
+
: '',
|
|
3153
3470
|
};
|
|
3154
3471
|
},
|
|
3155
3472
|
toJSON(message) {
|
|
@@ -3206,6 +3523,116 @@ exports.ReleaseSlotResponse = {
|
|
|
3206
3523
|
return message;
|
|
3207
3524
|
},
|
|
3208
3525
|
};
|
|
3526
|
+
function createBaseRestoreEvictedTaskRequest() {
|
|
3527
|
+
return { taskRunExternalId: '' };
|
|
3528
|
+
}
|
|
3529
|
+
exports.RestoreEvictedTaskRequest = {
|
|
3530
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3531
|
+
if (message.taskRunExternalId !== '') {
|
|
3532
|
+
writer.uint32(10).string(message.taskRunExternalId);
|
|
3533
|
+
}
|
|
3534
|
+
return writer;
|
|
3535
|
+
},
|
|
3536
|
+
decode(input, length) {
|
|
3537
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3538
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3539
|
+
const message = createBaseRestoreEvictedTaskRequest();
|
|
3540
|
+
while (reader.pos < end) {
|
|
3541
|
+
const tag = reader.uint32();
|
|
3542
|
+
switch (tag >>> 3) {
|
|
3543
|
+
case 1: {
|
|
3544
|
+
if (tag !== 10) {
|
|
3545
|
+
break;
|
|
3546
|
+
}
|
|
3547
|
+
message.taskRunExternalId = reader.string();
|
|
3548
|
+
continue;
|
|
3549
|
+
}
|
|
3550
|
+
}
|
|
3551
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3552
|
+
break;
|
|
3553
|
+
}
|
|
3554
|
+
reader.skip(tag & 7);
|
|
3555
|
+
}
|
|
3556
|
+
return message;
|
|
3557
|
+
},
|
|
3558
|
+
fromJSON(object) {
|
|
3559
|
+
return {
|
|
3560
|
+
taskRunExternalId: isSet(object.taskRunExternalId)
|
|
3561
|
+
? globalThis.String(object.taskRunExternalId)
|
|
3562
|
+
: isSet(object.task_run_external_id)
|
|
3563
|
+
? globalThis.String(object.task_run_external_id)
|
|
3564
|
+
: '',
|
|
3565
|
+
};
|
|
3566
|
+
},
|
|
3567
|
+
toJSON(message) {
|
|
3568
|
+
const obj = {};
|
|
3569
|
+
if (message.taskRunExternalId !== '') {
|
|
3570
|
+
obj.taskRunExternalId = message.taskRunExternalId;
|
|
3571
|
+
}
|
|
3572
|
+
return obj;
|
|
3573
|
+
},
|
|
3574
|
+
create(base) {
|
|
3575
|
+
return exports.RestoreEvictedTaskRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3576
|
+
},
|
|
3577
|
+
fromPartial(object) {
|
|
3578
|
+
var _a;
|
|
3579
|
+
const message = createBaseRestoreEvictedTaskRequest();
|
|
3580
|
+
message.taskRunExternalId = (_a = object.taskRunExternalId) !== null && _a !== void 0 ? _a : '';
|
|
3581
|
+
return message;
|
|
3582
|
+
},
|
|
3583
|
+
};
|
|
3584
|
+
function createBaseRestoreEvictedTaskResponse() {
|
|
3585
|
+
return { requeued: false };
|
|
3586
|
+
}
|
|
3587
|
+
exports.RestoreEvictedTaskResponse = {
|
|
3588
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3589
|
+
if (message.requeued !== false) {
|
|
3590
|
+
writer.uint32(8).bool(message.requeued);
|
|
3591
|
+
}
|
|
3592
|
+
return writer;
|
|
3593
|
+
},
|
|
3594
|
+
decode(input, length) {
|
|
3595
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3596
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3597
|
+
const message = createBaseRestoreEvictedTaskResponse();
|
|
3598
|
+
while (reader.pos < end) {
|
|
3599
|
+
const tag = reader.uint32();
|
|
3600
|
+
switch (tag >>> 3) {
|
|
3601
|
+
case 1: {
|
|
3602
|
+
if (tag !== 8) {
|
|
3603
|
+
break;
|
|
3604
|
+
}
|
|
3605
|
+
message.requeued = reader.bool();
|
|
3606
|
+
continue;
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3610
|
+
break;
|
|
3611
|
+
}
|
|
3612
|
+
reader.skip(tag & 7);
|
|
3613
|
+
}
|
|
3614
|
+
return message;
|
|
3615
|
+
},
|
|
3616
|
+
fromJSON(object) {
|
|
3617
|
+
return { requeued: isSet(object.requeued) ? globalThis.Boolean(object.requeued) : false };
|
|
3618
|
+
},
|
|
3619
|
+
toJSON(message) {
|
|
3620
|
+
const obj = {};
|
|
3621
|
+
if (message.requeued !== false) {
|
|
3622
|
+
obj.requeued = message.requeued;
|
|
3623
|
+
}
|
|
3624
|
+
return obj;
|
|
3625
|
+
},
|
|
3626
|
+
create(base) {
|
|
3627
|
+
return exports.RestoreEvictedTaskResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3628
|
+
},
|
|
3629
|
+
fromPartial(object) {
|
|
3630
|
+
var _a;
|
|
3631
|
+
const message = createBaseRestoreEvictedTaskResponse();
|
|
3632
|
+
message.requeued = (_a = object.requeued) !== null && _a !== void 0 ? _a : false;
|
|
3633
|
+
return message;
|
|
3634
|
+
},
|
|
3635
|
+
};
|
|
3209
3636
|
function createBaseGetVersionRequest() {
|
|
3210
3637
|
return {};
|
|
3211
3638
|
}
|
|
@@ -3400,6 +3827,14 @@ exports.DispatcherDefinition = {
|
|
|
3400
3827
|
responseStream: false,
|
|
3401
3828
|
options: {},
|
|
3402
3829
|
},
|
|
3830
|
+
restoreEvictedTask: {
|
|
3831
|
+
name: 'RestoreEvictedTask',
|
|
3832
|
+
requestType: exports.RestoreEvictedTaskRequest,
|
|
3833
|
+
requestStream: false,
|
|
3834
|
+
responseType: exports.RestoreEvictedTaskResponse,
|
|
3835
|
+
responseStream: false,
|
|
3836
|
+
options: {},
|
|
3837
|
+
},
|
|
3403
3838
|
upsertWorkerLabels: {
|
|
3404
3839
|
name: 'UpsertWorkerLabels',
|
|
3405
3840
|
requestType: exports.UpsertWorkerLabelsRequest,
|