@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.
package/dist/index.cjs CHANGED
@@ -3477,7 +3477,7 @@ var sesame = $root.sesame = (() => {
3477
3477
  writer.uint32(
3478
3478
  /* id 5, wireType 0 =*/
3479
3479
  40
3480
- ).int32(message.intValue);
3480
+ ).int64(message.intValue);
3481
3481
  return writer;
3482
3482
  };
3483
3483
  PropValue.encodeDelimited = function encodeDelimited(message, writer) {
@@ -3509,7 +3509,7 @@ var sesame = $root.sesame = (() => {
3509
3509
  break;
3510
3510
  }
3511
3511
  case 5: {
3512
- message.intValue = reader.int32();
3512
+ message.intValue = reader.int64();
3513
3513
  break;
3514
3514
  }
3515
3515
  default:
@@ -3561,8 +3561,8 @@ var sesame = $root.sesame = (() => {
3561
3561
  if (properties.value === 1)
3562
3562
  return "value: multiple values";
3563
3563
  properties.value = 1;
3564
- if (!$util.isInteger(message.intValue))
3565
- return "intValue: integer expected";
3564
+ if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high)))
3565
+ return "intValue: integer|Long expected";
3566
3566
  }
3567
3567
  return null;
3568
3568
  };
@@ -3581,8 +3581,16 @@ var sesame = $root.sesame = (() => {
3581
3581
  message.stringValue = String(object.stringValue);
3582
3582
  if (object.boolValue != null)
3583
3583
  message.boolValue = Boolean(object.boolValue);
3584
- if (object.intValue != null)
3585
- message.intValue = object.intValue | 0;
3584
+ if (object.intValue != null) {
3585
+ if ($util.Long)
3586
+ (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false;
3587
+ else if (typeof object.intValue === "string")
3588
+ message.intValue = parseInt(object.intValue, 10);
3589
+ else if (typeof object.intValue === "number")
3590
+ message.intValue = object.intValue;
3591
+ else if (typeof object.intValue === "object")
3592
+ message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber();
3593
+ }
3586
3594
  return message;
3587
3595
  };
3588
3596
  PropValue.toObject = function toObject(message, options) {
@@ -3610,7 +3618,10 @@ var sesame = $root.sesame = (() => {
3610
3618
  object.value = "boolValue";
3611
3619
  }
3612
3620
  if (message.intValue != null && message.hasOwnProperty("intValue")) {
3613
- object.intValue = message.intValue;
3621
+ if (typeof message.intValue === "number")
3622
+ object.intValue = options.longs === String ? String(message.intValue) : message.intValue;
3623
+ else
3624
+ 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;
3614
3625
  if (options.oneofs)
3615
3626
  object.value = "intValue";
3616
3627
  }