@headspace/protos-events 1.413.0 → 1.415.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
@@ -29086,6 +29086,153 @@ export class B2BAdminCreated implements IB2BAdminCreated {
29086
29086
  public toJSON(): { [k: string]: any };
29087
29087
  }
29088
29088
 
29089
+ /** ChallengeType enum. */
29090
+ export enum ChallengeType {
29091
+ MEDITATION = 0,
29092
+ SLEEP = 1,
29093
+ FOCUS = 2,
29094
+ MOVE = 3,
29095
+ ALL = 4
29096
+ }
29097
+
29098
+ /** GoalType enum. */
29099
+ export enum GoalType {
29100
+ CONTENT_STARTS = 0,
29101
+ MINUTES = 1
29102
+ }
29103
+
29104
+ /** Properties of a B2BChallengeCreated. */
29105
+ export interface IB2BChallengeCreated {
29106
+
29107
+ /** B2BChallengeCreated b2bOrgId */
29108
+ b2bOrgId?: (string|null);
29109
+
29110
+ /** B2BChallengeCreated headspaceHealthId */
29111
+ headspaceHealthId?: (string|null);
29112
+
29113
+ /** B2BChallengeCreated orgName */
29114
+ orgName?: (string|null);
29115
+
29116
+ /** B2BChallengeCreated challengeType */
29117
+ challengeType?: (ChallengeType|null);
29118
+
29119
+ /** B2BChallengeCreated startDate_8601 */
29120
+ startDate_8601?: (string|null);
29121
+
29122
+ /** B2BChallengeCreated durationInWeeks */
29123
+ durationInWeeks?: (number|Long|null);
29124
+
29125
+ /** B2BChallengeCreated goalType */
29126
+ goalType?: (GoalType|null);
29127
+
29128
+ /** B2BChallengeCreated goalTarget */
29129
+ goalTarget?: (number|Long|null);
29130
+ }
29131
+
29132
+ /** Represents a B2BChallengeCreated. */
29133
+ export class B2BChallengeCreated implements IB2BChallengeCreated {
29134
+
29135
+ /**
29136
+ * Constructs a new B2BChallengeCreated.
29137
+ * @param [properties] Properties to set
29138
+ */
29139
+ constructor(properties?: IB2BChallengeCreated);
29140
+
29141
+ /** B2BChallengeCreated b2bOrgId. */
29142
+ public b2bOrgId: string;
29143
+
29144
+ /** B2BChallengeCreated headspaceHealthId. */
29145
+ public headspaceHealthId: string;
29146
+
29147
+ /** B2BChallengeCreated orgName. */
29148
+ public orgName: string;
29149
+
29150
+ /** B2BChallengeCreated challengeType. */
29151
+ public challengeType: ChallengeType;
29152
+
29153
+ /** B2BChallengeCreated startDate_8601. */
29154
+ public startDate_8601: string;
29155
+
29156
+ /** B2BChallengeCreated durationInWeeks. */
29157
+ public durationInWeeks: (number|Long);
29158
+
29159
+ /** B2BChallengeCreated goalType. */
29160
+ public goalType: GoalType;
29161
+
29162
+ /** B2BChallengeCreated goalTarget. */
29163
+ public goalTarget: (number|Long);
29164
+
29165
+ /**
29166
+ * Creates a new B2BChallengeCreated instance using the specified properties.
29167
+ * @param [properties] Properties to set
29168
+ * @returns B2BChallengeCreated instance
29169
+ */
29170
+ public static create(properties?: IB2BChallengeCreated): B2BChallengeCreated;
29171
+
29172
+ /**
29173
+ * Encodes the specified B2BChallengeCreated message. Does not implicitly {@link B2BChallengeCreated.verify|verify} messages.
29174
+ * @param message B2BChallengeCreated message or plain object to encode
29175
+ * @param [writer] Writer to encode to
29176
+ * @returns Writer
29177
+ */
29178
+ public static encode(message: IB2BChallengeCreated, writer?: $protobuf.Writer): $protobuf.Writer;
29179
+
29180
+ /**
29181
+ * Encodes the specified B2BChallengeCreated message, length delimited. Does not implicitly {@link B2BChallengeCreated.verify|verify} messages.
29182
+ * @param message B2BChallengeCreated message or plain object to encode
29183
+ * @param [writer] Writer to encode to
29184
+ * @returns Writer
29185
+ */
29186
+ public static encodeDelimited(message: IB2BChallengeCreated, writer?: $protobuf.Writer): $protobuf.Writer;
29187
+
29188
+ /**
29189
+ * Decodes a B2BChallengeCreated message from the specified reader or buffer.
29190
+ * @param reader Reader or buffer to decode from
29191
+ * @param [length] Message length if known beforehand
29192
+ * @returns B2BChallengeCreated
29193
+ * @throws {Error} If the payload is not a reader or valid buffer
29194
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29195
+ */
29196
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): B2BChallengeCreated;
29197
+
29198
+ /**
29199
+ * Decodes a B2BChallengeCreated message from the specified reader or buffer, length delimited.
29200
+ * @param reader Reader or buffer to decode from
29201
+ * @returns B2BChallengeCreated
29202
+ * @throws {Error} If the payload is not a reader or valid buffer
29203
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29204
+ */
29205
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): B2BChallengeCreated;
29206
+
29207
+ /**
29208
+ * Verifies a B2BChallengeCreated message.
29209
+ * @param message Plain object to verify
29210
+ * @returns `null` if valid, otherwise the reason why it is not
29211
+ */
29212
+ public static verify(message: { [k: string]: any }): (string|null);
29213
+
29214
+ /**
29215
+ * Creates a B2BChallengeCreated message from a plain object. Also converts values to their respective internal types.
29216
+ * @param object Plain object
29217
+ * @returns B2BChallengeCreated
29218
+ */
29219
+ public static fromObject(object: { [k: string]: any }): B2BChallengeCreated;
29220
+
29221
+ /**
29222
+ * Creates a plain object from a B2BChallengeCreated message. Also converts values to other types if specified.
29223
+ * @param message B2BChallengeCreated
29224
+ * @param [options] Conversion options
29225
+ * @returns Plain object
29226
+ */
29227
+ public static toObject(message: B2BChallengeCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
29228
+
29229
+ /**
29230
+ * Converts this B2BChallengeCreated to JSON.
29231
+ * @returns JSON object
29232
+ */
29233
+ public toJSON(): { [k: string]: any };
29234
+ }
29235
+
29089
29236
  /** Properties of an EligibilityFileProcessed. */
