@headspace/protos-events 1.283.0 → 1.284.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
@@ -26077,6 +26077,240 @@ export class RecommendationMindsetUpdated implements IRecommendationMindsetUpdat
26077
26077
  public toJSON(): { [k: string]: any };
26078
26078
  }
26079
26079
 
26080
+ /** Properties of an EligibilityFileProcessed. */
26081
+ export interface IEligibilityFileProcessed {
26082
+
26083
+ /** EligibilityFileProcessed email */
26084
+ email?: (IEmail|null);
26085
+
26086
+ /** EligibilityFileProcessed orgName */
26087
+ orgName?: (string|null);
26088
+
26089
+ /** EligibilityFileProcessed elfName */
26090
+ elfName?: (string|null);
26091
+
26092
+ /** EligibilityFileProcessed timestampProcessedEpochMs */
26093
+ timestampProcessedEpochMs?: (number|Long|null);
26094
+
26095
+ /** EligibilityFileProcessed elfStatus */
26096
+ elfStatus?: (string|null);
26097
+
26098
+ /** EligibilityFileProcessed numDupedEmails */
26099
+ numDupedEmails?: (number|null);
26100
+
26101
+ /** EligibilityFileProcessed numBadEmails */
26102
+ numBadEmails?: (number|null);
26103
+
26104
+ /** EligibilityFileProcessed numMembersRemoved */
26105
+ numMembersRemoved?: (number|null);
26106
+ }
26107
+
26108
+ /** Represents an EligibilityFileProcessed. */
26109
+ export class EligibilityFileProcessed implements IEligibilityFileProcessed {
26110
+
26111
+ /**
26112
+ * Constructs a new EligibilityFileProcessed.
26113
+ * @param [properties] Properties to set
26114
+ */
26115
+ constructor(properties?: IEligibilityFileProcessed);
26116
+
26117
+ /** EligibilityFileProcessed email. */
26118
+ public email?: (IEmail|null);
26119
+
26120
+ /** EligibilityFileProcessed orgName. */
26121
+ public orgName: string;
26122
+
26123
+ /** EligibilityFileProcessed elfName. */
26124
+ public elfName: string;
26125
+
26126
+ /** EligibilityFileProcessed timestampProcessedEpochMs. */
26127
+ public timestampProcessedEpochMs: (number|Long);
26128
+
26129
+ /** EligibilityFileProcessed elfStatus. */
26130
+ public elfStatus: string;
26131
+
26132
+ /** EligibilityFileProcessed numDupedEmails. */
26133
+ public numDupedEmails: number;
26134
+
26135
+ /** EligibilityFileProcessed numBadEmails. */
26136
+ public numBadEmails: number;
26137
+
26138
+ /** EligibilityFileProcessed numMembersRemoved. */
26139
+ public numMembersRemoved: number;
26140
+
26141
+ /**
26142
+ * Creates a new EligibilityFileProcessed instance using the specified properties.
26143
+ * @param [properties] Properties to set
26144
+ * @returns EligibilityFileProcessed instance
26145
+ */
26146
+ public static create(properties?: IEligibilityFileProcessed): EligibilityFileProcessed;
26147
+
26148
+ /**
26149
+ * Encodes the specified EligibilityFileProcessed message. Does not implicitly {@link EligibilityFileProcessed.verify|verify} messages.
26150
+ * @param message EligibilityFileProcessed message or plain object to encode
26151
+ * @param [writer] Writer to encode to
26152
+ * @returns Writer
26153
+ */
26154
+ public static encode(message: IEligibilityFileProcessed, writer?: $protobuf.Writer): $protobuf.Writer;
26155
+
26156
+ /**
26157
+ * Encodes the specified EligibilityFileProcessed message, length delimited. Does not implicitly {@link EligibilityFileProcessed.verify|verify} messages.
26158
+ * @param message EligibilityFileProcessed message or plain object to encode
26159
+ * @param [writer] Writer to encode to
26160
+ * @returns Writer
26161
+ */
26162
+ public static encodeDelimited(message: IEligibilityFileProcessed, writer?: $protobuf.Writer): $protobuf.Writer;
26163
+
26164
+ /**
26165
+ * Decodes an EligibilityFileProcessed message from the specified reader or buffer.
26166
+ * @param reader Reader or buffer to decode from
26167
+ * @param [length] Message length if known beforehand
26168
+ * @returns EligibilityFileProcessed
26169
+ * @throws {Error} If the payload is not a reader or valid buffer
26170
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26171
+ */
26172
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): EligibilityFileProcessed;
26173
+
26174
+ /**
26175
+ * Decodes an EligibilityFileProcessed message from the specified reader or buffer, length delimited.
26176
+ * @param reader Reader or buffer to decode from
26177
+ * @returns EligibilityFileProcessed
26178
+ * @throws {Error} If the payload is not a reader or valid buffer
26179
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26180
+ */
26181
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): EligibilityFileProcessed;
26182
+
26183
+ /**
26184
+ * Verifies an EligibilityFileProcessed message.
26185
+ * @param message Plain object to verify
26186
+ * @returns `null` if valid, otherwise the reason why it is not
26187
+ */
26188
+ public static verify(message: { [k: string]: any }): (string|null);
26189
+
26190
+ /**
26191
+ * Creates an EligibilityFileProcessed message from a plain object. Also converts values to their respective internal types.
26192
+ * @param object Plain object
26193
+ * @returns EligibilityFileProcessed
26194
+ */
26195
+ public static fromObject(object: { [k: string]: any }): EligibilityFileProcessed;
26196
+
26197
+ /**
26198
+ * Creates a plain object from an EligibilityFileProcessed message. Also converts values to other types if specified.
26199
+ * @param message EligibilityFileProcessed
26200
+ * @param [options] Conversion options
26201
+ * @returns Plain object
26202
+ */
26203
+ public static toObject(message: EligibilityFileProcessed, options?: $protobuf.IConversionOptions): { [k: string]: any };
26204
+
26205
+ /**
26206
+ * Converts this EligibilityFileProcessed to JSON.
26207
+ * @returns JSON object
26208
+ */
26209
+ public toJSON(): { [k: string]: any };
26210
+ }
26211
+
26212
+ /** Properties of an Email. */
26213
+ export interface IEmail {
26214
+
26215
+ /** Email subjectLine */
26216
+ subjectLine?: (string|null);
26217
+
26218
+ /** Email message */
26219
+ message?: (string|null);
26220
+
26221
+ /** Email adminIds */
26222
+ adminIds?: (number[]|null);
26223
+ }
26224
+
26225
+ /** Represents an Email. */
26226
+ export class Email implements IEmail {
26227
+
26228
+ /**
26229
+ * Constructs a new Email.
26230
+ * @param [properties] Properties to set
26231
+ */
26232
+ constructor(properties?: IEmail);
26233
+
26234
+ /** Email subjectLine. */
26235
+ public subjectLine: string;
26236
+
26237
+ /** Email message. */
26238
+ public message: string;
26239
+
26240
+ /** Email adminIds. */
26241
+ public adminIds: number[];
26242
+
26243
+ /**
26244
+ * Creates a new Email instance using the specified properties.
26245
+ * @param [properties] Properties to set
26246
+ * @returns Email instance
26247
+ */
26248
+ public static create(properties?: IEmail): Email;
26249
+
26250
+ /**
26251
+ * Encodes the specified Email message. Does not implicitly {@link Email.verify|verify} messages.
26252
+ * @param message Email message or plain object to encode
26253
+ * @param [writer] Writer to encode to
26254
+ * @returns Writer
26255
+ */
26256
+ public static encode(message: IEmail, writer?: $protobuf.Writer): $protobuf.Writer;
26257
+
26258
+ /**
26259
+ * Encodes the specified Email message, length delimited. Does not implicitly {@link Email.verify|verify} messages.
26260
+ * @param message Email message or plain object to encode
26261
+ * @param [writer] Writer to encode to
26262
+ * @returns Writer
26263
+ */
26264
+ public static encodeDelimited(message: IEmail, writer?: $protobuf.Writer): $protobuf.Writer;
26265
+
26266
+ /**
26267
+ * Decodes an Email message from the specified reader or buffer.
26268
+ * @param reader Reader or buffer to decode from
26269
+ * @param [length] Message length if known beforehand
26270
+ * @returns Email
26271
+ * @throws {Error} If the payload is not a reader or valid buffer
26272
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26273
+ */
26274
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Email;
26275
+
26276
+ /**
26277
+ * Decodes an Email message from the specified reader or buffer, length delimited.
26278
+ * @param reader Reader or buffer to decode from
26279
+ * @returns Email
26280
+ * @throws {Error} If the payload is not a reader or valid buffer
26281
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26282
+ */
26283
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Email;
26284
+
26285
+ /**
26286
+ * Verifies an Email message.
26287
+ * @param message Plain object to verify
26288
+ * @returns `null` if valid, otherwise the reason why it is not
26289
+ */
26290
+ public static verify(message: { [k: string]: any }): (string|null);
26291
+
26292
+ /**
26293
+ * Creates an Email message from a plain object. Also converts values to their respective internal types.
26294
+ * @param object Plain object
26295
+ * @returns Email
26296
+ */
26297
+ public static fromObject(object: { [k: string]: any }): Email;
26298
+
26299
+ /**
26300
+ * Creates a plain object from an Email message. Also converts values to other types if specified.
26301
+ * @param message Email
26302
+ * @param [options] Conversion options
26303
+ * @returns Plain object
26304
+ */
26305
+ public static toObject(message: Email, options?: $protobuf.IConversionOptions): { [k: string]: any };
26306
+
26307
+ /**
26308
+ * Converts this Email to JSON.
26309
+ * @returns JSON object
26310
+ */
26311
+ public toJSON(): { [k: string]: any };
26312
+ }
26313
+
26080
26314
  /** Properties of a GracefulExitCompleted. */
