@headspace/protos-events 1.751.0 → 1.753.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
@@ -28104,6 +28104,9 @@ export interface ISurveyResponse {
28104
28104
 
28105
28105
  /** SurveyResponse assignmentId */
28106
28106
  assignmentId?: (number|Long|null);
28107
+
28108
+ /** SurveyResponse totalScore */
28109
+ totalScore?: (number|null);
28107
28110
  }
28108
28111
 
28109
28112
  /** Represents a SurveyResponse. */
@@ -28145,6 +28148,9 @@ export class SurveyResponse implements ISurveyResponse {
28145
28148
  /** SurveyResponse assignmentId. */
28146
28149
  public assignmentId: (number|Long);
28147
28150
 
28151
+ /** SurveyResponse totalScore. */
28152
+ public totalScore: number;
28153
+
28148
28154
  /**
28149
28155
  * Creates a new SurveyResponse instance using the specified properties.
28150
28156
  * @param [properties] Properties to set
@@ -47038,6 +47044,9 @@ export interface IPHQAssessmentStarted {
47038
47044
 
47039
47045
  /** PHQAssessmentStarted startedAtIsoDate */
47040
47046
  startedAtIsoDate?: (string|null);
47047
+
47048
+ /** PHQAssessmentStarted assignmentId */
47049
+ assignmentId?: (number|Long|null);
47041
47050
  }
47042
47051
 
47043
47052
  /** Represents a PHQAssessmentStarted. */
@@ -47058,6 +47067,9 @@ export class PHQAssessmentStarted implements IPHQAssessmentStarted {
47058
47067
  /** PHQAssessmentStarted startedAtIsoDate. */
47059
47068
  public startedAtIsoDate: string;
47060
47069
 
47070
+ /** PHQAssessmentStarted assignmentId. */
47071
+ public assignmentId: (number|Long);
47072
+
47061
47073
  /**
47062
47074
  * Creates a new PHQAssessmentStarted instance using the specified properties.
47063
47075
  * @param [properties] Properties to set
@@ -47140,6 +47152,9 @@ export interface IPHQAssessmentCompleted {
47140
47152
 
47141
47153
  /** PHQAssessmentCompleted completedAtIsoDate */
47142
47154
  completedAtIsoDate?: (string|null);
47155
+
47156
+ /** PHQAssessmentCompleted assignmentId */
47157
+ assignmentId?: (number|Long|null);
47143
47158
  }
47144
47159
 
47145
47160
  /** Represents a PHQAssessmentCompleted. */
@@ -47160,6 +47175,9 @@ export class PHQAssessmentCompleted implements IPHQAssessmentCompleted {
47160
47175
  /** PHQAssessmentCompleted completedAtIsoDate. */
47161
47176
  public completedAtIsoDate: string;
47162
47177
 
47178
+ /** PHQAssessmentCompleted assignmentId. */
47179
+ public assignmentId: (number|Long);
47180
+
47163
47181
  /**
47164
47182
  * Creates a new PHQAssessmentCompleted instance using the specified properties.
47165
47183
  * @param [properties] Properties to set
@@ -50242,6 +50260,9 @@ export interface IPSSAssessmentAssigned {
50242
50260
 
50243
50261
  /** PSSAssessmentAssigned assignedAtIsoDate */
50244
50262
  assignedAtIsoDate?: (string|null);
50263
+
50264
+ /** PSSAssessmentAssigned assignmentId */
50265
+ assignmentId?: (number|Long|null);
50245
50266
  }
50246
50267
 
50247
50268
  /** Represents a PSSAssessmentAssigned. */
@@ -50262,6 +50283,9 @@ export class PSSAssessmentAssigned implements IPSSAssessmentAssigned {
50262
50283
  /** PSSAssessmentAssigned assignedAtIsoDate. */
50263
50284
  public assignedAtIsoDate: string;
50264
50285
 
50286
+ /** PSSAssessmentAssigned assignmentId. */
50287
+ public assignmentId: (number|Long);
50288
+
50265
50289
  /**
50266
50290
  * Creates a new PSSAssessmentAssigned instance using the specified properties.
50267
50291
  * @param [properties] Properties to set
@@ -50452,6 +50476,9 @@ export interface IPSSAssessmentCompleted {
50452
50476
 
50453
50477
  /** PSSAssessmentCompleted completedAtIsoDate */
50454
50478
  completedAtIsoDate?: (string|null);
50479
+
50480
+ /** PSSAssessmentCompleted assignmentId */
50481
+ assignmentId?: (number|Long|null);
50455
50482
  }
