@headspace/protos-events 0.0.3-1 → 0.0.3-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/lib/index.d.ts CHANGED
@@ -647,14 +647,14 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
647
647
  /** Properties of a UserPasswordUpdated. */
648
648
  export interface IUserPasswordUpdated {
649
649
 
650
- /** UserPasswordUpdated id */
651
- id?: (number|null);
652
-
653
- /** UserPasswordUpdated updatedOn */
654
- updatedOn?: (number|Long|null);
650
+ /** UserPasswordUpdated userId */
651
+ userId?: (string|null);
655
652
 
656
653
  /** UserPasswordUpdated email */
657
654
  email?: (string|null);
655
+
656
+ /** UserPasswordUpdated updatedOn */
657
+ updatedOn?: (number|Long|null);
658
658
  }
659
659
 
660
660
  /** Represents a UserPasswordUpdated. */
@@ -666,15 +666,15 @@ export class UserPasswordUpdated implements IUserPasswordUpdated {
666
666
  */
667
667
  constructor(properties?: IUserPasswordUpdated);
668
668
 
669
- /** UserPasswordUpdated id. */
670
- public id: number;
671
-
672
- /** UserPasswordUpdated updatedOn. */
673
- public updatedOn: (number|Long);
669
+ /** UserPasswordUpdated userId. */
670
+ public userId: string;
674
671
 
675
672
  /** UserPasswordUpdated email. */
676
673
  public email: string;
677
674
 
675
+ /** UserPasswordUpdated updatedOn. */
676
+ public updatedOn: (number|Long);
677
+
678
678
  /**
679
679
  * Creates a new UserPasswordUpdated instance using the specified properties.
680
680
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -1515,9 +1515,9 @@ $root.UserPasswordUpdated = (function() {
1515
1515
  * Properties of a UserPasswordUpdated.
1516
1516
  * @exports IUserPasswordUpdated
1517
1517
  * @interface IUserPasswordUpdated
1518
- * @property {number|null} [id] UserPasswordUpdated id
1519
- * @property {number|Long|null} [updatedOn] UserPasswordUpdated updatedOn
1518
+ * @property {string|null} [userId] UserPasswordUpdated userId
1520
1519
  * @property {string|null} [email] UserPasswordUpdated email
1520
+ * @property {number|Long|null} [updatedOn] UserPasswordUpdated updatedOn
1521
1521
  */
1522
1522
 
1523
1523
  /**
@@ -1536,28 +1536,28 @@ $root.UserPasswordUpdated = (function() {
1536
1536
  }
1537
1537
 
1538
1538
  /**
1539
- * UserPasswordUpdated id.
1540
- * @member {number} id
1539
+ * UserPasswordUpdated userId.
1540
+ * @member {string} userId
1541
1541
  * @memberof UserPasswordUpdated
1542
1542
  * @instance
1543
1543
  */
1544
- UserPasswordUpdated.prototype.id = 0;
1544
+ UserPasswordUpdated.prototype.userId = "";
1545
1545
 
1546
1546
  /**
1547
- * UserPasswordUpdated updatedOn.
1548
- * @member {number|Long} updatedOn
1547
+ * UserPasswordUpdated email.
1548
+ * @member {string} email
1549
1549
  * @memberof UserPasswordUpdated
1550
1550
  * @instance
1551
1551
  */
1552
- UserPasswordUpdated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
1552
+ UserPasswordUpdated.prototype.email = "";
1553
1553
 
1554
1554
  /**
1555
- * UserPasswordUpdated email.
1556
- * @member {string} email
1555
+ * UserPasswordUpdated updatedOn.
1556
+ * @member {number|Long} updatedOn
1557
1557
  * @memberof UserPasswordUpdated
1558
1558
  * @instance
1559
1559
  */
1560
- UserPasswordUpdated.prototype.email = "";
1560
+ UserPasswordUpdated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
1561
1561
 
1562
1562
  /**
1563
1563
  * Creates a new UserPasswordUpdated instance using the specified properties.
@@ -1583,12 +1583,12 @@ $root.UserPasswordUpdated = (function() {
1583
1583
  UserPasswordUpdated.encode = function encode(message, writer) {
1584
1584
  if (!writer)
1585
1585
  writer = $Writer.create();
1586
- if (message.id != null && message.hasOwnProperty("id"))
1587
- writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
1588
- if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
1589
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
1586
+ if (message.userId != null && message.hasOwnProperty("userId"))
1587
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
1590
1588
  if (message.email != null && message.hasOwnProperty("email"))
1591
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.email);
1589
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
1590
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
1591
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedOn);
1592
1592
  return writer;
1593
1593
  };
1594
1594
 
@@ -1624,13 +1624,13 @@ $root.UserPasswordUpdated = (function() {
1624
1624
  var tag = reader.uint32();
1625
1625
  switch (tag >>> 3) {
1626
1626
  case 1:
1627
- message.id = reader.uint32();
1627
+ message.userId = reader.string();
1628
1628
  break;
1629
1629
  case 2:
1630
- message.updatedOn = reader.uint64();
1630
+ message.email = reader.string();
1631
1631
  break;
1632
1632
  case 3:
1633
- message.email = reader.string();
1633
+ message.updatedOn = reader.uint64();
1634
1634
  break;
1635
1635
  default:
1636
1636
  reader.skipType(tag & 7);
@@ -1667,15 +1667,15 @@ $root.UserPasswordUpdated = (function() {
1667
1667
  UserPasswordUpdated.verify = function verify(message) {
1668
1668
  if (typeof message !== "object" || message === null)
1669
1669
  return "object expected";
1670
- if (message.id != null && message.hasOwnProperty("id"))
1671
- if (!$util.isInteger(message.id))
1672
- return "id: integer expected";
1673
- if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
1674
- if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
1675
- return "updatedOn: integer|Long expected";
1670
+ if (message.userId != null && message.hasOwnProperty("userId"))
1671
+ if (!$util.isString(message.userId))
1672
+ return "userId: string expected";
1676
1673
  if (message.email != null && message.hasOwnProperty("email"))
1677
1674
  if (!$util.isString(message.email))
1678
1675
  return "email: string expected";
1676
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
1677
+ if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
1678
+ return "updatedOn: integer|Long expected";
1679
1679
  return null;
1680
1680
  };
1681
1681
 
@@ -1691,8 +1691,10 @@ $root.UserPasswordUpdated = (function() {
1691
1691
  if (object instanceof $root.UserPasswordUpdated)
1692
1692
  return object;
1693
1693
  var message = new $root.UserPasswordUpdated();
1694
- if (object.id != null)
1695
- message.id = object.id >>> 0;
1694
+ if (object.userId != null)
1695
+ message.userId = String(object.userId);
1696
+ if (object.email != null)
1697
+ message.email = String(object.email);
1696
1698
  if (object.updatedOn != null)
1697
1699
  if ($util.Long)
1698
1700
  (message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
@@ -1702,8 +1704,6 @@ $root.UserPasswordUpdated = (function() {
1702
1704
  message.updatedOn = object.updatedOn;
1703
1705
  else if (typeof object.updatedOn === "object")
1704
1706
  message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
1705
- if (object.email != null)
1706
- message.email = String(object.email);
1707
1707
  return message;
1708
1708
  };
1709
1709
 
@@ -1721,23 +1721,23 @@ $root.UserPasswordUpdated = (function() {
1721
1721
  options = {};
1722
1722
  var object = {};
1723
1723
  if (options.defaults) {
1724
- object.id = 0;
1724
+ object.userId = "";
1725
+ object.email = "";
1725
1726
  if ($util.Long) {
1726
1727
  var long = new $util.Long(0, 0, true);
1727
1728
  object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
1728
1729
  } else
1729
1730
  object.updatedOn = options.longs === String ? "0" : 0;
1730
- object.email = "";
1731
1731
  }
1732
- if (message.id != null && message.hasOwnProperty("id"))
1733
- object.id = message.id;
1732
+ if (message.userId != null && message.hasOwnProperty("userId"))
1733
+ object.userId = message.userId;
1734
+ if (message.email != null && message.hasOwnProperty("email"))
1735
+ object.email = message.email;
1734
1736
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
1735
1737
  if (typeof message.updatedOn === "number")
1736
1738
  object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
1737
1739
  else
1738
1740
  object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
1739
- if (message.email != null && message.hasOwnProperty("email"))
1740
- object.email = message.email;
1741
1741
  return object;
1742
1742
  };
1743
1743
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@headspace/protos-events",
3
- "version": "0.0.3-1",
3
+ "version": "0.0.3-2",
4
4
  "main": "lib/index.js",
5
5
  "typings": "lib/index.d.ts",
6
6
  "scripts": {
@@ -16,5 +16,5 @@
16
16
  "devDependencies": {
17
17
  "typescript": "^3.0.1"
18
18
  },
19
- "gitHead": "0836f1afd8683a6e76ca08db30c64a1fb052b89d"
19
+ "gitHead": "686d846fa2097894e89d3314175a75dd0d850b43"
20
20
  }
package/user.proto CHANGED
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
 
3
3
  message UserPasswordUpdated {
4
- uint32 id = 1;
5
- uint64 updatedOn = 2;
6
- string email = 3;
4
+ string userId = 1;
5
+ string email = 2;
6
+ uint64 updatedOn = 3;
7
7
  }