@headspace/protos-events 1.6.0 → 1.8.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 +204 -0
- package/lib/index.js +492 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1618,6 +1618,114 @@ export class SubscriptionPaymentProcessed implements ISubscriptionPaymentProcess
|
|
|
1618
1618
|
public toJSON(): { [k: string]: any };
|
|
1619
1619
|
}
|
|
1620
1620
|
|
|
1621
|
+
/** Properties of a SubscriptionPaymentDeclined. */
|
|
1622
|
+
export interface ISubscriptionPaymentDeclined {
|
|
1623
|
+
|
|
1624
|
+
/** SubscriptionPaymentDeclined userId */
|
|
1625
|
+
userId?: (string|null);
|
|
1626
|
+
|
|
1627
|
+
/** SubscriptionPaymentDeclined paymentDate */
|
|
1628
|
+
paymentDate?: (number|Long|null);
|
|
1629
|
+
|
|
1630
|
+
/** SubscriptionPaymentDeclined timestamp */
|
|
1631
|
+
timestamp?: (number|Long|null);
|
|
1632
|
+
|
|
1633
|
+
/** SubscriptionPaymentDeclined attempt */
|
|
1634
|
+
attempt?: (number|null);
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
/** Represents a SubscriptionPaymentDeclined. */
|
|
1638
|
+
export class SubscriptionPaymentDeclined implements ISubscriptionPaymentDeclined {
|
|
1639
|
+
|
|
1640
|
+
/**
|
|
1641
|
+
* Constructs a new SubscriptionPaymentDeclined.
|
|
1642
|
+
* @param [properties] Properties to set
|
|
1643
|
+
*/
|
|
1644
|
+
constructor(properties?: ISubscriptionPaymentDeclined);
|
|
1645
|
+
|
|
1646
|
+
/** SubscriptionPaymentDeclined userId. */
|
|
1647
|
+
public userId: string;
|
|
1648
|
+
|
|
1649
|
+
/** SubscriptionPaymentDeclined paymentDate. */
|
|
1650
|
+
public paymentDate: (number|Long);
|
|
1651
|
+
|
|
1652
|
+
/** SubscriptionPaymentDeclined timestamp. */
|
|
1653
|
+
public timestamp: (number|Long);
|
|
1654
|
+
|
|
1655
|
+
/** SubscriptionPaymentDeclined attempt. */
|
|
1656
|
+
public attempt: number;
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* Creates a new SubscriptionPaymentDeclined instance using the specified properties.
|
|
1660
|
+
* @param [properties] Properties to set
|
|
1661
|
+
* @returns SubscriptionPaymentDeclined instance
|
|
1662
|
+
*/
|
|
1663
|
+
public static create(properties?: ISubscriptionPaymentDeclined): SubscriptionPaymentDeclined;
|
|
1664
|
+
|
|
1665
|
+
/**
|
|
1666
|
+
* Encodes the specified SubscriptionPaymentDeclined message. Does not implicitly {@link SubscriptionPaymentDeclined.verify|verify} messages.
|
|
1667
|
+
* @param message SubscriptionPaymentDeclined message or plain object to encode
|
|
1668
|
+
* @param [writer] Writer to encode to
|
|
1669
|
+
* @returns Writer
|
|
1670
|
+
*/
|
|
1671
|
+
public static encode(message: ISubscriptionPaymentDeclined, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
* Encodes the specified SubscriptionPaymentDeclined message, length delimited. Does not implicitly {@link SubscriptionPaymentDeclined.verify|verify} messages.
|
|
1675
|
+
* @param message SubscriptionPaymentDeclined message or plain object to encode
|
|
1676
|
+
* @param [writer] Writer to encode to
|
|
1677
|
+
* @returns Writer
|
|
1678
|
+
*/
|
|
1679
|
+
public static encodeDelimited(message: ISubscriptionPaymentDeclined, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1680
|
+
|
|
1681
|
+
/**
|
|
1682
|
+
* Decodes a SubscriptionPaymentDeclined message from the specified reader or buffer.
|
|
1683
|
+
* @param reader Reader or buffer to decode from
|
|
1684
|
+
* @param [length] Message length if known beforehand
|
|
1685
|
+
* @returns SubscriptionPaymentDeclined
|
|
1686
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1687
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1688
|
+
*/
|
|
1689
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SubscriptionPaymentDeclined;
|
|
1690
|
+
|
|
1691
|
+
/**
|
|
1692
|
+
* Decodes a SubscriptionPaymentDeclined message from the specified reader or buffer, length delimited.
|
|
1693
|
+
* @param reader Reader or buffer to decode from
|
|
1694
|
+
* @returns SubscriptionPaymentDeclined
|
|
1695
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1696
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1697
|
+
*/
|
|
1698
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SubscriptionPaymentDeclined;
|
|
1699
|
+
|
|
1700
|
+
/**
|
|
1701
|
+
* Verifies a SubscriptionPaymentDeclined message.
|
|
1702
|
+
* @param message Plain object to verify
|
|
1703
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1704
|
+
*/
|
|
1705
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* Creates a SubscriptionPaymentDeclined message from a plain object. Also converts values to their respective internal types.
|
|
1709
|
+
* @param object Plain object
|
|
1710
|
+
* @returns SubscriptionPaymentDeclined
|
|
1711
|
+
*/
|
|
1712
|
+
public static fromObject(object: { [k: string]: any }): SubscriptionPaymentDeclined;
|
|
1713
|
+
|
|
1714
|
+
/**
|
|
1715
|
+
* Creates a plain object from a SubscriptionPaymentDeclined message. Also converts values to other types if specified.
|
|
1716
|
+
* @param message SubscriptionPaymentDeclined
|
|
1717
|
+
* @param [options] Conversion options
|
|
1718
|
+
* @returns Plain object
|
|
1719
|
+
*/
|
|
1720
|
+
public static toObject(message: SubscriptionPaymentDeclined, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1721
|
+
|
|
1722
|
+
/**
|
|
1723
|
+
* Converts this SubscriptionPaymentDeclined to JSON.
|
|
1724
|
+
* @returns JSON object
|
|
1725
|
+
*/
|
|
1726
|
+
public toJSON(): { [k: string]: any };
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1621
1729
|
/** Properties of a UserPasswordUpdated. */
|
|
1622
1730
|
export interface IUserPasswordUpdated {
|
|
1623
1731
|
|
|
@@ -1719,3 +1827,99 @@ export class UserPasswordUpdated implements IUserPasswordUpdated {
|
|
|
1719
1827
|
*/
|
|
1720
1828
|
public toJSON(): { [k: string]: any };
|
|
1721
1829
|
}
|
|
1830
|
+
|
|
1831
|
+
/** Properties of a UserEmailVerificationRequested. */
|
|
1832
|
+
export interface IUserEmailVerificationRequested {
|
|
1833
|
+
|
|
1834
|
+
/** UserEmailVerificationRequested userId */
|
|
1835
|
+
userId?: (string|null);
|
|
1836
|
+
|
|
1837
|
+
/** UserEmailVerificationRequested verificationCode */
|
|
1838
|
+
verificationCode?: (string|null);
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
/** Represents a UserEmailVerificationRequested. */
|
|
1842
|
+
export class UserEmailVerificationRequested implements IUserEmailVerificationRequested {
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
* Constructs a new UserEmailVerificationRequested.
|
|
1846
|
+
* @param [properties] Properties to set
|
|
1847
|
+
*/
|
|
1848
|
+
constructor(properties?: IUserEmailVerificationRequested);
|
|
1849
|
+
|
|
1850
|
+
/** UserEmailVerificationRequested userId. */
|
|
1851
|
+
public userId: string;
|
|
1852
|
+
|
|
1853
|
+
/** UserEmailVerificationRequested verificationCode. */
|
|
1854
|
+
public verificationCode: string;
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* Creates a new UserEmailVerificationRequested instance using the specified properties.
|
|
1858
|
+
* @param [properties] Properties to set
|
|
1859
|
+
* @returns UserEmailVerificationRequested instance
|
|
1860
|
+
*/
|
|
1861
|
+
public static create(properties?: IUserEmailVerificationRequested): UserEmailVerificationRequested;
|
|
1862
|
+
|
|
1863
|
+
/**
|
|
1864
|
+
* Encodes the specified UserEmailVerificationRequested message. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
|
|
1865
|
+
* @param message UserEmailVerificationRequested message or plain object to encode
|
|
1866
|
+
* @param [writer] Writer to encode to
|
|
1867
|
+
* @returns Writer
|
|
1868
|
+
*/
|
|
1869
|
+
public static encode(message: IUserEmailVerificationRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1870
|
+
|
|
1871
|
+
/**
|
|
1872
|
+
* Encodes the specified UserEmailVerificationRequested message, length delimited. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
|
|
1873
|
+
* @param message UserEmailVerificationRequested message or plain object to encode
|
|
1874
|
+
* @param [writer] Writer to encode to
|
|
1875
|
+
* @returns Writer
|
|
1876
|
+
*/
|
|
1877
|
+
public static encodeDelimited(message: IUserEmailVerificationRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1878
|
+
|
|
1879
|
+
/**
|
|
1880
|
+
* Decodes a UserEmailVerificationRequested message from the specified reader or buffer.
|
|
1881
|
+
* @param reader Reader or buffer to decode from
|
|
1882
|
+
* @param [length] Message length if known beforehand
|
|
1883
|
+
* @returns UserEmailVerificationRequested
|
|
1884
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1885
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1886
|
+
*/
|
|
1887
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserEmailVerificationRequested;
|
|
1888
|
+
|
|
1889
|
+
/**
|
|
1890
|
+
* Decodes a UserEmailVerificationRequested message from the specified reader or buffer, length delimited.
|
|
1891
|
+
* @param reader Reader or buffer to decode from
|
|
1892
|
+
* @returns UserEmailVerificationRequested
|
|
1893
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1894
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1895
|
+
*/
|
|
1896
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserEmailVerificationRequested;
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* Verifies a UserEmailVerificationRequested message.
|
|
1900
|
+
* @param message Plain object to verify
|
|
1901
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1902
|
+
*/
|
|
1903
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
* Creates a UserEmailVerificationRequested message from a plain object. Also converts values to their respective internal types.
|
|
1907
|
+
* @param object Plain object
|
|
1908
|
+
* @returns UserEmailVerificationRequested
|
|
1909
|
+
*/
|
|
1910
|
+
public static fromObject(object: { [k: string]: any }): UserEmailVerificationRequested;
|
|
1911
|
+
|
|
1912
|
+
/**
|
|
1913
|
+
* Creates a plain object from a UserEmailVerificationRequested message. Also converts values to other types if specified.
|
|
1914
|
+
* @param message UserEmailVerificationRequested
|
|
1915
|
+
* @param [options] Conversion options
|
|
1916
|
+
* @returns Plain object
|
|
1917
|
+
*/
|
|
1918
|
+
public static toObject(message: UserEmailVerificationRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* Converts this UserEmailVerificationRequested to JSON.
|
|
1922
|
+
* @returns JSON object
|
|
1923
|
+
*/
|
|
1924
|
+
public toJSON(): { [k: string]: any };
|
|
1925
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -4058,6 +4058,288 @@ $root.SubscriptionPaymentProcessed = (function() {
|
|
|
4058
4058
|
return SubscriptionPaymentProcessed;
|
|
4059
4059
|
})();
|
|
4060
4060
|
|
|
4061
|
+
$root.SubscriptionPaymentDeclined = (function() {
|
|
4062
|
+
|
|
4063
|
+
/**
|
|
4064
|
+
* Properties of a SubscriptionPaymentDeclined.
|
|
4065
|
+
* @exports ISubscriptionPaymentDeclined
|
|
4066
|
+
* @interface ISubscriptionPaymentDeclined
|
|
4067
|
+
* @property {string|null} [userId] SubscriptionPaymentDeclined userId
|
|
4068
|
+
* @property {number|Long|null} [paymentDate] SubscriptionPaymentDeclined paymentDate
|
|
4069
|
+
* @property {number|Long|null} [timestamp] SubscriptionPaymentDeclined timestamp
|
|
4070
|
+
* @property {number|null} [attempt] SubscriptionPaymentDeclined attempt
|
|
4071
|
+
*/
|
|
4072
|
+
|
|
4073
|
+
/**
|
|
4074
|
+
* Constructs a new SubscriptionPaymentDeclined.
|
|
4075
|
+
* @exports SubscriptionPaymentDeclined
|
|
4076
|
+
* @classdesc Represents a SubscriptionPaymentDeclined.
|
|
4077
|
+
* @implements ISubscriptionPaymentDeclined
|
|
4078
|
+
* @constructor
|
|
4079
|
+
* @param {ISubscriptionPaymentDeclined=} [properties] Properties to set
|
|
4080
|
+
*/
|
|
4081
|
+
function SubscriptionPaymentDeclined(properties) {
|
|
4082
|
+
if (properties)
|
|
4083
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4084
|
+
if (properties[keys[i]] != null)
|
|
4085
|
+
this[keys[i]] = properties[keys[i]];
|
|
4086
|
+
}
|
|
4087
|
+
|
|
4088
|
+
/**
|
|
4089
|
+
* SubscriptionPaymentDeclined userId.
|
|
4090
|
+
* @member {string} userId
|
|
4091
|
+
* @memberof SubscriptionPaymentDeclined
|
|
4092
|
+
* @instance
|
|
4093
|
+
*/
|
|
4094
|
+
SubscriptionPaymentDeclined.prototype.userId = "";
|
|
4095
|
+
|
|
4096
|
+
/**
|
|
4097
|
+
* SubscriptionPaymentDeclined paymentDate.
|
|
4098
|
+
* @member {number|Long} paymentDate
|
|
4099
|
+
* @memberof SubscriptionPaymentDeclined
|
|
4100
|
+
* @instance
|
|
4101
|
+
*/
|
|
4102
|
+
SubscriptionPaymentDeclined.prototype.paymentDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
4103
|
+
|
|
4104
|
+
/**
|
|
4105
|
+
* SubscriptionPaymentDeclined timestamp.
|
|
4106
|
+
* @member {number|Long} timestamp
|
|
4107
|
+
* @memberof SubscriptionPaymentDeclined
|
|
4108
|
+
* @instance
|
|
4109
|
+
*/
|
|
4110
|
+
SubscriptionPaymentDeclined.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
4111
|
+
|
|
4112
|
+
/**
|
|
4113
|
+
* SubscriptionPaymentDeclined attempt.
|
|
4114
|
+
* @member {number} attempt
|
|
4115
|
+
* @memberof SubscriptionPaymentDeclined
|
|
4116
|
+
* @instance
|
|
4117
|
+
*/
|
|
4118
|
+
SubscriptionPaymentDeclined.prototype.attempt = 0;
|
|
4119
|
+
|
|
4120
|
+
/**
|
|
4121
|
+
* Creates a new SubscriptionPaymentDeclined instance using the specified properties.
|
|
4122
|
+
* @function create
|
|
4123
|
+
* @memberof SubscriptionPaymentDeclined
|
|
4124
|
+
* @static
|
|
4125
|
+
* @param {ISubscriptionPaymentDeclined=} [properties] Properties to set
|
|
4126
|
+
* @returns {SubscriptionPaymentDeclined} SubscriptionPaymentDeclined instance
|
|
4127
|
+
*/
|
|
4128
|
+
SubscriptionPaymentDeclined.create = function create(properties) {
|
|
4129
|
+
return new SubscriptionPaymentDeclined(properties);
|
|
4130
|
+
};
|
|
4131
|
+
|
|
4132
|
+
/**
|
|
4133
|
+
* Encodes the specified SubscriptionPaymentDeclined message. Does not implicitly {@link SubscriptionPaymentDeclined.verify|verify} messages.
|
|
4134
|
+
* @function encode
|
|
4135
|
+
* @memberof SubscriptionPaymentDeclined
|
|
4136
|
+
* @static
|
|
4137
|
+
* @param {ISubscriptionPaymentDeclined} message SubscriptionPaymentDeclined message or plain object to encode
|
|
4138
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4139
|
+
* @returns {$protobuf.Writer} Writer
|
|
4140
|
+
*/
|
|
4141
|
+
SubscriptionPaymentDeclined.encode = function encode(message, writer) {
|
|
4142
|
+
if (!writer)
|
|
4143
|
+
writer = $Writer.create();
|
|
4144
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
4145
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
4146
|
+
if (message.paymentDate != null && message.hasOwnProperty("paymentDate"))
|
|
4147
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.paymentDate);
|
|
4148
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
4149
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
4150
|
+
if (message.attempt != null && message.hasOwnProperty("attempt"))
|
|
4151
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.attempt);
|
|
4152
|
+
return writer;
|
|
4153
|
+
};
|
|
4154
|
+
|
|
4155
|
+
/**
|
|
4156
|
+
* Encodes the specified SubscriptionPaymentDeclined message, length delimited. Does not implicitly {@link SubscriptionPaymentDeclined.verify|verify} messages.
|
|
4157
|
+
* @function encodeDelimited
|
|
4158
|
+
* @memberof SubscriptionPaymentDeclined
|
|
4159
|
+
* @static
|
|
4160
|
+
* @param {ISubscriptionPaymentDeclined} message SubscriptionPaymentDeclined message or plain object to encode
|
|
4161
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4162
|
+
* @returns {$protobuf.Writer} Writer
|
|
4163
|
+
*/
|
|
4164
|
+
SubscriptionPaymentDeclined.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4165
|
+
return this.encode(message, writer).ldelim();
|
|
4166
|
+
};
|
|
4167
|
+
|
|
4168
|
+
/**
|
|
4169
|
+
* Decodes a SubscriptionPaymentDeclined message from the specified reader or buffer.
|
|
4170
|
+
* @function decode
|
|
4171
|
+
* @memberof SubscriptionPaymentDeclined
|
|
4172
|
+
* @static
|
|
4173
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4174
|
+
* @param {number} [length] Message length if known beforehand
|
|
4175
|
+
* @returns {SubscriptionPaymentDeclined} SubscriptionPaymentDeclined
|
|
4176
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4177
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4178
|
+
*/
|
|
4179
|
+
SubscriptionPaymentDeclined.decode = function decode(reader, length) {
|
|
4180
|
+
if (!(reader instanceof $Reader))
|
|
4181
|
+
reader = $Reader.create(reader);
|
|
4182
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionPaymentDeclined();
|
|
4183
|
+
while (reader.pos < end) {
|
|
4184
|
+
var tag = reader.uint32();
|
|
4185
|
+
switch (tag >>> 3) {
|
|
4186
|
+
case 1:
|
|
4187
|
+
message.userId = reader.string();
|
|
4188
|
+
break;
|
|
4189
|
+
case 2:
|
|
4190
|
+
message.paymentDate = reader.uint64();
|
|
4191
|
+
break;
|
|
4192
|
+
case 3:
|
|
4193
|
+
message.timestamp = reader.uint64();
|
|
4194
|
+
break;
|
|
4195
|
+
case 4:
|
|
4196
|
+
message.attempt = reader.uint32();
|
|
4197
|
+
break;
|
|
4198
|
+
default:
|
|
4199
|
+
reader.skipType(tag & 7);
|
|
4200
|
+
break;
|
|
4201
|
+
}
|
|
4202
|
+
}
|
|
4203
|
+
return message;
|
|
4204
|
+
};
|
|
4205
|
+
|
|
4206
|
+
/**
|
|
4207
|
+
* Decodes a SubscriptionPaymentDeclined message from the specified reader or buffer, length delimited.
|
|
4208
|
+
* @function decodeDelimited
|
|
4209
|
+
* @memberof SubscriptionPaymentDeclined
|
|
4210
|
+
* @static
|
|
4211
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4212
|
+
* @returns {SubscriptionPaymentDeclined} SubscriptionPaymentDeclined
|
|
4213
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4214
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4215
|
+
*/
|
|
4216
|
+
SubscriptionPaymentDeclined.decodeDelimited = function decodeDelimited(reader) {
|
|
4217
|
+
if (!(reader instanceof $Reader))
|
|
4218
|
+
reader = new $Reader(reader);
|
|
4219
|
+
return this.decode(reader, reader.uint32());
|
|
4220
|
+
};
|
|
4221
|
+
|
|
4222
|
+
/**
|
|
4223
|
+
* Verifies a SubscriptionPaymentDeclined message.
|
|
4224
|
+
* @function verify
|
|
4225
|
+
* @memberof SubscriptionPaymentDeclined
|
|
4226
|
+
* @static
|
|
4227
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
4228
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
4229
|
+
*/
|
|
4230
|
+
SubscriptionPaymentDeclined.verify = function verify(message) {
|
|
4231
|
+
if (typeof message !== "object" || message === null)
|
|
4232
|
+
return "object expected";
|
|
4233
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
4234
|
+
if (!$util.isString(message.userId))
|
|
4235
|
+
return "userId: string expected";
|
|
4236
|
+
if (message.paymentDate != null && message.hasOwnProperty("paymentDate"))
|
|
4237
|
+
if (!$util.isInteger(message.paymentDate) && !(message.paymentDate && $util.isInteger(message.paymentDate.low) && $util.isInteger(message.paymentDate.high)))
|
|
4238
|
+
return "paymentDate: integer|Long expected";
|
|
4239
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
4240
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
4241
|
+
return "timestamp: integer|Long expected";
|
|
4242
|
+
if (message.attempt != null && message.hasOwnProperty("attempt"))
|
|
4243
|
+
if (!$util.isInteger(message.attempt))
|
|
4244
|
+
return "attempt: integer expected";
|
|
4245
|
+
return null;
|
|
4246
|
+
};
|
|
4247
|
+
|
|
4248
|
+
/**
|
|
4249
|
+
* Creates a SubscriptionPaymentDeclined message from a plain object. Also converts values to their respective internal types.
|
|
4250
|
+
* @function fromObject
|
|
4251
|
+
* @memberof SubscriptionPaymentDeclined
|
|
4252
|
+
* @static
|
|
4253
|
+
* @param {Object.<string,*>} object Plain object
|
|
4254
|
+
* @returns {SubscriptionPaymentDeclined} SubscriptionPaymentDeclined
|
|
4255
|
+
*/
|
|
4256
|
+
SubscriptionPaymentDeclined.fromObject = function fromObject(object) {
|
|
4257
|
+
if (object instanceof $root.SubscriptionPaymentDeclined)
|
|
4258
|
+
return object;
|
|
4259
|
+
var message = new $root.SubscriptionPaymentDeclined();
|
|
4260
|
+
if (object.userId != null)
|
|
4261
|
+
message.userId = String(object.userId);
|
|
4262
|
+
if (object.paymentDate != null)
|
|
4263
|
+
if ($util.Long)
|
|
4264
|
+
(message.paymentDate = $util.Long.fromValue(object.paymentDate)).unsigned = true;
|
|
4265
|
+
else if (typeof object.paymentDate === "string")
|
|
4266
|
+
message.paymentDate = parseInt(object.paymentDate, 10);
|
|
4267
|
+
else if (typeof object.paymentDate === "number")
|
|
4268
|
+
message.paymentDate = object.paymentDate;
|
|
4269
|
+
else if (typeof object.paymentDate === "object")
|
|
4270
|
+
message.paymentDate = new $util.LongBits(object.paymentDate.low >>> 0, object.paymentDate.high >>> 0).toNumber(true);
|
|
4271
|
+
if (object.timestamp != null)
|
|
4272
|
+
if ($util.Long)
|
|
4273
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
4274
|
+
else if (typeof object.timestamp === "string")
|
|
4275
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
4276
|
+
else if (typeof object.timestamp === "number")
|
|
4277
|
+
message.timestamp = object.timestamp;
|
|
4278
|
+
else if (typeof object.timestamp === "object")
|
|
4279
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
4280
|
+
if (object.attempt != null)
|
|
4281
|
+
message.attempt = object.attempt >>> 0;
|
|
4282
|
+
return message;
|
|
4283
|
+
};
|
|
4284
|
+
|
|
4285
|
+
/**
|
|
4286
|
+
* Creates a plain object from a SubscriptionPaymentDeclined message. Also converts values to other types if specified.
|
|
4287
|
+
* @function toObject
|
|
4288
|
+
* @memberof SubscriptionPaymentDeclined
|
|
4289
|
+
* @static
|
|
4290
|
+
* @param {SubscriptionPaymentDeclined} message SubscriptionPaymentDeclined
|
|
4291
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4292
|
+
* @returns {Object.<string,*>} Plain object
|
|
4293
|
+
*/
|
|
4294
|
+
SubscriptionPaymentDeclined.toObject = function toObject(message, options) {
|
|
4295
|
+
if (!options)
|
|
4296
|
+
options = {};
|
|
4297
|
+
var object = {};
|
|
4298
|
+
if (options.defaults) {
|
|
4299
|
+
object.userId = "";
|
|
4300
|
+
if ($util.Long) {
|
|
4301
|
+
var long = new $util.Long(0, 0, true);
|
|
4302
|
+
object.paymentDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
4303
|
+
} else
|
|
4304
|
+
object.paymentDate = options.longs === String ? "0" : 0;
|
|
4305
|
+
if ($util.Long) {
|
|
4306
|
+
var long = new $util.Long(0, 0, true);
|
|
4307
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
4308
|
+
} else
|
|
4309
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
4310
|
+
object.attempt = 0;
|
|
4311
|
+
}
|
|
4312
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
4313
|
+
object.userId = message.userId;
|
|
4314
|
+
if (message.paymentDate != null && message.hasOwnProperty("paymentDate"))
|
|
4315
|
+
if (typeof message.paymentDate === "number")
|
|
4316
|
+
object.paymentDate = options.longs === String ? String(message.paymentDate) : message.paymentDate;
|
|
4317
|
+
else
|
|
4318
|
+
object.paymentDate = options.longs === String ? $util.Long.prototype.toString.call(message.paymentDate) : options.longs === Number ? new $util.LongBits(message.paymentDate.low >>> 0, message.paymentDate.high >>> 0).toNumber(true) : message.paymentDate;
|
|
4319
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
4320
|
+
if (typeof message.timestamp === "number")
|
|
4321
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
4322
|
+
else
|
|
4323
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
4324
|
+
if (message.attempt != null && message.hasOwnProperty("attempt"))
|
|
4325
|
+
object.attempt = message.attempt;
|
|
4326
|
+
return object;
|
|
4327
|
+
};
|
|
4328
|
+
|
|
4329
|
+
/**
|
|
4330
|
+
* Converts this SubscriptionPaymentDeclined to JSON.
|
|
4331
|
+
* @function toJSON
|
|
4332
|
+
* @memberof SubscriptionPaymentDeclined
|
|
4333
|
+
* @instance
|
|
4334
|
+
* @returns {Object.<string,*>} JSON object
|
|
4335
|
+
*/
|
|
4336
|
+
SubscriptionPaymentDeclined.prototype.toJSON = function toJSON() {
|
|
4337
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4338
|
+
};
|
|
4339
|
+
|
|
4340
|
+
return SubscriptionPaymentDeclined;
|
|
4341
|
+
})();
|
|
4342
|
+
|
|
4061
4343
|
$root.UserPasswordUpdated = (function() {
|
|
4062
4344
|
|
|
4063
4345
|
/**
|
|
@@ -4304,4 +4586,214 @@ $root.UserPasswordUpdated = (function() {
|
|
|
4304
4586
|
return UserPasswordUpdated;
|
|
4305
4587
|
})();
|
|
4306
4588
|
|
|
4589
|
+
$root.UserEmailVerificationRequested = (function() {
|
|
4590
|
+
|
|
4591
|
+
/**
|
|
4592
|
+
* Properties of a UserEmailVerificationRequested.
|
|
4593
|
+
* @exports IUserEmailVerificationRequested
|
|
4594
|
+
* @interface IUserEmailVerificationRequested
|
|
4595
|
+
* @property {string|null} [userId] UserEmailVerificationRequested userId
|
|
4596
|
+
* @property {string|null} [verificationCode] UserEmailVerificationRequested verificationCode
|
|
4597
|
+
*/
|
|
4598
|
+
|
|
4599
|
+
/**
|
|
4600
|
+
* Constructs a new UserEmailVerificationRequested.
|
|
4601
|
+
* @exports UserEmailVerificationRequested
|
|
4602
|
+
* @classdesc Represents a UserEmailVerificationRequested.
|
|
4603
|
+
* @implements IUserEmailVerificationRequested
|
|
4604
|
+
* @constructor
|
|
4605
|
+
* @param {IUserEmailVerificationRequested=} [properties] Properties to set
|
|
4606
|
+
*/
|
|
4607
|
+
function UserEmailVerificationRequested(properties) {
|
|
4608
|
+
if (properties)
|
|
4609
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4610
|
+
if (properties[keys[i]] != null)
|
|
4611
|
+
this[keys[i]] = properties[keys[i]];
|
|
4612
|
+
}
|
|
4613
|
+
|
|
4614
|
+
/**
|
|
4615
|
+
* UserEmailVerificationRequested userId.
|
|
4616
|
+
* @member {string} userId
|
|
4617
|
+
* @memberof UserEmailVerificationRequested
|
|
4618
|
+
* @instance
|
|
4619
|
+
*/
|
|
4620
|
+
UserEmailVerificationRequested.prototype.userId = "";
|
|
4621
|
+
|
|
4622
|
+
/**
|
|
4623
|
+
* UserEmailVerificationRequested verificationCode.
|
|
4624
|
+
* @member {string} verificationCode
|
|
4625
|
+
* @memberof UserEmailVerificationRequested
|
|
4626
|
+
* @instance
|
|
4627
|
+
*/
|
|
4628
|
+
UserEmailVerificationRequested.prototype.verificationCode = "";
|
|
4629
|
+
|
|
4630
|
+
/**
|
|
4631
|
+
* Creates a new UserEmailVerificationRequested instance using the specified properties.
|
|
4632
|
+
* @function create
|
|
4633
|
+
* @memberof UserEmailVerificationRequested
|
|
4634
|
+
* @static
|
|
4635
|
+
* @param {IUserEmailVerificationRequested=} [properties] Properties to set
|
|
4636
|
+
* @returns {UserEmailVerificationRequested} UserEmailVerificationRequested instance
|
|
4637
|
+
*/
|
|
4638
|
+
UserEmailVerificationRequested.create = function create(properties) {
|
|
4639
|
+
return new UserEmailVerificationRequested(properties);
|
|
4640
|
+
};
|
|
4641
|
+
|
|
4642
|
+
/**
|
|
4643
|
+
* Encodes the specified UserEmailVerificationRequested message. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
|
|
4644
|
+
* @function encode
|
|
4645
|
+
* @memberof UserEmailVerificationRequested
|
|
4646
|
+
* @static
|
|
4647
|
+
* @param {IUserEmailVerificationRequested} message UserEmailVerificationRequested message or plain object to encode
|
|
4648
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4649
|
+
* @returns {$protobuf.Writer} Writer
|
|
4650
|
+
*/
|
|
4651
|
+
UserEmailVerificationRequested.encode = function encode(message, writer) {
|
|
4652
|
+
if (!writer)
|
|
4653
|
+
writer = $Writer.create();
|
|
4654
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
4655
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
4656
|
+
if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
|
|
4657
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.verificationCode);
|
|
4658
|
+
return writer;
|
|
4659
|
+
};
|
|
4660
|
+
|
|
4661
|
+
/**
|
|
4662
|
+
* Encodes the specified UserEmailVerificationRequested message, length delimited. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
|
|
4663
|
+
* @function encodeDelimited
|
|
4664
|
+
* @memberof UserEmailVerificationRequested
|
|
4665
|
+
* @static
|
|
4666
|
+
* @param {IUserEmailVerificationRequested} message UserEmailVerificationRequested message or plain object to encode
|
|
4667
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4668
|
+
* @returns {$protobuf.Writer} Writer
|
|
4669
|
+
*/
|
|
4670
|
+
UserEmailVerificationRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4671
|
+
return this.encode(message, writer).ldelim();
|
|
4672
|
+
};
|
|
4673
|
+
|
|
4674
|
+
/**
|
|
4675
|
+
* Decodes a UserEmailVerificationRequested message from the specified reader or buffer.
|
|
4676
|
+
* @function decode
|
|
4677
|
+
* @memberof UserEmailVerificationRequested
|
|
4678
|
+
* @static
|
|
4679
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4680
|
+
* @param {number} [length] Message length if known beforehand
|
|
4681
|
+
* @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
|
|
4682
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4683
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4684
|
+
*/
|
|
4685
|
+
UserEmailVerificationRequested.decode = function decode(reader, length) {
|
|
4686
|
+
if (!(reader instanceof $Reader))
|
|
4687
|
+
reader = $Reader.create(reader);
|
|
4688
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailVerificationRequested();
|
|
4689
|
+
while (reader.pos < end) {
|
|
4690
|
+
var tag = reader.uint32();
|
|
4691
|
+
switch (tag >>> 3) {
|
|
4692
|
+
case 1:
|
|
4693
|
+
message.userId = reader.string();
|
|
4694
|
+
break;
|
|
4695
|
+
case 2:
|
|
4696
|
+
message.verificationCode = reader.string();
|
|
4697
|
+
break;
|
|
4698
|
+
default:
|
|
4699
|
+
reader.skipType(tag & 7);
|
|
4700
|
+
break;
|
|
4701
|
+
}
|
|
4702
|
+
}
|
|
4703
|
+
return message;
|
|
4704
|
+
};
|
|
4705
|
+
|
|
4706
|
+
/**
|
|
4707
|
+
* Decodes a UserEmailVerificationRequested message from the specified reader or buffer, length delimited.
|
|
4708
|
+
* @function decodeDelimited
|
|
4709
|
+
* @memberof UserEmailVerificationRequested
|
|
4710
|
+
* @static
|
|
4711
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4712
|
+
* @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
|
|
4713
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4714
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4715
|
+
*/
|
|
4716
|
+
UserEmailVerificationRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
4717
|
+
if (!(reader instanceof $Reader))
|
|
4718
|
+
reader = new $Reader(reader);
|
|
4719
|
+
return this.decode(reader, reader.uint32());
|
|
4720
|
+
};
|
|
4721
|
+
|
|
4722
|
+
/**
|
|
4723
|
+
* Verifies a UserEmailVerificationRequested message.
|
|
4724
|
+
* @function verify
|
|
4725
|
+
* @memberof UserEmailVerificationRequested
|
|
4726
|
+
* @static
|
|
4727
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
4728
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
4729
|
+
*/
|
|
4730
|
+
UserEmailVerificationRequested.verify = function verify(message) {
|
|
4731
|
+
if (typeof message !== "object" || message === null)
|
|
4732
|
+
return "object expected";
|
|
4733
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
4734
|
+
if (!$util.isString(message.userId))
|
|
4735
|
+
return "userId: string expected";
|
|
4736
|
+
if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
|
|
4737
|
+
if (!$util.isString(message.verificationCode))
|
|
4738
|
+
return "verificationCode: string expected";
|
|
4739
|
+
return null;
|
|
4740
|
+
};
|
|
4741
|
+
|
|
4742
|
+
/**
|
|
4743
|
+
* Creates a UserEmailVerificationRequested message from a plain object. Also converts values to their respective internal types.
|
|
4744
|
+
* @function fromObject
|
|
4745
|
+
* @memberof UserEmailVerificationRequested
|
|
4746
|
+
* @static
|
|
4747
|
+
* @param {Object.<string,*>} object Plain object
|
|
4748
|
+
* @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
|
|
4749
|
+
*/
|
|
4750
|
+
UserEmailVerificationRequested.fromObject = function fromObject(object) {
|
|
4751
|
+
if (object instanceof $root.UserEmailVerificationRequested)
|
|
4752
|
+
return object;
|
|
4753
|
+
var message = new $root.UserEmailVerificationRequested();
|
|
4754
|
+
if (object.userId != null)
|
|
4755
|
+
message.userId = String(object.userId);
|
|
4756
|
+
if (object.verificationCode != null)
|
|
4757
|
+
message.verificationCode = String(object.verificationCode);
|
|
4758
|
+
return message;
|
|
4759
|
+
};
|
|
4760
|
+
|
|
4761
|
+
/**
|
|
4762
|
+
* Creates a plain object from a UserEmailVerificationRequested message. Also converts values to other types if specified.
|
|
4763
|
+
* @function toObject
|
|
4764
|
+
* @memberof UserEmailVerificationRequested
|
|
4765
|
+
* @static
|
|
4766
|
+
* @param {UserEmailVerificationRequested} message UserEmailVerificationRequested
|
|
4767
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4768
|
+
* @returns {Object.<string,*>} Plain object
|
|
4769
|
+
*/
|
|
4770
|
+
UserEmailVerificationRequested.toObject = function toObject(message, options) {
|
|
4771
|
+
if (!options)
|
|
4772
|
+
options = {};
|
|
4773
|
+
var object = {};
|
|
4774
|
+
if (options.defaults) {
|
|
4775
|
+
object.userId = "";
|
|
4776
|
+
object.verificationCode = "";
|
|
4777
|
+
}
|
|
4778
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
4779
|
+
object.userId = message.userId;
|
|
4780
|
+
if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
|
|
4781
|
+
object.verificationCode = message.verificationCode;
|
|
4782
|
+
return object;
|
|
4783
|
+
};
|
|
4784
|
+
|
|
4785
|
+
/**
|
|
4786
|
+
* Converts this UserEmailVerificationRequested to JSON.
|
|
4787
|
+
* @function toJSON
|
|
4788
|
+
* @memberof UserEmailVerificationRequested
|
|
4789
|
+
* @instance
|
|
4790
|
+
* @returns {Object.<string,*>} JSON object
|
|
4791
|
+
*/
|
|
4792
|
+
UserEmailVerificationRequested.prototype.toJSON = function toJSON() {
|
|
4793
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4794
|
+
};
|
|
4795
|
+
|
|
4796
|
+
return UserEmailVerificationRequested;
|
|
4797
|
+
})();
|
|
4798
|
+
|
|
4307
4799
|
module.exports = $root;
|
package/package.json
CHANGED