@headspace/protos-events 1.802.0 → 1.804.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
@@ -18386,6 +18386,9 @@ export namespace coaching {
18386
18386
 
18387
18387
  /** ScheduledCoachingSession coachEngagedAt */
18388
18388
  coachEngagedAt?: (number|Long|null);
18389
+
18390
+ /** ScheduledCoachingSession coachCancelled */
18391
+ coachCancelled?: (boolean|null);
18389
18392
  }
18390
18393
 
18391
18394
  /**
@@ -18472,6 +18475,9 @@ export namespace coaching {
18472
18475
  /** ScheduledCoachingSession coachEngagedAt. */
18473
18476
  public coachEngagedAt: (number|Long);
18474
18477
 
18478
+ /** ScheduledCoachingSession coachCancelled. */
18479
+ public coachCancelled: boolean;
18480
+
18475
18481
  /**
18476
18482
  * Creates a new ScheduledCoachingSession instance using the specified properties.
18477
18483
  * @param [properties] Properties to set
@@ -73667,6 +73673,141 @@ export class UserOnboardingPrimaryTopicSelected implements IUserOnboardingPrimar
73667
73673
  public static getTypeUrl(typeUrlPrefix?: string): string;
73668
73674
  }
73669
73675
 
73676
+ /** Properties of an OnboardingNeedStateSelected. */
73677
+ export interface IOnboardingNeedStateSelected {
73678
+
73679
+ /** OnboardingNeedStateSelected hsUserId */
73680
+ hsUserId?: (string|null);
73681
+
73682
+ /** OnboardingNeedStateSelected needState */
73683
+ needState?: (OnboardingNeedState|null);
73684
+
73685
+ /** OnboardingNeedStateSelected needStateDisplayName */
73686
+ needStateDisplayName?: (string|null);
73687
+
73688
+ /** OnboardingNeedStateSelected source */
73689
+ source?: (OnboardingNeedStateSelectedSource|null);
73690
+
73691
+ /** OnboardingNeedStateSelected selectedAt */
73692
+ selectedAt?: (number|Long|null);
73693
+ }
73694
+
73695
+ /** Represents an OnboardingNeedStateSelected. */
73696
+ export class OnboardingNeedStateSelected implements IOnboardingNeedStateSelected {
73697
+
73698
+ /**
73699
+ * Constructs a new OnboardingNeedStateSelected.
73700
+ * @param [properties] Properties to set
73701
+ */
73702
+ constructor(properties?: IOnboardingNeedStateSelected);
73703
+
73704
+ /** OnboardingNeedStateSelected hsUserId. */
73705
+ public hsUserId: string;
73706
+
73707
+ /** OnboardingNeedStateSelected needState. */
73708
+ public needState: OnboardingNeedState;
73709
+
73710
+ /** OnboardingNeedStateSelected needStateDisplayName. */
73711
+ public needStateDisplayName: string;
73712
+
73713
+ /** OnboardingNeedStateSelected source. */
73714
+ public source: OnboardingNeedStateSelectedSource;
73715
+
73716
+ /** OnboardingNeedStateSelected selectedAt. */
73717
+ public selectedAt: (number|Long);
73718
+
73719
+ /**
73720
+ * Creates a new OnboardingNeedStateSelected instance using the specified properties.
73721
+ * @param [properties] Properties to set
73722
+ * @returns OnboardingNeedStateSelected instance
73723
+ */
73724
+ public static create(properties?: IOnboardingNeedStateSelected): OnboardingNeedStateSelected;
73725
+
73726
+ /**
73727
+ * Encodes the specified OnboardingNeedStateSelected message. Does not implicitly {@link OnboardingNeedStateSelected.verify|verify} messages.
73728
+ * @param message OnboardingNeedStateSelected message or plain object to encode
73729
+ * @param [writer] Writer to encode to
73730
+ * @returns Writer
73731
+ */
73732
+ public static encode(message: IOnboardingNeedStateSelected, writer?: $protobuf.Writer): $protobuf.Writer;
73733
+
73734
+ /**
73735
+ * Encodes the specified OnboardingNeedStateSelected message, length delimited. Does not implicitly {@link OnboardingNeedStateSelected.verify|verify} messages.
73736
+ * @param message OnboardingNeedStateSelected message or plain object to encode
73737
+ * @param [writer] Writer to encode to
73738
+ * @returns Writer
73739
+ */
73740
+ public static encodeDelimited(message: IOnboardingNeedStateSelected, writer?: $protobuf.Writer): $protobuf.Writer;
73741
+
73742
+ /**
73743
+ * Decodes an OnboardingNeedStateSelected message from the specified reader or buffer.
73744
+ * @param reader Reader or buffer to decode from
73745
+ * @param [length] Message length if known beforehand
73746
+ * @returns OnboardingNeedStateSelected
73747
+ * @throws {Error} If the payload is not a reader or valid buffer
73748
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
73749
+ */
73750
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OnboardingNeedStateSelected;
73751
+
73752
+ /**
73753
+ * Decodes an OnboardingNeedStateSelected message from the specified reader or buffer, length delimited.
73754
+ * @param reader Reader or buffer to decode from
73755
+ * @returns OnboardingNeedStateSelected
73756
+ * @throws {Error} If the payload is not a reader or valid buffer
73757
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
73758
+ */
73759
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OnboardingNeedStateSelected;
73760
+
73761
+ /**
73762
+ * Verifies an OnboardingNeedStateSelected message.
73763
+ * @param message Plain object to verify
73764
+ * @returns `null` if valid, otherwise the reason why it is not
73765
+ */
73766
+ public static verify(message: { [k: string]: any }): (string|null);
73767
+
73768
+ /**
73769
+ * Creates an OnboardingNeedStateSelected message from a plain object. Also converts values to their respective internal types.
73770
+ * @param object Plain object
73771
+ * @returns OnboardingNeedStateSelected
73772
+ */
73773
+ public static fromObject(object: { [k: string]: any }): OnboardingNeedStateSelected;
73774
+
73775
+ /**
73776
+ * Creates a plain object from an OnboardingNeedStateSelected message. Also converts values to other types if specified.
73777
+ * @param message OnboardingNeedStateSelected
73778
+ * @param [options] Conversion options
73779
+ * @returns Plain object
73780
+ */
73781
+ public static toObject(message: OnboardingNeedStateSelected, options?: $protobuf.IConversionOptions): { [k: string]: any };
73782
+
73783
+ /**
73784
+ * Converts this OnboardingNeedStateSelected to JSON.
73785
+ * @returns JSON object
73786
+ */
73787
+ public toJSON(): { [k: string]: any };
73788
+
73789
+ /**
73790
+ * Gets the default type url for OnboardingNeedStateSelected
73791
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
73792
+ * @returns The default type url
73793
+ */
73794
+ public static getTypeUrl(typeUrlPrefix?: string): string;
73795
+ }
73796
+
73797
+ /** OnboardingNeedState enum. */
73798
+ export enum OnboardingNeedState {
73799
+ ONBOARDING_NEED_STATE_UNKNOWN = 0,
73800
+ ONBOARDING_NEED_STATE_STRESS = 1,
73801
+ ONBOARDING_NEED_STATE_ANXIETY = 2,
73802
+ ONBOARDING_NEED_STATE_GROUNDING = 3
73803
+ }
73804
+
73805
+ /** OnboardingNeedStateSelectedSource enum. */
73806
+ export enum OnboardingNeedStateSelectedSource {
73807
+ ONBOARDING_NEED_STATE_SELECTED_SOURCE_UNKNOWN = 0,
73808
+ ONBOARDING_NEED_STATE_SELECTED_SOURCE_ONBOARDING = 1
73809
+ }
73810
+
73670
73811
  /** Properties of an OnboardingAssigned. */
