@headspace/protos-events 1.2.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
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
 
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.2.0"
19
+ "version": "1.3.0"
20
20
  }