@headspace/protos-events 0.0.1 → 0.0.2

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/community.proto CHANGED
@@ -4,10 +4,12 @@ message FamilyMemberAdded {
4
4
  uint64 timestamp = 1;
5
5
  uint32 userGroupEntryId = 2;
6
6
  string userId = 3;
7
+ uint32 userGroupId = 4;
7
8
  }
8
9
 
9
10
  message FamilyMemberRemoved {
10
11
  uint64 timestamp = 1;
11
12
  uint32 userGroupEntryId = 2;
12
13
  string userId = 3;
14
+ uint32 userGroupId = 4;
13
15
  }
package/lib/index.d.ts CHANGED
@@ -10,6 +10,9 @@ export interface IFamilyMemberAdded {
10
10
 
11
11
  /** FamilyMemberAdded userId */
12
12
  userId?: (string|null);
13
+
14
+ /** FamilyMemberAdded userGroupId */
15
+ userGroupId?: (number|null);
13
16
  }
14
17
 
15
18
  /** Represents a FamilyMemberAdded. */
@@ -30,6 +33,9 @@ export class FamilyMemberAdded implements IFamilyMemberAdded {
30
33
  /** FamilyMemberAdded userId. */
31
34
  public userId: string;
32
35
 
36
+ /** FamilyMemberAdded userGroupId. */
37
+ public userGroupId: number;
38
+
33
39
  /**
34
40
  * Creates a new FamilyMemberAdded instance using the specified properties.
35
41
  * @param [properties] Properties to set
@@ -112,6 +118,9 @@ export interface IFamilyMemberRemoved {
112
118
 
113
119
  /** FamilyMemberRemoved userId */
114
120
  userId?: (string|null);
121
+
122
+ /** FamilyMemberRemoved userGroupId */
123
+ userGroupId?: (number|null);
115
124
  }
116
125
 
117
126
  /** Represents a FamilyMemberRemoved. */
