@hatchet-dev/typescript-sdk 0.1.29 → 0.1.30
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/clients/admin/admin-client.d.ts +2 -2
- package/clients/admin/admin-client.js +3 -3
- package/clients/hatchet-client/hatchet-client.js +1 -0
- package/package.json +2 -3
- package/protoc/events/events.d.ts +0 -50
- package/protoc/events/events.js +1 -128
- package/protoc/workflows/workflows.d.ts +1 -227
- package/protoc/workflows/workflows.js +114 -1061
|
@@ -23,10 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.WorkflowServiceDefinition = exports.TriggerWorkflowResponse = exports.TriggerWorkflowRequest = exports.
|
|
26
|
+
exports.WorkflowServiceDefinition = exports.TriggerWorkflowResponse = exports.TriggerWorkflowRequest = exports.WorkflowTriggerCronRef = exports.WorkflowTriggerEventRef = exports.WorkflowVersion = exports.ScheduleWorkflowRequest = exports.ListWorkflowsRequest = exports.CreateWorkflowStepOpts = exports.CreateWorkflowJobOpts = exports.WorkflowConcurrencyOpts = exports.CreateWorkflowVersionOpts = exports.PutWorkflowRequest = exports.concurrencyLimitStrategyToJSON = exports.concurrencyLimitStrategyFromJSON = exports.ConcurrencyLimitStrategy = exports.protobufPackage = void 0;
|
|
27
27
|
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
28
28
|
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
29
|
-
const wrappers_1 = require("../google/protobuf/wrappers");
|
|
30
29
|
exports.protobufPackage = "";
|
|
31
30
|
var ConcurrencyLimitStrategy;
|
|
32
31
|
(function (ConcurrencyLimitStrategy) {
|
|
@@ -666,839 +665,25 @@ exports.ListWorkflowsRequest = {
|
|
|
666
665
|
},
|
|
667
666
|
};
|
|
668
667
|
function createBaseScheduleWorkflowRequest() {
|
|
669
|
-
return {
|
|
668
|
+
return { name: "", schedules: [], input: "" };
|
|
670
669
|
}
|
|
671
670
|
exports.ScheduleWorkflowRequest = {
|
|
672
671
|
encode(message, writer = _m0.Writer.create()) {
|
|
673
|
-
if (message.workflowId !== "") {
|
|
674
|
-
writer.uint32(10).string(message.workflowId);
|
|
675
|
-
}
|
|
676
|
-
for (const v of message.schedules) {
|
|
677
|
-
timestamp_1.Timestamp.encode(toTimestamp(v), writer.uint32(18).fork()).ldelim();
|
|
678
|
-
}
|
|
679
|
-
if (message.input !== "") {
|
|
680
|
-
writer.uint32(26).string(message.input);
|
|
681
|
-
}
|
|
682
|
-
return writer;
|
|
683
|
-
},
|
|
684
|
-
decode(input, length) {
|
|
685
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
686
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
687
|
-
const message = createBaseScheduleWorkflowRequest();
|
|
688
|
-
while (reader.pos < end) {
|
|
689
|
-
const tag = reader.uint32();
|
|
690
|
-
switch (tag >>> 3) {
|
|
691
|
-
case 1:
|
|
692
|
-
if (tag !== 10) {
|
|
693
|
-
break;
|
|
694
|
-
}
|
|
695
|
-
message.workflowId = reader.string();
|
|
696
|
-
continue;
|
|
697
|
-
case 2:
|
|
698
|
-
if (tag !== 18) {
|
|
699
|
-
break;
|
|
700
|
-
}
|
|
701
|
-
message.schedules.push(fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32())));
|
|
702
|
-
continue;
|
|
703
|
-
case 3:
|
|
704
|
-
if (tag !== 26) {
|
|
705
|
-
break;
|
|
706
|
-
}
|
|
707
|
-
message.input = reader.string();
|
|
708
|
-
continue;
|
|
709
|
-
}
|
|
710
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
711
|
-
break;
|
|
712
|
-
}
|
|
713
|
-
reader.skipType(tag & 7);
|
|
714
|
-
}
|
|
715
|
-
return message;
|
|
716
|
-
},
|
|
717
|
-
fromJSON(object) {
|
|
718
|
-
return {
|
|
719
|
-
workflowId: isSet(object.workflowId) ? globalThis.String(object.workflowId) : "",
|
|
720
|
-
schedules: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.schedules)
|
|
721
|
-
? object.schedules.map((e) => fromJsonTimestamp(e))
|
|
722
|
-
: [],
|
|
723
|
-
input: isSet(object.input) ? globalThis.String(object.input) : "",
|
|
724
|
-
};
|
|
725
|
-
},
|
|
726
|
-
toJSON(message) {
|
|
727
|
-
var _a;
|
|
728
|
-
const obj = {};
|
|
729
|
-
if (message.workflowId !== "") {
|
|
730
|
-
obj.workflowId = message.workflowId;
|
|
731
|
-
}
|
|
732
|
-
if ((_a = message.schedules) === null || _a === void 0 ? void 0 : _a.length) {
|
|
733
|
-
obj.schedules = message.schedules.map((e) => e.toISOString());
|
|
734
|
-
}
|
|
735
|
-
if (message.input !== "") {
|
|
736
|
-
obj.input = message.input;
|
|
737
|
-
}
|
|
738
|
-
return obj;
|
|
739
|
-
},
|
|
740
|
-
create(base) {
|
|
741
|
-
return exports.ScheduleWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
742
|
-
},
|
|
743
|
-
fromPartial(object) {
|
|
744
|
-
var _a, _b, _c;
|
|
745
|
-
const message = createBaseScheduleWorkflowRequest();
|
|
746
|
-
message.workflowId = (_a = object.workflowId) !== null && _a !== void 0 ? _a : "";
|
|
747
|
-
message.schedules = ((_b = object.schedules) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
748
|
-
message.input = (_c = object.input) !== null && _c !== void 0 ? _c : "";
|
|
749
|
-
return message;
|
|
750
|
-
},
|
|
751
|
-
};
|
|
752
|
-
function createBaseListWorkflowsResponse() {
|
|
753
|
-
return { workflows: [] };
|
|
754
|
-
}
|
|
755
|
-
exports.ListWorkflowsResponse = {
|
|
756
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
757
|
-
for (const v of message.workflows) {
|
|
758
|
-
exports.Workflow.encode(v, writer.uint32(10).fork()).ldelim();
|
|
759
|
-
}
|
|
760
|
-
return writer;
|
|
761
|
-
},
|
|
762
|
-
decode(input, length) {
|
|
763
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
764
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
765
|
-
const message = createBaseListWorkflowsResponse();
|
|
766
|
-
while (reader.pos < end) {
|
|
767
|
-
const tag = reader.uint32();
|
|
768
|
-
switch (tag >>> 3) {
|
|
769
|
-
case 1:
|
|
770
|
-
if (tag !== 10) {
|
|
771
|
-
break;
|
|
772
|
-
}
|
|
773
|
-
message.workflows.push(exports.Workflow.decode(reader, reader.uint32()));
|
|
774
|
-
continue;
|
|
775
|
-
}
|
|
776
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
777
|
-
break;
|
|
778
|
-
}
|
|
779
|
-
reader.skipType(tag & 7);
|
|
780
|
-
}
|
|
781
|
-
return message;
|
|
782
|
-
},
|
|
783
|
-
fromJSON(object) {
|
|
784
|
-
return {
|
|
785
|
-
workflows: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.workflows)
|
|
786
|
-
? object.workflows.map((e) => exports.Workflow.fromJSON(e))
|
|
787
|
-
: [],
|
|
788
|
-
};
|
|
789
|
-
},
|
|
790
|
-
toJSON(message) {
|
|
791
|
-
var _a;
|
|
792
|
-
const obj = {};
|
|
793
|
-
if ((_a = message.workflows) === null || _a === void 0 ? void 0 : _a.length) {
|
|
794
|
-
obj.workflows = message.workflows.map((e) => exports.Workflow.toJSON(e));
|
|
795
|
-
}
|
|
796
|
-
return obj;
|
|
797
|
-
},
|
|
798
|
-
create(base) {
|
|
799
|
-
return exports.ListWorkflowsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
800
|
-
},
|
|
801
|
-
fromPartial(object) {
|
|
802
|
-
var _a;
|
|
803
|
-
const message = createBaseListWorkflowsResponse();
|
|
804
|
-
message.workflows = ((_a = object.workflows) === null || _a === void 0 ? void 0 : _a.map((e) => exports.Workflow.fromPartial(e))) || [];
|
|
805
|
-
return message;
|
|
806
|
-
},
|
|
807
|
-
};
|
|
808
|
-
function createBaseListWorkflowsForEventRequest() {
|
|
809
|
-
return { eventKey: "" };
|
|
810
|
-
}
|
|
811
|
-
exports.ListWorkflowsForEventRequest = {
|
|
812
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
813
|
-
if (message.eventKey !== "") {
|
|
814
|
-
writer.uint32(10).string(message.eventKey);
|
|
815
|
-
}
|
|
816
|
-
return writer;
|
|
817
|
-
},
|
|
818
|
-
decode(input, length) {
|
|
819
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
820
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
821
|
-
const message = createBaseListWorkflowsForEventRequest();
|
|
822
|
-
while (reader.pos < end) {
|
|
823
|
-
const tag = reader.uint32();
|
|
824
|
-
switch (tag >>> 3) {
|
|
825
|
-
case 1:
|
|
826
|
-
if (tag !== 10) {
|
|
827
|
-
break;
|
|
828
|
-
}
|
|
829
|
-
message.eventKey = reader.string();
|
|
830
|
-
continue;
|
|
831
|
-
}
|
|
832
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
833
|
-
break;
|
|
834
|
-
}
|
|
835
|
-
reader.skipType(tag & 7);
|
|
836
|
-
}
|
|
837
|
-
return message;
|
|
838
|
-
},
|
|
839
|
-
fromJSON(object) {
|
|
840
|
-
return { eventKey: isSet(object.eventKey) ? globalThis.String(object.eventKey) : "" };
|
|
841
|
-
},
|
|
842
|
-
toJSON(message) {
|
|
843
|
-
const obj = {};
|
|
844
|
-
if (message.eventKey !== "") {
|
|
845
|
-
obj.eventKey = message.eventKey;
|
|
846
|
-
}
|
|
847
|
-
return obj;
|
|
848
|
-
},
|
|
849
|
-
create(base) {
|
|
850
|
-
return exports.ListWorkflowsForEventRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
851
|
-
},
|
|
852
|
-
fromPartial(object) {
|
|
853
|
-
var _a;
|
|
854
|
-
const message = createBaseListWorkflowsForEventRequest();
|
|
855
|
-
message.eventKey = (_a = object.eventKey) !== null && _a !== void 0 ? _a : "";
|
|
856
|
-
return message;
|
|
857
|
-
},
|
|
858
|
-
};
|
|
859
|
-
function createBaseWorkflow() {
|
|
860
|
-
return {
|
|
861
|
-
id: "",
|
|
862
|
-
createdAt: undefined,
|
|
863
|
-
updatedAt: undefined,
|
|
864
|
-
tenantId: "",
|
|
865
|
-
name: "",
|
|
866
|
-
description: undefined,
|
|
867
|
-
versions: [],
|
|
868
|
-
};
|
|
869
|
-
}
|
|
870
|
-
exports.Workflow = {
|
|
871
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
872
|
-
if (message.id !== "") {
|
|
873
|
-
writer.uint32(10).string(message.id);
|
|
874
|
-
}
|
|
875
|
-
if (message.createdAt !== undefined) {
|
|
876
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(18).fork()).ldelim();
|
|
877
|
-
}
|
|
878
|
-
if (message.updatedAt !== undefined) {
|
|
879
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(26).fork()).ldelim();
|
|
880
|
-
}
|
|
881
|
-
if (message.tenantId !== "") {
|
|
882
|
-
writer.uint32(42).string(message.tenantId);
|
|
883
|
-
}
|
|
884
|
-
if (message.name !== "") {
|
|
885
|
-
writer.uint32(50).string(message.name);
|
|
886
|
-
}
|
|
887
|
-
if (message.description !== undefined) {
|
|
888
|
-
wrappers_1.StringValue.encode({ value: message.description }, writer.uint32(58).fork()).ldelim();
|
|
889
|
-
}
|
|
890
|
-
for (const v of message.versions) {
|
|
891
|
-
exports.WorkflowVersion.encode(v, writer.uint32(66).fork()).ldelim();
|
|
892
|
-
}
|
|
893
|
-
return writer;
|
|
894
|
-
},
|
|
895
|
-
decode(input, length) {
|
|
896
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
897
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
898
|
-
const message = createBaseWorkflow();
|
|
899
|
-
while (reader.pos < end) {
|
|
900
|
-
const tag = reader.uint32();
|
|
901
|
-
switch (tag >>> 3) {
|
|
902
|
-
case 1:
|
|
903
|
-
if (tag !== 10) {
|
|
904
|
-
break;
|
|
905
|
-
}
|
|
906
|
-
message.id = reader.string();
|
|
907
|
-
continue;
|
|
908
|
-
case 2:
|
|
909
|
-
if (tag !== 18) {
|
|
910
|
-
break;
|
|
911
|
-
}
|
|
912
|
-
message.createdAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
913
|
-
continue;
|
|
914
|
-
case 3:
|
|
915
|
-
if (tag !== 26) {
|
|
916
|
-
break;
|
|
917
|
-
}
|
|
918
|
-
message.updatedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
919
|
-
continue;
|
|
920
|
-
case 5:
|
|
921
|
-
if (tag !== 42) {
|
|
922
|
-
break;
|
|
923
|
-
}
|
|
924
|
-
message.tenantId = reader.string();
|
|
925
|
-
continue;
|
|
926
|
-
case 6:
|
|
927
|
-
if (tag !== 50) {
|
|
928
|
-
break;
|
|
929
|
-
}
|
|
930
|
-
message.name = reader.string();
|
|
931
|
-
continue;
|
|
932
|
-
case 7:
|
|
933
|
-
if (tag !== 58) {
|
|
934
|
-
break;
|
|
935
|
-
}
|
|
936
|
-
message.description = wrappers_1.StringValue.decode(reader, reader.uint32()).value;
|
|
937
|
-
continue;
|
|
938
|
-
case 8:
|
|
939
|
-
if (tag !== 66) {
|
|
940
|
-
break;
|
|
941
|
-
}
|
|
942
|
-
message.versions.push(exports.WorkflowVersion.decode(reader, reader.uint32()));
|
|
943
|
-
continue;
|
|
944
|
-
}
|
|
945
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
946
|
-
break;
|
|
947
|
-
}
|
|
948
|
-
reader.skipType(tag & 7);
|
|
949
|
-
}
|
|
950
|
-
return message;
|
|
951
|
-
},
|
|
952
|
-
fromJSON(object) {
|
|
953
|
-
return {
|
|
954
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
955
|
-
createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
|
|
956
|
-
updatedAt: isSet(object.updatedAt) ? fromJsonTimestamp(object.updatedAt) : undefined,
|
|
957
|
-
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
958
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
959
|
-
description: isSet(object.description) ? String(object.description) : undefined,
|
|
960
|
-
versions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.versions)
|
|
961
|
-
? object.versions.map((e) => exports.WorkflowVersion.fromJSON(e))
|
|
962
|
-
: [],
|
|
963
|
-
};
|
|
964
|
-
},
|
|
965
|
-
toJSON(message) {
|
|
966
|
-
var _a;
|
|
967
|
-
const obj = {};
|
|
968
|
-
if (message.id !== "") {
|
|
969
|
-
obj.id = message.id;
|
|
970
|
-
}
|
|
971
|
-
if (message.createdAt !== undefined) {
|
|
972
|
-
obj.createdAt = message.createdAt.toISOString();
|
|
973
|
-
}
|
|
974
|
-
if (message.updatedAt !== undefined) {
|
|
975
|
-
obj.updatedAt = message.updatedAt.toISOString();
|
|
976
|
-
}
|
|
977
|
-
if (message.tenantId !== "") {
|
|
978
|
-
obj.tenantId = message.tenantId;
|
|
979
|
-
}
|
|
980
|
-
if (message.name !== "") {
|
|
981
|
-
obj.name = message.name;
|
|
982
|
-
}
|
|
983
|
-
if (message.description !== undefined) {
|
|
984
|
-
obj.description = message.description;
|
|
985
|
-
}
|
|
986
|
-
if ((_a = message.versions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
987
|
-
obj.versions = message.versions.map((e) => exports.WorkflowVersion.toJSON(e));
|
|
988
|
-
}
|
|
989
|
-
return obj;
|
|
990
|
-
},
|
|
991
|
-
create(base) {
|
|
992
|
-
return exports.Workflow.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
993
|
-
},
|
|
994
|
-
fromPartial(object) {
|
|
995
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
996
|
-
const message = createBaseWorkflow();
|
|
997
|
-
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
998
|
-
message.createdAt = (_b = object.createdAt) !== null && _b !== void 0 ? _b : undefined;
|
|
999
|
-
message.updatedAt = (_c = object.updatedAt) !== null && _c !== void 0 ? _c : undefined;
|
|
1000
|
-
message.tenantId = (_d = object.tenantId) !== null && _d !== void 0 ? _d : "";
|
|
1001
|
-
message.name = (_e = object.name) !== null && _e !== void 0 ? _e : "";
|
|
1002
|
-
message.description = (_f = object.description) !== null && _f !== void 0 ? _f : undefined;
|
|
1003
|
-
message.versions = ((_g = object.versions) === null || _g === void 0 ? void 0 : _g.map((e) => exports.WorkflowVersion.fromPartial(e))) || [];
|
|
1004
|
-
return message;
|
|
1005
|
-
},
|
|
1006
|
-
};
|
|
1007
|
-
function createBaseWorkflowVersion() {
|
|
1008
|
-
return {
|
|
1009
|
-
id: "",
|
|
1010
|
-
createdAt: undefined,
|
|
1011
|
-
updatedAt: undefined,
|
|
1012
|
-
version: "",
|
|
1013
|
-
order: 0,
|
|
1014
|
-
workflowId: "",
|
|
1015
|
-
triggers: undefined,
|
|
1016
|
-
jobs: [],
|
|
1017
|
-
};
|
|
1018
|
-
}
|
|
1019
|
-
exports.WorkflowVersion = {
|
|
1020
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
1021
|
-
if (message.id !== "") {
|
|
1022
|
-
writer.uint32(10).string(message.id);
|
|
1023
|
-
}
|
|
1024
|
-
if (message.createdAt !== undefined) {
|
|
1025
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(18).fork()).ldelim();
|
|
1026
|
-
}
|
|
1027
|
-
if (message.updatedAt !== undefined) {
|
|
1028
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(26).fork()).ldelim();
|
|
1029
|
-
}
|
|
1030
|
-
if (message.version !== "") {
|
|
1031
|
-
writer.uint32(42).string(message.version);
|
|
1032
|
-
}
|
|
1033
|
-
if (message.order !== 0) {
|
|
1034
|
-
writer.uint32(48).int32(message.order);
|
|
1035
|
-
}
|
|
1036
|
-
if (message.workflowId !== "") {
|
|
1037
|
-
writer.uint32(58).string(message.workflowId);
|
|
1038
|
-
}
|
|
1039
|
-
if (message.triggers !== undefined) {
|
|
1040
|
-
exports.WorkflowTriggers.encode(message.triggers, writer.uint32(66).fork()).ldelim();
|
|
1041
|
-
}
|
|
1042
|
-
for (const v of message.jobs) {
|
|
1043
|
-
exports.Job.encode(v, writer.uint32(74).fork()).ldelim();
|
|
1044
|
-
}
|
|
1045
|
-
return writer;
|
|
1046
|
-
},
|
|
1047
|
-
decode(input, length) {
|
|
1048
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1049
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1050
|
-
const message = createBaseWorkflowVersion();
|
|
1051
|
-
while (reader.pos < end) {
|
|
1052
|
-
const tag = reader.uint32();
|
|
1053
|
-
switch (tag >>> 3) {
|
|
1054
|
-
case 1:
|
|
1055
|
-
if (tag !== 10) {
|
|
1056
|
-
break;
|
|
1057
|
-
}
|
|
1058
|
-
message.id = reader.string();
|
|
1059
|
-
continue;
|
|
1060
|
-
case 2:
|
|
1061
|
-
if (tag !== 18) {
|
|
1062
|
-
break;
|
|
1063
|
-
}
|
|
1064
|
-
message.createdAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
1065
|
-
continue;
|
|
1066
|
-
case 3:
|
|
1067
|
-
if (tag !== 26) {
|
|
1068
|
-
break;
|
|
1069
|
-
}
|
|
1070
|
-
message.updatedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
1071
|
-
continue;
|
|
1072
|
-
case 5:
|
|
1073
|
-
if (tag !== 42) {
|
|
1074
|
-
break;
|
|
1075
|
-
}
|
|
1076
|
-
message.version = reader.string();
|
|
1077
|
-
continue;
|
|
1078
|
-
case 6:
|
|
1079
|
-
if (tag !== 48) {
|
|
1080
|
-
break;
|
|
1081
|
-
}
|
|
1082
|
-
message.order = reader.int32();
|
|
1083
|
-
continue;
|
|
1084
|
-
case 7:
|
|
1085
|
-
if (tag !== 58) {
|
|
1086
|
-
break;
|
|
1087
|
-
}
|
|
1088
|
-
message.workflowId = reader.string();
|
|
1089
|
-
continue;
|
|
1090
|
-
case 8:
|
|
1091
|
-
if (tag !== 66) {
|
|
1092
|
-
break;
|
|
1093
|
-
}
|
|
1094
|
-
message.triggers = exports.WorkflowTriggers.decode(reader, reader.uint32());
|
|
1095
|
-
continue;
|
|
1096
|
-
case 9:
|
|
1097
|
-
if (tag !== 74) {
|
|
1098
|
-
break;
|
|
1099
|
-
}
|
|
1100
|
-
message.jobs.push(exports.Job.decode(reader, reader.uint32()));
|
|
1101
|
-
continue;
|
|
1102
|
-
}
|
|
1103
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1104
|
-
break;
|
|
1105
|
-
}
|
|
1106
|
-
reader.skipType(tag & 7);
|
|
1107
|
-
}
|
|
1108
|
-
return message;
|
|
1109
|
-
},
|
|
1110
|
-
fromJSON(object) {
|
|
1111
|
-
return {
|
|
1112
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1113
|
-
createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
|
|
1114
|
-
updatedAt: isSet(object.updatedAt) ? fromJsonTimestamp(object.updatedAt) : undefined,
|
|
1115
|
-
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
1116
|
-
order: isSet(object.order) ? globalThis.Number(object.order) : 0,
|
|
1117
|
-
workflowId: isSet(object.workflowId) ? globalThis.String(object.workflowId) : "",
|
|
1118
|
-
triggers: isSet(object.triggers) ? exports.WorkflowTriggers.fromJSON(object.triggers) : undefined,
|
|
1119
|
-
jobs: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.jobs) ? object.jobs.map((e) => exports.Job.fromJSON(e)) : [],
|
|
1120
|
-
};
|
|
1121
|
-
},
|
|
1122
|
-
toJSON(message) {
|
|
1123
|
-
var _a;
|
|
1124
|
-
const obj = {};
|
|
1125
|
-
if (message.id !== "") {
|
|
1126
|
-
obj.id = message.id;
|
|
1127
|
-
}
|
|
1128
|
-
if (message.createdAt !== undefined) {
|
|
1129
|
-
obj.createdAt = message.createdAt.toISOString();
|
|
1130
|
-
}
|
|
1131
|
-
if (message.updatedAt !== undefined) {
|
|
1132
|
-
obj.updatedAt = message.updatedAt.toISOString();
|
|
1133
|
-
}
|
|
1134
|
-
if (message.version !== "") {
|
|
1135
|
-
obj.version = message.version;
|
|
1136
|
-
}
|
|
1137
|
-
if (message.order !== 0) {
|
|
1138
|
-
obj.order = Math.round(message.order);
|
|
1139
|
-
}
|
|
1140
|
-
if (message.workflowId !== "") {
|
|
1141
|
-
obj.workflowId = message.workflowId;
|
|
1142
|
-
}
|
|
1143
|
-
if (message.triggers !== undefined) {
|
|
1144
|
-
obj.triggers = exports.WorkflowTriggers.toJSON(message.triggers);
|
|
1145
|
-
}
|
|
1146
|
-
if ((_a = message.jobs) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1147
|
-
obj.jobs = message.jobs.map((e) => exports.Job.toJSON(e));
|
|
1148
|
-
}
|
|
1149
|
-
return obj;
|
|
1150
|
-
},
|
|
1151
|
-
create(base) {
|
|
1152
|
-
return exports.WorkflowVersion.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1153
|
-
},
|
|
1154
|
-
fromPartial(object) {
|
|
1155
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1156
|
-
const message = createBaseWorkflowVersion();
|
|
1157
|
-
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
1158
|
-
message.createdAt = (_b = object.createdAt) !== null && _b !== void 0 ? _b : undefined;
|
|
1159
|
-
message.updatedAt = (_c = object.updatedAt) !== null && _c !== void 0 ? _c : undefined;
|
|
1160
|
-
message.version = (_d = object.version) !== null && _d !== void 0 ? _d : "";
|
|
1161
|
-
message.order = (_e = object.order) !== null && _e !== void 0 ? _e : 0;
|
|
1162
|
-
message.workflowId = (_f = object.workflowId) !== null && _f !== void 0 ? _f : "";
|
|
1163
|
-
message.triggers = (object.triggers !== undefined && object.triggers !== null)
|
|
1164
|
-
? exports.WorkflowTriggers.fromPartial(object.triggers)
|
|
1165
|
-
: undefined;
|
|
1166
|
-
message.jobs = ((_g = object.jobs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.Job.fromPartial(e))) || [];
|
|
1167
|
-
return message;
|
|
1168
|
-
},
|
|
1169
|
-
};
|
|
1170
|
-
function createBaseWorkflowTriggers() {
|
|
1171
|
-
return {
|
|
1172
|
-
id: "",
|
|
1173
|
-
createdAt: undefined,
|
|
1174
|
-
updatedAt: undefined,
|
|
1175
|
-
workflowVersionId: "",
|
|
1176
|
-
tenantId: "",
|
|
1177
|
-
events: [],
|
|
1178
|
-
crons: [],
|
|
1179
|
-
};
|
|
1180
|
-
}
|
|
1181
|
-
exports.WorkflowTriggers = {
|
|
1182
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
1183
|
-
if (message.id !== "") {
|
|
1184
|
-
writer.uint32(10).string(message.id);
|
|
1185
|
-
}
|
|
1186
|
-
if (message.createdAt !== undefined) {
|
|
1187
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(18).fork()).ldelim();
|
|
1188
|
-
}
|
|
1189
|
-
if (message.updatedAt !== undefined) {
|
|
1190
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(26).fork()).ldelim();
|
|
1191
|
-
}
|
|
1192
|
-
if (message.workflowVersionId !== "") {
|
|
1193
|
-
writer.uint32(42).string(message.workflowVersionId);
|
|
1194
|
-
}
|
|
1195
|
-
if (message.tenantId !== "") {
|
|
1196
|
-
writer.uint32(50).string(message.tenantId);
|
|
1197
|
-
}
|
|
1198
|
-
for (const v of message.events) {
|
|
1199
|
-
exports.WorkflowTriggerEventRef.encode(v, writer.uint32(58).fork()).ldelim();
|
|
1200
|
-
}
|
|
1201
|
-
for (const v of message.crons) {
|
|
1202
|
-
exports.WorkflowTriggerCronRef.encode(v, writer.uint32(66).fork()).ldelim();
|
|
1203
|
-
}
|
|
1204
|
-
return writer;
|
|
1205
|
-
},
|
|
1206
|
-
decode(input, length) {
|
|
1207
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1208
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1209
|
-
const message = createBaseWorkflowTriggers();
|
|
1210
|
-
while (reader.pos < end) {
|
|
1211
|
-
const tag = reader.uint32();
|
|
1212
|
-
switch (tag >>> 3) {
|
|
1213
|
-
case 1:
|
|
1214
|
-
if (tag !== 10) {
|
|
1215
|
-
break;
|
|
1216
|
-
}
|
|
1217
|
-
message.id = reader.string();
|
|
1218
|
-
continue;
|
|
1219
|
-
case 2:
|
|
1220
|
-
if (tag !== 18) {
|
|
1221
|
-
break;
|
|
1222
|
-
}
|
|
1223
|
-
message.createdAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
1224
|
-
continue;
|
|
1225
|
-
case 3:
|
|
1226
|
-
if (tag !== 26) {
|
|
1227
|
-
break;
|
|
1228
|
-
}
|
|
1229
|
-
message.updatedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
1230
|
-
continue;
|
|
1231
|
-
case 5:
|
|
1232
|
-
if (tag !== 42) {
|
|
1233
|
-
break;
|
|
1234
|
-
}
|
|
1235
|
-
message.workflowVersionId = reader.string();
|
|
1236
|
-
continue;
|
|
1237
|
-
case 6:
|
|
1238
|
-
if (tag !== 50) {
|
|
1239
|
-
break;
|
|
1240
|
-
}
|
|
1241
|
-
message.tenantId = reader.string();
|
|
1242
|
-
continue;
|
|
1243
|
-
case 7:
|
|
1244
|
-
if (tag !== 58) {
|
|
1245
|
-
break;
|
|
1246
|
-
}
|
|
1247
|
-
message.events.push(exports.WorkflowTriggerEventRef.decode(reader, reader.uint32()));
|
|
1248
|
-
continue;
|
|
1249
|
-
case 8:
|
|
1250
|
-
if (tag !== 66) {
|
|
1251
|
-
break;
|
|
1252
|
-
}
|
|
1253
|
-
message.crons.push(exports.WorkflowTriggerCronRef.decode(reader, reader.uint32()));
|
|
1254
|
-
continue;
|
|
1255
|
-
}
|
|
1256
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1257
|
-
break;
|
|
1258
|
-
}
|
|
1259
|
-
reader.skipType(tag & 7);
|
|
1260
|
-
}
|
|
1261
|
-
return message;
|
|
1262
|
-
},
|
|
1263
|
-
fromJSON(object) {
|
|
1264
|
-
return {
|
|
1265
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1266
|
-
createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
|
|
1267
|
-
updatedAt: isSet(object.updatedAt) ? fromJsonTimestamp(object.updatedAt) : undefined,
|
|
1268
|
-
workflowVersionId: isSet(object.workflowVersionId) ? globalThis.String(object.workflowVersionId) : "",
|
|
1269
|
-
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
1270
|
-
events: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.events)
|
|
1271
|
-
? object.events.map((e) => exports.WorkflowTriggerEventRef.fromJSON(e))
|
|
1272
|
-
: [],
|
|
1273
|
-
crons: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.crons)
|
|
1274
|
-
? object.crons.map((e) => exports.WorkflowTriggerCronRef.fromJSON(e))
|
|
1275
|
-
: [],
|
|
1276
|
-
};
|
|
1277
|
-
},
|
|
1278
|
-
toJSON(message) {
|
|
1279
|
-
var _a, _b;
|
|
1280
|
-
const obj = {};
|
|
1281
|
-
if (message.id !== "") {
|
|
1282
|
-
obj.id = message.id;
|
|
1283
|
-
}
|
|
1284
|
-
if (message.createdAt !== undefined) {
|
|
1285
|
-
obj.createdAt = message.createdAt.toISOString();
|
|
1286
|
-
}
|
|
1287
|
-
if (message.updatedAt !== undefined) {
|
|
1288
|
-
obj.updatedAt = message.updatedAt.toISOString();
|
|
1289
|
-
}
|
|
1290
|
-
if (message.workflowVersionId !== "") {
|
|
1291
|
-
obj.workflowVersionId = message.workflowVersionId;
|
|
1292
|
-
}
|
|
1293
|
-
if (message.tenantId !== "") {
|
|
1294
|
-
obj.tenantId = message.tenantId;
|
|
1295
|
-
}
|
|
1296
|
-
if ((_a = message.events) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1297
|
-
obj.events = message.events.map((e) => exports.WorkflowTriggerEventRef.toJSON(e));
|
|
1298
|
-
}
|
|
1299
|
-
if ((_b = message.crons) === null || _b === void 0 ? void 0 : _b.length) {
|
|
1300
|
-
obj.crons = message.crons.map((e) => exports.WorkflowTriggerCronRef.toJSON(e));
|
|
1301
|
-
}
|
|
1302
|
-
return obj;
|
|
1303
|
-
},
|
|
1304
|
-
create(base) {
|
|
1305
|
-
return exports.WorkflowTriggers.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1306
|
-
},
|
|
1307
|
-
fromPartial(object) {
|
|
1308
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1309
|
-
const message = createBaseWorkflowTriggers();
|
|
1310
|
-
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
1311
|
-
message.createdAt = (_b = object.createdAt) !== null && _b !== void 0 ? _b : undefined;
|
|
1312
|
-
message.updatedAt = (_c = object.updatedAt) !== null && _c !== void 0 ? _c : undefined;
|
|
1313
|
-
message.workflowVersionId = (_d = object.workflowVersionId) !== null && _d !== void 0 ? _d : "";
|
|
1314
|
-
message.tenantId = (_e = object.tenantId) !== null && _e !== void 0 ? _e : "";
|
|
1315
|
-
message.events = ((_f = object.events) === null || _f === void 0 ? void 0 : _f.map((e) => exports.WorkflowTriggerEventRef.fromPartial(e))) || [];
|
|
1316
|
-
message.crons = ((_g = object.crons) === null || _g === void 0 ? void 0 : _g.map((e) => exports.WorkflowTriggerCronRef.fromPartial(e))) || [];
|
|
1317
|
-
return message;
|
|
1318
|
-
},
|
|
1319
|
-
};
|
|
1320
|
-
function createBaseWorkflowTriggerEventRef() {
|
|
1321
|
-
return { parentId: "", eventKey: "" };
|
|
1322
|
-
}
|
|
1323
|
-
exports.WorkflowTriggerEventRef = {
|
|
1324
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
1325
|
-
if (message.parentId !== "") {
|
|
1326
|
-
writer.uint32(10).string(message.parentId);
|
|
1327
|
-
}
|
|
1328
|
-
if (message.eventKey !== "") {
|
|
1329
|
-
writer.uint32(18).string(message.eventKey);
|
|
1330
|
-
}
|
|
1331
|
-
return writer;
|
|
1332
|
-
},
|
|
1333
|
-
decode(input, length) {
|
|
1334
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1335
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1336
|
-
const message = createBaseWorkflowTriggerEventRef();
|
|
1337
|
-
while (reader.pos < end) {
|
|
1338
|
-
const tag = reader.uint32();
|
|
1339
|
-
switch (tag >>> 3) {
|
|
1340
|
-
case 1:
|
|
1341
|
-
if (tag !== 10) {
|
|
1342
|
-
break;
|
|
1343
|
-
}
|
|
1344
|
-
message.parentId = reader.string();
|
|
1345
|
-
continue;
|
|
1346
|
-
case 2:
|
|
1347
|
-
if (tag !== 18) {
|
|
1348
|
-
break;
|
|
1349
|
-
}
|
|
1350
|
-
message.eventKey = reader.string();
|
|
1351
|
-
continue;
|
|
1352
|
-
}
|
|
1353
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1354
|
-
break;
|
|
1355
|
-
}
|
|
1356
|
-
reader.skipType(tag & 7);
|
|
1357
|
-
}
|
|
1358
|
-
return message;
|
|
1359
|
-
},
|
|
1360
|
-
fromJSON(object) {
|
|
1361
|
-
return {
|
|
1362
|
-
parentId: isSet(object.parentId) ? globalThis.String(object.parentId) : "",
|
|
1363
|
-
eventKey: isSet(object.eventKey) ? globalThis.String(object.eventKey) : "",
|
|
1364
|
-
};
|
|
1365
|
-
},
|
|
1366
|
-
toJSON(message) {
|
|
1367
|
-
const obj = {};
|
|
1368
|
-
if (message.parentId !== "") {
|
|
1369
|
-
obj.parentId = message.parentId;
|
|
1370
|
-
}
|
|
1371
|
-
if (message.eventKey !== "") {
|
|
1372
|
-
obj.eventKey = message.eventKey;
|
|
1373
|
-
}
|
|
1374
|
-
return obj;
|
|
1375
|
-
},
|
|
1376
|
-
create(base) {
|
|
1377
|
-
return exports.WorkflowTriggerEventRef.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1378
|
-
},
|
|
1379
|
-
fromPartial(object) {
|
|
1380
|
-
var _a, _b;
|
|
1381
|
-
const message = createBaseWorkflowTriggerEventRef();
|
|
1382
|
-
message.parentId = (_a = object.parentId) !== null && _a !== void 0 ? _a : "";
|
|
1383
|
-
message.eventKey = (_b = object.eventKey) !== null && _b !== void 0 ? _b : "";
|
|
1384
|
-
return message;
|
|
1385
|
-
},
|
|
1386
|
-
};
|
|
1387
|
-
function createBaseWorkflowTriggerCronRef() {
|
|
1388
|
-
return { parentId: "", cron: "" };
|
|
1389
|
-
}
|
|
1390
|
-
exports.WorkflowTriggerCronRef = {
|
|
1391
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
1392
|
-
if (message.parentId !== "") {
|
|
1393
|
-
writer.uint32(10).string(message.parentId);
|
|
1394
|
-
}
|
|
1395
|
-
if (message.cron !== "") {
|
|
1396
|
-
writer.uint32(18).string(message.cron);
|
|
1397
|
-
}
|
|
1398
|
-
return writer;
|
|
1399
|
-
},
|
|
1400
|
-
decode(input, length) {
|
|
1401
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1402
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1403
|
-
const message = createBaseWorkflowTriggerCronRef();
|
|
1404
|
-
while (reader.pos < end) {
|
|
1405
|
-
const tag = reader.uint32();
|
|
1406
|
-
switch (tag >>> 3) {
|
|
1407
|
-
case 1:
|
|
1408
|
-
if (tag !== 10) {
|
|
1409
|
-
break;
|
|
1410
|
-
}
|
|
1411
|
-
message.parentId = reader.string();
|
|
1412
|
-
continue;
|
|
1413
|
-
case 2:
|
|
1414
|
-
if (tag !== 18) {
|
|
1415
|
-
break;
|
|
1416
|
-
}
|
|
1417
|
-
message.cron = reader.string();
|
|
1418
|
-
continue;
|
|
1419
|
-
}
|
|
1420
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1421
|
-
break;
|
|
1422
|
-
}
|
|
1423
|
-
reader.skipType(tag & 7);
|
|
1424
|
-
}
|
|
1425
|
-
return message;
|
|
1426
|
-
},
|
|
1427
|
-
fromJSON(object) {
|
|
1428
|
-
return {
|
|
1429
|
-
parentId: isSet(object.parentId) ? globalThis.String(object.parentId) : "",
|
|
1430
|
-
cron: isSet(object.cron) ? globalThis.String(object.cron) : "",
|
|
1431
|
-
};
|
|
1432
|
-
},
|
|
1433
|
-
toJSON(message) {
|
|
1434
|
-
const obj = {};
|
|
1435
|
-
if (message.parentId !== "") {
|
|
1436
|
-
obj.parentId = message.parentId;
|
|
1437
|
-
}
|
|
1438
|
-
if (message.cron !== "") {
|
|
1439
|
-
obj.cron = message.cron;
|
|
1440
|
-
}
|
|
1441
|
-
return obj;
|
|
1442
|
-
},
|
|
1443
|
-
create(base) {
|
|
1444
|
-
return exports.WorkflowTriggerCronRef.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1445
|
-
},
|
|
1446
|
-
fromPartial(object) {
|
|
1447
|
-
var _a, _b;
|
|
1448
|
-
const message = createBaseWorkflowTriggerCronRef();
|
|
1449
|
-
message.parentId = (_a = object.parentId) !== null && _a !== void 0 ? _a : "";
|
|
1450
|
-
message.cron = (_b = object.cron) !== null && _b !== void 0 ? _b : "";
|
|
1451
|
-
return message;
|
|
1452
|
-
},
|
|
1453
|
-
};
|
|
1454
|
-
function createBaseJob() {
|
|
1455
|
-
return {
|
|
1456
|
-
id: "",
|
|
1457
|
-
createdAt: undefined,
|
|
1458
|
-
updatedAt: undefined,
|
|
1459
|
-
tenantId: "",
|
|
1460
|
-
workflowVersionId: "",
|
|
1461
|
-
name: "",
|
|
1462
|
-
description: undefined,
|
|
1463
|
-
steps: [],
|
|
1464
|
-
timeout: undefined,
|
|
1465
|
-
};
|
|
1466
|
-
}
|
|
1467
|
-
exports.Job = {
|
|
1468
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
1469
|
-
if (message.id !== "") {
|
|
1470
|
-
writer.uint32(10).string(message.id);
|
|
1471
|
-
}
|
|
1472
|
-
if (message.createdAt !== undefined) {
|
|
1473
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(18).fork()).ldelim();
|
|
1474
|
-
}
|
|
1475
|
-
if (message.updatedAt !== undefined) {
|
|
1476
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(26).fork()).ldelim();
|
|
1477
|
-
}
|
|
1478
|
-
if (message.tenantId !== "") {
|
|
1479
|
-
writer.uint32(42).string(message.tenantId);
|
|
1480
|
-
}
|
|
1481
|
-
if (message.workflowVersionId !== "") {
|
|
1482
|
-
writer.uint32(50).string(message.workflowVersionId);
|
|
1483
|
-
}
|
|
1484
672
|
if (message.name !== "") {
|
|
1485
|
-
writer.uint32(
|
|
1486
|
-
}
|
|
1487
|
-
if (message.description !== undefined) {
|
|
1488
|
-
wrappers_1.StringValue.encode({ value: message.description }, writer.uint32(66).fork()).ldelim();
|
|
673
|
+
writer.uint32(10).string(message.name);
|
|
1489
674
|
}
|
|
1490
|
-
for (const v of message.
|
|
1491
|
-
|
|
675
|
+
for (const v of message.schedules) {
|
|
676
|
+
timestamp_1.Timestamp.encode(toTimestamp(v), writer.uint32(18).fork()).ldelim();
|
|
1492
677
|
}
|
|
1493
|
-
if (message.
|
|
1494
|
-
|
|
678
|
+
if (message.input !== "") {
|
|
679
|
+
writer.uint32(26).string(message.input);
|
|
1495
680
|
}
|
|
1496
681
|
return writer;
|
|
1497
682
|
},
|
|
1498
683
|
decode(input, length) {
|
|
1499
684
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1500
685
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1501
|
-
const message =
|
|
686
|
+
const message = createBaseScheduleWorkflowRequest();
|
|
1502
687
|
while (reader.pos < end) {
|
|
1503
688
|
const tag = reader.uint32();
|
|
1504
689
|
switch (tag >>> 3) {
|
|
@@ -1506,55 +691,19 @@ exports.Job = {
|
|
|
1506
691
|
if (tag !== 10) {
|
|
1507
692
|
break;
|
|
1508
693
|
}
|
|
1509
|
-
message.
|
|
694
|
+
message.name = reader.string();
|
|
1510
695
|
continue;
|
|
1511
696
|
case 2:
|
|
1512
697
|
if (tag !== 18) {
|
|
1513
698
|
break;
|
|
1514
699
|
}
|
|
1515
|
-
message.
|
|
700
|
+
message.schedules.push(fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32())));
|
|
1516
701
|
continue;
|
|
1517
702
|
case 3:
|
|
1518
703
|
if (tag !== 26) {
|
|
1519
704
|
break;
|
|
1520
705
|
}
|
|
1521
|
-
message.
|
|
1522
|
-
continue;
|
|
1523
|
-
case 5:
|
|
1524
|
-
if (tag !== 42) {
|
|
1525
|
-
break;
|
|
1526
|
-
}
|
|
1527
|
-
message.tenantId = reader.string();
|
|
1528
|
-
continue;
|
|
1529
|
-
case 6:
|
|
1530
|
-
if (tag !== 50) {
|
|
1531
|
-
break;
|
|
1532
|
-
}
|
|
1533
|
-
message.workflowVersionId = reader.string();
|
|
1534
|
-
continue;
|
|
1535
|
-
case 7:
|
|
1536
|
-
if (tag !== 58) {
|
|
1537
|
-
break;
|
|
1538
|
-
}
|
|
1539
|
-
message.name = reader.string();
|
|
1540
|
-
continue;
|
|
1541
|
-
case 8:
|
|
1542
|
-
if (tag !== 66) {
|
|
1543
|
-
break;
|
|
1544
|
-
}
|
|
1545
|
-
message.description = wrappers_1.StringValue.decode(reader, reader.uint32()).value;
|
|
1546
|
-
continue;
|
|
1547
|
-
case 9:
|
|
1548
|
-
if (tag !== 74) {
|
|
1549
|
-
break;
|
|
1550
|
-
}
|
|
1551
|
-
message.steps.push(exports.Step.decode(reader, reader.uint32()));
|
|
1552
|
-
continue;
|
|
1553
|
-
case 10:
|
|
1554
|
-
if (tag !== 82) {
|
|
1555
|
-
break;
|
|
1556
|
-
}
|
|
1557
|
-
message.timeout = wrappers_1.StringValue.decode(reader, reader.uint32()).value;
|
|
706
|
+
message.input = reader.string();
|
|
1558
707
|
continue;
|
|
1559
708
|
}
|
|
1560
709
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -1566,82 +715,43 @@ exports.Job = {
|
|
|
1566
715
|
},
|
|
1567
716
|
fromJSON(object) {
|
|
1568
717
|
return {
|
|
1569
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1570
|
-
createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
|
|
1571
|
-
updatedAt: isSet(object.updatedAt) ? fromJsonTimestamp(object.updatedAt) : undefined,
|
|
1572
|
-
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
1573
|
-
workflowVersionId: isSet(object.workflowVersionId) ? globalThis.String(object.workflowVersionId) : "",
|
|
1574
718
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
719
|
+
schedules: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.schedules)
|
|
720
|
+
? object.schedules.map((e) => fromJsonTimestamp(e))
|
|
721
|
+
: [],
|
|
722
|
+
input: isSet(object.input) ? globalThis.String(object.input) : "",
|
|
1578
723
|
};
|
|
1579
724
|
},
|
|
1580
725
|
toJSON(message) {
|
|
1581
726
|
var _a;
|
|
1582
727
|
const obj = {};
|
|
1583
|
-
if (message.id !== "") {
|
|
1584
|
-
obj.id = message.id;
|
|
1585
|
-
}
|
|
1586
|
-
if (message.createdAt !== undefined) {
|
|
1587
|
-
obj.createdAt = message.createdAt.toISOString();
|
|
1588
|
-
}
|
|
1589
|
-
if (message.updatedAt !== undefined) {
|
|
1590
|
-
obj.updatedAt = message.updatedAt.toISOString();
|
|
1591
|
-
}
|
|
1592
|
-
if (message.tenantId !== "") {
|
|
1593
|
-
obj.tenantId = message.tenantId;
|
|
1594
|
-
}
|
|
1595
|
-
if (message.workflowVersionId !== "") {
|
|
1596
|
-
obj.workflowVersionId = message.workflowVersionId;
|
|
1597
|
-
}
|
|
1598
728
|
if (message.name !== "") {
|
|
1599
729
|
obj.name = message.name;
|
|
1600
730
|
}
|
|
1601
|
-
if (message.
|
|
1602
|
-
obj.
|
|
1603
|
-
}
|
|
1604
|
-
if ((_a = message.steps) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1605
|
-
obj.steps = message.steps.map((e) => exports.Step.toJSON(e));
|
|
731
|
+
if ((_a = message.schedules) === null || _a === void 0 ? void 0 : _a.length) {
|
|
732
|
+
obj.schedules = message.schedules.map((e) => e.toISOString());
|
|
1606
733
|
}
|
|
1607
|
-
if (message.
|
|
1608
|
-
obj.
|
|
734
|
+
if (message.input !== "") {
|
|
735
|
+
obj.input = message.input;
|
|
1609
736
|
}
|
|
1610
737
|
return obj;
|
|
1611
738
|
},
|
|
1612
739
|
create(base) {
|
|
1613
|
-
return exports.
|
|
740
|
+
return exports.ScheduleWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1614
741
|
},
|
|
1615
742
|
fromPartial(object) {
|
|
1616
|
-
var _a, _b, _c
|
|
1617
|
-
const message =
|
|
1618
|
-
message.
|
|
1619
|
-
message.
|
|
1620
|
-
message.
|
|
1621
|
-
message.tenantId = (_d = object.tenantId) !== null && _d !== void 0 ? _d : "";
|
|
1622
|
-
message.workflowVersionId = (_e = object.workflowVersionId) !== null && _e !== void 0 ? _e : "";
|
|
1623
|
-
message.name = (_f = object.name) !== null && _f !== void 0 ? _f : "";
|
|
1624
|
-
message.description = (_g = object.description) !== null && _g !== void 0 ? _g : undefined;
|
|
1625
|
-
message.steps = ((_h = object.steps) === null || _h === void 0 ? void 0 : _h.map((e) => exports.Step.fromPartial(e))) || [];
|
|
1626
|
-
message.timeout = (_j = object.timeout) !== null && _j !== void 0 ? _j : undefined;
|
|
743
|
+
var _a, _b, _c;
|
|
744
|
+
const message = createBaseScheduleWorkflowRequest();
|
|
745
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
746
|
+
message.schedules = ((_b = object.schedules) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
747
|
+
message.input = (_c = object.input) !== null && _c !== void 0 ? _c : "";
|
|
1627
748
|
return message;
|
|
1628
749
|
},
|
|
1629
750
|
};
|
|
1630
|
-
function
|
|
1631
|
-
return {
|
|
1632
|
-
id: "",
|
|
1633
|
-
createdAt: undefined,
|
|
1634
|
-
updatedAt: undefined,
|
|
1635
|
-
readableId: undefined,
|
|
1636
|
-
tenantId: "",
|
|
1637
|
-
jobId: "",
|
|
1638
|
-
action: "",
|
|
1639
|
-
timeout: undefined,
|
|
1640
|
-
parents: [],
|
|
1641
|
-
children: [],
|
|
1642
|
-
};
|
|
751
|
+
function createBaseWorkflowVersion() {
|
|
752
|
+
return { id: "", createdAt: undefined, updatedAt: undefined, version: "", order: 0, workflowId: "" };
|
|
1643
753
|
}
|
|
1644
|
-
exports.
|
|
754
|
+
exports.WorkflowVersion = {
|
|
1645
755
|
encode(message, writer = _m0.Writer.create()) {
|
|
1646
756
|
if (message.id !== "") {
|
|
1647
757
|
writer.uint32(10).string(message.id);
|
|
@@ -1652,33 +762,21 @@ exports.Step = {
|
|
|
1652
762
|
if (message.updatedAt !== undefined) {
|
|
1653
763
|
timestamp_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(26).fork()).ldelim();
|
|
1654
764
|
}
|
|
1655
|
-
if (message.
|
|
1656
|
-
|
|
1657
|
-
}
|
|
1658
|
-
if (message.tenantId !== "") {
|
|
1659
|
-
writer.uint32(50).string(message.tenantId);
|
|
1660
|
-
}
|
|
1661
|
-
if (message.jobId !== "") {
|
|
1662
|
-
writer.uint32(58).string(message.jobId);
|
|
1663
|
-
}
|
|
1664
|
-
if (message.action !== "") {
|
|
1665
|
-
writer.uint32(66).string(message.action);
|
|
1666
|
-
}
|
|
1667
|
-
if (message.timeout !== undefined) {
|
|
1668
|
-
wrappers_1.StringValue.encode({ value: message.timeout }, writer.uint32(74).fork()).ldelim();
|
|
765
|
+
if (message.version !== "") {
|
|
766
|
+
writer.uint32(42).string(message.version);
|
|
1669
767
|
}
|
|
1670
|
-
|
|
1671
|
-
writer.uint32(
|
|
768
|
+
if (message.order !== 0) {
|
|
769
|
+
writer.uint32(48).int32(message.order);
|
|
1672
770
|
}
|
|
1673
|
-
|
|
1674
|
-
writer.uint32(
|
|
771
|
+
if (message.workflowId !== "") {
|
|
772
|
+
writer.uint32(58).string(message.workflowId);
|
|
1675
773
|
}
|
|
1676
774
|
return writer;
|
|
1677
775
|
},
|
|
1678
776
|
decode(input, length) {
|
|
1679
777
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1680
778
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1681
|
-
const message =
|
|
779
|
+
const message = createBaseWorkflowVersion();
|
|
1682
780
|
while (reader.pos < end) {
|
|
1683
781
|
const tag = reader.uint32();
|
|
1684
782
|
switch (tag >>> 3) {
|
|
@@ -1704,43 +802,19 @@ exports.Step = {
|
|
|
1704
802
|
if (tag !== 42) {
|
|
1705
803
|
break;
|
|
1706
804
|
}
|
|
1707
|
-
message.
|
|
805
|
+
message.version = reader.string();
|
|
1708
806
|
continue;
|
|
1709
807
|
case 6:
|
|
1710
|
-
if (tag !==
|
|
808
|
+
if (tag !== 48) {
|
|
1711
809
|
break;
|
|
1712
810
|
}
|
|
1713
|
-
message.
|
|
811
|
+
message.order = reader.int32();
|
|
1714
812
|
continue;
|
|
1715
813
|
case 7:
|
|
1716
814
|
if (tag !== 58) {
|
|
1717
815
|
break;
|
|
1718
816
|
}
|
|
1719
|
-
message.
|
|
1720
|
-
continue;
|
|
1721
|
-
case 8:
|
|
1722
|
-
if (tag !== 66) {
|
|
1723
|
-
break;
|
|
1724
|
-
}
|
|
1725
|
-
message.action = reader.string();
|
|
1726
|
-
continue;
|
|
1727
|
-
case 9:
|
|
1728
|
-
if (tag !== 74) {
|
|
1729
|
-
break;
|
|
1730
|
-
}
|
|
1731
|
-
message.timeout = wrappers_1.StringValue.decode(reader, reader.uint32()).value;
|
|
1732
|
-
continue;
|
|
1733
|
-
case 10:
|
|
1734
|
-
if (tag !== 82) {
|
|
1735
|
-
break;
|
|
1736
|
-
}
|
|
1737
|
-
message.parents.push(reader.string());
|
|
1738
|
-
continue;
|
|
1739
|
-
case 11:
|
|
1740
|
-
if (tag !== 90) {
|
|
1741
|
-
break;
|
|
1742
|
-
}
|
|
1743
|
-
message.children.push(reader.string());
|
|
817
|
+
message.workflowId = reader.string();
|
|
1744
818
|
continue;
|
|
1745
819
|
}
|
|
1746
820
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -1755,17 +829,12 @@ exports.Step = {
|
|
|
1755
829
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1756
830
|
createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
|
|
1757
831
|
updatedAt: isSet(object.updatedAt) ? fromJsonTimestamp(object.updatedAt) : undefined,
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
action: isSet(object.action) ? globalThis.String(object.action) : "",
|
|
1762
|
-
timeout: isSet(object.timeout) ? String(object.timeout) : undefined,
|
|
1763
|
-
parents: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.parents) ? object.parents.map((e) => globalThis.String(e)) : [],
|
|
1764
|
-
children: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.children) ? object.children.map((e) => globalThis.String(e)) : [],
|
|
832
|
+
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
833
|
+
order: isSet(object.order) ? globalThis.Number(object.order) : 0,
|
|
834
|
+
workflowId: isSet(object.workflowId) ? globalThis.String(object.workflowId) : "",
|
|
1765
835
|
};
|
|
1766
836
|
},
|
|
1767
837
|
toJSON(message) {
|
|
1768
|
-
var _a, _b;
|
|
1769
838
|
const obj = {};
|
|
1770
839
|
if (message.id !== "") {
|
|
1771
840
|
obj.id = message.id;
|
|
@@ -1776,62 +845,49 @@ exports.Step = {
|
|
|
1776
845
|
if (message.updatedAt !== undefined) {
|
|
1777
846
|
obj.updatedAt = message.updatedAt.toISOString();
|
|
1778
847
|
}
|
|
1779
|
-
if (message.
|
|
1780
|
-
obj.
|
|
1781
|
-
}
|
|
1782
|
-
if (message.tenantId !== "") {
|
|
1783
|
-
obj.tenantId = message.tenantId;
|
|
1784
|
-
}
|
|
1785
|
-
if (message.jobId !== "") {
|
|
1786
|
-
obj.jobId = message.jobId;
|
|
1787
|
-
}
|
|
1788
|
-
if (message.action !== "") {
|
|
1789
|
-
obj.action = message.action;
|
|
1790
|
-
}
|
|
1791
|
-
if (message.timeout !== undefined) {
|
|
1792
|
-
obj.timeout = message.timeout;
|
|
848
|
+
if (message.version !== "") {
|
|
849
|
+
obj.version = message.version;
|
|
1793
850
|
}
|
|
1794
|
-
if (
|
|
1795
|
-
obj.
|
|
851
|
+
if (message.order !== 0) {
|
|
852
|
+
obj.order = Math.round(message.order);
|
|
1796
853
|
}
|
|
1797
|
-
if (
|
|
1798
|
-
obj.
|
|
854
|
+
if (message.workflowId !== "") {
|
|
855
|
+
obj.workflowId = message.workflowId;
|
|
1799
856
|
}
|
|
1800
857
|
return obj;
|
|
1801
858
|
},
|
|
1802
859
|
create(base) {
|
|
1803
|
-
return exports.
|
|
860
|
+
return exports.WorkflowVersion.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1804
861
|
},
|
|
1805
862
|
fromPartial(object) {
|
|
1806
|
-
var _a, _b, _c, _d, _e, _f
|
|
1807
|
-
const message =
|
|
863
|
+
var _a, _b, _c, _d, _e, _f;
|
|
864
|
+
const message = createBaseWorkflowVersion();
|
|
1808
865
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
1809
866
|
message.createdAt = (_b = object.createdAt) !== null && _b !== void 0 ? _b : undefined;
|
|
1810
867
|
message.updatedAt = (_c = object.updatedAt) !== null && _c !== void 0 ? _c : undefined;
|
|
1811
|
-
message.
|
|
1812
|
-
message.
|
|
1813
|
-
message.
|
|
1814
|
-
message.action = (_g = object.action) !== null && _g !== void 0 ? _g : "";
|
|
1815
|
-
message.timeout = (_h = object.timeout) !== null && _h !== void 0 ? _h : undefined;
|
|
1816
|
-
message.parents = ((_j = object.parents) === null || _j === void 0 ? void 0 : _j.map((e) => e)) || [];
|
|
1817
|
-
message.children = ((_k = object.children) === null || _k === void 0 ? void 0 : _k.map((e) => e)) || [];
|
|
868
|
+
message.version = (_d = object.version) !== null && _d !== void 0 ? _d : "";
|
|
869
|
+
message.order = (_e = object.order) !== null && _e !== void 0 ? _e : 0;
|
|
870
|
+
message.workflowId = (_f = object.workflowId) !== null && _f !== void 0 ? _f : "";
|
|
1818
871
|
return message;
|
|
1819
872
|
},
|
|
1820
873
|
};
|
|
1821
|
-
function
|
|
1822
|
-
return {
|
|
874
|
+
function createBaseWorkflowTriggerEventRef() {
|
|
875
|
+
return { parentId: "", eventKey: "" };
|
|
1823
876
|
}
|
|
1824
|
-
exports.
|
|
877
|
+
exports.WorkflowTriggerEventRef = {
|
|
1825
878
|
encode(message, writer = _m0.Writer.create()) {
|
|
1826
|
-
if (message.
|
|
1827
|
-
writer.uint32(10).string(message.
|
|
879
|
+
if (message.parentId !== "") {
|
|
880
|
+
writer.uint32(10).string(message.parentId);
|
|
881
|
+
}
|
|
882
|
+
if (message.eventKey !== "") {
|
|
883
|
+
writer.uint32(18).string(message.eventKey);
|
|
1828
884
|
}
|
|
1829
885
|
return writer;
|
|
1830
886
|
},
|
|
1831
887
|
decode(input, length) {
|
|
1832
888
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1833
889
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1834
|
-
const message =
|
|
890
|
+
const message = createBaseWorkflowTriggerEventRef();
|
|
1835
891
|
while (reader.pos < end) {
|
|
1836
892
|
const tag = reader.uint32();
|
|
1837
893
|
switch (tag >>> 3) {
|
|
@@ -1839,7 +895,13 @@ exports.DeleteWorkflowRequest = {
|
|
|
1839
895
|
if (tag !== 10) {
|
|
1840
896
|
break;
|
|
1841
897
|
}
|
|
1842
|
-
message.
|
|
898
|
+
message.parentId = reader.string();
|
|
899
|
+
continue;
|
|
900
|
+
case 2:
|
|
901
|
+
if (tag !== 18) {
|
|
902
|
+
break;
|
|
903
|
+
}
|
|
904
|
+
message.eventKey = reader.string();
|
|
1843
905
|
continue;
|
|
1844
906
|
}
|
|
1845
907
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -1850,39 +912,49 @@ exports.DeleteWorkflowRequest = {
|
|
|
1850
912
|
return message;
|
|
1851
913
|
},
|
|
1852
914
|
fromJSON(object) {
|
|
1853
|
-
return {
|
|
915
|
+
return {
|
|
916
|
+
parentId: isSet(object.parentId) ? globalThis.String(object.parentId) : "",
|
|
917
|
+
eventKey: isSet(object.eventKey) ? globalThis.String(object.eventKey) : "",
|
|
918
|
+
};
|
|
1854
919
|
},
|
|
1855
920
|
toJSON(message) {
|
|
1856
921
|
const obj = {};
|
|
1857
|
-
if (message.
|
|
1858
|
-
obj.
|
|
922
|
+
if (message.parentId !== "") {
|
|
923
|
+
obj.parentId = message.parentId;
|
|
924
|
+
}
|
|
925
|
+
if (message.eventKey !== "") {
|
|
926
|
+
obj.eventKey = message.eventKey;
|
|
1859
927
|
}
|
|
1860
928
|
return obj;
|
|
1861
929
|
},
|
|
1862
930
|
create(base) {
|
|
1863
|
-
return exports.
|
|
931
|
+
return exports.WorkflowTriggerEventRef.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1864
932
|
},
|
|
1865
933
|
fromPartial(object) {
|
|
1866
|
-
var _a;
|
|
1867
|
-
const message =
|
|
1868
|
-
message.
|
|
934
|
+
var _a, _b;
|
|
935
|
+
const message = createBaseWorkflowTriggerEventRef();
|
|
936
|
+
message.parentId = (_a = object.parentId) !== null && _a !== void 0 ? _a : "";
|
|
937
|
+
message.eventKey = (_b = object.eventKey) !== null && _b !== void 0 ? _b : "";
|
|
1869
938
|
return message;
|
|
1870
939
|
},
|
|
1871
940
|
};
|
|
1872
|
-
function
|
|
1873
|
-
return {
|
|
941
|
+
function createBaseWorkflowTriggerCronRef() {
|
|
942
|
+
return { parentId: "", cron: "" };
|
|
1874
943
|
}
|
|
1875
|
-
exports.
|
|
944
|
+
exports.WorkflowTriggerCronRef = {
|
|
1876
945
|
encode(message, writer = _m0.Writer.create()) {
|
|
1877
|
-
if (message.
|
|
1878
|
-
writer.uint32(10).string(message.
|
|
946
|
+
if (message.parentId !== "") {
|
|
947
|
+
writer.uint32(10).string(message.parentId);
|
|
948
|
+
}
|
|
949
|
+
if (message.cron !== "") {
|
|
950
|
+
writer.uint32(18).string(message.cron);
|
|
1879
951
|
}
|
|
1880
952
|
return writer;
|
|
1881
953
|
},
|
|
1882
954
|
decode(input, length) {
|
|
1883
955
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1884
956
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1885
|
-
const message =
|
|
957
|
+
const message = createBaseWorkflowTriggerCronRef();
|
|
1886
958
|
while (reader.pos < end) {
|
|
1887
959
|
const tag = reader.uint32();
|
|
1888
960
|
switch (tag >>> 3) {
|
|
@@ -1890,7 +962,13 @@ exports.GetWorkflowByNameRequest = {
|
|
|
1890
962
|
if (tag !== 10) {
|
|
1891
963
|
break;
|
|
1892
964
|
}
|
|
1893
|
-
message.
|
|
965
|
+
message.parentId = reader.string();
|
|
966
|
+
continue;
|
|
967
|
+
case 2:
|
|
968
|
+
if (tag !== 18) {
|
|
969
|
+
break;
|
|
970
|
+
}
|
|
971
|
+
message.cron = reader.string();
|
|
1894
972
|
continue;
|
|
1895
973
|
}
|
|
1896
974
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -1901,22 +979,29 @@ exports.GetWorkflowByNameRequest = {
|
|
|
1901
979
|
return message;
|
|
1902
980
|
},
|
|
1903
981
|
fromJSON(object) {
|
|
1904
|
-
return {
|
|
982
|
+
return {
|
|
983
|
+
parentId: isSet(object.parentId) ? globalThis.String(object.parentId) : "",
|
|
984
|
+
cron: isSet(object.cron) ? globalThis.String(object.cron) : "",
|
|
985
|
+
};
|
|
1905
986
|
},
|
|
1906
987
|
toJSON(message) {
|
|
1907
988
|
const obj = {};
|
|
1908
|
-
if (message.
|
|
1909
|
-
obj.
|
|
989
|
+
if (message.parentId !== "") {
|
|
990
|
+
obj.parentId = message.parentId;
|
|
991
|
+
}
|
|
992
|
+
if (message.cron !== "") {
|
|
993
|
+
obj.cron = message.cron;
|
|
1910
994
|
}
|
|
1911
995
|
return obj;
|
|
1912
996
|
},
|
|
1913
997
|
create(base) {
|
|
1914
|
-
return exports.
|
|
998
|
+
return exports.WorkflowTriggerCronRef.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1915
999
|
},
|
|
1916
1000
|
fromPartial(object) {
|
|
1917
|
-
var _a;
|
|
1918
|
-
const message =
|
|
1919
|
-
message.
|
|
1001
|
+
var _a, _b;
|
|
1002
|
+
const message = createBaseWorkflowTriggerCronRef();
|
|
1003
|
+
message.parentId = (_a = object.parentId) !== null && _a !== void 0 ? _a : "";
|
|
1004
|
+
message.cron = (_b = object.cron) !== null && _b !== void 0 ? _b : "";
|
|
1920
1005
|
return message;
|
|
1921
1006
|
},
|
|
1922
1007
|
};
|
|
@@ -2042,14 +1127,6 @@ exports.WorkflowServiceDefinition = {
|
|
|
2042
1127
|
name: "WorkflowService",
|
|
2043
1128
|
fullName: "WorkflowService",
|
|
2044
1129
|
methods: {
|
|
2045
|
-
listWorkflows: {
|
|
2046
|
-
name: "ListWorkflows",
|
|
2047
|
-
requestType: exports.ListWorkflowsRequest,
|
|
2048
|
-
requestStream: false,
|
|
2049
|
-
responseType: exports.ListWorkflowsResponse,
|
|
2050
|
-
responseStream: false,
|
|
2051
|
-
options: {},
|
|
2052
|
-
},
|
|
2053
1130
|
putWorkflow: {
|
|
2054
1131
|
name: "PutWorkflow",
|
|
2055
1132
|
requestType: exports.PutWorkflowRequest,
|
|
@@ -2074,30 +1151,6 @@ exports.WorkflowServiceDefinition = {
|
|
|
2074
1151
|
responseStream: false,
|
|
2075
1152
|
options: {},
|
|
2076
1153
|
},
|
|
2077
|
-
getWorkflowByName: {
|
|
2078
|
-
name: "GetWorkflowByName",
|
|
2079
|
-
requestType: exports.GetWorkflowByNameRequest,
|
|
2080
|
-
requestStream: false,
|
|
2081
|
-
responseType: exports.Workflow,
|
|
2082
|
-
responseStream: false,
|
|
2083
|
-
options: {},
|
|
2084
|
-
},
|
|
2085
|
-
listWorkflowsForEvent: {
|
|
2086
|
-
name: "ListWorkflowsForEvent",
|
|
2087
|
-
requestType: exports.ListWorkflowsForEventRequest,
|
|
2088
|
-
requestStream: false,
|
|
2089
|
-
responseType: exports.ListWorkflowsResponse,
|
|
2090
|
-
responseStream: false,
|
|
2091
|
-
options: {},
|
|
2092
|
-
},
|
|
2093
|
-
deleteWorkflow: {
|
|
2094
|
-
name: "DeleteWorkflow",
|
|
2095
|
-
requestType: exports.DeleteWorkflowRequest,
|
|
2096
|
-
requestStream: false,
|
|
2097
|
-
responseType: exports.Workflow,
|
|
2098
|
-
responseStream: false,
|
|
2099
|
-
options: {},
|
|
2100
|
-
},
|
|
2101
1154
|
},
|
|
2102
1155
|
};
|
|
2103
1156
|
function toTimestamp(date) {
|