@headspace/protos-events 1.846.0 → 1.848.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
@@ -5753,6 +5753,12 @@ export class AssessmentScore {
5753
5753
  /** AssessmentScore reflectionNote. */
5754
5754
  reflectionNote: string;
5755
5755
 
5756
+ /** AssessmentScore assignmentId. */
5757
+ assignmentId?: (number|Long|null);
5758
+
5759
+ /** AssessmentScore assessmentPlatform. */
5760
+ assessmentPlatform?: (AssessmentPlatform|null);
5761
+
5756
5762
  /**
5757
5763
  * Creates a new AssessmentScore instance using the specified properties.
5758
5764
  * @param [properties] Properties to set
@@ -5852,6 +5858,12 @@ export namespace AssessmentScore {
5852
5858
  /** AssessmentScore reflectionNote */
5853
5859
  reflectionNote?: (string|null);
5854
5860
 
5861
+ /** AssessmentScore assignmentId */
5862
+ assignmentId?: (number|Long|null);
5863
+
5864
+ /** AssessmentScore assessmentPlatform */
5865
+ assessmentPlatform?: (AssessmentPlatform|null);
5866
+
5855
5867
  /** Unknown fields preserved while decoding */
5856
5868
  $unknowns?: Uint8Array[];
5857
5869
  }
@@ -5860,6 +5872,19 @@ export namespace AssessmentScore {
5860
5872
  type $Shape = AssessmentScore.$Properties;
5861
5873
  }
5862
5874
 
5875
+ /** AssessmentPlatform enum. */
5876
+ export enum AssessmentPlatform {
5877
+
5878
+ /** ASSESSMENT_PLATFORM_UNKNOWN value */
5879
+ ASSESSMENT_PLATFORM_UNKNOWN = 0,
5880
+
5881
+ /** ASSESSMENT_PLATFORM_HS_SURVEY_SERVICE value */
5882
+ ASSESSMENT_PLATFORM_HS_SURVEY_SERVICE = 1,
5883
+
5884
+ /** ASSESSMENT_PLATFORM_GINGER_WEB value */
5885
+ ASSESSMENT_PLATFORM_GINGER_WEB = 2
5886
+ }
5887
+
5863
5888
  /** AssessmentType enum. */