73671
73812
  export interface IOnboardingAssigned {
73672
73813
 
package/lib/index.js CHANGED
@@ -59510,6 +59510,7 @@ $root.coaching = (function() {
59510
59510
  * @property {number|Long|null} [closedAt] ScheduledCoachingSession closedAt
59511
59511
  * @property {boolean|null} [memberCancelled] ScheduledCoachingSession memberCancelled
59512
59512
  * @property {number|Long|null} [coachEngagedAt] ScheduledCoachingSession coachEngagedAt
59513
+ * @property {boolean|null} [coachCancelled] ScheduledCoachingSession coachCancelled
59513
59514
  */
59514
59515
 
59515
59516
  /**
@@ -59686,6 +59687,14 @@ $root.coaching = (function() {
59686
59687
  */
59687
59688
  ScheduledCoachingSession.prototype.coachEngagedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
59688
59689
 
59690
+ /**
59691
+ * ScheduledCoachingSession coachCancelled.
59692
+ * @member {boolean} coachCancelled
59693
+ * @memberof coaching.ScheduledCoachingSession
59694
+ * @instance
59695
+ */
59696
+ ScheduledCoachingSession.prototype.coachCancelled = false;
59697
+
59689
59698
  /**
59690
59699
  * Creates a new ScheduledCoachingSession instance using the specified properties.
59691
59700
  * @function create
@@ -59746,6 +59755,8 @@ $root.coaching = (function() {
59746
59755
  writer.uint32(/* id 17, wireType 0 =*/136).bool(message.memberCancelled);
59747
59756
  if (message.coachEngagedAt != null && Object.hasOwnProperty.call(message, "coachEngagedAt"))
59748
59757
  writer.uint32(/* id 18, wireType 0 =*/144).uint64(message.coachEngagedAt);
59758
+ if (message.coachCancelled != null && Object.hasOwnProperty.call(message, "coachCancelled"))
59759
+ writer.uint32(/* id 19, wireType 0 =*/152).bool(message.coachCancelled);
59749
59760
  return writer;
59750
59761
  };
59751
59762
 
@@ -59858,6 +59869,10 @@ $root.coaching = (function() {
59858
59869
  message.coachEngagedAt = reader.uint64();
59859
59870
  break;
59860
59871
  }
59872
+ case 19: {
59873
+ message.coachCancelled = reader.bool();
59874
+ break;
59875
+ }
59861
59876
  default:
59862
59877
  reader.skipType(tag & 7, long);
59863
59878
  break;
@@ -59964,6 +59979,9 @@ $root.coaching = (function() {
59964
59979
  if (message.coachEngagedAt != null && message.hasOwnProperty("coachEngagedAt"))
59965
59980
  if (!$util.isInteger(message.coachEngagedAt) && !(message.coachEngagedAt && $util.isInteger(message.coachEngagedAt.low) && $util.isInteger(message.coachEngagedAt.high)))
59966
59981
  return "coachEngagedAt: integer|Long expected";
59982
+ if (message.coachCancelled != null && message.hasOwnProperty("coachCancelled"))
59983
+ if (typeof message.coachCancelled !== "boolean")
59984
+ return "coachCancelled: boolean expected";
59967
59985
  return null;
59968
59986
  };
59969
59987
 
@@ -60115,6 +60133,8 @@ $root.coaching = (function() {
60115
60133
  message.coachEngagedAt = object.coachEngagedAt;
60116
60134
  else if (typeof object.coachEngagedAt === "object")
60117
60135
  message.coachEngagedAt = new $util.LongBits(object.coachEngagedAt.low >>> 0, object.coachEngagedAt.high >>> 0).toNumber(true);
60136
+ if (object.coachCancelled != null)
60137
+ message.coachCancelled = Boolean(object.coachCancelled);
60118
60138
  return message;
60119
60139
  };
60120
60140
 
@@ -60182,6 +60202,7 @@ $root.coaching = (function() {
60182
60202
  object.coachEngagedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
60183
60203
  } else
60184
60204
  object.coachEngagedAt = options.longs === String ? "0" : 0;
60205
+ object.coachCancelled = false;
60185
60206
  }
60186
60207
  if (message.id != null && message.hasOwnProperty("id"))
60187
60208
  object.id = message.id;
@@ -60243,6 +60264,8 @@ $root.coaching = (function() {
60243
60264
  object.coachEngagedAt = options.longs === String ? String(message.coachEngagedAt) : message.coachEngagedAt;
60244
60265
  else
60245
60266
  object.coachEngagedAt = options.longs === String ? $util.Long.prototype.toString.call(message.coachEngagedAt) : options.longs === Number ? new $util.LongBits(message.coachEngagedAt.low >>> 0, message.coachEngagedAt.high >>> 0).toNumber(true) : message.coachEngagedAt;
60267
+ if (message.coachCancelled != null && message.hasOwnProperty("coachCancelled"))
60268
+ object.coachCancelled = message.coachCancelled;
60246
60269
  return object;
60247
60270
  };
60248
60271
 
@@ -224401,6 +224424,410 @@ $root.UserOnboardingPrimaryTopicSelected = (function() {
224401
224424
  return UserOnboardingPrimaryTopicSelected;
224402
224425
  })();
224403
224426
 
224427
+ $root.OnboardingNeedStateSelected = (function() {
224428
+
224429
+ /**
224430
+ * Properties of an OnboardingNeedStateSelected.
224431
+ * @name IOnboardingNeedStateSelected
224432
+ * @interface IOnboardingNeedStateSelected
224433
+ * @property {string|null} [hsUserId] OnboardingNeedStateSelected hsUserId
224434
+ * @property {OnboardingNeedState|null} [needState] OnboardingNeedStateSelected needState
224435
+ * @property {string|null} [needStateDisplayName] OnboardingNeedStateSelected needStateDisplayName
224436
+ * @property {OnboardingNeedStateSelectedSource|null} [source] OnboardingNeedStateSelected source
224437
+ * @property {number|Long|null} [selectedAt] OnboardingNeedStateSelected selectedAt
224438
+ */
224439
+
224440
+ /**
224441
+ * Constructs a new OnboardingNeedStateSelected.
224442
+ * @name OnboardingNeedStateSelected
224443
+ * @classdesc Represents an OnboardingNeedStateSelected.
224444
+ * @implements IOnboardingNeedStateSelected
224445
+ * @constructor
224446
+ * @param {IOnboardingNeedStateSelected=} [properties] Properties to set
224447
+ */
224448
+ function OnboardingNeedStateSelected(properties) {
224449
+ if (properties)
224450
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
224451
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
224452
+ this[keys[i]] = properties[keys[i]];
224453
+ }
224454
+
224455
+ /**
224456
+ * OnboardingNeedStateSelected hsUserId.
224457
+ * @member {string} hsUserId
224458
+ * @memberof OnboardingNeedStateSelected
224459
+ * @instance
224460
+ */
224461
+ OnboardingNeedStateSelected.prototype.hsUserId = "";
224462
+
224463
+ /**
224464
+ * OnboardingNeedStateSelected needState.
224465
+ * @member {OnboardingNeedState} needState
224466
+ * @memberof OnboardingNeedStateSelected
224467
+ * @instance
224468
+ */
224469
+ OnboardingNeedStateSelected.prototype.needState = 0;
224470
+
224471
+ /**
224472
+ * OnboardingNeedStateSelected needStateDisplayName.
224473
+ * @member {string} needStateDisplayName
224474
+ * @memberof OnboardingNeedStateSelected
224475
+ * @instance
224476
+ */
224477
+ OnboardingNeedStateSelected.prototype.needStateDisplayName = "";
224478
+
224479
+ /**
224480
+ * OnboardingNeedStateSelected source.
224481
+ * @member {OnboardingNeedStateSelectedSource} source
224482
+ * @memberof OnboardingNeedStateSelected
224483
+ * @instance
224484
+ */
224485
+ OnboardingNeedStateSelected.prototype.source = 0;
224486
+
224487
+ /**
224488
+ * OnboardingNeedStateSelected selectedAt.
224489
+ * @member {number|Long} selectedAt
224490
+ * @memberof OnboardingNeedStateSelected
224491
+ * @instance
224492
+ */
224493
+ OnboardingNeedStateSelected.prototype.selectedAt = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
224494
+
224495
+ /**
224496
+ * Creates a new OnboardingNeedStateSelected instance using the specified properties.
224497
+ * @function create
224498
+ * @memberof OnboardingNeedStateSelected
224499
+ * @static
224500
+ * @param {IOnboardingNeedStateSelected=} [properties] Properties to set
224501
+ * @returns {OnboardingNeedStateSelected} OnboardingNeedStateSelected instance
224502
+ */
224503
+ OnboardingNeedStateSelected.create = function create(properties) {
224504
+ return new OnboardingNeedStateSelected(properties);
224505
+ };
224506
+
224507
+ /**
224508
+ * Encodes the specified OnboardingNeedStateSelected message. Does not implicitly {@link OnboardingNeedStateSelected.verify|verify} messages.
224509
+ * @function encode
224510
+ * @memberof OnboardingNeedStateSelected
224511
+ * @static
224512
+ * @param {IOnboardingNeedStateSelected} message OnboardingNeedStateSelected message or plain object to encode
224513
+ * @param {$protobuf.Writer} [writer] Writer to encode to
224514
+ * @returns {$protobuf.Writer} Writer
224515
+ */
224516
+ OnboardingNeedStateSelected.encode = function encode(message, writer) {
224517
+ if (!writer)
224518
+ writer = $Writer.create();
224519
+ if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
224520
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
224521
+ if (message.needState != null && Object.hasOwnProperty.call(message, "needState"))
224522
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.needState);
224523
+ if (message.needStateDisplayName != null && Object.hasOwnProperty.call(message, "needStateDisplayName"))
224524
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.needStateDisplayName);
224525
+ if (message.source != null && Object.hasOwnProperty.call(message, "source"))
224526
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.source);
224527
+ if (message.selectedAt != null && Object.hasOwnProperty.call(message, "selectedAt"))
224528
+ writer.uint32(/* id 5, wireType 0 =*/40).int64(message.selectedAt);
224529
+ return writer;
224530
+ };
224531
+
224532
+ /**
224533
+ * Encodes the specified OnboardingNeedStateSelected message, length delimited. Does not implicitly {@link OnboardingNeedStateSelected.verify|verify} messages.
224534
+ * @function encodeDelimited
224535
+ * @memberof OnboardingNeedStateSelected
224536
+ * @static
224537
+ * @param {IOnboardingNeedStateSelected} message OnboardingNeedStateSelected message or plain object to encode
224538
+ * @param {$protobuf.Writer} [writer] Writer to encode to
224539
+ * @returns {$protobuf.Writer} Writer
224540
+ */
224541
+ OnboardingNeedStateSelected.encodeDelimited = function encodeDelimited(message, writer) {
224542
+ return this.encode(message, writer).ldelim();
224543
+ };
224544
+
224545
+ /**
224546
+ * Decodes an OnboardingNeedStateSelected message from the specified reader or buffer.
224547
+ * @function decode
224548
+ * @memberof OnboardingNeedStateSelected
224549
+ * @static
224550
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
224551
+ * @param {number} [length] Message length if known beforehand
224552
+ * @returns {OnboardingNeedStateSelected} OnboardingNeedStateSelected
224553
+ * @throws {Error} If the payload is not a reader or valid buffer
224554
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
224555
+ */
224556
+ OnboardingNeedStateSelected.decode = function decode(reader, length, error, long) {
224557
+ if (!(reader instanceof $Reader))
224558
+ reader = $Reader.create(reader);
224559
+ if (long === undefined)
224560
+ long = 0;
224561
+ if (long > $Reader.recursionLimit)
224562
+ throw Error("maximum nesting depth exceeded");
224563
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OnboardingNeedStateSelected();
224564
+ while (reader.pos < end) {
224565
+ var tag = reader.uint32();
224566
+ if (tag === error)
224567
+ break;
224568
+ switch (tag >>> 3) {
224569
+ case 1: {
224570
+ message.hsUserId = reader.string();
224571
+ break;
224572
+ }
224573
+ case 2: {
224574
+ message.needState = reader.int32();
224575
+ break;
224576
+ }
224577
+ case 3: {
224578
+ message.needStateDisplayName = reader.string();
224579
+ break;
224580
+ }
224581
+ case 4: {
224582
+ message.source = reader.int32();
224583
+ break;
224584
+ }
224585
+ case 5: {
224586
+ message.selectedAt = reader.int64();
224587
+ break;
224588
+ }
224589
+ default:
224590
+ reader.skipType(tag & 7, long);
224591
+ break;
224592
+ }
224593
+ }
224594
+ return message;
224595
+ };
224596
+
224597
+ /**
224598
+ * Decodes an OnboardingNeedStateSelected message from the specified reader or buffer, length delimited.
224599
+ * @function decodeDelimited
224600
+ * @memberof OnboardingNeedStateSelected
224601
+ * @static
224602
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
224603
+ * @returns {OnboardingNeedStateSelected} OnboardingNeedStateSelected
224604
+ * @throws {Error} If the payload is not a reader or valid buffer
224605
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
224606
+ */
224607
+ OnboardingNeedStateSelected.decodeDelimited = function decodeDelimited(reader) {
224608
+ if (!(reader instanceof $Reader))
224609
+ reader = new $Reader(reader);
224610
+ return this.decode(reader, reader.uint32());
224611
+ };
224612
+
224613
+ /**
224614
+ * Verifies an OnboardingNeedStateSelected message.
224615
+ * @function verify
224616
+ * @memberof OnboardingNeedStateSelected
224617
+ * @static
224618
+ * @param {Object.<string,*>} message Plain object to verify
224619
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
224620
+ */
224621
+ OnboardingNeedStateSelected.verify = function verify(message, long) {
224622
+ if (typeof message !== "object" || message === null)
224623
+ return "object expected";
224624
+ if (long === undefined)
224625
+ long = 0;
224626
+ if (long > $util.recursionLimit)
224627
+ return "maximum nesting depth exceeded";
224628
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
224629
+ if (!$util.isString(message.hsUserId))
224630
+ return "hsUserId: string expected";
224631
+ if (message.needState != null && message.hasOwnProperty("needState"))
224632
+ switch (message.needState) {
224633
+ default:
224634
+ return "needState: enum value expected";
224635
+ case 0:
224636
+ case 1:
224637
+ case 2:
224638
+ case 3:
224639
+ break;
224640
+ }
224641
+ if (message.needStateDisplayName != null && message.hasOwnProperty("needStateDisplayName"))
224642
+ if (!$util.isString(message.needStateDisplayName))
224643
+ return "needStateDisplayName: string expected";
224644
+ if (message.source != null && message.hasOwnProperty("source"))
224645
+ switch (message.source) {
224646
+ default:
224647
+ return "source: enum value expected";
224648
+ case 0:
224649
+ case 1:
224650
+ break;
224651
+ }
224652
+ if (message.selectedAt != null && message.hasOwnProperty("selectedAt"))
224653
+ if (!$util.isInteger(message.selectedAt) && !(message.selectedAt && $util.isInteger(message.selectedAt.low) && $util.isInteger(message.selectedAt.high)))
224654
+ return "selectedAt: integer|Long expected";
224655
+ return null;
224656
+ };
224657
+
224658
+ /**
224659
+ * Creates an OnboardingNeedStateSelected message from a plain object. Also converts values to their respective internal types.
224660
+ * @function fromObject
224661
+ * @memberof OnboardingNeedStateSelected
224662
+ * @static
224663
+ * @param {Object.<string,*>} object Plain object
224664
+ * @returns {OnboardingNeedStateSelected} OnboardingNeedStateSelected
224665
+ */
224666
+ OnboardingNeedStateSelected.fromObject = function fromObject(object, long) {
224667
+ if (object instanceof $root.OnboardingNeedStateSelected)
224668
+ return object;
224669
+ if (long === undefined)
224670
+ long = 0;
224671
+ if (long > $util.recursionLimit)
224672
+ throw Error("maximum nesting depth exceeded");
224673
+ var message = new $root.OnboardingNeedStateSelected();
224674
+ if (object.hsUserId != null)
224675
+ message.hsUserId = String(object.hsUserId);
224676
+ switch (object.needState) {
224677
+ default:
224678
+ if (typeof object.needState === "number") {
224679
+ message.needState = object.needState;
224680
+ break;
224681
+ }
224682
+ break;
224683
+ case "ONBOARDING_NEED_STATE_UNKNOWN":
224684
+ case 0:
224685
+ message.needState = 0;
224686
+ break;
224687
+ case "ONBOARDING_NEED_STATE_STRESS":
224688
+ case 1:
224689
+ message.needState = 1;
224690
+ break;
224691
+ case "ONBOARDING_NEED_STATE_ANXIETY":
224692
+ case 2:
224693
+ message.needState = 2;
224694
+ break;
224695
+ case "ONBOARDING_NEED_STATE_GROUNDING":
224696
+ case 3:
224697
+ message.needState = 3;
224698
+ break;
224699
+ }
224700
+ if (object.needStateDisplayName != null)
224701
+ message.needStateDisplayName = String(object.needStateDisplayName);
224702
+ switch (object.source) {
224703
+ default:
224704
+ if (typeof object.source === "number") {
224705
+ message.source = object.source;
224706
+ break;
224707
+ }
224708
+ break;
224709
+ case "ONBOARDING_NEED_STATE_SELECTED_SOURCE_UNKNOWN":
224710
+ case 0:
224711
+ message.source = 0;
224712
+ break;
224713
+ case "ONBOARDING_NEED_STATE_SELECTED_SOURCE_ONBOARDING":
224714
+ case 1:
224715
+ message.source = 1;
224716
+ break;
224717
+ }
224718
+ if (object.selectedAt != null)
224719
+ if ($util.Long)
224720
+ (message.selectedAt = $util.Long.fromValue(object.selectedAt)).unsigned = false;
224721
+ else if (typeof object.selectedAt === "string")
224722
+ message.selectedAt = parseInt(object.selectedAt, 10);
224723
+ else if (typeof object.selectedAt === "number")
224724
+ message.selectedAt = object.selectedAt;
224725
+ else if (typeof object.selectedAt === "object")
224726
+ message.selectedAt = new $util.LongBits(object.selectedAt.low >>> 0, object.selectedAt.high >>> 0).toNumber();
224727
+ return message;
224728
+ };
224729
+
224730
+ /**
224731
+ * Creates a plain object from an OnboardingNeedStateSelected message. Also converts values to other types if specified.
224732
+ * @function toObject
224733
+ * @memberof OnboardingNeedStateSelected
224734
+ * @static
224735
+ * @param {OnboardingNeedStateSelected} message OnboardingNeedStateSelected
224736
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
224737
+ * @returns {Object.<string,*>} Plain object
224738
+ */
224739
+ OnboardingNeedStateSelected.toObject = function toObject(message, options) {
224740
+ if (!options)
224741
+ options = {};
224742
+ var object = {};
224743
+ if (options.defaults) {
224744
+ object.hsUserId = "";
224745
+ object.needState = options.enums === String ? "ONBOARDING_NEED_STATE_UNKNOWN" : 0;
224746
+ object.needStateDisplayName = "";
224747
+ object.source = options.enums === String ? "ONBOARDING_NEED_STATE_SELECTED_SOURCE_UNKNOWN" : 0;
224748
+ if ($util.Long) {
224749
+ var long = new $util.Long(0, 0, false);
224750
+ object.selectedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
224751
+ } else
224752
+ object.selectedAt = options.longs === String ? "0" : 0;
224753
+ }
224754
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
224755
+ object.hsUserId = message.hsUserId;
224756
+ if (message.needState != null && message.hasOwnProperty("needState"))
224757
+ object.needState = options.enums === String ? $root.OnboardingNeedState[message.needState] === undefined ? message.needState : $root.OnboardingNeedState[message.needState] : message.needState;
224758
+ if (message.needStateDisplayName != null && message.hasOwnProperty("needStateDisplayName"))
224759
+ object.needStateDisplayName = message.needStateDisplayName;
224760
+ if (message.source != null && message.hasOwnProperty("source"))
224761
+ object.source = options.enums === String ? $root.OnboardingNeedStateSelectedSource[message.source] === undefined ? message.source : $root.OnboardingNeedStateSelectedSource[message.source] : message.source;
224762
+ if (message.selectedAt != null && message.hasOwnProperty("selectedAt"))
224763
+ if (typeof message.selectedAt === "number")
224764
+ object.selectedAt = options.longs === String ? String(message.selectedAt) : message.selectedAt;
224765
+ else
224766
+ object.selectedAt = options.longs === String ? $util.Long.prototype.toString.call(message.selectedAt) : options.longs === Number ? new $util.LongBits(message.selectedAt.low >>> 0, message.selectedAt.high >>> 0).toNumber() : message.selectedAt;
224767
+ return object;
224768
+ };
224769
+
224770
+ /**
224771
+ * Converts this OnboardingNeedStateSelected to JSON.
224772
+ * @function toJSON
224773
+ * @memberof OnboardingNeedStateSelected
224774
+ * @instance
224775
+ * @returns {Object.<string,*>} JSON object
224776
+ */
224777
+ OnboardingNeedStateSelected.prototype.toJSON = function toJSON() {
224778
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
224779
+ };
224780
+
224781
+ /**
224782
+ * Gets the default type url for OnboardingNeedStateSelected
224783
+ * @function getTypeUrl
224784
+ * @memberof OnboardingNeedStateSelected
224785
+ * @static
224786
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
224787
+ * @returns {string} The default type url
224788
+ */
224789
+ OnboardingNeedStateSelected.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
224790
+ if (typeUrlPrefix === undefined) {
224791
+ typeUrlPrefix = "type.googleapis.com";
224792
+ }
224793
+ return typeUrlPrefix + "/OnboardingNeedStateSelected";
224794
+ };
224795
+
224796
+ return OnboardingNeedStateSelected;
224797
+ })();
224798
+
224799
+ /**
224800
+ * OnboardingNeedState enum.
224801
+ * @name OnboardingNeedState
224802
+ * @enum {number}
224803
+ * @property {number} ONBOARDING_NEED_STATE_UNKNOWN=0 ONBOARDING_NEED_STATE_UNKNOWN value
224804
+ * @property {number} ONBOARDING_NEED_STATE_STRESS=1 ONBOARDING_NEED_STATE_STRESS value
224805
+ * @property {number} ONBOARDING_NEED_STATE_ANXIETY=2 ONBOARDING_NEED_STATE_ANXIETY value
224806
+ * @property {number} ONBOARDING_NEED_STATE_GROUNDING=3 ONBOARDING_NEED_STATE_GROUNDING value
224807
+ */
224808
+ $root.OnboardingNeedState = (function() {
224809
+ var valuesById = {}, values = Object.create(valuesById);
224810
+ values[valuesById[0] = "ONBOARDING_NEED_STATE_UNKNOWN"] = 0;
224811
+ values[valuesById[1] = "ONBOARDING_NEED_STATE_STRESS"] = 1;
224812
+ values[valuesById[2] = "ONBOARDING_NEED_STATE_ANXIETY"] = 2;
224813
+ values[valuesById[3] = "ONBOARDING_NEED_STATE_GROUNDING"] = 3;
224814
+ return values;
224815
+ })();
224816
+
224817
+ /**
224818
+ * OnboardingNeedStateSelectedSource enum.
224819
+ * @name OnboardingNeedStateSelectedSource
224820
+ * @enum {number}
224821
+ * @property {number} ONBOARDING_NEED_STATE_SELECTED_SOURCE_UNKNOWN=0 ONBOARDING_NEED_STATE_SELECTED_SOURCE_UNKNOWN value
224822
+ * @property {number} ONBOARDING_NEED_STATE_SELECTED_SOURCE_ONBOARDING=1 ONBOARDING_NEED_STATE_SELECTED_SOURCE_ONBOARDING value
224823
+ */
224824
+ $root.OnboardingNeedStateSelectedSource = (function() {
224825
+ var valuesById = {}, values = Object.create(valuesById);
224826
+ values[valuesById[0] = "ONBOARDING_NEED_STATE_SELECTED_SOURCE_UNKNOWN"] = 0;
224827
+ values[valuesById[1] = "ONBOARDING_NEED_STATE_SELECTED_SOURCE_ONBOARDING"] = 1;
224828
+ return values;
224829
+ })();
224830
+
224404
224831
  $root.OnboardingAssigned = (function() {
224405
224832
 
224406
224833
  /**
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.802.0"
19
+ "version": "1.804.0"
20
20
  }