26081
26315
  export interface IGracefulExitCompleted {
26082
26316
 
package/lib/index.js CHANGED
@@ -70892,6 +70892,624 @@ $root.RecommendationMindsetUpdated = (function() {
70892
70892
  return RecommendationMindsetUpdated;
70893
70893
  })();
70894
70894
 
70895
+ $root.EligibilityFileProcessed = (function() {
70896
+
70897
+ /**
70898
+ * Properties of an EligibilityFileProcessed.
70899
+ * @exports IEligibilityFileProcessed
70900
+ * @interface IEligibilityFileProcessed
70901
+ * @property {IEmail|null} [email] EligibilityFileProcessed email
70902
+ * @property {string|null} [orgName] EligibilityFileProcessed orgName
70903
+ * @property {string|null} [elfName] EligibilityFileProcessed elfName
70904
+ * @property {number|Long|null} [timestampProcessedEpochMs] EligibilityFileProcessed timestampProcessedEpochMs
70905
+ * @property {string|null} [elfStatus] EligibilityFileProcessed elfStatus
70906
+ * @property {number|null} [numDupedEmails] EligibilityFileProcessed numDupedEmails
70907
+ * @property {number|null} [numBadEmails] EligibilityFileProcessed numBadEmails
70908
+ * @property {number|null} [numMembersRemoved] EligibilityFileProcessed numMembersRemoved
70909
+ */
70910
+
70911
+ /**
70912
+ * Constructs a new EligibilityFileProcessed.
70913
+ * @exports EligibilityFileProcessed
70914
+ * @classdesc Represents an EligibilityFileProcessed.
70915
+ * @implements IEligibilityFileProcessed
70916
+ * @constructor
70917
+ * @param {IEligibilityFileProcessed=} [properties] Properties to set
70918
+ */
70919
+ function EligibilityFileProcessed(properties) {
70920
+ if (properties)
70921
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
70922
+ if (properties[keys[i]] != null)
70923
+ this[keys[i]] = properties[keys[i]];
70924
+ }
70925
+
70926
+ /**
70927
+ * EligibilityFileProcessed email.
70928
+ * @member {IEmail|null|undefined} email
70929
+ * @memberof EligibilityFileProcessed
70930
+ * @instance
70931
+ */
70932
+ EligibilityFileProcessed.prototype.email = null;
70933
+
70934
+ /**
70935
+ * EligibilityFileProcessed orgName.
70936
+ * @member {string} orgName
70937
+ * @memberof EligibilityFileProcessed
70938
+ * @instance
70939
+ */
70940
+ EligibilityFileProcessed.prototype.orgName = "";
70941
+
70942
+ /**
70943
+ * EligibilityFileProcessed elfName.
70944
+ * @member {string} elfName
70945
+ * @memberof EligibilityFileProcessed
70946
+ * @instance
70947
+ */
70948
+ EligibilityFileProcessed.prototype.elfName = "";
70949
+
70950
+ /**
70951
+ * EligibilityFileProcessed timestampProcessedEpochMs.
70952
+ * @member {number|Long} timestampProcessedEpochMs
70953
+ * @memberof EligibilityFileProcessed
70954
+ * @instance
70955
+ */
70956
+ EligibilityFileProcessed.prototype.timestampProcessedEpochMs = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
70957
+
70958
+ /**
70959
+ * EligibilityFileProcessed elfStatus.
70960
+ * @member {string} elfStatus
70961
+ * @memberof EligibilityFileProcessed
70962
+ * @instance
70963
+ */
70964
+ EligibilityFileProcessed.prototype.elfStatus = "";
70965
+
70966
+ /**
70967
+ * EligibilityFileProcessed numDupedEmails.
70968
+ * @member {number} numDupedEmails
70969
+ * @memberof EligibilityFileProcessed
70970
+ * @instance
70971
+ */
70972
+ EligibilityFileProcessed.prototype.numDupedEmails = 0;
70973
+
70974
+ /**
70975
+ * EligibilityFileProcessed numBadEmails.
70976
+ * @member {number} numBadEmails
70977
+ * @memberof EligibilityFileProcessed
70978
+ * @instance
70979
+ */
70980
+ EligibilityFileProcessed.prototype.numBadEmails = 0;
70981
+
70982
+ /**
70983
+ * EligibilityFileProcessed numMembersRemoved.
70984
+ * @member {number} numMembersRemoved
70985
+ * @memberof EligibilityFileProcessed
70986
+ * @instance
70987
+ */
70988
+ EligibilityFileProcessed.prototype.numMembersRemoved = 0;
70989
+
70990
+ /**
70991
+ * Creates a new EligibilityFileProcessed instance using the specified properties.
70992
+ * @function create
70993
+ * @memberof EligibilityFileProcessed
70994
+ * @static
70995
+ * @param {IEligibilityFileProcessed=} [properties] Properties to set
70996
+ * @returns {EligibilityFileProcessed} EligibilityFileProcessed instance
70997
+ */
70998
+ EligibilityFileProcessed.create = function create(properties) {
70999
+ return new EligibilityFileProcessed(properties);
71000
+ };
71001
+
71002
+ /**
71003
+ * Encodes the specified EligibilityFileProcessed message. Does not implicitly {@link EligibilityFileProcessed.verify|verify} messages.
71004
+ * @function encode
71005
+ * @memberof EligibilityFileProcessed
71006
+ * @static
71007
+ * @param {IEligibilityFileProcessed} message EligibilityFileProcessed message or plain object to encode
71008
+ * @param {$protobuf.Writer} [writer] Writer to encode to
71009
+ * @returns {$protobuf.Writer} Writer
71010
+ */
71011
+ EligibilityFileProcessed.encode = function encode(message, writer) {
71012
+ if (!writer)
71013
+ writer = $Writer.create();
71014
+ if (message.email != null && message.hasOwnProperty("email"))
71015
+ $root.Email.encode(message.email, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
71016
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
71017
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.orgName);
71018
+ if (message.elfName != null && message.hasOwnProperty("elfName"))
71019
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.elfName);
71020
+ if (message.timestampProcessedEpochMs != null && message.hasOwnProperty("timestampProcessedEpochMs"))
71021
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestampProcessedEpochMs);
71022
+ if (message.elfStatus != null && message.hasOwnProperty("elfStatus"))
71023
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.elfStatus);
71024
+ if (message.numDupedEmails != null && message.hasOwnProperty("numDupedEmails"))
71025
+ writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.numDupedEmails);
71026
+ if (message.numBadEmails != null && message.hasOwnProperty("numBadEmails"))
71027
+ writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.numBadEmails);
71028
+ if (message.numMembersRemoved != null && message.hasOwnProperty("numMembersRemoved"))
71029
+ writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.numMembersRemoved);
71030
+ return writer;
71031
+ };
71032
+
71033
+ /**
71034
+ * Encodes the specified EligibilityFileProcessed message, length delimited. Does not implicitly {@link EligibilityFileProcessed.verify|verify} messages.
71035
+ * @function encodeDelimited
71036
+ * @memberof EligibilityFileProcessed
71037
+ * @static
71038
+ * @param {IEligibilityFileProcessed} message EligibilityFileProcessed message or plain object to encode
71039
+ * @param {$protobuf.Writer} [writer] Writer to encode to
71040
+ * @returns {$protobuf.Writer} Writer
71041
+ */
71042
+ EligibilityFileProcessed.encodeDelimited = function encodeDelimited(message, writer) {
71043
+ return this.encode(message, writer).ldelim();
71044
+ };
71045
+
71046
+ /**
71047
+ * Decodes an EligibilityFileProcessed message from the specified reader or buffer.
71048
+ * @function decode
71049
+ * @memberof EligibilityFileProcessed
71050
+ * @static
71051
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71052
+ * @param {number} [length] Message length if known beforehand
71053
+ * @returns {EligibilityFileProcessed} EligibilityFileProcessed
71054
+ * @throws {Error} If the payload is not a reader or valid buffer
71055
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
71056
+ */
71057
+ EligibilityFileProcessed.decode = function decode(reader, length) {
71058
+ if (!(reader instanceof $Reader))
71059
+ reader = $Reader.create(reader);
71060
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EligibilityFileProcessed();
71061
+ while (reader.pos < end) {
71062
+ var tag = reader.uint32();
71063
+ switch (tag >>> 3) {
71064
+ case 1:
71065
+ message.email = $root.Email.decode(reader, reader.uint32());
71066
+ break;
71067
+ case 2:
71068
+ message.orgName = reader.string();
71069
+ break;
71070
+ case 3:
71071
+ message.elfName = reader.string();
71072
+ break;
71073
+ case 4:
71074
+ message.timestampProcessedEpochMs = reader.uint64();
71075
+ break;
71076
+ case 5:
71077
+ message.elfStatus = reader.string();
71078
+ break;
71079
+ case 6:
71080
+ message.numDupedEmails = reader.uint32();
71081
+ break;
71082
+ case 7:
71083
+ message.numBadEmails = reader.uint32();
71084
+ break;
71085
+ case 8:
71086
+ message.numMembersRemoved = reader.uint32();
71087
+ break;
71088
+ default:
71089
+ reader.skipType(tag & 7);
71090
+ break;
71091
+ }
71092
+ }
71093
+ return message;
71094
+ };
71095
+
71096
+ /**
71097
+ * Decodes an EligibilityFileProcessed message from the specified reader or buffer, length delimited.
71098
+ * @function decodeDelimited
71099
+ * @memberof EligibilityFileProcessed
71100
+ * @static
71101
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71102
+ * @returns {EligibilityFileProcessed} EligibilityFileProcessed
71103
+ * @throws {Error} If the payload is not a reader or valid buffer
71104
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
71105
+ */
71106
+ EligibilityFileProcessed.decodeDelimited = function decodeDelimited(reader) {
71107
+ if (!(reader instanceof $Reader))
71108
+ reader = new $Reader(reader);
71109
+ return this.decode(reader, reader.uint32());
71110
+ };
71111
+
71112
+ /**
71113
+ * Verifies an EligibilityFileProcessed message.
71114
+ * @function verify
71115
+ * @memberof EligibilityFileProcessed
71116
+ * @static
71117
+ * @param {Object.<string,*>} message Plain object to verify
71118
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
71119
+ */
71120
+ EligibilityFileProcessed.verify = function verify(message) {
71121
+ if (typeof message !== "object" || message === null)
71122
+ return "object expected";
71123
+ if (message.email != null && message.hasOwnProperty("email")) {
71124
+ var error = $root.Email.verify(message.email);
71125
+ if (error)
71126
+ return "email." + error;
71127
+ }
71128
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
71129
+ if (!$util.isString(message.orgName))
71130
+ return "orgName: string expected";
71131
+ if (message.elfName != null && message.hasOwnProperty("elfName"))
71132
+ if (!$util.isString(message.elfName))
71133
+ return "elfName: string expected";
71134
+ if (message.timestampProcessedEpochMs != null && message.hasOwnProperty("timestampProcessedEpochMs"))
71135
+ if (!$util.isInteger(message.timestampProcessedEpochMs) && !(message.timestampProcessedEpochMs && $util.isInteger(message.timestampProcessedEpochMs.low) && $util.isInteger(message.timestampProcessedEpochMs.high)))
71136
+ return "timestampProcessedEpochMs: integer|Long expected";
71137
+ if (message.elfStatus != null && message.hasOwnProperty("elfStatus"))
71138
+ if (!$util.isString(message.elfStatus))
71139
+ return "elfStatus: string expected";
71140
+ if (message.numDupedEmails != null && message.hasOwnProperty("numDupedEmails"))
71141
+ if (!$util.isInteger(message.numDupedEmails))
71142
+ return "numDupedEmails: integer expected";
71143
+ if (message.numBadEmails != null && message.hasOwnProperty("numBadEmails"))
71144
+ if (!$util.isInteger(message.numBadEmails))
71145
+ return "numBadEmails: integer expected";
71146
+ if (message.numMembersRemoved != null && message.hasOwnProperty("numMembersRemoved"))
71147
+ if (!$util.isInteger(message.numMembersRemoved))
71148
+ return "numMembersRemoved: integer expected";
71149
+ return null;
71150
+ };
71151
+
71152
+ /**
71153
+ * Creates an EligibilityFileProcessed message from a plain object. Also converts values to their respective internal types.
71154
+ * @function fromObject
71155
+ * @memberof EligibilityFileProcessed
71156
+ * @static
71157
+ * @param {Object.<string,*>} object Plain object
71158
+ * @returns {EligibilityFileProcessed} EligibilityFileProcessed
71159
+ */
71160
+ EligibilityFileProcessed.fromObject = function fromObject(object) {
71161
+ if (object instanceof $root.EligibilityFileProcessed)
71162
+ return object;
71163
+ var message = new $root.EligibilityFileProcessed();
71164
+ if (object.email != null) {
71165
+ if (typeof object.email !== "object")
71166
+ throw TypeError(".EligibilityFileProcessed.email: object expected");
71167
+ message.email = $root.Email.fromObject(object.email);
71168
+ }
71169
+ if (object.orgName != null)
71170
+ message.orgName = String(object.orgName);
71171
+ if (object.elfName != null)
71172
+ message.elfName = String(object.elfName);
71173
+ if (object.timestampProcessedEpochMs != null)
71174
+ if ($util.Long)
71175
+ (message.timestampProcessedEpochMs = $util.Long.fromValue(object.timestampProcessedEpochMs)).unsigned = true;
71176
+ else if (typeof object.timestampProcessedEpochMs === "string")
71177
+ message.timestampProcessedEpochMs = parseInt(object.timestampProcessedEpochMs, 10);
71178
+ else if (typeof object.timestampProcessedEpochMs === "number")
71179
+ message.timestampProcessedEpochMs = object.timestampProcessedEpochMs;
71180
+ else if (typeof object.timestampProcessedEpochMs === "object")
71181
+ message.timestampProcessedEpochMs = new $util.LongBits(object.timestampProcessedEpochMs.low >>> 0, object.timestampProcessedEpochMs.high >>> 0).toNumber(true);
71182
+ if (object.elfStatus != null)
71183
+ message.elfStatus = String(object.elfStatus);
71184
+ if (object.numDupedEmails != null)
71185
+ message.numDupedEmails = object.numDupedEmails >>> 0;
71186
+ if (object.numBadEmails != null)
71187
+ message.numBadEmails = object.numBadEmails >>> 0;
71188
+ if (object.numMembersRemoved != null)
71189
+ message.numMembersRemoved = object.numMembersRemoved >>> 0;
71190
+ return message;
71191
+ };
71192
+
71193
+ /**
71194
+ * Creates a plain object from an EligibilityFileProcessed message. Also converts values to other types if specified.
71195
+ * @function toObject
71196
+ * @memberof EligibilityFileProcessed
71197
+ * @static
71198
+ * @param {EligibilityFileProcessed} message EligibilityFileProcessed
71199
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
71200
+ * @returns {Object.<string,*>} Plain object
71201
+ */
71202
+ EligibilityFileProcessed.toObject = function toObject(message, options) {
71203
+ if (!options)
71204
+ options = {};
71205
+ var object = {};
71206
+ if (options.defaults) {
71207
+ object.email = null;
71208
+ object.orgName = "";
71209
+ object.elfName = "";
71210
+ if ($util.Long) {
71211
+ var long = new $util.Long(0, 0, true);
71212
+ object.timestampProcessedEpochMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
71213
+ } else
71214
+ object.timestampProcessedEpochMs = options.longs === String ? "0" : 0;
71215
+ object.elfStatus = "";
71216
+ object.numDupedEmails = 0;
71217
+ object.numBadEmails = 0;
71218
+ object.numMembersRemoved = 0;
71219
+ }
71220
+ if (message.email != null && message.hasOwnProperty("email"))
71221
+ object.email = $root.Email.toObject(message.email, options);
71222
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
71223
+ object.orgName = message.orgName;
71224
+ if (message.elfName != null && message.hasOwnProperty("elfName"))
71225
+ object.elfName = message.elfName;
71226
+ if (message.timestampProcessedEpochMs != null && message.hasOwnProperty("timestampProcessedEpochMs"))
71227
+ if (typeof message.timestampProcessedEpochMs === "number")
71228
+ object.timestampProcessedEpochMs = options.longs === String ? String(message.timestampProcessedEpochMs) : message.timestampProcessedEpochMs;
71229
+ else
71230
+ object.timestampProcessedEpochMs = options.longs === String ? $util.Long.prototype.toString.call(message.timestampProcessedEpochMs) : options.longs === Number ? new $util.LongBits(message.timestampProcessedEpochMs.low >>> 0, message.timestampProcessedEpochMs.high >>> 0).toNumber(true) : message.timestampProcessedEpochMs;
71231
+ if (message.elfStatus != null && message.hasOwnProperty("elfStatus"))
71232
+ object.elfStatus = message.elfStatus;
71233
+ if (message.numDupedEmails != null && message.hasOwnProperty("numDupedEmails"))
71234
+ object.numDupedEmails = message.numDupedEmails;
71235
+ if (message.numBadEmails != null && message.hasOwnProperty("numBadEmails"))
71236
+ object.numBadEmails = message.numBadEmails;
71237
+ if (message.numMembersRemoved != null && message.hasOwnProperty("numMembersRemoved"))
71238
+ object.numMembersRemoved = message.numMembersRemoved;
71239
+ return object;
71240
+ };
71241
+
71242
+ /**
71243
+ * Converts this EligibilityFileProcessed to JSON.
71244
+ * @function toJSON
71245
+ * @memberof EligibilityFileProcessed
71246
+ * @instance
71247
+ * @returns {Object.<string,*>} JSON object
71248
+ */
71249
+ EligibilityFileProcessed.prototype.toJSON = function toJSON() {
71250
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
71251
+ };
71252
+
71253
+ return EligibilityFileProcessed;
71254
+ })();
71255
+
71256
+ $root.Email = (function() {
71257
+
71258
+ /**
71259
+ * Properties of an Email.
71260
+ * @exports IEmail
71261
+ * @interface IEmail
71262
+ * @property {string|null} [subjectLine] Email subjectLine
71263
+ * @property {string|null} [message] Email message
71264
+ * @property {Array.<number>|null} [adminIds] Email adminIds
71265
+ */
71266
+
71267
+ /**
71268
+ * Constructs a new Email.
71269
+ * @exports Email
71270
+ * @classdesc Represents an Email.
71271
+ * @implements IEmail
71272
+ * @constructor
71273
+ * @param {IEmail=} [properties] Properties to set
71274
+ */
71275
+ function Email(properties) {
71276
+ this.adminIds = [];
71277
+ if (properties)
71278
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
71279
+ if (properties[keys[i]] != null)
71280
+ this[keys[i]] = properties[keys[i]];
71281
+ }
71282
+
71283
+ /**
71284
+ * Email subjectLine.
71285
+ * @member {string} subjectLine
71286
+ * @memberof Email
71287
+ * @instance
71288
+ */
71289
+ Email.prototype.subjectLine = "";
71290
+
71291
+ /**
71292
+ * Email message.
71293
+ * @member {string} message
71294
+ * @memberof Email
71295
+ * @instance
71296
+ */
71297
+ Email.prototype.message = "";
71298
+
71299
+ /**
71300
+ * Email adminIds.
71301
+ * @member {Array.<number>} adminIds
71302
+ * @memberof Email
71303
+ * @instance
71304
+ */
71305
+ Email.prototype.adminIds = $util.emptyArray;
71306
+
71307
+ /**
71308
+ * Creates a new Email instance using the specified properties.
71309
+ * @function create
71310
+ * @memberof Email
71311
+ * @static
71312
+ * @param {IEmail=} [properties] Properties to set
71313
+ * @returns {Email} Email instance
71314
+ */
71315
+ Email.create = function create(properties) {
71316
+ return new Email(properties);
71317
+ };
71318
+
71319
+ /**
71320
+ * Encodes the specified Email message. Does not implicitly {@link Email.verify|verify} messages.
71321
+ * @function encode
71322
+ * @memberof Email
71323
+ * @static
71324
+ * @param {IEmail} message Email message or plain object to encode
71325
+ * @param {$protobuf.Writer} [writer] Writer to encode to
71326
+ * @returns {$protobuf.Writer} Writer
71327
+ */
71328
+ Email.encode = function encode(message, writer) {
71329
+ if (!writer)
71330
+ writer = $Writer.create();
71331
+ if (message.subjectLine != null && message.hasOwnProperty("subjectLine"))
71332
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.subjectLine);
71333
+ if (message.message != null && message.hasOwnProperty("message"))
71334
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
71335
+ if (message.adminIds != null && message.adminIds.length) {
71336
+ writer.uint32(/* id 3, wireType 2 =*/26).fork();
71337
+ for (var i = 0; i < message.adminIds.length; ++i)
71338
+ writer.uint32(message.adminIds[i]);
71339
+ writer.ldelim();
71340
+ }
71341
+ return writer;
71342
+ };
71343
+
71344
+ /**
71345
+ * Encodes the specified Email message, length delimited. Does not implicitly {@link Email.verify|verify} messages.
71346
+ * @function encodeDelimited
71347
+ * @memberof Email
71348
+ * @static
71349
+ * @param {IEmail} message Email message or plain object to encode
71350
+ * @param {$protobuf.Writer} [writer] Writer to encode to
71351
+ * @returns {$protobuf.Writer} Writer
71352
+ */
71353
+ Email.encodeDelimited = function encodeDelimited(message, writer) {
71354
+ return this.encode(message, writer).ldelim();
71355
+ };
71356
+
71357
+ /**
71358
+ * Decodes an Email message from the specified reader or buffer.
71359
+ * @function decode
71360
+ * @memberof Email
71361
+ * @static
71362
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71363
+ * @param {number} [length] Message length if known beforehand
71364
+ * @returns {Email} Email
71365
+ * @throws {Error} If the payload is not a reader or valid buffer
71366
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
71367
+ */
71368
+ Email.decode = function decode(reader, length) {
71369
+ if (!(reader instanceof $Reader))
71370
+ reader = $Reader.create(reader);
71371
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Email();
71372
+ while (reader.pos < end) {
71373
+ var tag = reader.uint32();
71374
+ switch (tag >>> 3) {
71375
+ case 1:
71376
+ message.subjectLine = reader.string();
71377
+ break;
71378
+ case 2:
71379
+ message.message = reader.string();
71380
+ break;
71381
+ case 3:
71382
+ if (!(message.adminIds && message.adminIds.length))
71383
+ message.adminIds = [];
71384
+ if ((tag & 7) === 2) {
71385
+ var end2 = reader.uint32() + reader.pos;
71386
+ while (reader.pos < end2)
71387
+ message.adminIds.push(reader.uint32());
71388
+ } else
71389
+ message.adminIds.push(reader.uint32());
71390
+ break;
71391
+ default:
71392
+ reader.skipType(tag & 7);
71393
+ break;
71394
+ }
71395
+ }
71396
+ return message;
71397
+ };
71398
+
71399
+ /**
71400
+ * Decodes an Email message from the specified reader or buffer, length delimited.
71401
+ * @function decodeDelimited
71402
+ * @memberof Email
71403
+ * @static
71404
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71405
+ * @returns {Email} Email
71406
+ * @throws {Error} If the payload is not a reader or valid buffer
71407
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
71408
+ */
71409
+ Email.decodeDelimited = function decodeDelimited(reader) {
71410
+ if (!(reader instanceof $Reader))
71411
+ reader = new $Reader(reader);
71412
+ return this.decode(reader, reader.uint32());
71413
+ };
71414
+
71415
+ /**
71416
+ * Verifies an Email message.
71417
+ * @function verify
71418
+ * @memberof Email
71419
+ * @static
71420
+ * @param {Object.<string,*>} message Plain object to verify
71421
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
71422
+ */
71423
+ Email.verify = function verify(message) {
71424
+ if (typeof message !== "object" || message === null)
71425
+ return "object expected";
71426
+ if (message.subjectLine != null && message.hasOwnProperty("subjectLine"))
71427
+ if (!$util.isString(message.subjectLine))
71428
+ return "subjectLine: string expected";
71429
+ if (message.message != null && message.hasOwnProperty("message"))
71430
+ if (!$util.isString(message.message))
71431
+ return "message: string expected";
71432
+ if (message.adminIds != null && message.hasOwnProperty("adminIds")) {
71433
+ if (!Array.isArray(message.adminIds))
71434
+ return "adminIds: array expected";
71435
+ for (var i = 0; i < message.adminIds.length; ++i)
71436
+ if (!$util.isInteger(message.adminIds[i]))
71437
+ return "adminIds: integer[] expected";
71438
+ }
71439
+ return null;
71440
+ };
71441
+
71442
+ /**
71443
+ * Creates an Email message from a plain object. Also converts values to their respective internal types.
71444
+ * @function fromObject
71445
+ * @memberof Email
71446
+ * @static
71447
+ * @param {Object.<string,*>} object Plain object
71448
+ * @returns {Email} Email
71449
+ */
71450
+ Email.fromObject = function fromObject(object) {
71451
+ if (object instanceof $root.Email)
71452
+ return object;
71453
+ var message = new $root.Email();
71454
+ if (object.subjectLine != null)
71455
+ message.subjectLine = String(object.subjectLine);
71456
+ if (object.message != null)
71457
+ message.message = String(object.message);
71458
+ if (object.adminIds) {
71459
+ if (!Array.isArray(object.adminIds))
71460
+ throw TypeError(".Email.adminIds: array expected");
71461
+ message.adminIds = [];
71462
+ for (var i = 0; i < object.adminIds.length; ++i)
71463
+ message.adminIds[i] = object.adminIds[i] >>> 0;
71464
+ }
71465
+ return message;
71466
+ };
71467
+
71468
+ /**
71469
+ * Creates a plain object from an Email message. Also converts values to other types if specified.
71470
+ * @function toObject
71471
+ * @memberof Email
71472
+ * @static
71473
+ * @param {Email} message Email
71474
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
71475
+ * @returns {Object.<string,*>} Plain object
71476
+ */
71477
+ Email.toObject = function toObject(message, options) {
71478
+ if (!options)
71479
+ options = {};
71480
+ var object = {};
71481
+ if (options.arrays || options.defaults)
71482
+ object.adminIds = [];
71483
+ if (options.defaults) {
71484
+ object.subjectLine = "";
71485
+ object.message = "";
71486
+ }
71487
+ if (message.subjectLine != null && message.hasOwnProperty("subjectLine"))
71488
+ object.subjectLine = message.subjectLine;
71489
+ if (message.message != null && message.hasOwnProperty("message"))
71490
+ object.message = message.message;
71491
+ if (message.adminIds && message.adminIds.length) {
71492
+ object.adminIds = [];
71493
+ for (var j = 0; j < message.adminIds.length; ++j)
71494
+ object.adminIds[j] = message.adminIds[j];
71495
+ }
71496
+ return object;
71497
+ };
71498
+
71499
+ /**
71500
+ * Converts this Email to JSON.
71501
+ * @function toJSON
71502
+ * @memberof Email
71503
+ * @instance
71504
+ * @returns {Object.<string,*>} JSON object
71505
+ */
71506
+ Email.prototype.toJSON = function toJSON() {
71507
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
71508
+ };
71509
+
71510
+ return Email;
71511
+ })();
71512
+
70895
71513
  $root.GracefulExitCompleted = (function() {
70896
71514
 
70897
71515
  /**
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.283.0"
19
+ "version": "1.284.0"
20
20
  }