@hatchet-dev/typescript-sdk 0.15.1-alpha6 → 0.15.2
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/dispatcher/dispatcher-client.d.ts +2 -1
- package/clients/dispatcher/dispatcher-client.js +10 -1
- package/clients/event/event-client.js +16 -14
- package/clients/listener/child-listener-client.js +10 -16
- package/clients/worker/handler.js +8 -7
- package/examples/on-failure.js +15 -10
- package/package.json +5 -4
- package/protoc/dispatcher/dispatcher.d.ts +19 -0
- package/protoc/dispatcher/dispatcher.js +368 -92
- package/protoc/events/events.js +45 -23
- package/protoc/google/protobuf/timestamp.js +5 -3
- package/protoc/workflows/workflows.d.ts +9 -0
- package/protoc/workflows/workflows.js +275 -82
- package/version.d.ts +1 -0
- package/version.js +4 -0
|
@@ -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.2.
|
|
4
|
+
// protoc-gen-ts_proto v2.2.4
|
|
5
5
|
// protoc v3.19.1
|
|
6
6
|
// source: workflows/workflows.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.WorkflowServiceDefinition = exports.PutRateLimitResponse = exports.PutRateLimitRequest = exports.TriggerWorkflowResponse = exports.TriggerWorkflowRequest = exports.BulkTriggerWorkflowResponse = exports.BulkTriggerWorkflowRequest = exports.WorkflowTriggerCronRef = exports.WorkflowTriggerEventRef = exports.WorkflowVersion = exports.ScheduleWorkflowRequest = exports.ListWorkflowsRequest = exports.CreateStepRateLimit = exports.CreateWorkflowStepOpts_WorkerLabelsEntry = exports.CreateWorkflowStepOpts = exports.DesiredWorkerLabels = exports.CreateWorkflowJobOpts = exports.WorkflowConcurrencyOpts = exports.CreateWorkflowVersionOpts = exports.PutWorkflowRequest = exports.RateLimitDuration = exports.WorkerLabelComparator = exports.ConcurrencyLimitStrategy = exports.WorkflowKind = exports.StickyStrategy = exports.protobufPackage = void 0;
|
|
8
|
+
exports.WorkflowServiceDefinition = exports.PutRateLimitResponse = exports.PutRateLimitRequest = exports.TriggerWorkflowResponse = exports.TriggerWorkflowRequest = exports.BulkTriggerWorkflowResponse = exports.BulkTriggerWorkflowRequest = exports.WorkflowTriggerCronRef = exports.WorkflowTriggerEventRef = exports.WorkflowVersion = exports.ScheduledWorkflow = exports.ScheduleWorkflowRequest = exports.ListWorkflowsRequest = exports.CreateStepRateLimit = exports.CreateWorkflowStepOpts_WorkerLabelsEntry = exports.CreateWorkflowStepOpts = exports.DesiredWorkerLabels = exports.CreateWorkflowJobOpts = exports.WorkflowConcurrencyOpts = exports.CreateWorkflowVersionOpts = exports.PutWorkflowRequest = exports.RateLimitDuration = exports.WorkerLabelComparator = exports.ConcurrencyLimitStrategy = exports.WorkflowKind = exports.StickyStrategy = exports.protobufPackage = void 0;
|
|
9
9
|
exports.stickyStrategyFromJSON = stickyStrategyFromJSON;
|
|
10
10
|
exports.stickyStrategyToJSON = stickyStrategyToJSON;
|
|
11
11
|
exports.workflowKindFromJSON = workflowKindFromJSON;
|
|
@@ -264,12 +264,13 @@ exports.PutWorkflowRequest = {
|
|
|
264
264
|
while (reader.pos < end) {
|
|
265
265
|
const tag = reader.uint32();
|
|
266
266
|
switch (tag >>> 3) {
|
|
267
|
-
case 1:
|
|
267
|
+
case 1: {
|
|
268
268
|
if (tag !== 10) {
|
|
269
269
|
break;
|
|
270
270
|
}
|
|
271
271
|
message.opts = exports.CreateWorkflowVersionOpts.decode(reader, reader.uint32());
|
|
272
272
|
continue;
|
|
273
|
+
}
|
|
273
274
|
}
|
|
274
275
|
if ((tag & 7) === 4 || tag === 0) {
|
|
275
276
|
break;
|
|
@@ -373,90 +374,104 @@ exports.CreateWorkflowVersionOpts = {
|
|
|
373
374
|
while (reader.pos < end) {
|
|
374
375
|
const tag = reader.uint32();
|
|
375
376
|
switch (tag >>> 3) {
|
|
376
|
-
case 1:
|
|
377
|
+
case 1: {
|
|
377
378
|
if (tag !== 10) {
|
|
378
379
|
break;
|
|
379
380
|
}
|
|
380
381
|
message.name = reader.string();
|
|
381
382
|
continue;
|
|
382
|
-
|
|
383
|
+
}
|
|
384
|
+
case 2: {
|
|
383
385
|
if (tag !== 18) {
|
|
384
386
|
break;
|
|
385
387
|
}
|
|
386
388
|
message.description = reader.string();
|
|
387
389
|
continue;
|
|
388
|
-
|
|
390
|
+
}
|
|
391
|
+
case 3: {
|
|
389
392
|
if (tag !== 26) {
|
|
390
393
|
break;
|
|
391
394
|
}
|
|
392
395
|
message.version = reader.string();
|
|
393
396
|
continue;
|
|
394
|
-
|
|
397
|
+
}
|
|
398
|
+
case 4: {
|
|
395
399
|
if (tag !== 34) {
|
|
396
400
|
break;
|
|
397
401
|
}
|
|
398
402
|
message.eventTriggers.push(reader.string());
|
|
399
403
|
continue;
|
|
400
|
-
|
|
404
|
+
}
|
|
405
|
+
case 5: {
|
|
401
406
|
if (tag !== 42) {
|
|
402
407
|
break;
|
|
403
408
|
}
|
|
404
409
|
message.cronTriggers.push(reader.string());
|
|
405
410
|
continue;
|
|
406
|
-
|
|
411
|
+
}
|
|
412
|
+
case 6: {
|
|
407
413
|
if (tag !== 50) {
|
|
408
414
|
break;
|
|
409
415
|
}
|
|
410
416
|
message.scheduledTriggers.push(fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32())));
|
|
411
417
|
continue;
|
|
412
|
-
|
|
418
|
+
}
|
|
419
|
+
case 7: {
|
|
413
420
|
if (tag !== 58) {
|
|
414
421
|
break;
|
|
415
422
|
}
|
|
416
423
|
message.jobs.push(exports.CreateWorkflowJobOpts.decode(reader, reader.uint32()));
|
|
417
424
|
continue;
|
|
418
|
-
|
|
425
|
+
}
|
|
426
|
+
case 8: {
|
|
419
427
|
if (tag !== 66) {
|
|
420
428
|
break;
|
|
421
429
|
}
|
|
422
430
|
message.concurrency = exports.WorkflowConcurrencyOpts.decode(reader, reader.uint32());
|
|
423
431
|
continue;
|
|
424
|
-
|
|
432
|
+
}
|
|
433
|
+
case 9: {
|
|
425
434
|
if (tag !== 74) {
|
|
426
435
|
break;
|
|
427
436
|
}
|
|
428
437
|
message.scheduleTimeout = reader.string();
|
|
429
438
|
continue;
|
|
430
|
-
|
|
439
|
+
}
|
|
440
|
+
case 10: {
|
|
431
441
|
if (tag !== 82) {
|
|
432
442
|
break;
|
|
433
443
|
}
|
|
434
444
|
message.cronInput = reader.string();
|
|
435
445
|
continue;
|
|
436
|
-
|
|
446
|
+
}
|
|
447
|
+
case 11: {
|
|
437
448
|
if (tag !== 90) {
|
|
438
449
|
break;
|
|
439
450
|
}
|
|
440
451
|
message.onFailureJob = exports.CreateWorkflowJobOpts.decode(reader, reader.uint32());
|
|
441
452
|
continue;
|
|
442
|
-
|
|
453
|
+
}
|
|
454
|
+
case 12: {
|
|
443
455
|
if (tag !== 96) {
|
|
444
456
|
break;
|
|
445
457
|
}
|
|
446
458
|
message.sticky = reader.int32();
|
|
447
459
|
continue;
|
|
448
|
-
|
|
460
|
+
}
|
|
461
|
+
case 13: {
|
|
449
462
|
if (tag !== 104) {
|
|
450
463
|
break;
|
|
451
464
|
}
|
|
452
465
|
message.kind = reader.int32();
|
|
453
466
|
continue;
|
|
454
|
-
|
|
467
|
+
}
|
|
468
|
+
case 14: {
|
|
455
469
|
if (tag !== 112) {
|
|
456
470
|
break;
|
|
457
471
|
}
|
|
458
472
|
message.defaultPriority = reader.int32();
|
|
459
473
|
continue;
|
|
474
|
+
}
|
|
460
475
|
}
|
|
461
476
|
if ((tag & 7) === 4 || tag === 0) {
|
|
462
477
|
break;
|
|
@@ -601,30 +616,34 @@ exports.WorkflowConcurrencyOpts = {
|
|
|
601
616
|
while (reader.pos < end) {
|
|
602
617
|
const tag = reader.uint32();
|
|
603
618
|
switch (tag >>> 3) {
|
|
604
|
-
case 1:
|
|
619
|
+
case 1: {
|
|
605
620
|
if (tag !== 10) {
|
|
606
621
|
break;
|
|
607
622
|
}
|
|
608
623
|
message.action = reader.string();
|
|
609
624
|
continue;
|
|
610
|
-
|
|
625
|
+
}
|
|
626
|
+
case 2: {
|
|
611
627
|
if (tag !== 16) {
|
|
612
628
|
break;
|
|
613
629
|
}
|
|
614
630
|
message.maxRuns = reader.int32();
|
|
615
631
|
continue;
|
|
616
|
-
|
|
632
|
+
}
|
|
633
|
+
case 3: {
|
|
617
634
|
if (tag !== 24) {
|
|
618
635
|
break;
|
|
619
636
|
}
|
|
620
637
|
message.limitStrategy = reader.int32();
|
|
621
638
|
continue;
|
|
622
|
-
|
|
639
|
+
}
|
|
640
|
+
case 4: {
|
|
623
641
|
if (tag !== 34) {
|
|
624
642
|
break;
|
|
625
643
|
}
|
|
626
644
|
message.expression = reader.string();
|
|
627
645
|
continue;
|
|
646
|
+
}
|
|
628
647
|
}
|
|
629
648
|
if ((tag & 7) === 4 || tag === 0) {
|
|
630
649
|
break;
|
|
@@ -695,24 +714,27 @@ exports.CreateWorkflowJobOpts = {
|
|
|
695
714
|
while (reader.pos < end) {
|
|
696
715
|
const tag = reader.uint32();
|
|
697
716
|
switch (tag >>> 3) {
|
|
698
|
-
case 1:
|
|
717
|
+
case 1: {
|
|
699
718
|
if (tag !== 10) {
|
|
700
719
|
break;
|
|
701
720
|
}
|
|
702
721
|
message.name = reader.string();
|
|
703
722
|
continue;
|
|
704
|
-
|
|
723
|
+
}
|
|
724
|
+
case 2: {
|
|
705
725
|
if (tag !== 18) {
|
|
706
726
|
break;
|
|
707
727
|
}
|
|
708
728
|
message.description = reader.string();
|
|
709
729
|
continue;
|
|
710
|
-
|
|
730
|
+
}
|
|
731
|
+
case 4: {
|
|
711
732
|
if (tag !== 34) {
|
|
712
733
|
break;
|
|
713
734
|
}
|
|
714
735
|
message.steps.push(exports.CreateWorkflowStepOpts.decode(reader, reader.uint32()));
|
|
715
736
|
continue;
|
|
737
|
+
}
|
|
716
738
|
}
|
|
717
739
|
if ((tag & 7) === 4 || tag === 0) {
|
|
718
740
|
break;
|
|
@@ -791,36 +813,41 @@ exports.DesiredWorkerLabels = {
|
|
|
791
813
|
while (reader.pos < end) {
|
|
792
814
|
const tag = reader.uint32();
|
|
793
815
|
switch (tag >>> 3) {
|
|
794
|
-
case 1:
|
|
816
|
+
case 1: {
|
|
795
817
|
if (tag !== 10) {
|
|
796
818
|
break;
|
|
797
819
|
}
|
|
798
820
|
message.strValue = reader.string();
|
|
799
821
|
continue;
|
|
800
|
-
|
|
822
|
+
}
|
|
823
|
+
case 2: {
|
|
801
824
|
if (tag !== 16) {
|
|
802
825
|
break;
|
|
803
826
|
}
|
|
804
827
|
message.intValue = reader.int32();
|
|
805
828
|
continue;
|
|
806
|
-
|
|
829
|
+
}
|
|
830
|
+
case 3: {
|
|
807
831
|
if (tag !== 24) {
|
|
808
832
|
break;
|
|
809
833
|
}
|
|
810
834
|
message.required = reader.bool();
|
|
811
835
|
continue;
|
|
812
|
-
|
|
836
|
+
}
|
|
837
|
+
case 4: {
|
|
813
838
|
if (tag !== 32) {
|
|
814
839
|
break;
|
|
815
840
|
}
|
|
816
841
|
message.comparator = reader.int32();
|
|
817
842
|
continue;
|
|
818
|
-
|
|
843
|
+
}
|
|
844
|
+
case 5: {
|
|
819
845
|
if (tag !== 40) {
|
|
820
846
|
break;
|
|
821
847
|
}
|
|
822
848
|
message.weight = reader.int32();
|
|
823
849
|
continue;
|
|
850
|
+
}
|
|
824
851
|
}
|
|
825
852
|
if ((tag & 7) === 4 || tag === 0) {
|
|
826
853
|
break;
|
|
@@ -924,55 +951,63 @@ exports.CreateWorkflowStepOpts = {
|
|
|
924
951
|
while (reader.pos < end) {
|
|
925
952
|
const tag = reader.uint32();
|
|
926
953
|
switch (tag >>> 3) {
|
|
927
|
-
case 1:
|
|
954
|
+
case 1: {
|
|
928
955
|
if (tag !== 10) {
|
|
929
956
|
break;
|
|
930
957
|
}
|
|
931
958
|
message.readableId = reader.string();
|
|
932
959
|
continue;
|
|
933
|
-
|
|
960
|
+
}
|
|
961
|
+
case 2: {
|
|
934
962
|
if (tag !== 18) {
|
|
935
963
|
break;
|
|
936
964
|
}
|
|
937
965
|
message.action = reader.string();
|
|
938
966
|
continue;
|
|
939
|
-
|
|
967
|
+
}
|
|
968
|
+
case 3: {
|
|
940
969
|
if (tag !== 26) {
|
|
941
970
|
break;
|
|
942
971
|
}
|
|
943
972
|
message.timeout = reader.string();
|
|
944
973
|
continue;
|
|
945
|
-
|
|
974
|
+
}
|
|
975
|
+
case 4: {
|
|
946
976
|
if (tag !== 34) {
|
|
947
977
|
break;
|
|
948
978
|
}
|
|
949
979
|
message.inputs = reader.string();
|
|
950
980
|
continue;
|
|
951
|
-
|
|
981
|
+
}
|
|
982
|
+
case 5: {
|
|
952
983
|
if (tag !== 42) {
|
|
953
984
|
break;
|
|
954
985
|
}
|
|
955
986
|
message.parents.push(reader.string());
|
|
956
987
|
continue;
|
|
957
|
-
|
|
988
|
+
}
|
|
989
|
+
case 6: {
|
|
958
990
|
if (tag !== 50) {
|
|
959
991
|
break;
|
|
960
992
|
}
|
|
961
993
|
message.userData = reader.string();
|
|
962
994
|
continue;
|
|
963
|
-
|
|
995
|
+
}
|
|
996
|
+
case 7: {
|
|
964
997
|
if (tag !== 56) {
|
|
965
998
|
break;
|
|
966
999
|
}
|
|
967
1000
|
message.retries = reader.int32();
|
|
968
1001
|
continue;
|
|
969
|
-
|
|
1002
|
+
}
|
|
1003
|
+
case 8: {
|
|
970
1004
|
if (tag !== 66) {
|
|
971
1005
|
break;
|
|
972
1006
|
}
|
|
973
1007
|
message.rateLimits.push(exports.CreateStepRateLimit.decode(reader, reader.uint32()));
|
|
974
1008
|
continue;
|
|
975
|
-
|
|
1009
|
+
}
|
|
1010
|
+
case 9: {
|
|
976
1011
|
if (tag !== 74) {
|
|
977
1012
|
break;
|
|
978
1013
|
}
|
|
@@ -981,6 +1016,7 @@ exports.CreateWorkflowStepOpts = {
|
|
|
981
1016
|
message.workerLabels[entry9.key] = entry9.value;
|
|
982
1017
|
}
|
|
983
1018
|
continue;
|
|
1019
|
+
}
|
|
984
1020
|
}
|
|
985
1021
|
if ((tag & 7) === 4 || tag === 0) {
|
|
986
1022
|
break;
|
|
@@ -1092,18 +1128,20 @@ exports.CreateWorkflowStepOpts_WorkerLabelsEntry = {
|
|
|
1092
1128
|
while (reader.pos < end) {
|
|
1093
1129
|
const tag = reader.uint32();
|
|
1094
1130
|
switch (tag >>> 3) {
|
|
1095
|
-
case 1:
|
|
1131
|
+
case 1: {
|
|
1096
1132
|
if (tag !== 10) {
|
|
1097
1133
|
break;
|
|
1098
1134
|
}
|
|
1099
1135
|
message.key = reader.string();
|
|
1100
1136
|
continue;
|
|
1101
|
-
|
|
1137
|
+
}
|
|
1138
|
+
case 2: {
|
|
1102
1139
|
if (tag !== 18) {
|
|
1103
1140
|
break;
|
|
1104
1141
|
}
|
|
1105
1142
|
message.value = exports.DesiredWorkerLabels.decode(reader, reader.uint32());
|
|
1106
1143
|
continue;
|
|
1144
|
+
}
|
|
1107
1145
|
}
|
|
1108
1146
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1109
1147
|
break;
|
|
@@ -1181,42 +1219,48 @@ exports.CreateStepRateLimit = {
|
|
|
1181
1219
|
while (reader.pos < end) {
|
|
1182
1220
|
const tag = reader.uint32();
|
|
1183
1221
|
switch (tag >>> 3) {
|
|
1184
|
-
case 1:
|
|
1222
|
+
case 1: {
|
|
1185
1223
|
if (tag !== 10) {
|
|
1186
1224
|
break;
|
|
1187
1225
|
}
|
|
1188
1226
|
message.key = reader.string();
|
|
1189
1227
|
continue;
|
|
1190
|
-
|
|
1228
|
+
}
|
|
1229
|
+
case 2: {
|
|
1191
1230
|
if (tag !== 16) {
|
|
1192
1231
|
break;
|
|
1193
1232
|
}
|
|
1194
1233
|
message.units = reader.int32();
|
|
1195
1234
|
continue;
|
|
1196
|
-
|
|
1235
|
+
}
|
|
1236
|
+
case 3: {
|
|
1197
1237
|
if (tag !== 26) {
|
|
1198
1238
|
break;
|
|
1199
1239
|
}
|
|
1200
1240
|
message.keyExpr = reader.string();
|
|
1201
1241
|
continue;
|
|
1202
|
-
|
|
1242
|
+
}
|
|
1243
|
+
case 4: {
|
|
1203
1244
|
if (tag !== 34) {
|
|
1204
1245
|
break;
|
|
1205
1246
|
}
|
|
1206
1247
|
message.unitsExpr = reader.string();
|
|
1207
1248
|
continue;
|
|
1208
|
-
|
|
1249
|
+
}
|
|
1250
|
+
case 5: {
|
|
1209
1251
|
if (tag !== 42) {
|
|
1210
1252
|
break;
|
|
1211
1253
|
}
|
|
1212
1254
|
message.limitValuesExpr = reader.string();
|
|
1213
1255
|
continue;
|
|
1214
|
-
|
|
1256
|
+
}
|
|
1257
|
+
case 6: {
|
|
1215
1258
|
if (tag !== 48) {
|
|
1216
1259
|
break;
|
|
1217
1260
|
}
|
|
1218
1261
|
message.duration = reader.int32();
|
|
1219
1262
|
continue;
|
|
1263
|
+
}
|
|
1220
1264
|
}
|
|
1221
1265
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1222
1266
|
break;
|
|
@@ -1320,6 +1364,7 @@ function createBaseScheduleWorkflowRequest() {
|
|
|
1320
1364
|
parentStepRunId: undefined,
|
|
1321
1365
|
childIndex: undefined,
|
|
1322
1366
|
childKey: undefined,
|
|
1367
|
+
additionalMetadata: undefined,
|
|
1323
1368
|
};
|
|
1324
1369
|
}
|
|
1325
1370
|
exports.ScheduleWorkflowRequest = {
|
|
@@ -1345,6 +1390,9 @@ exports.ScheduleWorkflowRequest = {
|
|
|
1345
1390
|
if (message.childKey !== undefined) {
|
|
1346
1391
|
writer.uint32(58).string(message.childKey);
|
|
1347
1392
|
}
|
|
1393
|
+
if (message.additionalMetadata !== undefined) {
|
|
1394
|
+
writer.uint32(66).string(message.additionalMetadata);
|
|
1395
|
+
}
|
|
1348
1396
|
return writer;
|
|
1349
1397
|
},
|
|
1350
1398
|
decode(input, length) {
|
|
@@ -1354,48 +1402,62 @@ exports.ScheduleWorkflowRequest = {
|
|
|
1354
1402
|
while (reader.pos < end) {
|
|
1355
1403
|
const tag = reader.uint32();
|
|
1356
1404
|
switch (tag >>> 3) {
|
|
1357
|
-
case 1:
|
|
1405
|
+
case 1: {
|
|
1358
1406
|
if (tag !== 10) {
|
|
1359
1407
|
break;
|
|
1360
1408
|
}
|
|
1361
1409
|
message.name = reader.string();
|
|
1362
1410
|
continue;
|
|
1363
|
-
|
|
1411
|
+
}
|
|
1412
|
+
case 2: {
|
|
1364
1413
|
if (tag !== 18) {
|
|
1365
1414
|
break;
|
|
1366
1415
|
}
|
|
1367
1416
|
message.schedules.push(fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32())));
|
|
1368
1417
|
continue;
|
|
1369
|
-
|
|
1418
|
+
}
|
|
1419
|
+
case 3: {
|
|
1370
1420
|
if (tag !== 26) {
|
|
1371
1421
|
break;
|
|
1372
1422
|
}
|
|
1373
1423
|
message.input = reader.string();
|
|
1374
1424
|
continue;
|
|
1375
|
-
|
|
1425
|
+
}
|
|
1426
|
+
case 4: {
|
|
1376
1427
|
if (tag !== 34) {
|
|
1377
1428
|
break;
|
|
1378
1429
|
}
|
|
1379
1430
|
message.parentId = reader.string();
|
|
1380
1431
|
continue;
|
|
1381
|
-
|
|
1432
|
+
}
|
|
1433
|
+
case 5: {
|
|
1382
1434
|
if (tag !== 42) {
|
|
1383
1435
|
break;
|
|
1384
1436
|
}
|
|
1385
1437
|
message.parentStepRunId = reader.string();
|
|
1386
1438
|
continue;
|
|
1387
|
-
|
|
1439
|
+
}
|
|
1440
|
+
case 6: {
|
|
1388
1441
|
if (tag !== 48) {
|
|
1389
1442
|
break;
|
|
1390
1443
|
}
|
|
1391
1444
|
message.childIndex = reader.int32();
|
|
1392
1445
|
continue;
|
|
1393
|
-
|
|
1446
|
+
}
|
|
1447
|
+
case 7: {
|
|
1394
1448
|
if (tag !== 58) {
|
|
1395
1449
|
break;
|
|
1396
1450
|
}
|
|
1397
1451
|
message.childKey = reader.string();
|
|
1398
1452
|
continue;
|
|
1453
|
+
}
|
|
1454
|
+
case 8: {
|
|
1455
|
+
if (tag !== 66) {
|
|
1456
|
+
break;
|
|
1457
|
+
}
|
|
1458
|
+
message.additionalMetadata = reader.string();
|
|
1459
|
+
continue;
|
|
1460
|
+
}
|
|
1399
1461
|
}
|
|
1400
1462
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1401
1463
|
break;
|
|
@@ -1417,6 +1479,9 @@ exports.ScheduleWorkflowRequest = {
|
|
|
1417
1479
|
: undefined,
|
|
1418
1480
|
childIndex: isSet(object.childIndex) ? globalThis.Number(object.childIndex) : undefined,
|
|
1419
1481
|
childKey: isSet(object.childKey) ? globalThis.String(object.childKey) : undefined,
|
|
1482
|
+
additionalMetadata: isSet(object.additionalMetadata)
|
|
1483
|
+
? globalThis.String(object.additionalMetadata)
|
|
1484
|
+
: undefined,
|
|
1420
1485
|
};
|
|
1421
1486
|
},
|
|
1422
1487
|
toJSON(message) {
|
|
@@ -1443,13 +1508,16 @@ exports.ScheduleWorkflowRequest = {
|
|
|
1443
1508
|
if (message.childKey !== undefined) {
|
|
1444
1509
|
obj.childKey = message.childKey;
|
|
1445
1510
|
}
|
|
1511
|
+
if (message.additionalMetadata !== undefined) {
|
|
1512
|
+
obj.additionalMetadata = message.additionalMetadata;
|
|
1513
|
+
}
|
|
1446
1514
|
return obj;
|
|
1447
1515
|
},
|
|
1448
1516
|
create(base) {
|
|
1449
1517
|
return exports.ScheduleWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1450
1518
|
},
|
|
1451
1519
|
fromPartial(object) {
|
|
1452
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1520
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1453
1521
|
const message = createBaseScheduleWorkflowRequest();
|
|
1454
1522
|
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : '';
|
|
1455
1523
|
message.schedules = ((_b = object.schedules) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
@@ -1458,6 +1526,76 @@ exports.ScheduleWorkflowRequest = {
|
|
|
1458
1526
|
message.parentStepRunId = (_e = object.parentStepRunId) !== null && _e !== void 0 ? _e : undefined;
|
|
1459
1527
|
message.childIndex = (_f = object.childIndex) !== null && _f !== void 0 ? _f : undefined;
|
|
1460
1528
|
message.childKey = (_g = object.childKey) !== null && _g !== void 0 ? _g : undefined;
|
|
1529
|
+
message.additionalMetadata = (_h = object.additionalMetadata) !== null && _h !== void 0 ? _h : undefined;
|
|
1530
|
+
return message;
|
|
1531
|
+
},
|
|
1532
|
+
};
|
|
1533
|
+
function createBaseScheduledWorkflow() {
|
|
1534
|
+
return { id: '', triggerAt: undefined };
|
|
1535
|
+
}
|
|
1536
|
+
exports.ScheduledWorkflow = {
|
|
1537
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1538
|
+
if (message.id !== '') {
|
|
1539
|
+
writer.uint32(10).string(message.id);
|
|
1540
|
+
}
|
|
1541
|
+
if (message.triggerAt !== undefined) {
|
|
1542
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.triggerAt), writer.uint32(18).fork()).join();
|
|
1543
|
+
}
|
|
1544
|
+
return writer;
|
|
1545
|
+
},
|
|
1546
|
+
decode(input, length) {
|
|
1547
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1548
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1549
|
+
const message = createBaseScheduledWorkflow();
|
|
1550
|
+
while (reader.pos < end) {
|
|
1551
|
+
const tag = reader.uint32();
|
|
1552
|
+
switch (tag >>> 3) {
|
|
1553
|
+
case 1: {
|
|
1554
|
+
if (tag !== 10) {
|
|
1555
|
+
break;
|
|
1556
|
+
}
|
|
1557
|
+
message.id = reader.string();
|
|
1558
|
+
continue;
|
|
1559
|
+
}
|
|
1560
|
+
case 2: {
|
|
1561
|
+
if (tag !== 18) {
|
|
1562
|
+
break;
|
|
1563
|
+
}
|
|
1564
|
+
message.triggerAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
1565
|
+
continue;
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1569
|
+
break;
|
|
1570
|
+
}
|
|
1571
|
+
reader.skip(tag & 7);
|
|
1572
|
+
}
|
|
1573
|
+
return message;
|
|
1574
|
+
},
|
|
1575
|
+
fromJSON(object) {
|
|
1576
|
+
return {
|
|
1577
|
+
id: isSet(object.id) ? globalThis.String(object.id) : '',
|
|
1578
|
+
triggerAt: isSet(object.triggerAt) ? fromJsonTimestamp(object.triggerAt) : undefined,
|
|
1579
|
+
};
|
|
1580
|
+
},
|
|
1581
|
+
toJSON(message) {
|
|
1582
|
+
const obj = {};
|
|
1583
|
+
if (message.id !== '') {
|
|
1584
|
+
obj.id = message.id;
|
|
1585
|
+
}
|
|
1586
|
+
if (message.triggerAt !== undefined) {
|
|
1587
|
+
obj.triggerAt = message.triggerAt.toISOString();
|
|
1588
|
+
}
|
|
1589
|
+
return obj;
|
|
1590
|
+
},
|
|
1591
|
+
create(base) {
|
|
1592
|
+
return exports.ScheduledWorkflow.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1593
|
+
},
|
|
1594
|
+
fromPartial(object) {
|
|
1595
|
+
var _a, _b;
|
|
1596
|
+
const message = createBaseScheduledWorkflow();
|
|
1597
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : '';
|
|
1598
|
+
message.triggerAt = (_b = object.triggerAt) !== null && _b !== void 0 ? _b : undefined;
|
|
1461
1599
|
return message;
|
|
1462
1600
|
},
|
|
1463
1601
|
};
|
|
@@ -1469,6 +1607,7 @@ function createBaseWorkflowVersion() {
|
|
|
1469
1607
|
version: '',
|
|
1470
1608
|
order: 0,
|
|
1471
1609
|
workflowId: '',
|
|
1610
|
+
scheduledWorkflows: [],
|
|
1472
1611
|
};
|
|
1473
1612
|
}
|
|
1474
1613
|
exports.WorkflowVersion = {
|
|
@@ -1486,11 +1625,14 @@ exports.WorkflowVersion = {
|
|
|
1486
1625
|
writer.uint32(42).string(message.version);
|
|
1487
1626
|
}
|
|
1488
1627
|
if (message.order !== 0) {
|
|
1489
|
-
writer.uint32(48).
|
|
1628
|
+
writer.uint32(48).int64(message.order);
|
|
1490
1629
|
}
|
|
1491
1630
|
if (message.workflowId !== '') {
|
|
1492
1631
|
writer.uint32(58).string(message.workflowId);
|
|
1493
1632
|
}
|
|
1633
|
+
for (const v of message.scheduledWorkflows) {
|
|
1634
|
+
exports.ScheduledWorkflow.encode(v, writer.uint32(66).fork()).join();
|
|
1635
|
+
}
|
|
1494
1636
|
return writer;
|
|
1495
1637
|
},
|
|
1496
1638
|
decode(input, length) {
|
|
@@ -1500,42 +1642,55 @@ exports.WorkflowVersion = {
|
|
|
1500
1642
|
while (reader.pos < end) {
|
|
1501
1643
|
const tag = reader.uint32();
|
|
1502
1644
|
switch (tag >>> 3) {
|
|
1503
|
-
case 1:
|
|
1645
|
+
case 1: {
|
|
1504
1646
|
if (tag !== 10) {
|
|
1505
1647
|
break;
|
|
1506
1648
|
}
|
|
1507
1649
|
message.id = reader.string();
|
|
1508
1650
|
continue;
|
|
1509
|
-
|
|
1651
|
+
}
|
|
1652
|
+
case 2: {
|
|
1510
1653
|
if (tag !== 18) {
|
|
1511
1654
|
break;
|
|
1512
1655
|
}
|
|
1513
1656
|
message.createdAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
1514
1657
|
continue;
|
|
1515
|
-
|
|
1658
|
+
}
|
|
1659
|
+
case 3: {
|
|
1516
1660
|
if (tag !== 26) {
|
|
1517
1661
|
break;
|
|
1518
1662
|
}
|
|
1519
1663
|
message.updatedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
1520
1664
|
continue;
|
|
1521
|
-
|
|
1665
|
+
}
|
|
1666
|
+
case 5: {
|
|
1522
1667
|
if (tag !== 42) {
|
|
1523
1668
|
break;
|
|
1524
1669
|
}
|
|
1525
1670
|
message.version = reader.string();
|
|
1526
1671
|
continue;
|
|
1527
|
-
|
|
1672
|
+
}
|
|
1673
|
+
case 6: {
|
|
1528
1674
|
if (tag !== 48) {
|
|
1529
1675
|
break;
|
|
1530
1676
|
}
|
|
1531
|
-
message.order = reader.
|
|
1677
|
+
message.order = longToNumber(reader.int64());
|
|
1532
1678
|
continue;
|
|
1533
|
-
|
|
1679
|
+
}
|
|
1680
|
+
case 7: {
|
|
1534
1681
|
if (tag !== 58) {
|
|
1535
1682
|
break;
|
|
1536
1683
|
}
|
|
1537
1684
|
message.workflowId = reader.string();
|
|
1538
1685
|
continue;
|
|
1686
|
+
}
|
|
1687
|
+
case 8: {
|
|
1688
|
+
if (tag !== 66) {
|
|
1689
|
+
break;
|
|
1690
|
+
}
|
|
1691
|
+
message.scheduledWorkflows.push(exports.ScheduledWorkflow.decode(reader, reader.uint32()));
|
|
1692
|
+
continue;
|
|
1693
|
+
}
|
|
1539
1694
|
}
|
|
1540
1695
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1541
1696
|
break;
|
|
@@ -1552,9 +1707,13 @@ exports.WorkflowVersion = {
|
|
|
1552
1707
|
version: isSet(object.version) ? globalThis.String(object.version) : '',
|
|
1553
1708
|
order: isSet(object.order) ? globalThis.Number(object.order) : 0,
|
|
1554
1709
|
workflowId: isSet(object.workflowId) ? globalThis.String(object.workflowId) : '',
|
|
1710
|
+
scheduledWorkflows: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.scheduledWorkflows)
|
|
1711
|
+
? object.scheduledWorkflows.map((e) => exports.ScheduledWorkflow.fromJSON(e))
|
|
1712
|
+
: [],
|
|
1555
1713
|
};
|
|
1556
1714
|
},
|
|
1557
1715
|
toJSON(message) {
|
|
1716
|
+
var _a;
|
|
1558
1717
|
const obj = {};
|
|
1559
1718
|
if (message.id !== '') {
|
|
1560
1719
|
obj.id = message.id;
|
|
@@ -1574,13 +1733,16 @@ exports.WorkflowVersion = {
|
|
|
1574
1733
|
if (message.workflowId !== '') {
|
|
1575
1734
|
obj.workflowId = message.workflowId;
|
|
1576
1735
|
}
|
|
1736
|
+
if ((_a = message.scheduledWorkflows) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1737
|
+
obj.scheduledWorkflows = message.scheduledWorkflows.map((e) => exports.ScheduledWorkflow.toJSON(e));
|
|
1738
|
+
}
|
|
1577
1739
|
return obj;
|
|
1578
1740
|
},
|
|
1579
1741
|
create(base) {
|
|
1580
1742
|
return exports.WorkflowVersion.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1581
1743
|
},
|
|
1582
1744
|
fromPartial(object) {
|
|
1583
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1745
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1584
1746
|
const message = createBaseWorkflowVersion();
|
|
1585
1747
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : '';
|
|
1586
1748
|
message.createdAt = (_b = object.createdAt) !== null && _b !== void 0 ? _b : undefined;
|
|
@@ -1588,6 +1750,8 @@ exports.WorkflowVersion = {
|
|
|
1588
1750
|
message.version = (_d = object.version) !== null && _d !== void 0 ? _d : '';
|
|
1589
1751
|
message.order = (_e = object.order) !== null && _e !== void 0 ? _e : 0;
|
|
1590
1752
|
message.workflowId = (_f = object.workflowId) !== null && _f !== void 0 ? _f : '';
|
|
1753
|
+
message.scheduledWorkflows =
|
|
1754
|
+
((_g = object.scheduledWorkflows) === null || _g === void 0 ? void 0 : _g.map((e) => exports.ScheduledWorkflow.fromPartial(e))) || [];
|
|
1591
1755
|
return message;
|
|
1592
1756
|
},
|
|
1593
1757
|
};
|
|
@@ -1611,18 +1775,20 @@ exports.WorkflowTriggerEventRef = {
|
|
|
1611
1775
|
while (reader.pos < end) {
|
|
1612
1776
|
const tag = reader.uint32();
|
|
1613
1777
|
switch (tag >>> 3) {
|
|
1614
|
-
case 1:
|
|
1778
|
+
case 1: {
|
|
1615
1779
|
if (tag !== 10) {
|
|
1616
1780
|
break;
|
|
1617
1781
|
}
|
|
1618
1782
|
message.parentId = reader.string();
|
|
1619
1783
|
continue;
|
|
1620
|
-
|
|
1784
|
+
}
|
|
1785
|
+
case 2: {
|
|
1621
1786
|
if (tag !== 18) {
|
|
1622
1787
|
break;
|
|
1623
1788
|
}
|
|
1624
1789
|
message.eventKey = reader.string();
|
|
1625
1790
|
continue;
|
|
1791
|
+
}
|
|
1626
1792
|
}
|
|
1627
1793
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1628
1794
|
break;
|
|
@@ -1678,18 +1844,20 @@ exports.WorkflowTriggerCronRef = {
|
|
|
1678
1844
|
while (reader.pos < end) {
|
|
1679
1845
|
const tag = reader.uint32();
|
|
1680
1846
|
switch (tag >>> 3) {
|
|
1681
|
-
case 1:
|
|
1847
|
+
case 1: {
|
|
1682
1848
|
if (tag !== 10) {
|
|
1683
1849
|
break;
|
|
1684
1850
|
}
|
|
1685
1851
|
message.parentId = reader.string();
|
|
1686
1852
|
continue;
|
|
1687
|
-
|
|
1853
|
+
}
|
|
1854
|
+
case 2: {
|
|
1688
1855
|
if (tag !== 18) {
|
|
1689
1856
|
break;
|
|
1690
1857
|
}
|
|
1691
1858
|
message.cron = reader.string();
|
|
1692
1859
|
continue;
|
|
1860
|
+
}
|
|
1693
1861
|
}
|
|
1694
1862
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1695
1863
|
break;
|
|
@@ -1742,12 +1910,13 @@ exports.BulkTriggerWorkflowRequest = {
|
|
|
1742
1910
|
while (reader.pos < end) {
|
|
1743
1911
|
const tag = reader.uint32();
|
|
1744
1912
|
switch (tag >>> 3) {
|
|
1745
|
-
case 1:
|
|
1913
|
+
case 1: {
|
|
1746
1914
|
if (tag !== 10) {
|
|
1747
1915
|
break;
|
|
1748
1916
|
}
|
|
1749
1917
|
message.workflows.push(exports.TriggerWorkflowRequest.decode(reader, reader.uint32()));
|
|
1750
1918
|
continue;
|
|
1919
|
+
}
|
|
1751
1920
|
}
|
|
1752
1921
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1753
1922
|
break;
|
|
@@ -1798,12 +1967,13 @@ exports.BulkTriggerWorkflowResponse = {
|
|
|
1798
1967
|
while (reader.pos < end) {
|
|
1799
1968
|
const tag = reader.uint32();
|
|
1800
1969
|
switch (tag >>> 3) {
|
|
1801
|
-
case 1:
|
|
1970
|
+
case 1: {
|
|
1802
1971
|
if (tag !== 10) {
|
|
1803
1972
|
break;
|
|
1804
1973
|
}
|
|
1805
1974
|
message.workflowRunIds.push(reader.string());
|
|
1806
1975
|
continue;
|
|
1976
|
+
}
|
|
1807
1977
|
}
|
|
1808
1978
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1809
1979
|
break;
|
|
@@ -1888,60 +2058,69 @@ exports.TriggerWorkflowRequest = {
|
|
|
1888
2058
|
while (reader.pos < end) {
|
|
1889
2059
|
const tag = reader.uint32();
|
|
1890
2060
|
switch (tag >>> 3) {
|
|
1891
|
-
case 1:
|
|
2061
|
+
case 1: {
|
|
1892
2062
|
if (tag !== 10) {
|
|
1893
2063
|
break;
|
|
1894
2064
|
}
|
|
1895
2065
|
message.name = reader.string();
|
|
1896
2066
|
continue;
|
|
1897
|
-
|
|
2067
|
+
}
|
|
2068
|
+
case 2: {
|
|
1898
2069
|
if (tag !== 18) {
|
|
1899
2070
|
break;
|
|
1900
2071
|
}
|
|
1901
2072
|
message.input = reader.string();
|
|
1902
2073
|
continue;
|
|
1903
|
-
|
|
2074
|
+
}
|
|
2075
|
+
case 3: {
|
|
1904
2076
|
if (tag !== 26) {
|
|
1905
2077
|
break;
|
|
1906
2078
|
}
|
|
1907
2079
|
message.parentId = reader.string();
|
|
1908
2080
|
continue;
|
|
1909
|
-
|
|
2081
|
+
}
|
|
2082
|
+
case 4: {
|
|
1910
2083
|
if (tag !== 34) {
|
|
1911
2084
|
break;
|
|
1912
2085
|
}
|
|
1913
2086
|
message.parentStepRunId = reader.string();
|
|
1914
2087
|
continue;
|
|
1915
|
-
|
|
2088
|
+
}
|
|
2089
|
+
case 5: {
|
|
1916
2090
|
if (tag !== 40) {
|
|
1917
2091
|
break;
|
|
1918
2092
|
}
|
|
1919
2093
|
message.childIndex = reader.int32();
|
|
1920
2094
|
continue;
|
|
1921
|
-
|
|
2095
|
+
}
|
|
2096
|
+
case 6: {
|
|
1922
2097
|
if (tag !== 50) {
|
|
1923
2098
|
break;
|
|
1924
2099
|
}
|
|
1925
2100
|
message.childKey = reader.string();
|
|
1926
2101
|
continue;
|
|
1927
|
-
|
|
2102
|
+
}
|
|
2103
|
+
case 7: {
|
|
1928
2104
|
if (tag !== 58) {
|
|
1929
2105
|
break;
|
|
1930
2106
|
}
|
|
1931
2107
|
message.additionalMetadata = reader.string();
|
|
1932
2108
|
continue;
|
|
1933
|
-
|
|
2109
|
+
}
|
|
2110
|
+
case 8: {
|
|
1934
2111
|
if (tag !== 66) {
|
|
1935
2112
|
break;
|
|
1936
2113
|
}
|
|
1937
2114
|
message.desiredWorkerId = reader.string();
|
|
1938
2115
|
continue;
|
|
1939
|
-
|
|
2116
|
+
}
|
|
2117
|
+
case 9: {
|
|
1940
2118
|
if (tag !== 72) {
|
|
1941
2119
|
break;
|
|
1942
2120
|
}
|
|
1943
2121
|
message.priority = reader.int32();
|
|
1944
2122
|
continue;
|
|
2123
|
+
}
|
|
1945
2124
|
}
|
|
1946
2125
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1947
2126
|
break;
|
|
@@ -2035,12 +2214,13 @@ exports.TriggerWorkflowResponse = {
|
|
|
2035
2214
|
while (reader.pos < end) {
|
|
2036
2215
|
const tag = reader.uint32();
|
|
2037
2216
|
switch (tag >>> 3) {
|
|
2038
|
-
case 1:
|
|
2217
|
+
case 1: {
|
|
2039
2218
|
if (tag !== 10) {
|
|
2040
2219
|
break;
|
|
2041
2220
|
}
|
|
2042
2221
|
message.workflowRunId = reader.string();
|
|
2043
2222
|
continue;
|
|
2223
|
+
}
|
|
2044
2224
|
}
|
|
2045
2225
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2046
2226
|
break;
|
|
@@ -2094,24 +2274,27 @@ exports.PutRateLimitRequest = {
|
|
|
2094
2274
|
while (reader.pos < end) {
|
|
2095
2275
|
const tag = reader.uint32();
|
|
2096
2276
|
switch (tag >>> 3) {
|
|
2097
|
-
case 1:
|
|
2277
|
+
case 1: {
|
|
2098
2278
|
if (tag !== 10) {
|
|
2099
2279
|
break;
|
|
2100
2280
|
}
|
|
2101
2281
|
message.key = reader.string();
|
|
2102
2282
|
continue;
|
|
2103
|
-
|
|
2283
|
+
}
|
|
2284
|
+
case 2: {
|
|
2104
2285
|
if (tag !== 16) {
|
|
2105
2286
|
break;
|
|
2106
2287
|
}
|
|
2107
2288
|
message.limit = reader.int32();
|
|
2108
2289
|
continue;
|
|
2109
|
-
|
|
2290
|
+
}
|
|
2291
|
+
case 3: {
|
|
2110
2292
|
if (tag !== 24) {
|
|
2111
2293
|
break;
|
|
2112
2294
|
}
|
|
2113
2295
|
message.duration = reader.int32();
|
|
2114
2296
|
continue;
|
|
2297
|
+
}
|
|
2115
2298
|
}
|
|
2116
2299
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2117
2300
|
break;
|
|
@@ -2256,6 +2439,16 @@ function fromJsonTimestamp(o) {
|
|
|
2256
2439
|
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
2257
2440
|
}
|
|
2258
2441
|
}
|
|
2442
|
+
function longToNumber(int64) {
|
|
2443
|
+
const num = globalThis.Number(int64.toString());
|
|
2444
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
2445
|
+
throw new globalThis.Error('Value is larger than Number.MAX_SAFE_INTEGER');
|
|
2446
|
+
}
|
|
2447
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
2448
|
+
throw new globalThis.Error('Value is smaller than Number.MIN_SAFE_INTEGER');
|
|
2449
|
+
}
|
|
2450
|
+
return num;
|
|
2451
|
+
}
|
|
2259
2452
|
function isObject(value) {
|
|
2260
2453
|
return typeof value === 'object' && value !== null;
|
|
2261
2454
|
}
|