@headspace/protos-events 1.637.0 → 1.638.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
@@ -3264,6 +3264,195 @@ export namespace coaching {
3264
3264
  public toJSON(): { [k: string]: any };
3265
3265
  }
3266
3266
 
3267
+ /** ExperimentVariant enum. */
3268
+ enum ExperimentVariant {
3269
+ EXPERIMENT_VARIANT_UNKNOWN = 0,
3270
+ EXPERIMENT_VARIANT_A = 1,
3271
+ EXPERIMENT_VARIANT_B = 2
3272
+ }
3273
+
3274
+ /** Properties of a ListenerCoachingExperimentalChatRatingCreated. */
3275
+ interface IListenerCoachingExperimentalChatRatingCreated {
3276
+
3277
+ /** ListenerCoachingExperimentalChatRatingCreated id */
3278
+ id?: (string|null);
3279
+
3280
+ /** ListenerCoachingExperimentalChatRatingCreated chatConversationId */
3281
+ chatConversationId?: (number|null);
3282
+
3283
+ /** ListenerCoachingExperimentalChatRatingCreated messageCount */
3284
+ messageCount?: (number|null);
3285
+
3286
+ /** ListenerCoachingExperimentalChatRatingCreated createdAtTimestamp */
3287
+ createdAtTimestamp?: (number|Long|null);
3288
+
3289
+ /** ListenerCoachingExperimentalChatRatingCreated coachId */
3290
+ coachId?: (string|null);
3291
+
3292
+ /** ListenerCoachingExperimentalChatRatingCreated rating */
3293
+ rating?: (number|null);
3294
+
3295
+ /** ListenerCoachingExperimentalChatRatingCreated variant */
3296
+ variant?: (coaching.ExperimentVariant|null);
3297
+
3298
+ /** ListenerCoachingExperimentalChatRatingCreated seenAndHeardRating */
3299
+ seenAndHeardRating?: (number|null);
3300
+
3301
+ /** ListenerCoachingExperimentalChatRatingCreated understoodRating */
3302
+ understoodRating?: (number|null);
3303
+
3304
+ /** ListenerCoachingExperimentalChatRatingCreated feltSupportedRating */
3305
+ feltSupportedRating?: (number|null);
3306
+
3307
+ /** ListenerCoachingExperimentalChatRatingCreated approachRating */
3308
+ approachRating?: (number|null);
3309
+
3310
+ /** ListenerCoachingExperimentalChatRatingCreated ratingComment */
3311
+ ratingComment?: (string|null);
3312
+
3313
+ /** ListenerCoachingExperimentalChatRatingCreated gingerUserId */
3314
+ gingerUserId?: (number|null);
3315
+
3316
+ /** ListenerCoachingExperimentalChatRatingCreated hsUserId */
3317
+ hsUserId?: (string|null);
3318
+ }
3319
+
3320
+ /**
3321
+ * An experimental coaching rating represents a group of possible ratings
3322
+ * we're trying to figure out what is the best way to rate coaches.
3323
+ * This experiment have two variants.
3324
+ * Variant A:
3325
+ * Contains seen_and_heard_rating and represents number based way to rate coaches.
3326
+ * For this case seen_and_heard_rating and rating will be the same.
3327
+ * Variant B:
3328
+ * Contains understood_rating, felt_supported_rating and approach_rating
3329
+ * and represents also a numbered way to rate coaches but with more questions.
3330
+ * For this case, rating will contain the avg of the 3 questions.
3331
+ * All questions have a 1 to 5 ratio, and will be 0 when user didin't answer them.
3332
+ * When variant is B, only the first (understood_rating) question is mandatory.
3333
+ * PRD: https://docs.google.com/document/d/1XziQDdUDcw8hDiRge3ede_DY59txRVpL9_dcw1Msepc/edit?usp=sharing
3334
+ */
3335
+ class ListenerCoachingExperimentalChatRatingCreated implements IListenerCoachingExperimentalChatRatingCreated {
3336
+
3337
+ /**
3338
+ * Constructs a new ListenerCoachingExperimentalChatRatingCreated.
3339
+ * @param [properties] Properties to set
3340
+ */
3341
+ constructor(properties?: coaching.IListenerCoachingExperimentalChatRatingCreated);
3342
+
3343
+ /** ListenerCoachingExperimentalChatRatingCreated id. */
3344
+ public id: string;
3345
+
3346
+ /** ListenerCoachingExperimentalChatRatingCreated chatConversationId. */
3347
+ public chatConversationId: number;
3348
+
3349
+ /** ListenerCoachingExperimentalChatRatingCreated messageCount. */
3350
+ public messageCount: number;
3351
+
3352
+ /** ListenerCoachingExperimentalChatRatingCreated createdAtTimestamp. */
3353
+ public createdAtTimestamp: (number|Long);
3354
+
3355
+ /** ListenerCoachingExperimentalChatRatingCreated coachId. */
3356
+ public coachId: string;
3357
+
3358
+ /** ListenerCoachingExperimentalChatRatingCreated rating. */
3359
+ public rating: number;
3360
+
3361
+ /** ListenerCoachingExperimentalChatRatingCreated variant. */
3362
+ public variant: coaching.ExperimentVariant;
3363
+
3364
+ /** ListenerCoachingExperimentalChatRatingCreated seenAndHeardRating. */
3365
+ public seenAndHeardRating: number;
3366
+
3367
+ /** ListenerCoachingExperimentalChatRatingCreated understoodRating. */
3368
+ public understoodRating: number;
3369
+
3370
+ /** ListenerCoachingExperimentalChatRatingCreated feltSupportedRating. */
3371
+ public feltSupportedRating: number;
3372
+
3373
+ /** ListenerCoachingExperimentalChatRatingCreated approachRating. */
3374
+ public approachRating: number;
3375
+
3376
+ /** ListenerCoachingExperimentalChatRatingCreated ratingComment. */
3377
+ public ratingComment: string;
3378
+
3379
+ /** ListenerCoachingExperimentalChatRatingCreated gingerUserId. */
3380
+ public gingerUserId: number;
3381
+
3382
+ /** ListenerCoachingExperimentalChatRatingCreated hsUserId. */
3383
+ public hsUserId: string;
3384
+
3385
+ /**
3386
+ * Creates a new ListenerCoachingExperimentalChatRatingCreated instance using the specified properties.
3387
+ * @param [properties] Properties to set
3388
+ * @returns ListenerCoachingExperimentalChatRatingCreated instance
3389
+ */
3390
+ public static create(properties?: coaching.IListenerCoachingExperimentalChatRatingCreated): coaching.ListenerCoachingExperimentalChatRatingCreated;
3391
+
3392
+ /**
3393
+ * Encodes the specified ListenerCoachingExperimentalChatRatingCreated message. Does not implicitly {@link coaching.ListenerCoachingExperimentalChatRatingCreated.verify|verify} messages.
3394
+ * @param message ListenerCoachingExperimentalChatRatingCreated message or plain object to encode
3395
+ * @param [writer] Writer to encode to
3396
+ * @returns Writer
3397
+ */
3398
+ public static encode(message: coaching.IListenerCoachingExperimentalChatRatingCreated, writer?: $protobuf.Writer): $protobuf.Writer;
3399
+
3400
+ /**
3401
+ * Encodes the specified ListenerCoachingExperimentalChatRatingCreated message, length delimited. Does not implicitly {@link coaching.ListenerCoachingExperimentalChatRatingCreated.verify|verify} messages.
3402
+ * @param message ListenerCoachingExperimentalChatRatingCreated message or plain object to encode
3403
+ * @param [writer] Writer to encode to
3404
+ * @returns Writer
3405
+ */
3406
+ public static encodeDelimited(message: coaching.IListenerCoachingExperimentalChatRatingCreated, writer?: $protobuf.Writer): $protobuf.Writer;
3407
+
3408
+ /**
3409
+ * Decodes a ListenerCoachingExperimentalChatRatingCreated message from the specified reader or buffer.
3410
+ * @param reader Reader or buffer to decode from
3411
+ * @param [length] Message length if known beforehand
3412
+ * @returns ListenerCoachingExperimentalChatRatingCreated
3413
+ * @throws {Error} If the payload is not a reader or valid buffer
3414
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3415
+ */
3416
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coaching.ListenerCoachingExperimentalChatRatingCreated;
3417
+
3418
+ /**
3419
+ * Decodes a ListenerCoachingExperimentalChatRatingCreated message from the specified reader or buffer, length delimited.
3420
+ * @param reader Reader or buffer to decode from
3421
+ * @returns ListenerCoachingExperimentalChatRatingCreated
3422
+ * @throws {Error} If the payload is not a reader or valid buffer
3423
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3424
+ */
3425
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coaching.ListenerCoachingExperimentalChatRatingCreated;
3426
+
3427
+ /**
3428
+ * Verifies a ListenerCoachingExperimentalChatRatingCreated message.
3429
+ * @param message Plain object to verify
3430
+ * @returns `null` if valid, otherwise the reason why it is not
3431
+ */
3432
+ public static verify(message: { [k: string]: any }): (string|null);
3433
+
3434
+ /**
3435
+ * Creates a ListenerCoachingExperimentalChatRatingCreated message from a plain object. Also converts values to their respective internal types.
3436
+ * @param object Plain object
3437
+ * @returns ListenerCoachingExperimentalChatRatingCreated
3438
+ */
3439
+ public static fromObject(object: { [k: string]: any }): coaching.ListenerCoachingExperimentalChatRatingCreated;
3440
+
3441
+ /**
3442
+ * Creates a plain object from a ListenerCoachingExperimentalChatRatingCreated message. Also converts values to other types if specified.
3443
+ * @param message ListenerCoachingExperimentalChatRatingCreated
3444
+ * @param [options] Conversion options
3445
+ * @returns Plain object
3446
+ */
3447
+ public static toObject(message: coaching.ListenerCoachingExperimentalChatRatingCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
3448
+
3449
+ /**
3450
+ * Converts this ListenerCoachingExperimentalChatRatingCreated to JSON.
3451
+ * @returns JSON object
3452
+ */
3453
+ public toJSON(): { [k: string]: any };
3454
+ }
3455
+
3267
3456
  /** Properties of a CoachingShift. */
3268
3457
  interface ICoachingShift {
3269
3458
 
package/lib/index.js CHANGED
@@ -10614,6 +10614,540 @@ $root.coaching = (function() {
10614
10614
  return CoachingChatRating;
10615
10615
  })();
10616
10616
 
10617
+ /**
10618
+ * ExperimentVariant enum.
10619
+ * @name coaching.ExperimentVariant
10620
+ * @enum {string}
10621
+ * @property {number} EXPERIMENT_VARIANT_UNKNOWN=0 EXPERIMENT_VARIANT_UNKNOWN value
10622
+ * @property {number} EXPERIMENT_VARIANT_A=1 EXPERIMENT_VARIANT_A value
10623
+ * @property {number} EXPERIMENT_VARIANT_B=2 EXPERIMENT_VARIANT_B value
10624
+ */
10625
+ coaching.ExperimentVariant = (function() {
10626
+ var valuesById = {}, values = Object.create(valuesById);
10627
+ values[valuesById[0] = "EXPERIMENT_VARIANT_UNKNOWN"] = 0;
10628
+ values[valuesById[1] = "EXPERIMENT_VARIANT_A"] = 1;
10629
+ values[valuesById[2] = "EXPERIMENT_VARIANT_B"] = 2;
10630
+ return values;
10631
+ })();
10632
+
10633
+ coaching.ListenerCoachingExperimentalChatRatingCreated = (function() {
10634
+
10635
+ /**
10636
+ * Properties of a ListenerCoachingExperimentalChatRatingCreated.
10637
+ * @memberof coaching
10638
+ * @interface IListenerCoachingExperimentalChatRatingCreated
10639
+ * @property {string|null} [id] ListenerCoachingExperimentalChatRatingCreated id
10640
+ * @property {number|null} [chatConversationId] ListenerCoachingExperimentalChatRatingCreated chatConversationId
10641
+ * @property {number|null} [messageCount] ListenerCoachingExperimentalChatRatingCreated messageCount
10642
+ * @property {number|Long|null} [createdAtTimestamp] ListenerCoachingExperimentalChatRatingCreated createdAtTimestamp
10643
+ * @property {string|null} [coachId] ListenerCoachingExperimentalChatRatingCreated coachId
10644
+ * @property {number|null} [rating] ListenerCoachingExperimentalChatRatingCreated rating
10645
+ * @property {coaching.ExperimentVariant|null} [variant] ListenerCoachingExperimentalChatRatingCreated variant
10646
+ * @property {number|null} [seenAndHeardRating] ListenerCoachingExperimentalChatRatingCreated seenAndHeardRating
10647
+ * @property {number|null} [understoodRating] ListenerCoachingExperimentalChatRatingCreated understoodRating
10648
+ * @property {number|null} [feltSupportedRating] ListenerCoachingExperimentalChatRatingCreated feltSupportedRating
10649
+ * @property {number|null} [approachRating] ListenerCoachingExperimentalChatRatingCreated approachRating
10650
+ * @property {string|null} [ratingComment] ListenerCoachingExperimentalChatRatingCreated ratingComment
10651
+ * @property {number|null} [gingerUserId] ListenerCoachingExperimentalChatRatingCreated gingerUserId
10652
+ * @property {string|null} [hsUserId] ListenerCoachingExperimentalChatRatingCreated hsUserId
10653
+ */
10654
+
10655
+ /**
10656
+ * Constructs a new ListenerCoachingExperimentalChatRatingCreated.
10657
+ * @memberof coaching
10658
+ * @classdesc An experimental coaching rating represents a group of possible ratings
10659
+ * we're trying to figure out what is the best way to rate coaches.
10660
+ * This experiment have two variants.
10661
+ * Variant A:
10662
+ * Contains seen_and_heard_rating and represents number based way to rate coaches.
10663
+ * For this case seen_and_heard_rating and rating will be the same.
10664
+ * Variant B:
10665
+ * Contains understood_rating, felt_supported_rating and approach_rating
10666
+ * and represents also a numbered way to rate coaches but with more questions.
10667
+ * For this case, rating will contain the avg of the 3 questions.
10668
+ * All questions have a 1 to 5 ratio, and will be 0 when user didin't answer them.
10669
+ * When variant is B, only the first (understood_rating) question is mandatory.
10670
+ * PRD: https://docs.google.com/document/d/1XziQDdUDcw8hDiRge3ede_DY59txRVpL9_dcw1Msepc/edit?usp=sharing
10671
+ * @implements IListenerCoachingExperimentalChatRatingCreated
10672
+ * @constructor
10673
+ * @param {coaching.IListenerCoachingExperimentalChatRatingCreated=} [properties] Properties to set
10674
+ */
10675
+ function ListenerCoachingExperimentalChatRatingCreated(properties) {
10676
+ if (properties)
10677
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10678
+ if (properties[keys[i]] != null)
10679
+ this[keys[i]] = properties[keys[i]];
10680
+ }
10681
+
10682
+ /**
10683
+ * ListenerCoachingExperimentalChatRatingCreated id.
10684
+ * @member {string} id
10685
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10686
+ * @instance
10687
+ */
10688
+ ListenerCoachingExperimentalChatRatingCreated.prototype.id = "";
10689
+
10690
+ /**
10691
+ * ListenerCoachingExperimentalChatRatingCreated chatConversationId.
10692
+ * @member {number} chatConversationId
10693
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10694
+ * @instance
10695
+ */
10696
+ ListenerCoachingExperimentalChatRatingCreated.prototype.chatConversationId = 0;
10697
+
10698
+ /**
10699
+ * ListenerCoachingExperimentalChatRatingCreated messageCount.
10700
+ * @member {number} messageCount
10701
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10702
+ * @instance
10703
+ */
10704
+ ListenerCoachingExperimentalChatRatingCreated.prototype.messageCount = 0;
10705
+
10706
+ /**
10707
+ * ListenerCoachingExperimentalChatRatingCreated createdAtTimestamp.
10708
+ * @member {number|Long} createdAtTimestamp
10709
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10710
+ * @instance
10711
+ */
10712
+ ListenerCoachingExperimentalChatRatingCreated.prototype.createdAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
10713
+
10714
+ /**
10715
+ * ListenerCoachingExperimentalChatRatingCreated coachId.
10716
+ * @member {string} coachId
10717
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10718
+ * @instance
10719
+ */
10720
+ ListenerCoachingExperimentalChatRatingCreated.prototype.coachId = "";
10721
+
10722
+ /**
10723
+ * ListenerCoachingExperimentalChatRatingCreated rating.
10724
+ * @member {number} rating
10725
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10726
+ * @instance
10727
+ */
10728
+ ListenerCoachingExperimentalChatRatingCreated.prototype.rating = 0;
10729
+
10730
+ /**
10731
+ * ListenerCoachingExperimentalChatRatingCreated variant.
10732
+ * @member {coaching.ExperimentVariant} variant
10733
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10734
+ * @instance
10735
+ */
10736
+ ListenerCoachingExperimentalChatRatingCreated.prototype.variant = 0;
10737
+
10738
+ /**
10739
+ * ListenerCoachingExperimentalChatRatingCreated seenAndHeardRating.
10740
+ * @member {number} seenAndHeardRating
10741
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10742
+ * @instance
10743
+ */
10744
+ ListenerCoachingExperimentalChatRatingCreated.prototype.seenAndHeardRating = 0;
10745
+
10746
+ /**
10747
+ * ListenerCoachingExperimentalChatRatingCreated understoodRating.
10748
+ * @member {number} understoodRating
10749
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10750
+ * @instance
10751
+ */
10752
+ ListenerCoachingExperimentalChatRatingCreated.prototype.understoodRating = 0;
10753
+
10754
+ /**
10755
+ * ListenerCoachingExperimentalChatRatingCreated feltSupportedRating.
10756
+ * @member {number} feltSupportedRating
10757
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10758
+ * @instance
10759
+ */
10760
+ ListenerCoachingExperimentalChatRatingCreated.prototype.feltSupportedRating = 0;
10761
+
10762
+ /**
10763
+ * ListenerCoachingExperimentalChatRatingCreated approachRating.
10764
+ * @member {number} approachRating
10765
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10766
+ * @instance
10767
+ */
10768
+ ListenerCoachingExperimentalChatRatingCreated.prototype.approachRating = 0;
10769
+
10770
+ /**
10771
+ * ListenerCoachingExperimentalChatRatingCreated ratingComment.
10772
+ * @member {string} ratingComment
10773
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10774
+ * @instance
10775
+ */
10776
+ ListenerCoachingExperimentalChatRatingCreated.prototype.ratingComment = "";
10777
+
10778
+ /**
10779
+ * ListenerCoachingExperimentalChatRatingCreated gingerUserId.
10780
+ * @member {number} gingerUserId
10781
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10782
+ * @instance
10783
+ */
10784
+ ListenerCoachingExperimentalChatRatingCreated.prototype.gingerUserId = 0;
10785
+
10786
+ /**
10787
+ * ListenerCoachingExperimentalChatRatingCreated hsUserId.
10788
+ * @member {string} hsUserId
10789
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10790
+ * @instance
10791
+ */
10792
+ ListenerCoachingExperimentalChatRatingCreated.prototype.hsUserId = "";
10793
+
10794
+ /**
10795
+ * Creates a new ListenerCoachingExperimentalChatRatingCreated instance using the specified properties.
10796
+ * @function create
10797
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10798
+ * @static
10799
+ * @param {coaching.IListenerCoachingExperimentalChatRatingCreated=} [properties] Properties to set
10800
+ * @returns {coaching.ListenerCoachingExperimentalChatRatingCreated} ListenerCoachingExperimentalChatRatingCreated instance
10801
+ */
10802
+ ListenerCoachingExperimentalChatRatingCreated.create = function create(properties) {
10803
+ return new ListenerCoachingExperimentalChatRatingCreated(properties);
10804
+ };
10805
+
10806
+ /**
10807
+ * Encodes the specified ListenerCoachingExperimentalChatRatingCreated message. Does not implicitly {@link coaching.ListenerCoachingExperimentalChatRatingCreated.verify|verify} messages.
10808
+ * @function encode
10809
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10810
+ * @static
10811
+ * @param {coaching.IListenerCoachingExperimentalChatRatingCreated} message ListenerCoachingExperimentalChatRatingCreated message or plain object to encode
10812
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10813
+ * @returns {$protobuf.Writer} Writer
10814
+ */
10815
+ ListenerCoachingExperimentalChatRatingCreated.encode = function encode(message, writer) {
10816
+ if (!writer)
10817
+ writer = $Writer.create();
10818
+ if (message.id != null && message.hasOwnProperty("id"))
10819
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
10820
+ if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
10821
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.chatConversationId);
10822
+ if (message.messageCount != null && message.hasOwnProperty("messageCount"))
10823
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.messageCount);
10824
+ if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
10825
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAtTimestamp);
10826
+ if (message.coachId != null && message.hasOwnProperty("coachId"))
10827
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.coachId);
10828
+ if (message.rating != null && message.hasOwnProperty("rating"))
10829
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.rating);
10830
+ if (message.variant != null && message.hasOwnProperty("variant"))
10831
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.variant);
10832
+ if (message.seenAndHeardRating != null && message.hasOwnProperty("seenAndHeardRating"))
10833
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.seenAndHeardRating);
10834
+ if (message.understoodRating != null && message.hasOwnProperty("understoodRating"))
10835
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.understoodRating);
10836
+ if (message.feltSupportedRating != null && message.hasOwnProperty("feltSupportedRating"))
10837
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.feltSupportedRating);
10838
+ if (message.approachRating != null && message.hasOwnProperty("approachRating"))
10839
+ writer.uint32(/* id 11, wireType 0 =*/88).int32(message.approachRating);
10840
+ if (message.ratingComment != null && message.hasOwnProperty("ratingComment"))
10841
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.ratingComment);
10842
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
10843
+ writer.uint32(/* id 13, wireType 0 =*/104).uint32(message.gingerUserId);
10844
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
10845
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.hsUserId);
10846
+ return writer;
10847
+ };
10848
+
10849
+ /**
10850
+ * Encodes the specified ListenerCoachingExperimentalChatRatingCreated message, length delimited. Does not implicitly {@link coaching.ListenerCoachingExperimentalChatRatingCreated.verify|verify} messages.
10851
+ * @function encodeDelimited
10852
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10853
+ * @static
10854
+ * @param {coaching.IListenerCoachingExperimentalChatRatingCreated} message ListenerCoachingExperimentalChatRatingCreated message or plain object to encode
10855
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10856
+ * @returns {$protobuf.Writer} Writer
10857
+ */
10858
+ ListenerCoachingExperimentalChatRatingCreated.encodeDelimited = function encodeDelimited(message, writer) {
10859
+ return this.encode(message, writer).ldelim();
10860
+ };
10861
+
10862
+ /**
10863
+ * Decodes a ListenerCoachingExperimentalChatRatingCreated message from the specified reader or buffer.
10864
+ * @function decode
10865
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10866
+ * @static
10867
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10868
+ * @param {number} [length] Message length if known beforehand
10869
+ * @returns {coaching.ListenerCoachingExperimentalChatRatingCreated} ListenerCoachingExperimentalChatRatingCreated
10870
+ * @throws {Error} If the payload is not a reader or valid buffer
10871
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10872
+ */
10873
+ ListenerCoachingExperimentalChatRatingCreated.decode = function decode(reader, length) {
10874
+ if (!(reader instanceof $Reader))
10875
+ reader = $Reader.create(reader);
10876
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.coaching.ListenerCoachingExperimentalChatRatingCreated();
10877
+ while (reader.pos < end) {
10878
+ var tag = reader.uint32();
10879
+ switch (tag >>> 3) {
10880
+ case 1:
10881
+ message.id = reader.string();
10882
+ break;
10883
+ case 2:
10884
+ message.chatConversationId = reader.uint32();
10885
+ break;
10886
+ case 3:
10887
+ message.messageCount = reader.uint32();
10888
+ break;
10889
+ case 4:
10890
+ message.createdAtTimestamp = reader.uint64();
10891
+ break;
10892
+ case 5:
10893
+ message.coachId = reader.string();
10894
+ break;
10895
+ case 6:
10896
+ message.rating = reader.int32();
10897
+ break;
10898
+ case 7:
10899
+ message.variant = reader.int32();
10900
+ break;
10901
+ case 8:
10902
+ message.seenAndHeardRating = reader.int32();
10903
+ break;
10904
+ case 9:
10905
+ message.understoodRating = reader.int32();
10906
+ break;
10907
+ case 10:
10908
+ message.feltSupportedRating = reader.int32();
10909
+ break;
10910
+ case 11:
10911
+ message.approachRating = reader.int32();
10912
+ break;
10913
+ case 12:
10914
+ message.ratingComment = reader.string();
10915
+ break;
10916
+ case 13:
10917
+ message.gingerUserId = reader.uint32();
10918
+ break;
10919
+ case 14:
10920
+ message.hsUserId = reader.string();
10921
+ break;
10922
+ default:
10923
+ reader.skipType(tag & 7);
10924
+ break;
10925
+ }
10926
+ }
10927
+ return message;
10928
+ };
10929
+
10930
+ /**
10931
+ * Decodes a ListenerCoachingExperimentalChatRatingCreated message from the specified reader or buffer, length delimited.
10932
+ * @function decodeDelimited
10933
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10934
+ * @static
10935
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10936
+ * @returns {coaching.ListenerCoachingExperimentalChatRatingCreated} ListenerCoachingExperimentalChatRatingCreated
10937
+ * @throws {Error} If the payload is not a reader or valid buffer
10938
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10939
+ */
10940
+ ListenerCoachingExperimentalChatRatingCreated.decodeDelimited = function decodeDelimited(reader) {
10941
+ if (!(reader instanceof $Reader))
10942
+ reader = new $Reader(reader);
10943
+ return this.decode(reader, reader.uint32());
10944
+ };
10945
+
10946
+ /**
10947
+ * Verifies a ListenerCoachingExperimentalChatRatingCreated message.
10948
+ * @function verify
10949
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
10950
+ * @static
10951
+ * @param {Object.<string,*>} message Plain object to verify
10952
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10953
+ */
10954
+ ListenerCoachingExperimentalChatRatingCreated.verify = function verify(message) {
10955
+ if (typeof message !== "object" || message === null)
10956
+ return "object expected";
10957
+ if (message.id != null && message.hasOwnProperty("id"))
10958
+ if (!$util.isString(message.id))
10959
+ return "id: string expected";
10960
+ if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
10961
+ if (!$util.isInteger(message.chatConversationId))
10962
+ return "chatConversationId: integer expected";
10963
+ if (message.messageCount != null && message.hasOwnProperty("messageCount"))
10964
+ if (!$util.isInteger(message.messageCount))
10965
+ return "messageCount: integer expected";
10966
+ if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
10967
+ if (!$util.isInteger(message.createdAtTimestamp) && !(message.createdAtTimestamp && $util.isInteger(message.createdAtTimestamp.low) && $util.isInteger(message.createdAtTimestamp.high)))
10968
+ return "createdAtTimestamp: integer|Long expected";
10969
+ if (message.coachId != null && message.hasOwnProperty("coachId"))
10970
+ if (!$util.isString(message.coachId))
10971
+ return "coachId: string expected";
10972
+ if (message.rating != null && message.hasOwnProperty("rating"))
10973
+ if (!$util.isInteger(message.rating))
10974
+ return "rating: integer expected";
10975
+ if (message.variant != null && message.hasOwnProperty("variant"))
10976
+ switch (message.variant) {
10977
+ default:
10978
+ return "variant: enum value expected";
10979
+ case 0:
10980
+ case 1:
10981
+ case 2:
10982
+ break;
10983
+ }
10984
+ if (message.seenAndHeardRating != null && message.hasOwnProperty("seenAndHeardRating"))
10985
+ if (!$util.isInteger(message.seenAndHeardRating))
10986
+ return "seenAndHeardRating: integer expected";
10987
+ if (message.understoodRating != null && message.hasOwnProperty("understoodRating"))
10988
+ if (!$util.isInteger(message.understoodRating))
10989
+ return "understoodRating: integer expected";
10990
+ if (message.feltSupportedRating != null && message.hasOwnProperty("feltSupportedRating"))
10991
+ if (!$util.isInteger(message.feltSupportedRating))
10992
+ return "feltSupportedRating: integer expected";
10993
+ if (message.approachRating != null && message.hasOwnProperty("approachRating"))
10994
+ if (!$util.isInteger(message.approachRating))
10995
+ return "approachRating: integer expected";
10996
+ if (message.ratingComment != null && message.hasOwnProperty("ratingComment"))
10997
+ if (!$util.isString(message.ratingComment))
10998
+ return "ratingComment: string expected";
10999
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
11000
+ if (!$util.isInteger(message.gingerUserId))
11001
+ return "gingerUserId: integer expected";
11002
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
11003
+ if (!$util.isString(message.hsUserId))
11004
+ return "hsUserId: string expected";
11005
+ return null;
11006
+ };
11007
+
11008
+ /**
11009
+ * Creates a ListenerCoachingExperimentalChatRatingCreated message from a plain object. Also converts values to their respective internal types.
11010
+ * @function fromObject
11011
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
11012
+ * @static
11013
+ * @param {Object.<string,*>} object Plain object
11014
+ * @returns {coaching.ListenerCoachingExperimentalChatRatingCreated} ListenerCoachingExperimentalChatRatingCreated
11015
+ */
11016
+ ListenerCoachingExperimentalChatRatingCreated.fromObject = function fromObject(object) {
11017
+ if (object instanceof $root.coaching.ListenerCoachingExperimentalChatRatingCreated)
11018
+ return object;
11019
+ var message = new $root.coaching.ListenerCoachingExperimentalChatRatingCreated();
11020
+ if (object.id != null)
11021
+ message.id = String(object.id);
11022
+ if (object.chatConversationId != null)
11023
+ message.chatConversationId = object.chatConversationId >>> 0;
11024
+ if (object.messageCount != null)
11025
+ message.messageCount = object.messageCount >>> 0;
11026
+ if (object.createdAtTimestamp != null)
11027
+ if ($util.Long)
11028
+ (message.createdAtTimestamp = $util.Long.fromValue(object.createdAtTimestamp)).unsigned = true;
11029
+ else if (typeof object.createdAtTimestamp === "string")
11030
+ message.createdAtTimestamp = parseInt(object.createdAtTimestamp, 10);
11031
+ else if (typeof object.createdAtTimestamp === "number")
11032
+ message.createdAtTimestamp = object.createdAtTimestamp;
11033
+ else if (typeof object.createdAtTimestamp === "object")
11034
+ message.createdAtTimestamp = new $util.LongBits(object.createdAtTimestamp.low >>> 0, object.createdAtTimestamp.high >>> 0).toNumber(true);
11035
+ if (object.coachId != null)
11036
+ message.coachId = String(object.coachId);
11037
+ if (object.rating != null)
11038
+ message.rating = object.rating | 0;
11039
+ switch (object.variant) {
11040
+ case "EXPERIMENT_VARIANT_UNKNOWN":
11041
+ case 0:
11042
+ message.variant = 0;
11043
+ break;
11044
+ case "EXPERIMENT_VARIANT_A":
11045
+ case 1:
11046
+ message.variant = 1;
11047
+ break;
11048
+ case "EXPERIMENT_VARIANT_B":
11049
+ case 2:
11050
+ message.variant = 2;
11051
+ break;
11052
+ }
11053
+ if (object.seenAndHeardRating != null)
11054
+ message.seenAndHeardRating = object.seenAndHeardRating | 0;
11055
+ if (object.understoodRating != null)
11056
+ message.understoodRating = object.understoodRating | 0;
11057
+ if (object.feltSupportedRating != null)
11058
+ message.feltSupportedRating = object.feltSupportedRating | 0;
11059
+ if (object.approachRating != null)
11060
+ message.approachRating = object.approachRating | 0;
11061
+ if (object.ratingComment != null)
11062
+ message.ratingComment = String(object.ratingComment);
11063
+ if (object.gingerUserId != null)
11064
+ message.gingerUserId = object.gingerUserId >>> 0;
11065
+ if (object.hsUserId != null)
11066
+ message.hsUserId = String(object.hsUserId);
11067
+ return message;
11068
+ };
11069
+
11070
+ /**
11071
+ * Creates a plain object from a ListenerCoachingExperimentalChatRatingCreated message. Also converts values to other types if specified.
11072
+ * @function toObject
11073
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
11074
+ * @static
11075
+ * @param {coaching.ListenerCoachingExperimentalChatRatingCreated} message ListenerCoachingExperimentalChatRatingCreated
11076
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
11077
+ * @returns {Object.<string,*>} Plain object
11078
+ */
11079
+ ListenerCoachingExperimentalChatRatingCreated.toObject = function toObject(message, options) {
11080
+ if (!options)
11081
+ options = {};
11082
+ var object = {};
11083
+ if (options.defaults) {
11084
+ object.id = "";
11085
+ object.chatConversationId = 0;
11086
+ object.messageCount = 0;
11087
+ if ($util.Long) {
11088
+ var long = new $util.Long(0, 0, true);
11089
+ object.createdAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
11090
+ } else
11091
+ object.createdAtTimestamp = options.longs === String ? "0" : 0;
11092
+ object.coachId = "";
11093
+ object.rating = 0;
11094
+ object.variant = options.enums === String ? "EXPERIMENT_VARIANT_UNKNOWN" : 0;
11095
+ object.seenAndHeardRating = 0;
11096
+ object.understoodRating = 0;
11097
+ object.feltSupportedRating = 0;
11098
+ object.approachRating = 0;
11099
+ object.ratingComment = "";
11100
+ object.gingerUserId = 0;
11101
+ object.hsUserId = "";
11102
+ }
11103
+ if (message.id != null && message.hasOwnProperty("id"))
11104
+ object.id = message.id;
11105
+ if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
11106
+ object.chatConversationId = message.chatConversationId;
11107
+ if (message.messageCount != null && message.hasOwnProperty("messageCount"))
11108
+ object.messageCount = message.messageCount;
11109
+ if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
11110
+ if (typeof message.createdAtTimestamp === "number")
11111
+ object.createdAtTimestamp = options.longs === String ? String(message.createdAtTimestamp) : message.createdAtTimestamp;
11112
+ else
11113
+ object.createdAtTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.createdAtTimestamp) : options.longs === Number ? new $util.LongBits(message.createdAtTimestamp.low >>> 0, message.createdAtTimestamp.high >>> 0).toNumber(true) : message.createdAtTimestamp;
11114
+ if (message.coachId != null && message.hasOwnProperty("coachId"))
11115
+ object.coachId = message.coachId;
11116
+ if (message.rating != null && message.hasOwnProperty("rating"))
11117
+ object.rating = message.rating;
11118
+ if (message.variant != null && message.hasOwnProperty("variant"))
11119
+ object.variant = options.enums === String ? $root.coaching.ExperimentVariant[message.variant] : message.variant;
11120
+ if (message.seenAndHeardRating != null && message.hasOwnProperty("seenAndHeardRating"))
11121
+ object.seenAndHeardRating = message.seenAndHeardRating;
11122
+ if (message.understoodRating != null && message.hasOwnProperty("understoodRating"))
11123
+ object.understoodRating = message.understoodRating;
11124
+ if (message.feltSupportedRating != null && message.hasOwnProperty("feltSupportedRating"))
11125
+ object.feltSupportedRating = message.feltSupportedRating;
11126
+ if (message.approachRating != null && message.hasOwnProperty("approachRating"))
11127
+ object.approachRating = message.approachRating;
11128
+ if (message.ratingComment != null && message.hasOwnProperty("ratingComment"))
11129
+ object.ratingComment = message.ratingComment;
11130
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
11131
+ object.gingerUserId = message.gingerUserId;
11132
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
11133
+ object.hsUserId = message.hsUserId;
11134
+ return object;
11135
+ };
11136
+
11137
+ /**
11138
+ * Converts this ListenerCoachingExperimentalChatRatingCreated to JSON.
11139
+ * @function toJSON
11140
+ * @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
11141
+ * @instance
11142
+ * @returns {Object.<string,*>} JSON object
11143
+ */
11144
+ ListenerCoachingExperimentalChatRatingCreated.prototype.toJSON = function toJSON() {
11145
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11146
+ };
11147
+
11148
+ return ListenerCoachingExperimentalChatRatingCreated;
11149
+ })();
11150
+
10617
11151
  coaching.CoachingShift = (function() {
10618
11152
 
10619
11153
  /**
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.637.0"
19
+ "version": "1.638.0"
20
20
  }