@headspace/protos-events 1.458.0 → 1.460.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
@@ -29719,6 +29719,9 @@ export interface IEligibilityLinked {
29719
29719
 
29720
29720
  /** EligibilityLinked connectionNames */
29721
29721
  connectionNames?: (string[]|null);
29722
+
29723
+ /** EligibilityLinked headspaceUserEnrollmentTimestamp */
29724
+ headspaceUserEnrollmentTimestamp?: (number|Long|null);
29722
29725
  }
29723
29726
 
29724
29727
  /** Represents an EligibilityLinked. */
@@ -29757,6 +29760,9 @@ export class EligibilityLinked implements IEligibilityLinked {
29757
29760
  /** EligibilityLinked connectionNames. */
29758
29761
  public connectionNames: [ 'Array' ].<string>;
29759
29762
 
29763
+ /** EligibilityLinked headspaceUserEnrollmentTimestamp. */
29764
+ public headspaceUserEnrollmentTimestamp: (number|Long);
29765
+
29760
29766
  /**
29761
29767
  * Creates a new EligibilityLinked instance using the specified properties.
29762
29768
  * @param [properties] Properties to set
@@ -31402,6 +31408,9 @@ export interface IOrganizationSubscriptionCreated {
31402
31408
 
31403
31409
  /** OrganizationSubscriptionCreated subscription */
31404
31410
  subscription?: (b2b.IB2BSubscriptionManagement|null);
31411
+
31412
+ /** OrganizationSubscriptionCreated activeSubscription */
31413
+ activeSubscription?: (b2b.IB2BSubscriptionManagement|null);
31405
31414
  }
31406
31415
 
31407
31416
  /** Represents an OrganizationSubscriptionCreated. */
@@ -31425,6 +31434,9 @@ export class OrganizationSubscriptionCreated implements IOrganizationSubscriptio
31425
31434
  /** OrganizationSubscriptionCreated subscription. */
31426
31435
  public subscription?: (b2b.IB2BSubscriptionManagement|null);
31427
31436
 
31437
+ /** OrganizationSubscriptionCreated activeSubscription. */
31438
+ public activeSubscription?: (b2b.IB2BSubscriptionManagement|null);
31439
+
31428
31440
  /**
31429
31441
  * Creates a new OrganizationSubscriptionCreated instance using the specified properties.
31430
31442
  * @param [properties] Properties to set
@@ -31618,6 +31630,9 @@ export interface IOrganizationSubscriptionAmended {
31618
31630
 
31619
31631
  /** OrganizationSubscriptionAmended subscription */
31620
31632
  subscription?: (b2b.IB2BSubscriptionManagement|null);
31633
+
31634
+ /** OrganizationSubscriptionAmended activeSubscription */
31635
+ activeSubscription?: (b2b.IB2BSubscriptionManagement|null);
31621
31636
  }
31622
31637
 
31623
31638
  /** Represents an OrganizationSubscriptionAmended. */
@@ -31641,6 +31656,9 @@ export class OrganizationSubscriptionAmended implements IOrganizationSubscriptio
31641
31656
  /** OrganizationSubscriptionAmended subscription. */
31642
31657
  public subscription?: (b2b.IB2BSubscriptionManagement|null);
31643
31658
 
31659
+ /** OrganizationSubscriptionAmended activeSubscription. */
31660
+ public activeSubscription?: (b2b.IB2BSubscriptionManagement|null);
31661
+
31644
31662
  /**
31645
31663
  * Creates a new OrganizationSubscriptionAmended instance using the specified properties.
31646
31664
  * @param [properties] Properties to set
@@ -35436,6 +35454,9 @@ export interface IGoalActivityIncreased {
35436
35454
 
35437
35455
  /** GoalActivityIncreased hsUserId */
35438
35456
  hsUserId?: (string|null);
35457
+
35458
+ /** GoalActivityIncreased timestamp */
35459
+ timestamp?: (number|Long|null);
35439
35460
  }
