@headspace/protos-events 1.635.0 → 1.637.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
@@ -169,6 +169,153 @@ export namespace auth0 {
169
169
  /** Namespace clinical. */
170
170
  export namespace clinical {
171
171
 
172
+ /** ContactReason enum. */
173
+ enum ContactReason {
174
+ CONTACT_REASON_UNKNOWN = 0,
175
+ CONTACT_REASON_COORDINATION_OF_CARE = 1,
176
+ CONTACT_REASON_OUTREACH = 2,
177
+ CONTACT_REASON_MEMBER_NO_SHOW_OR_LATE_CANCELLATION = 3,
178
+ CONTACT_REASON_OTHER = 4
179
+ }
180
+
181
+ /** Properties of an AdditionalWork. */
182
+ interface IAdditionalWork {
183
+
184
+ /** AdditionalWork id */
185
+ id?: (number|null);
186
+
187
+ /** AdditionalWork gingerUserId */
188
+ gingerUserId?: (number|null);
189
+
190
+ /** AdditionalWork hsUserId */
191
+ hsUserId?: (string|null);
192
+
193
+ /** AdditionalWork clinicianId */
194
+ clinicianId?: (string|null);
195
+
196
+ /** AdditionalWork createdAt */
197
+ createdAt?: (number|Long|null);
198
+
199
+ /** AdditionalWork updatedAt */
200
+ updatedAt?: (number|Long|null);
201
+
202
+ /** AdditionalWork startedAt */
203
+ startedAt?: (number|Long|null);
204
+
205
+ /** AdditionalWork duration */
206
+ duration?: (number|null);
207
+
208
+ /** AdditionalWork reasonForContact */
209
+ reasonForContact?: (clinical.ContactReason|null);
210
+ }
211
+
212
+ /** Represents an AdditionalWork. */
213
+ class AdditionalWork implements IAdditionalWork {
214
+
215
+ /**
216
+ * Constructs a new AdditionalWork.
217
+ * @param [properties] Properties to set
218
+ */
219
+ constructor(properties?: clinical.IAdditionalWork);
220
+
221
+ /** AdditionalWork id. */
222
+ public id: number;
223
+
224
+ /** AdditionalWork gingerUserId. */
225
+ public gingerUserId: number;
226
+
227
+ /** AdditionalWork hsUserId. */
228
+ public hsUserId: string;
229
+
230
+ /** AdditionalWork clinicianId. */
231
+ public clinicianId: string;
232
+
233
+ /** AdditionalWork createdAt. */
234
+ public createdAt: (number|Long);
235
+
236
+ /** AdditionalWork updatedAt. */
237
+ public updatedAt: (number|Long);
238
+
239
+ /** AdditionalWork startedAt. */
240
+ public startedAt: (number|Long);
241
+
242
+ /** AdditionalWork duration. */
243
+ public duration: number;
244
+
245
+ /** AdditionalWork reasonForContact. */
246
+ public reasonForContact: clinical.ContactReason;
247
+
248
+ /**
249
+ * Creates a new AdditionalWork instance using the specified properties.
250
+ * @param [properties] Properties to set
251
+ * @returns AdditionalWork instance
252
+ */
253
+ public static create(properties?: clinical.IAdditionalWork): clinical.AdditionalWork;
254
+
255
+ /**
256
+ * Encodes the specified AdditionalWork message. Does not implicitly {@link clinical.AdditionalWork.verify|verify} messages.
257
+ * @param message AdditionalWork message or plain object to encode
258
+ * @param [writer] Writer to encode to
259
+ * @returns Writer
260
+ */
261
+ public static encode(message: clinical.IAdditionalWork, writer?: $protobuf.Writer): $protobuf.Writer;
262
+
263
+ /**
264
+ * Encodes the specified AdditionalWork message, length delimited. Does not implicitly {@link clinical.AdditionalWork.verify|verify} messages.
265
+ * @param message AdditionalWork message or plain object to encode
266
+ * @param [writer] Writer to encode to
267
+ * @returns Writer
268
+ */
269
+ public static encodeDelimited(message: clinical.IAdditionalWork, writer?: $protobuf.Writer): $protobuf.Writer;
270
+
271
+ /**
272
+ * Decodes an AdditionalWork message from the specified reader or buffer.
273
+ * @param reader Reader or buffer to decode from
274
+ * @param [length] Message length if known beforehand
275
+ * @returns AdditionalWork
276
+ * @throws {Error} If the payload is not a reader or valid buffer
277
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
278
+ */
279
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): clinical.AdditionalWork;
280
+
281
+ /**
282
+ * Decodes an AdditionalWork message from the specified reader or buffer, length delimited.
283
+ * @param reader Reader or buffer to decode from
284
+ * @returns AdditionalWork
285
+ * @throws {Error} If the payload is not a reader or valid buffer
286
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
287
+ */
288
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): clinical.AdditionalWork;
289
+
290
+ /**
291
+ * Verifies an AdditionalWork message.
292
+ * @param message Plain object to verify
293
+ * @returns `null` if valid, otherwise the reason why it is not
294
+ */
295
+ public static verify(message: { [k: string]: any }): (string|null);
296
+
297
+ /**
298
+ * Creates an AdditionalWork message from a plain object. Also converts values to their respective internal types.
299
+ * @param object Plain object
300
+ * @returns AdditionalWork
301
+ */
302
+ public static fromObject(object: { [k: string]: any }): clinical.AdditionalWork;
303
+
304
+ /**
305
+ * Creates a plain object from an AdditionalWork message. Also converts values to other types if specified.
306
+ * @param message AdditionalWork
307
+ * @param [options] Conversion options
308
+ * @returns Plain object
309
+ */
310
+ public static toObject(message: clinical.AdditionalWork, options?: $protobuf.IConversionOptions): { [k: string]: any };
311
+
312
+ /**
313
+ * Converts this AdditionalWork to JSON.
314
+ * @returns JSON object
315
+ */
316
+ public toJSON(): { [k: string]: any };
317
+ }
318
+
172
319
  /** Properties of a ClinicalAvailability. */
