@temporalio/proto 0.14.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/coresdk.d.ts CHANGED
@@ -1441,8 +1441,8 @@ export namespace coresdk {
1441
1441
  /** An attempt to cancel an external workflow resolved */
1442
1442
  resolveRequestCancelExternalWorkflow?: (coresdk.workflow_activation.IResolveRequestCancelExternalWorkflow|null);
1443
1443
 
1444
- /** will be set to true if this is the variant. */
1445
- removeFromCache?: (boolean|null);
1444
+ /** job list. The string value is a reason for eviction. */
1445
+ removeFromCache?: (coresdk.workflow_activation.IRemoveFromCache|null);
1446
1446
  }
1447
1447
 
1448
1448
  /** Represents a WFActivationJob. */
@@ -1490,8 +1490,8 @@ export namespace coresdk {
1490
1490
  /** An attempt to cancel an external workflow resolved */
1491
1491
  public resolveRequestCancelExternalWorkflow?: (coresdk.workflow_activation.IResolveRequestCancelExternalWorkflow|null);
1492
1492
 
1493
- /** will be set to true if this is the variant. */
1494
- public removeFromCache?: (boolean|null);
1493
+ /** job list. The string value is a reason for eviction. */
1494
+ public removeFromCache?: (coresdk.workflow_activation.IRemoveFromCache|null);
1495
1495
 
1496
1496
  /** WFActivationJob variant. */
1497
1497
  public variant?: ("startWorkflow"|"fireTimer"|"updateRandomSeed"|"queryWorkflow"|"cancelWorkflow"|"signalWorkflow"|"resolveActivity"|"notifyHasPatch"|"resolveChildWorkflowExecutionStart"|"resolveChildWorkflowExecution"|"resolveSignalExternalWorkflow"|"resolveRequestCancelExternalWorkflow"|"removeFromCache");
@@ -2797,6 +2797,82 @@ export namespace coresdk {
2797
2797
  */
2798
2798
  public toJSON(): { [k: string]: any };
2799
2799
  }
2800
+
2801
+ /** Properties of a RemoveFromCache. */
2802
+ interface IRemoveFromCache {
2803
+
2804
+ /** RemoveFromCache reason */
2805
+ reason?: (string|null);
2806
+ }
2807
+
2808
+ /** Represents a RemoveFromCache. */
2809
+ class RemoveFromCache implements IRemoveFromCache {
2810
+
2811
+ /**
2812
+ * Constructs a new RemoveFromCache.
2813
+ * @param [properties] Properties to set
2814
+ */
2815
+ constructor(properties?: coresdk.workflow_activation.IRemoveFromCache);
2816
+
2817
+ /** RemoveFromCache reason. */
2818
+ public reason: string;
2819
+
2820
+ /**
2821
+ * Encodes the specified RemoveFromCache message. Does not implicitly {@link coresdk.workflow_activation.RemoveFromCache.verify|verify} messages.
2822
+ * @param message RemoveFromCache message or plain object to encode
2823
+ * @param [writer] Writer to encode to
2824
+ * @returns Writer
2825
+ */
2826
+ public static encode(message: coresdk.workflow_activation.IRemoveFromCache, writer?: $protobuf.Writer): $protobuf.Writer;
2827
+
2828
+ /**
2829
+ * Encodes the specified RemoveFromCache message, length delimited. Does not implicitly {@link coresdk.workflow_activation.RemoveFromCache.verify|verify} messages.
2830
+ * @param message RemoveFromCache message or plain object to encode
2831
+ * @param [writer] Writer to encode to
2832
+ * @returns Writer
2833
+ */
2834
+ public static encodeDelimited(message: coresdk.workflow_activation.IRemoveFromCache, writer?: $protobuf.Writer): $protobuf.Writer;
2835
+
2836
+ /**
2837
+ * Decodes a RemoveFromCache message from the specified reader or buffer.
2838
+ * @param reader Reader or buffer to decode from
2839
+ * @param [length] Message length if known beforehand
2840
+ * @returns RemoveFromCache
2841
+ * @throws {Error} If the payload is not a reader or valid buffer
2842
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2843
+ */
2844
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coresdk.workflow_activation.RemoveFromCache;
2845
+
2846
+ /**
2847
+ * Decodes a RemoveFromCache message from the specified reader or buffer, length delimited.
2848
+ * @param reader Reader or buffer to decode from
2849
+ * @returns RemoveFromCache
2850
+ * @throws {Error} If the payload is not a reader or valid buffer
2851
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2852
+ */
2853
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coresdk.workflow_activation.RemoveFromCache;
2854
+
2855
+ /**
2856
+ * Creates a RemoveFromCache message from a plain object. Also converts values to their respective internal types.
2857
+ * @param object Plain object
2858
+ * @returns RemoveFromCache
2859
+ */
2860
+ public static fromObject(object: { [k: string]: any }): coresdk.workflow_activation.RemoveFromCache;
2861
+
2862
+ /**
2863
+ * Creates a plain object from a RemoveFromCache message. Also converts values to other types if specified.
2864
+ * @param message RemoveFromCache
2865
+ * @param [options] Conversion options
2866
+ * @returns Plain object
2867
+ */
2868
+ public static toObject(message: coresdk.workflow_activation.RemoveFromCache, options?: $protobuf.IConversionOptions): { [k: string]: any };
2869
+
2870
+ /**
2871
+ * Converts this RemoveFromCache to JSON.
2872
+ * @returns JSON object
2873
+ */
2874
+ public toJSON(): { [k: string]: any };
2875
+ }
2800
2876
  }