35440
35461
 
35441
35462
  /** Represents a GoalActivityIncreased. */
@@ -35453,6 +35474,9 @@ export class GoalActivityIncreased implements IGoalActivityIncreased {
35453
35474
  /** GoalActivityIncreased hsUserId. */
35454
35475
  public hsUserId: string;
35455
35476
 
35477
+ /** GoalActivityIncreased timestamp. */
35478
+ public timestamp: (number|Long);
35479
+
35456
35480
  /**
35457
35481
  * Creates a new GoalActivityIncreased instance using the specified properties.
35458
35482
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -82289,6 +82289,7 @@ $root.EligibilityLinked = (function() {
82289
82289
  * @property {boolean|null} [isUmd] EligibilityLinked isUmd
82290
82290
  * @property {number|Long|null} [timestamp] EligibilityLinked timestamp
82291
82291
  * @property {Array.<string>|null} [connectionNames] EligibilityLinked connectionNames
82292
+ * @property {number|Long|null} [headspaceUserEnrollmentTimestamp] EligibilityLinked headspaceUserEnrollmentTimestamp
82292
82293
  */
82293
82294
 
82294
82295
  /**
@@ -82379,6 +82380,14 @@ $root.EligibilityLinked = (function() {
82379
82380
  */
82380
82381
  EligibilityLinked.prototype.connectionNames = $util.emptyArray;
82381
82382
 
82383
+ /**
82384
+ * EligibilityLinked headspaceUserEnrollmentTimestamp.
82385
+ * @member {number|Long} headspaceUserEnrollmentTimestamp
82386
+ * @memberof EligibilityLinked
82387
+ * @instance
82388
+ */
82389
+ EligibilityLinked.prototype.headspaceUserEnrollmentTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
82390
+
82382
82391
  /**
82383
82392
  * Creates a new EligibilityLinked instance using the specified properties.
82384
82393
  * @function create
@@ -82422,6 +82431,8 @@ $root.EligibilityLinked = (function() {
82422
82431
  if (message.connectionNames != null && message.connectionNames.length)
82423
82432
  for (var i = 0; i < message.connectionNames.length; ++i)
82424
82433
  writer.uint32(/* id 9, wireType 2 =*/74).string(message.connectionNames[i]);
82434
+ if (message.headspaceUserEnrollmentTimestamp != null && message.hasOwnProperty("headspaceUserEnrollmentTimestamp"))
82435
+ writer.uint32(/* id 10, wireType 0 =*/80).uint64(message.headspaceUserEnrollmentTimestamp);
82425
82436
  return writer;
82426
82437
  };
82427
82438
 