173
320
  interface IClinicalAvailability {
174
321
 
@@ -13997,6 +14144,9 @@ export namespace b2b {
13997
14144
 
13998
14145
  /** Organization overlappedCareId */
13999
14146
  overlappedCareId?: (number|null);
14147
+
14148
+ /** Organization campaignDisplayLogo */
14149
+ campaignDisplayLogo?: (string|null);
14000
14150
  }
14001
14151
 
14002
14152
  /** Represents an Organization. */
@@ -14077,6 +14227,9 @@ export namespace b2b {
14077
14227
  /** Organization overlappedCareId. */
14078
14228
  public overlappedCareId: number;
14079
14229
 
14230
+ /** Organization campaignDisplayLogo. */
14231
+ public campaignDisplayLogo: string;
14232
+
14080
14233
  /**
14081
14234
  * Creates a new Organization instance using the specified properties.
14082
14235
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -405,6 +405,460 @@ $root.clinical = (function() {
405
405
  */
406
406
  var clinical = {};
407
407
 
408
+ /**
409
+ * ContactReason enum.
410
+ * @name clinical.ContactReason
411
+ * @enum {string}
412
+ * @property {number} CONTACT_REASON_UNKNOWN=0 CONTACT_REASON_UNKNOWN value
413
+ * @property {number} CONTACT_REASON_COORDINATION_OF_CARE=1 CONTACT_REASON_COORDINATION_OF_CARE value
414
+ * @property {number} CONTACT_REASON_OUTREACH=2 CONTACT_REASON_OUTREACH value
415
+ * @property {number} CONTACT_REASON_MEMBER_NO_SHOW_OR_LATE_CANCELLATION=3 CONTACT_REASON_MEMBER_NO_SHOW_OR_LATE_CANCELLATION value
416
+ * @property {number} CONTACT_REASON_OTHER=4 CONTACT_REASON_OTHER value
417
+ */
418
+ clinical.ContactReason = (function() {
419
+ var valuesById = {}, values = Object.create(valuesById);
420
+ values[valuesById[0] = "CONTACT_REASON_UNKNOWN"] = 0;
421
+ values[valuesById[1] = "CONTACT_REASON_COORDINATION_OF_CARE"] = 1;
422
+ values[valuesById[2] = "CONTACT_REASON_OUTREACH"] = 2;
423
+ values[valuesById[3] = "CONTACT_REASON_MEMBER_NO_SHOW_OR_LATE_CANCELLATION"] = 3;
424
+ values[valuesById[4] = "CONTACT_REASON_OTHER"] = 4;
425
+ return values;
426
+ })();
427
+
428
+ clinical.AdditionalWork = (function() {
429
+
430
+ /**
431
+ * Properties of an AdditionalWork.
432
+ * @memberof clinical
433
+ * @interface IAdditionalWork
434
+ * @property {number|null} [id] AdditionalWork id
435
+ * @property {number|null} [gingerUserId] AdditionalWork gingerUserId
436
+ * @property {string|null} [hsUserId] AdditionalWork hsUserId
437
+ * @property {string|null} [clinicianId] AdditionalWork clinicianId
438
+ * @property {number|Long|null} [createdAt] AdditionalWork createdAt
439
+ * @property {number|Long|null} [updatedAt] AdditionalWork updatedAt
440
+ * @property {number|Long|null} [startedAt] AdditionalWork startedAt
441
+ * @property {number|null} [duration] AdditionalWork duration
442
+ * @property {clinical.ContactReason|null} [reasonForContact] AdditionalWork reasonForContact
443
+ */
444
+
445
+ /**
446
+ * Constructs a new AdditionalWork.
447
+ * @memberof clinical
448
+ * @classdesc Represents an AdditionalWork.
449
+ * @implements IAdditionalWork
450
+ * @constructor
451
+ * @param {clinical.IAdditionalWork=} [properties] Properties to set
452
+ */
453
+ function AdditionalWork(properties) {
454
+ if (properties)
455
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
456
+ if (properties[keys[i]] != null)
457
+ this[keys[i]] = properties[keys[i]];
458
+ }
459
+
460
+ /**
461
+ * AdditionalWork id.
462
+ * @member {number} id
463
+ * @memberof clinical.AdditionalWork
464
+ * @instance
465
+ */
466
+ AdditionalWork.prototype.id = 0;
467
+
468
+ /**
469
+ * AdditionalWork gingerUserId.
470
+ * @member {number} gingerUserId
471
+ * @memberof clinical.AdditionalWork
472
+ * @instance
473
+ */
474
+ AdditionalWork.prototype.gingerUserId = 0;
475
+
476
+ /**
477
+ * AdditionalWork hsUserId.
478
+ * @member {string} hsUserId
479
+ * @memberof clinical.AdditionalWork
480
+ * @instance
481
+ */
482
+ AdditionalWork.prototype.hsUserId = "";
483
+
484
+ /**
485
+ * AdditionalWork clinicianId.
486
+ * @member {string} clinicianId
487
+ * @memberof clinical.AdditionalWork
488
+ * @instance
489
+ */
490
+ AdditionalWork.prototype.clinicianId = "";
491
+
492
+ /**
493
+ * AdditionalWork createdAt.
494
+ * @member {number|Long} createdAt
495
+ * @memberof clinical.AdditionalWork
496
+ * @instance
497
+ */
498
+ AdditionalWork.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
499
+
500
+ /**
501
+ * AdditionalWork updatedAt.
502
+ * @member {number|Long} updatedAt
503
+ * @memberof clinical.AdditionalWork
504
+ * @instance
505
+ */
506
+ AdditionalWork.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
507
+
508
+ /**
509
+ * AdditionalWork startedAt.
510
+ * @member {number|Long} startedAt
511
+ * @memberof clinical.AdditionalWork
512
+ * @instance
513
+ */
514
+ AdditionalWork.prototype.startedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
515
+
516
+ /**
517
+ * AdditionalWork duration.
518
+ * @member {number} duration
519
+ * @memberof clinical.AdditionalWork
520
+ * @instance
521
+ */
522
+ AdditionalWork.prototype.duration = 0;
523
+
524
+ /**
525
+ * AdditionalWork reasonForContact.
526
+ * @member {clinical.ContactReason} reasonForContact
527
+ * @memberof clinical.AdditionalWork
528
+ * @instance
529
+ */
530
+ AdditionalWork.prototype.reasonForContact = 0;
531
+
532
+ /**
533
+ * Creates a new AdditionalWork instance using the specified properties.
534
+ * @function create
535
+ * @memberof clinical.AdditionalWork
536
+ * @static
537
+ * @param {clinical.IAdditionalWork=} [properties] Properties to set
538
+ * @returns {clinical.AdditionalWork} AdditionalWork instance
539
+ */
540
+ AdditionalWork.create = function create(properties) {
541
+ return new AdditionalWork(properties);
542
+ };
543
+
544
+ /**
545
+ * Encodes the specified AdditionalWork message. Does not implicitly {@link clinical.AdditionalWork.verify|verify} messages.
546
+ * @function encode
547
+ * @memberof clinical.AdditionalWork
548
+ * @static
549
+ * @param {clinical.IAdditionalWork} message AdditionalWork message or plain object to encode
550
+ * @param {$protobuf.Writer} [writer] Writer to encode to
551
+ * @returns {$protobuf.Writer} Writer
552
+ */
553
+ AdditionalWork.encode = function encode(message, writer) {
554
+ if (!writer)
555
+ writer = $Writer.create();
556
+ if (message.id != null && message.hasOwnProperty("id"))
557
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
558
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
559
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
560
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
561
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
562
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
563
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.clinicianId);
564
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
565
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
566
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
567
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.updatedAt);
568
+ if (message.startedAt != null && message.hasOwnProperty("startedAt"))
569
+ writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.startedAt);
570
+ if (message.duration != null && message.hasOwnProperty("duration"))
571
+ writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.duration);
572
+ if (message.reasonForContact != null && message.hasOwnProperty("reasonForContact"))
573
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.reasonForContact);
574
+ return writer;
575
+ };
576
+
577
+ /**
578
+ * Encodes the specified AdditionalWork message, length delimited. Does not implicitly {@link clinical.AdditionalWork.verify|verify} messages.
579
+ * @function encodeDelimited
580
+ * @memberof clinical.AdditionalWork
581
+ * @static
582
+ * @param {clinical.IAdditionalWork} message AdditionalWork message or plain object to encode
583
+ * @param {$protobuf.Writer} [writer] Writer to encode to
584
+ * @returns {$protobuf.Writer} Writer
585
+ */
586
+ AdditionalWork.encodeDelimited = function encodeDelimited(message, writer) {
587
+ return this.encode(message, writer).ldelim();
588
+ };
589
+
590
+ /**
591
+ * Decodes an AdditionalWork message from the specified reader or buffer.
592
+ * @function decode
593
+ * @memberof clinical.AdditionalWork
594
+ * @static
595
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
596
+ * @param {number} [length] Message length if known beforehand
597
+ * @returns {clinical.AdditionalWork} AdditionalWork
598
+ * @throws {Error} If the payload is not a reader or valid buffer
599
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
600
+ */
601
+ AdditionalWork.decode = function decode(reader, length) {
602
+ if (!(reader instanceof $Reader))
603
+ reader = $Reader.create(reader);
604
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.AdditionalWork();
605
+ while (reader.pos < end) {
606
+ var tag = reader.uint32();
607
+ switch (tag >>> 3) {
608
+ case 1:
609
+ message.id = reader.uint32();
610
+ break;
611
+ case 2:
612
+ message.gingerUserId = reader.uint32();
613
+ break;
614
+ case 3:
615
+ message.hsUserId = reader.string();
616
+ break;
617
+ case 4:
618
+ message.clinicianId = reader.string();
619
+ break;
620
+ case 5:
621
+ message.createdAt = reader.uint64();
622
+ break;
623
+ case 6:
624
+ message.updatedAt = reader.uint64();
625
+ break;
626
+ case 7:
627
+ message.startedAt = reader.uint64();
628
+ break;
629
+ case 8:
630
+ message.duration = reader.uint32();
631
+ break;
632
+ case 9:
633
+ message.reasonForContact = reader.int32();
634
+ break;
635
+ default:
636
+ reader.skipType(tag & 7);
637
+ break;
638
+ }
639
+ }
640
+ return message;
641
+ };
642
+
643
+ /**
644
+ * Decodes an AdditionalWork message from the specified reader or buffer, length delimited.
645
+ * @function decodeDelimited
646
+ * @memberof clinical.AdditionalWork
647
+ * @static
648
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
649
+ * @returns {clinical.AdditionalWork} AdditionalWork
650
+ * @throws {Error} If the payload is not a reader or valid buffer
651
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
652
+ */
653
+ AdditionalWork.decodeDelimited = function decodeDelimited(reader) {
654
+ if (!(reader instanceof $Reader))
655
+ reader = new $Reader(reader);
656
+ return this.decode(reader, reader.uint32());
657
+ };
658
+
659
+ /**
660
+ * Verifies an AdditionalWork message.
661
+ * @function verify
662
+ * @memberof clinical.AdditionalWork
663
+ * @static
664
+ * @param {Object.<string,*>} message Plain object to verify
665
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
666
+ */
667
+ AdditionalWork.verify = function verify(message) {
668
+ if (typeof message !== "object" || message === null)
669
+ return "object expected";
670
+ if (message.id != null && message.hasOwnProperty("id"))
671
+ if (!$util.isInteger(message.id))
672
+ return "id: integer expected";
673
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
674
+ if (!$util.isInteger(message.gingerUserId))
675
+ return "gingerUserId: integer expected";
676
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
677
+ if (!$util.isString(message.hsUserId))
678
+ return "hsUserId: string expected";
679
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
680
+ if (!$util.isString(message.clinicianId))
681
+ return "clinicianId: string expected";
682
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
683
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
684
+ return "createdAt: integer|Long expected";
685
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
686
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
687
+ return "updatedAt: integer|Long expected";
688
+ if (message.startedAt != null && message.hasOwnProperty("startedAt"))
689
+ if (!$util.isInteger(message.startedAt) && !(message.startedAt && $util.isInteger(message.startedAt.low) && $util.isInteger(message.startedAt.high)))
690
+ return "startedAt: integer|Long expected";
691
+ if (message.duration != null && message.hasOwnProperty("duration"))
692
+ if (!$util.isInteger(message.duration))
693
+ return "duration: integer expected";
694
+ if (message.reasonForContact != null && message.hasOwnProperty("reasonForContact"))
695
+ switch (message.reasonForContact) {
696
+ default:
697
+ return "reasonForContact: enum value expected";
698
+ case 0:
699
+ case 1:
700
+ case 2:
701
+ case 3:
702
+ case 4:
703
+ break;
704
+ }
705
+ return null;
706
+ };
707
+
708
+ /**
709
+ * Creates an AdditionalWork message from a plain object. Also converts values to their respective internal types.
710
+ * @function fromObject
711
+ * @memberof clinical.AdditionalWork
712
+ * @static
713
+ * @param {Object.<string,*>} object Plain object
714
+ * @returns {clinical.AdditionalWork} AdditionalWork
715
+ */
716
+ AdditionalWork.fromObject = function fromObject(object) {
717
+ if (object instanceof $root.clinical.AdditionalWork)
718
+ return object;
719
+ var message = new $root.clinical.AdditionalWork();
720
+ if (object.id != null)
721
+ message.id = object.id >>> 0;
722
+ if (object.gingerUserId != null)
723
+ message.gingerUserId = object.gingerUserId >>> 0;
724
+ if (object.hsUserId != null)
725
+ message.hsUserId = String(object.hsUserId);
726
+ if (object.clinicianId != null)
727
+ message.clinicianId = String(object.clinicianId);
728
+ if (object.createdAt != null)
729
+ if ($util.Long)
730
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
731
+ else if (typeof object.createdAt === "string")
732
+ message.createdAt = parseInt(object.createdAt, 10);
733
+ else if (typeof object.createdAt === "number")
734
+ message.createdAt = object.createdAt;
735
+ else if (typeof object.createdAt === "object")
736
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
737
+ if (object.updatedAt != null)
738
+ if ($util.Long)
739
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
740
+ else if (typeof object.updatedAt === "string")
741
+ message.updatedAt = parseInt(object.updatedAt, 10);
742
+ else if (typeof object.updatedAt === "number")
743
+ message.updatedAt = object.updatedAt;
744
+ else if (typeof object.updatedAt === "object")
745
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
746
+ if (object.startedAt != null)
747
+ if ($util.Long)
748
+ (message.startedAt = $util.Long.fromValue(object.startedAt)).unsigned = true;
749
+ else if (typeof object.startedAt === "string")
750
+ message.startedAt = parseInt(object.startedAt, 10);
751
+ else if (typeof object.startedAt === "number")
752
+ message.startedAt = object.startedAt;
753
+ else if (typeof object.startedAt === "object")
754
+ message.startedAt = new $util.LongBits(object.startedAt.low >>> 0, object.startedAt.high >>> 0).toNumber(true);
755
+ if (object.duration != null)
756
+ message.duration = object.duration >>> 0;
757
+ switch (object.reasonForContact) {
758
+ case "CONTACT_REASON_UNKNOWN":
759
+ case 0:
760
+ message.reasonForContact = 0;
761
+ break;
762
+ case "CONTACT_REASON_COORDINATION_OF_CARE":
763
+ case 1:
764
+ message.reasonForContact = 1;
765
+ break;
766
+ case "CONTACT_REASON_OUTREACH":
767
+ case 2:
768
+ message.reasonForContact = 2;
769
+ break;
770
+ case "CONTACT_REASON_MEMBER_NO_SHOW_OR_LATE_CANCELLATION":
771
+ case 3:
772
+ message.reasonForContact = 3;
773
+ break;
774
+ case "CONTACT_REASON_OTHER":
775
+ case 4:
776
+ message.reasonForContact = 4;
777
+ break;
778
+ }
779
+ return message;
780
+ };
781
+
782
+ /**
783
+ * Creates a plain object from an AdditionalWork message. Also converts values to other types if specified.
784
+ * @function toObject
785
+ * @memberof clinical.AdditionalWork
786
+ * @static
787
+ * @param {clinical.AdditionalWork} message AdditionalWork
788
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
789
+ * @returns {Object.<string,*>} Plain object
790
+ */
791
+ AdditionalWork.toObject = function toObject(message, options) {
792
+ if (!options)
793
+ options = {};
794
+ var object = {};
795
+ if (options.defaults) {
796
+ object.id = 0;
797
+ object.gingerUserId = 0;
798
+ object.hsUserId = "";
799
+ object.clinicianId = "";
800
+ if ($util.Long) {
801
+ var long = new $util.Long(0, 0, true);
802
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
803
+ } else
804
+ object.createdAt = options.longs === String ? "0" : 0;
805
+ if ($util.Long) {
806
+ var long = new $util.Long(0, 0, true);
807
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
808
+ } else
809
+ object.updatedAt = options.longs === String ? "0" : 0;
810
+ if ($util.Long) {
811
+ var long = new $util.Long(0, 0, true);
812
+ object.startedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
813
+ } else
814
+ object.startedAt = options.longs === String ? "0" : 0;
815
+ object.duration = 0;
816
+ object.reasonForContact = options.enums === String ? "CONTACT_REASON_UNKNOWN" : 0;
817
+ }
818
+ if (message.id != null && message.hasOwnProperty("id"))
819
+ object.id = message.id;
820
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
821
+ object.gingerUserId = message.gingerUserId;
822
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
823
+ object.hsUserId = message.hsUserId;
824
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
825
+ object.clinicianId = message.clinicianId;
826
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
827
+ if (typeof message.createdAt === "number")
828
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
829
+ else
830
+ object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
831
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
832
+ if (typeof message.updatedAt === "number")
833
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
834
+ else
835
+ object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
836
+ if (message.startedAt != null && message.hasOwnProperty("startedAt"))
837
+ if (typeof message.startedAt === "number")
838
+ object.startedAt = options.longs === String ? String(message.startedAt) : message.startedAt;
839
+ else
840
+ object.startedAt = options.longs === String ? $util.Long.prototype.toString.call(message.startedAt) : options.longs === Number ? new $util.LongBits(message.startedAt.low >>> 0, message.startedAt.high >>> 0).toNumber(true) : message.startedAt;
841
+ if (message.duration != null && message.hasOwnProperty("duration"))
842
+ object.duration = message.duration;
843
+ if (message.reasonForContact != null && message.hasOwnProperty("reasonForContact"))
844
+ object.reasonForContact = options.enums === String ? $root.clinical.ContactReason[message.reasonForContact] : message.reasonForContact;
845
+ return object;
846
+ };
847
+
848
+ /**
849
+ * Converts this AdditionalWork to JSON.
850
+ * @function toJSON
851
+ * @memberof clinical.AdditionalWork
852
+ * @instance
853
+ * @returns {Object.<string,*>} JSON object
854
+ */
855
+ AdditionalWork.prototype.toJSON = function toJSON() {
856
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
857
+ };
858
+
859
+ return AdditionalWork;
860
+ })();
861
+
408
862
  clinical.ClinicalAvailability = (function() {
409
863
 
410
864
  /**
@@ -36789,6 +37243,7 @@ $root.b2b = (function() {
36789
37243
  * @property {string|null} [country] Organization country
36790
37244
  * @property {boolean|null} [hasEapCoverage] Organization hasEapCoverage
36791
37245
  * @property {number|null} [overlappedCareId] Organization overlappedCareId
37246
+ * @property {string|null} [campaignDisplayLogo] Organization campaignDisplayLogo
36792
37247
  */
36793
37248
 
36794
37249
  /**
@@ -36991,6 +37446,14 @@ $root.b2b = (function() {
36991
37446
  */
36992
37447
  Organization.prototype.overlappedCareId = 0;
36993
37448
 
37449
+ /**
37450
+ * Organization campaignDisplayLogo.
37451
+ * @member {string} campaignDisplayLogo
37452
+ * @memberof b2b.Organization
37453
+ * @instance
37454
+ */
37455
+ Organization.prototype.campaignDisplayLogo = "";
37456
+
36994
37457
  /**
36995
37458
  * Creates a new Organization instance using the specified properties.
36996
37459
  * @function create
@@ -37065,6 +37528,8 @@ $root.b2b = (function() {
37065
37528
  writer.uint32(/* id 22, wireType 0 =*/176).bool(message.hasEapCoverage);
37066
37529
  if (message.overlappedCareId != null && message.hasOwnProperty("overlappedCareId"))
37067
37530
  writer.uint32(/* id 23, wireType 0 =*/184).uint32(message.overlappedCareId);
37531
+ if (message.campaignDisplayLogo != null && message.hasOwnProperty("campaignDisplayLogo"))
37532
+ writer.uint32(/* id 24, wireType 2 =*/194).string(message.campaignDisplayLogo);
37068
37533
  return writer;
37069
37534
  };