29090
29237
  export interface IEligibilityFileProcessed {
29091
29238
 
@@ -30207,6 +30354,9 @@ export interface IAuthEmailVerificationUpdated {
30207
30354
 
30208
30355
  /** email verification status */
30209
30356
  verificationStatus?: (auth.AuthEmailVerification|null);
30357
+
30358
+ /** email address that was verified */
30359
+ email?: (string|null);
30210
30360
  }
30211
30361
 
30212
30362
  /** Signals when email verification status has changed */
@@ -30227,6 +30377,9 @@ export class AuthEmailVerificationUpdated implements IAuthEmailVerificationUpdat
30227
30377
  /** email verification status */
30228
30378
  public verificationStatus: auth.AuthEmailVerification;
30229
30379
 
30380
+ /** email address that was verified */
30381
+ public email: string;
30382
+
30230
30383
  /**
30231
30384
  * Creates a new AuthEmailVerificationUpdated instance using the specified properties.
30232
30385
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -80667,6 +80667,451 @@ $root.B2BAdminCreated = (function() {
80667
80667
  return B2BAdminCreated;
80668
80668
  })();
80669
80669
 
80670
+ /**
80671
+ * ChallengeType enum.
80672
+ * @exports ChallengeType
80673
+ * @enum {string}
80674
+ * @property {number} MEDITATION=0 MEDITATION value
80675
+ * @property {number} SLEEP=1 SLEEP value
80676
+ * @property {number} FOCUS=2 FOCUS value
80677
+ * @property {number} MOVE=3 MOVE value
80678
+ * @property {number} ALL=4 ALL value
80679
+ */
80680
+ $root.ChallengeType = (function() {
80681
+ var valuesById = {}, values = Object.create(valuesById);
80682
+ values[valuesById[0] = "MEDITATION"] = 0;
80683
+ values[valuesById[1] = "SLEEP"] = 1;
80684
+ values[valuesById[2] = "FOCUS"] = 2;
80685
+ values[valuesById[3] = "MOVE"] = 3;
80686
+ values[valuesById[4] = "ALL"] = 4;
80687
+ return values;
80688
+ })();
80689
+
80690
+ /**
80691
+ * GoalType enum.
80692
+ * @exports GoalType
80693
+ * @enum {string}
80694
+ * @property {number} CONTENT_STARTS=0 CONTENT_STARTS value
80695
+ * @property {number} MINUTES=1 MINUTES value
80696
+ */
80697
+ $root.GoalType = (function() {
80698
+ var valuesById = {}, values = Object.create(valuesById);
80699
+ values[valuesById[0] = "CONTENT_STARTS"] = 0;
80700
+ values[valuesById[1] = "MINUTES"] = 1;
80701
+ return values;
80702
+ })();
80703
+
80704
+ $root.B2BChallengeCreated = (function() {
80705
+
80706
+ /**
80707
+ * Properties of a B2BChallengeCreated.
80708
+ * @exports IB2BChallengeCreated
80709
+ * @interface IB2BChallengeCreated
80710
+ * @property {string|null} [b2bOrgId] B2BChallengeCreated b2bOrgId
80711
+ * @property {string|null} [headspaceHealthId] B2BChallengeCreated headspaceHealthId
80712
+ * @property {string|null} [orgName] B2BChallengeCreated orgName
80713
+ * @property {ChallengeType|null} [challengeType] B2BChallengeCreated challengeType
80714
+ * @property {string|null} [startDate_8601] B2BChallengeCreated startDate_8601
80715
+ * @property {number|Long|null} [durationInWeeks] B2BChallengeCreated durationInWeeks
80716
+ * @property {GoalType|null} [goalType] B2BChallengeCreated goalType
80717
+ * @property {number|Long|null} [goalTarget] B2BChallengeCreated goalTarget
80718
+ */
80719
+
80720
+ /**
80721
+ * Constructs a new B2BChallengeCreated.
80722
+ * @exports B2BChallengeCreated
80723
+ * @classdesc Represents a B2BChallengeCreated.
80724
+ * @implements IB2BChallengeCreated
80725
+ * @constructor
80726
+ * @param {IB2BChallengeCreated=} [properties] Properties to set
80727
+ */
80728
+ function B2BChallengeCreated(properties) {
80729
+ if (properties)
80730
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
80731
+ if (properties[keys[i]] != null)
80732
+ this[keys[i]] = properties[keys[i]];
80733
+ }
80734
+
80735
+ /**
80736
+ * B2BChallengeCreated b2bOrgId.
80737
+ * @member {string} b2bOrgId
80738
+ * @memberof B2BChallengeCreated
80739
+ * @instance
80740
+ */
80741
+ B2BChallengeCreated.prototype.b2bOrgId = "";
80742
+
80743
+ /**
80744
+ * B2BChallengeCreated headspaceHealthId.
80745
+ * @member {string} headspaceHealthId
80746
+ * @memberof B2BChallengeCreated
80747
+ * @instance
80748
+ */
80749
+ B2BChallengeCreated.prototype.headspaceHealthId = "";
80750
+
80751
+ /**
80752
+ * B2BChallengeCreated orgName.
80753
+ * @member {string} orgName
80754
+ * @memberof B2BChallengeCreated
80755
+ * @instance
80756
+ */
80757
+ B2BChallengeCreated.prototype.orgName = "";
80758
+
80759
+ /**
80760
+ * B2BChallengeCreated challengeType.
80761
+ * @member {ChallengeType} challengeType
80762
+ * @memberof B2BChallengeCreated
80763
+ * @instance
80764
+ */
80765
+ B2BChallengeCreated.prototype.challengeType = 0;
80766
+
80767
+ /**
80768
+ * B2BChallengeCreated startDate_8601.
80769
+ * @member {string} startDate_8601
80770
+ * @memberof B2BChallengeCreated
80771
+ * @instance
80772
+ */
80773
+ B2BChallengeCreated.prototype.startDate_8601 = "";
80774
+
80775
+ /**
80776
+ * B2BChallengeCreated durationInWeeks.
80777
+ * @member {number|Long} durationInWeeks
80778
+ * @memberof B2BChallengeCreated
80779
+ * @instance
80780
+ */
80781
+ B2BChallengeCreated.prototype.durationInWeeks = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
80782
+
80783
+ /**
80784
+ * B2BChallengeCreated goalType.
80785
+ * @member {GoalType} goalType
80786
+ * @memberof B2BChallengeCreated
80787
+ * @instance
80788
+ */
80789
+ B2BChallengeCreated.prototype.goalType = 0;
80790
+
80791
+ /**
80792
+ * B2BChallengeCreated goalTarget.
80793
+ * @member {number|Long} goalTarget
80794
+ * @memberof B2BChallengeCreated
80795
+ * @instance
80796
+ */
80797
+ B2BChallengeCreated.prototype.goalTarget = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
80798
+
80799
+ /**
80800
+ * Creates a new B2BChallengeCreated instance using the specified properties.
80801
+ * @function create
80802
+ * @memberof B2BChallengeCreated
80803
+ * @static
80804
+ * @param {IB2BChallengeCreated=} [properties] Properties to set
80805
+ * @returns {B2BChallengeCreated} B2BChallengeCreated instance
80806
+ */
80807
+ B2BChallengeCreated.create = function create(properties) {
80808
+ return new B2BChallengeCreated(properties);
80809
+ };
80810
+
80811
+ /**
80812
+ * Encodes the specified B2BChallengeCreated message. Does not implicitly {@link B2BChallengeCreated.verify|verify} messages.
80813
+ * @function encode
80814
+ * @memberof B2BChallengeCreated
80815
+ * @static
80816
+ * @param {IB2BChallengeCreated} message B2BChallengeCreated message or plain object to encode
80817
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80818
+ * @returns {$protobuf.Writer} Writer
80819
+ */
80820
+ B2BChallengeCreated.encode = function encode(message, writer) {
80821
+ if (!writer)
80822
+ writer = $Writer.create();
80823
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
80824
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.b2bOrgId);
80825
+ if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
80826
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.headspaceHealthId);
80827
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
80828
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.orgName);
80829
+ if (message.challengeType != null && message.hasOwnProperty("challengeType"))
80830
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.challengeType);
80831
+ if (message.startDate_8601 != null && message.hasOwnProperty("startDate_8601"))
80832
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.startDate_8601);
80833
+ if (message.durationInWeeks != null && message.hasOwnProperty("durationInWeeks"))
80834
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.durationInWeeks);
80835
+ if (message.goalType != null && message.hasOwnProperty("goalType"))
80836
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.goalType);
80837
+ if (message.goalTarget != null && message.hasOwnProperty("goalTarget"))
80838
+ writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.goalTarget);
80839
+ return writer;
80840
+ };
80841
+
80842
+ /**
80843
+ * Encodes the specified B2BChallengeCreated message, length delimited. Does not implicitly {@link B2BChallengeCreated.verify|verify} messages.
80844
+ * @function encodeDelimited
80845
+ * @memberof B2BChallengeCreated
80846
+ * @static
80847
+ * @param {IB2BChallengeCreated} message B2BChallengeCreated message or plain object to encode
80848
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80849
+ * @returns {$protobuf.Writer} Writer
80850
+ */
80851
+ B2BChallengeCreated.encodeDelimited = function encodeDelimited(message, writer) {
80852
+ return this.encode(message, writer).ldelim();
80853
+ };
80854
+
80855
+ /**
80856
+ * Decodes a B2BChallengeCreated message from the specified reader or buffer.
80857
+ * @function decode
80858
+ * @memberof B2BChallengeCreated
80859
+ * @static
80860
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80861
+ * @param {number} [length] Message length if known beforehand
80862
+ * @returns {B2BChallengeCreated} B2BChallengeCreated
80863
+ * @throws {Error} If the payload is not a reader or valid buffer
80864
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80865
+ */
80866
+ B2BChallengeCreated.decode = function decode(reader, length) {
80867
+ if (!(reader instanceof $Reader))
80868
+ reader = $Reader.create(reader);
80869
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.B2BChallengeCreated();
80870
+ while (reader.pos < end) {
80871
+ var tag = reader.uint32();
80872
+ switch (tag >>> 3) {
80873
+ case 1:
80874
+ message.b2bOrgId = reader.string();
80875
+ break;
80876
+ case 2:
80877
+ message.headspaceHealthId = reader.string();
80878
+ break;
80879
+ case 3:
80880
+ message.orgName = reader.string();
80881
+ break;
80882
+ case 4:
80883
+ message.challengeType = reader.int32();
80884
+ break;
80885
+ case 5:
80886
+ message.startDate_8601 = reader.string();
80887
+ break;
80888
+ case 6:
80889
+ message.durationInWeeks = reader.uint64();
80890
+ break;
80891
+ case 7:
80892
+ message.goalType = reader.int32();
80893
+ break;
80894
+ case 8:
80895
+ message.goalTarget = reader.uint64();
80896
+ break;
80897
+ default:
80898
+ reader.skipType(tag & 7);
80899
+ break;
80900
+ }
80901
+ }
80902
+ return message;
80903
+ };
80904
+
80905
+ /**
80906
+ * Decodes a B2BChallengeCreated message from the specified reader or buffer, length delimited.
80907
+ * @function decodeDelimited
80908
+ * @memberof B2BChallengeCreated
80909
+ * @static
80910
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80911
+ * @returns {B2BChallengeCreated} B2BChallengeCreated
80912
+ * @throws {Error} If the payload is not a reader or valid buffer
80913
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80914
+ */
80915
+ B2BChallengeCreated.decodeDelimited = function decodeDelimited(reader) {
80916
+ if (!(reader instanceof $Reader))
80917
+ reader = new $Reader(reader);
80918
+ return this.decode(reader, reader.uint32());
80919
+ };
80920
+
80921
+ /**
80922
+ * Verifies a B2BChallengeCreated message.
80923
+ * @function verify
80924
+ * @memberof B2BChallengeCreated
80925
+ * @static
80926
+ * @param {Object.<string,*>} message Plain object to verify
80927
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
80928
+ */
80929
+ B2BChallengeCreated.verify = function verify(message) {
80930
+ if (typeof message !== "object" || message === null)
80931
+ return "object expected";
80932
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
80933
+ if (!$util.isString(message.b2bOrgId))
80934
+ return "b2bOrgId: string expected";
80935
+ if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
80936
+ if (!$util.isString(message.headspaceHealthId))
80937
+ return "headspaceHealthId: string expected";
80938
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
80939
+ if (!$util.isString(message.orgName))
80940
+ return "orgName: string expected";
80941
+ if (message.challengeType != null && message.hasOwnProperty("challengeType"))
80942
+ switch (message.challengeType) {
80943
+ default:
80944
+ return "challengeType: enum value expected";
80945
+ case 0:
80946
+ case 1:
80947
+ case 2:
80948
+ case 3:
80949
+ case 4:
80950
+ break;
80951
+ }
80952
+ if (message.startDate_8601 != null && message.hasOwnProperty("startDate_8601"))
80953
+ if (!$util.isString(message.startDate_8601))
80954
+ return "startDate_8601: string expected";
80955
+ if (message.durationInWeeks != null && message.hasOwnProperty("durationInWeeks"))
80956
+ if (!$util.isInteger(message.durationInWeeks) && !(message.durationInWeeks && $util.isInteger(message.durationInWeeks.low) && $util.isInteger(message.durationInWeeks.high)))
80957
+ return "durationInWeeks: integer|Long expected";
80958
+ if (message.goalType != null && message.hasOwnProperty("goalType"))
80959
+ switch (message.goalType) {
80960
+ default:
80961
+ return "goalType: enum value expected";
80962
+ case 0:
80963
+ case 1:
80964
+ break;
80965
+ }
80966
+ if (message.goalTarget != null && message.hasOwnProperty("goalTarget"))
80967
+ if (!$util.isInteger(message.goalTarget) && !(message.goalTarget && $util.isInteger(message.goalTarget.low) && $util.isInteger(message.goalTarget.high)))
80968
+ return "goalTarget: integer|Long expected";
80969
+ return null;
80970
+ };
80971
+
80972
+ /**
80973
+ * Creates a B2BChallengeCreated message from a plain object. Also converts values to their respective internal types.
80974
+ * @function fromObject
80975
+ * @memberof B2BChallengeCreated
80976
+ * @static
80977
+ * @param {Object.<string,*>} object Plain object
80978
+ * @returns {B2BChallengeCreated} B2BChallengeCreated
80979
+ */
80980
+ B2BChallengeCreated.fromObject = function fromObject(object) {
80981
+ if (object instanceof $root.B2BChallengeCreated)
80982
+ return object;
80983
+ var message = new $root.B2BChallengeCreated();
80984
+ if (object.b2bOrgId != null)
80985
+ message.b2bOrgId = String(object.b2bOrgId);
80986
+ if (object.headspaceHealthId != null)
80987
+ message.headspaceHealthId = String(object.headspaceHealthId);
80988
+ if (object.orgName != null)
80989
+ message.orgName = String(object.orgName);
80990
+ switch (object.challengeType) {
80991
+ case "MEDITATION":
80992
+ case 0:
80993
+ message.challengeType = 0;
80994
+ break;
80995
+ case "SLEEP":
80996
+ case 1:
80997
+ message.challengeType = 1;
80998
+ break;
80999
+ case "FOCUS":
81000
+ case 2:
81001
+ message.challengeType = 2;
81002
+ break;
81003
+ case "MOVE":
81004
+ case 3:
81005
+ message.challengeType = 3;
81006
+ break;
81007
+ case "ALL":
81008
+ case 4:
81009
+ message.challengeType = 4;
81010
+ break;
81011
+ }
81012
+ if (object.startDate_8601 != null)
81013
+ message.startDate_8601 = String(object.startDate_8601);
81014
+ if (object.durationInWeeks != null)
81015
+ if ($util.Long)
81016
+ (message.durationInWeeks = $util.Long.fromValue(object.durationInWeeks)).unsigned = true;
81017
+ else if (typeof object.durationInWeeks === "string")
81018
+ message.durationInWeeks = parseInt(object.durationInWeeks, 10);
81019
+ else if (typeof object.durationInWeeks === "number")
81020
+ message.durationInWeeks = object.durationInWeeks;
81021
+ else if (typeof object.durationInWeeks === "object")
81022
+ message.durationInWeeks = new $util.LongBits(object.durationInWeeks.low >>> 0, object.durationInWeeks.high >>> 0).toNumber(true);
81023
+ switch (object.goalType) {
81024
+ case "CONTENT_STARTS":
81025
+ case 0:
81026
+ message.goalType = 0;
81027
+ break;
81028
+ case "MINUTES":
81029
+ case 1:
81030
+ message.goalType = 1;
81031
+ break;
81032
+ }
81033
+ if (object.goalTarget != null)
81034
+ if ($util.Long)
81035
+ (message.goalTarget = $util.Long.fromValue(object.goalTarget)).unsigned = true;
81036
+ else if (typeof object.goalTarget === "string")
81037
+ message.goalTarget = parseInt(object.goalTarget, 10);
81038
+ else if (typeof object.goalTarget === "number")
81039
+ message.goalTarget = object.goalTarget;
81040
+ else if (typeof object.goalTarget === "object")
81041
+ message.goalTarget = new $util.LongBits(object.goalTarget.low >>> 0, object.goalTarget.high >>> 0).toNumber(true);
81042
+ return message;
81043
+ };
81044
+
81045
+ /**
81046
+ * Creates a plain object from a B2BChallengeCreated message. Also converts values to other types if specified.
81047
+ * @function toObject
81048
+ * @memberof B2BChallengeCreated
81049
+ * @static
81050
+ * @param {B2BChallengeCreated} message B2BChallengeCreated
81051
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
81052
+ * @returns {Object.<string,*>} Plain object
81053
+ */
81054
+ B2BChallengeCreated.toObject = function toObject(message, options) {
81055
+ if (!options)
81056
+ options = {};
81057
+ var object = {};
81058
+ if (options.defaults) {
81059
+ object.b2bOrgId = "";
81060
+ object.headspaceHealthId = "";
81061
+ object.orgName = "";
81062
+ object.challengeType = options.enums === String ? "MEDITATION" : 0;
81063
+ object.startDate_8601 = "";
81064
+ if ($util.Long) {
81065
+ var long = new $util.Long(0, 0, true);
81066
+ object.durationInWeeks = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
81067
+ } else
81068
+ object.durationInWeeks = options.longs === String ? "0" : 0;
81069
+ object.goalType = options.enums === String ? "CONTENT_STARTS" : 0;
81070
+ if ($util.Long) {
81071
+ var long = new $util.Long(0, 0, true);
81072
+ object.goalTarget = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
81073
+ } else
81074
+ object.goalTarget = options.longs === String ? "0" : 0;
81075
+ }
81076
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
81077
+ object.b2bOrgId = message.b2bOrgId;
81078
+ if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
81079
+ object.headspaceHealthId = message.headspaceHealthId;
81080
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
81081
+ object.orgName = message.orgName;
81082
+ if (message.challengeType != null && message.hasOwnProperty("challengeType"))
81083
+ object.challengeType = options.enums === String ? $root.ChallengeType[message.challengeType] : message.challengeType;
81084
+ if (message.startDate_8601 != null && message.hasOwnProperty("startDate_8601"))
81085
+ object.startDate_8601 = message.startDate_8601;
81086
+ if (message.durationInWeeks != null && message.hasOwnProperty("durationInWeeks"))
81087
+ if (typeof message.durationInWeeks === "number")
81088
+ object.durationInWeeks = options.longs === String ? String(message.durationInWeeks) : message.durationInWeeks;
81089
+ else
81090
+ object.durationInWeeks = options.longs === String ? $util.Long.prototype.toString.call(message.durationInWeeks) : options.longs === Number ? new $util.LongBits(message.durationInWeeks.low >>> 0, message.durationInWeeks.high >>> 0).toNumber(true) : message.durationInWeeks;
81091
+ if (message.goalType != null && message.hasOwnProperty("goalType"))
81092
+ object.goalType = options.enums === String ? $root.GoalType[message.goalType] : message.goalType;
81093
+ if (message.goalTarget != null && message.hasOwnProperty("goalTarget"))
81094
+ if (typeof message.goalTarget === "number")
81095
+ object.goalTarget = options.longs === String ? String(message.goalTarget) : message.goalTarget;
81096
+ else
81097
+ object.goalTarget = options.longs === String ? $util.Long.prototype.toString.call(message.goalTarget) : options.longs === Number ? new $util.LongBits(message.goalTarget.low >>> 0, message.goalTarget.high >>> 0).toNumber(true) : message.goalTarget;
81098
+ return object;
81099
+ };
81100
+
81101
+ /**
81102
+ * Converts this B2BChallengeCreated to JSON.
81103
+ * @function toJSON
81104
+ * @memberof B2BChallengeCreated
81105
+ * @instance
81106
+ * @returns {Object.<string,*>} JSON object
81107
+ */
81108
+ B2BChallengeCreated.prototype.toJSON = function toJSON() {
81109
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
81110
+ };
81111
+
81112
+ return B2BChallengeCreated;
81113
+ })();
81114
+
80670
81115
  $root.EligibilityFileProcessed = (function() {
80671
81116
 
80672
81117
  /**
@@ -84098,6 +84543,7 @@ $root.AuthEmailVerificationUpdated = (function() {
84098
84543
  * @property {string|null} [userId] HSUSER identifier
84099
84544
  * @property {number|Long|null} [timestamp] epoch millis of event
84100
84545
  * @property {auth.AuthEmailVerification|null} [verificationStatus] email verification status
84546
+ * @property {string|null} [email] email address that was verified
84101
84547
  */
84102
84548
 
84103
84549
  /**
@@ -84139,6 +84585,14 @@ $root.AuthEmailVerificationUpdated = (function() {
84139
84585
  */
84140
84586
  AuthEmailVerificationUpdated.prototype.verificationStatus = 0;
84141
84587
 
84588
+ /**
84589
+ * email address that was verified
84590
+ * @member {string} email
84591
+ * @memberof AuthEmailVerificationUpdated
84592
+ * @instance
84593
+ */
84594
+ AuthEmailVerificationUpdated.prototype.email = "";
84595
+
84142
84596
  /**
84143
84597
  * Creates a new AuthEmailVerificationUpdated instance using the specified properties.
84144
84598
  * @function create
@@ -84169,6 +84623,8 @@ $root.AuthEmailVerificationUpdated = (function() {
84169
84623
  writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
84170
84624
  if (message.verificationStatus != null && message.hasOwnProperty("verificationStatus"))
84171
84625
  writer.uint32(/* id 3, wireType 0 =*/24).int32(message.verificationStatus);
84626
+ if (message.email != null && message.hasOwnProperty("email"))
84627
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.email);
84172
84628
  return writer;