@@ -82485,6 +82496,9 @@ $root.EligibilityLinked = (function() {
82485
82496
  message.connectionNames = [];
82486
82497
  message.connectionNames.push(reader.string());
82487
82498
  break;
82499
+ case 10:
82500
+ message.headspaceUserEnrollmentTimestamp = reader.uint64();
82501
+ break;
82488
82502
  default:
82489
82503
  reader.skipType(tag & 7);
82490
82504
  break;
@@ -82556,6 +82570,9 @@ $root.EligibilityLinked = (function() {
82556
82570
  if (!$util.isString(message.connectionNames[i]))
82557
82571
  return "connectionNames: string[] expected";
82558
82572
  }
82573
+ if (message.headspaceUserEnrollmentTimestamp != null && message.hasOwnProperty("headspaceUserEnrollmentTimestamp"))
82574
+ if (!$util.isInteger(message.headspaceUserEnrollmentTimestamp) && !(message.headspaceUserEnrollmentTimestamp && $util.isInteger(message.headspaceUserEnrollmentTimestamp.low) && $util.isInteger(message.headspaceUserEnrollmentTimestamp.high)))
82575
+ return "headspaceUserEnrollmentTimestamp: integer|Long expected";
82559
82576
  return null;
82560
82577
  };
82561
82578
 
@@ -82609,6 +82626,15 @@ $root.EligibilityLinked = (function() {
82609
82626
  for (var i = 0; i < object.connectionNames.length; ++i)
82610
82627
  message.connectionNames[i] = String(object.connectionNames[i]);
82611
82628
  }
82629
+ if (object.headspaceUserEnrollmentTimestamp != null)
82630
+ if ($util.Long)
82631
+ (message.headspaceUserEnrollmentTimestamp = $util.Long.fromValue(object.headspaceUserEnrollmentTimestamp)).unsigned = true;
82632
+ else if (typeof object.headspaceUserEnrollmentTimestamp === "string")
82633
+ message.headspaceUserEnrollmentTimestamp = parseInt(object.headspaceUserEnrollmentTimestamp, 10);
82634
+ else if (typeof object.headspaceUserEnrollmentTimestamp === "number")
82635
+ message.headspaceUserEnrollmentTimestamp = object.headspaceUserEnrollmentTimestamp;
82636
+ else if (typeof object.headspaceUserEnrollmentTimestamp === "object")
82637
+ message.headspaceUserEnrollmentTimestamp = new $util.LongBits(object.headspaceUserEnrollmentTimestamp.low >>> 0, object.headspaceUserEnrollmentTimestamp.high >>> 0).toNumber(true);
82612
82638
  return message;
82613
82639
  };
82614
82640
 
@@ -82640,6 +82666,11 @@ $root.EligibilityLinked = (function() {
82640
82666
  object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
82641
82667
  } else
82642
82668
  object.timestamp = options.longs === String ? "0" : 0;
82669
+ if ($util.Long) {
82670
+ var long = new $util.Long(0, 0, true);
82671
+ object.headspaceUserEnrollmentTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
82672
+ } else
82673
+ object.headspaceUserEnrollmentTimestamp = options.longs === String ? "0" : 0;
82643
82674
  }
82644
82675
  if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
82645
82676
  object.headspaceHealthOrgId = message.headspaceHealthOrgId;
@@ -82665,6 +82696,11 @@ $root.EligibilityLinked = (function() {
82665
82696
  for (var j = 0; j < message.connectionNames.length; ++j)
82666
82697
  object.connectionNames[j] = message.connectionNames[j];
82667
82698
  }
82699
+ if (message.headspaceUserEnrollmentTimestamp != null && message.hasOwnProperty("headspaceUserEnrollmentTimestamp"))
82700
+ if (typeof message.headspaceUserEnrollmentTimestamp === "number")
82701
+ object.headspaceUserEnrollmentTimestamp = options.longs === String ? String(message.headspaceUserEnrollmentTimestamp) : message.headspaceUserEnrollmentTimestamp;
82702
+ else
82703
+ object.headspaceUserEnrollmentTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.headspaceUserEnrollmentTimestamp) : options.longs === Number ? new $util.LongBits(message.headspaceUserEnrollmentTimestamp.low >>> 0, message.headspaceUserEnrollmentTimestamp.high >>> 0).toNumber(true) : message.headspaceUserEnrollmentTimestamp;
82668
82704
  return object;
82669
82705
  };
82670
82706
 
@@ -87095,6 +87131,7 @@ $root.OrganizationSubscriptionCreated = (function() {
87095
87131
  * @property {number|null} [dashboardUserId] OrganizationSubscriptionCreated dashboardUserId
87096
87132
  * @property {b2b.IOrganization|null} [organization] OrganizationSubscriptionCreated organization
87097
87133
  * @property {b2b.IB2BSubscriptionManagement|null} [subscription] OrganizationSubscriptionCreated subscription
87134
+ * @property {b2b.IB2BSubscriptionManagement|null} [activeSubscription] OrganizationSubscriptionCreated activeSubscription
87098
87135
  */
87099
87136
 
87100
87137
  /**
@@ -87144,6 +87181,14 @@ $root.OrganizationSubscriptionCreated = (function() {
87144
87181
  */
87145
87182
  OrganizationSubscriptionCreated.prototype.subscription = null;
87146
87183
 
87184
+ /**
87185
+ * OrganizationSubscriptionCreated activeSubscription.
87186
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} activeSubscription
87187
+ * @memberof OrganizationSubscriptionCreated
87188
+ * @instance
87189
+ */
87190
+ OrganizationSubscriptionCreated.prototype.activeSubscription = null;
87191
+
87147
87192
  /**
87148
87193
  * Creates a new OrganizationSubscriptionCreated instance using the specified properties.
87149
87194
  * @function create
@@ -87176,6 +87221,8 @@ $root.OrganizationSubscriptionCreated = (function() {
87176
87221
  $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
87177
87222
  if (message.subscription != null && message.hasOwnProperty("subscription"))
87178
87223
  $root.b2b.B2BSubscriptionManagement.encode(message.subscription, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
87224
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription"))
87225
+ $root.b2b.B2BSubscriptionManagement.encode(message.activeSubscription, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
87179
87226
  return writer;
87180
87227
  };
87181
87228
 
@@ -87222,6 +87269,9 @@ $root.OrganizationSubscriptionCreated = (function() {
87222
87269
  case 4:
87223
87270
  message.subscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
87224
87271
  break;
87272
+ case 5:
87273
+ message.activeSubscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
87274
+ break;
87225
87275
  default:
87226
87276
  reader.skipType(tag & 7);
87227
87277
  break;
@@ -87273,6 +87323,11 @@ $root.OrganizationSubscriptionCreated = (function() {
87273
87323
  if (error)
87274
87324
  return "subscription." + error;
87275
87325
  }
87326
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription")) {
87327
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.activeSubscription);
87328
+ if (error)
87329
+ return "activeSubscription." + error;
87330
+ }
87276
87331
  return null;
87277
87332
  };
87278
87333
 
@@ -87309,6 +87364,11 @@ $root.OrganizationSubscriptionCreated = (function() {
87309
87364
  throw TypeError(".OrganizationSubscriptionCreated.subscription: object expected");
87310
87365
  message.subscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.subscription);
87311
87366
  }
87367
+ if (object.activeSubscription != null) {
87368
+ if (typeof object.activeSubscription !== "object")
87369
+ throw TypeError(".OrganizationSubscriptionCreated.activeSubscription: object expected");
87370
+ message.activeSubscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.activeSubscription);
87371
+ }
87312
87372
  return message;
87313
87373
  };
87314
87374
 
@@ -87334,6 +87394,7 @@ $root.OrganizationSubscriptionCreated = (function() {
87334
87394
  object.dashboardUserId = 0;
87335
87395
  object.organization = null;
87336
87396
  object.subscription = null;
87397
+ object.activeSubscription = null;
87337
87398
  }
87338
87399
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
87339
87400
  if (typeof message.timestamp === "number")
@@ -87346,6 +87407,8 @@ $root.OrganizationSubscriptionCreated = (function() {
87346
87407
  object.organization = $root.b2b.Organization.toObject(message.organization, options);
87347
87408
  if (message.subscription != null && message.hasOwnProperty("subscription"))
87348
87409
  object.subscription = $root.b2b.B2BSubscriptionManagement.toObject(message.subscription, options);
87410
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription"))
87411
+ object.activeSubscription = $root.b2b.B2BSubscriptionManagement.toObject(message.activeSubscription, options);
87349
87412
  return object;
87350
87413
  };
87351
87414
 
@@ -87651,6 +87714,7 @@ $root.OrganizationSubscriptionAmended = (function() {
87651
87714
  * @property {number|null} [dashboardUserId] OrganizationSubscriptionAmended dashboardUserId
87652
87715
  * @property {b2b.IOrganization|null} [organization] OrganizationSubscriptionAmended organization
87653
87716
  * @property {b2b.IB2BSubscriptionManagement|null} [subscription] OrganizationSubscriptionAmended subscription
87717
+ * @property {b2b.IB2BSubscriptionManagement|null} [activeSubscription] OrganizationSubscriptionAmended activeSubscription
87654
87718
  */
87655
87719
 
87656
87720
  /**
@@ -87700,6 +87764,14 @@ $root.OrganizationSubscriptionAmended = (function() {
87700
87764
  */
87701
87765
  OrganizationSubscriptionAmended.prototype.subscription = null;
87702
87766
 
87767
+ /**
87768
+ * OrganizationSubscriptionAmended activeSubscription.
87769
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} activeSubscription
87770
+ * @memberof OrganizationSubscriptionAmended
87771
+ * @instance
87772
+ */
87773
+ OrganizationSubscriptionAmended.prototype.activeSubscription = null;
87774
+
87703
87775
  /**
87704
87776
  * Creates a new OrganizationSubscriptionAmended instance using the specified properties.
87705
87777
  * @function create
@@ -87732,6 +87804,8 @@ $root.OrganizationSubscriptionAmended = (function() {
87732
87804
  $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
87733
87805
  if (message.subscription != null && message.hasOwnProperty("subscription"))
87734
87806
  $root.b2b.B2BSubscriptionManagement.encode(message.subscription, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
87807
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription"))
87808
+ $root.b2b.B2BSubscriptionManagement.encode(message.activeSubscription, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
87735
87809
  return writer;
87736
87810
  };
87737
87811
 
@@ -87778,6 +87852,9 @@ $root.OrganizationSubscriptionAmended = (function() {
87778
87852
  case 4:
87779
87853
  message.subscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
87780
87854
  break;
87855
+ case 5:
87856
+ message.activeSubscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
87857
+ break;
87781
87858
  default:
87782
87859
  reader.skipType(tag & 7);
87783
87860
  break;
@@ -87829,6 +87906,11 @@ $root.OrganizationSubscriptionAmended = (function() {
87829
87906
  if (error)
87830
87907
  return "subscription." + error;
87831
87908
  }
87909
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription")) {
87910
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.activeSubscription);
87911
+ if (error)
87912
+ return "activeSubscription." + error;
87913
+ }
87832
87914
  return null;
87833
87915
  };
87834
87916
 
@@ -87865,6 +87947,11 @@ $root.OrganizationSubscriptionAmended = (function() {
87865
87947
  throw TypeError(".OrganizationSubscriptionAmended.subscription: object expected");
87866
87948
  message.subscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.subscription);
87867
87949
  }
87950
+ if (object.activeSubscription != null) {
87951
+ if (typeof object.activeSubscription !== "object")
87952
+ throw TypeError(".OrganizationSubscriptionAmended.activeSubscription: object expected");
87953
+ message.activeSubscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.activeSubscription);
87954
+ }
87868
87955
  return message;
87869
87956
  };
87870
87957
 
@@ -87890,6 +87977,7 @@ $root.OrganizationSubscriptionAmended = (function() {
87890
87977
  object.dashboardUserId = 0;
87891
87978
  object.organization = null;
87892
87979
  object.subscription = null;
87980
+ object.activeSubscription = null;
87893
87981
  }
87894
87982
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
87895
87983
  if (typeof message.timestamp === "number")
@@ -87902,6 +87990,8 @@ $root.OrganizationSubscriptionAmended = (function() {
87902
87990
  object.organization = $root.b2b.Organization.toObject(message.organization, options);
87903
87991
  if (message.subscription != null && message.hasOwnProperty("subscription"))
87904
87992
  object.subscription = $root.b2b.B2BSubscriptionManagement.toObject(message.subscription, options);
87993
+ if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription"))
87994
+ object.activeSubscription = $root.b2b.B2BSubscriptionManagement.toObject(message.activeSubscription, options);
87905
87995
  return object;
87906
87996
  };
87907
87997
 
@@ -99077,6 +99167,7 @@ $root.GoalActivityIncreased = (function() {
99077
99167
  * @interface IGoalActivityIncreased
99078
99168
  * @property {number|null} [goalDaysCompleted] GoalActivityIncreased goalDaysCompleted
99079
99169
  * @property {string|null} [hsUserId] GoalActivityIncreased hsUserId
99170
+ * @property {number|Long|null} [timestamp] GoalActivityIncreased timestamp
99080
99171
  */
99081
99172
 
99082
99173
  /**
@@ -99110,6 +99201,14 @@ $root.GoalActivityIncreased = (function() {
99110
99201
  */
99111
99202
  GoalActivityIncreased.prototype.hsUserId = "";
99112
99203
 
99204
+ /**
99205
+ * GoalActivityIncreased timestamp.
99206
+ * @member {number|Long} timestamp
99207
+ * @memberof GoalActivityIncreased
99208
+ * @instance
99209
+ */
99210
+ GoalActivityIncreased.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
99211
+
99113
99212
  /**
99114
99213
  * Creates a new GoalActivityIncreased instance using the specified properties.
99115
99214
  * @function create
@@ -99138,6 +99237,8 @@ $root.GoalActivityIncreased = (function() {
99138
99237
  writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.goalDaysCompleted);
99139
99238
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
99140
99239
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
99240
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
99241
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
99141
99242
  return writer;
99142
99243
  };
99143
99244
 
@@ -99178,6 +99279,9 @@ $root.GoalActivityIncreased = (function() {
99178
99279
  case 2:
99179
99280
  message.hsUserId = reader.string();
99180
99281
  break;
99282
+ case 3:
99283
+ message.timestamp = reader.uint64();
99284
+ break;
99181
99285
  default:
99182
99286
  reader.skipType(tag & 7);
99183
99287
  break;
@@ -99219,6 +99323,9 @@ $root.GoalActivityIncreased = (function() {
99219
99323
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
99220
99324
  if (!$util.isString(message.hsUserId))
99221
99325
  return "hsUserId: string expected";
99326
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
99327
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
99328
+ return "timestamp: integer|Long expected";
99222
99329
  return null;
99223
99330
  };
99224
99331
 
@@ -99238,6 +99345,15 @@ $root.GoalActivityIncreased = (function() {
99238
99345
  message.goalDaysCompleted = object.goalDaysCompleted >>> 0;
99239
99346
  if (object.hsUserId != null)
99240
99347
  message.hsUserId = String(object.hsUserId);
99348
+ if (object.timestamp != null)
99349
+ if ($util.Long)
99350
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
99351
+ else if (typeof object.timestamp === "string")
99352
+ message.timestamp = parseInt(object.timestamp, 10);
99353
+ else if (typeof object.timestamp === "number")
99354
+ message.timestamp = object.timestamp;
99355
+ else if (typeof object.timestamp === "object")
99356
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
99241
99357
  return message;
99242
99358
  };
99243
99359
 
@@ -99257,11 +99373,21 @@ $root.GoalActivityIncreased = (function() {
99257
99373
  if (options.defaults) {
99258
99374
  object.goalDaysCompleted = 0;
99259
99375
  object.hsUserId = "";
99376
+ if ($util.Long) {
99377
+ var long = new $util.Long(0, 0, true);
99378
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
99379
+ } else
99380
+ object.timestamp = options.longs === String ? "0" : 0;
99260
99381
  }
99261
99382
  if (message.goalDaysCompleted != null && message.hasOwnProperty("goalDaysCompleted"))
99262
99383
  object.goalDaysCompleted = message.goalDaysCompleted;
99263
99384
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
99264
99385
  object.hsUserId = message.hsUserId;
99386
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
99387
+ if (typeof message.timestamp === "number")
99388
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
99389
+ else
99390
+ 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;
99265
99391
  return object;
99266
99392
  };
99267
99393
 
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.458.0"
19
+ "version": "1.460.0"
20
20
  }