@temporalio/proto 0.19.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/lib/coresdk.d.ts +240 -43
- package/lib/coresdk.js +638 -131
- package/lib/temporal.d.ts +393 -2
- package/lib/temporal.js +454 -10
- package/package.json +2 -2
package/lib/coresdk.js
CHANGED
|
@@ -26,8 +26,6 @@ $root.coresdk = (function() {
|
|
|
26
26
|
|
|
27
27
|
ActivityHeartbeat.prototype.taskToken = $util.newBuffer([]);
|
|
28
28
|
|
|
29
|
-
ActivityHeartbeat.prototype.taskQueue = "";
|
|
30
|
-
|
|
31
29
|
ActivityHeartbeat.prototype.details = $util.emptyArray;
|
|
32
30
|
|
|
33
31
|
ActivityHeartbeat.encode = function encode(message, writer) {
|
|
@@ -35,11 +33,9 @@ $root.coresdk = (function() {
|
|
|
35
33
|
writer = $Writer.create();
|
|
36
34
|
if (message.taskToken != null && Object.hasOwnProperty.call(message, "taskToken"))
|
|
37
35
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.taskToken);
|
|
38
|
-
if (message.taskQueue != null && Object.hasOwnProperty.call(message, "taskQueue"))
|
|
39
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.taskQueue);
|
|
40
36
|
if (message.details != null && message.details.length)
|
|
41
37
|
for (var i = 0; i < message.details.length; ++i)
|
|
42
|
-
$root.coresdk.common.Payload.encode(message.details[i], writer.uint32(/* id
|
|
38
|
+
$root.coresdk.common.Payload.encode(message.details[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
43
39
|
return writer;
|
|
44
40
|
};
|
|
45
41
|
|
|
@@ -58,9 +54,6 @@ $root.coresdk = (function() {
|
|
|
58
54
|
message.taskToken = reader.bytes();
|
|
59
55
|
break;
|
|
60
56
|
case 2:
|
|
61
|
-
message.taskQueue = reader.string();
|
|
62
|
-
break;
|
|
63
|
-
case 3:
|
|
64
57
|
if (!(message.details && message.details.length))
|
|
65
58
|
message.details = [];
|
|
66
59
|
message.details.push($root.coresdk.common.Payload.decode(reader, reader.uint32()));
|
|
@@ -88,8 +81,6 @@ $root.coresdk = (function() {
|
|
|
88
81
|
$util.base64.decode(object.taskToken, message.taskToken = $util.newBuffer($util.base64.length(object.taskToken)), 0);
|
|
89
82
|
else if (object.taskToken.length)
|
|
90
83
|
message.taskToken = object.taskToken;
|
|
91
|
-
if (object.taskQueue != null)
|
|
92
|
-
message.taskQueue = String(object.taskQueue);
|
|
93
84
|
if (object.details) {
|
|
94
85
|
if (!Array.isArray(object.details))
|
|
95
86
|
throw TypeError(".coresdk.ActivityHeartbeat.details: array expected");
|
|
@@ -109,7 +100,7 @@ $root.coresdk = (function() {
|
|
|
109
100
|
var object = {};
|
|
110
101
|
if (options.arrays || options.defaults)
|
|
111
102
|
object.details = [];
|
|
112
|
-
if (options.defaults)
|
|
103
|
+
if (options.defaults)
|
|
113
104
|
if (options.bytes === String)
|
|
114
105
|
object.taskToken = "";
|
|
115
106
|
else {
|
|
@@ -117,12 +108,8 @@ $root.coresdk = (function() {
|
|
|
117
108
|
if (options.bytes !== Array)
|
|
118
109
|
object.taskToken = $util.newBuffer(object.taskToken);
|
|
119
110
|
}
|
|
120
|
-
object.taskQueue = "";
|
|
121
|
-
}
|
|
122
111
|
if (message.taskToken != null && message.hasOwnProperty("taskToken"))
|
|
123
112
|
object.taskToken = options.bytes === String ? $util.base64.encode(message.taskToken, 0, message.taskToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.taskToken) : message.taskToken;
|
|
124
|
-
if (message.taskQueue != null && message.hasOwnProperty("taskQueue"))
|
|
125
|
-
object.taskQueue = message.taskQueue;
|
|
126
113
|
if (message.details && message.details.length) {
|
|
127
114
|
object.details = [];
|
|
128
115
|
for (var j = 0; j < message.details.length; ++j)
|
|
@@ -150,8 +137,6 @@ $root.coresdk = (function() {
|
|
|
150
137
|
|
|
151
138
|
ActivityTaskCompletion.prototype.taskToken = $util.newBuffer([]);
|
|
152
139
|
|
|
153
|
-
ActivityTaskCompletion.prototype.taskQueue = "";
|
|
154
|
-
|
|
155
140
|
ActivityTaskCompletion.prototype.result = null;
|
|
156
141
|
|
|
157
142
|
ActivityTaskCompletion.encode = function encode(message, writer) {
|
|
@@ -159,10 +144,8 @@ $root.coresdk = (function() {
|
|
|
159
144
|
writer = $Writer.create();
|
|
160
145
|
if (message.taskToken != null && Object.hasOwnProperty.call(message, "taskToken"))
|
|
161
146
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.taskToken);
|
|
162
|
-
if (message.taskQueue != null && Object.hasOwnProperty.call(message, "taskQueue"))
|
|
163
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.taskQueue);
|
|
164
147
|
if (message.result != null && Object.hasOwnProperty.call(message, "result"))
|
|
165
|
-
$root.coresdk.activity_result.ActivityExecutionResult.encode(message.result, writer.uint32(/* id
|
|
148
|
+
$root.coresdk.activity_result.ActivityExecutionResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
166
149
|
return writer;
|
|
167
150
|
};
|
|
168
151
|
|
|
@@ -181,9 +164,6 @@ $root.coresdk = (function() {
|
|
|
181
164
|
message.taskToken = reader.bytes();
|
|
182
165
|
break;
|
|
183
166
|
case 2:
|
|
184
|
-
message.taskQueue = reader.string();
|
|
185
|
-
break;
|
|
186
|
-
case 3:
|
|
187
167
|
message.result = $root.coresdk.activity_result.ActivityExecutionResult.decode(reader, reader.uint32());
|
|
188
168
|
break;
|
|
189
169
|
default:
|
|
@@ -209,8 +189,6 @@ $root.coresdk = (function() {
|
|
|
209
189
|
$util.base64.decode(object.taskToken, message.taskToken = $util.newBuffer($util.base64.length(object.taskToken)), 0);
|
|
210
190
|
else if (object.taskToken.length)
|
|
211
191
|
message.taskToken = object.taskToken;
|
|
212
|
-
if (object.taskQueue != null)
|
|
213
|
-
message.taskQueue = String(object.taskQueue);
|
|
214
192
|
if (object.result != null) {
|
|
215
193
|
if (typeof object.result !== "object")
|
|
216
194
|
throw TypeError(".coresdk.ActivityTaskCompletion.result: object expected");
|
|
@@ -231,13 +209,10 @@ $root.coresdk = (function() {
|
|
|
231
209
|
if (options.bytes !== Array)
|
|
232
210
|
object.taskToken = $util.newBuffer(object.taskToken);
|
|
233
211
|
}
|
|
234
|
-
object.taskQueue = "";
|
|
235
212
|
object.result = null;
|
|
236
213
|
}
|
|
237
214
|
if (message.taskToken != null && message.hasOwnProperty("taskToken"))
|
|
238
215
|
object.taskToken = options.bytes === String ? $util.base64.encode(message.taskToken, 0, message.taskToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.taskToken) : message.taskToken;
|
|
239
|
-
if (message.taskQueue != null && message.hasOwnProperty("taskQueue"))
|
|
240
|
-
object.taskQueue = message.taskQueue;
|
|
241
216
|
if (message.result != null && message.hasOwnProperty("result"))
|
|
242
217
|
object.result = $root.coresdk.activity_result.ActivityExecutionResult.toObject(message.result, options);
|
|
243
218
|
return object;
|
|
@@ -2622,6 +2597,40 @@ $root.coresdk = (function() {
|
|
|
2622
2597
|
|
|
2623
2598
|
StartWorkflow.prototype.headers = $util.emptyObject;
|
|
2624
2599
|
|
|
2600
|
+
StartWorkflow.prototype.identity = "";
|
|
2601
|
+
|
|
2602
|
+
StartWorkflow.prototype.parentWorkflowInfo = null;
|
|
2603
|
+
|
|
2604
|
+
StartWorkflow.prototype.workflowExecutionTimeout = null;
|
|
2605
|
+
|
|
2606
|
+
StartWorkflow.prototype.workflowRunTimeout = null;
|
|
2607
|
+
|
|
2608
|
+
StartWorkflow.prototype.workflowTaskTimeout = null;
|
|
2609
|
+
|
|
2610
|
+
StartWorkflow.prototype.continuedFromExecutionRunId = "";
|
|
2611
|
+
|
|
2612
|
+
StartWorkflow.prototype.continuedInitiator = 0;
|
|
2613
|
+
|
|
2614
|
+
StartWorkflow.prototype.continuedFailure = null;
|
|
2615
|
+
|
|
2616
|
+
StartWorkflow.prototype.lastCompletionResult = null;
|
|
2617
|
+
|
|
2618
|
+
StartWorkflow.prototype.firstExecutionRunId = "";
|
|
2619
|
+
|
|
2620
|
+
StartWorkflow.prototype.retryPolicy = null;
|
|
2621
|
+
|
|
2622
|
+
StartWorkflow.prototype.attempt = 0;
|
|
2623
|
+
|
|
2624
|
+
StartWorkflow.prototype.cronSchedule = "";
|
|
2625
|
+
|
|
2626
|
+
StartWorkflow.prototype.workflowExecutionExpirationTime = null;
|
|
2627
|
+
|
|
2628
|
+
StartWorkflow.prototype.cronScheduleToScheduleInterval = null;
|
|
2629
|
+
|
|
2630
|
+
StartWorkflow.prototype.memo = null;
|
|
2631
|
+
|
|
2632
|
+
StartWorkflow.prototype.searchAttributes = null;
|
|
2633
|
+
|
|
2625
2634
|
StartWorkflow.encode = function encode(message, writer) {
|
|
2626
2635
|
if (!writer)
|
|
2627
2636
|
writer = $Writer.create();
|
|
@@ -2639,6 +2648,40 @@ $root.coresdk = (function() {
|
|
|
2639
2648
|
writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
2640
2649
|
$root.coresdk.common.Payload.encode(message.headers[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
2641
2650
|
}
|
|
2651
|
+
if (message.identity != null && Object.hasOwnProperty.call(message, "identity"))
|
|
2652
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.identity);
|
|
2653
|
+
if (message.parentWorkflowInfo != null && Object.hasOwnProperty.call(message, "parentWorkflowInfo"))
|
|
2654
|
+
$root.coresdk.common.NamespacedWorkflowExecution.encode(message.parentWorkflowInfo, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
2655
|
+
if (message.workflowExecutionTimeout != null && Object.hasOwnProperty.call(message, "workflowExecutionTimeout"))
|
|
2656
|
+
$root.google.protobuf.Duration.encode(message.workflowExecutionTimeout, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
2657
|
+
if (message.workflowRunTimeout != null && Object.hasOwnProperty.call(message, "workflowRunTimeout"))
|
|
2658
|
+
$root.google.protobuf.Duration.encode(message.workflowRunTimeout, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
2659
|
+
if (message.workflowTaskTimeout != null && Object.hasOwnProperty.call(message, "workflowTaskTimeout"))
|
|
2660
|
+
$root.google.protobuf.Duration.encode(message.workflowTaskTimeout, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
2661
|
+
if (message.continuedFromExecutionRunId != null && Object.hasOwnProperty.call(message, "continuedFromExecutionRunId"))
|
|
2662
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.continuedFromExecutionRunId);
|
|
2663
|
+
if (message.continuedInitiator != null && Object.hasOwnProperty.call(message, "continuedInitiator"))
|
|
2664
|
+
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.continuedInitiator);
|
|
2665
|
+
if (message.continuedFailure != null && Object.hasOwnProperty.call(message, "continuedFailure"))
|
|
2666
|
+
$root.temporal.api.failure.v1.Failure.encode(message.continuedFailure, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
2667
|
+
if (message.lastCompletionResult != null && Object.hasOwnProperty.call(message, "lastCompletionResult"))
|
|
2668
|
+
$root.temporal.api.common.v1.Payloads.encode(message.lastCompletionResult, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
2669
|
+
if (message.firstExecutionRunId != null && Object.hasOwnProperty.call(message, "firstExecutionRunId"))
|
|
2670
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.firstExecutionRunId);
|
|
2671
|
+
if (message.retryPolicy != null && Object.hasOwnProperty.call(message, "retryPolicy"))
|
|
2672
|
+
$root.temporal.api.common.v1.RetryPolicy.encode(message.retryPolicy, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
2673
|
+
if (message.attempt != null && Object.hasOwnProperty.call(message, "attempt"))
|
|
2674
|
+
writer.uint32(/* id 17, wireType 0 =*/136).int32(message.attempt);
|
|
2675
|
+
if (message.cronSchedule != null && Object.hasOwnProperty.call(message, "cronSchedule"))
|
|
2676
|
+
writer.uint32(/* id 18, wireType 2 =*/146).string(message.cronSchedule);
|
|
2677
|
+
if (message.workflowExecutionExpirationTime != null && Object.hasOwnProperty.call(message, "workflowExecutionExpirationTime"))
|
|
2678
|
+
$root.google.protobuf.Timestamp.encode(message.workflowExecutionExpirationTime, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
2679
|
+
if (message.cronScheduleToScheduleInterval != null && Object.hasOwnProperty.call(message, "cronScheduleToScheduleInterval"))
|
|
2680
|
+
$root.google.protobuf.Duration.encode(message.cronScheduleToScheduleInterval, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
|
2681
|
+
if (message.memo != null && Object.hasOwnProperty.call(message, "memo"))
|
|
2682
|
+
$root.temporal.api.common.v1.Memo.encode(message.memo, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
2683
|
+
if (message.searchAttributes != null && Object.hasOwnProperty.call(message, "searchAttributes"))
|
|
2684
|
+
$root.temporal.api.common.v1.SearchAttributes.encode(message.searchAttributes, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
2642
2685
|
return writer;
|
|
2643
2686
|
};
|
|
2644
2687
|
|
|
@@ -2689,6 +2732,57 @@ $root.coresdk = (function() {
|
|
|
2689
2732
|
}
|
|
2690
2733
|
message.headers[key] = value;
|
|
2691
2734
|
break;
|
|
2735
|
+
case 6:
|
|
2736
|
+
message.identity = reader.string();
|
|
2737
|
+
break;
|
|
2738
|
+
case 7:
|
|
2739
|
+
message.parentWorkflowInfo = $root.coresdk.common.NamespacedWorkflowExecution.decode(reader, reader.uint32());
|
|
2740
|
+
break;
|
|
2741
|
+
case 8:
|
|
2742
|
+
message.workflowExecutionTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
2743
|
+
break;
|
|
2744
|
+
case 9:
|
|
2745
|
+
message.workflowRunTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
2746
|
+
break;
|
|
2747
|
+
case 10:
|
|
2748
|
+
message.workflowTaskTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
2749
|
+
break;
|
|
2750
|
+
case 11:
|
|
2751
|
+
message.continuedFromExecutionRunId = reader.string();
|
|
2752
|
+
break;
|
|
2753
|
+
case 12:
|
|
2754
|
+
message.continuedInitiator = reader.int32();
|
|
2755
|
+
break;
|
|
2756
|
+
case 13:
|
|
2757
|
+
message.continuedFailure = $root.temporal.api.failure.v1.Failure.decode(reader, reader.uint32());
|
|
2758
|
+
break;
|
|
2759
|
+
case 14:
|
|
2760
|
+
message.lastCompletionResult = $root.temporal.api.common.v1.Payloads.decode(reader, reader.uint32());
|
|
2761
|
+
break;
|
|
2762
|
+
case 15:
|
|
2763
|
+
message.firstExecutionRunId = reader.string();
|
|
2764
|
+
break;
|
|
2765
|
+
case 16:
|
|
2766
|
+
message.retryPolicy = $root.temporal.api.common.v1.RetryPolicy.decode(reader, reader.uint32());
|
|
2767
|
+
break;
|
|
2768
|
+
case 17:
|
|
2769
|
+
message.attempt = reader.int32();
|
|
2770
|
+
break;
|
|
2771
|
+
case 18:
|
|
2772
|
+
message.cronSchedule = reader.string();
|
|
2773
|
+
break;
|
|
2774
|
+
case 19:
|
|
2775
|
+
message.workflowExecutionExpirationTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
2776
|
+
break;
|
|
2777
|
+
case 20:
|
|
2778
|
+
message.cronScheduleToScheduleInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
2779
|
+
break;
|
|
2780
|
+
case 21:
|
|
2781
|
+
message.memo = $root.temporal.api.common.v1.Memo.decode(reader, reader.uint32());
|
|
2782
|
+
break;
|
|
2783
|
+
case 22:
|
|
2784
|
+
message.searchAttributes = $root.temporal.api.common.v1.SearchAttributes.decode(reader, reader.uint32());
|
|
2785
|
+
break;
|
|
2692
2786
|
default:
|
|
2693
2787
|
reader.skipType(tag & 7);
|
|
2694
2788
|
break;
|
|
@@ -2740,6 +2834,89 @@ $root.coresdk = (function() {
|
|
|
2740
2834
|
message.headers[keys[i]] = $root.coresdk.common.Payload.fromObject(object.headers[keys[i]]);
|
|
2741
2835
|
}
|
|
2742
2836
|
}
|
|
2837
|
+
if (object.identity != null)
|
|
2838
|
+
message.identity = String(object.identity);
|
|
2839
|
+
if (object.parentWorkflowInfo != null) {
|
|
2840
|
+
if (typeof object.parentWorkflowInfo !== "object")
|
|
2841
|
+
throw TypeError(".coresdk.workflow_activation.StartWorkflow.parentWorkflowInfo: object expected");
|
|
2842
|
+
message.parentWorkflowInfo = $root.coresdk.common.NamespacedWorkflowExecution.fromObject(object.parentWorkflowInfo);
|
|
2843
|
+
}
|
|
2844
|
+
if (object.workflowExecutionTimeout != null) {
|
|
2845
|
+
if (typeof object.workflowExecutionTimeout !== "object")
|
|
2846
|
+
throw TypeError(".coresdk.workflow_activation.StartWorkflow.workflowExecutionTimeout: object expected");
|
|
2847
|
+
message.workflowExecutionTimeout = $root.google.protobuf.Duration.fromObject(object.workflowExecutionTimeout);
|
|
2848
|
+
}
|
|
2849
|
+
if (object.workflowRunTimeout != null) {
|
|
2850
|
+
if (typeof object.workflowRunTimeout !== "object")
|
|
2851
|
+
throw TypeError(".coresdk.workflow_activation.StartWorkflow.workflowRunTimeout: object expected");
|
|
2852
|
+
message.workflowRunTimeout = $root.google.protobuf.Duration.fromObject(object.workflowRunTimeout);
|
|
2853
|
+
}
|
|
2854
|
+
if (object.workflowTaskTimeout != null) {
|
|
2855
|
+
if (typeof object.workflowTaskTimeout !== "object")
|
|
2856
|
+
throw TypeError(".coresdk.workflow_activation.StartWorkflow.workflowTaskTimeout: object expected");
|
|
2857
|
+
message.workflowTaskTimeout = $root.google.protobuf.Duration.fromObject(object.workflowTaskTimeout);
|
|
2858
|
+
}
|
|
2859
|
+
if (object.continuedFromExecutionRunId != null)
|
|
2860
|
+
message.continuedFromExecutionRunId = String(object.continuedFromExecutionRunId);
|
|
2861
|
+
switch (object.continuedInitiator) {
|
|
2862
|
+
case "CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED":
|
|
2863
|
+
case 0:
|
|
2864
|
+
message.continuedInitiator = 0;
|
|
2865
|
+
break;
|
|
2866
|
+
case "CONTINUE_AS_NEW_INITIATOR_WORKFLOW":
|
|
2867
|
+
case 1:
|
|
2868
|
+
message.continuedInitiator = 1;
|
|
2869
|
+
break;
|
|
2870
|
+
case "CONTINUE_AS_NEW_INITIATOR_RETRY":
|
|
2871
|
+
case 2:
|
|
2872
|
+
message.continuedInitiator = 2;
|
|
2873
|
+
break;
|
|
2874
|
+
case "CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE":
|
|
2875
|
+
case 3:
|
|
2876
|
+
message.continuedInitiator = 3;
|
|
2877
|
+
break;
|
|
2878
|
+
}
|
|
2879
|
+
if (object.continuedFailure != null) {
|
|
2880
|
+
if (typeof object.continuedFailure !== "object")
|
|
2881
|
+
throw TypeError(".coresdk.workflow_activation.StartWorkflow.continuedFailure: object expected");
|
|
2882
|
+
message.continuedFailure = $root.temporal.api.failure.v1.Failure.fromObject(object.continuedFailure);
|
|
2883
|
+
}
|
|
2884
|
+
if (object.lastCompletionResult != null) {
|
|
2885
|
+
if (typeof object.lastCompletionResult !== "object")
|
|
2886
|
+
throw TypeError(".coresdk.workflow_activation.StartWorkflow.lastCompletionResult: object expected");
|
|
2887
|
+
message.lastCompletionResult = $root.temporal.api.common.v1.Payloads.fromObject(object.lastCompletionResult);
|
|
2888
|
+
}
|
|
2889
|
+
if (object.firstExecutionRunId != null)
|
|
2890
|
+
message.firstExecutionRunId = String(object.firstExecutionRunId);
|
|
2891
|
+
if (object.retryPolicy != null) {
|
|
2892
|
+
if (typeof object.retryPolicy !== "object")
|
|
2893
|
+
throw TypeError(".coresdk.workflow_activation.StartWorkflow.retryPolicy: object expected");
|
|
2894
|
+
message.retryPolicy = $root.temporal.api.common.v1.RetryPolicy.fromObject(object.retryPolicy);
|
|
2895
|
+
}
|
|
2896
|
+
if (object.attempt != null)
|
|
2897
|
+
message.attempt = object.attempt | 0;
|
|
2898
|
+
if (object.cronSchedule != null)
|
|
2899
|
+
message.cronSchedule = String(object.cronSchedule);
|
|
2900
|
+
if (object.workflowExecutionExpirationTime != null) {
|
|
2901
|
+
if (typeof object.workflowExecutionExpirationTime !== "object")
|
|
2902
|
+
throw TypeError(".coresdk.workflow_activation.StartWorkflow.workflowExecutionExpirationTime: object expected");
|
|
2903
|
+
message.workflowExecutionExpirationTime = $root.google.protobuf.Timestamp.fromObject(object.workflowExecutionExpirationTime);
|
|
2904
|
+
}
|
|
2905
|
+
if (object.cronScheduleToScheduleInterval != null) {
|
|
2906
|
+
if (typeof object.cronScheduleToScheduleInterval !== "object")
|
|
2907
|
+
throw TypeError(".coresdk.workflow_activation.StartWorkflow.cronScheduleToScheduleInterval: object expected");
|
|
2908
|
+
message.cronScheduleToScheduleInterval = $root.google.protobuf.Duration.fromObject(object.cronScheduleToScheduleInterval);
|
|
2909
|
+
}
|
|
2910
|
+
if (object.memo != null) {
|
|
2911
|
+
if (typeof object.memo !== "object")
|
|
2912
|
+
throw TypeError(".coresdk.workflow_activation.StartWorkflow.memo: object expected");
|
|
2913
|
+
message.memo = $root.temporal.api.common.v1.Memo.fromObject(object.memo);
|
|
2914
|
+
}
|
|
2915
|
+
if (object.searchAttributes != null) {
|
|
2916
|
+
if (typeof object.searchAttributes !== "object")
|
|
2917
|
+
throw TypeError(".coresdk.workflow_activation.StartWorkflow.searchAttributes: object expected");
|
|
2918
|
+
message.searchAttributes = $root.temporal.api.common.v1.SearchAttributes.fromObject(object.searchAttributes);
|
|
2919
|
+
}
|
|
2743
2920
|
return message;
|
|
2744
2921
|
};
|
|
2745
2922
|
|
|
@@ -2759,6 +2936,23 @@ $root.coresdk = (function() {
|
|
|
2759
2936
|
object.randomnessSeed = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
2760
2937
|
} else
|
|
2761
2938
|
object.randomnessSeed = options.longs === String ? "0" : 0;
|
|
2939
|
+
object.identity = "";
|
|
2940
|
+
object.parentWorkflowInfo = null;
|
|
2941
|
+
object.workflowExecutionTimeout = null;
|
|
2942
|
+
object.workflowRunTimeout = null;
|
|
2943
|
+
object.workflowTaskTimeout = null;
|
|
2944
|
+
object.continuedFromExecutionRunId = "";
|
|
2945
|
+
object.continuedInitiator = options.enums === String ? "CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED" : 0;
|
|
2946
|
+
object.continuedFailure = null;
|
|
2947
|
+
object.lastCompletionResult = null;
|
|
2948
|
+
object.firstExecutionRunId = "";
|
|
2949
|
+
object.retryPolicy = null;
|
|
2950
|
+
object.attempt = 0;
|
|
2951
|
+
object.cronSchedule = "";
|
|
2952
|
+
object.workflowExecutionExpirationTime = null;
|
|
2953
|
+
object.cronScheduleToScheduleInterval = null;
|
|
2954
|
+
object.memo = null;
|
|
2955
|
+
object.searchAttributes = null;
|
|
2762
2956
|
}
|
|
2763
2957
|
if (message.workflowType != null && message.hasOwnProperty("workflowType"))
|
|
2764
2958
|
object.workflowType = message.workflowType;
|
|
@@ -2780,6 +2974,40 @@ $root.coresdk = (function() {
|
|
|
2780
2974
|
for (var j = 0; j < keys2.length; ++j)
|
|
2781
2975
|
object.headers[keys2[j]] = $root.coresdk.common.Payload.toObject(message.headers[keys2[j]], options);
|
|
2782
2976
|
}
|
|
2977
|
+
if (message.identity != null && message.hasOwnProperty("identity"))
|
|
2978
|
+
object.identity = message.identity;
|
|
2979
|
+
if (message.parentWorkflowInfo != null && message.hasOwnProperty("parentWorkflowInfo"))
|
|
2980
|
+
object.parentWorkflowInfo = $root.coresdk.common.NamespacedWorkflowExecution.toObject(message.parentWorkflowInfo, options);
|
|
2981
|
+
if (message.workflowExecutionTimeout != null && message.hasOwnProperty("workflowExecutionTimeout"))
|
|
2982
|
+
object.workflowExecutionTimeout = $root.google.protobuf.Duration.toObject(message.workflowExecutionTimeout, options);
|
|
2983
|
+
if (message.workflowRunTimeout != null && message.hasOwnProperty("workflowRunTimeout"))
|
|
2984
|
+
object.workflowRunTimeout = $root.google.protobuf.Duration.toObject(message.workflowRunTimeout, options);
|
|
2985
|
+
if (message.workflowTaskTimeout != null && message.hasOwnProperty("workflowTaskTimeout"))
|
|
2986
|
+
object.workflowTaskTimeout = $root.google.protobuf.Duration.toObject(message.workflowTaskTimeout, options);
|
|
2987
|
+
if (message.continuedFromExecutionRunId != null && message.hasOwnProperty("continuedFromExecutionRunId"))
|
|
2988
|
+
object.continuedFromExecutionRunId = message.continuedFromExecutionRunId;
|
|
2989
|
+
if (message.continuedInitiator != null && message.hasOwnProperty("continuedInitiator"))
|
|
2990
|
+
object.continuedInitiator = options.enums === String ? $root.temporal.api.enums.v1.ContinueAsNewInitiator[message.continuedInitiator] : message.continuedInitiator;
|
|
2991
|
+
if (message.continuedFailure != null && message.hasOwnProperty("continuedFailure"))
|
|
2992
|
+
object.continuedFailure = $root.temporal.api.failure.v1.Failure.toObject(message.continuedFailure, options);
|
|
2993
|
+
if (message.lastCompletionResult != null && message.hasOwnProperty("lastCompletionResult"))
|
|
2994
|
+
object.lastCompletionResult = $root.temporal.api.common.v1.Payloads.toObject(message.lastCompletionResult, options);
|
|
2995
|
+
if (message.firstExecutionRunId != null && message.hasOwnProperty("firstExecutionRunId"))
|
|
2996
|
+
object.firstExecutionRunId = message.firstExecutionRunId;
|
|
2997
|
+
if (message.retryPolicy != null && message.hasOwnProperty("retryPolicy"))
|
|
2998
|
+
object.retryPolicy = $root.temporal.api.common.v1.RetryPolicy.toObject(message.retryPolicy, options);
|
|
2999
|
+
if (message.attempt != null && message.hasOwnProperty("attempt"))
|
|
3000
|
+
object.attempt = message.attempt;
|
|
3001
|
+
if (message.cronSchedule != null && message.hasOwnProperty("cronSchedule"))
|
|
3002
|
+
object.cronSchedule = message.cronSchedule;
|
|
3003
|
+
if (message.workflowExecutionExpirationTime != null && message.hasOwnProperty("workflowExecutionExpirationTime"))
|
|
3004
|
+
object.workflowExecutionExpirationTime = $root.google.protobuf.Timestamp.toObject(message.workflowExecutionExpirationTime, options);
|
|
3005
|
+
if (message.cronScheduleToScheduleInterval != null && message.hasOwnProperty("cronScheduleToScheduleInterval"))
|
|
3006
|
+
object.cronScheduleToScheduleInterval = $root.google.protobuf.Duration.toObject(message.cronScheduleToScheduleInterval, options);
|
|
3007
|
+
if (message.memo != null && message.hasOwnProperty("memo"))
|
|
3008
|
+
object.memo = $root.temporal.api.common.v1.Memo.toObject(message.memo, options);
|
|
3009
|
+
if (message.searchAttributes != null && message.hasOwnProperty("searchAttributes"))
|
|
3010
|
+
object.searchAttributes = $root.temporal.api.common.v1.SearchAttributes.toObject(message.searchAttributes, options);
|
|
2783
3011
|
return object;
|
|
2784
3012
|
};
|
|
2785
3013
|
|
|
@@ -3536,6 +3764,7 @@ $root.coresdk = (function() {
|
|
|
3536
3764
|
|
|
3537
3765
|
function QueryWorkflow(properties) {
|
|
3538
3766
|
this["arguments"] = [];
|
|
3767
|
+
this.headers = {};
|
|
3539
3768
|
if (properties)
|
|
3540
3769
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3541
3770
|
if (properties[keys[i]] != null)
|
|
@@ -3548,6 +3777,8 @@ $root.coresdk = (function() {
|
|
|
3548
3777
|
|
|
3549
3778
|
QueryWorkflow.prototype["arguments"] = $util.emptyArray;
|
|
3550
3779
|
|
|
3780
|
+
QueryWorkflow.prototype.headers = $util.emptyObject;
|
|
3781
|
+
|
|
3551
3782
|
QueryWorkflow.encode = function encode(message, writer) {
|
|
3552
3783
|
if (!writer)
|
|
3553
3784
|
writer = $Writer.create();
|
|
@@ -3558,6 +3789,11 @@ $root.coresdk = (function() {
|
|
|
3558
3789
|
if (message["arguments"] != null && message["arguments"].length)
|
|
3559
3790
|
for (var i = 0; i < message["arguments"].length; ++i)
|
|
3560
3791
|
$root.coresdk.common.Payload.encode(message["arguments"][i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
3792
|
+
if (message.headers != null && Object.hasOwnProperty.call(message, "headers"))
|
|
3793
|
+
for (var keys = Object.keys(message.headers), i = 0; i < keys.length; ++i) {
|
|
3794
|
+
writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
3795
|
+
$root.coresdk.common.Payload.encode(message.headers[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
3796
|
+
}
|
|
3561
3797
|
return writer;
|
|
3562
3798
|
};
|
|
3563
3799
|
|
|
@@ -3568,7 +3804,7 @@ $root.coresdk = (function() {
|
|
|
3568
3804
|
QueryWorkflow.decode = function decode(reader, length) {
|
|
3569
3805
|
if (!(reader instanceof $Reader))
|
|
3570
3806
|
reader = $Reader.create(reader);
|
|
3571
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.coresdk.workflow_activation.QueryWorkflow();
|
|
3807
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.coresdk.workflow_activation.QueryWorkflow(), key, value;
|
|
3572
3808
|
while (reader.pos < end) {
|
|
3573
3809
|
var tag = reader.uint32();
|
|
3574
3810
|
switch (tag >>> 3) {
|
|
@@ -3583,6 +3819,28 @@ $root.coresdk = (function() {
|
|
|
3583
3819
|
message["arguments"] = [];
|
|
3584
3820
|
message["arguments"].push($root.coresdk.common.Payload.decode(reader, reader.uint32()));
|
|
3585
3821
|
break;
|
|
3822
|
+
case 5:
|
|
3823
|
+
if (message.headers === $util.emptyObject)
|
|
3824
|
+
message.headers = {};
|
|
3825
|
+
var end2 = reader.uint32() + reader.pos;
|
|
3826
|
+
key = "";
|
|
3827
|
+
value = null;
|
|
3828
|
+
while (reader.pos < end2) {
|
|
3829
|
+
var tag2 = reader.uint32();
|
|
3830
|
+
switch (tag2 >>> 3) {
|
|
3831
|
+
case 1:
|
|
3832
|
+
key = reader.string();
|
|
3833
|
+
break;
|
|
3834
|
+
case 2:
|
|
3835
|
+
value = $root.coresdk.common.Payload.decode(reader, reader.uint32());
|
|
3836
|
+
break;
|
|
3837
|
+
default:
|
|
3838
|
+
reader.skipType(tag2 & 7);
|
|
3839
|
+
break;
|
|
3840
|
+
}
|
|
3841
|
+
}
|
|
3842
|
+
message.headers[key] = value;
|
|
3843
|
+
break;
|
|
3586
3844
|
default:
|
|
3587
3845
|
reader.skipType(tag & 7);
|
|
3588
3846
|
break;
|
|
@@ -3615,6 +3873,16 @@ $root.coresdk = (function() {
|
|
|
3615
3873
|
message["arguments"][i] = $root.coresdk.common.Payload.fromObject(object["arguments"][i]);
|
|
3616
3874
|
}
|
|
3617
3875
|
}
|
|
3876
|
+
if (object.headers) {
|
|
3877
|
+
if (typeof object.headers !== "object")
|
|
3878
|
+
throw TypeError(".coresdk.workflow_activation.QueryWorkflow.headers: object expected");
|
|
3879
|
+
message.headers = {};
|
|
3880
|
+
for (var keys = Object.keys(object.headers), i = 0; i < keys.length; ++i) {
|
|
3881
|
+
if (typeof object.headers[keys[i]] !== "object")
|
|
3882
|
+
throw TypeError(".coresdk.workflow_activation.QueryWorkflow.headers: object expected");
|
|
3883
|
+
message.headers[keys[i]] = $root.coresdk.common.Payload.fromObject(object.headers[keys[i]]);
|
|
3884
|
+
}
|
|
3885
|
+
}
|
|
3618
3886
|
return message;
|
|
3619
3887
|
};
|
|
3620
3888
|
|
|
@@ -3624,6 +3892,8 @@ $root.coresdk = (function() {
|
|
|
3624
3892
|
var object = {};
|
|
3625
3893
|
if (options.arrays || options.defaults)
|
|
3626
3894
|
object["arguments"] = [];
|
|
3895
|
+
if (options.objects || options.defaults)
|
|
3896
|
+
object.headers = {};
|
|
3627
3897
|
if (options.defaults) {
|
|
3628
3898
|
object.queryId = "";
|
|
3629
3899
|
object.queryType = "";
|
|
@@ -3637,6 +3907,12 @@ $root.coresdk = (function() {
|
|
|
3637
3907
|
for (var j = 0; j < message["arguments"].length; ++j)
|
|
3638
3908
|
object["arguments"][j] = $root.coresdk.common.Payload.toObject(message["arguments"][j], options);
|
|
3639
3909
|
}
|
|
3910
|
+
var keys2;
|
|
3911
|
+
if (message.headers && (keys2 = Object.keys(message.headers)).length) {
|
|
3912
|
+
object.headers = {};
|
|
3913
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
3914
|
+
object.headers[keys2[j]] = $root.coresdk.common.Payload.toObject(message.headers[keys2[j]], options);
|
|
3915
|
+
}
|
|
3640
3916
|
return object;
|
|
3641
3917
|
};
|
|
3642
3918
|
|
|
@@ -3742,6 +4018,7 @@ $root.coresdk = (function() {
|
|
|
3742
4018
|
|
|
3743
4019
|
function SignalWorkflow(properties) {
|
|
3744
4020
|
this.input = [];
|
|
4021
|
+
this.headers = {};
|
|
3745
4022
|
if (properties)
|
|
3746
4023
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3747
4024
|
if (properties[keys[i]] != null)
|
|
@@ -3754,6 +4031,8 @@ $root.coresdk = (function() {
|
|
|
3754
4031
|
|
|
3755
4032
|
SignalWorkflow.prototype.identity = "";
|
|
3756
4033
|
|
|
4034
|
+
SignalWorkflow.prototype.headers = $util.emptyObject;
|
|
4035
|
+
|
|
3757
4036
|
SignalWorkflow.encode = function encode(message, writer) {
|
|
3758
4037
|
if (!writer)
|
|
3759
4038
|
writer = $Writer.create();
|
|
@@ -3764,6 +4043,11 @@ $root.coresdk = (function() {
|
|
|
3764
4043
|
$root.coresdk.common.Payload.encode(message.input[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
3765
4044
|
if (message.identity != null && Object.hasOwnProperty.call(message, "identity"))
|
|
3766
4045
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.identity);
|
|
4046
|
+
if (message.headers != null && Object.hasOwnProperty.call(message, "headers"))
|
|
4047
|
+
for (var keys = Object.keys(message.headers), i = 0; i < keys.length; ++i) {
|
|
4048
|
+
writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
4049
|
+
$root.coresdk.common.Payload.encode(message.headers[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
4050
|
+
}
|
|
3767
4051
|
return writer;
|
|
3768
4052
|
};
|
|
3769
4053
|
|
|
@@ -3774,7 +4058,7 @@ $root.coresdk = (function() {
|
|
|
3774
4058
|
SignalWorkflow.decode = function decode(reader, length) {
|
|
3775
4059
|
if (!(reader instanceof $Reader))
|
|
3776
4060
|
reader = $Reader.create(reader);
|
|
3777
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.coresdk.workflow_activation.SignalWorkflow();
|
|
4061
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.coresdk.workflow_activation.SignalWorkflow(), key, value;
|
|
3778
4062
|
while (reader.pos < end) {
|
|
3779
4063
|
var tag = reader.uint32();
|
|
3780
4064
|
switch (tag >>> 3) {
|
|
@@ -3789,6 +4073,28 @@ $root.coresdk = (function() {
|
|
|
3789
4073
|
case 3:
|
|
3790
4074
|
message.identity = reader.string();
|
|
3791
4075
|
break;
|
|
4076
|
+
case 5:
|
|
4077
|
+
if (message.headers === $util.emptyObject)
|
|
4078
|
+
message.headers = {};
|
|
4079
|
+
var end2 = reader.uint32() + reader.pos;
|
|
4080
|
+
key = "";
|
|
4081
|
+
value = null;
|
|
4082
|
+
while (reader.pos < end2) {
|
|
4083
|
+
var tag2 = reader.uint32();
|
|
4084
|
+
switch (tag2 >>> 3) {
|
|
4085
|
+
case 1:
|
|
4086
|
+
key = reader.string();
|
|
4087
|
+
break;
|
|
4088
|
+
case 2:
|
|
4089
|
+
value = $root.coresdk.common.Payload.decode(reader, reader.uint32());
|
|
4090
|
+
break;
|
|
4091
|
+
default:
|
|
4092
|
+
reader.skipType(tag2 & 7);
|
|
4093
|
+
break;
|
|
4094
|
+
}
|
|
4095
|
+
}
|
|
4096
|
+
message.headers[key] = value;
|
|
4097
|
+
break;
|
|
3792
4098
|
default:
|
|
3793
4099
|
reader.skipType(tag & 7);
|
|
3794
4100
|
break;
|
|
@@ -3821,6 +4127,16 @@ $root.coresdk = (function() {
|
|
|
3821
4127
|
}
|
|
3822
4128
|
if (object.identity != null)
|
|
3823
4129
|
message.identity = String(object.identity);
|
|
4130
|
+
if (object.headers) {
|
|
4131
|
+
if (typeof object.headers !== "object")
|
|
4132
|
+
throw TypeError(".coresdk.workflow_activation.SignalWorkflow.headers: object expected");
|
|
4133
|
+
message.headers = {};
|
|
4134
|
+
for (var keys = Object.keys(object.headers), i = 0; i < keys.length; ++i) {
|
|
4135
|
+
if (typeof object.headers[keys[i]] !== "object")
|
|
4136
|
+
throw TypeError(".coresdk.workflow_activation.SignalWorkflow.headers: object expected");
|
|
4137
|
+
message.headers[keys[i]] = $root.coresdk.common.Payload.fromObject(object.headers[keys[i]]);
|
|
4138
|
+
}
|
|
4139
|
+
}
|
|
3824
4140
|
return message;
|
|
3825
4141
|
};
|
|
3826
4142
|
|
|
@@ -3830,6 +4146,8 @@ $root.coresdk = (function() {
|
|
|
3830
4146
|
var object = {};
|
|
3831
4147
|
if (options.arrays || options.defaults)
|
|
3832
4148
|
object.input = [];
|
|
4149
|
+
if (options.objects || options.defaults)
|
|
4150
|
+
object.headers = {};
|
|
3833
4151
|
if (options.defaults) {
|
|
3834
4152
|
object.signalName = "";
|
|
3835
4153
|
object.identity = "";
|
|
@@ -3843,6 +4161,12 @@ $root.coresdk = (function() {
|
|
|
3843
4161
|
}
|
|
3844
4162
|
if (message.identity != null && message.hasOwnProperty("identity"))
|
|
3845
4163
|
object.identity = message.identity;
|
|
4164
|
+
var keys2;
|
|
4165
|
+
if (message.headers && (keys2 = Object.keys(message.headers)).length) {
|
|
4166
|
+
object.headers = {};
|
|
4167
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
4168
|
+
object.headers[keys2[j]] = $root.coresdk.common.Payload.toObject(message.headers[keys2[j]], options);
|
|
4169
|
+
}
|
|
3846
4170
|
return object;
|
|
3847
4171
|
};
|
|
3848
4172
|
|
|
@@ -4686,11 +5010,13 @@ $root.coresdk = (function() {
|
|
|
4686
5010
|
|
|
4687
5011
|
WorkflowCommand.prototype.requestCancelLocalActivity = null;
|
|
4688
5012
|
|
|
5013
|
+
WorkflowCommand.prototype.upsertWorkflowSearchAttributesCommandAttributes = null;
|
|
5014
|
+
|
|
4689
5015
|
// OneOf field names bound to virtual getters and setters
|
|
4690
5016
|
var $oneOfFields;
|
|
4691
5017
|
|
|
4692
5018
|
Object.defineProperty(WorkflowCommand.prototype, "variant", {
|
|
4693
|
-
get: $util.oneOfGetter($oneOfFields = ["startTimer", "scheduleActivity", "respondToQuery", "requestCancelActivity", "cancelTimer", "completeWorkflowExecution", "failWorkflowExecution", "continueAsNewWorkflowExecution", "cancelWorkflowExecution", "setPatchMarker", "startChildWorkflowExecution", "cancelUnstartedChildWorkflowExecution", "requestCancelExternalWorkflowExecution", "signalExternalWorkflowExecution", "cancelSignalWorkflow", "scheduleLocalActivity", "requestCancelLocalActivity"]),
|
|
5019
|
+
get: $util.oneOfGetter($oneOfFields = ["startTimer", "scheduleActivity", "respondToQuery", "requestCancelActivity", "cancelTimer", "completeWorkflowExecution", "failWorkflowExecution", "continueAsNewWorkflowExecution", "cancelWorkflowExecution", "setPatchMarker", "startChildWorkflowExecution", "cancelUnstartedChildWorkflowExecution", "requestCancelExternalWorkflowExecution", "signalExternalWorkflowExecution", "cancelSignalWorkflow", "scheduleLocalActivity", "requestCancelLocalActivity", "upsertWorkflowSearchAttributesCommandAttributes"]),
|
|
4694
5020
|
set: $util.oneOfSetter($oneOfFields)
|
|
4695
5021
|
});
|
|
4696
5022
|
|
|
@@ -4731,6 +5057,8 @@ $root.coresdk = (function() {
|
|
|
4731
5057
|
$root.coresdk.workflow_commands.ScheduleLocalActivity.encode(message.scheduleLocalActivity, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
4732
5058
|
if (message.requestCancelLocalActivity != null && Object.hasOwnProperty.call(message, "requestCancelLocalActivity"))
|
|
4733
5059
|
$root.coresdk.workflow_commands.RequestCancelLocalActivity.encode(message.requestCancelLocalActivity, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
5060
|
+
if (message.upsertWorkflowSearchAttributesCommandAttributes != null && Object.hasOwnProperty.call(message, "upsertWorkflowSearchAttributesCommandAttributes"))
|
|
5061
|
+
$root.coresdk.workflow_commands.UpsertWorkflowSearchAttributes.encode(message.upsertWorkflowSearchAttributesCommandAttributes, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
4734
5062
|
return writer;
|
|
4735
5063
|
};
|
|
4736
5064
|
|
|
@@ -4796,6 +5124,9 @@ $root.coresdk = (function() {
|
|
|
4796
5124
|
case 17:
|
|
4797
5125
|
message.requestCancelLocalActivity = $root.coresdk.workflow_commands.RequestCancelLocalActivity.decode(reader, reader.uint32());
|
|
4798
5126
|
break;
|
|
5127
|
+
case 18:
|
|
5128
|
+
message.upsertWorkflowSearchAttributesCommandAttributes = $root.coresdk.workflow_commands.UpsertWorkflowSearchAttributes.decode(reader, reader.uint32());
|
|
5129
|
+
break;
|
|
4799
5130
|
default:
|
|
4800
5131
|
reader.skipType(tag & 7);
|
|
4801
5132
|
break;
|
|
@@ -4899,6 +5230,11 @@ $root.coresdk = (function() {
|
|
|
4899
5230
|
throw TypeError(".coresdk.workflow_commands.WorkflowCommand.requestCancelLocalActivity: object expected");
|
|
4900
5231
|
message.requestCancelLocalActivity = $root.coresdk.workflow_commands.RequestCancelLocalActivity.fromObject(object.requestCancelLocalActivity);
|
|
4901
5232
|
}
|
|
5233
|
+
if (object.upsertWorkflowSearchAttributesCommandAttributes != null) {
|
|
5234
|
+
if (typeof object.upsertWorkflowSearchAttributesCommandAttributes !== "object")
|
|
5235
|
+
throw TypeError(".coresdk.workflow_commands.WorkflowCommand.upsertWorkflowSearchAttributesCommandAttributes: object expected");
|
|
5236
|
+
message.upsertWorkflowSearchAttributesCommandAttributes = $root.coresdk.workflow_commands.UpsertWorkflowSearchAttributes.fromObject(object.upsertWorkflowSearchAttributesCommandAttributes);
|
|
5237
|
+
}
|
|
4902
5238
|
return message;
|
|
4903
5239
|
};
|
|
4904
5240
|
|
|
@@ -4991,6 +5327,11 @@ $root.coresdk = (function() {
|
|
|
4991
5327
|
if (options.oneofs)
|
|
4992
5328
|
object.variant = "requestCancelLocalActivity";
|
|
4993
5329
|
}
|
|
5330
|
+
if (message.upsertWorkflowSearchAttributesCommandAttributes != null && message.hasOwnProperty("upsertWorkflowSearchAttributesCommandAttributes")) {
|
|
5331
|
+
object.upsertWorkflowSearchAttributesCommandAttributes = $root.coresdk.workflow_commands.UpsertWorkflowSearchAttributes.toObject(message.upsertWorkflowSearchAttributesCommandAttributes, options);
|
|
5332
|
+
if (options.oneofs)
|
|
5333
|
+
object.variant = "upsertWorkflowSearchAttributesCommandAttributes";
|
|
5334
|
+
}
|
|
4994
5335
|
return object;
|
|
4995
5336
|
};
|
|
4996
5337
|
|
|
@@ -5171,7 +5512,7 @@ $root.coresdk = (function() {
|
|
|
5171
5512
|
|
|
5172
5513
|
|
|
5173
5514
|
function ScheduleActivity(properties) {
|
|
5174
|
-
this.
|
|
5515
|
+
this.headers = {};
|
|
5175
5516
|
this["arguments"] = [];
|
|
5176
5517
|
if (properties)
|
|
5177
5518
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -5189,7 +5530,7 @@ $root.coresdk = (function() {
|
|
|
5189
5530
|
|
|
5190
5531
|
ScheduleActivity.prototype.taskQueue = "";
|
|
5191
5532
|
|
|
5192
|
-
ScheduleActivity.prototype.
|
|
5533
|
+
ScheduleActivity.prototype.headers = $util.emptyObject;
|
|
5193
5534
|
|
|
5194
5535
|
ScheduleActivity.prototype["arguments"] = $util.emptyArray;
|
|
5195
5536
|
|
|
@@ -5218,10 +5559,10 @@ $root.coresdk = (function() {
|
|
|
5218
5559
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.namespace);
|
|
5219
5560
|
if (message.taskQueue != null && Object.hasOwnProperty.call(message, "taskQueue"))
|
|
5220
5561
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.taskQueue);
|
|
5221
|
-
if (message.
|
|
5222
|
-
for (var keys = Object.keys(message.
|
|
5562
|
+
if (message.headers != null && Object.hasOwnProperty.call(message, "headers"))
|
|
5563
|
+
for (var keys = Object.keys(message.headers), i = 0; i < keys.length; ++i) {
|
|
5223
5564
|
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
5224
|
-
$root.coresdk.common.Payload.encode(message.
|
|
5565
|
+
$root.coresdk.common.Payload.encode(message.headers[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
5225
5566
|
}
|
|
5226
5567
|
if (message["arguments"] != null && message["arguments"].length)
|
|
5227
5568
|
for (var i = 0; i < message["arguments"].length; ++i)
|
|
@@ -5268,8 +5609,8 @@ $root.coresdk = (function() {
|
|
|
5268
5609
|
message.taskQueue = reader.string();
|
|
5269
5610
|
break;
|
|
5270
5611
|
case 6:
|
|
5271
|
-
if (message.
|
|
5272
|
-
message.
|
|
5612
|
+
if (message.headers === $util.emptyObject)
|
|
5613
|
+
message.headers = {};
|
|
5273
5614
|
var end2 = reader.uint32() + reader.pos;
|
|
5274
5615
|
key = "";
|
|
5275
5616
|
value = null;
|
|
@@ -5287,7 +5628,7 @@ $root.coresdk = (function() {
|
|
|
5287
5628
|
break;
|
|
5288
5629
|
}
|
|
5289
5630
|
}
|
|
5290
|
-
message.
|
|
5631
|
+
message.headers[key] = value;
|
|
5291
5632
|
break;
|
|
5292
5633
|
case 7:
|
|
5293
5634
|
if (!(message["arguments"] && message["arguments"].length))
|
|
@@ -5340,14 +5681,14 @@ $root.coresdk = (function() {
|
|
|
5340
5681
|
message.namespace = String(object.namespace);
|
|
5341
5682
|
if (object.taskQueue != null)
|
|
5342
5683
|
message.taskQueue = String(object.taskQueue);
|
|
5343
|
-
if (object.
|
|
5344
|
-
if (typeof object.
|
|
5345
|
-
throw TypeError(".coresdk.workflow_commands.ScheduleActivity.
|
|
5346
|
-
message.
|
|
5347
|
-
for (var keys = Object.keys(object.
|
|
5348
|
-
if (typeof object.
|
|
5349
|
-
throw TypeError(".coresdk.workflow_commands.ScheduleActivity.
|
|
5350
|
-
message.
|
|
5684
|
+
if (object.headers) {
|
|
5685
|
+
if (typeof object.headers !== "object")
|
|
5686
|
+
throw TypeError(".coresdk.workflow_commands.ScheduleActivity.headers: object expected");
|
|
5687
|
+
message.headers = {};
|
|
5688
|
+
for (var keys = Object.keys(object.headers), i = 0; i < keys.length; ++i) {
|
|
5689
|
+
if (typeof object.headers[keys[i]] !== "object")
|
|
5690
|
+
throw TypeError(".coresdk.workflow_commands.ScheduleActivity.headers: object expected");
|
|
5691
|
+
message.headers[keys[i]] = $root.coresdk.common.Payload.fromObject(object.headers[keys[i]]);
|
|
5351
5692
|
}
|
|
5352
5693
|
}
|
|
5353
5694
|
if (object["arguments"]) {
|
|
@@ -5409,7 +5750,7 @@ $root.coresdk = (function() {
|
|
|
5409
5750
|
if (options.arrays || options.defaults)
|
|
5410
5751
|
object["arguments"] = [];
|
|
5411
5752
|
if (options.objects || options.defaults)
|
|
5412
|
-
object.
|
|
5753
|
+
object.headers = {};
|
|
5413
5754
|
if (options.defaults) {
|
|
5414
5755
|
object.seq = 0;
|
|
5415
5756
|
object.activityId = "";
|
|
@@ -5434,10 +5775,10 @@ $root.coresdk = (function() {
|
|
|
5434
5775
|
if (message.taskQueue != null && message.hasOwnProperty("taskQueue"))
|
|
5435
5776
|
object.taskQueue = message.taskQueue;
|
|
5436
5777
|
var keys2;
|
|
5437
|
-
if (message.
|
|
5438
|
-
object.
|
|
5778
|
+
if (message.headers && (keys2 = Object.keys(message.headers)).length) {
|
|
5779
|
+
object.headers = {};
|
|
5439
5780
|
for (var j = 0; j < keys2.length; ++j)
|
|
5440
|
-
object.
|
|
5781
|
+
object.headers[keys2[j]] = $root.coresdk.common.Payload.toObject(message.headers[keys2[j]], options);
|
|
5441
5782
|
}
|
|
5442
5783
|
if (message["arguments"] && message["arguments"].length) {
|
|
5443
5784
|
object["arguments"] = [];
|
|
@@ -5470,7 +5811,7 @@ $root.coresdk = (function() {
|
|
|
5470
5811
|
|
|
5471
5812
|
|
|
5472
5813
|
function ScheduleLocalActivity(properties) {
|
|
5473
|
-
this.
|
|
5814
|
+
this.headers = {};
|
|
5474
5815
|
this["arguments"] = [];
|
|
5475
5816
|
if (properties)
|
|
5476
5817
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -5488,7 +5829,7 @@ $root.coresdk = (function() {
|
|
|
5488
5829
|
|
|
5489
5830
|
ScheduleLocalActivity.prototype.originalScheduleTime = null;
|
|
5490
5831
|
|
|
5491
|
-
ScheduleLocalActivity.prototype.
|
|
5832
|
+
ScheduleLocalActivity.prototype.headers = $util.emptyObject;
|
|
5492
5833
|
|
|
5493
5834
|
ScheduleLocalActivity.prototype["arguments"] = $util.emptyArray;
|
|
5494
5835
|
|
|
@@ -5517,10 +5858,10 @@ $root.coresdk = (function() {
|
|
|
5517
5858
|
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.attempt);
|
|
5518
5859
|
if (message.originalScheduleTime != null && Object.hasOwnProperty.call(message, "originalScheduleTime"))
|
|
5519
5860
|
$root.google.protobuf.Timestamp.encode(message.originalScheduleTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
5520
|
-
if (message.
|
|
5521
|
-
for (var keys = Object.keys(message.
|
|
5861
|
+
if (message.headers != null && Object.hasOwnProperty.call(message, "headers"))
|
|
5862
|
+
for (var keys = Object.keys(message.headers), i = 0; i < keys.length; ++i) {
|
|
5522
5863
|
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
5523
|
-
$root.coresdk.common.Payload.encode(message.
|
|
5864
|
+
$root.coresdk.common.Payload.encode(message.headers[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
5524
5865
|
}
|
|
5525
5866
|
if (message["arguments"] != null && message["arguments"].length)
|
|
5526
5867
|
for (var i = 0; i < message["arguments"].length; ++i)
|
|
@@ -5567,8 +5908,8 @@ $root.coresdk = (function() {
|
|
|
5567
5908
|
message.originalScheduleTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
5568
5909
|
break;
|
|
5569
5910
|
case 6:
|
|
5570
|
-
if (message.
|
|
5571
|
-
message.
|
|
5911
|
+
if (message.headers === $util.emptyObject)
|
|
5912
|
+
message.headers = {};
|
|
5572
5913
|
var end2 = reader.uint32() + reader.pos;
|
|
5573
5914
|
key = "";
|
|
5574
5915
|
value = null;
|
|
@@ -5586,7 +5927,7 @@ $root.coresdk = (function() {
|
|
|
5586
5927
|
break;
|
|
5587
5928
|
}
|
|
5588
5929
|
}
|
|
5589
|
-
message.
|
|
5930
|
+
message.headers[key] = value;
|
|
5590
5931
|
break;
|
|
5591
5932
|
case 7:
|
|
5592
5933
|
if (!(message["arguments"] && message["arguments"].length))
|
|
@@ -5642,14 +5983,14 @@ $root.coresdk = (function() {
|
|
|
5642
5983
|
throw TypeError(".coresdk.workflow_commands.ScheduleLocalActivity.originalScheduleTime: object expected");
|
|
5643
5984
|
message.originalScheduleTime = $root.google.protobuf.Timestamp.fromObject(object.originalScheduleTime);
|
|
5644
5985
|
}
|
|
5645
|
-
if (object.
|
|
5646
|
-
if (typeof object.
|
|
5647
|
-
throw TypeError(".coresdk.workflow_commands.ScheduleLocalActivity.
|
|
5648
|
-
message.
|
|
5649
|
-
for (var keys = Object.keys(object.
|
|
5650
|
-
if (typeof object.
|
|
5651
|
-
throw TypeError(".coresdk.workflow_commands.ScheduleLocalActivity.
|
|
5652
|
-
message.
|
|
5986
|
+
if (object.headers) {
|
|
5987
|
+
if (typeof object.headers !== "object")
|
|
5988
|
+
throw TypeError(".coresdk.workflow_commands.ScheduleLocalActivity.headers: object expected");
|
|
5989
|
+
message.headers = {};
|
|
5990
|
+
for (var keys = Object.keys(object.headers), i = 0; i < keys.length; ++i) {
|
|
5991
|
+
if (typeof object.headers[keys[i]] !== "object")
|
|
5992
|
+
throw TypeError(".coresdk.workflow_commands.ScheduleLocalActivity.headers: object expected");
|
|
5993
|
+
message.headers[keys[i]] = $root.coresdk.common.Payload.fromObject(object.headers[keys[i]]);
|
|
5653
5994
|
}
|
|
5654
5995
|
}
|
|
5655
5996
|
if (object["arguments"]) {
|
|
@@ -5711,7 +6052,7 @@ $root.coresdk = (function() {
|
|
|
5711
6052
|
if (options.arrays || options.defaults)
|
|
5712
6053
|
object["arguments"] = [];
|
|
5713
6054
|
if (options.objects || options.defaults)
|
|
5714
|
-
object.
|
|
6055
|
+
object.headers = {};
|
|
5715
6056
|
if (options.defaults) {
|
|
5716
6057
|
object.seq = 0;
|
|
5717
6058
|
object.activityId = "";
|
|
@@ -5736,10 +6077,10 @@ $root.coresdk = (function() {
|
|
|
5736
6077
|
if (message.originalScheduleTime != null && message.hasOwnProperty("originalScheduleTime"))
|
|
5737
6078
|
object.originalScheduleTime = $root.google.protobuf.Timestamp.toObject(message.originalScheduleTime, options);
|
|
5738
6079
|
var keys2;
|
|
5739
|
-
if (message.
|
|
5740
|
-
object.
|
|
6080
|
+
if (message.headers && (keys2 = Object.keys(message.headers)).length) {
|
|
6081
|
+
object.headers = {};
|
|
5741
6082
|
for (var j = 0; j < keys2.length; ++j)
|
|
5742
|
-
object.
|
|
6083
|
+
object.headers[keys2[j]] = $root.coresdk.common.Payload.toObject(message.headers[keys2[j]], options);
|
|
5743
6084
|
}
|
|
5744
6085
|
if (message["arguments"] && message["arguments"].length) {
|
|
5745
6086
|
object["arguments"] = [];
|
|
@@ -6283,7 +6624,7 @@ $root.coresdk = (function() {
|
|
|
6283
6624
|
function ContinueAsNewWorkflowExecution(properties) {
|
|
6284
6625
|
this["arguments"] = [];
|
|
6285
6626
|
this.memo = {};
|
|
6286
|
-
this.
|
|
6627
|
+
this.headers = {};
|
|
6287
6628
|
this.searchAttributes = {};
|
|
6288
6629
|
if (properties)
|
|
6289
6630
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -6303,7 +6644,7 @@ $root.coresdk = (function() {
|
|
|
6303
6644
|
|
|
6304
6645
|
ContinueAsNewWorkflowExecution.prototype.memo = $util.emptyObject;
|
|
6305
6646
|
|
|
6306
|
-
ContinueAsNewWorkflowExecution.prototype.
|
|
6647
|
+
ContinueAsNewWorkflowExecution.prototype.headers = $util.emptyObject;
|
|
6307
6648
|
|
|
6308
6649
|
ContinueAsNewWorkflowExecution.prototype.searchAttributes = $util.emptyObject;
|
|
6309
6650
|
|
|
@@ -6326,10 +6667,10 @@ $root.coresdk = (function() {
|
|
|
6326
6667
|
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
6327
6668
|
$root.coresdk.common.Payload.encode(message.memo[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
6328
6669
|
}
|
|
6329
|
-
if (message.
|
|
6330
|
-
for (var keys = Object.keys(message.
|
|
6670
|
+
if (message.headers != null && Object.hasOwnProperty.call(message, "headers"))
|
|
6671
|
+
for (var keys = Object.keys(message.headers), i = 0; i < keys.length; ++i) {
|
|
6331
6672
|
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
6332
|
-
$root.coresdk.common.Payload.encode(message.
|
|
6673
|
+
$root.coresdk.common.Payload.encode(message.headers[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
6333
6674
|
}
|
|
6334
6675
|
if (message.searchAttributes != null && Object.hasOwnProperty.call(message, "searchAttributes"))
|
|
6335
6676
|
for (var keys = Object.keys(message.searchAttributes), i = 0; i < keys.length; ++i) {
|
|
@@ -6390,8 +6731,8 @@ $root.coresdk = (function() {
|
|
|
6390
6731
|
message.memo[key] = value;
|
|
6391
6732
|
break;
|
|
6392
6733
|
case 7:
|
|
6393
|
-
if (message.
|
|
6394
|
-
message.
|
|
6734
|
+
if (message.headers === $util.emptyObject)
|
|
6735
|
+
message.headers = {};
|
|
6395
6736
|
var end2 = reader.uint32() + reader.pos;
|
|
6396
6737
|
key = "";
|
|
6397
6738
|
value = null;
|
|
@@ -6409,7 +6750,7 @@ $root.coresdk = (function() {
|
|
|
6409
6750
|
break;
|
|
6410
6751
|
}
|
|
6411
6752
|
}
|
|
6412
|
-
message.
|
|
6753
|
+
message.headers[key] = value;
|
|
6413
6754
|
break;
|
|
6414
6755
|
case 8:
|
|
6415
6756
|
if (message.searchAttributes === $util.emptyObject)
|
|
@@ -6485,14 +6826,14 @@ $root.coresdk = (function() {
|
|
|
6485
6826
|
message.memo[keys[i]] = $root.coresdk.common.Payload.fromObject(object.memo[keys[i]]);
|
|
6486
6827
|
}
|
|
6487
6828
|
}
|
|
6488
|
-
if (object.
|
|
6489
|
-
if (typeof object.
|
|
6490
|
-
throw TypeError(".coresdk.workflow_commands.ContinueAsNewWorkflowExecution.
|
|
6491
|
-
message.
|
|
6492
|
-
for (var keys = Object.keys(object.
|
|
6493
|
-
if (typeof object.
|
|
6494
|
-
throw TypeError(".coresdk.workflow_commands.ContinueAsNewWorkflowExecution.
|
|
6495
|
-
message.
|
|
6829
|
+
if (object.headers) {
|
|
6830
|
+
if (typeof object.headers !== "object")
|
|
6831
|
+
throw TypeError(".coresdk.workflow_commands.ContinueAsNewWorkflowExecution.headers: object expected");
|
|
6832
|
+
message.headers = {};
|
|
6833
|
+
for (var keys = Object.keys(object.headers), i = 0; i < keys.length; ++i) {
|
|
6834
|
+
if (typeof object.headers[keys[i]] !== "object")
|
|
6835
|
+
throw TypeError(".coresdk.workflow_commands.ContinueAsNewWorkflowExecution.headers: object expected");
|
|
6836
|
+
message.headers[keys[i]] = $root.coresdk.common.Payload.fromObject(object.headers[keys[i]]);
|
|
6496
6837
|
}
|
|
6497
6838
|
}
|
|
6498
6839
|
if (object.searchAttributes) {
|
|
@@ -6516,7 +6857,7 @@ $root.coresdk = (function() {
|
|
|
6516
6857
|
object["arguments"] = [];
|
|
6517
6858
|
if (options.objects || options.defaults) {
|
|
6518
6859
|
object.memo = {};
|
|
6519
|
-
object.
|
|
6860
|
+
object.headers = {};
|
|
6520
6861
|
object.searchAttributes = {};
|
|
6521
6862
|
}
|
|
6522
6863
|
if (options.defaults) {
|
|
@@ -6544,10 +6885,10 @@ $root.coresdk = (function() {
|
|
|
6544
6885
|
for (var j = 0; j < keys2.length; ++j)
|
|
6545
6886
|
object.memo[keys2[j]] = $root.coresdk.common.Payload.toObject(message.memo[keys2[j]], options);
|
|
6546
6887
|
}
|
|
6547
|
-
if (message.
|
|
6548
|
-
object.
|
|
6888
|
+
if (message.headers && (keys2 = Object.keys(message.headers)).length) {
|
|
6889
|
+
object.headers = {};
|
|
6549
6890
|
for (var j = 0; j < keys2.length; ++j)
|
|
6550
|
-
object.
|
|
6891
|
+
object.headers[keys2[j]] = $root.coresdk.common.Payload.toObject(message.headers[keys2[j]], options);
|
|
6551
6892
|
}
|
|
6552
6893
|
if (message.searchAttributes && (keys2 = Object.keys(message.searchAttributes)).length) {
|
|
6553
6894
|
object.searchAttributes = {};
|
|
@@ -6715,7 +7056,7 @@ $root.coresdk = (function() {
|
|
|
6715
7056
|
|
|
6716
7057
|
function StartChildWorkflowExecution(properties) {
|
|
6717
7058
|
this.input = [];
|
|
6718
|
-
this.
|
|
7059
|
+
this.headers = {};
|
|
6719
7060
|
this.memo = {};
|
|
6720
7061
|
this.searchAttributes = {};
|
|
6721
7062
|
if (properties)
|
|
@@ -6750,7 +7091,7 @@ $root.coresdk = (function() {
|
|
|
6750
7091
|
|
|
6751
7092
|
StartChildWorkflowExecution.prototype.cronSchedule = "";
|
|
6752
7093
|
|
|
6753
|
-
StartChildWorkflowExecution.prototype.
|
|
7094
|
+
StartChildWorkflowExecution.prototype.headers = $util.emptyObject;
|
|
6754
7095
|
|
|
6755
7096
|
StartChildWorkflowExecution.prototype.memo = $util.emptyObject;
|
|
6756
7097
|
|
|
@@ -6788,10 +7129,10 @@ $root.coresdk = (function() {
|
|
|
6788
7129
|
$root.coresdk.common.RetryPolicy.encode(message.retryPolicy, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
6789
7130
|
if (message.cronSchedule != null && Object.hasOwnProperty.call(message, "cronSchedule"))
|
|
6790
7131
|
writer.uint32(/* id 14, wireType 2 =*/114).string(message.cronSchedule);
|
|
6791
|
-
if (message.
|
|
6792
|
-
for (var keys = Object.keys(message.
|
|
7132
|
+
if (message.headers != null && Object.hasOwnProperty.call(message, "headers"))
|
|
7133
|
+
for (var keys = Object.keys(message.headers), i = 0; i < keys.length; ++i) {
|
|
6793
7134
|
writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
6794
|
-
$root.coresdk.common.Payload.encode(message.
|
|
7135
|
+
$root.coresdk.common.Payload.encode(message.headers[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
6795
7136
|
}
|
|
6796
7137
|
if (message.memo != null && Object.hasOwnProperty.call(message, "memo"))
|
|
6797
7138
|
for (var keys = Object.keys(message.memo), i = 0; i < keys.length; ++i) {
|
|
@@ -6861,8 +7202,8 @@ $root.coresdk = (function() {
|
|
|
6861
7202
|
message.cronSchedule = reader.string();
|
|
6862
7203
|
break;
|
|
6863
7204
|
case 15:
|
|
6864
|
-
if (message.
|
|
6865
|
-
message.
|
|
7205
|
+
if (message.headers === $util.emptyObject)
|
|
7206
|
+
message.headers = {};
|
|
6866
7207
|
var end2 = reader.uint32() + reader.pos;
|
|
6867
7208
|
key = "";
|
|
6868
7209
|
value = null;
|
|
@@ -6880,7 +7221,7 @@ $root.coresdk = (function() {
|
|
|
6880
7221
|
break;
|
|
6881
7222
|
}
|
|
6882
7223
|
}
|
|
6883
|
-
message.
|
|
7224
|
+
message.headers[key] = value;
|
|
6884
7225
|
break;
|
|
6885
7226
|
case 16:
|
|
6886
7227
|
if (message.memo === $util.emptyObject)
|
|
@@ -7025,14 +7366,14 @@ $root.coresdk = (function() {
|
|
|
7025
7366
|
}
|
|
7026
7367
|
if (object.cronSchedule != null)
|
|
7027
7368
|
message.cronSchedule = String(object.cronSchedule);
|
|
7028
|
-
if (object.
|
|
7029
|
-
if (typeof object.
|
|
7030
|
-
throw TypeError(".coresdk.workflow_commands.StartChildWorkflowExecution.
|
|
7031
|
-
message.
|
|
7032
|
-
for (var keys = Object.keys(object.
|
|
7033
|
-
if (typeof object.
|
|
7034
|
-
throw TypeError(".coresdk.workflow_commands.StartChildWorkflowExecution.
|
|
7035
|
-
message.
|
|
7369
|
+
if (object.headers) {
|
|
7370
|
+
if (typeof object.headers !== "object")
|
|
7371
|
+
throw TypeError(".coresdk.workflow_commands.StartChildWorkflowExecution.headers: object expected");
|
|
7372
|
+
message.headers = {};
|
|
7373
|
+
for (var keys = Object.keys(object.headers), i = 0; i < keys.length; ++i) {
|
|
7374
|
+
if (typeof object.headers[keys[i]] !== "object")
|
|
7375
|
+
throw TypeError(".coresdk.workflow_commands.StartChildWorkflowExecution.headers: object expected");
|
|
7376
|
+
message.headers[keys[i]] = $root.coresdk.common.Payload.fromObject(object.headers[keys[i]]);
|
|
7036
7377
|
}
|
|
7037
7378
|
}
|
|
7038
7379
|
if (object.memo) {
|
|
@@ -7083,7 +7424,7 @@ $root.coresdk = (function() {
|
|
|
7083
7424
|
if (options.arrays || options.defaults)
|
|
7084
7425
|
object.input = [];
|
|
7085
7426
|
if (options.objects || options.defaults) {
|
|
7086
|
-
object.
|
|
7427
|
+
object.headers = {};
|
|
7087
7428
|
object.memo = {};
|
|
7088
7429
|
object.searchAttributes = {};
|
|
7089
7430
|
}
|
|
@@ -7132,10 +7473,10 @@ $root.coresdk = (function() {
|
|
|
7132
7473
|
if (message.cronSchedule != null && message.hasOwnProperty("cronSchedule"))
|
|
7133
7474
|
object.cronSchedule = message.cronSchedule;
|
|
7134
7475
|
var keys2;
|
|
7135
|
-
if (message.
|
|
7136
|
-
object.
|
|
7476
|
+
if (message.headers && (keys2 = Object.keys(message.headers)).length) {
|
|
7477
|
+
object.headers = {};
|
|
7137
7478
|
for (var j = 0; j < keys2.length; ++j)
|
|
7138
|
-
object.
|
|
7479
|
+
object.headers[keys2[j]] = $root.coresdk.common.Payload.toObject(message.headers[keys2[j]], options);
|
|
7139
7480
|
}
|
|
7140
7481
|
if (message.memo && (keys2 = Object.keys(message.memo)).length) {
|
|
7141
7482
|
object.memo = {};
|
|
@@ -7353,6 +7694,7 @@ $root.coresdk = (function() {
|
|
|
7353
7694
|
|
|
7354
7695
|
function SignalExternalWorkflowExecution(properties) {
|
|
7355
7696
|
this.args = [];
|
|
7697
|
+
this.headers = {};
|
|
7356
7698
|
if (properties)
|
|
7357
7699
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7358
7700
|
if (properties[keys[i]] != null)
|
|
@@ -7369,6 +7711,8 @@ $root.coresdk = (function() {
|
|
|
7369
7711
|
|
|
7370
7712
|
SignalExternalWorkflowExecution.prototype.args = $util.emptyArray;
|
|
7371
7713
|
|
|
7714
|
+
SignalExternalWorkflowExecution.prototype.headers = $util.emptyObject;
|
|
7715
|
+
|
|
7372
7716
|
// OneOf field names bound to virtual getters and setters
|
|
7373
7717
|
var $oneOfFields;
|
|
7374
7718
|
|
|
@@ -7391,6 +7735,11 @@ $root.coresdk = (function() {
|
|
|
7391
7735
|
if (message.args != null && message.args.length)
|
|
7392
7736
|
for (var i = 0; i < message.args.length; ++i)
|
|
7393
7737
|
$root.coresdk.common.Payload.encode(message.args[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
7738
|
+
if (message.headers != null && Object.hasOwnProperty.call(message, "headers"))
|
|
7739
|
+
for (var keys = Object.keys(message.headers), i = 0; i < keys.length; ++i) {
|
|
7740
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
7741
|
+
$root.coresdk.common.Payload.encode(message.headers[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
7742
|
+
}
|
|
7394
7743
|
return writer;
|
|
7395
7744
|
};
|
|
7396
7745
|
|
|
@@ -7401,7 +7750,7 @@ $root.coresdk = (function() {
|
|
|
7401
7750
|
SignalExternalWorkflowExecution.decode = function decode(reader, length) {
|
|
7402
7751
|
if (!(reader instanceof $Reader))
|
|
7403
7752
|
reader = $Reader.create(reader);
|
|
7404
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.coresdk.workflow_commands.SignalExternalWorkflowExecution();
|
|
7753
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.coresdk.workflow_commands.SignalExternalWorkflowExecution(), key, value;
|
|
7405
7754
|
while (reader.pos < end) {
|
|
7406
7755
|
var tag = reader.uint32();
|
|
7407
7756
|
switch (tag >>> 3) {
|
|
@@ -7422,6 +7771,28 @@ $root.coresdk = (function() {
|
|
|
7422
7771
|
message.args = [];
|
|
7423
7772
|
message.args.push($root.coresdk.common.Payload.decode(reader, reader.uint32()));
|
|
7424
7773
|
break;
|
|
7774
|
+
case 6:
|
|
7775
|
+
if (message.headers === $util.emptyObject)
|
|
7776
|
+
message.headers = {};
|
|
7777
|
+
var end2 = reader.uint32() + reader.pos;
|
|
7778
|
+
key = "";
|
|
7779
|
+
value = null;
|
|
7780
|
+
while (reader.pos < end2) {
|
|
7781
|
+
var tag2 = reader.uint32();
|
|
7782
|
+
switch (tag2 >>> 3) {
|
|
7783
|
+
case 1:
|
|
7784
|
+
key = reader.string();
|
|
7785
|
+
break;
|
|
7786
|
+
case 2:
|
|
7787
|
+
value = $root.coresdk.common.Payload.decode(reader, reader.uint32());
|
|
7788
|
+
break;
|
|
7789
|
+
default:
|
|
7790
|
+
reader.skipType(tag2 & 7);
|
|
7791
|
+
break;
|
|
7792
|
+
}
|
|
7793
|
+
}
|
|
7794
|
+
message.headers[key] = value;
|
|
7795
|
+
break;
|
|
7425
7796
|
default:
|
|
7426
7797
|
reader.skipType(tag & 7);
|
|
7427
7798
|
break;
|
|
@@ -7461,6 +7832,16 @@ $root.coresdk = (function() {
|
|
|
7461
7832
|
message.args[i] = $root.coresdk.common.Payload.fromObject(object.args[i]);
|
|
7462
7833
|
}
|
|
7463
7834
|
}
|
|
7835
|
+
if (object.headers) {
|
|
7836
|
+
if (typeof object.headers !== "object")
|
|
7837
|
+
throw TypeError(".coresdk.workflow_commands.SignalExternalWorkflowExecution.headers: object expected");
|
|
7838
|
+
message.headers = {};
|
|
7839
|
+
for (var keys = Object.keys(object.headers), i = 0; i < keys.length; ++i) {
|
|
7840
|
+
if (typeof object.headers[keys[i]] !== "object")
|
|
7841
|
+
throw TypeError(".coresdk.workflow_commands.SignalExternalWorkflowExecution.headers: object expected");
|
|
7842
|
+
message.headers[keys[i]] = $root.coresdk.common.Payload.fromObject(object.headers[keys[i]]);
|
|
7843
|
+
}
|
|
7844
|
+
}
|
|
7464
7845
|
return message;
|
|
7465
7846
|
};
|
|
7466
7847
|
|
|
@@ -7470,6 +7851,8 @@ $root.coresdk = (function() {
|
|
|
7470
7851
|
var object = {};
|
|
7471
7852
|
if (options.arrays || options.defaults)
|
|
7472
7853
|
object.args = [];
|
|
7854
|
+
if (options.objects || options.defaults)
|
|
7855
|
+
object.headers = {};
|
|
7473
7856
|
if (options.defaults) {
|
|
7474
7857
|
object.seq = 0;
|
|
7475
7858
|
object.signalName = "";
|
|
@@ -7493,6 +7876,12 @@ $root.coresdk = (function() {
|
|
|
7493
7876
|
for (var j = 0; j < message.args.length; ++j)
|
|
7494
7877
|
object.args[j] = $root.coresdk.common.Payload.toObject(message.args[j], options);
|
|
7495
7878
|
}
|
|
7879
|
+
var keys2;
|
|
7880
|
+
if (message.headers && (keys2 = Object.keys(message.headers)).length) {
|
|
7881
|
+
object.headers = {};
|
|
7882
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
7883
|
+
object.headers[keys2[j]] = $root.coresdk.common.Payload.toObject(message.headers[keys2[j]], options);
|
|
7884
|
+
}
|
|
7496
7885
|
return object;
|
|
7497
7886
|
};
|
|
7498
7887
|
|
|
@@ -7578,6 +7967,129 @@ $root.coresdk = (function() {
|
|
|
7578
7967
|
return CancelSignalWorkflow;
|
|
7579
7968
|
})();
|
|
7580
7969
|
|
|
7970
|
+
workflow_commands.UpsertWorkflowSearchAttributes = (function() {
|
|
7971
|
+
|
|
7972
|
+
|
|
7973
|
+
function UpsertWorkflowSearchAttributes(properties) {
|
|
7974
|
+
this.searchAttributes = {};
|
|
7975
|
+
if (properties)
|
|
7976
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7977
|
+
if (properties[keys[i]] != null)
|
|
7978
|
+
this[keys[i]] = properties[keys[i]];
|
|
7979
|
+
}
|
|
7980
|
+
|
|
7981
|
+
UpsertWorkflowSearchAttributes.prototype.seq = 0;
|
|
7982
|
+
|
|
7983
|
+
UpsertWorkflowSearchAttributes.prototype.searchAttributes = $util.emptyObject;
|
|
7984
|
+
|
|
7985
|
+
UpsertWorkflowSearchAttributes.encode = function encode(message, writer) {
|
|
7986
|
+
if (!writer)
|
|
7987
|
+
writer = $Writer.create();
|
|
7988
|
+
if (message.seq != null && Object.hasOwnProperty.call(message, "seq"))
|
|
7989
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.seq);
|
|
7990
|
+
if (message.searchAttributes != null && Object.hasOwnProperty.call(message, "searchAttributes"))
|
|
7991
|
+
for (var keys = Object.keys(message.searchAttributes), i = 0; i < keys.length; ++i) {
|
|
7992
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
7993
|
+
$root.coresdk.common.Payload.encode(message.searchAttributes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
7994
|
+
}
|
|
7995
|
+
return writer;
|
|
7996
|
+
};
|
|
7997
|
+
|
|
7998
|
+
UpsertWorkflowSearchAttributes.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7999
|
+
return this.encode(message, writer).ldelim();
|
|
8000
|
+
};
|
|
8001
|
+
|
|
8002
|
+
UpsertWorkflowSearchAttributes.decode = function decode(reader, length) {
|
|
8003
|
+
if (!(reader instanceof $Reader))
|
|
8004
|
+
reader = $Reader.create(reader);
|
|
8005
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.coresdk.workflow_commands.UpsertWorkflowSearchAttributes(), key, value;
|
|
8006
|
+
while (reader.pos < end) {
|
|
8007
|
+
var tag = reader.uint32();
|
|
8008
|
+
switch (tag >>> 3) {
|
|
8009
|
+
case 1:
|
|
8010
|
+
message.seq = reader.uint32();
|
|
8011
|
+
break;
|
|
8012
|
+
case 2:
|
|
8013
|
+
if (message.searchAttributes === $util.emptyObject)
|
|
8014
|
+
message.searchAttributes = {};
|
|
8015
|
+
var end2 = reader.uint32() + reader.pos;
|
|
8016
|
+
key = "";
|
|
8017
|
+
value = null;
|
|
8018
|
+
while (reader.pos < end2) {
|
|
8019
|
+
var tag2 = reader.uint32();
|
|
8020
|
+
switch (tag2 >>> 3) {
|
|
8021
|
+
case 1:
|
|
8022
|
+
key = reader.string();
|
|
8023
|
+
break;
|
|
8024
|
+
case 2:
|
|
8025
|
+
value = $root.coresdk.common.Payload.decode(reader, reader.uint32());
|
|
8026
|
+
break;
|
|
8027
|
+
default:
|
|
8028
|
+
reader.skipType(tag2 & 7);
|
|
8029
|
+
break;
|
|
8030
|
+
}
|
|
8031
|
+
}
|
|
8032
|
+
message.searchAttributes[key] = value;
|
|
8033
|
+
break;
|
|
8034
|
+
default:
|
|
8035
|
+
reader.skipType(tag & 7);
|
|
8036
|
+
break;
|
|
8037
|
+
}
|
|
8038
|
+
}
|
|
8039
|
+
return message;
|
|
8040
|
+
};
|
|
8041
|
+
|
|
8042
|
+
UpsertWorkflowSearchAttributes.decodeDelimited = function decodeDelimited(reader) {
|
|
8043
|
+
if (!(reader instanceof $Reader))
|
|
8044
|
+
reader = new $Reader(reader);
|
|
8045
|
+
return this.decode(reader, reader.uint32());
|
|
8046
|
+
};
|
|
8047
|
+
|
|
8048
|
+
UpsertWorkflowSearchAttributes.fromObject = function fromObject(object) {
|
|
8049
|
+
if (object instanceof $root.coresdk.workflow_commands.UpsertWorkflowSearchAttributes)
|
|
8050
|
+
return object;
|
|
8051
|
+
var message = new $root.coresdk.workflow_commands.UpsertWorkflowSearchAttributes();
|
|
8052
|
+
if (object.seq != null)
|
|
8053
|
+
message.seq = object.seq >>> 0;
|
|
8054
|
+
if (object.searchAttributes) {
|
|
8055
|
+
if (typeof object.searchAttributes !== "object")
|
|
8056
|
+
throw TypeError(".coresdk.workflow_commands.UpsertWorkflowSearchAttributes.searchAttributes: object expected");
|
|
8057
|
+
message.searchAttributes = {};
|
|
8058
|
+
for (var keys = Object.keys(object.searchAttributes), i = 0; i < keys.length; ++i) {
|
|
8059
|
+
if (typeof object.searchAttributes[keys[i]] !== "object")
|
|
8060
|
+
throw TypeError(".coresdk.workflow_commands.UpsertWorkflowSearchAttributes.searchAttributes: object expected");
|
|
8061
|
+
message.searchAttributes[keys[i]] = $root.coresdk.common.Payload.fromObject(object.searchAttributes[keys[i]]);
|
|
8062
|
+
}
|
|
8063
|
+
}
|
|
8064
|
+
return message;
|
|
8065
|
+
};
|
|
8066
|
+
|
|
8067
|
+
UpsertWorkflowSearchAttributes.toObject = function toObject(message, options) {
|
|
8068
|
+
if (!options)
|
|
8069
|
+
options = {};
|
|
8070
|
+
var object = {};
|
|
8071
|
+
if (options.objects || options.defaults)
|
|
8072
|
+
object.searchAttributes = {};
|
|
8073
|
+
if (options.defaults)
|
|
8074
|
+
object.seq = 0;
|
|
8075
|
+
if (message.seq != null && message.hasOwnProperty("seq"))
|
|
8076
|
+
object.seq = message.seq;
|
|
8077
|
+
var keys2;
|
|
8078
|
+
if (message.searchAttributes && (keys2 = Object.keys(message.searchAttributes)).length) {
|
|
8079
|
+
object.searchAttributes = {};
|
|
8080
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
8081
|
+
object.searchAttributes[keys2[j]] = $root.coresdk.common.Payload.toObject(message.searchAttributes[keys2[j]], options);
|
|
8082
|
+
}
|
|
8083
|
+
return object;
|
|
8084
|
+
};
|
|
8085
|
+
|
|
8086
|
+
UpsertWorkflowSearchAttributes.prototype.toJSON = function toJSON() {
|
|
8087
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8088
|
+
};
|
|
8089
|
+
|
|
8090
|
+
return UpsertWorkflowSearchAttributes;
|
|
8091
|
+
})();
|
|
8092
|
+
|
|
7581
8093
|
return workflow_commands;
|
|
7582
8094
|
})();
|
|
7583
8095
|
|
|
@@ -7595,8 +8107,6 @@ $root.coresdk = (function() {
|
|
|
7595
8107
|
this[keys[i]] = properties[keys[i]];
|
|
7596
8108
|
}
|
|
7597
8109
|
|
|
7598
|
-
WorkflowActivationCompletion.prototype.taskQueue = "";
|
|
7599
|
-
|
|
7600
8110
|
WorkflowActivationCompletion.prototype.runId = "";
|
|
7601
8111
|
|
|
7602
8112
|
WorkflowActivationCompletion.prototype.successful = null;
|
|
@@ -7614,14 +8124,12 @@ $root.coresdk = (function() {
|
|
|
7614
8124
|
WorkflowActivationCompletion.encode = function encode(message, writer) {
|
|
7615
8125
|
if (!writer)
|
|
7616
8126
|
writer = $Writer.create();
|
|
7617
|
-
if (message.taskQueue != null && Object.hasOwnProperty.call(message, "taskQueue"))
|
|
7618
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskQueue);
|
|
7619
8127
|
if (message.runId != null && Object.hasOwnProperty.call(message, "runId"))
|
|
7620
|
-
writer.uint32(/* id
|
|
8128
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.runId);
|
|
7621
8129
|
if (message.successful != null && Object.hasOwnProperty.call(message, "successful"))
|
|
7622
|
-
$root.coresdk.workflow_completion.Success.encode(message.successful, writer.uint32(/* id
|
|
8130
|
+
$root.coresdk.workflow_completion.Success.encode(message.successful, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
7623
8131
|
if (message.failed != null && Object.hasOwnProperty.call(message, "failed"))
|
|
7624
|
-
$root.coresdk.workflow_completion.Failure.encode(message.failed, writer.uint32(/* id
|
|
8132
|
+
$root.coresdk.workflow_completion.Failure.encode(message.failed, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
7625
8133
|
return writer;
|
|
7626
8134
|
};
|
|
7627
8135
|
|
|
@@ -7637,15 +8145,12 @@ $root.coresdk = (function() {
|
|
|
7637
8145
|
var tag = reader.uint32();
|
|
7638
8146
|
switch (tag >>> 3) {
|
|
7639
8147
|
case 1:
|
|
7640
|
-
message.taskQueue = reader.string();
|
|
7641
|
-
break;
|
|
7642
|
-
case 2:
|
|
7643
8148
|
message.runId = reader.string();
|
|
7644
8149
|
break;
|
|
7645
|
-
case
|
|
8150
|
+
case 2:
|
|
7646
8151
|
message.successful = $root.coresdk.workflow_completion.Success.decode(reader, reader.uint32());
|
|
7647
8152
|
break;
|
|
7648
|
-
case
|
|
8153
|
+
case 3:
|
|
7649
8154
|
message.failed = $root.coresdk.workflow_completion.Failure.decode(reader, reader.uint32());
|
|
7650
8155
|
break;
|
|
7651
8156
|
default:
|
|
@@ -7666,8 +8171,6 @@ $root.coresdk = (function() {
|
|
|
7666
8171
|
if (object instanceof $root.coresdk.workflow_completion.WorkflowActivationCompletion)
|
|
7667
8172
|
return object;
|
|
7668
8173
|
var message = new $root.coresdk.workflow_completion.WorkflowActivationCompletion();
|
|
7669
|
-
if (object.taskQueue != null)
|
|
7670
|
-
message.taskQueue = String(object.taskQueue);
|
|
7671
8174
|
if (object.runId != null)
|
|
7672
8175
|
message.runId = String(object.runId);
|
|
7673
8176
|
if (object.successful != null) {
|
|
@@ -7687,12 +8190,8 @@ $root.coresdk = (function() {
|
|
|
7687
8190
|
if (!options)
|
|
7688
8191
|
options = {};
|
|
7689
8192
|
var object = {};
|
|
7690
|
-
if (options.defaults)
|
|
7691
|
-
object.taskQueue = "";
|
|
8193
|
+
if (options.defaults)
|
|
7692
8194
|
object.runId = "";
|
|
7693
|
-
}
|
|
7694
|
-
if (message.taskQueue != null && message.hasOwnProperty("taskQueue"))
|
|
7695
|
-
object.taskQueue = message.taskQueue;
|
|
7696
8195
|
if (message.runId != null && message.hasOwnProperty("runId"))
|
|
7697
8196
|
object.runId = message.runId;
|
|
7698
8197
|
if (message.successful != null && message.hasOwnProperty("successful")) {
|
|
@@ -15091,6 +15590,14 @@ $root.temporal = (function() {
|
|
|
15091
15590
|
return values;
|
|
15092
15591
|
})();
|
|
15093
15592
|
|
|
15593
|
+
v1.PendingWorkflowTaskState = (function() {
|
|
15594
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
15595
|
+
values[valuesById[0] = "PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED"] = 0;
|
|
15596
|
+
values[valuesById[1] = "PENDING_WORKFLOW_TASK_STATE_SCHEDULED"] = 1;
|
|
15597
|
+
values[valuesById[2] = "PENDING_WORKFLOW_TASK_STATE_STARTED"] = 2;
|
|
15598
|
+
return values;
|
|
15599
|
+
})();
|
|
15600
|
+
|
|
15094
15601
|
v1.HistoryEventFilterType = (function() {
|
|
15095
15602
|
var valuesById = {}, values = Object.create(valuesById);
|
|
15096
15603
|
values[valuesById[0] = "HISTORY_EVENT_FILTER_TYPE_UNSPECIFIED"] = 0;
|