50456
50483
 
50457
50484
  /** Represents a PSSAssessmentCompleted. */
@@ -50472,6 +50499,9 @@ export class PSSAssessmentCompleted implements IPSSAssessmentCompleted {
50472
50499
  /** PSSAssessmentCompleted completedAtIsoDate. */
50473
50500
  public completedAtIsoDate: string;
50474
50501
 
50502
+ /** PSSAssessmentCompleted assignmentId. */
50503
+ public assignmentId: (number|Long);
50504
+
50475
50505
  /**
50476
50506
  * Creates a new PSSAssessmentCompleted instance using the specified properties.
50477
50507
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -79740,6 +79740,7 @@ $root.SurveyResponse = (function() {
79740
79740
  * @property {number|null} [gingerUserId] SurveyResponse gingerUserId
79741
79741
  * @property {string|null} [assignedAtIsoDate] SurveyResponse assignedAtIsoDate
79742
79742
  * @property {number|Long|null} [assignmentId] SurveyResponse assignmentId
79743
+ * @property {number|null} [totalScore] SurveyResponse totalScore
79743
79744
  */
79744
79745
 
79745
79746
  /**
@@ -79838,6 +79839,14 @@ $root.SurveyResponse = (function() {
79838
79839
  */
79839
79840
  SurveyResponse.prototype.assignmentId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
79840
79841
 
79842
+ /**
79843
+ * SurveyResponse totalScore.
79844
+ * @member {number} totalScore
79845
+ * @memberof SurveyResponse
79846
+ * @instance
79847
+ */
79848
+ SurveyResponse.prototype.totalScore = 0;
79849
+
79841
79850
  /**
79842
79851
  * Creates a new SurveyResponse instance using the specified properties.
79843
79852
  * @function create
@@ -79883,6 +79892,8 @@ $root.SurveyResponse = (function() {
79883
79892
  writer.uint32(/* id 9, wireType 2 =*/74).string(message.assignedAtIsoDate);
79884
79893
  if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
79885
79894
  writer.uint32(/* id 10, wireType 0 =*/80).int64(message.assignmentId);
79895
+ if (message.totalScore != null && message.hasOwnProperty("totalScore"))
79896
+ writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.totalScore);
79886
79897
  return writer;
79887
79898
  };
79888
79899
 
