@headspace/protos-events 1.705.0 → 1.707.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
@@ -113,6 +113,123 @@ export class AssessmentScore implements IAssessmentScore {
113
113
  public toJSON(): { [k: string]: any };
114
114
  }
115
115
 
116
+ /** AssessmentType enum. */
117
+ export enum AssessmentType {
118
+ ASSESSMENT_TYPE_UNKNOWN = 0,
119
+ ASSESSMENT_TYPE_STRESS = 1,
120
+ ASSESSMENT_TYPE_ANXIETY = 2,
121
+ ASSESSMENT_TYPE_DEPRESSION = 3,
122
+ ASSESSMENT_TYPE_SLEEP = 4
123
+ }
124
+
125
+ /** Properties of an AssessmentAssessmentAvailabilitySent. */
126
+ export interface IAssessmentAssessmentAvailabilitySent {
127
+
128
+ /** AssessmentAssessmentAvailabilitySent hsUserId */
129
+ hsUserId?: (string|null);
130
+
131
+ /** AssessmentAssessmentAvailabilitySent surveyId */
132
+ surveyId?: (string|null);
133
+
134
+ /** AssessmentAssessmentAvailabilitySent metric */
135
+ metric?: (AssessmentType|null);
136
+
137
+ /** AssessmentAssessmentAvailabilitySent availableSince */
138
+ availableSince?: (number|Long|null);
139
+ }
140
+
141
+ /** Represents an AssessmentAssessmentAvailabilitySent. */
142
+ export class AssessmentAssessmentAvailabilitySent implements IAssessmentAssessmentAvailabilitySent {
143
+
144
+ /**
145
+ * Constructs a new AssessmentAssessmentAvailabilitySent.
146
+ * @param [properties] Properties to set
147
+ */
148
+ constructor(properties?: IAssessmentAssessmentAvailabilitySent);
149
+
150
+ /** AssessmentAssessmentAvailabilitySent hsUserId. */
151
+ public hsUserId: string;
152
+
153
+ /** AssessmentAssessmentAvailabilitySent surveyId. */
154
+ public surveyId: string;
155
+
156
+ /** AssessmentAssessmentAvailabilitySent metric. */
157
+ public metric: AssessmentType;
158
+
159
+ /** AssessmentAssessmentAvailabilitySent availableSince. */
160
+ public availableSince: (number|Long);
161
+
162
+ /**
163
+ * Creates a new AssessmentAssessmentAvailabilitySent instance using the specified properties.
164
+ * @param [properties] Properties to set
165
+ * @returns AssessmentAssessmentAvailabilitySent instance
166
+ */
167
+ public static create(properties?: IAssessmentAssessmentAvailabilitySent): AssessmentAssessmentAvailabilitySent;
168
+
169
+ /**
170
+ * Encodes the specified AssessmentAssessmentAvailabilitySent message. Does not implicitly {@link AssessmentAssessmentAvailabilitySent.verify|verify} messages.
171
+ * @param message AssessmentAssessmentAvailabilitySent message or plain object to encode
172
+ * @param [writer] Writer to encode to
173
+ * @returns Writer
174
+ */
175
+ public static encode(message: IAssessmentAssessmentAvailabilitySent, writer?: $protobuf.Writer): $protobuf.Writer;
176
+
177
+ /**
178
+ * Encodes the specified AssessmentAssessmentAvailabilitySent message, length delimited. Does not implicitly {@link AssessmentAssessmentAvailabilitySent.verify|verify} messages.
179
+ * @param message AssessmentAssessmentAvailabilitySent message or plain object to encode
180
+ * @param [writer] Writer to encode to
181
+ * @returns Writer
182
+ */
183
+ public static encodeDelimited(message: IAssessmentAssessmentAvailabilitySent, writer?: $protobuf.Writer): $protobuf.Writer;
184
+
185
+ /**
186
+ * Decodes an AssessmentAssessmentAvailabilitySent message from the specified reader or buffer.
187
+ * @param reader Reader or buffer to decode from
188
+ * @param [length] Message length if known beforehand
189
+ * @returns AssessmentAssessmentAvailabilitySent
190
+ * @throws {Error} If the payload is not a reader or valid buffer
191
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
192
+ */
193
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AssessmentAssessmentAvailabilitySent;
194
+
195
+ /**
196
+ * Decodes an AssessmentAssessmentAvailabilitySent message from the specified reader or buffer, length delimited.
197
+ * @param reader Reader or buffer to decode from
198
+ * @returns AssessmentAssessmentAvailabilitySent
199
+ * @throws {Error} If the payload is not a reader or valid buffer
200
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
201
+ */
202
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AssessmentAssessmentAvailabilitySent;
203
+
204
+ /**
205
+ * Verifies an AssessmentAssessmentAvailabilitySent message.
206
+ * @param message Plain object to verify
207
+ * @returns `null` if valid, otherwise the reason why it is not
208
+ */
209
+ public static verify(message: { [k: string]: any }): (string|null);
210
+
211
+ /**
212
+ * Creates an AssessmentAssessmentAvailabilitySent message from a plain object. Also converts values to their respective internal types.
213
+ * @param object Plain object
214
+ * @returns AssessmentAssessmentAvailabilitySent
215
+ */
216
+ public static fromObject(object: { [k: string]: any }): AssessmentAssessmentAvailabilitySent;
217
+
218
+ /**
219
+ * Creates a plain object from an AssessmentAssessmentAvailabilitySent message. Also converts values to other types if specified.
220
+ * @param message AssessmentAssessmentAvailabilitySent
221
+ * @param [options] Conversion options
222
+ * @returns Plain object
223
+ */
224
+ public static toObject(message: AssessmentAssessmentAvailabilitySent, options?: $protobuf.IConversionOptions): { [k: string]: any };
225
+
226
+ /**
227
+ * Converts this AssessmentAssessmentAvailabilitySent to JSON.
228
+ * @returns JSON object
229
+ */
230
+ public toJSON(): { [k: string]: any };
231
+ }
232
+
116
233
  /** Properties of a UserPasswordResetCompleted. */
