@headspace/protos-events 1.567.0 → 1.569.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 +446 -14
  2. package/lib/index.js +1265 -27
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -26008,6 +26008,24 @@ $root.b2b = (function() {
26008
26008
  return values;
26009
26009
  })();
26010
26010
 
26011
+ /**
26012
+ * EapServiceType enum.
26013
+ * @name b2b.EapServiceType
26014
+ * @enum {string}
26015
+ * @property {number} EAP_SERVICE_TYPE_UNKNOWN=0 EAP_SERVICE_TYPE_UNKNOWN value
26016
+ * @property {number} EAP_SERVICE_TYPE_PSYCHIATRY=1 EAP_SERVICE_TYPE_PSYCHIATRY value
26017
+ * @property {number} EAP_SERVICE_TYPE_THERAPY=2 EAP_SERVICE_TYPE_THERAPY value
26018
+ * @property {number} EAP_SERVICE_TYPE_PSYCHIATRY_THERAPY=3 EAP_SERVICE_TYPE_PSYCHIATRY_THERAPY value
26019
+ */
26020
+ b2b.EapServiceType = (function() {
26021
+ var valuesById = {}, values = Object.create(valuesById);
26022
+ values[valuesById[0] = "EAP_SERVICE_TYPE_UNKNOWN"] = 0;
26023
+ values[valuesById[1] = "EAP_SERVICE_TYPE_PSYCHIATRY"] = 1;
26024
+ values[valuesById[2] = "EAP_SERVICE_TYPE_THERAPY"] = 2;
26025
+ values[valuesById[3] = "EAP_SERVICE_TYPE_PSYCHIATRY_THERAPY"] = 3;
26026
+ return values;
26027
+ })();
26028
+
26011
26029
  return b2b;
26012
26030
  })();
26013
26031
 
@@ -77037,6 +77055,1163 @@ $root.SurveyAnswer = (function() {
77037
77055
  return SurveyAnswer;
77038
77056
  })();
77039
77057
 