@@ -79949,6 +79960,9 @@ $root.SurveyResponse = (function() {
79949
79960
  case 10:
79950
79961
  message.assignmentId = reader.int64();
79951
79962
  break;
79963
+ case 11:
79964
+ message.totalScore = reader.uint32();
79965
+ break;
79952
79966
  default:
79953
79967
  reader.skipType(tag & 7);
79954
79968
  break;
@@ -80020,6 +80034,9 @@ $root.SurveyResponse = (function() {
80020
80034
  if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
80021
80035
  if (!$util.isInteger(message.assignmentId) && !(message.assignmentId && $util.isInteger(message.assignmentId.low) && $util.isInteger(message.assignmentId.high)))
80022
80036
  return "assignmentId: integer|Long expected";
80037
+ if (message.totalScore != null && message.hasOwnProperty("totalScore"))
80038
+ if (!$util.isInteger(message.totalScore))
80039
+ return "totalScore: integer expected";
80023
80040
  return null;
80024
80041
  };
80025
80042
 
@@ -80070,6 +80087,8 @@ $root.SurveyResponse = (function() {
80070
80087
  message.assignmentId = object.assignmentId;
80071
80088
  else if (typeof object.assignmentId === "object")
80072
80089
  message.assignmentId = new $util.LongBits(object.assignmentId.low >>> 0, object.assignmentId.high >>> 0).toNumber();
80090
+ if (object.totalScore != null)
80091
+ message.totalScore = object.totalScore >>> 0;
80073
80092
  return message;
80074
80093
  };
80075
80094
 
@@ -80102,6 +80121,7 @@ $root.SurveyResponse = (function() {
80102
80121
  object.assignmentId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
80103
80122
  } else
80104
80123
  object.assignmentId = options.longs === String ? "0" : 0;
80124
+ object.totalScore = 0;
80105
80125
  }
80106
80126
  if (message.userId != null && message.hasOwnProperty("userId"))
80107
80127
  object.userId = message.userId;
@@ -80129,6 +80149,8 @@ $root.SurveyResponse = (function() {
80129
80149
  object.assignmentId = options.longs === String ? String(message.assignmentId) : message.assignmentId;
80130
80150
  else
80131
80151
  object.assignmentId = options.longs === String ? $util.Long.prototype.toString.call(message.assignmentId) : options.longs === Number ? new $util.LongBits(message.assignmentId.low >>> 0, message.assignmentId.high >>> 0).toNumber() : message.assignmentId;
80152
+ if (message.totalScore != null && message.hasOwnProperty("totalScore"))
80153
+ object.totalScore = message.totalScore;
80132
80154
  return object;
80133
80155
  };
80134
80156
 
@@ -134018,6 +134040,7 @@ $root.PHQAssessmentStarted = (function() {
134018
134040
  * @property {string|null} [hsUserId] PHQAssessmentStarted hsUserId
134019
134041
  * @property {number|null} [gingerUserId] PHQAssessmentStarted gingerUserId
134020
134042
  * @property {string|null} [startedAtIsoDate] PHQAssessmentStarted startedAtIsoDate
134043
+ * @property {number|Long|null} [assignmentId] PHQAssessmentStarted assignmentId
134021
134044
  */
134022
134045
 
134023
134046
  /**
@@ -134059,6 +134082,14 @@ $root.PHQAssessmentStarted = (function() {
134059
134082
  */
134060
134083
  PHQAssessmentStarted.prototype.startedAtIsoDate = "";
134061
134084
 
134085
+ /**
134086
+ * PHQAssessmentStarted assignmentId.
134087
+ * @member {number|Long} assignmentId
134088
+ * @memberof PHQAssessmentStarted
134089
+ * @instance
134090
+ */
134091
+ PHQAssessmentStarted.prototype.assignmentId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
134092
+
134062
134093
  /**
134063
134094
  * Creates a new PHQAssessmentStarted instance using the specified properties.
134064
134095
  * @function create
@@ -134089,6 +134120,8 @@ $root.PHQAssessmentStarted = (function() {
134089
134120
  writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
134090
134121
  if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
134091
134122
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.startedAtIsoDate);
134123
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
134124
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.assignmentId);
134092
134125
  return writer;
134093
134126
  };
134094
134127
 
@@ -134132,6 +134165,9 @@ $root.PHQAssessmentStarted = (function() {
134132
134165
  case 3:
134133
134166
  message.startedAtIsoDate = reader.string();
134134
134167
  break;
134168
+ case 4:
134169
+ message.assignmentId = reader.int64();
134170
+ break;
134135
134171
  default:
134136
134172
  reader.skipType(tag & 7);
134137
134173
  break;
@@ -134176,6 +134212,9 @@ $root.PHQAssessmentStarted = (function() {
134176
134212
  if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
134177
134213
  if (!$util.isString(message.startedAtIsoDate))
134178
134214
  return "startedAtIsoDate: string expected";
134215
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
134216
+ if (!$util.isInteger(message.assignmentId) && !(message.assignmentId && $util.isInteger(message.assignmentId.low) && $util.isInteger(message.assignmentId.high)))
134217
+ return "assignmentId: integer|Long expected";
134179
134218
  return null;
134180
134219
  };
134181
134220
 
@@ -134197,6 +134236,15 @@ $root.PHQAssessmentStarted = (function() {
134197
134236
  message.gingerUserId = object.gingerUserId >>> 0;
134198
134237
  if (object.startedAtIsoDate != null)
134199
134238
  message.startedAtIsoDate = String(object.startedAtIsoDate);
134239
+ if (object.assignmentId != null)
134240
+ if ($util.Long)
134241
+ (message.assignmentId = $util.Long.fromValue(object.assignmentId)).unsigned = false;
134242
+ else if (typeof object.assignmentId === "string")
134243
+ message.assignmentId = parseInt(object.assignmentId, 10);
134244
+ else if (typeof object.assignmentId === "number")
134245
+ message.assignmentId = object.assignmentId;
134246
+ else if (typeof object.assignmentId === "object")
134247
+ message.assignmentId = new $util.LongBits(object.assignmentId.low >>> 0, object.assignmentId.high >>> 0).toNumber();
134200
134248
  return message;
134201
134249
  };
134202
134250
 
@@ -134217,6 +134265,11 @@ $root.PHQAssessmentStarted = (function() {
134217
134265
  object.hsUserId = "";
134218
134266
  object.gingerUserId = 0;
134219
134267
  object.startedAtIsoDate = "";
134268
+ if ($util.Long) {
134269
+ var long = new $util.Long(0, 0, false);
134270
+ object.assignmentId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
134271
+ } else
134272
+ object.assignmentId = options.longs === String ? "0" : 0;
134220
134273
  }
134221
134274
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
134222
134275
  object.hsUserId = message.hsUserId;
@@ -134224,6 +134277,11 @@ $root.PHQAssessmentStarted = (function() {
134224
134277
  object.gingerUserId = message.gingerUserId;
134225
134278
  if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
134226
134279
  object.startedAtIsoDate = message.startedAtIsoDate;
134280
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
134281
+ if (typeof message.assignmentId === "number")
134282
+ object.assignmentId = options.longs === String ? String(message.assignmentId) : message.assignmentId;
134283
+ else
134284
+ object.assignmentId = options.longs === String ? $util.Long.prototype.toString.call(message.assignmentId) : options.longs === Number ? new $util.LongBits(message.assignmentId.low >>> 0, message.assignmentId.high >>> 0).toNumber() : message.assignmentId;
134227
134285
  return object;
134228
134286
  };
134229
134287
 
@@ -134250,6 +134308,7 @@ $root.PHQAssessmentCompleted = (function() {
134250
134308
  * @property {string|null} [hsUserId] PHQAssessmentCompleted hsUserId
134251
134309
  * @property {number|null} [gingerUserId] PHQAssessmentCompleted gingerUserId
134252
134310
  * @property {string|null} [completedAtIsoDate] PHQAssessmentCompleted completedAtIsoDate
134311
+ * @property {number|Long|null} [assignmentId] PHQAssessmentCompleted assignmentId
134253
134312
  */
134254
134313
 
134255
134314
  /**
@@ -134291,6 +134350,14 @@ $root.PHQAssessmentCompleted = (function() {
134291
134350
  */
134292
134351
  PHQAssessmentCompleted.prototype.completedAtIsoDate = "";
134293
134352
 
134353
+ /**
134354
+ * PHQAssessmentCompleted assignmentId.
134355
+ * @member {number|Long} assignmentId
134356
+ * @memberof PHQAssessmentCompleted
134357
+ * @instance
134358
+ */
134359
+ PHQAssessmentCompleted.prototype.assignmentId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
134360
+
134294
134361
  /**
134295
134362
  * Creates a new PHQAssessmentCompleted instance using the specified properties.
134296
134363
  * @function create
@@ -134321,6 +134388,8 @@ $root.PHQAssessmentCompleted = (function() {
134321
134388
  writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
134322
134389
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
134323
134390
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.completedAtIsoDate);
134391
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
134392
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.assignmentId);
134324
134393
  return writer;
134325
134394
  };
134326
134395
 
@@ -134364,6 +134433,9 @@ $root.PHQAssessmentCompleted = (function() {
134364
134433
  case 3:
134365
134434
  message.completedAtIsoDate = reader.string();
134366
134435
  break;
134436
+ case 4:
134437
+ message.assignmentId = reader.int64();
134438
+ break;
134367
134439
  default:
134368
134440
  reader.skipType(tag & 7);
134369
134441
  break;
@@ -134408,6 +134480,9 @@ $root.PHQAssessmentCompleted = (function() {
134408
134480
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
134409
134481
  if (!$util.isString(message.completedAtIsoDate))
134410
134482
  return "completedAtIsoDate: string expected";
134483
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
134484
+ if (!$util.isInteger(message.assignmentId) && !(message.assignmentId && $util.isInteger(message.assignmentId.low) && $util.isInteger(message.assignmentId.high)))
134485
+ return "assignmentId: integer|Long expected";
134411
134486
  return null;
134412
134487
  };
134413
134488
 
@@ -134429,6 +134504,15 @@ $root.PHQAssessmentCompleted = (function() {
134429
134504
  message.gingerUserId = object.gingerUserId >>> 0;
134430
134505
  if (object.completedAtIsoDate != null)
134431
134506
  message.completedAtIsoDate = String(object.completedAtIsoDate);
134507
+ if (object.assignmentId != null)
134508
+ if ($util.Long)
134509
+ (message.assignmentId = $util.Long.fromValue(object.assignmentId)).unsigned = false;
134510
+ else if (typeof object.assignmentId === "string")
134511
+ message.assignmentId = parseInt(object.assignmentId, 10);
134512
+ else if (typeof object.assignmentId === "number")
134513
+ message.assignmentId = object.assignmentId;
134514
+ else if (typeof object.assignmentId === "object")
134515
+ message.assignmentId = new $util.LongBits(object.assignmentId.low >>> 0, object.assignmentId.high >>> 0).toNumber();
134432
134516
  return message;
134433
134517
  };
134434
134518
 
@@ -134449,6 +134533,11 @@ $root.PHQAssessmentCompleted = (function() {
134449
134533
  object.hsUserId = "";
134450
134534
  object.gingerUserId = 0;
134451
134535
  object.completedAtIsoDate = "";
134536
+ if ($util.Long) {
134537
+ var long = new $util.Long(0, 0, false);
134538
+ object.assignmentId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
134539
+ } else
134540
+ object.assignmentId = options.longs === String ? "0" : 0;
134452
134541
  }
134453
134542
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
134454
134543
  object.hsUserId = message.hsUserId;
@@ -134456,6 +134545,11 @@ $root.PHQAssessmentCompleted = (function() {
134456
134545
  object.gingerUserId = message.gingerUserId;
134457
134546
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
134458
134547
  object.completedAtIsoDate = message.completedAtIsoDate;
134548
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
134549
+ if (typeof message.assignmentId === "number")
134550
+ object.assignmentId = options.longs === String ? String(message.assignmentId) : message.assignmentId;
134551
+ else
134552
+ object.assignmentId = options.longs === String ? $util.Long.prototype.toString.call(message.assignmentId) : options.longs === Number ? new $util.LongBits(message.assignmentId.low >>> 0, message.assignmentId.high >>> 0).toNumber() : message.assignmentId;
134459
134553
  return object;
134460
134554
  };
134461
134555
 
@@ -142474,6 +142568,7 @@ $root.PSSAssessmentAssigned = (function() {
142474
142568
  * @property {string|null} [hsUserId] PSSAssessmentAssigned hsUserId
142475
142569
  * @property {number|null} [gingerUserId] PSSAssessmentAssigned gingerUserId
142476
142570
  * @property {string|null} [assignedAtIsoDate] PSSAssessmentAssigned assignedAtIsoDate
142571
+ * @property {number|Long|null} [assignmentId] PSSAssessmentAssigned assignmentId
142477
142572
  */
142478
142573
 
142479
142574
  /**
@@ -142515,6 +142610,14 @@ $root.PSSAssessmentAssigned = (function() {
142515
142610
  */
142516
142611
  PSSAssessmentAssigned.prototype.assignedAtIsoDate = "";
142517
142612
 
142613
+ /**
142614
+ * PSSAssessmentAssigned assignmentId.
142615
+ * @member {number|Long} assignmentId
142616
+ * @memberof PSSAssessmentAssigned
142617
+ * @instance
142618
+ */
142619
+ PSSAssessmentAssigned.prototype.assignmentId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
142620
+
142518
142621
  /**
142519
142622
  * Creates a new PSSAssessmentAssigned instance using the specified properties.
142520
142623
  * @function create
@@ -142545,6 +142648,8 @@ $root.PSSAssessmentAssigned = (function() {
142545
142648
  writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
142546
142649
  if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
142547
142650
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.assignedAtIsoDate);
142651
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
142652
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.assignmentId);
142548
142653
  return writer;
142549
142654
  };
142550
142655
 
@@ -142588,6 +142693,9 @@ $root.PSSAssessmentAssigned = (function() {
142588
142693
  case 3:
142589
142694
  message.assignedAtIsoDate = reader.string();
142590
142695
  break;
142696
+ case 4:
142697
+ message.assignmentId = reader.int64();
142698
+ break;
142591
142699
  default:
142592
142700
  reader.skipType(tag & 7);
142593
142701
  break;
@@ -142632,6 +142740,9 @@ $root.PSSAssessmentAssigned = (function() {
142632
142740
  if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
142633
142741
  if (!$util.isString(message.assignedAtIsoDate))
142634
142742
  return "assignedAtIsoDate: string expected";
142743
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
142744
+ if (!$util.isInteger(message.assignmentId) && !(message.assignmentId && $util.isInteger(message.assignmentId.low) && $util.isInteger(message.assignmentId.high)))
142745
+ return "assignmentId: integer|Long expected";
142635
142746
  return null;
142636
142747
  };
142637
142748
 
@@ -142653,6 +142764,15 @@ $root.PSSAssessmentAssigned = (function() {
142653
142764
  message.gingerUserId = object.gingerUserId >>> 0;
142654
142765
  if (object.assignedAtIsoDate != null)
142655
142766
  message.assignedAtIsoDate = String(object.assignedAtIsoDate);
142767
+ if (object.assignmentId != null)
142768
+ if ($util.Long)
142769
+ (message.assignmentId = $util.Long.fromValue(object.assignmentId)).unsigned = false;
142770
+ else if (typeof object.assignmentId === "string")
142771
+ message.assignmentId = parseInt(object.assignmentId, 10);
142772
+ else if (typeof object.assignmentId === "number")
142773
+ message.assignmentId = object.assignmentId;
142774
+ else if (typeof object.assignmentId === "object")
142775
+ message.assignmentId = new $util.LongBits(object.assignmentId.low >>> 0, object.assignmentId.high >>> 0).toNumber();
142656
142776
  return message;
142657
142777
  };
142658
142778
 
@@ -142673,6 +142793,11 @@ $root.PSSAssessmentAssigned = (function() {
142673
142793
  object.hsUserId = "";
142674
142794
  object.gingerUserId = 0;
142675
142795
  object.assignedAtIsoDate = "";
142796
+ if ($util.Long) {
142797
+ var long = new $util.Long(0, 0, false);
142798
+ object.assignmentId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
142799
+ } else
142800
+ object.assignmentId = options.longs === String ? "0" : 0;
142676
142801
  }
142677
142802
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
142678
142803
  object.hsUserId = message.hsUserId;
@@ -142680,6 +142805,11 @@ $root.PSSAssessmentAssigned = (function() {
142680
142805
  object.gingerUserId = message.gingerUserId;
142681
142806
  if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
142682
142807
  object.assignedAtIsoDate = message.assignedAtIsoDate;
142808
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
142809
+ if (typeof message.assignmentId === "number")
142810
+ object.assignmentId = options.longs === String ? String(message.assignmentId) : message.assignmentId;
142811
+ else
142812
+ object.assignmentId = options.longs === String ? $util.Long.prototype.toString.call(message.assignmentId) : options.longs === Number ? new $util.LongBits(message.assignmentId.low >>> 0, message.assignmentId.high >>> 0).toNumber() : message.assignmentId;
142683
142813
  return object;
142684
142814
  };
142685
142815
 
@@ -142974,6 +143104,7 @@ $root.PSSAssessmentCompleted = (function() {
142974
143104
  * @property {string|null} [hsUserId] PSSAssessmentCompleted hsUserId
142975
143105
  * @property {number|null} [gingerUserId] PSSAssessmentCompleted gingerUserId
142976
143106
  * @property {string|null} [completedAtIsoDate] PSSAssessmentCompleted completedAtIsoDate
143107
+ * @property {number|Long|null} [assignmentId] PSSAssessmentCompleted assignmentId
142977
143108
  */
142978
143109
 
142979
143110
  /**
@@ -143015,6 +143146,14 @@ $root.PSSAssessmentCompleted = (function() {
143015
143146
  */
143016
143147
  PSSAssessmentCompleted.prototype.completedAtIsoDate = "";
143017
143148
 
143149
+ /**
143150
+ * PSSAssessmentCompleted assignmentId.
143151
+ * @member {number|Long} assignmentId
143152
+ * @memberof PSSAssessmentCompleted
143153
+ * @instance
143154
+ */
143155
+ PSSAssessmentCompleted.prototype.assignmentId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
143156
+
143018
143157
  /**
143019
143158
  * Creates a new PSSAssessmentCompleted instance using the specified properties.
143020
143159
  * @function create
@@ -143045,6 +143184,8 @@ $root.PSSAssessmentCompleted = (function() {
143045
143184
  writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
143046
143185
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
143047
143186
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.completedAtIsoDate);
143187
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
143188
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.assignmentId);
143048
143189
  return writer;
143049
143190
  };
143050
143191
 
@@ -143088,6 +143229,9 @@ $root.PSSAssessmentCompleted = (function() {
143088
143229
  case 3:
143089
143230
  message.completedAtIsoDate = reader.string();
143090
143231
  break;
143232
+ case 4:
143233
+ message.assignmentId = reader.int64();
143234
+ break;
143091
143235
  default:
143092
143236
  reader.skipType(tag & 7);
143093
143237
  break;
@@ -143132,6 +143276,9 @@ $root.PSSAssessmentCompleted = (function() {
143132
143276
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
143133
143277
  if (!$util.isString(message.completedAtIsoDate))
143134
143278
  return "completedAtIsoDate: string expected";
143279
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
143280
+ if (!$util.isInteger(message.assignmentId) && !(message.assignmentId && $util.isInteger(message.assignmentId.low) && $util.isInteger(message.assignmentId.high)))
143281
+ return "assignmentId: integer|Long expected";
143135
143282
  return null;
143136
143283
  };
143137
143284
 
@@ -143153,6 +143300,15 @@ $root.PSSAssessmentCompleted = (function() {
143153
143300
  message.gingerUserId = object.gingerUserId >>> 0;
143154
143301
  if (object.completedAtIsoDate != null)
143155
143302
  message.completedAtIsoDate = String(object.completedAtIsoDate);
143303
+ if (object.assignmentId != null)
143304
+ if ($util.Long)
143305
+ (message.assignmentId = $util.Long.fromValue(object.assignmentId)).unsigned = false;
143306
+ else if (typeof object.assignmentId === "string")
143307
+ message.assignmentId = parseInt(object.assignmentId, 10);
143308
+ else if (typeof object.assignmentId === "number")
143309
+ message.assignmentId = object.assignmentId;
143310
+ else if (typeof object.assignmentId === "object")
143311
+ message.assignmentId = new $util.LongBits(object.assignmentId.low >>> 0, object.assignmentId.high >>> 0).toNumber();
143156
143312
  return message;
143157
143313
  };
143158
143314
 
@@ -143173,6 +143329,11 @@ $root.PSSAssessmentCompleted = (function() {
143173
143329
  object.hsUserId = "";
143174
143330
  object.gingerUserId = 0;
143175
143331
  object.completedAtIsoDate = "";
143332
+ if ($util.Long) {
143333
+ var long = new $util.Long(0, 0, false);
143334
+ object.assignmentId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
143335
+ } else
143336
+ object.assignmentId = options.longs === String ? "0" : 0;
143176
143337
  }
143177
143338
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
143178
143339
  object.hsUserId = message.hsUserId;
@@ -143180,6 +143341,11 @@ $root.PSSAssessmentCompleted = (function() {
143180
143341
  object.gingerUserId = message.gingerUserId;
143181
143342
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
143182
143343
  object.completedAtIsoDate = message.completedAtIsoDate;
143344
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
143345
+ if (typeof message.assignmentId === "number")
143346
+ object.assignmentId = options.longs === String ? String(message.assignmentId) : message.assignmentId;
143347
+ else
143348
+ object.assignmentId = options.longs === String ? $util.Long.prototype.toString.call(message.assignmentId) : options.longs === Number ? new $util.LongBits(message.assignmentId.low >>> 0, message.assignmentId.high >>> 0).toNumber() : message.assignmentId;
143183
143349
  return object;
143184
143350
  };
143185
143351
 
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.751.0"
19
+ "version": "1.753.0"
20
20
  }