@stinkycomputing/sesame-api-client 1.4.1-beta.15 → 1.4.1-beta.16

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.
@@ -3815,7 +3815,7 @@ var sesame = $root.sesame = (() => {
3815
3815
  writer.uint32(
3816
3816
  /* id 5, wireType 0 =*/
3817
3817
  40
3818
- ).int32(message.intValue);
3818
+ ).int64(message.intValue);
3819
3819
  return writer;
3820
3820
  };
3821
3821
  PropValue.encodeDelimited = function encodeDelimited(message, writer) {
@@ -3847,7 +3847,7 @@ var sesame = $root.sesame = (() => {
3847
3847
  break;
3848
3848
  }
3849
3849
  case 5: {
3850
- message.intValue = reader.int32();
3850
+ message.intValue = reader.int64();
3851
3851
  break;
3852
3852
  }
3853
3853
  default:
@@ -3899,8 +3899,8 @@ var sesame = $root.sesame = (() => {
3899
3899
  if (properties.value === 1)
3900
3900
  return "value: multiple values";
3901
3901
  properties.value = 1;
3902
- if (!$util.isInteger(message.intValue))
3903
- return "intValue: integer expected";
3902
+ if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high)))
3903
+ return "intValue: integer|Long expected";
3904
3904
  }
3905
3905
  return null;
3906
3906
  };
@@ -3919,8 +3919,16 @@ var sesame = $root.sesame = (() => {
3919
3919
  message.stringValue = String(object.stringValue);
3920
3920
  if (object.boolValue != null)
3921
3921
  message.boolValue = Boolean(object.boolValue);
3922
- if (object.intValue != null)
3923
- message.intValue = object.intValue | 0;
3922
+ if (object.intValue != null) {
3923
+ if ($util.Long)
3924
+ (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false;
3925
+ else if (typeof object.intValue === "string")
3926
+ message.intValue = parseInt(object.intValue, 10);
3927
+ else if (typeof object.intValue === "number")
3928
+ message.intValue = object.intValue;
3929
+ else if (typeof object.intValue === "object")
3930
+ message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber();
3931
+ }
3924
3932
  return message;
3925
3933
  };
3926
3934
  PropValue.toObject = function toObject(message, options) {
@@ -3948,7 +3956,10 @@ var sesame = $root.sesame = (() => {
3948
3956
  object.value = "boolValue";
3949
3957
  }
3950
3958
  if (message.intValue != null && message.hasOwnProperty("intValue")) {
3951
- object.intValue = message.intValue;
3959
+ if (typeof message.intValue === "number")
3960
+ object.intValue = options.longs === String ? String(message.intValue) : message.intValue;
3961
+ else
3962
+ object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue;
3952
3963
  if (options.oneofs)
3953
3964
  object.value = "intValue";
3954
3965
  }