@temporalio/proto 0.18.0 → 0.20.0
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 +6 -11
- package/lib/coresdk.d.ts +240 -43
- package/lib/coresdk.js +638 -131
- package/lib/index.d.ts +8 -1
- package/lib/temporal.d.ts +393 -2
- package/lib/temporal.js +454 -10
- package/package.json +2 -2
- package/scripts/compile-proto.js +1 -1
package/lib/temporal.js
CHANGED
|
@@ -256,6 +256,12 @@ $root.temporal = (function() {
|
|
|
256
256
|
|
|
257
257
|
|
|
258
258
|
|
|
259
|
+
Object.defineProperty(WorkflowService.prototype.getSystemInfo = function getSystemInfo(request, callback) {
|
|
260
|
+
return this.rpcCall(getSystemInfo, $root.temporal.api.workflowservice.v1.GetSystemInfoRequest, $root.temporal.api.workflowservice.v1.GetSystemInfoResponse, request, callback);
|
|
261
|
+
}, "name", { value: "GetSystemInfo" });
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
259
265
|
Object.defineProperty(WorkflowService.prototype.listTaskQueuePartitions = function listTaskQueuePartitions(request, callback) {
|
|
260
266
|
return this.rpcCall(listTaskQueuePartitions, $root.temporal.api.workflowservice.v1.ListTaskQueuePartitionsRequest, $root.temporal.api.workflowservice.v1.ListTaskQueuePartitionsResponse, request, callback);
|
|
261
267
|
}, "name", { value: "ListTaskQueuePartitions" });
|
|
@@ -8870,6 +8876,8 @@ $root.temporal = (function() {
|
|
|
8870
8876
|
|
|
8871
8877
|
DescribeWorkflowExecutionResponse.prototype.pendingChildren = $util.emptyArray;
|
|
8872
8878
|
|
|
8879
|
+
DescribeWorkflowExecutionResponse.prototype.pendingWorkflowTask = null;
|
|
8880
|
+
|
|
8873
8881
|
DescribeWorkflowExecutionResponse.encode = function encode(message, writer) {
|
|
8874
8882
|
if (!writer)
|
|
8875
8883
|
writer = $Writer.create();
|
|
@@ -8883,6 +8891,8 @@ $root.temporal = (function() {
|
|
|
8883
8891
|
if (message.pendingChildren != null && message.pendingChildren.length)
|
|
8884
8892
|
for (var i = 0; i < message.pendingChildren.length; ++i)
|
|
8885
8893
|
$root.temporal.api.workflow.v1.PendingChildExecutionInfo.encode(message.pendingChildren[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
8894
|
+
if (message.pendingWorkflowTask != null && Object.hasOwnProperty.call(message, "pendingWorkflowTask"))
|
|
8895
|
+
$root.temporal.api.workflow.v1.PendingWorkflowTaskInfo.encode(message.pendingWorkflowTask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
8886
8896
|
return writer;
|
|
8887
8897
|
};
|
|
8888
8898
|
|
|
@@ -8913,6 +8923,9 @@ $root.temporal = (function() {
|
|
|
8913
8923
|
message.pendingChildren = [];
|
|
8914
8924
|
message.pendingChildren.push($root.temporal.api.workflow.v1.PendingChildExecutionInfo.decode(reader, reader.uint32()));
|
|
8915
8925
|
break;
|
|
8926
|
+
case 5:
|
|
8927
|
+
message.pendingWorkflowTask = $root.temporal.api.workflow.v1.PendingWorkflowTaskInfo.decode(reader, reader.uint32());
|
|
8928
|
+
break;
|
|
8916
8929
|
default:
|
|
8917
8930
|
reader.skipType(tag & 7);
|
|
8918
8931
|
break;
|
|
@@ -8961,6 +8974,11 @@ $root.temporal = (function() {
|
|
|
8961
8974
|
message.pendingChildren[i] = $root.temporal.api.workflow.v1.PendingChildExecutionInfo.fromObject(object.pendingChildren[i]);
|
|
8962
8975
|
}
|
|
8963
8976
|
}
|
|
8977
|
+
if (object.pendingWorkflowTask != null) {
|
|
8978
|
+
if (typeof object.pendingWorkflowTask !== "object")
|
|
8979
|
+
throw TypeError(".temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse.pendingWorkflowTask: object expected");
|
|
8980
|
+
message.pendingWorkflowTask = $root.temporal.api.workflow.v1.PendingWorkflowTaskInfo.fromObject(object.pendingWorkflowTask);
|
|
8981
|
+
}
|
|
8964
8982
|
return message;
|
|
8965
8983
|
};
|
|
8966
8984
|
|
|
@@ -8975,6 +8993,7 @@ $root.temporal = (function() {
|
|
|
8975
8993
|
if (options.defaults) {
|
|
8976
8994
|
object.executionConfig = null;
|
|
8977
8995
|
object.workflowExecutionInfo = null;
|
|
8996
|
+
object.pendingWorkflowTask = null;
|
|
8978
8997
|
}
|
|
8979
8998
|
if (message.executionConfig != null && message.hasOwnProperty("executionConfig"))
|
|
8980
8999
|
object.executionConfig = $root.temporal.api.workflow.v1.WorkflowExecutionConfig.toObject(message.executionConfig, options);
|
|
@@ -8990,6 +9009,8 @@ $root.temporal = (function() {
|
|
|
8990
9009
|
for (var j = 0; j < message.pendingChildren.length; ++j)
|
|
8991
9010
|
object.pendingChildren[j] = $root.temporal.api.workflow.v1.PendingChildExecutionInfo.toObject(message.pendingChildren[j], options);
|
|
8992
9011
|
}
|
|
9012
|
+
if (message.pendingWorkflowTask != null && message.hasOwnProperty("pendingWorkflowTask"))
|
|
9013
|
+
object.pendingWorkflowTask = $root.temporal.api.workflow.v1.PendingWorkflowTaskInfo.toObject(message.pendingWorkflowTask, options);
|
|
8993
9014
|
return object;
|
|
8994
9015
|
};
|
|
8995
9016
|
|
|
@@ -9485,6 +9506,243 @@ $root.temporal = (function() {
|
|
|
9485
9506
|
return GetClusterInfoResponse;
|
|
9486
9507
|
})();
|
|
9487
9508
|
|
|
9509
|
+
v1.GetSystemInfoRequest = (function() {
|
|
9510
|
+
|
|
9511
|
+
|
|
9512
|
+
function GetSystemInfoRequest(properties) {
|
|
9513
|
+
if (properties)
|
|
9514
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9515
|
+
if (properties[keys[i]] != null)
|
|
9516
|
+
this[keys[i]] = properties[keys[i]];
|
|
9517
|
+
}
|
|
9518
|
+
|
|
9519
|
+
GetSystemInfoRequest.encode = function encode(message, writer) {
|
|
9520
|
+
if (!writer)
|
|
9521
|
+
writer = $Writer.create();
|
|
9522
|
+
return writer;
|
|
9523
|
+
};
|
|
9524
|
+
|
|
9525
|
+
GetSystemInfoRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9526
|
+
return this.encode(message, writer).ldelim();
|
|
9527
|
+
};
|
|
9528
|
+
|
|
9529
|
+
GetSystemInfoRequest.decode = function decode(reader, length) {
|
|
9530
|
+
if (!(reader instanceof $Reader))
|
|
9531
|
+
reader = $Reader.create(reader);
|
|
9532
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.temporal.api.workflowservice.v1.GetSystemInfoRequest();
|
|
9533
|
+
while (reader.pos < end) {
|
|
9534
|
+
var tag = reader.uint32();
|
|
9535
|
+
switch (tag >>> 3) {
|
|
9536
|
+
default:
|
|
9537
|
+
reader.skipType(tag & 7);
|
|
9538
|
+
break;
|
|
9539
|
+
}
|
|
9540
|
+
}
|
|
9541
|
+
return message;
|
|
9542
|
+
};
|
|
9543
|
+
|
|
9544
|
+
GetSystemInfoRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
9545
|
+
if (!(reader instanceof $Reader))
|
|
9546
|
+
reader = new $Reader(reader);
|
|
9547
|
+
return this.decode(reader, reader.uint32());
|
|
9548
|
+
};
|
|
9549
|
+
|
|
9550
|
+
GetSystemInfoRequest.fromObject = function fromObject(object) {
|
|
9551
|
+
if (object instanceof $root.temporal.api.workflowservice.v1.GetSystemInfoRequest)
|
|
9552
|
+
return object;
|
|
9553
|
+
return new $root.temporal.api.workflowservice.v1.GetSystemInfoRequest();
|
|
9554
|
+
};
|
|
9555
|
+
|
|
9556
|
+
GetSystemInfoRequest.toObject = function toObject() {
|
|
9557
|
+
return {};
|
|
9558
|
+
};
|
|
9559
|
+
|
|
9560
|
+
GetSystemInfoRequest.prototype.toJSON = function toJSON() {
|
|
9561
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
9562
|
+
};
|
|
9563
|
+
|
|
9564
|
+
return GetSystemInfoRequest;
|
|
9565
|
+
})();
|
|
9566
|
+
|
|
9567
|
+
v1.GetSystemInfoResponse = (function() {
|
|
9568
|
+
|
|
9569
|
+
|
|
9570
|
+
function GetSystemInfoResponse(properties) {
|
|
9571
|
+
if (properties)
|
|
9572
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9573
|
+
if (properties[keys[i]] != null)
|
|
9574
|
+
this[keys[i]] = properties[keys[i]];
|
|
9575
|
+
}
|
|
9576
|
+
|
|
9577
|
+
GetSystemInfoResponse.prototype.serverVersion = "";
|
|
9578
|
+
|
|
9579
|
+
GetSystemInfoResponse.prototype.capabilities = null;
|
|
9580
|
+
|
|
9581
|
+
GetSystemInfoResponse.encode = function encode(message, writer) {
|
|
9582
|
+
if (!writer)
|
|
9583
|
+
writer = $Writer.create();
|
|
9584
|
+
if (message.serverVersion != null && Object.hasOwnProperty.call(message, "serverVersion"))
|
|
9585
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.serverVersion);
|
|
9586
|
+
if (message.capabilities != null && Object.hasOwnProperty.call(message, "capabilities"))
|
|
9587
|
+
$root.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities.encode(message.capabilities, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
9588
|
+
return writer;
|
|
9589
|
+
};
|
|
9590
|
+
|
|
9591
|
+
GetSystemInfoResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9592
|
+
return this.encode(message, writer).ldelim();
|
|
9593
|
+
};
|
|
9594
|
+
|
|
9595
|
+
GetSystemInfoResponse.decode = function decode(reader, length) {
|
|
9596
|
+
if (!(reader instanceof $Reader))
|
|
9597
|
+
reader = $Reader.create(reader);
|
|
9598
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.temporal.api.workflowservice.v1.GetSystemInfoResponse();
|
|
9599
|
+
while (reader.pos < end) {
|
|
9600
|
+
var tag = reader.uint32();
|
|
9601
|
+
switch (tag >>> 3) {
|
|
9602
|
+
case 1:
|
|
9603
|
+
message.serverVersion = reader.string();
|
|
9604
|
+
break;
|
|
9605
|
+
case 2:
|
|
9606
|
+
message.capabilities = $root.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities.decode(reader, reader.uint32());
|
|
9607
|
+
break;
|
|
9608
|
+
default:
|
|
9609
|
+
reader.skipType(tag & 7);
|
|
9610
|
+
break;
|
|
9611
|
+
}
|
|
9612
|
+
}
|
|
9613
|
+
return message;
|
|
9614
|
+
};
|
|
9615
|
+
|
|
9616
|
+
GetSystemInfoResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
9617
|
+
if (!(reader instanceof $Reader))
|
|
9618
|
+
reader = new $Reader(reader);
|
|
9619
|
+
return this.decode(reader, reader.uint32());
|
|
9620
|
+
};
|
|
9621
|
+
|
|
9622
|
+
GetSystemInfoResponse.fromObject = function fromObject(object) {
|
|
9623
|
+
if (object instanceof $root.temporal.api.workflowservice.v1.GetSystemInfoResponse)
|
|
9624
|
+
return object;
|
|
9625
|
+
var message = new $root.temporal.api.workflowservice.v1.GetSystemInfoResponse();
|
|
9626
|
+
if (object.serverVersion != null)
|
|
9627
|
+
message.serverVersion = String(object.serverVersion);
|
|
9628
|
+
if (object.capabilities != null) {
|
|
9629
|
+
if (typeof object.capabilities !== "object")
|
|
9630
|
+
throw TypeError(".temporal.api.workflowservice.v1.GetSystemInfoResponse.capabilities: object expected");
|
|
9631
|
+
message.capabilities = $root.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities.fromObject(object.capabilities);
|
|
9632
|
+
}
|
|
9633
|
+
return message;
|
|
9634
|
+
};
|
|
9635
|
+
|
|
9636
|
+
GetSystemInfoResponse.toObject = function toObject(message, options) {
|
|
9637
|
+
if (!options)
|
|
9638
|
+
options = {};
|
|
9639
|
+
var object = {};
|
|
9640
|
+
if (options.defaults) {
|
|
9641
|
+
object.serverVersion = "";
|
|
9642
|
+
object.capabilities = null;
|
|
9643
|
+
}
|
|
9644
|
+
if (message.serverVersion != null && message.hasOwnProperty("serverVersion"))
|
|
9645
|
+
object.serverVersion = message.serverVersion;
|
|
9646
|
+
if (message.capabilities != null && message.hasOwnProperty("capabilities"))
|
|
9647
|
+
object.capabilities = $root.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities.toObject(message.capabilities, options);
|
|
9648
|
+
return object;
|
|
9649
|
+
};
|
|
9650
|
+
|
|
9651
|
+
GetSystemInfoResponse.prototype.toJSON = function toJSON() {
|
|
9652
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
9653
|
+
};
|
|
9654
|
+
|
|
9655
|
+
GetSystemInfoResponse.Capabilities = (function() {
|
|
9656
|
+
|
|
9657
|
+
|
|
9658
|
+
function Capabilities(properties) {
|
|
9659
|
+
if (properties)
|
|
9660
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9661
|
+
if (properties[keys[i]] != null)
|
|
9662
|
+
this[keys[i]] = properties[keys[i]];
|
|
9663
|
+
}
|
|
9664
|
+
|
|
9665
|
+
Capabilities.prototype.signalAndQueryHeader = false;
|
|
9666
|
+
|
|
9667
|
+
Capabilities.prototype.internalErrorDifferentiation = false;
|
|
9668
|
+
|
|
9669
|
+
Capabilities.encode = function encode(message, writer) {
|
|
9670
|
+
if (!writer)
|
|
9671
|
+
writer = $Writer.create();
|
|
9672
|
+
if (message.signalAndQueryHeader != null && Object.hasOwnProperty.call(message, "signalAndQueryHeader"))
|
|
9673
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.signalAndQueryHeader);
|
|
9674
|
+
if (message.internalErrorDifferentiation != null && Object.hasOwnProperty.call(message, "internalErrorDifferentiation"))
|
|
9675
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.internalErrorDifferentiation);
|
|
9676
|
+
return writer;
|
|
9677
|
+
};
|
|
9678
|
+
|
|
9679
|
+
Capabilities.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9680
|
+
return this.encode(message, writer).ldelim();
|
|
9681
|
+
};
|
|
9682
|
+
|
|
9683
|
+
Capabilities.decode = function decode(reader, length) {
|
|
9684
|
+
if (!(reader instanceof $Reader))
|
|
9685
|
+
reader = $Reader.create(reader);
|
|
9686
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities();
|
|
9687
|
+
while (reader.pos < end) {
|
|
9688
|
+
var tag = reader.uint32();
|
|
9689
|
+
switch (tag >>> 3) {
|
|
9690
|
+
case 1:
|
|
9691
|
+
message.signalAndQueryHeader = reader.bool();
|
|
9692
|
+
break;
|
|
9693
|
+
case 2:
|
|
9694
|
+
message.internalErrorDifferentiation = reader.bool();
|
|
9695
|
+
break;
|
|
9696
|
+
default:
|
|
9697
|
+
reader.skipType(tag & 7);
|
|
9698
|
+
break;
|
|
9699
|
+
}
|
|
9700
|
+
}
|
|
9701
|
+
return message;
|
|
9702
|
+
};
|
|
9703
|
+
|
|
9704
|
+
Capabilities.decodeDelimited = function decodeDelimited(reader) {
|
|
9705
|
+
if (!(reader instanceof $Reader))
|
|
9706
|
+
reader = new $Reader(reader);
|
|
9707
|
+
return this.decode(reader, reader.uint32());
|
|
9708
|
+
};
|
|
9709
|
+
|
|
9710
|
+
Capabilities.fromObject = function fromObject(object) {
|
|
9711
|
+
if (object instanceof $root.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities)
|
|
9712
|
+
return object;
|
|
9713
|
+
var message = new $root.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities();
|
|
9714
|
+
if (object.signalAndQueryHeader != null)
|
|
9715
|
+
message.signalAndQueryHeader = Boolean(object.signalAndQueryHeader);
|
|
9716
|
+
if (object.internalErrorDifferentiation != null)
|
|
9717
|
+
message.internalErrorDifferentiation = Boolean(object.internalErrorDifferentiation);
|
|
9718
|
+
return message;
|
|
9719
|
+
};
|
|
9720
|
+
|
|
9721
|
+
Capabilities.toObject = function toObject(message, options) {
|
|
9722
|
+
if (!options)
|
|
9723
|
+
options = {};
|
|
9724
|
+
var object = {};
|
|
9725
|
+
if (options.defaults) {
|
|
9726
|
+
object.signalAndQueryHeader = false;
|
|
9727
|
+
object.internalErrorDifferentiation = false;
|
|
9728
|
+
}
|
|
9729
|
+
if (message.signalAndQueryHeader != null && message.hasOwnProperty("signalAndQueryHeader"))
|
|
9730
|
+
object.signalAndQueryHeader = message.signalAndQueryHeader;
|
|
9731
|
+
if (message.internalErrorDifferentiation != null && message.hasOwnProperty("internalErrorDifferentiation"))
|
|
9732
|
+
object.internalErrorDifferentiation = message.internalErrorDifferentiation;
|
|
9733
|
+
return object;
|
|
9734
|
+
};
|
|
9735
|
+
|
|
9736
|
+
Capabilities.prototype.toJSON = function toJSON() {
|
|
9737
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
9738
|
+
};
|
|
9739
|
+
|
|
9740
|
+
return Capabilities;
|
|
9741
|
+
})();
|
|
9742
|
+
|
|
9743
|
+
return GetSystemInfoResponse;
|
|
9744
|
+
})();
|
|
9745
|
+
|
|
9488
9746
|
v1.ListTaskQueuePartitionsRequest = (function() {
|
|
9489
9747
|
|
|
9490
9748
|
|
|
@@ -9757,6 +10015,14 @@ $root.temporal = (function() {
|
|
|
9757
10015
|
return values;
|
|
9758
10016
|
})();
|
|
9759
10017
|
|
|
10018
|
+
v1.PendingWorkflowTaskState = (function() {
|
|
10019
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
10020
|
+
values[valuesById[0] = "PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED"] = 0;
|
|
10021
|
+
values[valuesById[1] = "PENDING_WORKFLOW_TASK_STATE_SCHEDULED"] = 1;
|
|
10022
|
+
values[valuesById[2] = "PENDING_WORKFLOW_TASK_STATE_STARTED"] = 2;
|
|
10023
|
+
return values;
|
|
10024
|
+
})();
|
|
10025
|
+
|
|
9760
10026
|
v1.HistoryEventFilterType = (function() {
|
|
9761
10027
|
var valuesById = {}, values = Object.create(valuesById);
|
|
9762
10028
|
values[valuesById[0] = "HISTORY_EVENT_FILTER_TYPE_UNSPECIFIED"] = 0;
|
|
@@ -9794,7 +10060,6 @@ $root.temporal = (function() {
|
|
|
9794
10060
|
values[valuesById[1] = "NAMESPACE_STATE_REGISTERED"] = 1;
|
|
9795
10061
|
values[valuesById[2] = "NAMESPACE_STATE_DEPRECATED"] = 2;
|
|
9796
10062
|
values[valuesById[3] = "NAMESPACE_STATE_DELETED"] = 3;
|
|
9797
|
-
values[valuesById[4] = "NAMESPACE_STATE_HANDOVER"] = 4;
|
|
9798
10063
|
return values;
|
|
9799
10064
|
})();
|
|
9800
10065
|
|
|
@@ -9806,6 +10071,14 @@ $root.temporal = (function() {
|
|
|
9806
10071
|
return values;
|
|
9807
10072
|
})();
|
|
9808
10073
|
|
|
10074
|
+
v1.ReplicationState = (function() {
|
|
10075
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
10076
|
+
values[valuesById[0] = "REPLICATION_STATE_UNSPECIFIED"] = 0;
|
|
10077
|
+
values[valuesById[1] = "REPLICATION_STATE_NORMAL"] = 1;
|
|
10078
|
+
values[valuesById[2] = "REPLICATION_STATE_HANDOVER"] = 2;
|
|
10079
|
+
return values;
|
|
10080
|
+
})();
|
|
10081
|
+
|
|
9809
10082
|
v1.WorkflowTaskFailedCause = (function() {
|
|
9810
10083
|
var valuesById = {}, values = Object.create(valuesById);
|
|
9811
10084
|
values[valuesById[0] = "WORKFLOW_TASK_FAILED_CAUSE_UNSPECIFIED"] = 0;
|
|
@@ -9857,6 +10130,15 @@ $root.temporal = (function() {
|
|
|
9857
10130
|
return values;
|
|
9858
10131
|
})();
|
|
9859
10132
|
|
|
10133
|
+
v1.ResourceExhaustedCause = (function() {
|
|
10134
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
10135
|
+
values[valuesById[0] = "RESOURCE_EXHAUSTED_CAUSE_UNSPECIFIED"] = 0;
|
|
10136
|
+
values[valuesById[1] = "RESOURCE_EXHAUSTED_CAUSE_RPS_LIMIT"] = 1;
|
|
10137
|
+
values[valuesById[2] = "RESOURCE_EXHAUSTED_CAUSE_CONCURRENT_LIMIT"] = 2;
|
|
10138
|
+
values[valuesById[3] = "RESOURCE_EXHAUSTED_CAUSE_SYSTEM_OVERLOADED"] = 3;
|
|
10139
|
+
return values;
|
|
10140
|
+
})();
|
|
10141
|
+
|
|
9860
10142
|
v1.EncodingType = (function() {
|
|
9861
10143
|
var valuesById = {}, values = Object.create(valuesById);
|
|
9862
10144
|
values[valuesById[0] = "ENCODING_TYPE_UNSPECIFIED"] = 0;
|
|
@@ -20964,6 +21246,151 @@ $root.temporal = (function() {
|
|
|
20964
21246
|
return PendingChildExecutionInfo;
|
|
20965
21247
|
})();
|
|
20966
21248
|
|
|
21249
|
+
v1.PendingWorkflowTaskInfo = (function() {
|
|
21250
|
+
|
|
21251
|
+
|
|
21252
|
+
function PendingWorkflowTaskInfo(properties) {
|
|
21253
|
+
if (properties)
|
|
21254
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21255
|
+
if (properties[keys[i]] != null)
|
|
21256
|
+
this[keys[i]] = properties[keys[i]];
|
|
21257
|
+
}
|
|
21258
|
+
|
|
21259
|
+
PendingWorkflowTaskInfo.prototype.state = 0;
|
|
21260
|
+
|
|
21261
|
+
PendingWorkflowTaskInfo.prototype.scheduledTime = null;
|
|
21262
|
+
|
|
21263
|
+
PendingWorkflowTaskInfo.prototype.originalScheduledTime = null;
|
|
21264
|
+
|
|
21265
|
+
PendingWorkflowTaskInfo.prototype.startedTime = null;
|
|
21266
|
+
|
|
21267
|
+
PendingWorkflowTaskInfo.prototype.attempt = 0;
|
|
21268
|
+
|
|
21269
|
+
PendingWorkflowTaskInfo.encode = function encode(message, writer) {
|
|
21270
|
+
if (!writer)
|
|
21271
|
+
writer = $Writer.create();
|
|
21272
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
21273
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state);
|
|
21274
|
+
if (message.scheduledTime != null && Object.hasOwnProperty.call(message, "scheduledTime"))
|
|
21275
|
+
$root.google.protobuf.Timestamp.encode(message.scheduledTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
21276
|
+
if (message.originalScheduledTime != null && Object.hasOwnProperty.call(message, "originalScheduledTime"))
|
|
21277
|
+
$root.google.protobuf.Timestamp.encode(message.originalScheduledTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
21278
|
+
if (message.startedTime != null && Object.hasOwnProperty.call(message, "startedTime"))
|
|
21279
|
+
$root.google.protobuf.Timestamp.encode(message.startedTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
21280
|
+
if (message.attempt != null && Object.hasOwnProperty.call(message, "attempt"))
|
|
21281
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.attempt);
|
|
21282
|
+
return writer;
|
|
21283
|
+
};
|
|
21284
|
+
|
|
21285
|
+
PendingWorkflowTaskInfo.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21286
|
+
return this.encode(message, writer).ldelim();
|
|
21287
|
+
};
|
|
21288
|
+
|
|
21289
|
+
PendingWorkflowTaskInfo.decode = function decode(reader, length) {
|
|
21290
|
+
if (!(reader instanceof $Reader))
|
|
21291
|
+
reader = $Reader.create(reader);
|
|
21292
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.temporal.api.workflow.v1.PendingWorkflowTaskInfo();
|
|
21293
|
+
while (reader.pos < end) {
|
|
21294
|
+
var tag = reader.uint32();
|
|
21295
|
+
switch (tag >>> 3) {
|
|
21296
|
+
case 1:
|
|
21297
|
+
message.state = reader.int32();
|
|
21298
|
+
break;
|
|
21299
|
+
case 2:
|
|
21300
|
+
message.scheduledTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
21301
|
+
break;
|
|
21302
|
+
case 3:
|
|
21303
|
+
message.originalScheduledTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
21304
|
+
break;
|
|
21305
|
+
case 4:
|
|
21306
|
+
message.startedTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
21307
|
+
break;
|
|
21308
|
+
case 5:
|
|
21309
|
+
message.attempt = reader.int32();
|
|
21310
|
+
break;
|
|
21311
|
+
default:
|
|
21312
|
+
reader.skipType(tag & 7);
|
|
21313
|
+
break;
|
|
21314
|
+
}
|
|
21315
|
+
}
|
|
21316
|
+
return message;
|
|
21317
|
+
};
|
|
21318
|
+
|
|
21319
|
+
PendingWorkflowTaskInfo.decodeDelimited = function decodeDelimited(reader) {
|
|
21320
|
+
if (!(reader instanceof $Reader))
|
|
21321
|
+
reader = new $Reader(reader);
|
|
21322
|
+
return this.decode(reader, reader.uint32());
|
|
21323
|
+
};
|
|
21324
|
+
|
|
21325
|
+
PendingWorkflowTaskInfo.fromObject = function fromObject(object) {
|
|
21326
|
+
if (object instanceof $root.temporal.api.workflow.v1.PendingWorkflowTaskInfo)
|
|
21327
|
+
return object;
|
|
21328
|
+
var message = new $root.temporal.api.workflow.v1.PendingWorkflowTaskInfo();
|
|
21329
|
+
switch (object.state) {
|
|
21330
|
+
case "PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED":
|
|
21331
|
+
case 0:
|
|
21332
|
+
message.state = 0;
|
|
21333
|
+
break;
|
|
21334
|
+
case "PENDING_WORKFLOW_TASK_STATE_SCHEDULED":
|
|
21335
|
+
case 1:
|
|
21336
|
+
message.state = 1;
|
|
21337
|
+
break;
|
|
21338
|
+
case "PENDING_WORKFLOW_TASK_STATE_STARTED":
|
|
21339
|
+
case 2:
|
|
21340
|
+
message.state = 2;
|
|
21341
|
+
break;
|
|
21342
|
+
}
|
|
21343
|
+
if (object.scheduledTime != null) {
|
|
21344
|
+
if (typeof object.scheduledTime !== "object")
|
|
21345
|
+
throw TypeError(".temporal.api.workflow.v1.PendingWorkflowTaskInfo.scheduledTime: object expected");
|
|
21346
|
+
message.scheduledTime = $root.google.protobuf.Timestamp.fromObject(object.scheduledTime);
|
|
21347
|
+
}
|
|
21348
|
+
if (object.originalScheduledTime != null) {
|
|
21349
|
+
if (typeof object.originalScheduledTime !== "object")
|
|
21350
|
+
throw TypeError(".temporal.api.workflow.v1.PendingWorkflowTaskInfo.originalScheduledTime: object expected");
|
|
21351
|
+
message.originalScheduledTime = $root.google.protobuf.Timestamp.fromObject(object.originalScheduledTime);
|
|
21352
|
+
}
|
|
21353
|
+
if (object.startedTime != null) {
|
|
21354
|
+
if (typeof object.startedTime !== "object")
|
|
21355
|
+
throw TypeError(".temporal.api.workflow.v1.PendingWorkflowTaskInfo.startedTime: object expected");
|
|
21356
|
+
message.startedTime = $root.google.protobuf.Timestamp.fromObject(object.startedTime);
|
|
21357
|
+
}
|
|
21358
|
+
if (object.attempt != null)
|
|
21359
|
+
message.attempt = object.attempt | 0;
|
|
21360
|
+
return message;
|
|
21361
|
+
};
|
|
21362
|
+
|
|
21363
|
+
PendingWorkflowTaskInfo.toObject = function toObject(message, options) {
|
|
21364
|
+
if (!options)
|
|
21365
|
+
options = {};
|
|
21366
|
+
var object = {};
|
|
21367
|
+
if (options.defaults) {
|
|
21368
|
+
object.state = options.enums === String ? "PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED" : 0;
|
|
21369
|
+
object.scheduledTime = null;
|
|
21370
|
+
object.originalScheduledTime = null;
|
|
21371
|
+
object.startedTime = null;
|
|
21372
|
+
object.attempt = 0;
|
|
21373
|
+
}
|
|
21374
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
21375
|
+
object.state = options.enums === String ? $root.temporal.api.enums.v1.PendingWorkflowTaskState[message.state] : message.state;
|
|
21376
|
+
if (message.scheduledTime != null && message.hasOwnProperty("scheduledTime"))
|
|
21377
|
+
object.scheduledTime = $root.google.protobuf.Timestamp.toObject(message.scheduledTime, options);
|
|
21378
|
+
if (message.originalScheduledTime != null && message.hasOwnProperty("originalScheduledTime"))
|
|
21379
|
+
object.originalScheduledTime = $root.google.protobuf.Timestamp.toObject(message.originalScheduledTime, options);
|
|
21380
|
+
if (message.startedTime != null && message.hasOwnProperty("startedTime"))
|
|
21381
|
+
object.startedTime = $root.google.protobuf.Timestamp.toObject(message.startedTime, options);
|
|
21382
|
+
if (message.attempt != null && message.hasOwnProperty("attempt"))
|
|
21383
|
+
object.attempt = message.attempt;
|
|
21384
|
+
return object;
|
|
21385
|
+
};
|
|
21386
|
+
|
|
21387
|
+
PendingWorkflowTaskInfo.prototype.toJSON = function toJSON() {
|
|
21388
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21389
|
+
};
|
|
21390
|
+
|
|
21391
|
+
return PendingWorkflowTaskInfo;
|
|
21392
|
+
})();
|
|
21393
|
+
|
|
20967
21394
|
v1.ResetPoints = (function() {
|
|
20968
21395
|
|
|
20969
21396
|
|
|
@@ -24692,10 +25119,6 @@ $root.temporal = (function() {
|
|
|
24692
25119
|
case 3:
|
|
24693
25120
|
message.state = 3;
|
|
24694
25121
|
break;
|
|
24695
|
-
case "NAMESPACE_STATE_HANDOVER":
|
|
24696
|
-
case 4:
|
|
24697
|
-
message.state = 4;
|
|
24698
|
-
break;
|
|
24699
25122
|
}
|
|
24700
25123
|
if (object.description != null)
|
|
24701
25124
|
message.description = String(object.description);
|
|
@@ -25253,10 +25676,6 @@ $root.temporal = (function() {
|
|
|
25253
25676
|
case 3:
|
|
25254
25677
|
message.state = 3;
|
|
25255
25678
|
break;
|
|
25256
|
-
case "NAMESPACE_STATE_HANDOVER":
|
|
25257
|
-
case 4:
|
|
25258
|
-
message.state = 4;
|
|
25259
|
-
break;
|
|
25260
25679
|
}
|
|
25261
25680
|
return message;
|
|
25262
25681
|
};
|
|
@@ -25740,6 +26159,8 @@ $root.temporal = (function() {
|
|
|
25740
26159
|
|
|
25741
26160
|
NamespaceReplicationConfig.prototype.clusters = $util.emptyArray;
|
|
25742
26161
|
|
|
26162
|
+
NamespaceReplicationConfig.prototype.state = 0;
|
|
26163
|
+
|
|
25743
26164
|
NamespaceReplicationConfig.encode = function encode(message, writer) {
|
|
25744
26165
|
if (!writer)
|
|
25745
26166
|
writer = $Writer.create();
|
|
@@ -25748,6 +26169,8 @@ $root.temporal = (function() {
|
|
|
25748
26169
|
if (message.clusters != null && message.clusters.length)
|
|
25749
26170
|
for (var i = 0; i < message.clusters.length; ++i)
|
|
25750
26171
|
$root.temporal.api.replication.v1.ClusterReplicationConfig.encode(message.clusters[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
26172
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
26173
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state);
|
|
25751
26174
|
return writer;
|
|
25752
26175
|
};
|
|
25753
26176
|
|
|
@@ -25770,6 +26193,9 @@ $root.temporal = (function() {
|
|
|
25770
26193
|
message.clusters = [];
|
|
25771
26194
|
message.clusters.push($root.temporal.api.replication.v1.ClusterReplicationConfig.decode(reader, reader.uint32()));
|
|
25772
26195
|
break;
|
|
26196
|
+
case 3:
|
|
26197
|
+
message.state = reader.int32();
|
|
26198
|
+
break;
|
|
25773
26199
|
default:
|
|
25774
26200
|
reader.skipType(tag & 7);
|
|
25775
26201
|
break;
|
|
@@ -25800,6 +26226,20 @@ $root.temporal = (function() {
|
|
|
25800
26226
|
message.clusters[i] = $root.temporal.api.replication.v1.ClusterReplicationConfig.fromObject(object.clusters[i]);
|
|
25801
26227
|
}
|
|
25802
26228
|
}
|
|
26229
|
+
switch (object.state) {
|
|
26230
|
+
case "REPLICATION_STATE_UNSPECIFIED":
|
|
26231
|
+
case 0:
|
|
26232
|
+
message.state = 0;
|
|
26233
|
+
break;
|
|
26234
|
+
case "REPLICATION_STATE_NORMAL":
|
|
26235
|
+
case 1:
|
|
26236
|
+
message.state = 1;
|
|
26237
|
+
break;
|
|
26238
|
+
case "REPLICATION_STATE_HANDOVER":
|
|
26239
|
+
case 2:
|
|
26240
|
+
message.state = 2;
|
|
26241
|
+
break;
|
|
26242
|
+
}
|
|
25803
26243
|
return message;
|
|
25804
26244
|
};
|
|
25805
26245
|
|
|
@@ -25809,8 +26249,10 @@ $root.temporal = (function() {
|
|
|
25809
26249
|
var object = {};
|
|
25810
26250
|
if (options.arrays || options.defaults)
|
|
25811
26251
|
object.clusters = [];
|
|
25812
|
-
if (options.defaults)
|
|
26252
|
+
if (options.defaults) {
|
|
25813
26253
|
object.activeClusterName = "";
|
|
26254
|
+
object.state = options.enums === String ? "REPLICATION_STATE_UNSPECIFIED" : 0;
|
|
26255
|
+
}
|
|
25814
26256
|
if (message.activeClusterName != null && message.hasOwnProperty("activeClusterName"))
|
|
25815
26257
|
object.activeClusterName = message.activeClusterName;
|
|
25816
26258
|
if (message.clusters && message.clusters.length) {
|
|
@@ -25818,6 +26260,8 @@ $root.temporal = (function() {
|
|
|
25818
26260
|
for (var j = 0; j < message.clusters.length; ++j)
|
|
25819
26261
|
object.clusters[j] = $root.temporal.api.replication.v1.ClusterReplicationConfig.toObject(message.clusters[j], options);
|
|
25820
26262
|
}
|
|
26263
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
26264
|
+
object.state = options.enums === String ? $root.temporal.api.enums.v1.ReplicationState[message.state] : message.state;
|
|
25821
26265
|
return object;
|
|
25822
26266
|
};
|
|
25823
26267
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temporalio/proto",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Temporal.io SDK compiled protobuf definitions",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "e6b7468a00c68efd4baebbf866cf0a28c150bb6b"
|
|
33
33
|
}
|
package/scripts/compile-proto.js
CHANGED
|
@@ -73,7 +73,7 @@ async function main() {
|
|
|
73
73
|
const genMTime = Math.min(mtime(coresdkJsOutputFile), mtime(serviceJsOutputFile));
|
|
74
74
|
|
|
75
75
|
if (protosMTime < genMTime) {
|
|
76
|
-
console.log('
|
|
76
|
+
console.log('Assuming protos are up to date');
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
79
|
|