@@ -132,6 +141,9 @@ export class FamilyMemberRemoved implements IFamilyMemberRemoved {
132
141
  /** FamilyMemberRemoved userId. */
133
142
  public userId: string;
134
143
 
144
+ /** FamilyMemberRemoved userGroupId. */
145
+ public userGroupId: number;
146
+
135
147
  /**
136
148
  * Creates a new FamilyMemberRemoved instance using the specified properties.
137
149
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -18,6 +18,7 @@ $root.FamilyMemberAdded = (function() {
18
18
  * @property {number|Long|null} [timestamp] FamilyMemberAdded timestamp
19
19
  * @property {number|null} [userGroupEntryId] FamilyMemberAdded userGroupEntryId
20
20
  * @property {string|null} [userId] FamilyMemberAdded userId
21
+ * @property {number|null} [userGroupId] FamilyMemberAdded userGroupId
21
22
  */
22
23
 
23
24
  /**
@@ -59,6 +60,14 @@ $root.FamilyMemberAdded = (function() {
59
60
  */
60
61
  FamilyMemberAdded.prototype.userId = "";
61
62
 
63
+ /**
64
+ * FamilyMemberAdded userGroupId.
65
+ * @member {number} userGroupId
66
+ * @memberof FamilyMemberAdded
67
+ * @instance
68
+ */
69
+ FamilyMemberAdded.prototype.userGroupId = 0;
70
+
62
71
  /**
63
72
  * Creates a new FamilyMemberAdded instance using the specified properties.
64
73
  * @function create
@@ -89,6 +98,8 @@ $root.FamilyMemberAdded = (function() {
89
98
  writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.userGroupEntryId);
90
99
  if (message.userId != null && message.hasOwnProperty("userId"))
91
100
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
101
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
102
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.userGroupId);
92
103
  return writer;
93
104
  };
94
105
 
@@ -132,6 +143,9 @@ $root.FamilyMemberAdded = (function() {
132
143
  case 3:
133
144
  message.userId = reader.string();
134
145
  break;
146
+ case 4:
147
+ message.userGroupId = reader.uint32();
148
+ break;
135
149
  default:
136
150
  reader.skipType(tag & 7);
137
151
  break;
@@ -176,6 +190,9 @@ $root.FamilyMemberAdded = (function() {
176
190
  if (message.userId != null && message.hasOwnProperty("userId"))
177
191
  if (!$util.isString(message.userId))
178
192
  return "userId: string expected";
193
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
194
+ if (!$util.isInteger(message.userGroupId))
195
+ return "userGroupId: integer expected";
179
196
  return null;
180
197
  };
181
198
 
@@ -204,6 +221,8 @@ $root.FamilyMemberAdded = (function() {
204
221
  message.userGroupEntryId = object.userGroupEntryId >>> 0;
205
222
  if (object.userId != null)
206
223
  message.userId = String(object.userId);
224
+ if (object.userGroupId != null)
225
+ message.userGroupId = object.userGroupId >>> 0;
207
226
  return message;
208
227
  };
209
228
 
@@ -228,6 +247,7 @@ $root.FamilyMemberAdded = (function() {
228
247
  object.timestamp = options.longs === String ? "0" : 0;
229
248
  object.userGroupEntryId = 0;
230
249
  object.userId = "";
250
+ object.userGroupId = 0;
231
251
  }
232
252
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
233
253
  if (typeof message.timestamp === "number")
@@ -238,6 +258,8 @@ $root.FamilyMemberAdded = (function() {
238
258
  object.userGroupEntryId = message.userGroupEntryId;
239
259
  if (message.userId != null && message.hasOwnProperty("userId"))
240
260
  object.userId = message.userId;
261
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
262
+ object.userGroupId = message.userGroupId;
241
263
  return object;
242
264
  };
243
265
 
@@ -264,6 +286,7 @@ $root.FamilyMemberRemoved = (function() {
264
286
  * @property {number|Long|null} [timestamp] FamilyMemberRemoved timestamp
265
287
  * @property {number|null} [userGroupEntryId] FamilyMemberRemoved userGroupEntryId
266
288
  * @property {string|null} [userId] FamilyMemberRemoved userId
289
+ * @property {number|null} [userGroupId] FamilyMemberRemoved userGroupId
267
290
  */
268
291
 
269
292
  /**
@@ -305,6 +328,14 @@ $root.FamilyMemberRemoved = (function() {
305
328
  */
306
329
  FamilyMemberRemoved.prototype.userId = "";
307
330
 
331
+ /**
332
+ * FamilyMemberRemoved userGroupId.
333
+ * @member {number} userGroupId
334
+ * @memberof FamilyMemberRemoved
335
+ * @instance
336
+ */
337
+ FamilyMemberRemoved.prototype.userGroupId = 0;
338
+
308
339
  /**
309
340
  * Creates a new FamilyMemberRemoved instance using the specified properties.
310
341
  * @function create
@@ -335,6 +366,8 @@ $root.FamilyMemberRemoved = (function() {
335
366
  writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.userGroupEntryId);
336
367
  if (message.userId != null && message.hasOwnProperty("userId"))
337
368
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
369
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
370
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.userGroupId);
338
371
  return writer;
339
372
  };
340
373
 
@@ -378,6 +411,9 @@ $root.FamilyMemberRemoved = (function() {
378
411
  case 3:
379
412
  message.userId = reader.string();
380
413
  break;
414
+ case 4:
415
+ message.userGroupId = reader.uint32();
416
+ break;
381
417
  default:
382
418
  reader.skipType(tag & 7);
383
419
  break;
@@ -422,6 +458,9 @@ $root.FamilyMemberRemoved = (function() {
422
458
  if (message.userId != null && message.hasOwnProperty("userId"))
423
459
  if (!$util.isString(message.userId))
424
460
  return "userId: string expected";
461
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
462
+ if (!$util.isInteger(message.userGroupId))
463
+ return "userGroupId: integer expected";
425
464
  return null;
426
465
  };
427
466
 
@@ -450,6 +489,8 @@ $root.FamilyMemberRemoved = (function() {
450
489
  message.userGroupEntryId = object.userGroupEntryId >>> 0;
451
490
  if (object.userId != null)
452
491
  message.userId = String(object.userId);
492
+ if (object.userGroupId != null)
493
+ message.userGroupId = object.userGroupId >>> 0;
453
494
  return message;
454
495
  };
455
496
 
@@ -474,6 +515,7 @@ $root.FamilyMemberRemoved = (function() {
474
515
  object.timestamp = options.longs === String ? "0" : 0;
475
516
  object.userGroupEntryId = 0;
476
517
  object.userId = "";
518
+ object.userGroupId = 0;
477
519
  }
478
520
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
479
521
  if (typeof message.timestamp === "number")
@@ -484,6 +526,8 @@ $root.FamilyMemberRemoved = (function() {
484
526
  object.userGroupEntryId = message.userGroupEntryId;
485
527
  if (message.userId != null && message.hasOwnProperty("userId"))
486
528
  object.userId = message.userId;
529
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
530
+ object.userGroupId = message.userGroupId;
487
531
  return object;
488
532
  };
489
533
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@headspace/protos-events",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "main": "lib/index.js",
5
5
  "typings": "lib/index.d.ts",
6
6
  "scripts": {