@headspace/protos-events 1.454.0 → 1.456.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/index.d.ts CHANGED
@@ -29716,6 +29716,9 @@ export interface IEligibilityLinked {
29716
29716
 
29717
29717
  /** EligibilityLinked timestamp */
29718
29718
  timestamp?: (number|Long|null);
29719
+
29720
+ /** EligibilityLinked connectionNames */
29721
+ connectionNames?: (string[]|null);
29719
29722
  }
29720
29723
 
29721
29724
  /** Represents an EligibilityLinked. */
@@ -29751,6 +29754,9 @@ export class EligibilityLinked implements IEligibilityLinked {
29751
29754
  /** EligibilityLinked timestamp. */
29752
29755
  public timestamp: (number|Long);
29753
29756
 
29757
+ /** EligibilityLinked connectionNames. */
29758
+ public connectionNames: string[];
29759
+
29754
29760
  /**
29755
29761
  * Creates a new EligibilityLinked instance using the specified properties.
29756
29762
  * @param [properties] Properties to set
@@ -35103,6 +35109,12 @@ export interface IGoalSet {
35103
35109
 
35104
35110
  /** GoalSet goalDaysCompleted */
35105
35111
  goalDaysCompleted?: (number|null);
35112
+
35113
+ /** GoalSet timestamp */
35114
+ timestamp?: (number|Long|null);
35115
+
35116
+ /** GoalSet hsUserId */
35117
+ hsUserId?: (string|null);
35106
35118
  }
35107
35119
 
35108
35120
  /** Represents a GoalSet. */
@@ -35123,6 +35135,12 @@ export class GoalSet implements IGoalSet {
35123
35135
  /** GoalSet goalDaysCompleted. */
35124
35136
  public goalDaysCompleted: number;
35125
35137
 
35138
+ /** GoalSet timestamp. */
35139
+ public timestamp: (number|Long);
35140
+
35141
+ /** GoalSet hsUserId. */
35142
+ public hsUserId: string;
35143
+
35126
35144
  /**
35127
35145
  * Creates a new GoalSet instance using the specified properties.
35128
35146
  * @param [properties] Properties to set
@@ -35199,6 +35217,9 @@ export interface IGoalActivityIncreased {
35199
35217
 
35200
35218
  /** GoalActivityIncreased goalDaysCompleted */
35201
35219
  goalDaysCompleted?: (number|null);
35220
+
35221
+ /** GoalActivityIncreased hsUserId */
35222
+ hsUserId?: (string|null);
35202
35223
  }
35203
35224
 
35204
35225
  /** Represents a GoalActivityIncreased. */
