@headspace/protos-events 0.0.2 → 0.0.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 +102 -0
- package/lib/index.js +246 -0
- package/package.json +3 -2
- package/user.proto +7 -0
package/lib/index.d.ts
CHANGED
|
@@ -643,3 +643,105 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
643
643
|
*/
|
|
644
644
|
public toJSON(): { [k: string]: any };
|
|
645
645
|
}
|
|
646
|
+
|
|
647
|
+
/** Properties of a UserPasswordUpdated. */
|
|
648
|
+
export interface IUserPasswordUpdated {
|
|
649
|
+
|
|
650
|
+
/** UserPasswordUpdated id */
|
|
651
|
+
id?: (number|null);
|
|
652
|
+
|
|
653
|
+
/** UserPasswordUpdated updatedOn */
|
|
654
|
+
updatedOn?: (number|Long|null);
|
|
655
|
+
|
|
656
|
+
/** UserPasswordUpdated email */
|
|
657
|
+
email?: (string|null);
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/** Represents a UserPasswordUpdated. */
|
|
661
|
+
export class UserPasswordUpdated implements IUserPasswordUpdated {
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Constructs a new UserPasswordUpdated.
|
|
665
|
+
* @param [properties] Properties to set
|
|
666
|
+
*/
|
|
667
|
+
constructor(properties?: IUserPasswordUpdated);
|
|
668
|
+
|
|
669
|
+
/** UserPasswordUpdated id. */
|
|
670
|
+
public id: number;
|
|
671
|
+
|
|
672
|
+
/** UserPasswordUpdated updatedOn. */
|
|
673
|
+
public updatedOn: (number|Long);
|
|
674
|
+
|
|
675
|
+
/** UserPasswordUpdated email. */
|
|
676
|
+
public email: string;
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Creates a new UserPasswordUpdated instance using the specified properties.
|
|
680
|
+
* @param [properties] Properties to set
|
|
681
|
+
* @returns UserPasswordUpdated instance
|
|
682
|
+
*/
|
|
683
|
+
public static create(properties?: IUserPasswordUpdated): UserPasswordUpdated;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Encodes the specified UserPasswordUpdated message. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
|
|
687
|
+
* @param message UserPasswordUpdated message or plain object to encode
|
|
688
|
+
* @param [writer] Writer to encode to
|
|
689
|
+
* @returns Writer
|
|
690
|
+
*/
|
|
691
|
+
public static encode(message: IUserPasswordUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Encodes the specified UserPasswordUpdated message, length delimited. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
|
|
695
|
+
* @param message UserPasswordUpdated message or plain object to encode
|
|
696
|
+
* @param [writer] Writer to encode to
|
|
697
|
+
* @returns Writer
|
|
698
|
+
*/
|
|
699
|
+
public static encodeDelimited(message: IUserPasswordUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Decodes a UserPasswordUpdated message from the specified reader or buffer.
|
|
703
|
+
* @param reader Reader or buffer to decode from
|
|
704
|
+
* @param [length] Message length if known beforehand
|
|
705
|
+
* @returns UserPasswordUpdated
|
|
706
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
707
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
708
|
+
*/
|
|
709
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserPasswordUpdated;
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* Decodes a UserPasswordUpdated message from the specified reader or buffer, length delimited.
|
|
713
|
+
* @param reader Reader or buffer to decode from
|
|
714
|
+
* @returns UserPasswordUpdated
|
|
715
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
716
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
717
|
+
*/
|
|
718
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserPasswordUpdated;
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Verifies a UserPasswordUpdated message.
|
|
722
|
+
* @param message Plain object to verify
|
|
723
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
724
|
+
*/
|
|
725
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Creates a UserPasswordUpdated message from a plain object. Also converts values to their respective internal types.
|
|
729
|
+
* @param object Plain object
|
|
730
|
+
* @returns UserPasswordUpdated
|
|
731
|
+
*/
|
|
732
|
+
public static fromObject(object: { [k: string]: any }): UserPasswordUpdated;
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* Creates a plain object from a UserPasswordUpdated message. Also converts values to other types if specified.
|
|
736
|
+
* @param message UserPasswordUpdated
|
|
737
|
+
* @param [options] Conversion options
|
|
738
|
+
* @returns Plain object
|
|
739
|
+
*/
|
|
740
|
+
public static toObject(message: UserPasswordUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Converts this UserPasswordUpdated to JSON.
|
|
744
|
+
* @returns JSON object
|
|
745
|
+
*/
|
|
746
|
+
public toJSON(): { [k: string]: any };
|
|
747
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -1509,4 +1509,250 @@ $root.SubscriptionCancelled = (function() {
|
|
|
1509
1509
|
return SubscriptionCancelled;
|
|
1510
1510
|
})();
|
|
1511
1511
|
|
|
1512
|
+
$root.UserPasswordUpdated = (function() {
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* Properties of a UserPasswordUpdated.
|
|
1516
|
+
* @exports IUserPasswordUpdated
|
|
1517
|
+
* @interface IUserPasswordUpdated
|
|
1518
|
+
* @property {number|null} [id] UserPasswordUpdated id
|
|
1519
|
+
* @property {number|Long|null} [updatedOn] UserPasswordUpdated updatedOn
|
|
1520
|
+
* @property {string|null} [email] UserPasswordUpdated email
|
|
1521
|
+
*/
|
|
1522
|
+
|
|
1523
|
+
/**
|
|
1524
|
+
* Constructs a new UserPasswordUpdated.
|
|
1525
|
+
* @exports UserPasswordUpdated
|
|
1526
|
+
* @classdesc Represents a UserPasswordUpdated.
|
|
1527
|
+
* @implements IUserPasswordUpdated
|
|
1528
|
+
* @constructor
|
|
1529
|
+
* @param {IUserPasswordUpdated=} [properties] Properties to set
|
|
1530
|
+
*/
|
|
1531
|
+
function UserPasswordUpdated(properties) {
|
|
1532
|
+
if (properties)
|
|
1533
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1534
|
+
if (properties[keys[i]] != null)
|
|
1535
|
+
this[keys[i]] = properties[keys[i]];
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
/**
|
|
1539
|
+
* UserPasswordUpdated id.
|
|
1540
|
+
* @member {number} id
|
|
1541
|
+
* @memberof UserPasswordUpdated
|
|
1542
|
+
* @instance
|
|
1543
|
+
*/
|
|
1544
|
+
UserPasswordUpdated.prototype.id = 0;
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* UserPasswordUpdated updatedOn.
|
|
1548
|
+
* @member {number|Long} updatedOn
|
|
1549
|
+
* @memberof UserPasswordUpdated
|
|
1550
|
+
* @instance
|
|
1551
|
+
*/
|
|
1552
|
+
UserPasswordUpdated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1553
|
+
|
|
1554
|
+
/**
|
|
1555
|
+
* UserPasswordUpdated email.
|
|
1556
|
+
* @member {string} email
|
|
1557
|
+
* @memberof UserPasswordUpdated
|
|
1558
|
+
* @instance
|
|
1559
|
+
*/
|
|
1560
|
+
UserPasswordUpdated.prototype.email = "";
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* Creates a new UserPasswordUpdated instance using the specified properties.
|
|
1564
|
+
* @function create
|
|
1565
|
+
* @memberof UserPasswordUpdated
|
|
1566
|
+
* @static
|
|
1567
|
+
* @param {IUserPasswordUpdated=} [properties] Properties to set
|
|
1568
|
+
* @returns {UserPasswordUpdated} UserPasswordUpdated instance
|
|
1569
|
+
*/
|
|
1570
|
+
UserPasswordUpdated.create = function create(properties) {
|
|
1571
|
+
return new UserPasswordUpdated(properties);
|
|
1572
|
+
};
|
|
1573
|
+
|
|
1574
|
+
/**
|
|
1575
|
+
* Encodes the specified UserPasswordUpdated message. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
|
|
1576
|
+
* @function encode
|
|
1577
|
+
* @memberof UserPasswordUpdated
|
|
1578
|
+
* @static
|
|
1579
|
+
* @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
|
|
1580
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1581
|
+
* @returns {$protobuf.Writer} Writer
|
|
1582
|
+
*/
|
|
1583
|
+
UserPasswordUpdated.encode = function encode(message, writer) {
|
|
1584
|
+
if (!writer)
|
|
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);
|
|
1590
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
1591
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.email);
|
|
1592
|
+
return writer;
|
|
1593
|
+
};
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
* Encodes the specified UserPasswordUpdated message, length delimited. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
|
|
1597
|
+
* @function encodeDelimited
|
|
1598
|
+
* @memberof UserPasswordUpdated
|
|
1599
|
+
* @static
|
|
1600
|
+
* @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
|
|
1601
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1602
|
+
* @returns {$protobuf.Writer} Writer
|
|
1603
|
+
*/
|
|
1604
|
+
UserPasswordUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1605
|
+
return this.encode(message, writer).ldelim();
|
|
1606
|
+
};
|
|
1607
|
+
|
|
1608
|
+
/**
|
|
1609
|
+
* Decodes a UserPasswordUpdated message from the specified reader or buffer.
|
|
1610
|
+
* @function decode
|
|
1611
|
+
* @memberof UserPasswordUpdated
|
|
1612
|
+
* @static
|
|
1613
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1614
|
+
* @param {number} [length] Message length if known beforehand
|
|
1615
|
+
* @returns {UserPasswordUpdated} UserPasswordUpdated
|
|
1616
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1617
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1618
|
+
*/
|
|
1619
|
+
UserPasswordUpdated.decode = function decode(reader, length) {
|
|
1620
|
+
if (!(reader instanceof $Reader))
|
|
1621
|
+
reader = $Reader.create(reader);
|
|
1622
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordUpdated();
|
|
1623
|
+
while (reader.pos < end) {
|
|
1624
|
+
var tag = reader.uint32();
|
|
1625
|
+
switch (tag >>> 3) {
|
|
1626
|
+
case 1:
|
|
1627
|
+
message.id = reader.uint32();
|
|
1628
|
+
break;
|
|
1629
|
+
case 2:
|
|
1630
|
+
message.updatedOn = reader.uint64();
|
|
1631
|
+
break;
|
|
1632
|
+
case 3:
|
|
1633
|
+
message.email = reader.string();
|
|
1634
|
+
break;
|
|
1635
|
+
default:
|
|
1636
|
+
reader.skipType(tag & 7);
|
|
1637
|
+
break;
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
return message;
|
|
1641
|
+
};
|
|
1642
|
+
|
|
1643
|
+
/**
|
|
1644
|
+
* Decodes a UserPasswordUpdated message from the specified reader or buffer, length delimited.
|
|
1645
|
+
* @function decodeDelimited
|
|
1646
|
+
* @memberof UserPasswordUpdated
|
|
1647
|
+
* @static
|
|
1648
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1649
|
+
* @returns {UserPasswordUpdated} UserPasswordUpdated
|
|
1650
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1651
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1652
|
+
*/
|
|
1653
|
+
UserPasswordUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
1654
|
+
if (!(reader instanceof $Reader))
|
|
1655
|
+
reader = new $Reader(reader);
|
|
1656
|
+
return this.decode(reader, reader.uint32());
|
|
1657
|
+
};
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Verifies a UserPasswordUpdated message.
|
|
1661
|
+
* @function verify
|
|
1662
|
+
* @memberof UserPasswordUpdated
|
|
1663
|
+
* @static
|
|
1664
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1665
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1666
|
+
*/
|
|
1667
|
+
UserPasswordUpdated.verify = function verify(message) {
|
|
1668
|
+
if (typeof message !== "object" || message === null)
|
|
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";
|
|
1676
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
1677
|
+
if (!$util.isString(message.email))
|
|
1678
|
+
return "email: string expected";
|
|
1679
|
+
return null;
|
|
1680
|
+
};
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* Creates a UserPasswordUpdated message from a plain object. Also converts values to their respective internal types.
|
|
1684
|
+
* @function fromObject
|
|
1685
|
+
* @memberof UserPasswordUpdated
|
|
1686
|
+
* @static
|
|
1687
|
+
* @param {Object.<string,*>} object Plain object
|
|
1688
|
+
* @returns {UserPasswordUpdated} UserPasswordUpdated
|
|
1689
|
+
*/
|
|
1690
|
+
UserPasswordUpdated.fromObject = function fromObject(object) {
|
|
1691
|
+
if (object instanceof $root.UserPasswordUpdated)
|
|
1692
|
+
return object;
|
|
1693
|
+
var message = new $root.UserPasswordUpdated();
|
|
1694
|
+
if (object.id != null)
|
|
1695
|
+
message.id = object.id >>> 0;
|
|
1696
|
+
if (object.updatedOn != null)
|
|
1697
|
+
if ($util.Long)
|
|
1698
|
+
(message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
|
|
1699
|
+
else if (typeof object.updatedOn === "string")
|
|
1700
|
+
message.updatedOn = parseInt(object.updatedOn, 10);
|
|
1701
|
+
else if (typeof object.updatedOn === "number")
|
|
1702
|
+
message.updatedOn = object.updatedOn;
|
|
1703
|
+
else if (typeof object.updatedOn === "object")
|
|
1704
|
+
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
|
+
return message;
|
|
1708
|
+
};
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* Creates a plain object from a UserPasswordUpdated message. Also converts values to other types if specified.
|
|
1712
|
+
* @function toObject
|
|
1713
|
+
* @memberof UserPasswordUpdated
|
|
1714
|
+
* @static
|
|
1715
|
+
* @param {UserPasswordUpdated} message UserPasswordUpdated
|
|
1716
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1717
|
+
* @returns {Object.<string,*>} Plain object
|
|
1718
|
+
*/
|
|
1719
|
+
UserPasswordUpdated.toObject = function toObject(message, options) {
|
|
1720
|
+
if (!options)
|
|
1721
|
+
options = {};
|
|
1722
|
+
var object = {};
|
|
1723
|
+
if (options.defaults) {
|
|
1724
|
+
object.id = 0;
|
|
1725
|
+
if ($util.Long) {
|
|
1726
|
+
var long = new $util.Long(0, 0, true);
|
|
1727
|
+
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1728
|
+
} else
|
|
1729
|
+
object.updatedOn = options.longs === String ? "0" : 0;
|
|
1730
|
+
object.email = "";
|
|
1731
|
+
}
|
|
1732
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
1733
|
+
object.id = message.id;
|
|
1734
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1735
|
+
if (typeof message.updatedOn === "number")
|
|
1736
|
+
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
1737
|
+
else
|
|
1738
|
+
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
|
+
return object;
|
|
1742
|
+
};
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* Converts this UserPasswordUpdated to JSON.
|
|
1746
|
+
* @function toJSON
|
|
1747
|
+
* @memberof UserPasswordUpdated
|
|
1748
|
+
* @instance
|
|
1749
|
+
* @returns {Object.<string,*>} JSON object
|
|
1750
|
+
*/
|
|
1751
|
+
UserPasswordUpdated.prototype.toJSON = function toJSON() {
|
|
1752
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1753
|
+
};
|
|
1754
|
+
|
|
1755
|
+
return UserPasswordUpdated;
|
|
1756
|
+
})();
|
|
1757
|
+
|
|
1512
1758
|
module.exports = $root;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@headspace/protos-events",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3-0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"typings": "lib/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -15,5 +15,6 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"typescript": "^3.0.1"
|
|
18
|
-
}
|
|
18
|
+
},
|
|
19
|
+
"gitHead": "f1f4eace718530ad3dee424b2afef94a69914535"
|
|
19
20
|
}
|