77058
+ $root.Survey = (function() {
77059
+
77060
+ /**
77061
+ * Properties of a Survey.
77062
+ * @name ISurvey
77063
+ * @interface ISurvey
77064
+ * @property {string|null} [name] Survey name
77065
+ * @property {string|null} [slug] Survey slug
77066
+ * @property {Array.<contentful.ILanguageTextEntity>|null} [title] Survey title
77067
+ * @property {Array.<contentful.ILanguageTextEntity>|null} [description] Survey description
77068
+ * @property {Array.<contentful.ILanguageTextEntity>|null} [actionButtonTitle] Survey actionButtonTitle
77069
+ * @property {Array.<contentful.ILanguageMediaEntity>|null} [tileMedia] Survey tileMedia
77070
+ * @property {Array.<contentful.ILanguageTextEntity>|null} [label] Survey label
77071
+ * @property {Array.<contentful.ILanguageTextEntity>|null} [duration] Survey duration
77072
+ */
77073
+
77074
+ /**
77075
+ * Constructs a new Survey.
77076
+ * @name Survey
77077
+ * @classdesc Represents a Survey.
77078
+ * @implements ISurvey
77079
+ * @constructor
77080
+ * @param {ISurvey=} [properties] Properties to set
77081
+ */
77082
+ function Survey(properties) {
77083
+ this.title = [];
77084
+ this.description = [];
77085
+ this.actionButtonTitle = [];
77086
+ this.tileMedia = [];
77087
+ this.label = [];
77088
+ this.duration = [];
77089
+ if (properties)
77090
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
77091
+ if (properties[keys[i]] != null)
77092
+ this[keys[i]] = properties[keys[i]];
77093
+ }
77094
+
77095
+ /**
77096
+ * Survey name.
77097
+ * @member {string} name
77098
+ * @memberof Survey
77099
+ * @instance
77100
+ */
77101
+ Survey.prototype.name = "";
77102
+
77103
+ /**
77104
+ * Survey slug.
77105
+ * @member {string} slug
77106
+ * @memberof Survey
77107
+ * @instance
77108
+ */
77109
+ Survey.prototype.slug = "";
77110
+
77111
+ /**
77112
+ * Survey title.
77113
+ * @member {Array.<contentful.ILanguageTextEntity>} title
77114
+ * @memberof Survey
77115
+ * @instance
77116
+ */
77117
+ Survey.prototype.title = $util.emptyArray;
77118
+
77119
+ /**
77120
+ * Survey description.
77121
+ * @member {Array.<contentful.ILanguageTextEntity>} description
77122
+ * @memberof Survey
77123
+ * @instance
77124
+ */
77125
+ Survey.prototype.description = $util.emptyArray;
77126
+
77127
+ /**
77128
+ * Survey actionButtonTitle.
77129
+ * @member {Array.<contentful.ILanguageTextEntity>} actionButtonTitle
77130
+ * @memberof Survey
77131
+ * @instance
77132
+ */
77133
+ Survey.prototype.actionButtonTitle = $util.emptyArray;
77134
+
77135
+ /**
77136
+ * Survey tileMedia.
77137
+ * @member {Array.<contentful.ILanguageMediaEntity>} tileMedia
77138
+ * @memberof Survey
77139
+ * @instance
77140
+ */
77141
+ Survey.prototype.tileMedia = $util.emptyArray;
77142
+
77143
+ /**
77144
+ * Survey label.
77145
+ * @member {Array.<contentful.ILanguageTextEntity>} label
77146
+ * @memberof Survey
77147
+ * @instance
77148
+ */
77149
+ Survey.prototype.label = $util.emptyArray;
77150
+
77151
+ /**
77152
+ * Survey duration.
77153
+ * @member {Array.<contentful.ILanguageTextEntity>} duration
77154
+ * @memberof Survey
77155
+ * @instance
77156
+ */
77157
+ Survey.prototype.duration = $util.emptyArray;
77158
+
77159
+ /**
77160
+ * Creates a new Survey instance using the specified properties.
77161
+ * @function create
77162
+ * @memberof Survey
77163
+ * @static
77164
+ * @param {ISurvey=} [properties] Properties to set
77165
+ * @returns {Survey} Survey instance
77166
+ */
77167
+ Survey.create = function create(properties) {
77168
+ return new Survey(properties);
77169
+ };
77170
+
77171
+ /**
77172
+ * Encodes the specified Survey message. Does not implicitly {@link Survey.verify|verify} messages.
77173
+ * @function encode
77174
+ * @memberof Survey
77175
+ * @static
77176
+ * @param {ISurvey} message Survey message or plain object to encode
77177
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77178
+ * @returns {$protobuf.Writer} Writer
77179
+ */
77180
+ Survey.encode = function encode(message, writer) {
77181
+ if (!writer)
77182
+ writer = $Writer.create();
77183
+ if (message.name != null && message.hasOwnProperty("name"))
77184
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
77185
+ if (message.slug != null && message.hasOwnProperty("slug"))
77186
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
77187
+ if (message.title != null && message.title.length)
77188
+ for (var i = 0; i < message.title.length; ++i)
77189
+ $root.contentful.LanguageTextEntity.encode(message.title[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
77190
+ if (message.description != null && message.description.length)
77191
+ for (var i = 0; i < message.description.length; ++i)
77192
+ $root.contentful.LanguageTextEntity.encode(message.description[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
77193
+ if (message.actionButtonTitle != null && message.actionButtonTitle.length)
77194
+ for (var i = 0; i < message.actionButtonTitle.length; ++i)
77195
+ $root.contentful.LanguageTextEntity.encode(message.actionButtonTitle[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
77196
+ if (message.tileMedia != null && message.tileMedia.length)
77197
+ for (var i = 0; i < message.tileMedia.length; ++i)
77198
+ $root.contentful.LanguageMediaEntity.encode(message.tileMedia[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
77199
+ if (message.label != null && message.label.length)
77200
+ for (var i = 0; i < message.label.length; ++i)
77201
+ $root.contentful.LanguageTextEntity.encode(message.label[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
77202
+ if (message.duration != null && message.duration.length)
77203
+ for (var i = 0; i < message.duration.length; ++i)
77204
+ $root.contentful.LanguageTextEntity.encode(message.duration[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
77205
+ return writer;
77206
+ };
77207
+
77208
+ /**
77209
+ * Encodes the specified Survey message, length delimited. Does not implicitly {@link Survey.verify|verify} messages.
77210
+ * @function encodeDelimited
77211
+ * @memberof Survey
77212
+ * @static
77213
+ * @param {ISurvey} message Survey message or plain object to encode
77214
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77215
+ * @returns {$protobuf.Writer} Writer
77216
+ */
77217
+ Survey.encodeDelimited = function encodeDelimited(message, writer) {
77218
+ return this.encode(message, writer).ldelim();
77219
+ };
77220
+
77221
+ /**
77222
+ * Decodes a Survey message from the specified reader or buffer.
77223
+ * @function decode
77224
+ * @memberof Survey
77225
+ * @static
77226
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77227
+ * @param {number} [length] Message length if known beforehand
77228
+ * @returns {Survey} Survey
77229
+ * @throws {Error} If the payload is not a reader or valid buffer
77230
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77231
+ */
77232
+ Survey.decode = function decode(reader, length) {
77233
+ if (!(reader instanceof $Reader))
77234
+ reader = $Reader.create(reader);
77235
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Survey();
77236
+ while (reader.pos < end) {
77237
+ var tag = reader.uint32();
77238
+ switch (tag >>> 3) {
77239
+ case 1:
77240
+ message.name = reader.string();
77241
+ break;
77242
+ case 2:
77243
+ message.slug = reader.string();
77244
+ break;
77245
+ case 3:
77246
+ if (!(message.title && message.title.length))
77247
+ message.title = [];
77248
+ message.title.push($root.contentful.LanguageTextEntity.decode(reader, reader.uint32()));
77249
+ break;
77250
+ case 4:
77251
+ if (!(message.description && message.description.length))
77252
+ message.description = [];
77253
+ message.description.push($root.contentful.LanguageTextEntity.decode(reader, reader.uint32()));
77254
+ break;
77255
+ case 5:
77256
+ if (!(message.actionButtonTitle && message.actionButtonTitle.length))
77257
+ message.actionButtonTitle = [];
77258
+ message.actionButtonTitle.push($root.contentful.LanguageTextEntity.decode(reader, reader.uint32()));
77259
+ break;
77260
+ case 6:
77261
+ if (!(message.tileMedia && message.tileMedia.length))
77262
+ message.tileMedia = [];
77263
+ message.tileMedia.push($root.contentful.LanguageMediaEntity.decode(reader, reader.uint32()));
77264
+ break;
77265
+ case 7:
77266
+ if (!(message.label && message.label.length))
77267
+ message.label = [];
77268
+ message.label.push($root.contentful.LanguageTextEntity.decode(reader, reader.uint32()));
77269
+ break;
77270
+ case 8:
77271
+ if (!(message.duration && message.duration.length))
77272
+ message.duration = [];
77273
+ message.duration.push($root.contentful.LanguageTextEntity.decode(reader, reader.uint32()));
77274
+ break;
77275
+ default:
77276
+ reader.skipType(tag & 7);
77277
+ break;
77278
+ }
77279
+ }
77280
+ return message;
77281
+ };
77282
+
77283
+ /**
77284
+ * Decodes a Survey message from the specified reader or buffer, length delimited.
77285
+ * @function decodeDelimited
77286
+ * @memberof Survey
77287
+ * @static
77288
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77289
+ * @returns {Survey} Survey
77290
+ * @throws {Error} If the payload is not a reader or valid buffer
77291
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77292
+ */
77293
+ Survey.decodeDelimited = function decodeDelimited(reader) {
77294
+ if (!(reader instanceof $Reader))
77295
+ reader = new $Reader(reader);
77296
+ return this.decode(reader, reader.uint32());
77297
+ };
77298
+
77299
+ /**
77300
+ * Verifies a Survey message.
77301
+ * @function verify
77302
+ * @memberof Survey
77303
+ * @static
77304
+ * @param {Object.<string,*>} message Plain object to verify
77305
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
77306
+ */
77307
+ Survey.verify = function verify(message) {
77308
+ if (typeof message !== "object" || message === null)
77309
+ return "object expected";
77310
+ if (message.name != null && message.hasOwnProperty("name"))
77311
+ if (!$util.isString(message.name))
77312
+ return "name: string expected";
77313
+ if (message.slug != null && message.hasOwnProperty("slug"))
77314
+ if (!$util.isString(message.slug))
77315
+ return "slug: string expected";
77316
+ if (message.title != null && message.hasOwnProperty("title")) {
77317
+ if (!Array.isArray(message.title))
77318
+ return "title: array expected";
77319
+ for (var i = 0; i < message.title.length; ++i) {
77320
+ var error = $root.contentful.LanguageTextEntity.verify(message.title[i]);
77321
+ if (error)
77322
+ return "title." + error;
77323
+ }
77324
+ }
77325
+ if (message.description != null && message.hasOwnProperty("description")) {
77326
+ if (!Array.isArray(message.description))
77327
+ return "description: array expected";
77328
+ for (var i = 0; i < message.description.length; ++i) {
77329
+ var error = $root.contentful.LanguageTextEntity.verify(message.description[i]);
77330
+ if (error)
77331
+ return "description." + error;
77332
+ }
77333
+ }
77334
+ if (message.actionButtonTitle != null && message.hasOwnProperty("actionButtonTitle")) {
77335
+ if (!Array.isArray(message.actionButtonTitle))
77336
+ return "actionButtonTitle: array expected";
77337
+ for (var i = 0; i < message.actionButtonTitle.length; ++i) {
77338
+ var error = $root.contentful.LanguageTextEntity.verify(message.actionButtonTitle[i]);
77339
+ if (error)
77340
+ return "actionButtonTitle." + error;
77341
+ }
77342
+ }
77343
+ if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
77344
+ if (!Array.isArray(message.tileMedia))
77345
+ return "tileMedia: array expected";
77346
+ for (var i = 0; i < message.tileMedia.length; ++i) {
77347
+ var error = $root.contentful.LanguageMediaEntity.verify(message.tileMedia[i]);
77348
+ if (error)
77349
+ return "tileMedia." + error;
77350
+ }
77351
+ }
77352
+ if (message.label != null && message.hasOwnProperty("label")) {
77353
+ if (!Array.isArray(message.label))
77354
+ return "label: array expected";
77355
+ for (var i = 0; i < message.label.length; ++i) {
77356
+ var error = $root.contentful.LanguageTextEntity.verify(message.label[i]);
77357
+ if (error)
77358
+ return "label." + error;
77359
+ }
77360
+ }
77361
+ if (message.duration != null && message.hasOwnProperty("duration")) {
77362
+ if (!Array.isArray(message.duration))
77363
+ return "duration: array expected";
77364
+ for (var i = 0; i < message.duration.length; ++i) {
77365
+ var error = $root.contentful.LanguageTextEntity.verify(message.duration[i]);
77366
+ if (error)
77367
+ return "duration." + error;
77368
+ }
77369
+ }
77370
+ return null;
77371
+ };
77372
+
77373
+ /**
77374
+ * Creates a Survey message from a plain object. Also converts values to their respective internal types.
77375
+ * @function fromObject
77376
+ * @memberof Survey
77377
+ * @static
77378
+ * @param {Object.<string,*>} object Plain object
77379
+ * @returns {Survey} Survey
77380
+ */
77381
+ Survey.fromObject = function fromObject(object) {
77382
+ if (object instanceof $root.Survey)
77383
+ return object;
77384
+ var message = new $root.Survey();
77385
+ if (object.name != null)
77386
+ message.name = String(object.name);
77387
+ if (object.slug != null)
77388
+ message.slug = String(object.slug);
77389
+ if (object.title) {
77390
+ if (!Array.isArray(object.title))
77391
+ throw TypeError(".Survey.title: array expected");
77392
+ message.title = [];
77393
+ for (var i = 0; i < object.title.length; ++i) {
77394
+ if (typeof object.title[i] !== "object")
77395
+ throw TypeError(".Survey.title: object expected");
77396
+ message.title[i] = $root.contentful.LanguageTextEntity.fromObject(object.title[i]);
77397
+ }
77398
+ }
77399
+ if (object.description) {
77400
+ if (!Array.isArray(object.description))
77401
+ throw TypeError(".Survey.description: array expected");
77402
+ message.description = [];
77403
+ for (var i = 0; i < object.description.length; ++i) {
77404
+ if (typeof object.description[i] !== "object")
77405
+ throw TypeError(".Survey.description: object expected");
77406
+ message.description[i] = $root.contentful.LanguageTextEntity.fromObject(object.description[i]);
77407
+ }
77408
+ }
77409
+ if (object.actionButtonTitle) {
77410
+ if (!Array.isArray(object.actionButtonTitle))
77411
+ throw TypeError(".Survey.actionButtonTitle: array expected");
77412
+ message.actionButtonTitle = [];
77413
+ for (var i = 0; i < object.actionButtonTitle.length; ++i) {
77414
+ if (typeof object.actionButtonTitle[i] !== "object")
77415
+ throw TypeError(".Survey.actionButtonTitle: object expected");
77416
+ message.actionButtonTitle[i] = $root.contentful.LanguageTextEntity.fromObject(object.actionButtonTitle[i]);
77417
+ }
77418
+ }
77419
+ if (object.tileMedia) {
77420
+ if (!Array.isArray(object.tileMedia))
77421
+ throw TypeError(".Survey.tileMedia: array expected");
77422
+ message.tileMedia = [];
77423
+ for (var i = 0; i < object.tileMedia.length; ++i) {
77424
+ if (typeof object.tileMedia[i] !== "object")
77425
+ throw TypeError(".Survey.tileMedia: object expected");
77426
+ message.tileMedia[i] = $root.contentful.LanguageMediaEntity.fromObject(object.tileMedia[i]);
77427
+ }
77428
+ }
77429
+ if (object.label) {
77430
+ if (!Array.isArray(object.label))
77431
+ throw TypeError(".Survey.label: array expected");
77432
+ message.label = [];
77433
+ for (var i = 0; i < object.label.length; ++i) {
77434
+ if (typeof object.label[i] !== "object")
77435
+ throw TypeError(".Survey.label: object expected");
77436
+ message.label[i] = $root.contentful.LanguageTextEntity.fromObject(object.label[i]);
77437
+ }
77438
+ }
77439
+ if (object.duration) {
77440
+ if (!Array.isArray(object.duration))
77441
+ throw TypeError(".Survey.duration: array expected");
77442
+ message.duration = [];
77443
+ for (var i = 0; i < object.duration.length; ++i) {
77444
+ if (typeof object.duration[i] !== "object")
77445
+ throw TypeError(".Survey.duration: object expected");
77446
+ message.duration[i] = $root.contentful.LanguageTextEntity.fromObject(object.duration[i]);
77447
+ }
77448
+ }
77449
+ return message;
77450
+ };
77451
+
77452
+ /**
77453
+ * Creates a plain object from a Survey message. Also converts values to other types if specified.
77454
+ * @function toObject
77455
+ * @memberof Survey
77456
+ * @static
77457
+ * @param {Survey} message Survey
77458
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
77459
+ * @returns {Object.<string,*>} Plain object
77460
+ */
77461
+ Survey.toObject = function toObject(message, options) {
77462
+ if (!options)
77463
+ options = {};
77464
+ var object = {};
77465
+ if (options.arrays || options.defaults) {
77466
+ object.title = [];
77467
+ object.description = [];
77468
+ object.actionButtonTitle = [];
77469
+ object.tileMedia = [];
77470
+ object.label = [];
77471
+ object.duration = [];
77472
+ }
77473
+ if (options.defaults) {
77474
+ object.name = "";
77475
+ object.slug = "";
77476
+ }
77477
+ if (message.name != null && message.hasOwnProperty("name"))
77478
+ object.name = message.name;
77479
+ if (message.slug != null && message.hasOwnProperty("slug"))
77480
+ object.slug = message.slug;
77481
+ if (message.title && message.title.length) {
77482
+ object.title = [];
77483
+ for (var j = 0; j < message.title.length; ++j)
77484
+ object.title[j] = $root.contentful.LanguageTextEntity.toObject(message.title[j], options);
77485
+ }
77486
+ if (message.description && message.description.length) {
77487
+ object.description = [];
77488
+ for (var j = 0; j < message.description.length; ++j)
77489
+ object.description[j] = $root.contentful.LanguageTextEntity.toObject(message.description[j], options);
77490
+ }
77491
+ if (message.actionButtonTitle && message.actionButtonTitle.length) {
77492
+ object.actionButtonTitle = [];
77493
+ for (var j = 0; j < message.actionButtonTitle.length; ++j)
77494
+ object.actionButtonTitle[j] = $root.contentful.LanguageTextEntity.toObject(message.actionButtonTitle[j], options);
77495
+ }
77496
+ if (message.tileMedia && message.tileMedia.length) {
77497
+ object.tileMedia = [];
77498
+ for (var j = 0; j < message.tileMedia.length; ++j)
77499
+ object.tileMedia[j] = $root.contentful.LanguageMediaEntity.toObject(message.tileMedia[j], options);
77500
+ }
77501
+ if (message.label && message.label.length) {
77502
+ object.label = [];
77503
+ for (var j = 0; j < message.label.length; ++j)
77504
+ object.label[j] = $root.contentful.LanguageTextEntity.toObject(message.label[j], options);
77505
+ }
77506
+ if (message.duration && message.duration.length) {
77507
+ object.duration = [];
77508
+ for (var j = 0; j < message.duration.length; ++j)
77509
+ object.duration[j] = $root.contentful.LanguageTextEntity.toObject(message.duration[j], options);
77510
+ }
77511
+ return object;
77512
+ };
77513
+
77514
+ /**
77515
+ * Converts this Survey to JSON.
77516
+ * @function toJSON
77517
+ * @memberof Survey
77518
+ * @instance
77519
+ * @returns {Object.<string,*>} JSON object
77520
+ */
77521
+ Survey.prototype.toJSON = function toJSON() {
77522
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
77523
+ };
77524
+
77525
+ return Survey;
77526
+ })();
77527
+
77528
+ $root.SurveyCreated = (function() {
77529
+
77530
+ /**
77531
+ * Properties of a SurveyCreated.
77532
+ * @name ISurveyCreated
77533
+ * @interface ISurveyCreated
77534
+ * @property {number|Long|null} [timestamp] SurveyCreated timestamp
77535
+ * @property {ISurvey|null} [survey] SurveyCreated survey
77536
+ */
77537
+
77538
+ /**
77539
+ * Constructs a new SurveyCreated.
77540
+ * @name SurveyCreated
77541
+ * @classdesc Represents a SurveyCreated.
77542
+ * @implements ISurveyCreated
77543
+ * @constructor
77544
+ * @param {ISurveyCreated=} [properties] Properties to set
77545
+ */
77546
+ function SurveyCreated(properties) {
77547
+ if (properties)
77548
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
77549
+ if (properties[keys[i]] != null)
77550
+ this[keys[i]] = properties[keys[i]];
77551
+ }
77552
+
77553
+ /**
77554
+ * SurveyCreated timestamp.
77555
+ * @member {number|Long} timestamp
77556
+ * @memberof SurveyCreated
77557
+ * @instance
77558
+ */
77559
+ SurveyCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
77560
+
77561
+ /**
77562
+ * SurveyCreated survey.
77563
+ * @member {ISurvey|null|undefined} survey
77564
+ * @memberof SurveyCreated
77565
+ * @instance
77566
+ */
77567
+ SurveyCreated.prototype.survey = null;
77568
+
77569
+ /**
77570
+ * Creates a new SurveyCreated instance using the specified properties.
77571
+ * @function create
77572
+ * @memberof SurveyCreated
77573
+ * @static
77574
+ * @param {ISurveyCreated=} [properties] Properties to set
77575
+ * @returns {SurveyCreated} SurveyCreated instance
77576
+ */
77577
+ SurveyCreated.create = function create(properties) {
77578
+ return new SurveyCreated(properties);
77579
+ };
77580
+
77581
+ /**
77582
+ * Encodes the specified SurveyCreated message. Does not implicitly {@link SurveyCreated.verify|verify} messages.
77583
+ * @function encode
77584
+ * @memberof SurveyCreated
77585
+ * @static
77586
+ * @param {ISurveyCreated} message SurveyCreated message or plain object to encode
77587
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77588
+ * @returns {$protobuf.Writer} Writer
77589
+ */
77590
+ SurveyCreated.encode = function encode(message, writer) {
77591
+ if (!writer)
77592
+ writer = $Writer.create();
77593
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
77594
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
77595
+ if (message.survey != null && message.hasOwnProperty("survey"))
77596
+ $root.Survey.encode(message.survey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
77597
+ return writer;
77598
+ };
77599
+
77600
+ /**
77601
+ * Encodes the specified SurveyCreated message, length delimited. Does not implicitly {@link SurveyCreated.verify|verify} messages.
77602
+ * @function encodeDelimited
77603
+ * @memberof SurveyCreated
77604
+ * @static
77605
+ * @param {ISurveyCreated} message SurveyCreated message or plain object to encode
77606
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77607
+ * @returns {$protobuf.Writer} Writer
77608
+ */
77609
+ SurveyCreated.encodeDelimited = function encodeDelimited(message, writer) {
77610
+ return this.encode(message, writer).ldelim();
77611
+ };
77612
+
77613
+ /**
77614
+ * Decodes a SurveyCreated message from the specified reader or buffer.
77615
+ * @function decode
77616
+ * @memberof SurveyCreated
77617
+ * @static
77618
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77619
+ * @param {number} [length] Message length if known beforehand
77620
+ * @returns {SurveyCreated} SurveyCreated
77621
+ * @throws {Error} If the payload is not a reader or valid buffer
77622
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77623
+ */
77624
+ SurveyCreated.decode = function decode(reader, length) {
77625
+ if (!(reader instanceof $Reader))
77626
+ reader = $Reader.create(reader);
77627
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SurveyCreated();
77628
+ while (reader.pos < end) {
77629
+ var tag = reader.uint32();
77630
+ switch (tag >>> 3) {
77631
+ case 1:
77632
+ message.timestamp = reader.uint64();
77633
+ break;
77634
+ case 2:
77635
+ message.survey = $root.Survey.decode(reader, reader.uint32());
77636
+ break;
77637
+ default:
77638
+ reader.skipType(tag & 7);
77639
+ break;
77640
+ }
77641
+ }
77642
+ return message;
77643
+ };
77644
+
77645
+ /**
77646
+ * Decodes a SurveyCreated message from the specified reader or buffer, length delimited.
77647
+ * @function decodeDelimited
77648
+ * @memberof SurveyCreated
77649
+ * @static
77650
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77651
+ * @returns {SurveyCreated} SurveyCreated
77652
+ * @throws {Error} If the payload is not a reader or valid buffer
77653
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77654
+ */
77655
+ SurveyCreated.decodeDelimited = function decodeDelimited(reader) {
77656
+ if (!(reader instanceof $Reader))
77657
+ reader = new $Reader(reader);
77658
+ return this.decode(reader, reader.uint32());
77659
+ };
77660
+
77661
+ /**
77662
+ * Verifies a SurveyCreated message.
77663
+ * @function verify
77664
+ * @memberof SurveyCreated
77665
+ * @static
77666
+ * @param {Object.<string,*>} message Plain object to verify
77667
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
77668
+ */
77669
+ SurveyCreated.verify = function verify(message) {
77670
+ if (typeof message !== "object" || message === null)
77671
+ return "object expected";
77672
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
77673
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
77674
+ return "timestamp: integer|Long expected";
77675
+ if (message.survey != null && message.hasOwnProperty("survey")) {
77676
+ var error = $root.Survey.verify(message.survey);
77677
+ if (error)
77678
+ return "survey." + error;
77679
+ }
77680
+ return null;
77681
+ };
77682
+
77683
+ /**
77684
+ * Creates a SurveyCreated message from a plain object. Also converts values to their respective internal types.
77685
+ * @function fromObject
77686
+ * @memberof SurveyCreated
77687
+ * @static
77688
+ * @param {Object.<string,*>} object Plain object
77689
+ * @returns {SurveyCreated} SurveyCreated
77690
+ */
77691
+ SurveyCreated.fromObject = function fromObject(object) {
77692
+ if (object instanceof $root.SurveyCreated)
77693
+ return object;
77694
+ var message = new $root.SurveyCreated();
77695
+ if (object.timestamp != null)
77696
+ if ($util.Long)
77697
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
77698
+ else if (typeof object.timestamp === "string")
77699
+ message.timestamp = parseInt(object.timestamp, 10);
77700
+ else if (typeof object.timestamp === "number")
77701
+ message.timestamp = object.timestamp;
77702
+ else if (typeof object.timestamp === "object")
77703
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
77704
+ if (object.survey != null) {
77705
+ if (typeof object.survey !== "object")
77706
+ throw TypeError(".SurveyCreated.survey: object expected");
77707
+ message.survey = $root.Survey.fromObject(object.survey);
77708
+ }
77709
+ return message;
77710
+ };
77711
+
77712
+ /**
77713
+ * Creates a plain object from a SurveyCreated message. Also converts values to other types if specified.
77714
+ * @function toObject
77715
+ * @memberof SurveyCreated
77716
+ * @static
77717
+ * @param {SurveyCreated} message SurveyCreated
77718
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
77719
+ * @returns {Object.<string,*>} Plain object
77720
+ */
77721
+ SurveyCreated.toObject = function toObject(message, options) {
77722
+ if (!options)
77723
+ options = {};
77724
+ var object = {};
77725
+ if (options.defaults) {
77726
+ if ($util.Long) {
77727
+ var long = new $util.Long(0, 0, true);
77728
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
77729
+ } else
77730
+ object.timestamp = options.longs === String ? "0" : 0;
77731
+ object.survey = null;
77732
+ }
77733
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
77734
+ if (typeof message.timestamp === "number")
77735
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
77736
+ else
77737
+ 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;
77738
+ if (message.survey != null && message.hasOwnProperty("survey"))
77739
+ object.survey = $root.Survey.toObject(message.survey, options);
77740
+ return object;
77741
+ };
77742
+
77743
+ /**
77744
+ * Converts this SurveyCreated to JSON.
77745
+ * @function toJSON
77746
+ * @memberof SurveyCreated
77747
+ * @instance
77748
+ * @returns {Object.<string,*>} JSON object
77749
+ */
77750
+ SurveyCreated.prototype.toJSON = function toJSON() {
77751
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
77752
+ };
77753
+
77754
+ return SurveyCreated;
77755
+ })();
77756
+
77757
+ $root.SurveyUpdated = (function() {
77758
+
77759
+ /**
77760
+ * Properties of a SurveyUpdated.
77761
+ * @name ISurveyUpdated
77762
+ * @interface ISurveyUpdated
77763
+ * @property {number|Long|null} [timestamp] SurveyUpdated timestamp
77764
+ * @property {ISurvey|null} [survey] SurveyUpdated survey
77765
+ */
77766
+
77767
+ /**
77768
+ * Constructs a new SurveyUpdated.
77769
+ * @name SurveyUpdated
77770
+ * @classdesc Represents a SurveyUpdated.
77771
+ * @implements ISurveyUpdated
77772
+ * @constructor
77773
+ * @param {ISurveyUpdated=} [properties] Properties to set
77774
+ */
77775
+ function SurveyUpdated(properties) {
77776
+ if (properties)
77777
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
77778
+ if (properties[keys[i]] != null)
77779
+ this[keys[i]] = properties[keys[i]];
77780
+ }
77781
+
77782
+ /**
77783
+ * SurveyUpdated timestamp.
77784
+ * @member {number|Long} timestamp
77785
+ * @memberof SurveyUpdated
77786
+ * @instance
77787
+ */
77788
+ SurveyUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
77789
+
77790
+ /**
77791
+ * SurveyUpdated survey.
77792
+ * @member {ISurvey|null|undefined} survey
77793
+ * @memberof SurveyUpdated
77794
+ * @instance
77795
+ */
77796
+ SurveyUpdated.prototype.survey = null;
77797
+
77798
+ /**
77799
+ * Creates a new SurveyUpdated instance using the specified properties.
77800
+ * @function create
77801
+ * @memberof SurveyUpdated
77802
+ * @static
77803
+ * @param {ISurveyUpdated=} [properties] Properties to set
77804
+ * @returns {SurveyUpdated} SurveyUpdated instance
77805
+ */
77806
+ SurveyUpdated.create = function create(properties) {
77807
+ return new SurveyUpdated(properties);
77808
+ };
77809
+
77810
+ /**
77811
+ * Encodes the specified SurveyUpdated message. Does not implicitly {@link SurveyUpdated.verify|verify} messages.
77812
+ * @function encode
77813
+ * @memberof SurveyUpdated
77814
+ * @static
77815
+ * @param {ISurveyUpdated} message SurveyUpdated message or plain object to encode
77816
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77817
+ * @returns {$protobuf.Writer} Writer
77818
+ */
77819
+ SurveyUpdated.encode = function encode(message, writer) {
77820
+ if (!writer)
77821
+ writer = $Writer.create();
77822
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
77823
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
77824
+ if (message.survey != null && message.hasOwnProperty("survey"))
77825
+ $root.Survey.encode(message.survey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
77826
+ return writer;
77827
+ };
77828
+
77829
+ /**
77830
+ * Encodes the specified SurveyUpdated message, length delimited. Does not implicitly {@link SurveyUpdated.verify|verify} messages.
77831
+ * @function encodeDelimited
77832
+ * @memberof SurveyUpdated
77833
+ * @static
77834
+ * @param {ISurveyUpdated} message SurveyUpdated message or plain object to encode
77835
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77836
+ * @returns {$protobuf.Writer} Writer
77837
+ */
77838
+ SurveyUpdated.encodeDelimited = function encodeDelimited(message, writer) {
77839
+ return this.encode(message, writer).ldelim();
77840
+ };
77841
+
77842
+ /**
77843
+ * Decodes a SurveyUpdated message from the specified reader or buffer.
77844
+ * @function decode
77845
+ * @memberof SurveyUpdated
77846
+ * @static
77847
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77848
+ * @param {number} [length] Message length if known beforehand
77849
+ * @returns {SurveyUpdated} SurveyUpdated
77850
+ * @throws {Error} If the payload is not a reader or valid buffer
77851
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77852
+ */
77853
+ SurveyUpdated.decode = function decode(reader, length) {
77854
+ if (!(reader instanceof $Reader))
77855
+ reader = $Reader.create(reader);
77856
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SurveyUpdated();
77857
+ while (reader.pos < end) {
77858
+ var tag = reader.uint32();
77859
+ switch (tag >>> 3) {
77860
+ case 1:
77861
+ message.timestamp = reader.uint64();
77862
+ break;
77863
+ case 2:
77864
+ message.survey = $root.Survey.decode(reader, reader.uint32());
77865
+ break;
77866
+ default:
77867
+ reader.skipType(tag & 7);
77868
+ break;
77869
+ }
77870
+ }
77871
+ return message;
77872
+ };
77873
+
77874
+ /**
77875
+ * Decodes a SurveyUpdated message from the specified reader or buffer, length delimited.
77876
+ * @function decodeDelimited
77877
+ * @memberof SurveyUpdated
77878
+ * @static
77879
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77880
+ * @returns {SurveyUpdated} SurveyUpdated
77881
+ * @throws {Error} If the payload is not a reader or valid buffer
77882
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77883
+ */
77884
+ SurveyUpdated.decodeDelimited = function decodeDelimited(reader) {
77885
+ if (!(reader instanceof $Reader))
77886
+ reader = new $Reader(reader);
77887
+ return this.decode(reader, reader.uint32());
77888
+ };
77889
+
77890
+ /**
77891
+ * Verifies a SurveyUpdated message.
77892
+ * @function verify
77893
+ * @memberof SurveyUpdated
77894
+ * @static
77895
+ * @param {Object.<string,*>} message Plain object to verify
77896
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
77897
+ */
77898
+ SurveyUpdated.verify = function verify(message) {
77899
+ if (typeof message !== "object" || message === null)
77900
+ return "object expected";
77901
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
77902
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
77903
+ return "timestamp: integer|Long expected";
77904
+ if (message.survey != null && message.hasOwnProperty("survey")) {
77905
+ var error = $root.Survey.verify(message.survey);
77906
+ if (error)
77907
+ return "survey." + error;
77908
+ }
77909
+ return null;
77910
+ };
77911
+
77912
+ /**
77913
+ * Creates a SurveyUpdated message from a plain object. Also converts values to their respective internal types.
77914
+ * @function fromObject
77915
+ * @memberof SurveyUpdated
77916
+ * @static
77917
+ * @param {Object.<string,*>} object Plain object
77918
+ * @returns {SurveyUpdated} SurveyUpdated
77919
+ */
77920
+ SurveyUpdated.fromObject = function fromObject(object) {
77921
+ if (object instanceof $root.SurveyUpdated)
77922
+ return object;
77923
+ var message = new $root.SurveyUpdated();
77924
+ if (object.timestamp != null)
77925
+ if ($util.Long)
77926
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
77927
+ else if (typeof object.timestamp === "string")
77928
+ message.timestamp = parseInt(object.timestamp, 10);
77929
+ else if (typeof object.timestamp === "number")
77930
+ message.timestamp = object.timestamp;
77931
+ else if (typeof object.timestamp === "object")
77932
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
77933
+ if (object.survey != null) {
77934
+ if (typeof object.survey !== "object")
77935
+ throw TypeError(".SurveyUpdated.survey: object expected");
77936
+ message.survey = $root.Survey.fromObject(object.survey);
77937
+ }
77938
+ return message;
77939
+ };
77940
+
77941
+ /**
77942
+ * Creates a plain object from a SurveyUpdated message. Also converts values to other types if specified.
77943
+ * @function toObject
77944
+ * @memberof SurveyUpdated
77945
+ * @static
77946
+ * @param {SurveyUpdated} message SurveyUpdated
77947
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
77948
+ * @returns {Object.<string,*>} Plain object
77949
+ */
77950
+ SurveyUpdated.toObject = function toObject(message, options) {
77951
+ if (!options)
77952
+ options = {};
77953
+ var object = {};
77954
+ if (options.defaults) {
77955
+ if ($util.Long) {
77956
+ var long = new $util.Long(0, 0, true);
77957
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
77958
+ } else
77959
+ object.timestamp = options.longs === String ? "0" : 0;
77960
+ object.survey = null;
77961
+ }
77962
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
77963
+ if (typeof message.timestamp === "number")
77964
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
77965
+ else
77966
+ 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;
77967
+ if (message.survey != null && message.hasOwnProperty("survey"))
77968
+ object.survey = $root.Survey.toObject(message.survey, options);
77969
+ return object;
77970
+ };
77971
+
77972
+ /**
77973
+ * Converts this SurveyUpdated to JSON.
77974
+ * @function toJSON
77975
+ * @memberof SurveyUpdated
77976
+ * @instance
77977
+ * @returns {Object.<string,*>} JSON object
77978
+ */
77979
+ SurveyUpdated.prototype.toJSON = function toJSON() {
77980
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
77981
+ };
77982
+
77983
+ return SurveyUpdated;
77984
+ })();
77985
+
77986
+ $root.SurveyDeleted = (function() {
77987
+
77988
+ /**
77989
+ * Properties of a SurveyDeleted.
77990
+ * @name ISurveyDeleted
77991
+ * @interface ISurveyDeleted
77992
+ * @property {number|Long|null} [timestamp] SurveyDeleted timestamp
77993
+ * @property {ISurvey|null} [survey] SurveyDeleted survey
77994
+ */
77995
+
77996
+ /**
77997
+ * Constructs a new SurveyDeleted.
77998
+ * @name SurveyDeleted
77999
+ * @classdesc Represents a SurveyDeleted.
78000
+ * @implements ISurveyDeleted
78001
+ * @constructor
78002
+ * @param {ISurveyDeleted=} [properties] Properties to set
78003
+ */
78004
+ function SurveyDeleted(properties) {
78005
+ if (properties)
78006
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
78007
+ if (properties[keys[i]] != null)
78008
+ this[keys[i]] = properties[keys[i]];
78009
+ }
78010
+
78011
+ /**
78012
+ * SurveyDeleted timestamp.
78013
+ * @member {number|Long} timestamp
78014
+ * @memberof SurveyDeleted
78015
+ * @instance
78016
+ */
78017
+ SurveyDeleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
78018
+
78019
+ /**
78020
+ * SurveyDeleted survey.
78021
+ * @member {ISurvey|null|undefined} survey
78022
+ * @memberof SurveyDeleted
78023
+ * @instance
78024
+ */
78025
+ SurveyDeleted.prototype.survey = null;
78026
+
78027
+ /**
78028
+ * Creates a new SurveyDeleted instance using the specified properties.
78029
+ * @function create
78030
+ * @memberof SurveyDeleted
78031
+ * @static
78032
+ * @param {ISurveyDeleted=} [properties] Properties to set
78033
+ * @returns {SurveyDeleted} SurveyDeleted instance
78034
+ */
78035
+ SurveyDeleted.create = function create(properties) {
78036
+ return new SurveyDeleted(properties);
78037
+ };
78038
+
78039
+ /**
78040
+ * Encodes the specified SurveyDeleted message. Does not implicitly {@link SurveyDeleted.verify|verify} messages.
78041
+ * @function encode
78042
+ * @memberof SurveyDeleted
78043
+ * @static
78044
+ * @param {ISurveyDeleted} message SurveyDeleted message or plain object to encode
78045
+ * @param {$protobuf.Writer} [writer] Writer to encode to
78046
+ * @returns {$protobuf.Writer} Writer
78047
+ */
78048
+ SurveyDeleted.encode = function encode(message, writer) {
78049
+ if (!writer)
78050
+ writer = $Writer.create();
78051
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
78052
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
78053
+ if (message.survey != null && message.hasOwnProperty("survey"))
78054
+ $root.Survey.encode(message.survey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
78055
+ return writer;
78056
+ };
78057
+
78058
+ /**
78059
+ * Encodes the specified SurveyDeleted message, length delimited. Does not implicitly {@link SurveyDeleted.verify|verify} messages.
78060
+ * @function encodeDelimited
78061
+ * @memberof SurveyDeleted
78062
+ * @static
78063
+ * @param {ISurveyDeleted} message SurveyDeleted message or plain object to encode
78064
+ * @param {$protobuf.Writer} [writer] Writer to encode to
78065
+ * @returns {$protobuf.Writer} Writer
78066
+ */
78067
+ SurveyDeleted.encodeDelimited = function encodeDelimited(message, writer) {
78068
+ return this.encode(message, writer).ldelim();
78069
+ };
78070
+
78071
+ /**
78072
+ * Decodes a SurveyDeleted message from the specified reader or buffer.
78073
+ * @function decode
78074
+ * @memberof SurveyDeleted
78075
+ * @static
78076
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
78077
+ * @param {number} [length] Message length if known beforehand
78078
+ * @returns {SurveyDeleted} SurveyDeleted
78079
+ * @throws {Error} If the payload is not a reader or valid buffer
78080
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
78081
+ */
78082
+ SurveyDeleted.decode = function decode(reader, length) {
78083
+ if (!(reader instanceof $Reader))
78084
+ reader = $Reader.create(reader);
78085
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SurveyDeleted();
78086
+ while (reader.pos < end) {
78087
+ var tag = reader.uint32();
78088
+ switch (tag >>> 3) {
78089
+ case 1:
78090
+ message.timestamp = reader.uint64();
78091
+ break;
78092
+ case 2:
78093
+ message.survey = $root.Survey.decode(reader, reader.uint32());
78094
+ break;
78095
+ default:
78096
+ reader.skipType(tag & 7);
78097
+ break;
78098
+ }
78099
+ }
78100
+ return message;
78101
+ };
78102
+
78103
+ /**
78104
+ * Decodes a SurveyDeleted message from the specified reader or buffer, length delimited.
78105
+ * @function decodeDelimited
78106
+ * @memberof SurveyDeleted
78107
+ * @static
78108
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
78109
+ * @returns {SurveyDeleted} SurveyDeleted
78110
+ * @throws {Error} If the payload is not a reader or valid buffer
78111
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
78112
+ */
78113
+ SurveyDeleted.decodeDelimited = function decodeDelimited(reader) {
78114
+ if (!(reader instanceof $Reader))
78115
+ reader = new $Reader(reader);
78116
+ return this.decode(reader, reader.uint32());
78117
+ };
78118
+
78119
+ /**
78120
+ * Verifies a SurveyDeleted message.
78121
+ * @function verify
78122
+ * @memberof SurveyDeleted
78123
+ * @static
78124
+ * @param {Object.<string,*>} message Plain object to verify
78125
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
78126
+ */
78127
+ SurveyDeleted.verify = function verify(message) {
78128
+ if (typeof message !== "object" || message === null)
78129
+ return "object expected";
78130
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
78131
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
78132
+ return "timestamp: integer|Long expected";
78133
+ if (message.survey != null && message.hasOwnProperty("survey")) {
78134
+ var error = $root.Survey.verify(message.survey);
78135
+ if (error)
78136
+ return "survey." + error;
78137
+ }
78138
+ return null;
78139
+ };
78140
+
78141
+ /**
78142
+ * Creates a SurveyDeleted message from a plain object. Also converts values to their respective internal types.
78143
+ * @function fromObject
78144
+ * @memberof SurveyDeleted
78145
+ * @static
78146
+ * @param {Object.<string,*>} object Plain object
78147
+ * @returns {SurveyDeleted} SurveyDeleted
78148
+ */
78149
+ SurveyDeleted.fromObject = function fromObject(object) {
78150
+ if (object instanceof $root.SurveyDeleted)
78151
+ return object;
78152
+ var message = new $root.SurveyDeleted();
78153
+ if (object.timestamp != null)
78154
+ if ($util.Long)
78155
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
78156
+ else if (typeof object.timestamp === "string")
78157
+ message.timestamp = parseInt(object.timestamp, 10);
78158
+ else if (typeof object.timestamp === "number")
78159
+ message.timestamp = object.timestamp;
78160
+ else if (typeof object.timestamp === "object")
78161
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
78162
+ if (object.survey != null) {
78163
+ if (typeof object.survey !== "object")
78164
+ throw TypeError(".SurveyDeleted.survey: object expected");
78165
+ message.survey = $root.Survey.fromObject(object.survey);
78166
+ }
78167
+ return message;
78168
+ };
78169
+
78170
+ /**
78171
+ * Creates a plain object from a SurveyDeleted message. Also converts values to other types if specified.
78172
+ * @function toObject
78173
+ * @memberof SurveyDeleted
78174
+ * @static
78175
+ * @param {SurveyDeleted} message SurveyDeleted
78176
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
78177
+ * @returns {Object.<string,*>} Plain object
78178
+ */
78179
+ SurveyDeleted.toObject = function toObject(message, options) {
78180
+ if (!options)
78181
+ options = {};
78182
+ var object = {};
78183
+ if (options.defaults) {
78184
+ if ($util.Long) {
78185
+ var long = new $util.Long(0, 0, true);
78186
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
78187
+ } else
78188
+ object.timestamp = options.longs === String ? "0" : 0;
78189
+ object.survey = null;
78190
+ }
78191
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
78192
+ if (typeof message.timestamp === "number")
78193
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
78194
+ else
78195
+ 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;
78196
+ if (message.survey != null && message.hasOwnProperty("survey"))
78197
+ object.survey = $root.Survey.toObject(message.survey, options);
78198
+ return object;
78199
+ };
78200
+
78201
+ /**
78202
+ * Converts this SurveyDeleted to JSON.
78203
+ * @function toJSON
78204
+ * @memberof SurveyDeleted
78205
+ * @instance
78206
+ * @returns {Object.<string,*>} JSON object
78207
+ */
78208
+ SurveyDeleted.prototype.toJSON = function toJSON() {
78209
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
78210
+ };
78211
+
78212
+ return SurveyDeleted;
78213
+ })();
78214
+
77040
78215
  $root.AssessmentScore = (function() {
77041
78216
 
77042
78217
  /**
@@ -84475,7 +85650,7 @@ $root.EapCoverageCreated = (function() {
84475
85650
  * @name IEapCoverageCreated
84476
85651
  * @interface IEapCoverageCreated
84477
85652
  * @property {number|Long|null} [orgId] EapCoverageCreated orgId
84478
- * @property {EapServiceType|null} [serviceType] EapCoverageCreated serviceType
85653
+ * @property {b2b.EapServiceType|null} [serviceType] EapCoverageCreated serviceType
84479
85654
  * @property {number|Long|null} [coverageTotal] EapCoverageCreated coverageTotal
84480
85655
  * @property {number|Long|null} [orgSubscriptionEndDate] EapCoverageCreated orgSubscriptionEndDate
84481
85656
  * @property {number|Long|null} [updatedAt] EapCoverageCreated updatedAt
@@ -84507,7 +85682,7 @@ $root.EapCoverageCreated = (function() {
84507
85682
 
84508
85683
  /**
84509
85684
  * EapCoverageCreated serviceType.
84510
- * @member {EapServiceType} serviceType
85685
+ * @member {b2b.EapServiceType} serviceType
84511
85686
  * @memberof EapCoverageCreated
84512
85687
  * @instance
84513
85688
  */
@@ -84833,7 +86008,7 @@ $root.EapCoverageCreated = (function() {
84833
86008
  else
84834
86009
  object.orgId = options.longs === String ? $util.Long.prototype.toString.call(message.orgId) : options.longs === Number ? new $util.LongBits(message.orgId.low >>> 0, message.orgId.high >>> 0).toNumber(true) : message.orgId;
84835
86010
  if (message.serviceType != null && message.hasOwnProperty("serviceType"))
84836
- object.serviceType = options.enums === String ? $root.EapServiceType[message.serviceType] : message.serviceType;
86011
+ object.serviceType = options.enums === String ? $root.b2b.EapServiceType[message.serviceType] : message.serviceType;
84837
86012
  if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
84838
86013
  if (typeof message.coverageTotal === "number")
84839
86014
  object.coverageTotal = options.longs === String ? String(message.coverageTotal) : message.coverageTotal;
@@ -84875,7 +86050,7 @@ $root.EapCoverageUpdated = (function() {
84875
86050
  * @name IEapCoverageUpdated
84876
86051
  * @interface IEapCoverageUpdated
84877
86052
  * @property {number|Long|null} [orgId] EapCoverageUpdated orgId
84878
- * @property {EapServiceType|null} [serviceType] EapCoverageUpdated serviceType
86053
+ * @property {b2b.EapServiceType|null} [serviceType] EapCoverageUpdated serviceType
84879
86054
  * @property {number|Long|null} [coverageTotal] EapCoverageUpdated coverageTotal
84880
86055
  * @property {number|Long|null} [orgSubscriptionEndDate] EapCoverageUpdated orgSubscriptionEndDate
84881
86056
  * @property {number|Long|null} [updatedAt] EapCoverageUpdated updatedAt
@@ -84907,7 +86082,7 @@ $root.EapCoverageUpdated = (function() {
84907
86082
 
84908
86083
  /**
84909
86084
  * EapCoverageUpdated serviceType.
84910
- * @member {EapServiceType} serviceType
86085
+ * @member {b2b.EapServiceType} serviceType
84911
86086
  * @memberof EapCoverageUpdated
84912
86087
  * @instance
84913
86088
  */
@@ -85233,7 +86408,7 @@ $root.EapCoverageUpdated = (function() {
85233
86408
  else
85234
86409
  object.orgId = options.longs === String ? $util.Long.prototype.toString.call(message.orgId) : options.longs === Number ? new $util.LongBits(message.orgId.low >>> 0, message.orgId.high >>> 0).toNumber(true) : message.orgId;
85235
86410
  if (message.serviceType != null && message.hasOwnProperty("serviceType"))
85236
- object.serviceType = options.enums === String ? $root.EapServiceType[message.serviceType] : message.serviceType;
86411
+ object.serviceType = options.enums === String ? $root.b2b.EapServiceType[message.serviceType] : message.serviceType;
85237
86412
  if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
85238
86413
  if (typeof message.coverageTotal === "number")
85239
86414
  object.coverageTotal = options.longs === String ? String(message.coverageTotal) : message.coverageTotal;
@@ -85275,7 +86450,7 @@ $root.EapCoverageDeleted = (function() {
85275
86450
  * @name IEapCoverageDeleted
85276
86451
  * @interface IEapCoverageDeleted
85277
86452
  * @property {number|Long|null} [orgId] EapCoverageDeleted orgId
85278
- * @property {EapServiceType|null} [serviceType] EapCoverageDeleted serviceType
86453
+ * @property {b2b.EapServiceType|null} [serviceType] EapCoverageDeleted serviceType
85279
86454
  * @property {number|Long|null} [coverageTotal] EapCoverageDeleted coverageTotal
85280
86455
  * @property {number|Long|null} [orgSubscriptionEndDate] EapCoverageDeleted orgSubscriptionEndDate
85281
86456
  * @property {number|Long|null} [updatedAt] EapCoverageDeleted updatedAt
@@ -85307,7 +86482,7 @@ $root.EapCoverageDeleted = (function() {
85307
86482
 
85308
86483
  /**
85309
86484
  * EapCoverageDeleted serviceType.
85310
- * @member {EapServiceType} serviceType
86485
+ * @member {b2b.EapServiceType} serviceType
85311
86486
  * @memberof EapCoverageDeleted
85312
86487
  * @instance
85313
86488
  */
@@ -85633,7 +86808,7 @@ $root.EapCoverageDeleted = (function() {
85633
86808
  else
85634
86809
  object.orgId = options.longs === String ? $util.Long.prototype.toString.call(message.orgId) : options.longs === Number ? new $util.LongBits(message.orgId.low >>> 0, message.orgId.high >>> 0).toNumber(true) : message.orgId;
85635
86810
  if (message.serviceType != null && message.hasOwnProperty("serviceType"))
85636
- object.serviceType = options.enums === String ? $root.EapServiceType[message.serviceType] : message.serviceType;
86811
+ object.serviceType = options.enums === String ? $root.b2b.EapServiceType[message.serviceType] : message.serviceType;
85637
86812
  if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
85638
86813
  if (typeof message.coverageTotal === "number")
85639
86814
  object.coverageTotal = options.longs === String ? String(message.coverageTotal) : message.coverageTotal;
@@ -85668,24 +86843,6 @@ $root.EapCoverageDeleted = (function() {
85668
86843
  return EapCoverageDeleted;
85669
86844
  })();
85670
86845
 
85671
- /**
85672
- * EapServiceType enum.
85673
- * @name EapServiceType
85674
- * @enum {string}
85675
- * @property {number} EAP_SERVICE_TYPE_UNKNOWN=0 EAP_SERVICE_TYPE_UNKNOWN value
85676
- * @property {number} EAP_SERVICE_TYPE_PSYCHIATRY=1 EAP_SERVICE_TYPE_PSYCHIATRY value
85677
- * @property {number} EAP_SERVICE_TYPE_THERAPY=2 EAP_SERVICE_TYPE_THERAPY value
85678
- * @property {number} EAP_SERVICE_TYPE_PSYCHIATRY_THERAPY=3 EAP_SERVICE_TYPE_PSYCHIATRY_THERAPY value
85679
- */
85680
- $root.EapServiceType = (function() {
85681
- var valuesById = {}, values = Object.create(valuesById);
85682
- values[valuesById[0] = "EAP_SERVICE_TYPE_UNKNOWN"] = 0;
85683
- values[valuesById[1] = "EAP_SERVICE_TYPE_PSYCHIATRY"] = 1;
85684
- values[valuesById[2] = "EAP_SERVICE_TYPE_THERAPY"] = 2;
85685
- values[valuesById[3] = "EAP_SERVICE_TYPE_PSYCHIATRY_THERAPY"] = 3;
85686
- return values;
85687
- })();
85688
-
85689
86846
  $root.EligibilityFileProcessed = (function() {
85690
86847
 
85691
86848
  /**
@@ -106576,6 +107733,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
106576
107733
  * @property {string|null} [partnerUserId] EnterpriseUserEnrollmentCreated partnerUserId
106577
107734
  * @property {string|null} [partnerSubscriberUserId] EnterpriseUserEnrollmentCreated partnerSubscriberUserId
106578
107735
  * @property {string|null} [medicalPlan] EnterpriseUserEnrollmentCreated medicalPlan
107736
+ * @property {number|Long|null} [eapCoverageTotal] EnterpriseUserEnrollmentCreated eapCoverageTotal
107737
+ * @property {b2b.EapServiceType|null} [eapServiceType] EnterpriseUserEnrollmentCreated eapServiceType
106579
107738
  */
106580
107739
 
106581
107740
  /**
@@ -106865,6 +108024,22 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
106865
108024
  */
106866
108025
  EnterpriseUserEnrollmentCreated.prototype.medicalPlan = "";
106867
108026
 
108027
+ /**
108028
+ * EnterpriseUserEnrollmentCreated eapCoverageTotal.
108029
+ * @member {number|Long} eapCoverageTotal
108030
+ * @memberof EnterpriseUserEnrollmentCreated
108031
+ * @instance
108032
+ */
108033
+ EnterpriseUserEnrollmentCreated.prototype.eapCoverageTotal = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
108034
+
108035
+ /**
108036
+ * EnterpriseUserEnrollmentCreated eapServiceType.
108037
+ * @member {b2b.EapServiceType} eapServiceType
108038
+ * @memberof EnterpriseUserEnrollmentCreated
108039
+ * @instance
108040
+ */
108041
+ EnterpriseUserEnrollmentCreated.prototype.eapServiceType = 0;
108042
+
106868
108043
  /**
106869
108044
  * Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
106870
108045
  * @function create
@@ -106957,6 +108132,10 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
106957
108132
  writer.uint32(/* id 38, wireType 2 =*/306).string(message.partnerSubscriberUserId);
106958
108133
  if (message.medicalPlan != null && message.hasOwnProperty("medicalPlan"))
106959
108134
  writer.uint32(/* id 39, wireType 2 =*/314).string(message.medicalPlan);
108135
+ if (message.eapCoverageTotal != null && message.hasOwnProperty("eapCoverageTotal"))
108136
+ writer.uint32(/* id 40, wireType 0 =*/320).uint64(message.eapCoverageTotal);
108137
+ if (message.eapServiceType != null && message.hasOwnProperty("eapServiceType"))
108138
+ writer.uint32(/* id 41, wireType 0 =*/328).int32(message.eapServiceType);
106960
108139
  return writer;
106961
108140
  };
106962
108141
 
@@ -107093,6 +108272,12 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
107093
108272
  case 39:
107094
108273
  message.medicalPlan = reader.string();
107095
108274
  break;
108275
+ case 40:
108276
+ message.eapCoverageTotal = reader.uint64();
108277
+ break;
108278
+ case 41:
108279
+ message.eapServiceType = reader.int32();
108280
+ break;
107096
108281
  default:
107097
108282
  reader.skipType(tag & 7);
107098
108283
  break;
@@ -107268,6 +108453,19 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
107268
108453
  if (message.medicalPlan != null && message.hasOwnProperty("medicalPlan"))
107269
108454
  if (!$util.isString(message.medicalPlan))
107270
108455
  return "medicalPlan: string expected";
108456
+ if (message.eapCoverageTotal != null && message.hasOwnProperty("eapCoverageTotal"))
108457
+ if (!$util.isInteger(message.eapCoverageTotal) && !(message.eapCoverageTotal && $util.isInteger(message.eapCoverageTotal.low) && $util.isInteger(message.eapCoverageTotal.high)))
108458
+ return "eapCoverageTotal: integer|Long expected";
108459
+ if (message.eapServiceType != null && message.hasOwnProperty("eapServiceType"))
108460
+ switch (message.eapServiceType) {
108461
+ default:
108462
+ return "eapServiceType: enum value expected";
108463
+ case 0:
108464
+ case 1:
108465
+ case 2:
108466
+ case 3:
108467
+ break;
108468
+ }
107271
108469
  return null;
107272
108470
  };
107273
108471
 
@@ -107478,6 +108676,33 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
107478
108676
  message.partnerSubscriberUserId = String(object.partnerSubscriberUserId);
107479
108677
  if (object.medicalPlan != null)
107480
108678
  message.medicalPlan = String(object.medicalPlan);
108679
+ if (object.eapCoverageTotal != null)
108680
+ if ($util.Long)
108681
+ (message.eapCoverageTotal = $util.Long.fromValue(object.eapCoverageTotal)).unsigned = true;
108682
+ else if (typeof object.eapCoverageTotal === "string")
108683
+ message.eapCoverageTotal = parseInt(object.eapCoverageTotal, 10);
108684
+ else if (typeof object.eapCoverageTotal === "number")
108685
+ message.eapCoverageTotal = object.eapCoverageTotal;
108686
+ else if (typeof object.eapCoverageTotal === "object")
108687
+ message.eapCoverageTotal = new $util.LongBits(object.eapCoverageTotal.low >>> 0, object.eapCoverageTotal.high >>> 0).toNumber(true);
108688
+ switch (object.eapServiceType) {
108689
+ case "EAP_SERVICE_TYPE_UNKNOWN":
108690
+ case 0:
108691
+ message.eapServiceType = 0;
108692
+ break;
108693
+ case "EAP_SERVICE_TYPE_PSYCHIATRY":
108694
+ case 1:
108695
+ message.eapServiceType = 1;
108696
+ break;
108697
+ case "EAP_SERVICE_TYPE_THERAPY":
108698
+ case 2:
108699
+ message.eapServiceType = 2;
108700
+ break;
108701
+ case "EAP_SERVICE_TYPE_PSYCHIATRY_THERAPY":
108702
+ case 3:
108703
+ message.eapServiceType = 3;
108704
+ break;
108705
+ }
107481
108706
  return message;
107482
108707
  };
107483
108708
 
@@ -107549,6 +108774,12 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
107549
108774
  object.partnerUserId = "";
107550
108775
  object.partnerSubscriberUserId = "";
107551
108776
  object.medicalPlan = "";
108777
+ if ($util.Long) {
108778
+ var long = new $util.Long(0, 0, true);
108779
+ object.eapCoverageTotal = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
108780
+ } else
108781
+ object.eapCoverageTotal = options.longs === String ? "0" : 0;
108782
+ object.eapServiceType = options.enums === String ? "EAP_SERVICE_TYPE_UNKNOWN" : 0;
107552
108783
  }
107553
108784
  if (message.userId != null && message.hasOwnProperty("userId"))
107554
108785
  object.userId = message.userId;
@@ -107633,6 +108864,13 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
107633
108864
  object.partnerSubscriberUserId = message.partnerSubscriberUserId;
107634
108865
  if (message.medicalPlan != null && message.hasOwnProperty("medicalPlan"))
107635
108866
  object.medicalPlan = message.medicalPlan;
108867
+ if (message.eapCoverageTotal != null && message.hasOwnProperty("eapCoverageTotal"))
108868
+ if (typeof message.eapCoverageTotal === "number")
108869
+ object.eapCoverageTotal = options.longs === String ? String(message.eapCoverageTotal) : message.eapCoverageTotal;
108870
+ else
108871
+ object.eapCoverageTotal = options.longs === String ? $util.Long.prototype.toString.call(message.eapCoverageTotal) : options.longs === Number ? new $util.LongBits(message.eapCoverageTotal.low >>> 0, message.eapCoverageTotal.high >>> 0).toNumber(true) : message.eapCoverageTotal;
108872
+ if (message.eapServiceType != null && message.hasOwnProperty("eapServiceType"))
108873
+ object.eapServiceType = options.enums === String ? $root.b2b.EapServiceType[message.eapServiceType] : message.eapServiceType;
107636
108874
  return object;
107637
108875
  };
107638
108876