@@ -35213,6 +35234,9 @@ export class GoalActivityIncreased implements IGoalActivityIncreased {
35213
35234
  /** GoalActivityIncreased goalDaysCompleted. */
35214
35235
  public goalDaysCompleted: number;
35215
35236
 
35237
+ /** GoalActivityIncreased hsUserId. */
35238
+ public hsUserId: string;
35239
+
35216
35240
  /**
35217
35241
  * Creates a new GoalActivityIncreased instance using the specified properties.
35218
35242
  * @param [properties] Properties to set
@@ -35286,6 +35310,12 @@ export class GoalActivityIncreased implements IGoalActivityIncreased {
35286
35310
 
35287
35311
  /** Properties of a GoalReflectionCompleted. */
35288
35312
  export interface IGoalReflectionCompleted {
35313
+
35314
+ /** GoalReflectionCompleted timestamp */
35315
+ timestamp?: (number|Long|null);
35316
+
35317
+ /** GoalReflectionCompleted hsUserId */
35318
+ hsUserId?: (string|null);
35289
35319
  }
35290
35320
 
35291
35321
  /** Represents a GoalReflectionCompleted. */
@@ -35297,6 +35327,12 @@ export class GoalReflectionCompleted implements IGoalReflectionCompleted {
35297
35327
  */
35298
35328
  constructor(properties?: IGoalReflectionCompleted);
35299
35329
 
35330
+ /** GoalReflectionCompleted timestamp. */
35331
+ public timestamp: (number|Long);
35332
+
35333
+ /** GoalReflectionCompleted hsUserId. */
35334
+ public hsUserId: string;
35335
+
35300
35336
  /**
35301
35337
  * Creates a new GoalReflectionCompleted instance using the specified properties.
35302
35338
  * @param [properties] Properties to set
@@ -35370,6 +35406,12 @@ export class GoalReflectionCompleted implements IGoalReflectionCompleted {
35370
35406
 
35371
35407
  /** Properties of a GoalCompleted. */
35372
35408
  export interface IGoalCompleted {
35409
+
35410
+ /** GoalCompleted timestamp */
35411
+ timestamp?: (number|Long|null);
35412
+
35413
+ /** GoalCompleted hsUserId */
35414
+ hsUserId?: (string|null);
35373
35415
  }
35374
35416
 
35375
35417
  /** Represents a GoalCompleted. */
@@ -35381,6 +35423,12 @@ export class GoalCompleted implements IGoalCompleted {
35381
35423
  */
35382
35424
  constructor(properties?: IGoalCompleted);
35383
35425
 
35426
+ /** GoalCompleted timestamp. */
35427
+ public timestamp: (number|Long);
35428
+
35429
+ /** GoalCompleted hsUserId. */
35430
+ public hsUserId: string;
35431
+
35384
35432
  /**
35385
35433
  * Creates a new GoalCompleted instance using the specified properties.
35386
35434
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -82288,6 +82288,7 @@ $root.EligibilityLinked = (function() {
82288
82288
  * @property {string|null} [workId] EligibilityLinked workId
82289
82289
  * @property {boolean|null} [isUmd] EligibilityLinked isUmd
82290
82290
  * @property {number|Long|null} [timestamp] EligibilityLinked timestamp
82291
+ * @property {Array.<string>|null} [connectionNames] EligibilityLinked connectionNames
82291
82292
  */
82292
82293
 
82293
82294
  /**
@@ -82299,6 +82300,7 @@ $root.EligibilityLinked = (function() {
82299
82300
  * @param {IEligibilityLinked=} [properties] Properties to set
82300
82301
  */
82301
82302
  function EligibilityLinked(properties) {
82303
+ this.connectionNames = [];
82302
82304
  if (properties)
82303
82305
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
82304
82306
  if (properties[keys[i]] != null)
@@ -82369,6 +82371,14 @@ $root.EligibilityLinked = (function() {
82369
82371
  */
82370
82372
  EligibilityLinked.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
82371
82373
 
82374
+ /**
82375
+ * EligibilityLinked connectionNames.
82376
+ * @member {Array.<string>} connectionNames
82377
+ * @memberof EligibilityLinked
82378
+ * @instance
82379
+ */
82380
+ EligibilityLinked.prototype.connectionNames = $util.emptyArray;
82381
+
82372
82382
  /**
82373
82383
  * Creates a new EligibilityLinked instance using the specified properties.
82374
82384
  * @function create
@@ -82409,6 +82419,9 @@ $root.EligibilityLinked = (function() {
82409
82419
  writer.uint32(/* id 7, wireType 0 =*/56).bool(message.isUmd);
82410
82420
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
82411
82421
  writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.timestamp);
82422
+ if (message.connectionNames != null && message.connectionNames.length)
82423
+ for (var i = 0; i < message.connectionNames.length; ++i)
82424
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.connectionNames[i]);
82412
82425
  return writer;
82413
82426
  };
82414
82427
 
@@ -82467,6 +82480,11 @@ $root.EligibilityLinked = (function() {
82467
82480
  case 8:
82468
82481
  message.timestamp = reader.uint64();
82469
82482
  break;
82483
+ case 9:
82484
+ if (!(message.connectionNames && message.connectionNames.length))
82485
+ message.connectionNames = [];
82486
+ message.connectionNames.push(reader.string());
82487
+ break;
82470
82488
  default:
82471
82489
  reader.skipType(tag & 7);
82472
82490
  break;
@@ -82531,6 +82549,13 @@ $root.EligibilityLinked = (function() {
82531
82549
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
82532
82550
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
82533
82551
  return "timestamp: integer|Long expected";
82552
+ if (message.connectionNames != null && message.hasOwnProperty("connectionNames")) {
82553
+ if (!Array.isArray(message.connectionNames))
82554
+ return "connectionNames: array expected";
82555
+ for (var i = 0; i < message.connectionNames.length; ++i)
82556
+ if (!$util.isString(message.connectionNames[i]))
82557
+ return "connectionNames: string[] expected";
82558
+ }
82534
82559
  return null;
82535
82560
  };
82536
82561
 
@@ -82577,6 +82602,13 @@ $root.EligibilityLinked = (function() {
82577
82602
  message.timestamp = object.timestamp;
82578
82603
  else if (typeof object.timestamp === "object")
82579
82604
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
82605
+ if (object.connectionNames) {
82606
+ if (!Array.isArray(object.connectionNames))
82607
+ throw TypeError(".EligibilityLinked.connectionNames: array expected");
82608
+ message.connectionNames = [];
82609
+ for (var i = 0; i < object.connectionNames.length; ++i)
82610
+ message.connectionNames[i] = String(object.connectionNames[i]);
82611
+ }
82580
82612
  return message;
82581
82613
  };
82582
82614
 
@@ -82593,6 +82625,8 @@ $root.EligibilityLinked = (function() {
82593
82625
  if (!options)
82594
82626
  options = {};
82595
82627
  var object = {};
82628
+ if (options.arrays || options.defaults)
82629
+ object.connectionNames = [];
82596
82630
  if (options.defaults) {
82597
82631
  object.headspaceHealthOrgId = "";
82598
82632
  object.headspaceUserId = "";
@@ -82626,6 +82660,11 @@ $root.EligibilityLinked = (function() {
82626
82660
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
82627
82661
  else
82628
82662
  object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
82663
+ if (message.connectionNames && message.connectionNames.length) {
82664
+ object.connectionNames = [];
82665
+ for (var j = 0; j < message.connectionNames.length; ++j)
82666
+ object.connectionNames[j] = message.connectionNames[j];
82667
+ }
82629
82668
  return object;
82630
82669
  };
82631
82670
 
@@ -98155,6 +98194,8 @@ $root.GoalSet = (function() {
98155
98194
  * @property {GoalFocusArea|null} [goalFocusArea] GoalSet goalFocusArea
98156
98195
  * @property {number|null} [goalCommittedCount] GoalSet goalCommittedCount
98157
98196
  * @property {number|null} [goalDaysCompleted] GoalSet goalDaysCompleted
98197
+ * @property {number|Long|null} [timestamp] GoalSet timestamp
98198
+ * @property {string|null} [hsUserId] GoalSet hsUserId
98158
98199
  */
98159
98200
 
98160
98201
  /**
@@ -98196,6 +98237,22 @@ $root.GoalSet = (function() {
98196
98237
  */
98197
98238
  GoalSet.prototype.goalDaysCompleted = 0;
98198
98239
 
98240
+ /**
98241
+ * GoalSet timestamp.
98242
+ * @member {number|Long} timestamp
98243
+ * @memberof GoalSet
98244
+ * @instance
98245
+ */
98246
+ GoalSet.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
98247
+
98248
+ /**
98249
+ * GoalSet hsUserId.
98250
+ * @member {string} hsUserId
98251
+ * @memberof GoalSet
98252
+ * @instance
98253
+ */
98254
+ GoalSet.prototype.hsUserId = "";
98255
+
98199
98256
  /**
98200
98257
  * Creates a new GoalSet instance using the specified properties.
98201
98258
  * @function create
@@ -98226,6 +98283,10 @@ $root.GoalSet = (function() {
98226
98283
  writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.goalCommittedCount);
98227
98284
  if (message.goalDaysCompleted != null && message.hasOwnProperty("goalDaysCompleted"))
98228
98285
  writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.goalDaysCompleted);
98286
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
98287
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp);
98288
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
98289
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.hsUserId);
98229
98290
  return writer;
98230
98291
  };
98231
98292
 
@@ -98269,6 +98330,12 @@ $root.GoalSet = (function() {
98269
98330
  case 3:
98270
98331
  message.goalDaysCompleted = reader.uint32();
98271
98332
  break;
98333
+ case 4:
98334
+ message.timestamp = reader.uint64();
98335
+ break;
98336
+ case 5:
98337
+ message.hsUserId = reader.string();
98338
+ break;
98272
98339
  default:
98273
98340
  reader.skipType(tag & 7);
98274
98341
  break;
@@ -98323,6 +98390,12 @@ $root.GoalSet = (function() {
98323
98390
  if (message.goalDaysCompleted != null && message.hasOwnProperty("goalDaysCompleted"))
98324
98391
  if (!$util.isInteger(message.goalDaysCompleted))
98325
98392
  return "goalDaysCompleted: integer expected";
98393
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
98394
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
98395
+ return "timestamp: integer|Long expected";
98396
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
98397
+ if (!$util.isString(message.hsUserId))
98398
+ return "hsUserId: string expected";
98326
98399
  return null;
98327
98400
  };
98328
98401
 
@@ -98372,6 +98445,17 @@ $root.GoalSet = (function() {
98372
98445
  message.goalCommittedCount = object.goalCommittedCount >>> 0;
98373
98446
  if (object.goalDaysCompleted != null)
98374
98447
  message.goalDaysCompleted = object.goalDaysCompleted >>> 0;
98448
+ if (object.timestamp != null)
98449
+ if ($util.Long)
98450
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
98451
+ else if (typeof object.timestamp === "string")
98452
+ message.timestamp = parseInt(object.timestamp, 10);
98453
+ else if (typeof object.timestamp === "number")
98454
+ message.timestamp = object.timestamp;
98455
+ else if (typeof object.timestamp === "object")
98456
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
98457
+ if (object.hsUserId != null)
98458
+ message.hsUserId = String(object.hsUserId);
98375
98459
  return message;
98376
98460
  };
98377
98461
 
@@ -98392,6 +98476,12 @@ $root.GoalSet = (function() {
98392
98476
  object.goalFocusArea = options.enums === String ? "GOAL_TYPE_UNKNOWN" : 0;
98393
98477
  object.goalCommittedCount = 0;
98394
98478
  object.goalDaysCompleted = 0;
98479
+ if ($util.Long) {
98480
+ var long = new $util.Long(0, 0, true);
98481
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
98482
+ } else
98483
+ object.timestamp = options.longs === String ? "0" : 0;
98484
+ object.hsUserId = "";
98395
98485
  }
98396
98486
  if (message.goalFocusArea != null && message.hasOwnProperty("goalFocusArea"))
98397
98487
  object.goalFocusArea = options.enums === String ? $root.GoalFocusArea[message.goalFocusArea] : message.goalFocusArea;
@@ -98399,6 +98489,13 @@ $root.GoalSet = (function() {
98399
98489
  object.goalCommittedCount = message.goalCommittedCount;
98400
98490
  if (message.goalDaysCompleted != null && message.hasOwnProperty("goalDaysCompleted"))
98401
98491
  object.goalDaysCompleted = message.goalDaysCompleted;
98492
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
98493
+ if (typeof message.timestamp === "number")
98494
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
98495
+ else
98496
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
98497
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
98498
+ object.hsUserId = message.hsUserId;
98402
98499
  return object;
98403
98500
  };
98404
98501
 
@@ -98423,6 +98520,7 @@ $root.GoalActivityIncreased = (function() {
98423
98520
  * @exports IGoalActivityIncreased
98424
98521
  * @interface IGoalActivityIncreased
98425
98522
  * @property {number|null} [goalDaysCompleted] GoalActivityIncreased goalDaysCompleted
98523
+ * @property {string|null} [hsUserId] GoalActivityIncreased hsUserId
98426
98524
  */
98427
98525
 
98428
98526
  /**
@@ -98448,6 +98546,14 @@ $root.GoalActivityIncreased = (function() {
98448
98546
  */
98449
98547
  GoalActivityIncreased.prototype.goalDaysCompleted = 0;
98450
98548
 
98549
+ /**
98550
+ * GoalActivityIncreased hsUserId.
98551
+ * @member {string} hsUserId
98552
+ * @memberof GoalActivityIncreased
98553
+ * @instance
98554
+ */
98555
+ GoalActivityIncreased.prototype.hsUserId = "";
98556
+
98451
98557
  /**
98452
98558
  * Creates a new GoalActivityIncreased instance using the specified properties.
98453
98559
  * @function create
@@ -98474,6 +98580,8 @@ $root.GoalActivityIncreased = (function() {
98474
98580
  writer = $Writer.create();
98475
98581
  if (message.goalDaysCompleted != null && message.hasOwnProperty("goalDaysCompleted"))
98476
98582
  writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.goalDaysCompleted);
98583
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
98584
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
98477
98585
  return writer;
98478
98586
  };
98479
98587
 
@@ -98511,6 +98619,9 @@ $root.GoalActivityIncreased = (function() {
98511
98619
  case 1:
98512
98620
  message.goalDaysCompleted = reader.uint32();
98513
98621
  break;
98622
+ case 2:
98623
+ message.hsUserId = reader.string();
98624
+ break;
98514
98625
  default:
98515
98626
  reader.skipType(tag & 7);
98516
98627
  break;
@@ -98549,6 +98660,9 @@ $root.GoalActivityIncreased = (function() {
98549
98660
  if (message.goalDaysCompleted != null && message.hasOwnProperty("goalDaysCompleted"))
98550
98661
  if (!$util.isInteger(message.goalDaysCompleted))
98551
98662
  return "goalDaysCompleted: integer expected";
98663
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
98664
+ if (!$util.isString(message.hsUserId))
98665
+ return "hsUserId: string expected";
98552
98666
  return null;
98553
98667
  };
98554
98668
 
@@ -98566,6 +98680,8 @@ $root.GoalActivityIncreased = (function() {
98566
98680
  var message = new $root.GoalActivityIncreased();
98567
98681
  if (object.goalDaysCompleted != null)
98568
98682
  message.goalDaysCompleted = object.goalDaysCompleted >>> 0;
98683
+ if (object.hsUserId != null)
98684
+ message.hsUserId = String(object.hsUserId);
98569
98685
  return message;
98570
98686
  };
98571
98687
 
@@ -98582,10 +98698,14 @@ $root.GoalActivityIncreased = (function() {
98582
98698
  if (!options)
98583
98699
  options = {};
98584
98700
  var object = {};
98585
- if (options.defaults)
98701
+ if (options.defaults) {
98586
98702
  object.goalDaysCompleted = 0;
98703
+ object.hsUserId = "";
98704
+ }
98587
98705
  if (message.goalDaysCompleted != null && message.hasOwnProperty("goalDaysCompleted"))
98588
98706
  object.goalDaysCompleted = message.goalDaysCompleted;
98707
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
98708
+ object.hsUserId = message.hsUserId;
98589
98709
  return object;
98590
98710
  };
98591
98711
 
@@ -98609,6 +98729,8 @@ $root.GoalReflectionCompleted = (function() {
98609
98729
  * Properties of a GoalReflectionCompleted.
98610
98730
  * @exports IGoalReflectionCompleted
98611
98731
  * @interface IGoalReflectionCompleted
98732
+ * @property {number|Long|null} [timestamp] GoalReflectionCompleted timestamp
98733
+ * @property {string|null} [hsUserId] GoalReflectionCompleted hsUserId
98612
98734
  */
98613
98735
 
98614
98736
  /**
@@ -98626,6 +98748,22 @@ $root.GoalReflectionCompleted = (function() {
98626
98748
  this[keys[i]] = properties[keys[i]];
98627
98749
  }
98628
98750
 
98751
+ /**
98752
+ * GoalReflectionCompleted timestamp.
98753
+ * @member {number|Long} timestamp
98754
+ * @memberof GoalReflectionCompleted
98755
+ * @instance
98756
+ */
98757
+ GoalReflectionCompleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
98758
+
98759
+ /**
98760
+ * GoalReflectionCompleted hsUserId.
98761
+ * @member {string} hsUserId
98762
+ * @memberof GoalReflectionCompleted
98763
+ * @instance
98764
+ */
98765
+ GoalReflectionCompleted.prototype.hsUserId = "";
98766
+
98629
98767
  /**
98630
98768
  * Creates a new GoalReflectionCompleted instance using the specified properties.
98631
98769
  * @function create
@@ -98650,6 +98788,10 @@ $root.GoalReflectionCompleted = (function() {
98650
98788
  GoalReflectionCompleted.encode = function encode(message, writer) {
98651
98789
  if (!writer)
98652
98790
  writer = $Writer.create();
98791
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
98792
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
98793
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
98794
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
98653
98795
  return writer;
98654
98796
  };
98655
98797
 
@@ -98684,6 +98826,12 @@ $root.GoalReflectionCompleted = (function() {
98684
98826
  while (reader.pos < end) {
98685
98827
  var tag = reader.uint32();
98686
98828
  switch (tag >>> 3) {
98829
+ case 1:
98830
+ message.timestamp = reader.uint64();
98831
+ break;
98832
+ case 2:
98833
+ message.hsUserId = reader.string();
98834
+ break;
98687
98835
  default:
98688
98836
  reader.skipType(tag & 7);
98689
98837
  break;
@@ -98719,6 +98867,12 @@ $root.GoalReflectionCompleted = (function() {
98719
98867
  GoalReflectionCompleted.verify = function verify(message) {
98720
98868
  if (typeof message !== "object" || message === null)
98721
98869
  return "object expected";
98870
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
98871
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
98872
+ return "timestamp: integer|Long expected";
98873
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
98874
+ if (!$util.isString(message.hsUserId))
98875
+ return "hsUserId: string expected";
98722
98876
  return null;
98723
98877
  };
98724
98878
 
@@ -98733,7 +98887,19 @@ $root.GoalReflectionCompleted = (function() {
98733
98887
  GoalReflectionCompleted.fromObject = function fromObject(object) {
98734
98888
  if (object instanceof $root.GoalReflectionCompleted)
98735
98889
  return object;
98736
- return new $root.GoalReflectionCompleted();
98890
+ var message = new $root.GoalReflectionCompleted();
98891
+ if (object.timestamp != null)
98892
+ if ($util.Long)
98893
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
98894
+ else if (typeof object.timestamp === "string")
98895
+ message.timestamp = parseInt(object.timestamp, 10);
98896
+ else if (typeof object.timestamp === "number")
98897
+ message.timestamp = object.timestamp;
98898
+ else if (typeof object.timestamp === "object")
98899
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
98900
+ if (object.hsUserId != null)
98901
+ message.hsUserId = String(object.hsUserId);
98902
+ return message;
98737
98903
  };
98738
98904
 
98739
98905
  /**
@@ -98745,8 +98911,26 @@ $root.GoalReflectionCompleted = (function() {
98745
98911
  * @param {$protobuf.IConversionOptions} [options] Conversion options
98746
98912
  * @returns {Object.<string,*>} Plain object
98747
98913
  */
98748
- GoalReflectionCompleted.toObject = function toObject() {
98749
- return {};
98914
+ GoalReflectionCompleted.toObject = function toObject(message, options) {
98915
+ if (!options)
98916
+ options = {};
98917
+ var object = {};
98918
+ if (options.defaults) {
98919
+ if ($util.Long) {
98920
+ var long = new $util.Long(0, 0, true);
98921
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
98922
+ } else
98923
+ object.timestamp = options.longs === String ? "0" : 0;
98924
+ object.hsUserId = "";
98925
+ }
98926
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
98927
+ if (typeof message.timestamp === "number")
98928
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
98929
+ else
98930
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
98931
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
98932
+ object.hsUserId = message.hsUserId;
98933
+ return object;
98750
98934
  };
98751
98935
 
98752
98936
  /**
@@ -98769,6 +98953,8 @@ $root.GoalCompleted = (function() {
98769
98953
  * Properties of a GoalCompleted.
98770
98954
  * @exports IGoalCompleted
98771
98955
  * @interface IGoalCompleted
98956
+ * @property {number|Long|null} [timestamp] GoalCompleted timestamp
98957
+ * @property {string|null} [hsUserId] GoalCompleted hsUserId
98772
98958
  */
98773
98959
 
98774
98960
  /**
@@ -98786,6 +98972,22 @@ $root.GoalCompleted = (function() {
98786
98972
  this[keys[i]] = properties[keys[i]];
98787
98973
  }
98788
98974
 
98975
+ /**
98976
+ * GoalCompleted timestamp.
98977
+ * @member {number|Long} timestamp
98978
+ * @memberof GoalCompleted
98979
+ * @instance
98980
+ */
98981
+ GoalCompleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
98982
+
98983
+ /**
98984
+ * GoalCompleted hsUserId.
98985
+ * @member {string} hsUserId
98986
+ * @memberof GoalCompleted
98987
+ * @instance
98988
+ */
98989
+ GoalCompleted.prototype.hsUserId = "";
98990
+
98789
98991
  /**
98790
98992
  * Creates a new GoalCompleted instance using the specified properties.
98791
98993
  * @function create
@@ -98810,6 +99012,10 @@ $root.GoalCompleted = (function() {
98810
99012
  GoalCompleted.encode = function encode(message, writer) {
98811
99013
  if (!writer)
98812
99014
  writer = $Writer.create();
99015
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
99016
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
99017
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
99018
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
98813
99019
  return writer;
98814
99020
  };
98815
99021
 
@@ -98844,6 +99050,12 @@ $root.GoalCompleted = (function() {
98844
99050
  while (reader.pos < end) {
98845
99051
  var tag = reader.uint32();
98846
99052
  switch (tag >>> 3) {
99053
+ case 1:
99054
+ message.timestamp = reader.uint64();
99055
+ break;
99056
+ case 2:
99057
+ message.hsUserId = reader.string();
99058
+ break;
98847
99059
  default:
98848
99060
  reader.skipType(tag & 7);
98849
99061
  break;
@@ -98879,6 +99091,12 @@ $root.GoalCompleted = (function() {
98879
99091
  GoalCompleted.verify = function verify(message) {
98880
99092
  if (typeof message !== "object" || message === null)
98881
99093
  return "object expected";
99094
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
99095
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
99096
+ return "timestamp: integer|Long expected";
99097
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
99098
+ if (!$util.isString(message.hsUserId))
99099
+ return "hsUserId: string expected";
98882
99100
  return null;
98883
99101
  };
98884
99102
 
@@ -98893,7 +99111,19 @@ $root.GoalCompleted = (function() {
98893
99111
  GoalCompleted.fromObject = function fromObject(object) {
98894
99112
  if (object instanceof $root.GoalCompleted)
98895
99113
  return object;
98896
- return new $root.GoalCompleted();
99114
+ var message = new $root.GoalCompleted();
99115
+ if (object.timestamp != null)
99116
+ if ($util.Long)
99117
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
99118
+ else if (typeof object.timestamp === "string")
99119
+ message.timestamp = parseInt(object.timestamp, 10);
99120
+ else if (typeof object.timestamp === "number")
99121
+ message.timestamp = object.timestamp;
99122
+ else if (typeof object.timestamp === "object")
99123
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
99124
+ if (object.hsUserId != null)
99125
+ message.hsUserId = String(object.hsUserId);
99126
+ return message;
98897
99127
  };
98898
99128
 
98899
99129
  /**
@@ -98905,8 +99135,26 @@ $root.GoalCompleted = (function() {
98905
99135
  * @param {$protobuf.IConversionOptions} [options] Conversion options
98906
99136
  * @returns {Object.<string,*>} Plain object
98907
99137
  */
98908
- GoalCompleted.toObject = function toObject() {
98909
- return {};
99138
+ GoalCompleted.toObject = function toObject(message, options) {
99139
+ if (!options)
99140
+ options = {};
99141
+ var object = {};
99142
+ if (options.defaults) {
99143
+ if ($util.Long) {
99144
+ var long = new $util.Long(0, 0, true);
99145
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
99146
+ } else
99147
+ object.timestamp = options.longs === String ? "0" : 0;
99148
+ object.hsUserId = "";
99149
+ }
99150
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
99151
+ if (typeof message.timestamp === "number")
99152
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
99153
+ else
99154
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
99155
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
99156
+ object.hsUserId = message.hsUserId;
99157
+ return object;
98910
99158
  };
98911
99159
 
98912
99160
  /**
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.454.0"
19
+ "version": "1.456.0"
20
20
  }