5864
5889
  export enum AssessmentType {
5865
5890
 
@@ -107792,6 +107817,216 @@ export namespace GingerTherapySchedulerStatusUpdated {
107792
107817
  type $Shape = GingerTherapySchedulerStatusUpdated.$Properties;
107793
107818
  }
107794
107819
 
107820
+ /** DependentLinkStatus enum. */
107821
+ export enum DependentLinkStatus {
107822
+
107823
+ /** DEPENDENT_LINK_STATUS_UNKNOWN value */
107824
+ DEPENDENT_LINK_STATUS_UNKNOWN = 0,
107825
+
107826
+ /** DEPENDENT_LINK_STATUS_LINKED value */
107827
+ DEPENDENT_LINK_STATUS_LINKED = 1,
107828
+
107829
+ /** DEPENDENT_LINK_STATUS_UNLINKED_INDEPENDENT value */
107830
+ DEPENDENT_LINK_STATUS_UNLINKED_INDEPENDENT = 2,
107831
+
107832
+ /** DEPENDENT_LINK_STATUS_REMOVED_BY_PRIMARY value */
107833
+ DEPENDENT_LINK_STATUS_REMOVED_BY_PRIMARY = 3,
107834
+
107835
+ /** DEPENDENT_LINK_STATUS_DISENROLLED_PRIMARY_EXPIRED value */
107836
+ DEPENDENT_LINK_STATUS_DISENROLLED_PRIMARY_EXPIRED = 4
107837
+ }
107838
+
107839
+ /** DependentLinkMatchMethod enum. */
107840
+ export enum DependentLinkMatchMethod {
107841
+
107842
+ /** DEPENDENT_LINK_MATCH_METHOD_UNKNOWN value */
107843
+ DEPENDENT_LINK_MATCH_METHOD_UNKNOWN = 0,
107844
+
107845
+ /** DEPENDENT_LINK_MATCH_METHOD_NAME_AND_DATE_OF_BIRTH value */
107846
+ DEPENDENT_LINK_MATCH_METHOD_NAME_AND_DATE_OF_BIRTH = 1,
107847
+
107848
+ /** DEPENDENT_LINK_MATCH_METHOD_NAME_DATE_OF_BIRTH_AND_EMAIL value */
107849
+ DEPENDENT_LINK_MATCH_METHOD_NAME_DATE_OF_BIRTH_AND_EMAIL = 2
107850
+ }
107851
+
107852
+ /** DependentLinkInitiator enum. */
107853
+ export enum DependentLinkInitiator {
107854
+
107855
+ /** DEPENDENT_LINK_INITIATOR_UNKNOWN value */
107856
+ DEPENDENT_LINK_INITIATOR_UNKNOWN = 0,
107857
+
107858
+ /** DEPENDENT_LINK_INITIATOR_SYSTEM value */
107859
+ DEPENDENT_LINK_INITIATOR_SYSTEM = 1,
107860
+
107861
+ /** DEPENDENT_LINK_INITIATOR_PRIMARY_MEMBER value */
107862
+ DEPENDENT_LINK_INITIATOR_PRIMARY_MEMBER = 2
107863
+ }
107864
+
107865
+ /**
107866
+ * Properties of an UngatedDependentStatusChanged.
107867
+ * @deprecated Use UngatedDependentStatusChanged.$Properties instead.
107868
+ */
107869
+ export interface IUngatedDependentStatusChanged extends UngatedDependentStatusChanged.$Properties {
107870
+ }
107871
+
107872
+ /** Represents an UngatedDependentStatusChanged. */
107873
+ export class UngatedDependentStatusChanged {
107874
+
107875
+ /**
107876
+ * Constructs a new UngatedDependentStatusChanged.
107877
+ * @param [properties] Properties to set
107878
+ */
107879
+ constructor(properties?: UngatedDependentStatusChanged.$Properties);
107880
+
107881
+ /** Unknown fields preserved while decoding */
107882
+ $unknowns?: Uint8Array[];
107883
+
107884
+ /** UngatedDependentStatusChanged hsUserId. */
107885
+ hsUserId: string;
107886
+
107887
+ /** UngatedDependentStatusChanged linkStatus. */
107888
+ linkStatus: DependentLinkStatus;
107889
+
107890
+ /** UngatedDependentStatusChanged initiator. */
107891
+ initiator: DependentLinkInitiator;
107892
+
107893
+ /** UngatedDependentStatusChanged matchMethod. */
107894
+ matchMethod: DependentLinkMatchMethod;
107895
+
107896
+ /** UngatedDependentStatusChanged primaryHsUserId. */
107897
+ primaryHsUserId: string;
107898
+
107899
+ /** UngatedDependentStatusChanged primaryEligibilityRecordUuid. */
107900
+ primaryEligibilityRecordUuid: string;
107901
+
107902
+ /** UngatedDependentStatusChanged orgId. */
107903
+ orgId: number;
107904
+
107905
+ /** UngatedDependentStatusChanged rootOrgId. */
107906
+ rootOrgId: number;
107907
+
107908
+ /** UngatedDependentStatusChanged timestamp. */
107909
+ timestamp: (number|Long);
107910
+
107911
+ /**
107912
+ * Creates a new UngatedDependentStatusChanged instance using the specified properties.
107913
+ * @param [properties] Properties to set
107914
+ * @returns UngatedDependentStatusChanged instance
107915
+ */
107916
+ static create(properties: UngatedDependentStatusChanged.$Shape): UngatedDependentStatusChanged & UngatedDependentStatusChanged.$Shape;
107917
+ static create(properties?: UngatedDependentStatusChanged.$Properties): UngatedDependentStatusChanged;
107918
+
107919
+ /**
107920
+ * Encodes the specified UngatedDependentStatusChanged message. Does not implicitly {@link UngatedDependentStatusChanged.verify|verify} messages.
107921
+ * @param message UngatedDependentStatusChanged message or plain object to encode
107922
+ * @param [writer] Writer to encode to
107923
+ * @returns Writer
107924
+ */
107925
+ static encode(message: UngatedDependentStatusChanged.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
107926
+
107927
+ /**
107928
+ * Encodes the specified UngatedDependentStatusChanged message, length delimited. Does not implicitly {@link UngatedDependentStatusChanged.verify|verify} messages.
107929
+ * @param message UngatedDependentStatusChanged message or plain object to encode
107930
+ * @param [writer] Writer to encode to
107931
+ * @returns Writer
107932
+ */
107933
+ static encodeDelimited(message: UngatedDependentStatusChanged.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
107934
+
107935
+ /**
107936
+ * Decodes an UngatedDependentStatusChanged message from the specified reader or buffer.
107937
+ * @param reader Reader or buffer to decode from
107938
+ * @param [length] Message length if known beforehand
107939
+ * @returns {UngatedDependentStatusChanged & UngatedDependentStatusChanged.$Shape} UngatedDependentStatusChanged
107940
+ * @throws {Error} If the payload is not a reader or valid buffer
107941
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
107942
+ */
107943
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UngatedDependentStatusChanged & UngatedDependentStatusChanged.$Shape;
107944
+
107945
+ /**
107946
+ * Decodes an UngatedDependentStatusChanged message from the specified reader or buffer, length delimited.
107947
+ * @param reader Reader or buffer to decode from
107948
+ * @returns {UngatedDependentStatusChanged & UngatedDependentStatusChanged.$Shape} UngatedDependentStatusChanged
107949
+ * @throws {Error} If the payload is not a reader or valid buffer
107950
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
107951
+ */
107952
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UngatedDependentStatusChanged & UngatedDependentStatusChanged.$Shape;
107953
+
107954
+ /**
107955
+ * Verifies an UngatedDependentStatusChanged message.
107956
+ * @param message Plain object to verify
107957
+ * @returns `null` if valid, otherwise the reason why it is not
107958
+ */
107959
+ static verify(message: { [k: string]: any }): (string|null);
107960
+
107961
+ /**
107962
+ * Creates an UngatedDependentStatusChanged message from a plain object. Also converts values to their respective internal types.
107963
+ * @param object Plain object
107964
+ * @returns UngatedDependentStatusChanged
107965
+ */
107966
+ static fromObject(object: { [k: string]: any }): UngatedDependentStatusChanged;
107967
+
107968
+ /**
107969
+ * Creates a plain object from an UngatedDependentStatusChanged message. Also converts values to other types if specified.
107970
+ * @param message UngatedDependentStatusChanged
107971
+ * @param [options] Conversion options
107972
+ * @returns Plain object
107973
+ */
107974
+ static toObject(message: UngatedDependentStatusChanged, options?: $protobuf.IConversionOptions): { [k: string]: any };
107975
+
107976
+ /**
107977
+ * Converts this UngatedDependentStatusChanged to JSON.
107978
+ * @returns JSON object
107979
+ */
107980
+ toJSON(): { [k: string]: any };
107981
+
107982
+ /**
107983
+ * Gets the type url for UngatedDependentStatusChanged
107984
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
107985
+ * @returns The type url
107986
+ */
107987
+ static getTypeUrl(prefix?: string): string;
107988
+ }
107989
+
107990
+ export namespace UngatedDependentStatusChanged {
107991
+
107992
+ /** Properties of an UngatedDependentStatusChanged. */
107993
+ interface $Properties {
107994
+
107995
+ /** UngatedDependentStatusChanged hsUserId */
107996
+ hsUserId?: (string|null);
107997
+
107998
+ /** UngatedDependentStatusChanged linkStatus */
107999
+ linkStatus?: (DependentLinkStatus|null);
108000
+
108001
+ /** UngatedDependentStatusChanged initiator */
108002
+ initiator?: (DependentLinkInitiator|null);
108003
+
108004
+ /** UngatedDependentStatusChanged matchMethod */
108005
+ matchMethod?: (DependentLinkMatchMethod|null);
108006
+
108007
+ /** UngatedDependentStatusChanged primaryHsUserId */
108008
+ primaryHsUserId?: (string|null);
108009
+
108010
+ /** UngatedDependentStatusChanged primaryEligibilityRecordUuid */
108011
+ primaryEligibilityRecordUuid?: (string|null);
108012
+
108013
+ /** UngatedDependentStatusChanged orgId */
108014
+ orgId?: (number|null);
108015
+
108016
+ /** UngatedDependentStatusChanged rootOrgId */
108017
+ rootOrgId?: (number|null);
108018
+
108019
+ /** UngatedDependentStatusChanged timestamp */
108020
+ timestamp?: (number|Long|null);
108021
+
108022
+ /** Unknown fields preserved while decoding */
108023
+ $unknowns?: Uint8Array[];
108024
+ }
108025
+
108026
+ /** Shape of an UngatedDependentStatusChanged. */
108027
+ type $Shape = UngatedDependentStatusChanged.$Properties;
108028
+ }
108029
+
107795
108030
  /**
107796
108031
  * Properties of a UserDoubleOptInEmailRequested.
107797
108032
  * @deprecated Use UserDoubleOptInEmailRequested.$Properties instead.
package/lib/index.js CHANGED
@@ -16112,6 +16112,8 @@ $root.AssessmentScore = (function() {
16112
16112
  * @property {number|null} [score] AssessmentScore score
16113
16113
  * @property {string|null} [completedAtIsoDate] AssessmentScore completedAtIsoDate
16114
16114
  * @property {string|null} [reflectionNote] AssessmentScore reflectionNote
16115
+ * @property {number|Long|null} [assignmentId] AssessmentScore assignmentId
16116
+ * @property {AssessmentPlatform|null} [assessmentPlatform] AssessmentScore assessmentPlatform
16115
16117
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
16116
16118
  */
16117
16119
 
@@ -16183,6 +16185,37 @@ $root.AssessmentScore = (function() {
16183
16185
  */
16184
16186
  AssessmentScore.prototype.reflectionNote = "";
16185
16187
 
16188
+ /**
16189
+ * AssessmentScore assignmentId.
16190
+ * @member {number|Long|null|undefined} assignmentId
16191
+ * @memberof AssessmentScore
16192
+ * @instance
16193
+ */
16194
+ AssessmentScore.prototype.assignmentId = null;
16195
+
16196
+ /**
16197
+ * AssessmentScore assessmentPlatform.
16198
+ * @member {AssessmentPlatform|null|undefined} assessmentPlatform
16199
+ * @memberof AssessmentScore
16200
+ * @instance
16201
+ */
16202
+ AssessmentScore.prototype.assessmentPlatform = null;
16203
+
16204
+ // OneOf field names bound to virtual getters and setters
16205
+ var $oneOfFields;
16206
+
16207
+ // Virtual OneOf for proto3 optional field
16208
+ Object.defineProperty(AssessmentScore.prototype, "_assignmentId", {
16209
+ get: $util.oneOfGetter($oneOfFields = ["assignmentId"]),
16210
+ set: $util.oneOfSetter($oneOfFields)
16211
+ });
16212
+
16213
+ // Virtual OneOf for proto3 optional field
16214
+ Object.defineProperty(AssessmentScore.prototype, "_assessmentPlatform", {
16215
+ get: $util.oneOfGetter($oneOfFields = ["assessmentPlatform"]),
16216
+ set: $util.oneOfSetter($oneOfFields)
16217
+ });
16218
+
16186
16219
  /**
16187
16220
  * Creates a new AssessmentScore instance using the specified properties.
16188
16221
  * @function create
@@ -16221,6 +16254,10 @@ $root.AssessmentScore = (function() {
16221
16254
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.completedAtIsoDate);
16222
16255
  if (message.reflectionNote != null && Object.hasOwnProperty.call(message, "reflectionNote"))
16223
16256
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.reflectionNote);
16257
+ if (message.assignmentId != null && Object.hasOwnProperty.call(message, "assignmentId"))
16258
+ writer.uint32(/* id 6, wireType 0 =*/48).int64(message.assignmentId);
16259
+ if (message.assessmentPlatform != null && Object.hasOwnProperty.call(message, "assessmentPlatform"))
16260
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.assessmentPlatform);
16224
16261
  if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
16225
16262
  for (var i = 0; i < message.$unknowns.length; ++i)
16226
16263
  writer.raw(message.$unknowns[i]);
@@ -16313,6 +16350,20 @@ $root.AssessmentScore = (function() {
16313
16350
  delete message.reflectionNote;
16314
16351
  continue;
16315
16352
  }
16353
+ case 6: {
16354
+ if (wireType !== 0)
16355
+ break;
16356
+ message.assignmentId = reader.int64();
16357
+ message._assignmentId = "assignmentId";
16358
+ continue;
16359
+ }
16360
+ case 7: {
16361
+ if (wireType !== 0)
16362
+ break;
16363
+ message.assessmentPlatform = reader.int32();
16364
+ message._assessmentPlatform = "assessmentPlatform";
16365
+ continue;
16366
+ }
16316
16367
  }
16317
16368
  reader.skipType(wireType, _depth, tag);
16318
16369
  $util.makeProp(message, "$unknowns", false);
@@ -16354,6 +16405,7 @@ $root.AssessmentScore = (function() {
16354
16405
  _depth = 0;
16355
16406
  if (_depth > $util.recursionLimit)
16356
16407
  return "max depth exceeded";
16408
+ var properties = {};
16357
16409
  if (message.userId != null && message.hasOwnProperty("userId"))
16358
16410
  if (!$util.isString(message.userId))
16359
16411
  return "userId: string expected";
@@ -16369,6 +16421,22 @@ $root.AssessmentScore = (function() {
16369
16421
  if (message.reflectionNote != null && message.hasOwnProperty("reflectionNote"))
16370
16422
  if (!$util.isString(message.reflectionNote))
16371
16423
  return "reflectionNote: string expected";
16424
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId")) {
16425
+ properties._assignmentId = 1;
16426
+ if (!$util.isInteger(message.assignmentId) && !(message.assignmentId && $util.isInteger(message.assignmentId.low) && $util.isInteger(message.assignmentId.high)))
16427
+ return "assignmentId: integer|Long expected";
16428
+ }
16429
+ if (message.assessmentPlatform != null && message.hasOwnProperty("assessmentPlatform")) {
16430
+ properties._assessmentPlatform = 1;
16431
+ switch (message.assessmentPlatform) {
16432
+ default:
16433
+ return "assessmentPlatform: enum value expected";
16434
+ case 0:
16435
+ case 1:
16436
+ case 2:
16437
+ break;
16438
+ }
16439
+ }
16372
16440
  return null;
16373
16441
  };
16374
16442
 
@@ -16403,6 +16471,35 @@ $root.AssessmentScore = (function() {
16403
16471
  if (object.reflectionNote != null)
16404
16472
  if (typeof object.reflectionNote !== "string" || object.reflectionNote.length)
16405
16473
  message.reflectionNote = String(object.reflectionNote);
16474
+ if (object.assignmentId != null)
16475
+ if ($util.Long)
16476
+ (message.assignmentId = $util.Long.fromValue(object.assignmentId)).unsigned = false;
16477
+ else if (typeof object.assignmentId === "string")
16478
+ message.assignmentId = parseInt(object.assignmentId, 10);
16479
+ else if (typeof object.assignmentId === "number")
16480
+ message.assignmentId = object.assignmentId;
16481
+ else if (typeof object.assignmentId === "object")
16482
+ message.assignmentId = new $util.LongBits(object.assignmentId.low >>> 0, object.assignmentId.high >>> 0).toNumber();
16483
+ switch (object.assessmentPlatform) {
16484
+ default:
16485
+ if (typeof object.assessmentPlatform === "number") {
16486
+ message.assessmentPlatform = object.assessmentPlatform;
16487
+ break;
16488
+ }
16489
+ break;
16490
+ case "ASSESSMENT_PLATFORM_UNKNOWN":
16491
+ case 0:
16492
+ message.assessmentPlatform = 0;
16493
+ break;
16494
+ case "ASSESSMENT_PLATFORM_HS_SURVEY_SERVICE":
16495
+ case 1:
16496
+ message.assessmentPlatform = 1;
16497
+ break;
16498
+ case "ASSESSMENT_PLATFORM_GINGER_WEB":
16499
+ case 2:
16500
+ message.assessmentPlatform = 2;
16501
+ break;
16502
+ }
16406
16503
  return message;
16407
16504
  };
16408
16505
 
@@ -16436,6 +16533,21 @@ $root.AssessmentScore = (function() {
16436
16533
  object.completedAtIsoDate = message.completedAtIsoDate;
16437
16534
  if (message.reflectionNote != null && message.hasOwnProperty("reflectionNote"))
16438
16535
  object.reflectionNote = message.reflectionNote;
16536
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId")) {
16537
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
16538
+ object.assignmentId = typeof message.assignmentId === "number" ? BigInt(message.assignmentId) : $util.Long.fromBits(message.assignmentId.low >>> 0, message.assignmentId.high >>> 0, false).toBigInt();
16539
+ else if (typeof message.assignmentId === "number")
16540
+ object.assignmentId = options.longs === String ? String(message.assignmentId) : message.assignmentId;
16541
+ else
16542
+ object.assignmentId = options.longs === String ? $util.Long.prototype.toString.call(message.assignmentId) : options.longs === Number ? new $util.LongBits(message.assignmentId.low >>> 0, message.assignmentId.high >>> 0).toNumber() : message.assignmentId;
16543
+ if (options.oneofs)
16544
+ object._assignmentId = "assignmentId";
16545
+ }
16546
+ if (message.assessmentPlatform != null && message.hasOwnProperty("assessmentPlatform")) {
16547
+ object.assessmentPlatform = options.enums === String ? $root.AssessmentPlatform[message.assessmentPlatform] === undefined ? message.assessmentPlatform : $root.AssessmentPlatform[message.assessmentPlatform] : message.assessmentPlatform;
16548
+ if (options.oneofs)
16549
+ object._assessmentPlatform = "assessmentPlatform";
16550
+ }
16439
16551
  return object;
16440
16552
  };
16441
16553
 
@@ -16467,6 +16579,22 @@ $root.AssessmentScore = (function() {
16467
16579
  return AssessmentScore;
16468
16580
  })();
16469
16581
 
16582
+ /**
16583
+ * AssessmentPlatform enum.
16584
+ * @name AssessmentPlatform
16585
+ * @enum {number}
16586
+ * @property {number} ASSESSMENT_PLATFORM_UNKNOWN=0 ASSESSMENT_PLATFORM_UNKNOWN value
16587
+ * @property {number} ASSESSMENT_PLATFORM_HS_SURVEY_SERVICE=1 ASSESSMENT_PLATFORM_HS_SURVEY_SERVICE value
16588
+ * @property {number} ASSESSMENT_PLATFORM_GINGER_WEB=2 ASSESSMENT_PLATFORM_GINGER_WEB value
16589
+ */
16590
+ $root.AssessmentPlatform = (function() {
16591
+ var valuesById = {}, values = Object.create(valuesById);
16592
+ values[valuesById[0] = "ASSESSMENT_PLATFORM_UNKNOWN"] = 0;
16593
+ values[valuesById[1] = "ASSESSMENT_PLATFORM_HS_SURVEY_SERVICE"] = 1;
16594
+ values[valuesById[2] = "ASSESSMENT_PLATFORM_GINGER_WEB"] = 2;
16595
+ return values;
16596
+ })();
16597
+
16470
16598
  /**
16471
16599
  * AssessmentType enum.
16472
16600
  * @name AssessmentType
@@ -317393,6 +317521,637 @@ $root.GingerTherapySchedulerStatusUpdated = (function() {
317393
317521
  return GingerTherapySchedulerStatusUpdated;
317394
317522
  })();
317395
317523
 
317524
+ /**
317525
+ * DependentLinkStatus enum.
317526
+ * @name DependentLinkStatus
317527
+ * @enum {number}
317528
+ * @property {number} DEPENDENT_LINK_STATUS_UNKNOWN=0 DEPENDENT_LINK_STATUS_UNKNOWN value
317529
+ * @property {number} DEPENDENT_LINK_STATUS_LINKED=1 DEPENDENT_LINK_STATUS_LINKED value
317530
+ * @property {number} DEPENDENT_LINK_STATUS_UNLINKED_INDEPENDENT=2 DEPENDENT_LINK_STATUS_UNLINKED_INDEPENDENT value
317531
+ * @property {number} DEPENDENT_LINK_STATUS_REMOVED_BY_PRIMARY=3 DEPENDENT_LINK_STATUS_REMOVED_BY_PRIMARY value
317532
+ * @property {number} DEPENDENT_LINK_STATUS_DISENROLLED_PRIMARY_EXPIRED=4 DEPENDENT_LINK_STATUS_DISENROLLED_PRIMARY_EXPIRED value
317533
+ */
317534
+ $root.DependentLinkStatus = (function() {
317535
+ var valuesById = {}, values = Object.create(valuesById);
317536
+ values[valuesById[0] = "DEPENDENT_LINK_STATUS_UNKNOWN"] = 0;
317537
+ values[valuesById[1] = "DEPENDENT_LINK_STATUS_LINKED"] = 1;
317538
+ values[valuesById[2] = "DEPENDENT_LINK_STATUS_UNLINKED_INDEPENDENT"] = 2;
317539
+ values[valuesById[3] = "DEPENDENT_LINK_STATUS_REMOVED_BY_PRIMARY"] = 3;
317540
+ values[valuesById[4] = "DEPENDENT_LINK_STATUS_DISENROLLED_PRIMARY_EXPIRED"] = 4;
317541
+ return values;
317542
+ })();
317543
+
317544
+ /**
317545
+ * DependentLinkMatchMethod enum.
317546
+ * @name DependentLinkMatchMethod
317547
+ * @enum {number}
317548
+ * @property {number} DEPENDENT_LINK_MATCH_METHOD_UNKNOWN=0 DEPENDENT_LINK_MATCH_METHOD_UNKNOWN value
317549
+ * @property {number} DEPENDENT_LINK_MATCH_METHOD_NAME_AND_DATE_OF_BIRTH=1 DEPENDENT_LINK_MATCH_METHOD_NAME_AND_DATE_OF_BIRTH value
317550
+ * @property {number} DEPENDENT_LINK_MATCH_METHOD_NAME_DATE_OF_BIRTH_AND_EMAIL=2 DEPENDENT_LINK_MATCH_METHOD_NAME_DATE_OF_BIRTH_AND_EMAIL value
317551
+ */
317552
+ $root.DependentLinkMatchMethod = (function() {
317553
+ var valuesById = {}, values = Object.create(valuesById);
317554
+ values[valuesById[0] = "DEPENDENT_LINK_MATCH_METHOD_UNKNOWN"] = 0;
317555
+ values[valuesById[1] = "DEPENDENT_LINK_MATCH_METHOD_NAME_AND_DATE_OF_BIRTH"] = 1;
317556
+ values[valuesById[2] = "DEPENDENT_LINK_MATCH_METHOD_NAME_DATE_OF_BIRTH_AND_EMAIL"] = 2;
317557
+ return values;
317558
+ })();
317559
+
317560
+ /**
317561
+ * DependentLinkInitiator enum.
317562
+ * @name DependentLinkInitiator
317563
+ * @enum {number}
317564
+ * @property {number} DEPENDENT_LINK_INITIATOR_UNKNOWN=0 DEPENDENT_LINK_INITIATOR_UNKNOWN value
317565
+ * @property {number} DEPENDENT_LINK_INITIATOR_SYSTEM=1 DEPENDENT_LINK_INITIATOR_SYSTEM value
317566
+ * @property {number} DEPENDENT_LINK_INITIATOR_PRIMARY_MEMBER=2 DEPENDENT_LINK_INITIATOR_PRIMARY_MEMBER value
317567
+ */
317568
+ $root.DependentLinkInitiator = (function() {
317569
+ var valuesById = {}, values = Object.create(valuesById);
317570
+ values[valuesById[0] = "DEPENDENT_LINK_INITIATOR_UNKNOWN"] = 0;
317571
+ values[valuesById[1] = "DEPENDENT_LINK_INITIATOR_SYSTEM"] = 1;
317572
+ values[valuesById[2] = "DEPENDENT_LINK_INITIATOR_PRIMARY_MEMBER"] = 2;
317573
+ return values;
317574
+ })();
317575
+
317576
+ $root.UngatedDependentStatusChanged = (function() {
317577
+
317578
+ /**
317579
+ * Properties of an UngatedDependentStatusChanged.
317580
+ * @typedef {Object} UngatedDependentStatusChanged.$Properties
317581
+ * @property {string|null} [hsUserId] UngatedDependentStatusChanged hsUserId
317582
+ * @property {DependentLinkStatus|null} [linkStatus] UngatedDependentStatusChanged linkStatus
317583
+ * @property {DependentLinkInitiator|null} [initiator] UngatedDependentStatusChanged initiator
317584
+ * @property {DependentLinkMatchMethod|null} [matchMethod] UngatedDependentStatusChanged matchMethod
317585
+ * @property {string|null} [primaryHsUserId] UngatedDependentStatusChanged primaryHsUserId
317586
+ * @property {string|null} [primaryEligibilityRecordUuid] UngatedDependentStatusChanged primaryEligibilityRecordUuid
317587
+ * @property {number|null} [orgId] UngatedDependentStatusChanged orgId
317588
+ * @property {number|null} [rootOrgId] UngatedDependentStatusChanged rootOrgId
317589
+ * @property {number|Long|null} [timestamp] UngatedDependentStatusChanged timestamp
317590
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
317591
+ */
317592
+
317593
+ /**
317594
+ * Properties of an UngatedDependentStatusChanged.
317595
+ * @name IUngatedDependentStatusChanged
317596
+ * @interface IUngatedDependentStatusChanged
317597
+ * @augments UngatedDependentStatusChanged.$Properties
317598
+ * @deprecated Use UngatedDependentStatusChanged.$Properties instead.
317599
+ */
317600
+
317601
+ /**
317602
+ * Shape of an UngatedDependentStatusChanged.
317603
+ * @typedef {UngatedDependentStatusChanged.$Properties} UngatedDependentStatusChanged.$Shape
317604
+ */
317605
+
317606
+ /**
317607
+ * Constructs a new UngatedDependentStatusChanged.
317608
+ * @name UngatedDependentStatusChanged
317609
+ * @classdesc Represents an UngatedDependentStatusChanged.
317610
+ * @constructor
317611
+ * @param {UngatedDependentStatusChanged.$Properties=} [properties] Properties to set
317612
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
317613
+ */
317614
+ function UngatedDependentStatusChanged(properties) {
317615
+ if (properties)
317616
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
317617
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
317618
+ this[keys[i]] = properties[keys[i]];
317619
+ }
317620
+
317621
+ /**
317622
+ * UngatedDependentStatusChanged hsUserId.
317623
+ * @member {string} hsUserId
317624
+ * @memberof UngatedDependentStatusChanged
317625
+ * @instance
317626
+ */
317627
+ UngatedDependentStatusChanged.prototype.hsUserId = "";
317628
+
317629
+ /**
317630
+ * UngatedDependentStatusChanged linkStatus.
317631
+ * @member {DependentLinkStatus} linkStatus
317632
+ * @memberof UngatedDependentStatusChanged
317633
+ * @instance
317634
+ */
317635
+ UngatedDependentStatusChanged.prototype.linkStatus = 0;
317636
+
317637
+ /**
317638
+ * UngatedDependentStatusChanged initiator.
317639
+ * @member {DependentLinkInitiator} initiator
317640
+ * @memberof UngatedDependentStatusChanged
317641
+ * @instance
317642
+ */
317643
+ UngatedDependentStatusChanged.prototype.initiator = 0;
317644
+
317645
+ /**
317646
+ * UngatedDependentStatusChanged matchMethod.
317647
+ * @member {DependentLinkMatchMethod} matchMethod
317648
+ * @memberof UngatedDependentStatusChanged
317649
+ * @instance
317650
+ */
317651
+ UngatedDependentStatusChanged.prototype.matchMethod = 0;
317652
+
317653
+ /**
317654
+ * UngatedDependentStatusChanged primaryHsUserId.
317655
+ * @member {string} primaryHsUserId
317656
+ * @memberof UngatedDependentStatusChanged
317657
+ * @instance
317658
+ */
317659
+ UngatedDependentStatusChanged.prototype.primaryHsUserId = "";
317660
+
317661
+ /**
317662
+ * UngatedDependentStatusChanged primaryEligibilityRecordUuid.
317663
+ * @member {string} primaryEligibilityRecordUuid
317664
+ * @memberof UngatedDependentStatusChanged
317665
+ * @instance
317666
+ */
317667
+ UngatedDependentStatusChanged.prototype.primaryEligibilityRecordUuid = "";
317668
+
317669
+ /**
317670
+ * UngatedDependentStatusChanged orgId.
317671
+ * @member {number} orgId
317672
+ * @memberof UngatedDependentStatusChanged
317673
+ * @instance
317674
+ */
317675
+ UngatedDependentStatusChanged.prototype.orgId = 0;
317676
+
317677
+ /**
317678
+ * UngatedDependentStatusChanged rootOrgId.
317679
+ * @member {number} rootOrgId
317680
+ * @memberof UngatedDependentStatusChanged
317681
+ * @instance
317682
+ */
317683
+ UngatedDependentStatusChanged.prototype.rootOrgId = 0;
317684
+
317685
+ /**
317686
+ * UngatedDependentStatusChanged timestamp.
317687
+ * @member {number|Long} timestamp
317688
+ * @memberof UngatedDependentStatusChanged
317689
+ * @instance
317690
+ */
317691
+ UngatedDependentStatusChanged.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
317692
+
317693
+ /**
317694
+ * Creates a new UngatedDependentStatusChanged instance using the specified properties.
317695
+ * @function create
317696
+ * @memberof UngatedDependentStatusChanged
317697
+ * @static
317698
+ * @param {UngatedDependentStatusChanged.$Properties=} [properties] Properties to set
317699
+ * @returns {UngatedDependentStatusChanged} UngatedDependentStatusChanged instance
317700
+ * @type {{
317701
+ * (properties: UngatedDependentStatusChanged.$Shape): UngatedDependentStatusChanged & UngatedDependentStatusChanged.$Shape;
317702
+ * (properties?: UngatedDependentStatusChanged.$Properties): UngatedDependentStatusChanged;
317703
+ * }}
317704
+ */
317705
+ UngatedDependentStatusChanged.create = function create(properties) {
317706
+ return new UngatedDependentStatusChanged(properties);
317707
+ };
317708
+
317709
+ /**
317710
+ * Encodes the specified UngatedDependentStatusChanged message. Does not implicitly {@link UngatedDependentStatusChanged.verify|verify} messages.
317711
+ * @function encode
317712
+ * @memberof UngatedDependentStatusChanged
317713
+ * @static
317714
+ * @param {UngatedDependentStatusChanged.$Properties} message UngatedDependentStatusChanged message or plain object to encode
317715
+ * @param {$protobuf.Writer} [writer] Writer to encode to
317716
+ * @returns {$protobuf.Writer} Writer
317717
+ */
317718
+ UngatedDependentStatusChanged.encode = function encode(message, writer) {
317719
+ if (!writer)
317720
+ writer = $Writer.create();
317721
+ if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
317722
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
317723
+ if (message.linkStatus != null && Object.hasOwnProperty.call(message, "linkStatus"))
317724
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.linkStatus);
317725
+ if (message.initiator != null && Object.hasOwnProperty.call(message, "initiator"))
317726
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initiator);
317727
+ if (message.matchMethod != null && Object.hasOwnProperty.call(message, "matchMethod"))
317728
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.matchMethod);
317729
+ if (message.primaryHsUserId != null && Object.hasOwnProperty.call(message, "primaryHsUserId"))
317730
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.primaryHsUserId);
317731
+ if (message.primaryEligibilityRecordUuid != null && Object.hasOwnProperty.call(message, "primaryEligibilityRecordUuid"))
317732
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.primaryEligibilityRecordUuid);
317733
+ if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
317734
+ writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.orgId);
317735
+ if (message.rootOrgId != null && Object.hasOwnProperty.call(message, "rootOrgId"))
317736
+ writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.rootOrgId);
317737
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
317738
+ writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.timestamp);
317739
+ if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
317740
+ for (var i = 0; i < message.$unknowns.length; ++i)
317741
+ writer.raw(message.$unknowns[i]);
317742
+ return writer;
317743
+ };
317744
+
317745
+ /**
317746
+ * Encodes the specified UngatedDependentStatusChanged message, length delimited. Does not implicitly {@link UngatedDependentStatusChanged.verify|verify} messages.
317747
+ * @function encodeDelimited
317748
+ * @memberof UngatedDependentStatusChanged
317749
+ * @static
317750
+ * @param {UngatedDependentStatusChanged.$Properties} message UngatedDependentStatusChanged message or plain object to encode
317751
+ * @param {$protobuf.Writer} [writer] Writer to encode to
317752
+ * @returns {$protobuf.Writer} Writer
317753
+ */
317754
+ UngatedDependentStatusChanged.encodeDelimited = function encodeDelimited(message, writer) {
317755
+ return this.encode(message, writer).ldelim();
317756
+ };
317757
+
317758
+ /**
317759
+ * Decodes an UngatedDependentStatusChanged message from the specified reader or buffer.
317760
+ * @function decode
317761
+ * @memberof UngatedDependentStatusChanged
317762
+ * @static
317763
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
317764
+ * @param {number} [length] Message length if known beforehand
317765
+ * @returns {UngatedDependentStatusChanged & UngatedDependentStatusChanged.$Shape} UngatedDependentStatusChanged
317766
+ * @throws {Error} If the payload is not a reader or valid buffer
317767
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
317768
+ */
317769
+ UngatedDependentStatusChanged.decode = function decode(reader, length, _end, _depth, _target) {
317770
+ if (!(reader instanceof $Reader))
317771
+ reader = $Reader.create(reader);
317772
+ if (_depth === undefined)
317773
+ _depth = 0;
317774
+ if (_depth > $Reader.recursionLimit)
317775
+ throw Error("max depth exceeded");
317776
+ var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UngatedDependentStatusChanged(), value;
317777
+ while (reader.pos < end) {
317778
+ var start = reader.pos;
317779
+ var tag = reader.tag();
317780
+ if (tag === _end) {
317781
+ _end = undefined;
317782
+ break;
317783
+ }
317784
+ var wireType = tag & 7;
317785
+ switch (tag >>>= 3) {
317786
+ case 1: {
317787
+ if (wireType !== 2)
317788
+ break;
317789
+ if ((value = reader.string()).length)
317790
+ message.hsUserId = value;
317791
+ else
317792
+ delete message.hsUserId;
317793
+ continue;
317794
+ }
317795
+ case 2: {
317796
+ if (wireType !== 0)
317797
+ break;
317798
+ if (value = reader.int32())
317799
+ message.linkStatus = value;
317800
+ else
317801
+ delete message.linkStatus;
317802
+ continue;
317803
+ }
317804
+ case 3: {
317805
+ if (wireType !== 0)
317806
+ break;
317807
+ if (value = reader.int32())
317808
+ message.initiator = value;
317809
+ else
317810
+ delete message.initiator;
317811
+ continue;
317812
+ }
317813
+ case 4: {
317814
+ if (wireType !== 0)
317815
+ break;
317816
+ if (value = reader.int32())
317817
+ message.matchMethod = value;
317818
+ else
317819
+ delete message.matchMethod;
317820
+ continue;
317821
+ }
317822
+ case 5: {
317823
+ if (wireType !== 2)
317824
+ break;
317825
+ if ((value = reader.string()).length)
317826
+ message.primaryHsUserId = value;
317827
+ else
317828
+ delete message.primaryHsUserId;
317829
+ continue;
317830
+ }
317831
+ case 6: {
317832
+ if (wireType !== 2)
317833
+ break;
317834
+ if ((value = reader.string()).length)
317835
+ message.primaryEligibilityRecordUuid = value;
317836
+ else
317837
+ delete message.primaryEligibilityRecordUuid;
317838
+ continue;
317839
+ }
317840
+ case 7: {
317841
+ if (wireType !== 0)
317842
+ break;
317843
+ if (value = reader.uint32())
317844
+ message.orgId = value;
317845
+ else
317846
+ delete message.orgId;
317847
+ continue;
317848
+ }
317849
+ case 8: {
317850
+ if (wireType !== 0)
317851
+ break;
317852
+ if (value = reader.uint32())
317853
+ message.rootOrgId = value;
317854
+ else
317855
+ delete message.rootOrgId;
317856
+ continue;
317857
+ }
317858
+ case 9: {
317859
+ if (wireType !== 0)
317860
+ break;
317861
+ if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
317862
+ message.timestamp = value;
317863
+ else
317864
+ delete message.timestamp;
317865
+ continue;
317866
+ }
317867
+ }
317868
+ reader.skipType(wireType, _depth, tag);
317869
+ $util.makeProp(message, "$unknowns", false);
317870
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
317871
+ }
317872
+ if (_end !== undefined)
317873
+ throw Error("missing end group");
317874
+ return message;
317875
+ };
317876
+
317877
+ /**
317878
+ * Decodes an UngatedDependentStatusChanged message from the specified reader or buffer, length delimited.
317879
+ * @function decodeDelimited
317880
+ * @memberof UngatedDependentStatusChanged
317881
+ * @static
317882
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
317883
+ * @returns {UngatedDependentStatusChanged & UngatedDependentStatusChanged.$Shape} UngatedDependentStatusChanged
317884
+ * @throws {Error} If the payload is not a reader or valid buffer
317885
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
317886
+ */
317887
+ UngatedDependentStatusChanged.decodeDelimited = function decodeDelimited(reader) {
317888
+ if (!(reader instanceof $Reader))
317889
+ reader = new $Reader(reader);
317890
+ return this.decode(reader, reader.uint32());
317891
+ };
317892
+
317893
+ /**
317894
+ * Verifies an UngatedDependentStatusChanged message.
317895
+ * @function verify
317896
+ * @memberof UngatedDependentStatusChanged
317897
+ * @static
317898
+ * @param {Object.<string,*>} message Plain object to verify
317899
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
317900
+ */
317901
+ UngatedDependentStatusChanged.verify = function verify(message, _depth) {
317902
+ if (typeof message !== "object" || message === null)
317903
+ return "object expected";
317904
+ if (_depth === undefined)
317905
+ _depth = 0;
317906
+ if (_depth > $util.recursionLimit)
317907
+ return "max depth exceeded";
317908
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
317909
+ if (!$util.isString(message.hsUserId))
317910
+ return "hsUserId: string expected";
317911
+ if (message.linkStatus != null && message.hasOwnProperty("linkStatus"))
317912
+ switch (message.linkStatus) {
317913
+ default:
317914
+ return "linkStatus: enum value expected";
317915
+ case 0:
317916
+ case 1:
317917
+ case 2:
317918
+ case 3:
317919
+ case 4:
317920
+ break;
317921
+ }
317922
+ if (message.initiator != null && message.hasOwnProperty("initiator"))
317923
+ switch (message.initiator) {
317924
+ default:
317925
+ return "initiator: enum value expected";
317926
+ case 0:
317927
+ case 1:
317928
+ case 2:
317929
+ break;
317930
+ }
317931
+ if (message.matchMethod != null && message.hasOwnProperty("matchMethod"))
317932
+ switch (message.matchMethod) {
317933
+ default:
317934
+ return "matchMethod: enum value expected";
317935
+ case 0:
317936
+ case 1:
317937
+ case 2:
317938
+ break;
317939
+ }
317940
+ if (message.primaryHsUserId != null && message.hasOwnProperty("primaryHsUserId"))
317941
+ if (!$util.isString(message.primaryHsUserId))
317942
+ return "primaryHsUserId: string expected";
317943
+ if (message.primaryEligibilityRecordUuid != null && message.hasOwnProperty("primaryEligibilityRecordUuid"))
317944
+ if (!$util.isString(message.primaryEligibilityRecordUuid))
317945
+ return "primaryEligibilityRecordUuid: string expected";
317946
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
317947
+ if (!$util.isInteger(message.orgId))
317948
+ return "orgId: integer expected";
317949
+ if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
317950
+ if (!$util.isInteger(message.rootOrgId))
317951
+ return "rootOrgId: integer expected";
317952
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
317953
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
317954
+ return "timestamp: integer|Long expected";
317955
+ return null;
317956
+ };
317957
+
317958
+ /**
317959
+ * Creates an UngatedDependentStatusChanged message from a plain object. Also converts values to their respective internal types.
317960
+ * @function fromObject
317961
+ * @memberof UngatedDependentStatusChanged
317962
+ * @static
317963
+ * @param {Object.<string,*>} object Plain object
317964
+ * @returns {UngatedDependentStatusChanged} UngatedDependentStatusChanged
317965
+ */
317966
+ UngatedDependentStatusChanged.fromObject = function fromObject(object, _depth) {
317967
+ if (object instanceof $root.UngatedDependentStatusChanged)
317968
+ return object;
317969
+ if (_depth === undefined)
317970
+ _depth = 0;
317971
+ if (_depth > $util.recursionLimit)
317972
+ throw Error("max depth exceeded");
317973
+ var message = new $root.UngatedDependentStatusChanged();
317974
+ if (object.hsUserId != null)
317975
+ if (typeof object.hsUserId !== "string" || object.hsUserId.length)
317976
+ message.hsUserId = String(object.hsUserId);
317977
+ if (object.linkStatus !== 0 && (typeof object.linkStatus !== "string" || $root.DependentLinkStatus[object.linkStatus] !== 0))
317978
+ switch (object.linkStatus) {
317979
+ default:
317980
+ if (typeof object.linkStatus === "number") {
317981
+ message.linkStatus = object.linkStatus;
317982
+ break;
317983
+ }
317984
+ break;
317985
+ case "DEPENDENT_LINK_STATUS_UNKNOWN":
317986
+ case 0:
317987
+ message.linkStatus = 0;
317988
+ break;
317989
+ case "DEPENDENT_LINK_STATUS_LINKED":
317990
+ case 1:
317991
+ message.linkStatus = 1;
317992
+ break;
317993
+ case "DEPENDENT_LINK_STATUS_UNLINKED_INDEPENDENT":
317994
+ case 2:
317995
+ message.linkStatus = 2;
317996
+ break;
317997
+ case "DEPENDENT_LINK_STATUS_REMOVED_BY_PRIMARY":
317998
+ case 3:
317999
+ message.linkStatus = 3;
318000
+ break;
318001
+ case "DEPENDENT_LINK_STATUS_DISENROLLED_PRIMARY_EXPIRED":
318002
+ case 4:
318003
+ message.linkStatus = 4;
318004
+ break;
318005
+ }
318006
+ if (object.initiator !== 0 && (typeof object.initiator !== "string" || $root.DependentLinkInitiator[object.initiator] !== 0))
318007
+ switch (object.initiator) {
318008
+ default:
318009
+ if (typeof object.initiator === "number") {
318010
+ message.initiator = object.initiator;
318011
+ break;
318012
+ }
318013
+ break;
318014
+ case "DEPENDENT_LINK_INITIATOR_UNKNOWN":
318015
+ case 0:
318016
+ message.initiator = 0;
318017
+ break;
318018
+ case "DEPENDENT_LINK_INITIATOR_SYSTEM":
318019
+ case 1:
318020
+ message.initiator = 1;
318021
+ break;
318022
+ case "DEPENDENT_LINK_INITIATOR_PRIMARY_MEMBER":
318023
+ case 2:
318024
+ message.initiator = 2;
318025
+ break;
318026
+ }
318027
+ if (object.matchMethod !== 0 && (typeof object.matchMethod !== "string" || $root.DependentLinkMatchMethod[object.matchMethod] !== 0))
318028
+ switch (object.matchMethod) {
318029
+ default:
318030
+ if (typeof object.matchMethod === "number") {
318031
+ message.matchMethod = object.matchMethod;
318032
+ break;
318033
+ }
318034
+ break;
318035
+ case "DEPENDENT_LINK_MATCH_METHOD_UNKNOWN":
318036
+ case 0:
318037
+ message.matchMethod = 0;
318038
+ break;
318039
+ case "DEPENDENT_LINK_MATCH_METHOD_NAME_AND_DATE_OF_BIRTH":
318040
+ case 1:
318041
+ message.matchMethod = 1;
318042
+ break;
318043
+ case "DEPENDENT_LINK_MATCH_METHOD_NAME_DATE_OF_BIRTH_AND_EMAIL":
318044
+ case 2:
318045
+ message.matchMethod = 2;
318046
+ break;
318047
+ }
318048
+ if (object.primaryHsUserId != null)
318049
+ if (typeof object.primaryHsUserId !== "string" || object.primaryHsUserId.length)
318050
+ message.primaryHsUserId = String(object.primaryHsUserId);
318051
+ if (object.primaryEligibilityRecordUuid != null)
318052
+ if (typeof object.primaryEligibilityRecordUuid !== "string" || object.primaryEligibilityRecordUuid.length)
318053
+ message.primaryEligibilityRecordUuid = String(object.primaryEligibilityRecordUuid);
318054
+ if (object.orgId != null)
318055
+ if (Number(object.orgId) !== 0)
318056
+ message.orgId = object.orgId >>> 0;
318057
+ if (object.rootOrgId != null)
318058
+ if (Number(object.rootOrgId) !== 0)
318059
+ message.rootOrgId = object.rootOrgId >>> 0;
318060
+ if (object.timestamp != null)
318061
+ if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
318062
+ if ($util.Long)
318063
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
318064
+ else if (typeof object.timestamp === "string")
318065
+ message.timestamp = parseInt(object.timestamp, 10);
318066
+ else if (typeof object.timestamp === "number")
318067
+ message.timestamp = object.timestamp;
318068
+ else if (typeof object.timestamp === "object")
318069
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
318070
+ return message;
318071
+ };
318072
+
318073
+ /**
318074
+ * Creates a plain object from an UngatedDependentStatusChanged message. Also converts values to other types if specified.
318075
+ * @function toObject
318076
+ * @memberof UngatedDependentStatusChanged
318077
+ * @static
318078
+ * @param {UngatedDependentStatusChanged} message UngatedDependentStatusChanged
318079
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
318080
+ * @returns {Object.<string,*>} Plain object
318081
+ */
318082
+ UngatedDependentStatusChanged.toObject = function toObject(message, options) {
318083
+ if (!options)
318084
+ options = {};
318085
+ var object = {};
318086
+ if (options.defaults) {
318087
+ object.hsUserId = "";
318088
+ object.linkStatus = options.enums === String ? "DEPENDENT_LINK_STATUS_UNKNOWN" : 0;
318089
+ object.initiator = options.enums === String ? "DEPENDENT_LINK_INITIATOR_UNKNOWN" : 0;
318090
+ object.matchMethod = options.enums === String ? "DEPENDENT_LINK_MATCH_METHOD_UNKNOWN" : 0;
318091
+ object.primaryHsUserId = "";
318092
+ object.primaryEligibilityRecordUuid = "";
318093
+ object.orgId = 0;
318094
+ object.rootOrgId = 0;
318095
+ if ($util.Long) {
318096
+ var long = new $util.Long(0, 0, true);
318097
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
318098
+ } else
318099
+ object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
318100
+ }
318101
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
318102
+ object.hsUserId = message.hsUserId;
318103
+ if (message.linkStatus != null && message.hasOwnProperty("linkStatus"))
318104
+ object.linkStatus = options.enums === String ? $root.DependentLinkStatus[message.linkStatus] === undefined ? message.linkStatus : $root.DependentLinkStatus[message.linkStatus] : message.linkStatus;
318105
+ if (message.initiator != null && message.hasOwnProperty("initiator"))
318106
+ object.initiator = options.enums === String ? $root.DependentLinkInitiator[message.initiator] === undefined ? message.initiator : $root.DependentLinkInitiator[message.initiator] : message.initiator;
318107
+ if (message.matchMethod != null && message.hasOwnProperty("matchMethod"))
318108
+ object.matchMethod = options.enums === String ? $root.DependentLinkMatchMethod[message.matchMethod] === undefined ? message.matchMethod : $root.DependentLinkMatchMethod[message.matchMethod] : message.matchMethod;
318109
+ if (message.primaryHsUserId != null && message.hasOwnProperty("primaryHsUserId"))
318110
+ object.primaryHsUserId = message.primaryHsUserId;
318111
+ if (message.primaryEligibilityRecordUuid != null && message.hasOwnProperty("primaryEligibilityRecordUuid"))
318112
+ object.primaryEligibilityRecordUuid = message.primaryEligibilityRecordUuid;
318113
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
318114
+ object.orgId = message.orgId;
318115
+ if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
318116
+ object.rootOrgId = message.rootOrgId;
318117
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
318118
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
318119
+ object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
318120
+ else if (typeof message.timestamp === "number")
318121
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
318122
+ else
318123
+ 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;
318124
+ return object;
318125
+ };
318126
+
318127
+ /**
318128
+ * Converts this UngatedDependentStatusChanged to JSON.
318129
+ * @function toJSON
318130
+ * @memberof UngatedDependentStatusChanged
318131
+ * @instance
318132
+ * @returns {Object.<string,*>} JSON object
318133
+ */
318134
+ UngatedDependentStatusChanged.prototype.toJSON = function toJSON() {
318135
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
318136
+ };
318137
+
318138
+ /**
318139
+ * Gets the type url for UngatedDependentStatusChanged
318140
+ * @function getTypeUrl
318141
+ * @memberof UngatedDependentStatusChanged
318142
+ * @static
318143
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
318144
+ * @returns {string} The type url
318145
+ */
318146
+ UngatedDependentStatusChanged.getTypeUrl = function getTypeUrl(prefix) {
318147
+ if (prefix === undefined)
318148
+ prefix = "type.googleapis.com";
318149
+ return prefix + "/UngatedDependentStatusChanged";
318150
+ };
318151
+
318152
+ return UngatedDependentStatusChanged;
318153
+ })();
318154
+
317396
318155
  $root.UserDoubleOptInEmailRequested = (function() {
317397
318156
 
317398
318157
  /**
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.846.0"
19
+ "version": "1.848.0"
20
20
  }