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