@headspace/protos-events 1.423.0 → 1.424.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
@@ -29188,6 +29188,138 @@ export class EligibilityFileProcessed implements IEligibilityFileProcessed {
29188
29188
  public toJSON(): { [k: string]: any };
29189
29189
  }
29190
29190
 
29191
+ /** Properties of an EligibilityLinked. */
29192
+ export interface IEligibilityLinked {
29193
+
29194
+ /** EligibilityLinked headspaceHealthOrgId */
29195
+ headspaceHealthOrgId?: (string|null);
29196
+
29197
+ /** EligibilityLinked headspaceUserId */
29198
+ headspaceUserId?: (string|null);
29199
+
29200
+ /** EligibilityLinked accountEmail */
29201
+ accountEmail?: (string|null);
29202
+
29203
+ /** EligibilityLinked keyType */
29204
+ keyType?: (KeyType|null);
29205
+
29206
+ /** EligibilityLinked workEmail */
29207
+ workEmail?: (string|null);
29208
+
29209
+ /** EligibilityLinked workId */
29210
+ workId?: (string|null);
29211
+
29212
+ /** EligibilityLinked isUmd */
29213
+ isUmd?: (boolean|null);
29214
+
29215
+ /** EligibilityLinked timestamp */
29216
+ timestamp?: (number|Long|null);
29217
+ }
29218
+
29219
+ /** Represents an EligibilityLinked. */
29220
+ export class EligibilityLinked implements IEligibilityLinked {
29221
+
29222
+ /**
29223
+ * Constructs a new EligibilityLinked.
29224
+ * @param [properties] Properties to set
29225
+ */
29226
+ constructor(properties?: IEligibilityLinked);
29227
+
29228
+ /** EligibilityLinked headspaceHealthOrgId. */
29229
+ public headspaceHealthOrgId: string;
29230
+
29231
+ /** EligibilityLinked headspaceUserId. */
29232
+ public headspaceUserId: string;
29233
+
29234
+ /** EligibilityLinked accountEmail. */
29235
+ public accountEmail: string;
29236
+
29237
+ /** EligibilityLinked keyType. */
29238
+ public keyType: KeyType;
29239
+
29240
+ /** EligibilityLinked workEmail. */
29241
+ public workEmail: string;
29242
+
29243
+ /** EligibilityLinked workId. */
29244
+ public workId: string;
29245
+
29246
+ /** EligibilityLinked isUmd. */
29247
+ public isUmd: boolean;
29248
+
29249
+ /** EligibilityLinked timestamp. */
29250
+ public timestamp: (number|Long);
29251
+
29252
+ /**
29253
+ * Creates a new EligibilityLinked instance using the specified properties.
29254
+ * @param [properties] Properties to set
29255
+ * @returns EligibilityLinked instance
29256
+ */
29257
+ public static create(properties?: IEligibilityLinked): EligibilityLinked;
29258
+
29259
+ /**
29260
+ * Encodes the specified EligibilityLinked message. Does not implicitly {@link EligibilityLinked.verify|verify} messages.
29261
+ * @param message EligibilityLinked message or plain object to encode
29262
+ * @param [writer] Writer to encode to
29263
+ * @returns Writer
29264
+ */
29265
+ public static encode(message: IEligibilityLinked, writer?: $protobuf.Writer): $protobuf.Writer;
29266
+
29267
+ /**
29268
+ * Encodes the specified EligibilityLinked message, length delimited. Does not implicitly {@link EligibilityLinked.verify|verify} messages.
29269
+ * @param message EligibilityLinked message or plain object to encode
29270
+ * @param [writer] Writer to encode to
29271
+ * @returns Writer
29272
+ */
29273
+ public static encodeDelimited(message: IEligibilityLinked, writer?: $protobuf.Writer): $protobuf.Writer;
29274
+
29275
+ /**
29276
+ * Decodes an EligibilityLinked message from the specified reader or buffer.
29277
+ * @param reader Reader or buffer to decode from
29278
+ * @param [length] Message length if known beforehand
29279
+ * @returns EligibilityLinked
29280
+ * @throws {Error} If the payload is not a reader or valid buffer
29281
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29282
+ */
29283
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): EligibilityLinked;
29284
+
29285
+ /**
29286
+ * Decodes an EligibilityLinked message from the specified reader or buffer, length delimited.
29287
+ * @param reader Reader or buffer to decode from
29288
+ * @returns EligibilityLinked
29289
+ * @throws {Error} If the payload is not a reader or valid buffer
29290
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29291
+ */
29292
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): EligibilityLinked;
29293
+
29294
+ /**
29295
+ * Verifies an EligibilityLinked message.
29296
+ * @param message Plain object to verify
29297
+ * @returns `null` if valid, otherwise the reason why it is not
29298
+ */
29299
+ public static verify(message: { [k: string]: any }): (string|null);
29300
+
29301
+ /**
29302
+ * Creates an EligibilityLinked message from a plain object. Also converts values to their respective internal types.
29303
+ * @param object Plain object
29304
+ * @returns EligibilityLinked
29305
+ */
29306
+ public static fromObject(object: { [k: string]: any }): EligibilityLinked;
29307
+
29308
+ /**
29309
+ * Creates a plain object from an EligibilityLinked message. Also converts values to other types if specified.
29310
+ * @param message EligibilityLinked
29311
+ * @param [options] Conversion options
29312
+ * @returns Plain object
29313
+ */
29314
+ public static toObject(message: EligibilityLinked, options?: $protobuf.IConversionOptions): { [k: string]: any };
29315
+
29316
+ /**
29317
+ * Converts this EligibilityLinked to JSON.
29318
+ * @returns JSON object
29319
+ */
29320
+ public toJSON(): { [k: string]: any };
29321
+ }
29322
+
29191
29323
  /** Properties of an Email. */