84173
84629
  };
84174
84630
 
@@ -84212,6 +84668,9 @@ $root.AuthEmailVerificationUpdated = (function() {
84212
84668
  case 3:
84213
84669
  message.verificationStatus = reader.int32();
84214
84670
  break;
84671
+ case 4:
84672
+ message.email = reader.string();
84673
+ break;
84215
84674
  default:
84216
84675
  reader.skipType(tag & 7);
84217
84676
  break;
@@ -84262,6 +84721,9 @@ $root.AuthEmailVerificationUpdated = (function() {
84262
84721
  case 2:
84263
84722
  break;
84264
84723
  }
84724
+ if (message.email != null && message.hasOwnProperty("email"))
84725
+ if (!$util.isString(message.email))
84726
+ return "email: string expected";
84265
84727
  return null;
84266
84728
  };
84267
84729
 
@@ -84302,6 +84764,8 @@ $root.AuthEmailVerificationUpdated = (function() {
84302
84764
  message.verificationStatus = 2;
84303
84765
  break;
84304
84766
  }
84767
+ if (object.email != null)
84768
+ message.email = String(object.email);
84305
84769
  return message;
84306
84770
  };
84307
84771
 
@@ -84326,6 +84790,7 @@ $root.AuthEmailVerificationUpdated = (function() {
84326
84790
  } else
84327
84791
  object.timestamp = options.longs === String ? "0" : 0;
84328
84792
  object.verificationStatus = options.enums === String ? "AUTH_EMAIL_UNKNOWN" : 0;
84793
+ object.email = "";
84329
84794
  }
84330
84795
  if (message.userId != null && message.hasOwnProperty("userId"))
84331
84796
  object.userId = message.userId;
@@ -84336,6 +84801,8 @@ $root.AuthEmailVerificationUpdated = (function() {
84336
84801
  object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
84337
84802
  if (message.verificationStatus != null && message.hasOwnProperty("verificationStatus"))
84338
84803
  object.verificationStatus = options.enums === String ? $root.auth.AuthEmailVerification[message.verificationStatus] : message.verificationStatus;
84804
+ if (message.email != null && message.hasOwnProperty("email"))
84805
+ object.email = message.email;
84339
84806
  return object;
84340
84807
  };
84341
84808
 
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.413.0"
19
+ "version": "1.415.0"
20
20
  }