@headspace/protos-events 1.1.0 → 1.2.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
@@ -107,6 +107,246 @@ export class FamilyMemberAdded implements IFamilyMemberAdded {
107
107
  public toJSON(): { [k: string]: any };
108
108
  }
109
109
 
110
+ /** Properties of a FamilyMemberInvited. */
111
+ export interface IFamilyMemberInvited {
112
+
113
+ /** FamilyMemberInvited timestamp */
114
+ timestamp?: (number|Long|null);
115
+
116
+ /** FamilyMemberInvited userGroupEntryId */
117
+ userGroupEntryId?: (number|null);
118
+
119
+ /** FamilyMemberInvited userGroupId */
120
+ userGroupId?: (number|null);
121
+
122
+ /** FamilyMemberInvited email */
123
+ email?: (string|null);
124
+
125
+ /** FamilyMemberInvited token */
126
+ token?: (string|null);
127
+
128
+ /** FamilyMemberInvited userId */
129
+ userId?: (string|null);
130
+ }
131
+
132
+ /** Represents a FamilyMemberInvited. */
133
+ export class FamilyMemberInvited implements IFamilyMemberInvited {
134
+
135
+ /**
136
+ * Constructs a new FamilyMemberInvited.
137
+ * @param [properties] Properties to set
138
+ */
139
+ constructor(properties?: IFamilyMemberInvited);
140
+
141
+ /** FamilyMemberInvited timestamp. */
142
+ public timestamp: (number|Long);
143
+
144
+ /** FamilyMemberInvited userGroupEntryId. */
145
+ public userGroupEntryId: number;
146
+
147
+ /** FamilyMemberInvited userGroupId. */
148
+ public userGroupId: number;
149
+
150
+ /** FamilyMemberInvited email. */
151
+ public email: string;
152
+
153
+ /** FamilyMemberInvited token. */
154
+ public token: string;
155
+
156
+ /** FamilyMemberInvited userId. */
157
+ public userId: string;
158
+
159
+ /**
160
+ * Creates a new FamilyMemberInvited instance using the specified properties.
161
+ * @param [properties] Properties to set
162
+ * @returns FamilyMemberInvited instance
163
+ */
164
+ public static create(properties?: IFamilyMemberInvited): FamilyMemberInvited;
165
+
166
+ /**
167
+ * Encodes the specified FamilyMemberInvited message. Does not implicitly {@link FamilyMemberInvited.verify|verify} messages.
168
+ * @param message FamilyMemberInvited message or plain object to encode
169
+ * @param [writer] Writer to encode to
170
+ * @returns Writer
171
+ */
172
+ public static encode(message: IFamilyMemberInvited, writer?: $protobuf.Writer): $protobuf.Writer;
173
+
174
+ /**
175
+ * Encodes the specified FamilyMemberInvited message, length delimited. Does not implicitly {@link FamilyMemberInvited.verify|verify} messages.
176
+ * @param message FamilyMemberInvited message or plain object to encode
177
+ * @param [writer] Writer to encode to
178
+ * @returns Writer
179
+ */
180
+ public static encodeDelimited(message: IFamilyMemberInvited, writer?: $protobuf.Writer): $protobuf.Writer;
181
+
182
+ /**
183
+ * Decodes a FamilyMemberInvited message from the specified reader or buffer.
184
+ * @param reader Reader or buffer to decode from
185
+ * @param [length] Message length if known beforehand
186
+ * @returns FamilyMemberInvited
187
+ * @throws {Error} If the payload is not a reader or valid buffer
188
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
189
+ */
190
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): FamilyMemberInvited;
191
+
192
+ /**
193
+ * Decodes a FamilyMemberInvited message from the specified reader or buffer, length delimited.
194
+ * @param reader Reader or buffer to decode from
195
+ * @returns FamilyMemberInvited
196
+ * @throws {Error} If the payload is not a reader or valid buffer
197
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
198
+ */
199
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): FamilyMemberInvited;
200
+
201
+ /**
202
+ * Verifies a FamilyMemberInvited message.
203
+ * @param message Plain object to verify
204
+ * @returns `null` if valid, otherwise the reason why it is not
205
+ */
206
+ public static verify(message: { [k: string]: any }): (string|null);
207
+
208
+ /**
209
+ * Creates a FamilyMemberInvited message from a plain object. Also converts values to their respective internal types.
210
+ * @param object Plain object
211
+ * @returns FamilyMemberInvited
212
+ */
213
+ public static fromObject(object: { [k: string]: any }): FamilyMemberInvited;
214
+
215
+ /**
216
+ * Creates a plain object from a FamilyMemberInvited message. Also converts values to other types if specified.
217
+ * @param message FamilyMemberInvited
218
+ * @param [options] Conversion options
219
+ * @returns Plain object
220
+ */
221
+ public static toObject(message: FamilyMemberInvited, options?: $protobuf.IConversionOptions): { [k: string]: any };
222
+
223
+ /**
224
+ * Converts this FamilyMemberInvited to JSON.
225
+ * @returns JSON object
226
+ */
227
+ public toJSON(): { [k: string]: any };
228
+ }
229
+
230
+ /** Properties of a FamilyMemberRejected. */
231
+ export interface IFamilyMemberRejected {
232
+
233
+ /** FamilyMemberRejected timestamp */
234
+ timestamp?: (number|Long|null);
235
+
236
+ /** FamilyMemberRejected userGroupEntryId */
237
+ userGroupEntryId?: (number|null);
238
+
239
+ /** FamilyMemberRejected userGroupId */
240
+ userGroupId?: (number|null);
241
+
242
+ /** FamilyMemberRejected email */
243
+ email?: (string|null);
244
+
245
+ /** FamilyMemberRejected token */
246
+ token?: (string|null);
247
+
248
+ /** FamilyMemberRejected userId */
249
+ userId?: (string|null);
250
+ }
251
+
252
+ /** Represents a FamilyMemberRejected. */
253
+ export class FamilyMemberRejected implements IFamilyMemberRejected {
254
+
255
+ /**
256
+ * Constructs a new FamilyMemberRejected.
257
+ * @param [properties] Properties to set
258
+ */
259
+ constructor(properties?: IFamilyMemberRejected);
260
+
261
+ /** FamilyMemberRejected timestamp. */
262
+ public timestamp: (number|Long);
263
+
264
+ /** FamilyMemberRejected userGroupEntryId. */
265
+ public userGroupEntryId: number;
266
+
267
+ /** FamilyMemberRejected userGroupId. */
268
+ public userGroupId: number;
269
+
270
+ /** FamilyMemberRejected email. */
271
+ public email: string;
272
+
273
+ /** FamilyMemberRejected token. */
274
+ public token: string;
275
+
276
+ /** FamilyMemberRejected userId. */
277
+ public userId: string;
278
+
279
+ /**
280
+ * Creates a new FamilyMemberRejected instance using the specified properties.
281
+ * @param [properties] Properties to set
282
+ * @returns FamilyMemberRejected instance
283
+ */
284
+ public static create(properties?: IFamilyMemberRejected): FamilyMemberRejected;
285
+
286
+ /**
287
+ * Encodes the specified FamilyMemberRejected message. Does not implicitly {@link FamilyMemberRejected.verify|verify} messages.
288
+ * @param message FamilyMemberRejected message or plain object to encode
289
+ * @param [writer] Writer to encode to
290
+ * @returns Writer
291
+ */
292
+ public static encode(message: IFamilyMemberRejected, writer?: $protobuf.Writer): $protobuf.Writer;
293
+
294
+ /**
295
+ * Encodes the specified FamilyMemberRejected message, length delimited. Does not implicitly {@link FamilyMemberRejected.verify|verify} messages.
296
+ * @param message FamilyMemberRejected message or plain object to encode
297
+ * @param [writer] Writer to encode to
298
+ * @returns Writer
299
+ */
300
+ public static encodeDelimited(message: IFamilyMemberRejected, writer?: $protobuf.Writer): $protobuf.Writer;
301
+
302
+ /**
303
+ * Decodes a FamilyMemberRejected message from the specified reader or buffer.
304
+ * @param reader Reader or buffer to decode from
305
+ * @param [length] Message length if known beforehand
306
+ * @returns FamilyMemberRejected
307
+ * @throws {Error} If the payload is not a reader or valid buffer
308
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
309
+ */
310
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): FamilyMemberRejected;
311
+
312
+ /**
313
+ * Decodes a FamilyMemberRejected message from the specified reader or buffer, length delimited.
314
+ * @param reader Reader or buffer to decode from
315
+ * @returns FamilyMemberRejected
316
+ * @throws {Error} If the payload is not a reader or valid buffer
317
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
318
+ */
319
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): FamilyMemberRejected;
320
+
321
+ /**
322
+ * Verifies a FamilyMemberRejected message.
323
+ * @param message Plain object to verify
324
+ * @returns `null` if valid, otherwise the reason why it is not
325
+ */
326
+ public static verify(message: { [k: string]: any }): (string|null);
327
+
328
+ /**
329
+ * Creates a FamilyMemberRejected message from a plain object. Also converts values to their respective internal types.
330
+ * @param object Plain object
331
+ * @returns FamilyMemberRejected
332
+ */
333
+ public static fromObject(object: { [k: string]: any }): FamilyMemberRejected;
334
+
335
+ /**
336
+ * Creates a plain object from a FamilyMemberRejected message. Also converts values to other types if specified.
337
+ * @param message FamilyMemberRejected
338
+ * @param [options] Conversion options
339
+ * @returns Plain object
340
+ */
341
+ public static toObject(message: FamilyMemberRejected, options?: $protobuf.IConversionOptions): { [k: string]: any };
342
+
343
+ /**
344
+ * Converts this FamilyMemberRejected to JSON.
345
+ * @returns JSON object
346
+ */
347
+ public toJSON(): { [k: string]: any };
348
+ }
349
+
110
350
  /** Properties of a FamilyMemberRemoved. */