117
234
  export interface IUserPasswordResetCompleted {
118
235
 
@@ -4978,6 +5095,9 @@ export interface IAppointmentRatingRequested {
4978
5095
 
4979
5096
  /** AppointmentRatingRequested requestedAt */
4980
5097
  requestedAt?: (number|Long|null);
5098
+
5099
+ /** AppointmentRatingRequested clinicianId */
5100
+ clinicianId?: (string|null);
4981
5101
  }
4982
5102
 
4983
5103
  /** Represents an AppointmentRatingRequested. */
@@ -5001,6 +5121,9 @@ export class AppointmentRatingRequested implements IAppointmentRatingRequested {
5001
5121
  /** AppointmentRatingRequested requestedAt. */
5002
5122
  public requestedAt: (number|Long);
5003
5123
 
5124
+ /** AppointmentRatingRequested clinicianId. */
5125
+ public clinicianId: string;
5126
+
5004
5127
  /**
5005
5128
  * Creates a new AppointmentRatingRequested instance using the specified properties.
5006
5129
  * @param [properties] Properties to set
@@ -5089,6 +5212,9 @@ export interface IAppointmentRatingDismissed {
5089
5212
 
5090
5213
  /** AppointmentRatingDismissed dismissedCount */
5091
5214
  dismissedCount?: (number|null);
5215
+
5216
+ /** AppointmentRatingDismissed clinicianId */
5217
+ clinicianId?: (string|null);
5092
5218
  }
5093
5219
 
5094
5220
  /** Represents an AppointmentRatingDismissed. */
@@ -5115,6 +5241,9 @@ export class AppointmentRatingDismissed implements IAppointmentRatingDismissed {
5115
5241
  /** AppointmentRatingDismissed dismissedCount. */
5116
5242
  public dismissedCount: number;
5117
5243
 
5244
+ /** AppointmentRatingDismissed clinicianId. */
5245
+ public clinicianId: string;
5246
+
5118
5247
  /**
5119
5248
  * Creates a new AppointmentRatingDismissed instance using the specified properties.
5120
5249
  * @param [properties] Properties to set
@@ -5212,6 +5341,9 @@ export interface IAppointmentRatingSubmitted {
5212
5341
 
5213
5342
  /** AppointmentRatingSubmitted submittedAt */
5214
5343
  submittedAt?: (number|Long|null);
5344
+
5345
+ /** AppointmentRatingSubmitted clinicianId */
5346
+ clinicianId?: (string|null);
5215
5347
  }
5216
5348
 
5217
5349
  /** Represents an AppointmentRatingSubmitted. */
@@ -5247,6 +5379,9 @@ export class AppointmentRatingSubmitted implements IAppointmentRatingSubmitted {
5247
5379
  /** AppointmentRatingSubmitted submittedAt. */
5248
5380
  public submittedAt: (number|Long);
5249
5381
 
5382
+ /** AppointmentRatingSubmitted clinicianId. */
5383
+ public clinicianId: string;
5384
+
5250
5385
  /**
5251
5386
  * Creates a new AppointmentRatingSubmitted instance using the specified properties.
5252
5387
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -285,6 +285,322 @@ $root.AssessmentScore = (function() {
285
285
  return AssessmentScore;
286
286
  })();
287
287
 
288
+ /**
289
+ * AssessmentType enum.
290
+ * @name AssessmentType
291
+ * @enum {string}
292
+ * @property {number} ASSESSMENT_TYPE_UNKNOWN=0 ASSESSMENT_TYPE_UNKNOWN value
293
+ * @property {number} ASSESSMENT_TYPE_STRESS=1 ASSESSMENT_TYPE_STRESS value
294
+ * @property {number} ASSESSMENT_TYPE_ANXIETY=2 ASSESSMENT_TYPE_ANXIETY value
295
+ * @property {number} ASSESSMENT_TYPE_DEPRESSION=3 ASSESSMENT_TYPE_DEPRESSION value
296
+ * @property {number} ASSESSMENT_TYPE_SLEEP=4 ASSESSMENT_TYPE_SLEEP value
297
+ */
298
+ $root.AssessmentType = (function() {
299
+ var valuesById = {}, values = Object.create(valuesById);
300
+ values[valuesById[0] = "ASSESSMENT_TYPE_UNKNOWN"] = 0;
301
+ values[valuesById[1] = "ASSESSMENT_TYPE_STRESS"] = 1;
302
+ values[valuesById[2] = "ASSESSMENT_TYPE_ANXIETY"] = 2;
303
+ values[valuesById[3] = "ASSESSMENT_TYPE_DEPRESSION"] = 3;
304
+ values[valuesById[4] = "ASSESSMENT_TYPE_SLEEP"] = 4;
305
+ return values;
306
+ })();
307
+
308
+ $root.AssessmentAssessmentAvailabilitySent = (function() {
309
+
310
+ /**
311
+ * Properties of an AssessmentAssessmentAvailabilitySent.
312
+ * @name IAssessmentAssessmentAvailabilitySent
313
+ * @interface IAssessmentAssessmentAvailabilitySent
314
+ * @property {string|null} [hsUserId] AssessmentAssessmentAvailabilitySent hsUserId
315
+ * @property {string|null} [surveyId] AssessmentAssessmentAvailabilitySent surveyId
316
+ * @property {AssessmentType|null} [metric] AssessmentAssessmentAvailabilitySent metric
317
+ * @property {number|Long|null} [availableSince] AssessmentAssessmentAvailabilitySent availableSince
318
+ */
319
+
320
+ /**
321
+ * Constructs a new AssessmentAssessmentAvailabilitySent.
322
+ * @name AssessmentAssessmentAvailabilitySent
323
+ * @classdesc Represents an AssessmentAssessmentAvailabilitySent.
324
+ * @implements IAssessmentAssessmentAvailabilitySent
325
+ * @constructor
326
+ * @param {IAssessmentAssessmentAvailabilitySent=} [properties] Properties to set
327
+ */
328
+ function AssessmentAssessmentAvailabilitySent(properties) {
329
+ if (properties)
330
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
331
+ if (properties[keys[i]] != null)
332
+ this[keys[i]] = properties[keys[i]];
333
+ }
334
+
335
+ /**
336
+ * AssessmentAssessmentAvailabilitySent hsUserId.
337
+ * @member {string} hsUserId
338
+ * @memberof AssessmentAssessmentAvailabilitySent
339
+ * @instance
340
+ */
341
+ AssessmentAssessmentAvailabilitySent.prototype.hsUserId = "";
342
+
343
+ /**
344
+ * AssessmentAssessmentAvailabilitySent surveyId.
345
+ * @member {string} surveyId
346
+ * @memberof AssessmentAssessmentAvailabilitySent
347
+ * @instance
348
+ */
349
+ AssessmentAssessmentAvailabilitySent.prototype.surveyId = "";
350
+
351
+ /**
352
+ * AssessmentAssessmentAvailabilitySent metric.
353
+ * @member {AssessmentType} metric
354
+ * @memberof AssessmentAssessmentAvailabilitySent
355
+ * @instance
356
+ */
357
+ AssessmentAssessmentAvailabilitySent.prototype.metric = 0;
358
+
359
+ /**
360
+ * AssessmentAssessmentAvailabilitySent availableSince.
361
+ * @member {number|Long} availableSince
362
+ * @memberof AssessmentAssessmentAvailabilitySent
363
+ * @instance
364
+ */
365
+ AssessmentAssessmentAvailabilitySent.prototype.availableSince = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
366
+
367
+ /**
368
+ * Creates a new AssessmentAssessmentAvailabilitySent instance using the specified properties.
369
+ * @function create
370
+ * @memberof AssessmentAssessmentAvailabilitySent
371
+ * @static
372
+ * @param {IAssessmentAssessmentAvailabilitySent=} [properties] Properties to set
373
+ * @returns {AssessmentAssessmentAvailabilitySent} AssessmentAssessmentAvailabilitySent instance
374
+ */
375
+ AssessmentAssessmentAvailabilitySent.create = function create(properties) {
376
+ return new AssessmentAssessmentAvailabilitySent(properties);
377
+ };
378
+
379
+ /**
380
+ * Encodes the specified AssessmentAssessmentAvailabilitySent message. Does not implicitly {@link AssessmentAssessmentAvailabilitySent.verify|verify} messages.
381
+ * @function encode
382
+ * @memberof AssessmentAssessmentAvailabilitySent
383
+ * @static
384
+ * @param {IAssessmentAssessmentAvailabilitySent} message AssessmentAssessmentAvailabilitySent message or plain object to encode
385
+ * @param {$protobuf.Writer} [writer] Writer to encode to
386
+ * @returns {$protobuf.Writer} Writer
387
+ */
388
+ AssessmentAssessmentAvailabilitySent.encode = function encode(message, writer) {
389
+ if (!writer)
390
+ writer = $Writer.create();
391
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
392
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
393
+ if (message.surveyId != null && message.hasOwnProperty("surveyId"))
394
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.surveyId);
395
+ if (message.metric != null && message.hasOwnProperty("metric"))
396
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.metric);
397
+ if (message.availableSince != null && message.hasOwnProperty("availableSince"))
398
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.availableSince);
399
+ return writer;
400
+ };
401
+
402
+ /**
403
+ * Encodes the specified AssessmentAssessmentAvailabilitySent message, length delimited. Does not implicitly {@link AssessmentAssessmentAvailabilitySent.verify|verify} messages.
404
+ * @function encodeDelimited
405
+ * @memberof AssessmentAssessmentAvailabilitySent
406
+ * @static
407
+ * @param {IAssessmentAssessmentAvailabilitySent} message AssessmentAssessmentAvailabilitySent message or plain object to encode
408
+ * @param {$protobuf.Writer} [writer] Writer to encode to
409
+ * @returns {$protobuf.Writer} Writer
410
+ */
411
+ AssessmentAssessmentAvailabilitySent.encodeDelimited = function encodeDelimited(message, writer) {
412
+ return this.encode(message, writer).ldelim();
413
+ };
414
+
415
+ /**
416
+ * Decodes an AssessmentAssessmentAvailabilitySent message from the specified reader or buffer.
417
+ * @function decode
418
+ * @memberof AssessmentAssessmentAvailabilitySent
419
+ * @static
420
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
421
+ * @param {number} [length] Message length if known beforehand
422
+ * @returns {AssessmentAssessmentAvailabilitySent} AssessmentAssessmentAvailabilitySent
423
+ * @throws {Error} If the payload is not a reader or valid buffer
424
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
425
+ */
426
+ AssessmentAssessmentAvailabilitySent.decode = function decode(reader, length) {
427
+ if (!(reader instanceof $Reader))
428
+ reader = $Reader.create(reader);
429
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AssessmentAssessmentAvailabilitySent();
430
+ while (reader.pos < end) {
431
+ var tag = reader.uint32();
432
+ switch (tag >>> 3) {
433
+ case 1:
434
+ message.hsUserId = reader.string();
435
+ break;
436
+ case 2:
437
+ message.surveyId = reader.string();
438
+ break;
439
+ case 3:
440
+ message.metric = reader.int32();
441
+ break;
442
+ case 4:
443
+ message.availableSince = reader.uint64();
444
+ break;
445
+ default:
446
+ reader.skipType(tag & 7);
447
+ break;
448
+ }
449
+ }
450
+ return message;
451
+ };
452
+
453
+ /**
454
+ * Decodes an AssessmentAssessmentAvailabilitySent message from the specified reader or buffer, length delimited.
455
+ * @function decodeDelimited
456
+ * @memberof AssessmentAssessmentAvailabilitySent
457
+ * @static
458
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
459
+ * @returns {AssessmentAssessmentAvailabilitySent} AssessmentAssessmentAvailabilitySent
460
+ * @throws {Error} If the payload is not a reader or valid buffer
461
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
462
+ */
463
+ AssessmentAssessmentAvailabilitySent.decodeDelimited = function decodeDelimited(reader) {
464
+ if (!(reader instanceof $Reader))
465
+ reader = new $Reader(reader);
466
+ return this.decode(reader, reader.uint32());
467
+ };
468
+
469
+ /**
470
+ * Verifies an AssessmentAssessmentAvailabilitySent message.
471
+ * @function verify
472
+ * @memberof AssessmentAssessmentAvailabilitySent
473
+ * @static
474
+ * @param {Object.<string,*>} message Plain object to verify
475
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
476
+ */
477
+ AssessmentAssessmentAvailabilitySent.verify = function verify(message) {
478
+ if (typeof message !== "object" || message === null)
479
+ return "object expected";
480
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
481
+ if (!$util.isString(message.hsUserId))
482
+ return "hsUserId: string expected";
483
+ if (message.surveyId != null && message.hasOwnProperty("surveyId"))
484
+ if (!$util.isString(message.surveyId))
485
+ return "surveyId: string expected";
486
+ if (message.metric != null && message.hasOwnProperty("metric"))
487
+ switch (message.metric) {
488
+ default:
489
+ return "metric: enum value expected";
490
+ case 0:
491
+ case 1:
492
+ case 2:
493
+ case 3:
494
+ case 4:
495
+ break;
496
+ }
497
+ if (message.availableSince != null && message.hasOwnProperty("availableSince"))
498
+ if (!$util.isInteger(message.availableSince) && !(message.availableSince && $util.isInteger(message.availableSince.low) && $util.isInteger(message.availableSince.high)))
499
+ return "availableSince: integer|Long expected";
500
+ return null;
501
+ };
502
+
503
+ /**
504
+ * Creates an AssessmentAssessmentAvailabilitySent message from a plain object. Also converts values to their respective internal types.
505
+ * @function fromObject
506
+ * @memberof AssessmentAssessmentAvailabilitySent
507
+ * @static
508
+ * @param {Object.<string,*>} object Plain object
509
+ * @returns {AssessmentAssessmentAvailabilitySent} AssessmentAssessmentAvailabilitySent
510
+ */
511
+ AssessmentAssessmentAvailabilitySent.fromObject = function fromObject(object) {
512
+ if (object instanceof $root.AssessmentAssessmentAvailabilitySent)
513
+ return object;
514
+ var message = new $root.AssessmentAssessmentAvailabilitySent();
515
+ if (object.hsUserId != null)
516
+ message.hsUserId = String(object.hsUserId);
517
+ if (object.surveyId != null)
518
+ message.surveyId = String(object.surveyId);
519
+ switch (object.metric) {
520
+ case "ASSESSMENT_TYPE_UNKNOWN":
521
+ case 0:
522
+ message.metric = 0;
523
+ break;
524
+ case "ASSESSMENT_TYPE_STRESS":
525
+ case 1:
526
+ message.metric = 1;
527
+ break;
528
+ case "ASSESSMENT_TYPE_ANXIETY":
529
+ case 2:
530
+ message.metric = 2;
531
+ break;
532
+ case "ASSESSMENT_TYPE_DEPRESSION":
533
+ case 3:
534
+ message.metric = 3;
535
+ break;
536
+ case "ASSESSMENT_TYPE_SLEEP":
537
+ case 4:
538
+ message.metric = 4;
539
+ break;
540
+ }
541
+ if (object.availableSince != null)
542
+ if ($util.Long)
543
+ (message.availableSince = $util.Long.fromValue(object.availableSince)).unsigned = true;
544
+ else if (typeof object.availableSince === "string")
545
+ message.availableSince = parseInt(object.availableSince, 10);
546
+ else if (typeof object.availableSince === "number")
547
+ message.availableSince = object.availableSince;
548
+ else if (typeof object.availableSince === "object")
549
+ message.availableSince = new $util.LongBits(object.availableSince.low >>> 0, object.availableSince.high >>> 0).toNumber(true);
550
+ return message;
551
+ };
552
+
553
+ /**
554
+ * Creates a plain object from an AssessmentAssessmentAvailabilitySent message. Also converts values to other types if specified.
555
+ * @function toObject
556
+ * @memberof AssessmentAssessmentAvailabilitySent
557
+ * @static
558
+ * @param {AssessmentAssessmentAvailabilitySent} message AssessmentAssessmentAvailabilitySent
559
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
560
+ * @returns {Object.<string,*>} Plain object
561
+ */
562
+ AssessmentAssessmentAvailabilitySent.toObject = function toObject(message, options) {
563
+ if (!options)
564
+ options = {};
565
+ var object = {};
566
+ if (options.defaults) {
567
+ object.hsUserId = "";
568
+ object.surveyId = "";
569
+ object.metric = options.enums === String ? "ASSESSMENT_TYPE_UNKNOWN" : 0;
570
+ if ($util.Long) {
571
+ var long = new $util.Long(0, 0, true);
572
+ object.availableSince = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
573
+ } else
574
+ object.availableSince = options.longs === String ? "0" : 0;
575
+ }
576
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
577
+ object.hsUserId = message.hsUserId;
578
+ if (message.surveyId != null && message.hasOwnProperty("surveyId"))
579
+ object.surveyId = message.surveyId;
580
+ if (message.metric != null && message.hasOwnProperty("metric"))
581
+ object.metric = options.enums === String ? $root.AssessmentType[message.metric] : message.metric;
582
+ if (message.availableSince != null && message.hasOwnProperty("availableSince"))
583
+ if (typeof message.availableSince === "number")
584
+ object.availableSince = options.longs === String ? String(message.availableSince) : message.availableSince;
585
+ else
586
+ object.availableSince = options.longs === String ? $util.Long.prototype.toString.call(message.availableSince) : options.longs === Number ? new $util.LongBits(message.availableSince.low >>> 0, message.availableSince.high >>> 0).toNumber(true) : message.availableSince;
587
+ return object;
588
+ };
589
+
590
+ /**
591
+ * Converts this AssessmentAssessmentAvailabilitySent to JSON.
592
+ * @function toJSON
593
+ * @memberof AssessmentAssessmentAvailabilitySent
594
+ * @instance
595
+ * @returns {Object.<string,*>} JSON object
596
+ */
597
+ AssessmentAssessmentAvailabilitySent.prototype.toJSON = function toJSON() {
598
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
599
+ };
600
+
601
+ return AssessmentAssessmentAvailabilitySent;
602
+ })();
603
+
288
604
  $root.UserPasswordResetCompleted = (function() {
289
605
 
290
606
  /**
@@ -15259,6 +15575,7 @@ $root.AppointmentRatingRequested = (function() {
15259
15575
  * @property {string|null} [gingerUserId] AppointmentRatingRequested gingerUserId
15260
15576
  * @property {string|null} [hsUserId] AppointmentRatingRequested hsUserId
15261
15577
  * @property {number|Long|null} [requestedAt] AppointmentRatingRequested requestedAt
15578
+ * @property {string|null} [clinicianId] AppointmentRatingRequested clinicianId
15262
15579
  */
15263
15580
 
15264
15581
  /**
@@ -15308,6 +15625,14 @@ $root.AppointmentRatingRequested = (function() {
15308
15625
  */
15309
15626
  AppointmentRatingRequested.prototype.requestedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
15310
15627
 
15628
+ /**
15629
+ * AppointmentRatingRequested clinicianId.
15630
+ * @member {string} clinicianId
15631
+ * @memberof AppointmentRatingRequested
15632
+ * @instance
15633
+ */
15634
+ AppointmentRatingRequested.prototype.clinicianId = "";
15635
+
15311
15636
  /**
15312
15637
  * Creates a new AppointmentRatingRequested instance using the specified properties.
15313
15638
  * @function create
@@ -15340,6 +15665,8 @@ $root.AppointmentRatingRequested = (function() {
15340
15665
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
15341
15666
  if (message.requestedAt != null && message.hasOwnProperty("requestedAt"))
15342
15667
  writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.requestedAt);
15668
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
15669
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.clinicianId);
15343
15670
  return writer;
15344
15671
  };
15345
15672
 
@@ -15386,6 +15713,9 @@ $root.AppointmentRatingRequested = (function() {
15386
15713
  case 4:
15387
15714
  message.requestedAt = reader.uint64();
15388
15715
  break;
15716
+ case 5:
15717
+ message.clinicianId = reader.string();
15718
+ break;
15389
15719
  default:
15390
15720
  reader.skipType(tag & 7);
15391
15721
  break;
@@ -15433,6 +15763,9 @@ $root.AppointmentRatingRequested = (function() {
15433
15763
  if (message.requestedAt != null && message.hasOwnProperty("requestedAt"))
15434
15764
  if (!$util.isInteger(message.requestedAt) && !(message.requestedAt && $util.isInteger(message.requestedAt.low) && $util.isInteger(message.requestedAt.high)))
15435
15765
  return "requestedAt: integer|Long expected";
15766
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
15767
+ if (!$util.isString(message.clinicianId))
15768
+ return "clinicianId: string expected";
15436
15769
  return null;
15437
15770
  };
15438
15771
 
@@ -15463,6 +15796,8 @@ $root.AppointmentRatingRequested = (function() {
15463
15796
  message.requestedAt = object.requestedAt;
15464
15797
  else if (typeof object.requestedAt === "object")
15465
15798
  message.requestedAt = new $util.LongBits(object.requestedAt.low >>> 0, object.requestedAt.high >>> 0).toNumber(true);
15799
+ if (object.clinicianId != null)
15800
+ message.clinicianId = String(object.clinicianId);
15466
15801
  return message;
15467
15802
  };
15468
15803
 
@@ -15488,6 +15823,7 @@ $root.AppointmentRatingRequested = (function() {
15488
15823
  object.requestedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
15489
15824
  } else
15490
15825
  object.requestedAt = options.longs === String ? "0" : 0;
15826
+ object.clinicianId = "";
15491
15827
  }
15492
15828
  if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
15493
15829
  object.appointmentId = message.appointmentId;
@@ -15500,6 +15836,8 @@ $root.AppointmentRatingRequested = (function() {
15500
15836
  object.requestedAt = options.longs === String ? String(message.requestedAt) : message.requestedAt;
15501
15837
  else
15502
15838
  object.requestedAt = options.longs === String ? $util.Long.prototype.toString.call(message.requestedAt) : options.longs === Number ? new $util.LongBits(message.requestedAt.low >>> 0, message.requestedAt.high >>> 0).toNumber(true) : message.requestedAt;
15839
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
15840
+ object.clinicianId = message.clinicianId;
15503
15841
  return object;
15504
15842
  };
15505
15843
 
@@ -15528,6 +15866,7 @@ $root.AppointmentRatingDismissed = (function() {
15528
15866
  * @property {string|null} [hsUserId] AppointmentRatingDismissed hsUserId
15529
15867
  * @property {number|Long|null} [dismissedAt] AppointmentRatingDismissed dismissedAt
15530
15868
  * @property {number|null} [dismissedCount] AppointmentRatingDismissed dismissedCount
15869
+ * @property {string|null} [clinicianId] AppointmentRatingDismissed clinicianId
15531
15870
  */
15532
15871
 
15533
15872
  /**
@@ -15585,6 +15924,14 @@ $root.AppointmentRatingDismissed = (function() {
15585
15924
  */
15586
15925
  AppointmentRatingDismissed.prototype.dismissedCount = 0;
15587
15926
 
15927
+ /**
15928
+ * AppointmentRatingDismissed clinicianId.
15929
+ * @member {string} clinicianId
15930
+ * @memberof AppointmentRatingDismissed
15931
+ * @instance
15932
+ */
15933
+ AppointmentRatingDismissed.prototype.clinicianId = "";
15934
+
15588
15935
  /**
15589
15936
  * Creates a new AppointmentRatingDismissed instance using the specified properties.
15590
15937
  * @function create
@@ -15619,6 +15966,8 @@ $root.AppointmentRatingDismissed = (function() {
15619
15966
  writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.dismissedAt);
15620
15967
  if (message.dismissedCount != null && message.hasOwnProperty("dismissedCount"))
15621
15968
  writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.dismissedCount);
15969
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
15970
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.clinicianId);
15622
15971
  return writer;
15623
15972
  };
15624
15973
 
@@ -15668,6 +16017,9 @@ $root.AppointmentRatingDismissed = (function() {
15668
16017
  case 5:
15669
16018
  message.dismissedCount = reader.uint32();
15670
16019
  break;
16020
+ case 6:
16021
+ message.clinicianId = reader.string();
16022
+ break;
15671
16023
  default:
15672
16024
  reader.skipType(tag & 7);
15673
16025
  break;
@@ -15718,6 +16070,9 @@ $root.AppointmentRatingDismissed = (function() {
15718
16070
  if (message.dismissedCount != null && message.hasOwnProperty("dismissedCount"))
15719
16071
  if (!$util.isInteger(message.dismissedCount))
15720
16072
  return "dismissedCount: integer expected";
16073
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
16074
+ if (!$util.isString(message.clinicianId))
16075
+ return "clinicianId: string expected";
15721
16076
  return null;
15722
16077
  };
15723
16078
 
@@ -15750,6 +16105,8 @@ $root.AppointmentRatingDismissed = (function() {
15750
16105
  message.dismissedAt = new $util.LongBits(object.dismissedAt.low >>> 0, object.dismissedAt.high >>> 0).toNumber(true);
15751
16106
  if (object.dismissedCount != null)
15752
16107
  message.dismissedCount = object.dismissedCount >>> 0;
16108
+ if (object.clinicianId != null)
16109
+ message.clinicianId = String(object.clinicianId);
15753
16110
  return message;
15754
16111
  };
15755
16112
 
@@ -15776,6 +16133,7 @@ $root.AppointmentRatingDismissed = (function() {
15776
16133
  } else
15777
16134
  object.dismissedAt = options.longs === String ? "0" : 0;
15778
16135
  object.dismissedCount = 0;
16136
+ object.clinicianId = "";
15779
16137
  }
15780
16138
  if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
15781
16139
  object.appointmentId = message.appointmentId;
@@ -15790,6 +16148,8 @@ $root.AppointmentRatingDismissed = (function() {
15790
16148
  object.dismissedAt = options.longs === String ? $util.Long.prototype.toString.call(message.dismissedAt) : options.longs === Number ? new $util.LongBits(message.dismissedAt.low >>> 0, message.dismissedAt.high >>> 0).toNumber(true) : message.dismissedAt;
15791
16149
  if (message.dismissedCount != null && message.hasOwnProperty("dismissedCount"))
15792
16150
  object.dismissedCount = message.dismissedCount;
16151
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
16152
+ object.clinicianId = message.clinicianId;
15793
16153
  return object;
15794
16154
  };
15795
16155
 
@@ -15821,6 +16181,7 @@ $root.AppointmentRatingSubmitted = (function() {
15821
16181
  * @property {number|null} [feltSupportedRating] AppointmentRatingSubmitted feltSupportedRating
15822
16182
  * @property {number|null} [approachRating] AppointmentRatingSubmitted approachRating
15823
16183
  * @property {number|Long|null} [submittedAt] AppointmentRatingSubmitted submittedAt
16184
+ * @property {string|null} [clinicianId] AppointmentRatingSubmitted clinicianId
15824
16185
  */
15825
16186
 
15826
16187
  /**
@@ -15902,6 +16263,14 @@ $root.AppointmentRatingSubmitted = (function() {
15902
16263
  */
15903
16264
  AppointmentRatingSubmitted.prototype.submittedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
15904
16265
 
16266
+ /**
16267
+ * AppointmentRatingSubmitted clinicianId.
16268
+ * @member {string} clinicianId
16269
+ * @memberof AppointmentRatingSubmitted
16270
+ * @instance
16271
+ */
16272
+ AppointmentRatingSubmitted.prototype.clinicianId = "";
16273
+
15905
16274
  /**
15906
16275
  * Creates a new AppointmentRatingSubmitted instance using the specified properties.
15907
16276
  * @function create
@@ -15942,6 +16311,8 @@ $root.AppointmentRatingSubmitted = (function() {
15942
16311
  writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.approachRating);
15943
16312
  if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
15944
16313
  writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.submittedAt);
16314
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
16315
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.clinicianId);
15945
16316
  return writer;
15946
16317
  };
15947
16318
 
@@ -16000,6 +16371,9 @@ $root.AppointmentRatingSubmitted = (function() {
16000
16371
  case 8:
16001
16372
  message.submittedAt = reader.uint64();
16002
16373
  break;
16374
+ case 9:
16375
+ message.clinicianId = reader.string();
16376
+ break;
16003
16377
  default:
16004
16378
  reader.skipType(tag & 7);
16005
16379
  break;
@@ -16059,6 +16433,9 @@ $root.AppointmentRatingSubmitted = (function() {
16059
16433
  if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
16060
16434
  if (!$util.isInteger(message.submittedAt) && !(message.submittedAt && $util.isInteger(message.submittedAt.low) && $util.isInteger(message.submittedAt.high)))
16061
16435
  return "submittedAt: integer|Long expected";
16436
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
16437
+ if (!$util.isString(message.clinicianId))
16438
+ return "clinicianId: string expected";
16062
16439
  return null;
16063
16440
  };
16064
16441
 
@@ -16097,6 +16474,8 @@ $root.AppointmentRatingSubmitted = (function() {
16097
16474
  message.submittedAt = object.submittedAt;
16098
16475
  else if (typeof object.submittedAt === "object")
16099
16476
  message.submittedAt = new $util.LongBits(object.submittedAt.low >>> 0, object.submittedAt.high >>> 0).toNumber(true);
16477
+ if (object.clinicianId != null)
16478
+ message.clinicianId = String(object.clinicianId);
16100
16479
  return message;
16101
16480
  };
16102
16481
 
@@ -16126,6 +16505,7 @@ $root.AppointmentRatingSubmitted = (function() {
16126
16505
  object.submittedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
16127
16506
  } else
16128
16507
  object.submittedAt = options.longs === String ? "0" : 0;
16508
+ object.clinicianId = "";
16129
16509
  }
16130
16510
  if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
16131
16511
  object.appointmentId = message.appointmentId;
@@ -16146,6 +16526,8 @@ $root.AppointmentRatingSubmitted = (function() {
16146
16526
  object.submittedAt = options.longs === String ? String(message.submittedAt) : message.submittedAt;
16147
16527
  else
16148
16528
  object.submittedAt = options.longs === String ? $util.Long.prototype.toString.call(message.submittedAt) : options.longs === Number ? new $util.LongBits(message.submittedAt.low >>> 0, message.submittedAt.high >>> 0).toNumber(true) : message.submittedAt;
16529
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
16530
+ object.clinicianId = message.clinicianId;
16149
16531
  return object;
16150
16532
  };
16151
16533
 
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.705.0"
19
+ "version": "1.707.0"
20
20
  }