37070
37535
 
@@ -37175,6 +37640,9 @@ $root.b2b = (function() {
37175
37640
  case 23:
37176
37641
  message.overlappedCareId = reader.uint32();
37177
37642
  break;
37643
+ case 24:
37644
+ message.campaignDisplayLogo = reader.string();
37645
+ break;
37178
37646
  default:
37179
37647
  reader.skipType(tag & 7);
37180
37648
  break;
@@ -37313,6 +37781,9 @@ $root.b2b = (function() {
37313
37781
  if (message.overlappedCareId != null && message.hasOwnProperty("overlappedCareId"))
37314
37782
  if (!$util.isInteger(message.overlappedCareId))
37315
37783
  return "overlappedCareId: integer expected";
37784
+ if (message.campaignDisplayLogo != null && message.hasOwnProperty("campaignDisplayLogo"))
37785
+ if (!$util.isString(message.campaignDisplayLogo))
37786
+ return "campaignDisplayLogo: string expected";
37316
37787
  return null;
37317
37788
  };
37318
37789
 
@@ -37465,6 +37936,8 @@ $root.b2b = (function() {
37465
37936
  message.hasEapCoverage = Boolean(object.hasEapCoverage);
37466
37937
  if (object.overlappedCareId != null)
37467
37938
  message.overlappedCareId = object.overlappedCareId >>> 0;
37939
+ if (object.campaignDisplayLogo != null)
37940
+ message.campaignDisplayLogo = String(object.campaignDisplayLogo);
37468
37941
  return message;
37469
37942
  };
37470
37943
 
@@ -37506,6 +37979,7 @@ $root.b2b = (function() {
37506
37979
  object.country = "";
37507
37980
  object.hasEapCoverage = false;
37508
37981
  object.overlappedCareId = 0;
37982
+ object.campaignDisplayLogo = "";
37509
37983
  }
37510
37984
  if (message.orgId != null && message.hasOwnProperty("orgId"))
37511
37985
  object.orgId = message.orgId;
@@ -37556,6 +38030,8 @@ $root.b2b = (function() {
37556
38030
  object.hasEapCoverage = message.hasEapCoverage;
37557
38031
  if (message.overlappedCareId != null && message.hasOwnProperty("overlappedCareId"))
37558
38032
  object.overlappedCareId = message.overlappedCareId;
38033
+ if (message.campaignDisplayLogo != null && message.hasOwnProperty("campaignDisplayLogo"))
38034
+ object.campaignDisplayLogo = message.campaignDisplayLogo;
37559
38035
  return object;
37560
38036
  };
37561
38037
 
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.635.0"
19
+ "version": "1.637.0"
20
20
  }