111
351
  export interface IFamilyMemberRemoved {
112
352
 
package/lib/index.js CHANGED
@@ -277,6 +277,630 @@ $root.FamilyMemberAdded = (function() {
277
277
  return FamilyMemberAdded;
278
278
  })();
279
279
 
280
+ $root.FamilyMemberInvited = (function() {
281
+
282
+ /**
283
+ * Properties of a FamilyMemberInvited.
284
+ * @exports IFamilyMemberInvited
285
+ * @interface IFamilyMemberInvited
286
+ * @property {number|Long|null} [timestamp] FamilyMemberInvited timestamp
287
+ * @property {number|null} [userGroupEntryId] FamilyMemberInvited userGroupEntryId
288
+ * @property {number|null} [userGroupId] FamilyMemberInvited userGroupId
289
+ * @property {string|null} [email] FamilyMemberInvited email
290
+ * @property {string|null} [token] FamilyMemberInvited token
291
+ * @property {string|null} [userId] FamilyMemberInvited userId
292
+ */
293
+
294
+ /**
295
+ * Constructs a new FamilyMemberInvited.
296
+ * @exports FamilyMemberInvited
297
+ * @classdesc Represents a FamilyMemberInvited.
298
+ * @implements IFamilyMemberInvited
299
+ * @constructor
300
+ * @param {IFamilyMemberInvited=} [properties] Properties to set
301
+ */
302
+ function FamilyMemberInvited(properties) {
303
+ if (properties)
304
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
305
+ if (properties[keys[i]] != null)
306
+ this[keys[i]] = properties[keys[i]];
307
+ }
308
+
309
+ /**
310
+ * FamilyMemberInvited timestamp.
311
+ * @member {number|Long} timestamp
312
+ * @memberof FamilyMemberInvited
313
+ * @instance
314
+ */
315
+ FamilyMemberInvited.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
316
+
317
+ /**
318
+ * FamilyMemberInvited userGroupEntryId.
319
+ * @member {number} userGroupEntryId
320
+ * @memberof FamilyMemberInvited
321
+ * @instance
322
+ */
323
+ FamilyMemberInvited.prototype.userGroupEntryId = 0;
324
+
325
+ /**
326
+ * FamilyMemberInvited userGroupId.
327
+ * @member {number} userGroupId
328
+ * @memberof FamilyMemberInvited
329
+ * @instance
330
+ */
331
+ FamilyMemberInvited.prototype.userGroupId = 0;
332
+
333
+ /**
334
+ * FamilyMemberInvited email.
335
+ * @member {string} email
336
+ * @memberof FamilyMemberInvited
337
+ * @instance
338
+ */
339
+ FamilyMemberInvited.prototype.email = "";
340
+
341
+ /**
342
+ * FamilyMemberInvited token.
343
+ * @member {string} token
344
+ * @memberof FamilyMemberInvited
345
+ * @instance
346
+ */
347
+ FamilyMemberInvited.prototype.token = "";
348
+
349
+ /**
350
+ * FamilyMemberInvited userId.
351
+ * @member {string} userId
352
+ * @memberof FamilyMemberInvited
353
+ * @instance
354
+ */
355
+ FamilyMemberInvited.prototype.userId = "";
356
+
357
+ /**
358
+ * Creates a new FamilyMemberInvited instance using the specified properties.
359
+ * @function create
360
+ * @memberof FamilyMemberInvited
361
+ * @static
362
+ * @param {IFamilyMemberInvited=} [properties] Properties to set
363
+ * @returns {FamilyMemberInvited} FamilyMemberInvited instance
364
+ */
365
+ FamilyMemberInvited.create = function create(properties) {
366
+ return new FamilyMemberInvited(properties);
367
+ };
368
+
369
+ /**
370
+ * Encodes the specified FamilyMemberInvited message. Does not implicitly {@link FamilyMemberInvited.verify|verify} messages.
371
+ * @function encode
372
+ * @memberof FamilyMemberInvited
373
+ * @static
374
+ * @param {IFamilyMemberInvited} message FamilyMemberInvited message or plain object to encode
375
+ * @param {$protobuf.Writer} [writer] Writer to encode to
376
+ * @returns {$protobuf.Writer} Writer
377
+ */
378
+ FamilyMemberInvited.encode = function encode(message, writer) {
379
+ if (!writer)
380
+ writer = $Writer.create();
381
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
382
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
383
+ if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
384
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.userGroupEntryId);
385
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
386
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.userGroupId);
387
+ if (message.email != null && message.hasOwnProperty("email"))
388
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.email);
389
+ if (message.token != null && message.hasOwnProperty("token"))
390
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.token);
391
+ if (message.userId != null && message.hasOwnProperty("userId"))
392
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.userId);
393
+ return writer;
394
+ };
395
+
396
+ /**
397
+ * Encodes the specified FamilyMemberInvited message, length delimited. Does not implicitly {@link FamilyMemberInvited.verify|verify} messages.
398
+ * @function encodeDelimited
399
+ * @memberof FamilyMemberInvited
400
+ * @static
401
+ * @param {IFamilyMemberInvited} message FamilyMemberInvited message or plain object to encode
402
+ * @param {$protobuf.Writer} [writer] Writer to encode to
403
+ * @returns {$protobuf.Writer} Writer
404
+ */
405
+ FamilyMemberInvited.encodeDelimited = function encodeDelimited(message, writer) {
406
+ return this.encode(message, writer).ldelim();
407
+ };
408
+
409
+ /**
410
+ * Decodes a FamilyMemberInvited message from the specified reader or buffer.
411
+ * @function decode
412
+ * @memberof FamilyMemberInvited
413
+ * @static
414
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
415
+ * @param {number} [length] Message length if known beforehand
416
+ * @returns {FamilyMemberInvited} FamilyMemberInvited
417
+ * @throws {Error} If the payload is not a reader or valid buffer
418
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
419
+ */
420
+ FamilyMemberInvited.decode = function decode(reader, length) {
421
+ if (!(reader instanceof $Reader))
422
+ reader = $Reader.create(reader);
423
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FamilyMemberInvited();
424
+ while (reader.pos < end) {
425
+ var tag = reader.uint32();
426
+ switch (tag >>> 3) {
427
+ case 1:
428
+ message.timestamp = reader.uint64();
429
+ break;
430
+ case 2:
431
+ message.userGroupEntryId = reader.uint32();
432
+ break;
433
+ case 3:
434
+ message.userGroupId = reader.uint32();
435
+ break;
436
+ case 4:
437
+ message.email = reader.string();
438
+ break;
439
+ case 5:
440
+ message.token = reader.string();
441
+ break;
442
+ case 6:
443
+ message.userId = reader.string();
444
+ break;
445
+ default:
446
+ reader.skipType(tag & 7);
447
+ break;
448
+ }
449
+ }
450
+ return message;
451
+ };
452
+
453
+ /**
454
+ * Decodes a FamilyMemberInvited message from the specified reader or buffer, length delimited.
455
+ * @function decodeDelimited
456
+ * @memberof FamilyMemberInvited
457
+ * @static
458
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
459
+ * @returns {FamilyMemberInvited} FamilyMemberInvited
460
+ * @throws {Error} If the payload is not a reader or valid buffer
461
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
462
+ */
463
+ FamilyMemberInvited.decodeDelimited = function decodeDelimited(reader) {
464
+ if (!(reader instanceof $Reader))
465
+ reader = new $Reader(reader);
466
+ return this.decode(reader, reader.uint32());
467
+ };
468
+
469
+ /**
470
+ * Verifies a FamilyMemberInvited message.
471
+ * @function verify
472
+ * @memberof FamilyMemberInvited
473
+ * @static
474
+ * @param {Object.<string,*>} message Plain object to verify
475
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
476
+ */
477
+ FamilyMemberInvited.verify = function verify(message) {
478
+ if (typeof message !== "object" || message === null)
479
+ return "object expected";
480
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
481
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
482
+ return "timestamp: integer|Long expected";
483
+ if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
484
+ if (!$util.isInteger(message.userGroupEntryId))
485
+ return "userGroupEntryId: integer expected";
486
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
487
+ if (!$util.isInteger(message.userGroupId))
488
+ return "userGroupId: integer expected";
489
+ if (message.email != null && message.hasOwnProperty("email"))
490
+ if (!$util.isString(message.email))
491
+ return "email: string expected";
492
+ if (message.token != null && message.hasOwnProperty("token"))
493
+ if (!$util.isString(message.token))
494
+ return "token: string expected";
495
+ if (message.userId != null && message.hasOwnProperty("userId"))
496
+ if (!$util.isString(message.userId))
497
+ return "userId: string expected";
498
+ return null;
499
+ };
500
+
501
+ /**
502
+ * Creates a FamilyMemberInvited message from a plain object. Also converts values to their respective internal types.
503
+ * @function fromObject
504
+ * @memberof FamilyMemberInvited
505
+ * @static
506
+ * @param {Object.<string,*>} object Plain object
507
+ * @returns {FamilyMemberInvited} FamilyMemberInvited
508
+ */
509
+ FamilyMemberInvited.fromObject = function fromObject(object) {
510
+ if (object instanceof $root.FamilyMemberInvited)
511
+ return object;
512
+ var message = new $root.FamilyMemberInvited();
513
+ if (object.timestamp != null)
514
+ if ($util.Long)
515
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
516
+ else if (typeof object.timestamp === "string")
517
+ message.timestamp = parseInt(object.timestamp, 10);
518
+ else if (typeof object.timestamp === "number")
519
+ message.timestamp = object.timestamp;
520
+ else if (typeof object.timestamp === "object")
521
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
522
+ if (object.userGroupEntryId != null)
523
+ message.userGroupEntryId = object.userGroupEntryId >>> 0;
524
+ if (object.userGroupId != null)
525
+ message.userGroupId = object.userGroupId >>> 0;
526
+ if (object.email != null)
527
+ message.email = String(object.email);
528
+ if (object.token != null)
529
+ message.token = String(object.token);
530
+ if (object.userId != null)
531
+ message.userId = String(object.userId);
532
+ return message;
533
+ };
534
+
535
+ /**
536
+ * Creates a plain object from a FamilyMemberInvited message. Also converts values to other types if specified.
537
+ * @function toObject
538
+ * @memberof FamilyMemberInvited
539
+ * @static
540
+ * @param {FamilyMemberInvited} message FamilyMemberInvited
541
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
542
+ * @returns {Object.<string,*>} Plain object
543
+ */
544
+ FamilyMemberInvited.toObject = function toObject(message, options) {
545
+ if (!options)
546
+ options = {};
547
+ var object = {};
548
+ if (options.defaults) {
549
+ if ($util.Long) {
550
+ var long = new $util.Long(0, 0, true);
551
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
552
+ } else
553
+ object.timestamp = options.longs === String ? "0" : 0;
554
+ object.userGroupEntryId = 0;
555
+ object.userGroupId = 0;
556
+ object.email = "";
557
+ object.token = "";
558
+ object.userId = "";
559
+ }
560
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
561
+ if (typeof message.timestamp === "number")
562
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
563
+ else
564
+ 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;
565
+ if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
566
+ object.userGroupEntryId = message.userGroupEntryId;
567
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
568
+ object.userGroupId = message.userGroupId;
569
+ if (message.email != null && message.hasOwnProperty("email"))
570
+ object.email = message.email;
571
+ if (message.token != null && message.hasOwnProperty("token"))
572
+ object.token = message.token;
573
+ if (message.userId != null && message.hasOwnProperty("userId"))
574
+ object.userId = message.userId;
575
+ return object;
576
+ };
577
+
578
+ /**
579
+ * Converts this FamilyMemberInvited to JSON.
580
+ * @function toJSON
581
+ * @memberof FamilyMemberInvited
582
+ * @instance
583
+ * @returns {Object.<string,*>} JSON object
584
+ */
585
+ FamilyMemberInvited.prototype.toJSON = function toJSON() {
586
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
587
+ };
588
+
589
+ return FamilyMemberInvited;
590
+ })();
591
+
592
+ $root.FamilyMemberRejected = (function() {
593
+
594
+ /**
595
+ * Properties of a FamilyMemberRejected.
596
+ * @exports IFamilyMemberRejected
597
+ * @interface IFamilyMemberRejected
598
+ * @property {number|Long|null} [timestamp] FamilyMemberRejected timestamp
599
+ * @property {number|null} [userGroupEntryId] FamilyMemberRejected userGroupEntryId
600
+ * @property {number|null} [userGroupId] FamilyMemberRejected userGroupId
601
+ * @property {string|null} [email] FamilyMemberRejected email
602
+ * @property {string|null} [token] FamilyMemberRejected token
603
+ * @property {string|null} [userId] FamilyMemberRejected userId
604
+ */
605
+
606
+ /**
607
+ * Constructs a new FamilyMemberRejected.
608
+ * @exports FamilyMemberRejected
609
+ * @classdesc Represents a FamilyMemberRejected.
610
+ * @implements IFamilyMemberRejected
611
+ * @constructor
612
+ * @param {IFamilyMemberRejected=} [properties] Properties to set
613
+ */
614
+ function FamilyMemberRejected(properties) {
615
+ if (properties)
616
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
617
+ if (properties[keys[i]] != null)
618
+ this[keys[i]] = properties[keys[i]];
619
+ }
620
+
621
+ /**
622
+ * FamilyMemberRejected timestamp.
623
+ * @member {number|Long} timestamp
624
+ * @memberof FamilyMemberRejected
625
+ * @instance
626
+ */
627
+ FamilyMemberRejected.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
628
+
629
+ /**
630
+ * FamilyMemberRejected userGroupEntryId.
631
+ * @member {number} userGroupEntryId
632
+ * @memberof FamilyMemberRejected
633
+ * @instance
634
+ */
635
+ FamilyMemberRejected.prototype.userGroupEntryId = 0;
636
+
637
+ /**
638
+ * FamilyMemberRejected userGroupId.
639
+ * @member {number} userGroupId
640
+ * @memberof FamilyMemberRejected
641
+ * @instance
642
+ */
643
+ FamilyMemberRejected.prototype.userGroupId = 0;
644
+
645
+ /**
646
+ * FamilyMemberRejected email.
647
+ * @member {string} email
648
+ * @memberof FamilyMemberRejected
649
+ * @instance
650
+ */
651
+ FamilyMemberRejected.prototype.email = "";
652
+
653
+ /**
654
+ * FamilyMemberRejected token.
655
+ * @member {string} token
656
+ * @memberof FamilyMemberRejected
657
+ * @instance
658
+ */
659
+ FamilyMemberRejected.prototype.token = "";
660
+
661
+ /**
662
+ * FamilyMemberRejected userId.
663
+ * @member {string} userId
664
+ * @memberof FamilyMemberRejected
665
+ * @instance
666
+ */
667
+ FamilyMemberRejected.prototype.userId = "";
668
+
669
+ /**
670
+ * Creates a new FamilyMemberRejected instance using the specified properties.
671
+ * @function create
672
+ * @memberof FamilyMemberRejected
673
+ * @static
674
+ * @param {IFamilyMemberRejected=} [properties] Properties to set
675
+ * @returns {FamilyMemberRejected} FamilyMemberRejected instance
676
+ */
677
+ FamilyMemberRejected.create = function create(properties) {
678
+ return new FamilyMemberRejected(properties);
679
+ };
680
+
681
+ /**
682
+ * Encodes the specified FamilyMemberRejected message. Does not implicitly {@link FamilyMemberRejected.verify|verify} messages.
683
+ * @function encode
684
+ * @memberof FamilyMemberRejected
685
+ * @static
686
+ * @param {IFamilyMemberRejected} message FamilyMemberRejected message or plain object to encode
687
+ * @param {$protobuf.Writer} [writer] Writer to encode to
688
+ * @returns {$protobuf.Writer} Writer
689
+ */
690
+ FamilyMemberRejected.encode = function encode(message, writer) {
691
+ if (!writer)
692
+ writer = $Writer.create();
693
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
694
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
695
+ if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
696
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.userGroupEntryId);
697
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
698
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.userGroupId);
699
+ if (message.email != null && message.hasOwnProperty("email"))
700
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.email);
701
+ if (message.token != null && message.hasOwnProperty("token"))
702
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.token);
703
+ if (message.userId != null && message.hasOwnProperty("userId"))
704
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.userId);
705
+ return writer;
706
+ };
707
+
708
+ /**
709
+ * Encodes the specified FamilyMemberRejected message, length delimited. Does not implicitly {@link FamilyMemberRejected.verify|verify} messages.
710
+ * @function encodeDelimited
711
+ * @memberof FamilyMemberRejected
712
+ * @static
713
+ * @param {IFamilyMemberRejected} message FamilyMemberRejected message or plain object to encode
714
+ * @param {$protobuf.Writer} [writer] Writer to encode to
715
+ * @returns {$protobuf.Writer} Writer
716
+ */
717
+ FamilyMemberRejected.encodeDelimited = function encodeDelimited(message, writer) {
718
+ return this.encode(message, writer).ldelim();
719
+ };
720
+
721
+ /**
722
+ * Decodes a FamilyMemberRejected message from the specified reader or buffer.
723
+ * @function decode
724
+ * @memberof FamilyMemberRejected
725
+ * @static
726
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
727
+ * @param {number} [length] Message length if known beforehand
728
+ * @returns {FamilyMemberRejected} FamilyMemberRejected
729
+ * @throws {Error} If the payload is not a reader or valid buffer
730
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
731
+ */
732
+ FamilyMemberRejected.decode = function decode(reader, length) {
733
+ if (!(reader instanceof $Reader))
734
+ reader = $Reader.create(reader);
735
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FamilyMemberRejected();
736
+ while (reader.pos < end) {
737
+ var tag = reader.uint32();
738
+ switch (tag >>> 3) {
739
+ case 1:
740
+ message.timestamp = reader.uint64();
741
+ break;
742
+ case 2:
743
+ message.userGroupEntryId = reader.uint32();
744
+ break;
745
+ case 3:
746
+ message.userGroupId = reader.uint32();
747
+ break;
748
+ case 4:
749
+ message.email = reader.string();
750
+ break;
751
+ case 5:
752
+ message.token = reader.string();
753
+ break;
754
+ case 6:
755
+ message.userId = reader.string();
756
+ break;
757
+ default:
758
+ reader.skipType(tag & 7);
759
+ break;
760
+ }
761
+ }
762
+ return message;
763
+ };
764
+
765
+ /**
766
+ * Decodes a FamilyMemberRejected message from the specified reader or buffer, length delimited.
767
+ * @function decodeDelimited
768
+ * @memberof FamilyMemberRejected
769
+ * @static
770
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
771
+ * @returns {FamilyMemberRejected} FamilyMemberRejected
772
+ * @throws {Error} If the payload is not a reader or valid buffer
773
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
774
+ */
775
+ FamilyMemberRejected.decodeDelimited = function decodeDelimited(reader) {
776
+ if (!(reader instanceof $Reader))
777
+ reader = new $Reader(reader);
778
+ return this.decode(reader, reader.uint32());
779
+ };
780
+
781
+ /**
782
+ * Verifies a FamilyMemberRejected message.
783
+ * @function verify
784
+ * @memberof FamilyMemberRejected
785
+ * @static
786
+ * @param {Object.<string,*>} message Plain object to verify
787
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
788
+ */
789
+ FamilyMemberRejected.verify = function verify(message) {
790
+ if (typeof message !== "object" || message === null)
791
+ return "object expected";
792
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
793
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
794
+ return "timestamp: integer|Long expected";
795
+ if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
796
+ if (!$util.isInteger(message.userGroupEntryId))
797
+ return "userGroupEntryId: integer expected";
798
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
799
+ if (!$util.isInteger(message.userGroupId))
800
+ return "userGroupId: integer expected";
801
+ if (message.email != null && message.hasOwnProperty("email"))
802
+ if (!$util.isString(message.email))
803
+ return "email: string expected";
804
+ if (message.token != null && message.hasOwnProperty("token"))
805
+ if (!$util.isString(message.token))
806
+ return "token: string expected";
807
+ if (message.userId != null && message.hasOwnProperty("userId"))
808
+ if (!$util.isString(message.userId))
809
+ return "userId: string expected";
810
+ return null;
811
+ };
812
+
813
+ /**
814
+ * Creates a FamilyMemberRejected message from a plain object. Also converts values to their respective internal types.
815
+ * @function fromObject
816
+ * @memberof FamilyMemberRejected
817
+ * @static
818
+ * @param {Object.<string,*>} object Plain object
819
+ * @returns {FamilyMemberRejected} FamilyMemberRejected
820
+ */
821
+ FamilyMemberRejected.fromObject = function fromObject(object) {
822
+ if (object instanceof $root.FamilyMemberRejected)
823
+ return object;
824
+ var message = new $root.FamilyMemberRejected();
825
+ if (object.timestamp != null)
826
+ if ($util.Long)
827
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
828
+ else if (typeof object.timestamp === "string")
829
+ message.timestamp = parseInt(object.timestamp, 10);
830
+ else if (typeof object.timestamp === "number")
831
+ message.timestamp = object.timestamp;
832
+ else if (typeof object.timestamp === "object")
833
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
834
+ if (object.userGroupEntryId != null)
835
+ message.userGroupEntryId = object.userGroupEntryId >>> 0;
836
+ if (object.userGroupId != null)
837
+ message.userGroupId = object.userGroupId >>> 0;
838
+ if (object.email != null)
839
+ message.email = String(object.email);
840
+ if (object.token != null)
841
+ message.token = String(object.token);
842
+ if (object.userId != null)
843
+ message.userId = String(object.userId);
844
+ return message;
845
+ };
846
+
847
+ /**
848
+ * Creates a plain object from a FamilyMemberRejected message. Also converts values to other types if specified.
849
+ * @function toObject
850
+ * @memberof FamilyMemberRejected
851
+ * @static
852
+ * @param {FamilyMemberRejected} message FamilyMemberRejected
853
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
854
+ * @returns {Object.<string,*>} Plain object
855
+ */
856
+ FamilyMemberRejected.toObject = function toObject(message, options) {
857
+ if (!options)
858
+ options = {};
859
+ var object = {};
860
+ if (options.defaults) {
861
+ if ($util.Long) {
862
+ var long = new $util.Long(0, 0, true);
863
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
864
+ } else
865
+ object.timestamp = options.longs === String ? "0" : 0;
866
+ object.userGroupEntryId = 0;
867
+ object.userGroupId = 0;
868
+ object.email = "";
869
+ object.token = "";
870
+ object.userId = "";
871
+ }
872
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
873
+ if (typeof message.timestamp === "number")
874
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
875
+ else
876
+ 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;
877
+ if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
878
+ object.userGroupEntryId = message.userGroupEntryId;
879
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
880
+ object.userGroupId = message.userGroupId;
881
+ if (message.email != null && message.hasOwnProperty("email"))
882
+ object.email = message.email;
883
+ if (message.token != null && message.hasOwnProperty("token"))
884
+ object.token = message.token;
885
+ if (message.userId != null && message.hasOwnProperty("userId"))
886
+ object.userId = message.userId;
887
+ return object;
888
+ };
889
+
890
+ /**
891
+ * Converts this FamilyMemberRejected to JSON.
892
+ * @function toJSON
893
+ * @memberof FamilyMemberRejected
894
+ * @instance
895
+ * @returns {Object.<string,*>} JSON object
896
+ */
897
+ FamilyMemberRejected.prototype.toJSON = function toJSON() {
898
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
899
+ };
900
+
901
+ return FamilyMemberRejected;
902
+ })();
903
+
280
904
  $root.FamilyMemberRemoved = (function() {
281
905
 
282
906
  /**
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.1.0"
19
+ "version": "1.2.0"
20
20
  }