@headspace/protos-events 1.656.0 → 1.658.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +371 -0
  2. package/lib/index.js +1033 -0
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -146973,6 +146973,456 @@ $root.EligibilitySourceType = (function() {
146973
146973
  return values;
146974
146974
  })();
146975
146975
 
146976
+ /**
146977
+ * IdentityVerificationType enum.
146978
+ * @name IdentityVerificationType
146979
+ * @enum {string}
146980
+ * @property {number} IDENTITY_VERIFICATION_TYPE_UNKNOWN=0 IDENTITY_VERIFICATION_TYPE_UNKNOWN value
146981
+ * @property {number} IDENTITY_VERIFICATION_TYPE_NONE=1 IDENTITY_VERIFICATION_TYPE_NONE value
146982
+ * @property {number} IDENTITY_VERIFICATION_TYPE_COUNTRY_DOB=2 IDENTITY_VERIFICATION_TYPE_COUNTRY_DOB value
146983
+ * @property {number} IDENTITY_VERIFICATION_TYPE_LASTNAME_COUNTRY_DOB=3 IDENTITY_VERIFICATION_TYPE_LASTNAME_COUNTRY_DOB value
146984
+ */
146985
+ $root.IdentityVerificationType = (function() {
146986
+ var valuesById = {}, values = Object.create(valuesById);
146987
+ values[valuesById[0] = "IDENTITY_VERIFICATION_TYPE_UNKNOWN"] = 0;
146988
+ values[valuesById[1] = "IDENTITY_VERIFICATION_TYPE_NONE"] = 1;
146989
+ values[valuesById[2] = "IDENTITY_VERIFICATION_TYPE_COUNTRY_DOB"] = 2;
146990
+ values[valuesById[3] = "IDENTITY_VERIFICATION_TYPE_LASTNAME_COUNTRY_DOB"] = 3;
146991
+ return values;
146992
+ })();
146993
+
146994
+ /**
146995
+ * VerificationType enum.
146996
+ * @name VerificationType
146997
+ * @enum {string}
146998
+ * @property {number} VERIFICATION_TYPE_UNKNOWN=0 VERIFICATION_TYPE_UNKNOWN value
146999
+ * @property {number} VERIFICATION_TYPE_EMAIL_DOMAIN=1 VERIFICATION_TYPE_EMAIL_DOMAIN value
147000
+ * @property {number} VERIFICATION_TYPE_EMAIL=2 VERIFICATION_TYPE_EMAIL value
147001
+ * @property {number} VERIFICATION_TYPE_D2C_COACHING=3 VERIFICATION_TYPE_D2C_COACHING value
147002
+ * @property {number} VERIFICATION_TYPE_D2C_THERAPY=4 VERIFICATION_TYPE_D2C_THERAPY value
147003
+ * @property {number} VERIFICATION_TYPE_D2C_CARE_UPSELL=5 VERIFICATION_TYPE_D2C_CARE_UPSELL value
147004
+ * @property {number} VERIFICATION_TYPE_WORK_ID=6 VERIFICATION_TYPE_WORK_ID value
147005
+ * @property {number} VERIFICATION_TYPE_KP_NATIONAL_JWT=7 VERIFICATION_TYPE_KP_NATIONAL_JWT value
147006
+ */
147007
+ $root.VerificationType = (function() {
147008
+ var valuesById = {}, values = Object.create(valuesById);
147009
+ values[valuesById[0] = "VERIFICATION_TYPE_UNKNOWN"] = 0;
147010
+ values[valuesById[1] = "VERIFICATION_TYPE_EMAIL_DOMAIN"] = 1;
147011
+ values[valuesById[2] = "VERIFICATION_TYPE_EMAIL"] = 2;
147012
+ values[valuesById[3] = "VERIFICATION_TYPE_D2C_COACHING"] = 3;
147013
+ values[valuesById[4] = "VERIFICATION_TYPE_D2C_THERAPY"] = 4;
147014
+ values[valuesById[5] = "VERIFICATION_TYPE_D2C_CARE_UPSELL"] = 5;
147015
+ values[valuesById[6] = "VERIFICATION_TYPE_WORK_ID"] = 6;
147016
+ values[valuesById[7] = "VERIFICATION_TYPE_KP_NATIONAL_JWT"] = 7;
147017
+ return values;
147018
+ })();
147019
+
147020
+ $root.EligibilityCollective = (function() {
147021
+
147022
+ /**
147023
+ * Properties of an EligibilityCollective.
147024
+ * @name IEligibilityCollective
147025
+ * @interface IEligibilityCollective
147026
+ * @property {string|null} [uuid] EligibilityCollective uuid
147027
+ * @property {VerificationType|null} [veritificationType] EligibilityCollective veritificationType
147028
+ * @property {IdentityVerificationType|null} [identityVeritificationType] EligibilityCollective identityVeritificationType
147029
+ * @property {number|Long|null} [createdAtTimestamp] EligibilityCollective createdAtTimestamp
147030
+ * @property {number|Long|null} [updatedAtTimestamp] EligibilityCollective updatedAtTimestamp
147031
+ * @property {number|Long|null} [deletedAtTimestamp] EligibilityCollective deletedAtTimestamp
147032
+ */
147033
+
147034
+ /**
147035
+ * Constructs a new EligibilityCollective.
147036
+ * @name EligibilityCollective
147037
+ * @classdesc Represents an EligibilityCollective.
147038
+ * @implements IEligibilityCollective
147039
+ * @constructor
147040
+ * @param {IEligibilityCollective=} [properties] Properties to set
147041
+ */
147042
+ function EligibilityCollective(properties) {
147043
+ if (properties)
147044
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
147045
+ if (properties[keys[i]] != null)
147046
+ this[keys[i]] = properties[keys[i]];
147047
+ }
147048
+
147049
+ /**
147050
+ * EligibilityCollective uuid.
147051
+ * @member {string} uuid
147052
+ * @memberof EligibilityCollective
147053
+ * @instance
147054
+ */
147055
+ EligibilityCollective.prototype.uuid = "";
147056
+
147057
+ /**
147058
+ * EligibilityCollective veritificationType.
147059
+ * @member {VerificationType} veritificationType
147060
+ * @memberof EligibilityCollective
147061
+ * @instance
147062
+ */
147063
+ EligibilityCollective.prototype.veritificationType = 0;
147064
+
147065
+ /**
147066
+ * EligibilityCollective identityVeritificationType.
147067
+ * @member {IdentityVerificationType} identityVeritificationType
147068
+ * @memberof EligibilityCollective
147069
+ * @instance
147070
+ */
147071
+ EligibilityCollective.prototype.identityVeritificationType = 0;
147072
+
147073
+ /**
147074
+ * EligibilityCollective createdAtTimestamp.
147075
+ * @member {number|Long} createdAtTimestamp
147076
+ * @memberof EligibilityCollective
147077
+ * @instance
147078
+ */
147079
+ EligibilityCollective.prototype.createdAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
147080
+
147081
+ /**
147082
+ * EligibilityCollective updatedAtTimestamp.
147083
+ * @member {number|Long} updatedAtTimestamp
147084
+ * @memberof EligibilityCollective
147085
+ * @instance
147086
+ */
147087
+ EligibilityCollective.prototype.updatedAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
147088
+
147089
+ /**
147090
+ * EligibilityCollective deletedAtTimestamp.
147091
+ * @member {number|Long} deletedAtTimestamp
147092
+ * @memberof EligibilityCollective
147093
+ * @instance
147094
+ */
147095
+ EligibilityCollective.prototype.deletedAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
147096
+
147097
+ /**
147098
+ * Creates a new EligibilityCollective instance using the specified properties.
147099
+ * @function create
147100
+ * @memberof EligibilityCollective
147101
+ * @static
147102
+ * @param {IEligibilityCollective=} [properties] Properties to set
147103
+ * @returns {EligibilityCollective} EligibilityCollective instance
147104
+ */
147105
+ EligibilityCollective.create = function create(properties) {
147106
+ return new EligibilityCollective(properties);
147107
+ };
147108
+
147109
+ /**
147110
+ * Encodes the specified EligibilityCollective message. Does not implicitly {@link EligibilityCollective.verify|verify} messages.
147111
+ * @function encode
147112
+ * @memberof EligibilityCollective
147113
+ * @static
147114
+ * @param {IEligibilityCollective} message EligibilityCollective message or plain object to encode
147115
+ * @param {$protobuf.Writer} [writer] Writer to encode to
147116
+ * @returns {$protobuf.Writer} Writer
147117
+ */
147118
+ EligibilityCollective.encode = function encode(message, writer) {
147119
+ if (!writer)
147120
+ writer = $Writer.create();
147121
+ if (message.uuid != null && message.hasOwnProperty("uuid"))
147122
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
147123
+ if (message.veritificationType != null && message.hasOwnProperty("veritificationType"))
147124
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.veritificationType);
147125
+ if (message.identityVeritificationType != null && message.hasOwnProperty("identityVeritificationType"))
147126
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.identityVeritificationType);
147127
+ if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
147128
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAtTimestamp);
147129
+ if (message.updatedAtTimestamp != null && message.hasOwnProperty("updatedAtTimestamp"))
147130
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAtTimestamp);
147131
+ if (message.deletedAtTimestamp != null && message.hasOwnProperty("deletedAtTimestamp"))
147132
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.deletedAtTimestamp);
147133
+ return writer;
147134
+ };
147135
+
147136
+ /**
147137
+ * Encodes the specified EligibilityCollective message, length delimited. Does not implicitly {@link EligibilityCollective.verify|verify} messages.
147138
+ * @function encodeDelimited
147139
+ * @memberof EligibilityCollective
147140
+ * @static
147141
+ * @param {IEligibilityCollective} message EligibilityCollective message or plain object to encode
147142
+ * @param {$protobuf.Writer} [writer] Writer to encode to
147143
+ * @returns {$protobuf.Writer} Writer
147144
+ */
147145
+ EligibilityCollective.encodeDelimited = function encodeDelimited(message, writer) {
147146
+ return this.encode(message, writer).ldelim();
147147
+ };
147148
+
147149
+ /**
147150
+ * Decodes an EligibilityCollective message from the specified reader or buffer.
147151
+ * @function decode
147152
+ * @memberof EligibilityCollective
147153
+ * @static
147154
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
147155
+ * @param {number} [length] Message length if known beforehand
147156
+ * @returns {EligibilityCollective} EligibilityCollective
147157
+ * @throws {Error} If the payload is not a reader or valid buffer
147158
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
147159
+ */
147160
+ EligibilityCollective.decode = function decode(reader, length) {
147161
+ if (!(reader instanceof $Reader))
147162
+ reader = $Reader.create(reader);
147163
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EligibilityCollective();
147164
+ while (reader.pos < end) {
147165
+ var tag = reader.uint32();
147166
+ switch (tag >>> 3) {
147167
+ case 1:
147168
+ message.uuid = reader.string();
147169
+ break;
147170
+ case 2:
147171
+ message.veritificationType = reader.int32();
147172
+ break;
147173
+ case 3:
147174
+ message.identityVeritificationType = reader.int32();
147175
+ break;
147176
+ case 4:
147177
+ message.createdAtTimestamp = reader.uint64();
147178
+ break;
147179
+ case 5:
147180
+ message.updatedAtTimestamp = reader.uint64();
147181
+ break;
147182
+ case 6:
147183
+ message.deletedAtTimestamp = reader.uint64();
147184
+ break;
147185
+ default:
147186
+ reader.skipType(tag & 7);
147187
+ break;
147188
+ }
147189
+ }
147190
+ return message;
147191
+ };
147192
+
147193
+ /**
147194
+ * Decodes an EligibilityCollective message from the specified reader or buffer, length delimited.
147195
+ * @function decodeDelimited
147196
+ * @memberof EligibilityCollective
147197
+ * @static
147198
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
147199
+ * @returns {EligibilityCollective} EligibilityCollective
147200
+ * @throws {Error} If the payload is not a reader or valid buffer
147201
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
147202
+ */
147203
+ EligibilityCollective.decodeDelimited = function decodeDelimited(reader) {
147204
+ if (!(reader instanceof $Reader))
147205
+ reader = new $Reader(reader);
147206
+ return this.decode(reader, reader.uint32());
147207
+ };
147208
+
147209
+ /**
147210
+ * Verifies an EligibilityCollective message.
147211
+ * @function verify
147212
+ * @memberof EligibilityCollective
147213
+ * @static
147214
+ * @param {Object.<string,*>} message Plain object to verify
147215
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
147216
+ */
147217
+ EligibilityCollective.verify = function verify(message) {
147218
+ if (typeof message !== "object" || message === null)
147219
+ return "object expected";
147220
+ if (message.uuid != null && message.hasOwnProperty("uuid"))
147221
+ if (!$util.isString(message.uuid))
147222
+ return "uuid: string expected";
147223
+ if (message.veritificationType != null && message.hasOwnProperty("veritificationType"))
147224
+ switch (message.veritificationType) {
147225
+ default:
147226
+ return "veritificationType: enum value expected";
147227
+ case 0:
147228
+ case 1:
147229
+ case 2:
147230
+ case 3:
147231
+ case 4:
147232
+ case 5:
147233
+ case 6:
147234
+ case 7:
147235
+ break;
147236
+ }
147237
+ if (message.identityVeritificationType != null && message.hasOwnProperty("identityVeritificationType"))
147238
+ switch (message.identityVeritificationType) {
147239
+ default:
147240
+ return "identityVeritificationType: enum value expected";
147241
+ case 0:
147242
+ case 1:
147243
+ case 2:
147244
+ case 3:
147245
+ break;
147246
+ }
147247
+ if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
147248
+ if (!$util.isInteger(message.createdAtTimestamp) && !(message.createdAtTimestamp && $util.isInteger(message.createdAtTimestamp.low) && $util.isInteger(message.createdAtTimestamp.high)))
147249
+ return "createdAtTimestamp: integer|Long expected";
147250
+ if (message.updatedAtTimestamp != null && message.hasOwnProperty("updatedAtTimestamp"))
147251
+ if (!$util.isInteger(message.updatedAtTimestamp) && !(message.updatedAtTimestamp && $util.isInteger(message.updatedAtTimestamp.low) && $util.isInteger(message.updatedAtTimestamp.high)))
147252
+ return "updatedAtTimestamp: integer|Long expected";
147253
+ if (message.deletedAtTimestamp != null && message.hasOwnProperty("deletedAtTimestamp"))
147254
+ if (!$util.isInteger(message.deletedAtTimestamp) && !(message.deletedAtTimestamp && $util.isInteger(message.deletedAtTimestamp.low) && $util.isInteger(message.deletedAtTimestamp.high)))
147255
+ return "deletedAtTimestamp: integer|Long expected";
147256
+ return null;
147257
+ };
147258
+
147259
+ /**
147260
+ * Creates an EligibilityCollective message from a plain object. Also converts values to their respective internal types.
147261
+ * @function fromObject
147262
+ * @memberof EligibilityCollective
147263
+ * @static
147264
+ * @param {Object.<string,*>} object Plain object
147265
+ * @returns {EligibilityCollective} EligibilityCollective
147266
+ */
147267
+ EligibilityCollective.fromObject = function fromObject(object) {
147268
+ if (object instanceof $root.EligibilityCollective)
147269
+ return object;
147270
+ var message = new $root.EligibilityCollective();
147271
+ if (object.uuid != null)
147272
+ message.uuid = String(object.uuid);
147273
+ switch (object.veritificationType) {
147274
+ case "VERIFICATION_TYPE_UNKNOWN":
147275
+ case 0:
147276
+ message.veritificationType = 0;
147277
+ break;
147278
+ case "VERIFICATION_TYPE_EMAIL_DOMAIN":
147279
+ case 1:
147280
+ message.veritificationType = 1;
147281
+ break;
147282
+ case "VERIFICATION_TYPE_EMAIL":
147283
+ case 2:
147284
+ message.veritificationType = 2;
147285
+ break;
147286
+ case "VERIFICATION_TYPE_D2C_COACHING":
147287
+ case 3:
147288
+ message.veritificationType = 3;
147289
+ break;
147290
+ case "VERIFICATION_TYPE_D2C_THERAPY":
147291
+ case 4:
147292
+ message.veritificationType = 4;
147293
+ break;
147294
+ case "VERIFICATION_TYPE_D2C_CARE_UPSELL":
147295
+ case 5:
147296
+ message.veritificationType = 5;
147297
+ break;
147298
+ case "VERIFICATION_TYPE_WORK_ID":
147299
+ case 6:
147300
+ message.veritificationType = 6;
147301
+ break;
147302
+ case "VERIFICATION_TYPE_KP_NATIONAL_JWT":
147303
+ case 7:
147304
+ message.veritificationType = 7;
147305
+ break;
147306
+ }
147307
+ switch (object.identityVeritificationType) {
147308
+ case "IDENTITY_VERIFICATION_TYPE_UNKNOWN":
147309
+ case 0:
147310
+ message.identityVeritificationType = 0;
147311
+ break;
147312
+ case "IDENTITY_VERIFICATION_TYPE_NONE":
147313
+ case 1:
147314
+ message.identityVeritificationType = 1;
147315
+ break;
147316
+ case "IDENTITY_VERIFICATION_TYPE_COUNTRY_DOB":
147317
+ case 2:
147318
+ message.identityVeritificationType = 2;
147319
+ break;
147320
+ case "IDENTITY_VERIFICATION_TYPE_LASTNAME_COUNTRY_DOB":
147321
+ case 3:
147322
+ message.identityVeritificationType = 3;
147323
+ break;
147324
+ }
147325
+ if (object.createdAtTimestamp != null)
147326
+ if ($util.Long)
147327
+ (message.createdAtTimestamp = $util.Long.fromValue(object.createdAtTimestamp)).unsigned = true;
147328
+ else if (typeof object.createdAtTimestamp === "string")
147329
+ message.createdAtTimestamp = parseInt(object.createdAtTimestamp, 10);
147330
+ else if (typeof object.createdAtTimestamp === "number")
147331
+ message.createdAtTimestamp = object.createdAtTimestamp;
147332
+ else if (typeof object.createdAtTimestamp === "object")
147333
+ message.createdAtTimestamp = new $util.LongBits(object.createdAtTimestamp.low >>> 0, object.createdAtTimestamp.high >>> 0).toNumber(true);
147334
+ if (object.updatedAtTimestamp != null)
147335
+ if ($util.Long)
147336
+ (message.updatedAtTimestamp = $util.Long.fromValue(object.updatedAtTimestamp)).unsigned = true;
147337
+ else if (typeof object.updatedAtTimestamp === "string")
147338
+ message.updatedAtTimestamp = parseInt(object.updatedAtTimestamp, 10);
147339
+ else if (typeof object.updatedAtTimestamp === "number")
147340
+ message.updatedAtTimestamp = object.updatedAtTimestamp;
147341
+ else if (typeof object.updatedAtTimestamp === "object")
147342
+ message.updatedAtTimestamp = new $util.LongBits(object.updatedAtTimestamp.low >>> 0, object.updatedAtTimestamp.high >>> 0).toNumber(true);
147343
+ if (object.deletedAtTimestamp != null)
147344
+ if ($util.Long)
147345
+ (message.deletedAtTimestamp = $util.Long.fromValue(object.deletedAtTimestamp)).unsigned = true;
147346
+ else if (typeof object.deletedAtTimestamp === "string")
147347
+ message.deletedAtTimestamp = parseInt(object.deletedAtTimestamp, 10);
147348
+ else if (typeof object.deletedAtTimestamp === "number")
147349
+ message.deletedAtTimestamp = object.deletedAtTimestamp;
147350
+ else if (typeof object.deletedAtTimestamp === "object")
147351
+ message.deletedAtTimestamp = new $util.LongBits(object.deletedAtTimestamp.low >>> 0, object.deletedAtTimestamp.high >>> 0).toNumber(true);
147352
+ return message;
147353
+ };
147354
+
147355
+ /**
147356
+ * Creates a plain object from an EligibilityCollective message. Also converts values to other types if specified.
147357
+ * @function toObject
147358
+ * @memberof EligibilityCollective
147359
+ * @static
147360
+ * @param {EligibilityCollective} message EligibilityCollective
147361
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
147362
+ * @returns {Object.<string,*>} Plain object
147363
+ */
147364
+ EligibilityCollective.toObject = function toObject(message, options) {
147365
+ if (!options)
147366
+ options = {};
147367
+ var object = {};
147368
+ if (options.defaults) {
147369
+ object.uuid = "";
147370
+ object.veritificationType = options.enums === String ? "VERIFICATION_TYPE_UNKNOWN" : 0;
147371
+ object.identityVeritificationType = options.enums === String ? "IDENTITY_VERIFICATION_TYPE_UNKNOWN" : 0;
147372
+ if ($util.Long) {
147373
+ var long = new $util.Long(0, 0, true);
147374
+ object.createdAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
147375
+ } else
147376
+ object.createdAtTimestamp = options.longs === String ? "0" : 0;
147377
+ if ($util.Long) {
147378
+ var long = new $util.Long(0, 0, true);
147379
+ object.updatedAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
147380
+ } else
147381
+ object.updatedAtTimestamp = options.longs === String ? "0" : 0;
147382
+ if ($util.Long) {
147383
+ var long = new $util.Long(0, 0, true);
147384
+ object.deletedAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
147385
+ } else
147386
+ object.deletedAtTimestamp = options.longs === String ? "0" : 0;
147387
+ }
147388
+ if (message.uuid != null && message.hasOwnProperty("uuid"))
147389
+ object.uuid = message.uuid;
147390
+ if (message.veritificationType != null && message.hasOwnProperty("veritificationType"))
147391
+ object.veritificationType = options.enums === String ? $root.VerificationType[message.veritificationType] : message.veritificationType;
147392
+ if (message.identityVeritificationType != null && message.hasOwnProperty("identityVeritificationType"))
147393
+ object.identityVeritificationType = options.enums === String ? $root.IdentityVerificationType[message.identityVeritificationType] : message.identityVeritificationType;
147394
+ if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
147395
+ if (typeof message.createdAtTimestamp === "number")
147396
+ object.createdAtTimestamp = options.longs === String ? String(message.createdAtTimestamp) : message.createdAtTimestamp;
147397
+ else
147398
+ object.createdAtTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.createdAtTimestamp) : options.longs === Number ? new $util.LongBits(message.createdAtTimestamp.low >>> 0, message.createdAtTimestamp.high >>> 0).toNumber(true) : message.createdAtTimestamp;
147399
+ if (message.updatedAtTimestamp != null && message.hasOwnProperty("updatedAtTimestamp"))
147400
+ if (typeof message.updatedAtTimestamp === "number")
147401
+ object.updatedAtTimestamp = options.longs === String ? String(message.updatedAtTimestamp) : message.updatedAtTimestamp;
147402
+ else
147403
+ object.updatedAtTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAtTimestamp) : options.longs === Number ? new $util.LongBits(message.updatedAtTimestamp.low >>> 0, message.updatedAtTimestamp.high >>> 0).toNumber(true) : message.updatedAtTimestamp;
147404
+ if (message.deletedAtTimestamp != null && message.hasOwnProperty("deletedAtTimestamp"))
147405
+ if (typeof message.deletedAtTimestamp === "number")
147406
+ object.deletedAtTimestamp = options.longs === String ? String(message.deletedAtTimestamp) : message.deletedAtTimestamp;
147407
+ else
147408
+ object.deletedAtTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAtTimestamp) : options.longs === Number ? new $util.LongBits(message.deletedAtTimestamp.low >>> 0, message.deletedAtTimestamp.high >>> 0).toNumber(true) : message.deletedAtTimestamp;
147409
+ return object;
147410
+ };
147411
+
147412
+ /**
147413
+ * Converts this EligibilityCollective to JSON.
147414
+ * @function toJSON
147415
+ * @memberof EligibilityCollective
147416
+ * @instance
147417
+ * @returns {Object.<string,*>} JSON object
147418
+ */
147419
+ EligibilityCollective.prototype.toJSON = function toJSON() {
147420
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
147421
+ };
147422
+
147423
+ return EligibilityCollective;
147424
+ })();
147425
+
146976
147426
  $root.PartnershipMemberEnrolled = (function() {
146977
147427
 
146978
147428
  /**
@@ -178153,6 +178603,589 @@ $root.PubnubChatMessage = (function() {
178153
178603
  return PubnubChatMessage;
178154
178604
  })();
178155
178605
 
178606
+ $root.RealTimeEligibilityCheckRequested = (function() {
178607
+
178608
+ /**
178609
+ * Properties of a RealTimeEligibilityCheckRequested.
178610
+ * @name IRealTimeEligibilityCheckRequested
178611
+ * @interface IRealTimeEligibilityCheckRequested
178612
+ * @property {string|null} [hsUserId] RealTimeEligibilityCheckRequested hsUserId
178613
+ * @property {string|null} [hsEligibilityRecordUuid] RealTimeEligibilityCheckRequested hsEligibilityRecordUuid
178614
+ * @property {string|null} [checkRequestId] RealTimeEligibilityCheckRequested checkRequestId
178615
+ */
178616
+
178617
+ /**
178618
+ * Constructs a new RealTimeEligibilityCheckRequested.
178619
+ * @name RealTimeEligibilityCheckRequested
178620
+ * @classdesc Represents a RealTimeEligibilityCheckRequested.
178621
+ * @implements IRealTimeEligibilityCheckRequested
178622
+ * @constructor
178623
+ * @param {IRealTimeEligibilityCheckRequested=} [properties] Properties to set
178624
+ */
178625
+ function RealTimeEligibilityCheckRequested(properties) {
178626
+ if (properties)
178627
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
178628
+ if (properties[keys[i]] != null)
178629
+ this[keys[i]] = properties[keys[i]];
178630
+ }
178631
+
178632
+ /**
178633
+ * RealTimeEligibilityCheckRequested hsUserId.
178634
+ * @member {string} hsUserId
178635
+ * @memberof RealTimeEligibilityCheckRequested
178636
+ * @instance
178637
+ */
178638
+ RealTimeEligibilityCheckRequested.prototype.hsUserId = "";
178639
+
178640
+ /**
178641
+ * RealTimeEligibilityCheckRequested hsEligibilityRecordUuid.
178642
+ * @member {string} hsEligibilityRecordUuid
178643
+ * @memberof RealTimeEligibilityCheckRequested
178644
+ * @instance
178645
+ */
178646
+ RealTimeEligibilityCheckRequested.prototype.hsEligibilityRecordUuid = "";
178647
+
178648
+ /**
178649
+ * RealTimeEligibilityCheckRequested checkRequestId.
178650
+ * @member {string} checkRequestId
178651
+ * @memberof RealTimeEligibilityCheckRequested
178652
+ * @instance
178653
+ */
178654
+ RealTimeEligibilityCheckRequested.prototype.checkRequestId = "";
178655
+
178656
+ /**
178657
+ * Creates a new RealTimeEligibilityCheckRequested instance using the specified properties.
178658
+ * @function create
178659
+ * @memberof RealTimeEligibilityCheckRequested
178660
+ * @static
178661
+ * @param {IRealTimeEligibilityCheckRequested=} [properties] Properties to set
178662
+ * @returns {RealTimeEligibilityCheckRequested} RealTimeEligibilityCheckRequested instance
178663
+ */
178664
+ RealTimeEligibilityCheckRequested.create = function create(properties) {
178665
+ return new RealTimeEligibilityCheckRequested(properties);
178666
+ };
178667
+
178668
+ /**
178669
+ * Encodes the specified RealTimeEligibilityCheckRequested message. Does not implicitly {@link RealTimeEligibilityCheckRequested.verify|verify} messages.
178670
+ * @function encode
178671
+ * @memberof RealTimeEligibilityCheckRequested
178672
+ * @static
178673
+ * @param {IRealTimeEligibilityCheckRequested} message RealTimeEligibilityCheckRequested message or plain object to encode
178674
+ * @param {$protobuf.Writer} [writer] Writer to encode to
178675
+ * @returns {$protobuf.Writer} Writer
178676
+ */
178677
+ RealTimeEligibilityCheckRequested.encode = function encode(message, writer) {
178678
+ if (!writer)
178679
+ writer = $Writer.create();
178680
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
178681
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
178682
+ if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
178683
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsEligibilityRecordUuid);
178684
+ if (message.checkRequestId != null && message.hasOwnProperty("checkRequestId"))
178685
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.checkRequestId);
178686
+ return writer;
178687
+ };
178688
+
178689
+ /**
178690
+ * Encodes the specified RealTimeEligibilityCheckRequested message, length delimited. Does not implicitly {@link RealTimeEligibilityCheckRequested.verify|verify} messages.
178691
+ * @function encodeDelimited
178692
+ * @memberof RealTimeEligibilityCheckRequested
178693
+ * @static
178694
+ * @param {IRealTimeEligibilityCheckRequested} message RealTimeEligibilityCheckRequested message or plain object to encode
178695
+ * @param {$protobuf.Writer} [writer] Writer to encode to
178696
+ * @returns {$protobuf.Writer} Writer
178697
+ */
178698
+ RealTimeEligibilityCheckRequested.encodeDelimited = function encodeDelimited(message, writer) {
178699
+ return this.encode(message, writer).ldelim();
178700
+ };
178701
+
178702
+ /**
178703
+ * Decodes a RealTimeEligibilityCheckRequested message from the specified reader or buffer.
178704
+ * @function decode
178705
+ * @memberof RealTimeEligibilityCheckRequested
178706
+ * @static
178707
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
178708
+ * @param {number} [length] Message length if known beforehand
178709
+ * @returns {RealTimeEligibilityCheckRequested} RealTimeEligibilityCheckRequested
178710
+ * @throws {Error} If the payload is not a reader or valid buffer
178711
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
178712
+ */
178713
+ RealTimeEligibilityCheckRequested.decode = function decode(reader, length) {
178714
+ if (!(reader instanceof $Reader))
178715
+ reader = $Reader.create(reader);
178716
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RealTimeEligibilityCheckRequested();
178717
+ while (reader.pos < end) {
178718
+ var tag = reader.uint32();
178719
+ switch (tag >>> 3) {
178720
+ case 1:
178721
+ message.hsUserId = reader.string();
178722
+ break;
178723
+ case 2:
178724
+ message.hsEligibilityRecordUuid = reader.string();
178725
+ break;
178726
+ case 3:
178727
+ message.checkRequestId = reader.string();
178728
+ break;
178729
+ default:
178730
+ reader.skipType(tag & 7);
178731
+ break;
178732
+ }
178733
+ }
178734
+ return message;
178735
+ };
178736
+
178737
+ /**
178738
+ * Decodes a RealTimeEligibilityCheckRequested message from the specified reader or buffer, length delimited.
178739
+ * @function decodeDelimited
178740
+ * @memberof RealTimeEligibilityCheckRequested
178741
+ * @static
178742
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
178743
+ * @returns {RealTimeEligibilityCheckRequested} RealTimeEligibilityCheckRequested
178744
+ * @throws {Error} If the payload is not a reader or valid buffer
178745
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
178746
+ */
178747
+ RealTimeEligibilityCheckRequested.decodeDelimited = function decodeDelimited(reader) {
178748
+ if (!(reader instanceof $Reader))
178749
+ reader = new $Reader(reader);
178750
+ return this.decode(reader, reader.uint32());
178751
+ };
178752
+
178753
+ /**
178754
+ * Verifies a RealTimeEligibilityCheckRequested message.
178755
+ * @function verify
178756
+ * @memberof RealTimeEligibilityCheckRequested
178757
+ * @static
178758
+ * @param {Object.<string,*>} message Plain object to verify
178759
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
178760
+ */
178761
+ RealTimeEligibilityCheckRequested.verify = function verify(message) {
178762
+ if (typeof message !== "object" || message === null)
178763
+ return "object expected";
178764
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
178765
+ if (!$util.isString(message.hsUserId))
178766
+ return "hsUserId: string expected";
178767
+ if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
178768
+ if (!$util.isString(message.hsEligibilityRecordUuid))
178769
+ return "hsEligibilityRecordUuid: string expected";
178770
+ if (message.checkRequestId != null && message.hasOwnProperty("checkRequestId"))
178771
+ if (!$util.isString(message.checkRequestId))
178772
+ return "checkRequestId: string expected";
178773
+ return null;
178774
+ };
178775
+
178776
+ /**
178777
+ * Creates a RealTimeEligibilityCheckRequested message from a plain object. Also converts values to their respective internal types.
178778
+ * @function fromObject
178779
+ * @memberof RealTimeEligibilityCheckRequested
178780
+ * @static
178781
+ * @param {Object.<string,*>} object Plain object
178782
+ * @returns {RealTimeEligibilityCheckRequested} RealTimeEligibilityCheckRequested
178783
+ */
178784
+ RealTimeEligibilityCheckRequested.fromObject = function fromObject(object) {
178785
+ if (object instanceof $root.RealTimeEligibilityCheckRequested)
178786
+ return object;
178787
+ var message = new $root.RealTimeEligibilityCheckRequested();
178788
+ if (object.hsUserId != null)
178789
+ message.hsUserId = String(object.hsUserId);
178790
+ if (object.hsEligibilityRecordUuid != null)
178791
+ message.hsEligibilityRecordUuid = String(object.hsEligibilityRecordUuid);
178792
+ if (object.checkRequestId != null)
178793
+ message.checkRequestId = String(object.checkRequestId);
178794
+ return message;
178795
+ };
178796
+
178797
+ /**
178798
+ * Creates a plain object from a RealTimeEligibilityCheckRequested message. Also converts values to other types if specified.
178799
+ * @function toObject
178800
+ * @memberof RealTimeEligibilityCheckRequested
178801
+ * @static
178802
+ * @param {RealTimeEligibilityCheckRequested} message RealTimeEligibilityCheckRequested
178803
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
178804
+ * @returns {Object.<string,*>} Plain object
178805
+ */
178806
+ RealTimeEligibilityCheckRequested.toObject = function toObject(message, options) {
178807
+ if (!options)
178808
+ options = {};
178809
+ var object = {};
178810
+ if (options.defaults) {
178811
+ object.hsUserId = "";
178812
+ object.hsEligibilityRecordUuid = "";
178813
+ object.checkRequestId = "";
178814
+ }
178815
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
178816
+ object.hsUserId = message.hsUserId;
178817
+ if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
178818
+ object.hsEligibilityRecordUuid = message.hsEligibilityRecordUuid;
178819
+ if (message.checkRequestId != null && message.hasOwnProperty("checkRequestId"))
178820
+ object.checkRequestId = message.checkRequestId;
178821
+ return object;
178822
+ };
178823
+
178824
+ /**
178825
+ * Converts this RealTimeEligibilityCheckRequested to JSON.
178826
+ * @function toJSON
178827
+ * @memberof RealTimeEligibilityCheckRequested
178828
+ * @instance
178829
+ * @returns {Object.<string,*>} JSON object
178830
+ */
178831
+ RealTimeEligibilityCheckRequested.prototype.toJSON = function toJSON() {
178832
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
178833
+ };
178834
+
178835
+ return RealTimeEligibilityCheckRequested;
178836
+ })();
178837
+
178838
+ /**
178839
+ * RealTimeEligibilityCheckStatus enum.
178840
+ * @name RealTimeEligibilityCheckStatus
178841
+ * @enum {string}
178842
+ * @property {number} REAL_TIME_ELIGIBILITY_CHECK_STATUS_UNKNOWN=0 REAL_TIME_ELIGIBILITY_CHECK_STATUS_UNKNOWN value
178843
+ * @property {number} REAL_TIME_ELIGIBILITY_CHECK_STATUS_SUCCESS=1 REAL_TIME_ELIGIBILITY_CHECK_STATUS_SUCCESS value
178844
+ * @property {number} REAL_TIME_ELIGIBILITY_CHECK_STATUS_COVERAGE_ERROR=2 REAL_TIME_ELIGIBILITY_CHECK_STATUS_COVERAGE_ERROR value
178845
+ * @property {number} REAL_TIME_ELIGIBILITY_CHECK_STATUS_INSURER_ERROR=3 REAL_TIME_ELIGIBILITY_CHECK_STATUS_INSURER_ERROR value
178846
+ */
178847
+ $root.RealTimeEligibilityCheckStatus = (function() {
178848
+ var valuesById = {}, values = Object.create(valuesById);
178849
+ values[valuesById[0] = "REAL_TIME_ELIGIBILITY_CHECK_STATUS_UNKNOWN"] = 0;
178850
+ values[valuesById[1] = "REAL_TIME_ELIGIBILITY_CHECK_STATUS_SUCCESS"] = 1;
178851
+ values[valuesById[2] = "REAL_TIME_ELIGIBILITY_CHECK_STATUS_COVERAGE_ERROR"] = 2;
178852
+ values[valuesById[3] = "REAL_TIME_ELIGIBILITY_CHECK_STATUS_INSURER_ERROR"] = 3;
178853
+ return values;
178854
+ })();
178855
+
178856
+ /**
178857
+ * RealTimeEligibilityCheckCoverageStatus enum.
178858
+ * @name RealTimeEligibilityCheckCoverageStatus
178859
+ * @enum {string}
178860
+ * @property {number} REAL_TIME_ELIGIBILITY_CHECK_COVERAGE_STATUS_UNKNOWN=0 REAL_TIME_ELIGIBILITY_CHECK_COVERAGE_STATUS_UNKNOWN value
178861
+ * @property {number} REAL_TIME_ELIGIBILITY_CHECK_COVERAGE_STATUS_ACTIVE=1 REAL_TIME_ELIGIBILITY_CHECK_COVERAGE_STATUS_ACTIVE value
178862
+ * @property {number} REAL_TIME_ELIGIBILITY_CHECK_COVERAGE_STATUS_INACTIVE=2 REAL_TIME_ELIGIBILITY_CHECK_COVERAGE_STATUS_INACTIVE value
178863
+ */
178864
+ $root.RealTimeEligibilityCheckCoverageStatus = (function() {
178865
+ var valuesById = {}, values = Object.create(valuesById);
178866
+ values[valuesById[0] = "REAL_TIME_ELIGIBILITY_CHECK_COVERAGE_STATUS_UNKNOWN"] = 0;
178867
+ values[valuesById[1] = "REAL_TIME_ELIGIBILITY_CHECK_COVERAGE_STATUS_ACTIVE"] = 1;
178868
+ values[valuesById[2] = "REAL_TIME_ELIGIBILITY_CHECK_COVERAGE_STATUS_INACTIVE"] = 2;
178869
+ return values;
178870
+ })();
178871
+
178872
+ $root.RealTimeEligibilityCheckCompleted = (function() {
178873
+
178874
+ /**
178875
+ * Properties of a RealTimeEligibilityCheckCompleted.
178876
+ * @name IRealTimeEligibilityCheckCompleted
178877
+ * @interface IRealTimeEligibilityCheckCompleted
178878
+ * @property {string|null} [hsUserId] RealTimeEligibilityCheckCompleted hsUserId
178879
+ * @property {string|null} [hsEligibilityRecordUuid] RealTimeEligibilityCheckCompleted hsEligibilityRecordUuid
178880
+ * @property {string|null} [checkRequestId] RealTimeEligibilityCheckCompleted checkRequestId
178881
+ * @property {RealTimeEligibilityCheckStatus|null} [checkStatus] RealTimeEligibilityCheckCompleted checkStatus
178882
+ * @property {RealTimeEligibilityCheckCoverageStatus|null} [coverageStatus] RealTimeEligibilityCheckCompleted coverageStatus
178883
+ */
178884
+
178885
+ /**
178886
+ * Constructs a new RealTimeEligibilityCheckCompleted.
178887
+ * @name RealTimeEligibilityCheckCompleted
178888
+ * @classdesc Represents a RealTimeEligibilityCheckCompleted.
178889
+ * @implements IRealTimeEligibilityCheckCompleted
178890
+ * @constructor
178891
+ * @param {IRealTimeEligibilityCheckCompleted=} [properties] Properties to set
178892
+ */
178893
+ function RealTimeEligibilityCheckCompleted(properties) {
178894
+ if (properties)
178895
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
178896
+ if (properties[keys[i]] != null)
178897
+ this[keys[i]] = properties[keys[i]];
178898
+ }
178899
+
178900
+ /**
178901
+ * RealTimeEligibilityCheckCompleted hsUserId.
178902
+ * @member {string} hsUserId
178903
+ * @memberof RealTimeEligibilityCheckCompleted
178904
+ * @instance
178905
+ */
178906
+ RealTimeEligibilityCheckCompleted.prototype.hsUserId = "";
178907
+
178908
+ /**
178909
+ * RealTimeEligibilityCheckCompleted hsEligibilityRecordUuid.
178910
+ * @member {string} hsEligibilityRecordUuid
178911
+ * @memberof RealTimeEligibilityCheckCompleted
178912
+ * @instance
178913
+ */
178914
+ RealTimeEligibilityCheckCompleted.prototype.hsEligibilityRecordUuid = "";
178915
+
178916
+ /**
178917
+ * RealTimeEligibilityCheckCompleted checkRequestId.
178918
+ * @member {string} checkRequestId
178919
+ * @memberof RealTimeEligibilityCheckCompleted
178920
+ * @instance
178921
+ */
178922
+ RealTimeEligibilityCheckCompleted.prototype.checkRequestId = "";
178923
+
178924
+ /**
178925
+ * RealTimeEligibilityCheckCompleted checkStatus.
178926
+ * @member {RealTimeEligibilityCheckStatus} checkStatus
178927
+ * @memberof RealTimeEligibilityCheckCompleted
178928
+ * @instance
178929
+ */
178930
+ RealTimeEligibilityCheckCompleted.prototype.checkStatus = 0;
178931
+
178932
+ /**
178933
+ * RealTimeEligibilityCheckCompleted coverageStatus.
178934
+ * @member {RealTimeEligibilityCheckCoverageStatus} coverageStatus
178935
+ * @memberof RealTimeEligibilityCheckCompleted
178936
+ * @instance
178937
+ */
178938
+ RealTimeEligibilityCheckCompleted.prototype.coverageStatus = 0;
178939
+
178940
+ /**
178941
+ * Creates a new RealTimeEligibilityCheckCompleted instance using the specified properties.
178942
+ * @function create
178943
+ * @memberof RealTimeEligibilityCheckCompleted
178944
+ * @static
178945
+ * @param {IRealTimeEligibilityCheckCompleted=} [properties] Properties to set
178946
+ * @returns {RealTimeEligibilityCheckCompleted} RealTimeEligibilityCheckCompleted instance
178947
+ */
178948
+ RealTimeEligibilityCheckCompleted.create = function create(properties) {
178949
+ return new RealTimeEligibilityCheckCompleted(properties);
178950
+ };
178951
+
178952
+ /**
178953
+ * Encodes the specified RealTimeEligibilityCheckCompleted message. Does not implicitly {@link RealTimeEligibilityCheckCompleted.verify|verify} messages.
178954
+ * @function encode
178955
+ * @memberof RealTimeEligibilityCheckCompleted
178956
+ * @static
178957
+ * @param {IRealTimeEligibilityCheckCompleted} message RealTimeEligibilityCheckCompleted message or plain object to encode
178958
+ * @param {$protobuf.Writer} [writer] Writer to encode to
178959
+ * @returns {$protobuf.Writer} Writer
178960
+ */
178961
+ RealTimeEligibilityCheckCompleted.encode = function encode(message, writer) {
178962
+ if (!writer)
178963
+ writer = $Writer.create();
178964
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
178965
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
178966
+ if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
178967
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsEligibilityRecordUuid);
178968
+ if (message.checkRequestId != null && message.hasOwnProperty("checkRequestId"))
178969
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.checkRequestId);
178970
+ if (message.checkStatus != null && message.hasOwnProperty("checkStatus"))
178971
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.checkStatus);
178972
+ if (message.coverageStatus != null && message.hasOwnProperty("coverageStatus"))
178973
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.coverageStatus);
178974
+ return writer;
178975
+ };
178976
+
178977
+ /**
178978
+ * Encodes the specified RealTimeEligibilityCheckCompleted message, length delimited. Does not implicitly {@link RealTimeEligibilityCheckCompleted.verify|verify} messages.
178979
+ * @function encodeDelimited
178980
+ * @memberof RealTimeEligibilityCheckCompleted
178981
+ * @static
178982
+ * @param {IRealTimeEligibilityCheckCompleted} message RealTimeEligibilityCheckCompleted message or plain object to encode
178983
+ * @param {$protobuf.Writer} [writer] Writer to encode to
178984
+ * @returns {$protobuf.Writer} Writer
178985
+ */
178986
+ RealTimeEligibilityCheckCompleted.encodeDelimited = function encodeDelimited(message, writer) {
178987
+ return this.encode(message, writer).ldelim();
178988
+ };
178989
+
178990
+ /**
178991
+ * Decodes a RealTimeEligibilityCheckCompleted message from the specified reader or buffer.
178992
+ * @function decode
178993
+ * @memberof RealTimeEligibilityCheckCompleted
178994
+ * @static
178995
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
178996
+ * @param {number} [length] Message length if known beforehand
178997
+ * @returns {RealTimeEligibilityCheckCompleted} RealTimeEligibilityCheckCompleted
178998
+ * @throws {Error} If the payload is not a reader or valid buffer
178999
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
179000
+ */
179001
+ RealTimeEligibilityCheckCompleted.decode = function decode(reader, length) {
179002
+ if (!(reader instanceof $Reader))
179003
+ reader = $Reader.create(reader);
179004
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RealTimeEligibilityCheckCompleted();
179005
+ while (reader.pos < end) {
179006
+ var tag = reader.uint32();
179007
+ switch (tag >>> 3) {
179008
+ case 1:
179009
+ message.hsUserId = reader.string();
179010
+ break;
179011
+ case 2:
179012
+ message.hsEligibilityRecordUuid = reader.string();
179013
+ break;
179014
+ case 3:
179015
+ message.checkRequestId = reader.string();
179016
+ break;
179017
+ case 4:
179018
+ message.checkStatus = reader.int32();
179019
+ break;
179020
+ case 5:
179021
+ message.coverageStatus = reader.int32();
179022
+ break;
179023
+ default:
179024
+ reader.skipType(tag & 7);
179025
+ break;
179026
+ }
179027
+ }
179028
+ return message;
179029
+ };
179030
+
179031
+ /**
179032
+ * Decodes a RealTimeEligibilityCheckCompleted message from the specified reader or buffer, length delimited.
179033
+ * @function decodeDelimited
179034
+ * @memberof RealTimeEligibilityCheckCompleted
179035
+ * @static
179036
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
179037
+ * @returns {RealTimeEligibilityCheckCompleted} RealTimeEligibilityCheckCompleted
179038
+ * @throws {Error} If the payload is not a reader or valid buffer
179039
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
179040
+ */
179041
+ RealTimeEligibilityCheckCompleted.decodeDelimited = function decodeDelimited(reader) {
179042
+ if (!(reader instanceof $Reader))
179043
+ reader = new $Reader(reader);
179044
+ return this.decode(reader, reader.uint32());
179045
+ };
179046
+
179047
+ /**
179048
+ * Verifies a RealTimeEligibilityCheckCompleted message.
179049
+ * @function verify
179050
+ * @memberof RealTimeEligibilityCheckCompleted
179051
+ * @static
179052
+ * @param {Object.<string,*>} message Plain object to verify
179053
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
179054
+ */
179055
+ RealTimeEligibilityCheckCompleted.verify = function verify(message) {
179056
+ if (typeof message !== "object" || message === null)
179057
+ return "object expected";
179058
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
179059
+ if (!$util.isString(message.hsUserId))
179060
+ return "hsUserId: string expected";
179061
+ if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
179062
+ if (!$util.isString(message.hsEligibilityRecordUuid))
179063
+ return "hsEligibilityRecordUuid: string expected";
179064
+ if (message.checkRequestId != null && message.hasOwnProperty("checkRequestId"))
179065
+ if (!$util.isString(message.checkRequestId))
179066
+ return "checkRequestId: string expected";
179067
+ if (message.checkStatus != null && message.hasOwnProperty("checkStatus"))
179068
+ switch (message.checkStatus) {
179069
+ default:
179070
+ return "checkStatus: enum value expected";
179071
+ case 0:
179072
+ case 1:
179073
+ case 2:
179074
+ case 3:
179075
+ break;
179076
+ }
179077
+ if (message.coverageStatus != null && message.hasOwnProperty("coverageStatus"))
179078
+ switch (message.coverageStatus) {
179079
+ default:
179080
+ return "coverageStatus: enum value expected";
179081
+ case 0:
179082
+ case 1:
179083
+ case 2:
179084
+ break;
179085
+ }
179086
+ return null;
179087
+ };
179088
+
179089
+ /**
179090
+ * Creates a RealTimeEligibilityCheckCompleted message from a plain object. Also converts values to their respective internal types.
179091
+ * @function fromObject
179092
+ * @memberof RealTimeEligibilityCheckCompleted
179093
+ * @static
179094
+ * @param {Object.<string,*>} object Plain object
179095
+ * @returns {RealTimeEligibilityCheckCompleted} RealTimeEligibilityCheckCompleted
179096
+ */
179097
+ RealTimeEligibilityCheckCompleted.fromObject = function fromObject(object) {
179098
+ if (object instanceof $root.RealTimeEligibilityCheckCompleted)
179099
+ return object;
179100
+ var message = new $root.RealTimeEligibilityCheckCompleted();
179101
+ if (object.hsUserId != null)
179102
+ message.hsUserId = String(object.hsUserId);
179103
+ if (object.hsEligibilityRecordUuid != null)
179104
+ message.hsEligibilityRecordUuid = String(object.hsEligibilityRecordUuid);
179105
+ if (object.checkRequestId != null)
179106
+ message.checkRequestId = String(object.checkRequestId);
179107
+ switch (object.checkStatus) {
179108
+ case "REAL_TIME_ELIGIBILITY_CHECK_STATUS_UNKNOWN":
179109
+ case 0:
179110
+ message.checkStatus = 0;
179111
+ break;
179112
+ case "REAL_TIME_ELIGIBILITY_CHECK_STATUS_SUCCESS":
179113
+ case 1:
179114
+ message.checkStatus = 1;
179115
+ break;
179116
+ case "REAL_TIME_ELIGIBILITY_CHECK_STATUS_COVERAGE_ERROR":
179117
+ case 2:
179118
+ message.checkStatus = 2;
179119
+ break;
179120
+ case "REAL_TIME_ELIGIBILITY_CHECK_STATUS_INSURER_ERROR":
179121
+ case 3:
179122
+ message.checkStatus = 3;
179123
+ break;
179124
+ }
179125
+ switch (object.coverageStatus) {
179126
+ case "REAL_TIME_ELIGIBILITY_CHECK_COVERAGE_STATUS_UNKNOWN":
179127
+ case 0:
179128
+ message.coverageStatus = 0;
179129
+ break;
179130
+ case "REAL_TIME_ELIGIBILITY_CHECK_COVERAGE_STATUS_ACTIVE":
179131
+ case 1:
179132
+ message.coverageStatus = 1;
179133
+ break;
179134
+ case "REAL_TIME_ELIGIBILITY_CHECK_COVERAGE_STATUS_INACTIVE":
179135
+ case 2:
179136
+ message.coverageStatus = 2;
179137
+ break;
179138
+ }
179139
+ return message;
179140
+ };
179141
+
179142
+ /**
179143
+ * Creates a plain object from a RealTimeEligibilityCheckCompleted message. Also converts values to other types if specified.
179144
+ * @function toObject
179145
+ * @memberof RealTimeEligibilityCheckCompleted
179146
+ * @static
179147
+ * @param {RealTimeEligibilityCheckCompleted} message RealTimeEligibilityCheckCompleted
179148
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
179149
+ * @returns {Object.<string,*>} Plain object
179150
+ */
179151
+ RealTimeEligibilityCheckCompleted.toObject = function toObject(message, options) {
179152
+ if (!options)
179153
+ options = {};
179154
+ var object = {};
179155
+ if (options.defaults) {
179156
+ object.hsUserId = "";
179157
+ object.hsEligibilityRecordUuid = "";
179158
+ object.checkRequestId = "";
179159
+ object.checkStatus = options.enums === String ? "REAL_TIME_ELIGIBILITY_CHECK_STATUS_UNKNOWN" : 0;
179160
+ object.coverageStatus = options.enums === String ? "REAL_TIME_ELIGIBILITY_CHECK_COVERAGE_STATUS_UNKNOWN" : 0;
179161
+ }
179162
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
179163
+ object.hsUserId = message.hsUserId;
179164
+ if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
179165
+ object.hsEligibilityRecordUuid = message.hsEligibilityRecordUuid;
179166
+ if (message.checkRequestId != null && message.hasOwnProperty("checkRequestId"))
179167
+ object.checkRequestId = message.checkRequestId;
179168
+ if (message.checkStatus != null && message.hasOwnProperty("checkStatus"))
179169
+ object.checkStatus = options.enums === String ? $root.RealTimeEligibilityCheckStatus[message.checkStatus] : message.checkStatus;
179170
+ if (message.coverageStatus != null && message.hasOwnProperty("coverageStatus"))
179171
+ object.coverageStatus = options.enums === String ? $root.RealTimeEligibilityCheckCoverageStatus[message.coverageStatus] : message.coverageStatus;
179172
+ return object;
179173
+ };
179174
+
179175
+ /**
179176
+ * Converts this RealTimeEligibilityCheckCompleted to JSON.
179177
+ * @function toJSON
179178
+ * @memberof RealTimeEligibilityCheckCompleted
179179
+ * @instance
179180
+ * @returns {Object.<string,*>} JSON object
179181
+ */
179182
+ RealTimeEligibilityCheckCompleted.prototype.toJSON = function toJSON() {
179183
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
179184
+ };
179185
+
179186
+ return RealTimeEligibilityCheckCompleted;
179187
+ })();
179188
+
178156
179189
  $root.ReferralSignedUp = (function() {
178157
179190
 
178158
179191
  /**