29192
29324
  export interface IEmail {
29193
29325
 
package/lib/index.js CHANGED
@@ -80912,6 +80912,375 @@ $root.EligibilityFileProcessed = (function() {
80912
80912
  return EligibilityFileProcessed;
80913
80913
  })();
80914
80914
 
80915
+ $root.EligibilityLinked = (function() {
80916
+
80917
+ /**
80918
+ * Properties of an EligibilityLinked.
80919
+ * @exports IEligibilityLinked
80920
+ * @interface IEligibilityLinked
80921
+ * @property {string|null} [headspaceHealthOrgId] EligibilityLinked headspaceHealthOrgId
80922
+ * @property {string|null} [headspaceUserId] EligibilityLinked headspaceUserId
80923
+ * @property {string|null} [accountEmail] EligibilityLinked accountEmail
80924
+ * @property {KeyType|null} [keyType] EligibilityLinked keyType
80925
+ * @property {string|null} [workEmail] EligibilityLinked workEmail
80926
+ * @property {string|null} [workId] EligibilityLinked workId
80927
+ * @property {boolean|null} [isUmd] EligibilityLinked isUmd
80928
+ * @property {number|Long|null} [timestamp] EligibilityLinked timestamp
80929
+ */
80930
+
80931
+ /**
80932
+ * Constructs a new EligibilityLinked.
80933
+ * @exports EligibilityLinked
80934
+ * @classdesc Represents an EligibilityLinked.
80935
+ * @implements IEligibilityLinked
80936
+ * @constructor
80937
+ * @param {IEligibilityLinked=} [properties] Properties to set
80938
+ */
80939
+ function EligibilityLinked(properties) {
80940
+ if (properties)
80941
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
80942
+ if (properties[keys[i]] != null)
80943
+ this[keys[i]] = properties[keys[i]];
80944
+ }
80945
+
80946
+ /**
80947
+ * EligibilityLinked headspaceHealthOrgId.
80948
+ * @member {string} headspaceHealthOrgId
80949
+ * @memberof EligibilityLinked
80950
+ * @instance
80951
+ */
80952
+ EligibilityLinked.prototype.headspaceHealthOrgId = "";
80953
+
80954
+ /**
80955
+ * EligibilityLinked headspaceUserId.
80956
+ * @member {string} headspaceUserId
80957
+ * @memberof EligibilityLinked
80958
+ * @instance
80959
+ */
80960
+ EligibilityLinked.prototype.headspaceUserId = "";
80961
+
80962
+ /**
80963
+ * EligibilityLinked accountEmail.
80964
+ * @member {string} accountEmail
80965
+ * @memberof EligibilityLinked
80966
+ * @instance
80967
+ */
80968
+ EligibilityLinked.prototype.accountEmail = "";
80969
+
80970
+ /**
80971
+ * EligibilityLinked keyType.
80972
+ * @member {KeyType} keyType
80973
+ * @memberof EligibilityLinked
80974
+ * @instance
80975
+ */
80976
+ EligibilityLinked.prototype.keyType = 0;
80977
+
80978
+ /**
80979
+ * EligibilityLinked workEmail.
80980
+ * @member {string} workEmail
80981
+ * @memberof EligibilityLinked
80982
+ * @instance
80983
+ */
80984
+ EligibilityLinked.prototype.workEmail = "";
80985
+
80986
+ /**
80987
+ * EligibilityLinked workId.
80988
+ * @member {string} workId
80989
+ * @memberof EligibilityLinked
80990
+ * @instance
80991
+ */
80992
+ EligibilityLinked.prototype.workId = "";
80993
+
80994
+ /**
80995
+ * EligibilityLinked isUmd.
80996
+ * @member {boolean} isUmd
80997
+ * @memberof EligibilityLinked
80998
+ * @instance
80999
+ */
81000
+ EligibilityLinked.prototype.isUmd = false;
81001
+
81002
+ /**
81003
+ * EligibilityLinked timestamp.
81004
+ * @member {number|Long} timestamp
81005
+ * @memberof EligibilityLinked
81006
+ * @instance
81007
+ */
81008
+ EligibilityLinked.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
81009
+
81010
+ /**
81011
+ * Creates a new EligibilityLinked instance using the specified properties.
81012
+ * @function create
81013
+ * @memberof EligibilityLinked
81014
+ * @static
81015
+ * @param {IEligibilityLinked=} [properties] Properties to set
81016
+ * @returns {EligibilityLinked} EligibilityLinked instance
81017
+ */
81018
+ EligibilityLinked.create = function create(properties) {
81019
+ return new EligibilityLinked(properties);
81020
+ };
81021
+
81022
+ /**
81023
+ * Encodes the specified EligibilityLinked message. Does not implicitly {@link EligibilityLinked.verify|verify} messages.
81024
+ * @function encode
81025
+ * @memberof EligibilityLinked
81026
+ * @static
81027
+ * @param {IEligibilityLinked} message EligibilityLinked message or plain object to encode
81028
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81029
+ * @returns {$protobuf.Writer} Writer
81030
+ */
81031
+ EligibilityLinked.encode = function encode(message, writer) {
81032
+ if (!writer)
81033
+ writer = $Writer.create();
81034
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
81035
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.headspaceHealthOrgId);
81036
+ if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
81037
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.headspaceUserId);
81038
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
81039
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.keyType);
81040
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
81041
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.workEmail);
81042
+ if (message.workId != null && message.hasOwnProperty("workId"))
81043
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.workId);
81044
+ if (message.accountEmail != null && message.hasOwnProperty("accountEmail"))
81045
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.accountEmail);
81046
+ if (message.isUmd != null && message.hasOwnProperty("isUmd"))
81047
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.isUmd);
81048
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
81049
+ writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.timestamp);
81050
+ return writer;
81051
+ };
81052
+
81053
+ /**
81054
+ * Encodes the specified EligibilityLinked message, length delimited. Does not implicitly {@link EligibilityLinked.verify|verify} messages.
81055
+ * @function encodeDelimited
81056
+ * @memberof EligibilityLinked
81057
+ * @static
81058
+ * @param {IEligibilityLinked} message EligibilityLinked message or plain object to encode
81059
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81060
+ * @returns {$protobuf.Writer} Writer
81061
+ */
81062
+ EligibilityLinked.encodeDelimited = function encodeDelimited(message, writer) {
81063
+ return this.encode(message, writer).ldelim();
81064
+ };
81065
+
81066
+ /**
81067
+ * Decodes an EligibilityLinked message from the specified reader or buffer.
81068
+ * @function decode
81069
+ * @memberof EligibilityLinked
81070
+ * @static
81071
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81072
+ * @param {number} [length] Message length if known beforehand
81073
+ * @returns {EligibilityLinked} EligibilityLinked
81074
+ * @throws {Error} If the payload is not a reader or valid buffer
81075
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81076
+ */
81077
+ EligibilityLinked.decode = function decode(reader, length) {
81078
+ if (!(reader instanceof $Reader))
81079
+ reader = $Reader.create(reader);
81080
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EligibilityLinked();
81081
+ while (reader.pos < end) {
81082
+ var tag = reader.uint32();
81083
+ switch (tag >>> 3) {
81084
+ case 1:
81085
+ message.headspaceHealthOrgId = reader.string();
81086
+ break;
81087
+ case 2:
81088
+ message.headspaceUserId = reader.string();
81089
+ break;
81090
+ case 6:
81091
+ message.accountEmail = reader.string();
81092
+ break;
81093
+ case 3:
81094
+ message.keyType = reader.int32();
81095
+ break;
81096
+ case 4:
81097
+ message.workEmail = reader.string();
81098
+ break;
81099
+ case 5:
81100
+ message.workId = reader.string();
81101
+ break;
81102
+ case 7:
81103
+ message.isUmd = reader.bool();
81104
+ break;
81105
+ case 8:
81106
+ message.timestamp = reader.uint64();
81107
+ break;
81108
+ default:
81109
+ reader.skipType(tag & 7);
81110
+ break;
81111
+ }
81112
+ }
81113
+ return message;
81114
+ };
81115
+
81116
+ /**
81117
+ * Decodes an EligibilityLinked message from the specified reader or buffer, length delimited.
81118
+ * @function decodeDelimited
81119
+ * @memberof EligibilityLinked
81120
+ * @static
81121
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81122
+ * @returns {EligibilityLinked} EligibilityLinked
81123
+ * @throws {Error} If the payload is not a reader or valid buffer
81124
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81125
+ */
81126
+ EligibilityLinked.decodeDelimited = function decodeDelimited(reader) {
81127
+ if (!(reader instanceof $Reader))
81128
+ reader = new $Reader(reader);
81129
+ return this.decode(reader, reader.uint32());
81130
+ };
81131
+
81132
+ /**
81133
+ * Verifies an EligibilityLinked message.
81134
+ * @function verify
81135
+ * @memberof EligibilityLinked
81136
+ * @static
81137
+ * @param {Object.<string,*>} message Plain object to verify
81138
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
81139
+ */
81140
+ EligibilityLinked.verify = function verify(message) {
81141
+ if (typeof message !== "object" || message === null)
81142
+ return "object expected";
81143
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
81144
+ if (!$util.isString(message.headspaceHealthOrgId))
81145
+ return "headspaceHealthOrgId: string expected";
81146
+ if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
81147
+ if (!$util.isString(message.headspaceUserId))
81148
+ return "headspaceUserId: string expected";
81149
+ if (message.accountEmail != null && message.hasOwnProperty("accountEmail"))
81150
+ if (!$util.isString(message.accountEmail))
81151
+ return "accountEmail: string expected";
81152
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
81153
+ switch (message.keyType) {
81154
+ default:
81155
+ return "keyType: enum value expected";
81156
+ case 0:
81157
+ case 1:
81158
+ break;
81159
+ }
81160
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
81161
+ if (!$util.isString(message.workEmail))
81162
+ return "workEmail: string expected";
81163
+ if (message.workId != null && message.hasOwnProperty("workId"))
81164
+ if (!$util.isString(message.workId))
81165
+ return "workId: string expected";
81166
+ if (message.isUmd != null && message.hasOwnProperty("isUmd"))
81167
+ if (typeof message.isUmd !== "boolean")
81168
+ return "isUmd: boolean expected";
81169
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
81170
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
81171
+ return "timestamp: integer|Long expected";
81172
+ return null;
81173
+ };
81174
+
81175
+ /**
81176
+ * Creates an EligibilityLinked message from a plain object. Also converts values to their respective internal types.
81177
+ * @function fromObject
81178
+ * @memberof EligibilityLinked
81179
+ * @static
81180
+ * @param {Object.<string,*>} object Plain object
81181
+ * @returns {EligibilityLinked} EligibilityLinked
81182
+ */
81183
+ EligibilityLinked.fromObject = function fromObject(object) {
81184
+ if (object instanceof $root.EligibilityLinked)
81185
+ return object;
81186
+ var message = new $root.EligibilityLinked();
81187
+ if (object.headspaceHealthOrgId != null)
81188
+ message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
81189
+ if (object.headspaceUserId != null)
81190
+ message.headspaceUserId = String(object.headspaceUserId);
81191
+ if (object.accountEmail != null)
81192
+ message.accountEmail = String(object.accountEmail);
81193
+ switch (object.keyType) {
81194
+ case "WORK_ID":
81195
+ case 0:
81196
+ message.keyType = 0;
81197
+ break;
81198
+ case "WORK_EMAIL":
81199
+ case 1:
81200
+ message.keyType = 1;
81201
+ break;
81202
+ }
81203
+ if (object.workEmail != null)
81204
+ message.workEmail = String(object.workEmail);
81205
+ if (object.workId != null)
81206
+ message.workId = String(object.workId);
81207
+ if (object.isUmd != null)
81208
+ message.isUmd = Boolean(object.isUmd);
81209
+ if (object.timestamp != null)
81210
+ if ($util.Long)
81211
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
81212
+ else if (typeof object.timestamp === "string")
81213
+ message.timestamp = parseInt(object.timestamp, 10);
81214
+ else if (typeof object.timestamp === "number")
81215
+ message.timestamp = object.timestamp;
81216
+ else if (typeof object.timestamp === "object")
81217
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
81218
+ return message;
81219
+ };
81220
+
81221
+ /**
81222
+ * Creates a plain object from an EligibilityLinked message. Also converts values to other types if specified.
81223
+ * @function toObject
81224
+ * @memberof EligibilityLinked
81225
+ * @static
81226
+ * @param {EligibilityLinked} message EligibilityLinked
81227
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
81228
+ * @returns {Object.<string,*>} Plain object
81229
+ */
81230
+ EligibilityLinked.toObject = function toObject(message, options) {
81231
+ if (!options)
81232
+ options = {};
81233
+ var object = {};
81234
+ if (options.defaults) {
81235
+ object.headspaceHealthOrgId = "";
81236
+ object.headspaceUserId = "";
81237
+ object.keyType = options.enums === String ? "WORK_ID" : 0;
81238
+ object.workEmail = "";
81239
+ object.workId = "";
81240
+ object.accountEmail = "";
81241
+ object.isUmd = false;
81242
+ if ($util.Long) {
81243
+ var long = new $util.Long(0, 0, true);
81244
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
81245
+ } else
81246
+ object.timestamp = options.longs === String ? "0" : 0;
81247
+ }
81248
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
81249
+ object.headspaceHealthOrgId = message.headspaceHealthOrgId;
81250
+ if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
81251
+ object.headspaceUserId = message.headspaceUserId;
81252
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
81253
+ object.keyType = options.enums === String ? $root.KeyType[message.keyType] : message.keyType;
81254
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
81255
+ object.workEmail = message.workEmail;
81256
+ if (message.workId != null && message.hasOwnProperty("workId"))
81257
+ object.workId = message.workId;
81258
+ if (message.accountEmail != null && message.hasOwnProperty("accountEmail"))
81259
+ object.accountEmail = message.accountEmail;
81260
+ if (message.isUmd != null && message.hasOwnProperty("isUmd"))
81261
+ object.isUmd = message.isUmd;
81262
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
81263
+ if (typeof message.timestamp === "number")
81264
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
81265
+ else
81266
+ 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;
81267
+ return object;
81268
+ };
81269
+
81270
+ /**
81271
+ * Converts this EligibilityLinked to JSON.
81272
+ * @function toJSON
81273
+ * @memberof EligibilityLinked
81274
+ * @instance
81275
+ * @returns {Object.<string,*>} JSON object
81276
+ */
81277
+ EligibilityLinked.prototype.toJSON = function toJSON() {
81278
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
81279
+ };
81280
+
81281
+ return EligibilityLinked;
81282
+ })();
81283
+
80915
81284
  $root.Email = (function() {
80916
81285
 
80917
81286
  /**
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.423.0"
19
+ "version": "1.424.0"
20
20
  }