2801
2877
 
2802
2878
  /** Namespace child_workflow. */
package/lib/coresdk.js CHANGED
@@ -1957,7 +1957,7 @@ $root.coresdk = (function() {
1957
1957
  if (message.resolveRequestCancelExternalWorkflow != null && Object.hasOwnProperty.call(message, "resolveRequestCancelExternalWorkflow"))
1958
1958
  $root.coresdk.workflow_activation.ResolveRequestCancelExternalWorkflow.encode(message.resolveRequestCancelExternalWorkflow, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
1959
1959
  if (message.removeFromCache != null && Object.hasOwnProperty.call(message, "removeFromCache"))
1960
- writer.uint32(/* id 50, wireType 0 =*/400).bool(message.removeFromCache);
1960
+ $root.coresdk.workflow_activation.RemoveFromCache.encode(message.removeFromCache, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim();
1961
1961
  return writer;
1962
1962
  };
1963
1963
 
@@ -2009,7 +2009,7 @@ $root.coresdk = (function() {
2009
2009
  message.resolveRequestCancelExternalWorkflow = $root.coresdk.workflow_activation.ResolveRequestCancelExternalWorkflow.decode(reader, reader.uint32());
2010
2010
  break;
2011
2011
  case 50:
2012
- message.removeFromCache = reader.bool();
2012
+ message.removeFromCache = $root.coresdk.workflow_activation.RemoveFromCache.decode(reader, reader.uint32());
2013
2013
  break;
2014
2014
  default:
2015
2015
  reader.skipType(tag & 7);
@@ -2089,8 +2089,11 @@ $root.coresdk = (function() {
2089
2089
  throw TypeError(".coresdk.workflow_activation.WFActivationJob.resolveRequestCancelExternalWorkflow: object expected");
2090
2090
  message.resolveRequestCancelExternalWorkflow = $root.coresdk.workflow_activation.ResolveRequestCancelExternalWorkflow.fromObject(object.resolveRequestCancelExternalWorkflow);
2091
2091
  }
2092
- if (object.removeFromCache != null)
2093
- message.removeFromCache = Boolean(object.removeFromCache);
2092
+ if (object.removeFromCache != null) {
2093
+ if (typeof object.removeFromCache !== "object")
2094
+ throw TypeError(".coresdk.workflow_activation.WFActivationJob.removeFromCache: object expected");
2095
+ message.removeFromCache = $root.coresdk.workflow_activation.RemoveFromCache.fromObject(object.removeFromCache);
2096
+ }
2094
2097
  return message;
2095
2098
  };
2096
2099
 
@@ -2159,7 +2162,7 @@ $root.coresdk = (function() {
2159
2162
  object.variant = "resolveRequestCancelExternalWorkflow";
2160
2163
  }
2161
2164
  if (message.removeFromCache != null && message.hasOwnProperty("removeFromCache")) {
2162
- object.removeFromCache = message.removeFromCache;
2165
+ object.removeFromCache = $root.coresdk.workflow_activation.RemoveFromCache.toObject(message.removeFromCache, options);
2163
2166
  if (options.oneofs)
2164
2167
  object.variant = "removeFromCache";
2165
2168
  }
@@ -3683,6 +3686,81 @@ $root.coresdk = (function() {
3683
3686
  return ResolveRequestCancelExternalWorkflow;
3684
3687
  })();
3685
3688
 
3689
+ workflow_activation.RemoveFromCache = (function() {
3690
+
3691
+
3692
+ function RemoveFromCache(properties) {
3693
+ if (properties)
3694
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
3695
+ if (properties[keys[i]] != null)
3696
+ this[keys[i]] = properties[keys[i]];
3697
+ }
3698
+
3699
+ RemoveFromCache.prototype.reason = "";
3700
+
3701
+ RemoveFromCache.encode = function encode(message, writer) {
3702
+ if (!writer)
3703
+ writer = $Writer.create();
3704
+ if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
3705
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.reason);
3706
+ return writer;
3707
+ };
3708
+
3709
+ RemoveFromCache.encodeDelimited = function encodeDelimited(message, writer) {
3710
+ return this.encode(message, writer).ldelim();
3711
+ };
3712
+
3713
+ RemoveFromCache.decode = function decode(reader, length) {
3714
+ if (!(reader instanceof $Reader))
3715
+ reader = $Reader.create(reader);
3716
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.coresdk.workflow_activation.RemoveFromCache();
3717
+ while (reader.pos < end) {
3718
+ var tag = reader.uint32();
3719
+ switch (tag >>> 3) {
3720
+ case 1:
3721
+ message.reason = reader.string();
3722
+ break;
3723
+ default:
3724
+ reader.skipType(tag & 7);
3725
+ break;
3726
+ }
3727
+ }
3728
+ return message;
3729
+ };
3730
+
3731
+ RemoveFromCache.decodeDelimited = function decodeDelimited(reader) {
3732
+ if (!(reader instanceof $Reader))
3733
+ reader = new $Reader(reader);
3734
+ return this.decode(reader, reader.uint32());
3735
+ };
3736
+
3737
+ RemoveFromCache.fromObject = function fromObject(object) {
3738
+ if (object instanceof $root.coresdk.workflow_activation.RemoveFromCache)
3739
+ return object;
3740
+ var message = new $root.coresdk.workflow_activation.RemoveFromCache();
3741
+ if (object.reason != null)
3742
+ message.reason = String(object.reason);
3743
+ return message;
3744
+ };
3745
+
3746
+ RemoveFromCache.toObject = function toObject(message, options) {
3747
+ if (!options)
3748
+ options = {};
3749
+ var object = {};
3750
+ if (options.defaults)
3751
+ object.reason = "";
3752
+ if (message.reason != null && message.hasOwnProperty("reason"))
3753
+ object.reason = message.reason;
3754
+ return object;
3755
+ };
3756
+
3757
+ RemoveFromCache.prototype.toJSON = function toJSON() {
3758
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3759
+ };
3760
+
3761
+ return RemoveFromCache;
3762
+ })();
3763
+
3686
3764
  return workflow_activation;
3687
3765
  })();
3688
3766
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@temporalio/proto",
3
- "version": "0.14.0",
3
+ "version": "0.17.1",
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": "fd09cf4d3c996c96bf604d2e318165cfbad18a4a"
32
+ "gitHead": "3ee26c92e9c18500f919654a402237a86e69652e"
33
33
  }
@@ -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('Asuming protos are up to date');
76
+ console.log('Assuming protos are up to date');
77
77
  return;
78
78
  }
79
79