@headspace/protos-events 1.455.0 → 1.457.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
@@ -31190,6 +31190,108 @@ export class OrganizationUpdated implements IOrganizationUpdated {
31190
31190
  public toJSON(): { [k: string]: any };
31191
31191
  }
31192
31192
 
31193
+ /** Properties of an OrganizationDeleted. */
31194
+ export interface IOrganizationDeleted {
31195
+
31196
+ /** OrganizationDeleted dashboardUserId */
31197
+ dashboardUserId?: (number|null);
31198
+
31199
+ /** OrganizationDeleted timestamp */
31200
+ timestamp?: (number|Long|null);
31201
+
31202
+ /** OrganizationDeleted organization */
31203
+ organization?: (b2b.IOrganization|null);
31204
+ }
31205
+
31206
+ /** Represents an OrganizationDeleted. */
31207
+ export class OrganizationDeleted implements IOrganizationDeleted {
31208
+
31209
+ /**
31210
+ * Constructs a new OrganizationDeleted.
31211
+ * @param [properties] Properties to set
31212
+ */
31213
+ constructor(properties?: IOrganizationDeleted);
31214
+
31215
+ /** OrganizationDeleted dashboardUserId. */
31216
+ public dashboardUserId: number;
31217
+
31218
+ /** OrganizationDeleted timestamp. */
31219
+ public timestamp: (number|Long);
31220
+
31221
+ /** OrganizationDeleted organization. */
31222
+ public organization?: (b2b.IOrganization|null);
31223
+
31224
+ /**
31225
+ * Creates a new OrganizationDeleted instance using the specified properties.
31226
+ * @param [properties] Properties to set
31227
+ * @returns OrganizationDeleted instance
31228
+ */
31229
+ public static create(properties?: IOrganizationDeleted): OrganizationDeleted;
31230
+
31231
+ /**
31232
+ * Encodes the specified OrganizationDeleted message. Does not implicitly {@link OrganizationDeleted.verify|verify} messages.
31233
+ * @param message OrganizationDeleted message or plain object to encode
31234
+ * @param [writer] Writer to encode to
31235
+ * @returns Writer
31236
+ */
31237
+ public static encode(message: IOrganizationDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
31238
+
31239
+ /**
31240
+ * Encodes the specified OrganizationDeleted message, length delimited. Does not implicitly {@link OrganizationDeleted.verify|verify} messages.
31241
+ * @param message OrganizationDeleted message or plain object to encode
31242
+ * @param [writer] Writer to encode to
31243
+ * @returns Writer
31244
+ */
31245
+ public static encodeDelimited(message: IOrganizationDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
31246
+
31247
+ /**
31248
+ * Decodes an OrganizationDeleted message from the specified reader or buffer.
31249
+ * @param reader Reader or buffer to decode from
31250
+ * @param [length] Message length if known beforehand
31251
+ * @returns OrganizationDeleted
31252
+ * @throws {Error} If the payload is not a reader or valid buffer
31253
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31254
+ */
31255
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OrganizationDeleted;
31256
+
31257
+ /**
31258
+ * Decodes an OrganizationDeleted message from the specified reader or buffer, length delimited.
31259
+ * @param reader Reader or buffer to decode from
31260
+ * @returns OrganizationDeleted
31261
+ * @throws {Error} If the payload is not a reader or valid buffer
31262
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31263
+ */
31264
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OrganizationDeleted;
31265
+
31266
+ /**
31267
+ * Verifies an OrganizationDeleted message.
31268
+ * @param message Plain object to verify
31269
+ * @returns `null` if valid, otherwise the reason why it is not
31270
+ */
31271
+ public static verify(message: { [k: string]: any }): (string|null);
31272
+
31273
+ /**
31274
+ * Creates an OrganizationDeleted message from a plain object. Also converts values to their respective internal types.
31275
+ * @param object Plain object
31276
+ * @returns OrganizationDeleted
31277
+ */
31278
+ public static fromObject(object: { [k: string]: any }): OrganizationDeleted;
31279
+
31280
+ /**
31281
+ * Creates a plain object from an OrganizationDeleted message. Also converts values to other types if specified.
31282
+ * @param message OrganizationDeleted
31283
+ * @param [options] Conversion options
31284
+ * @returns Plain object
31285
+ */
31286
+ public static toObject(message: OrganizationDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
31287
+
31288
+ /**
31289
+ * Converts this OrganizationDeleted to JSON.
31290
+ * @returns JSON object
31291
+ */
31292
+ public toJSON(): { [k: string]: any };
31293
+ }
31294
+
31193
31295
  /** Properties of an OrganizationMFAUpdated. */
31194
31296
  export interface IOrganizationMFAUpdated {
31195
31297
 
@@ -35109,6 +35211,12 @@ export interface IGoalSet {
35109
35211
 
35110
35212
  /** GoalSet goalDaysCompleted */
35111
35213
  goalDaysCompleted?: (number|null);
35214
+
35215
+ /** GoalSet timestamp */
35216
+ timestamp?: (number|Long|null);
35217
+
35218
+ /** GoalSet hsUserId */
35219
+ hsUserId?: (string|null);
35112
35220
  }
35113
35221
 
35114
35222
  /** Represents a GoalSet. */
@@ -35129,6 +35237,12 @@ export class GoalSet implements IGoalSet {
35129
35237
  /** GoalSet goalDaysCompleted. */
35130
35238
  public goalDaysCompleted: number;
35131
35239
 
35240
+ /** GoalSet timestamp. */
35241
+ public timestamp: (number|Long);
35242
+
35243
+ /** GoalSet hsUserId. */
35244
+ public hsUserId: string;
35245
+
35132
35246
  /**
35133
35247
  * Creates a new GoalSet instance using the specified properties.
35134
35248
  * @param [properties] Properties to set
@@ -35205,6 +35319,9 @@ export interface IGoalActivityIncreased {
35205
35319
 
35206
35320
  /** GoalActivityIncreased goalDaysCompleted */
35207
35321
  goalDaysCompleted?: (number|null);
35322
+
35323
+ /** GoalActivityIncreased hsUserId */
35324
+ hsUserId?: (string|null);
35208
35325
  }
35209
35326
 
35210
35327
  /** Represents a GoalActivityIncreased. */
@@ -35219,6 +35336,9 @@ export class GoalActivityIncreased implements IGoalActivityIncreased {
35219
35336
  /** GoalActivityIncreased goalDaysCompleted. */
35220
35337
  public goalDaysCompleted: number;
35221
35338
 
35339
+ /** GoalActivityIncreased hsUserId. */
35340
+ public hsUserId: string;
35341
+
35222
35342
  /**
35223
35343
  * Creates a new GoalActivityIncreased instance using the specified properties.
35224
35344
  * @param [properties] Properties to set
@@ -35292,6 +35412,12 @@ export class GoalActivityIncreased implements IGoalActivityIncreased {
35292
35412
 
35293
35413
  /** Properties of a GoalReflectionCompleted. */
35294
35414
  export interface IGoalReflectionCompleted {
35415
+
35416
+ /** GoalReflectionCompleted timestamp */
35417
+ timestamp?: (number|Long|null);
35418
+
35419
+ /** GoalReflectionCompleted hsUserId */
35420
+ hsUserId?: (string|null);
35295
35421
  }
35296
35422
 
35297
35423
  /** Represents a GoalReflectionCompleted. */
@@ -35303,6 +35429,12 @@ export class GoalReflectionCompleted implements IGoalReflectionCompleted {
35303
35429
  */
35304
35430
  constructor(properties?: IGoalReflectionCompleted);
35305
35431
 
35432
+ /** GoalReflectionCompleted timestamp. */
35433
+ public timestamp: (number|Long);
35434
+
35435
+ /** GoalReflectionCompleted hsUserId. */
35436
+ public hsUserId: string;
35437
+
35306
35438
  /**
35307
35439
  * Creates a new GoalReflectionCompleted instance using the specified properties.
35308
35440
  * @param [properties] Properties to set
@@ -35376,6 +35508,12 @@ export class GoalReflectionCompleted implements IGoalReflectionCompleted {
35376
35508
 
35377
35509
  /** Properties of a GoalCompleted. */
35378
35510
  export interface IGoalCompleted {
35511
+
35512
+ /** GoalCompleted timestamp */
35513
+ timestamp?: (number|Long|null);
35514
+
35515
+ /** GoalCompleted hsUserId */
35516
+ hsUserId?: (string|null);
35379
35517
  }
35380
35518
 
35381
35519
  /** Represents a GoalCompleted. */
@@ -35387,6 +35525,12 @@ export class GoalCompleted implements IGoalCompleted {
35387
35525
  */
35388
35526
  constructor(properties?: IGoalCompleted);
35389
35527
 
35528
+ /** GoalCompleted timestamp. */
35529
+ public timestamp: (number|Long);
35530
+
35531
+ /** GoalCompleted hsUserId. */
35532
+ public hsUserId: string;
35533
+
35390
35534
  /**
35391
35535
  * Creates a new GoalCompleted instance using the specified properties.
35392
35536
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -86605,6 +86605,257 @@ $root.OrganizationUpdated = (function() {
86605
86605
  return OrganizationUpdated;
86606
86606
  })();
86607
86607
 
86608
+ $root.OrganizationDeleted = (function() {
86609
+
86610
+ /**
86611
+ * Properties of an OrganizationDeleted.
86612
+ * @exports IOrganizationDeleted
86613
+ * @interface IOrganizationDeleted
86614
+ * @property {number|null} [dashboardUserId] OrganizationDeleted dashboardUserId
86615
+ * @property {number|Long|null} [timestamp] OrganizationDeleted timestamp
86616
+ * @property {b2b.IOrganization|null} [organization] OrganizationDeleted organization
86617
+ */
86618
+
86619
+ /**
86620
+ * Constructs a new OrganizationDeleted.
86621
+ * @exports OrganizationDeleted
86622
+ * @classdesc Represents an OrganizationDeleted.
86623
+ * @implements IOrganizationDeleted
86624
+ * @constructor
86625
+ * @param {IOrganizationDeleted=} [properties] Properties to set
86626
+ */
86627
+ function OrganizationDeleted(properties) {
86628
+ if (properties)
86629
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
86630
+ if (properties[keys[i]] != null)
86631
+ this[keys[i]] = properties[keys[i]];
86632
+ }
86633
+
86634
+ /**
86635
+ * OrganizationDeleted dashboardUserId.
86636
+ * @member {number} dashboardUserId
86637
+ * @memberof OrganizationDeleted
86638
+ * @instance
86639
+ */
86640
+ OrganizationDeleted.prototype.dashboardUserId = 0;
86641
+
86642
+ /**
86643
+ * OrganizationDeleted timestamp.
86644
+ * @member {number|Long} timestamp
86645
+ * @memberof OrganizationDeleted
86646
+ * @instance
86647
+ */
86648
+ OrganizationDeleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
86649
+
86650
+ /**
86651
+ * OrganizationDeleted organization.
86652
+ * @member {b2b.IOrganization|null|undefined} organization
86653
+ * @memberof OrganizationDeleted
86654
+ * @instance
86655
+ */
86656
+ OrganizationDeleted.prototype.organization = null;
86657
+
86658
+ /**
86659
+ * Creates a new OrganizationDeleted instance using the specified properties.
86660
+ * @function create
86661
+ * @memberof OrganizationDeleted
86662
+ * @static
86663
+ * @param {IOrganizationDeleted=} [properties] Properties to set
86664
+ * @returns {OrganizationDeleted} OrganizationDeleted instance
86665
+ */
86666
+ OrganizationDeleted.create = function create(properties) {
86667
+ return new OrganizationDeleted(properties);
86668
+ };
86669
+
86670
+ /**
86671
+ * Encodes the specified OrganizationDeleted message. Does not implicitly {@link OrganizationDeleted.verify|verify} messages.
86672
+ * @function encode
86673
+ * @memberof OrganizationDeleted
86674
+ * @static
86675
+ * @param {IOrganizationDeleted} message OrganizationDeleted message or plain object to encode
86676
+ * @param {$protobuf.Writer} [writer] Writer to encode to
86677
+ * @returns {$protobuf.Writer} Writer
86678
+ */
86679
+ OrganizationDeleted.encode = function encode(message, writer) {
86680
+ if (!writer)
86681
+ writer = $Writer.create();
86682
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
86683
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.dashboardUserId);
86684
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
86685
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
86686
+ if (message.organization != null && message.hasOwnProperty("organization"))
86687
+ $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
86688
+ return writer;
86689
+ };
86690
+
86691
+ /**
86692
+ * Encodes the specified OrganizationDeleted message, length delimited. Does not implicitly {@link OrganizationDeleted.verify|verify} messages.
86693
+ * @function encodeDelimited
86694
+ * @memberof OrganizationDeleted
86695
+ * @static
86696
+ * @param {IOrganizationDeleted} message OrganizationDeleted message or plain object to encode
86697
+ * @param {$protobuf.Writer} [writer] Writer to encode to
86698
+ * @returns {$protobuf.Writer} Writer
86699
+ */
86700
+ OrganizationDeleted.encodeDelimited = function encodeDelimited(message, writer) {
86701
+ return this.encode(message, writer).ldelim();
86702
+ };
86703
+
86704
+ /**
86705
+ * Decodes an OrganizationDeleted message from the specified reader or buffer.
86706
+ * @function decode
86707
+ * @memberof OrganizationDeleted
86708
+ * @static
86709
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
86710
+ * @param {number} [length] Message length if known beforehand
86711
+ * @returns {OrganizationDeleted} OrganizationDeleted
86712
+ * @throws {Error} If the payload is not a reader or valid buffer
86713
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
86714
+ */
86715
+ OrganizationDeleted.decode = function decode(reader, length) {
86716
+ if (!(reader instanceof $Reader))
86717
+ reader = $Reader.create(reader);
86718
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationDeleted();
86719
+ while (reader.pos < end) {
86720
+ var tag = reader.uint32();
86721
+ switch (tag >>> 3) {
86722
+ case 1:
86723
+ message.dashboardUserId = reader.uint32();
86724
+ break;
86725
+ case 2:
86726
+ message.timestamp = reader.uint64();
86727
+ break;
86728
+ case 3:
86729
+ message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
86730
+ break;
86731
+ default:
86732
+ reader.skipType(tag & 7);
86733
+ break;
86734
+ }
86735
+ }
86736
+ return message;
86737
+ };
86738
+
86739
+ /**
86740
+ * Decodes an OrganizationDeleted message from the specified reader or buffer, length delimited.
86741
+ * @function decodeDelimited
86742
+ * @memberof OrganizationDeleted
86743
+ * @static
86744
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
86745
+ * @returns {OrganizationDeleted} OrganizationDeleted
86746
+ * @throws {Error} If the payload is not a reader or valid buffer
86747
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
86748
+ */
86749
+ OrganizationDeleted.decodeDelimited = function decodeDelimited(reader) {
86750
+ if (!(reader instanceof $Reader))
86751
+ reader = new $Reader(reader);
86752
+ return this.decode(reader, reader.uint32());
86753
+ };
86754
+
86755
+ /**
86756
+ * Verifies an OrganizationDeleted message.
86757
+ * @function verify
86758
+ * @memberof OrganizationDeleted
86759
+ * @static
86760
+ * @param {Object.<string,*>} message Plain object to verify
86761
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
86762
+ */
86763
+ OrganizationDeleted.verify = function verify(message) {
86764
+ if (typeof message !== "object" || message === null)
86765
+ return "object expected";
86766
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
86767
+ if (!$util.isInteger(message.dashboardUserId))
86768
+ return "dashboardUserId: integer expected";
86769
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
86770
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
86771
+ return "timestamp: integer|Long expected";
86772
+ if (message.organization != null && message.hasOwnProperty("organization")) {
86773
+ var error = $root.b2b.Organization.verify(message.organization);
86774
+ if (error)
86775
+ return "organization." + error;
86776
+ }
86777
+ return null;
86778
+ };
86779
+
86780
+ /**
86781
+ * Creates an OrganizationDeleted message from a plain object. Also converts values to their respective internal types.
86782
+ * @function fromObject
86783
+ * @memberof OrganizationDeleted
86784
+ * @static
86785
+ * @param {Object.<string,*>} object Plain object
86786
+ * @returns {OrganizationDeleted} OrganizationDeleted
86787
+ */
86788
+ OrganizationDeleted.fromObject = function fromObject(object) {
86789
+ if (object instanceof $root.OrganizationDeleted)
86790
+ return object;
86791
+ var message = new $root.OrganizationDeleted();
86792
+ if (object.dashboardUserId != null)
86793
+ message.dashboardUserId = object.dashboardUserId >>> 0;
86794
+ if (object.timestamp != null)
86795
+ if ($util.Long)
86796
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
86797
+ else if (typeof object.timestamp === "string")
86798
+ message.timestamp = parseInt(object.timestamp, 10);
86799
+ else if (typeof object.timestamp === "number")
86800
+ message.timestamp = object.timestamp;
86801
+ else if (typeof object.timestamp === "object")
86802
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
86803
+ if (object.organization != null) {
86804
+ if (typeof object.organization !== "object")
86805
+ throw TypeError(".OrganizationDeleted.organization: object expected");
86806
+ message.organization = $root.b2b.Organization.fromObject(object.organization);
86807
+ }
86808
+ return message;
86809
+ };
86810
+
86811
+ /**
86812
+ * Creates a plain object from an OrganizationDeleted message. Also converts values to other types if specified.
86813
+ * @function toObject
86814
+ * @memberof OrganizationDeleted
86815
+ * @static
86816
+ * @param {OrganizationDeleted} message OrganizationDeleted
86817
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
86818
+ * @returns {Object.<string,*>} Plain object
86819
+ */
86820
+ OrganizationDeleted.toObject = function toObject(message, options) {
86821
+ if (!options)
86822
+ options = {};
86823
+ var object = {};
86824
+ if (options.defaults) {
86825
+ object.dashboardUserId = 0;
86826
+ if ($util.Long) {
86827
+ var long = new $util.Long(0, 0, true);
86828
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
86829
+ } else
86830
+ object.timestamp = options.longs === String ? "0" : 0;
86831
+ object.organization = null;
86832
+ }
86833
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
86834
+ object.dashboardUserId = message.dashboardUserId;
86835
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
86836
+ if (typeof message.timestamp === "number")
86837
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
86838
+ else
86839
+ 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;
86840
+ if (message.organization != null && message.hasOwnProperty("organization"))
86841
+ object.organization = $root.b2b.Organization.toObject(message.organization, options);
86842
+ return object;
86843
+ };
86844
+
86845
+ /**
86846
+ * Converts this OrganizationDeleted to JSON.
86847
+ * @function toJSON
86848
+ * @memberof OrganizationDeleted
86849
+ * @instance
86850
+ * @returns {Object.<string,*>} JSON object
86851
+ */
86852
+ OrganizationDeleted.prototype.toJSON = function toJSON() {
86853
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
86854
+ };
86855
+
86856
+ return OrganizationDeleted;
86857
+ })();
86858
+
86608
86859
  $root.OrganizationMFAUpdated = (function() {
86609
86860
 
86610
86861
  /**
@@ -98194,6 +98445,8 @@ $root.GoalSet = (function() {
98194
98445
  * @property {GoalFocusArea|null} [goalFocusArea] GoalSet goalFocusArea
98195
98446
  * @property {number|null} [goalCommittedCount] GoalSet goalCommittedCount
98196
98447
  * @property {number|null} [goalDaysCompleted] GoalSet goalDaysCompleted
98448
+ * @property {number|Long|null} [timestamp] GoalSet timestamp
98449
+ * @property {string|null} [hsUserId] GoalSet hsUserId
98197
98450
  */
98198
98451
 
98199
98452
  /**
@@ -98235,6 +98488,22 @@ $root.GoalSet = (function() {
98235
98488
  */
98236
98489
  GoalSet.prototype.goalDaysCompleted = 0;
98237
98490
 
98491
+ /**
98492
+ * GoalSet timestamp.
98493
+ * @member {number|Long} timestamp
98494
+ * @memberof GoalSet
98495
+ * @instance
98496
+ */
98497
+ GoalSet.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
98498
+
98499
+ /**
98500
+ * GoalSet hsUserId.
98501
+ * @member {string} hsUserId
98502
+ * @memberof GoalSet
98503
+ * @instance
98504
+ */
98505
+ GoalSet.prototype.hsUserId = "";
98506
+
98238
98507
  /**
98239
98508
  * Creates a new GoalSet instance using the specified properties.
98240
98509
  * @function create
@@ -98265,6 +98534,10 @@ $root.GoalSet = (function() {
98265
98534
  writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.goalCommittedCount);
98266
98535
  if (message.goalDaysCompleted != null && message.hasOwnProperty("goalDaysCompleted"))
98267
98536
  writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.goalDaysCompleted);
98537
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
98538
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp);
98539
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
98540
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.hsUserId);
98268
98541
  return writer;
98269
98542
  };
98270
98543
 
@@ -98308,6 +98581,12 @@ $root.GoalSet = (function() {
98308
98581
  case 3:
98309
98582
  message.goalDaysCompleted = reader.uint32();
98310
98583
  break;
98584
+ case 4:
98585
+ message.timestamp = reader.uint64();
98586
+ break;
98587
+ case 5:
98588
+ message.hsUserId = reader.string();
98589
+ break;
98311
98590
  default:
98312
98591
  reader.skipType(tag & 7);
98313
98592
  break;
@@ -98362,6 +98641,12 @@ $root.GoalSet = (function() {
98362
98641
  if (message.goalDaysCompleted != null && message.hasOwnProperty("goalDaysCompleted"))
98363
98642
  if (!$util.isInteger(message.goalDaysCompleted))
98364
98643
  return "goalDaysCompleted: integer expected";
98644
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
98645
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
98646
+ return "timestamp: integer|Long expected";
98647
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
98648
+ if (!$util.isString(message.hsUserId))
98649
+ return "hsUserId: string expected";
98365
98650
  return null;
98366
98651
  };
98367
98652
 
@@ -98411,6 +98696,17 @@ $root.GoalSet = (function() {
98411
98696
  message.goalCommittedCount = object.goalCommittedCount >>> 0;
98412
98697
  if (object.goalDaysCompleted != null)
98413
98698
  message.goalDaysCompleted = object.goalDaysCompleted >>> 0;
98699
+ if (object.timestamp != null)
98700
+ if ($util.Long)
98701
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
98702
+ else if (typeof object.timestamp === "string")
98703
+ message.timestamp = parseInt(object.timestamp, 10);
98704
+ else if (typeof object.timestamp === "number")
98705
+ message.timestamp = object.timestamp;
98706
+ else if (typeof object.timestamp === "object")
98707
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
98708
+ if (object.hsUserId != null)
98709
+ message.hsUserId = String(object.hsUserId);
98414
98710
  return message;
98415
98711
  };
98416
98712
 
@@ -98431,6 +98727,12 @@ $root.GoalSet = (function() {
98431
98727
  object.goalFocusArea = options.enums === String ? "GOAL_TYPE_UNKNOWN" : 0;
98432
98728
  object.goalCommittedCount = 0;
98433
98729
  object.goalDaysCompleted = 0;
98730
+ if ($util.Long) {
98731
+ var long = new $util.Long(0, 0, true);
98732
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
98733
+ } else
98734
+ object.timestamp = options.longs === String ? "0" : 0;
98735
+ object.hsUserId = "";
98434
98736
  }
98435
98737
  if (message.goalFocusArea != null && message.hasOwnProperty("goalFocusArea"))
98436
98738
  object.goalFocusArea = options.enums === String ? $root.GoalFocusArea[message.goalFocusArea] : message.goalFocusArea;
@@ -98438,6 +98740,13 @@ $root.GoalSet = (function() {
98438
98740
  object.goalCommittedCount = message.goalCommittedCount;
98439
98741
  if (message.goalDaysCompleted != null && message.hasOwnProperty("goalDaysCompleted"))
98440
98742
  object.goalDaysCompleted = message.goalDaysCompleted;
98743
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
98744
+ if (typeof message.timestamp === "number")
98745
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
98746
+ else
98747
+ 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;
98748
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
98749
+ object.hsUserId = message.hsUserId;
98441
98750
  return object;
98442
98751
  };
98443
98752
 
@@ -98462,6 +98771,7 @@ $root.GoalActivityIncreased = (function() {
98462
98771
  * @exports IGoalActivityIncreased
98463
98772
  * @interface IGoalActivityIncreased
98464
98773
  * @property {number|null} [goalDaysCompleted] GoalActivityIncreased goalDaysCompleted
98774
+ * @property {string|null} [hsUserId] GoalActivityIncreased hsUserId
98465
98775
  */
98466
98776
 
98467
98777
  /**
@@ -98487,6 +98797,14 @@ $root.GoalActivityIncreased = (function() {
98487
98797
  */
98488
98798
  GoalActivityIncreased.prototype.goalDaysCompleted = 0;
98489
98799
 
98800
+ /**
98801
+ * GoalActivityIncreased hsUserId.
98802
+ * @member {string} hsUserId
98803
+ * @memberof GoalActivityIncreased
98804
+ * @instance
98805
+ */
98806
+ GoalActivityIncreased.prototype.hsUserId = "";
98807
+
98490
98808
  /**
98491
98809
  * Creates a new GoalActivityIncreased instance using the specified properties.
98492
98810
  * @function create
@@ -98513,6 +98831,8 @@ $root.GoalActivityIncreased = (function() {
98513
98831
  writer = $Writer.create();
98514
98832
  if (message.goalDaysCompleted != null && message.hasOwnProperty("goalDaysCompleted"))
98515
98833
  writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.goalDaysCompleted);
98834
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
98835
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
98516
98836
  return writer;
98517
98837
  };
98518
98838
 
@@ -98550,6 +98870,9 @@ $root.GoalActivityIncreased = (function() {
98550
98870
  case 1:
98551
98871
  message.goalDaysCompleted = reader.uint32();
98552
98872
  break;
98873
+ case 2:
98874
+ message.hsUserId = reader.string();
98875
+ break;
98553
98876
  default:
98554
98877
  reader.skipType(tag & 7);
98555
98878
  break;
@@ -98588,6 +98911,9 @@ $root.GoalActivityIncreased = (function() {
98588
98911
  if (message.goalDaysCompleted != null && message.hasOwnProperty("goalDaysCompleted"))
98589
98912
  if (!$util.isInteger(message.goalDaysCompleted))
98590
98913
  return "goalDaysCompleted: integer expected";
98914
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
98915
+ if (!$util.isString(message.hsUserId))
98916
+ return "hsUserId: string expected";
98591
98917
  return null;
98592
98918
  };
98593
98919
 
@@ -98605,6 +98931,8 @@ $root.GoalActivityIncreased = (function() {
98605
98931
  var message = new $root.GoalActivityIncreased();
98606
98932
  if (object.goalDaysCompleted != null)
98607
98933
  message.goalDaysCompleted = object.goalDaysCompleted >>> 0;
98934
+ if (object.hsUserId != null)
98935
+ message.hsUserId = String(object.hsUserId);
98608
98936
  return message;
98609
98937
  };
98610
98938
 
@@ -98621,10 +98949,14 @@ $root.GoalActivityIncreased = (function() {
98621
98949
  if (!options)
98622
98950
  options = {};
98623
98951
  var object = {};
98624
- if (options.defaults)
98952
+ if (options.defaults) {
98625
98953
  object.goalDaysCompleted = 0;
98954
+ object.hsUserId = "";
98955
+ }
98626
98956
  if (message.goalDaysCompleted != null && message.hasOwnProperty("goalDaysCompleted"))
98627
98957
  object.goalDaysCompleted = message.goalDaysCompleted;
98958
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
98959
+ object.hsUserId = message.hsUserId;
98628
98960
  return object;
98629
98961
  };
98630
98962
 
@@ -98648,6 +98980,8 @@ $root.GoalReflectionCompleted = (function() {
98648
98980
  * Properties of a GoalReflectionCompleted.
98649
98981
  * @exports IGoalReflectionCompleted
98650
98982
  * @interface IGoalReflectionCompleted
98983
+ * @property {number|Long|null} [timestamp] GoalReflectionCompleted timestamp
98984
+ * @property {string|null} [hsUserId] GoalReflectionCompleted hsUserId
98651
98985
  */
98652
98986
 
98653
98987
  /**
@@ -98665,6 +98999,22 @@ $root.GoalReflectionCompleted = (function() {
98665
98999
  this[keys[i]] = properties[keys[i]];
98666
99000
  }
98667
99001
 
99002
+ /**
99003
+ * GoalReflectionCompleted timestamp.
99004
+ * @member {number|Long} timestamp
99005
+ * @memberof GoalReflectionCompleted
99006
+ * @instance
99007
+ */
99008
+ GoalReflectionCompleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
99009
+
99010
+ /**
99011
+ * GoalReflectionCompleted hsUserId.
99012
+ * @member {string} hsUserId
99013
+ * @memberof GoalReflectionCompleted
99014
+ * @instance
99015
+ */
99016
+ GoalReflectionCompleted.prototype.hsUserId = "";
99017
+
98668
99018
  /**
98669
99019
  * Creates a new GoalReflectionCompleted instance using the specified properties.
98670
99020
  * @function create
@@ -98689,6 +99039,10 @@ $root.GoalReflectionCompleted = (function() {
98689
99039
  GoalReflectionCompleted.encode = function encode(message, writer) {
98690
99040
  if (!writer)
98691
99041
  writer = $Writer.create();
99042
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
99043
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
99044
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
99045
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
98692
99046
  return writer;
98693
99047
  };
98694
99048
 
@@ -98723,6 +99077,12 @@ $root.GoalReflectionCompleted = (function() {
98723
99077
  while (reader.pos < end) {
98724
99078
  var tag = reader.uint32();
98725
99079
  switch (tag >>> 3) {
99080
+ case 1:
99081
+ message.timestamp = reader.uint64();
99082
+ break;
99083
+ case 2:
99084
+ message.hsUserId = reader.string();
99085
+ break;
98726
99086
  default:
98727
99087
  reader.skipType(tag & 7);
98728
99088
  break;
@@ -98758,6 +99118,12 @@ $root.GoalReflectionCompleted = (function() {
98758
99118
  GoalReflectionCompleted.verify = function verify(message) {
98759
99119
  if (typeof message !== "object" || message === null)
98760
99120
  return "object expected";
99121
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
99122
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
99123
+ return "timestamp: integer|Long expected";
99124
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
99125
+ if (!$util.isString(message.hsUserId))
99126
+ return "hsUserId: string expected";
98761
99127
  return null;
98762
99128
  };
98763
99129
 
@@ -98772,7 +99138,19 @@ $root.GoalReflectionCompleted = (function() {
98772
99138
  GoalReflectionCompleted.fromObject = function fromObject(object) {
98773
99139
  if (object instanceof $root.GoalReflectionCompleted)
98774
99140
  return object;
98775
- return new $root.GoalReflectionCompleted();
99141
+ var message = new $root.GoalReflectionCompleted();
99142
+ if (object.timestamp != null)
99143
+ if ($util.Long)
99144
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
99145
+ else if (typeof object.timestamp === "string")
99146
+ message.timestamp = parseInt(object.timestamp, 10);
99147
+ else if (typeof object.timestamp === "number")
99148
+ message.timestamp = object.timestamp;
99149
+ else if (typeof object.timestamp === "object")
99150
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
99151
+ if (object.hsUserId != null)
99152
+ message.hsUserId = String(object.hsUserId);
99153
+ return message;
98776
99154
  };
98777
99155
 
98778
99156
  /**
@@ -98784,8 +99162,26 @@ $root.GoalReflectionCompleted = (function() {
98784
99162
  * @param {$protobuf.IConversionOptions} [options] Conversion options
98785
99163
  * @returns {Object.<string,*>} Plain object
98786
99164
  */
98787
- GoalReflectionCompleted.toObject = function toObject() {
98788
- return {};
99165
+ GoalReflectionCompleted.toObject = function toObject(message, options) {
99166
+ if (!options)
99167
+ options = {};
99168
+ var object = {};
99169
+ if (options.defaults) {
99170
+ if ($util.Long) {
99171
+ var long = new $util.Long(0, 0, true);
99172
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
99173
+ } else
99174
+ object.timestamp = options.longs === String ? "0" : 0;
99175
+ object.hsUserId = "";
99176
+ }
99177
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
99178
+ if (typeof message.timestamp === "number")
99179
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
99180
+ else
99181
+ 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;
99182
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
99183
+ object.hsUserId = message.hsUserId;
99184
+ return object;
98789
99185
  };
98790
99186
 
98791
99187
  /**
@@ -98808,6 +99204,8 @@ $root.GoalCompleted = (function() {
98808
99204
  * Properties of a GoalCompleted.
98809
99205
  * @exports IGoalCompleted
98810
99206
  * @interface IGoalCompleted
99207
+ * @property {number|Long|null} [timestamp] GoalCompleted timestamp
99208
+ * @property {string|null} [hsUserId] GoalCompleted hsUserId
98811
99209
  */
98812
99210
 
98813
99211
  /**
@@ -98825,6 +99223,22 @@ $root.GoalCompleted = (function() {
98825
99223
  this[keys[i]] = properties[keys[i]];
98826
99224
  }
98827
99225
 
99226
+ /**
99227
+ * GoalCompleted timestamp.
99228
+ * @member {number|Long} timestamp
99229
+ * @memberof GoalCompleted
99230
+ * @instance
99231
+ */
99232
+ GoalCompleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
99233
+
99234
+ /**
99235
+ * GoalCompleted hsUserId.
99236
+ * @member {string} hsUserId
99237
+ * @memberof GoalCompleted
99238
+ * @instance
99239
+ */
99240
+ GoalCompleted.prototype.hsUserId = "";
99241
+
98828
99242
  /**
98829
99243
  * Creates a new GoalCompleted instance using the specified properties.
98830
99244
  * @function create
@@ -98849,6 +99263,10 @@ $root.GoalCompleted = (function() {
98849
99263
  GoalCompleted.encode = function encode(message, writer) {
98850
99264
  if (!writer)
98851
99265
  writer = $Writer.create();
99266
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
99267
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
99268
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
99269
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
98852
99270
  return writer;
98853
99271
  };
98854
99272
 
@@ -98883,6 +99301,12 @@ $root.GoalCompleted = (function() {
98883
99301
  while (reader.pos < end) {
98884
99302
  var tag = reader.uint32();
98885
99303
  switch (tag >>> 3) {
99304
+ case 1:
99305
+ message.timestamp = reader.uint64();
99306
+ break;
99307
+ case 2:
99308
+ message.hsUserId = reader.string();
99309
+ break;
98886
99310
  default:
98887
99311
  reader.skipType(tag & 7);
98888
99312
  break;
@@ -98918,6 +99342,12 @@ $root.GoalCompleted = (function() {
98918
99342
  GoalCompleted.verify = function verify(message) {
98919
99343
  if (typeof message !== "object" || message === null)
98920
99344
  return "object expected";
99345
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
99346
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
99347
+ return "timestamp: integer|Long expected";
99348
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
99349
+ if (!$util.isString(message.hsUserId))
99350
+ return "hsUserId: string expected";
98921
99351
  return null;
98922
99352
  };
98923
99353
 
@@ -98932,7 +99362,19 @@ $root.GoalCompleted = (function() {
98932
99362
  GoalCompleted.fromObject = function fromObject(object) {
98933
99363
  if (object instanceof $root.GoalCompleted)
98934
99364
  return object;
98935
- return new $root.GoalCompleted();
99365
+ var message = new $root.GoalCompleted();
99366
+ if (object.timestamp != null)
99367
+ if ($util.Long)
99368
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
99369
+ else if (typeof object.timestamp === "string")
99370
+ message.timestamp = parseInt(object.timestamp, 10);
99371
+ else if (typeof object.timestamp === "number")
99372
+ message.timestamp = object.timestamp;
99373
+ else if (typeof object.timestamp === "object")
99374
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
99375
+ if (object.hsUserId != null)
99376
+ message.hsUserId = String(object.hsUserId);
99377
+ return message;
98936
99378
  };
98937
99379
 
98938
99380
  /**
@@ -98944,8 +99386,26 @@ $root.GoalCompleted = (function() {
98944
99386
  * @param {$protobuf.IConversionOptions} [options] Conversion options
98945
99387
  * @returns {Object.<string,*>} Plain object
98946
99388
  */
98947
- GoalCompleted.toObject = function toObject() {
98948
- return {};
99389
+ GoalCompleted.toObject = function toObject(message, options) {
99390
+ if (!options)
99391
+ options = {};
99392
+ var object = {};
99393
+ if (options.defaults) {
99394
+ if ($util.Long) {
99395
+ var long = new $util.Long(0, 0, true);
99396
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
99397
+ } else
99398
+ object.timestamp = options.longs === String ? "0" : 0;
99399
+ object.hsUserId = "";
99400
+ }
99401
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
99402
+ if (typeof message.timestamp === "number")
99403
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
99404
+ else
99405
+ 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;
99406
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
99407
+ object.hsUserId = message.hsUserId;
99408
+ return object;
98949
99409
  };
98950
99410
 
98951
99411
  /**
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.455.0"
19
+ "version": "1.457.0"
20
20
  }