@headspace/protos-events 0.0.22 → 0.0.23
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/headspace-protos-events-0.0.20.tgz +0 -0
- package/headspace-protos-events-0.0.21.tgz +0 -0
- package/lib/index.d.ts +114 -0
- package/lib/index.js +290 -0
- package/package.json +2 -2
- package/subscription.proto +8 -0
|
Binary file
|
|
Binary file
|
package/lib/index.d.ts
CHANGED
|
@@ -631,6 +631,9 @@ export interface ISubscriptionCreated {
|
|
|
631
631
|
|
|
632
632
|
/** SubscriptionCreated updatedOn */
|
|
633
633
|
updatedOn?: (number|Long|null);
|
|
634
|
+
|
|
635
|
+
/** SubscriptionCreated userId */
|
|
636
|
+
userId?: (string|null);
|
|
634
637
|
}
|
|
635
638
|
|
|
636
639
|
/** Represents a SubscriptionCreated. */
|
|
@@ -648,6 +651,9 @@ export class SubscriptionCreated implements ISubscriptionCreated {
|
|
|
648
651
|
/** SubscriptionCreated updatedOn. */
|
|
649
652
|
public updatedOn: (number|Long);
|
|
650
653
|
|
|
654
|
+
/** SubscriptionCreated userId. */
|
|
655
|
+
public userId: string;
|
|
656
|
+
|
|
651
657
|
/**
|
|
652
658
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
653
659
|
* @param [properties] Properties to set
|
|
@@ -727,6 +733,9 @@ export interface ISubscriptionCancelled {
|
|
|
727
733
|
|
|
728
734
|
/** SubscriptionCancelled updatedOn */
|
|
729
735
|
updatedOn?: (number|Long|null);
|
|
736
|
+
|
|
737
|
+
/** SubscriptionCancelled userId */
|
|
738
|
+
userId?: (string|null);
|
|
730
739
|
}
|
|
731
740
|
|
|
732
741
|
/** Represents a SubscriptionCancelled. */
|
|
@@ -744,6 +753,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
744
753
|
/** SubscriptionCancelled updatedOn. */
|
|
745
754
|
public updatedOn: (number|Long);
|
|
746
755
|
|
|
756
|
+
/** SubscriptionCancelled userId. */
|
|
757
|
+
public userId: string;
|
|
758
|
+
|
|
747
759
|
/**
|
|
748
760
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
749
761
|
* @param [properties] Properties to set
|
|
@@ -815,6 +827,108 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
815
827
|
public toJSON(): { [k: string]: any };
|
|
816
828
|
}
|
|
817
829
|
|
|
830
|
+
/** Properties of a SubscriptionRenewed. */
|
|
831
|
+
export interface ISubscriptionRenewed {
|
|
832
|
+
|
|
833
|
+
/** SubscriptionRenewed id */
|
|
834
|
+
id?: (number|null);
|
|
835
|
+
|
|
836
|
+
/** SubscriptionRenewed updatedOn */
|
|
837
|
+
updatedOn?: (number|Long|null);
|
|
838
|
+
|
|
839
|
+
/** SubscriptionRenewed userId */
|
|
840
|
+
userId?: (string|null);
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
/** Represents a SubscriptionRenewed. */
|
|
844
|
+
export class SubscriptionRenewed implements ISubscriptionRenewed {
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* Constructs a new SubscriptionRenewed.
|
|
848
|
+
* @param [properties] Properties to set
|
|
849
|
+
*/
|
|
850
|
+
constructor(properties?: ISubscriptionRenewed);
|
|
851
|
+
|
|
852
|
+
/** SubscriptionRenewed id. */
|
|
853
|
+
public id: number;
|
|
854
|
+
|
|
855
|
+
/** SubscriptionRenewed updatedOn. */
|
|
856
|
+
public updatedOn: (number|Long);
|
|
857
|
+
|
|
858
|
+
/** SubscriptionRenewed userId. */
|
|
859
|
+
public userId: string;
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
863
|
+
* @param [properties] Properties to set
|
|
864
|
+
* @returns SubscriptionRenewed instance
|
|
865
|
+
*/
|
|
866
|
+
public static create(properties?: ISubscriptionRenewed): SubscriptionRenewed;
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* Encodes the specified SubscriptionRenewed message. Does not implicitly {@link SubscriptionRenewed.verify|verify} messages.
|
|
870
|
+
* @param message SubscriptionRenewed message or plain object to encode
|
|
871
|
+
* @param [writer] Writer to encode to
|
|
872
|
+
* @returns Writer
|
|
873
|
+
*/
|
|
874
|
+
public static encode(message: ISubscriptionRenewed, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Encodes the specified SubscriptionRenewed message, length delimited. Does not implicitly {@link SubscriptionRenewed.verify|verify} messages.
|
|
878
|
+
* @param message SubscriptionRenewed message or plain object to encode
|
|
879
|
+
* @param [writer] Writer to encode to
|
|
880
|
+
* @returns Writer
|
|
881
|
+
*/
|
|
882
|
+
public static encodeDelimited(message: ISubscriptionRenewed, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Decodes a SubscriptionRenewed message from the specified reader or buffer.
|
|
886
|
+
* @param reader Reader or buffer to decode from
|
|
887
|
+
* @param [length] Message length if known beforehand
|
|
888
|
+
* @returns SubscriptionRenewed
|
|
889
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
890
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
891
|
+
*/
|
|
892
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SubscriptionRenewed;
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* Decodes a SubscriptionRenewed message from the specified reader or buffer, length delimited.
|
|
896
|
+
* @param reader Reader or buffer to decode from
|
|
897
|
+
* @returns SubscriptionRenewed
|
|
898
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
899
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
900
|
+
*/
|
|
901
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SubscriptionRenewed;
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Verifies a SubscriptionRenewed message.
|
|
905
|
+
* @param message Plain object to verify
|
|
906
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
907
|
+
*/
|
|
908
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* Creates a SubscriptionRenewed message from a plain object. Also converts values to their respective internal types.
|
|
912
|
+
* @param object Plain object
|
|
913
|
+
* @returns SubscriptionRenewed
|
|
914
|
+
*/
|
|
915
|
+
public static fromObject(object: { [k: string]: any }): SubscriptionRenewed;
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Creates a plain object from a SubscriptionRenewed message. Also converts values to other types if specified.
|
|
919
|
+
* @param message SubscriptionRenewed
|
|
920
|
+
* @param [options] Conversion options
|
|
921
|
+
* @returns Plain object
|
|
922
|
+
*/
|
|
923
|
+
public static toObject(message: SubscriptionRenewed, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Converts this SubscriptionRenewed to JSON.
|
|
927
|
+
* @returns JSON object
|
|
928
|
+
*/
|
|
929
|
+
public toJSON(): { [k: string]: any };
|
|
930
|
+
}
|
|
931
|
+
|
|
818
932
|
/** Properties of a UserPasswordUpdated. */
|
|
819
933
|
export interface IUserPasswordUpdated {
|
|
820
934
|
|
package/lib/index.js
CHANGED
|
@@ -1551,6 +1551,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
1551
1551
|
* @interface ISubscriptionCreated
|
|
1552
1552
|
* @property {number|null} [id] SubscriptionCreated id
|
|
1553
1553
|
* @property {number|Long|null} [updatedOn] SubscriptionCreated updatedOn
|
|
1554
|
+
* @property {string|null} [userId] SubscriptionCreated userId
|
|
1554
1555
|
*/
|
|
1555
1556
|
|
|
1556
1557
|
/**
|
|
@@ -1584,6 +1585,14 @@ $root.SubscriptionCreated = (function() {
|
|
|
1584
1585
|
*/
|
|
1585
1586
|
SubscriptionCreated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1586
1587
|
|
|
1588
|
+
/**
|
|
1589
|
+
* SubscriptionCreated userId.
|
|
1590
|
+
* @member {string} userId
|
|
1591
|
+
* @memberof SubscriptionCreated
|
|
1592
|
+
* @instance
|
|
1593
|
+
*/
|
|
1594
|
+
SubscriptionCreated.prototype.userId = "";
|
|
1595
|
+
|
|
1587
1596
|
/**
|
|
1588
1597
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
1589
1598
|
* @function create
|
|
@@ -1612,6 +1621,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
1612
1621
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
1613
1622
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1614
1623
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
1624
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1625
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
1615
1626
|
return writer;
|
|
1616
1627
|
};
|
|
1617
1628
|
|
|
@@ -1652,6 +1663,9 @@ $root.SubscriptionCreated = (function() {
|
|
|
1652
1663
|
case 2:
|
|
1653
1664
|
message.updatedOn = reader.uint64();
|
|
1654
1665
|
break;
|
|
1666
|
+
case 3:
|
|
1667
|
+
message.userId = reader.string();
|
|
1668
|
+
break;
|
|
1655
1669
|
default:
|
|
1656
1670
|
reader.skipType(tag & 7);
|
|
1657
1671
|
break;
|
|
@@ -1693,6 +1707,9 @@ $root.SubscriptionCreated = (function() {
|
|
|
1693
1707
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1694
1708
|
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
1695
1709
|
return "updatedOn: integer|Long expected";
|
|
1710
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1711
|
+
if (!$util.isString(message.userId))
|
|
1712
|
+
return "userId: string expected";
|
|
1696
1713
|
return null;
|
|
1697
1714
|
};
|
|
1698
1715
|
|
|
@@ -1719,6 +1736,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
1719
1736
|
message.updatedOn = object.updatedOn;
|
|
1720
1737
|
else if (typeof object.updatedOn === "object")
|
|
1721
1738
|
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
1739
|
+
if (object.userId != null)
|
|
1740
|
+
message.userId = String(object.userId);
|
|
1722
1741
|
return message;
|
|
1723
1742
|
};
|
|
1724
1743
|
|
|
@@ -1742,6 +1761,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
1742
1761
|
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1743
1762
|
} else
|
|
1744
1763
|
object.updatedOn = options.longs === String ? "0" : 0;
|
|
1764
|
+
object.userId = "";
|
|
1745
1765
|
}
|
|
1746
1766
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
1747
1767
|
object.id = message.id;
|
|
@@ -1750,6 +1770,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
1750
1770
|
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
1751
1771
|
else
|
|
1752
1772
|
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;
|
|
1773
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1774
|
+
object.userId = message.userId;
|
|
1753
1775
|
return object;
|
|
1754
1776
|
};
|
|
1755
1777
|
|
|
@@ -1775,6 +1797,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
1775
1797
|
* @interface ISubscriptionCancelled
|
|
1776
1798
|
* @property {number|null} [id] SubscriptionCancelled id
|
|
1777
1799
|
* @property {number|Long|null} [updatedOn] SubscriptionCancelled updatedOn
|
|
1800
|
+
* @property {string|null} [userId] SubscriptionCancelled userId
|
|
1778
1801
|
*/
|
|
1779
1802
|
|
|
1780
1803
|
/**
|
|
@@ -1808,6 +1831,14 @@ $root.SubscriptionCancelled = (function() {
|
|
|
1808
1831
|
*/
|
|
1809
1832
|
SubscriptionCancelled.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1810
1833
|
|
|
1834
|
+
/**
|
|
1835
|
+
* SubscriptionCancelled userId.
|
|
1836
|
+
* @member {string} userId
|
|
1837
|
+
* @memberof SubscriptionCancelled
|
|
1838
|
+
* @instance
|
|
1839
|
+
*/
|
|
1840
|
+
SubscriptionCancelled.prototype.userId = "";
|
|
1841
|
+
|
|
1811
1842
|
/**
|
|
1812
1843
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
1813
1844
|
* @function create
|
|
@@ -1836,6 +1867,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
1836
1867
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
1837
1868
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1838
1869
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
1870
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1871
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
1839
1872
|
return writer;
|
|
1840
1873
|
};
|
|
1841
1874
|
|
|
@@ -1876,6 +1909,9 @@ $root.SubscriptionCancelled = (function() {
|
|
|
1876
1909
|
case 2:
|
|
1877
1910
|
message.updatedOn = reader.uint64();
|
|
1878
1911
|
break;
|
|
1912
|
+
case 3:
|
|
1913
|
+
message.userId = reader.string();
|
|
1914
|
+
break;
|
|
1879
1915
|
default:
|
|
1880
1916
|
reader.skipType(tag & 7);
|
|
1881
1917
|
break;
|
|
@@ -1917,6 +1953,9 @@ $root.SubscriptionCancelled = (function() {
|
|
|
1917
1953
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1918
1954
|
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
1919
1955
|
return "updatedOn: integer|Long expected";
|
|
1956
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1957
|
+
if (!$util.isString(message.userId))
|
|
1958
|
+
return "userId: string expected";
|
|
1920
1959
|
return null;
|
|
1921
1960
|
};
|
|
1922
1961
|
|
|
@@ -1943,6 +1982,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
1943
1982
|
message.updatedOn = object.updatedOn;
|
|
1944
1983
|
else if (typeof object.updatedOn === "object")
|
|
1945
1984
|
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
1985
|
+
if (object.userId != null)
|
|
1986
|
+
message.userId = String(object.userId);
|
|
1946
1987
|
return message;
|
|
1947
1988
|
};
|
|
1948
1989
|
|
|
@@ -1966,6 +2007,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
1966
2007
|
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1967
2008
|
} else
|
|
1968
2009
|
object.updatedOn = options.longs === String ? "0" : 0;
|
|
2010
|
+
object.userId = "";
|
|
1969
2011
|
}
|
|
1970
2012
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
1971
2013
|
object.id = message.id;
|
|
@@ -1974,6 +2016,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
1974
2016
|
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
1975
2017
|
else
|
|
1976
2018
|
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;
|
|
2019
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2020
|
+
object.userId = message.userId;
|
|
1977
2021
|
return object;
|
|
1978
2022
|
};
|
|
1979
2023
|
|
|
@@ -1991,6 +2035,252 @@ $root.SubscriptionCancelled = (function() {
|
|
|
1991
2035
|
return SubscriptionCancelled;
|
|
1992
2036
|
})();
|
|
1993
2037
|
|
|
2038
|
+
$root.SubscriptionRenewed = (function() {
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* Properties of a SubscriptionRenewed.
|
|
2042
|
+
* @exports ISubscriptionRenewed
|
|
2043
|
+
* @interface ISubscriptionRenewed
|
|
2044
|
+
* @property {number|null} [id] SubscriptionRenewed id
|
|
2045
|
+
* @property {number|Long|null} [updatedOn] SubscriptionRenewed updatedOn
|
|
2046
|
+
* @property {string|null} [userId] SubscriptionRenewed userId
|
|
2047
|
+
*/
|
|
2048
|
+
|
|
2049
|
+
/**
|
|
2050
|
+
* Constructs a new SubscriptionRenewed.
|
|
2051
|
+
* @exports SubscriptionRenewed
|
|
2052
|
+
* @classdesc Represents a SubscriptionRenewed.
|
|
2053
|
+
* @implements ISubscriptionRenewed
|
|
2054
|
+
* @constructor
|
|
2055
|
+
* @param {ISubscriptionRenewed=} [properties] Properties to set
|
|
2056
|
+
*/
|
|
2057
|
+
function SubscriptionRenewed(properties) {
|
|
2058
|
+
if (properties)
|
|
2059
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2060
|
+
if (properties[keys[i]] != null)
|
|
2061
|
+
this[keys[i]] = properties[keys[i]];
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
/**
|
|
2065
|
+
* SubscriptionRenewed id.
|
|
2066
|
+
* @member {number} id
|
|
2067
|
+
* @memberof SubscriptionRenewed
|
|
2068
|
+
* @instance
|
|
2069
|
+
*/
|
|
2070
|
+
SubscriptionRenewed.prototype.id = 0;
|
|
2071
|
+
|
|
2072
|
+
/**
|
|
2073
|
+
* SubscriptionRenewed updatedOn.
|
|
2074
|
+
* @member {number|Long} updatedOn
|
|
2075
|
+
* @memberof SubscriptionRenewed
|
|
2076
|
+
* @instance
|
|
2077
|
+
*/
|
|
2078
|
+
SubscriptionRenewed.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
2079
|
+
|
|
2080
|
+
/**
|
|
2081
|
+
* SubscriptionRenewed userId.
|
|
2082
|
+
* @member {string} userId
|
|
2083
|
+
* @memberof SubscriptionRenewed
|
|
2084
|
+
* @instance
|
|
2085
|
+
*/
|
|
2086
|
+
SubscriptionRenewed.prototype.userId = "";
|
|
2087
|
+
|
|
2088
|
+
/**
|
|
2089
|
+
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
2090
|
+
* @function create
|
|
2091
|
+
* @memberof SubscriptionRenewed
|
|
2092
|
+
* @static
|
|
2093
|
+
* @param {ISubscriptionRenewed=} [properties] Properties to set
|
|
2094
|
+
* @returns {SubscriptionRenewed} SubscriptionRenewed instance
|
|
2095
|
+
*/
|
|
2096
|
+
SubscriptionRenewed.create = function create(properties) {
|
|
2097
|
+
return new SubscriptionRenewed(properties);
|
|
2098
|
+
};
|
|
2099
|
+
|
|
2100
|
+
/**
|
|
2101
|
+
* Encodes the specified SubscriptionRenewed message. Does not implicitly {@link SubscriptionRenewed.verify|verify} messages.
|
|
2102
|
+
* @function encode
|
|
2103
|
+
* @memberof SubscriptionRenewed
|
|
2104
|
+
* @static
|
|
2105
|
+
* @param {ISubscriptionRenewed} message SubscriptionRenewed message or plain object to encode
|
|
2106
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2107
|
+
* @returns {$protobuf.Writer} Writer
|
|
2108
|
+
*/
|
|
2109
|
+
SubscriptionRenewed.encode = function encode(message, writer) {
|
|
2110
|
+
if (!writer)
|
|
2111
|
+
writer = $Writer.create();
|
|
2112
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
2113
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
2114
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
2115
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
2116
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2117
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
2118
|
+
return writer;
|
|
2119
|
+
};
|
|
2120
|
+
|
|
2121
|
+
/**
|
|
2122
|
+
* Encodes the specified SubscriptionRenewed message, length delimited. Does not implicitly {@link SubscriptionRenewed.verify|verify} messages.
|
|
2123
|
+
* @function encodeDelimited
|
|
2124
|
+
* @memberof SubscriptionRenewed
|
|
2125
|
+
* @static
|
|
2126
|
+
* @param {ISubscriptionRenewed} message SubscriptionRenewed message or plain object to encode
|
|
2127
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2128
|
+
* @returns {$protobuf.Writer} Writer
|
|
2129
|
+
*/
|
|
2130
|
+
SubscriptionRenewed.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2131
|
+
return this.encode(message, writer).ldelim();
|
|
2132
|
+
};
|
|
2133
|
+
|
|
2134
|
+
/**
|
|
2135
|
+
* Decodes a SubscriptionRenewed message from the specified reader or buffer.
|
|
2136
|
+
* @function decode
|
|
2137
|
+
* @memberof SubscriptionRenewed
|
|
2138
|
+
* @static
|
|
2139
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2140
|
+
* @param {number} [length] Message length if known beforehand
|
|
2141
|
+
* @returns {SubscriptionRenewed} SubscriptionRenewed
|
|
2142
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2143
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2144
|
+
*/
|
|
2145
|
+
SubscriptionRenewed.decode = function decode(reader, length) {
|
|
2146
|
+
if (!(reader instanceof $Reader))
|
|
2147
|
+
reader = $Reader.create(reader);
|
|
2148
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionRenewed();
|
|
2149
|
+
while (reader.pos < end) {
|
|
2150
|
+
var tag = reader.uint32();
|
|
2151
|
+
switch (tag >>> 3) {
|
|
2152
|
+
case 1:
|
|
2153
|
+
message.id = reader.uint32();
|
|
2154
|
+
break;
|
|
2155
|
+
case 2:
|
|
2156
|
+
message.updatedOn = reader.uint64();
|
|
2157
|
+
break;
|
|
2158
|
+
case 3:
|
|
2159
|
+
message.userId = reader.string();
|
|
2160
|
+
break;
|
|
2161
|
+
default:
|
|
2162
|
+
reader.skipType(tag & 7);
|
|
2163
|
+
break;
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
return message;
|
|
2167
|
+
};
|
|
2168
|
+
|
|
2169
|
+
/**
|
|
2170
|
+
* Decodes a SubscriptionRenewed message from the specified reader or buffer, length delimited.
|
|
2171
|
+
* @function decodeDelimited
|
|
2172
|
+
* @memberof SubscriptionRenewed
|
|
2173
|
+
* @static
|
|
2174
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2175
|
+
* @returns {SubscriptionRenewed} SubscriptionRenewed
|
|
2176
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2177
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2178
|
+
*/
|
|
2179
|
+
SubscriptionRenewed.decodeDelimited = function decodeDelimited(reader) {
|
|
2180
|
+
if (!(reader instanceof $Reader))
|
|
2181
|
+
reader = new $Reader(reader);
|
|
2182
|
+
return this.decode(reader, reader.uint32());
|
|
2183
|
+
};
|
|
2184
|
+
|
|
2185
|
+
/**
|
|
2186
|
+
* Verifies a SubscriptionRenewed message.
|
|
2187
|
+
* @function verify
|
|
2188
|
+
* @memberof SubscriptionRenewed
|
|
2189
|
+
* @static
|
|
2190
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2191
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2192
|
+
*/
|
|
2193
|
+
SubscriptionRenewed.verify = function verify(message) {
|
|
2194
|
+
if (typeof message !== "object" || message === null)
|
|
2195
|
+
return "object expected";
|
|
2196
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
2197
|
+
if (!$util.isInteger(message.id))
|
|
2198
|
+
return "id: integer expected";
|
|
2199
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
2200
|
+
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
2201
|
+
return "updatedOn: integer|Long expected";
|
|
2202
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2203
|
+
if (!$util.isString(message.userId))
|
|
2204
|
+
return "userId: string expected";
|
|
2205
|
+
return null;
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
/**
|
|
2209
|
+
* Creates a SubscriptionRenewed message from a plain object. Also converts values to their respective internal types.
|
|
2210
|
+
* @function fromObject
|
|
2211
|
+
* @memberof SubscriptionRenewed
|
|
2212
|
+
* @static
|
|
2213
|
+
* @param {Object.<string,*>} object Plain object
|
|
2214
|
+
* @returns {SubscriptionRenewed} SubscriptionRenewed
|
|
2215
|
+
*/
|
|
2216
|
+
SubscriptionRenewed.fromObject = function fromObject(object) {
|
|
2217
|
+
if (object instanceof $root.SubscriptionRenewed)
|
|
2218
|
+
return object;
|
|
2219
|
+
var message = new $root.SubscriptionRenewed();
|
|
2220
|
+
if (object.id != null)
|
|
2221
|
+
message.id = object.id >>> 0;
|
|
2222
|
+
if (object.updatedOn != null)
|
|
2223
|
+
if ($util.Long)
|
|
2224
|
+
(message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
|
|
2225
|
+
else if (typeof object.updatedOn === "string")
|
|
2226
|
+
message.updatedOn = parseInt(object.updatedOn, 10);
|
|
2227
|
+
else if (typeof object.updatedOn === "number")
|
|
2228
|
+
message.updatedOn = object.updatedOn;
|
|
2229
|
+
else if (typeof object.updatedOn === "object")
|
|
2230
|
+
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
2231
|
+
if (object.userId != null)
|
|
2232
|
+
message.userId = String(object.userId);
|
|
2233
|
+
return message;
|
|
2234
|
+
};
|
|
2235
|
+
|
|
2236
|
+
/**
|
|
2237
|
+
* Creates a plain object from a SubscriptionRenewed message. Also converts values to other types if specified.
|
|
2238
|
+
* @function toObject
|
|
2239
|
+
* @memberof SubscriptionRenewed
|
|
2240
|
+
* @static
|
|
2241
|
+
* @param {SubscriptionRenewed} message SubscriptionRenewed
|
|
2242
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2243
|
+
* @returns {Object.<string,*>} Plain object
|
|
2244
|
+
*/
|
|
2245
|
+
SubscriptionRenewed.toObject = function toObject(message, options) {
|
|
2246
|
+
if (!options)
|
|
2247
|
+
options = {};
|
|
2248
|
+
var object = {};
|
|
2249
|
+
if (options.defaults) {
|
|
2250
|
+
object.id = 0;
|
|
2251
|
+
if ($util.Long) {
|
|
2252
|
+
var long = new $util.Long(0, 0, true);
|
|
2253
|
+
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
2254
|
+
} else
|
|
2255
|
+
object.updatedOn = options.longs === String ? "0" : 0;
|
|
2256
|
+
object.userId = "";
|
|
2257
|
+
}
|
|
2258
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
2259
|
+
object.id = message.id;
|
|
2260
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
2261
|
+
if (typeof message.updatedOn === "number")
|
|
2262
|
+
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
2263
|
+
else
|
|
2264
|
+
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;
|
|
2265
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2266
|
+
object.userId = message.userId;
|
|
2267
|
+
return object;
|
|
2268
|
+
};
|
|
2269
|
+
|
|
2270
|
+
/**
|
|
2271
|
+
* Converts this SubscriptionRenewed to JSON.
|
|
2272
|
+
* @function toJSON
|
|
2273
|
+
* @memberof SubscriptionRenewed
|
|
2274
|
+
* @instance
|
|
2275
|
+
* @returns {Object.<string,*>} JSON object
|
|
2276
|
+
*/
|
|
2277
|
+
SubscriptionRenewed.prototype.toJSON = function toJSON() {
|
|
2278
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2279
|
+
};
|
|
2280
|
+
|
|
2281
|
+
return SubscriptionRenewed;
|
|
2282
|
+
})();
|
|
2283
|
+
|
|
1994
2284
|
$root.UserPasswordUpdated = (function() {
|
|
1995
2285
|
|
|
1996
2286
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@headspace/protos-events",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"typings": "lib/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"tslint": "^5.11.0",
|
|
23
23
|
"typescript": "^3.0.1"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "a5f753a926d91a14a9b0ecbac4bb7df0bd06f864"
|
|
26
26
|
}
|
package/subscription.proto
CHANGED
|
@@ -3,9 +3,17 @@ syntax = "proto3";
|
|
|
3
3
|
message SubscriptionCreated {
|
|
4
4
|
uint32 id = 1;
|
|
5
5
|
uint64 updatedOn = 2;
|
|
6
|
+
string userId = 3;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
message SubscriptionCancelled {
|
|
9
10
|
uint32 id = 1;
|
|
10
11
|
uint64 updatedOn = 2;
|
|
12
|
+
string userId = 3;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message SubscriptionRenewed {
|
|
16
|
+
uint32 id = 1;
|
|
17
|
+
uint64 updatedOn = 2;
|
|
18
|
+
string userId = 3;
|
|
11
19
|
}
|